kubernetes/pkg/api/types.generated.go
Huamin Chen dea4b0226d support Azure data disk volume
Signed-off-by: Huamin Chen <hchen@redhat.com>
2016-08-23 13:23:07 +00:00

62228 lines
1.4 MiB

/*
Copyright 2016 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// ************************************************************
// DO NOT EDIT.
// THIS FILE IS AUTO-GENERATED BY codecgen.
// ************************************************************
package api
import (
"errors"
"fmt"
codec1978 "github.com/ugorji/go/codec"
pkg3_resource "k8s.io/kubernetes/pkg/api/resource"
pkg2_unversioned "k8s.io/kubernetes/pkg/api/unversioned"
pkg6_fields "k8s.io/kubernetes/pkg/fields"
pkg5_labels "k8s.io/kubernetes/pkg/labels"
pkg7_runtime "k8s.io/kubernetes/pkg/runtime"
pkg1_types "k8s.io/kubernetes/pkg/types"
pkg4_intstr "k8s.io/kubernetes/pkg/util/intstr"
"reflect"
"runtime"
time "time"
)
const (
// ----- content types ----
codecSelferC_UTF81234 = 1
codecSelferC_RAW1234 = 0
// ----- value types used ----
codecSelferValueTypeArray1234 = 10
codecSelferValueTypeMap1234 = 9
// ----- containerStateValues ----
codecSelfer_containerMapKey1234 = 2
codecSelfer_containerMapValue1234 = 3
codecSelfer_containerMapEnd1234 = 4
codecSelfer_containerArrayElem1234 = 6
codecSelfer_containerArrayEnd1234 = 7
)
var (
codecSelferBitsize1234 = uint8(reflect.TypeOf(uint(0)).Bits())
codecSelferOnlyMapOrArrayEncodeToStructErr1234 = errors.New(`only encoded map or array can be decoded into a struct`)
)
type codecSelfer1234 struct{}
func init() {
if codec1978.GenVersion != 5 {
_, file, _, _ := runtime.Caller(0)
err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v",
5, codec1978.GenVersion, file)
panic(err)
}
if false { // reference the types, but skip this branch at build/run time
var v0 pkg3_resource.Quantity
var v1 pkg2_unversioned.Time
var v2 pkg6_fields.Selector
var v3 pkg5_labels.Selector
var v4 pkg7_runtime.Object
var v5 pkg1_types.UID
var v6 pkg4_intstr.IntOrString
var v7 time.Time
_, _, _, _, _, _, _, _ = v0, v1, v2, v3, v4, v5, v6, v7
}
}
func (x *ObjectMeta) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2 := !z.EncBinary()
yy2arr2 := z.EncBasicHandle().StructToArray
var yyq2 [15]bool
_, _, _ = yysep2, yyq2, yy2arr2
const yyr2 bool = false
yyq2[0] = x.Name != ""
yyq2[1] = x.GenerateName != ""
yyq2[2] = x.Namespace != ""
yyq2[3] = x.SelfLink != ""
yyq2[4] = x.UID != ""
yyq2[5] = x.ResourceVersion != ""
yyq2[6] = x.Generation != 0
yyq2[7] = true
yyq2[8] = x.DeletionTimestamp != nil
yyq2[9] = x.DeletionGracePeriodSeconds != nil
yyq2[10] = len(x.Labels) != 0
yyq2[11] = len(x.Annotations) != 0
yyq2[12] = len(x.OwnerReferences) != 0
yyq2[13] = len(x.Finalizers) != 0
yyq2[14] = x.ClusterName != ""
var yynn2 int
if yyr2 || yy2arr2 {
r.EncodeArrayStart(15)
} else {
yynn2 = 0
for _, b := range yyq2 {
if b {
yynn2++
}
}
r.EncodeMapStart(yynn2)
yynn2 = 0
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[0] {
yym4 := z.EncBinary()
_ = yym4
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym5 := z.EncBinary()
_ = yym5
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[1] {
yym7 := z.EncBinary()
_ = yym7
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("generateName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym8 := z.EncBinary()
_ = yym8
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[2] {
yym10 := z.EncBinary()
_ = yym10
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("namespace"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym11 := z.EncBinary()
_ = yym11
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[3] {
yym13 := z.EncBinary()
_ = yym13
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("selfLink"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym14 := z.EncBinary()
_ = yym14
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[4] {
yym16 := z.EncBinary()
_ = yym16
if false {
} else if z.HasExtensions() && z.EncExt(x.UID) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.UID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("uid"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym17 := z.EncBinary()
_ = yym17
if false {
} else if z.HasExtensions() && z.EncExt(x.UID) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.UID))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[5] {
yym19 := z.EncBinary()
_ = yym19
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("resourceVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym20 := z.EncBinary()
_ = yym20
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[6] {
yym22 := z.EncBinary()
_ = yym22
if false {
} else {
r.EncodeInt(int64(x.Generation))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq2[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("generation"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym23 := z.EncBinary()
_ = yym23
if false {
} else {
r.EncodeInt(int64(x.Generation))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[7] {
yy25 := &x.CreationTimestamp
yym26 := z.EncBinary()
_ = yym26
if false {
} else if z.HasExtensions() && z.EncExt(yy25) {
} else if yym26 {
z.EncBinaryMarshal(yy25)
} else if !yym26 && z.IsJSONHandle() {
z.EncJSONMarshal(yy25)
} else {
z.EncFallback(yy25)
}
} else {
r.EncodeNil()
}
} else {
if yyq2[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("creationTimestamp"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy27 := &x.CreationTimestamp
yym28 := z.EncBinary()
_ = yym28
if false {
} else if z.HasExtensions() && z.EncExt(yy27) {
} else if yym28 {
z.EncBinaryMarshal(yy27)
} else if !yym28 && z.IsJSONHandle() {
z.EncJSONMarshal(yy27)
} else {
z.EncFallback(yy27)
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[8] {
if x.DeletionTimestamp == nil {
r.EncodeNil()
} else {
yym30 := z.EncBinary()
_ = yym30
if false {
} else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) {
} else if yym30 {
z.EncBinaryMarshal(x.DeletionTimestamp)
} else if !yym30 && z.IsJSONHandle() {
z.EncJSONMarshal(x.DeletionTimestamp)
} else {
z.EncFallback(x.DeletionTimestamp)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("deletionTimestamp"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.DeletionTimestamp == nil {
r.EncodeNil()
} else {
yym31 := z.EncBinary()
_ = yym31
if false {
} else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) {
} else if yym31 {
z.EncBinaryMarshal(x.DeletionTimestamp)
} else if !yym31 && z.IsJSONHandle() {
z.EncJSONMarshal(x.DeletionTimestamp)
} else {
z.EncFallback(x.DeletionTimestamp)
}
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[9] {
if x.DeletionGracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy33 := *x.DeletionGracePeriodSeconds
yym34 := z.EncBinary()
_ = yym34
if false {
} else {
r.EncodeInt(int64(yy33))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2[9] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("deletionGracePeriodSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.DeletionGracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy35 := *x.DeletionGracePeriodSeconds
yym36 := z.EncBinary()
_ = yym36
if false {
} else {
r.EncodeInt(int64(yy35))
}
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[10] {
if x.Labels == nil {
r.EncodeNil()
} else {
yym38 := z.EncBinary()
_ = yym38
if false {
} else {
z.F.EncMapStringStringV(x.Labels, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("labels"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Labels == nil {
r.EncodeNil()
} else {
yym39 := z.EncBinary()
_ = yym39
if false {
} else {
z.F.EncMapStringStringV(x.Labels, false, e)
}
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[11] {
if x.Annotations == nil {
r.EncodeNil()
} else {
yym41 := z.EncBinary()
_ = yym41
if false {
} else {
z.F.EncMapStringStringV(x.Annotations, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2[11] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("annotations"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Annotations == nil {
r.EncodeNil()
} else {
yym42 := z.EncBinary()
_ = yym42
if false {
} else {
z.F.EncMapStringStringV(x.Annotations, false, e)
}
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[12] {
if x.OwnerReferences == nil {
r.EncodeNil()
} else {
yym44 := z.EncBinary()
_ = yym44
if false {
} else {
h.encSliceOwnerReference(([]OwnerReference)(x.OwnerReferences), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2[12] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ownerReferences"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.OwnerReferences == nil {
r.EncodeNil()
} else {
yym45 := z.EncBinary()
_ = yym45
if false {
} else {
h.encSliceOwnerReference(([]OwnerReference)(x.OwnerReferences), e)
}
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[13] {
if x.Finalizers == nil {
r.EncodeNil()
} else {
yym47 := z.EncBinary()
_ = yym47
if false {
} else {
z.F.EncSliceStringV(x.Finalizers, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2[13] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("finalizers"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Finalizers == nil {
r.EncodeNil()
} else {
yym48 := z.EncBinary()
_ = yym48
if false {
} else {
z.F.EncSliceStringV(x.Finalizers, false, e)
}
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[14] {
yym50 := z.EncBinary()
_ = yym50
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2[14] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("clusterName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym51 := z.EncBinary()
_ = yym51
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName))
}
}
}
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
yym52 := z.DecBinary()
_ = yym52
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct53 := r.ContainerType()
if yyct53 == codecSelferValueTypeMap1234 {
yyl53 := r.ReadMapStart()
if yyl53 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl53, d)
}
} else if yyct53 == codecSelferValueTypeArray1234 {
yyl53 := r.ReadArrayStart()
if yyl53 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl53, 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 yys54Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys54Slc
var yyhl54 bool = l >= 0
for yyj54 := 0; ; yyj54++ {
if yyhl54 {
if yyj54 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys54Slc = r.DecodeBytes(yys54Slc, true, true)
yys54 := string(yys54Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys54 {
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 {
yyv62 := &x.CreationTimestamp
yym63 := z.DecBinary()
_ = yym63
if false {
} else if z.HasExtensions() && z.DecExt(yyv62) {
} else if yym63 {
z.DecBinaryUnmarshal(yyv62)
} else if !yym63 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv62)
} else {
z.DecFallback(yyv62, false)
}
}
case "deletionTimestamp":
if r.TryDecodeAsNil() {
if x.DeletionTimestamp != nil {
x.DeletionTimestamp = nil
}
} else {
if x.DeletionTimestamp == nil {
x.DeletionTimestamp = new(pkg2_unversioned.Time)
}
yym65 := z.DecBinary()
_ = yym65
if false {
} else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) {
} else if yym65 {
z.DecBinaryUnmarshal(x.DeletionTimestamp)
} else if !yym65 && 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)
}
yym67 := z.DecBinary()
_ = yym67
if false {
} else {
*((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64))
}
}
case "labels":
if r.TryDecodeAsNil() {
x.Labels = nil
} else {
yyv68 := &x.Labels
yym69 := z.DecBinary()
_ = yym69
if false {
} else {
z.F.DecMapStringStringX(yyv68, false, d)
}
}
case "annotations":
if r.TryDecodeAsNil() {
x.Annotations = nil
} else {
yyv70 := &x.Annotations
yym71 := z.DecBinary()
_ = yym71
if false {
} else {
z.F.DecMapStringStringX(yyv70, false, d)
}
}
case "ownerReferences":
if r.TryDecodeAsNil() {
x.OwnerReferences = nil
} else {
yyv72 := &x.OwnerReferences
yym73 := z.DecBinary()
_ = yym73
if false {
} else {
h.decSliceOwnerReference((*[]OwnerReference)(yyv72), d)
}
}
case "finalizers":
if r.TryDecodeAsNil() {
x.Finalizers = nil
} else {
yyv74 := &x.Finalizers
yym75 := z.DecBinary()
_ = yym75
if false {
} else {
z.F.DecSliceStringX(yyv74, false, d)
}
}
case "clusterName":
if r.TryDecodeAsNil() {
x.ClusterName = ""
} else {
x.ClusterName = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys54)
} // end switch yys54
} // end for yyj54
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 yyj77 int
var yyb77 bool
var yyhl77 bool = l >= 0
yyj77++
if yyhl77 {
yyb77 = yyj77 > l
} else {
yyb77 = r.CheckBreak()
}
if yyb77 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj77++
if yyhl77 {
yyb77 = yyj77 > l
} else {
yyb77 = r.CheckBreak()
}
if yyb77 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.GenerateName = ""
} else {
x.GenerateName = string(r.DecodeString())
}
yyj77++
if yyhl77 {
yyb77 = yyj77 > l
} else {
yyb77 = r.CheckBreak()
}
if yyb77 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Namespace = ""
} else {
x.Namespace = string(r.DecodeString())
}
yyj77++
if yyhl77 {
yyb77 = yyj77 > l
} else {
yyb77 = r.CheckBreak()
}
if yyb77 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SelfLink = ""
} else {
x.SelfLink = string(r.DecodeString())
}
yyj77++
if yyhl77 {
yyb77 = yyj77 > l
} else {
yyb77 = r.CheckBreak()
}
if yyb77 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.UID = ""
} else {
x.UID = pkg1_types.UID(r.DecodeString())
}
yyj77++
if yyhl77 {
yyb77 = yyj77 > l
} else {
yyb77 = r.CheckBreak()
}
if yyb77 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ResourceVersion = ""
} else {
x.ResourceVersion = string(r.DecodeString())
}
yyj77++
if yyhl77 {
yyb77 = yyj77 > l
} else {
yyb77 = r.CheckBreak()
}
if yyb77 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Generation = 0
} else {
x.Generation = int64(r.DecodeInt(64))
}
yyj77++
if yyhl77 {
yyb77 = yyj77 > l
} else {
yyb77 = r.CheckBreak()
}
if yyb77 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.CreationTimestamp = pkg2_unversioned.Time{}
} else {
yyv85 := &x.CreationTimestamp
yym86 := z.DecBinary()
_ = yym86
if false {
} else if z.HasExtensions() && z.DecExt(yyv85) {
} else if yym86 {
z.DecBinaryUnmarshal(yyv85)
} else if !yym86 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv85)
} else {
z.DecFallback(yyv85, false)
}
}
yyj77++
if yyhl77 {
yyb77 = yyj77 > l
} else {
yyb77 = r.CheckBreak()
}
if yyb77 {
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)
}
yym88 := z.DecBinary()
_ = yym88
if false {
} else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) {
} else if yym88 {
z.DecBinaryUnmarshal(x.DeletionTimestamp)
} else if !yym88 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.DeletionTimestamp)
} else {
z.DecFallback(x.DeletionTimestamp, false)
}
}
yyj77++
if yyhl77 {
yyb77 = yyj77 > l
} else {
yyb77 = r.CheckBreak()
}
if yyb77 {
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)
}
yym90 := z.DecBinary()
_ = yym90
if false {
} else {
*((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64))
}
}
yyj77++
if yyhl77 {
yyb77 = yyj77 > l
} else {
yyb77 = r.CheckBreak()
}
if yyb77 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Labels = nil
} else {
yyv91 := &x.Labels
yym92 := z.DecBinary()
_ = yym92
if false {
} else {
z.F.DecMapStringStringX(yyv91, false, d)
}
}
yyj77++
if yyhl77 {
yyb77 = yyj77 > l
} else {
yyb77 = r.CheckBreak()
}
if yyb77 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Annotations = nil
} else {
yyv93 := &x.Annotations
yym94 := z.DecBinary()
_ = yym94
if false {
} else {
z.F.DecMapStringStringX(yyv93, false, d)
}
}
yyj77++
if yyhl77 {
yyb77 = yyj77 > l
} else {
yyb77 = r.CheckBreak()
}
if yyb77 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.OwnerReferences = nil
} else {
yyv95 := &x.OwnerReferences
yym96 := z.DecBinary()
_ = yym96
if false {
} else {
h.decSliceOwnerReference((*[]OwnerReference)(yyv95), d)
}
}
yyj77++
if yyhl77 {
yyb77 = yyj77 > l
} else {
yyb77 = r.CheckBreak()
}
if yyb77 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Finalizers = nil
} else {
yyv97 := &x.Finalizers
yym98 := z.DecBinary()
_ = yym98
if false {
} else {
z.F.DecSliceStringX(yyv97, false, d)
}
}
yyj77++
if yyhl77 {
yyb77 = yyj77 > l
} else {
yyb77 = r.CheckBreak()
}
if yyb77 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ClusterName = ""
} else {
x.ClusterName = string(r.DecodeString())
}
for {
yyj77++
if yyhl77 {
yyb77 = yyj77 > l
} else {
yyb77 = r.CheckBreak()
}
if yyb77 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj77-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 {
yym100 := z.EncBinary()
_ = yym100
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep101 := !z.EncBinary()
yy2arr101 := z.EncBasicHandle().StructToArray
var yyq101 [23]bool
_, _, _ = yysep101, yyq101, yy2arr101
const yyr101 bool = false
yyq101[1] = x.VolumeSource.HostPath != nil && x.HostPath != nil
yyq101[2] = x.VolumeSource.EmptyDir != nil && x.EmptyDir != nil
yyq101[3] = x.VolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil
yyq101[4] = x.VolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil
yyq101[5] = x.VolumeSource.GitRepo != nil && x.GitRepo != nil
yyq101[6] = x.VolumeSource.Secret != nil && x.Secret != nil
yyq101[7] = x.VolumeSource.NFS != nil && x.NFS != nil
yyq101[8] = x.VolumeSource.ISCSI != nil && x.ISCSI != nil
yyq101[9] = x.VolumeSource.Glusterfs != nil && x.Glusterfs != nil
yyq101[10] = x.VolumeSource.PersistentVolumeClaim != nil && x.PersistentVolumeClaim != nil
yyq101[11] = x.VolumeSource.RBD != nil && x.RBD != nil
yyq101[12] = x.VolumeSource.Quobyte != nil && x.Quobyte != nil
yyq101[13] = x.VolumeSource.FlexVolume != nil && x.FlexVolume != nil
yyq101[14] = x.VolumeSource.Cinder != nil && x.Cinder != nil
yyq101[15] = x.VolumeSource.CephFS != nil && x.CephFS != nil
yyq101[16] = x.VolumeSource.Flocker != nil && x.Flocker != nil
yyq101[17] = x.VolumeSource.DownwardAPI != nil && x.DownwardAPI != nil
yyq101[18] = x.VolumeSource.FC != nil && x.FC != nil
yyq101[19] = x.VolumeSource.AzureFile != nil && x.AzureFile != nil
yyq101[20] = x.VolumeSource.ConfigMap != nil && x.ConfigMap != nil
yyq101[21] = x.VolumeSource.VsphereVolume != nil && x.VsphereVolume != nil
yyq101[22] = x.VolumeSource.AzureDisk != nil && x.AzureDisk != nil
var yynn101 int
if yyr101 || yy2arr101 {
r.EncodeArrayStart(23)
} else {
yynn101 = 1
for _, b := range yyq101 {
if b {
yynn101++
}
}
r.EncodeMapStart(yynn101)
yynn101 = 0
}
if yyr101 || yy2arr101 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym103 := z.EncBinary()
_ = yym103
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)
yym104 := z.EncBinary()
_ = yym104
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
var yyn105 bool
if x.VolumeSource.HostPath == nil {
yyn105 = true
goto LABEL105
}
LABEL105:
if yyr101 || yy2arr101 {
if yyn105 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq101[1] {
if x.HostPath == nil {
r.EncodeNil()
} else {
x.HostPath.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq101[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostPath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn105 {
r.EncodeNil()
} else {
if x.HostPath == nil {
r.EncodeNil()
} else {
x.HostPath.CodecEncodeSelf(e)
}
}
}
}
var yyn106 bool
if x.VolumeSource.EmptyDir == nil {
yyn106 = true
goto LABEL106
}
LABEL106:
if yyr101 || yy2arr101 {
if yyn106 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq101[2] {
if x.EmptyDir == nil {
r.EncodeNil()
} else {
x.EmptyDir.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq101[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("emptyDir"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn106 {
r.EncodeNil()
} else {
if x.EmptyDir == nil {
r.EncodeNil()
} else {
x.EmptyDir.CodecEncodeSelf(e)
}
}
}
}
var yyn107 bool
if x.VolumeSource.GCEPersistentDisk == nil {
yyn107 = true
goto LABEL107
}
LABEL107:
if yyr101 || yy2arr101 {
if yyn107 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq101[3] {
if x.GCEPersistentDisk == nil {
r.EncodeNil()
} else {
x.GCEPersistentDisk.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq101[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn107 {
r.EncodeNil()
} else {
if x.GCEPersistentDisk == nil {
r.EncodeNil()
} else {
x.GCEPersistentDisk.CodecEncodeSelf(e)
}
}
}
}
var yyn108 bool
if x.VolumeSource.AWSElasticBlockStore == nil {
yyn108 = true
goto LABEL108
}
LABEL108:
if yyr101 || yy2arr101 {
if yyn108 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq101[4] {
if x.AWSElasticBlockStore == nil {
r.EncodeNil()
} else {
x.AWSElasticBlockStore.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq101[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn108 {
r.EncodeNil()
} else {
if x.AWSElasticBlockStore == nil {
r.EncodeNil()
} else {
x.AWSElasticBlockStore.CodecEncodeSelf(e)
}
}
}
}
var yyn109 bool
if x.VolumeSource.GitRepo == nil {
yyn109 = true
goto LABEL109
}
LABEL109:
if yyr101 || yy2arr101 {
if yyn109 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq101[5] {
if x.GitRepo == nil {
r.EncodeNil()
} else {
x.GitRepo.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq101[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("gitRepo"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn109 {
r.EncodeNil()
} else {
if x.GitRepo == nil {
r.EncodeNil()
} else {
x.GitRepo.CodecEncodeSelf(e)
}
}
}
}
var yyn110 bool
if x.VolumeSource.Secret == nil {
yyn110 = true
goto LABEL110
}
LABEL110:
if yyr101 || yy2arr101 {
if yyn110 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq101[6] {
if x.Secret == nil {
r.EncodeNil()
} else {
x.Secret.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq101[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("secret"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn110 {
r.EncodeNil()
} else {
if x.Secret == nil {
r.EncodeNil()
} else {
x.Secret.CodecEncodeSelf(e)
}
}
}
}
var yyn111 bool
if x.VolumeSource.NFS == nil {
yyn111 = true
goto LABEL111
}
LABEL111:
if yyr101 || yy2arr101 {
if yyn111 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq101[7] {
if x.NFS == nil {
r.EncodeNil()
} else {
x.NFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq101[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn111 {
r.EncodeNil()
} else {
if x.NFS == nil {
r.EncodeNil()
} else {
x.NFS.CodecEncodeSelf(e)
}
}
}
}
var yyn112 bool
if x.VolumeSource.ISCSI == nil {
yyn112 = true
goto LABEL112
}
LABEL112:
if yyr101 || yy2arr101 {
if yyn112 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq101[8] {
if x.ISCSI == nil {
r.EncodeNil()
} else {
x.ISCSI.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq101[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("iscsi"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn112 {
r.EncodeNil()
} else {
if x.ISCSI == nil {
r.EncodeNil()
} else {
x.ISCSI.CodecEncodeSelf(e)
}
}
}
}
var yyn113 bool
if x.VolumeSource.Glusterfs == nil {
yyn113 = true
goto LABEL113
}
LABEL113:
if yyr101 || yy2arr101 {
if yyn113 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq101[9] {
if x.Glusterfs == nil {
r.EncodeNil()
} else {
x.Glusterfs.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq101[9] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("glusterfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn113 {
r.EncodeNil()
} else {
if x.Glusterfs == nil {
r.EncodeNil()
} else {
x.Glusterfs.CodecEncodeSelf(e)
}
}
}
}
var yyn114 bool
if x.VolumeSource.PersistentVolumeClaim == nil {
yyn114 = true
goto LABEL114
}
LABEL114:
if yyr101 || yy2arr101 {
if yyn114 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq101[10] {
if x.PersistentVolumeClaim == nil {
r.EncodeNil()
} else {
x.PersistentVolumeClaim.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq101[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn114 {
r.EncodeNil()
} else {
if x.PersistentVolumeClaim == nil {
r.EncodeNil()
} else {
x.PersistentVolumeClaim.CodecEncodeSelf(e)
}
}
}
}
var yyn115 bool
if x.VolumeSource.RBD == nil {
yyn115 = true
goto LABEL115
}
LABEL115:
if yyr101 || yy2arr101 {
if yyn115 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq101[11] {
if x.RBD == nil {
r.EncodeNil()
} else {
x.RBD.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq101[11] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("rbd"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn115 {
r.EncodeNil()
} else {
if x.RBD == nil {
r.EncodeNil()
} else {
x.RBD.CodecEncodeSelf(e)
}
}
}
}
var yyn116 bool
if x.VolumeSource.Quobyte == nil {
yyn116 = true
goto LABEL116
}
LABEL116:
if yyr101 || yy2arr101 {
if yyn116 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq101[12] {
if x.Quobyte == nil {
r.EncodeNil()
} else {
x.Quobyte.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq101[12] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("quobyte"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn116 {
r.EncodeNil()
} else {
if x.Quobyte == nil {
r.EncodeNil()
} else {
x.Quobyte.CodecEncodeSelf(e)
}
}
}
}
var yyn117 bool
if x.VolumeSource.FlexVolume == nil {
yyn117 = true
goto LABEL117
}
LABEL117:
if yyr101 || yy2arr101 {
if yyn117 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq101[13] {
if x.FlexVolume == nil {
r.EncodeNil()
} else {
x.FlexVolume.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq101[13] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("flexVolume"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn117 {
r.EncodeNil()
} else {
if x.FlexVolume == nil {
r.EncodeNil()
} else {
x.FlexVolume.CodecEncodeSelf(e)
}
}
}
}
var yyn118 bool
if x.VolumeSource.Cinder == nil {
yyn118 = true
goto LABEL118
}
LABEL118:
if yyr101 || yy2arr101 {
if yyn118 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq101[14] {
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq101[14] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cinder"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn118 {
r.EncodeNil()
} else {
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
}
}
}
var yyn119 bool
if x.VolumeSource.CephFS == nil {
yyn119 = true
goto LABEL119
}
LABEL119:
if yyr101 || yy2arr101 {
if yyn119 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq101[15] {
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq101[15] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cephfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn119 {
r.EncodeNil()
} else {
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
}
}
}
var yyn120 bool
if x.VolumeSource.Flocker == nil {
yyn120 = true
goto LABEL120
}
LABEL120:
if yyr101 || yy2arr101 {
if yyn120 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq101[16] {
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq101[16] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("flocker"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn120 {
r.EncodeNil()
} else {
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
}
}
}
var yyn121 bool
if x.VolumeSource.DownwardAPI == nil {
yyn121 = true
goto LABEL121
}
LABEL121:
if yyr101 || yy2arr101 {
if yyn121 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq101[17] {
if x.DownwardAPI == nil {
r.EncodeNil()
} else {
x.DownwardAPI.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq101[17] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("downwardAPI"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn121 {
r.EncodeNil()
} else {
if x.DownwardAPI == nil {
r.EncodeNil()
} else {
x.DownwardAPI.CodecEncodeSelf(e)
}
}
}
}
var yyn122 bool
if x.VolumeSource.FC == nil {
yyn122 = true
goto LABEL122
}
LABEL122:
if yyr101 || yy2arr101 {
if yyn122 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq101[18] {
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq101[18] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fc"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn122 {
r.EncodeNil()
} else {
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
}
}
}
var yyn123 bool
if x.VolumeSource.AzureFile == nil {
yyn123 = true
goto LABEL123
}
LABEL123:
if yyr101 || yy2arr101 {
if yyn123 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq101[19] {
if x.AzureFile == nil {
r.EncodeNil()
} else {
x.AzureFile.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq101[19] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("azureFile"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn123 {
r.EncodeNil()
} else {
if x.AzureFile == nil {
r.EncodeNil()
} else {
x.AzureFile.CodecEncodeSelf(e)
}
}
}
}
var yyn124 bool
if x.VolumeSource.ConfigMap == nil {
yyn124 = true
goto LABEL124
}
LABEL124:
if yyr101 || yy2arr101 {
if yyn124 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq101[20] {
if x.ConfigMap == nil {
r.EncodeNil()
} else {
x.ConfigMap.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq101[20] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("configMap"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn124 {
r.EncodeNil()
} else {
if x.ConfigMap == nil {
r.EncodeNil()
} else {
x.ConfigMap.CodecEncodeSelf(e)
}
}
}
}
var yyn125 bool
if x.VolumeSource.VsphereVolume == nil {
yyn125 = true
goto LABEL125
}
LABEL125:
if yyr101 || yy2arr101 {
if yyn125 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq101[21] {
if x.VsphereVolume == nil {
r.EncodeNil()
} else {
x.VsphereVolume.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq101[21] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn125 {
r.EncodeNil()
} else {
if x.VsphereVolume == nil {
r.EncodeNil()
} else {
x.VsphereVolume.CodecEncodeSelf(e)
}
}
}
}
var yyn126 bool
if x.VolumeSource.AzureDisk == nil {
yyn126 = true
goto LABEL126
}
LABEL126:
if yyr101 || yy2arr101 {
if yyn126 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq101[22] {
if x.AzureDisk == nil {
r.EncodeNil()
} else {
x.AzureDisk.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq101[22] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("azureDisk"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn126 {
r.EncodeNil()
} else {
if x.AzureDisk == nil {
r.EncodeNil()
} else {
x.AzureDisk.CodecEncodeSelf(e)
}
}
}
}
if yyr101 || yy2arr101 {
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
yym127 := z.DecBinary()
_ = yym127
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct128 := r.ContainerType()
if yyct128 == codecSelferValueTypeMap1234 {
yyl128 := r.ReadMapStart()
if yyl128 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl128, d)
}
} else if yyct128 == codecSelferValueTypeArray1234 {
yyl128 := r.ReadArrayStart()
if yyl128 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl128, 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 yys129Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys129Slc
var yyhl129 bool = l >= 0
for yyj129 := 0; ; yyj129++ {
if yyhl129 {
if yyj129 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys129Slc = r.DecodeBytes(yys129Slc, true, true)
yys129 := string(yys129Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys129 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "hostPath":
if x.VolumeSource.HostPath == nil {
x.VolumeSource.HostPath = new(HostPathVolumeSource)
}
if r.TryDecodeAsNil() {
if x.HostPath != nil {
x.HostPath = nil
}
} else {
if x.HostPath == nil {
x.HostPath = new(HostPathVolumeSource)
}
x.HostPath.CodecDecodeSelf(d)
}
case "emptyDir":
if x.VolumeSource.EmptyDir == nil {
x.VolumeSource.EmptyDir = new(EmptyDirVolumeSource)
}
if r.TryDecodeAsNil() {
if x.EmptyDir != nil {
x.EmptyDir = nil
}
} else {
if x.EmptyDir == nil {
x.EmptyDir = new(EmptyDirVolumeSource)
}
x.EmptyDir.CodecDecodeSelf(d)
}
case "gcePersistentDisk":
if x.VolumeSource.GCEPersistentDisk == nil {
x.VolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
if r.TryDecodeAsNil() {
if x.GCEPersistentDisk != nil {
x.GCEPersistentDisk = nil
}
} else {
if x.GCEPersistentDisk == nil {
x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
x.GCEPersistentDisk.CodecDecodeSelf(d)
}
case "awsElasticBlockStore":
if x.VolumeSource.AWSElasticBlockStore == nil {
x.VolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
}
if r.TryDecodeAsNil() {
if x.AWSElasticBlockStore != nil {
x.AWSElasticBlockStore = nil
}
} else {
if x.AWSElasticBlockStore == nil {
x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
}
x.AWSElasticBlockStore.CodecDecodeSelf(d)
}
case "gitRepo":
if x.VolumeSource.GitRepo == nil {
x.VolumeSource.GitRepo = new(GitRepoVolumeSource)
}
if r.TryDecodeAsNil() {
if x.GitRepo != nil {
x.GitRepo = nil
}
} else {
if x.GitRepo == nil {
x.GitRepo = new(GitRepoVolumeSource)
}
x.GitRepo.CodecDecodeSelf(d)
}
case "secret":
if x.VolumeSource.Secret == nil {
x.VolumeSource.Secret = new(SecretVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Secret != nil {
x.Secret = nil
}
} else {
if x.Secret == nil {
x.Secret = new(SecretVolumeSource)
}
x.Secret.CodecDecodeSelf(d)
}
case "nfs":
if x.VolumeSource.NFS == nil {
x.VolumeSource.NFS = new(NFSVolumeSource)
}
if r.TryDecodeAsNil() {
if x.NFS != nil {
x.NFS = nil
}
} else {
if x.NFS == nil {
x.NFS = new(NFSVolumeSource)
}
x.NFS.CodecDecodeSelf(d)
}
case "iscsi":
if x.VolumeSource.ISCSI == nil {
x.VolumeSource.ISCSI = new(ISCSIVolumeSource)
}
if r.TryDecodeAsNil() {
if x.ISCSI != nil {
x.ISCSI = nil
}
} else {
if x.ISCSI == nil {
x.ISCSI = new(ISCSIVolumeSource)
}
x.ISCSI.CodecDecodeSelf(d)
}
case "glusterfs":
if x.VolumeSource.Glusterfs == nil {
x.VolumeSource.Glusterfs = new(GlusterfsVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Glusterfs != nil {
x.Glusterfs = nil
}
} else {
if x.Glusterfs == nil {
x.Glusterfs = new(GlusterfsVolumeSource)
}
x.Glusterfs.CodecDecodeSelf(d)
}
case "persistentVolumeClaim":
if x.VolumeSource.PersistentVolumeClaim == nil {
x.VolumeSource.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource)
}
if r.TryDecodeAsNil() {
if x.PersistentVolumeClaim != nil {
x.PersistentVolumeClaim = nil
}
} else {
if x.PersistentVolumeClaim == nil {
x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource)
}
x.PersistentVolumeClaim.CodecDecodeSelf(d)
}
case "rbd":
if x.VolumeSource.RBD == nil {
x.VolumeSource.RBD = new(RBDVolumeSource)
}
if r.TryDecodeAsNil() {
if x.RBD != nil {
x.RBD = nil
}
} else {
if x.RBD == nil {
x.RBD = new(RBDVolumeSource)
}
x.RBD.CodecDecodeSelf(d)
}
case "quobyte":
if x.VolumeSource.Quobyte == nil {
x.VolumeSource.Quobyte = new(QuobyteVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Quobyte != nil {
x.Quobyte = nil
}
} else {
if x.Quobyte == nil {
x.Quobyte = new(QuobyteVolumeSource)
}
x.Quobyte.CodecDecodeSelf(d)
}
case "flexVolume":
if x.VolumeSource.FlexVolume == nil {
x.VolumeSource.FlexVolume = new(FlexVolumeSource)
}
if r.TryDecodeAsNil() {
if x.FlexVolume != nil {
x.FlexVolume = nil
}
} else {
if x.FlexVolume == nil {
x.FlexVolume = new(FlexVolumeSource)
}
x.FlexVolume.CodecDecodeSelf(d)
}
case "cinder":
if x.VolumeSource.Cinder == nil {
x.VolumeSource.Cinder = new(CinderVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Cinder != nil {
x.Cinder = nil
}
} else {
if x.Cinder == nil {
x.Cinder = new(CinderVolumeSource)
}
x.Cinder.CodecDecodeSelf(d)
}
case "cephfs":
if x.VolumeSource.CephFS == nil {
x.VolumeSource.CephFS = new(CephFSVolumeSource)
}
if r.TryDecodeAsNil() {
if x.CephFS != nil {
x.CephFS = nil
}
} else {
if x.CephFS == nil {
x.CephFS = new(CephFSVolumeSource)
}
x.CephFS.CodecDecodeSelf(d)
}
case "flocker":
if x.VolumeSource.Flocker == nil {
x.VolumeSource.Flocker = new(FlockerVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Flocker != nil {
x.Flocker = nil
}
} else {
if x.Flocker == nil {
x.Flocker = new(FlockerVolumeSource)
}
x.Flocker.CodecDecodeSelf(d)
}
case "downwardAPI":
if x.VolumeSource.DownwardAPI == nil {
x.VolumeSource.DownwardAPI = new(DownwardAPIVolumeSource)
}
if r.TryDecodeAsNil() {
if x.DownwardAPI != nil {
x.DownwardAPI = nil
}
} else {
if x.DownwardAPI == nil {
x.DownwardAPI = new(DownwardAPIVolumeSource)
}
x.DownwardAPI.CodecDecodeSelf(d)
}
case "fc":
if x.VolumeSource.FC == nil {
x.VolumeSource.FC = new(FCVolumeSource)
}
if r.TryDecodeAsNil() {
if x.FC != nil {
x.FC = nil
}
} else {
if x.FC == nil {
x.FC = new(FCVolumeSource)
}
x.FC.CodecDecodeSelf(d)
}
case "azureFile":
if x.VolumeSource.AzureFile == nil {
x.VolumeSource.AzureFile = new(AzureFileVolumeSource)
}
if r.TryDecodeAsNil() {
if x.AzureFile != nil {
x.AzureFile = nil
}
} else {
if x.AzureFile == nil {
x.AzureFile = new(AzureFileVolumeSource)
}
x.AzureFile.CodecDecodeSelf(d)
}
case "configMap":
if x.VolumeSource.ConfigMap == nil {
x.VolumeSource.ConfigMap = new(ConfigMapVolumeSource)
}
if r.TryDecodeAsNil() {
if x.ConfigMap != nil {
x.ConfigMap = nil
}
} else {
if x.ConfigMap == nil {
x.ConfigMap = new(ConfigMapVolumeSource)
}
x.ConfigMap.CodecDecodeSelf(d)
}
case "vsphereVolume":
if x.VolumeSource.VsphereVolume == nil {
x.VolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
}
if r.TryDecodeAsNil() {
if x.VsphereVolume != nil {
x.VsphereVolume = nil
}
} else {
if x.VsphereVolume == nil {
x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
}
x.VsphereVolume.CodecDecodeSelf(d)
}
case "azureDisk":
if x.VolumeSource.AzureDisk == nil {
x.VolumeSource.AzureDisk = new(AzureDiskVolumeSource)
}
if r.TryDecodeAsNil() {
if x.AzureDisk != nil {
x.AzureDisk = nil
}
} else {
if x.AzureDisk == nil {
x.AzureDisk = new(AzureDiskVolumeSource)
}
x.AzureDisk.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys129)
} // end switch yys129
} // end for yyj129
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 yyj153 int
var yyb153 bool
var yyhl153 bool = l >= 0
yyj153++
if yyhl153 {
yyb153 = yyj153 > l
} else {
yyb153 = r.CheckBreak()
}
if yyb153 {
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)
}
yyj153++
if yyhl153 {
yyb153 = yyj153 > l
} else {
yyb153 = r.CheckBreak()
}
if yyb153 {
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)
}
yyj153++
if yyhl153 {
yyb153 = yyj153 > l
} else {
yyb153 = r.CheckBreak()
}
if yyb153 {
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)
}
yyj153++
if yyhl153 {
yyb153 = yyj153 > l
} else {
yyb153 = r.CheckBreak()
}
if yyb153 {
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)
}
yyj153++
if yyhl153 {
yyb153 = yyj153 > l
} else {
yyb153 = r.CheckBreak()
}
if yyb153 {
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)
}
yyj153++
if yyhl153 {
yyb153 = yyj153 > l
} else {
yyb153 = r.CheckBreak()
}
if yyb153 {
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)
}
yyj153++
if yyhl153 {
yyb153 = yyj153 > l
} else {
yyb153 = r.CheckBreak()
}
if yyb153 {
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)
}
yyj153++
if yyhl153 {
yyb153 = yyj153 > l
} else {
yyb153 = r.CheckBreak()
}
if yyb153 {
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)
}
yyj153++
if yyhl153 {
yyb153 = yyj153 > l
} else {
yyb153 = r.CheckBreak()
}
if yyb153 {
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)
}
yyj153++
if yyhl153 {
yyb153 = yyj153 > l
} else {
yyb153 = r.CheckBreak()
}
if yyb153 {
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)
}
yyj153++
if yyhl153 {
yyb153 = yyj153 > l
} else {
yyb153 = r.CheckBreak()
}
if yyb153 {
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)
}
yyj153++
if yyhl153 {
yyb153 = yyj153 > l
} else {
yyb153 = r.CheckBreak()
}
if yyb153 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.RBD != nil {
x.RBD = nil
}
} else {
if x.RBD == nil {
x.RBD = new(RBDVolumeSource)
}
x.RBD.CodecDecodeSelf(d)
}
if x.VolumeSource.Quobyte == nil {
x.VolumeSource.Quobyte = new(QuobyteVolumeSource)
}
yyj153++
if yyhl153 {
yyb153 = yyj153 > l
} else {
yyb153 = r.CheckBreak()
}
if yyb153 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Quobyte != nil {
x.Quobyte = nil
}
} else {
if x.Quobyte == nil {
x.Quobyte = new(QuobyteVolumeSource)
}
x.Quobyte.CodecDecodeSelf(d)
}
if x.VolumeSource.FlexVolume == nil {
x.VolumeSource.FlexVolume = new(FlexVolumeSource)
}
yyj153++
if yyhl153 {
yyb153 = yyj153 > l
} else {
yyb153 = r.CheckBreak()
}
if yyb153 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.FlexVolume != nil {
x.FlexVolume = nil
}
} else {
if x.FlexVolume == nil {
x.FlexVolume = new(FlexVolumeSource)
}
x.FlexVolume.CodecDecodeSelf(d)
}
if x.VolumeSource.Cinder == nil {
x.VolumeSource.Cinder = new(CinderVolumeSource)
}
yyj153++
if yyhl153 {
yyb153 = yyj153 > l
} else {
yyb153 = r.CheckBreak()
}
if yyb153 {
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)
}
yyj153++
if yyhl153 {
yyb153 = yyj153 > l
} else {
yyb153 = r.CheckBreak()
}
if yyb153 {
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)
}
yyj153++
if yyhl153 {
yyb153 = yyj153 > l
} else {
yyb153 = r.CheckBreak()
}
if yyb153 {
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)
}
yyj153++
if yyhl153 {
yyb153 = yyj153 > l
} else {
yyb153 = r.CheckBreak()
}
if yyb153 {
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)
}
yyj153++
if yyhl153 {
yyb153 = yyj153 > l
} else {
yyb153 = r.CheckBreak()
}
if yyb153 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.FC != nil {
x.FC = nil
}
} else {
if x.FC == nil {
x.FC = new(FCVolumeSource)
}
x.FC.CodecDecodeSelf(d)
}
if x.VolumeSource.AzureFile == nil {
x.VolumeSource.AzureFile = new(AzureFileVolumeSource)
}
yyj153++
if yyhl153 {
yyb153 = yyj153 > l
} else {
yyb153 = r.CheckBreak()
}
if yyb153 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.AzureFile != nil {
x.AzureFile = nil
}
} else {
if x.AzureFile == nil {
x.AzureFile = new(AzureFileVolumeSource)
}
x.AzureFile.CodecDecodeSelf(d)
}
if x.VolumeSource.ConfigMap == nil {
x.VolumeSource.ConfigMap = new(ConfigMapVolumeSource)
}
yyj153++
if yyhl153 {
yyb153 = yyj153 > l
} else {
yyb153 = r.CheckBreak()
}
if yyb153 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.ConfigMap != nil {
x.ConfigMap = nil
}
} else {
if x.ConfigMap == nil {
x.ConfigMap = new(ConfigMapVolumeSource)
}
x.ConfigMap.CodecDecodeSelf(d)
}
if x.VolumeSource.VsphereVolume == nil {
x.VolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
}
yyj153++
if yyhl153 {
yyb153 = yyj153 > l
} else {
yyb153 = r.CheckBreak()
}
if yyb153 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.VsphereVolume != nil {
x.VsphereVolume = nil
}
} else {
if x.VsphereVolume == nil {
x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
}
x.VsphereVolume.CodecDecodeSelf(d)
}
if x.VolumeSource.AzureDisk == nil {
x.VolumeSource.AzureDisk = new(AzureDiskVolumeSource)
}
yyj153++
if yyhl153 {
yyb153 = yyj153 > l
} else {
yyb153 = r.CheckBreak()
}
if yyb153 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.AzureDisk != nil {
x.AzureDisk = nil
}
} else {
if x.AzureDisk == nil {
x.AzureDisk = new(AzureDiskVolumeSource)
}
x.AzureDisk.CodecDecodeSelf(d)
}
for {
yyj153++
if yyhl153 {
yyb153 = yyj153 > l
} else {
yyb153 = r.CheckBreak()
}
if yyb153 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj153-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 {
yym177 := z.EncBinary()
_ = yym177
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep178 := !z.EncBinary()
yy2arr178 := z.EncBasicHandle().StructToArray
var yyq178 [22]bool
_, _, _ = yysep178, yyq178, yy2arr178
const yyr178 bool = false
yyq178[0] = x.HostPath != nil
yyq178[1] = x.EmptyDir != nil
yyq178[2] = x.GCEPersistentDisk != nil
yyq178[3] = x.AWSElasticBlockStore != nil
yyq178[4] = x.GitRepo != nil
yyq178[5] = x.Secret != nil
yyq178[6] = x.NFS != nil
yyq178[7] = x.ISCSI != nil
yyq178[8] = x.Glusterfs != nil
yyq178[9] = x.PersistentVolumeClaim != nil
yyq178[10] = x.RBD != nil
yyq178[11] = x.Quobyte != nil
yyq178[12] = x.FlexVolume != nil
yyq178[13] = x.Cinder != nil
yyq178[14] = x.CephFS != nil
yyq178[15] = x.Flocker != nil
yyq178[16] = x.DownwardAPI != nil
yyq178[17] = x.FC != nil
yyq178[18] = x.AzureFile != nil
yyq178[19] = x.ConfigMap != nil
yyq178[20] = x.VsphereVolume != nil
yyq178[21] = x.AzureDisk != nil
var yynn178 int
if yyr178 || yy2arr178 {
r.EncodeArrayStart(22)
} else {
yynn178 = 0
for _, b := range yyq178 {
if b {
yynn178++
}
}
r.EncodeMapStart(yynn178)
yynn178 = 0
}
if yyr178 || yy2arr178 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq178[0] {
if x.HostPath == nil {
r.EncodeNil()
} else {
x.HostPath.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq178[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 yyr178 || yy2arr178 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq178[1] {
if x.EmptyDir == nil {
r.EncodeNil()
} else {
x.EmptyDir.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq178[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 yyr178 || yy2arr178 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq178[2] {
if x.GCEPersistentDisk == nil {
r.EncodeNil()
} else {
x.GCEPersistentDisk.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq178[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 yyr178 || yy2arr178 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq178[3] {
if x.AWSElasticBlockStore == nil {
r.EncodeNil()
} else {
x.AWSElasticBlockStore.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq178[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 yyr178 || yy2arr178 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq178[4] {
if x.GitRepo == nil {
r.EncodeNil()
} else {
x.GitRepo.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq178[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 yyr178 || yy2arr178 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq178[5] {
if x.Secret == nil {
r.EncodeNil()
} else {
x.Secret.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq178[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 yyr178 || yy2arr178 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq178[6] {
if x.NFS == nil {
r.EncodeNil()
} else {
x.NFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq178[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 yyr178 || yy2arr178 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq178[7] {
if x.ISCSI == nil {
r.EncodeNil()
} else {
x.ISCSI.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq178[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 yyr178 || yy2arr178 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq178[8] {
if x.Glusterfs == nil {
r.EncodeNil()
} else {
x.Glusterfs.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq178[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 yyr178 || yy2arr178 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq178[9] {
if x.PersistentVolumeClaim == nil {
r.EncodeNil()
} else {
x.PersistentVolumeClaim.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq178[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 yyr178 || yy2arr178 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq178[10] {
if x.RBD == nil {
r.EncodeNil()
} else {
x.RBD.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq178[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 yyr178 || yy2arr178 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq178[11] {
if x.Quobyte == nil {
r.EncodeNil()
} else {
x.Quobyte.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq178[11] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("quobyte"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Quobyte == nil {
r.EncodeNil()
} else {
x.Quobyte.CodecEncodeSelf(e)
}
}
}
if yyr178 || yy2arr178 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq178[12] {
if x.FlexVolume == nil {
r.EncodeNil()
} else {
x.FlexVolume.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq178[12] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("flexVolume"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.FlexVolume == nil {
r.EncodeNil()
} else {
x.FlexVolume.CodecEncodeSelf(e)
}
}
}
if yyr178 || yy2arr178 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq178[13] {
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq178[13] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cinder"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
}
}
if yyr178 || yy2arr178 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq178[14] {
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq178[14] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cephfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
}
}
if yyr178 || yy2arr178 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq178[15] {
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq178[15] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("flocker"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
}
}
if yyr178 || yy2arr178 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq178[16] {
if x.DownwardAPI == nil {
r.EncodeNil()
} else {
x.DownwardAPI.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq178[16] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("downwardAPI"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.DownwardAPI == nil {
r.EncodeNil()
} else {
x.DownwardAPI.CodecEncodeSelf(e)
}
}
}
if yyr178 || yy2arr178 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq178[17] {
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq178[17] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fc"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
}
}
if yyr178 || yy2arr178 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq178[18] {
if x.AzureFile == nil {
r.EncodeNil()
} else {
x.AzureFile.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq178[18] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("azureFile"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.AzureFile == nil {
r.EncodeNil()
} else {
x.AzureFile.CodecEncodeSelf(e)
}
}
}
if yyr178 || yy2arr178 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq178[19] {
if x.ConfigMap == nil {
r.EncodeNil()
} else {
x.ConfigMap.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq178[19] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("configMap"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ConfigMap == nil {
r.EncodeNil()
} else {
x.ConfigMap.CodecEncodeSelf(e)
}
}
}
if yyr178 || yy2arr178 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq178[20] {
if x.VsphereVolume == nil {
r.EncodeNil()
} else {
x.VsphereVolume.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq178[20] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.VsphereVolume == nil {
r.EncodeNil()
} else {
x.VsphereVolume.CodecEncodeSelf(e)
}
}
}
if yyr178 || yy2arr178 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq178[21] {
if x.AzureDisk == nil {
r.EncodeNil()
} else {
x.AzureDisk.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq178[21] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("azureDisk"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.AzureDisk == nil {
r.EncodeNil()
} else {
x.AzureDisk.CodecEncodeSelf(e)
}
}
}
if yyr178 || yy2arr178 {
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
yym201 := z.DecBinary()
_ = yym201
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct202 := r.ContainerType()
if yyct202 == codecSelferValueTypeMap1234 {
yyl202 := r.ReadMapStart()
if yyl202 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl202, d)
}
} else if yyct202 == codecSelferValueTypeArray1234 {
yyl202 := r.ReadArrayStart()
if yyl202 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl202, 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 yys203Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys203Slc
var yyhl203 bool = l >= 0
for yyj203 := 0; ; yyj203++ {
if yyhl203 {
if yyj203 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys203Slc = r.DecodeBytes(yys203Slc, true, true)
yys203 := string(yys203Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys203 {
case "hostPath":
if r.TryDecodeAsNil() {
if x.HostPath != nil {
x.HostPath = nil
}
} else {
if x.HostPath == nil {
x.HostPath = new(HostPathVolumeSource)
}
x.HostPath.CodecDecodeSelf(d)
}
case "emptyDir":
if r.TryDecodeAsNil() {
if x.EmptyDir != nil {
x.EmptyDir = nil
}
} else {
if x.EmptyDir == nil {
x.EmptyDir = new(EmptyDirVolumeSource)
}
x.EmptyDir.CodecDecodeSelf(d)
}
case "gcePersistentDisk":
if r.TryDecodeAsNil() {
if x.GCEPersistentDisk != nil {
x.GCEPersistentDisk = nil
}
} else {
if x.GCEPersistentDisk == nil {
x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
x.GCEPersistentDisk.CodecDecodeSelf(d)
}
case "awsElasticBlockStore":
if r.TryDecodeAsNil() {
if x.AWSElasticBlockStore != nil {
x.AWSElasticBlockStore = nil
}
} else {
if x.AWSElasticBlockStore == nil {
x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
}
x.AWSElasticBlockStore.CodecDecodeSelf(d)
}
case "gitRepo":
if r.TryDecodeAsNil() {
if x.GitRepo != nil {
x.GitRepo = nil
}
} else {
if x.GitRepo == nil {
x.GitRepo = new(GitRepoVolumeSource)
}
x.GitRepo.CodecDecodeSelf(d)
}
case "secret":
if r.TryDecodeAsNil() {
if x.Secret != nil {
x.Secret = nil
}
} else {
if x.Secret == nil {
x.Secret = new(SecretVolumeSource)
}
x.Secret.CodecDecodeSelf(d)
}
case "nfs":
if r.TryDecodeAsNil() {
if x.NFS != nil {
x.NFS = nil
}
} else {
if x.NFS == nil {
x.NFS = new(NFSVolumeSource)
}
x.NFS.CodecDecodeSelf(d)
}
case "iscsi":
if r.TryDecodeAsNil() {
if x.ISCSI != nil {
x.ISCSI = nil
}
} else {
if x.ISCSI == nil {
x.ISCSI = new(ISCSIVolumeSource)
}
x.ISCSI.CodecDecodeSelf(d)
}
case "glusterfs":
if r.TryDecodeAsNil() {
if x.Glusterfs != nil {
x.Glusterfs = nil
}
} else {
if x.Glusterfs == nil {
x.Glusterfs = new(GlusterfsVolumeSource)
}
x.Glusterfs.CodecDecodeSelf(d)
}
case "persistentVolumeClaim":
if r.TryDecodeAsNil() {
if x.PersistentVolumeClaim != nil {
x.PersistentVolumeClaim = nil
}
} else {
if x.PersistentVolumeClaim == nil {
x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource)
}
x.PersistentVolumeClaim.CodecDecodeSelf(d)
}
case "rbd":
if r.TryDecodeAsNil() {
if x.RBD != nil {
x.RBD = nil
}
} else {
if x.RBD == nil {
x.RBD = new(RBDVolumeSource)
}
x.RBD.CodecDecodeSelf(d)
}
case "quobyte":
if r.TryDecodeAsNil() {
if x.Quobyte != nil {
x.Quobyte = nil
}
} else {
if x.Quobyte == nil {
x.Quobyte = new(QuobyteVolumeSource)
}
x.Quobyte.CodecDecodeSelf(d)
}
case "flexVolume":
if r.TryDecodeAsNil() {
if x.FlexVolume != nil {
x.FlexVolume = nil
}
} else {
if x.FlexVolume == nil {
x.FlexVolume = new(FlexVolumeSource)
}
x.FlexVolume.CodecDecodeSelf(d)
}
case "cinder":
if r.TryDecodeAsNil() {
if x.Cinder != nil {
x.Cinder = nil
}
} else {
if x.Cinder == nil {
x.Cinder = new(CinderVolumeSource)
}
x.Cinder.CodecDecodeSelf(d)
}
case "cephfs":
if r.TryDecodeAsNil() {
if x.CephFS != nil {
x.CephFS = nil
}
} else {
if x.CephFS == nil {
x.CephFS = new(CephFSVolumeSource)
}
x.CephFS.CodecDecodeSelf(d)
}
case "flocker":
if r.TryDecodeAsNil() {
if x.Flocker != nil {
x.Flocker = nil
}
} else {
if x.Flocker == nil {
x.Flocker = new(FlockerVolumeSource)
}
x.Flocker.CodecDecodeSelf(d)
}
case "downwardAPI":
if r.TryDecodeAsNil() {
if x.DownwardAPI != nil {
x.DownwardAPI = nil
}
} else {
if x.DownwardAPI == nil {
x.DownwardAPI = new(DownwardAPIVolumeSource)
}
x.DownwardAPI.CodecDecodeSelf(d)
}
case "fc":
if r.TryDecodeAsNil() {
if x.FC != nil {
x.FC = nil
}
} else {
if x.FC == nil {
x.FC = new(FCVolumeSource)
}
x.FC.CodecDecodeSelf(d)
}
case "azureFile":
if r.TryDecodeAsNil() {
if x.AzureFile != nil {
x.AzureFile = nil
}
} else {
if x.AzureFile == nil {
x.AzureFile = new(AzureFileVolumeSource)
}
x.AzureFile.CodecDecodeSelf(d)
}
case "configMap":
if r.TryDecodeAsNil() {
if x.ConfigMap != nil {
x.ConfigMap = nil
}
} else {
if x.ConfigMap == nil {
x.ConfigMap = new(ConfigMapVolumeSource)
}
x.ConfigMap.CodecDecodeSelf(d)
}
case "vsphereVolume":
if r.TryDecodeAsNil() {
if x.VsphereVolume != nil {
x.VsphereVolume = nil
}
} else {
if x.VsphereVolume == nil {
x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
}
x.VsphereVolume.CodecDecodeSelf(d)
}
case "azureDisk":
if r.TryDecodeAsNil() {
if x.AzureDisk != nil {
x.AzureDisk = nil
}
} else {
if x.AzureDisk == nil {
x.AzureDisk = new(AzureDiskVolumeSource)
}
x.AzureDisk.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys203)
} // end switch yys203
} // end for yyj203
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 yyj226 int
var yyb226 bool
var yyhl226 bool = l >= 0
yyj226++
if yyhl226 {
yyb226 = yyj226 > l
} else {
yyb226 = r.CheckBreak()
}
if yyb226 {
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)
}
yyj226++
if yyhl226 {
yyb226 = yyj226 > l
} else {
yyb226 = r.CheckBreak()
}
if yyb226 {
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)
}
yyj226++
if yyhl226 {
yyb226 = yyj226 > l
} else {
yyb226 = r.CheckBreak()
}
if yyb226 {
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)
}
yyj226++
if yyhl226 {
yyb226 = yyj226 > l
} else {
yyb226 = r.CheckBreak()
}
if yyb226 {
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)
}
yyj226++
if yyhl226 {
yyb226 = yyj226 > l
} else {
yyb226 = r.CheckBreak()
}
if yyb226 {
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)
}
yyj226++
if yyhl226 {
yyb226 = yyj226 > l
} else {
yyb226 = r.CheckBreak()
}
if yyb226 {
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)
}
yyj226++
if yyhl226 {
yyb226 = yyj226 > l
} else {
yyb226 = r.CheckBreak()
}
if yyb226 {
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)
}
yyj226++
if yyhl226 {
yyb226 = yyj226 > l
} else {
yyb226 = r.CheckBreak()
}
if yyb226 {
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)
}
yyj226++
if yyhl226 {
yyb226 = yyj226 > l
} else {
yyb226 = r.CheckBreak()
}
if yyb226 {
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)
}
yyj226++
if yyhl226 {
yyb226 = yyj226 > l
} else {
yyb226 = r.CheckBreak()
}
if yyb226 {
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)
}
yyj226++
if yyhl226 {
yyb226 = yyj226 > l
} else {
yyb226 = r.CheckBreak()
}
if yyb226 {
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)
}
yyj226++
if yyhl226 {
yyb226 = yyj226 > l
} else {
yyb226 = r.CheckBreak()
}
if yyb226 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Quobyte != nil {
x.Quobyte = nil
}
} else {
if x.Quobyte == nil {
x.Quobyte = new(QuobyteVolumeSource)
}
x.Quobyte.CodecDecodeSelf(d)
}
yyj226++
if yyhl226 {
yyb226 = yyj226 > l
} else {
yyb226 = r.CheckBreak()
}
if yyb226 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.FlexVolume != nil {
x.FlexVolume = nil
}
} else {
if x.FlexVolume == nil {
x.FlexVolume = new(FlexVolumeSource)
}
x.FlexVolume.CodecDecodeSelf(d)
}
yyj226++
if yyhl226 {
yyb226 = yyj226 > l
} else {
yyb226 = r.CheckBreak()
}
if yyb226 {
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)
}
yyj226++
if yyhl226 {
yyb226 = yyj226 > l
} else {
yyb226 = r.CheckBreak()
}
if yyb226 {
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)
}
yyj226++
if yyhl226 {
yyb226 = yyj226 > l
} else {
yyb226 = r.CheckBreak()
}
if yyb226 {
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)
}
yyj226++
if yyhl226 {
yyb226 = yyj226 > l
} else {
yyb226 = r.CheckBreak()
}
if yyb226 {
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)
}
yyj226++
if yyhl226 {
yyb226 = yyj226 > l
} else {
yyb226 = r.CheckBreak()
}
if yyb226 {
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)
}
yyj226++
if yyhl226 {
yyb226 = yyj226 > l
} else {
yyb226 = r.CheckBreak()
}
if yyb226 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.AzureFile != nil {
x.AzureFile = nil
}
} else {
if x.AzureFile == nil {
x.AzureFile = new(AzureFileVolumeSource)
}
x.AzureFile.CodecDecodeSelf(d)
}
yyj226++
if yyhl226 {
yyb226 = yyj226 > l
} else {
yyb226 = r.CheckBreak()
}
if yyb226 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.ConfigMap != nil {
x.ConfigMap = nil
}
} else {
if x.ConfigMap == nil {
x.ConfigMap = new(ConfigMapVolumeSource)
}
x.ConfigMap.CodecDecodeSelf(d)
}
yyj226++
if yyhl226 {
yyb226 = yyj226 > l
} else {
yyb226 = r.CheckBreak()
}
if yyb226 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.VsphereVolume != nil {
x.VsphereVolume = nil
}
} else {
if x.VsphereVolume == nil {
x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
}
x.VsphereVolume.CodecDecodeSelf(d)
}
yyj226++
if yyhl226 {
yyb226 = yyj226 > l
} else {
yyb226 = r.CheckBreak()
}
if yyb226 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.AzureDisk != nil {
x.AzureDisk = nil
}
} else {
if x.AzureDisk == nil {
x.AzureDisk = new(AzureDiskVolumeSource)
}
x.AzureDisk.CodecDecodeSelf(d)
}
for {
yyj226++
if yyhl226 {
yyb226 = yyj226 > l
} else {
yyb226 = r.CheckBreak()
}
if yyb226 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj226-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 {
yym249 := z.EncBinary()
_ = yym249
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep250 := !z.EncBinary()
yy2arr250 := z.EncBasicHandle().StructToArray
var yyq250 [16]bool
_, _, _ = yysep250, yyq250, yy2arr250
const yyr250 bool = false
yyq250[0] = x.GCEPersistentDisk != nil
yyq250[1] = x.AWSElasticBlockStore != nil
yyq250[2] = x.HostPath != nil
yyq250[3] = x.Glusterfs != nil
yyq250[4] = x.NFS != nil
yyq250[5] = x.RBD != nil
yyq250[6] = x.Quobyte != nil
yyq250[7] = x.ISCSI != nil
yyq250[8] = x.FlexVolume != nil
yyq250[9] = x.Cinder != nil
yyq250[10] = x.CephFS != nil
yyq250[11] = x.FC != nil
yyq250[12] = x.Flocker != nil
yyq250[13] = x.AzureFile != nil
yyq250[14] = x.VsphereVolume != nil
yyq250[15] = x.AzureDisk != nil
var yynn250 int
if yyr250 || yy2arr250 {
r.EncodeArrayStart(16)
} 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] {
if x.GCEPersistentDisk == nil {
r.EncodeNil()
} else {
x.GCEPersistentDisk.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq250[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 yyr250 || yy2arr250 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq250[1] {
if x.AWSElasticBlockStore == nil {
r.EncodeNil()
} else {
x.AWSElasticBlockStore.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq250[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 yyr250 || yy2arr250 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq250[2] {
if x.HostPath == nil {
r.EncodeNil()
} else {
x.HostPath.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq250[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 yyr250 || yy2arr250 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq250[3] {
if x.Glusterfs == nil {
r.EncodeNil()
} else {
x.Glusterfs.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq250[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 yyr250 || yy2arr250 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq250[4] {
if x.NFS == nil {
r.EncodeNil()
} else {
x.NFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq250[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 yyr250 || yy2arr250 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq250[5] {
if x.RBD == nil {
r.EncodeNil()
} else {
x.RBD.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq250[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 yyr250 || yy2arr250 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq250[6] {
if x.Quobyte == nil {
r.EncodeNil()
} else {
x.Quobyte.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq250[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("quobyte"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Quobyte == nil {
r.EncodeNil()
} else {
x.Quobyte.CodecEncodeSelf(e)
}
}
}
if yyr250 || yy2arr250 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq250[7] {
if x.ISCSI == nil {
r.EncodeNil()
} else {
x.ISCSI.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq250[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 yyr250 || yy2arr250 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq250[8] {
if x.FlexVolume == nil {
r.EncodeNil()
} else {
x.FlexVolume.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq250[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("flexVolume"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.FlexVolume == nil {
r.EncodeNil()
} else {
x.FlexVolume.CodecEncodeSelf(e)
}
}
}
if yyr250 || yy2arr250 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq250[9] {
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq250[9] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cinder"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
}
}
if yyr250 || yy2arr250 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq250[10] {
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq250[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cephfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
}
}
if yyr250 || yy2arr250 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq250[11] {
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq250[11] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fc"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
}
}
if yyr250 || yy2arr250 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq250[12] {
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq250[12] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("flocker"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
}
}
if yyr250 || yy2arr250 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq250[13] {
if x.AzureFile == nil {
r.EncodeNil()
} else {
x.AzureFile.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq250[13] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("azureFile"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.AzureFile == nil {
r.EncodeNil()
} else {
x.AzureFile.CodecEncodeSelf(e)
}
}
}
if yyr250 || yy2arr250 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq250[14] {
if x.VsphereVolume == nil {
r.EncodeNil()
} else {
x.VsphereVolume.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq250[14] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.VsphereVolume == nil {
r.EncodeNil()
} else {
x.VsphereVolume.CodecEncodeSelf(e)
}
}
}
if yyr250 || yy2arr250 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq250[15] {
if x.AzureDisk == nil {
r.EncodeNil()
} else {
x.AzureDisk.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq250[15] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("azureDisk"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.AzureDisk == nil {
r.EncodeNil()
} else {
x.AzureDisk.CodecEncodeSelf(e)
}
}
}
if yyr250 || yy2arr250 {
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
yym267 := z.DecBinary()
_ = yym267
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct268 := r.ContainerType()
if yyct268 == codecSelferValueTypeMap1234 {
yyl268 := r.ReadMapStart()
if yyl268 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl268, d)
}
} else if yyct268 == codecSelferValueTypeArray1234 {
yyl268 := r.ReadArrayStart()
if yyl268 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl268, 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 yys269Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys269Slc
var yyhl269 bool = l >= 0
for yyj269 := 0; ; yyj269++ {
if yyhl269 {
if yyj269 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys269Slc = r.DecodeBytes(yys269Slc, true, true)
yys269 := string(yys269Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys269 {
case "gcePersistentDisk":
if r.TryDecodeAsNil() {
if x.GCEPersistentDisk != nil {
x.GCEPersistentDisk = nil
}
} else {
if x.GCEPersistentDisk == nil {
x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
x.GCEPersistentDisk.CodecDecodeSelf(d)
}
case "awsElasticBlockStore":
if r.TryDecodeAsNil() {
if x.AWSElasticBlockStore != nil {
x.AWSElasticBlockStore = nil
}
} else {
if x.AWSElasticBlockStore == nil {
x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
}
x.AWSElasticBlockStore.CodecDecodeSelf(d)
}
case "hostPath":
if r.TryDecodeAsNil() {
if x.HostPath != nil {
x.HostPath = nil
}
} else {
if x.HostPath == nil {
x.HostPath = new(HostPathVolumeSource)
}
x.HostPath.CodecDecodeSelf(d)
}
case "glusterfs":
if r.TryDecodeAsNil() {
if x.Glusterfs != nil {
x.Glusterfs = nil
}
} else {
if x.Glusterfs == nil {
x.Glusterfs = new(GlusterfsVolumeSource)
}
x.Glusterfs.CodecDecodeSelf(d)
}
case "nfs":
if r.TryDecodeAsNil() {
if x.NFS != nil {
x.NFS = nil
}
} else {
if x.NFS == nil {
x.NFS = new(NFSVolumeSource)
}
x.NFS.CodecDecodeSelf(d)
}
case "rbd":
if r.TryDecodeAsNil() {
if x.RBD != nil {
x.RBD = nil
}
} else {
if x.RBD == nil {
x.RBD = new(RBDVolumeSource)
}
x.RBD.CodecDecodeSelf(d)
}
case "quobyte":
if r.TryDecodeAsNil() {
if x.Quobyte != nil {
x.Quobyte = nil
}
} else {
if x.Quobyte == nil {
x.Quobyte = new(QuobyteVolumeSource)
}
x.Quobyte.CodecDecodeSelf(d)
}
case "iscsi":
if r.TryDecodeAsNil() {
if x.ISCSI != nil {
x.ISCSI = nil
}
} else {
if x.ISCSI == nil {
x.ISCSI = new(ISCSIVolumeSource)
}
x.ISCSI.CodecDecodeSelf(d)
}
case "flexVolume":
if r.TryDecodeAsNil() {
if x.FlexVolume != nil {
x.FlexVolume = nil
}
} else {
if x.FlexVolume == nil {
x.FlexVolume = new(FlexVolumeSource)
}
x.FlexVolume.CodecDecodeSelf(d)
}
case "cinder":
if r.TryDecodeAsNil() {
if x.Cinder != nil {
x.Cinder = nil
}
} else {
if x.Cinder == nil {
x.Cinder = new(CinderVolumeSource)
}
x.Cinder.CodecDecodeSelf(d)
}
case "cephfs":
if r.TryDecodeAsNil() {
if x.CephFS != nil {
x.CephFS = nil
}
} else {
if x.CephFS == nil {
x.CephFS = new(CephFSVolumeSource)
}
x.CephFS.CodecDecodeSelf(d)
}
case "fc":
if r.TryDecodeAsNil() {
if x.FC != nil {
x.FC = nil
}
} else {
if x.FC == nil {
x.FC = new(FCVolumeSource)
}
x.FC.CodecDecodeSelf(d)
}
case "flocker":
if r.TryDecodeAsNil() {
if x.Flocker != nil {
x.Flocker = nil
}
} else {
if x.Flocker == nil {
x.Flocker = new(FlockerVolumeSource)
}
x.Flocker.CodecDecodeSelf(d)
}
case "azureFile":
if r.TryDecodeAsNil() {
if x.AzureFile != nil {
x.AzureFile = nil
}
} else {
if x.AzureFile == nil {
x.AzureFile = new(AzureFileVolumeSource)
}
x.AzureFile.CodecDecodeSelf(d)
}
case "vsphereVolume":
if r.TryDecodeAsNil() {
if x.VsphereVolume != nil {
x.VsphereVolume = nil
}
} else {
if x.VsphereVolume == nil {
x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
}
x.VsphereVolume.CodecDecodeSelf(d)
}
case "azureDisk":
if r.TryDecodeAsNil() {
if x.AzureDisk != nil {
x.AzureDisk = nil
}
} else {
if x.AzureDisk == nil {
x.AzureDisk = new(AzureDiskVolumeSource)
}
x.AzureDisk.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys269)
} // end switch yys269
} // end for yyj269
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 yyj286 int
var yyb286 bool
var yyhl286 bool = l >= 0
yyj286++
if yyhl286 {
yyb286 = yyj286 > l
} else {
yyb286 = r.CheckBreak()
}
if yyb286 {
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)
}
yyj286++
if yyhl286 {
yyb286 = yyj286 > l
} else {
yyb286 = r.CheckBreak()
}
if yyb286 {
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)
}
yyj286++
if yyhl286 {
yyb286 = yyj286 > l
} else {
yyb286 = r.CheckBreak()
}
if yyb286 {
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)
}
yyj286++
if yyhl286 {
yyb286 = yyj286 > l
} else {
yyb286 = r.CheckBreak()
}
if yyb286 {
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)
}
yyj286++
if yyhl286 {
yyb286 = yyj286 > l
} else {
yyb286 = r.CheckBreak()
}
if yyb286 {
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)
}
yyj286++
if yyhl286 {
yyb286 = yyj286 > l
} else {
yyb286 = r.CheckBreak()
}
if yyb286 {
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)
}
yyj286++
if yyhl286 {
yyb286 = yyj286 > l
} else {
yyb286 = r.CheckBreak()
}
if yyb286 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Quobyte != nil {
x.Quobyte = nil
}
} else {
if x.Quobyte == nil {
x.Quobyte = new(QuobyteVolumeSource)
}
x.Quobyte.CodecDecodeSelf(d)
}
yyj286++
if yyhl286 {
yyb286 = yyj286 > l
} else {
yyb286 = r.CheckBreak()
}
if yyb286 {
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)
}
yyj286++
if yyhl286 {
yyb286 = yyj286 > l
} else {
yyb286 = r.CheckBreak()
}
if yyb286 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.FlexVolume != nil {
x.FlexVolume = nil
}
} else {
if x.FlexVolume == nil {
x.FlexVolume = new(FlexVolumeSource)
}
x.FlexVolume.CodecDecodeSelf(d)
}
yyj286++
if yyhl286 {
yyb286 = yyj286 > l
} else {
yyb286 = r.CheckBreak()
}
if yyb286 {
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)
}
yyj286++
if yyhl286 {
yyb286 = yyj286 > l
} else {
yyb286 = r.CheckBreak()
}
if yyb286 {
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)
}
yyj286++
if yyhl286 {
yyb286 = yyj286 > l
} else {
yyb286 = r.CheckBreak()
}
if yyb286 {
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)
}
yyj286++
if yyhl286 {
yyb286 = yyj286 > l
} else {
yyb286 = r.CheckBreak()
}
if yyb286 {
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)
}
yyj286++
if yyhl286 {
yyb286 = yyj286 > l
} else {
yyb286 = r.CheckBreak()
}
if yyb286 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.AzureFile != nil {
x.AzureFile = nil
}
} else {
if x.AzureFile == nil {
x.AzureFile = new(AzureFileVolumeSource)
}
x.AzureFile.CodecDecodeSelf(d)
}
yyj286++
if yyhl286 {
yyb286 = yyj286 > l
} else {
yyb286 = r.CheckBreak()
}
if yyb286 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.VsphereVolume != nil {
x.VsphereVolume = nil
}
} else {
if x.VsphereVolume == nil {
x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
}
x.VsphereVolume.CodecDecodeSelf(d)
}
yyj286++
if yyhl286 {
yyb286 = yyj286 > l
} else {
yyb286 = r.CheckBreak()
}
if yyb286 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.AzureDisk != nil {
x.AzureDisk = nil
}
} else {
if x.AzureDisk == nil {
x.AzureDisk = new(AzureDiskVolumeSource)
}
x.AzureDisk.CodecDecodeSelf(d)
}
for {
yyj286++
if yyhl286 {
yyb286 = yyj286 > l
} else {
yyb286 = r.CheckBreak()
}
if yyb286 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj286-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 {
yym303 := z.EncBinary()
_ = yym303
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep304 := !z.EncBinary()
yy2arr304 := z.EncBasicHandle().StructToArray
var yyq304 [2]bool
_, _, _ = yysep304, yyq304, yy2arr304
const yyr304 bool = false
yyq304[1] = x.ReadOnly != false
var yynn304 int
if yyr304 || yy2arr304 {
r.EncodeArrayStart(2)
} else {
yynn304 = 1
for _, b := range yyq304 {
if b {
yynn304++
}
}
r.EncodeMapStart(yynn304)
yynn304 = 0
}
if yyr304 || yy2arr304 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym306 := z.EncBinary()
_ = yym306
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)
yym307 := z.EncBinary()
_ = yym307
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName))
}
}
if yyr304 || yy2arr304 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq304[1] {
yym309 := z.EncBinary()
_ = yym309
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq304[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym310 := z.EncBinary()
_ = yym310
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr304 || yy2arr304 {
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
yym311 := z.DecBinary()
_ = yym311
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct312 := r.ContainerType()
if yyct312 == codecSelferValueTypeMap1234 {
yyl312 := r.ReadMapStart()
if yyl312 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl312, d)
}
} else if yyct312 == codecSelferValueTypeArray1234 {
yyl312 := r.ReadArrayStart()
if yyl312 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl312, 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 yys313Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys313Slc
var yyhl313 bool = l >= 0
for yyj313 := 0; ; yyj313++ {
if yyhl313 {
if yyj313 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys313Slc = r.DecodeBytes(yys313Slc, true, true)
yys313 := string(yys313Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys313 {
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, yys313)
} // end switch yys313
} // end for yyj313
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 yyj316 int
var yyb316 bool
var yyhl316 bool = l >= 0
yyj316++
if yyhl316 {
yyb316 = yyj316 > l
} else {
yyb316 = r.CheckBreak()
}
if yyb316 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ClaimName = ""
} else {
x.ClaimName = string(r.DecodeString())
}
yyj316++
if yyhl316 {
yyb316 = yyj316 > l
} else {
yyb316 = r.CheckBreak()
}
if yyb316 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj316++
if yyhl316 {
yyb316 = yyj316 > l
} else {
yyb316 = r.CheckBreak()
}
if yyb316 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj316-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 {
yym319 := z.EncBinary()
_ = yym319
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep320 := !z.EncBinary()
yy2arr320 := z.EncBasicHandle().StructToArray
var yyq320 [5]bool
_, _, _ = yysep320, yyq320, yy2arr320
const yyr320 bool = false
yyq320[0] = x.Kind != ""
yyq320[1] = x.APIVersion != ""
yyq320[2] = true
yyq320[3] = true
yyq320[4] = true
var yynn320 int
if yyr320 || yy2arr320 {
r.EncodeArrayStart(5)
} else {
yynn320 = 0
for _, b := range yyq320 {
if b {
yynn320++
}
}
r.EncodeMapStart(yynn320)
yynn320 = 0
}
if yyr320 || yy2arr320 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq320[0] {
yym322 := z.EncBinary()
_ = yym322
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq320[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym323 := z.EncBinary()
_ = yym323
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr320 || yy2arr320 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq320[1] {
yym325 := z.EncBinary()
_ = yym325
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq320[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym326 := z.EncBinary()
_ = yym326
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr320 || yy2arr320 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq320[2] {
yy328 := &x.ObjectMeta
yy328.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq320[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy329 := &x.ObjectMeta
yy329.CodecEncodeSelf(e)
}
}
if yyr320 || yy2arr320 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq320[3] {
yy331 := &x.Spec
yy331.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq320[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy332 := &x.Spec
yy332.CodecEncodeSelf(e)
}
}
if yyr320 || yy2arr320 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq320[4] {
yy334 := &x.Status
yy334.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq320[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy335 := &x.Status
yy335.CodecEncodeSelf(e)
}
}
if yyr320 || yy2arr320 {
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
yym336 := z.DecBinary()
_ = yym336
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct337 := r.ContainerType()
if yyct337 == codecSelferValueTypeMap1234 {
yyl337 := r.ReadMapStart()
if yyl337 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl337, d)
}
} else if yyct337 == codecSelferValueTypeArray1234 {
yyl337 := r.ReadArrayStart()
if yyl337 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl337, 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 yys338Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys338Slc
var yyhl338 bool = l >= 0
for yyj338 := 0; ; yyj338++ {
if yyhl338 {
if yyj338 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys338Slc = r.DecodeBytes(yys338Slc, true, true)
yys338 := string(yys338Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys338 {
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 {
yyv341 := &x.ObjectMeta
yyv341.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = PersistentVolumeSpec{}
} else {
yyv342 := &x.Spec
yyv342.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = PersistentVolumeStatus{}
} else {
yyv343 := &x.Status
yyv343.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys338)
} // end switch yys338
} // end for yyj338
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 yyj344 int
var yyb344 bool
var yyhl344 bool = l >= 0
yyj344++
if yyhl344 {
yyb344 = yyj344 > l
} else {
yyb344 = r.CheckBreak()
}
if yyb344 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj344++
if yyhl344 {
yyb344 = yyj344 > l
} else {
yyb344 = r.CheckBreak()
}
if yyb344 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj344++
if yyhl344 {
yyb344 = yyj344 > l
} else {
yyb344 = r.CheckBreak()
}
if yyb344 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv347 := &x.ObjectMeta
yyv347.CodecDecodeSelf(d)
}
yyj344++
if yyhl344 {
yyb344 = yyj344 > l
} else {
yyb344 = r.CheckBreak()
}
if yyb344 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = PersistentVolumeSpec{}
} else {
yyv348 := &x.Spec
yyv348.CodecDecodeSelf(d)
}
yyj344++
if yyhl344 {
yyb344 = yyj344 > l
} else {
yyb344 = r.CheckBreak()
}
if yyb344 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = PersistentVolumeStatus{}
} else {
yyv349 := &x.Status
yyv349.CodecDecodeSelf(d)
}
for {
yyj344++
if yyhl344 {
yyb344 = yyj344 > l
} else {
yyb344 = r.CheckBreak()
}
if yyb344 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj344-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 {
yym350 := z.EncBinary()
_ = yym350
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep351 := !z.EncBinary()
yy2arr351 := z.EncBasicHandle().StructToArray
var yyq351 [20]bool
_, _, _ = yysep351, yyq351, yy2arr351
const yyr351 bool = false
yyq351[1] = x.PersistentVolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil
yyq351[2] = x.PersistentVolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil
yyq351[3] = x.PersistentVolumeSource.HostPath != nil && x.HostPath != nil
yyq351[4] = x.PersistentVolumeSource.Glusterfs != nil && x.Glusterfs != nil
yyq351[5] = x.PersistentVolumeSource.NFS != nil && x.NFS != nil
yyq351[6] = x.PersistentVolumeSource.RBD != nil && x.RBD != nil
yyq351[7] = x.PersistentVolumeSource.Quobyte != nil && x.Quobyte != nil
yyq351[8] = x.PersistentVolumeSource.ISCSI != nil && x.ISCSI != nil
yyq351[9] = x.PersistentVolumeSource.FlexVolume != nil && x.FlexVolume != nil
yyq351[10] = x.PersistentVolumeSource.Cinder != nil && x.Cinder != nil
yyq351[11] = x.PersistentVolumeSource.CephFS != nil && x.CephFS != nil
yyq351[12] = x.PersistentVolumeSource.FC != nil && x.FC != nil
yyq351[13] = x.PersistentVolumeSource.Flocker != nil && x.Flocker != nil
yyq351[14] = x.PersistentVolumeSource.AzureFile != nil && x.AzureFile != nil
yyq351[15] = x.PersistentVolumeSource.VsphereVolume != nil && x.VsphereVolume != nil
yyq351[16] = x.PersistentVolumeSource.AzureDisk != nil && x.AzureDisk != nil
yyq351[17] = len(x.AccessModes) != 0
yyq351[18] = x.ClaimRef != nil
yyq351[19] = x.PersistentVolumeReclaimPolicy != ""
var yynn351 int
if yyr351 || yy2arr351 {
r.EncodeArrayStart(20)
} else {
yynn351 = 1
for _, b := range yyq351 {
if b {
yynn351++
}
}
r.EncodeMapStart(yynn351)
yynn351 = 0
}
if yyr351 || yy2arr351 {
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 yyn353 bool
if x.PersistentVolumeSource.GCEPersistentDisk == nil {
yyn353 = true
goto LABEL353
}
LABEL353:
if yyr351 || yy2arr351 {
if yyn353 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq351[1] {
if x.GCEPersistentDisk == nil {
r.EncodeNil()
} else {
x.GCEPersistentDisk.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq351[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn353 {
r.EncodeNil()
} else {
if x.GCEPersistentDisk == nil {
r.EncodeNil()
} else {
x.GCEPersistentDisk.CodecEncodeSelf(e)
}
}
}
}
var yyn354 bool
if x.PersistentVolumeSource.AWSElasticBlockStore == nil {
yyn354 = true
goto LABEL354
}
LABEL354:
if yyr351 || yy2arr351 {
if yyn354 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq351[2] {
if x.AWSElasticBlockStore == nil {
r.EncodeNil()
} else {
x.AWSElasticBlockStore.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq351[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn354 {
r.EncodeNil()
} else {
if x.AWSElasticBlockStore == nil {
r.EncodeNil()
} else {
x.AWSElasticBlockStore.CodecEncodeSelf(e)
}
}
}
}
var yyn355 bool
if x.PersistentVolumeSource.HostPath == nil {
yyn355 = true
goto LABEL355
}
LABEL355:
if yyr351 || yy2arr351 {
if yyn355 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq351[3] {
if x.HostPath == nil {
r.EncodeNil()
} else {
x.HostPath.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq351[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostPath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn355 {
r.EncodeNil()
} else {
if x.HostPath == nil {
r.EncodeNil()
} else {
x.HostPath.CodecEncodeSelf(e)
}
}
}
}
var yyn356 bool
if x.PersistentVolumeSource.Glusterfs == nil {
yyn356 = true
goto LABEL356
}
LABEL356:
if yyr351 || yy2arr351 {
if yyn356 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq351[4] {
if x.Glusterfs == nil {
r.EncodeNil()
} else {
x.Glusterfs.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq351[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("glusterfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn356 {
r.EncodeNil()
} else {
if x.Glusterfs == nil {
r.EncodeNil()
} else {
x.Glusterfs.CodecEncodeSelf(e)
}
}
}
}
var yyn357 bool
if x.PersistentVolumeSource.NFS == nil {
yyn357 = true
goto LABEL357
}
LABEL357:
if yyr351 || yy2arr351 {
if yyn357 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq351[5] {
if x.NFS == nil {
r.EncodeNil()
} else {
x.NFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq351[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn357 {
r.EncodeNil()
} else {
if x.NFS == nil {
r.EncodeNil()
} else {
x.NFS.CodecEncodeSelf(e)
}
}
}
}
var yyn358 bool
if x.PersistentVolumeSource.RBD == nil {
yyn358 = true
goto LABEL358
}
LABEL358:
if yyr351 || yy2arr351 {
if yyn358 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq351[6] {
if x.RBD == nil {
r.EncodeNil()
} else {
x.RBD.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq351[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("rbd"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn358 {
r.EncodeNil()
} else {
if x.RBD == nil {
r.EncodeNil()
} else {
x.RBD.CodecEncodeSelf(e)
}
}
}
}
var yyn359 bool
if x.PersistentVolumeSource.Quobyte == nil {
yyn359 = true
goto LABEL359
}
LABEL359:
if yyr351 || yy2arr351 {
if yyn359 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq351[7] {
if x.Quobyte == nil {
r.EncodeNil()
} else {
x.Quobyte.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq351[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("quobyte"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn359 {
r.EncodeNil()
} else {
if x.Quobyte == nil {
r.EncodeNil()
} else {
x.Quobyte.CodecEncodeSelf(e)
}
}
}
}
var yyn360 bool
if x.PersistentVolumeSource.ISCSI == nil {
yyn360 = true
goto LABEL360
}
LABEL360:
if yyr351 || yy2arr351 {
if yyn360 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq351[8] {
if x.ISCSI == nil {
r.EncodeNil()
} else {
x.ISCSI.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq351[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("iscsi"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn360 {
r.EncodeNil()
} else {
if x.ISCSI == nil {
r.EncodeNil()
} else {
x.ISCSI.CodecEncodeSelf(e)
}
}
}
}
var yyn361 bool
if x.PersistentVolumeSource.FlexVolume == nil {
yyn361 = true
goto LABEL361
}
LABEL361:
if yyr351 || yy2arr351 {
if yyn361 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq351[9] {
if x.FlexVolume == nil {
r.EncodeNil()
} else {
x.FlexVolume.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq351[9] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("flexVolume"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn361 {
r.EncodeNil()
} else {
if x.FlexVolume == nil {
r.EncodeNil()
} else {
x.FlexVolume.CodecEncodeSelf(e)
}
}
}
}
var yyn362 bool
if x.PersistentVolumeSource.Cinder == nil {
yyn362 = true
goto LABEL362
}
LABEL362:
if yyr351 || yy2arr351 {
if yyn362 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq351[10] {
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq351[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cinder"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn362 {
r.EncodeNil()
} else {
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
}
}
}
var yyn363 bool
if x.PersistentVolumeSource.CephFS == nil {
yyn363 = true
goto LABEL363
}
LABEL363:
if yyr351 || yy2arr351 {
if yyn363 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq351[11] {
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq351[11] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cephfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn363 {
r.EncodeNil()
} else {
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
}
}
}
var yyn364 bool
if x.PersistentVolumeSource.FC == nil {
yyn364 = true
goto LABEL364
}
LABEL364:
if yyr351 || yy2arr351 {
if yyn364 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq351[12] {
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq351[12] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fc"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn364 {
r.EncodeNil()
} else {
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
}
}
}
var yyn365 bool
if x.PersistentVolumeSource.Flocker == nil {
yyn365 = true
goto LABEL365
}
LABEL365:
if yyr351 || yy2arr351 {
if yyn365 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq351[13] {
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq351[13] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("flocker"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn365 {
r.EncodeNil()
} else {
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
}
}
}
var yyn366 bool
if x.PersistentVolumeSource.AzureFile == nil {
yyn366 = true
goto LABEL366
}
LABEL366:
if yyr351 || yy2arr351 {
if yyn366 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq351[14] {
if x.AzureFile == nil {
r.EncodeNil()
} else {
x.AzureFile.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq351[14] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("azureFile"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn366 {
r.EncodeNil()
} else {
if x.AzureFile == nil {
r.EncodeNil()
} else {
x.AzureFile.CodecEncodeSelf(e)
}
}
}
}
var yyn367 bool
if x.PersistentVolumeSource.VsphereVolume == nil {
yyn367 = true
goto LABEL367
}
LABEL367:
if yyr351 || yy2arr351 {
if yyn367 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq351[15] {
if x.VsphereVolume == nil {
r.EncodeNil()
} else {
x.VsphereVolume.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq351[15] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn367 {
r.EncodeNil()
} else {
if x.VsphereVolume == nil {
r.EncodeNil()
} else {
x.VsphereVolume.CodecEncodeSelf(e)
}
}
}
}
var yyn368 bool
if x.PersistentVolumeSource.AzureDisk == nil {
yyn368 = true
goto LABEL368
}
LABEL368:
if yyr351 || yy2arr351 {
if yyn368 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq351[16] {
if x.AzureDisk == nil {
r.EncodeNil()
} else {
x.AzureDisk.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq351[16] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("azureDisk"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn368 {
r.EncodeNil()
} else {
if x.AzureDisk == nil {
r.EncodeNil()
} else {
x.AzureDisk.CodecEncodeSelf(e)
}
}
}
}
if yyr351 || yy2arr351 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq351[17] {
if x.AccessModes == nil {
r.EncodeNil()
} else {
yym370 := z.EncBinary()
_ = yym370
if false {
} else {
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq351[17] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("accessModes"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.AccessModes == nil {
r.EncodeNil()
} else {
yym371 := z.EncBinary()
_ = yym371
if false {
} else {
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
}
}
}
}
if yyr351 || yy2arr351 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq351[18] {
if x.ClaimRef == nil {
r.EncodeNil()
} else {
x.ClaimRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq351[18] {
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 yyr351 || yy2arr351 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq351[19] {
x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq351[19] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeReclaimPolicy"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e)
}
}
if yyr351 || yy2arr351 {
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
yym374 := z.DecBinary()
_ = yym374
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct375 := r.ContainerType()
if yyct375 == codecSelferValueTypeMap1234 {
yyl375 := r.ReadMapStart()
if yyl375 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl375, d)
}
} else if yyct375 == codecSelferValueTypeArray1234 {
yyl375 := r.ReadArrayStart()
if yyl375 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl375, 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 yys376Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys376Slc
var yyhl376 bool = l >= 0
for yyj376 := 0; ; yyj376++ {
if yyhl376 {
if yyj376 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys376Slc = r.DecodeBytes(yys376Slc, true, true)
yys376 := string(yys376Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys376 {
case "capacity":
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv377 := &x.Capacity
yyv377.CodecDecodeSelf(d)
}
case "gcePersistentDisk":
if x.PersistentVolumeSource.GCEPersistentDisk == nil {
x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
if r.TryDecodeAsNil() {
if x.GCEPersistentDisk != nil {
x.GCEPersistentDisk = nil
}
} else {
if x.GCEPersistentDisk == nil {
x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
x.GCEPersistentDisk.CodecDecodeSelf(d)
}
case "awsElasticBlockStore":
if x.PersistentVolumeSource.AWSElasticBlockStore == nil {
x.PersistentVolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
}
if r.TryDecodeAsNil() {
if x.AWSElasticBlockStore != nil {
x.AWSElasticBlockStore = nil
}
} else {
if x.AWSElasticBlockStore == nil {
x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
}
x.AWSElasticBlockStore.CodecDecodeSelf(d)
}
case "hostPath":
if x.PersistentVolumeSource.HostPath == nil {
x.PersistentVolumeSource.HostPath = new(HostPathVolumeSource)
}
if r.TryDecodeAsNil() {
if x.HostPath != nil {
x.HostPath = nil
}
} else {
if x.HostPath == nil {
x.HostPath = new(HostPathVolumeSource)
}
x.HostPath.CodecDecodeSelf(d)
}
case "glusterfs":
if x.PersistentVolumeSource.Glusterfs == nil {
x.PersistentVolumeSource.Glusterfs = new(GlusterfsVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Glusterfs != nil {
x.Glusterfs = nil
}
} else {
if x.Glusterfs == nil {
x.Glusterfs = new(GlusterfsVolumeSource)
}
x.Glusterfs.CodecDecodeSelf(d)
}
case "nfs":
if x.PersistentVolumeSource.NFS == nil {
x.PersistentVolumeSource.NFS = new(NFSVolumeSource)
}
if r.TryDecodeAsNil() {
if x.NFS != nil {
x.NFS = nil
}
} else {
if x.NFS == nil {
x.NFS = new(NFSVolumeSource)
}
x.NFS.CodecDecodeSelf(d)
}
case "rbd":
if x.PersistentVolumeSource.RBD == nil {
x.PersistentVolumeSource.RBD = new(RBDVolumeSource)
}
if r.TryDecodeAsNil() {
if x.RBD != nil {
x.RBD = nil
}
} else {
if x.RBD == nil {
x.RBD = new(RBDVolumeSource)
}
x.RBD.CodecDecodeSelf(d)
}
case "quobyte":
if x.PersistentVolumeSource.Quobyte == nil {
x.PersistentVolumeSource.Quobyte = new(QuobyteVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Quobyte != nil {
x.Quobyte = nil
}
} else {
if x.Quobyte == nil {
x.Quobyte = new(QuobyteVolumeSource)
}
x.Quobyte.CodecDecodeSelf(d)
}
case "iscsi":
if x.PersistentVolumeSource.ISCSI == nil {
x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource)
}
if r.TryDecodeAsNil() {
if x.ISCSI != nil {
x.ISCSI = nil
}
} else {
if x.ISCSI == nil {
x.ISCSI = new(ISCSIVolumeSource)
}
x.ISCSI.CodecDecodeSelf(d)
}
case "flexVolume":
if x.PersistentVolumeSource.FlexVolume == nil {
x.PersistentVolumeSource.FlexVolume = new(FlexVolumeSource)
}
if r.TryDecodeAsNil() {
if x.FlexVolume != nil {
x.FlexVolume = nil
}
} else {
if x.FlexVolume == nil {
x.FlexVolume = new(FlexVolumeSource)
}
x.FlexVolume.CodecDecodeSelf(d)
}
case "cinder":
if x.PersistentVolumeSource.Cinder == nil {
x.PersistentVolumeSource.Cinder = new(CinderVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Cinder != nil {
x.Cinder = nil
}
} else {
if x.Cinder == nil {
x.Cinder = new(CinderVolumeSource)
}
x.Cinder.CodecDecodeSelf(d)
}
case "cephfs":
if x.PersistentVolumeSource.CephFS == nil {
x.PersistentVolumeSource.CephFS = new(CephFSVolumeSource)
}
if r.TryDecodeAsNil() {
if x.CephFS != nil {
x.CephFS = nil
}
} else {
if x.CephFS == nil {
x.CephFS = new(CephFSVolumeSource)
}
x.CephFS.CodecDecodeSelf(d)
}
case "fc":
if x.PersistentVolumeSource.FC == nil {
x.PersistentVolumeSource.FC = new(FCVolumeSource)
}
if r.TryDecodeAsNil() {
if x.FC != nil {
x.FC = nil
}
} else {
if x.FC == nil {
x.FC = new(FCVolumeSource)
}
x.FC.CodecDecodeSelf(d)
}
case "flocker":
if x.PersistentVolumeSource.Flocker == nil {
x.PersistentVolumeSource.Flocker = new(FlockerVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Flocker != nil {
x.Flocker = nil
}
} else {
if x.Flocker == nil {
x.Flocker = new(FlockerVolumeSource)
}
x.Flocker.CodecDecodeSelf(d)
}
case "azureFile":
if x.PersistentVolumeSource.AzureFile == nil {
x.PersistentVolumeSource.AzureFile = new(AzureFileVolumeSource)
}
if r.TryDecodeAsNil() {
if x.AzureFile != nil {
x.AzureFile = nil
}
} else {
if x.AzureFile == nil {
x.AzureFile = new(AzureFileVolumeSource)
}
x.AzureFile.CodecDecodeSelf(d)
}
case "vsphereVolume":
if x.PersistentVolumeSource.VsphereVolume == nil {
x.PersistentVolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
}
if r.TryDecodeAsNil() {
if x.VsphereVolume != nil {
x.VsphereVolume = nil
}
} else {
if x.VsphereVolume == nil {
x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
}
x.VsphereVolume.CodecDecodeSelf(d)
}
case "azureDisk":
if x.PersistentVolumeSource.AzureDisk == nil {
x.PersistentVolumeSource.AzureDisk = new(AzureDiskVolumeSource)
}
if r.TryDecodeAsNil() {
if x.AzureDisk != nil {
x.AzureDisk = nil
}
} else {
if x.AzureDisk == nil {
x.AzureDisk = new(AzureDiskVolumeSource)
}
x.AzureDisk.CodecDecodeSelf(d)
}
case "accessModes":
if r.TryDecodeAsNil() {
x.AccessModes = nil
} else {
yyv394 := &x.AccessModes
yym395 := z.DecBinary()
_ = yym395
if false {
} else {
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv394), 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, yys376)
} // end switch yys376
} // end for yyj376
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 yyj398 int
var yyb398 bool
var yyhl398 bool = l >= 0
yyj398++
if yyhl398 {
yyb398 = yyj398 > l
} else {
yyb398 = r.CheckBreak()
}
if yyb398 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv399 := &x.Capacity
yyv399.CodecDecodeSelf(d)
}
if x.PersistentVolumeSource.GCEPersistentDisk == nil {
x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
yyj398++
if yyhl398 {
yyb398 = yyj398 > l
} else {
yyb398 = r.CheckBreak()
}
if yyb398 {
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)
}
yyj398++
if yyhl398 {
yyb398 = yyj398 > l
} else {
yyb398 = r.CheckBreak()
}
if yyb398 {
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)
}
yyj398++
if yyhl398 {
yyb398 = yyj398 > l
} else {
yyb398 = r.CheckBreak()
}
if yyb398 {
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)
}
yyj398++
if yyhl398 {
yyb398 = yyj398 > l
} else {
yyb398 = r.CheckBreak()
}
if yyb398 {
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)
}
yyj398++
if yyhl398 {
yyb398 = yyj398 > l
} else {
yyb398 = r.CheckBreak()
}
if yyb398 {
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)
}
yyj398++
if yyhl398 {
yyb398 = yyj398 > l
} else {
yyb398 = r.CheckBreak()
}
if yyb398 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.RBD != nil {
x.RBD = nil
}
} else {
if x.RBD == nil {
x.RBD = new(RBDVolumeSource)
}
x.RBD.CodecDecodeSelf(d)
}
if x.PersistentVolumeSource.Quobyte == nil {
x.PersistentVolumeSource.Quobyte = new(QuobyteVolumeSource)
}
yyj398++
if yyhl398 {
yyb398 = yyj398 > l
} else {
yyb398 = r.CheckBreak()
}
if yyb398 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Quobyte != nil {
x.Quobyte = nil
}
} else {
if x.Quobyte == nil {
x.Quobyte = new(QuobyteVolumeSource)
}
x.Quobyte.CodecDecodeSelf(d)
}
if x.PersistentVolumeSource.ISCSI == nil {
x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource)
}
yyj398++
if yyhl398 {
yyb398 = yyj398 > l
} else {
yyb398 = r.CheckBreak()
}
if yyb398 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.ISCSI != nil {
x.ISCSI = nil
}
} else {
if x.ISCSI == nil {
x.ISCSI = new(ISCSIVolumeSource)
}
x.ISCSI.CodecDecodeSelf(d)
}
if x.PersistentVolumeSource.FlexVolume == nil {
x.PersistentVolumeSource.FlexVolume = new(FlexVolumeSource)
}
yyj398++
if yyhl398 {
yyb398 = yyj398 > l
} else {
yyb398 = r.CheckBreak()
}
if yyb398 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.FlexVolume != nil {
x.FlexVolume = nil
}
} else {
if x.FlexVolume == nil {
x.FlexVolume = new(FlexVolumeSource)
}
x.FlexVolume.CodecDecodeSelf(d)
}
if x.PersistentVolumeSource.Cinder == nil {
x.PersistentVolumeSource.Cinder = new(CinderVolumeSource)
}
yyj398++
if yyhl398 {
yyb398 = yyj398 > l
} else {
yyb398 = r.CheckBreak()
}
if yyb398 {
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)
}
yyj398++
if yyhl398 {
yyb398 = yyj398 > l
} else {
yyb398 = r.CheckBreak()
}
if yyb398 {
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)
}
yyj398++
if yyhl398 {
yyb398 = yyj398 > l
} else {
yyb398 = r.CheckBreak()
}
if yyb398 {
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)
}
yyj398++
if yyhl398 {
yyb398 = yyj398 > l
} else {
yyb398 = r.CheckBreak()
}
if yyb398 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Flocker != nil {
x.Flocker = nil
}
} else {
if x.Flocker == nil {
x.Flocker = new(FlockerVolumeSource)
}
x.Flocker.CodecDecodeSelf(d)
}
if x.PersistentVolumeSource.AzureFile == nil {
x.PersistentVolumeSource.AzureFile = new(AzureFileVolumeSource)
}
yyj398++
if yyhl398 {
yyb398 = yyj398 > l
} else {
yyb398 = r.CheckBreak()
}
if yyb398 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.AzureFile != nil {
x.AzureFile = nil
}
} else {
if x.AzureFile == nil {
x.AzureFile = new(AzureFileVolumeSource)
}
x.AzureFile.CodecDecodeSelf(d)
}
if x.PersistentVolumeSource.VsphereVolume == nil {
x.PersistentVolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
}
yyj398++
if yyhl398 {
yyb398 = yyj398 > l
} else {
yyb398 = r.CheckBreak()
}
if yyb398 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.VsphereVolume != nil {
x.VsphereVolume = nil
}
} else {
if x.VsphereVolume == nil {
x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
}
x.VsphereVolume.CodecDecodeSelf(d)
}
if x.PersistentVolumeSource.AzureDisk == nil {
x.PersistentVolumeSource.AzureDisk = new(AzureDiskVolumeSource)
}
yyj398++
if yyhl398 {
yyb398 = yyj398 > l
} else {
yyb398 = r.CheckBreak()
}
if yyb398 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.AzureDisk != nil {
x.AzureDisk = nil
}
} else {
if x.AzureDisk == nil {
x.AzureDisk = new(AzureDiskVolumeSource)
}
x.AzureDisk.CodecDecodeSelf(d)
}
yyj398++
if yyhl398 {
yyb398 = yyj398 > l
} else {
yyb398 = r.CheckBreak()
}
if yyb398 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.AccessModes = nil
} else {
yyv416 := &x.AccessModes
yym417 := z.DecBinary()
_ = yym417
if false {
} else {
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv416), d)
}
}
yyj398++
if yyhl398 {
yyb398 = yyj398 > l
} else {
yyb398 = r.CheckBreak()
}
if yyb398 {
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)
}
yyj398++
if yyhl398 {
yyb398 = yyj398 > l
} else {
yyb398 = r.CheckBreak()
}
if yyb398 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PersistentVolumeReclaimPolicy = ""
} else {
x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString())
}
for {
yyj398++
if yyhl398 {
yyb398 = yyj398 > l
} else {
yyb398 = r.CheckBreak()
}
if yyb398 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj398-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x PersistentVolumeReclaimPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym420 := z.EncBinary()
_ = yym420
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
yym421 := z.DecBinary()
_ = yym421
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 {
yym422 := z.EncBinary()
_ = yym422
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep423 := !z.EncBinary()
yy2arr423 := z.EncBasicHandle().StructToArray
var yyq423 [3]bool
_, _, _ = yysep423, yyq423, yy2arr423
const yyr423 bool = false
yyq423[0] = x.Phase != ""
yyq423[1] = x.Message != ""
yyq423[2] = x.Reason != ""
var yynn423 int
if yyr423 || yy2arr423 {
r.EncodeArrayStart(3)
} else {
yynn423 = 0
for _, b := range yyq423 {
if b {
yynn423++
}
}
r.EncodeMapStart(yynn423)
yynn423 = 0
}
if yyr423 || yy2arr423 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq423[0] {
x.Phase.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq423[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("phase"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Phase.CodecEncodeSelf(e)
}
}
if yyr423 || yy2arr423 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq423[1] {
yym426 := z.EncBinary()
_ = yym426
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq423[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym427 := z.EncBinary()
_ = yym427
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr423 || yy2arr423 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq423[2] {
yym429 := z.EncBinary()
_ = yym429
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq423[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym430 := z.EncBinary()
_ = yym430
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr423 || yy2arr423 {
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
yym431 := z.DecBinary()
_ = yym431
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct432 := r.ContainerType()
if yyct432 == codecSelferValueTypeMap1234 {
yyl432 := r.ReadMapStart()
if yyl432 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl432, d)
}
} else if yyct432 == codecSelferValueTypeArray1234 {
yyl432 := r.ReadArrayStart()
if yyl432 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl432, 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 yys433Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys433Slc
var yyhl433 bool = l >= 0
for yyj433 := 0; ; yyj433++ {
if yyhl433 {
if yyj433 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys433Slc = r.DecodeBytes(yys433Slc, true, true)
yys433 := string(yys433Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys433 {
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, yys433)
} // end switch yys433
} // end for yyj433
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 yyj437 int
var yyb437 bool
var yyhl437 bool = l >= 0
yyj437++
if yyhl437 {
yyb437 = yyj437 > l
} else {
yyb437 = r.CheckBreak()
}
if yyb437 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = PersistentVolumePhase(r.DecodeString())
}
yyj437++
if yyhl437 {
yyb437 = yyj437 > l
} else {
yyb437 = r.CheckBreak()
}
if yyb437 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
yyj437++
if yyhl437 {
yyb437 = yyj437 > l
} else {
yyb437 = r.CheckBreak()
}
if yyb437 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
for {
yyj437++
if yyhl437 {
yyb437 = yyj437 > l
} else {
yyb437 = r.CheckBreak()
}
if yyb437 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj437-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 {
yym441 := z.EncBinary()
_ = yym441
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep442 := !z.EncBinary()
yy2arr442 := z.EncBasicHandle().StructToArray
var yyq442 [4]bool
_, _, _ = yysep442, yyq442, yy2arr442
const yyr442 bool = false
yyq442[0] = x.Kind != ""
yyq442[1] = x.APIVersion != ""
yyq442[2] = true
var yynn442 int
if yyr442 || yy2arr442 {
r.EncodeArrayStart(4)
} else {
yynn442 = 1
for _, b := range yyq442 {
if b {
yynn442++
}
}
r.EncodeMapStart(yynn442)
yynn442 = 0
}
if yyr442 || yy2arr442 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq442[0] {
yym444 := z.EncBinary()
_ = yym444
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq442[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym445 := z.EncBinary()
_ = yym445
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr442 || yy2arr442 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq442[1] {
yym447 := z.EncBinary()
_ = yym447
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq442[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym448 := z.EncBinary()
_ = yym448
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr442 || yy2arr442 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq442[2] {
yy450 := &x.ListMeta
yym451 := z.EncBinary()
_ = yym451
if false {
} else if z.HasExtensions() && z.EncExt(yy450) {
} else {
z.EncFallback(yy450)
}
} else {
r.EncodeNil()
}
} else {
if yyq442[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy452 := &x.ListMeta
yym453 := z.EncBinary()
_ = yym453
if false {
} else if z.HasExtensions() && z.EncExt(yy452) {
} else {
z.EncFallback(yy452)
}
}
}
if yyr442 || yy2arr442 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym455 := z.EncBinary()
_ = yym455
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 {
yym456 := z.EncBinary()
_ = yym456
if false {
} else {
h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e)
}
}
}
if yyr442 || yy2arr442 {
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
yym457 := z.DecBinary()
_ = yym457
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct458 := r.ContainerType()
if yyct458 == codecSelferValueTypeMap1234 {
yyl458 := r.ReadMapStart()
if yyl458 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl458, d)
}
} else if yyct458 == codecSelferValueTypeArray1234 {
yyl458 := r.ReadArrayStart()
if yyl458 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl458, 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 yys459Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys459Slc
var yyhl459 bool = l >= 0
for yyj459 := 0; ; yyj459++ {
if yyhl459 {
if yyj459 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys459Slc = r.DecodeBytes(yys459Slc, true, true)
yys459 := string(yys459Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys459 {
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 {
yyv462 := &x.ListMeta
yym463 := z.DecBinary()
_ = yym463
if false {
} else if z.HasExtensions() && z.DecExt(yyv462) {
} else {
z.DecFallback(yyv462, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv464 := &x.Items
yym465 := z.DecBinary()
_ = yym465
if false {
} else {
h.decSlicePersistentVolume((*[]PersistentVolume)(yyv464), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys459)
} // end switch yys459
} // end for yyj459
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 yyj466 int
var yyb466 bool
var yyhl466 bool = l >= 0
yyj466++
if yyhl466 {
yyb466 = yyj466 > l
} else {
yyb466 = r.CheckBreak()
}
if yyb466 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj466++
if yyhl466 {
yyb466 = yyj466 > l
} else {
yyb466 = r.CheckBreak()
}
if yyb466 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj466++
if yyhl466 {
yyb466 = yyj466 > l
} else {
yyb466 = r.CheckBreak()
}
if yyb466 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv469 := &x.ListMeta
yym470 := z.DecBinary()
_ = yym470
if false {
} else if z.HasExtensions() && z.DecExt(yyv469) {
} else {
z.DecFallback(yyv469, false)
}
}
yyj466++
if yyhl466 {
yyb466 = yyj466 > l
} else {
yyb466 = r.CheckBreak()
}
if yyb466 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv471 := &x.Items
yym472 := z.DecBinary()
_ = yym472
if false {
} else {
h.decSlicePersistentVolume((*[]PersistentVolume)(yyv471), d)
}
}
for {
yyj466++
if yyhl466 {
yyb466 = yyj466 > l
} else {
yyb466 = r.CheckBreak()
}
if yyb466 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj466-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 {
yym473 := z.EncBinary()
_ = yym473
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep474 := !z.EncBinary()
yy2arr474 := z.EncBasicHandle().StructToArray
var yyq474 [5]bool
_, _, _ = yysep474, yyq474, yy2arr474
const yyr474 bool = false
yyq474[0] = x.Kind != ""
yyq474[1] = x.APIVersion != ""
yyq474[2] = true
yyq474[3] = true
yyq474[4] = true
var yynn474 int
if yyr474 || yy2arr474 {
r.EncodeArrayStart(5)
} else {
yynn474 = 0
for _, b := range yyq474 {
if b {
yynn474++
}
}
r.EncodeMapStart(yynn474)
yynn474 = 0
}
if yyr474 || yy2arr474 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq474[0] {
yym476 := z.EncBinary()
_ = yym476
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq474[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym477 := z.EncBinary()
_ = yym477
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr474 || yy2arr474 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq474[1] {
yym479 := z.EncBinary()
_ = yym479
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq474[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym480 := z.EncBinary()
_ = yym480
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr474 || yy2arr474 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq474[2] {
yy482 := &x.ObjectMeta
yy482.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq474[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy483 := &x.ObjectMeta
yy483.CodecEncodeSelf(e)
}
}
if yyr474 || yy2arr474 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq474[3] {
yy485 := &x.Spec
yy485.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq474[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy486 := &x.Spec
yy486.CodecEncodeSelf(e)
}
}
if yyr474 || yy2arr474 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq474[4] {
yy488 := &x.Status
yy488.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq474[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy489 := &x.Status
yy489.CodecEncodeSelf(e)
}
}
if yyr474 || yy2arr474 {
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
yym490 := z.DecBinary()
_ = yym490
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct491 := r.ContainerType()
if yyct491 == codecSelferValueTypeMap1234 {
yyl491 := r.ReadMapStart()
if yyl491 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl491, d)
}
} else if yyct491 == codecSelferValueTypeArray1234 {
yyl491 := r.ReadArrayStart()
if yyl491 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl491, 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 yys492Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys492Slc
var yyhl492 bool = l >= 0
for yyj492 := 0; ; yyj492++ {
if yyhl492 {
if yyj492 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys492Slc = r.DecodeBytes(yys492Slc, true, true)
yys492 := string(yys492Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys492 {
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 {
yyv495 := &x.ObjectMeta
yyv495.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = PersistentVolumeClaimSpec{}
} else {
yyv496 := &x.Spec
yyv496.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = PersistentVolumeClaimStatus{}
} else {
yyv497 := &x.Status
yyv497.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys492)
} // end switch yys492
} // end for yyj492
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 yyj498 int
var yyb498 bool
var yyhl498 bool = l >= 0
yyj498++
if yyhl498 {
yyb498 = yyj498 > l
} else {
yyb498 = r.CheckBreak()
}
if yyb498 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj498++
if yyhl498 {
yyb498 = yyj498 > l
} else {
yyb498 = r.CheckBreak()
}
if yyb498 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj498++
if yyhl498 {
yyb498 = yyj498 > l
} else {
yyb498 = r.CheckBreak()
}
if yyb498 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv501 := &x.ObjectMeta
yyv501.CodecDecodeSelf(d)
}
yyj498++
if yyhl498 {
yyb498 = yyj498 > l
} else {
yyb498 = r.CheckBreak()
}
if yyb498 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = PersistentVolumeClaimSpec{}
} else {
yyv502 := &x.Spec
yyv502.CodecDecodeSelf(d)
}
yyj498++
if yyhl498 {
yyb498 = yyj498 > l
} else {
yyb498 = r.CheckBreak()
}
if yyb498 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = PersistentVolumeClaimStatus{}
} else {
yyv503 := &x.Status
yyv503.CodecDecodeSelf(d)
}
for {
yyj498++
if yyhl498 {
yyb498 = yyj498 > l
} else {
yyb498 = r.CheckBreak()
}
if yyb498 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj498-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 {
yym504 := z.EncBinary()
_ = yym504
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep505 := !z.EncBinary()
yy2arr505 := z.EncBasicHandle().StructToArray
var yyq505 [4]bool
_, _, _ = yysep505, yyq505, yy2arr505
const yyr505 bool = false
yyq505[0] = x.Kind != ""
yyq505[1] = x.APIVersion != ""
yyq505[2] = true
var yynn505 int
if yyr505 || yy2arr505 {
r.EncodeArrayStart(4)
} else {
yynn505 = 1
for _, b := range yyq505 {
if b {
yynn505++
}
}
r.EncodeMapStart(yynn505)
yynn505 = 0
}
if yyr505 || yy2arr505 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq505[0] {
yym507 := z.EncBinary()
_ = yym507
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq505[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym508 := z.EncBinary()
_ = yym508
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr505 || yy2arr505 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq505[1] {
yym510 := z.EncBinary()
_ = yym510
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq505[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym511 := z.EncBinary()
_ = yym511
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr505 || yy2arr505 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq505[2] {
yy513 := &x.ListMeta
yym514 := z.EncBinary()
_ = yym514
if false {
} else if z.HasExtensions() && z.EncExt(yy513) {
} else {
z.EncFallback(yy513)
}
} else {
r.EncodeNil()
}
} else {
if yyq505[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy515 := &x.ListMeta
yym516 := z.EncBinary()
_ = yym516
if false {
} else if z.HasExtensions() && z.EncExt(yy515) {
} else {
z.EncFallback(yy515)
}
}
}
if yyr505 || yy2arr505 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym518 := z.EncBinary()
_ = yym518
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 {
yym519 := z.EncBinary()
_ = yym519
if false {
} else {
h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e)
}
}
}
if yyr505 || yy2arr505 {
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
yym520 := z.DecBinary()
_ = yym520
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct521 := r.ContainerType()
if yyct521 == codecSelferValueTypeMap1234 {
yyl521 := r.ReadMapStart()
if yyl521 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl521, d)
}
} else if yyct521 == codecSelferValueTypeArray1234 {
yyl521 := r.ReadArrayStart()
if yyl521 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl521, 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 yys522Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys522Slc
var yyhl522 bool = l >= 0
for yyj522 := 0; ; yyj522++ {
if yyhl522 {
if yyj522 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys522Slc = r.DecodeBytes(yys522Slc, true, true)
yys522 := string(yys522Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys522 {
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 {
yyv525 := &x.ListMeta
yym526 := z.DecBinary()
_ = yym526
if false {
} else if z.HasExtensions() && z.DecExt(yyv525) {
} else {
z.DecFallback(yyv525, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv527 := &x.Items
yym528 := z.DecBinary()
_ = yym528
if false {
} else {
h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv527), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys522)
} // end switch yys522
} // end for yyj522
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 yyj529 int
var yyb529 bool
var yyhl529 bool = l >= 0
yyj529++
if yyhl529 {
yyb529 = yyj529 > l
} else {
yyb529 = r.CheckBreak()
}
if yyb529 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj529++
if yyhl529 {
yyb529 = yyj529 > l
} else {
yyb529 = r.CheckBreak()
}
if yyb529 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj529++
if yyhl529 {
yyb529 = yyj529 > l
} else {
yyb529 = r.CheckBreak()
}
if yyb529 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv532 := &x.ListMeta
yym533 := z.DecBinary()
_ = yym533
if false {
} else if z.HasExtensions() && z.DecExt(yyv532) {
} else {
z.DecFallback(yyv532, false)
}
}
yyj529++
if yyhl529 {
yyb529 = yyj529 > l
} else {
yyb529 = r.CheckBreak()
}
if yyb529 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv534 := &x.Items
yym535 := z.DecBinary()
_ = yym535
if false {
} else {
h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv534), d)
}
}
for {
yyj529++
if yyhl529 {
yyb529 = yyj529 > l
} else {
yyb529 = r.CheckBreak()
}
if yyb529 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj529-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym536 := z.EncBinary()
_ = yym536
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep537 := !z.EncBinary()
yy2arr537 := z.EncBasicHandle().StructToArray
var yyq537 [4]bool
_, _, _ = yysep537, yyq537, yy2arr537
const yyr537 bool = false
yyq537[0] = len(x.AccessModes) != 0
yyq537[1] = x.Selector != nil
yyq537[2] = true
yyq537[3] = x.VolumeName != ""
var yynn537 int
if yyr537 || yy2arr537 {
r.EncodeArrayStart(4)
} else {
yynn537 = 0
for _, b := range yyq537 {
if b {
yynn537++
}
}
r.EncodeMapStart(yynn537)
yynn537 = 0
}
if yyr537 || yy2arr537 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq537[0] {
if x.AccessModes == nil {
r.EncodeNil()
} else {
yym539 := z.EncBinary()
_ = yym539
if false {
} else {
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq537[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("accessModes"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.AccessModes == nil {
r.EncodeNil()
} else {
yym540 := z.EncBinary()
_ = yym540
if false {
} else {
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
}
}
}
}
if yyr537 || yy2arr537 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq537[1] {
if x.Selector == nil {
r.EncodeNil()
} else {
yym542 := z.EncBinary()
_ = yym542
if false {
} else if z.HasExtensions() && z.EncExt(x.Selector) {
} else {
z.EncFallback(x.Selector)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq537[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("selector"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Selector == nil {
r.EncodeNil()
} else {
yym543 := z.EncBinary()
_ = yym543
if false {
} else if z.HasExtensions() && z.EncExt(x.Selector) {
} else {
z.EncFallback(x.Selector)
}
}
}
}
if yyr537 || yy2arr537 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq537[2] {
yy545 := &x.Resources
yy545.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq537[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("resources"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy546 := &x.Resources
yy546.CodecEncodeSelf(e)
}
}
if yyr537 || yy2arr537 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq537[3] {
yym548 := z.EncBinary()
_ = yym548
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq537[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("volumeName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym549 := z.EncBinary()
_ = yym549
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName))
}
}
}
if yyr537 || yy2arr537 {
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
yym550 := z.DecBinary()
_ = yym550
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct551 := r.ContainerType()
if yyct551 == codecSelferValueTypeMap1234 {
yyl551 := r.ReadMapStart()
if yyl551 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl551, d)
}
} else if yyct551 == codecSelferValueTypeArray1234 {
yyl551 := r.ReadArrayStart()
if yyl551 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl551, 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 yys552Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys552Slc
var yyhl552 bool = l >= 0
for yyj552 := 0; ; yyj552++ {
if yyhl552 {
if yyj552 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys552Slc = r.DecodeBytes(yys552Slc, true, true)
yys552 := string(yys552Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys552 {
case "accessModes":
if r.TryDecodeAsNil() {
x.AccessModes = nil
} else {
yyv553 := &x.AccessModes
yym554 := z.DecBinary()
_ = yym554
if false {
} else {
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv553), d)
}
}
case "selector":
if r.TryDecodeAsNil() {
if x.Selector != nil {
x.Selector = nil
}
} else {
if x.Selector == nil {
x.Selector = new(pkg2_unversioned.LabelSelector)
}
yym556 := z.DecBinary()
_ = yym556
if false {
} else if z.HasExtensions() && z.DecExt(x.Selector) {
} else {
z.DecFallback(x.Selector, false)
}
}
case "resources":
if r.TryDecodeAsNil() {
x.Resources = ResourceRequirements{}
} else {
yyv557 := &x.Resources
yyv557.CodecDecodeSelf(d)
}
case "volumeName":
if r.TryDecodeAsNil() {
x.VolumeName = ""
} else {
x.VolumeName = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys552)
} // end switch yys552
} // end for yyj552
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 yyj559 int
var yyb559 bool
var yyhl559 bool = l >= 0
yyj559++
if yyhl559 {
yyb559 = yyj559 > l
} else {
yyb559 = r.CheckBreak()
}
if yyb559 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.AccessModes = nil
} else {
yyv560 := &x.AccessModes
yym561 := z.DecBinary()
_ = yym561
if false {
} else {
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv560), d)
}
}
yyj559++
if yyhl559 {
yyb559 = yyj559 > l
} else {
yyb559 = r.CheckBreak()
}
if yyb559 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Selector != nil {
x.Selector = nil
}
} else {
if x.Selector == nil {
x.Selector = new(pkg2_unversioned.LabelSelector)
}
yym563 := z.DecBinary()
_ = yym563
if false {
} else if z.HasExtensions() && z.DecExt(x.Selector) {
} else {
z.DecFallback(x.Selector, false)
}
}
yyj559++
if yyhl559 {
yyb559 = yyj559 > l
} else {
yyb559 = r.CheckBreak()
}
if yyb559 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Resources = ResourceRequirements{}
} else {
yyv564 := &x.Resources
yyv564.CodecDecodeSelf(d)
}
yyj559++
if yyhl559 {
yyb559 = yyj559 > l
} else {
yyb559 = r.CheckBreak()
}
if yyb559 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.VolumeName = ""
} else {
x.VolumeName = string(r.DecodeString())
}
for {
yyj559++
if yyhl559 {
yyb559 = yyj559 > l
} else {
yyb559 = r.CheckBreak()
}
if yyb559 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj559-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 {
yym566 := z.EncBinary()
_ = yym566
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep567 := !z.EncBinary()
yy2arr567 := z.EncBasicHandle().StructToArray
var yyq567 [3]bool
_, _, _ = yysep567, yyq567, yy2arr567
const yyr567 bool = false
yyq567[0] = x.Phase != ""
yyq567[1] = len(x.AccessModes) != 0
yyq567[2] = len(x.Capacity) != 0
var yynn567 int
if yyr567 || yy2arr567 {
r.EncodeArrayStart(3)
} else {
yynn567 = 0
for _, b := range yyq567 {
if b {
yynn567++
}
}
r.EncodeMapStart(yynn567)
yynn567 = 0
}
if yyr567 || yy2arr567 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq567[0] {
x.Phase.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq567[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("phase"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Phase.CodecEncodeSelf(e)
}
}
if yyr567 || yy2arr567 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq567[1] {
if x.AccessModes == nil {
r.EncodeNil()
} else {
yym570 := z.EncBinary()
_ = yym570
if false {
} else {
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq567[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("accessModes"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.AccessModes == nil {
r.EncodeNil()
} else {
yym571 := z.EncBinary()
_ = yym571
if false {
} else {
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
}
}
}
}
if yyr567 || yy2arr567 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq567[2] {
if x.Capacity == nil {
r.EncodeNil()
} else {
x.Capacity.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq567[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 yyr567 || yy2arr567 {
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
yym573 := z.DecBinary()
_ = yym573
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct574 := r.ContainerType()
if yyct574 == codecSelferValueTypeMap1234 {
yyl574 := r.ReadMapStart()
if yyl574 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl574, d)
}
} else if yyct574 == codecSelferValueTypeArray1234 {
yyl574 := r.ReadArrayStart()
if yyl574 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl574, 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 yys575Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys575Slc
var yyhl575 bool = l >= 0
for yyj575 := 0; ; yyj575++ {
if yyhl575 {
if yyj575 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys575Slc = r.DecodeBytes(yys575Slc, true, true)
yys575 := string(yys575Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys575 {
case "phase":
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = PersistentVolumeClaimPhase(r.DecodeString())
}
case "accessModes":
if r.TryDecodeAsNil() {
x.AccessModes = nil
} else {
yyv577 := &x.AccessModes
yym578 := z.DecBinary()
_ = yym578
if false {
} else {
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv577), d)
}
}
case "capacity":
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv579 := &x.Capacity
yyv579.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys575)
} // end switch yys575
} // end for yyj575
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 yyj580 int
var yyb580 bool
var yyhl580 bool = l >= 0
yyj580++
if yyhl580 {
yyb580 = yyj580 > l
} else {
yyb580 = r.CheckBreak()
}
if yyb580 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = PersistentVolumeClaimPhase(r.DecodeString())
}
yyj580++
if yyhl580 {
yyb580 = yyj580 > l
} else {
yyb580 = r.CheckBreak()
}
if yyb580 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.AccessModes = nil
} else {
yyv582 := &x.AccessModes
yym583 := z.DecBinary()
_ = yym583
if false {
} else {
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv582), d)
}
}
yyj580++
if yyhl580 {
yyb580 = yyj580 > l
} else {
yyb580 = r.CheckBreak()
}
if yyb580 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv584 := &x.Capacity
yyv584.CodecDecodeSelf(d)
}
for {
yyj580++
if yyhl580 {
yyb580 = yyj580 > l
} else {
yyb580 = r.CheckBreak()
}
if yyb580 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj580-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x PersistentVolumeAccessMode) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym585 := z.EncBinary()
_ = yym585
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
yym586 := z.DecBinary()
_ = yym586
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
yym587 := z.EncBinary()
_ = yym587
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
yym588 := z.DecBinary()
_ = yym588
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
yym589 := z.EncBinary()
_ = yym589
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
yym590 := z.DecBinary()
_ = yym590
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 {
yym591 := z.EncBinary()
_ = yym591
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep592 := !z.EncBinary()
yy2arr592 := z.EncBasicHandle().StructToArray
var yyq592 [1]bool
_, _, _ = yysep592, yyq592, yy2arr592
const yyr592 bool = false
var yynn592 int
if yyr592 || yy2arr592 {
r.EncodeArrayStart(1)
} else {
yynn592 = 1
for _, b := range yyq592 {
if b {
yynn592++
}
}
r.EncodeMapStart(yynn592)
yynn592 = 0
}
if yyr592 || yy2arr592 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym594 := z.EncBinary()
_ = yym594
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)
yym595 := z.EncBinary()
_ = yym595
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr592 || yy2arr592 {
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
yym596 := z.DecBinary()
_ = yym596
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct597 := r.ContainerType()
if yyct597 == codecSelferValueTypeMap1234 {
yyl597 := r.ReadMapStart()
if yyl597 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl597, d)
}
} else if yyct597 == codecSelferValueTypeArray1234 {
yyl597 := r.ReadArrayStart()
if yyl597 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl597, 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 yys598Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys598Slc
var yyhl598 bool = l >= 0
for yyj598 := 0; ; yyj598++ {
if yyhl598 {
if yyj598 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys598Slc = r.DecodeBytes(yys598Slc, true, true)
yys598 := string(yys598Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys598 {
case "path":
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys598)
} // end switch yys598
} // end for yyj598
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 yyj600 int
var yyb600 bool
var yyhl600 bool = l >= 0
yyj600++
if yyhl600 {
yyb600 = yyj600 > l
} else {
yyb600 = r.CheckBreak()
}
if yyb600 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
for {
yyj600++
if yyhl600 {
yyb600 = yyj600 > l
} else {
yyb600 = r.CheckBreak()
}
if yyb600 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj600-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 {
yym602 := z.EncBinary()
_ = yym602
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep603 := !z.EncBinary()
yy2arr603 := z.EncBasicHandle().StructToArray
var yyq603 [1]bool
_, _, _ = yysep603, yyq603, yy2arr603
const yyr603 bool = false
yyq603[0] = x.Medium != ""
var yynn603 int
if yyr603 || yy2arr603 {
r.EncodeArrayStart(1)
} else {
yynn603 = 0
for _, b := range yyq603 {
if b {
yynn603++
}
}
r.EncodeMapStart(yynn603)
yynn603 = 0
}
if yyr603 || yy2arr603 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq603[0] {
x.Medium.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq603[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("medium"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Medium.CodecEncodeSelf(e)
}
}
if yyr603 || yy2arr603 {
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
yym605 := z.DecBinary()
_ = yym605
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct606 := r.ContainerType()
if yyct606 == codecSelferValueTypeMap1234 {
yyl606 := r.ReadMapStart()
if yyl606 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl606, d)
}
} else if yyct606 == codecSelferValueTypeArray1234 {
yyl606 := r.ReadArrayStart()
if yyl606 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl606, 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 yys607Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys607Slc
var yyhl607 bool = l >= 0
for yyj607 := 0; ; yyj607++ {
if yyhl607 {
if yyj607 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys607Slc = r.DecodeBytes(yys607Slc, true, true)
yys607 := string(yys607Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys607 {
case "medium":
if r.TryDecodeAsNil() {
x.Medium = ""
} else {
x.Medium = StorageMedium(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys607)
} // end switch yys607
} // end for yyj607
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 yyj609 int
var yyb609 bool
var yyhl609 bool = l >= 0
yyj609++
if yyhl609 {
yyb609 = yyj609 > l
} else {
yyb609 = r.CheckBreak()
}
if yyb609 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Medium = ""
} else {
x.Medium = StorageMedium(r.DecodeString())
}
for {
yyj609++
if yyhl609 {
yyb609 = yyj609 > l
} else {
yyb609 = r.CheckBreak()
}
if yyb609 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj609-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x StorageMedium) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym611 := z.EncBinary()
_ = yym611
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
yym612 := z.DecBinary()
_ = yym612
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
yym613 := z.EncBinary()
_ = yym613
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
yym614 := z.DecBinary()
_ = yym614
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 {
yym615 := z.EncBinary()
_ = yym615
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep616 := !z.EncBinary()
yy2arr616 := z.EncBasicHandle().StructToArray
var yyq616 [4]bool
_, _, _ = yysep616, yyq616, yy2arr616
const yyr616 bool = false
yyq616[1] = x.FSType != ""
yyq616[2] = x.Partition != 0
yyq616[3] = x.ReadOnly != false
var yynn616 int
if yyr616 || yy2arr616 {
r.EncodeArrayStart(4)
} else {
yynn616 = 1
for _, b := range yyq616 {
if b {
yynn616++
}
}
r.EncodeMapStart(yynn616)
yynn616 = 0
}
if yyr616 || yy2arr616 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym618 := z.EncBinary()
_ = yym618
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)
yym619 := z.EncBinary()
_ = yym619
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PDName))
}
}
if yyr616 || yy2arr616 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq616[1] {
yym621 := z.EncBinary()
_ = yym621
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq616[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym622 := z.EncBinary()
_ = yym622
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
}
if yyr616 || yy2arr616 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq616[2] {
yym624 := z.EncBinary()
_ = yym624
if false {
} else {
r.EncodeInt(int64(x.Partition))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq616[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("partition"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym625 := z.EncBinary()
_ = yym625
if false {
} else {
r.EncodeInt(int64(x.Partition))
}
}
}
if yyr616 || yy2arr616 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq616[3] {
yym627 := z.EncBinary()
_ = yym627
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq616[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym628 := z.EncBinary()
_ = yym628
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr616 || yy2arr616 {
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
yym629 := z.DecBinary()
_ = yym629
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct630 := r.ContainerType()
if yyct630 == codecSelferValueTypeMap1234 {
yyl630 := r.ReadMapStart()
if yyl630 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl630, d)
}
} else if yyct630 == codecSelferValueTypeArray1234 {
yyl630 := r.ReadArrayStart()
if yyl630 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl630, 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 yys631Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys631Slc
var yyhl631 bool = l >= 0
for yyj631 := 0; ; yyj631++ {
if yyhl631 {
if yyj631 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys631Slc = r.DecodeBytes(yys631Slc, true, true)
yys631 := string(yys631Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys631 {
case "pdName":
if r.TryDecodeAsNil() {
x.PDName = ""
} else {
x.PDName = string(r.DecodeString())
}
case "fsType":
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
case "partition":
if r.TryDecodeAsNil() {
x.Partition = 0
} else {
x.Partition = int32(r.DecodeInt(32))
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys631)
} // end switch yys631
} // end for yyj631
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 yyj636 int
var yyb636 bool
var yyhl636 bool = l >= 0
yyj636++
if yyhl636 {
yyb636 = yyj636 > l
} else {
yyb636 = r.CheckBreak()
}
if yyb636 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PDName = ""
} else {
x.PDName = string(r.DecodeString())
}
yyj636++
if yyhl636 {
yyb636 = yyj636 > l
} else {
yyb636 = r.CheckBreak()
}
if yyb636 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
yyj636++
if yyhl636 {
yyb636 = yyj636 > l
} else {
yyb636 = r.CheckBreak()
}
if yyb636 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Partition = 0
} else {
x.Partition = int32(r.DecodeInt(32))
}
yyj636++
if yyhl636 {
yyb636 = yyj636 > l
} else {
yyb636 = r.CheckBreak()
}
if yyb636 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj636++
if yyhl636 {
yyb636 = yyj636 > l
} else {
yyb636 = r.CheckBreak()
}
if yyb636 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj636-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 {
yym641 := z.EncBinary()
_ = yym641
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep642 := !z.EncBinary()
yy2arr642 := z.EncBasicHandle().StructToArray
var yyq642 [6]bool
_, _, _ = yysep642, yyq642, yy2arr642
const yyr642 bool = false
yyq642[0] = x.TargetPortal != ""
yyq642[1] = x.IQN != ""
yyq642[2] = x.Lun != 0
yyq642[3] = x.ISCSIInterface != ""
yyq642[4] = x.FSType != ""
yyq642[5] = x.ReadOnly != false
var yynn642 int
if yyr642 || yy2arr642 {
r.EncodeArrayStart(6)
} else {
yynn642 = 0
for _, b := range yyq642 {
if b {
yynn642++
}
}
r.EncodeMapStart(yynn642)
yynn642 = 0
}
if yyr642 || yy2arr642 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq642[0] {
yym644 := z.EncBinary()
_ = yym644
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq642[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("targetPortal"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym645 := z.EncBinary()
_ = yym645
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal))
}
}
}
if yyr642 || yy2arr642 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq642[1] {
yym647 := z.EncBinary()
_ = yym647
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.IQN))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq642[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("iqn"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym648 := z.EncBinary()
_ = yym648
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.IQN))
}
}
}
if yyr642 || yy2arr642 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq642[2] {
yym650 := z.EncBinary()
_ = yym650
if false {
} else {
r.EncodeInt(int64(x.Lun))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq642[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lun"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym651 := z.EncBinary()
_ = yym651
if false {
} else {
r.EncodeInt(int64(x.Lun))
}
}
}
if yyr642 || yy2arr642 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq642[3] {
yym653 := z.EncBinary()
_ = yym653
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq642[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("iscsiInterface"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym654 := z.EncBinary()
_ = yym654
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface))
}
}
}
if yyr642 || yy2arr642 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq642[4] {
yym656 := z.EncBinary()
_ = yym656
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq642[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym657 := z.EncBinary()
_ = yym657
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
}
if yyr642 || yy2arr642 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq642[5] {
yym659 := z.EncBinary()
_ = yym659
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq642[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym660 := z.EncBinary()
_ = yym660
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr642 || yy2arr642 {
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
yym661 := z.DecBinary()
_ = yym661
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct662 := r.ContainerType()
if yyct662 == codecSelferValueTypeMap1234 {
yyl662 := r.ReadMapStart()
if yyl662 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl662, d)
}
} else if yyct662 == codecSelferValueTypeArray1234 {
yyl662 := r.ReadArrayStart()
if yyl662 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl662, 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 yys663Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys663Slc
var yyhl663 bool = l >= 0
for yyj663 := 0; ; yyj663++ {
if yyhl663 {
if yyj663 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys663Slc = r.DecodeBytes(yys663Slc, true, true)
yys663 := string(yys663Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys663 {
case "targetPortal":
if r.TryDecodeAsNil() {
x.TargetPortal = ""
} else {
x.TargetPortal = string(r.DecodeString())
}
case "iqn":
if r.TryDecodeAsNil() {
x.IQN = ""
} else {
x.IQN = string(r.DecodeString())
}
case "lun":
if r.TryDecodeAsNil() {
x.Lun = 0
} else {
x.Lun = int32(r.DecodeInt(32))
}
case "iscsiInterface":
if r.TryDecodeAsNil() {
x.ISCSIInterface = ""
} else {
x.ISCSIInterface = string(r.DecodeString())
}
case "fsType":
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys663)
} // end switch yys663
} // end for yyj663
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 yyj670 int
var yyb670 bool
var yyhl670 bool = l >= 0
yyj670++
if yyhl670 {
yyb670 = yyj670 > l
} else {
yyb670 = r.CheckBreak()
}
if yyb670 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TargetPortal = ""
} else {
x.TargetPortal = string(r.DecodeString())
}
yyj670++
if yyhl670 {
yyb670 = yyj670 > l
} else {
yyb670 = r.CheckBreak()
}
if yyb670 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.IQN = ""
} else {
x.IQN = string(r.DecodeString())
}
yyj670++
if yyhl670 {
yyb670 = yyj670 > l
} else {
yyb670 = r.CheckBreak()
}
if yyb670 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Lun = 0
} else {
x.Lun = int32(r.DecodeInt(32))
}
yyj670++
if yyhl670 {
yyb670 = yyj670 > l
} else {
yyb670 = r.CheckBreak()
}
if yyb670 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ISCSIInterface = ""
} else {
x.ISCSIInterface = string(r.DecodeString())
}
yyj670++
if yyhl670 {
yyb670 = yyj670 > l
} else {
yyb670 = r.CheckBreak()
}
if yyb670 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
yyj670++
if yyhl670 {
yyb670 = yyj670 > l
} else {
yyb670 = r.CheckBreak()
}
if yyb670 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj670++
if yyhl670 {
yyb670 = yyj670 > l
} else {
yyb670 = r.CheckBreak()
}
if yyb670 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj670-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 {
yym677 := z.EncBinary()
_ = yym677
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep678 := !z.EncBinary()
yy2arr678 := z.EncBasicHandle().StructToArray
var yyq678 [4]bool
_, _, _ = yysep678, yyq678, yy2arr678
const yyr678 bool = false
yyq678[2] = x.FSType != ""
yyq678[3] = x.ReadOnly != false
var yynn678 int
if yyr678 || yy2arr678 {
r.EncodeArrayStart(4)
} else {
yynn678 = 2
for _, b := range yyq678 {
if b {
yynn678++
}
}
r.EncodeMapStart(yynn678)
yynn678 = 0
}
if yyr678 || yy2arr678 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.TargetWWNs == nil {
r.EncodeNil()
} else {
yym680 := z.EncBinary()
_ = yym680
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 {
yym681 := z.EncBinary()
_ = yym681
if false {
} else {
z.F.EncSliceStringV(x.TargetWWNs, false, e)
}
}
}
if yyr678 || yy2arr678 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Lun == nil {
r.EncodeNil()
} else {
yy683 := *x.Lun
yym684 := z.EncBinary()
_ = yym684
if false {
} else {
r.EncodeInt(int64(yy683))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lun"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Lun == nil {
r.EncodeNil()
} else {
yy685 := *x.Lun
yym686 := z.EncBinary()
_ = yym686
if false {
} else {
r.EncodeInt(int64(yy685))
}
}
}
if yyr678 || yy2arr678 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq678[2] {
yym688 := z.EncBinary()
_ = yym688
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq678[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym689 := z.EncBinary()
_ = yym689
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
}
if yyr678 || yy2arr678 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq678[3] {
yym691 := z.EncBinary()
_ = yym691
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq678[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym692 := z.EncBinary()
_ = yym692
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr678 || yy2arr678 {
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
yym693 := z.DecBinary()
_ = yym693
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct694 := r.ContainerType()
if yyct694 == codecSelferValueTypeMap1234 {
yyl694 := r.ReadMapStart()
if yyl694 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl694, d)
}
} else if yyct694 == codecSelferValueTypeArray1234 {
yyl694 := r.ReadArrayStart()
if yyl694 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl694, 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 yys695Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys695Slc
var yyhl695 bool = l >= 0
for yyj695 := 0; ; yyj695++ {
if yyhl695 {
if yyj695 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys695Slc = r.DecodeBytes(yys695Slc, true, true)
yys695 := string(yys695Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys695 {
case "targetWWNs":
if r.TryDecodeAsNil() {
x.TargetWWNs = nil
} else {
yyv696 := &x.TargetWWNs
yym697 := z.DecBinary()
_ = yym697
if false {
} else {
z.F.DecSliceStringX(yyv696, false, d)
}
}
case "lun":
if r.TryDecodeAsNil() {
if x.Lun != nil {
x.Lun = nil
}
} else {
if x.Lun == nil {
x.Lun = new(int32)
}
yym699 := z.DecBinary()
_ = yym699
if false {
} else {
*((*int32)(x.Lun)) = int32(r.DecodeInt(32))
}
}
case "fsType":
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys695)
} // end switch yys695
} // end for yyj695
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 yyj702 int
var yyb702 bool
var yyhl702 bool = l >= 0
yyj702++
if yyhl702 {
yyb702 = yyj702 > l
} else {
yyb702 = r.CheckBreak()
}
if yyb702 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TargetWWNs = nil
} else {
yyv703 := &x.TargetWWNs
yym704 := z.DecBinary()
_ = yym704
if false {
} else {
z.F.DecSliceStringX(yyv703, false, d)
}
}
yyj702++
if yyhl702 {
yyb702 = yyj702 > l
} else {
yyb702 = r.CheckBreak()
}
if yyb702 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Lun != nil {
x.Lun = nil
}
} else {
if x.Lun == nil {
x.Lun = new(int32)
}
yym706 := z.DecBinary()
_ = yym706
if false {
} else {
*((*int32)(x.Lun)) = int32(r.DecodeInt(32))
}
}
yyj702++
if yyhl702 {
yyb702 = yyj702 > l
} else {
yyb702 = r.CheckBreak()
}
if yyb702 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
yyj702++
if yyhl702 {
yyb702 = yyj702 > l
} else {
yyb702 = r.CheckBreak()
}
if yyb702 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj702++
if yyhl702 {
yyb702 = yyj702 > l
} else {
yyb702 = r.CheckBreak()
}
if yyb702 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj702-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym709 := z.EncBinary()
_ = yym709
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep710 := !z.EncBinary()
yy2arr710 := z.EncBasicHandle().StructToArray
var yyq710 [5]bool
_, _, _ = yysep710, yyq710, yy2arr710
const yyr710 bool = false
yyq710[1] = x.FSType != ""
yyq710[2] = x.SecretRef != nil
yyq710[3] = x.ReadOnly != false
yyq710[4] = len(x.Options) != 0
var yynn710 int
if yyr710 || yy2arr710 {
r.EncodeArrayStart(5)
} else {
yynn710 = 1
for _, b := range yyq710 {
if b {
yynn710++
}
}
r.EncodeMapStart(yynn710)
yynn710 = 0
}
if yyr710 || yy2arr710 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym712 := z.EncBinary()
_ = yym712
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Driver))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("driver"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym713 := z.EncBinary()
_ = yym713
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Driver))
}
}
if yyr710 || yy2arr710 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq710[1] {
yym715 := z.EncBinary()
_ = yym715
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq710[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym716 := z.EncBinary()
_ = yym716
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
}
if yyr710 || yy2arr710 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq710[2] {
if x.SecretRef == nil {
r.EncodeNil()
} else {
x.SecretRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq710[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("secretRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.SecretRef == nil {
r.EncodeNil()
} else {
x.SecretRef.CodecEncodeSelf(e)
}
}
}
if yyr710 || yy2arr710 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq710[3] {
yym719 := z.EncBinary()
_ = yym719
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq710[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym720 := z.EncBinary()
_ = yym720
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr710 || yy2arr710 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq710[4] {
if x.Options == nil {
r.EncodeNil()
} else {
yym722 := z.EncBinary()
_ = yym722
if false {
} else {
z.F.EncMapStringStringV(x.Options, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq710[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("options"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Options == nil {
r.EncodeNil()
} else {
yym723 := z.EncBinary()
_ = yym723
if false {
} else {
z.F.EncMapStringStringV(x.Options, false, e)
}
}
}
}
if yyr710 || yy2arr710 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *FlexVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym724 := z.DecBinary()
_ = yym724
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct725 := r.ContainerType()
if yyct725 == codecSelferValueTypeMap1234 {
yyl725 := r.ReadMapStart()
if yyl725 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl725, d)
}
} else if yyct725 == codecSelferValueTypeArray1234 {
yyl725 := r.ReadArrayStart()
if yyl725 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl725, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *FlexVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys726Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys726Slc
var yyhl726 bool = l >= 0
for yyj726 := 0; ; yyj726++ {
if yyhl726 {
if yyj726 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys726Slc = r.DecodeBytes(yys726Slc, true, true)
yys726 := string(yys726Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys726 {
case "driver":
if r.TryDecodeAsNil() {
x.Driver = ""
} else {
x.Driver = string(r.DecodeString())
}
case "fsType":
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
case "secretRef":
if r.TryDecodeAsNil() {
if x.SecretRef != nil {
x.SecretRef = nil
}
} else {
if x.SecretRef == nil {
x.SecretRef = new(LocalObjectReference)
}
x.SecretRef.CodecDecodeSelf(d)
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
case "options":
if r.TryDecodeAsNil() {
x.Options = nil
} else {
yyv731 := &x.Options
yym732 := z.DecBinary()
_ = yym732
if false {
} else {
z.F.DecMapStringStringX(yyv731, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys726)
} // end switch yys726
} // end for yyj726
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj733 int
var yyb733 bool
var yyhl733 bool = l >= 0
yyj733++
if yyhl733 {
yyb733 = yyj733 > l
} else {
yyb733 = r.CheckBreak()
}
if yyb733 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Driver = ""
} else {
x.Driver = string(r.DecodeString())
}
yyj733++
if yyhl733 {
yyb733 = yyj733 > l
} else {
yyb733 = r.CheckBreak()
}
if yyb733 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
yyj733++
if yyhl733 {
yyb733 = yyj733 > l
} else {
yyb733 = r.CheckBreak()
}
if yyb733 {
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)
}
yyj733++
if yyhl733 {
yyb733 = yyj733 > l
} else {
yyb733 = r.CheckBreak()
}
if yyb733 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
yyj733++
if yyhl733 {
yyb733 = yyj733 > l
} else {
yyb733 = r.CheckBreak()
}
if yyb733 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Options = nil
} else {
yyv738 := &x.Options
yym739 := z.DecBinary()
_ = yym739
if false {
} else {
z.F.DecMapStringStringX(yyv738, false, d)
}
}
for {
yyj733++
if yyhl733 {
yyb733 = yyj733 > l
} else {
yyb733 = r.CheckBreak()
}
if yyb733 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj733-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 {
yym740 := z.EncBinary()
_ = yym740
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep741 := !z.EncBinary()
yy2arr741 := z.EncBasicHandle().StructToArray
var yyq741 [4]bool
_, _, _ = yysep741, yyq741, yy2arr741
const yyr741 bool = false
yyq741[1] = x.FSType != ""
yyq741[2] = x.Partition != 0
yyq741[3] = x.ReadOnly != false
var yynn741 int
if yyr741 || yy2arr741 {
r.EncodeArrayStart(4)
} else {
yynn741 = 1
for _, b := range yyq741 {
if b {
yynn741++
}
}
r.EncodeMapStart(yynn741)
yynn741 = 0
}
if yyr741 || yy2arr741 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym743 := z.EncBinary()
_ = yym743
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)
yym744 := z.EncBinary()
_ = yym744
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID))
}
}
if yyr741 || yy2arr741 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq741[1] {
yym746 := z.EncBinary()
_ = yym746
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq741[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym747 := z.EncBinary()
_ = yym747
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
}
if yyr741 || yy2arr741 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq741[2] {
yym749 := z.EncBinary()
_ = yym749
if false {
} else {
r.EncodeInt(int64(x.Partition))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq741[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("partition"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym750 := z.EncBinary()
_ = yym750
if false {
} else {
r.EncodeInt(int64(x.Partition))
}
}
}
if yyr741 || yy2arr741 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq741[3] {
yym752 := z.EncBinary()
_ = yym752
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq741[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym753 := z.EncBinary()
_ = yym753
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr741 || yy2arr741 {
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
yym754 := z.DecBinary()
_ = yym754
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct755 := r.ContainerType()
if yyct755 == codecSelferValueTypeMap1234 {
yyl755 := r.ReadMapStart()
if yyl755 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl755, d)
}
} else if yyct755 == codecSelferValueTypeArray1234 {
yyl755 := r.ReadArrayStart()
if yyl755 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl755, 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 yys756Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys756Slc
var yyhl756 bool = l >= 0
for yyj756 := 0; ; yyj756++ {
if yyhl756 {
if yyj756 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys756Slc = r.DecodeBytes(yys756Slc, true, true)
yys756 := string(yys756Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys756 {
case "volumeID":
if r.TryDecodeAsNil() {
x.VolumeID = ""
} else {
x.VolumeID = string(r.DecodeString())
}
case "fsType":
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
case "partition":
if r.TryDecodeAsNil() {
x.Partition = 0
} else {
x.Partition = int32(r.DecodeInt(32))
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys756)
} // end switch yys756
} // end for yyj756
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 yyj761 int
var yyb761 bool
var yyhl761 bool = l >= 0
yyj761++
if yyhl761 {
yyb761 = yyj761 > l
} else {
yyb761 = r.CheckBreak()
}
if yyb761 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.VolumeID = ""
} else {
x.VolumeID = string(r.DecodeString())
}
yyj761++
if yyhl761 {
yyb761 = yyj761 > l
} else {
yyb761 = r.CheckBreak()
}
if yyb761 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
yyj761++
if yyhl761 {
yyb761 = yyj761 > l
} else {
yyb761 = r.CheckBreak()
}
if yyb761 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Partition = 0
} else {
x.Partition = int32(r.DecodeInt(32))
}
yyj761++
if yyhl761 {
yyb761 = yyj761 > l
} else {
yyb761 = r.CheckBreak()
}
if yyb761 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj761++
if yyhl761 {
yyb761 = yyj761 > l
} else {
yyb761 = r.CheckBreak()
}
if yyb761 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj761-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 {
yym766 := z.EncBinary()
_ = yym766
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep767 := !z.EncBinary()
yy2arr767 := z.EncBasicHandle().StructToArray
var yyq767 [3]bool
_, _, _ = yysep767, yyq767, yy2arr767
const yyr767 bool = false
yyq767[1] = x.Revision != ""
yyq767[2] = x.Directory != ""
var yynn767 int
if yyr767 || yy2arr767 {
r.EncodeArrayStart(3)
} else {
yynn767 = 1
for _, b := range yyq767 {
if b {
yynn767++
}
}
r.EncodeMapStart(yynn767)
yynn767 = 0
}
if yyr767 || yy2arr767 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym769 := z.EncBinary()
_ = yym769
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)
yym770 := z.EncBinary()
_ = yym770
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Repository))
}
}
if yyr767 || yy2arr767 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq767[1] {
yym772 := z.EncBinary()
_ = yym772
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Revision))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq767[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("revision"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym773 := z.EncBinary()
_ = yym773
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Revision))
}
}
}
if yyr767 || yy2arr767 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq767[2] {
yym775 := z.EncBinary()
_ = yym775
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Directory))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq767[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("directory"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym776 := z.EncBinary()
_ = yym776
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Directory))
}
}
}
if yyr767 || yy2arr767 {
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
yym777 := z.DecBinary()
_ = yym777
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct778 := r.ContainerType()
if yyct778 == codecSelferValueTypeMap1234 {
yyl778 := r.ReadMapStart()
if yyl778 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl778, d)
}
} else if yyct778 == codecSelferValueTypeArray1234 {
yyl778 := r.ReadArrayStart()
if yyl778 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl778, 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 yys779Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys779Slc
var yyhl779 bool = l >= 0
for yyj779 := 0; ; yyj779++ {
if yyhl779 {
if yyj779 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys779Slc = r.DecodeBytes(yys779Slc, true, true)
yys779 := string(yys779Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys779 {
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, yys779)
} // end switch yys779
} // end for yyj779
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 yyj783 int
var yyb783 bool
var yyhl783 bool = l >= 0
yyj783++
if yyhl783 {
yyb783 = yyj783 > l
} else {
yyb783 = r.CheckBreak()
}
if yyb783 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Repository = ""
} else {
x.Repository = string(r.DecodeString())
}
yyj783++
if yyhl783 {
yyb783 = yyj783 > l
} else {
yyb783 = r.CheckBreak()
}
if yyb783 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Revision = ""
} else {
x.Revision = string(r.DecodeString())
}
yyj783++
if yyhl783 {
yyb783 = yyj783 > l
} else {
yyb783 = r.CheckBreak()
}
if yyb783 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Directory = ""
} else {
x.Directory = string(r.DecodeString())
}
for {
yyj783++
if yyhl783 {
yyb783 = yyj783 > l
} else {
yyb783 = r.CheckBreak()
}
if yyb783 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj783-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 {
yym787 := z.EncBinary()
_ = yym787
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep788 := !z.EncBinary()
yy2arr788 := z.EncBasicHandle().StructToArray
var yyq788 [3]bool
_, _, _ = yysep788, yyq788, yy2arr788
const yyr788 bool = false
yyq788[0] = x.SecretName != ""
yyq788[1] = len(x.Items) != 0
yyq788[2] = x.DefaultMode != nil
var yynn788 int
if yyr788 || yy2arr788 {
r.EncodeArrayStart(3)
} else {
yynn788 = 0
for _, b := range yyq788 {
if b {
yynn788++
}
}
r.EncodeMapStart(yynn788)
yynn788 = 0
}
if yyr788 || yy2arr788 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq788[0] {
yym790 := z.EncBinary()
_ = yym790
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SecretName))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq788[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("secretName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym791 := z.EncBinary()
_ = yym791
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SecretName))
}
}
}
if yyr788 || yy2arr788 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq788[1] {
if x.Items == nil {
r.EncodeNil()
} else {
yym793 := z.EncBinary()
_ = yym793
if false {
} else {
h.encSliceKeyToPath(([]KeyToPath)(x.Items), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq788[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("items"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym794 := z.EncBinary()
_ = yym794
if false {
} else {
h.encSliceKeyToPath(([]KeyToPath)(x.Items), e)
}
}
}
}
if yyr788 || yy2arr788 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq788[2] {
if x.DefaultMode == nil {
r.EncodeNil()
} else {
yy796 := *x.DefaultMode
yym797 := z.EncBinary()
_ = yym797
if false {
} else {
r.EncodeInt(int64(yy796))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq788[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("defaultMode"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.DefaultMode == nil {
r.EncodeNil()
} else {
yy798 := *x.DefaultMode
yym799 := z.EncBinary()
_ = yym799
if false {
} else {
r.EncodeInt(int64(yy798))
}
}
}
}
if yyr788 || yy2arr788 {
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
yym800 := z.DecBinary()
_ = yym800
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct801 := r.ContainerType()
if yyct801 == codecSelferValueTypeMap1234 {
yyl801 := r.ReadMapStart()
if yyl801 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl801, d)
}
} else if yyct801 == codecSelferValueTypeArray1234 {
yyl801 := r.ReadArrayStart()
if yyl801 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl801, 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 yys802Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys802Slc
var yyhl802 bool = l >= 0
for yyj802 := 0; ; yyj802++ {
if yyhl802 {
if yyj802 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys802Slc = r.DecodeBytes(yys802Slc, true, true)
yys802 := string(yys802Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys802 {
case "secretName":
if r.TryDecodeAsNil() {
x.SecretName = ""
} else {
x.SecretName = string(r.DecodeString())
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv804 := &x.Items
yym805 := z.DecBinary()
_ = yym805
if false {
} else {
h.decSliceKeyToPath((*[]KeyToPath)(yyv804), d)
}
}
case "defaultMode":
if r.TryDecodeAsNil() {
if x.DefaultMode != nil {
x.DefaultMode = nil
}
} else {
if x.DefaultMode == nil {
x.DefaultMode = new(int32)
}
yym807 := z.DecBinary()
_ = yym807
if false {
} else {
*((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32))
}
}
default:
z.DecStructFieldNotFound(-1, yys802)
} // end switch yys802
} // end for yyj802
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 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.SecretName = ""
} else {
x.SecretName = 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.Items = nil
} else {
yyv810 := &x.Items
yym811 := z.DecBinary()
_ = yym811
if false {
} else {
h.decSliceKeyToPath((*[]KeyToPath)(yyv810), 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() {
if x.DefaultMode != nil {
x.DefaultMode = nil
}
} else {
if x.DefaultMode == nil {
x.DefaultMode = new(int32)
}
yym813 := z.DecBinary()
_ = yym813
if false {
} else {
*((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32))
}
}
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 *NFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym814 := z.EncBinary()
_ = yym814
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep815 := !z.EncBinary()
yy2arr815 := z.EncBasicHandle().StructToArray
var yyq815 [3]bool
_, _, _ = yysep815, yyq815, yy2arr815
const yyr815 bool = false
yyq815[2] = x.ReadOnly != false
var yynn815 int
if yyr815 || yy2arr815 {
r.EncodeArrayStart(3)
} else {
yynn815 = 2
for _, b := range yyq815 {
if b {
yynn815++
}
}
r.EncodeMapStart(yynn815)
yynn815 = 0
}
if yyr815 || yy2arr815 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym817 := z.EncBinary()
_ = yym817
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)
yym818 := z.EncBinary()
_ = yym818
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Server))
}
}
if yyr815 || yy2arr815 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym820 := z.EncBinary()
_ = yym820
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)
yym821 := z.EncBinary()
_ = yym821
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr815 || yy2arr815 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq815[2] {
yym823 := z.EncBinary()
_ = yym823
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq815[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym824 := z.EncBinary()
_ = yym824
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr815 || yy2arr815 {
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
yym825 := z.DecBinary()
_ = yym825
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct826 := r.ContainerType()
if yyct826 == codecSelferValueTypeMap1234 {
yyl826 := r.ReadMapStart()
if yyl826 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl826, d)
}
} else if yyct826 == codecSelferValueTypeArray1234 {
yyl826 := r.ReadArrayStart()
if yyl826 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl826, 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 yys827Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys827Slc
var yyhl827 bool = l >= 0
for yyj827 := 0; ; yyj827++ {
if yyhl827 {
if yyj827 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys827Slc = r.DecodeBytes(yys827Slc, true, true)
yys827 := string(yys827Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys827 {
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, yys827)
} // end switch yys827
} // end for yyj827
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 yyj831 int
var yyb831 bool
var yyhl831 bool = l >= 0
yyj831++
if yyhl831 {
yyb831 = yyj831 > l
} else {
yyb831 = r.CheckBreak()
}
if yyb831 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Server = ""
} else {
x.Server = string(r.DecodeString())
}
yyj831++
if yyhl831 {
yyb831 = yyj831 > l
} else {
yyb831 = r.CheckBreak()
}
if yyb831 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
yyj831++
if yyhl831 {
yyb831 = yyj831 > l
} else {
yyb831 = r.CheckBreak()
}
if yyb831 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj831++
if yyhl831 {
yyb831 = yyj831 > l
} else {
yyb831 = r.CheckBreak()
}
if yyb831 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj831-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *QuobyteVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym835 := z.EncBinary()
_ = yym835
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep836 := !z.EncBinary()
yy2arr836 := z.EncBasicHandle().StructToArray
var yyq836 [5]bool
_, _, _ = yysep836, yyq836, yy2arr836
const yyr836 bool = false
yyq836[2] = x.ReadOnly != false
yyq836[3] = x.User != ""
yyq836[4] = x.Group != ""
var yynn836 int
if yyr836 || yy2arr836 {
r.EncodeArrayStart(5)
} else {
yynn836 = 2
for _, b := range yyq836 {
if b {
yynn836++
}
}
r.EncodeMapStart(yynn836)
yynn836 = 0
}
if yyr836 || yy2arr836 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym838 := z.EncBinary()
_ = yym838
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Registry))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("registry"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym839 := z.EncBinary()
_ = yym839
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Registry))
}
}
if yyr836 || yy2arr836 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym841 := z.EncBinary()
_ = yym841
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Volume))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("volume"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym842 := z.EncBinary()
_ = yym842
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Volume))
}
}
if yyr836 || yy2arr836 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq836[2] {
yym844 := z.EncBinary()
_ = yym844
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq836[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym845 := z.EncBinary()
_ = yym845
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr836 || yy2arr836 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq836[3] {
yym847 := z.EncBinary()
_ = yym847
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.User))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq836[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("user"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym848 := z.EncBinary()
_ = yym848
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.User))
}
}
}
if yyr836 || yy2arr836 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq836[4] {
yym850 := z.EncBinary()
_ = yym850
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Group))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq836[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("group"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym851 := z.EncBinary()
_ = yym851
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Group))
}
}
}
if yyr836 || yy2arr836 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *QuobyteVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym852 := z.DecBinary()
_ = yym852
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct853 := r.ContainerType()
if yyct853 == codecSelferValueTypeMap1234 {
yyl853 := r.ReadMapStart()
if yyl853 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl853, d)
}
} else if yyct853 == codecSelferValueTypeArray1234 {
yyl853 := r.ReadArrayStart()
if yyl853 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl853, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *QuobyteVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys854Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys854Slc
var yyhl854 bool = l >= 0
for yyj854 := 0; ; yyj854++ {
if yyhl854 {
if yyj854 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys854Slc = r.DecodeBytes(yys854Slc, true, true)
yys854 := string(yys854Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys854 {
case "registry":
if r.TryDecodeAsNil() {
x.Registry = ""
} else {
x.Registry = string(r.DecodeString())
}
case "volume":
if r.TryDecodeAsNil() {
x.Volume = ""
} else {
x.Volume = string(r.DecodeString())
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
case "user":
if r.TryDecodeAsNil() {
x.User = ""
} else {
x.User = string(r.DecodeString())
}
case "group":
if r.TryDecodeAsNil() {
x.Group = ""
} else {
x.Group = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys854)
} // end switch yys854
} // end for yyj854
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *QuobyteVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj860 int
var yyb860 bool
var yyhl860 bool = l >= 0
yyj860++
if yyhl860 {
yyb860 = yyj860 > l
} else {
yyb860 = r.CheckBreak()
}
if yyb860 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Registry = ""
} else {
x.Registry = string(r.DecodeString())
}
yyj860++
if yyhl860 {
yyb860 = yyj860 > l
} else {
yyb860 = r.CheckBreak()
}
if yyb860 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Volume = ""
} else {
x.Volume = string(r.DecodeString())
}
yyj860++
if yyhl860 {
yyb860 = yyj860 > l
} else {
yyb860 = r.CheckBreak()
}
if yyb860 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
yyj860++
if yyhl860 {
yyb860 = yyj860 > l
} else {
yyb860 = r.CheckBreak()
}
if yyb860 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.User = ""
} else {
x.User = string(r.DecodeString())
}
yyj860++
if yyhl860 {
yyb860 = yyj860 > l
} else {
yyb860 = r.CheckBreak()
}
if yyb860 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Group = ""
} else {
x.Group = string(r.DecodeString())
}
for {
yyj860++
if yyhl860 {
yyb860 = yyj860 > l
} else {
yyb860 = r.CheckBreak()
}
if yyb860 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj860-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 {
yym866 := z.EncBinary()
_ = yym866
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep867 := !z.EncBinary()
yy2arr867 := z.EncBasicHandle().StructToArray
var yyq867 [3]bool
_, _, _ = yysep867, yyq867, yy2arr867
const yyr867 bool = false
yyq867[2] = x.ReadOnly != false
var yynn867 int
if yyr867 || yy2arr867 {
r.EncodeArrayStart(3)
} else {
yynn867 = 2
for _, b := range yyq867 {
if b {
yynn867++
}
}
r.EncodeMapStart(yynn867)
yynn867 = 0
}
if yyr867 || yy2arr867 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym869 := z.EncBinary()
_ = yym869
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)
yym870 := z.EncBinary()
_ = yym870
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName))
}
}
if yyr867 || yy2arr867 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym872 := z.EncBinary()
_ = yym872
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)
yym873 := z.EncBinary()
_ = yym873
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr867 || yy2arr867 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq867[2] {
yym875 := z.EncBinary()
_ = yym875
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq867[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym876 := z.EncBinary()
_ = yym876
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr867 || yy2arr867 {
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
yym877 := z.DecBinary()
_ = yym877
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct878 := r.ContainerType()
if yyct878 == codecSelferValueTypeMap1234 {
yyl878 := r.ReadMapStart()
if yyl878 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl878, d)
}
} else if yyct878 == codecSelferValueTypeArray1234 {
yyl878 := r.ReadArrayStart()
if yyl878 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl878, 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 yys879Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys879Slc
var yyhl879 bool = l >= 0
for yyj879 := 0; ; yyj879++ {
if yyhl879 {
if yyj879 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys879Slc = r.DecodeBytes(yys879Slc, true, true)
yys879 := string(yys879Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys879 {
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, yys879)
} // end switch yys879
} // end for yyj879
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 yyj883 int
var yyb883 bool
var yyhl883 bool = l >= 0
yyj883++
if yyhl883 {
yyb883 = yyj883 > l
} else {
yyb883 = r.CheckBreak()
}
if yyb883 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.EndpointsName = ""
} else {
x.EndpointsName = string(r.DecodeString())
}
yyj883++
if yyhl883 {
yyb883 = yyj883 > l
} else {
yyb883 = r.CheckBreak()
}
if yyb883 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
yyj883++
if yyhl883 {
yyb883 = yyj883 > l
} else {
yyb883 = r.CheckBreak()
}
if yyb883 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj883++
if yyhl883 {
yyb883 = yyj883 > l
} else {
yyb883 = r.CheckBreak()
}
if yyb883 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj883-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 {
yym887 := z.EncBinary()
_ = yym887
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep888 := !z.EncBinary()
yy2arr888 := z.EncBasicHandle().StructToArray
var yyq888 [8]bool
_, _, _ = yysep888, yyq888, yy2arr888
const yyr888 bool = false
yyq888[2] = x.FSType != ""
yyq888[3] = x.RBDPool != ""
yyq888[4] = x.RadosUser != ""
yyq888[5] = x.Keyring != ""
yyq888[6] = x.SecretRef != nil
yyq888[7] = x.ReadOnly != false
var yynn888 int
if yyr888 || yy2arr888 {
r.EncodeArrayStart(8)
} else {
yynn888 = 2
for _, b := range yyq888 {
if b {
yynn888++
}
}
r.EncodeMapStart(yynn888)
yynn888 = 0
}
if yyr888 || yy2arr888 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.CephMonitors == nil {
r.EncodeNil()
} else {
yym890 := z.EncBinary()
_ = yym890
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 {
yym891 := z.EncBinary()
_ = yym891
if false {
} else {
z.F.EncSliceStringV(x.CephMonitors, false, e)
}
}
}
if yyr888 || yy2arr888 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym893 := z.EncBinary()
_ = yym893
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)
yym894 := z.EncBinary()
_ = yym894
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage))
}
}
if yyr888 || yy2arr888 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq888[2] {
yym896 := z.EncBinary()
_ = yym896
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq888[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym897 := z.EncBinary()
_ = yym897
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
}
if yyr888 || yy2arr888 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq888[3] {
yym899 := z.EncBinary()
_ = yym899
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq888[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("pool"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym900 := z.EncBinary()
_ = yym900
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool))
}
}
}
if yyr888 || yy2arr888 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq888[4] {
yym902 := z.EncBinary()
_ = yym902
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq888[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("user"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym903 := z.EncBinary()
_ = yym903
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser))
}
}
}
if yyr888 || yy2arr888 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq888[5] {
yym905 := z.EncBinary()
_ = yym905
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Keyring))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq888[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("keyring"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym906 := z.EncBinary()
_ = yym906
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Keyring))
}
}
}
if yyr888 || yy2arr888 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq888[6] {
if x.SecretRef == nil {
r.EncodeNil()
} else {
x.SecretRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq888[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("secretRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.SecretRef == nil {
r.EncodeNil()
} else {
x.SecretRef.CodecEncodeSelf(e)
}
}
}
if yyr888 || yy2arr888 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq888[7] {
yym909 := z.EncBinary()
_ = yym909
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq888[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym910 := z.EncBinary()
_ = yym910
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr888 || yy2arr888 {
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
yym911 := z.DecBinary()
_ = yym911
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct912 := r.ContainerType()
if yyct912 == codecSelferValueTypeMap1234 {
yyl912 := r.ReadMapStart()
if yyl912 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl912, d)
}
} else if yyct912 == codecSelferValueTypeArray1234 {
yyl912 := r.ReadArrayStart()
if yyl912 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl912, 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 yys913Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys913Slc
var yyhl913 bool = l >= 0
for yyj913 := 0; ; yyj913++ {
if yyhl913 {
if yyj913 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys913Slc = r.DecodeBytes(yys913Slc, true, true)
yys913 := string(yys913Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys913 {
case "monitors":
if r.TryDecodeAsNil() {
x.CephMonitors = nil
} else {
yyv914 := &x.CephMonitors
yym915 := z.DecBinary()
_ = yym915
if false {
} else {
z.F.DecSliceStringX(yyv914, 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, yys913)
} // end switch yys913
} // end for yyj913
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 yyj923 int
var yyb923 bool
var yyhl923 bool = l >= 0
yyj923++
if yyhl923 {
yyb923 = yyj923 > l
} else {
yyb923 = r.CheckBreak()
}
if yyb923 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.CephMonitors = nil
} else {
yyv924 := &x.CephMonitors
yym925 := z.DecBinary()
_ = yym925
if false {
} else {
z.F.DecSliceStringX(yyv924, false, d)
}
}
yyj923++
if yyhl923 {
yyb923 = yyj923 > l
} else {
yyb923 = r.CheckBreak()
}
if yyb923 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RBDImage = ""
} else {
x.RBDImage = string(r.DecodeString())
}
yyj923++
if yyhl923 {
yyb923 = yyj923 > l
} else {
yyb923 = r.CheckBreak()
}
if yyb923 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
yyj923++
if yyhl923 {
yyb923 = yyj923 > l
} else {
yyb923 = r.CheckBreak()
}
if yyb923 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RBDPool = ""
} else {
x.RBDPool = string(r.DecodeString())
}
yyj923++
if yyhl923 {
yyb923 = yyj923 > l
} else {
yyb923 = r.CheckBreak()
}
if yyb923 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RadosUser = ""
} else {
x.RadosUser = string(r.DecodeString())
}
yyj923++
if yyhl923 {
yyb923 = yyj923 > l
} else {
yyb923 = r.CheckBreak()
}
if yyb923 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Keyring = ""
} else {
x.Keyring = string(r.DecodeString())
}
yyj923++
if yyhl923 {
yyb923 = yyj923 > l
} else {
yyb923 = r.CheckBreak()
}
if yyb923 {
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)
}
yyj923++
if yyhl923 {
yyb923 = yyj923 > l
} else {
yyb923 = r.CheckBreak()
}
if yyb923 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj923++
if yyhl923 {
yyb923 = yyj923 > l
} else {
yyb923 = r.CheckBreak()
}
if yyb923 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj923-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 {
yym933 := z.EncBinary()
_ = yym933
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep934 := !z.EncBinary()
yy2arr934 := z.EncBasicHandle().StructToArray
var yyq934 [3]bool
_, _, _ = yysep934, yyq934, yy2arr934
const yyr934 bool = false
yyq934[1] = x.FSType != ""
yyq934[2] = x.ReadOnly != false
var yynn934 int
if yyr934 || yy2arr934 {
r.EncodeArrayStart(3)
} else {
yynn934 = 1
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.VolumeID))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("volumeID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym937 := z.EncBinary()
_ = yym937
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID))
}
}
if yyr934 || yy2arr934 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq934[1] {
yym939 := z.EncBinary()
_ = yym939
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq934[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym940 := z.EncBinary()
_ = yym940
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
}
if yyr934 || yy2arr934 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq934[2] {
yym942 := z.EncBinary()
_ = yym942
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq934[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym943 := z.EncBinary()
_ = yym943
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr934 || yy2arr934 {
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
yym944 := z.DecBinary()
_ = yym944
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct945 := r.ContainerType()
if yyct945 == codecSelferValueTypeMap1234 {
yyl945 := r.ReadMapStart()
if yyl945 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl945, d)
}
} else if yyct945 == codecSelferValueTypeArray1234 {
yyl945 := r.ReadArrayStart()
if yyl945 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl945, 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 yys946Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys946Slc
var yyhl946 bool = l >= 0
for yyj946 := 0; ; yyj946++ {
if yyhl946 {
if yyj946 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys946Slc = r.DecodeBytes(yys946Slc, true, true)
yys946 := string(yys946Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys946 {
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, yys946)
} // end switch yys946
} // end for yyj946
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 yyj950 int
var yyb950 bool
var yyhl950 bool = l >= 0
yyj950++
if yyhl950 {
yyb950 = yyj950 > l
} else {
yyb950 = r.CheckBreak()
}
if yyb950 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.VolumeID = ""
} else {
x.VolumeID = string(r.DecodeString())
}
yyj950++
if yyhl950 {
yyb950 = yyj950 > l
} else {
yyb950 = r.CheckBreak()
}
if yyb950 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
yyj950++
if yyhl950 {
yyb950 = yyj950 > l
} else {
yyb950 = r.CheckBreak()
}
if yyb950 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj950++
if yyhl950 {
yyb950 = yyj950 > l
} else {
yyb950 = r.CheckBreak()
}
if yyb950 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj950-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 {
yym954 := z.EncBinary()
_ = yym954
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep955 := !z.EncBinary()
yy2arr955 := z.EncBasicHandle().StructToArray
var yyq955 [6]bool
_, _, _ = yysep955, yyq955, yy2arr955
const yyr955 bool = false
yyq955[1] = x.Path != ""
yyq955[2] = x.User != ""
yyq955[3] = x.SecretFile != ""
yyq955[4] = x.SecretRef != nil
yyq955[5] = x.ReadOnly != false
var yynn955 int
if yyr955 || yy2arr955 {
r.EncodeArrayStart(6)
} else {
yynn955 = 1
for _, b := range yyq955 {
if b {
yynn955++
}
}
r.EncodeMapStart(yynn955)
yynn955 = 0
}
if yyr955 || yy2arr955 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Monitors == nil {
r.EncodeNil()
} else {
yym957 := z.EncBinary()
_ = yym957
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 {
yym958 := z.EncBinary()
_ = yym958
if false {
} else {
z.F.EncSliceStringV(x.Monitors, false, e)
}
}
}
if yyr955 || yy2arr955 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq955[1] {
yym960 := z.EncBinary()
_ = yym960
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq955[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("path"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym961 := z.EncBinary()
_ = yym961
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
}
if yyr955 || yy2arr955 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq955[2] {
yym963 := z.EncBinary()
_ = yym963
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.User))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq955[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("user"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym964 := z.EncBinary()
_ = yym964
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.User))
}
}
}
if yyr955 || yy2arr955 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq955[3] {
yym966 := z.EncBinary()
_ = yym966
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq955[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("secretFile"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym967 := z.EncBinary()
_ = yym967
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile))
}
}
}
if yyr955 || yy2arr955 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq955[4] {
if x.SecretRef == nil {
r.EncodeNil()
} else {
x.SecretRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq955[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("secretRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.SecretRef == nil {
r.EncodeNil()
} else {
x.SecretRef.CodecEncodeSelf(e)
}
}
}
if yyr955 || yy2arr955 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq955[5] {
yym970 := z.EncBinary()
_ = yym970
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq955[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym971 := z.EncBinary()
_ = yym971
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr955 || yy2arr955 {
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
yym972 := z.DecBinary()
_ = yym972
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct973 := r.ContainerType()
if yyct973 == codecSelferValueTypeMap1234 {
yyl973 := r.ReadMapStart()
if yyl973 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl973, d)
}
} else if yyct973 == codecSelferValueTypeArray1234 {
yyl973 := r.ReadArrayStart()
if yyl973 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl973, 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 yys974Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys974Slc
var yyhl974 bool = l >= 0
for yyj974 := 0; ; yyj974++ {
if yyhl974 {
if yyj974 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys974Slc = r.DecodeBytes(yys974Slc, true, true)
yys974 := string(yys974Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys974 {
case "monitors":
if r.TryDecodeAsNil() {
x.Monitors = nil
} else {
yyv975 := &x.Monitors
yym976 := z.DecBinary()
_ = yym976
if false {
} else {
z.F.DecSliceStringX(yyv975, false, d)
}
}
case "path":
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
case "user":
if r.TryDecodeAsNil() {
x.User = ""
} else {
x.User = string(r.DecodeString())
}
case "secretFile":
if r.TryDecodeAsNil() {
x.SecretFile = ""
} else {
x.SecretFile = string(r.DecodeString())
}
case "secretRef":
if r.TryDecodeAsNil() {
if x.SecretRef != nil {
x.SecretRef = nil
}
} else {
if x.SecretRef == nil {
x.SecretRef = new(LocalObjectReference)
}
x.SecretRef.CodecDecodeSelf(d)
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys974)
} // end switch yys974
} // end for yyj974
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 yyj982 int
var yyb982 bool
var yyhl982 bool = l >= 0
yyj982++
if yyhl982 {
yyb982 = yyj982 > l
} else {
yyb982 = r.CheckBreak()
}
if yyb982 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Monitors = nil
} else {
yyv983 := &x.Monitors
yym984 := z.DecBinary()
_ = yym984
if false {
} else {
z.F.DecSliceStringX(yyv983, false, d)
}
}
yyj982++
if yyhl982 {
yyb982 = yyj982 > l
} else {
yyb982 = r.CheckBreak()
}
if yyb982 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
yyj982++
if yyhl982 {
yyb982 = yyj982 > l
} else {
yyb982 = r.CheckBreak()
}
if yyb982 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.User = ""
} else {
x.User = string(r.DecodeString())
}
yyj982++
if yyhl982 {
yyb982 = yyj982 > l
} else {
yyb982 = r.CheckBreak()
}
if yyb982 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SecretFile = ""
} else {
x.SecretFile = string(r.DecodeString())
}
yyj982++
if yyhl982 {
yyb982 = yyj982 > l
} else {
yyb982 = r.CheckBreak()
}
if yyb982 {
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)
}
yyj982++
if yyhl982 {
yyb982 = yyj982 > l
} else {
yyb982 = r.CheckBreak()
}
if yyb982 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj982++
if yyhl982 {
yyb982 = yyj982 > l
} else {
yyb982 = r.CheckBreak()
}
if yyb982 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj982-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *FlockerVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym990 := z.EncBinary()
_ = yym990
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep991 := !z.EncBinary()
yy2arr991 := z.EncBasicHandle().StructToArray
var yyq991 [1]bool
_, _, _ = yysep991, yyq991, yy2arr991
const yyr991 bool = false
var yynn991 int
if yyr991 || yy2arr991 {
r.EncodeArrayStart(1)
} else {
yynn991 = 1
for _, b := range yyq991 {
if b {
yynn991++
}
}
r.EncodeMapStart(yynn991)
yynn991 = 0
}
if yyr991 || yy2arr991 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym993 := z.EncBinary()
_ = yym993
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)
yym994 := z.EncBinary()
_ = yym994
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName))
}
}
if yyr991 || yy2arr991 {
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
yym995 := z.DecBinary()
_ = yym995
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct996 := r.ContainerType()
if yyct996 == codecSelferValueTypeMap1234 {
yyl996 := r.ReadMapStart()
if yyl996 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl996, d)
}
} else if yyct996 == codecSelferValueTypeArray1234 {
yyl996 := r.ReadArrayStart()
if yyl996 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl996, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *FlockerVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys997Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys997Slc
var yyhl997 bool = l >= 0
for yyj997 := 0; ; yyj997++ {
if yyhl997 {
if yyj997 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys997Slc = r.DecodeBytes(yys997Slc, true, true)
yys997 := string(yys997Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys997 {
case "datasetName":
if r.TryDecodeAsNil() {
x.DatasetName = ""
} else {
x.DatasetName = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys997)
} // end switch yys997
} // end for yyj997
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 yyj999 int
var yyb999 bool
var yyhl999 bool = l >= 0
yyj999++
if yyhl999 {
yyb999 = yyj999 > l
} else {
yyb999 = r.CheckBreak()
}
if yyb999 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DatasetName = ""
} else {
x.DatasetName = string(r.DecodeString())
}
for {
yyj999++
if yyhl999 {
yyb999 = yyj999 > l
} else {
yyb999 = r.CheckBreak()
}
if yyb999 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj999-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 {
yym1001 := z.EncBinary()
_ = yym1001
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1002 := !z.EncBinary()
yy2arr1002 := z.EncBasicHandle().StructToArray
var yyq1002 [2]bool
_, _, _ = yysep1002, yyq1002, yy2arr1002
const yyr1002 bool = false
yyq1002[0] = len(x.Items) != 0
yyq1002[1] = x.DefaultMode != nil
var yynn1002 int
if yyr1002 || yy2arr1002 {
r.EncodeArrayStart(2)
} else {
yynn1002 = 0
for _, b := range yyq1002 {
if b {
yynn1002++
}
}
r.EncodeMapStart(yynn1002)
yynn1002 = 0
}
if yyr1002 || yy2arr1002 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1002[0] {
if x.Items == nil {
r.EncodeNil()
} else {
yym1004 := z.EncBinary()
_ = yym1004
if false {
} else {
h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1002[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("items"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym1005 := z.EncBinary()
_ = yym1005
if false {
} else {
h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e)
}
}
}
}
if yyr1002 || yy2arr1002 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1002[1] {
if x.DefaultMode == nil {
r.EncodeNil()
} else {
yy1007 := *x.DefaultMode
yym1008 := z.EncBinary()
_ = yym1008
if false {
} else {
r.EncodeInt(int64(yy1007))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1002[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("defaultMode"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.DefaultMode == nil {
r.EncodeNil()
} else {
yy1009 := *x.DefaultMode
yym1010 := z.EncBinary()
_ = yym1010
if false {
} else {
r.EncodeInt(int64(yy1009))
}
}
}
}
if yyr1002 || yy2arr1002 {
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
yym1011 := z.DecBinary()
_ = yym1011
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1012 := r.ContainerType()
if yyct1012 == codecSelferValueTypeMap1234 {
yyl1012 := r.ReadMapStart()
if yyl1012 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1012, d)
}
} else if yyct1012 == codecSelferValueTypeArray1234 {
yyl1012 := r.ReadArrayStart()
if yyl1012 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1012, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *DownwardAPIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1013Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1013Slc
var yyhl1013 bool = l >= 0
for yyj1013 := 0; ; yyj1013++ {
if yyhl1013 {
if yyj1013 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1013Slc = r.DecodeBytes(yys1013Slc, true, true)
yys1013 := string(yys1013Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1013 {
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1014 := &x.Items
yym1015 := z.DecBinary()
_ = yym1015
if false {
} else {
h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv1014), d)
}
}
case "defaultMode":
if r.TryDecodeAsNil() {
if x.DefaultMode != nil {
x.DefaultMode = nil
}
} else {
if x.DefaultMode == nil {
x.DefaultMode = new(int32)
}
yym1017 := z.DecBinary()
_ = yym1017
if false {
} else {
*((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32))
}
}
default:
z.DecStructFieldNotFound(-1, yys1013)
} // end switch yys1013
} // end for yyj1013
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 yyj1018 int
var yyb1018 bool
var yyhl1018 bool = l >= 0
yyj1018++
if yyhl1018 {
yyb1018 = yyj1018 > l
} else {
yyb1018 = r.CheckBreak()
}
if yyb1018 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1019 := &x.Items
yym1020 := z.DecBinary()
_ = yym1020
if false {
} else {
h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv1019), d)
}
}
yyj1018++
if yyhl1018 {
yyb1018 = yyj1018 > l
} else {
yyb1018 = r.CheckBreak()
}
if yyb1018 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.DefaultMode != nil {
x.DefaultMode = nil
}
} else {
if x.DefaultMode == nil {
x.DefaultMode = new(int32)
}
yym1022 := z.DecBinary()
_ = yym1022
if false {
} else {
*((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32))
}
}
for {
yyj1018++
if yyhl1018 {
yyb1018 = yyj1018 > l
} else {
yyb1018 = r.CheckBreak()
}
if yyb1018 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1018-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 {
yym1023 := z.EncBinary()
_ = yym1023
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1024 := !z.EncBinary()
yy2arr1024 := z.EncBasicHandle().StructToArray
var yyq1024 [4]bool
_, _, _ = yysep1024, yyq1024, yy2arr1024
const yyr1024 bool = false
yyq1024[1] = x.FieldRef != nil
yyq1024[2] = x.ResourceFieldRef != nil
yyq1024[3] = x.Mode != nil
var yynn1024 int
if yyr1024 || yy2arr1024 {
r.EncodeArrayStart(4)
} else {
yynn1024 = 1
for _, b := range yyq1024 {
if b {
yynn1024++
}
}
r.EncodeMapStart(yynn1024)
yynn1024 = 0
}
if yyr1024 || yy2arr1024 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1026 := z.EncBinary()
_ = yym1026
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)
yym1027 := z.EncBinary()
_ = yym1027
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr1024 || yy2arr1024 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1024[1] {
if x.FieldRef == nil {
r.EncodeNil()
} else {
x.FieldRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1024[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fieldRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.FieldRef == nil {
r.EncodeNil()
} else {
x.FieldRef.CodecEncodeSelf(e)
}
}
}
if yyr1024 || yy2arr1024 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1024[2] {
if x.ResourceFieldRef == nil {
r.EncodeNil()
} else {
x.ResourceFieldRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1024[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("resourceFieldRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ResourceFieldRef == nil {
r.EncodeNil()
} else {
x.ResourceFieldRef.CodecEncodeSelf(e)
}
}
}
if yyr1024 || yy2arr1024 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1024[3] {
if x.Mode == nil {
r.EncodeNil()
} else {
yy1031 := *x.Mode
yym1032 := z.EncBinary()
_ = yym1032
if false {
} else {
r.EncodeInt(int64(yy1031))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1024[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("mode"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Mode == nil {
r.EncodeNil()
} else {
yy1033 := *x.Mode
yym1034 := z.EncBinary()
_ = yym1034
if false {
} else {
r.EncodeInt(int64(yy1033))
}
}
}
}
if yyr1024 || yy2arr1024 {
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
yym1035 := z.DecBinary()
_ = yym1035
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1036 := r.ContainerType()
if yyct1036 == codecSelferValueTypeMap1234 {
yyl1036 := r.ReadMapStart()
if yyl1036 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1036, d)
}
} else if yyct1036 == codecSelferValueTypeArray1234 {
yyl1036 := r.ReadArrayStart()
if yyl1036 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1036, 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 yys1037Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1037Slc
var yyhl1037 bool = l >= 0
for yyj1037 := 0; ; yyj1037++ {
if yyhl1037 {
if yyj1037 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1037Slc = r.DecodeBytes(yys1037Slc, true, true)
yys1037 := string(yys1037Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1037 {
case "path":
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
case "fieldRef":
if r.TryDecodeAsNil() {
if x.FieldRef != nil {
x.FieldRef = nil
}
} else {
if x.FieldRef == nil {
x.FieldRef = new(ObjectFieldSelector)
}
x.FieldRef.CodecDecodeSelf(d)
}
case "resourceFieldRef":
if r.TryDecodeAsNil() {
if x.ResourceFieldRef != nil {
x.ResourceFieldRef = nil
}
} else {
if x.ResourceFieldRef == nil {
x.ResourceFieldRef = new(ResourceFieldSelector)
}
x.ResourceFieldRef.CodecDecodeSelf(d)
}
case "mode":
if r.TryDecodeAsNil() {
if x.Mode != nil {
x.Mode = nil
}
} else {
if x.Mode == nil {
x.Mode = new(int32)
}
yym1042 := z.DecBinary()
_ = yym1042
if false {
} else {
*((*int32)(x.Mode)) = int32(r.DecodeInt(32))
}
}
default:
z.DecStructFieldNotFound(-1, yys1037)
} // end switch yys1037
} // end for yyj1037
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 yyj1043 int
var yyb1043 bool
var yyhl1043 bool = l >= 0
yyj1043++
if yyhl1043 {
yyb1043 = yyj1043 > l
} else {
yyb1043 = r.CheckBreak()
}
if yyb1043 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
yyj1043++
if yyhl1043 {
yyb1043 = yyj1043 > l
} else {
yyb1043 = r.CheckBreak()
}
if yyb1043 {
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)
}
yyj1043++
if yyhl1043 {
yyb1043 = yyj1043 > l
} else {
yyb1043 = r.CheckBreak()
}
if yyb1043 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.ResourceFieldRef != nil {
x.ResourceFieldRef = nil
}
} else {
if x.ResourceFieldRef == nil {
x.ResourceFieldRef = new(ResourceFieldSelector)
}
x.ResourceFieldRef.CodecDecodeSelf(d)
}
yyj1043++
if yyhl1043 {
yyb1043 = yyj1043 > l
} else {
yyb1043 = r.CheckBreak()
}
if yyb1043 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Mode != nil {
x.Mode = nil
}
} else {
if x.Mode == nil {
x.Mode = new(int32)
}
yym1048 := z.DecBinary()
_ = yym1048
if false {
} else {
*((*int32)(x.Mode)) = int32(r.DecodeInt(32))
}
}
for {
yyj1043++
if yyhl1043 {
yyb1043 = yyj1043 > l
} else {
yyb1043 = r.CheckBreak()
}
if yyb1043 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1043-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *AzureFileVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1049 := z.EncBinary()
_ = yym1049
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1050 := !z.EncBinary()
yy2arr1050 := z.EncBasicHandle().StructToArray
var yyq1050 [3]bool
_, _, _ = yysep1050, yyq1050, yy2arr1050
const yyr1050 bool = false
yyq1050[2] = x.ReadOnly != false
var yynn1050 int
if yyr1050 || yy2arr1050 {
r.EncodeArrayStart(3)
} else {
yynn1050 = 2
for _, b := range yyq1050 {
if b {
yynn1050++
}
}
r.EncodeMapStart(yynn1050)
yynn1050 = 0
}
if yyr1050 || yy2arr1050 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1052 := z.EncBinary()
_ = yym1052
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)
yym1053 := z.EncBinary()
_ = yym1053
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SecretName))
}
}
if yyr1050 || yy2arr1050 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1055 := z.EncBinary()
_ = yym1055
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ShareName))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("shareName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1056 := z.EncBinary()
_ = yym1056
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ShareName))
}
}
if yyr1050 || yy2arr1050 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1050[2] {
yym1058 := z.EncBinary()
_ = yym1058
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1050[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1059 := z.EncBinary()
_ = yym1059
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr1050 || yy2arr1050 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *AzureFileVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1060 := z.DecBinary()
_ = yym1060
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1061 := r.ContainerType()
if yyct1061 == codecSelferValueTypeMap1234 {
yyl1061 := r.ReadMapStart()
if yyl1061 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1061, d)
}
} else if yyct1061 == codecSelferValueTypeArray1234 {
yyl1061 := r.ReadArrayStart()
if yyl1061 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1061, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *AzureFileVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1062Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1062Slc
var yyhl1062 bool = l >= 0
for yyj1062 := 0; ; yyj1062++ {
if yyhl1062 {
if yyj1062 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1062Slc = r.DecodeBytes(yys1062Slc, true, true)
yys1062 := string(yys1062Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1062 {
case "secretName":
if r.TryDecodeAsNil() {
x.SecretName = ""
} else {
x.SecretName = string(r.DecodeString())
}
case "shareName":
if r.TryDecodeAsNil() {
x.ShareName = ""
} else {
x.ShareName = string(r.DecodeString())
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys1062)
} // end switch yys1062
} // end for yyj1062
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *AzureFileVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var 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.SecretName = ""
} else {
x.SecretName = string(r.DecodeString())
}
yyj1066++
if yyhl1066 {
yyb1066 = yyj1066 > l
} else {
yyb1066 = r.CheckBreak()
}
if yyb1066 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ShareName = ""
} else {
x.ShareName = string(r.DecodeString())
}
yyj1066++
if yyhl1066 {
yyb1066 = yyj1066 > l
} else {
yyb1066 = r.CheckBreak()
}
if yyb1066 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
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 *VsphereVirtualDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1070 := z.EncBinary()
_ = yym1070
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1071 := !z.EncBinary()
yy2arr1071 := z.EncBasicHandle().StructToArray
var yyq1071 [2]bool
_, _, _ = yysep1071, yyq1071, yy2arr1071
const yyr1071 bool = false
yyq1071[1] = x.FSType != ""
var yynn1071 int
if yyr1071 || yy2arr1071 {
r.EncodeArrayStart(2)
} else {
yynn1071 = 1
for _, b := range yyq1071 {
if b {
yynn1071++
}
}
r.EncodeMapStart(yynn1071)
yynn1071 = 0
}
if yyr1071 || yy2arr1071 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1073 := z.EncBinary()
_ = yym1073
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.VolumePath))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("volumePath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1074 := z.EncBinary()
_ = yym1074
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.VolumePath))
}
}
if yyr1071 || yy2arr1071 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1071[1] {
yym1076 := z.EncBinary()
_ = yym1076
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1071[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1077 := z.EncBinary()
_ = yym1077
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
}
if yyr1071 || yy2arr1071 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *VsphereVirtualDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1078 := z.DecBinary()
_ = yym1078
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1079 := r.ContainerType()
if yyct1079 == codecSelferValueTypeMap1234 {
yyl1079 := r.ReadMapStart()
if yyl1079 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1079, d)
}
} else if yyct1079 == codecSelferValueTypeArray1234 {
yyl1079 := r.ReadArrayStart()
if yyl1079 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1079, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1080Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1080Slc
var yyhl1080 bool = l >= 0
for yyj1080 := 0; ; yyj1080++ {
if yyhl1080 {
if yyj1080 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1080Slc = r.DecodeBytes(yys1080Slc, true, true)
yys1080 := string(yys1080Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1080 {
case "volumePath":
if r.TryDecodeAsNil() {
x.VolumePath = ""
} else {
x.VolumePath = string(r.DecodeString())
}
case "fsType":
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1080)
} // end switch yys1080
} // end for yyj1080
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1083 int
var yyb1083 bool
var yyhl1083 bool = l >= 0
yyj1083++
if yyhl1083 {
yyb1083 = yyj1083 > l
} else {
yyb1083 = r.CheckBreak()
}
if yyb1083 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.VolumePath = ""
} else {
x.VolumePath = string(r.DecodeString())
}
yyj1083++
if yyhl1083 {
yyb1083 = yyj1083 > l
} else {
yyb1083 = r.CheckBreak()
}
if yyb1083 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
for {
yyj1083++
if yyhl1083 {
yyb1083 = yyj1083 > l
} else {
yyb1083 = r.CheckBreak()
}
if yyb1083 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1083-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x AzureDataDiskCachingMode) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1086 := z.EncBinary()
_ = yym1086
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *AzureDataDiskCachingMode) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1087 := z.DecBinary()
_ = yym1087
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *AzureDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1088 := z.EncBinary()
_ = yym1088
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1089 := !z.EncBinary()
yy2arr1089 := z.EncBasicHandle().StructToArray
var yyq1089 [5]bool
_, _, _ = yysep1089, yyq1089, yy2arr1089
const yyr1089 bool = false
yyq1089[2] = x.CachingMode != nil
yyq1089[3] = x.FSType != nil
yyq1089[4] = x.ReadOnly != nil
var yynn1089 int
if yyr1089 || yy2arr1089 {
r.EncodeArrayStart(5)
} else {
yynn1089 = 2
for _, b := range yyq1089 {
if b {
yynn1089++
}
}
r.EncodeMapStart(yynn1089)
yynn1089 = 0
}
if yyr1089 || yy2arr1089 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1091 := z.EncBinary()
_ = yym1091
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.DiskName))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("diskName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1092 := z.EncBinary()
_ = yym1092
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.DiskName))
}
}
if yyr1089 || yy2arr1089 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1094 := z.EncBinary()
_ = yym1094
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.DataDiskURI))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("diskURI"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1095 := z.EncBinary()
_ = yym1095
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.DataDiskURI))
}
}
if yyr1089 || yy2arr1089 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1089[2] {
if x.CachingMode == nil {
r.EncodeNil()
} else {
yy1097 := *x.CachingMode
yy1097.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1089[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cachingMode"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.CachingMode == nil {
r.EncodeNil()
} else {
yy1098 := *x.CachingMode
yy1098.CodecEncodeSelf(e)
}
}
}
if yyr1089 || yy2arr1089 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1089[3] {
if x.FSType == nil {
r.EncodeNil()
} else {
yy1100 := *x.FSType
yym1101 := z.EncBinary()
_ = yym1101
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(yy1100))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1089[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.FSType == nil {
r.EncodeNil()
} else {
yy1102 := *x.FSType
yym1103 := z.EncBinary()
_ = yym1103
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(yy1102))
}
}
}
}
if yyr1089 || yy2arr1089 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1089[4] {
if x.ReadOnly == nil {
r.EncodeNil()
} else {
yy1105 := *x.ReadOnly
yym1106 := z.EncBinary()
_ = yym1106
if false {
} else {
r.EncodeBool(bool(yy1105))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1089[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ReadOnly == nil {
r.EncodeNil()
} else {
yy1107 := *x.ReadOnly
yym1108 := z.EncBinary()
_ = yym1108
if false {
} else {
r.EncodeBool(bool(yy1107))
}
}
}
}
if yyr1089 || yy2arr1089 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *AzureDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1109 := z.DecBinary()
_ = yym1109
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1110 := r.ContainerType()
if yyct1110 == codecSelferValueTypeMap1234 {
yyl1110 := r.ReadMapStart()
if yyl1110 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1110, d)
}
} else if yyct1110 == codecSelferValueTypeArray1234 {
yyl1110 := r.ReadArrayStart()
if yyl1110 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1110, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *AzureDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1111Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1111Slc
var yyhl1111 bool = l >= 0
for yyj1111 := 0; ; yyj1111++ {
if yyhl1111 {
if yyj1111 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1111Slc = r.DecodeBytes(yys1111Slc, true, true)
yys1111 := string(yys1111Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1111 {
case "diskName":
if r.TryDecodeAsNil() {
x.DiskName = ""
} else {
x.DiskName = string(r.DecodeString())
}
case "diskURI":
if r.TryDecodeAsNil() {
x.DataDiskURI = ""
} else {
x.DataDiskURI = string(r.DecodeString())
}
case "cachingMode":
if r.TryDecodeAsNil() {
if x.CachingMode != nil {
x.CachingMode = nil
}
} else {
if x.CachingMode == nil {
x.CachingMode = new(AzureDataDiskCachingMode)
}
x.CachingMode.CodecDecodeSelf(d)
}
case "fsType":
if r.TryDecodeAsNil() {
if x.FSType != nil {
x.FSType = nil
}
} else {
if x.FSType == nil {
x.FSType = new(string)
}
yym1116 := z.DecBinary()
_ = yym1116
if false {
} else {
*((*string)(x.FSType)) = r.DecodeString()
}
}
case "readOnly":
if r.TryDecodeAsNil() {
if x.ReadOnly != nil {
x.ReadOnly = nil
}
} else {
if x.ReadOnly == nil {
x.ReadOnly = new(bool)
}
yym1118 := z.DecBinary()
_ = yym1118
if false {
} else {
*((*bool)(x.ReadOnly)) = r.DecodeBool()
}
}
default:
z.DecStructFieldNotFound(-1, yys1111)
} // end switch yys1111
} // end for yyj1111
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *AzureDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1119 int
var yyb1119 bool
var yyhl1119 bool = l >= 0
yyj1119++
if yyhl1119 {
yyb1119 = yyj1119 > l
} else {
yyb1119 = r.CheckBreak()
}
if yyb1119 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DiskName = ""
} else {
x.DiskName = string(r.DecodeString())
}
yyj1119++
if yyhl1119 {
yyb1119 = yyj1119 > l
} else {
yyb1119 = r.CheckBreak()
}
if yyb1119 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DataDiskURI = ""
} else {
x.DataDiskURI = string(r.DecodeString())
}
yyj1119++
if yyhl1119 {
yyb1119 = yyj1119 > l
} else {
yyb1119 = r.CheckBreak()
}
if yyb1119 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.CachingMode != nil {
x.CachingMode = nil
}
} else {
if x.CachingMode == nil {
x.CachingMode = new(AzureDataDiskCachingMode)
}
x.CachingMode.CodecDecodeSelf(d)
}
yyj1119++
if yyhl1119 {
yyb1119 = yyj1119 > l
} else {
yyb1119 = r.CheckBreak()
}
if yyb1119 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.FSType != nil {
x.FSType = nil
}
} else {
if x.FSType == nil {
x.FSType = new(string)
}
yym1124 := z.DecBinary()
_ = yym1124
if false {
} else {
*((*string)(x.FSType)) = r.DecodeString()
}
}
yyj1119++
if yyhl1119 {
yyb1119 = yyj1119 > l
} else {
yyb1119 = r.CheckBreak()
}
if yyb1119 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.ReadOnly != nil {
x.ReadOnly = nil
}
} else {
if x.ReadOnly == nil {
x.ReadOnly = new(bool)
}
yym1126 := z.DecBinary()
_ = yym1126
if false {
} else {
*((*bool)(x.ReadOnly)) = r.DecodeBool()
}
}
for {
yyj1119++
if yyhl1119 {
yyb1119 = yyj1119 > l
} else {
yyb1119 = r.CheckBreak()
}
if yyb1119 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1119-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1127 := z.EncBinary()
_ = yym1127
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1128 := !z.EncBinary()
yy2arr1128 := z.EncBasicHandle().StructToArray
var yyq1128 [3]bool
_, _, _ = yysep1128, yyq1128, yy2arr1128
const yyr1128 bool = false
yyq1128[1] = len(x.Items) != 0
yyq1128[2] = x.DefaultMode != nil
var yynn1128 int
if yyr1128 || yy2arr1128 {
r.EncodeArrayStart(3)
} else {
yynn1128 = 1
for _, b := range yyq1128 {
if b {
yynn1128++
}
}
r.EncodeMapStart(yynn1128)
yynn1128 = 0
}
if yyr1128 || yy2arr1128 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1130 := z.EncBinary()
_ = yym1130
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)
yym1131 := z.EncBinary()
_ = yym1131
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1128 || yy2arr1128 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1128[1] {
if x.Items == nil {
r.EncodeNil()
} else {
yym1133 := z.EncBinary()
_ = yym1133
if false {
} else {
h.encSliceKeyToPath(([]KeyToPath)(x.Items), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1128[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("items"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym1134 := z.EncBinary()
_ = yym1134
if false {
} else {
h.encSliceKeyToPath(([]KeyToPath)(x.Items), e)
}
}
}
}
if yyr1128 || yy2arr1128 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1128[2] {
if x.DefaultMode == nil {
r.EncodeNil()
} else {
yy1136 := *x.DefaultMode
yym1137 := z.EncBinary()
_ = yym1137
if false {
} else {
r.EncodeInt(int64(yy1136))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1128[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("defaultMode"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.DefaultMode == nil {
r.EncodeNil()
} else {
yy1138 := *x.DefaultMode
yym1139 := z.EncBinary()
_ = yym1139
if false {
} else {
r.EncodeInt(int64(yy1138))
}
}
}
}
if yyr1128 || yy2arr1128 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ConfigMapVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1140 := z.DecBinary()
_ = yym1140
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1141 := r.ContainerType()
if yyct1141 == codecSelferValueTypeMap1234 {
yyl1141 := r.ReadMapStart()
if yyl1141 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1141, d)
}
} else if yyct1141 == codecSelferValueTypeArray1234 {
yyl1141 := r.ReadArrayStart()
if yyl1141 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1141, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ConfigMapVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1142Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1142Slc
var yyhl1142 bool = l >= 0
for yyj1142 := 0; ; yyj1142++ {
if yyhl1142 {
if yyj1142 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1142Slc = r.DecodeBytes(yys1142Slc, true, true)
yys1142 := string(yys1142Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1142 {
case "Name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1144 := &x.Items
yym1145 := z.DecBinary()
_ = yym1145
if false {
} else {
h.decSliceKeyToPath((*[]KeyToPath)(yyv1144), d)
}
}
case "defaultMode":
if r.TryDecodeAsNil() {
if x.DefaultMode != nil {
x.DefaultMode = nil
}
} else {
if x.DefaultMode == nil {
x.DefaultMode = new(int32)
}
yym1147 := z.DecBinary()
_ = yym1147
if false {
} else {
*((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32))
}
}
default:
z.DecStructFieldNotFound(-1, yys1142)
} // end switch yys1142
} // end for yyj1142
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ConfigMapVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1148 int
var yyb1148 bool
var yyhl1148 bool = l >= 0
yyj1148++
if yyhl1148 {
yyb1148 = yyj1148 > l
} else {
yyb1148 = r.CheckBreak()
}
if yyb1148 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1148++
if yyhl1148 {
yyb1148 = yyj1148 > l
} else {
yyb1148 = r.CheckBreak()
}
if yyb1148 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1150 := &x.Items
yym1151 := z.DecBinary()
_ = yym1151
if false {
} else {
h.decSliceKeyToPath((*[]KeyToPath)(yyv1150), d)
}
}
yyj1148++
if yyhl1148 {
yyb1148 = yyj1148 > l
} else {
yyb1148 = r.CheckBreak()
}
if yyb1148 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.DefaultMode != nil {
x.DefaultMode = nil
}
} else {
if x.DefaultMode == nil {
x.DefaultMode = new(int32)
}
yym1153 := z.DecBinary()
_ = yym1153
if false {
} else {
*((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32))
}
}
for {
yyj1148++
if yyhl1148 {
yyb1148 = yyj1148 > l
} else {
yyb1148 = r.CheckBreak()
}
if yyb1148 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1148-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *KeyToPath) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1154 := z.EncBinary()
_ = yym1154
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1155 := !z.EncBinary()
yy2arr1155 := z.EncBasicHandle().StructToArray
var yyq1155 [3]bool
_, _, _ = yysep1155, yyq1155, yy2arr1155
const yyr1155 bool = false
yyq1155[2] = x.Mode != nil
var yynn1155 int
if yyr1155 || yy2arr1155 {
r.EncodeArrayStart(3)
} else {
yynn1155 = 2
for _, b := range yyq1155 {
if b {
yynn1155++
}
}
r.EncodeMapStart(yynn1155)
yynn1155 = 0
}
if yyr1155 || yy2arr1155 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1157 := z.EncBinary()
_ = yym1157
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("key"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1158 := z.EncBinary()
_ = yym1158
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
}
if yyr1155 || yy2arr1155 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1160 := z.EncBinary()
_ = yym1160
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)
yym1161 := z.EncBinary()
_ = yym1161
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr1155 || yy2arr1155 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1155[2] {
if x.Mode == nil {
r.EncodeNil()
} else {
yy1163 := *x.Mode
yym1164 := z.EncBinary()
_ = yym1164
if false {
} else {
r.EncodeInt(int64(yy1163))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1155[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("mode"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Mode == nil {
r.EncodeNil()
} else {
yy1165 := *x.Mode
yym1166 := z.EncBinary()
_ = yym1166
if false {
} else {
r.EncodeInt(int64(yy1165))
}
}
}
}
if yyr1155 || yy2arr1155 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *KeyToPath) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1167 := z.DecBinary()
_ = yym1167
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1168 := r.ContainerType()
if yyct1168 == codecSelferValueTypeMap1234 {
yyl1168 := r.ReadMapStart()
if yyl1168 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1168, d)
}
} else if yyct1168 == codecSelferValueTypeArray1234 {
yyl1168 := r.ReadArrayStart()
if yyl1168 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1168, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *KeyToPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1169Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1169Slc
var yyhl1169 bool = l >= 0
for yyj1169 := 0; ; yyj1169++ {
if yyhl1169 {
if yyj1169 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1169Slc = r.DecodeBytes(yys1169Slc, true, true)
yys1169 := string(yys1169Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1169 {
case "key":
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
case "path":
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
case "mode":
if r.TryDecodeAsNil() {
if x.Mode != nil {
x.Mode = nil
}
} else {
if x.Mode == nil {
x.Mode = new(int32)
}
yym1173 := z.DecBinary()
_ = yym1173
if false {
} else {
*((*int32)(x.Mode)) = int32(r.DecodeInt(32))
}
}
default:
z.DecStructFieldNotFound(-1, yys1169)
} // end switch yys1169
} // end for yyj1169
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *KeyToPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1174 int
var yyb1174 bool
var yyhl1174 bool = l >= 0
yyj1174++
if yyhl1174 {
yyb1174 = yyj1174 > l
} else {
yyb1174 = r.CheckBreak()
}
if yyb1174 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
yyj1174++
if yyhl1174 {
yyb1174 = yyj1174 > l
} else {
yyb1174 = r.CheckBreak()
}
if yyb1174 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
yyj1174++
if yyhl1174 {
yyb1174 = yyj1174 > l
} else {
yyb1174 = r.CheckBreak()
}
if yyb1174 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Mode != nil {
x.Mode = nil
}
} else {
if x.Mode == nil {
x.Mode = new(int32)
}
yym1178 := z.DecBinary()
_ = yym1178
if false {
} else {
*((*int32)(x.Mode)) = int32(r.DecodeInt(32))
}
}
for {
yyj1174++
if yyhl1174 {
yyb1174 = yyj1174 > l
} else {
yyb1174 = r.CheckBreak()
}
if yyb1174 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1174-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 {
yym1179 := z.EncBinary()
_ = yym1179
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1180 := !z.EncBinary()
yy2arr1180 := z.EncBasicHandle().StructToArray
var yyq1180 [5]bool
_, _, _ = yysep1180, yyq1180, yy2arr1180
const yyr1180 bool = false
yyq1180[0] = x.Name != ""
yyq1180[1] = x.HostPort != 0
yyq1180[3] = x.Protocol != ""
yyq1180[4] = x.HostIP != ""
var yynn1180 int
if yyr1180 || yy2arr1180 {
r.EncodeArrayStart(5)
} else {
yynn1180 = 1
for _, b := range yyq1180 {
if b {
yynn1180++
}
}
r.EncodeMapStart(yynn1180)
yynn1180 = 0
}
if yyr1180 || yy2arr1180 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1180[0] {
yym1182 := z.EncBinary()
_ = yym1182
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1180[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1183 := z.EncBinary()
_ = yym1183
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
}
if yyr1180 || yy2arr1180 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1180[1] {
yym1185 := z.EncBinary()
_ = yym1185
if false {
} else {
r.EncodeInt(int64(x.HostPort))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1180[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostPort"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1186 := z.EncBinary()
_ = yym1186
if false {
} else {
r.EncodeInt(int64(x.HostPort))
}
}
}
if yyr1180 || yy2arr1180 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1188 := z.EncBinary()
_ = yym1188
if false {
} else {
r.EncodeInt(int64(x.ContainerPort))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("containerPort"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1189 := z.EncBinary()
_ = yym1189
if false {
} else {
r.EncodeInt(int64(x.ContainerPort))
}
}
if yyr1180 || yy2arr1180 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1180[3] {
x.Protocol.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1180[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("protocol"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Protocol.CodecEncodeSelf(e)
}
}
if yyr1180 || yy2arr1180 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1180[4] {
yym1192 := z.EncBinary()
_ = yym1192
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1180[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1193 := z.EncBinary()
_ = yym1193
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
}
}
}
if yyr1180 || yy2arr1180 {
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
yym1194 := z.DecBinary()
_ = yym1194
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1195 := r.ContainerType()
if yyct1195 == codecSelferValueTypeMap1234 {
yyl1195 := r.ReadMapStart()
if yyl1195 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1195, d)
}
} else if yyct1195 == codecSelferValueTypeArray1234 {
yyl1195 := r.ReadArrayStart()
if yyl1195 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1195, 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 yys1196Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1196Slc
var yyhl1196 bool = l >= 0
for yyj1196 := 0; ; yyj1196++ {
if yyhl1196 {
if yyj1196 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1196Slc = r.DecodeBytes(yys1196Slc, true, true)
yys1196 := string(yys1196Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1196 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "hostPort":
if r.TryDecodeAsNil() {
x.HostPort = 0
} else {
x.HostPort = int32(r.DecodeInt(32))
}
case "containerPort":
if r.TryDecodeAsNil() {
x.ContainerPort = 0
} else {
x.ContainerPort = int32(r.DecodeInt(32))
}
case "protocol":
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
case "hostIP":
if r.TryDecodeAsNil() {
x.HostIP = ""
} else {
x.HostIP = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1196)
} // end switch yys1196
} // end for yyj1196
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 yyj1202 int
var yyb1202 bool
var yyhl1202 bool = l >= 0
yyj1202++
if yyhl1202 {
yyb1202 = yyj1202 > l
} else {
yyb1202 = r.CheckBreak()
}
if yyb1202 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1202++
if yyhl1202 {
yyb1202 = yyj1202 > l
} else {
yyb1202 = r.CheckBreak()
}
if yyb1202 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostPort = 0
} else {
x.HostPort = int32(r.DecodeInt(32))
}
yyj1202++
if yyhl1202 {
yyb1202 = yyj1202 > l
} else {
yyb1202 = r.CheckBreak()
}
if yyb1202 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerPort = 0
} else {
x.ContainerPort = int32(r.DecodeInt(32))
}
yyj1202++
if yyhl1202 {
yyb1202 = yyj1202 > l
} else {
yyb1202 = r.CheckBreak()
}
if yyb1202 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
yyj1202++
if yyhl1202 {
yyb1202 = yyj1202 > l
} else {
yyb1202 = r.CheckBreak()
}
if yyb1202 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostIP = ""
} else {
x.HostIP = string(r.DecodeString())
}
for {
yyj1202++
if yyhl1202 {
yyb1202 = yyj1202 > l
} else {
yyb1202 = r.CheckBreak()
}
if yyb1202 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1202-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 {
yym1208 := z.EncBinary()
_ = yym1208
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1209 := !z.EncBinary()
yy2arr1209 := z.EncBasicHandle().StructToArray
var yyq1209 [4]bool
_, _, _ = yysep1209, yyq1209, yy2arr1209
const yyr1209 bool = false
yyq1209[1] = x.ReadOnly != false
yyq1209[3] = x.SubPath != ""
var yynn1209 int
if yyr1209 || yy2arr1209 {
r.EncodeArrayStart(4)
} else {
yynn1209 = 2
for _, b := range yyq1209 {
if b {
yynn1209++
}
}
r.EncodeMapStart(yynn1209)
yynn1209 = 0
}
if yyr1209 || yy2arr1209 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1211 := z.EncBinary()
_ = yym1211
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)
yym1212 := z.EncBinary()
_ = yym1212
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1209 || yy2arr1209 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1209[1] {
yym1214 := z.EncBinary()
_ = yym1214
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1209[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1215 := z.EncBinary()
_ = yym1215
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr1209 || yy2arr1209 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1217 := z.EncBinary()
_ = yym1217
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)
yym1218 := z.EncBinary()
_ = yym1218
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.MountPath))
}
}
if yyr1209 || yy2arr1209 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1209[3] {
yym1220 := z.EncBinary()
_ = yym1220
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SubPath))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1209[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("subPath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1221 := z.EncBinary()
_ = yym1221
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SubPath))
}
}
}
if yyr1209 || yy2arr1209 {
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
yym1222 := z.DecBinary()
_ = yym1222
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1223 := r.ContainerType()
if yyct1223 == codecSelferValueTypeMap1234 {
yyl1223 := r.ReadMapStart()
if yyl1223 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1223, d)
}
} else if yyct1223 == codecSelferValueTypeArray1234 {
yyl1223 := r.ReadArrayStart()
if yyl1223 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1223, 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 yys1224Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1224Slc
var yyhl1224 bool = l >= 0
for yyj1224 := 0; ; yyj1224++ {
if yyhl1224 {
if yyj1224 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1224Slc = r.DecodeBytes(yys1224Slc, true, true)
yys1224 := string(yys1224Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1224 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
case "mountPath":
if r.TryDecodeAsNil() {
x.MountPath = ""
} else {
x.MountPath = string(r.DecodeString())
}
case "subPath":
if r.TryDecodeAsNil() {
x.SubPath = ""
} else {
x.SubPath = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1224)
} // end switch yys1224
} // end for yyj1224
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 yyj1229 int
var yyb1229 bool
var yyhl1229 bool = l >= 0
yyj1229++
if yyhl1229 {
yyb1229 = yyj1229 > l
} else {
yyb1229 = r.CheckBreak()
}
if yyb1229 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1229++
if yyhl1229 {
yyb1229 = yyj1229 > l
} else {
yyb1229 = r.CheckBreak()
}
if yyb1229 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
yyj1229++
if yyhl1229 {
yyb1229 = yyj1229 > l
} else {
yyb1229 = r.CheckBreak()
}
if yyb1229 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.MountPath = ""
} else {
x.MountPath = string(r.DecodeString())
}
yyj1229++
if yyhl1229 {
yyb1229 = yyj1229 > l
} else {
yyb1229 = r.CheckBreak()
}
if yyb1229 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SubPath = ""
} else {
x.SubPath = string(r.DecodeString())
}
for {
yyj1229++
if yyhl1229 {
yyb1229 = yyj1229 > l
} else {
yyb1229 = r.CheckBreak()
}
if yyb1229 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1229-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 {
yym1234 := z.EncBinary()
_ = yym1234
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1235 := !z.EncBinary()
yy2arr1235 := z.EncBasicHandle().StructToArray
var yyq1235 [3]bool
_, _, _ = yysep1235, yyq1235, yy2arr1235
const yyr1235 bool = false
yyq1235[1] = x.Value != ""
yyq1235[2] = x.ValueFrom != nil
var yynn1235 int
if yyr1235 || yy2arr1235 {
r.EncodeArrayStart(3)
} else {
yynn1235 = 1
for _, b := range yyq1235 {
if b {
yynn1235++
}
}
r.EncodeMapStart(yynn1235)
yynn1235 = 0
}
if yyr1235 || yy2arr1235 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1237 := z.EncBinary()
_ = yym1237
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)
yym1238 := z.EncBinary()
_ = yym1238
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1235 || yy2arr1235 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1235[1] {
yym1240 := z.EncBinary()
_ = yym1240
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1235[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("value"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1241 := z.EncBinary()
_ = yym1241
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
}
}
if yyr1235 || yy2arr1235 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1235[2] {
if x.ValueFrom == nil {
r.EncodeNil()
} else {
x.ValueFrom.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1235[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 yyr1235 || yy2arr1235 {
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
yym1243 := z.DecBinary()
_ = yym1243
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1244 := r.ContainerType()
if yyct1244 == codecSelferValueTypeMap1234 {
yyl1244 := r.ReadMapStart()
if yyl1244 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1244, d)
}
} else if yyct1244 == codecSelferValueTypeArray1234 {
yyl1244 := r.ReadArrayStart()
if yyl1244 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1244, 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 yys1245Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1245Slc
var yyhl1245 bool = l >= 0
for yyj1245 := 0; ; yyj1245++ {
if yyhl1245 {
if yyj1245 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1245Slc = r.DecodeBytes(yys1245Slc, true, true)
yys1245 := string(yys1245Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1245 {
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, yys1245)
} // end switch yys1245
} // end for yyj1245
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 yyj1249 int
var yyb1249 bool
var yyhl1249 bool = l >= 0
yyj1249++
if yyhl1249 {
yyb1249 = yyj1249 > l
} else {
yyb1249 = r.CheckBreak()
}
if yyb1249 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1249++
if yyhl1249 {
yyb1249 = yyj1249 > l
} else {
yyb1249 = r.CheckBreak()
}
if yyb1249 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Value = ""
} else {
x.Value = string(r.DecodeString())
}
yyj1249++
if yyhl1249 {
yyb1249 = yyj1249 > l
} else {
yyb1249 = r.CheckBreak()
}
if yyb1249 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.ValueFrom != nil {
x.ValueFrom = nil
}
} else {
if x.ValueFrom == nil {
x.ValueFrom = new(EnvVarSource)
}
x.ValueFrom.CodecDecodeSelf(d)
}
for {
yyj1249++
if yyhl1249 {
yyb1249 = yyj1249 > l
} else {
yyb1249 = r.CheckBreak()
}
if yyb1249 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1249-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1253 := z.EncBinary()
_ = yym1253
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1254 := !z.EncBinary()
yy2arr1254 := z.EncBasicHandle().StructToArray
var yyq1254 [4]bool
_, _, _ = yysep1254, yyq1254, yy2arr1254
const yyr1254 bool = false
yyq1254[0] = x.FieldRef != nil
yyq1254[1] = x.ResourceFieldRef != nil
yyq1254[2] = x.ConfigMapKeyRef != nil
yyq1254[3] = x.SecretKeyRef != nil
var yynn1254 int
if yyr1254 || yy2arr1254 {
r.EncodeArrayStart(4)
} else {
yynn1254 = 0
for _, b := range yyq1254 {
if b {
yynn1254++
}
}
r.EncodeMapStart(yynn1254)
yynn1254 = 0
}
if yyr1254 || yy2arr1254 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1254[0] {
if x.FieldRef == nil {
r.EncodeNil()
} else {
x.FieldRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1254[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fieldRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.FieldRef == nil {
r.EncodeNil()
} else {
x.FieldRef.CodecEncodeSelf(e)
}
}
}
if yyr1254 || yy2arr1254 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1254[1] {
if x.ResourceFieldRef == nil {
r.EncodeNil()
} else {
x.ResourceFieldRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1254[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("resourceFieldRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ResourceFieldRef == nil {
r.EncodeNil()
} else {
x.ResourceFieldRef.CodecEncodeSelf(e)
}
}
}
if yyr1254 || yy2arr1254 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1254[2] {
if x.ConfigMapKeyRef == nil {
r.EncodeNil()
} else {
x.ConfigMapKeyRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1254[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("configMapKeyRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ConfigMapKeyRef == nil {
r.EncodeNil()
} else {
x.ConfigMapKeyRef.CodecEncodeSelf(e)
}
}
}
if yyr1254 || yy2arr1254 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1254[3] {
if x.SecretKeyRef == nil {
r.EncodeNil()
} else {
x.SecretKeyRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1254[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("secretKeyRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.SecretKeyRef == nil {
r.EncodeNil()
} else {
x.SecretKeyRef.CodecEncodeSelf(e)
}
}
}
if yyr1254 || yy2arr1254 {
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
yym1259 := z.DecBinary()
_ = yym1259
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1260 := r.ContainerType()
if yyct1260 == codecSelferValueTypeMap1234 {
yyl1260 := r.ReadMapStart()
if yyl1260 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1260, d)
}
} else if yyct1260 == codecSelferValueTypeArray1234 {
yyl1260 := r.ReadArrayStart()
if yyl1260 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1260, 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 yys1261Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1261Slc
var yyhl1261 bool = l >= 0
for yyj1261 := 0; ; yyj1261++ {
if yyhl1261 {
if yyj1261 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1261Slc = r.DecodeBytes(yys1261Slc, true, true)
yys1261 := string(yys1261Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1261 {
case "fieldRef":
if r.TryDecodeAsNil() {
if x.FieldRef != nil {
x.FieldRef = nil
}
} else {
if x.FieldRef == nil {
x.FieldRef = new(ObjectFieldSelector)
}
x.FieldRef.CodecDecodeSelf(d)
}
case "resourceFieldRef":
if r.TryDecodeAsNil() {
if x.ResourceFieldRef != nil {
x.ResourceFieldRef = nil
}
} else {
if x.ResourceFieldRef == nil {
x.ResourceFieldRef = new(ResourceFieldSelector)
}
x.ResourceFieldRef.CodecDecodeSelf(d)
}
case "configMapKeyRef":
if r.TryDecodeAsNil() {
if x.ConfigMapKeyRef != nil {
x.ConfigMapKeyRef = nil
}
} else {
if x.ConfigMapKeyRef == nil {
x.ConfigMapKeyRef = new(ConfigMapKeySelector)
}
x.ConfigMapKeyRef.CodecDecodeSelf(d)
}
case "secretKeyRef":
if r.TryDecodeAsNil() {
if x.SecretKeyRef != nil {
x.SecretKeyRef = nil
}
} else {
if x.SecretKeyRef == nil {
x.SecretKeyRef = new(SecretKeySelector)
}
x.SecretKeyRef.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1261)
} // end switch yys1261
} // end for yyj1261
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 yyj1266 int
var yyb1266 bool
var yyhl1266 bool = l >= 0
yyj1266++
if yyhl1266 {
yyb1266 = yyj1266 > l
} else {
yyb1266 = r.CheckBreak()
}
if yyb1266 {
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)
}
yyj1266++
if yyhl1266 {
yyb1266 = yyj1266 > l
} else {
yyb1266 = r.CheckBreak()
}
if yyb1266 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.ResourceFieldRef != nil {
x.ResourceFieldRef = nil
}
} else {
if x.ResourceFieldRef == nil {
x.ResourceFieldRef = new(ResourceFieldSelector)
}
x.ResourceFieldRef.CodecDecodeSelf(d)
}
yyj1266++
if yyhl1266 {
yyb1266 = yyj1266 > l
} else {
yyb1266 = r.CheckBreak()
}
if yyb1266 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.ConfigMapKeyRef != nil {
x.ConfigMapKeyRef = nil
}
} else {
if x.ConfigMapKeyRef == nil {
x.ConfigMapKeyRef = new(ConfigMapKeySelector)
}
x.ConfigMapKeyRef.CodecDecodeSelf(d)
}
yyj1266++
if yyhl1266 {
yyb1266 = yyj1266 > l
} else {
yyb1266 = r.CheckBreak()
}
if yyb1266 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.SecretKeyRef != nil {
x.SecretKeyRef = nil
}
} else {
if x.SecretKeyRef == nil {
x.SecretKeyRef = new(SecretKeySelector)
}
x.SecretKeyRef.CodecDecodeSelf(d)
}
for {
yyj1266++
if yyhl1266 {
yyb1266 = yyj1266 > l
} else {
yyb1266 = r.CheckBreak()
}
if yyb1266 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1266-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 {
yym1271 := z.EncBinary()
_ = yym1271
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1272 := !z.EncBinary()
yy2arr1272 := z.EncBasicHandle().StructToArray
var yyq1272 [2]bool
_, _, _ = yysep1272, yyq1272, yy2arr1272
const yyr1272 bool = false
var yynn1272 int
if yyr1272 || yy2arr1272 {
r.EncodeArrayStart(2)
} else {
yynn1272 = 2
for _, b := range yyq1272 {
if b {
yynn1272++
}
}
r.EncodeMapStart(yynn1272)
yynn1272 = 0
}
if yyr1272 || yy2arr1272 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1274 := z.EncBinary()
_ = yym1274
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)
yym1275 := z.EncBinary()
_ = yym1275
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
if yyr1272 || yy2arr1272 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1277 := z.EncBinary()
_ = yym1277
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)
yym1278 := z.EncBinary()
_ = yym1278
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
}
}
if yyr1272 || yy2arr1272 {
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
yym1279 := z.DecBinary()
_ = yym1279
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1280 := r.ContainerType()
if yyct1280 == codecSelferValueTypeMap1234 {
yyl1280 := r.ReadMapStart()
if yyl1280 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1280, d)
}
} else if yyct1280 == codecSelferValueTypeArray1234 {
yyl1280 := r.ReadArrayStart()
if yyl1280 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1280, 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 yys1281Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1281Slc
var yyhl1281 bool = l >= 0
for yyj1281 := 0; ; yyj1281++ {
if yyhl1281 {
if yyj1281 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1281Slc = r.DecodeBytes(yys1281Slc, true, true)
yys1281 := string(yys1281Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1281 {
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, yys1281)
} // end switch yys1281
} // end for yyj1281
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 yyj1284 int
var yyb1284 bool
var yyhl1284 bool = l >= 0
yyj1284++
if yyhl1284 {
yyb1284 = yyj1284 > l
} else {
yyb1284 = r.CheckBreak()
}
if yyb1284 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1284++
if yyhl1284 {
yyb1284 = yyj1284 > l
} else {
yyb1284 = r.CheckBreak()
}
if yyb1284 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FieldPath = ""
} else {
x.FieldPath = string(r.DecodeString())
}
for {
yyj1284++
if yyhl1284 {
yyb1284 = yyj1284 > l
} else {
yyb1284 = r.CheckBreak()
}
if yyb1284 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1284-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ResourceFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1287 := z.EncBinary()
_ = yym1287
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1288 := !z.EncBinary()
yy2arr1288 := z.EncBasicHandle().StructToArray
var yyq1288 [3]bool
_, _, _ = yysep1288, yyq1288, yy2arr1288
const yyr1288 bool = false
yyq1288[0] = x.ContainerName != ""
yyq1288[2] = true
var yynn1288 int
if yyr1288 || yy2arr1288 {
r.EncodeArrayStart(3)
} else {
yynn1288 = 1
for _, b := range yyq1288 {
if b {
yynn1288++
}
}
r.EncodeMapStart(yynn1288)
yynn1288 = 0
}
if yyr1288 || yy2arr1288 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1288[0] {
yym1290 := z.EncBinary()
_ = yym1290
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1288[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("containerName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1291 := z.EncBinary()
_ = yym1291
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName))
}
}
}
if yyr1288 || yy2arr1288 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1293 := z.EncBinary()
_ = yym1293
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Resource))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("resource"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1294 := z.EncBinary()
_ = yym1294
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Resource))
}
}
if yyr1288 || yy2arr1288 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1288[2] {
yy1296 := &x.Divisor
yym1297 := z.EncBinary()
_ = yym1297
if false {
} else if z.HasExtensions() && z.EncExt(yy1296) {
} else if !yym1297 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1296)
} else {
z.EncFallback(yy1296)
}
} else {
r.EncodeNil()
}
} else {
if yyq1288[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("divisor"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1298 := &x.Divisor
yym1299 := z.EncBinary()
_ = yym1299
if false {
} else if z.HasExtensions() && z.EncExt(yy1298) {
} else if !yym1299 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1298)
} else {
z.EncFallback(yy1298)
}
}
}
if yyr1288 || yy2arr1288 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ResourceFieldSelector) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1300 := z.DecBinary()
_ = yym1300
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1301 := r.ContainerType()
if yyct1301 == codecSelferValueTypeMap1234 {
yyl1301 := r.ReadMapStart()
if yyl1301 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1301, d)
}
} else if yyct1301 == codecSelferValueTypeArray1234 {
yyl1301 := r.ReadArrayStart()
if yyl1301 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1301, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ResourceFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1302Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1302Slc
var yyhl1302 bool = l >= 0
for yyj1302 := 0; ; yyj1302++ {
if yyhl1302 {
if yyj1302 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1302Slc = r.DecodeBytes(yys1302Slc, true, true)
yys1302 := string(yys1302Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1302 {
case "containerName":
if r.TryDecodeAsNil() {
x.ContainerName = ""
} else {
x.ContainerName = string(r.DecodeString())
}
case "resource":
if r.TryDecodeAsNil() {
x.Resource = ""
} else {
x.Resource = string(r.DecodeString())
}
case "divisor":
if r.TryDecodeAsNil() {
x.Divisor = pkg3_resource.Quantity{}
} else {
yyv1305 := &x.Divisor
yym1306 := z.DecBinary()
_ = yym1306
if false {
} else if z.HasExtensions() && z.DecExt(yyv1305) {
} else if !yym1306 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1305)
} else {
z.DecFallback(yyv1305, false)
}
}
default:
z.DecStructFieldNotFound(-1, yys1302)
} // end switch yys1302
} // end for yyj1302
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ResourceFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1307 int
var yyb1307 bool
var yyhl1307 bool = l >= 0
yyj1307++
if yyhl1307 {
yyb1307 = yyj1307 > l
} else {
yyb1307 = r.CheckBreak()
}
if yyb1307 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerName = ""
} else {
x.ContainerName = string(r.DecodeString())
}
yyj1307++
if yyhl1307 {
yyb1307 = yyj1307 > l
} else {
yyb1307 = r.CheckBreak()
}
if yyb1307 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Resource = ""
} else {
x.Resource = string(r.DecodeString())
}
yyj1307++
if yyhl1307 {
yyb1307 = yyj1307 > l
} else {
yyb1307 = r.CheckBreak()
}
if yyb1307 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Divisor = pkg3_resource.Quantity{}
} else {
yyv1310 := &x.Divisor
yym1311 := z.DecBinary()
_ = yym1311
if false {
} else if z.HasExtensions() && z.DecExt(yyv1310) {
} else if !yym1311 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1310)
} else {
z.DecFallback(yyv1310, false)
}
}
for {
yyj1307++
if yyhl1307 {
yyb1307 = yyj1307 > l
} else {
yyb1307 = r.CheckBreak()
}
if yyb1307 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1307-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ConfigMapKeySelector) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1312 := z.EncBinary()
_ = yym1312
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1313 := !z.EncBinary()
yy2arr1313 := z.EncBasicHandle().StructToArray
var yyq1313 [2]bool
_, _, _ = yysep1313, yyq1313, yy2arr1313
const yyr1313 bool = false
var yynn1313 int
if yyr1313 || yy2arr1313 {
r.EncodeArrayStart(2)
} else {
yynn1313 = 2
for _, b := range yyq1313 {
if b {
yynn1313++
}
}
r.EncodeMapStart(yynn1313)
yynn1313 = 0
}
if yyr1313 || yy2arr1313 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1315 := z.EncBinary()
_ = yym1315
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)
yym1316 := z.EncBinary()
_ = yym1316
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1313 || yy2arr1313 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1318 := z.EncBinary()
_ = yym1318
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("key"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1319 := z.EncBinary()
_ = yym1319
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
}
if yyr1313 || yy2arr1313 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ConfigMapKeySelector) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1320 := z.DecBinary()
_ = yym1320
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1321 := r.ContainerType()
if yyct1321 == codecSelferValueTypeMap1234 {
yyl1321 := r.ReadMapStart()
if yyl1321 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1321, d)
}
} else if yyct1321 == codecSelferValueTypeArray1234 {
yyl1321 := r.ReadArrayStart()
if yyl1321 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1321, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ConfigMapKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1322Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1322Slc
var yyhl1322 bool = l >= 0
for yyj1322 := 0; ; yyj1322++ {
if yyhl1322 {
if yyj1322 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1322Slc = r.DecodeBytes(yys1322Slc, true, true)
yys1322 := string(yys1322Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1322 {
case "Name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "key":
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1322)
} // end switch yys1322
} // end for yyj1322
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ConfigMapKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1325 int
var yyb1325 bool
var yyhl1325 bool = l >= 0
yyj1325++
if yyhl1325 {
yyb1325 = yyj1325 > l
} else {
yyb1325 = r.CheckBreak()
}
if yyb1325 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1325++
if yyhl1325 {
yyb1325 = yyj1325 > l
} else {
yyb1325 = r.CheckBreak()
}
if yyb1325 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
for {
yyj1325++
if yyhl1325 {
yyb1325 = yyj1325 > l
} else {
yyb1325 = r.CheckBreak()
}
if yyb1325 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1325-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *SecretKeySelector) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1328 := z.EncBinary()
_ = yym1328
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1329 := !z.EncBinary()
yy2arr1329 := z.EncBasicHandle().StructToArray
var yyq1329 [2]bool
_, _, _ = yysep1329, yyq1329, yy2arr1329
const yyr1329 bool = false
var yynn1329 int
if yyr1329 || yy2arr1329 {
r.EncodeArrayStart(2)
} else {
yynn1329 = 2
for _, b := range yyq1329 {
if b {
yynn1329++
}
}
r.EncodeMapStart(yynn1329)
yynn1329 = 0
}
if yyr1329 || yy2arr1329 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1331 := z.EncBinary()
_ = yym1331
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)
yym1332 := z.EncBinary()
_ = yym1332
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1329 || yy2arr1329 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1334 := z.EncBinary()
_ = yym1334
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("key"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1335 := z.EncBinary()
_ = yym1335
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
}
if yyr1329 || yy2arr1329 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *SecretKeySelector) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1336 := z.DecBinary()
_ = yym1336
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1337 := r.ContainerType()
if yyct1337 == codecSelferValueTypeMap1234 {
yyl1337 := r.ReadMapStart()
if yyl1337 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1337, d)
}
} else if yyct1337 == codecSelferValueTypeArray1234 {
yyl1337 := r.ReadArrayStart()
if yyl1337 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1337, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *SecretKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1338Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1338Slc
var yyhl1338 bool = l >= 0
for yyj1338 := 0; ; yyj1338++ {
if yyhl1338 {
if yyj1338 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1338Slc = r.DecodeBytes(yys1338Slc, true, true)
yys1338 := string(yys1338Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1338 {
case "Name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "key":
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1338)
} // end switch yys1338
} // end for yyj1338
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *SecretKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1341 int
var yyb1341 bool
var yyhl1341 bool = l >= 0
yyj1341++
if yyhl1341 {
yyb1341 = yyj1341 > l
} else {
yyb1341 = r.CheckBreak()
}
if yyb1341 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1341++
if yyhl1341 {
yyb1341 = yyj1341 > l
} else {
yyb1341 = r.CheckBreak()
}
if yyb1341 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
for {
yyj1341++
if yyhl1341 {
yyb1341 = yyj1341 > l
} else {
yyb1341 = r.CheckBreak()
}
if yyb1341 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1341-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *HTTPHeader) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1344 := z.EncBinary()
_ = yym1344
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1345 := !z.EncBinary()
yy2arr1345 := z.EncBasicHandle().StructToArray
var yyq1345 [2]bool
_, _, _ = yysep1345, yyq1345, yy2arr1345
const yyr1345 bool = false
var yynn1345 int
if yyr1345 || yy2arr1345 {
r.EncodeArrayStart(2)
} else {
yynn1345 = 2
for _, b := range yyq1345 {
if b {
yynn1345++
}
}
r.EncodeMapStart(yynn1345)
yynn1345 = 0
}
if yyr1345 || yy2arr1345 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1347 := z.EncBinary()
_ = yym1347
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)
yym1348 := z.EncBinary()
_ = yym1348
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1345 || yy2arr1345 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1350 := z.EncBinary()
_ = yym1350
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("value"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1351 := z.EncBinary()
_ = yym1351
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
}
if yyr1345 || yy2arr1345 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *HTTPHeader) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1352 := z.DecBinary()
_ = yym1352
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1353 := r.ContainerType()
if yyct1353 == codecSelferValueTypeMap1234 {
yyl1353 := r.ReadMapStart()
if yyl1353 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1353, d)
}
} else if yyct1353 == codecSelferValueTypeArray1234 {
yyl1353 := r.ReadArrayStart()
if yyl1353 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1353, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *HTTPHeader) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1354Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1354Slc
var yyhl1354 bool = l >= 0
for yyj1354 := 0; ; yyj1354++ {
if yyhl1354 {
if yyj1354 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1354Slc = r.DecodeBytes(yys1354Slc, true, true)
yys1354 := string(yys1354Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1354 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "value":
if r.TryDecodeAsNil() {
x.Value = ""
} else {
x.Value = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1354)
} // end switch yys1354
} // end for yyj1354
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *HTTPHeader) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1357 int
var yyb1357 bool
var yyhl1357 bool = l >= 0
yyj1357++
if yyhl1357 {
yyb1357 = yyj1357 > l
} else {
yyb1357 = r.CheckBreak()
}
if yyb1357 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1357++
if yyhl1357 {
yyb1357 = yyj1357 > l
} else {
yyb1357 = r.CheckBreak()
}
if yyb1357 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Value = ""
} else {
x.Value = string(r.DecodeString())
}
for {
yyj1357++
if yyhl1357 {
yyb1357 = yyj1357 > l
} else {
yyb1357 = r.CheckBreak()
}
if yyb1357 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1357-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 {
yym1360 := z.EncBinary()
_ = yym1360
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1361 := !z.EncBinary()
yy2arr1361 := z.EncBasicHandle().StructToArray
var yyq1361 [5]bool
_, _, _ = yysep1361, yyq1361, yy2arr1361
const yyr1361 bool = false
yyq1361[0] = x.Path != ""
yyq1361[1] = true
yyq1361[2] = x.Host != ""
yyq1361[3] = x.Scheme != ""
yyq1361[4] = len(x.HTTPHeaders) != 0
var yynn1361 int
if yyr1361 || yy2arr1361 {
r.EncodeArrayStart(5)
} else {
yynn1361 = 0
for _, b := range yyq1361 {
if b {
yynn1361++
}
}
r.EncodeMapStart(yynn1361)
yynn1361 = 0
}
if yyr1361 || yy2arr1361 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1361[0] {
yym1363 := z.EncBinary()
_ = yym1363
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1361[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("path"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1364 := z.EncBinary()
_ = yym1364
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
}
if yyr1361 || yy2arr1361 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1361[1] {
yy1366 := &x.Port
yym1367 := z.EncBinary()
_ = yym1367
if false {
} else if z.HasExtensions() && z.EncExt(yy1366) {
} else if !yym1367 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1366)
} else {
z.EncFallback(yy1366)
}
} else {
r.EncodeNil()
}
} else {
if yyq1361[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1368 := &x.Port
yym1369 := z.EncBinary()
_ = yym1369
if false {
} else if z.HasExtensions() && z.EncExt(yy1368) {
} else if !yym1369 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1368)
} else {
z.EncFallback(yy1368)
}
}
}
if yyr1361 || yy2arr1361 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1361[2] {
yym1371 := z.EncBinary()
_ = yym1371
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1361[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("host"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1372 := z.EncBinary()
_ = yym1372
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
}
}
}
if yyr1361 || yy2arr1361 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1361[3] {
x.Scheme.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1361[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("scheme"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Scheme.CodecEncodeSelf(e)
}
}
if yyr1361 || yy2arr1361 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1361[4] {
if x.HTTPHeaders == nil {
r.EncodeNil()
} else {
yym1375 := z.EncBinary()
_ = yym1375
if false {
} else {
h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1361[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("httpHeaders"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.HTTPHeaders == nil {
r.EncodeNil()
} else {
yym1376 := z.EncBinary()
_ = yym1376
if false {
} else {
h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e)
}
}
}
}
if yyr1361 || yy2arr1361 {
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
yym1377 := z.DecBinary()
_ = yym1377
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1378 := r.ContainerType()
if yyct1378 == codecSelferValueTypeMap1234 {
yyl1378 := r.ReadMapStart()
if yyl1378 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1378, d)
}
} else if yyct1378 == codecSelferValueTypeArray1234 {
yyl1378 := r.ReadArrayStart()
if yyl1378 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1378, 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 yys1379Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1379Slc
var yyhl1379 bool = l >= 0
for yyj1379 := 0; ; yyj1379++ {
if yyhl1379 {
if yyj1379 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1379Slc = r.DecodeBytes(yys1379Slc, true, true)
yys1379 := string(yys1379Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1379 {
case "path":
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
case "port":
if r.TryDecodeAsNil() {
x.Port = pkg4_intstr.IntOrString{}
} else {
yyv1381 := &x.Port
yym1382 := z.DecBinary()
_ = yym1382
if false {
} else if z.HasExtensions() && z.DecExt(yyv1381) {
} else if !yym1382 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1381)
} else {
z.DecFallback(yyv1381, false)
}
}
case "host":
if r.TryDecodeAsNil() {
x.Host = ""
} else {
x.Host = string(r.DecodeString())
}
case "scheme":
if r.TryDecodeAsNil() {
x.Scheme = ""
} else {
x.Scheme = URIScheme(r.DecodeString())
}
case "httpHeaders":
if r.TryDecodeAsNil() {
x.HTTPHeaders = nil
} else {
yyv1385 := &x.HTTPHeaders
yym1386 := z.DecBinary()
_ = yym1386
if false {
} else {
h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1385), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1379)
} // end switch yys1379
} // end for yyj1379
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 yyj1387 int
var yyb1387 bool
var yyhl1387 bool = l >= 0
yyj1387++
if yyhl1387 {
yyb1387 = yyj1387 > l
} else {
yyb1387 = r.CheckBreak()
}
if yyb1387 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
yyj1387++
if yyhl1387 {
yyb1387 = yyj1387 > l
} else {
yyb1387 = r.CheckBreak()
}
if yyb1387 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = pkg4_intstr.IntOrString{}
} else {
yyv1389 := &x.Port
yym1390 := z.DecBinary()
_ = yym1390
if false {
} else if z.HasExtensions() && z.DecExt(yyv1389) {
} else if !yym1390 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1389)
} else {
z.DecFallback(yyv1389, false)
}
}
yyj1387++
if yyhl1387 {
yyb1387 = yyj1387 > l
} else {
yyb1387 = r.CheckBreak()
}
if yyb1387 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Host = ""
} else {
x.Host = string(r.DecodeString())
}
yyj1387++
if yyhl1387 {
yyb1387 = yyj1387 > l
} else {
yyb1387 = r.CheckBreak()
}
if yyb1387 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Scheme = ""
} else {
x.Scheme = URIScheme(r.DecodeString())
}
yyj1387++
if yyhl1387 {
yyb1387 = yyj1387 > l
} else {
yyb1387 = r.CheckBreak()
}
if yyb1387 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HTTPHeaders = nil
} else {
yyv1393 := &x.HTTPHeaders
yym1394 := z.DecBinary()
_ = yym1394
if false {
} else {
h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1393), d)
}
}
for {
yyj1387++
if yyhl1387 {
yyb1387 = yyj1387 > l
} else {
yyb1387 = r.CheckBreak()
}
if yyb1387 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1387-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x URIScheme) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1395 := z.EncBinary()
_ = yym1395
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
yym1396 := z.DecBinary()
_ = yym1396
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 {
yym1397 := z.EncBinary()
_ = yym1397
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1398 := !z.EncBinary()
yy2arr1398 := z.EncBasicHandle().StructToArray
var yyq1398 [1]bool
_, _, _ = yysep1398, yyq1398, yy2arr1398
const yyr1398 bool = false
yyq1398[0] = true
var yynn1398 int
if yyr1398 || yy2arr1398 {
r.EncodeArrayStart(1)
} else {
yynn1398 = 0
for _, b := range yyq1398 {
if b {
yynn1398++
}
}
r.EncodeMapStart(yynn1398)
yynn1398 = 0
}
if yyr1398 || yy2arr1398 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1398[0] {
yy1400 := &x.Port
yym1401 := z.EncBinary()
_ = yym1401
if false {
} else if z.HasExtensions() && z.EncExt(yy1400) {
} else if !yym1401 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1400)
} else {
z.EncFallback(yy1400)
}
} else {
r.EncodeNil()
}
} else {
if yyq1398[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1402 := &x.Port
yym1403 := z.EncBinary()
_ = yym1403
if false {
} else if z.HasExtensions() && z.EncExt(yy1402) {
} else if !yym1403 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1402)
} else {
z.EncFallback(yy1402)
}
}
}
if yyr1398 || yy2arr1398 {
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
yym1404 := z.DecBinary()
_ = yym1404
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1405 := r.ContainerType()
if yyct1405 == codecSelferValueTypeMap1234 {
yyl1405 := r.ReadMapStart()
if yyl1405 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1405, d)
}
} else if yyct1405 == codecSelferValueTypeArray1234 {
yyl1405 := r.ReadArrayStart()
if yyl1405 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1405, 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 yys1406Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1406Slc
var yyhl1406 bool = l >= 0
for yyj1406 := 0; ; yyj1406++ {
if yyhl1406 {
if yyj1406 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1406Slc = r.DecodeBytes(yys1406Slc, true, true)
yys1406 := string(yys1406Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1406 {
case "port":
if r.TryDecodeAsNil() {
x.Port = pkg4_intstr.IntOrString{}
} else {
yyv1407 := &x.Port
yym1408 := z.DecBinary()
_ = yym1408
if false {
} else if z.HasExtensions() && z.DecExt(yyv1407) {
} else if !yym1408 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1407)
} else {
z.DecFallback(yyv1407, false)
}
}
default:
z.DecStructFieldNotFound(-1, yys1406)
} // end switch yys1406
} // end for yyj1406
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 yyj1409 int
var yyb1409 bool
var yyhl1409 bool = l >= 0
yyj1409++
if yyhl1409 {
yyb1409 = yyj1409 > l
} else {
yyb1409 = r.CheckBreak()
}
if yyb1409 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = pkg4_intstr.IntOrString{}
} else {
yyv1410 := &x.Port
yym1411 := z.DecBinary()
_ = yym1411
if false {
} else if z.HasExtensions() && z.DecExt(yyv1410) {
} else if !yym1411 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1410)
} else {
z.DecFallback(yyv1410, false)
}
}
for {
yyj1409++
if yyhl1409 {
yyb1409 = yyj1409 > l
} else {
yyb1409 = r.CheckBreak()
}
if yyb1409 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1409-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 {
yym1412 := z.EncBinary()
_ = yym1412
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1413 := !z.EncBinary()
yy2arr1413 := z.EncBasicHandle().StructToArray
var yyq1413 [1]bool
_, _, _ = yysep1413, yyq1413, yy2arr1413
const yyr1413 bool = false
yyq1413[0] = len(x.Command) != 0
var yynn1413 int
if yyr1413 || yy2arr1413 {
r.EncodeArrayStart(1)
} else {
yynn1413 = 0
for _, b := range yyq1413 {
if b {
yynn1413++
}
}
r.EncodeMapStart(yynn1413)
yynn1413 = 0
}
if yyr1413 || yy2arr1413 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1413[0] {
if x.Command == nil {
r.EncodeNil()
} else {
yym1415 := z.EncBinary()
_ = yym1415
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1413[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("command"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Command == nil {
r.EncodeNil()
} else {
yym1416 := z.EncBinary()
_ = yym1416
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
}
}
if yyr1413 || yy2arr1413 {
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
yym1417 := z.DecBinary()
_ = yym1417
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1418 := r.ContainerType()
if yyct1418 == codecSelferValueTypeMap1234 {
yyl1418 := r.ReadMapStart()
if yyl1418 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1418, d)
}
} else if yyct1418 == codecSelferValueTypeArray1234 {
yyl1418 := r.ReadArrayStart()
if yyl1418 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1418, 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 yys1419Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1419Slc
var yyhl1419 bool = l >= 0
for yyj1419 := 0; ; yyj1419++ {
if yyhl1419 {
if yyj1419 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1419Slc = r.DecodeBytes(yys1419Slc, true, true)
yys1419 := string(yys1419Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1419 {
case "command":
if r.TryDecodeAsNil() {
x.Command = nil
} else {
yyv1420 := &x.Command
yym1421 := z.DecBinary()
_ = yym1421
if false {
} else {
z.F.DecSliceStringX(yyv1420, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1419)
} // end switch yys1419
} // end for yyj1419
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 yyj1422 int
var yyb1422 bool
var yyhl1422 bool = l >= 0
yyj1422++
if yyhl1422 {
yyb1422 = yyj1422 > l
} else {
yyb1422 = r.CheckBreak()
}
if yyb1422 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Command = nil
} else {
yyv1423 := &x.Command
yym1424 := z.DecBinary()
_ = yym1424
if false {
} else {
z.F.DecSliceStringX(yyv1423, false, d)
}
}
for {
yyj1422++
if yyhl1422 {
yyb1422 = yyj1422 > l
} else {
yyb1422 = r.CheckBreak()
}
if yyb1422 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1422-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 {
yym1425 := z.EncBinary()
_ = yym1425
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1426 := !z.EncBinary()
yy2arr1426 := z.EncBasicHandle().StructToArray
var yyq1426 [8]bool
_, _, _ = yysep1426, yyq1426, yy2arr1426
const yyr1426 bool = false
yyq1426[0] = x.Handler.Exec != nil && x.Exec != nil
yyq1426[1] = x.Handler.HTTPGet != nil && x.HTTPGet != nil
yyq1426[2] = x.Handler.TCPSocket != nil && x.TCPSocket != nil
yyq1426[3] = x.InitialDelaySeconds != 0
yyq1426[4] = x.TimeoutSeconds != 0
yyq1426[5] = x.PeriodSeconds != 0
yyq1426[6] = x.SuccessThreshold != 0
yyq1426[7] = x.FailureThreshold != 0
var yynn1426 int
if yyr1426 || yy2arr1426 {
r.EncodeArrayStart(8)
} else {
yynn1426 = 0
for _, b := range yyq1426 {
if b {
yynn1426++
}
}
r.EncodeMapStart(yynn1426)
yynn1426 = 0
}
var yyn1427 bool
if x.Handler.Exec == nil {
yyn1427 = true
goto LABEL1427
}
LABEL1427:
if yyr1426 || yy2arr1426 {
if yyn1427 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1426[0] {
if x.Exec == nil {
r.EncodeNil()
} else {
x.Exec.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq1426[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("exec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn1427 {
r.EncodeNil()
} else {
if x.Exec == nil {
r.EncodeNil()
} else {
x.Exec.CodecEncodeSelf(e)
}
}
}
}
var yyn1428 bool
if x.Handler.HTTPGet == nil {
yyn1428 = true
goto LABEL1428
}
LABEL1428:
if yyr1426 || yy2arr1426 {
if yyn1428 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1426[1] {
if x.HTTPGet == nil {
r.EncodeNil()
} else {
x.HTTPGet.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq1426[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("httpGet"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn1428 {
r.EncodeNil()
} else {
if x.HTTPGet == nil {
r.EncodeNil()
} else {
x.HTTPGet.CodecEncodeSelf(e)
}
}
}
}
var yyn1429 bool
if x.Handler.TCPSocket == nil {
yyn1429 = true
goto LABEL1429
}
LABEL1429:
if yyr1426 || yy2arr1426 {
if yyn1429 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1426[2] {
if x.TCPSocket == nil {
r.EncodeNil()
} else {
x.TCPSocket.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq1426[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("tcpSocket"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn1429 {
r.EncodeNil()
} else {
if x.TCPSocket == nil {
r.EncodeNil()
} else {
x.TCPSocket.CodecEncodeSelf(e)
}
}
}
}
if yyr1426 || yy2arr1426 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1426[3] {
yym1431 := z.EncBinary()
_ = yym1431
if false {
} else {
r.EncodeInt(int64(x.InitialDelaySeconds))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1426[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("initialDelaySeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1432 := z.EncBinary()
_ = yym1432
if false {
} else {
r.EncodeInt(int64(x.InitialDelaySeconds))
}
}
}
if yyr1426 || yy2arr1426 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1426[4] {
yym1434 := z.EncBinary()
_ = yym1434
if false {
} else {
r.EncodeInt(int64(x.TimeoutSeconds))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1426[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1435 := z.EncBinary()
_ = yym1435
if false {
} else {
r.EncodeInt(int64(x.TimeoutSeconds))
}
}
}
if yyr1426 || yy2arr1426 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1426[5] {
yym1437 := z.EncBinary()
_ = yym1437
if false {
} else {
r.EncodeInt(int64(x.PeriodSeconds))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1426[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("periodSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1438 := z.EncBinary()
_ = yym1438
if false {
} else {
r.EncodeInt(int64(x.PeriodSeconds))
}
}
}
if yyr1426 || yy2arr1426 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1426[6] {
yym1440 := z.EncBinary()
_ = yym1440
if false {
} else {
r.EncodeInt(int64(x.SuccessThreshold))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1426[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("successThreshold"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1441 := z.EncBinary()
_ = yym1441
if false {
} else {
r.EncodeInt(int64(x.SuccessThreshold))
}
}
}
if yyr1426 || yy2arr1426 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1426[7] {
yym1443 := z.EncBinary()
_ = yym1443
if false {
} else {
r.EncodeInt(int64(x.FailureThreshold))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1426[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("failureThreshold"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1444 := z.EncBinary()
_ = yym1444
if false {
} else {
r.EncodeInt(int64(x.FailureThreshold))
}
}
}
if yyr1426 || yy2arr1426 {
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
yym1445 := z.DecBinary()
_ = yym1445
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1446 := r.ContainerType()
if yyct1446 == codecSelferValueTypeMap1234 {
yyl1446 := r.ReadMapStart()
if yyl1446 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1446, d)
}
} else if yyct1446 == codecSelferValueTypeArray1234 {
yyl1446 := r.ReadArrayStart()
if yyl1446 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1446, 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 yys1447Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1447Slc
var yyhl1447 bool = l >= 0
for yyj1447 := 0; ; yyj1447++ {
if yyhl1447 {
if yyj1447 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1447Slc = r.DecodeBytes(yys1447Slc, true, true)
yys1447 := string(yys1447Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1447 {
case "exec":
if x.Handler.Exec == nil {
x.Handler.Exec = new(ExecAction)
}
if r.TryDecodeAsNil() {
if x.Exec != nil {
x.Exec = nil
}
} else {
if x.Exec == nil {
x.Exec = new(ExecAction)
}
x.Exec.CodecDecodeSelf(d)
}
case "httpGet":
if x.Handler.HTTPGet == nil {
x.Handler.HTTPGet = new(HTTPGetAction)
}
if r.TryDecodeAsNil() {
if x.HTTPGet != nil {
x.HTTPGet = nil
}
} else {
if x.HTTPGet == nil {
x.HTTPGet = new(HTTPGetAction)
}
x.HTTPGet.CodecDecodeSelf(d)
}
case "tcpSocket":
if x.Handler.TCPSocket == nil {
x.Handler.TCPSocket = new(TCPSocketAction)
}
if r.TryDecodeAsNil() {
if x.TCPSocket != nil {
x.TCPSocket = nil
}
} else {
if x.TCPSocket == nil {
x.TCPSocket = new(TCPSocketAction)
}
x.TCPSocket.CodecDecodeSelf(d)
}
case "initialDelaySeconds":
if r.TryDecodeAsNil() {
x.InitialDelaySeconds = 0
} else {
x.InitialDelaySeconds = int32(r.DecodeInt(32))
}
case "timeoutSeconds":
if r.TryDecodeAsNil() {
x.TimeoutSeconds = 0
} else {
x.TimeoutSeconds = int32(r.DecodeInt(32))
}
case "periodSeconds":
if r.TryDecodeAsNil() {
x.PeriodSeconds = 0
} else {
x.PeriodSeconds = int32(r.DecodeInt(32))
}
case "successThreshold":
if r.TryDecodeAsNil() {
x.SuccessThreshold = 0
} else {
x.SuccessThreshold = int32(r.DecodeInt(32))
}
case "failureThreshold":
if r.TryDecodeAsNil() {
x.FailureThreshold = 0
} else {
x.FailureThreshold = int32(r.DecodeInt(32))
}
default:
z.DecStructFieldNotFound(-1, yys1447)
} // end switch yys1447
} // end for yyj1447
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 yyj1456 int
var yyb1456 bool
var yyhl1456 bool = l >= 0
if x.Handler.Exec == nil {
x.Handler.Exec = new(ExecAction)
}
yyj1456++
if yyhl1456 {
yyb1456 = yyj1456 > l
} else {
yyb1456 = r.CheckBreak()
}
if yyb1456 {
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)
}
yyj1456++
if yyhl1456 {
yyb1456 = yyj1456 > l
} else {
yyb1456 = r.CheckBreak()
}
if yyb1456 {
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)
}
yyj1456++
if yyhl1456 {
yyb1456 = yyj1456 > l
} else {
yyb1456 = r.CheckBreak()
}
if yyb1456 {
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)
}
yyj1456++
if yyhl1456 {
yyb1456 = yyj1456 > l
} else {
yyb1456 = r.CheckBreak()
}
if yyb1456 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.InitialDelaySeconds = 0
} else {
x.InitialDelaySeconds = int32(r.DecodeInt(32))
}
yyj1456++
if yyhl1456 {
yyb1456 = yyj1456 > l
} else {
yyb1456 = r.CheckBreak()
}
if yyb1456 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TimeoutSeconds = 0
} else {
x.TimeoutSeconds = int32(r.DecodeInt(32))
}
yyj1456++
if yyhl1456 {
yyb1456 = yyj1456 > l
} else {
yyb1456 = r.CheckBreak()
}
if yyb1456 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PeriodSeconds = 0
} else {
x.PeriodSeconds = int32(r.DecodeInt(32))
}
yyj1456++
if yyhl1456 {
yyb1456 = yyj1456 > l
} else {
yyb1456 = r.CheckBreak()
}
if yyb1456 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SuccessThreshold = 0
} else {
x.SuccessThreshold = int32(r.DecodeInt(32))
}
yyj1456++
if yyhl1456 {
yyb1456 = yyj1456 > l
} else {
yyb1456 = r.CheckBreak()
}
if yyb1456 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FailureThreshold = 0
} else {
x.FailureThreshold = int32(r.DecodeInt(32))
}
for {
yyj1456++
if yyhl1456 {
yyb1456 = yyj1456 > l
} else {
yyb1456 = r.CheckBreak()
}
if yyb1456 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1456-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x PullPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1465 := z.EncBinary()
_ = yym1465
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
yym1466 := z.DecBinary()
_ = yym1466
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
yym1467 := z.EncBinary()
_ = yym1467
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
yym1468 := z.DecBinary()
_ = yym1468
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 {
yym1469 := z.EncBinary()
_ = yym1469
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1470 := !z.EncBinary()
yy2arr1470 := z.EncBasicHandle().StructToArray
var yyq1470 [2]bool
_, _, _ = yysep1470, yyq1470, yy2arr1470
const yyr1470 bool = false
yyq1470[0] = len(x.Add) != 0
yyq1470[1] = len(x.Drop) != 0
var yynn1470 int
if yyr1470 || yy2arr1470 {
r.EncodeArrayStart(2)
} else {
yynn1470 = 0
for _, b := range yyq1470 {
if b {
yynn1470++
}
}
r.EncodeMapStart(yynn1470)
yynn1470 = 0
}
if yyr1470 || yy2arr1470 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1470[0] {
if x.Add == nil {
r.EncodeNil()
} else {
yym1472 := z.EncBinary()
_ = yym1472
if false {
} else {
h.encSliceCapability(([]Capability)(x.Add), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1470[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("add"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Add == nil {
r.EncodeNil()
} else {
yym1473 := z.EncBinary()
_ = yym1473
if false {
} else {
h.encSliceCapability(([]Capability)(x.Add), e)
}
}
}
}
if yyr1470 || yy2arr1470 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1470[1] {
if x.Drop == nil {
r.EncodeNil()
} else {
yym1475 := z.EncBinary()
_ = yym1475
if false {
} else {
h.encSliceCapability(([]Capability)(x.Drop), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1470[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("drop"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Drop == nil {
r.EncodeNil()
} else {
yym1476 := z.EncBinary()
_ = yym1476
if false {
} else {
h.encSliceCapability(([]Capability)(x.Drop), e)
}
}
}
}
if yyr1470 || yy2arr1470 {
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
yym1477 := z.DecBinary()
_ = yym1477
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1478 := r.ContainerType()
if yyct1478 == codecSelferValueTypeMap1234 {
yyl1478 := r.ReadMapStart()
if yyl1478 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1478, d)
}
} else if yyct1478 == codecSelferValueTypeArray1234 {
yyl1478 := r.ReadArrayStart()
if yyl1478 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1478, 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 yys1479Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1479Slc
var yyhl1479 bool = l >= 0
for yyj1479 := 0; ; yyj1479++ {
if yyhl1479 {
if yyj1479 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1479Slc = r.DecodeBytes(yys1479Slc, true, true)
yys1479 := string(yys1479Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1479 {
case "add":
if r.TryDecodeAsNil() {
x.Add = nil
} else {
yyv1480 := &x.Add
yym1481 := z.DecBinary()
_ = yym1481
if false {
} else {
h.decSliceCapability((*[]Capability)(yyv1480), d)
}
}
case "drop":
if r.TryDecodeAsNil() {
x.Drop = nil
} else {
yyv1482 := &x.Drop
yym1483 := z.DecBinary()
_ = yym1483
if false {
} else {
h.decSliceCapability((*[]Capability)(yyv1482), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1479)
} // end switch yys1479
} // end for yyj1479
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 yyj1484 int
var yyb1484 bool
var yyhl1484 bool = l >= 0
yyj1484++
if yyhl1484 {
yyb1484 = yyj1484 > l
} else {
yyb1484 = r.CheckBreak()
}
if yyb1484 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Add = nil
} else {
yyv1485 := &x.Add
yym1486 := z.DecBinary()
_ = yym1486
if false {
} else {
h.decSliceCapability((*[]Capability)(yyv1485), d)
}
}
yyj1484++
if yyhl1484 {
yyb1484 = yyj1484 > l
} else {
yyb1484 = r.CheckBreak()
}
if yyb1484 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Drop = nil
} else {
yyv1487 := &x.Drop
yym1488 := z.DecBinary()
_ = yym1488
if false {
} else {
h.decSliceCapability((*[]Capability)(yyv1487), d)
}
}
for {
yyj1484++
if yyhl1484 {
yyb1484 = yyj1484 > l
} else {
yyb1484 = r.CheckBreak()
}
if yyb1484 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1484-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 {
yym1489 := z.EncBinary()
_ = yym1489
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1490 := !z.EncBinary()
yy2arr1490 := z.EncBasicHandle().StructToArray
var yyq1490 [2]bool
_, _, _ = yysep1490, yyq1490, yy2arr1490
const yyr1490 bool = false
yyq1490[0] = len(x.Limits) != 0
yyq1490[1] = len(x.Requests) != 0
var yynn1490 int
if yyr1490 || yy2arr1490 {
r.EncodeArrayStart(2)
} else {
yynn1490 = 0
for _, b := range yyq1490 {
if b {
yynn1490++
}
}
r.EncodeMapStart(yynn1490)
yynn1490 = 0
}
if yyr1490 || yy2arr1490 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1490[0] {
if x.Limits == nil {
r.EncodeNil()
} else {
x.Limits.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1490[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 yyr1490 || yy2arr1490 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1490[1] {
if x.Requests == nil {
r.EncodeNil()
} else {
x.Requests.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1490[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 yyr1490 || yy2arr1490 {
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
yym1493 := z.DecBinary()
_ = yym1493
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1494 := r.ContainerType()
if yyct1494 == codecSelferValueTypeMap1234 {
yyl1494 := r.ReadMapStart()
if yyl1494 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1494, d)
}
} else if yyct1494 == codecSelferValueTypeArray1234 {
yyl1494 := r.ReadArrayStart()
if yyl1494 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1494, 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 yys1495Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1495Slc
var yyhl1495 bool = l >= 0
for yyj1495 := 0; ; yyj1495++ {
if yyhl1495 {
if yyj1495 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1495Slc = r.DecodeBytes(yys1495Slc, true, true)
yys1495 := string(yys1495Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1495 {
case "limits":
if r.TryDecodeAsNil() {
x.Limits = nil
} else {
yyv1496 := &x.Limits
yyv1496.CodecDecodeSelf(d)
}
case "requests":
if r.TryDecodeAsNil() {
x.Requests = nil
} else {
yyv1497 := &x.Requests
yyv1497.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1495)
} // end switch yys1495
} // end for yyj1495
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 yyj1498 int
var yyb1498 bool
var yyhl1498 bool = l >= 0
yyj1498++
if yyhl1498 {
yyb1498 = yyj1498 > l
} else {
yyb1498 = r.CheckBreak()
}
if yyb1498 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Limits = nil
} else {
yyv1499 := &x.Limits
yyv1499.CodecDecodeSelf(d)
}
yyj1498++
if yyhl1498 {
yyb1498 = yyj1498 > l
} else {
yyb1498 = r.CheckBreak()
}
if yyb1498 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Requests = nil
} else {
yyv1500 := &x.Requests
yyv1500.CodecDecodeSelf(d)
}
for {
yyj1498++
if yyhl1498 {
yyb1498 = yyj1498 > l
} else {
yyb1498 = r.CheckBreak()
}
if yyb1498 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1498-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 {
yym1501 := z.EncBinary()
_ = yym1501
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1502 := !z.EncBinary()
yy2arr1502 := z.EncBasicHandle().StructToArray
var yyq1502 [18]bool
_, _, _ = yysep1502, yyq1502, yy2arr1502
const yyr1502 bool = false
yyq1502[2] = len(x.Command) != 0
yyq1502[3] = len(x.Args) != 0
yyq1502[4] = x.WorkingDir != ""
yyq1502[5] = len(x.Ports) != 0
yyq1502[6] = len(x.Env) != 0
yyq1502[7] = true
yyq1502[8] = len(x.VolumeMounts) != 0
yyq1502[9] = x.LivenessProbe != nil
yyq1502[10] = x.ReadinessProbe != nil
yyq1502[11] = x.Lifecycle != nil
yyq1502[12] = x.TerminationMessagePath != ""
yyq1502[14] = x.SecurityContext != nil
yyq1502[15] = x.Stdin != false
yyq1502[16] = x.StdinOnce != false
yyq1502[17] = x.TTY != false
var yynn1502 int
if yyr1502 || yy2arr1502 {
r.EncodeArrayStart(18)
} else {
yynn1502 = 3
for _, b := range yyq1502 {
if b {
yynn1502++
}
}
r.EncodeMapStart(yynn1502)
yynn1502 = 0
}
if yyr1502 || yy2arr1502 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1504 := z.EncBinary()
_ = yym1504
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)
yym1505 := z.EncBinary()
_ = yym1505
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1502 || yy2arr1502 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1507 := z.EncBinary()
_ = yym1507
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)
yym1508 := z.EncBinary()
_ = yym1508
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Image))
}
}
if yyr1502 || yy2arr1502 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1502[2] {
if x.Command == nil {
r.EncodeNil()
} else {
yym1510 := z.EncBinary()
_ = yym1510
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1502[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("command"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Command == nil {
r.EncodeNil()
} else {
yym1511 := z.EncBinary()
_ = yym1511
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
}
}
if yyr1502 || yy2arr1502 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1502[3] {
if x.Args == nil {
r.EncodeNil()
} else {
yym1513 := z.EncBinary()
_ = yym1513
if false {
} else {
z.F.EncSliceStringV(x.Args, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1502[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("args"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Args == nil {
r.EncodeNil()
} else {
yym1514 := z.EncBinary()
_ = yym1514
if false {
} else {
z.F.EncSliceStringV(x.Args, false, e)
}
}
}
}
if yyr1502 || yy2arr1502 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1502[4] {
yym1516 := z.EncBinary()
_ = yym1516
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1502[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("workingDir"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1517 := z.EncBinary()
_ = yym1517
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir))
}
}
}
if yyr1502 || yy2arr1502 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1502[5] {
if x.Ports == nil {
r.EncodeNil()
} else {
yym1519 := z.EncBinary()
_ = yym1519
if false {
} else {
h.encSliceContainerPort(([]ContainerPort)(x.Ports), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1502[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ports"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Ports == nil {
r.EncodeNil()
} else {
yym1520 := z.EncBinary()
_ = yym1520
if false {
} else {
h.encSliceContainerPort(([]ContainerPort)(x.Ports), e)
}
}
}
}
if yyr1502 || yy2arr1502 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1502[6] {
if x.Env == nil {
r.EncodeNil()
} else {
yym1522 := z.EncBinary()
_ = yym1522
if false {
} else {
h.encSliceEnvVar(([]EnvVar)(x.Env), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1502[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("env"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Env == nil {
r.EncodeNil()
} else {
yym1523 := z.EncBinary()
_ = yym1523
if false {
} else {
h.encSliceEnvVar(([]EnvVar)(x.Env), e)
}
}
}
}
if yyr1502 || yy2arr1502 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1502[7] {
yy1525 := &x.Resources
yy1525.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1502[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("resources"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1526 := &x.Resources
yy1526.CodecEncodeSelf(e)
}
}
if yyr1502 || yy2arr1502 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1502[8] {
if x.VolumeMounts == nil {
r.EncodeNil()
} else {
yym1528 := z.EncBinary()
_ = yym1528
if false {
} else {
h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1502[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("volumeMounts"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.VolumeMounts == nil {
r.EncodeNil()
} else {
yym1529 := z.EncBinary()
_ = yym1529
if false {
} else {
h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e)
}
}
}
}
if yyr1502 || yy2arr1502 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1502[9] {
if x.LivenessProbe == nil {
r.EncodeNil()
} else {
x.LivenessProbe.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1502[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 yyr1502 || yy2arr1502 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1502[10] {
if x.ReadinessProbe == nil {
r.EncodeNil()
} else {
x.ReadinessProbe.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1502[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 yyr1502 || yy2arr1502 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1502[11] {
if x.Lifecycle == nil {
r.EncodeNil()
} else {
x.Lifecycle.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1502[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 yyr1502 || yy2arr1502 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1502[12] {
yym1534 := z.EncBinary()
_ = yym1534
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1502[12] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("terminationMessagePath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1535 := z.EncBinary()
_ = yym1535
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath))
}
}
}
if yyr1502 || yy2arr1502 {
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 yyr1502 || yy2arr1502 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1502[14] {
if x.SecurityContext == nil {
r.EncodeNil()
} else {
x.SecurityContext.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1502[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 yyr1502 || yy2arr1502 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1502[15] {
yym1539 := z.EncBinary()
_ = yym1539
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1502[15] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stdin"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1540 := z.EncBinary()
_ = yym1540
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
}
}
if yyr1502 || yy2arr1502 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1502[16] {
yym1542 := z.EncBinary()
_ = yym1542
if false {
} else {
r.EncodeBool(bool(x.StdinOnce))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1502[16] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stdinOnce"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1543 := z.EncBinary()
_ = yym1543
if false {
} else {
r.EncodeBool(bool(x.StdinOnce))
}
}
}
if yyr1502 || yy2arr1502 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1502[17] {
yym1545 := z.EncBinary()
_ = yym1545
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1502[17] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("tty"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1546 := z.EncBinary()
_ = yym1546
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
}
}
if yyr1502 || yy2arr1502 {
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
yym1547 := z.DecBinary()
_ = yym1547
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1548 := r.ContainerType()
if yyct1548 == codecSelferValueTypeMap1234 {
yyl1548 := r.ReadMapStart()
if yyl1548 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1548, d)
}
} else if yyct1548 == codecSelferValueTypeArray1234 {
yyl1548 := r.ReadArrayStart()
if yyl1548 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1548, 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 yys1549Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1549Slc
var yyhl1549 bool = l >= 0
for yyj1549 := 0; ; yyj1549++ {
if yyhl1549 {
if yyj1549 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1549Slc = r.DecodeBytes(yys1549Slc, true, true)
yys1549 := string(yys1549Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1549 {
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 {
yyv1552 := &x.Command
yym1553 := z.DecBinary()
_ = yym1553
if false {
} else {
z.F.DecSliceStringX(yyv1552, false, d)
}
}
case "args":
if r.TryDecodeAsNil() {
x.Args = nil
} else {
yyv1554 := &x.Args
yym1555 := z.DecBinary()
_ = yym1555
if false {
} else {
z.F.DecSliceStringX(yyv1554, false, d)
}
}
case "workingDir":
if r.TryDecodeAsNil() {
x.WorkingDir = ""
} else {
x.WorkingDir = string(r.DecodeString())
}
case "ports":
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv1557 := &x.Ports
yym1558 := z.DecBinary()
_ = yym1558
if false {
} else {
h.decSliceContainerPort((*[]ContainerPort)(yyv1557), d)
}
}
case "env":
if r.TryDecodeAsNil() {
x.Env = nil
} else {
yyv1559 := &x.Env
yym1560 := z.DecBinary()
_ = yym1560
if false {
} else {
h.decSliceEnvVar((*[]EnvVar)(yyv1559), d)
}
}
case "resources":
if r.TryDecodeAsNil() {
x.Resources = ResourceRequirements{}
} else {
yyv1561 := &x.Resources
yyv1561.CodecDecodeSelf(d)
}
case "volumeMounts":
if r.TryDecodeAsNil() {
x.VolumeMounts = nil
} else {
yyv1562 := &x.VolumeMounts
yym1563 := z.DecBinary()
_ = yym1563
if false {
} else {
h.decSliceVolumeMount((*[]VolumeMount)(yyv1562), 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, yys1549)
} // end switch yys1549
} // end for yyj1549
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 yyj1573 int
var yyb1573 bool
var yyhl1573 bool = l >= 0
yyj1573++
if yyhl1573 {
yyb1573 = yyj1573 > l
} else {
yyb1573 = r.CheckBreak()
}
if yyb1573 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1573++
if yyhl1573 {
yyb1573 = yyj1573 > l
} else {
yyb1573 = r.CheckBreak()
}
if yyb1573 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Image = ""
} else {
x.Image = string(r.DecodeString())
}
yyj1573++
if yyhl1573 {
yyb1573 = yyj1573 > l
} else {
yyb1573 = r.CheckBreak()
}
if yyb1573 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Command = nil
} else {
yyv1576 := &x.Command
yym1577 := z.DecBinary()
_ = yym1577
if false {
} else {
z.F.DecSliceStringX(yyv1576, false, d)
}
}
yyj1573++
if yyhl1573 {
yyb1573 = yyj1573 > l
} else {
yyb1573 = r.CheckBreak()
}
if yyb1573 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Args = nil
} else {
yyv1578 := &x.Args
yym1579 := z.DecBinary()
_ = yym1579
if false {
} else {
z.F.DecSliceStringX(yyv1578, false, d)
}
}
yyj1573++
if yyhl1573 {
yyb1573 = yyj1573 > l
} else {
yyb1573 = r.CheckBreak()
}
if yyb1573 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.WorkingDir = ""
} else {
x.WorkingDir = string(r.DecodeString())
}
yyj1573++
if yyhl1573 {
yyb1573 = yyj1573 > l
} else {
yyb1573 = r.CheckBreak()
}
if yyb1573 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv1581 := &x.Ports
yym1582 := z.DecBinary()
_ = yym1582
if false {
} else {
h.decSliceContainerPort((*[]ContainerPort)(yyv1581), d)
}
}
yyj1573++
if yyhl1573 {
yyb1573 = yyj1573 > l
} else {
yyb1573 = r.CheckBreak()
}
if yyb1573 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Env = nil
} else {
yyv1583 := &x.Env
yym1584 := z.DecBinary()
_ = yym1584
if false {
} else {
h.decSliceEnvVar((*[]EnvVar)(yyv1583), d)
}
}
yyj1573++
if yyhl1573 {
yyb1573 = yyj1573 > l
} else {
yyb1573 = r.CheckBreak()
}
if yyb1573 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Resources = ResourceRequirements{}
} else {
yyv1585 := &x.Resources
yyv1585.CodecDecodeSelf(d)
}
yyj1573++
if yyhl1573 {
yyb1573 = yyj1573 > l
} else {
yyb1573 = r.CheckBreak()
}
if yyb1573 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.VolumeMounts = nil
} else {
yyv1586 := &x.VolumeMounts
yym1587 := z.DecBinary()
_ = yym1587
if false {
} else {
h.decSliceVolumeMount((*[]VolumeMount)(yyv1586), d)
}
}
yyj1573++
if yyhl1573 {
yyb1573 = yyj1573 > l
} else {
yyb1573 = r.CheckBreak()
}
if yyb1573 {
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)
}
yyj1573++
if yyhl1573 {
yyb1573 = yyj1573 > l
} else {
yyb1573 = r.CheckBreak()
}
if yyb1573 {
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)
}
yyj1573++
if yyhl1573 {
yyb1573 = yyj1573 > l
} else {
yyb1573 = r.CheckBreak()
}
if yyb1573 {
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)
}
yyj1573++
if yyhl1573 {
yyb1573 = yyj1573 > l
} else {
yyb1573 = r.CheckBreak()
}
if yyb1573 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TerminationMessagePath = ""
} else {
x.TerminationMessagePath = string(r.DecodeString())
}
yyj1573++
if yyhl1573 {
yyb1573 = yyj1573 > l
} else {
yyb1573 = r.CheckBreak()
}
if yyb1573 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ImagePullPolicy = ""
} else {
x.ImagePullPolicy = PullPolicy(r.DecodeString())
}
yyj1573++
if yyhl1573 {
yyb1573 = yyj1573 > l
} else {
yyb1573 = r.CheckBreak()
}
if yyb1573 {
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)
}
yyj1573++
if yyhl1573 {
yyb1573 = yyj1573 > l
} else {
yyb1573 = r.CheckBreak()
}
if yyb1573 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdin = false
} else {
x.Stdin = bool(r.DecodeBool())
}
yyj1573++
if yyhl1573 {
yyb1573 = yyj1573 > l
} else {
yyb1573 = r.CheckBreak()
}
if yyb1573 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.StdinOnce = false
} else {
x.StdinOnce = bool(r.DecodeBool())
}
yyj1573++
if yyhl1573 {
yyb1573 = yyj1573 > l
} else {
yyb1573 = r.CheckBreak()
}
if yyb1573 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TTY = false
} else {
x.TTY = bool(r.DecodeBool())
}
for {
yyj1573++
if yyhl1573 {
yyb1573 = yyj1573 > l
} else {
yyb1573 = r.CheckBreak()
}
if yyb1573 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1573-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 {
yym1597 := z.EncBinary()
_ = yym1597
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1598 := !z.EncBinary()
yy2arr1598 := z.EncBasicHandle().StructToArray
var yyq1598 [3]bool
_, _, _ = yysep1598, yyq1598, yy2arr1598
const yyr1598 bool = false
yyq1598[0] = x.Exec != nil
yyq1598[1] = x.HTTPGet != nil
yyq1598[2] = x.TCPSocket != nil
var yynn1598 int
if yyr1598 || yy2arr1598 {
r.EncodeArrayStart(3)
} else {
yynn1598 = 0
for _, b := range yyq1598 {
if b {
yynn1598++
}
}
r.EncodeMapStart(yynn1598)
yynn1598 = 0
}
if yyr1598 || yy2arr1598 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1598[0] {
if x.Exec == nil {
r.EncodeNil()
} else {
x.Exec.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1598[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 yyr1598 || yy2arr1598 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1598[1] {
if x.HTTPGet == nil {
r.EncodeNil()
} else {
x.HTTPGet.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1598[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 yyr1598 || yy2arr1598 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1598[2] {
if x.TCPSocket == nil {
r.EncodeNil()
} else {
x.TCPSocket.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1598[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 yyr1598 || yy2arr1598 {
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
yym1602 := z.DecBinary()
_ = yym1602
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1603 := r.ContainerType()
if yyct1603 == codecSelferValueTypeMap1234 {
yyl1603 := r.ReadMapStart()
if yyl1603 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1603, d)
}
} else if yyct1603 == codecSelferValueTypeArray1234 {
yyl1603 := r.ReadArrayStart()
if yyl1603 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1603, 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 yys1604Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1604Slc
var yyhl1604 bool = l >= 0
for yyj1604 := 0; ; yyj1604++ {
if yyhl1604 {
if yyj1604 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1604Slc = r.DecodeBytes(yys1604Slc, true, true)
yys1604 := string(yys1604Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1604 {
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, yys1604)
} // end switch yys1604
} // end for yyj1604
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 yyj1608 int
var yyb1608 bool
var yyhl1608 bool = l >= 0
yyj1608++
if yyhl1608 {
yyb1608 = yyj1608 > l
} else {
yyb1608 = r.CheckBreak()
}
if yyb1608 {
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)
}
yyj1608++
if yyhl1608 {
yyb1608 = yyj1608 > l
} else {
yyb1608 = r.CheckBreak()
}
if yyb1608 {
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)
}
yyj1608++
if yyhl1608 {
yyb1608 = yyj1608 > l
} else {
yyb1608 = r.CheckBreak()
}
if yyb1608 {
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 {
yyj1608++
if yyhl1608 {
yyb1608 = yyj1608 > l
} else {
yyb1608 = r.CheckBreak()
}
if yyb1608 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1608-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 {
yym1612 := z.EncBinary()
_ = yym1612
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1613 := !z.EncBinary()
yy2arr1613 := z.EncBasicHandle().StructToArray
var yyq1613 [2]bool
_, _, _ = yysep1613, yyq1613, yy2arr1613
const yyr1613 bool = false
yyq1613[0] = x.PostStart != nil
yyq1613[1] = x.PreStop != nil
var yynn1613 int
if yyr1613 || yy2arr1613 {
r.EncodeArrayStart(2)
} else {
yynn1613 = 0
for _, b := range yyq1613 {
if b {
yynn1613++
}
}
r.EncodeMapStart(yynn1613)
yynn1613 = 0
}
if yyr1613 || yy2arr1613 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1613[0] {
if x.PostStart == nil {
r.EncodeNil()
} else {
x.PostStart.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1613[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 yyr1613 || yy2arr1613 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1613[1] {
if x.PreStop == nil {
r.EncodeNil()
} else {
x.PreStop.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1613[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 yyr1613 || yy2arr1613 {
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
yym1616 := z.DecBinary()
_ = yym1616
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1617 := r.ContainerType()
if yyct1617 == codecSelferValueTypeMap1234 {
yyl1617 := r.ReadMapStart()
if yyl1617 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1617, d)
}
} else if yyct1617 == codecSelferValueTypeArray1234 {
yyl1617 := r.ReadArrayStart()
if yyl1617 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1617, 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 yys1618Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1618Slc
var yyhl1618 bool = l >= 0
for yyj1618 := 0; ; yyj1618++ {
if yyhl1618 {
if yyj1618 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1618Slc = r.DecodeBytes(yys1618Slc, true, true)
yys1618 := string(yys1618Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1618 {
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, yys1618)
} // end switch yys1618
} // end for yyj1618
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 yyj1621 int
var yyb1621 bool
var yyhl1621 bool = l >= 0
yyj1621++
if yyhl1621 {
yyb1621 = yyj1621 > l
} else {
yyb1621 = r.CheckBreak()
}
if yyb1621 {
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)
}
yyj1621++
if yyhl1621 {
yyb1621 = yyj1621 > l
} else {
yyb1621 = r.CheckBreak()
}
if yyb1621 {
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 {
yyj1621++
if yyhl1621 {
yyb1621 = yyj1621 > l
} else {
yyb1621 = r.CheckBreak()
}
if yyb1621 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1621-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x ConditionStatus) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1624 := z.EncBinary()
_ = yym1624
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
yym1625 := z.DecBinary()
_ = yym1625
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 {
yym1626 := z.EncBinary()
_ = yym1626
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1627 := !z.EncBinary()
yy2arr1627 := z.EncBasicHandle().StructToArray
var yyq1627 [2]bool
_, _, _ = yysep1627, yyq1627, yy2arr1627
const yyr1627 bool = false
yyq1627[0] = x.Reason != ""
yyq1627[1] = x.Message != ""
var yynn1627 int
if yyr1627 || yy2arr1627 {
r.EncodeArrayStart(2)
} else {
yynn1627 = 0
for _, b := range yyq1627 {
if b {
yynn1627++
}
}
r.EncodeMapStart(yynn1627)
yynn1627 = 0
}
if yyr1627 || yy2arr1627 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1627[0] {
yym1629 := z.EncBinary()
_ = yym1629
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1627[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1630 := z.EncBinary()
_ = yym1630
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr1627 || yy2arr1627 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1627[1] {
yym1632 := z.EncBinary()
_ = yym1632
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1627[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1633 := z.EncBinary()
_ = yym1633
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr1627 || yy2arr1627 {
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
yym1634 := z.DecBinary()
_ = yym1634
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1635 := r.ContainerType()
if yyct1635 == codecSelferValueTypeMap1234 {
yyl1635 := r.ReadMapStart()
if yyl1635 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1635, d)
}
} else if yyct1635 == codecSelferValueTypeArray1234 {
yyl1635 := r.ReadArrayStart()
if yyl1635 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1635, 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 yys1636Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1636Slc
var yyhl1636 bool = l >= 0
for yyj1636 := 0; ; yyj1636++ {
if yyhl1636 {
if yyj1636 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1636Slc = r.DecodeBytes(yys1636Slc, true, true)
yys1636 := string(yys1636Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1636 {
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, yys1636)
} // end switch yys1636
} // end for yyj1636
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 yyj1639 int
var yyb1639 bool
var yyhl1639 bool = l >= 0
yyj1639++
if yyhl1639 {
yyb1639 = yyj1639 > l
} else {
yyb1639 = r.CheckBreak()
}
if yyb1639 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj1639++
if yyhl1639 {
yyb1639 = yyj1639 > l
} else {
yyb1639 = r.CheckBreak()
}
if yyb1639 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
for {
yyj1639++
if yyhl1639 {
yyb1639 = yyj1639 > l
} else {
yyb1639 = r.CheckBreak()
}
if yyb1639 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1639-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 {
yym1642 := z.EncBinary()
_ = yym1642
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1643 := !z.EncBinary()
yy2arr1643 := z.EncBasicHandle().StructToArray
var yyq1643 [1]bool
_, _, _ = yysep1643, yyq1643, yy2arr1643
const yyr1643 bool = false
yyq1643[0] = true
var yynn1643 int
if yyr1643 || yy2arr1643 {
r.EncodeArrayStart(1)
} else {
yynn1643 = 0
for _, b := range yyq1643 {
if b {
yynn1643++
}
}
r.EncodeMapStart(yynn1643)
yynn1643 = 0
}
if yyr1643 || yy2arr1643 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1643[0] {
yy1645 := &x.StartedAt
yym1646 := z.EncBinary()
_ = yym1646
if false {
} else if z.HasExtensions() && z.EncExt(yy1645) {
} else if yym1646 {
z.EncBinaryMarshal(yy1645)
} else if !yym1646 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1645)
} else {
z.EncFallback(yy1645)
}
} else {
r.EncodeNil()
}
} else {
if yyq1643[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("startedAt"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1647 := &x.StartedAt
yym1648 := z.EncBinary()
_ = yym1648
if false {
} else if z.HasExtensions() && z.EncExt(yy1647) {
} else if yym1648 {
z.EncBinaryMarshal(yy1647)
} else if !yym1648 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1647)
} else {
z.EncFallback(yy1647)
}
}
}
if yyr1643 || yy2arr1643 {
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
yym1649 := z.DecBinary()
_ = yym1649
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1650 := r.ContainerType()
if yyct1650 == codecSelferValueTypeMap1234 {
yyl1650 := r.ReadMapStart()
if yyl1650 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1650, d)
}
} else if yyct1650 == codecSelferValueTypeArray1234 {
yyl1650 := r.ReadArrayStart()
if yyl1650 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1650, 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 yys1651Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1651Slc
var yyhl1651 bool = l >= 0
for yyj1651 := 0; ; yyj1651++ {
if yyhl1651 {
if yyj1651 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1651Slc = r.DecodeBytes(yys1651Slc, true, true)
yys1651 := string(yys1651Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1651 {
case "startedAt":
if r.TryDecodeAsNil() {
x.StartedAt = pkg2_unversioned.Time{}
} else {
yyv1652 := &x.StartedAt
yym1653 := z.DecBinary()
_ = yym1653
if false {
} else if z.HasExtensions() && z.DecExt(yyv1652) {
} else if yym1653 {
z.DecBinaryUnmarshal(yyv1652)
} else if !yym1653 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1652)
} else {
z.DecFallback(yyv1652, false)
}
}
default:
z.DecStructFieldNotFound(-1, yys1651)
} // end switch yys1651
} // end for yyj1651
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 yyj1654 int
var yyb1654 bool
var yyhl1654 bool = l >= 0
yyj1654++
if yyhl1654 {
yyb1654 = yyj1654 > l
} else {
yyb1654 = r.CheckBreak()
}
if yyb1654 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.StartedAt = pkg2_unversioned.Time{}
} else {
yyv1655 := &x.StartedAt
yym1656 := z.DecBinary()
_ = yym1656
if false {
} else if z.HasExtensions() && z.DecExt(yyv1655) {
} else if yym1656 {
z.DecBinaryUnmarshal(yyv1655)
} else if !yym1656 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1655)
} else {
z.DecFallback(yyv1655, false)
}
}
for {
yyj1654++
if yyhl1654 {
yyb1654 = yyj1654 > l
} else {
yyb1654 = r.CheckBreak()
}
if yyb1654 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1654-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 {
yym1657 := z.EncBinary()
_ = yym1657
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1658 := !z.EncBinary()
yy2arr1658 := z.EncBasicHandle().StructToArray
var yyq1658 [7]bool
_, _, _ = yysep1658, yyq1658, yy2arr1658
const yyr1658 bool = false
yyq1658[1] = x.Signal != 0
yyq1658[2] = x.Reason != ""
yyq1658[3] = x.Message != ""
yyq1658[4] = true
yyq1658[5] = true
yyq1658[6] = x.ContainerID != ""
var yynn1658 int
if yyr1658 || yy2arr1658 {
r.EncodeArrayStart(7)
} else {
yynn1658 = 1
for _, b := range yyq1658 {
if b {
yynn1658++
}
}
r.EncodeMapStart(yynn1658)
yynn1658 = 0
}
if yyr1658 || yy2arr1658 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1660 := z.EncBinary()
_ = yym1660
if false {
} else {
r.EncodeInt(int64(x.ExitCode))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("exitCode"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1661 := z.EncBinary()
_ = yym1661
if false {
} else {
r.EncodeInt(int64(x.ExitCode))
}
}
if yyr1658 || yy2arr1658 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1658[1] {
yym1663 := z.EncBinary()
_ = yym1663
if false {
} else {
r.EncodeInt(int64(x.Signal))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1658[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("signal"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1664 := z.EncBinary()
_ = yym1664
if false {
} else {
r.EncodeInt(int64(x.Signal))
}
}
}
if yyr1658 || yy2arr1658 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1658[2] {
yym1666 := z.EncBinary()
_ = yym1666
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1658[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1667 := z.EncBinary()
_ = yym1667
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr1658 || yy2arr1658 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1658[3] {
yym1669 := z.EncBinary()
_ = yym1669
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1658[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1670 := z.EncBinary()
_ = yym1670
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr1658 || yy2arr1658 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1658[4] {
yy1672 := &x.StartedAt
yym1673 := z.EncBinary()
_ = yym1673
if false {
} else if z.HasExtensions() && z.EncExt(yy1672) {
} else if yym1673 {
z.EncBinaryMarshal(yy1672)
} else if !yym1673 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1672)
} else {
z.EncFallback(yy1672)
}
} else {
r.EncodeNil()
}
} else {
if yyq1658[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("startedAt"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1674 := &x.StartedAt
yym1675 := z.EncBinary()
_ = yym1675
if false {
} else if z.HasExtensions() && z.EncExt(yy1674) {
} else if yym1675 {
z.EncBinaryMarshal(yy1674)
} else if !yym1675 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1674)
} else {
z.EncFallback(yy1674)
}
}
}
if yyr1658 || yy2arr1658 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1658[5] {
yy1677 := &x.FinishedAt
yym1678 := z.EncBinary()
_ = yym1678
if false {
} else if z.HasExtensions() && z.EncExt(yy1677) {
} else if yym1678 {
z.EncBinaryMarshal(yy1677)
} else if !yym1678 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1677)
} else {
z.EncFallback(yy1677)
}
} else {
r.EncodeNil()
}
} else {
if yyq1658[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("finishedAt"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1679 := &x.FinishedAt
yym1680 := z.EncBinary()
_ = yym1680
if false {
} else if z.HasExtensions() && z.EncExt(yy1679) {
} else if yym1680 {
z.EncBinaryMarshal(yy1679)
} else if !yym1680 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1679)
} else {
z.EncFallback(yy1679)
}
}
}
if yyr1658 || yy2arr1658 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1658[6] {
yym1682 := z.EncBinary()
_ = yym1682
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1658[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("containerID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1683 := z.EncBinary()
_ = yym1683
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
}
}
}
if yyr1658 || yy2arr1658 {
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
yym1684 := z.DecBinary()
_ = yym1684
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1685 := r.ContainerType()
if yyct1685 == codecSelferValueTypeMap1234 {
yyl1685 := r.ReadMapStart()
if yyl1685 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1685, d)
}
} else if yyct1685 == codecSelferValueTypeArray1234 {
yyl1685 := r.ReadArrayStart()
if yyl1685 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1685, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ContainerStateTerminated) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1686Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1686Slc
var yyhl1686 bool = l >= 0
for yyj1686 := 0; ; yyj1686++ {
if yyhl1686 {
if yyj1686 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1686Slc = r.DecodeBytes(yys1686Slc, true, true)
yys1686 := string(yys1686Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1686 {
case "exitCode":
if r.TryDecodeAsNil() {
x.ExitCode = 0
} else {
x.ExitCode = int32(r.DecodeInt(32))
}
case "signal":
if r.TryDecodeAsNil() {
x.Signal = 0
} else {
x.Signal = int32(r.DecodeInt(32))
}
case "reason":
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
case "message":
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
case "startedAt":
if r.TryDecodeAsNil() {
x.StartedAt = pkg2_unversioned.Time{}
} else {
yyv1691 := &x.StartedAt
yym1692 := z.DecBinary()
_ = yym1692
if false {
} else if z.HasExtensions() && z.DecExt(yyv1691) {
} else if yym1692 {
z.DecBinaryUnmarshal(yyv1691)
} else if !yym1692 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1691)
} else {
z.DecFallback(yyv1691, false)
}
}
case "finishedAt":
if r.TryDecodeAsNil() {
x.FinishedAt = pkg2_unversioned.Time{}
} else {
yyv1693 := &x.FinishedAt
yym1694 := z.DecBinary()
_ = yym1694
if false {
} else if z.HasExtensions() && z.DecExt(yyv1693) {
} else if yym1694 {
z.DecBinaryUnmarshal(yyv1693)
} else if !yym1694 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1693)
} else {
z.DecFallback(yyv1693, false)
}
}
case "containerID":
if r.TryDecodeAsNil() {
x.ContainerID = ""
} else {
x.ContainerID = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1686)
} // end switch yys1686
} // end for yyj1686
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 yyj1696 int
var yyb1696 bool
var yyhl1696 bool = l >= 0
yyj1696++
if yyhl1696 {
yyb1696 = yyj1696 > l
} else {
yyb1696 = r.CheckBreak()
}
if yyb1696 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ExitCode = 0
} else {
x.ExitCode = int32(r.DecodeInt(32))
}
yyj1696++
if yyhl1696 {
yyb1696 = yyj1696 > l
} else {
yyb1696 = r.CheckBreak()
}
if yyb1696 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Signal = 0
} else {
x.Signal = int32(r.DecodeInt(32))
}
yyj1696++
if yyhl1696 {
yyb1696 = yyj1696 > l
} else {
yyb1696 = r.CheckBreak()
}
if yyb1696 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj1696++
if yyhl1696 {
yyb1696 = yyj1696 > l
} else {
yyb1696 = r.CheckBreak()
}
if yyb1696 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
yyj1696++
if yyhl1696 {
yyb1696 = yyj1696 > l
} else {
yyb1696 = r.CheckBreak()
}
if yyb1696 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.StartedAt = pkg2_unversioned.Time{}
} else {
yyv1701 := &x.StartedAt
yym1702 := z.DecBinary()
_ = yym1702
if false {
} else if z.HasExtensions() && z.DecExt(yyv1701) {
} else if yym1702 {
z.DecBinaryUnmarshal(yyv1701)
} else if !yym1702 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1701)
} else {
z.DecFallback(yyv1701, false)
}
}
yyj1696++
if yyhl1696 {
yyb1696 = yyj1696 > l
} else {
yyb1696 = r.CheckBreak()
}
if yyb1696 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FinishedAt = pkg2_unversioned.Time{}
} else {
yyv1703 := &x.FinishedAt
yym1704 := z.DecBinary()
_ = yym1704
if false {
} else if z.HasExtensions() && z.DecExt(yyv1703) {
} else if yym1704 {
z.DecBinaryUnmarshal(yyv1703)
} else if !yym1704 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1703)
} else {
z.DecFallback(yyv1703, false)
}
}
yyj1696++
if yyhl1696 {
yyb1696 = yyj1696 > l
} else {
yyb1696 = r.CheckBreak()
}
if yyb1696 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerID = ""
} else {
x.ContainerID = string(r.DecodeString())
}
for {
yyj1696++
if yyhl1696 {
yyb1696 = yyj1696 > l
} else {
yyb1696 = r.CheckBreak()
}
if yyb1696 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1696-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 {
yym1706 := z.EncBinary()
_ = yym1706
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1707 := !z.EncBinary()
yy2arr1707 := z.EncBasicHandle().StructToArray
var yyq1707 [3]bool
_, _, _ = yysep1707, yyq1707, yy2arr1707
const yyr1707 bool = false
yyq1707[0] = x.Waiting != nil
yyq1707[1] = x.Running != nil
yyq1707[2] = x.Terminated != nil
var yynn1707 int
if yyr1707 || yy2arr1707 {
r.EncodeArrayStart(3)
} else {
yynn1707 = 0
for _, b := range yyq1707 {
if b {
yynn1707++
}
}
r.EncodeMapStart(yynn1707)
yynn1707 = 0
}
if yyr1707 || yy2arr1707 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1707[0] {
if x.Waiting == nil {
r.EncodeNil()
} else {
x.Waiting.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1707[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 yyr1707 || yy2arr1707 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1707[1] {
if x.Running == nil {
r.EncodeNil()
} else {
x.Running.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1707[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 yyr1707 || yy2arr1707 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1707[2] {
if x.Terminated == nil {
r.EncodeNil()
} else {
x.Terminated.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1707[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 yyr1707 || yy2arr1707 {
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
yym1711 := z.DecBinary()
_ = yym1711
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1712 := r.ContainerType()
if yyct1712 == codecSelferValueTypeMap1234 {
yyl1712 := r.ReadMapStart()
if yyl1712 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1712, d)
}
} else if yyct1712 == codecSelferValueTypeArray1234 {
yyl1712 := r.ReadArrayStart()
if yyl1712 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1712, 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 yys1713Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1713Slc
var yyhl1713 bool = l >= 0
for yyj1713 := 0; ; yyj1713++ {
if yyhl1713 {
if yyj1713 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1713Slc = r.DecodeBytes(yys1713Slc, true, true)
yys1713 := string(yys1713Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1713 {
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, yys1713)
} // end switch yys1713
} // end for yyj1713
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 yyj1717 int
var yyb1717 bool
var yyhl1717 bool = l >= 0
yyj1717++
if yyhl1717 {
yyb1717 = yyj1717 > l
} else {
yyb1717 = r.CheckBreak()
}
if yyb1717 {
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)
}
yyj1717++
if yyhl1717 {
yyb1717 = yyj1717 > l
} else {
yyb1717 = r.CheckBreak()
}
if yyb1717 {
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)
}
yyj1717++
if yyhl1717 {
yyb1717 = yyj1717 > l
} else {
yyb1717 = r.CheckBreak()
}
if yyb1717 {
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 {
yyj1717++
if yyhl1717 {
yyb1717 = yyj1717 > l
} else {
yyb1717 = r.CheckBreak()
}
if yyb1717 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1717-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 {
yym1721 := z.EncBinary()
_ = yym1721
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1722 := !z.EncBinary()
yy2arr1722 := z.EncBasicHandle().StructToArray
var yyq1722 [8]bool
_, _, _ = yysep1722, yyq1722, yy2arr1722
const yyr1722 bool = false
yyq1722[1] = true
yyq1722[2] = true
yyq1722[7] = x.ContainerID != ""
var yynn1722 int
if yyr1722 || yy2arr1722 {
r.EncodeArrayStart(8)
} else {
yynn1722 = 5
for _, b := range yyq1722 {
if b {
yynn1722++
}
}
r.EncodeMapStart(yynn1722)
yynn1722 = 0
}
if yyr1722 || yy2arr1722 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1724 := z.EncBinary()
_ = yym1724
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)
yym1725 := z.EncBinary()
_ = yym1725
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1722 || yy2arr1722 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1722[1] {
yy1727 := &x.State
yy1727.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1722[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("state"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1728 := &x.State
yy1728.CodecEncodeSelf(e)
}
}
if yyr1722 || yy2arr1722 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1722[2] {
yy1730 := &x.LastTerminationState
yy1730.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1722[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastState"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1731 := &x.LastTerminationState
yy1731.CodecEncodeSelf(e)
}
}
if yyr1722 || yy2arr1722 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1733 := z.EncBinary()
_ = yym1733
if false {
} else {
r.EncodeBool(bool(x.Ready))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ready"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1734 := z.EncBinary()
_ = yym1734
if false {
} else {
r.EncodeBool(bool(x.Ready))
}
}
if yyr1722 || yy2arr1722 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1736 := z.EncBinary()
_ = yym1736
if false {
} else {
r.EncodeInt(int64(x.RestartCount))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("restartCount"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1737 := z.EncBinary()
_ = yym1737
if false {
} else {
r.EncodeInt(int64(x.RestartCount))
}
}
if yyr1722 || yy2arr1722 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1739 := z.EncBinary()
_ = yym1739
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)
yym1740 := z.EncBinary()
_ = yym1740
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Image))
}
}
if yyr1722 || yy2arr1722 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1742 := z.EncBinary()
_ = yym1742
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)
yym1743 := z.EncBinary()
_ = yym1743
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ImageID))
}
}
if yyr1722 || yy2arr1722 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1722[7] {
yym1745 := z.EncBinary()
_ = yym1745
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1722[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("containerID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1746 := z.EncBinary()
_ = yym1746
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
}
}
}
if yyr1722 || yy2arr1722 {
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
yym1747 := z.DecBinary()
_ = yym1747
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1748 := r.ContainerType()
if yyct1748 == codecSelferValueTypeMap1234 {
yyl1748 := r.ReadMapStart()
if yyl1748 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1748, d)
}
} else if yyct1748 == codecSelferValueTypeArray1234 {
yyl1748 := r.ReadArrayStart()
if yyl1748 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1748, 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 yys1749Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1749Slc
var yyhl1749 bool = l >= 0
for yyj1749 := 0; ; yyj1749++ {
if yyhl1749 {
if yyj1749 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1749Slc = r.DecodeBytes(yys1749Slc, true, true)
yys1749 := string(yys1749Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1749 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "state":
if r.TryDecodeAsNil() {
x.State = ContainerState{}
} else {
yyv1751 := &x.State
yyv1751.CodecDecodeSelf(d)
}
case "lastState":
if r.TryDecodeAsNil() {
x.LastTerminationState = ContainerState{}
} else {
yyv1752 := &x.LastTerminationState
yyv1752.CodecDecodeSelf(d)
}
case "ready":
if r.TryDecodeAsNil() {
x.Ready = false
} else {
x.Ready = bool(r.DecodeBool())
}
case "restartCount":
if r.TryDecodeAsNil() {
x.RestartCount = 0
} else {
x.RestartCount = int32(r.DecodeInt(32))
}
case "image":
if r.TryDecodeAsNil() {
x.Image = ""
} else {
x.Image = string(r.DecodeString())
}
case "imageID":
if r.TryDecodeAsNil() {
x.ImageID = ""
} else {
x.ImageID = string(r.DecodeString())
}
case "containerID":
if r.TryDecodeAsNil() {
x.ContainerID = ""
} else {
x.ContainerID = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1749)
} // end switch yys1749
} // end for yyj1749
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 yyj1758 int
var yyb1758 bool
var yyhl1758 bool = l >= 0
yyj1758++
if yyhl1758 {
yyb1758 = yyj1758 > l
} else {
yyb1758 = r.CheckBreak()
}
if yyb1758 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1758++
if yyhl1758 {
yyb1758 = yyj1758 > l
} else {
yyb1758 = r.CheckBreak()
}
if yyb1758 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.State = ContainerState{}
} else {
yyv1760 := &x.State
yyv1760.CodecDecodeSelf(d)
}
yyj1758++
if yyhl1758 {
yyb1758 = yyj1758 > l
} else {
yyb1758 = r.CheckBreak()
}
if yyb1758 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastTerminationState = ContainerState{}
} else {
yyv1761 := &x.LastTerminationState
yyv1761.CodecDecodeSelf(d)
}
yyj1758++
if yyhl1758 {
yyb1758 = yyj1758 > l
} else {
yyb1758 = r.CheckBreak()
}
if yyb1758 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ready = false
} else {
x.Ready = bool(r.DecodeBool())
}
yyj1758++
if yyhl1758 {
yyb1758 = yyj1758 > l
} else {
yyb1758 = r.CheckBreak()
}
if yyb1758 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RestartCount = 0
} else {
x.RestartCount = int32(r.DecodeInt(32))
}
yyj1758++
if yyhl1758 {
yyb1758 = yyj1758 > l
} else {
yyb1758 = r.CheckBreak()
}
if yyb1758 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Image = ""
} else {
x.Image = string(r.DecodeString())
}
yyj1758++
if yyhl1758 {
yyb1758 = yyj1758 > l
} else {
yyb1758 = r.CheckBreak()
}
if yyb1758 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ImageID = ""
} else {
x.ImageID = string(r.DecodeString())
}
yyj1758++
if yyhl1758 {
yyb1758 = yyj1758 > l
} else {
yyb1758 = r.CheckBreak()
}
if yyb1758 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerID = ""
} else {
x.ContainerID = string(r.DecodeString())
}
for {
yyj1758++
if yyhl1758 {
yyb1758 = yyj1758 > l
} else {
yyb1758 = r.CheckBreak()
}
if yyb1758 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1758-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x PodPhase) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1767 := z.EncBinary()
_ = yym1767
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
yym1768 := z.DecBinary()
_ = yym1768
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
yym1769 := z.EncBinary()
_ = yym1769
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
yym1770 := z.DecBinary()
_ = yym1770
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 {
yym1771 := z.EncBinary()
_ = yym1771
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1772 := !z.EncBinary()
yy2arr1772 := z.EncBasicHandle().StructToArray
var yyq1772 [6]bool
_, _, _ = yysep1772, yyq1772, yy2arr1772
const yyr1772 bool = false
yyq1772[2] = true
yyq1772[3] = true
yyq1772[4] = x.Reason != ""
yyq1772[5] = x.Message != ""
var yynn1772 int
if yyr1772 || yy2arr1772 {
r.EncodeArrayStart(6)
} else {
yynn1772 = 2
for _, b := range yyq1772 {
if b {
yynn1772++
}
}
r.EncodeMapStart(yynn1772)
yynn1772 = 0
}
if yyr1772 || yy2arr1772 {
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 yyr1772 || yy2arr1772 {
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 yyr1772 || yy2arr1772 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1772[2] {
yy1776 := &x.LastProbeTime
yym1777 := z.EncBinary()
_ = yym1777
if false {
} else if z.HasExtensions() && z.EncExt(yy1776) {
} else if yym1777 {
z.EncBinaryMarshal(yy1776)
} else if !yym1777 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1776)
} else {
z.EncFallback(yy1776)
}
} else {
r.EncodeNil()
}
} else {
if yyq1772[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1778 := &x.LastProbeTime
yym1779 := z.EncBinary()
_ = yym1779
if false {
} else if z.HasExtensions() && z.EncExt(yy1778) {
} else if yym1779 {
z.EncBinaryMarshal(yy1778)
} else if !yym1779 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1778)
} else {
z.EncFallback(yy1778)
}
}
}
if yyr1772 || yy2arr1772 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1772[3] {
yy1781 := &x.LastTransitionTime
yym1782 := z.EncBinary()
_ = yym1782
if false {
} else if z.HasExtensions() && z.EncExt(yy1781) {
} else if yym1782 {
z.EncBinaryMarshal(yy1781)
} else if !yym1782 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1781)
} else {
z.EncFallback(yy1781)
}
} else {
r.EncodeNil()
}
} else {
if yyq1772[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1783 := &x.LastTransitionTime
yym1784 := z.EncBinary()
_ = yym1784
if false {
} else if z.HasExtensions() && z.EncExt(yy1783) {
} else if yym1784 {
z.EncBinaryMarshal(yy1783)
} else if !yym1784 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1783)
} else {
z.EncFallback(yy1783)
}
}
}
if yyr1772 || yy2arr1772 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1772[4] {
yym1786 := z.EncBinary()
_ = yym1786
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1772[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1787 := z.EncBinary()
_ = yym1787
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr1772 || yy2arr1772 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1772[5] {
yym1789 := z.EncBinary()
_ = yym1789
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1772[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1790 := z.EncBinary()
_ = yym1790
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr1772 || yy2arr1772 {
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
yym1791 := z.DecBinary()
_ = yym1791
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1792 := r.ContainerType()
if yyct1792 == codecSelferValueTypeMap1234 {
yyl1792 := r.ReadMapStart()
if yyl1792 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1792, d)
}
} else if yyct1792 == codecSelferValueTypeArray1234 {
yyl1792 := r.ReadArrayStart()
if yyl1792 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1792, 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 yys1793Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1793Slc
var yyhl1793 bool = l >= 0
for yyj1793 := 0; ; yyj1793++ {
if yyhl1793 {
if yyj1793 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1793Slc = r.DecodeBytes(yys1793Slc, true, true)
yys1793 := string(yys1793Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1793 {
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 {
yyv1796 := &x.LastProbeTime
yym1797 := z.DecBinary()
_ = yym1797
if false {
} else if z.HasExtensions() && z.DecExt(yyv1796) {
} else if yym1797 {
z.DecBinaryUnmarshal(yyv1796)
} else if !yym1797 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1796)
} else {
z.DecFallback(yyv1796, false)
}
}
case "lastTransitionTime":
if r.TryDecodeAsNil() {
x.LastTransitionTime = pkg2_unversioned.Time{}
} else {
yyv1798 := &x.LastTransitionTime
yym1799 := z.DecBinary()
_ = yym1799
if false {
} else if z.HasExtensions() && z.DecExt(yyv1798) {
} else if yym1799 {
z.DecBinaryUnmarshal(yyv1798)
} else if !yym1799 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1798)
} else {
z.DecFallback(yyv1798, 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, yys1793)
} // end switch yys1793
} // end for yyj1793
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 yyj1802 int
var yyb1802 bool
var yyhl1802 bool = l >= 0
yyj1802++
if yyhl1802 {
yyb1802 = yyj1802 > l
} else {
yyb1802 = r.CheckBreak()
}
if yyb1802 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = PodConditionType(r.DecodeString())
}
yyj1802++
if yyhl1802 {
yyb1802 = yyj1802 > l
} else {
yyb1802 = r.CheckBreak()
}
if yyb1802 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ""
} else {
x.Status = ConditionStatus(r.DecodeString())
}
yyj1802++
if yyhl1802 {
yyb1802 = yyj1802 > l
} else {
yyb1802 = r.CheckBreak()
}
if yyb1802 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastProbeTime = pkg2_unversioned.Time{}
} else {
yyv1805 := &x.LastProbeTime
yym1806 := z.DecBinary()
_ = yym1806
if false {
} else if z.HasExtensions() && z.DecExt(yyv1805) {
} else if yym1806 {
z.DecBinaryUnmarshal(yyv1805)
} else if !yym1806 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1805)
} else {
z.DecFallback(yyv1805, false)
}
}
yyj1802++
if yyhl1802 {
yyb1802 = yyj1802 > l
} else {
yyb1802 = r.CheckBreak()
}
if yyb1802 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastTransitionTime = pkg2_unversioned.Time{}
} else {
yyv1807 := &x.LastTransitionTime
yym1808 := z.DecBinary()
_ = yym1808
if false {
} else if z.HasExtensions() && z.DecExt(yyv1807) {
} else if yym1808 {
z.DecBinaryUnmarshal(yyv1807)
} else if !yym1808 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1807)
} else {
z.DecFallback(yyv1807, false)
}
}
yyj1802++
if yyhl1802 {
yyb1802 = yyj1802 > l
} else {
yyb1802 = r.CheckBreak()
}
if yyb1802 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj1802++
if yyhl1802 {
yyb1802 = yyj1802 > l
} else {
yyb1802 = r.CheckBreak()
}
if yyb1802 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
for {
yyj1802++
if yyhl1802 {
yyb1802 = yyj1802 > l
} else {
yyb1802 = r.CheckBreak()
}
if yyb1802 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1802-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1811 := z.EncBinary()
_ = yym1811
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
yym1812 := z.DecBinary()
_ = yym1812
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 {
yym1813 := z.EncBinary()
_ = yym1813
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1814 := !z.EncBinary()
yy2arr1814 := z.EncBasicHandle().StructToArray
var yyq1814 [4]bool
_, _, _ = yysep1814, yyq1814, yy2arr1814
const yyr1814 bool = false
yyq1814[0] = x.Kind != ""
yyq1814[1] = x.APIVersion != ""
yyq1814[2] = true
var yynn1814 int
if yyr1814 || yy2arr1814 {
r.EncodeArrayStart(4)
} else {
yynn1814 = 1
for _, b := range yyq1814 {
if b {
yynn1814++
}
}
r.EncodeMapStart(yynn1814)
yynn1814 = 0
}
if yyr1814 || yy2arr1814 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1814[0] {
yym1816 := z.EncBinary()
_ = yym1816
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1814[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1817 := z.EncBinary()
_ = yym1817
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr1814 || yy2arr1814 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1814[1] {
yym1819 := z.EncBinary()
_ = yym1819
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1814[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1820 := z.EncBinary()
_ = yym1820
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr1814 || yy2arr1814 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1814[2] {
yy1822 := &x.ListMeta
yym1823 := z.EncBinary()
_ = yym1823
if false {
} else if z.HasExtensions() && z.EncExt(yy1822) {
} else {
z.EncFallback(yy1822)
}
} else {
r.EncodeNil()
}
} else {
if yyq1814[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1824 := &x.ListMeta
yym1825 := z.EncBinary()
_ = yym1825
if false {
} else if z.HasExtensions() && z.EncExt(yy1824) {
} else {
z.EncFallback(yy1824)
}
}
}
if yyr1814 || yy2arr1814 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym1827 := z.EncBinary()
_ = yym1827
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 {
yym1828 := z.EncBinary()
_ = yym1828
if false {
} else {
h.encSlicePod(([]Pod)(x.Items), e)
}
}
}
if yyr1814 || yy2arr1814 {
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
yym1829 := z.DecBinary()
_ = yym1829
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1830 := r.ContainerType()
if yyct1830 == codecSelferValueTypeMap1234 {
yyl1830 := r.ReadMapStart()
if yyl1830 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1830, d)
}
} else if yyct1830 == codecSelferValueTypeArray1234 {
yyl1830 := r.ReadArrayStart()
if yyl1830 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1830, 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 yys1831Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1831Slc
var yyhl1831 bool = l >= 0
for yyj1831 := 0; ; yyj1831++ {
if yyhl1831 {
if yyj1831 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1831Slc = r.DecodeBytes(yys1831Slc, true, true)
yys1831 := string(yys1831Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1831 {
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 {
yyv1834 := &x.ListMeta
yym1835 := z.DecBinary()
_ = yym1835
if false {
} else if z.HasExtensions() && z.DecExt(yyv1834) {
} else {
z.DecFallback(yyv1834, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1836 := &x.Items
yym1837 := z.DecBinary()
_ = yym1837
if false {
} else {
h.decSlicePod((*[]Pod)(yyv1836), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1831)
} // end switch yys1831
} // end for yyj1831
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 yyj1838 int
var yyb1838 bool
var yyhl1838 bool = l >= 0
yyj1838++
if yyhl1838 {
yyb1838 = yyj1838 > l
} else {
yyb1838 = r.CheckBreak()
}
if yyb1838 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj1838++
if yyhl1838 {
yyb1838 = yyj1838 > l
} else {
yyb1838 = r.CheckBreak()
}
if yyb1838 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1838++
if yyhl1838 {
yyb1838 = yyj1838 > l
} else {
yyb1838 = r.CheckBreak()
}
if yyb1838 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv1841 := &x.ListMeta
yym1842 := z.DecBinary()
_ = yym1842
if false {
} else if z.HasExtensions() && z.DecExt(yyv1841) {
} else {
z.DecFallback(yyv1841, false)
}
}
yyj1838++
if yyhl1838 {
yyb1838 = yyj1838 > l
} else {
yyb1838 = r.CheckBreak()
}
if yyb1838 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1843 := &x.Items
yym1844 := z.DecBinary()
_ = yym1844
if false {
} else {
h.decSlicePod((*[]Pod)(yyv1843), d)
}
}
for {
yyj1838++
if yyhl1838 {
yyb1838 = yyj1838 > l
} else {
yyb1838 = r.CheckBreak()
}
if yyb1838 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1838-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x DNSPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1845 := z.EncBinary()
_ = yym1845
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
yym1846 := z.DecBinary()
_ = yym1846
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *NodeSelector) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1847 := z.EncBinary()
_ = yym1847
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1848 := !z.EncBinary()
yy2arr1848 := z.EncBasicHandle().StructToArray
var yyq1848 [1]bool
_, _, _ = yysep1848, yyq1848, yy2arr1848
const yyr1848 bool = false
var yynn1848 int
if yyr1848 || yy2arr1848 {
r.EncodeArrayStart(1)
} else {
yynn1848 = 1
for _, b := range yyq1848 {
if b {
yynn1848++
}
}
r.EncodeMapStart(yynn1848)
yynn1848 = 0
}
if yyr1848 || yy2arr1848 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.NodeSelectorTerms == nil {
r.EncodeNil()
} else {
yym1850 := z.EncBinary()
_ = yym1850
if false {
} else {
h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e)
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeSelectorTerms"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.NodeSelectorTerms == nil {
r.EncodeNil()
} else {
yym1851 := z.EncBinary()
_ = yym1851
if false {
} else {
h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e)
}
}
}
if yyr1848 || yy2arr1848 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *NodeSelector) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1852 := z.DecBinary()
_ = yym1852
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1853 := r.ContainerType()
if yyct1853 == codecSelferValueTypeMap1234 {
yyl1853 := r.ReadMapStart()
if yyl1853 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1853, d)
}
} else if yyct1853 == codecSelferValueTypeArray1234 {
yyl1853 := r.ReadArrayStart()
if yyl1853 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1853, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NodeSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1854Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1854Slc
var yyhl1854 bool = l >= 0
for yyj1854 := 0; ; yyj1854++ {
if yyhl1854 {
if yyj1854 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1854Slc = r.DecodeBytes(yys1854Slc, true, true)
yys1854 := string(yys1854Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1854 {
case "nodeSelectorTerms":
if r.TryDecodeAsNil() {
x.NodeSelectorTerms = nil
} else {
yyv1855 := &x.NodeSelectorTerms
yym1856 := z.DecBinary()
_ = yym1856
if false {
} else {
h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1855), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1854)
} // end switch yys1854
} // end for yyj1854
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *NodeSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1857 int
var yyb1857 bool
var yyhl1857 bool = l >= 0
yyj1857++
if yyhl1857 {
yyb1857 = yyj1857 > l
} else {
yyb1857 = r.CheckBreak()
}
if yyb1857 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodeSelectorTerms = nil
} else {
yyv1858 := &x.NodeSelectorTerms
yym1859 := z.DecBinary()
_ = yym1859
if false {
} else {
h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1858), d)
}
}
for {
yyj1857++
if yyhl1857 {
yyb1857 = yyj1857 > l
} else {
yyb1857 = r.CheckBreak()
}
if yyb1857 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1857-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *NodeSelectorTerm) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1860 := z.EncBinary()
_ = yym1860
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1861 := !z.EncBinary()
yy2arr1861 := z.EncBasicHandle().StructToArray
var yyq1861 [1]bool
_, _, _ = yysep1861, yyq1861, yy2arr1861
const yyr1861 bool = false
var yynn1861 int
if yyr1861 || yy2arr1861 {
r.EncodeArrayStart(1)
} else {
yynn1861 = 1
for _, b := range yyq1861 {
if b {
yynn1861++
}
}
r.EncodeMapStart(yynn1861)
yynn1861 = 0
}
if yyr1861 || yy2arr1861 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.MatchExpressions == nil {
r.EncodeNil()
} else {
yym1863 := z.EncBinary()
_ = yym1863
if false {
} else {
h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e)
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("matchExpressions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.MatchExpressions == nil {
r.EncodeNil()
} else {
yym1864 := z.EncBinary()
_ = yym1864
if false {
} else {
h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e)
}
}
}
if yyr1861 || yy2arr1861 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *NodeSelectorTerm) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1865 := z.DecBinary()
_ = yym1865
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1866 := r.ContainerType()
if yyct1866 == codecSelferValueTypeMap1234 {
yyl1866 := r.ReadMapStart()
if yyl1866 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1866, d)
}
} else if yyct1866 == codecSelferValueTypeArray1234 {
yyl1866 := r.ReadArrayStart()
if yyl1866 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1866, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NodeSelectorTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1867Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1867Slc
var yyhl1867 bool = l >= 0
for yyj1867 := 0; ; yyj1867++ {
if yyhl1867 {
if yyj1867 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1867Slc = r.DecodeBytes(yys1867Slc, true, true)
yys1867 := string(yys1867Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1867 {
case "matchExpressions":
if r.TryDecodeAsNil() {
x.MatchExpressions = nil
} else {
yyv1868 := &x.MatchExpressions
yym1869 := z.DecBinary()
_ = yym1869
if false {
} else {
h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1868), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1867)
} // end switch yys1867
} // end for yyj1867
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *NodeSelectorTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1870 int
var yyb1870 bool
var yyhl1870 bool = l >= 0
yyj1870++
if yyhl1870 {
yyb1870 = yyj1870 > l
} else {
yyb1870 = r.CheckBreak()
}
if yyb1870 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.MatchExpressions = nil
} else {
yyv1871 := &x.MatchExpressions
yym1872 := z.DecBinary()
_ = yym1872
if false {
} else {
h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1871), d)
}
}
for {
yyj1870++
if yyhl1870 {
yyb1870 = yyj1870 > l
} else {
yyb1870 = r.CheckBreak()
}
if yyb1870 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1870-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1873 := z.EncBinary()
_ = yym1873
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1874 := !z.EncBinary()
yy2arr1874 := z.EncBasicHandle().StructToArray
var yyq1874 [3]bool
_, _, _ = yysep1874, yyq1874, yy2arr1874
const yyr1874 bool = false
yyq1874[2] = len(x.Values) != 0
var yynn1874 int
if yyr1874 || yy2arr1874 {
r.EncodeArrayStart(3)
} else {
yynn1874 = 2
for _, b := range yyq1874 {
if b {
yynn1874++
}
}
r.EncodeMapStart(yynn1874)
yynn1874 = 0
}
if yyr1874 || yy2arr1874 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1876 := z.EncBinary()
_ = yym1876
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("key"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1877 := z.EncBinary()
_ = yym1877
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
}
if yyr1874 || yy2arr1874 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
x.Operator.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("operator"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Operator.CodecEncodeSelf(e)
}
if yyr1874 || yy2arr1874 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1874[2] {
if x.Values == nil {
r.EncodeNil()
} else {
yym1880 := z.EncBinary()
_ = yym1880
if false {
} else {
z.F.EncSliceStringV(x.Values, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1874[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("values"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Values == nil {
r.EncodeNil()
} else {
yym1881 := z.EncBinary()
_ = yym1881
if false {
} else {
z.F.EncSliceStringV(x.Values, false, e)
}
}
}
}
if yyr1874 || yy2arr1874 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *NodeSelectorRequirement) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1882 := z.DecBinary()
_ = yym1882
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1883 := r.ContainerType()
if yyct1883 == codecSelferValueTypeMap1234 {
yyl1883 := r.ReadMapStart()
if yyl1883 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1883, d)
}
} else if yyct1883 == codecSelferValueTypeArray1234 {
yyl1883 := r.ReadArrayStart()
if yyl1883 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1883, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NodeSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1884Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1884Slc
var yyhl1884 bool = l >= 0
for yyj1884 := 0; ; yyj1884++ {
if yyhl1884 {
if yyj1884 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1884Slc = r.DecodeBytes(yys1884Slc, true, true)
yys1884 := string(yys1884Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1884 {
case "key":
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
case "operator":
if r.TryDecodeAsNil() {
x.Operator = ""
} else {
x.Operator = NodeSelectorOperator(r.DecodeString())
}
case "values":
if r.TryDecodeAsNil() {
x.Values = nil
} else {
yyv1887 := &x.Values
yym1888 := z.DecBinary()
_ = yym1888
if false {
} else {
z.F.DecSliceStringX(yyv1887, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1884)
} // end switch yys1884
} // end for yyj1884
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *NodeSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1889 int
var yyb1889 bool
var yyhl1889 bool = l >= 0
yyj1889++
if yyhl1889 {
yyb1889 = yyj1889 > l
} else {
yyb1889 = r.CheckBreak()
}
if yyb1889 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
yyj1889++
if yyhl1889 {
yyb1889 = yyj1889 > l
} else {
yyb1889 = r.CheckBreak()
}
if yyb1889 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Operator = ""
} else {
x.Operator = NodeSelectorOperator(r.DecodeString())
}
yyj1889++
if yyhl1889 {
yyb1889 = yyj1889 > l
} else {
yyb1889 = r.CheckBreak()
}
if yyb1889 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Values = nil
} else {
yyv1892 := &x.Values
yym1893 := z.DecBinary()
_ = yym1893
if false {
} else {
z.F.DecSliceStringX(yyv1892, false, d)
}
}
for {
yyj1889++
if yyhl1889 {
yyb1889 = yyj1889 > l
} else {
yyb1889 = r.CheckBreak()
}
if yyb1889 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1889-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x NodeSelectorOperator) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1894 := z.EncBinary()
_ = yym1894
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *NodeSelectorOperator) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1895 := z.DecBinary()
_ = yym1895
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1896 := z.EncBinary()
_ = yym1896
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1897 := !z.EncBinary()
yy2arr1897 := z.EncBasicHandle().StructToArray
var yyq1897 [3]bool
_, _, _ = yysep1897, yyq1897, yy2arr1897
const yyr1897 bool = false
yyq1897[0] = x.NodeAffinity != nil
yyq1897[1] = x.PodAffinity != nil
yyq1897[2] = x.PodAntiAffinity != nil
var yynn1897 int
if yyr1897 || yy2arr1897 {
r.EncodeArrayStart(3)
} else {
yynn1897 = 0
for _, b := range yyq1897 {
if b {
yynn1897++
}
}
r.EncodeMapStart(yynn1897)
yynn1897 = 0
}
if yyr1897 || yy2arr1897 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1897[0] {
if x.NodeAffinity == nil {
r.EncodeNil()
} else {
x.NodeAffinity.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1897[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeAffinity"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.NodeAffinity == nil {
r.EncodeNil()
} else {
x.NodeAffinity.CodecEncodeSelf(e)
}
}
}
if yyr1897 || yy2arr1897 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1897[1] {
if x.PodAffinity == nil {
r.EncodeNil()
} else {
x.PodAffinity.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1897[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("podAffinity"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.PodAffinity == nil {
r.EncodeNil()
} else {
x.PodAffinity.CodecEncodeSelf(e)
}
}
}
if yyr1897 || yy2arr1897 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1897[2] {
if x.PodAntiAffinity == nil {
r.EncodeNil()
} else {
x.PodAntiAffinity.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1897[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("podAntiAffinity"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.PodAntiAffinity == nil {
r.EncodeNil()
} else {
x.PodAntiAffinity.CodecEncodeSelf(e)
}
}
}
if yyr1897 || yy2arr1897 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *Affinity) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1901 := z.DecBinary()
_ = yym1901
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1902 := r.ContainerType()
if yyct1902 == codecSelferValueTypeMap1234 {
yyl1902 := r.ReadMapStart()
if yyl1902 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1902, d)
}
} else if yyct1902 == codecSelferValueTypeArray1234 {
yyl1902 := r.ReadArrayStart()
if yyl1902 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1902, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *Affinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1903Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1903Slc
var yyhl1903 bool = l >= 0
for yyj1903 := 0; ; yyj1903++ {
if yyhl1903 {
if yyj1903 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1903Slc = r.DecodeBytes(yys1903Slc, true, true)
yys1903 := string(yys1903Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1903 {
case "nodeAffinity":
if r.TryDecodeAsNil() {
if x.NodeAffinity != nil {
x.NodeAffinity = nil
}
} else {
if x.NodeAffinity == nil {
x.NodeAffinity = new(NodeAffinity)
}
x.NodeAffinity.CodecDecodeSelf(d)
}
case "podAffinity":
if r.TryDecodeAsNil() {
if x.PodAffinity != nil {
x.PodAffinity = nil
}
} else {
if x.PodAffinity == nil {
x.PodAffinity = new(PodAffinity)
}
x.PodAffinity.CodecDecodeSelf(d)
}
case "podAntiAffinity":
if r.TryDecodeAsNil() {
if x.PodAntiAffinity != nil {
x.PodAntiAffinity = nil
}
} else {
if x.PodAntiAffinity == nil {
x.PodAntiAffinity = new(PodAntiAffinity)
}
x.PodAntiAffinity.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1903)
} // end switch yys1903
} // end for yyj1903
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1907 int
var yyb1907 bool
var yyhl1907 bool = l >= 0
yyj1907++
if yyhl1907 {
yyb1907 = yyj1907 > l
} else {
yyb1907 = r.CheckBreak()
}
if yyb1907 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.NodeAffinity != nil {
x.NodeAffinity = nil
}
} else {
if x.NodeAffinity == nil {
x.NodeAffinity = new(NodeAffinity)
}
x.NodeAffinity.CodecDecodeSelf(d)
}
yyj1907++
if yyhl1907 {
yyb1907 = yyj1907 > l
} else {
yyb1907 = r.CheckBreak()
}
if yyb1907 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.PodAffinity != nil {
x.PodAffinity = nil
}
} else {
if x.PodAffinity == nil {
x.PodAffinity = new(PodAffinity)
}
x.PodAffinity.CodecDecodeSelf(d)
}
yyj1907++
if yyhl1907 {
yyb1907 = yyj1907 > l
} else {
yyb1907 = r.CheckBreak()
}
if yyb1907 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.PodAntiAffinity != nil {
x.PodAntiAffinity = nil
}
} else {
if x.PodAntiAffinity == nil {
x.PodAntiAffinity = new(PodAntiAffinity)
}
x.PodAntiAffinity.CodecDecodeSelf(d)
}
for {
yyj1907++
if yyhl1907 {
yyb1907 = yyj1907 > l
} else {
yyb1907 = r.CheckBreak()
}
if yyb1907 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1907-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1911 := z.EncBinary()
_ = yym1911
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1912 := !z.EncBinary()
yy2arr1912 := z.EncBasicHandle().StructToArray
var yyq1912 [2]bool
_, _, _ = yysep1912, yyq1912, yy2arr1912
const yyr1912 bool = false
yyq1912[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0
yyq1912[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0
var yynn1912 int
if yyr1912 || yy2arr1912 {
r.EncodeArrayStart(2)
} else {
yynn1912 = 0
for _, b := range yyq1912 {
if b {
yynn1912++
}
}
r.EncodeMapStart(yynn1912)
yynn1912 = 0
}
if yyr1912 || yy2arr1912 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1912[0] {
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1914 := z.EncBinary()
_ = yym1914
if false {
} else {
h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1912[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1915 := z.EncBinary()
_ = yym1915
if false {
} else {
h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e)
}
}
}
}
if yyr1912 || yy2arr1912 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1912[1] {
if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1917 := z.EncBinary()
_ = yym1917
if false {
} else {
h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1912[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1918 := z.EncBinary()
_ = yym1918
if false {
} else {
h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
}
}
}
}
if yyr1912 || yy2arr1912 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *PodAffinity) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1919 := z.DecBinary()
_ = yym1919
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1920 := r.ContainerType()
if yyct1920 == codecSelferValueTypeMap1234 {
yyl1920 := r.ReadMapStart()
if yyl1920 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1920, d)
}
} else if yyct1920 == codecSelferValueTypeArray1234 {
yyl1920 := r.ReadArrayStart()
if yyl1920 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1920, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PodAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1921Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1921Slc
var yyhl1921 bool = l >= 0
for yyj1921 := 0; ; yyj1921++ {
if yyhl1921 {
if yyj1921 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1921Slc = r.DecodeBytes(yys1921Slc, true, true)
yys1921 := string(yys1921Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1921 {
case "requiredDuringSchedulingIgnoredDuringExecution":
if r.TryDecodeAsNil() {
x.RequiredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv1922 := &x.RequiredDuringSchedulingIgnoredDuringExecution
yym1923 := z.DecBinary()
_ = yym1923
if false {
} else {
h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1922), d)
}
}
case "preferredDuringSchedulingIgnoredDuringExecution":
if r.TryDecodeAsNil() {
x.PreferredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv1924 := &x.PreferredDuringSchedulingIgnoredDuringExecution
yym1925 := z.DecBinary()
_ = yym1925
if false {
} else {
h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1924), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1921)
} // end switch yys1921
} // end for yyj1921
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *PodAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1926 int
var yyb1926 bool
var yyhl1926 bool = l >= 0
yyj1926++
if yyhl1926 {
yyb1926 = yyj1926 > l
} else {
yyb1926 = r.CheckBreak()
}
if yyb1926 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RequiredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv1927 := &x.RequiredDuringSchedulingIgnoredDuringExecution
yym1928 := z.DecBinary()
_ = yym1928
if false {
} else {
h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1927), d)
}
}
yyj1926++
if yyhl1926 {
yyb1926 = yyj1926 > l
} else {
yyb1926 = r.CheckBreak()
}
if yyb1926 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PreferredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv1929 := &x.PreferredDuringSchedulingIgnoredDuringExecution
yym1930 := z.DecBinary()
_ = yym1930
if false {
} else {
h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1929), d)
}
}
for {
yyj1926++
if yyhl1926 {
yyb1926 = yyj1926 > l
} else {
yyb1926 = r.CheckBreak()
}
if yyb1926 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1926-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PodAntiAffinity) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1931 := z.EncBinary()
_ = yym1931
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1932 := !z.EncBinary()
yy2arr1932 := z.EncBasicHandle().StructToArray
var yyq1932 [2]bool
_, _, _ = yysep1932, yyq1932, yy2arr1932
const yyr1932 bool = false
yyq1932[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0
yyq1932[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0
var yynn1932 int
if yyr1932 || yy2arr1932 {
r.EncodeArrayStart(2)
} else {
yynn1932 = 0
for _, b := range yyq1932 {
if b {
yynn1932++
}
}
r.EncodeMapStart(yynn1932)
yynn1932 = 0
}
if yyr1932 || yy2arr1932 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1932[0] {
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1934 := z.EncBinary()
_ = yym1934
if false {
} else {
h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1932[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1935 := z.EncBinary()
_ = yym1935
if false {
} else {
h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e)
}
}
}
}
if yyr1932 || yy2arr1932 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1932[1] {
if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1937 := z.EncBinary()
_ = yym1937
if false {
} else {
h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1932[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1938 := z.EncBinary()
_ = yym1938
if false {
} else {
h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
}
}
}
}
if yyr1932 || yy2arr1932 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *PodAntiAffinity) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1939 := z.DecBinary()
_ = yym1939
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1940 := r.ContainerType()
if yyct1940 == codecSelferValueTypeMap1234 {
yyl1940 := r.ReadMapStart()
if yyl1940 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1940, d)
}
} else if yyct1940 == codecSelferValueTypeArray1234 {
yyl1940 := r.ReadArrayStart()
if yyl1940 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1940, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PodAntiAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1941Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1941Slc
var yyhl1941 bool = l >= 0
for yyj1941 := 0; ; yyj1941++ {
if yyhl1941 {
if yyj1941 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1941Slc = r.DecodeBytes(yys1941Slc, true, true)
yys1941 := string(yys1941Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1941 {
case "requiredDuringSchedulingIgnoredDuringExecution":
if r.TryDecodeAsNil() {
x.RequiredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv1942 := &x.RequiredDuringSchedulingIgnoredDuringExecution
yym1943 := z.DecBinary()
_ = yym1943
if false {
} else {
h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1942), d)
}
}
case "preferredDuringSchedulingIgnoredDuringExecution":
if r.TryDecodeAsNil() {
x.PreferredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv1944 := &x.PreferredDuringSchedulingIgnoredDuringExecution
yym1945 := z.DecBinary()
_ = yym1945
if false {
} else {
h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1944), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1941)
} // end switch yys1941
} // end for yyj1941
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *PodAntiAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1946 int
var yyb1946 bool
var yyhl1946 bool = l >= 0
yyj1946++
if yyhl1946 {
yyb1946 = yyj1946 > l
} else {
yyb1946 = r.CheckBreak()
}
if yyb1946 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RequiredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv1947 := &x.RequiredDuringSchedulingIgnoredDuringExecution
yym1948 := z.DecBinary()
_ = yym1948
if false {
} else {
h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1947), d)
}
}
yyj1946++
if yyhl1946 {
yyb1946 = yyj1946 > l
} else {
yyb1946 = r.CheckBreak()
}
if yyb1946 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PreferredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv1949 := &x.PreferredDuringSchedulingIgnoredDuringExecution
yym1950 := z.DecBinary()
_ = yym1950
if false {
} else {
h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1949), d)
}
}
for {
yyj1946++
if yyhl1946 {
yyb1946 = yyj1946 > l
} else {
yyb1946 = r.CheckBreak()
}
if yyb1946 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1946-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *WeightedPodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1951 := z.EncBinary()
_ = yym1951
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1952 := !z.EncBinary()
yy2arr1952 := z.EncBasicHandle().StructToArray
var yyq1952 [2]bool
_, _, _ = yysep1952, yyq1952, yy2arr1952
const yyr1952 bool = false
var yynn1952 int
if yyr1952 || yy2arr1952 {
r.EncodeArrayStart(2)
} else {
yynn1952 = 2
for _, b := range yyq1952 {
if b {
yynn1952++
}
}
r.EncodeMapStart(yynn1952)
yynn1952 = 0
}
if yyr1952 || yy2arr1952 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1954 := z.EncBinary()
_ = yym1954
if false {
} else {
r.EncodeInt(int64(x.Weight))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("weight"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1955 := z.EncBinary()
_ = yym1955
if false {
} else {
r.EncodeInt(int64(x.Weight))
}
}
if yyr1952 || yy2arr1952 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy1957 := &x.PodAffinityTerm
yy1957.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("podAffinityTerm"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1958 := &x.PodAffinityTerm
yy1958.CodecEncodeSelf(e)
}
if yyr1952 || yy2arr1952 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *WeightedPodAffinityTerm) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1959 := z.DecBinary()
_ = yym1959
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1960 := r.ContainerType()
if yyct1960 == codecSelferValueTypeMap1234 {
yyl1960 := r.ReadMapStart()
if yyl1960 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1960, d)
}
} else if yyct1960 == codecSelferValueTypeArray1234 {
yyl1960 := r.ReadArrayStart()
if yyl1960 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1960, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *WeightedPodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1961Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1961Slc
var yyhl1961 bool = l >= 0
for yyj1961 := 0; ; yyj1961++ {
if yyhl1961 {
if yyj1961 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1961Slc = r.DecodeBytes(yys1961Slc, true, true)
yys1961 := string(yys1961Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1961 {
case "weight":
if r.TryDecodeAsNil() {
x.Weight = 0
} else {
x.Weight = int(r.DecodeInt(codecSelferBitsize1234))
}
case "podAffinityTerm":
if r.TryDecodeAsNil() {
x.PodAffinityTerm = PodAffinityTerm{}
} else {
yyv1963 := &x.PodAffinityTerm
yyv1963.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1961)
} // end switch yys1961
} // end for yyj1961
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *WeightedPodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1964 int
var yyb1964 bool
var yyhl1964 bool = l >= 0
yyj1964++
if yyhl1964 {
yyb1964 = yyj1964 > l
} else {
yyb1964 = r.CheckBreak()
}
if yyb1964 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Weight = 0
} else {
x.Weight = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1964++
if yyhl1964 {
yyb1964 = yyj1964 > l
} else {
yyb1964 = r.CheckBreak()
}
if yyb1964 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PodAffinityTerm = PodAffinityTerm{}
} else {
yyv1966 := &x.PodAffinityTerm
yyv1966.CodecDecodeSelf(d)
}
for {
yyj1964++
if yyhl1964 {
yyb1964 = yyj1964 > l
} else {
yyb1964 = r.CheckBreak()
}
if yyb1964 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1964-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1967 := z.EncBinary()
_ = yym1967
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1968 := !z.EncBinary()
yy2arr1968 := z.EncBasicHandle().StructToArray
var yyq1968 [3]bool
_, _, _ = yysep1968, yyq1968, yy2arr1968
const yyr1968 bool = false
yyq1968[0] = x.LabelSelector != nil
yyq1968[2] = x.TopologyKey != ""
var yynn1968 int
if yyr1968 || yy2arr1968 {
r.EncodeArrayStart(3)
} else {
yynn1968 = 1
for _, b := range yyq1968 {
if b {
yynn1968++
}
}
r.EncodeMapStart(yynn1968)
yynn1968 = 0
}
if yyr1968 || yy2arr1968 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1968[0] {
if x.LabelSelector == nil {
r.EncodeNil()
} else {
yym1970 := z.EncBinary()
_ = yym1970
if false {
} else if z.HasExtensions() && z.EncExt(x.LabelSelector) {
} else {
z.EncFallback(x.LabelSelector)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1968[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("labelSelector"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.LabelSelector == nil {
r.EncodeNil()
} else {
yym1971 := z.EncBinary()
_ = yym1971
if false {
} else if z.HasExtensions() && z.EncExt(x.LabelSelector) {
} else {
z.EncFallback(x.LabelSelector)
}
}
}
}
if yyr1968 || yy2arr1968 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Namespaces == nil {
r.EncodeNil()
} else {
yym1973 := z.EncBinary()
_ = yym1973
if false {
} else {
z.F.EncSliceStringV(x.Namespaces, false, e)
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("namespaces"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Namespaces == nil {
r.EncodeNil()
} else {
yym1974 := z.EncBinary()
_ = yym1974
if false {
} else {
z.F.EncSliceStringV(x.Namespaces, false, e)
}
}
}
if yyr1968 || yy2arr1968 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1968[2] {
yym1976 := z.EncBinary()
_ = yym1976
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1968[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("topologyKey"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1977 := z.EncBinary()
_ = yym1977
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey))
}
}
}
if yyr1968 || yy2arr1968 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *PodAffinityTerm) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1978 := z.DecBinary()
_ = yym1978
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1979 := r.ContainerType()
if yyct1979 == codecSelferValueTypeMap1234 {
yyl1979 := r.ReadMapStart()
if yyl1979 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1979, d)
}
} else if yyct1979 == codecSelferValueTypeArray1234 {
yyl1979 := r.ReadArrayStart()
if yyl1979 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1979, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1980Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1980Slc
var yyhl1980 bool = l >= 0
for yyj1980 := 0; ; yyj1980++ {
if yyhl1980 {
if yyj1980 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1980Slc = r.DecodeBytes(yys1980Slc, true, true)
yys1980 := string(yys1980Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1980 {
case "labelSelector":
if r.TryDecodeAsNil() {
if x.LabelSelector != nil {
x.LabelSelector = nil
}
} else {
if x.LabelSelector == nil {
x.LabelSelector = new(pkg2_unversioned.LabelSelector)
}
yym1982 := z.DecBinary()
_ = yym1982
if false {
} else if z.HasExtensions() && z.DecExt(x.LabelSelector) {
} else {
z.DecFallback(x.LabelSelector, false)
}
}
case "namespaces":
if r.TryDecodeAsNil() {
x.Namespaces = nil
} else {
yyv1983 := &x.Namespaces
yym1984 := z.DecBinary()
_ = yym1984
if false {
} else {
z.F.DecSliceStringX(yyv1983, false, d)
}
}
case "topologyKey":
if r.TryDecodeAsNil() {
x.TopologyKey = ""
} else {
x.TopologyKey = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1980)
} // end switch yys1980
} // end for yyj1980
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *PodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1986 int
var yyb1986 bool
var yyhl1986 bool = l >= 0
yyj1986++
if yyhl1986 {
yyb1986 = yyj1986 > l
} else {
yyb1986 = r.CheckBreak()
}
if yyb1986 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.LabelSelector != nil {
x.LabelSelector = nil
}
} else {
if x.LabelSelector == nil {
x.LabelSelector = new(pkg2_unversioned.LabelSelector)
}
yym1988 := z.DecBinary()
_ = yym1988
if false {
} else if z.HasExtensions() && z.DecExt(x.LabelSelector) {
} else {
z.DecFallback(x.LabelSelector, false)
}
}
yyj1986++
if yyhl1986 {
yyb1986 = yyj1986 > l
} else {
yyb1986 = r.CheckBreak()
}
if yyb1986 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Namespaces = nil
} else {
yyv1989 := &x.Namespaces
yym1990 := z.DecBinary()
_ = yym1990
if false {
} else {
z.F.DecSliceStringX(yyv1989, false, d)
}
}
yyj1986++
if yyhl1986 {
yyb1986 = yyj1986 > l
} else {
yyb1986 = r.CheckBreak()
}
if yyb1986 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TopologyKey = ""
} else {
x.TopologyKey = string(r.DecodeString())
}
for {
yyj1986++
if yyhl1986 {
yyb1986 = yyj1986 > l
} else {
yyb1986 = r.CheckBreak()
}
if yyb1986 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1986-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1992 := z.EncBinary()
_ = yym1992
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1993 := !z.EncBinary()
yy2arr1993 := z.EncBasicHandle().StructToArray
var yyq1993 [2]bool
_, _, _ = yysep1993, yyq1993, yy2arr1993
const yyr1993 bool = false
yyq1993[0] = x.RequiredDuringSchedulingIgnoredDuringExecution != nil
yyq1993[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0
var yynn1993 int
if yyr1993 || yy2arr1993 {
r.EncodeArrayStart(2)
} else {
yynn1993 = 0
for _, b := range yyq1993 {
if b {
yynn1993++
}
}
r.EncodeMapStart(yynn1993)
yynn1993 = 0
}
if yyr1993 || yy2arr1993 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1993[0] {
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
x.RequiredDuringSchedulingIgnoredDuringExecution.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1993[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
x.RequiredDuringSchedulingIgnoredDuringExecution.CodecEncodeSelf(e)
}
}
}
if yyr1993 || yy2arr1993 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1993[1] {
if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1996 := z.EncBinary()
_ = yym1996
if false {
} else {
h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1993[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1997 := z.EncBinary()
_ = yym1997
if false {
} else {
h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
}
}
}
}
if yyr1993 || yy2arr1993 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *NodeAffinity) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1998 := z.DecBinary()
_ = yym1998
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1999 := r.ContainerType()
if yyct1999 == codecSelferValueTypeMap1234 {
yyl1999 := r.ReadMapStart()
if yyl1999 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1999, d)
}
} else if yyct1999 == codecSelferValueTypeArray1234 {
yyl1999 := r.ReadArrayStart()
if yyl1999 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1999, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NodeAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys2000Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2000Slc
var yyhl2000 bool = l >= 0
for yyj2000 := 0; ; yyj2000++ {
if yyhl2000 {
if yyj2000 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2000Slc = r.DecodeBytes(yys2000Slc, true, true)
yys2000 := string(yys2000Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2000 {
case "requiredDuringSchedulingIgnoredDuringExecution":
if r.TryDecodeAsNil() {
if x.RequiredDuringSchedulingIgnoredDuringExecution != nil {
x.RequiredDuringSchedulingIgnoredDuringExecution = nil
}
} else {
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
x.RequiredDuringSchedulingIgnoredDuringExecution = new(NodeSelector)
}
x.RequiredDuringSchedulingIgnoredDuringExecution.CodecDecodeSelf(d)
}
case "preferredDuringSchedulingIgnoredDuringExecution":
if r.TryDecodeAsNil() {
x.PreferredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv2002 := &x.PreferredDuringSchedulingIgnoredDuringExecution
yym2003 := z.DecBinary()
_ = yym2003
if false {
} else {
h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv2002), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2000)
} // end switch yys2000
} // end for yyj2000
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *NodeAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj2004 int
var yyb2004 bool
var yyhl2004 bool = l >= 0
yyj2004++
if yyhl2004 {
yyb2004 = yyj2004 > l
} else {
yyb2004 = r.CheckBreak()
}
if yyb2004 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.RequiredDuringSchedulingIgnoredDuringExecution != nil {
x.RequiredDuringSchedulingIgnoredDuringExecution = nil
}
} else {
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
x.RequiredDuringSchedulingIgnoredDuringExecution = new(NodeSelector)
}
x.RequiredDuringSchedulingIgnoredDuringExecution.CodecDecodeSelf(d)
}
yyj2004++
if yyhl2004 {
yyb2004 = yyj2004 > l
} else {
yyb2004 = r.CheckBreak()
}
if yyb2004 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PreferredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv2006 := &x.PreferredDuringSchedulingIgnoredDuringExecution
yym2007 := z.DecBinary()
_ = yym2007
if false {
} else {
h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv2006), d)
}
}
for {
yyj2004++
if yyhl2004 {
yyb2004 = yyj2004 > l
} else {
yyb2004 = r.CheckBreak()
}
if yyb2004 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2004-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PreferredSchedulingTerm) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2008 := z.EncBinary()
_ = yym2008
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2009 := !z.EncBinary()
yy2arr2009 := z.EncBasicHandle().StructToArray
var yyq2009 [2]bool
_, _, _ = yysep2009, yyq2009, yy2arr2009
const yyr2009 bool = false
var yynn2009 int
if yyr2009 || yy2arr2009 {
r.EncodeArrayStart(2)
} else {
yynn2009 = 2
for _, b := range yyq2009 {
if b {
yynn2009++
}
}
r.EncodeMapStart(yynn2009)
yynn2009 = 0
}
if yyr2009 || yy2arr2009 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2011 := z.EncBinary()
_ = yym2011
if false {
} else {
r.EncodeInt(int64(x.Weight))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("weight"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2012 := z.EncBinary()
_ = yym2012
if false {
} else {
r.EncodeInt(int64(x.Weight))
}
}
if yyr2009 || yy2arr2009 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy2014 := &x.Preference
yy2014.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("preference"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2015 := &x.Preference
yy2015.CodecEncodeSelf(e)
}
if yyr2009 || yy2arr2009 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *PreferredSchedulingTerm) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym2016 := z.DecBinary()
_ = yym2016
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2017 := r.ContainerType()
if yyct2017 == codecSelferValueTypeMap1234 {
yyl2017 := r.ReadMapStart()
if yyl2017 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2017, d)
}
} else if yyct2017 == codecSelferValueTypeArray1234 {
yyl2017 := r.ReadArrayStart()
if yyl2017 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2017, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PreferredSchedulingTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys2018Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2018Slc
var yyhl2018 bool = l >= 0
for yyj2018 := 0; ; yyj2018++ {
if yyhl2018 {
if yyj2018 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2018Slc = r.DecodeBytes(yys2018Slc, true, true)
yys2018 := string(yys2018Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2018 {
case "weight":
if r.TryDecodeAsNil() {
x.Weight = 0
} else {
x.Weight = int32(r.DecodeInt(32))
}
case "preference":
if r.TryDecodeAsNil() {
x.Preference = NodeSelectorTerm{}
} else {
yyv2020 := &x.Preference
yyv2020.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2018)
} // end switch yys2018
} // end for yyj2018
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *PreferredSchedulingTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj2021 int
var yyb2021 bool
var yyhl2021 bool = l >= 0
yyj2021++
if yyhl2021 {
yyb2021 = yyj2021 > l
} else {
yyb2021 = r.CheckBreak()
}
if yyb2021 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Weight = 0
} else {
x.Weight = int32(r.DecodeInt(32))
}
yyj2021++
if yyhl2021 {
yyb2021 = yyj2021 > l
} else {
yyb2021 = r.CheckBreak()
}
if yyb2021 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Preference = NodeSelectorTerm{}
} else {
yyv2023 := &x.Preference
yyv2023.CodecDecodeSelf(d)
}
for {
yyj2021++
if yyhl2021 {
yyb2021 = yyj2021 > l
} else {
yyb2021 = r.CheckBreak()
}
if yyb2021 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2021-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *Taint) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2024 := z.EncBinary()
_ = yym2024
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2025 := !z.EncBinary()
yy2arr2025 := z.EncBasicHandle().StructToArray
var yyq2025 [3]bool
_, _, _ = yysep2025, yyq2025, yy2arr2025
const yyr2025 bool = false
yyq2025[1] = x.Value != ""
var yynn2025 int
if yyr2025 || yy2arr2025 {
r.EncodeArrayStart(3)
} else {
yynn2025 = 2
for _, b := range yyq2025 {
if b {
yynn2025++
}
}
r.EncodeMapStart(yynn2025)
yynn2025 = 0
}
if yyr2025 || yy2arr2025 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2027 := z.EncBinary()
_ = yym2027
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("key"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2028 := z.EncBinary()
_ = yym2028
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
}
if yyr2025 || yy2arr2025 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2025[1] {
yym2030 := z.EncBinary()
_ = yym2030
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2025[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("value"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2031 := z.EncBinary()
_ = yym2031
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
}
}
if yyr2025 || yy2arr2025 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
x.Effect.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("effect"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Effect.CodecEncodeSelf(e)
}
if yyr2025 || yy2arr2025 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *Taint) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym2033 := z.DecBinary()
_ = yym2033
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2034 := r.ContainerType()
if yyct2034 == codecSelferValueTypeMap1234 {
yyl2034 := r.ReadMapStart()
if yyl2034 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2034, d)
}
} else if yyct2034 == codecSelferValueTypeArray1234 {
yyl2034 := r.ReadArrayStart()
if yyl2034 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2034, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *Taint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys2035Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2035Slc
var yyhl2035 bool = l >= 0
for yyj2035 := 0; ; yyj2035++ {
if yyhl2035 {
if yyj2035 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2035Slc = r.DecodeBytes(yys2035Slc, true, true)
yys2035 := string(yys2035Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2035 {
case "key":
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
case "value":
if r.TryDecodeAsNil() {
x.Value = ""
} else {
x.Value = string(r.DecodeString())
}
case "effect":
if r.TryDecodeAsNil() {
x.Effect = ""
} else {
x.Effect = TaintEffect(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys2035)
} // end switch yys2035
} // end for yyj2035
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *Taint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj2039 int
var yyb2039 bool
var yyhl2039 bool = l >= 0
yyj2039++
if yyhl2039 {
yyb2039 = yyj2039 > l
} else {
yyb2039 = r.CheckBreak()
}
if yyb2039 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
yyj2039++
if yyhl2039 {
yyb2039 = yyj2039 > l
} else {
yyb2039 = r.CheckBreak()
}
if yyb2039 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Value = ""
} else {
x.Value = string(r.DecodeString())
}
yyj2039++
if yyhl2039 {
yyb2039 = yyj2039 > l
} else {
yyb2039 = r.CheckBreak()
}
if yyb2039 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Effect = ""
} else {
x.Effect = TaintEffect(r.DecodeString())
}
for {
yyj2039++
if yyhl2039 {
yyb2039 = yyj2039 > l
} else {
yyb2039 = r.CheckBreak()
}
if yyb2039 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2039-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x TaintEffect) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym2043 := z.EncBinary()
_ = yym2043
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *TaintEffect) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym2044 := z.DecBinary()
_ = yym2044
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *Toleration) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2045 := z.EncBinary()
_ = yym2045
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2046 := !z.EncBinary()
yy2arr2046 := z.EncBasicHandle().StructToArray
var yyq2046 [4]bool
_, _, _ = yysep2046, yyq2046, yy2arr2046
const yyr2046 bool = false
yyq2046[0] = x.Key != ""
yyq2046[1] = x.Operator != ""
yyq2046[2] = x.Value != ""
yyq2046[3] = x.Effect != ""
var yynn2046 int
if yyr2046 || yy2arr2046 {
r.EncodeArrayStart(4)
} else {
yynn2046 = 0
for _, b := range yyq2046 {
if b {
yynn2046++
}
}
r.EncodeMapStart(yynn2046)
yynn2046 = 0
}
if yyr2046 || yy2arr2046 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2046[0] {
yym2048 := z.EncBinary()
_ = yym2048
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2046[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("key"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2049 := z.EncBinary()
_ = yym2049
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
}
}
if yyr2046 || yy2arr2046 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2046[1] {
x.Operator.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2046[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("operator"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Operator.CodecEncodeSelf(e)
}
}
if yyr2046 || yy2arr2046 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2046[2] {
yym2052 := z.EncBinary()
_ = yym2052
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2046[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("value"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2053 := z.EncBinary()
_ = yym2053
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
}
}
if yyr2046 || yy2arr2046 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2046[3] {
x.Effect.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2046[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("effect"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Effect.CodecEncodeSelf(e)
}
}
if yyr2046 || yy2arr2046 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *Toleration) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym2055 := z.DecBinary()
_ = yym2055
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2056 := r.ContainerType()
if yyct2056 == codecSelferValueTypeMap1234 {
yyl2056 := r.ReadMapStart()
if yyl2056 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2056, d)
}
} else if yyct2056 == codecSelferValueTypeArray1234 {
yyl2056 := r.ReadArrayStart()
if yyl2056 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2056, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *Toleration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys2057Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2057Slc
var yyhl2057 bool = l >= 0
for yyj2057 := 0; ; yyj2057++ {
if yyhl2057 {
if yyj2057 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2057Slc = r.DecodeBytes(yys2057Slc, true, true)
yys2057 := string(yys2057Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2057 {
case "key":
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
case "operator":
if r.TryDecodeAsNil() {
x.Operator = ""
} else {
x.Operator = TolerationOperator(r.DecodeString())
}
case "value":
if r.TryDecodeAsNil() {
x.Value = ""
} else {
x.Value = string(r.DecodeString())
}
case "effect":
if r.TryDecodeAsNil() {
x.Effect = ""
} else {
x.Effect = TaintEffect(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys2057)
} // end switch yys2057
} // end for yyj2057
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *Toleration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj2062 int
var yyb2062 bool
var yyhl2062 bool = l >= 0
yyj2062++
if yyhl2062 {
yyb2062 = yyj2062 > l
} else {
yyb2062 = r.CheckBreak()
}
if yyb2062 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
yyj2062++
if yyhl2062 {
yyb2062 = yyj2062 > l
} else {
yyb2062 = r.CheckBreak()
}
if yyb2062 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Operator = ""
} else {
x.Operator = TolerationOperator(r.DecodeString())
}
yyj2062++
if yyhl2062 {
yyb2062 = yyj2062 > l
} else {
yyb2062 = r.CheckBreak()
}
if yyb2062 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Value = ""
} else {
x.Value = string(r.DecodeString())
}
yyj2062++
if yyhl2062 {
yyb2062 = yyj2062 > l
} else {
yyb2062 = r.CheckBreak()
}
if yyb2062 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Effect = ""
} else {
x.Effect = TaintEffect(r.DecodeString())
}
for {
yyj2062++
if yyhl2062 {
yyb2062 = yyj2062 > l
} else {
yyb2062 = r.CheckBreak()
}
if yyb2062 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2062-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x TolerationOperator) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym2067 := z.EncBinary()
_ = yym2067
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *TolerationOperator) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym2068 := z.DecBinary()
_ = yym2068
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 {
yym2069 := z.EncBinary()
_ = yym2069
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2070 := !z.EncBinary()
yy2arr2070 := z.EncBasicHandle().StructToArray
var yyq2070 [13]bool
_, _, _ = yysep2070, yyq2070, yy2arr2070
const yyr2070 bool = false
yyq2070[2] = x.RestartPolicy != ""
yyq2070[3] = x.TerminationGracePeriodSeconds != nil
yyq2070[4] = x.ActiveDeadlineSeconds != nil
yyq2070[5] = x.DNSPolicy != ""
yyq2070[6] = len(x.NodeSelector) != 0
yyq2070[8] = x.NodeName != ""
yyq2070[9] = x.SecurityContext != nil
yyq2070[10] = len(x.ImagePullSecrets) != 0
yyq2070[11] = x.Hostname != ""
yyq2070[12] = x.Subdomain != ""
var yynn2070 int
if yyr2070 || yy2arr2070 {
r.EncodeArrayStart(13)
} else {
yynn2070 = 3
for _, b := range yyq2070 {
if b {
yynn2070++
}
}
r.EncodeMapStart(yynn2070)
yynn2070 = 0
}
if yyr2070 || yy2arr2070 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Volumes == nil {
r.EncodeNil()
} else {
yym2072 := z.EncBinary()
_ = yym2072
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 {
yym2073 := z.EncBinary()
_ = yym2073
if false {
} else {
h.encSliceVolume(([]Volume)(x.Volumes), e)
}
}
}
if yyr2070 || yy2arr2070 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Containers == nil {
r.EncodeNil()
} else {
yym2075 := z.EncBinary()
_ = yym2075
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 {
yym2076 := z.EncBinary()
_ = yym2076
if false {
} else {
h.encSliceContainer(([]Container)(x.Containers), e)
}
}
}
if yyr2070 || yy2arr2070 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2070[2] {
x.RestartPolicy.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2070[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("restartPolicy"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.RestartPolicy.CodecEncodeSelf(e)
}
}
if yyr2070 || yy2arr2070 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2070[3] {
if x.TerminationGracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy2079 := *x.TerminationGracePeriodSeconds
yym2080 := z.EncBinary()
_ = yym2080
if false {
} else {
r.EncodeInt(int64(yy2079))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2070[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("terminationGracePeriodSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.TerminationGracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy2081 := *x.TerminationGracePeriodSeconds
yym2082 := z.EncBinary()
_ = yym2082
if false {
} else {
r.EncodeInt(int64(yy2081))
}
}
}
}
if yyr2070 || yy2arr2070 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2070[4] {
if x.ActiveDeadlineSeconds == nil {
r.EncodeNil()
} else {
yy2084 := *x.ActiveDeadlineSeconds
yym2085 := z.EncBinary()
_ = yym2085
if false {
} else {
r.EncodeInt(int64(yy2084))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2070[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ActiveDeadlineSeconds == nil {
r.EncodeNil()
} else {
yy2086 := *x.ActiveDeadlineSeconds
yym2087 := z.EncBinary()
_ = yym2087
if false {
} else {
r.EncodeInt(int64(yy2086))
}
}
}
}
if yyr2070 || yy2arr2070 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2070[5] {
x.DNSPolicy.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2070[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("dnsPolicy"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.DNSPolicy.CodecEncodeSelf(e)
}
}
if yyr2070 || yy2arr2070 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2070[6] {
if x.NodeSelector == nil {
r.EncodeNil()
} else {
yym2090 := z.EncBinary()
_ = yym2090
if false {
} else {
z.F.EncMapStringStringV(x.NodeSelector, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2070[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeSelector"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.NodeSelector == nil {
r.EncodeNil()
} else {
yym2091 := z.EncBinary()
_ = yym2091
if false {
} else {
z.F.EncMapStringStringV(x.NodeSelector, false, e)
}
}
}
}
if yyr2070 || yy2arr2070 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2093 := z.EncBinary()
_ = yym2093
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)
yym2094 := z.EncBinary()
_ = yym2094
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName))
}
}
if yyr2070 || yy2arr2070 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2070[8] {
yym2096 := z.EncBinary()
_ = yym2096
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.NodeName))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2070[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2097 := z.EncBinary()
_ = yym2097
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.NodeName))
}
}
}
if yyr2070 || yy2arr2070 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2070[9] {
if x.SecurityContext == nil {
r.EncodeNil()
} else {
x.SecurityContext.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq2070[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 yyr2070 || yy2arr2070 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2070[10] {
if x.ImagePullSecrets == nil {
r.EncodeNil()
} else {
yym2100 := z.EncBinary()
_ = yym2100
if false {
} else {
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2070[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ImagePullSecrets == nil {
r.EncodeNil()
} else {
yym2101 := z.EncBinary()
_ = yym2101
if false {
} else {
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
}
}
}
}
if yyr2070 || yy2arr2070 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2070[11] {
yym2103 := z.EncBinary()
_ = yym2103
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2070[11] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostname"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2104 := z.EncBinary()
_ = yym2104
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
}
}
}
if yyr2070 || yy2arr2070 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2070[12] {
yym2106 := z.EncBinary()
_ = yym2106
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2070[12] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("subdomain"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2107 := z.EncBinary()
_ = yym2107
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain))
}
}
}
if yyr2070 || yy2arr2070 {
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
yym2108 := z.DecBinary()
_ = yym2108
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2109 := r.ContainerType()
if yyct2109 == codecSelferValueTypeMap1234 {
yyl2109 := r.ReadMapStart()
if yyl2109 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2109, d)
}
} else if yyct2109 == codecSelferValueTypeArray1234 {
yyl2109 := r.ReadArrayStart()
if yyl2109 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2109, 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 yys2110Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2110Slc
var yyhl2110 bool = l >= 0
for yyj2110 := 0; ; yyj2110++ {
if yyhl2110 {
if yyj2110 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2110Slc = r.DecodeBytes(yys2110Slc, true, true)
yys2110 := string(yys2110Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2110 {
case "volumes":
if r.TryDecodeAsNil() {
x.Volumes = nil
} else {
yyv2111 := &x.Volumes
yym2112 := z.DecBinary()
_ = yym2112
if false {
} else {
h.decSliceVolume((*[]Volume)(yyv2111), d)
}
}
case "containers":
if r.TryDecodeAsNil() {
x.Containers = nil
} else {
yyv2113 := &x.Containers
yym2114 := z.DecBinary()
_ = yym2114
if false {
} else {
h.decSliceContainer((*[]Container)(yyv2113), 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)
}
yym2117 := z.DecBinary()
_ = yym2117
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)
}
yym2119 := z.DecBinary()
_ = yym2119
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 {
yyv2121 := &x.NodeSelector
yym2122 := z.DecBinary()
_ = yym2122
if false {
} else {
z.F.DecMapStringStringX(yyv2121, 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 {
yyv2126 := &x.ImagePullSecrets
yym2127 := z.DecBinary()
_ = yym2127
if false {
} else {
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2126), d)
}
}
case "hostname":
if r.TryDecodeAsNil() {
x.Hostname = ""
} else {
x.Hostname = string(r.DecodeString())
}
case "subdomain":
if r.TryDecodeAsNil() {
x.Subdomain = ""
} else {
x.Subdomain = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys2110)
} // end switch yys2110
} // end for yyj2110
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 yyj2130 int
var yyb2130 bool
var yyhl2130 bool = l >= 0
yyj2130++
if yyhl2130 {
yyb2130 = yyj2130 > l
} else {
yyb2130 = r.CheckBreak()
}
if yyb2130 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Volumes = nil
} else {
yyv2131 := &x.Volumes
yym2132 := z.DecBinary()
_ = yym2132
if false {
} else {
h.decSliceVolume((*[]Volume)(yyv2131), d)
}
}
yyj2130++
if yyhl2130 {
yyb2130 = yyj2130 > l
} else {
yyb2130 = r.CheckBreak()
}
if yyb2130 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Containers = nil
} else {
yyv2133 := &x.Containers
yym2134 := z.DecBinary()
_ = yym2134
if false {
} else {
h.decSliceContainer((*[]Container)(yyv2133), d)
}
}
yyj2130++
if yyhl2130 {
yyb2130 = yyj2130 > l
} else {
yyb2130 = r.CheckBreak()
}
if yyb2130 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RestartPolicy = ""
} else {
x.RestartPolicy = RestartPolicy(r.DecodeString())
}
yyj2130++
if yyhl2130 {
yyb2130 = yyj2130 > l
} else {
yyb2130 = r.CheckBreak()
}
if yyb2130 {
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)
}
yym2137 := z.DecBinary()
_ = yym2137
if false {
} else {
*((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64))
}
}
yyj2130++
if yyhl2130 {
yyb2130 = yyj2130 > l
} else {
yyb2130 = r.CheckBreak()
}
if yyb2130 {
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)
}
yym2139 := z.DecBinary()
_ = yym2139
if false {
} else {
*((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64))
}
}
yyj2130++
if yyhl2130 {
yyb2130 = yyj2130 > l
} else {
yyb2130 = r.CheckBreak()
}
if yyb2130 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DNSPolicy = ""
} else {
x.DNSPolicy = DNSPolicy(r.DecodeString())
}
yyj2130++
if yyhl2130 {
yyb2130 = yyj2130 > l
} else {
yyb2130 = r.CheckBreak()
}
if yyb2130 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodeSelector = nil
} else {
yyv2141 := &x.NodeSelector
yym2142 := z.DecBinary()
_ = yym2142
if false {
} else {
z.F.DecMapStringStringX(yyv2141, false, d)
}
}
yyj2130++
if yyhl2130 {
yyb2130 = yyj2130 > l
} else {
yyb2130 = r.CheckBreak()
}
if yyb2130 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ServiceAccountName = ""
} else {
x.ServiceAccountName = string(r.DecodeString())
}
yyj2130++
if yyhl2130 {
yyb2130 = yyj2130 > l
} else {
yyb2130 = r.CheckBreak()
}
if yyb2130 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodeName = ""
} else {
x.NodeName = string(r.DecodeString())
}
yyj2130++
if yyhl2130 {
yyb2130 = yyj2130 > l
} else {
yyb2130 = r.CheckBreak()
}
if yyb2130 {
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)
}
yyj2130++
if yyhl2130 {
yyb2130 = yyj2130 > l
} else {
yyb2130 = r.CheckBreak()
}
if yyb2130 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ImagePullSecrets = nil
} else {
yyv2146 := &x.ImagePullSecrets
yym2147 := z.DecBinary()
_ = yym2147
if false {
} else {
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2146), d)
}
}
yyj2130++
if yyhl2130 {
yyb2130 = yyj2130 > l
} else {
yyb2130 = r.CheckBreak()
}
if yyb2130 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Hostname = ""
} else {
x.Hostname = string(r.DecodeString())
}
yyj2130++
if yyhl2130 {
yyb2130 = yyj2130 > l
} else {
yyb2130 = r.CheckBreak()
}
if yyb2130 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Subdomain = ""
} else {
x.Subdomain = string(r.DecodeString())
}
for {
yyj2130++
if yyhl2130 {
yyb2130 = yyj2130 > l
} else {
yyb2130 = r.CheckBreak()
}
if yyb2130 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2130-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 {
yym2150 := z.EncBinary()
_ = yym2150
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2151 := !z.EncBinary()
yy2arr2151 := z.EncBasicHandle().StructToArray
var yyq2151 [8]bool
_, _, _ = yysep2151, yyq2151, yy2arr2151
const yyr2151 bool = false
yyq2151[0] = x.HostNetwork != false
yyq2151[1] = x.HostPID != false
yyq2151[2] = x.HostIPC != false
yyq2151[3] = x.SELinuxOptions != nil
yyq2151[4] = x.RunAsUser != nil
yyq2151[5] = x.RunAsNonRoot != nil
yyq2151[6] = len(x.SupplementalGroups) != 0
yyq2151[7] = x.FSGroup != nil
var yynn2151 int
if yyr2151 || yy2arr2151 {
r.EncodeArrayStart(8)
} else {
yynn2151 = 0
for _, b := range yyq2151 {
if b {
yynn2151++
}
}
r.EncodeMapStart(yynn2151)
yynn2151 = 0
}
if yyr2151 || yy2arr2151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2151[0] {
yym2153 := z.EncBinary()
_ = yym2153
if false {
} else {
r.EncodeBool(bool(x.HostNetwork))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq2151[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostNetwork"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2154 := z.EncBinary()
_ = yym2154
if false {
} else {
r.EncodeBool(bool(x.HostNetwork))
}
}
}
if yyr2151 || yy2arr2151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2151[1] {
yym2156 := z.EncBinary()
_ = yym2156
if false {
} else {
r.EncodeBool(bool(x.HostPID))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq2151[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostPID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2157 := z.EncBinary()
_ = yym2157
if false {
} else {
r.EncodeBool(bool(x.HostPID))
}
}
}
if yyr2151 || yy2arr2151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2151[2] {
yym2159 := z.EncBinary()
_ = yym2159
if false {
} else {
r.EncodeBool(bool(x.HostIPC))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq2151[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostIPC"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2160 := z.EncBinary()
_ = yym2160
if false {
} else {
r.EncodeBool(bool(x.HostIPC))
}
}
}
if yyr2151 || yy2arr2151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2151[3] {
if x.SELinuxOptions == nil {
r.EncodeNil()
} else {
x.SELinuxOptions.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq2151[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 yyr2151 || yy2arr2151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2151[4] {
if x.RunAsUser == nil {
r.EncodeNil()
} else {
yy2163 := *x.RunAsUser
yym2164 := z.EncBinary()
_ = yym2164
if false {
} else {
r.EncodeInt(int64(yy2163))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2151[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("runAsUser"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RunAsUser == nil {
r.EncodeNil()
} else {
yy2165 := *x.RunAsUser
yym2166 := z.EncBinary()
_ = yym2166
if false {
} else {
r.EncodeInt(int64(yy2165))
}
}
}
}
if yyr2151 || yy2arr2151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2151[5] {
if x.RunAsNonRoot == nil {
r.EncodeNil()
} else {
yy2168 := *x.RunAsNonRoot
yym2169 := z.EncBinary()
_ = yym2169
if false {
} else {
r.EncodeBool(bool(yy2168))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2151[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RunAsNonRoot == nil {
r.EncodeNil()
} else {
yy2170 := *x.RunAsNonRoot
yym2171 := z.EncBinary()
_ = yym2171
if false {
} else {
r.EncodeBool(bool(yy2170))
}
}
}
}
if yyr2151 || yy2arr2151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2151[6] {
if x.SupplementalGroups == nil {
r.EncodeNil()
} else {
yym2173 := z.EncBinary()
_ = yym2173
if false {
} else {
z.F.EncSliceInt64V(x.SupplementalGroups, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2151[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.SupplementalGroups == nil {
r.EncodeNil()
} else {
yym2174 := z.EncBinary()
_ = yym2174
if false {
} else {
z.F.EncSliceInt64V(x.SupplementalGroups, false, e)
}
}
}
}
if yyr2151 || yy2arr2151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2151[7] {
if x.FSGroup == nil {
r.EncodeNil()
} else {
yy2176 := *x.FSGroup
yym2177 := z.EncBinary()
_ = yym2177
if false {
} else {
r.EncodeInt(int64(yy2176))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2151[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsGroup"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.FSGroup == nil {
r.EncodeNil()
} else {
yy2178 := *x.FSGroup
yym2179 := z.EncBinary()
_ = yym2179
if false {
} else {
r.EncodeInt(int64(yy2178))
}
}
}
}
if yyr2151 || yy2arr2151 {
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
yym2180 := z.DecBinary()
_ = yym2180
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2181 := r.ContainerType()
if yyct2181 == codecSelferValueTypeMap1234 {
yyl2181 := r.ReadMapStart()
if yyl2181 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2181, d)
}
} else if yyct2181 == codecSelferValueTypeArray1234 {
yyl2181 := r.ReadArrayStart()
if yyl2181 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2181, 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 yys2182Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2182Slc
var yyhl2182 bool = l >= 0
for yyj2182 := 0; ; yyj2182++ {
if yyhl2182 {
if yyj2182 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2182Slc = r.DecodeBytes(yys2182Slc, true, true)
yys2182 := string(yys2182Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2182 {
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)
}
yym2188 := z.DecBinary()
_ = yym2188
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)
}
yym2190 := z.DecBinary()
_ = yym2190
if false {
} else {
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
}
}
case "supplementalGroups":
if r.TryDecodeAsNil() {
x.SupplementalGroups = nil
} else {
yyv2191 := &x.SupplementalGroups
yym2192 := z.DecBinary()
_ = yym2192
if false {
} else {
z.F.DecSliceInt64X(yyv2191, false, d)
}
}
case "fsGroup":
if r.TryDecodeAsNil() {
if x.FSGroup != nil {
x.FSGroup = nil
}
} else {
if x.FSGroup == nil {
x.FSGroup = new(int64)
}
yym2194 := z.DecBinary()
_ = yym2194
if false {
} else {
*((*int64)(x.FSGroup)) = int64(r.DecodeInt(64))
}
}
default:
z.DecStructFieldNotFound(-1, yys2182)
} // end switch yys2182
} // end for yyj2182
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 yyj2195 int
var yyb2195 bool
var yyhl2195 bool = l >= 0
yyj2195++
if yyhl2195 {
yyb2195 = yyj2195 > l
} else {
yyb2195 = r.CheckBreak()
}
if yyb2195 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostNetwork = false
} else {
x.HostNetwork = bool(r.DecodeBool())
}
yyj2195++
if yyhl2195 {
yyb2195 = yyj2195 > l
} else {
yyb2195 = r.CheckBreak()
}
if yyb2195 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostPID = false
} else {
x.HostPID = bool(r.DecodeBool())
}
yyj2195++
if yyhl2195 {
yyb2195 = yyj2195 > l
} else {
yyb2195 = r.CheckBreak()
}
if yyb2195 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostIPC = false
} else {
x.HostIPC = bool(r.DecodeBool())
}
yyj2195++
if yyhl2195 {
yyb2195 = yyj2195 > l
} else {
yyb2195 = r.CheckBreak()
}
if yyb2195 {
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)
}
yyj2195++
if yyhl2195 {
yyb2195 = yyj2195 > l
} else {
yyb2195 = r.CheckBreak()
}
if yyb2195 {
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)
}
yym2201 := z.DecBinary()
_ = yym2201
if false {
} else {
*((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64))
}
}
yyj2195++
if yyhl2195 {
yyb2195 = yyj2195 > l
} else {
yyb2195 = r.CheckBreak()
}
if yyb2195 {
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)
}
yym2203 := z.DecBinary()
_ = yym2203
if false {
} else {
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
}
}
yyj2195++
if yyhl2195 {
yyb2195 = yyj2195 > l
} else {
yyb2195 = r.CheckBreak()
}
if yyb2195 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SupplementalGroups = nil
} else {
yyv2204 := &x.SupplementalGroups
yym2205 := z.DecBinary()
_ = yym2205
if false {
} else {
z.F.DecSliceInt64X(yyv2204, false, d)
}
}
yyj2195++
if yyhl2195 {
yyb2195 = yyj2195 > l
} else {
yyb2195 = r.CheckBreak()
}
if yyb2195 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.FSGroup != nil {
x.FSGroup = nil
}
} else {
if x.FSGroup == nil {
x.FSGroup = new(int64)
}
yym2207 := z.DecBinary()
_ = yym2207
if false {
} else {
*((*int64)(x.FSGroup)) = int64(r.DecodeInt(64))
}
}
for {
yyj2195++
if yyhl2195 {
yyb2195 = yyj2195 > l
} else {
yyb2195 = r.CheckBreak()
}
if yyb2195 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2195-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2208 := z.EncBinary()
_ = yym2208
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2209 := !z.EncBinary()
yy2arr2209 := z.EncBasicHandle().StructToArray
var yyq2209 [8]bool
_, _, _ = yysep2209, yyq2209, yy2arr2209
const yyr2209 bool = false
yyq2209[0] = x.Phase != ""
yyq2209[1] = len(x.Conditions) != 0
yyq2209[2] = x.Message != ""
yyq2209[3] = x.Reason != ""
yyq2209[4] = x.HostIP != ""
yyq2209[5] = x.PodIP != ""
yyq2209[6] = x.StartTime != nil
yyq2209[7] = len(x.ContainerStatuses) != 0
var yynn2209 int
if yyr2209 || yy2arr2209 {
r.EncodeArrayStart(8)
} else {
yynn2209 = 0
for _, b := range yyq2209 {
if b {
yynn2209++
}
}
r.EncodeMapStart(yynn2209)
yynn2209 = 0
}
if yyr2209 || yy2arr2209 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2209[0] {
x.Phase.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2209[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("phase"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Phase.CodecEncodeSelf(e)
}
}
if yyr2209 || yy2arr2209 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2209[1] {
if x.Conditions == nil {
r.EncodeNil()
} else {
yym2212 := z.EncBinary()
_ = yym2212
if false {
} else {
h.encSlicePodCondition(([]PodCondition)(x.Conditions), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2209[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Conditions == nil {
r.EncodeNil()
} else {
yym2213 := z.EncBinary()
_ = yym2213
if false {
} else {
h.encSlicePodCondition(([]PodCondition)(x.Conditions), e)
}
}
}
}
if yyr2209 || yy2arr2209 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2209[2] {
yym2215 := z.EncBinary()
_ = yym2215
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2209[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2216 := z.EncBinary()
_ = yym2216
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr2209 || yy2arr2209 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2209[3] {
yym2218 := z.EncBinary()
_ = yym2218
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2209[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2219 := z.EncBinary()
_ = yym2219
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr2209 || yy2arr2209 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2209[4] {
yym2221 := z.EncBinary()
_ = yym2221
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2209[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2222 := z.EncBinary()
_ = yym2222
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
}
}
}
if yyr2209 || yy2arr2209 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2209[5] {
yym2224 := z.EncBinary()
_ = yym2224
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PodIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2209[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("podIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2225 := z.EncBinary()
_ = yym2225
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PodIP))
}
}
}
if yyr2209 || yy2arr2209 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2209[6] {
if x.StartTime == nil {
r.EncodeNil()
} else {
yym2227 := z.EncBinary()
_ = yym2227
if false {
} else if z.HasExtensions() && z.EncExt(x.StartTime) {
} else if yym2227 {
z.EncBinaryMarshal(x.StartTime)
} else if !yym2227 && z.IsJSONHandle() {
z.EncJSONMarshal(x.StartTime)
} else {
z.EncFallback(x.StartTime)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2209[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("startTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.StartTime == nil {
r.EncodeNil()
} else {
yym2228 := z.EncBinary()
_ = yym2228
if false {
} else if z.HasExtensions() && z.EncExt(x.StartTime) {
} else if yym2228 {
z.EncBinaryMarshal(x.StartTime)
} else if !yym2228 && z.IsJSONHandle() {
z.EncJSONMarshal(x.StartTime)
} else {
z.EncFallback(x.StartTime)
}
}
}
}
if yyr2209 || yy2arr2209 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2209[7] {
if x.ContainerStatuses == nil {
r.EncodeNil()
} else {
yym2230 := z.EncBinary()
_ = yym2230
if false {
} else {
h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2209[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("containerStatuses"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ContainerStatuses == nil {
r.EncodeNil()
} else {
yym2231 := z.EncBinary()
_ = yym2231
if false {
} else {
h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e)
}
}
}
}
if yyr2209 || yy2arr2209 {
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
yym2232 := z.DecBinary()
_ = yym2232
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2233 := r.ContainerType()
if yyct2233 == codecSelferValueTypeMap1234 {
yyl2233 := r.ReadMapStart()
if yyl2233 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2233, d)
}
} else if yyct2233 == codecSelferValueTypeArray1234 {
yyl2233 := r.ReadArrayStart()
if yyl2233 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2233, 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 yys2234Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2234Slc
var yyhl2234 bool = l >= 0
for yyj2234 := 0; ; yyj2234++ {
if yyhl2234 {
if yyj2234 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2234Slc = r.DecodeBytes(yys2234Slc, true, true)
yys2234 := string(yys2234Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2234 {
case "phase":
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = PodPhase(r.DecodeString())
}
case "conditions":
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv2236 := &x.Conditions
yym2237 := z.DecBinary()
_ = yym2237
if false {
} else {
h.decSlicePodCondition((*[]PodCondition)(yyv2236), 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)
}
yym2243 := z.DecBinary()
_ = yym2243
if false {
} else if z.HasExtensions() && z.DecExt(x.StartTime) {
} else if yym2243 {
z.DecBinaryUnmarshal(x.StartTime)
} else if !yym2243 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.StartTime)
} else {
z.DecFallback(x.StartTime, false)
}
}
case "containerStatuses":
if r.TryDecodeAsNil() {
x.ContainerStatuses = nil
} else {
yyv2244 := &x.ContainerStatuses
yym2245 := z.DecBinary()
_ = yym2245
if false {
} else {
h.decSliceContainerStatus((*[]ContainerStatus)(yyv2244), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2234)
} // end switch yys2234
} // end for yyj2234
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 yyj2246 int
var yyb2246 bool
var yyhl2246 bool = l >= 0
yyj2246++
if yyhl2246 {
yyb2246 = yyj2246 > l
} else {
yyb2246 = r.CheckBreak()
}
if yyb2246 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = PodPhase(r.DecodeString())
}
yyj2246++
if yyhl2246 {
yyb2246 = yyj2246 > l
} else {
yyb2246 = r.CheckBreak()
}
if yyb2246 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv2248 := &x.Conditions
yym2249 := z.DecBinary()
_ = yym2249
if false {
} else {
h.decSlicePodCondition((*[]PodCondition)(yyv2248), d)
}
}
yyj2246++
if yyhl2246 {
yyb2246 = yyj2246 > l
} else {
yyb2246 = r.CheckBreak()
}
if yyb2246 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
yyj2246++
if yyhl2246 {
yyb2246 = yyj2246 > l
} else {
yyb2246 = r.CheckBreak()
}
if yyb2246 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj2246++
if yyhl2246 {
yyb2246 = yyj2246 > l
} else {
yyb2246 = r.CheckBreak()
}
if yyb2246 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostIP = ""
} else {
x.HostIP = string(r.DecodeString())
}
yyj2246++
if yyhl2246 {
yyb2246 = yyj2246 > l
} else {
yyb2246 = r.CheckBreak()
}
if yyb2246 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PodIP = ""
} else {
x.PodIP = string(r.DecodeString())
}
yyj2246++
if yyhl2246 {
yyb2246 = yyj2246 > l
} else {
yyb2246 = r.CheckBreak()
}
if yyb2246 {
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)
}
yym2255 := z.DecBinary()
_ = yym2255
if false {
} else if z.HasExtensions() && z.DecExt(x.StartTime) {
} else if yym2255 {
z.DecBinaryUnmarshal(x.StartTime)
} else if !yym2255 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.StartTime)
} else {
z.DecFallback(x.StartTime, false)
}
}
yyj2246++
if yyhl2246 {
yyb2246 = yyj2246 > l
} else {
yyb2246 = r.CheckBreak()
}
if yyb2246 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerStatuses = nil
} else {
yyv2256 := &x.ContainerStatuses
yym2257 := z.DecBinary()
_ = yym2257
if false {
} else {
h.decSliceContainerStatus((*[]ContainerStatus)(yyv2256), d)
}
}
for {
yyj2246++
if yyhl2246 {
yyb2246 = yyj2246 > l
} else {
yyb2246 = r.CheckBreak()
}
if yyb2246 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2246-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 {
yym2258 := z.EncBinary()
_ = yym2258
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2259 := !z.EncBinary()
yy2arr2259 := z.EncBasicHandle().StructToArray
var yyq2259 [4]bool
_, _, _ = yysep2259, yyq2259, yy2arr2259
const yyr2259 bool = false
yyq2259[0] = x.Kind != ""
yyq2259[1] = x.APIVersion != ""
yyq2259[2] = true
yyq2259[3] = true
var yynn2259 int
if yyr2259 || yy2arr2259 {
r.EncodeArrayStart(4)
} else {
yynn2259 = 0
for _, b := range yyq2259 {
if b {
yynn2259++
}
}
r.EncodeMapStart(yynn2259)
yynn2259 = 0
}
if yyr2259 || yy2arr2259 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2259[0] {
yym2261 := z.EncBinary()
_ = yym2261
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2259[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2262 := z.EncBinary()
_ = yym2262
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2259 || yy2arr2259 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2259[1] {
yym2264 := z.EncBinary()
_ = yym2264
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2259[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2265 := z.EncBinary()
_ = yym2265
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2259 || yy2arr2259 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2259[2] {
yy2267 := &x.ObjectMeta
yy2267.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2259[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2268 := &x.ObjectMeta
yy2268.CodecEncodeSelf(e)
}
}
if yyr2259 || yy2arr2259 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2259[3] {
yy2270 := &x.Status
yy2270.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2259[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2271 := &x.Status
yy2271.CodecEncodeSelf(e)
}
}
if yyr2259 || yy2arr2259 {
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
yym2272 := z.DecBinary()
_ = yym2272
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2273 := r.ContainerType()
if yyct2273 == codecSelferValueTypeMap1234 {
yyl2273 := r.ReadMapStart()
if yyl2273 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2273, d)
}
} else if yyct2273 == codecSelferValueTypeArray1234 {
yyl2273 := r.ReadArrayStart()
if yyl2273 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2273, 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 yys2274Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2274Slc
var yyhl2274 bool = l >= 0
for yyj2274 := 0; ; yyj2274++ {
if yyhl2274 {
if yyj2274 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2274Slc = r.DecodeBytes(yys2274Slc, true, true)
yys2274 := string(yys2274Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2274 {
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 {
yyv2277 := &x.ObjectMeta
yyv2277.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = PodStatus{}
} else {
yyv2278 := &x.Status
yyv2278.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2274)
} // end switch yys2274
} // end for yyj2274
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 yyj2279 int
var yyb2279 bool
var yyhl2279 bool = l >= 0
yyj2279++
if yyhl2279 {
yyb2279 = yyj2279 > l
} else {
yyb2279 = r.CheckBreak()
}
if yyb2279 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2279++
if yyhl2279 {
yyb2279 = yyj2279 > l
} else {
yyb2279 = r.CheckBreak()
}
if yyb2279 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2279++
if yyhl2279 {
yyb2279 = yyj2279 > l
} else {
yyb2279 = r.CheckBreak()
}
if yyb2279 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2282 := &x.ObjectMeta
yyv2282.CodecDecodeSelf(d)
}
yyj2279++
if yyhl2279 {
yyb2279 = yyj2279 > l
} else {
yyb2279 = r.CheckBreak()
}
if yyb2279 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = PodStatus{}
} else {
yyv2283 := &x.Status
yyv2283.CodecDecodeSelf(d)
}
for {
yyj2279++
if yyhl2279 {
yyb2279 = yyj2279 > l
} else {
yyb2279 = r.CheckBreak()
}
if yyb2279 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2279-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 {
yym2284 := z.EncBinary()
_ = yym2284
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2285 := !z.EncBinary()
yy2arr2285 := z.EncBasicHandle().StructToArray
var yyq2285 [5]bool
_, _, _ = yysep2285, yyq2285, yy2arr2285
const yyr2285 bool = false
yyq2285[0] = x.Kind != ""
yyq2285[1] = x.APIVersion != ""
yyq2285[2] = true
yyq2285[3] = true
yyq2285[4] = true
var yynn2285 int
if yyr2285 || yy2arr2285 {
r.EncodeArrayStart(5)
} else {
yynn2285 = 0
for _, b := range yyq2285 {
if b {
yynn2285++
}
}
r.EncodeMapStart(yynn2285)
yynn2285 = 0
}
if yyr2285 || yy2arr2285 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2285[0] {
yym2287 := z.EncBinary()
_ = yym2287
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2285[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2288 := z.EncBinary()
_ = yym2288
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2285 || yy2arr2285 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2285[1] {
yym2290 := z.EncBinary()
_ = yym2290
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2285[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2291 := z.EncBinary()
_ = yym2291
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2285 || yy2arr2285 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2285[2] {
yy2293 := &x.ObjectMeta
yy2293.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2285[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2294 := &x.ObjectMeta
yy2294.CodecEncodeSelf(e)
}
}
if yyr2285 || yy2arr2285 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2285[3] {
yy2296 := &x.Spec
yy2296.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2285[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2297 := &x.Spec
yy2297.CodecEncodeSelf(e)
}
}
if yyr2285 || yy2arr2285 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2285[4] {
yy2299 := &x.Status
yy2299.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2285[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2300 := &x.Status
yy2300.CodecEncodeSelf(e)
}
}
if yyr2285 || yy2arr2285 {
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
yym2301 := z.DecBinary()
_ = yym2301
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2302 := r.ContainerType()
if yyct2302 == codecSelferValueTypeMap1234 {
yyl2302 := r.ReadMapStart()
if yyl2302 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2302, d)
}
} else if yyct2302 == codecSelferValueTypeArray1234 {
yyl2302 := r.ReadArrayStart()
if yyl2302 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2302, 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 yys2303Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2303Slc
var yyhl2303 bool = l >= 0
for yyj2303 := 0; ; yyj2303++ {
if yyhl2303 {
if yyj2303 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2303Slc = r.DecodeBytes(yys2303Slc, true, true)
yys2303 := string(yys2303Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2303 {
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 {
yyv2306 := &x.ObjectMeta
yyv2306.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = PodSpec{}
} else {
yyv2307 := &x.Spec
yyv2307.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = PodStatus{}
} else {
yyv2308 := &x.Status
yyv2308.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2303)
} // end switch yys2303
} // end for yyj2303
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 yyj2309 int
var yyb2309 bool
var yyhl2309 bool = l >= 0
yyj2309++
if yyhl2309 {
yyb2309 = yyj2309 > l
} else {
yyb2309 = r.CheckBreak()
}
if yyb2309 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2309++
if yyhl2309 {
yyb2309 = yyj2309 > l
} else {
yyb2309 = r.CheckBreak()
}
if yyb2309 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2309++
if yyhl2309 {
yyb2309 = yyj2309 > l
} else {
yyb2309 = r.CheckBreak()
}
if yyb2309 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2312 := &x.ObjectMeta
yyv2312.CodecDecodeSelf(d)
}
yyj2309++
if yyhl2309 {
yyb2309 = yyj2309 > l
} else {
yyb2309 = r.CheckBreak()
}
if yyb2309 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = PodSpec{}
} else {
yyv2313 := &x.Spec
yyv2313.CodecDecodeSelf(d)
}
yyj2309++
if yyhl2309 {
yyb2309 = yyj2309 > l
} else {
yyb2309 = r.CheckBreak()
}
if yyb2309 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = PodStatus{}
} else {
yyv2314 := &x.Status
yyv2314.CodecDecodeSelf(d)
}
for {
yyj2309++
if yyhl2309 {
yyb2309 = yyj2309 > l
} else {
yyb2309 = r.CheckBreak()
}
if yyb2309 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2309-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 {
yym2315 := z.EncBinary()
_ = yym2315
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2316 := !z.EncBinary()
yy2arr2316 := z.EncBasicHandle().StructToArray
var yyq2316 [2]bool
_, _, _ = yysep2316, yyq2316, yy2arr2316
const yyr2316 bool = false
yyq2316[0] = true
yyq2316[1] = true
var yynn2316 int
if yyr2316 || yy2arr2316 {
r.EncodeArrayStart(2)
} else {
yynn2316 = 0
for _, b := range yyq2316 {
if b {
yynn2316++
}
}
r.EncodeMapStart(yynn2316)
yynn2316 = 0
}
if yyr2316 || yy2arr2316 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2316[0] {
yy2318 := &x.ObjectMeta
yy2318.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2316[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2319 := &x.ObjectMeta
yy2319.CodecEncodeSelf(e)
}
}
if yyr2316 || yy2arr2316 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2316[1] {
yy2321 := &x.Spec
yy2321.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2316[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2322 := &x.Spec
yy2322.CodecEncodeSelf(e)
}
}
if yyr2316 || yy2arr2316 {
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
yym2323 := z.DecBinary()
_ = yym2323
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2324 := r.ContainerType()
if yyct2324 == codecSelferValueTypeMap1234 {
yyl2324 := r.ReadMapStart()
if yyl2324 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2324, d)
}
} else if yyct2324 == codecSelferValueTypeArray1234 {
yyl2324 := r.ReadArrayStart()
if yyl2324 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2324, 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 yys2325Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2325Slc
var yyhl2325 bool = l >= 0
for yyj2325 := 0; ; yyj2325++ {
if yyhl2325 {
if yyj2325 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2325Slc = r.DecodeBytes(yys2325Slc, true, true)
yys2325 := string(yys2325Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2325 {
case "metadata":
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2326 := &x.ObjectMeta
yyv2326.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = PodSpec{}
} else {
yyv2327 := &x.Spec
yyv2327.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2325)
} // end switch yys2325
} // end for yyj2325
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 yyj2328 int
var yyb2328 bool
var yyhl2328 bool = l >= 0
yyj2328++
if yyhl2328 {
yyb2328 = yyj2328 > l
} else {
yyb2328 = r.CheckBreak()
}
if yyb2328 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2329 := &x.ObjectMeta
yyv2329.CodecDecodeSelf(d)
}
yyj2328++
if yyhl2328 {
yyb2328 = yyj2328 > l
} else {
yyb2328 = r.CheckBreak()
}
if yyb2328 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = PodSpec{}
} else {
yyv2330 := &x.Spec
yyv2330.CodecDecodeSelf(d)
}
for {
yyj2328++
if yyhl2328 {
yyb2328 = yyj2328 > l
} else {
yyb2328 = r.CheckBreak()
}
if yyb2328 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2328-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 {
yym2331 := z.EncBinary()
_ = yym2331
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2332 := !z.EncBinary()
yy2arr2332 := z.EncBasicHandle().StructToArray
var yyq2332 [4]bool
_, _, _ = yysep2332, yyq2332, yy2arr2332
const yyr2332 bool = false
yyq2332[0] = x.Kind != ""
yyq2332[1] = x.APIVersion != ""
yyq2332[2] = true
yyq2332[3] = true
var yynn2332 int
if yyr2332 || yy2arr2332 {
r.EncodeArrayStart(4)
} else {
yynn2332 = 0
for _, b := range yyq2332 {
if b {
yynn2332++
}
}
r.EncodeMapStart(yynn2332)
yynn2332 = 0
}
if yyr2332 || yy2arr2332 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2332[0] {
yym2334 := z.EncBinary()
_ = yym2334
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2332[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2335 := z.EncBinary()
_ = yym2335
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2332 || yy2arr2332 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2332[1] {
yym2337 := z.EncBinary()
_ = yym2337
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2332[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2338 := z.EncBinary()
_ = yym2338
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2332 || yy2arr2332 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2332[2] {
yy2340 := &x.ObjectMeta
yy2340.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2332[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2341 := &x.ObjectMeta
yy2341.CodecEncodeSelf(e)
}
}
if yyr2332 || yy2arr2332 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2332[3] {
yy2343 := &x.Template
yy2343.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2332[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("template"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2344 := &x.Template
yy2344.CodecEncodeSelf(e)
}
}
if yyr2332 || yy2arr2332 {
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
yym2345 := z.DecBinary()
_ = yym2345
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2346 := r.ContainerType()
if yyct2346 == codecSelferValueTypeMap1234 {
yyl2346 := r.ReadMapStart()
if yyl2346 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2346, d)
}
} else if yyct2346 == codecSelferValueTypeArray1234 {
yyl2346 := r.ReadArrayStart()
if yyl2346 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2346, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PodTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys2347Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2347Slc
var yyhl2347 bool = l >= 0
for yyj2347 := 0; ; yyj2347++ {
if yyhl2347 {
if yyj2347 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2347Slc = r.DecodeBytes(yys2347Slc, true, true)
yys2347 := string(yys2347Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2347 {
case "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 {
yyv2350 := &x.ObjectMeta
yyv2350.CodecDecodeSelf(d)
}
case "template":
if r.TryDecodeAsNil() {
x.Template = PodTemplateSpec{}
} else {
yyv2351 := &x.Template
yyv2351.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2347)
} // end switch yys2347
} // end for yyj2347
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 yyj2352 int
var yyb2352 bool
var yyhl2352 bool = l >= 0
yyj2352++
if yyhl2352 {
yyb2352 = yyj2352 > l
} else {
yyb2352 = r.CheckBreak()
}
if yyb2352 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2352++
if yyhl2352 {
yyb2352 = yyj2352 > l
} else {
yyb2352 = r.CheckBreak()
}
if yyb2352 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2352++
if yyhl2352 {
yyb2352 = yyj2352 > l
} else {
yyb2352 = r.CheckBreak()
}
if yyb2352 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2355 := &x.ObjectMeta
yyv2355.CodecDecodeSelf(d)
}
yyj2352++
if yyhl2352 {
yyb2352 = yyj2352 > l
} else {
yyb2352 = r.CheckBreak()
}
if yyb2352 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Template = PodTemplateSpec{}
} else {
yyv2356 := &x.Template
yyv2356.CodecDecodeSelf(d)
}
for {
yyj2352++
if yyhl2352 {
yyb2352 = yyj2352 > l
} else {
yyb2352 = r.CheckBreak()
}
if yyb2352 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2352-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2357 := z.EncBinary()
_ = yym2357
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2358 := !z.EncBinary()
yy2arr2358 := z.EncBasicHandle().StructToArray
var yyq2358 [4]bool
_, _, _ = yysep2358, yyq2358, yy2arr2358
const yyr2358 bool = false
yyq2358[0] = x.Kind != ""
yyq2358[1] = x.APIVersion != ""
yyq2358[2] = true
var yynn2358 int
if yyr2358 || yy2arr2358 {
r.EncodeArrayStart(4)
} else {
yynn2358 = 1
for _, b := range yyq2358 {
if b {
yynn2358++
}
}
r.EncodeMapStart(yynn2358)
yynn2358 = 0
}
if yyr2358 || yy2arr2358 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2358[0] {
yym2360 := z.EncBinary()
_ = yym2360
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2358[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2361 := z.EncBinary()
_ = yym2361
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2358 || yy2arr2358 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2358[1] {
yym2363 := z.EncBinary()
_ = yym2363
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2358[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2364 := z.EncBinary()
_ = yym2364
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2358 || yy2arr2358 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2358[2] {
yy2366 := &x.ListMeta
yym2367 := z.EncBinary()
_ = yym2367
if false {
} else if z.HasExtensions() && z.EncExt(yy2366) {
} else {
z.EncFallback(yy2366)
}
} else {
r.EncodeNil()
}
} else {
if yyq2358[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2368 := &x.ListMeta
yym2369 := z.EncBinary()
_ = yym2369
if false {
} else if z.HasExtensions() && z.EncExt(yy2368) {
} else {
z.EncFallback(yy2368)
}
}
}
if yyr2358 || yy2arr2358 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2371 := z.EncBinary()
_ = yym2371
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 {
yym2372 := z.EncBinary()
_ = yym2372
if false {
} else {
h.encSlicePodTemplate(([]PodTemplate)(x.Items), e)
}
}
}
if yyr2358 || yy2arr2358 {
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
yym2373 := z.DecBinary()
_ = yym2373
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2374 := r.ContainerType()
if yyct2374 == codecSelferValueTypeMap1234 {
yyl2374 := r.ReadMapStart()
if yyl2374 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2374, d)
}
} else if yyct2374 == codecSelferValueTypeArray1234 {
yyl2374 := r.ReadArrayStart()
if yyl2374 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2374, 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 yys2375Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2375Slc
var yyhl2375 bool = l >= 0
for yyj2375 := 0; ; yyj2375++ {
if yyhl2375 {
if yyj2375 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2375Slc = r.DecodeBytes(yys2375Slc, true, true)
yys2375 := string(yys2375Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2375 {
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 {
yyv2378 := &x.ListMeta
yym2379 := z.DecBinary()
_ = yym2379
if false {
} else if z.HasExtensions() && z.DecExt(yyv2378) {
} else {
z.DecFallback(yyv2378, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2380 := &x.Items
yym2381 := z.DecBinary()
_ = yym2381
if false {
} else {
h.decSlicePodTemplate((*[]PodTemplate)(yyv2380), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2375)
} // end switch yys2375
} // end for yyj2375
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 yyj2382 int
var yyb2382 bool
var yyhl2382 bool = l >= 0
yyj2382++
if yyhl2382 {
yyb2382 = yyj2382 > l
} else {
yyb2382 = r.CheckBreak()
}
if yyb2382 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2382++
if yyhl2382 {
yyb2382 = yyj2382 > l
} else {
yyb2382 = r.CheckBreak()
}
if yyb2382 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2382++
if yyhl2382 {
yyb2382 = yyj2382 > l
} else {
yyb2382 = r.CheckBreak()
}
if yyb2382 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2385 := &x.ListMeta
yym2386 := z.DecBinary()
_ = yym2386
if false {
} else if z.HasExtensions() && z.DecExt(yyv2385) {
} else {
z.DecFallback(yyv2385, false)
}
}
yyj2382++
if yyhl2382 {
yyb2382 = yyj2382 > l
} else {
yyb2382 = r.CheckBreak()
}
if yyb2382 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2387 := &x.Items
yym2388 := z.DecBinary()
_ = yym2388
if false {
} else {
h.decSlicePodTemplate((*[]PodTemplate)(yyv2387), d)
}
}
for {
yyj2382++
if yyhl2382 {
yyb2382 = yyj2382 > l
} else {
yyb2382 = r.CheckBreak()
}
if yyb2382 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2382-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 {
yym2389 := z.EncBinary()
_ = yym2389
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2390 := !z.EncBinary()
yy2arr2390 := z.EncBasicHandle().StructToArray
var yyq2390 [3]bool
_, _, _ = yysep2390, yyq2390, yy2arr2390
const yyr2390 bool = false
yyq2390[2] = x.Template != nil
var yynn2390 int
if yyr2390 || yy2arr2390 {
r.EncodeArrayStart(3)
} else {
yynn2390 = 2
for _, b := range yyq2390 {
if b {
yynn2390++
}
}
r.EncodeMapStart(yynn2390)
yynn2390 = 0
}
if yyr2390 || yy2arr2390 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2392 := z.EncBinary()
_ = yym2392
if false {
} else {
r.EncodeInt(int64(x.Replicas))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("replicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2393 := z.EncBinary()
_ = yym2393
if false {
} else {
r.EncodeInt(int64(x.Replicas))
}
}
if yyr2390 || yy2arr2390 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Selector == nil {
r.EncodeNil()
} else {
yym2395 := z.EncBinary()
_ = yym2395
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 {
yym2396 := z.EncBinary()
_ = yym2396
if false {
} else {
z.F.EncMapStringStringV(x.Selector, false, e)
}
}
}
if yyr2390 || yy2arr2390 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2390[2] {
if x.Template == nil {
r.EncodeNil()
} else {
x.Template.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq2390[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 yyr2390 || yy2arr2390 {
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
yym2398 := z.DecBinary()
_ = yym2398
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2399 := r.ContainerType()
if yyct2399 == codecSelferValueTypeMap1234 {
yyl2399 := r.ReadMapStart()
if yyl2399 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2399, d)
}
} else if yyct2399 == codecSelferValueTypeArray1234 {
yyl2399 := r.ReadArrayStart()
if yyl2399 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2399, 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 yys2400Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2400Slc
var yyhl2400 bool = l >= 0
for yyj2400 := 0; ; yyj2400++ {
if yyhl2400 {
if yyj2400 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2400Slc = r.DecodeBytes(yys2400Slc, true, true)
yys2400 := string(yys2400Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2400 {
case "replicas":
if r.TryDecodeAsNil() {
x.Replicas = 0
} else {
x.Replicas = int32(r.DecodeInt(32))
}
case "selector":
if r.TryDecodeAsNil() {
x.Selector = nil
} else {
yyv2402 := &x.Selector
yym2403 := z.DecBinary()
_ = yym2403
if false {
} else {
z.F.DecMapStringStringX(yyv2402, 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, yys2400)
} // end switch yys2400
} // end for yyj2400
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 yyj2405 int
var yyb2405 bool
var yyhl2405 bool = l >= 0
yyj2405++
if yyhl2405 {
yyb2405 = yyj2405 > l
} else {
yyb2405 = r.CheckBreak()
}
if yyb2405 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Replicas = 0
} else {
x.Replicas = int32(r.DecodeInt(32))
}
yyj2405++
if yyhl2405 {
yyb2405 = yyj2405 > l
} else {
yyb2405 = r.CheckBreak()
}
if yyb2405 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Selector = nil
} else {
yyv2407 := &x.Selector
yym2408 := z.DecBinary()
_ = yym2408
if false {
} else {
z.F.DecMapStringStringX(yyv2407, false, d)
}
}
yyj2405++
if yyhl2405 {
yyb2405 = yyj2405 > l
} else {
yyb2405 = r.CheckBreak()
}
if yyb2405 {
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 {
yyj2405++
if yyhl2405 {
yyb2405 = yyj2405 > l
} else {
yyb2405 = r.CheckBreak()
}
if yyb2405 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2405-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 {
yym2410 := z.EncBinary()
_ = yym2410
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2411 := !z.EncBinary()
yy2arr2411 := z.EncBasicHandle().StructToArray
var yyq2411 [4]bool
_, _, _ = yysep2411, yyq2411, yy2arr2411
const yyr2411 bool = false
yyq2411[1] = x.FullyLabeledReplicas != 0
yyq2411[2] = x.ReadyReplicas != 0
yyq2411[3] = x.ObservedGeneration != 0
var yynn2411 int
if yyr2411 || yy2arr2411 {
r.EncodeArrayStart(4)
} else {
yynn2411 = 1
for _, b := range yyq2411 {
if b {
yynn2411++
}
}
r.EncodeMapStart(yynn2411)
yynn2411 = 0
}
if yyr2411 || yy2arr2411 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2413 := z.EncBinary()
_ = yym2413
if false {
} else {
r.EncodeInt(int64(x.Replicas))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("replicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2414 := z.EncBinary()
_ = yym2414
if false {
} else {
r.EncodeInt(int64(x.Replicas))
}
}
if yyr2411 || yy2arr2411 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2411[1] {
yym2416 := z.EncBinary()
_ = yym2416
if false {
} else {
r.EncodeInt(int64(x.FullyLabeledReplicas))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq2411[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fullyLabeledReplicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2417 := z.EncBinary()
_ = yym2417
if false {
} else {
r.EncodeInt(int64(x.FullyLabeledReplicas))
}
}
}
if yyr2411 || yy2arr2411 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2411[2] {
yym2419 := z.EncBinary()
_ = yym2419
if false {
} else {
r.EncodeInt(int64(x.ReadyReplicas))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq2411[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readyReplicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2420 := z.EncBinary()
_ = yym2420
if false {
} else {
r.EncodeInt(int64(x.ReadyReplicas))
}
}
}
if yyr2411 || yy2arr2411 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2411[3] {
yym2422 := z.EncBinary()
_ = yym2422
if false {
} else {
r.EncodeInt(int64(x.ObservedGeneration))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq2411[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("observedGeneration"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2423 := z.EncBinary()
_ = yym2423
if false {
} else {
r.EncodeInt(int64(x.ObservedGeneration))
}
}
}
if yyr2411 || yy2arr2411 {
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
yym2424 := z.DecBinary()
_ = yym2424
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2425 := r.ContainerType()
if yyct2425 == codecSelferValueTypeMap1234 {
yyl2425 := r.ReadMapStart()
if yyl2425 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2425, d)
}
} else if yyct2425 == codecSelferValueTypeArray1234 {
yyl2425 := r.ReadArrayStart()
if yyl2425 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2425, 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 yys2426Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2426Slc
var yyhl2426 bool = l >= 0
for yyj2426 := 0; ; yyj2426++ {
if yyhl2426 {
if yyj2426 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2426Slc = r.DecodeBytes(yys2426Slc, true, true)
yys2426 := string(yys2426Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2426 {
case "replicas":
if r.TryDecodeAsNil() {
x.Replicas = 0
} else {
x.Replicas = int32(r.DecodeInt(32))
}
case "fullyLabeledReplicas":
if r.TryDecodeAsNil() {
x.FullyLabeledReplicas = 0
} else {
x.FullyLabeledReplicas = int32(r.DecodeInt(32))
}
case "readyReplicas":
if r.TryDecodeAsNil() {
x.ReadyReplicas = 0
} else {
x.ReadyReplicas = int32(r.DecodeInt(32))
}
case "observedGeneration":
if r.TryDecodeAsNil() {
x.ObservedGeneration = 0
} else {
x.ObservedGeneration = int64(r.DecodeInt(64))
}
default:
z.DecStructFieldNotFound(-1, yys2426)
} // end switch yys2426
} // end for yyj2426
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 yyj2431 int
var yyb2431 bool
var yyhl2431 bool = l >= 0
yyj2431++
if yyhl2431 {
yyb2431 = yyj2431 > l
} else {
yyb2431 = r.CheckBreak()
}
if yyb2431 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Replicas = 0
} else {
x.Replicas = int32(r.DecodeInt(32))
}
yyj2431++
if yyhl2431 {
yyb2431 = yyj2431 > l
} else {
yyb2431 = r.CheckBreak()
}
if yyb2431 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FullyLabeledReplicas = 0
} else {
x.FullyLabeledReplicas = int32(r.DecodeInt(32))
}
yyj2431++
if yyhl2431 {
yyb2431 = yyj2431 > l
} else {
yyb2431 = r.CheckBreak()
}
if yyb2431 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadyReplicas = 0
} else {
x.ReadyReplicas = int32(r.DecodeInt(32))
}
yyj2431++
if yyhl2431 {
yyb2431 = yyj2431 > l
} else {
yyb2431 = r.CheckBreak()
}
if yyb2431 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObservedGeneration = 0
} else {
x.ObservedGeneration = int64(r.DecodeInt(64))
}
for {
yyj2431++
if yyhl2431 {
yyb2431 = yyj2431 > l
} else {
yyb2431 = r.CheckBreak()
}
if yyb2431 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2431-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 {
yym2436 := z.EncBinary()
_ = yym2436
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2437 := !z.EncBinary()
yy2arr2437 := z.EncBasicHandle().StructToArray
var yyq2437 [5]bool
_, _, _ = yysep2437, yyq2437, yy2arr2437
const yyr2437 bool = false
yyq2437[0] = x.Kind != ""
yyq2437[1] = x.APIVersion != ""
yyq2437[2] = true
yyq2437[3] = true
yyq2437[4] = true
var yynn2437 int
if yyr2437 || yy2arr2437 {
r.EncodeArrayStart(5)
} else {
yynn2437 = 0
for _, b := range yyq2437 {
if b {
yynn2437++
}
}
r.EncodeMapStart(yynn2437)
yynn2437 = 0
}
if yyr2437 || yy2arr2437 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2437[0] {
yym2439 := z.EncBinary()
_ = yym2439
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2437[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2440 := z.EncBinary()
_ = yym2440
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2437 || yy2arr2437 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2437[1] {
yym2442 := z.EncBinary()
_ = yym2442
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2437[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2443 := z.EncBinary()
_ = yym2443
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2437 || yy2arr2437 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2437[2] {
yy2445 := &x.ObjectMeta
yy2445.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2437[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2446 := &x.ObjectMeta
yy2446.CodecEncodeSelf(e)
}
}
if yyr2437 || yy2arr2437 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2437[3] {
yy2448 := &x.Spec
yy2448.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2437[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2449 := &x.Spec
yy2449.CodecEncodeSelf(e)
}
}
if yyr2437 || yy2arr2437 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2437[4] {
yy2451 := &x.Status
yy2451.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2437[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2452 := &x.Status
yy2452.CodecEncodeSelf(e)
}
}
if yyr2437 || yy2arr2437 {
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
yym2453 := z.DecBinary()
_ = yym2453
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2454 := r.ContainerType()
if yyct2454 == codecSelferValueTypeMap1234 {
yyl2454 := r.ReadMapStart()
if yyl2454 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2454, d)
}
} else if yyct2454 == codecSelferValueTypeArray1234 {
yyl2454 := r.ReadArrayStart()
if yyl2454 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2454, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ReplicationController) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys2455Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2455Slc
var yyhl2455 bool = l >= 0
for yyj2455 := 0; ; yyj2455++ {
if yyhl2455 {
if yyj2455 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2455Slc = r.DecodeBytes(yys2455Slc, true, true)
yys2455 := string(yys2455Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2455 {
case "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 {
yyv2458 := &x.ObjectMeta
yyv2458.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = ReplicationControllerSpec{}
} else {
yyv2459 := &x.Spec
yyv2459.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = ReplicationControllerStatus{}
} else {
yyv2460 := &x.Status
yyv2460.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2455)
} // end switch yys2455
} // end for yyj2455
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 yyj2461 int
var yyb2461 bool
var yyhl2461 bool = l >= 0
yyj2461++
if yyhl2461 {
yyb2461 = yyj2461 > l
} else {
yyb2461 = r.CheckBreak()
}
if yyb2461 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2461++
if yyhl2461 {
yyb2461 = yyj2461 > l
} else {
yyb2461 = r.CheckBreak()
}
if yyb2461 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2461++
if yyhl2461 {
yyb2461 = yyj2461 > l
} else {
yyb2461 = r.CheckBreak()
}
if yyb2461 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2464 := &x.ObjectMeta
yyv2464.CodecDecodeSelf(d)
}
yyj2461++
if yyhl2461 {
yyb2461 = yyj2461 > l
} else {
yyb2461 = r.CheckBreak()
}
if yyb2461 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = ReplicationControllerSpec{}
} else {
yyv2465 := &x.Spec
yyv2465.CodecDecodeSelf(d)
}
yyj2461++
if yyhl2461 {
yyb2461 = yyj2461 > l
} else {
yyb2461 = r.CheckBreak()
}
if yyb2461 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ReplicationControllerStatus{}
} else {
yyv2466 := &x.Status
yyv2466.CodecDecodeSelf(d)
}
for {
yyj2461++
if yyhl2461 {
yyb2461 = yyj2461 > l
} else {
yyb2461 = r.CheckBreak()
}
if yyb2461 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2461-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ReplicationControllerList) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2467 := z.EncBinary()
_ = yym2467
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2468 := !z.EncBinary()
yy2arr2468 := z.EncBasicHandle().StructToArray
var yyq2468 [4]bool
_, _, _ = yysep2468, yyq2468, yy2arr2468
const yyr2468 bool = false
yyq2468[0] = x.Kind != ""
yyq2468[1] = x.APIVersion != ""
yyq2468[2] = true
var yynn2468 int
if yyr2468 || yy2arr2468 {
r.EncodeArrayStart(4)
} else {
yynn2468 = 1
for _, b := range yyq2468 {
if b {
yynn2468++
}
}
r.EncodeMapStart(yynn2468)
yynn2468 = 0
}
if yyr2468 || yy2arr2468 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2468[0] {
yym2470 := z.EncBinary()
_ = yym2470
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2468[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2471 := z.EncBinary()
_ = yym2471
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2468 || yy2arr2468 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2468[1] {
yym2473 := z.EncBinary()
_ = yym2473
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2468[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2474 := z.EncBinary()
_ = yym2474
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2468 || yy2arr2468 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2468[2] {
yy2476 := &x.ListMeta
yym2477 := z.EncBinary()
_ = yym2477
if false {
} else if z.HasExtensions() && z.EncExt(yy2476) {
} else {
z.EncFallback(yy2476)
}
} else {
r.EncodeNil()
}
} else {
if yyq2468[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2478 := &x.ListMeta
yym2479 := z.EncBinary()
_ = yym2479
if false {
} else if z.HasExtensions() && z.EncExt(yy2478) {
} else {
z.EncFallback(yy2478)
}
}
}
if yyr2468 || yy2arr2468 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2481 := z.EncBinary()
_ = yym2481
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 {
yym2482 := z.EncBinary()
_ = yym2482
if false {
} else {
h.encSliceReplicationController(([]ReplicationController)(x.Items), e)
}
}
}
if yyr2468 || yy2arr2468 {
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
yym2483 := z.DecBinary()
_ = yym2483
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2484 := r.ContainerType()
if yyct2484 == codecSelferValueTypeMap1234 {
yyl2484 := r.ReadMapStart()
if yyl2484 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2484, d)
}
} else if yyct2484 == codecSelferValueTypeArray1234 {
yyl2484 := r.ReadArrayStart()
if yyl2484 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2484, 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 yys2485Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2485Slc
var yyhl2485 bool = l >= 0
for yyj2485 := 0; ; yyj2485++ {
if yyhl2485 {
if yyj2485 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2485Slc = r.DecodeBytes(yys2485Slc, true, true)
yys2485 := string(yys2485Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2485 {
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 {
yyv2488 := &x.ListMeta
yym2489 := z.DecBinary()
_ = yym2489
if false {
} else if z.HasExtensions() && z.DecExt(yyv2488) {
} else {
z.DecFallback(yyv2488, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2490 := &x.Items
yym2491 := z.DecBinary()
_ = yym2491
if false {
} else {
h.decSliceReplicationController((*[]ReplicationController)(yyv2490), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2485)
} // end switch yys2485
} // end for yyj2485
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 yyj2492 int
var yyb2492 bool
var yyhl2492 bool = l >= 0
yyj2492++
if yyhl2492 {
yyb2492 = yyj2492 > l
} else {
yyb2492 = r.CheckBreak()
}
if yyb2492 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2492++
if yyhl2492 {
yyb2492 = yyj2492 > l
} else {
yyb2492 = r.CheckBreak()
}
if yyb2492 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2492++
if yyhl2492 {
yyb2492 = yyj2492 > l
} else {
yyb2492 = r.CheckBreak()
}
if yyb2492 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2495 := &x.ListMeta
yym2496 := z.DecBinary()
_ = yym2496
if false {
} else if z.HasExtensions() && z.DecExt(yyv2495) {
} else {
z.DecFallback(yyv2495, false)
}
}
yyj2492++
if yyhl2492 {
yyb2492 = yyj2492 > l
} else {
yyb2492 = r.CheckBreak()
}
if yyb2492 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2497 := &x.Items
yym2498 := z.DecBinary()
_ = yym2498
if false {
} else {
h.decSliceReplicationController((*[]ReplicationController)(yyv2497), d)
}
}
for {
yyj2492++
if yyhl2492 {
yyb2492 = yyj2492 > l
} else {
yyb2492 = r.CheckBreak()
}
if yyb2492 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2492-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 {
yym2499 := z.EncBinary()
_ = yym2499
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2500 := !z.EncBinary()
yy2arr2500 := z.EncBasicHandle().StructToArray
var yyq2500 [4]bool
_, _, _ = yysep2500, yyq2500, yy2arr2500
const yyr2500 bool = false
yyq2500[0] = x.Kind != ""
yyq2500[1] = x.APIVersion != ""
yyq2500[2] = true
var yynn2500 int
if yyr2500 || yy2arr2500 {
r.EncodeArrayStart(4)
} else {
yynn2500 = 1
for _, b := range yyq2500 {
if b {
yynn2500++
}
}
r.EncodeMapStart(yynn2500)
yynn2500 = 0
}
if yyr2500 || yy2arr2500 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2500[0] {
yym2502 := z.EncBinary()
_ = yym2502
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2500[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2503 := z.EncBinary()
_ = yym2503
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2500 || yy2arr2500 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2500[1] {
yym2505 := z.EncBinary()
_ = yym2505
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2500[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2506 := z.EncBinary()
_ = yym2506
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2500 || yy2arr2500 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2500[2] {
yy2508 := &x.ListMeta
yym2509 := z.EncBinary()
_ = yym2509
if false {
} else if z.HasExtensions() && z.EncExt(yy2508) {
} else {
z.EncFallback(yy2508)
}
} else {
r.EncodeNil()
}
} else {
if yyq2500[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2510 := &x.ListMeta
yym2511 := z.EncBinary()
_ = yym2511
if false {
} else if z.HasExtensions() && z.EncExt(yy2510) {
} else {
z.EncFallback(yy2510)
}
}
}
if yyr2500 || yy2arr2500 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2513 := z.EncBinary()
_ = yym2513
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 {
yym2514 := z.EncBinary()
_ = yym2514
if false {
} else {
h.encSliceService(([]Service)(x.Items), e)
}
}
}
if yyr2500 || yy2arr2500 {
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
yym2515 := z.DecBinary()
_ = yym2515
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2516 := r.ContainerType()
if yyct2516 == codecSelferValueTypeMap1234 {
yyl2516 := r.ReadMapStart()
if yyl2516 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2516, d)
}
} else if yyct2516 == codecSelferValueTypeArray1234 {
yyl2516 := r.ReadArrayStart()
if yyl2516 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2516, 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 yys2517Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2517Slc
var yyhl2517 bool = l >= 0
for yyj2517 := 0; ; yyj2517++ {
if yyhl2517 {
if yyj2517 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2517Slc = r.DecodeBytes(yys2517Slc, true, true)
yys2517 := string(yys2517Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2517 {
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 {
yyv2520 := &x.ListMeta
yym2521 := z.DecBinary()
_ = yym2521
if false {
} else if z.HasExtensions() && z.DecExt(yyv2520) {
} else {
z.DecFallback(yyv2520, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2522 := &x.Items
yym2523 := z.DecBinary()
_ = yym2523
if false {
} else {
h.decSliceService((*[]Service)(yyv2522), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2517)
} // end switch yys2517
} // end for yyj2517
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 yyj2524 int
var yyb2524 bool
var yyhl2524 bool = l >= 0
yyj2524++
if yyhl2524 {
yyb2524 = yyj2524 > l
} else {
yyb2524 = r.CheckBreak()
}
if yyb2524 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2524++
if yyhl2524 {
yyb2524 = yyj2524 > l
} else {
yyb2524 = r.CheckBreak()
}
if yyb2524 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2524++
if yyhl2524 {
yyb2524 = yyj2524 > l
} else {
yyb2524 = r.CheckBreak()
}
if yyb2524 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2527 := &x.ListMeta
yym2528 := z.DecBinary()
_ = yym2528
if false {
} else if z.HasExtensions() && z.DecExt(yyv2527) {
} else {
z.DecFallback(yyv2527, false)
}
}
yyj2524++
if yyhl2524 {
yyb2524 = yyj2524 > l
} else {
yyb2524 = r.CheckBreak()
}
if yyb2524 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2529 := &x.Items
yym2530 := z.DecBinary()
_ = yym2530
if false {
} else {
h.decSliceService((*[]Service)(yyv2529), d)
}
}
for {
yyj2524++
if yyhl2524 {
yyb2524 = yyj2524 > l
} else {
yyb2524 = r.CheckBreak()
}
if yyb2524 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2524-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x ServiceAffinity) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym2531 := z.EncBinary()
_ = yym2531
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
yym2532 := z.DecBinary()
_ = yym2532
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
yym2533 := z.EncBinary()
_ = yym2533
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
yym2534 := z.DecBinary()
_ = yym2534
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 {
yym2535 := z.EncBinary()
_ = yym2535
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2536 := !z.EncBinary()
yy2arr2536 := z.EncBasicHandle().StructToArray
var yyq2536 [1]bool
_, _, _ = yysep2536, yyq2536, yy2arr2536
const yyr2536 bool = false
yyq2536[0] = true
var yynn2536 int
if yyr2536 || yy2arr2536 {
r.EncodeArrayStart(1)
} else {
yynn2536 = 0
for _, b := range yyq2536 {
if b {
yynn2536++
}
}
r.EncodeMapStart(yynn2536)
yynn2536 = 0
}
if yyr2536 || yy2arr2536 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2536[0] {
yy2538 := &x.LoadBalancer
yy2538.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2536[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("loadBalancer"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2539 := &x.LoadBalancer
yy2539.CodecEncodeSelf(e)
}
}
if yyr2536 || yy2arr2536 {
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
yym2540 := z.DecBinary()
_ = yym2540
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2541 := r.ContainerType()
if yyct2541 == codecSelferValueTypeMap1234 {
yyl2541 := r.ReadMapStart()
if yyl2541 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2541, d)
}
} else if yyct2541 == codecSelferValueTypeArray1234 {
yyl2541 := r.ReadArrayStart()
if yyl2541 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2541, 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 yys2542Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2542Slc
var yyhl2542 bool = l >= 0
for yyj2542 := 0; ; yyj2542++ {
if yyhl2542 {
if yyj2542 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2542Slc = r.DecodeBytes(yys2542Slc, true, true)
yys2542 := string(yys2542Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2542 {
case "loadBalancer":
if r.TryDecodeAsNil() {
x.LoadBalancer = LoadBalancerStatus{}
} else {
yyv2543 := &x.LoadBalancer
yyv2543.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2542)
} // end switch yys2542
} // end for yyj2542
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 yyj2544 int
var yyb2544 bool
var yyhl2544 bool = l >= 0
yyj2544++
if yyhl2544 {
yyb2544 = yyj2544 > l
} else {
yyb2544 = r.CheckBreak()
}
if yyb2544 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LoadBalancer = LoadBalancerStatus{}
} else {
yyv2545 := &x.LoadBalancer
yyv2545.CodecDecodeSelf(d)
}
for {
yyj2544++
if yyhl2544 {
yyb2544 = yyj2544 > l
} else {
yyb2544 = r.CheckBreak()
}
if yyb2544 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2544-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 {
yym2546 := z.EncBinary()
_ = yym2546
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2547 := !z.EncBinary()
yy2arr2547 := z.EncBasicHandle().StructToArray
var yyq2547 [1]bool
_, _, _ = yysep2547, yyq2547, yy2arr2547
const yyr2547 bool = false
yyq2547[0] = len(x.Ingress) != 0
var yynn2547 int
if yyr2547 || yy2arr2547 {
r.EncodeArrayStart(1)
} else {
yynn2547 = 0
for _, b := range yyq2547 {
if b {
yynn2547++
}
}
r.EncodeMapStart(yynn2547)
yynn2547 = 0
}
if yyr2547 || yy2arr2547 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2547[0] {
if x.Ingress == nil {
r.EncodeNil()
} else {
yym2549 := z.EncBinary()
_ = yym2549
if false {
} else {
h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2547[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ingress"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Ingress == nil {
r.EncodeNil()
} else {
yym2550 := z.EncBinary()
_ = yym2550
if false {
} else {
h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e)
}
}
}
}
if yyr2547 || yy2arr2547 {
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
yym2551 := z.DecBinary()
_ = yym2551
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2552 := r.ContainerType()
if yyct2552 == codecSelferValueTypeMap1234 {
yyl2552 := r.ReadMapStart()
if yyl2552 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2552, d)
}
} else if yyct2552 == codecSelferValueTypeArray1234 {
yyl2552 := r.ReadArrayStart()
if yyl2552 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2552, 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 yys2553Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2553Slc
var yyhl2553 bool = l >= 0
for yyj2553 := 0; ; yyj2553++ {
if yyhl2553 {
if yyj2553 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2553Slc = r.DecodeBytes(yys2553Slc, true, true)
yys2553 := string(yys2553Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2553 {
case "ingress":
if r.TryDecodeAsNil() {
x.Ingress = nil
} else {
yyv2554 := &x.Ingress
yym2555 := z.DecBinary()
_ = yym2555
if false {
} else {
h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2554), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2553)
} // end switch yys2553
} // end for yyj2553
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 yyj2556 int
var yyb2556 bool
var yyhl2556 bool = l >= 0
yyj2556++
if yyhl2556 {
yyb2556 = yyj2556 > l
} else {
yyb2556 = r.CheckBreak()
}
if yyb2556 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ingress = nil
} else {
yyv2557 := &x.Ingress
yym2558 := z.DecBinary()
_ = yym2558
if false {
} else {
h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2557), d)
}
}
for {
yyj2556++
if yyhl2556 {
yyb2556 = yyj2556 > l
} else {
yyb2556 = r.CheckBreak()
}
if yyb2556 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2556-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 {
yym2559 := z.EncBinary()
_ = yym2559
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2560 := !z.EncBinary()
yy2arr2560 := z.EncBasicHandle().StructToArray
var yyq2560 [2]bool
_, _, _ = yysep2560, yyq2560, yy2arr2560
const yyr2560 bool = false
yyq2560[0] = x.IP != ""
yyq2560[1] = x.Hostname != ""
var yynn2560 int
if yyr2560 || yy2arr2560 {
r.EncodeArrayStart(2)
} else {
yynn2560 = 0
for _, b := range yyq2560 {
if b {
yynn2560++
}
}
r.EncodeMapStart(yynn2560)
yynn2560 = 0
}
if yyr2560 || yy2arr2560 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2560[0] {
yym2562 := z.EncBinary()
_ = yym2562
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2560[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ip"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2563 := z.EncBinary()
_ = yym2563
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
}
}
}
if yyr2560 || yy2arr2560 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2560[1] {
yym2565 := z.EncBinary()
_ = yym2565
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2560[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostname"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2566 := z.EncBinary()
_ = yym2566
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
}
}
}
if yyr2560 || yy2arr2560 {
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
yym2567 := z.DecBinary()
_ = yym2567
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2568 := r.ContainerType()
if yyct2568 == codecSelferValueTypeMap1234 {
yyl2568 := r.ReadMapStart()
if yyl2568 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2568, d)
}
} else if yyct2568 == codecSelferValueTypeArray1234 {
yyl2568 := r.ReadArrayStart()
if yyl2568 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2568, 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 yys2569Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2569Slc
var yyhl2569 bool = l >= 0
for yyj2569 := 0; ; yyj2569++ {
if yyhl2569 {
if yyj2569 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2569Slc = r.DecodeBytes(yys2569Slc, true, true)
yys2569 := string(yys2569Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2569 {
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, yys2569)
} // end switch yys2569
} // end for yyj2569
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 yyj2572 int
var yyb2572 bool
var yyhl2572 bool = l >= 0
yyj2572++
if yyhl2572 {
yyb2572 = yyj2572 > l
} else {
yyb2572 = r.CheckBreak()
}
if yyb2572 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.IP = ""
} else {
x.IP = string(r.DecodeString())
}
yyj2572++
if yyhl2572 {
yyb2572 = yyj2572 > l
} else {
yyb2572 = r.CheckBreak()
}
if yyb2572 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Hostname = ""
} else {
x.Hostname = string(r.DecodeString())
}
for {
yyj2572++
if yyhl2572 {
yyb2572 = yyj2572 > l
} else {
yyb2572 = r.CheckBreak()
}
if yyb2572 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2572-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 {
yym2575 := z.EncBinary()
_ = yym2575
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2576 := !z.EncBinary()
yy2arr2576 := z.EncBasicHandle().StructToArray
var yyq2576 [9]bool
_, _, _ = yysep2576, yyq2576, yy2arr2576
const yyr2576 bool = false
yyq2576[0] = x.Type != ""
yyq2576[3] = x.ClusterIP != ""
yyq2576[5] = len(x.ExternalIPs) != 0
yyq2576[6] = x.LoadBalancerIP != ""
yyq2576[7] = x.SessionAffinity != ""
yyq2576[8] = len(x.LoadBalancerSourceRanges) != 0
var yynn2576 int
if yyr2576 || yy2arr2576 {
r.EncodeArrayStart(9)
} else {
yynn2576 = 3
for _, b := range yyq2576 {
if b {
yynn2576++
}
}
r.EncodeMapStart(yynn2576)
yynn2576 = 0
}
if yyr2576 || yy2arr2576 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2576[0] {
x.Type.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2576[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Type.CodecEncodeSelf(e)
}
}
if yyr2576 || yy2arr2576 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Ports == nil {
r.EncodeNil()
} else {
yym2579 := z.EncBinary()
_ = yym2579
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 {
yym2580 := z.EncBinary()
_ = yym2580
if false {
} else {
h.encSliceServicePort(([]ServicePort)(x.Ports), e)
}
}
}
if yyr2576 || yy2arr2576 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Selector == nil {
r.EncodeNil()
} else {
yym2582 := z.EncBinary()
_ = yym2582
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 {
yym2583 := z.EncBinary()
_ = yym2583
if false {
} else {
z.F.EncMapStringStringV(x.Selector, false, e)
}
}
}
if yyr2576 || yy2arr2576 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2576[3] {
yym2585 := z.EncBinary()
_ = yym2585
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2576[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("clusterIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2586 := z.EncBinary()
_ = yym2586
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP))
}
}
}
if yyr2576 || yy2arr2576 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2588 := z.EncBinary()
_ = yym2588
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ExternalName))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ExternalName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2589 := z.EncBinary()
_ = yym2589
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ExternalName))
}
}
if yyr2576 || yy2arr2576 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2576[5] {
if x.ExternalIPs == nil {
r.EncodeNil()
} else {
yym2591 := z.EncBinary()
_ = yym2591
if false {
} else {
z.F.EncSliceStringV(x.ExternalIPs, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2576[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("externalIPs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ExternalIPs == nil {
r.EncodeNil()
} else {
yym2592 := z.EncBinary()
_ = yym2592
if false {
} else {
z.F.EncSliceStringV(x.ExternalIPs, false, e)
}
}
}
}
if yyr2576 || yy2arr2576 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2576[6] {
yym2594 := z.EncBinary()
_ = yym2594
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2576[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2595 := z.EncBinary()
_ = yym2595
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP))
}
}
}
if yyr2576 || yy2arr2576 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2576[7] {
x.SessionAffinity.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2576[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.SessionAffinity.CodecEncodeSelf(e)
}
}
if yyr2576 || yy2arr2576 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2576[8] {
if x.LoadBalancerSourceRanges == nil {
r.EncodeNil()
} else {
yym2598 := z.EncBinary()
_ = yym2598
if false {
} else {
z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2576[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("loadBalancerSourceRanges"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.LoadBalancerSourceRanges == nil {
r.EncodeNil()
} else {
yym2599 := z.EncBinary()
_ = yym2599
if false {
} else {
z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e)
}
}
}
}
if yyr2576 || yy2arr2576 {
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
yym2600 := z.DecBinary()
_ = yym2600
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2601 := r.ContainerType()
if yyct2601 == codecSelferValueTypeMap1234 {
yyl2601 := r.ReadMapStart()
if yyl2601 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2601, d)
}
} else if yyct2601 == codecSelferValueTypeArray1234 {
yyl2601 := r.ReadArrayStart()
if yyl2601 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2601, 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 yys2602Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2602Slc
var yyhl2602 bool = l >= 0
for yyj2602 := 0; ; yyj2602++ {
if yyhl2602 {
if yyj2602 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2602Slc = r.DecodeBytes(yys2602Slc, true, true)
yys2602 := string(yys2602Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2602 {
case "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = ServiceType(r.DecodeString())
}
case "ports":
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv2604 := &x.Ports
yym2605 := z.DecBinary()
_ = yym2605
if false {
} else {
h.decSliceServicePort((*[]ServicePort)(yyv2604), d)
}
}
case "selector":
if r.TryDecodeAsNil() {
x.Selector = nil
} else {
yyv2606 := &x.Selector
yym2607 := z.DecBinary()
_ = yym2607
if false {
} else {
z.F.DecMapStringStringX(yyv2606, false, d)
}
}
case "clusterIP":
if r.TryDecodeAsNil() {
x.ClusterIP = ""
} else {
x.ClusterIP = string(r.DecodeString())
}
case "ExternalName":
if r.TryDecodeAsNil() {
x.ExternalName = ""
} else {
x.ExternalName = string(r.DecodeString())
}
case "externalIPs":
if r.TryDecodeAsNil() {
x.ExternalIPs = nil
} else {
yyv2610 := &x.ExternalIPs
yym2611 := z.DecBinary()
_ = yym2611
if false {
} else {
z.F.DecSliceStringX(yyv2610, false, d)
}
}
case "loadBalancerIP":
if r.TryDecodeAsNil() {
x.LoadBalancerIP = ""
} else {
x.LoadBalancerIP = string(r.DecodeString())
}
case "sessionAffinity":
if r.TryDecodeAsNil() {
x.SessionAffinity = ""
} else {
x.SessionAffinity = ServiceAffinity(r.DecodeString())
}
case "loadBalancerSourceRanges":
if r.TryDecodeAsNil() {
x.LoadBalancerSourceRanges = nil
} else {
yyv2614 := &x.LoadBalancerSourceRanges
yym2615 := z.DecBinary()
_ = yym2615
if false {
} else {
z.F.DecSliceStringX(yyv2614, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2602)
} // end switch yys2602
} // end for yyj2602
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 yyj2616 int
var yyb2616 bool
var yyhl2616 bool = l >= 0
yyj2616++
if yyhl2616 {
yyb2616 = yyj2616 > l
} else {
yyb2616 = r.CheckBreak()
}
if yyb2616 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = ServiceType(r.DecodeString())
}
yyj2616++
if yyhl2616 {
yyb2616 = yyj2616 > l
} else {
yyb2616 = r.CheckBreak()
}
if yyb2616 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv2618 := &x.Ports
yym2619 := z.DecBinary()
_ = yym2619
if false {
} else {
h.decSliceServicePort((*[]ServicePort)(yyv2618), d)
}
}
yyj2616++
if yyhl2616 {
yyb2616 = yyj2616 > l
} else {
yyb2616 = r.CheckBreak()
}
if yyb2616 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Selector = nil
} else {
yyv2620 := &x.Selector
yym2621 := z.DecBinary()
_ = yym2621
if false {
} else {
z.F.DecMapStringStringX(yyv2620, false, d)
}
}
yyj2616++
if yyhl2616 {
yyb2616 = yyj2616 > l
} else {
yyb2616 = r.CheckBreak()
}
if yyb2616 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ClusterIP = ""
} else {
x.ClusterIP = string(r.DecodeString())
}
yyj2616++
if yyhl2616 {
yyb2616 = yyj2616 > l
} else {
yyb2616 = r.CheckBreak()
}
if yyb2616 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ExternalName = ""
} else {
x.ExternalName = string(r.DecodeString())
}
yyj2616++
if yyhl2616 {
yyb2616 = yyj2616 > l
} else {
yyb2616 = r.CheckBreak()
}
if yyb2616 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ExternalIPs = nil
} else {
yyv2624 := &x.ExternalIPs
yym2625 := z.DecBinary()
_ = yym2625
if false {
} else {
z.F.DecSliceStringX(yyv2624, false, d)
}
}
yyj2616++
if yyhl2616 {
yyb2616 = yyj2616 > l
} else {
yyb2616 = r.CheckBreak()
}
if yyb2616 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LoadBalancerIP = ""
} else {
x.LoadBalancerIP = string(r.DecodeString())
}
yyj2616++
if yyhl2616 {
yyb2616 = yyj2616 > l
} else {
yyb2616 = r.CheckBreak()
}
if yyb2616 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SessionAffinity = ""
} else {
x.SessionAffinity = ServiceAffinity(r.DecodeString())
}
yyj2616++
if yyhl2616 {
yyb2616 = yyj2616 > l
} else {
yyb2616 = r.CheckBreak()
}
if yyb2616 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LoadBalancerSourceRanges = nil
} else {
yyv2628 := &x.LoadBalancerSourceRanges
yym2629 := z.DecBinary()
_ = yym2629
if false {
} else {
z.F.DecSliceStringX(yyv2628, false, d)
}
}
for {
yyj2616++
if yyhl2616 {
yyb2616 = yyj2616 > l
} else {
yyb2616 = r.CheckBreak()
}
if yyb2616 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2616-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2630 := z.EncBinary()
_ = yym2630
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2631 := !z.EncBinary()
yy2arr2631 := z.EncBasicHandle().StructToArray
var yyq2631 [5]bool
_, _, _ = yysep2631, yyq2631, yy2arr2631
const yyr2631 bool = false
var yynn2631 int
if yyr2631 || yy2arr2631 {
r.EncodeArrayStart(5)
} else {
yynn2631 = 5
for _, b := range yyq2631 {
if b {
yynn2631++
}
}
r.EncodeMapStart(yynn2631)
yynn2631 = 0
}
if yyr2631 || yy2arr2631 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2633 := z.EncBinary()
_ = yym2633
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)
yym2634 := z.EncBinary()
_ = yym2634
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr2631 || yy2arr2631 {
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 yyr2631 || yy2arr2631 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2637 := z.EncBinary()
_ = yym2637
if false {
} else {
r.EncodeInt(int64(x.Port))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2638 := z.EncBinary()
_ = yym2638
if false {
} else {
r.EncodeInt(int64(x.Port))
}
}
if yyr2631 || yy2arr2631 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy2640 := &x.TargetPort
yym2641 := z.EncBinary()
_ = yym2641
if false {
} else if z.HasExtensions() && z.EncExt(yy2640) {
} else if !yym2641 && z.IsJSONHandle() {
z.EncJSONMarshal(yy2640)
} else {
z.EncFallback(yy2640)
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("targetPort"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2642 := &x.TargetPort
yym2643 := z.EncBinary()
_ = yym2643
if false {
} else if z.HasExtensions() && z.EncExt(yy2642) {
} else if !yym2643 && z.IsJSONHandle() {
z.EncJSONMarshal(yy2642)
} else {
z.EncFallback(yy2642)
}
}
if yyr2631 || yy2arr2631 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2645 := z.EncBinary()
_ = yym2645
if false {
} else {
r.EncodeInt(int64(x.NodePort))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodePort"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2646 := z.EncBinary()
_ = yym2646
if false {
} else {
r.EncodeInt(int64(x.NodePort))
}
}
if yyr2631 || yy2arr2631 {
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
yym2647 := z.DecBinary()
_ = yym2647
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2648 := r.ContainerType()
if yyct2648 == codecSelferValueTypeMap1234 {
yyl2648 := r.ReadMapStart()
if yyl2648 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2648, d)
}
} else if yyct2648 == codecSelferValueTypeArray1234 {
yyl2648 := r.ReadArrayStart()
if yyl2648 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2648, 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 yys2649Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2649Slc
var yyhl2649 bool = l >= 0
for yyj2649 := 0; ; yyj2649++ {
if yyhl2649 {
if yyj2649 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2649Slc = r.DecodeBytes(yys2649Slc, true, true)
yys2649 := string(yys2649Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2649 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "protocol":
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
case "port":
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int32(r.DecodeInt(32))
}
case "targetPort":
if r.TryDecodeAsNil() {
x.TargetPort = pkg4_intstr.IntOrString{}
} else {
yyv2653 := &x.TargetPort
yym2654 := z.DecBinary()
_ = yym2654
if false {
} else if z.HasExtensions() && z.DecExt(yyv2653) {
} else if !yym2654 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv2653)
} else {
z.DecFallback(yyv2653, false)
}
}
case "nodePort":
if r.TryDecodeAsNil() {
x.NodePort = 0
} else {
x.NodePort = int32(r.DecodeInt(32))
}
default:
z.DecStructFieldNotFound(-1, yys2649)
} // end switch yys2649
} // end for yyj2649
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 yyj2656 int
var yyb2656 bool
var yyhl2656 bool = l >= 0
yyj2656++
if yyhl2656 {
yyb2656 = yyj2656 > l
} else {
yyb2656 = r.CheckBreak()
}
if yyb2656 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj2656++
if yyhl2656 {
yyb2656 = yyj2656 > l
} else {
yyb2656 = r.CheckBreak()
}
if yyb2656 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
yyj2656++
if yyhl2656 {
yyb2656 = yyj2656 > l
} else {
yyb2656 = r.CheckBreak()
}
if yyb2656 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int32(r.DecodeInt(32))
}
yyj2656++
if yyhl2656 {
yyb2656 = yyj2656 > l
} else {
yyb2656 = r.CheckBreak()
}
if yyb2656 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TargetPort = pkg4_intstr.IntOrString{}
} else {
yyv2660 := &x.TargetPort
yym2661 := z.DecBinary()
_ = yym2661
if false {
} else if z.HasExtensions() && z.DecExt(yyv2660) {
} else if !yym2661 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv2660)
} else {
z.DecFallback(yyv2660, false)
}
}
yyj2656++
if yyhl2656 {
yyb2656 = yyj2656 > l
} else {
yyb2656 = r.CheckBreak()
}
if yyb2656 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodePort = 0
} else {
x.NodePort = int32(r.DecodeInt(32))
}
for {
yyj2656++
if yyhl2656 {
yyb2656 = yyj2656 > l
} else {
yyb2656 = r.CheckBreak()
}
if yyb2656 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2656-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 {
yym2663 := z.EncBinary()
_ = yym2663
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2664 := !z.EncBinary()
yy2arr2664 := z.EncBasicHandle().StructToArray
var yyq2664 [5]bool
_, _, _ = yysep2664, yyq2664, yy2arr2664
const yyr2664 bool = false
yyq2664[0] = x.Kind != ""
yyq2664[1] = x.APIVersion != ""
yyq2664[2] = true
yyq2664[3] = true
yyq2664[4] = true
var yynn2664 int
if yyr2664 || yy2arr2664 {
r.EncodeArrayStart(5)
} else {
yynn2664 = 0
for _, b := range yyq2664 {
if b {
yynn2664++
}
}
r.EncodeMapStart(yynn2664)
yynn2664 = 0
}
if yyr2664 || yy2arr2664 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2664[0] {
yym2666 := z.EncBinary()
_ = yym2666
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2664[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2667 := z.EncBinary()
_ = yym2667
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2664 || yy2arr2664 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2664[1] {
yym2669 := z.EncBinary()
_ = yym2669
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2664[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2670 := z.EncBinary()
_ = yym2670
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2664 || yy2arr2664 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2664[2] {
yy2672 := &x.ObjectMeta
yy2672.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2664[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2673 := &x.ObjectMeta
yy2673.CodecEncodeSelf(e)
}
}
if yyr2664 || yy2arr2664 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2664[3] {
yy2675 := &x.Spec
yy2675.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2664[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2676 := &x.Spec
yy2676.CodecEncodeSelf(e)
}
}
if yyr2664 || yy2arr2664 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2664[4] {
yy2678 := &x.Status
yy2678.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2664[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2679 := &x.Status
yy2679.CodecEncodeSelf(e)
}
}
if yyr2664 || yy2arr2664 {
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
yym2680 := z.DecBinary()
_ = yym2680
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2681 := r.ContainerType()
if yyct2681 == codecSelferValueTypeMap1234 {
yyl2681 := r.ReadMapStart()
if yyl2681 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2681, d)
}
} else if yyct2681 == codecSelferValueTypeArray1234 {
yyl2681 := r.ReadArrayStart()
if yyl2681 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2681, 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 yys2682Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2682Slc
var yyhl2682 bool = l >= 0
for yyj2682 := 0; ; yyj2682++ {
if yyhl2682 {
if yyj2682 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2682Slc = r.DecodeBytes(yys2682Slc, true, true)
yys2682 := string(yys2682Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2682 {
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 {
yyv2685 := &x.ObjectMeta
yyv2685.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = ServiceSpec{}
} else {
yyv2686 := &x.Spec
yyv2686.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = ServiceStatus{}
} else {
yyv2687 := &x.Status
yyv2687.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2682)
} // end switch yys2682
} // end for yyj2682
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 yyj2688 int
var yyb2688 bool
var yyhl2688 bool = l >= 0
yyj2688++
if yyhl2688 {
yyb2688 = yyj2688 > l
} else {
yyb2688 = r.CheckBreak()
}
if yyb2688 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2688++
if yyhl2688 {
yyb2688 = yyj2688 > l
} else {
yyb2688 = r.CheckBreak()
}
if yyb2688 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2688++
if yyhl2688 {
yyb2688 = yyj2688 > l
} else {
yyb2688 = r.CheckBreak()
}
if yyb2688 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2691 := &x.ObjectMeta
yyv2691.CodecDecodeSelf(d)
}
yyj2688++
if yyhl2688 {
yyb2688 = yyj2688 > l
} else {
yyb2688 = r.CheckBreak()
}
if yyb2688 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = ServiceSpec{}
} else {
yyv2692 := &x.Spec
yyv2692.CodecDecodeSelf(d)
}
yyj2688++
if yyhl2688 {
yyb2688 = yyj2688 > l
} else {
yyb2688 = r.CheckBreak()
}
if yyb2688 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ServiceStatus{}
} else {
yyv2693 := &x.Status
yyv2693.CodecDecodeSelf(d)
}
for {
yyj2688++
if yyhl2688 {
yyb2688 = yyj2688 > l
} else {
yyb2688 = r.CheckBreak()
}
if yyb2688 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2688-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 {
yym2694 := z.EncBinary()
_ = yym2694
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2695 := !z.EncBinary()
yy2arr2695 := z.EncBasicHandle().StructToArray
var yyq2695 [5]bool
_, _, _ = yysep2695, yyq2695, yy2arr2695
const yyr2695 bool = false
yyq2695[0] = x.Kind != ""
yyq2695[1] = x.APIVersion != ""
yyq2695[2] = true
yyq2695[4] = len(x.ImagePullSecrets) != 0
var yynn2695 int
if yyr2695 || yy2arr2695 {
r.EncodeArrayStart(5)
} else {
yynn2695 = 1
for _, b := range yyq2695 {
if b {
yynn2695++
}
}
r.EncodeMapStart(yynn2695)
yynn2695 = 0
}
if yyr2695 || yy2arr2695 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2695[0] {
yym2697 := z.EncBinary()
_ = yym2697
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2695[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2698 := z.EncBinary()
_ = yym2698
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2695 || yy2arr2695 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2695[1] {
yym2700 := z.EncBinary()
_ = yym2700
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2695[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2701 := z.EncBinary()
_ = yym2701
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2695 || yy2arr2695 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2695[2] {
yy2703 := &x.ObjectMeta
yy2703.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2695[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2704 := &x.ObjectMeta
yy2704.CodecEncodeSelf(e)
}
}
if yyr2695 || yy2arr2695 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Secrets == nil {
r.EncodeNil()
} else {
yym2706 := z.EncBinary()
_ = yym2706
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 {
yym2707 := z.EncBinary()
_ = yym2707
if false {
} else {
h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e)
}
}
}
if yyr2695 || yy2arr2695 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2695[4] {
if x.ImagePullSecrets == nil {
r.EncodeNil()
} else {
yym2709 := z.EncBinary()
_ = yym2709
if false {
} else {
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2695[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ImagePullSecrets == nil {
r.EncodeNil()
} else {
yym2710 := z.EncBinary()
_ = yym2710
if false {
} else {
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
}
}
}
}
if yyr2695 || yy2arr2695 {
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
yym2711 := z.DecBinary()
_ = yym2711
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2712 := r.ContainerType()
if yyct2712 == codecSelferValueTypeMap1234 {
yyl2712 := r.ReadMapStart()
if yyl2712 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2712, d)
}
} else if yyct2712 == codecSelferValueTypeArray1234 {
yyl2712 := r.ReadArrayStart()
if yyl2712 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2712, 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 yys2713Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2713Slc
var yyhl2713 bool = l >= 0
for yyj2713 := 0; ; yyj2713++ {
if yyhl2713 {
if yyj2713 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2713Slc = r.DecodeBytes(yys2713Slc, true, true)
yys2713 := string(yys2713Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2713 {
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 {
yyv2716 := &x.ObjectMeta
yyv2716.CodecDecodeSelf(d)
}
case "secrets":
if r.TryDecodeAsNil() {
x.Secrets = nil
} else {
yyv2717 := &x.Secrets
yym2718 := z.DecBinary()
_ = yym2718
if false {
} else {
h.decSliceObjectReference((*[]ObjectReference)(yyv2717), d)
}
}
case "imagePullSecrets":
if r.TryDecodeAsNil() {
x.ImagePullSecrets = nil
} else {
yyv2719 := &x.ImagePullSecrets
yym2720 := z.DecBinary()
_ = yym2720
if false {
} else {
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2719), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2713)
} // end switch yys2713
} // end for yyj2713
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 yyj2721 int
var yyb2721 bool
var yyhl2721 bool = l >= 0
yyj2721++
if yyhl2721 {
yyb2721 = yyj2721 > l
} else {
yyb2721 = r.CheckBreak()
}
if yyb2721 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2721++
if yyhl2721 {
yyb2721 = yyj2721 > l
} else {
yyb2721 = r.CheckBreak()
}
if yyb2721 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2721++
if yyhl2721 {
yyb2721 = yyj2721 > l
} else {
yyb2721 = r.CheckBreak()
}
if yyb2721 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2724 := &x.ObjectMeta
yyv2724.CodecDecodeSelf(d)
}
yyj2721++
if yyhl2721 {
yyb2721 = yyj2721 > l
} else {
yyb2721 = r.CheckBreak()
}
if yyb2721 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Secrets = nil
} else {
yyv2725 := &x.Secrets
yym2726 := z.DecBinary()
_ = yym2726
if false {
} else {
h.decSliceObjectReference((*[]ObjectReference)(yyv2725), d)
}
}
yyj2721++
if yyhl2721 {
yyb2721 = yyj2721 > l
} else {
yyb2721 = r.CheckBreak()
}
if yyb2721 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ImagePullSecrets = nil
} else {
yyv2727 := &x.ImagePullSecrets
yym2728 := z.DecBinary()
_ = yym2728
if false {
} else {
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2727), d)
}
}
for {
yyj2721++
if yyhl2721 {
yyb2721 = yyj2721 > l
} else {
yyb2721 = r.CheckBreak()
}
if yyb2721 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2721-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 {
yym2729 := z.EncBinary()
_ = yym2729
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2730 := !z.EncBinary()
yy2arr2730 := z.EncBasicHandle().StructToArray
var yyq2730 [4]bool
_, _, _ = yysep2730, yyq2730, yy2arr2730
const yyr2730 bool = false
yyq2730[0] = x.Kind != ""
yyq2730[1] = x.APIVersion != ""
yyq2730[2] = true
var yynn2730 int
if yyr2730 || yy2arr2730 {
r.EncodeArrayStart(4)
} else {
yynn2730 = 1
for _, b := range yyq2730 {
if b {
yynn2730++
}
}
r.EncodeMapStart(yynn2730)
yynn2730 = 0
}
if yyr2730 || yy2arr2730 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2730[0] {
yym2732 := z.EncBinary()
_ = yym2732
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2730[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2733 := z.EncBinary()
_ = yym2733
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2730 || yy2arr2730 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2730[1] {
yym2735 := z.EncBinary()
_ = yym2735
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2730[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2736 := z.EncBinary()
_ = yym2736
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2730 || yy2arr2730 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2730[2] {
yy2738 := &x.ListMeta
yym2739 := z.EncBinary()
_ = yym2739
if false {
} else if z.HasExtensions() && z.EncExt(yy2738) {
} else {
z.EncFallback(yy2738)
}
} else {
r.EncodeNil()
}
} else {
if yyq2730[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2740 := &x.ListMeta
yym2741 := z.EncBinary()
_ = yym2741
if false {
} else if z.HasExtensions() && z.EncExt(yy2740) {
} else {
z.EncFallback(yy2740)
}
}
}
if yyr2730 || yy2arr2730 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2743 := z.EncBinary()
_ = yym2743
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 {
yym2744 := z.EncBinary()
_ = yym2744
if false {
} else {
h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e)
}
}
}
if yyr2730 || yy2arr2730 {
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
yym2745 := z.DecBinary()
_ = yym2745
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2746 := r.ContainerType()
if yyct2746 == codecSelferValueTypeMap1234 {
yyl2746 := r.ReadMapStart()
if yyl2746 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2746, d)
}
} else if yyct2746 == codecSelferValueTypeArray1234 {
yyl2746 := r.ReadArrayStart()
if yyl2746 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2746, 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 yys2747Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2747Slc
var yyhl2747 bool = l >= 0
for yyj2747 := 0; ; yyj2747++ {
if yyhl2747 {
if yyj2747 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2747Slc = r.DecodeBytes(yys2747Slc, true, true)
yys2747 := string(yys2747Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2747 {
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 {
yyv2750 := &x.ListMeta
yym2751 := z.DecBinary()
_ = yym2751
if false {
} else if z.HasExtensions() && z.DecExt(yyv2750) {
} else {
z.DecFallback(yyv2750, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2752 := &x.Items
yym2753 := z.DecBinary()
_ = yym2753
if false {
} else {
h.decSliceServiceAccount((*[]ServiceAccount)(yyv2752), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2747)
} // end switch yys2747
} // end for yyj2747
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 yyj2754 int
var yyb2754 bool
var yyhl2754 bool = l >= 0
yyj2754++
if yyhl2754 {
yyb2754 = yyj2754 > l
} else {
yyb2754 = r.CheckBreak()
}
if yyb2754 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2754++
if yyhl2754 {
yyb2754 = yyj2754 > l
} else {
yyb2754 = r.CheckBreak()
}
if yyb2754 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2754++
if yyhl2754 {
yyb2754 = yyj2754 > l
} else {
yyb2754 = r.CheckBreak()
}
if yyb2754 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2757 := &x.ListMeta
yym2758 := z.DecBinary()
_ = yym2758
if false {
} else if z.HasExtensions() && z.DecExt(yyv2757) {
} else {
z.DecFallback(yyv2757, false)
}
}
yyj2754++
if yyhl2754 {
yyb2754 = yyj2754 > l
} else {
yyb2754 = r.CheckBreak()
}
if yyb2754 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2759 := &x.Items
yym2760 := z.DecBinary()
_ = yym2760
if false {
} else {
h.decSliceServiceAccount((*[]ServiceAccount)(yyv2759), d)
}
}
for {
yyj2754++
if yyhl2754 {
yyb2754 = yyj2754 > l
} else {
yyb2754 = r.CheckBreak()
}
if yyb2754 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2754-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 {
yym2761 := z.EncBinary()
_ = yym2761
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2762 := !z.EncBinary()
yy2arr2762 := z.EncBasicHandle().StructToArray
var yyq2762 [4]bool
_, _, _ = yysep2762, yyq2762, yy2arr2762
const yyr2762 bool = false
yyq2762[0] = x.Kind != ""
yyq2762[1] = x.APIVersion != ""
yyq2762[2] = true
var yynn2762 int
if yyr2762 || yy2arr2762 {
r.EncodeArrayStart(4)
} else {
yynn2762 = 1
for _, b := range yyq2762 {
if b {
yynn2762++
}
}
r.EncodeMapStart(yynn2762)
yynn2762 = 0
}
if yyr2762 || yy2arr2762 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2762[0] {
yym2764 := z.EncBinary()
_ = yym2764
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2762[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2765 := z.EncBinary()
_ = yym2765
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2762 || yy2arr2762 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2762[1] {
yym2767 := z.EncBinary()
_ = yym2767
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2762[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2768 := z.EncBinary()
_ = yym2768
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2762 || yy2arr2762 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2762[2] {
yy2770 := &x.ObjectMeta
yy2770.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2762[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2771 := &x.ObjectMeta
yy2771.CodecEncodeSelf(e)
}
}
if yyr2762 || yy2arr2762 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Subsets == nil {
r.EncodeNil()
} else {
yym2773 := z.EncBinary()
_ = yym2773
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 {
yym2774 := z.EncBinary()
_ = yym2774
if false {
} else {
h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e)
}
}
}
if yyr2762 || yy2arr2762 {
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
yym2775 := z.DecBinary()
_ = yym2775
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2776 := r.ContainerType()
if yyct2776 == codecSelferValueTypeMap1234 {
yyl2776 := r.ReadMapStart()
if yyl2776 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2776, d)
}
} else if yyct2776 == codecSelferValueTypeArray1234 {
yyl2776 := r.ReadArrayStart()
if yyl2776 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2776, 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 yys2777Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2777Slc
var yyhl2777 bool = l >= 0
for yyj2777 := 0; ; yyj2777++ {
if yyhl2777 {
if yyj2777 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2777Slc = r.DecodeBytes(yys2777Slc, true, true)
yys2777 := string(yys2777Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2777 {
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 {
yyv2780 := &x.ObjectMeta
yyv2780.CodecDecodeSelf(d)
}
case "Subsets":
if r.TryDecodeAsNil() {
x.Subsets = nil
} else {
yyv2781 := &x.Subsets
yym2782 := z.DecBinary()
_ = yym2782
if false {
} else {
h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2781), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2777)
} // end switch yys2777
} // end for yyj2777
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 yyj2783 int
var yyb2783 bool
var yyhl2783 bool = l >= 0
yyj2783++
if yyhl2783 {
yyb2783 = yyj2783 > l
} else {
yyb2783 = r.CheckBreak()
}
if yyb2783 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2783++
if yyhl2783 {
yyb2783 = yyj2783 > l
} else {
yyb2783 = r.CheckBreak()
}
if yyb2783 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2783++
if yyhl2783 {
yyb2783 = yyj2783 > l
} else {
yyb2783 = r.CheckBreak()
}
if yyb2783 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2786 := &x.ObjectMeta
yyv2786.CodecDecodeSelf(d)
}
yyj2783++
if yyhl2783 {
yyb2783 = yyj2783 > l
} else {
yyb2783 = r.CheckBreak()
}
if yyb2783 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Subsets = nil
} else {
yyv2787 := &x.Subsets
yym2788 := z.DecBinary()
_ = yym2788
if false {
} else {
h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2787), d)
}
}
for {
yyj2783++
if yyhl2783 {
yyb2783 = yyj2783 > l
} else {
yyb2783 = r.CheckBreak()
}
if yyb2783 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2783-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 {
yym2789 := z.EncBinary()
_ = yym2789
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2790 := !z.EncBinary()
yy2arr2790 := z.EncBasicHandle().StructToArray
var yyq2790 [3]bool
_, _, _ = yysep2790, yyq2790, yy2arr2790
const yyr2790 bool = false
var yynn2790 int
if yyr2790 || yy2arr2790 {
r.EncodeArrayStart(3)
} else {
yynn2790 = 3
for _, b := range yyq2790 {
if b {
yynn2790++
}
}
r.EncodeMapStart(yynn2790)
yynn2790 = 0
}
if yyr2790 || yy2arr2790 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Addresses == nil {
r.EncodeNil()
} else {
yym2792 := z.EncBinary()
_ = yym2792
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 {
yym2793 := z.EncBinary()
_ = yym2793
if false {
} else {
h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e)
}
}
}
if yyr2790 || yy2arr2790 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.NotReadyAddresses == nil {
r.EncodeNil()
} else {
yym2795 := z.EncBinary()
_ = yym2795
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 {
yym2796 := z.EncBinary()
_ = yym2796
if false {
} else {
h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e)
}
}
}
if yyr2790 || yy2arr2790 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Ports == nil {
r.EncodeNil()
} else {
yym2798 := z.EncBinary()
_ = yym2798
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 {
yym2799 := z.EncBinary()
_ = yym2799
if false {
} else {
h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e)
}
}
}
if yyr2790 || yy2arr2790 {
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
yym2800 := z.DecBinary()
_ = yym2800
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2801 := r.ContainerType()
if yyct2801 == codecSelferValueTypeMap1234 {
yyl2801 := r.ReadMapStart()
if yyl2801 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2801, d)
}
} else if yyct2801 == codecSelferValueTypeArray1234 {
yyl2801 := r.ReadArrayStart()
if yyl2801 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2801, 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 yys2802Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2802Slc
var yyhl2802 bool = l >= 0
for yyj2802 := 0; ; yyj2802++ {
if yyhl2802 {
if yyj2802 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2802Slc = r.DecodeBytes(yys2802Slc, true, true)
yys2802 := string(yys2802Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2802 {
case "Addresses":
if r.TryDecodeAsNil() {
x.Addresses = nil
} else {
yyv2803 := &x.Addresses
yym2804 := z.DecBinary()
_ = yym2804
if false {
} else {
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2803), d)
}
}
case "NotReadyAddresses":
if r.TryDecodeAsNil() {
x.NotReadyAddresses = nil
} else {
yyv2805 := &x.NotReadyAddresses
yym2806 := z.DecBinary()
_ = yym2806
if false {
} else {
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2805), d)
}
}
case "Ports":
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv2807 := &x.Ports
yym2808 := z.DecBinary()
_ = yym2808
if false {
} else {
h.decSliceEndpointPort((*[]EndpointPort)(yyv2807), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2802)
} // end switch yys2802
} // end for yyj2802
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 yyj2809 int
var yyb2809 bool
var yyhl2809 bool = l >= 0
yyj2809++
if yyhl2809 {
yyb2809 = yyj2809 > l
} else {
yyb2809 = r.CheckBreak()
}
if yyb2809 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Addresses = nil
} else {
yyv2810 := &x.Addresses
yym2811 := z.DecBinary()
_ = yym2811
if false {
} else {
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2810), d)
}
}
yyj2809++
if yyhl2809 {
yyb2809 = yyj2809 > l
} else {
yyb2809 = r.CheckBreak()
}
if yyb2809 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NotReadyAddresses = nil
} else {
yyv2812 := &x.NotReadyAddresses
yym2813 := z.DecBinary()
_ = yym2813
if false {
} else {
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2812), d)
}
}
yyj2809++
if yyhl2809 {
yyb2809 = yyj2809 > l
} else {
yyb2809 = r.CheckBreak()
}
if yyb2809 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv2814 := &x.Ports
yym2815 := z.DecBinary()
_ = yym2815
if false {
} else {
h.decSliceEndpointPort((*[]EndpointPort)(yyv2814), d)
}
}
for {
yyj2809++
if yyhl2809 {
yyb2809 = yyj2809 > l
} else {
yyb2809 = r.CheckBreak()
}
if yyb2809 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2809-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 {
yym2816 := z.EncBinary()
_ = yym2816
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2817 := !z.EncBinary()
yy2arr2817 := z.EncBasicHandle().StructToArray
var yyq2817 [4]bool
_, _, _ = yysep2817, yyq2817, yy2arr2817
const yyr2817 bool = false
yyq2817[1] = x.Hostname != ""
yyq2817[2] = x.NodeName != nil
var yynn2817 int
if yyr2817 || yy2arr2817 {
r.EncodeArrayStart(4)
} else {
yynn2817 = 2
for _, b := range yyq2817 {
if b {
yynn2817++
}
}
r.EncodeMapStart(yynn2817)
yynn2817 = 0
}
if yyr2817 || yy2arr2817 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2819 := z.EncBinary()
_ = yym2819
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)
yym2820 := z.EncBinary()
_ = yym2820
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
}
}
if yyr2817 || yy2arr2817 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2817[1] {
yym2822 := z.EncBinary()
_ = yym2822
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2817[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostname"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2823 := z.EncBinary()
_ = yym2823
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
}
}
}
if yyr2817 || yy2arr2817 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2817[2] {
if x.NodeName == nil {
r.EncodeNil()
} else {
yy2825 := *x.NodeName
yym2826 := z.EncBinary()
_ = yym2826
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(yy2825))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2817[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.NodeName == nil {
r.EncodeNil()
} else {
yy2827 := *x.NodeName
yym2828 := z.EncBinary()
_ = yym2828
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(yy2827))
}
}
}
}
if yyr2817 || yy2arr2817 {
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 yyr2817 || yy2arr2817 {
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
yym2830 := z.DecBinary()
_ = yym2830
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2831 := r.ContainerType()
if yyct2831 == codecSelferValueTypeMap1234 {
yyl2831 := r.ReadMapStart()
if yyl2831 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2831, d)
}
} else if yyct2831 == codecSelferValueTypeArray1234 {
yyl2831 := r.ReadArrayStart()
if yyl2831 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2831, 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 yys2832Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2832Slc
var yyhl2832 bool = l >= 0
for yyj2832 := 0; ; yyj2832++ {
if yyhl2832 {
if yyj2832 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2832Slc = r.DecodeBytes(yys2832Slc, true, true)
yys2832 := string(yys2832Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2832 {
case "IP":
if r.TryDecodeAsNil() {
x.IP = ""
} else {
x.IP = string(r.DecodeString())
}
case "hostname":
if r.TryDecodeAsNil() {
x.Hostname = ""
} else {
x.Hostname = string(r.DecodeString())
}
case "nodeName":
if r.TryDecodeAsNil() {
if x.NodeName != nil {
x.NodeName = nil
}
} else {
if x.NodeName == nil {
x.NodeName = new(string)
}
yym2836 := z.DecBinary()
_ = yym2836
if false {
} else {
*((*string)(x.NodeName)) = r.DecodeString()
}
}
case "TargetRef":
if r.TryDecodeAsNil() {
if x.TargetRef != nil {
x.TargetRef = nil
}
} else {
if x.TargetRef == nil {
x.TargetRef = new(ObjectReference)
}
x.TargetRef.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2832)
} // end switch yys2832
} // end for yyj2832
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 yyj2838 int
var yyb2838 bool
var yyhl2838 bool = l >= 0
yyj2838++
if yyhl2838 {
yyb2838 = yyj2838 > l
} else {
yyb2838 = r.CheckBreak()
}
if yyb2838 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.IP = ""
} else {
x.IP = string(r.DecodeString())
}
yyj2838++
if yyhl2838 {
yyb2838 = yyj2838 > l
} else {
yyb2838 = r.CheckBreak()
}
if yyb2838 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Hostname = ""
} else {
x.Hostname = string(r.DecodeString())
}
yyj2838++
if yyhl2838 {
yyb2838 = yyj2838 > l
} else {
yyb2838 = r.CheckBreak()
}
if yyb2838 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.NodeName != nil {
x.NodeName = nil
}
} else {
if x.NodeName == nil {
x.NodeName = new(string)
}
yym2842 := z.DecBinary()
_ = yym2842
if false {
} else {
*((*string)(x.NodeName)) = r.DecodeString()
}
}
yyj2838++
if yyhl2838 {
yyb2838 = yyj2838 > l
} else {
yyb2838 = r.CheckBreak()
}
if yyb2838 {
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 {
yyj2838++
if yyhl2838 {
yyb2838 = yyj2838 > l
} else {
yyb2838 = r.CheckBreak()
}
if yyb2838 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2838-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 {
yym2844 := z.EncBinary()
_ = yym2844
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2845 := !z.EncBinary()
yy2arr2845 := z.EncBasicHandle().StructToArray
var yyq2845 [3]bool
_, _, _ = yysep2845, yyq2845, yy2arr2845
const yyr2845 bool = false
var yynn2845 int
if yyr2845 || yy2arr2845 {
r.EncodeArrayStart(3)
} else {
yynn2845 = 3
for _, b := range yyq2845 {
if b {
yynn2845++
}
}
r.EncodeMapStart(yynn2845)
yynn2845 = 0
}
if yyr2845 || yy2arr2845 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2847 := z.EncBinary()
_ = yym2847
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)
yym2848 := z.EncBinary()
_ = yym2848
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr2845 || yy2arr2845 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2850 := z.EncBinary()
_ = yym2850
if false {
} else {
r.EncodeInt(int64(x.Port))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2851 := z.EncBinary()
_ = yym2851
if false {
} else {
r.EncodeInt(int64(x.Port))
}
}
if yyr2845 || yy2arr2845 {
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 yyr2845 || yy2arr2845 {
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
yym2853 := z.DecBinary()
_ = yym2853
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2854 := r.ContainerType()
if yyct2854 == codecSelferValueTypeMap1234 {
yyl2854 := r.ReadMapStart()
if yyl2854 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2854, d)
}
} else if yyct2854 == codecSelferValueTypeArray1234 {
yyl2854 := r.ReadArrayStart()
if yyl2854 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2854, 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 yys2855Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2855Slc
var yyhl2855 bool = l >= 0
for yyj2855 := 0; ; yyj2855++ {
if yyhl2855 {
if yyj2855 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2855Slc = r.DecodeBytes(yys2855Slc, true, true)
yys2855 := string(yys2855Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2855 {
case "Name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "Port":
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int32(r.DecodeInt(32))
}
case "Protocol":
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys2855)
} // end switch yys2855
} // end for yyj2855
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 yyj2859 int
var yyb2859 bool
var yyhl2859 bool = l >= 0
yyj2859++
if yyhl2859 {
yyb2859 = yyj2859 > l
} else {
yyb2859 = r.CheckBreak()
}
if yyb2859 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj2859++
if yyhl2859 {
yyb2859 = yyj2859 > l
} else {
yyb2859 = r.CheckBreak()
}
if yyb2859 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int32(r.DecodeInt(32))
}
yyj2859++
if yyhl2859 {
yyb2859 = yyj2859 > l
} else {
yyb2859 = r.CheckBreak()
}
if yyb2859 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
for {
yyj2859++
if yyhl2859 {
yyb2859 = yyj2859 > l
} else {
yyb2859 = r.CheckBreak()
}
if yyb2859 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2859-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 {
yym2863 := z.EncBinary()
_ = yym2863
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2864 := !z.EncBinary()
yy2arr2864 := z.EncBasicHandle().StructToArray
var yyq2864 [4]bool
_, _, _ = yysep2864, yyq2864, yy2arr2864
const yyr2864 bool = false
yyq2864[0] = x.Kind != ""
yyq2864[1] = x.APIVersion != ""
yyq2864[2] = true
var yynn2864 int
if yyr2864 || yy2arr2864 {
r.EncodeArrayStart(4)
} else {
yynn2864 = 1
for _, b := range yyq2864 {
if b {
yynn2864++
}
}
r.EncodeMapStart(yynn2864)
yynn2864 = 0
}
if yyr2864 || yy2arr2864 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2864[0] {
yym2866 := z.EncBinary()
_ = yym2866
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2864[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2867 := z.EncBinary()
_ = yym2867
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2864 || yy2arr2864 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2864[1] {
yym2869 := z.EncBinary()
_ = yym2869
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2864[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2870 := z.EncBinary()
_ = yym2870
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2864 || yy2arr2864 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2864[2] {
yy2872 := &x.ListMeta
yym2873 := z.EncBinary()
_ = yym2873
if false {
} else if z.HasExtensions() && z.EncExt(yy2872) {
} else {
z.EncFallback(yy2872)
}
} else {
r.EncodeNil()
}
} else {
if yyq2864[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2874 := &x.ListMeta
yym2875 := z.EncBinary()
_ = yym2875
if false {
} else if z.HasExtensions() && z.EncExt(yy2874) {
} else {
z.EncFallback(yy2874)
}
}
}
if yyr2864 || yy2arr2864 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2877 := z.EncBinary()
_ = yym2877
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 {
yym2878 := z.EncBinary()
_ = yym2878
if false {
} else {
h.encSliceEndpoints(([]Endpoints)(x.Items), e)
}
}
}
if yyr2864 || yy2arr2864 {
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
yym2879 := z.DecBinary()
_ = yym2879
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2880 := r.ContainerType()
if yyct2880 == codecSelferValueTypeMap1234 {
yyl2880 := r.ReadMapStart()
if yyl2880 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2880, d)
}
} else if yyct2880 == codecSelferValueTypeArray1234 {
yyl2880 := r.ReadArrayStart()
if yyl2880 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2880, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *EndpointsList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys2881Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2881Slc
var yyhl2881 bool = l >= 0
for yyj2881 := 0; ; yyj2881++ {
if yyhl2881 {
if yyj2881 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2881Slc = r.DecodeBytes(yys2881Slc, true, true)
yys2881 := string(yys2881Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2881 {
case "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 {
yyv2884 := &x.ListMeta
yym2885 := z.DecBinary()
_ = yym2885
if false {
} else if z.HasExtensions() && z.DecExt(yyv2884) {
} else {
z.DecFallback(yyv2884, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2886 := &x.Items
yym2887 := z.DecBinary()
_ = yym2887
if false {
} else {
h.decSliceEndpoints((*[]Endpoints)(yyv2886), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2881)
} // end switch yys2881
} // end for yyj2881
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 yyj2888 int
var yyb2888 bool
var yyhl2888 bool = l >= 0
yyj2888++
if yyhl2888 {
yyb2888 = yyj2888 > l
} else {
yyb2888 = r.CheckBreak()
}
if yyb2888 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2888++
if yyhl2888 {
yyb2888 = yyj2888 > l
} else {
yyb2888 = r.CheckBreak()
}
if yyb2888 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2888++
if yyhl2888 {
yyb2888 = yyj2888 > l
} else {
yyb2888 = r.CheckBreak()
}
if yyb2888 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2891 := &x.ListMeta
yym2892 := z.DecBinary()
_ = yym2892
if false {
} else if z.HasExtensions() && z.DecExt(yyv2891) {
} else {
z.DecFallback(yyv2891, false)
}
}
yyj2888++
if yyhl2888 {
yyb2888 = yyj2888 > l
} else {
yyb2888 = r.CheckBreak()
}
if yyb2888 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2893 := &x.Items
yym2894 := z.DecBinary()
_ = yym2894
if false {
} else {
h.decSliceEndpoints((*[]Endpoints)(yyv2893), d)
}
}
for {
yyj2888++
if yyhl2888 {
yyb2888 = yyj2888 > l
} else {
yyb2888 = r.CheckBreak()
}
if yyb2888 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2888-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 {
yym2895 := z.EncBinary()
_ = yym2895
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2896 := !z.EncBinary()
yy2arr2896 := z.EncBasicHandle().StructToArray
var yyq2896 [4]bool
_, _, _ = yysep2896, yyq2896, yy2arr2896
const yyr2896 bool = false
yyq2896[0] = x.PodCIDR != ""
yyq2896[1] = x.ExternalID != ""
yyq2896[2] = x.ProviderID != ""
yyq2896[3] = x.Unschedulable != false
var yynn2896 int
if yyr2896 || yy2arr2896 {
r.EncodeArrayStart(4)
} else {
yynn2896 = 0
for _, b := range yyq2896 {
if b {
yynn2896++
}
}
r.EncodeMapStart(yynn2896)
yynn2896 = 0
}
if yyr2896 || yy2arr2896 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2896[0] {
yym2898 := z.EncBinary()
_ = yym2898
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2896[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("podCIDR"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2899 := z.EncBinary()
_ = yym2899
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR))
}
}
}
if yyr2896 || yy2arr2896 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2896[1] {
yym2901 := z.EncBinary()
_ = yym2901
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2896[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("externalID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2902 := z.EncBinary()
_ = yym2902
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID))
}
}
}
if yyr2896 || yy2arr2896 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2896[2] {
yym2904 := z.EncBinary()
_ = yym2904
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2896[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("providerID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2905 := z.EncBinary()
_ = yym2905
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID))
}
}
}
if yyr2896 || yy2arr2896 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2896[3] {
yym2907 := z.EncBinary()
_ = yym2907
if false {
} else {
r.EncodeBool(bool(x.Unschedulable))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq2896[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("unschedulable"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2908 := z.EncBinary()
_ = yym2908
if false {
} else {
r.EncodeBool(bool(x.Unschedulable))
}
}
}
if yyr2896 || yy2arr2896 {
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
yym2909 := z.DecBinary()
_ = yym2909
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2910 := r.ContainerType()
if yyct2910 == codecSelferValueTypeMap1234 {
yyl2910 := r.ReadMapStart()
if yyl2910 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2910, d)
}
} else if yyct2910 == codecSelferValueTypeArray1234 {
yyl2910 := r.ReadArrayStart()
if yyl2910 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2910, 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 yys2911Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2911Slc
var yyhl2911 bool = l >= 0
for yyj2911 := 0; ; yyj2911++ {
if yyhl2911 {
if yyj2911 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2911Slc = r.DecodeBytes(yys2911Slc, true, true)
yys2911 := string(yys2911Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2911 {
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, yys2911)
} // end switch yys2911
} // end for yyj2911
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 yyj2916 int
var yyb2916 bool
var yyhl2916 bool = l >= 0
yyj2916++
if yyhl2916 {
yyb2916 = yyj2916 > l
} else {
yyb2916 = r.CheckBreak()
}
if yyb2916 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PodCIDR = ""
} else {
x.PodCIDR = string(r.DecodeString())
}
yyj2916++
if yyhl2916 {
yyb2916 = yyj2916 > l
} else {
yyb2916 = r.CheckBreak()
}
if yyb2916 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ExternalID = ""
} else {
x.ExternalID = string(r.DecodeString())
}
yyj2916++
if yyhl2916 {
yyb2916 = yyj2916 > l
} else {
yyb2916 = r.CheckBreak()
}
if yyb2916 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ProviderID = ""
} else {
x.ProviderID = string(r.DecodeString())
}
yyj2916++
if yyhl2916 {
yyb2916 = yyj2916 > l
} else {
yyb2916 = r.CheckBreak()
}
if yyb2916 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Unschedulable = false
} else {
x.Unschedulable = bool(r.DecodeBool())
}
for {
yyj2916++
if yyhl2916 {
yyb2916 = yyj2916 > l
} else {
yyb2916 = r.CheckBreak()
}
if yyb2916 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2916-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 {
yym2921 := z.EncBinary()
_ = yym2921
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2922 := !z.EncBinary()
yy2arr2922 := z.EncBasicHandle().StructToArray
var yyq2922 [1]bool
_, _, _ = yysep2922, yyq2922, yy2arr2922
const yyr2922 bool = false
var yynn2922 int
if yyr2922 || yy2arr2922 {
r.EncodeArrayStart(1)
} else {
yynn2922 = 1
for _, b := range yyq2922 {
if b {
yynn2922++
}
}
r.EncodeMapStart(yynn2922)
yynn2922 = 0
}
if yyr2922 || yy2arr2922 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2924 := z.EncBinary()
_ = yym2924
if false {
} else {
r.EncodeInt(int64(x.Port))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2925 := z.EncBinary()
_ = yym2925
if false {
} else {
r.EncodeInt(int64(x.Port))
}
}
if yyr2922 || yy2arr2922 {
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
yym2926 := z.DecBinary()
_ = yym2926
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2927 := r.ContainerType()
if yyct2927 == codecSelferValueTypeMap1234 {
yyl2927 := r.ReadMapStart()
if yyl2927 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2927, d)
}
} else if yyct2927 == codecSelferValueTypeArray1234 {
yyl2927 := r.ReadArrayStart()
if yyl2927 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2927, 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 yys2928Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2928Slc
var yyhl2928 bool = l >= 0
for yyj2928 := 0; ; yyj2928++ {
if yyhl2928 {
if yyj2928 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2928Slc = r.DecodeBytes(yys2928Slc, true, true)
yys2928 := string(yys2928Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2928 {
case "Port":
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int32(r.DecodeInt(32))
}
default:
z.DecStructFieldNotFound(-1, yys2928)
} // end switch yys2928
} // end for yyj2928
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 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.Port = 0
} else {
x.Port = int32(r.DecodeInt(32))
}
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 *NodeDaemonEndpoints) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2932 := z.EncBinary()
_ = yym2932
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2933 := !z.EncBinary()
yy2arr2933 := z.EncBasicHandle().StructToArray
var yyq2933 [1]bool
_, _, _ = yysep2933, yyq2933, yy2arr2933
const yyr2933 bool = false
yyq2933[0] = true
var yynn2933 int
if yyr2933 || yy2arr2933 {
r.EncodeArrayStart(1)
} else {
yynn2933 = 0
for _, b := range yyq2933 {
if b {
yynn2933++
}
}
r.EncodeMapStart(yynn2933)
yynn2933 = 0
}
if yyr2933 || yy2arr2933 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2933[0] {
yy2935 := &x.KubeletEndpoint
yy2935.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2933[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kubeletEndpoint"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2936 := &x.KubeletEndpoint
yy2936.CodecEncodeSelf(e)
}
}
if yyr2933 || yy2arr2933 {
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
yym2937 := z.DecBinary()
_ = yym2937
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2938 := r.ContainerType()
if yyct2938 == codecSelferValueTypeMap1234 {
yyl2938 := r.ReadMapStart()
if yyl2938 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2938, d)
}
} else if yyct2938 == codecSelferValueTypeArray1234 {
yyl2938 := r.ReadArrayStart()
if yyl2938 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2938, 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 yys2939Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2939Slc
var yyhl2939 bool = l >= 0
for yyj2939 := 0; ; yyj2939++ {
if yyhl2939 {
if yyj2939 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2939Slc = r.DecodeBytes(yys2939Slc, true, true)
yys2939 := string(yys2939Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2939 {
case "kubeletEndpoint":
if r.TryDecodeAsNil() {
x.KubeletEndpoint = DaemonEndpoint{}
} else {
yyv2940 := &x.KubeletEndpoint
yyv2940.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2939)
} // end switch yys2939
} // end for yyj2939
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 yyj2941 int
var yyb2941 bool
var yyhl2941 bool = l >= 0
yyj2941++
if yyhl2941 {
yyb2941 = yyj2941 > l
} else {
yyb2941 = r.CheckBreak()
}
if yyb2941 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.KubeletEndpoint = DaemonEndpoint{}
} else {
yyv2942 := &x.KubeletEndpoint
yyv2942.CodecDecodeSelf(d)
}
for {
yyj2941++
if yyhl2941 {
yyb2941 = yyj2941 > l
} else {
yyb2941 = r.CheckBreak()
}
if yyb2941 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2941-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 {
yym2943 := z.EncBinary()
_ = yym2943
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2944 := !z.EncBinary()
yy2arr2944 := z.EncBasicHandle().StructToArray
var yyq2944 [10]bool
_, _, _ = yysep2944, yyq2944, yy2arr2944
const yyr2944 bool = false
var yynn2944 int
if yyr2944 || yy2arr2944 {
r.EncodeArrayStart(10)
} else {
yynn2944 = 10
for _, b := range yyq2944 {
if b {
yynn2944++
}
}
r.EncodeMapStart(yynn2944)
yynn2944 = 0
}
if yyr2944 || yy2arr2944 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2946 := z.EncBinary()
_ = yym2946
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)
yym2947 := z.EncBinary()
_ = yym2947
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.MachineID))
}
}
if yyr2944 || yy2arr2944 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2949 := z.EncBinary()
_ = yym2949
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)
yym2950 := z.EncBinary()
_ = yym2950
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID))
}
}
if yyr2944 || yy2arr2944 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2952 := z.EncBinary()
_ = yym2952
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)
yym2953 := z.EncBinary()
_ = yym2953
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.BootID))
}
}
if yyr2944 || yy2arr2944 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2955 := z.EncBinary()
_ = yym2955
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)
yym2956 := z.EncBinary()
_ = yym2956
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion))
}
}
if yyr2944 || yy2arr2944 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2958 := z.EncBinary()
_ = yym2958
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)
yym2959 := z.EncBinary()
_ = yym2959
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.OSImage))
}
}
if yyr2944 || yy2arr2944 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2961 := z.EncBinary()
_ = yym2961
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)
yym2962 := z.EncBinary()
_ = yym2962
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion))
}
}
if yyr2944 || yy2arr2944 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2964 := z.EncBinary()
_ = yym2964
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)
yym2965 := z.EncBinary()
_ = yym2965
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion))
}
}
if yyr2944 || yy2arr2944 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2967 := z.EncBinary()
_ = yym2967
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)
yym2968 := z.EncBinary()
_ = yym2968
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion))
}
}
if yyr2944 || yy2arr2944 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2970 := z.EncBinary()
_ = yym2970
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("operatingSystem"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2971 := z.EncBinary()
_ = yym2971
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem))
}
}
if yyr2944 || yy2arr2944 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2973 := z.EncBinary()
_ = yym2973
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Architecture))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("architecture"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2974 := z.EncBinary()
_ = yym2974
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Architecture))
}
}
if yyr2944 || yy2arr2944 {
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
yym2975 := z.DecBinary()
_ = yym2975
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2976 := r.ContainerType()
if yyct2976 == codecSelferValueTypeMap1234 {
yyl2976 := r.ReadMapStart()
if yyl2976 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2976, d)
}
} else if yyct2976 == codecSelferValueTypeArray1234 {
yyl2976 := r.ReadArrayStart()
if yyl2976 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2976, 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 yys2977Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2977Slc
var yyhl2977 bool = l >= 0
for yyj2977 := 0; ; yyj2977++ {
if yyhl2977 {
if yyj2977 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2977Slc = r.DecodeBytes(yys2977Slc, true, true)
yys2977 := string(yys2977Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2977 {
case "machineID":
if r.TryDecodeAsNil() {
x.MachineID = ""
} else {
x.MachineID = string(r.DecodeString())
}
case "systemUUID":
if r.TryDecodeAsNil() {
x.SystemUUID = ""
} else {
x.SystemUUID = string(r.DecodeString())
}
case "bootID":
if r.TryDecodeAsNil() {
x.BootID = ""
} else {
x.BootID = string(r.DecodeString())
}
case "kernelVersion":
if r.TryDecodeAsNil() {
x.KernelVersion = ""
} else {
x.KernelVersion = string(r.DecodeString())
}
case "osImage":
if r.TryDecodeAsNil() {
x.OSImage = ""
} else {
x.OSImage = string(r.DecodeString())
}
case "containerRuntimeVersion":
if r.TryDecodeAsNil() {
x.ContainerRuntimeVersion = ""
} else {
x.ContainerRuntimeVersion = string(r.DecodeString())
}
case "kubeletVersion":
if r.TryDecodeAsNil() {
x.KubeletVersion = ""
} else {
x.KubeletVersion = string(r.DecodeString())
}
case "kubeProxyVersion":
if r.TryDecodeAsNil() {
x.KubeProxyVersion = ""
} else {
x.KubeProxyVersion = string(r.DecodeString())
}
case "operatingSystem":
if r.TryDecodeAsNil() {
x.OperatingSystem = ""
} else {
x.OperatingSystem = string(r.DecodeString())
}
case "architecture":
if r.TryDecodeAsNil() {
x.Architecture = ""
} else {
x.Architecture = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys2977)
} // end switch yys2977
} // end for yyj2977
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 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.MachineID = ""
} else {
x.MachineID = 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.SystemUUID = ""
} else {
x.SystemUUID = 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.BootID = ""
} else {
x.BootID = 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.KernelVersion = ""
} else {
x.KernelVersion = 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.OSImage = ""
} else {
x.OSImage = 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.ContainerRuntimeVersion = ""
} else {
x.ContainerRuntimeVersion = 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.KubeletVersion = ""
} else {
x.KubeletVersion = 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.KubeProxyVersion = ""
} else {
x.KubeProxyVersion = 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.OperatingSystem = ""
} else {
x.OperatingSystem = 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.Architecture = ""
} else {
x.Architecture = 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 *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2999 := z.EncBinary()
_ = yym2999
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3000 := !z.EncBinary()
yy2arr3000 := z.EncBasicHandle().StructToArray
var yyq3000 [10]bool
_, _, _ = yysep3000, yyq3000, yy2arr3000
const yyr3000 bool = false
yyq3000[0] = len(x.Capacity) != 0
yyq3000[1] = len(x.Allocatable) != 0
yyq3000[2] = x.Phase != ""
yyq3000[3] = len(x.Conditions) != 0
yyq3000[4] = len(x.Addresses) != 0
yyq3000[5] = true
yyq3000[6] = true
yyq3000[7] = len(x.Images) != 0
yyq3000[8] = len(x.VolumesInUse) != 0
yyq3000[9] = len(x.VolumesAttached) != 0
var yynn3000 int
if yyr3000 || yy2arr3000 {
r.EncodeArrayStart(10)
} else {
yynn3000 = 0
for _, b := range yyq3000 {
if b {
yynn3000++
}
}
r.EncodeMapStart(yynn3000)
yynn3000 = 0
}
if yyr3000 || yy2arr3000 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3000[0] {
if x.Capacity == nil {
r.EncodeNil()
} else {
x.Capacity.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3000[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 yyr3000 || yy2arr3000 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3000[1] {
if x.Allocatable == nil {
r.EncodeNil()
} else {
x.Allocatable.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3000[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("allocatable"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Allocatable == nil {
r.EncodeNil()
} else {
x.Allocatable.CodecEncodeSelf(e)
}
}
}
if yyr3000 || yy2arr3000 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3000[2] {
x.Phase.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3000[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("phase"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Phase.CodecEncodeSelf(e)
}
}
if yyr3000 || yy2arr3000 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3000[3] {
if x.Conditions == nil {
r.EncodeNil()
} else {
yym3005 := z.EncBinary()
_ = yym3005
if false {
} else {
h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3000[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Conditions == nil {
r.EncodeNil()
} else {
yym3006 := z.EncBinary()
_ = yym3006
if false {
} else {
h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e)
}
}
}
}
if yyr3000 || yy2arr3000 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3000[4] {
if x.Addresses == nil {
r.EncodeNil()
} else {
yym3008 := z.EncBinary()
_ = yym3008
if false {
} else {
h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3000[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("addresses"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Addresses == nil {
r.EncodeNil()
} else {
yym3009 := z.EncBinary()
_ = yym3009
if false {
} else {
h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e)
}
}
}
}
if yyr3000 || yy2arr3000 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3000[5] {
yy3011 := &x.DaemonEndpoints
yy3011.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3000[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("daemonEndpoints"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3012 := &x.DaemonEndpoints
yy3012.CodecEncodeSelf(e)
}
}
if yyr3000 || yy2arr3000 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3000[6] {
yy3014 := &x.NodeInfo
yy3014.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3000[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeInfo"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3015 := &x.NodeInfo
yy3015.CodecEncodeSelf(e)
}
}
if yyr3000 || yy2arr3000 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3000[7] {
if x.Images == nil {
r.EncodeNil()
} else {
yym3017 := z.EncBinary()
_ = yym3017
if false {
} else {
h.encSliceContainerImage(([]ContainerImage)(x.Images), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3000[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("images"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Images == nil {
r.EncodeNil()
} else {
yym3018 := z.EncBinary()
_ = yym3018
if false {
} else {
h.encSliceContainerImage(([]ContainerImage)(x.Images), e)
}
}
}
}
if yyr3000 || yy2arr3000 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3000[8] {
if x.VolumesInUse == nil {
r.EncodeNil()
} else {
yym3020 := z.EncBinary()
_ = yym3020
if false {
} else {
h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3000[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("volumesInUse"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.VolumesInUse == nil {
r.EncodeNil()
} else {
yym3021 := z.EncBinary()
_ = yym3021
if false {
} else {
h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e)
}
}
}
}
if yyr3000 || yy2arr3000 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3000[9] {
if x.VolumesAttached == nil {
r.EncodeNil()
} else {
yym3023 := z.EncBinary()
_ = yym3023
if false {
} else {
h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3000[9] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("volumesAttached"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.VolumesAttached == nil {
r.EncodeNil()
} else {
yym3024 := z.EncBinary()
_ = yym3024
if false {
} else {
h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e)
}
}
}
}
if yyr3000 || yy2arr3000 {
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
yym3025 := z.DecBinary()
_ = yym3025
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3026 := r.ContainerType()
if yyct3026 == codecSelferValueTypeMap1234 {
yyl3026 := r.ReadMapStart()
if yyl3026 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3026, d)
}
} else if yyct3026 == codecSelferValueTypeArray1234 {
yyl3026 := r.ReadArrayStart()
if yyl3026 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3026, 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 yys3027Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3027Slc
var yyhl3027 bool = l >= 0
for yyj3027 := 0; ; yyj3027++ {
if yyhl3027 {
if yyj3027 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3027Slc = r.DecodeBytes(yys3027Slc, true, true)
yys3027 := string(yys3027Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3027 {
case "capacity":
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv3028 := &x.Capacity
yyv3028.CodecDecodeSelf(d)
}
case "allocatable":
if r.TryDecodeAsNil() {
x.Allocatable = nil
} else {
yyv3029 := &x.Allocatable
yyv3029.CodecDecodeSelf(d)
}
case "phase":
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = NodePhase(r.DecodeString())
}
case "conditions":
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv3031 := &x.Conditions
yym3032 := z.DecBinary()
_ = yym3032
if false {
} else {
h.decSliceNodeCondition((*[]NodeCondition)(yyv3031), d)
}
}
case "addresses":
if r.TryDecodeAsNil() {
x.Addresses = nil
} else {
yyv3033 := &x.Addresses
yym3034 := z.DecBinary()
_ = yym3034
if false {
} else {
h.decSliceNodeAddress((*[]NodeAddress)(yyv3033), d)
}
}
case "daemonEndpoints":
if r.TryDecodeAsNil() {
x.DaemonEndpoints = NodeDaemonEndpoints{}
} else {
yyv3035 := &x.DaemonEndpoints
yyv3035.CodecDecodeSelf(d)
}
case "nodeInfo":
if r.TryDecodeAsNil() {
x.NodeInfo = NodeSystemInfo{}
} else {
yyv3036 := &x.NodeInfo
yyv3036.CodecDecodeSelf(d)
}
case "images":
if r.TryDecodeAsNil() {
x.Images = nil
} else {
yyv3037 := &x.Images
yym3038 := z.DecBinary()
_ = yym3038
if false {
} else {
h.decSliceContainerImage((*[]ContainerImage)(yyv3037), d)
}
}
case "volumesInUse":
if r.TryDecodeAsNil() {
x.VolumesInUse = nil
} else {
yyv3039 := &x.VolumesInUse
yym3040 := z.DecBinary()
_ = yym3040
if false {
} else {
h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv3039), d)
}
}
case "volumesAttached":
if r.TryDecodeAsNil() {
x.VolumesAttached = nil
} else {
yyv3041 := &x.VolumesAttached
yym3042 := z.DecBinary()
_ = yym3042
if false {
} else {
h.decSliceAttachedVolume((*[]AttachedVolume)(yyv3041), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3027)
} // end switch yys3027
} // end for yyj3027
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 yyj3043 int
var yyb3043 bool
var yyhl3043 bool = l >= 0
yyj3043++
if yyhl3043 {
yyb3043 = yyj3043 > l
} else {
yyb3043 = r.CheckBreak()
}
if yyb3043 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv3044 := &x.Capacity
yyv3044.CodecDecodeSelf(d)
}
yyj3043++
if yyhl3043 {
yyb3043 = yyj3043 > l
} else {
yyb3043 = r.CheckBreak()
}
if yyb3043 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Allocatable = nil
} else {
yyv3045 := &x.Allocatable
yyv3045.CodecDecodeSelf(d)
}
yyj3043++
if yyhl3043 {
yyb3043 = yyj3043 > l
} else {
yyb3043 = r.CheckBreak()
}
if yyb3043 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = NodePhase(r.DecodeString())
}
yyj3043++
if yyhl3043 {
yyb3043 = yyj3043 > l
} else {
yyb3043 = r.CheckBreak()
}
if yyb3043 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv3047 := &x.Conditions
yym3048 := z.DecBinary()
_ = yym3048
if false {
} else {
h.decSliceNodeCondition((*[]NodeCondition)(yyv3047), d)
}
}
yyj3043++
if yyhl3043 {
yyb3043 = yyj3043 > l
} else {
yyb3043 = r.CheckBreak()
}
if yyb3043 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Addresses = nil
} else {
yyv3049 := &x.Addresses
yym3050 := z.DecBinary()
_ = yym3050
if false {
} else {
h.decSliceNodeAddress((*[]NodeAddress)(yyv3049), d)
}
}
yyj3043++
if yyhl3043 {
yyb3043 = yyj3043 > l
} else {
yyb3043 = r.CheckBreak()
}
if yyb3043 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DaemonEndpoints = NodeDaemonEndpoints{}
} else {
yyv3051 := &x.DaemonEndpoints
yyv3051.CodecDecodeSelf(d)
}
yyj3043++
if yyhl3043 {
yyb3043 = yyj3043 > l
} else {
yyb3043 = r.CheckBreak()
}
if yyb3043 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodeInfo = NodeSystemInfo{}
} else {
yyv3052 := &x.NodeInfo
yyv3052.CodecDecodeSelf(d)
}
yyj3043++
if yyhl3043 {
yyb3043 = yyj3043 > l
} else {
yyb3043 = r.CheckBreak()
}
if yyb3043 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Images = nil
} else {
yyv3053 := &x.Images
yym3054 := z.DecBinary()
_ = yym3054
if false {
} else {
h.decSliceContainerImage((*[]ContainerImage)(yyv3053), d)
}
}
yyj3043++
if yyhl3043 {
yyb3043 = yyj3043 > l
} else {
yyb3043 = r.CheckBreak()
}
if yyb3043 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.VolumesInUse = nil
} else {
yyv3055 := &x.VolumesInUse
yym3056 := z.DecBinary()
_ = yym3056
if false {
} else {
h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv3055), d)
}
}
yyj3043++
if yyhl3043 {
yyb3043 = yyj3043 > l
} else {
yyb3043 = r.CheckBreak()
}
if yyb3043 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.VolumesAttached = nil
} else {
yyv3057 := &x.VolumesAttached
yym3058 := z.DecBinary()
_ = yym3058
if false {
} else {
h.decSliceAttachedVolume((*[]AttachedVolume)(yyv3057), d)
}
}
for {
yyj3043++
if yyhl3043 {
yyb3043 = yyj3043 > l
} else {
yyb3043 = r.CheckBreak()
}
if yyb3043 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3043-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x UniqueVolumeName) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3059 := z.EncBinary()
_ = yym3059
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *UniqueVolumeName) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym3060 := z.DecBinary()
_ = yym3060
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *AttachedVolume) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3061 := z.EncBinary()
_ = yym3061
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3062 := !z.EncBinary()
yy2arr3062 := z.EncBasicHandle().StructToArray
var yyq3062 [2]bool
_, _, _ = yysep3062, yyq3062, yy2arr3062
const yyr3062 bool = false
var yynn3062 int
if yyr3062 || yy2arr3062 {
r.EncodeArrayStart(2)
} else {
yynn3062 = 2
for _, b := range yyq3062 {
if b {
yynn3062++
}
}
r.EncodeMapStart(yynn3062)
yynn3062 = 0
}
if yyr3062 || yy2arr3062 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
x.Name.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Name.CodecEncodeSelf(e)
}
if yyr3062 || yy2arr3062 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3065 := z.EncBinary()
_ = yym3065
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("devicePath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3066 := z.EncBinary()
_ = yym3066
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath))
}
}
if yyr3062 || yy2arr3062 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *AttachedVolume) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym3067 := z.DecBinary()
_ = yym3067
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3068 := r.ContainerType()
if yyct3068 == codecSelferValueTypeMap1234 {
yyl3068 := r.ReadMapStart()
if yyl3068 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3068, d)
}
} else if yyct3068 == codecSelferValueTypeArray1234 {
yyl3068 := r.ReadArrayStart()
if yyl3068 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3068, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *AttachedVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3069Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3069Slc
var yyhl3069 bool = l >= 0
for yyj3069 := 0; ; yyj3069++ {
if yyhl3069 {
if yyj3069 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3069Slc = r.DecodeBytes(yys3069Slc, true, true)
yys3069 := string(yys3069Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3069 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = UniqueVolumeName(r.DecodeString())
}
case "devicePath":
if r.TryDecodeAsNil() {
x.DevicePath = ""
} else {
x.DevicePath = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys3069)
} // end switch yys3069
} // end for yyj3069
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *AttachedVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj3072 int
var yyb3072 bool
var yyhl3072 bool = l >= 0
yyj3072++
if yyhl3072 {
yyb3072 = yyj3072 > l
} else {
yyb3072 = r.CheckBreak()
}
if yyb3072 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = UniqueVolumeName(r.DecodeString())
}
yyj3072++
if yyhl3072 {
yyb3072 = yyj3072 > l
} else {
yyb3072 = r.CheckBreak()
}
if yyb3072 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DevicePath = ""
} else {
x.DevicePath = string(r.DecodeString())
}
for {
yyj3072++
if yyhl3072 {
yyb3072 = yyj3072 > l
} else {
yyb3072 = r.CheckBreak()
}
if yyb3072 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3072-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *AvoidPods) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3075 := z.EncBinary()
_ = yym3075
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3076 := !z.EncBinary()
yy2arr3076 := z.EncBasicHandle().StructToArray
var yyq3076 [1]bool
_, _, _ = yysep3076, yyq3076, yy2arr3076
const yyr3076 bool = false
yyq3076[0] = len(x.PreferAvoidPods) != 0
var yynn3076 int
if yyr3076 || yy2arr3076 {
r.EncodeArrayStart(1)
} else {
yynn3076 = 0
for _, b := range yyq3076 {
if b {
yynn3076++
}
}
r.EncodeMapStart(yynn3076)
yynn3076 = 0
}
if yyr3076 || yy2arr3076 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3076[0] {
if x.PreferAvoidPods == nil {
r.EncodeNil()
} else {
yym3078 := z.EncBinary()
_ = yym3078
if false {
} else {
h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3076[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("preferAvoidPods"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.PreferAvoidPods == nil {
r.EncodeNil()
} else {
yym3079 := z.EncBinary()
_ = yym3079
if false {
} else {
h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e)
}
}
}
}
if yyr3076 || yy2arr3076 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *AvoidPods) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym3080 := z.DecBinary()
_ = yym3080
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3081 := r.ContainerType()
if yyct3081 == codecSelferValueTypeMap1234 {
yyl3081 := r.ReadMapStart()
if yyl3081 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3081, d)
}
} else if yyct3081 == codecSelferValueTypeArray1234 {
yyl3081 := r.ReadArrayStart()
if yyl3081 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3081, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *AvoidPods) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3082Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3082Slc
var yyhl3082 bool = l >= 0
for yyj3082 := 0; ; yyj3082++ {
if yyhl3082 {
if yyj3082 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3082Slc = r.DecodeBytes(yys3082Slc, true, true)
yys3082 := string(yys3082Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3082 {
case "preferAvoidPods":
if r.TryDecodeAsNil() {
x.PreferAvoidPods = nil
} else {
yyv3083 := &x.PreferAvoidPods
yym3084 := z.DecBinary()
_ = yym3084
if false {
} else {
h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3083), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3082)
} // end switch yys3082
} // end for yyj3082
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *AvoidPods) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var 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.PreferAvoidPods = nil
} else {
yyv3086 := &x.PreferAvoidPods
yym3087 := z.DecBinary()
_ = yym3087
if false {
} else {
h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3086), 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 *PreferAvoidPodsEntry) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3088 := z.EncBinary()
_ = yym3088
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3089 := !z.EncBinary()
yy2arr3089 := z.EncBasicHandle().StructToArray
var yyq3089 [4]bool
_, _, _ = yysep3089, yyq3089, yy2arr3089
const yyr3089 bool = false
yyq3089[1] = true
yyq3089[2] = x.Reason != ""
yyq3089[3] = x.Message != ""
var yynn3089 int
if yyr3089 || yy2arr3089 {
r.EncodeArrayStart(4)
} else {
yynn3089 = 1
for _, b := range yyq3089 {
if b {
yynn3089++
}
}
r.EncodeMapStart(yynn3089)
yynn3089 = 0
}
if yyr3089 || yy2arr3089 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3091 := &x.PodSignature
yy3091.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("podSignature"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3092 := &x.PodSignature
yy3092.CodecEncodeSelf(e)
}
if yyr3089 || yy2arr3089 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3089[1] {
yy3094 := &x.EvictionTime
yym3095 := z.EncBinary()
_ = yym3095
if false {
} else if z.HasExtensions() && z.EncExt(yy3094) {
} else if yym3095 {
z.EncBinaryMarshal(yy3094)
} else if !yym3095 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3094)
} else {
z.EncFallback(yy3094)
}
} else {
r.EncodeNil()
}
} else {
if yyq3089[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("evictionTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3096 := &x.EvictionTime
yym3097 := z.EncBinary()
_ = yym3097
if false {
} else if z.HasExtensions() && z.EncExt(yy3096) {
} else if yym3097 {
z.EncBinaryMarshal(yy3096)
} else if !yym3097 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3096)
} else {
z.EncFallback(yy3096)
}
}
}
if yyr3089 || yy2arr3089 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3089[2] {
yym3099 := z.EncBinary()
_ = yym3099
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3089[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3100 := z.EncBinary()
_ = yym3100
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr3089 || yy2arr3089 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3089[3] {
yym3102 := z.EncBinary()
_ = yym3102
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3089[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3103 := z.EncBinary()
_ = yym3103
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr3089 || yy2arr3089 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *PreferAvoidPodsEntry) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym3104 := z.DecBinary()
_ = yym3104
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3105 := r.ContainerType()
if yyct3105 == codecSelferValueTypeMap1234 {
yyl3105 := r.ReadMapStart()
if yyl3105 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3105, d)
}
} else if yyct3105 == codecSelferValueTypeArray1234 {
yyl3105 := r.ReadArrayStart()
if yyl3105 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3105, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PreferAvoidPodsEntry) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3106Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3106Slc
var yyhl3106 bool = l >= 0
for yyj3106 := 0; ; yyj3106++ {
if yyhl3106 {
if yyj3106 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3106Slc = r.DecodeBytes(yys3106Slc, true, true)
yys3106 := string(yys3106Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3106 {
case "podSignature":
if r.TryDecodeAsNil() {
x.PodSignature = PodSignature{}
} else {
yyv3107 := &x.PodSignature
yyv3107.CodecDecodeSelf(d)
}
case "evictionTime":
if r.TryDecodeAsNil() {
x.EvictionTime = pkg2_unversioned.Time{}
} else {
yyv3108 := &x.EvictionTime
yym3109 := z.DecBinary()
_ = yym3109
if false {
} else if z.HasExtensions() && z.DecExt(yyv3108) {
} else if yym3109 {
z.DecBinaryUnmarshal(yyv3108)
} else if !yym3109 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3108)
} else {
z.DecFallback(yyv3108, false)
}
}
case "reason":
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
case "message":
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys3106)
} // end switch yys3106
} // end for yyj3106
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj3112 int
var yyb3112 bool
var yyhl3112 bool = l >= 0
yyj3112++
if yyhl3112 {
yyb3112 = yyj3112 > l
} else {
yyb3112 = r.CheckBreak()
}
if yyb3112 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PodSignature = PodSignature{}
} else {
yyv3113 := &x.PodSignature
yyv3113.CodecDecodeSelf(d)
}
yyj3112++
if yyhl3112 {
yyb3112 = yyj3112 > l
} else {
yyb3112 = r.CheckBreak()
}
if yyb3112 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.EvictionTime = pkg2_unversioned.Time{}
} else {
yyv3114 := &x.EvictionTime
yym3115 := z.DecBinary()
_ = yym3115
if false {
} else if z.HasExtensions() && z.DecExt(yyv3114) {
} else if yym3115 {
z.DecBinaryUnmarshal(yyv3114)
} else if !yym3115 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3114)
} else {
z.DecFallback(yyv3114, false)
}
}
yyj3112++
if yyhl3112 {
yyb3112 = yyj3112 > l
} else {
yyb3112 = r.CheckBreak()
}
if yyb3112 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj3112++
if yyhl3112 {
yyb3112 = yyj3112 > l
} else {
yyb3112 = r.CheckBreak()
}
if yyb3112 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
for {
yyj3112++
if yyhl3112 {
yyb3112 = yyj3112 > l
} else {
yyb3112 = r.CheckBreak()
}
if yyb3112 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3112-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PodSignature) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3118 := z.EncBinary()
_ = yym3118
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3119 := !z.EncBinary()
yy2arr3119 := z.EncBasicHandle().StructToArray
var yyq3119 [1]bool
_, _, _ = yysep3119, yyq3119, yy2arr3119
const yyr3119 bool = false
yyq3119[0] = x.PodController != nil
var yynn3119 int
if yyr3119 || yy2arr3119 {
r.EncodeArrayStart(1)
} else {
yynn3119 = 0
for _, b := range yyq3119 {
if b {
yynn3119++
}
}
r.EncodeMapStart(yynn3119)
yynn3119 = 0
}
if yyr3119 || yy2arr3119 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3119[0] {
if x.PodController == nil {
r.EncodeNil()
} else {
x.PodController.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3119[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("podController"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.PodController == nil {
r.EncodeNil()
} else {
x.PodController.CodecEncodeSelf(e)
}
}
}
if yyr3119 || yy2arr3119 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *PodSignature) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym3121 := z.DecBinary()
_ = yym3121
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3122 := r.ContainerType()
if yyct3122 == codecSelferValueTypeMap1234 {
yyl3122 := r.ReadMapStart()
if yyl3122 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3122, d)
}
} else if yyct3122 == codecSelferValueTypeArray1234 {
yyl3122 := r.ReadArrayStart()
if yyl3122 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3122, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PodSignature) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3123Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3123Slc
var yyhl3123 bool = l >= 0
for yyj3123 := 0; ; yyj3123++ {
if yyhl3123 {
if yyj3123 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3123Slc = r.DecodeBytes(yys3123Slc, true, true)
yys3123 := string(yys3123Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3123 {
case "podController":
if r.TryDecodeAsNil() {
if x.PodController != nil {
x.PodController = nil
}
} else {
if x.PodController == nil {
x.PodController = new(OwnerReference)
}
x.PodController.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3123)
} // end switch yys3123
} // end for yyj3123
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *PodSignature) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj3125 int
var yyb3125 bool
var yyhl3125 bool = l >= 0
yyj3125++
if yyhl3125 {
yyb3125 = yyj3125 > l
} else {
yyb3125 = r.CheckBreak()
}
if yyb3125 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.PodController != nil {
x.PodController = nil
}
} else {
if x.PodController == nil {
x.PodController = new(OwnerReference)
}
x.PodController.CodecDecodeSelf(d)
}
for {
yyj3125++
if yyhl3125 {
yyb3125 = yyj3125 > l
} else {
yyb3125 = r.CheckBreak()
}
if yyb3125 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3125-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ContainerImage) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3127 := z.EncBinary()
_ = yym3127
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3128 := !z.EncBinary()
yy2arr3128 := z.EncBasicHandle().StructToArray
var yyq3128 [2]bool
_, _, _ = yysep3128, yyq3128, yy2arr3128
const yyr3128 bool = false
yyq3128[1] = x.SizeBytes != 0
var yynn3128 int
if yyr3128 || yy2arr3128 {
r.EncodeArrayStart(2)
} else {
yynn3128 = 1
for _, b := range yyq3128 {
if b {
yynn3128++
}
}
r.EncodeMapStart(yynn3128)
yynn3128 = 0
}
if yyr3128 || yy2arr3128 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Names == nil {
r.EncodeNil()
} else {
yym3130 := z.EncBinary()
_ = yym3130
if false {
} else {
z.F.EncSliceStringV(x.Names, false, e)
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("names"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Names == nil {
r.EncodeNil()
} else {
yym3131 := z.EncBinary()
_ = yym3131
if false {
} else {
z.F.EncSliceStringV(x.Names, false, e)
}
}
}
if yyr3128 || yy2arr3128 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3128[1] {
yym3133 := z.EncBinary()
_ = yym3133
if false {
} else {
r.EncodeInt(int64(x.SizeBytes))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq3128[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("sizeBytes"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3134 := z.EncBinary()
_ = yym3134
if false {
} else {
r.EncodeInt(int64(x.SizeBytes))
}
}
}
if yyr3128 || yy2arr3128 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ContainerImage) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym3135 := z.DecBinary()
_ = yym3135
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3136 := r.ContainerType()
if yyct3136 == codecSelferValueTypeMap1234 {
yyl3136 := r.ReadMapStart()
if yyl3136 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3136, d)
}
} else if yyct3136 == codecSelferValueTypeArray1234 {
yyl3136 := r.ReadArrayStart()
if yyl3136 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3136, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ContainerImage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3137Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3137Slc
var yyhl3137 bool = l >= 0
for yyj3137 := 0; ; yyj3137++ {
if yyhl3137 {
if yyj3137 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3137Slc = r.DecodeBytes(yys3137Slc, true, true)
yys3137 := string(yys3137Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3137 {
case "names":
if r.TryDecodeAsNil() {
x.Names = nil
} else {
yyv3138 := &x.Names
yym3139 := z.DecBinary()
_ = yym3139
if false {
} else {
z.F.DecSliceStringX(yyv3138, false, d)
}
}
case "sizeBytes":
if r.TryDecodeAsNil() {
x.SizeBytes = 0
} else {
x.SizeBytes = int64(r.DecodeInt(64))
}
default:
z.DecStructFieldNotFound(-1, yys3137)
} // end switch yys3137
} // end for yyj3137
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ContainerImage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj3141 int
var yyb3141 bool
var yyhl3141 bool = l >= 0
yyj3141++
if yyhl3141 {
yyb3141 = yyj3141 > l
} else {
yyb3141 = r.CheckBreak()
}
if yyb3141 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Names = nil
} else {
yyv3142 := &x.Names
yym3143 := z.DecBinary()
_ = yym3143
if false {
} else {
z.F.DecSliceStringX(yyv3142, false, d)
}
}
yyj3141++
if yyhl3141 {
yyb3141 = yyj3141 > l
} else {
yyb3141 = r.CheckBreak()
}
if yyb3141 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SizeBytes = 0
} else {
x.SizeBytes = int64(r.DecodeInt(64))
}
for {
yyj3141++
if yyhl3141 {
yyb3141 = yyj3141 > l
} else {
yyb3141 = r.CheckBreak()
}
if yyb3141 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3141-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3145 := z.EncBinary()
_ = yym3145
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
yym3146 := z.DecBinary()
_ = yym3146
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
yym3147 := z.EncBinary()
_ = yym3147
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
yym3148 := z.DecBinary()
_ = yym3148
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 {
yym3149 := z.EncBinary()
_ = yym3149
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3150 := !z.EncBinary()
yy2arr3150 := z.EncBasicHandle().StructToArray
var yyq3150 [6]bool
_, _, _ = yysep3150, yyq3150, yy2arr3150
const yyr3150 bool = false
yyq3150[2] = true
yyq3150[3] = true
yyq3150[4] = x.Reason != ""
yyq3150[5] = x.Message != ""
var yynn3150 int
if yyr3150 || yy2arr3150 {
r.EncodeArrayStart(6)
} else {
yynn3150 = 2
for _, b := range yyq3150 {
if b {
yynn3150++
}
}
r.EncodeMapStart(yynn3150)
yynn3150 = 0
}
if yyr3150 || yy2arr3150 {
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 yyr3150 || yy2arr3150 {
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 yyr3150 || yy2arr3150 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3150[2] {
yy3154 := &x.LastHeartbeatTime
yym3155 := z.EncBinary()
_ = yym3155
if false {
} else if z.HasExtensions() && z.EncExt(yy3154) {
} else if yym3155 {
z.EncBinaryMarshal(yy3154)
} else if !yym3155 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3154)
} else {
z.EncFallback(yy3154)
}
} else {
r.EncodeNil()
}
} else {
if yyq3150[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3156 := &x.LastHeartbeatTime
yym3157 := z.EncBinary()
_ = yym3157
if false {
} else if z.HasExtensions() && z.EncExt(yy3156) {
} else if yym3157 {
z.EncBinaryMarshal(yy3156)
} else if !yym3157 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3156)
} else {
z.EncFallback(yy3156)
}
}
}
if yyr3150 || yy2arr3150 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3150[3] {
yy3159 := &x.LastTransitionTime
yym3160 := z.EncBinary()
_ = yym3160
if false {
} else if z.HasExtensions() && z.EncExt(yy3159) {
} else if yym3160 {
z.EncBinaryMarshal(yy3159)
} else if !yym3160 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3159)
} else {
z.EncFallback(yy3159)
}
} else {
r.EncodeNil()
}
} else {
if yyq3150[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3161 := &x.LastTransitionTime
yym3162 := z.EncBinary()
_ = yym3162
if false {
} else if z.HasExtensions() && z.EncExt(yy3161) {
} else if yym3162 {
z.EncBinaryMarshal(yy3161)
} else if !yym3162 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3161)
} else {
z.EncFallback(yy3161)
}
}
}
if yyr3150 || yy2arr3150 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3150[4] {
yym3164 := z.EncBinary()
_ = yym3164
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3150[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3165 := z.EncBinary()
_ = yym3165
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr3150 || yy2arr3150 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3150[5] {
yym3167 := z.EncBinary()
_ = yym3167
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3150[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3168 := z.EncBinary()
_ = yym3168
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr3150 || yy2arr3150 {
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
yym3169 := z.DecBinary()
_ = yym3169
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3170 := r.ContainerType()
if yyct3170 == codecSelferValueTypeMap1234 {
yyl3170 := r.ReadMapStart()
if yyl3170 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3170, d)
}
} else if yyct3170 == codecSelferValueTypeArray1234 {
yyl3170 := r.ReadArrayStart()
if yyl3170 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3170, 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 yys3171Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3171Slc
var yyhl3171 bool = l >= 0
for yyj3171 := 0; ; yyj3171++ {
if yyhl3171 {
if yyj3171 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3171Slc = r.DecodeBytes(yys3171Slc, true, true)
yys3171 := string(yys3171Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3171 {
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 {
yyv3174 := &x.LastHeartbeatTime
yym3175 := z.DecBinary()
_ = yym3175
if false {
} else if z.HasExtensions() && z.DecExt(yyv3174) {
} else if yym3175 {
z.DecBinaryUnmarshal(yyv3174)
} else if !yym3175 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3174)
} else {
z.DecFallback(yyv3174, false)
}
}
case "lastTransitionTime":
if r.TryDecodeAsNil() {
x.LastTransitionTime = pkg2_unversioned.Time{}
} else {
yyv3176 := &x.LastTransitionTime
yym3177 := z.DecBinary()
_ = yym3177
if false {
} else if z.HasExtensions() && z.DecExt(yyv3176) {
} else if yym3177 {
z.DecBinaryUnmarshal(yyv3176)
} else if !yym3177 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3176)
} else {
z.DecFallback(yyv3176, 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, yys3171)
} // end switch yys3171
} // end for yyj3171
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 yyj3180 int
var yyb3180 bool
var yyhl3180 bool = l >= 0
yyj3180++
if yyhl3180 {
yyb3180 = yyj3180 > l
} else {
yyb3180 = r.CheckBreak()
}
if yyb3180 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = NodeConditionType(r.DecodeString())
}
yyj3180++
if yyhl3180 {
yyb3180 = yyj3180 > l
} else {
yyb3180 = r.CheckBreak()
}
if yyb3180 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ""
} else {
x.Status = ConditionStatus(r.DecodeString())
}
yyj3180++
if yyhl3180 {
yyb3180 = yyj3180 > l
} else {
yyb3180 = r.CheckBreak()
}
if yyb3180 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastHeartbeatTime = pkg2_unversioned.Time{}
} else {
yyv3183 := &x.LastHeartbeatTime
yym3184 := z.DecBinary()
_ = yym3184
if false {
} else if z.HasExtensions() && z.DecExt(yyv3183) {
} else if yym3184 {
z.DecBinaryUnmarshal(yyv3183)
} else if !yym3184 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3183)
} else {
z.DecFallback(yyv3183, false)
}
}
yyj3180++
if yyhl3180 {
yyb3180 = yyj3180 > l
} else {
yyb3180 = r.CheckBreak()
}
if yyb3180 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastTransitionTime = pkg2_unversioned.Time{}
} else {
yyv3185 := &x.LastTransitionTime
yym3186 := z.DecBinary()
_ = yym3186
if false {
} else if z.HasExtensions() && z.DecExt(yyv3185) {
} else if yym3186 {
z.DecBinaryUnmarshal(yyv3185)
} else if !yym3186 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3185)
} else {
z.DecFallback(yyv3185, false)
}
}
yyj3180++
if yyhl3180 {
yyb3180 = yyj3180 > l
} else {
yyb3180 = r.CheckBreak()
}
if yyb3180 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj3180++
if yyhl3180 {
yyb3180 = yyj3180 > l
} else {
yyb3180 = r.CheckBreak()
}
if yyb3180 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
for {
yyj3180++
if yyhl3180 {
yyb3180 = yyj3180 > l
} else {
yyb3180 = r.CheckBreak()
}
if yyb3180 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3180-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3189 := z.EncBinary()
_ = yym3189
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
yym3190 := z.DecBinary()
_ = yym3190
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 {
yym3191 := z.EncBinary()
_ = yym3191
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3192 := !z.EncBinary()
yy2arr3192 := z.EncBasicHandle().StructToArray
var yyq3192 [2]bool
_, _, _ = yysep3192, yyq3192, yy2arr3192
const yyr3192 bool = false
var yynn3192 int
if yyr3192 || yy2arr3192 {
r.EncodeArrayStart(2)
} else {
yynn3192 = 2
for _, b := range yyq3192 {
if b {
yynn3192++
}
}
r.EncodeMapStart(yynn3192)
yynn3192 = 0
}
if yyr3192 || yy2arr3192 {
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 yyr3192 || yy2arr3192 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3195 := z.EncBinary()
_ = yym3195
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)
yym3196 := z.EncBinary()
_ = yym3196
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Address))
}
}
if yyr3192 || yy2arr3192 {
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
yym3197 := z.DecBinary()
_ = yym3197
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3198 := r.ContainerType()
if yyct3198 == codecSelferValueTypeMap1234 {
yyl3198 := r.ReadMapStart()
if yyl3198 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3198, d)
}
} else if yyct3198 == codecSelferValueTypeArray1234 {
yyl3198 := r.ReadArrayStart()
if yyl3198 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3198, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3199Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3199Slc
var yyhl3199 bool = l >= 0
for yyj3199 := 0; ; yyj3199++ {
if yyhl3199 {
if yyj3199 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3199Slc = r.DecodeBytes(yys3199Slc, true, true)
yys3199 := string(yys3199Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3199 {
case "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, yys3199)
} // end switch yys3199
} // end for yyj3199
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 yyj3202 int
var yyb3202 bool
var yyhl3202 bool = l >= 0
yyj3202++
if yyhl3202 {
yyb3202 = yyj3202 > l
} else {
yyb3202 = r.CheckBreak()
}
if yyb3202 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = NodeAddressType(r.DecodeString())
}
yyj3202++
if yyhl3202 {
yyb3202 = yyj3202 > l
} else {
yyb3202 = r.CheckBreak()
}
if yyb3202 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Address = ""
} else {
x.Address = string(r.DecodeString())
}
for {
yyj3202++
if yyhl3202 {
yyb3202 = yyj3202 > l
} else {
yyb3202 = r.CheckBreak()
}
if yyb3202 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3202-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 {
yym3205 := z.EncBinary()
_ = yym3205
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3206 := !z.EncBinary()
yy2arr3206 := z.EncBasicHandle().StructToArray
var yyq3206 [1]bool
_, _, _ = yysep3206, yyq3206, yy2arr3206
const yyr3206 bool = false
yyq3206[0] = len(x.Capacity) != 0
var yynn3206 int
if yyr3206 || yy2arr3206 {
r.EncodeArrayStart(1)
} else {
yynn3206 = 0
for _, b := range yyq3206 {
if b {
yynn3206++
}
}
r.EncodeMapStart(yynn3206)
yynn3206 = 0
}
if yyr3206 || yy2arr3206 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3206[0] {
if x.Capacity == nil {
r.EncodeNil()
} else {
x.Capacity.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3206[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 yyr3206 || yy2arr3206 {
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
yym3208 := z.DecBinary()
_ = yym3208
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3209 := r.ContainerType()
if yyct3209 == codecSelferValueTypeMap1234 {
yyl3209 := r.ReadMapStart()
if yyl3209 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3209, d)
}
} else if yyct3209 == codecSelferValueTypeArray1234 {
yyl3209 := r.ReadArrayStart()
if yyl3209 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3209, 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 yys3210Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3210Slc
var yyhl3210 bool = l >= 0
for yyj3210 := 0; ; yyj3210++ {
if yyhl3210 {
if yyj3210 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3210Slc = r.DecodeBytes(yys3210Slc, true, true)
yys3210 := string(yys3210Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3210 {
case "capacity":
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv3211 := &x.Capacity
yyv3211.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3210)
} // end switch yys3210
} // end for yyj3210
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 yyj3212 int
var yyb3212 bool
var yyhl3212 bool = l >= 0
yyj3212++
if yyhl3212 {
yyb3212 = yyj3212 > l
} else {
yyb3212 = r.CheckBreak()
}
if yyb3212 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv3213 := &x.Capacity
yyv3213.CodecDecodeSelf(d)
}
for {
yyj3212++
if yyhl3212 {
yyb3212 = yyj3212 > l
} else {
yyb3212 = r.CheckBreak()
}
if yyb3212 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3212-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x ResourceName) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3214 := z.EncBinary()
_ = yym3214
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
yym3215 := z.DecBinary()
_ = yym3215
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 {
yym3216 := z.EncBinary()
_ = yym3216
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
yym3217 := z.DecBinary()
_ = yym3217
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 {
yym3218 := z.EncBinary()
_ = yym3218
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3219 := !z.EncBinary()
yy2arr3219 := z.EncBasicHandle().StructToArray
var yyq3219 [5]bool
_, _, _ = yysep3219, yyq3219, yy2arr3219
const yyr3219 bool = false
yyq3219[0] = x.Kind != ""
yyq3219[1] = x.APIVersion != ""
yyq3219[2] = true
yyq3219[3] = true
yyq3219[4] = true
var yynn3219 int
if yyr3219 || yy2arr3219 {
r.EncodeArrayStart(5)
} else {
yynn3219 = 0
for _, b := range yyq3219 {
if b {
yynn3219++
}
}
r.EncodeMapStart(yynn3219)
yynn3219 = 0
}
if yyr3219 || yy2arr3219 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3219[0] {
yym3221 := z.EncBinary()
_ = yym3221
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3219[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3222 := z.EncBinary()
_ = yym3222
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3219 || yy2arr3219 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3219[1] {
yym3224 := z.EncBinary()
_ = yym3224
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3219[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3225 := z.EncBinary()
_ = yym3225
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3219 || yy2arr3219 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3219[2] {
yy3227 := &x.ObjectMeta
yy3227.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3219[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3228 := &x.ObjectMeta
yy3228.CodecEncodeSelf(e)
}
}
if yyr3219 || yy2arr3219 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3219[3] {
yy3230 := &x.Spec
yy3230.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3219[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3231 := &x.Spec
yy3231.CodecEncodeSelf(e)
}
}
if yyr3219 || yy2arr3219 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3219[4] {
yy3233 := &x.Status
yy3233.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3219[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3234 := &x.Status
yy3234.CodecEncodeSelf(e)
}
}
if yyr3219 || yy2arr3219 {
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
yym3235 := z.DecBinary()
_ = yym3235
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3236 := r.ContainerType()
if yyct3236 == codecSelferValueTypeMap1234 {
yyl3236 := r.ReadMapStart()
if yyl3236 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3236, d)
}
} else if yyct3236 == codecSelferValueTypeArray1234 {
yyl3236 := r.ReadArrayStart()
if yyl3236 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3236, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3237Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3237Slc
var yyhl3237 bool = l >= 0
for yyj3237 := 0; ; yyj3237++ {
if yyhl3237 {
if yyj3237 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3237Slc = r.DecodeBytes(yys3237Slc, true, true)
yys3237 := string(yys3237Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3237 {
case "kind":
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
case "apiVersion":
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
case "metadata":
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3240 := &x.ObjectMeta
yyv3240.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = NodeSpec{}
} else {
yyv3241 := &x.Spec
yyv3241.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = NodeStatus{}
} else {
yyv3242 := &x.Status
yyv3242.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3237)
} // end switch yys3237
} // end for yyj3237
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 yyj3243 int
var yyb3243 bool
var yyhl3243 bool = l >= 0
yyj3243++
if yyhl3243 {
yyb3243 = yyj3243 > l
} else {
yyb3243 = r.CheckBreak()
}
if yyb3243 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3243++
if yyhl3243 {
yyb3243 = yyj3243 > l
} else {
yyb3243 = r.CheckBreak()
}
if yyb3243 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3243++
if yyhl3243 {
yyb3243 = yyj3243 > l
} else {
yyb3243 = r.CheckBreak()
}
if yyb3243 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3246 := &x.ObjectMeta
yyv3246.CodecDecodeSelf(d)
}
yyj3243++
if yyhl3243 {
yyb3243 = yyj3243 > l
} else {
yyb3243 = r.CheckBreak()
}
if yyb3243 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = NodeSpec{}
} else {
yyv3247 := &x.Spec
yyv3247.CodecDecodeSelf(d)
}
yyj3243++
if yyhl3243 {
yyb3243 = yyj3243 > l
} else {
yyb3243 = r.CheckBreak()
}
if yyb3243 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = NodeStatus{}
} else {
yyv3248 := &x.Status
yyv3248.CodecDecodeSelf(d)
}
for {
yyj3243++
if yyhl3243 {
yyb3243 = yyj3243 > l
} else {
yyb3243 = r.CheckBreak()
}
if yyb3243 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3243-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 {
yym3249 := z.EncBinary()
_ = yym3249
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3250 := !z.EncBinary()
yy2arr3250 := z.EncBasicHandle().StructToArray
var yyq3250 [4]bool
_, _, _ = yysep3250, yyq3250, yy2arr3250
const yyr3250 bool = false
yyq3250[0] = x.Kind != ""
yyq3250[1] = x.APIVersion != ""
yyq3250[2] = true
var yynn3250 int
if yyr3250 || yy2arr3250 {
r.EncodeArrayStart(4)
} else {
yynn3250 = 1
for _, b := range yyq3250 {
if b {
yynn3250++
}
}
r.EncodeMapStart(yynn3250)
yynn3250 = 0
}
if yyr3250 || yy2arr3250 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3250[0] {
yym3252 := z.EncBinary()
_ = yym3252
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3250[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3253 := z.EncBinary()
_ = yym3253
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3250 || yy2arr3250 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3250[1] {
yym3255 := z.EncBinary()
_ = yym3255
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3250[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3256 := z.EncBinary()
_ = yym3256
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3250 || yy2arr3250 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3250[2] {
yy3258 := &x.ListMeta
yym3259 := z.EncBinary()
_ = yym3259
if false {
} else if z.HasExtensions() && z.EncExt(yy3258) {
} else {
z.EncFallback(yy3258)
}
} else {
r.EncodeNil()
}
} else {
if yyq3250[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3260 := &x.ListMeta
yym3261 := z.EncBinary()
_ = yym3261
if false {
} else if z.HasExtensions() && z.EncExt(yy3260) {
} else {
z.EncFallback(yy3260)
}
}
}
if yyr3250 || yy2arr3250 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3263 := z.EncBinary()
_ = yym3263
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 {
yym3264 := z.EncBinary()
_ = yym3264
if false {
} else {
h.encSliceNode(([]Node)(x.Items), e)
}
}
}
if yyr3250 || yy2arr3250 {
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
yym3265 := z.DecBinary()
_ = yym3265
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3266 := r.ContainerType()
if yyct3266 == codecSelferValueTypeMap1234 {
yyl3266 := r.ReadMapStart()
if yyl3266 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3266, d)
}
} else if yyct3266 == codecSelferValueTypeArray1234 {
yyl3266 := r.ReadArrayStart()
if yyl3266 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3266, 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 yys3267Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3267Slc
var yyhl3267 bool = l >= 0
for yyj3267 := 0; ; yyj3267++ {
if yyhl3267 {
if yyj3267 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3267Slc = r.DecodeBytes(yys3267Slc, true, true)
yys3267 := string(yys3267Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3267 {
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 {
yyv3270 := &x.ListMeta
yym3271 := z.DecBinary()
_ = yym3271
if false {
} else if z.HasExtensions() && z.DecExt(yyv3270) {
} else {
z.DecFallback(yyv3270, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3272 := &x.Items
yym3273 := z.DecBinary()
_ = yym3273
if false {
} else {
h.decSliceNode((*[]Node)(yyv3272), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3267)
} // end switch yys3267
} // end for yyj3267
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 yyj3274 int
var yyb3274 bool
var yyhl3274 bool = l >= 0
yyj3274++
if yyhl3274 {
yyb3274 = yyj3274 > l
} else {
yyb3274 = r.CheckBreak()
}
if yyb3274 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3274++
if yyhl3274 {
yyb3274 = yyj3274 > l
} else {
yyb3274 = r.CheckBreak()
}
if yyb3274 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3274++
if yyhl3274 {
yyb3274 = yyj3274 > l
} else {
yyb3274 = r.CheckBreak()
}
if yyb3274 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3277 := &x.ListMeta
yym3278 := z.DecBinary()
_ = yym3278
if false {
} else if z.HasExtensions() && z.DecExt(yyv3277) {
} else {
z.DecFallback(yyv3277, false)
}
}
yyj3274++
if yyhl3274 {
yyb3274 = yyj3274 > l
} else {
yyb3274 = r.CheckBreak()
}
if yyb3274 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3279 := &x.Items
yym3280 := z.DecBinary()
_ = yym3280
if false {
} else {
h.decSliceNode((*[]Node)(yyv3279), d)
}
}
for {
yyj3274++
if yyhl3274 {
yyb3274 = yyj3274 > l
} else {
yyb3274 = r.CheckBreak()
}
if yyb3274 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3274-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *NamespaceSpec) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3281 := z.EncBinary()
_ = yym3281
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3282 := !z.EncBinary()
yy2arr3282 := z.EncBasicHandle().StructToArray
var yyq3282 [1]bool
_, _, _ = yysep3282, yyq3282, yy2arr3282
const yyr3282 bool = false
var yynn3282 int
if yyr3282 || yy2arr3282 {
r.EncodeArrayStart(1)
} else {
yynn3282 = 1
for _, b := range yyq3282 {
if b {
yynn3282++
}
}
r.EncodeMapStart(yynn3282)
yynn3282 = 0
}
if yyr3282 || yy2arr3282 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Finalizers == nil {
r.EncodeNil()
} else {
yym3284 := z.EncBinary()
_ = yym3284
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 {
yym3285 := z.EncBinary()
_ = yym3285
if false {
} else {
h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e)
}
}
}
if yyr3282 || yy2arr3282 {
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
yym3286 := z.DecBinary()
_ = yym3286
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3287 := r.ContainerType()
if yyct3287 == codecSelferValueTypeMap1234 {
yyl3287 := r.ReadMapStart()
if yyl3287 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3287, d)
}
} else if yyct3287 == codecSelferValueTypeArray1234 {
yyl3287 := r.ReadArrayStart()
if yyl3287 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3287, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NamespaceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3288Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3288Slc
var yyhl3288 bool = l >= 0
for yyj3288 := 0; ; yyj3288++ {
if yyhl3288 {
if yyj3288 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3288Slc = r.DecodeBytes(yys3288Slc, true, true)
yys3288 := string(yys3288Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3288 {
case "Finalizers":
if r.TryDecodeAsNil() {
x.Finalizers = nil
} else {
yyv3289 := &x.Finalizers
yym3290 := z.DecBinary()
_ = yym3290
if false {
} else {
h.decSliceFinalizerName((*[]FinalizerName)(yyv3289), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3288)
} // end switch yys3288
} // end for yyj3288
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 yyj3291 int
var yyb3291 bool
var yyhl3291 bool = l >= 0
yyj3291++
if yyhl3291 {
yyb3291 = yyj3291 > l
} else {
yyb3291 = r.CheckBreak()
}
if yyb3291 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Finalizers = nil
} else {
yyv3292 := &x.Finalizers
yym3293 := z.DecBinary()
_ = yym3293
if false {
} else {
h.decSliceFinalizerName((*[]FinalizerName)(yyv3292), d)
}
}
for {
yyj3291++
if yyhl3291 {
yyb3291 = yyj3291 > l
} else {
yyb3291 = r.CheckBreak()
}
if yyb3291 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3291-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3294 := z.EncBinary()
_ = yym3294
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
yym3295 := z.DecBinary()
_ = yym3295
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 {
yym3296 := z.EncBinary()
_ = yym3296
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3297 := !z.EncBinary()
yy2arr3297 := z.EncBasicHandle().StructToArray
var yyq3297 [1]bool
_, _, _ = yysep3297, yyq3297, yy2arr3297
const yyr3297 bool = false
yyq3297[0] = x.Phase != ""
var yynn3297 int
if yyr3297 || yy2arr3297 {
r.EncodeArrayStart(1)
} else {
yynn3297 = 0
for _, b := range yyq3297 {
if b {
yynn3297++
}
}
r.EncodeMapStart(yynn3297)
yynn3297 = 0
}
if yyr3297 || yy2arr3297 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3297[0] {
x.Phase.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3297[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("phase"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Phase.CodecEncodeSelf(e)
}
}
if yyr3297 || yy2arr3297 {
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
yym3299 := z.DecBinary()
_ = yym3299
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3300 := r.ContainerType()
if yyct3300 == codecSelferValueTypeMap1234 {
yyl3300 := r.ReadMapStart()
if yyl3300 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3300, d)
}
} else if yyct3300 == codecSelferValueTypeArray1234 {
yyl3300 := r.ReadArrayStart()
if yyl3300 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3300, 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 yys3301Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3301Slc
var yyhl3301 bool = l >= 0
for yyj3301 := 0; ; yyj3301++ {
if yyhl3301 {
if yyj3301 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3301Slc = r.DecodeBytes(yys3301Slc, true, true)
yys3301 := string(yys3301Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3301 {
case "phase":
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = NamespacePhase(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys3301)
} // end switch yys3301
} // end for yyj3301
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 yyj3303 int
var yyb3303 bool
var yyhl3303 bool = l >= 0
yyj3303++
if yyhl3303 {
yyb3303 = yyj3303 > l
} else {
yyb3303 = r.CheckBreak()
}
if yyb3303 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = NamespacePhase(r.DecodeString())
}
for {
yyj3303++
if yyhl3303 {
yyb3303 = yyj3303 > l
} else {
yyb3303 = r.CheckBreak()
}
if yyb3303 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3303-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x NamespacePhase) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3305 := z.EncBinary()
_ = yym3305
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
yym3306 := z.DecBinary()
_ = yym3306
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 {
yym3307 := z.EncBinary()
_ = yym3307
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3308 := !z.EncBinary()
yy2arr3308 := z.EncBasicHandle().StructToArray
var yyq3308 [5]bool
_, _, _ = yysep3308, yyq3308, yy2arr3308
const yyr3308 bool = false
yyq3308[0] = x.Kind != ""
yyq3308[1] = x.APIVersion != ""
yyq3308[2] = true
yyq3308[3] = true
yyq3308[4] = true
var yynn3308 int
if yyr3308 || yy2arr3308 {
r.EncodeArrayStart(5)
} else {
yynn3308 = 0
for _, b := range yyq3308 {
if b {
yynn3308++
}
}
r.EncodeMapStart(yynn3308)
yynn3308 = 0
}
if yyr3308 || yy2arr3308 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3308[0] {
yym3310 := z.EncBinary()
_ = yym3310
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3308[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3311 := z.EncBinary()
_ = yym3311
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3308 || yy2arr3308 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3308[1] {
yym3313 := z.EncBinary()
_ = yym3313
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3308[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3314 := z.EncBinary()
_ = yym3314
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3308 || yy2arr3308 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3308[2] {
yy3316 := &x.ObjectMeta
yy3316.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3308[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3317 := &x.ObjectMeta
yy3317.CodecEncodeSelf(e)
}
}
if yyr3308 || yy2arr3308 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3308[3] {
yy3319 := &x.Spec
yy3319.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3308[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3320 := &x.Spec
yy3320.CodecEncodeSelf(e)
}
}
if yyr3308 || yy2arr3308 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3308[4] {
yy3322 := &x.Status
yy3322.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3308[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3323 := &x.Status
yy3323.CodecEncodeSelf(e)
}
}
if yyr3308 || yy2arr3308 {
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
yym3324 := z.DecBinary()
_ = yym3324
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3325 := r.ContainerType()
if yyct3325 == codecSelferValueTypeMap1234 {
yyl3325 := r.ReadMapStart()
if yyl3325 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3325, d)
}
} else if yyct3325 == codecSelferValueTypeArray1234 {
yyl3325 := r.ReadArrayStart()
if yyl3325 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3325, 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 yys3326Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3326Slc
var yyhl3326 bool = l >= 0
for yyj3326 := 0; ; yyj3326++ {
if yyhl3326 {
if yyj3326 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3326Slc = r.DecodeBytes(yys3326Slc, true, true)
yys3326 := string(yys3326Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3326 {
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 {
yyv3329 := &x.ObjectMeta
yyv3329.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = NamespaceSpec{}
} else {
yyv3330 := &x.Spec
yyv3330.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = NamespaceStatus{}
} else {
yyv3331 := &x.Status
yyv3331.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3326)
} // end switch yys3326
} // end for yyj3326
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 yyj3332 int
var yyb3332 bool
var yyhl3332 bool = l >= 0
yyj3332++
if yyhl3332 {
yyb3332 = yyj3332 > l
} else {
yyb3332 = r.CheckBreak()
}
if yyb3332 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3332++
if yyhl3332 {
yyb3332 = yyj3332 > l
} else {
yyb3332 = r.CheckBreak()
}
if yyb3332 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3332++
if yyhl3332 {
yyb3332 = yyj3332 > l
} else {
yyb3332 = r.CheckBreak()
}
if yyb3332 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3335 := &x.ObjectMeta
yyv3335.CodecDecodeSelf(d)
}
yyj3332++
if yyhl3332 {
yyb3332 = yyj3332 > l
} else {
yyb3332 = r.CheckBreak()
}
if yyb3332 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = NamespaceSpec{}
} else {
yyv3336 := &x.Spec
yyv3336.CodecDecodeSelf(d)
}
yyj3332++
if yyhl3332 {
yyb3332 = yyj3332 > l
} else {
yyb3332 = r.CheckBreak()
}
if yyb3332 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = NamespaceStatus{}
} else {
yyv3337 := &x.Status
yyv3337.CodecDecodeSelf(d)
}
for {
yyj3332++
if yyhl3332 {
yyb3332 = yyj3332 > l
} else {
yyb3332 = r.CheckBreak()
}
if yyb3332 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3332-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 {
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
var yynn3339 int
if yyr3339 || yy2arr3339 {
r.EncodeArrayStart(4)
} else {
yynn3339 = 1
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.ListMeta
yym3348 := z.EncBinary()
_ = yym3348
if false {
} else if z.HasExtensions() && z.EncExt(yy3347) {
} else {
z.EncFallback(yy3347)
}
} else {
r.EncodeNil()
}
} else {
if yyq3339[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3349 := &x.ListMeta
yym3350 := z.EncBinary()
_ = yym3350
if false {
} else if z.HasExtensions() && z.EncExt(yy3349) {
} else {
z.EncFallback(yy3349)
}
}
}
if yyr3339 || yy2arr3339 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3352 := z.EncBinary()
_ = yym3352
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 {
yym3353 := z.EncBinary()
_ = yym3353
if false {
} else {
h.encSliceNamespace(([]Namespace)(x.Items), e)
}
}
}
if yyr3339 || yy2arr3339 {
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
yym3354 := z.DecBinary()
_ = yym3354
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3355 := r.ContainerType()
if yyct3355 == codecSelferValueTypeMap1234 {
yyl3355 := r.ReadMapStart()
if yyl3355 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3355, d)
}
} else if yyct3355 == codecSelferValueTypeArray1234 {
yyl3355 := r.ReadArrayStart()
if yyl3355 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3355, 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 yys3356Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3356Slc
var yyhl3356 bool = l >= 0
for yyj3356 := 0; ; yyj3356++ {
if yyhl3356 {
if yyj3356 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3356Slc = r.DecodeBytes(yys3356Slc, true, true)
yys3356 := string(yys3356Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3356 {
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 {
yyv3359 := &x.ListMeta
yym3360 := z.DecBinary()
_ = yym3360
if false {
} else if z.HasExtensions() && z.DecExt(yyv3359) {
} else {
z.DecFallback(yyv3359, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3361 := &x.Items
yym3362 := z.DecBinary()
_ = yym3362
if false {
} else {
h.decSliceNamespace((*[]Namespace)(yyv3361), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3356)
} // end switch yys3356
} // end for yyj3356
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 yyj3363 int
var yyb3363 bool
var yyhl3363 bool = l >= 0
yyj3363++
if yyhl3363 {
yyb3363 = yyj3363 > l
} else {
yyb3363 = r.CheckBreak()
}
if yyb3363 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3363++
if yyhl3363 {
yyb3363 = yyj3363 > l
} else {
yyb3363 = r.CheckBreak()
}
if yyb3363 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3363++
if yyhl3363 {
yyb3363 = yyj3363 > l
} else {
yyb3363 = r.CheckBreak()
}
if yyb3363 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3366 := &x.ListMeta
yym3367 := z.DecBinary()
_ = yym3367
if false {
} else if z.HasExtensions() && z.DecExt(yyv3366) {
} else {
z.DecFallback(yyv3366, false)
}
}
yyj3363++
if yyhl3363 {
yyb3363 = yyj3363 > l
} else {
yyb3363 = r.CheckBreak()
}
if yyb3363 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3368 := &x.Items
yym3369 := z.DecBinary()
_ = yym3369
if false {
} else {
h.decSliceNamespace((*[]Namespace)(yyv3368), d)
}
}
for {
yyj3363++
if yyhl3363 {
yyb3363 = yyj3363 > l
} else {
yyb3363 = r.CheckBreak()
}
if yyb3363 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3363-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 {
yym3370 := z.EncBinary()
_ = yym3370
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3371 := !z.EncBinary()
yy2arr3371 := z.EncBasicHandle().StructToArray
var yyq3371 [4]bool
_, _, _ = yysep3371, yyq3371, yy2arr3371
const yyr3371 bool = false
yyq3371[0] = x.Kind != ""
yyq3371[1] = x.APIVersion != ""
yyq3371[2] = true
var yynn3371 int
if yyr3371 || yy2arr3371 {
r.EncodeArrayStart(4)
} else {
yynn3371 = 1
for _, b := range yyq3371 {
if b {
yynn3371++
}
}
r.EncodeMapStart(yynn3371)
yynn3371 = 0
}
if yyr3371 || yy2arr3371 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3371[0] {
yym3373 := z.EncBinary()
_ = yym3373
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3371[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3374 := z.EncBinary()
_ = yym3374
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3371 || yy2arr3371 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3371[1] {
yym3376 := z.EncBinary()
_ = yym3376
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3371[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3377 := z.EncBinary()
_ = yym3377
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3371 || yy2arr3371 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3371[2] {
yy3379 := &x.ObjectMeta
yy3379.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3371[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3380 := &x.ObjectMeta
yy3380.CodecEncodeSelf(e)
}
}
if yyr3371 || yy2arr3371 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3382 := &x.Target
yy3382.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("target"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3383 := &x.Target
yy3383.CodecEncodeSelf(e)
}
if yyr3371 || yy2arr3371 {
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
yym3384 := z.DecBinary()
_ = yym3384
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3385 := r.ContainerType()
if yyct3385 == codecSelferValueTypeMap1234 {
yyl3385 := r.ReadMapStart()
if yyl3385 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3385, d)
}
} else if yyct3385 == codecSelferValueTypeArray1234 {
yyl3385 := r.ReadArrayStart()
if yyl3385 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3385, 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 yys3386Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3386Slc
var yyhl3386 bool = l >= 0
for yyj3386 := 0; ; yyj3386++ {
if yyhl3386 {
if yyj3386 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3386Slc = r.DecodeBytes(yys3386Slc, true, true)
yys3386 := string(yys3386Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3386 {
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 {
yyv3389 := &x.ObjectMeta
yyv3389.CodecDecodeSelf(d)
}
case "target":
if r.TryDecodeAsNil() {
x.Target = ObjectReference{}
} else {
yyv3390 := &x.Target
yyv3390.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3386)
} // end switch yys3386
} // end for yyj3386
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 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.ObjectMeta = ObjectMeta{}
} else {
yyv3394 := &x.ObjectMeta
yyv3394.CodecDecodeSelf(d)
}
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.Target = ObjectReference{}
} else {
yyv3395 := &x.Target
yyv3395.CodecDecodeSelf(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 *Preconditions) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3396 := z.EncBinary()
_ = yym3396
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3397 := !z.EncBinary()
yy2arr3397 := z.EncBasicHandle().StructToArray
var yyq3397 [1]bool
_, _, _ = yysep3397, yyq3397, yy2arr3397
const yyr3397 bool = false
yyq3397[0] = x.UID != nil
var yynn3397 int
if yyr3397 || yy2arr3397 {
r.EncodeArrayStart(1)
} else {
yynn3397 = 0
for _, b := range yyq3397 {
if b {
yynn3397++
}
}
r.EncodeMapStart(yynn3397)
yynn3397 = 0
}
if yyr3397 || yy2arr3397 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3397[0] {
if x.UID == nil {
r.EncodeNil()
} else {
yy3399 := *x.UID
yym3400 := z.EncBinary()
_ = yym3400
if false {
} else if z.HasExtensions() && z.EncExt(yy3399) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(yy3399))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3397[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("uid"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.UID == nil {
r.EncodeNil()
} else {
yy3401 := *x.UID
yym3402 := z.EncBinary()
_ = yym3402
if false {
} else if z.HasExtensions() && z.EncExt(yy3401) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(yy3401))
}
}
}
}
if yyr3397 || yy2arr3397 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *Preconditions) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym3403 := z.DecBinary()
_ = yym3403
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3404 := r.ContainerType()
if yyct3404 == codecSelferValueTypeMap1234 {
yyl3404 := r.ReadMapStart()
if yyl3404 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3404, d)
}
} else if yyct3404 == codecSelferValueTypeArray1234 {
yyl3404 := r.ReadArrayStart()
if yyl3404 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3404, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3405Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3405Slc
var yyhl3405 bool = l >= 0
for yyj3405 := 0; ; yyj3405++ {
if yyhl3405 {
if yyj3405 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3405Slc = r.DecodeBytes(yys3405Slc, true, true)
yys3405 := string(yys3405Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3405 {
case "uid":
if r.TryDecodeAsNil() {
if x.UID != nil {
x.UID = nil
}
} else {
if x.UID == nil {
x.UID = new(pkg1_types.UID)
}
yym3407 := z.DecBinary()
_ = yym3407
if false {
} else if z.HasExtensions() && z.DecExt(x.UID) {
} else {
*((*string)(x.UID)) = r.DecodeString()
}
}
default:
z.DecStructFieldNotFound(-1, yys3405)
} // end switch yys3405
} // end for yyj3405
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *Preconditions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj3408 int
var yyb3408 bool
var yyhl3408 bool = l >= 0
yyj3408++
if yyhl3408 {
yyb3408 = yyj3408 > l
} else {
yyb3408 = r.CheckBreak()
}
if yyb3408 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.UID != nil {
x.UID = nil
}
} else {
if x.UID == nil {
x.UID = new(pkg1_types.UID)
}
yym3410 := z.DecBinary()
_ = yym3410
if false {
} else if z.HasExtensions() && z.DecExt(x.UID) {
} else {
*((*string)(x.UID)) = r.DecodeString()
}
}
for {
yyj3408++
if yyhl3408 {
yyb3408 = yyj3408 > l
} else {
yyb3408 = r.CheckBreak()
}
if yyb3408 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3408-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 {
yym3411 := z.EncBinary()
_ = yym3411
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3412 := !z.EncBinary()
yy2arr3412 := z.EncBasicHandle().StructToArray
var yyq3412 [5]bool
_, _, _ = yysep3412, yyq3412, yy2arr3412
const yyr3412 bool = false
yyq3412[0] = x.Kind != ""
yyq3412[1] = x.APIVersion != ""
yyq3412[2] = x.GracePeriodSeconds != nil
yyq3412[3] = x.Preconditions != nil
yyq3412[4] = x.OrphanDependents != nil
var yynn3412 int
if yyr3412 || yy2arr3412 {
r.EncodeArrayStart(5)
} else {
yynn3412 = 0
for _, b := range yyq3412 {
if b {
yynn3412++
}
}
r.EncodeMapStart(yynn3412)
yynn3412 = 0
}
if yyr3412 || yy2arr3412 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3412[0] {
yym3414 := z.EncBinary()
_ = yym3414
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3412[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3415 := z.EncBinary()
_ = yym3415
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3412 || yy2arr3412 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3412[1] {
yym3417 := z.EncBinary()
_ = yym3417
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3412[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3418 := z.EncBinary()
_ = yym3418
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3412 || yy2arr3412 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3412[2] {
if x.GracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy3420 := *x.GracePeriodSeconds
yym3421 := z.EncBinary()
_ = yym3421
if false {
} else {
r.EncodeInt(int64(yy3420))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3412[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.GracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy3422 := *x.GracePeriodSeconds
yym3423 := z.EncBinary()
_ = yym3423
if false {
} else {
r.EncodeInt(int64(yy3422))
}
}
}
}
if yyr3412 || yy2arr3412 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3412[3] {
if x.Preconditions == nil {
r.EncodeNil()
} else {
x.Preconditions.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3412[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("preconditions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Preconditions == nil {
r.EncodeNil()
} else {
x.Preconditions.CodecEncodeSelf(e)
}
}
}
if yyr3412 || yy2arr3412 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3412[4] {
if x.OrphanDependents == nil {
r.EncodeNil()
} else {
yy3426 := *x.OrphanDependents
yym3427 := z.EncBinary()
_ = yym3427
if false {
} else {
r.EncodeBool(bool(yy3426))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3412[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("orphanDependents"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.OrphanDependents == nil {
r.EncodeNil()
} else {
yy3428 := *x.OrphanDependents
yym3429 := z.EncBinary()
_ = yym3429
if false {
} else {
r.EncodeBool(bool(yy3428))
}
}
}
}
if yyr3412 || yy2arr3412 {
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
yym3430 := z.DecBinary()
_ = yym3430
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3431 := r.ContainerType()
if yyct3431 == codecSelferValueTypeMap1234 {
yyl3431 := r.ReadMapStart()
if yyl3431 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3431, d)
}
} else if yyct3431 == codecSelferValueTypeArray1234 {
yyl3431 := r.ReadArrayStart()
if yyl3431 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3431, 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 yys3432Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3432Slc
var yyhl3432 bool = l >= 0
for yyj3432 := 0; ; yyj3432++ {
if yyhl3432 {
if yyj3432 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3432Slc = r.DecodeBytes(yys3432Slc, true, true)
yys3432 := string(yys3432Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3432 {
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)
}
yym3436 := z.DecBinary()
_ = yym3436
if false {
} else {
*((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64))
}
}
case "preconditions":
if r.TryDecodeAsNil() {
if x.Preconditions != nil {
x.Preconditions = nil
}
} else {
if x.Preconditions == nil {
x.Preconditions = new(Preconditions)
}
x.Preconditions.CodecDecodeSelf(d)
}
case "orphanDependents":
if r.TryDecodeAsNil() {
if x.OrphanDependents != nil {
x.OrphanDependents = nil
}
} else {
if x.OrphanDependents == nil {
x.OrphanDependents = new(bool)
}
yym3439 := z.DecBinary()
_ = yym3439
if false {
} else {
*((*bool)(x.OrphanDependents)) = r.DecodeBool()
}
}
default:
z.DecStructFieldNotFound(-1, yys3432)
} // end switch yys3432
} // end for yyj3432
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 yyj3440 int
var yyb3440 bool
var yyhl3440 bool = l >= 0
yyj3440++
if yyhl3440 {
yyb3440 = yyj3440 > l
} else {
yyb3440 = r.CheckBreak()
}
if yyb3440 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3440++
if yyhl3440 {
yyb3440 = yyj3440 > l
} else {
yyb3440 = r.CheckBreak()
}
if yyb3440 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3440++
if yyhl3440 {
yyb3440 = yyj3440 > l
} else {
yyb3440 = r.CheckBreak()
}
if yyb3440 {
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)
}
yym3444 := z.DecBinary()
_ = yym3444
if false {
} else {
*((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64))
}
}
yyj3440++
if yyhl3440 {
yyb3440 = yyj3440 > l
} else {
yyb3440 = r.CheckBreak()
}
if yyb3440 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Preconditions != nil {
x.Preconditions = nil
}
} else {
if x.Preconditions == nil {
x.Preconditions = new(Preconditions)
}
x.Preconditions.CodecDecodeSelf(d)
}
yyj3440++
if yyhl3440 {
yyb3440 = yyj3440 > l
} else {
yyb3440 = r.CheckBreak()
}
if yyb3440 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.OrphanDependents != nil {
x.OrphanDependents = nil
}
} else {
if x.OrphanDependents == nil {
x.OrphanDependents = new(bool)
}
yym3447 := z.DecBinary()
_ = yym3447
if false {
} else {
*((*bool)(x.OrphanDependents)) = r.DecodeBool()
}
}
for {
yyj3440++
if yyhl3440 {
yyb3440 = yyj3440 > l
} else {
yyb3440 = r.CheckBreak()
}
if yyb3440 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3440-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3448 := z.EncBinary()
_ = yym3448
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3449 := !z.EncBinary()
yy2arr3449 := z.EncBasicHandle().StructToArray
var yyq3449 [4]bool
_, _, _ = yysep3449, yyq3449, yy2arr3449
const yyr3449 bool = false
yyq3449[0] = x.Kind != ""
yyq3449[1] = x.APIVersion != ""
var yynn3449 int
if yyr3449 || yy2arr3449 {
r.EncodeArrayStart(4)
} else {
yynn3449 = 2
for _, b := range yyq3449 {
if b {
yynn3449++
}
}
r.EncodeMapStart(yynn3449)
yynn3449 = 0
}
if yyr3449 || yy2arr3449 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3449[0] {
yym3451 := z.EncBinary()
_ = yym3451
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3449[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3452 := z.EncBinary()
_ = yym3452
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3449 || yy2arr3449 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3449[1] {
yym3454 := z.EncBinary()
_ = yym3454
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3449[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3455 := z.EncBinary()
_ = yym3455
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3449 || yy2arr3449 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3457 := z.EncBinary()
_ = yym3457
if false {
} else {
r.EncodeBool(bool(x.Export))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("export"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3458 := z.EncBinary()
_ = yym3458
if false {
} else {
r.EncodeBool(bool(x.Export))
}
}
if yyr3449 || yy2arr3449 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3460 := z.EncBinary()
_ = yym3460
if false {
} else {
r.EncodeBool(bool(x.Exact))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("exact"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3461 := z.EncBinary()
_ = yym3461
if false {
} else {
r.EncodeBool(bool(x.Exact))
}
}
if yyr3449 || yy2arr3449 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ExportOptions) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym3462 := z.DecBinary()
_ = yym3462
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3463 := r.ContainerType()
if yyct3463 == codecSelferValueTypeMap1234 {
yyl3463 := r.ReadMapStart()
if yyl3463 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3463, d)
}
} else if yyct3463 == codecSelferValueTypeArray1234 {
yyl3463 := r.ReadArrayStart()
if yyl3463 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3463, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3464Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3464Slc
var yyhl3464 bool = l >= 0
for yyj3464 := 0; ; yyj3464++ {
if yyhl3464 {
if yyj3464 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3464Slc = r.DecodeBytes(yys3464Slc, true, true)
yys3464 := string(yys3464Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3464 {
case "kind":
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
case "apiVersion":
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
case "export":
if r.TryDecodeAsNil() {
x.Export = false
} else {
x.Export = bool(r.DecodeBool())
}
case "exact":
if r.TryDecodeAsNil() {
x.Exact = false
} else {
x.Exact = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys3464)
} // end switch yys3464
} // end for yyj3464
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj3469 int
var yyb3469 bool
var yyhl3469 bool = l >= 0
yyj3469++
if yyhl3469 {
yyb3469 = yyj3469 > l
} else {
yyb3469 = r.CheckBreak()
}
if yyb3469 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3469++
if yyhl3469 {
yyb3469 = yyj3469 > l
} else {
yyb3469 = r.CheckBreak()
}
if yyb3469 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3469++
if yyhl3469 {
yyb3469 = yyj3469 > l
} else {
yyb3469 = r.CheckBreak()
}
if yyb3469 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Export = false
} else {
x.Export = bool(r.DecodeBool())
}
yyj3469++
if yyhl3469 {
yyb3469 = yyj3469 > l
} else {
yyb3469 = r.CheckBreak()
}
if yyb3469 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Exact = false
} else {
x.Exact = bool(r.DecodeBool())
}
for {
yyj3469++
if yyhl3469 {
yyb3469 = yyj3469 > l
} else {
yyb3469 = r.CheckBreak()
}
if yyb3469 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3469-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 {
yym3474 := z.EncBinary()
_ = yym3474
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3475 := !z.EncBinary()
yy2arr3475 := z.EncBasicHandle().StructToArray
var yyq3475 [7]bool
_, _, _ = yysep3475, yyq3475, yy2arr3475
const yyr3475 bool = false
yyq3475[0] = x.Kind != ""
yyq3475[1] = x.APIVersion != ""
var yynn3475 int
if yyr3475 || yy2arr3475 {
r.EncodeArrayStart(7)
} else {
yynn3475 = 5
for _, b := range yyq3475 {
if b {
yynn3475++
}
}
r.EncodeMapStart(yynn3475)
yynn3475 = 0
}
if yyr3475 || yy2arr3475 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3475[0] {
yym3477 := z.EncBinary()
_ = yym3477
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3475[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3478 := z.EncBinary()
_ = yym3478
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3475 || yy2arr3475 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3475[1] {
yym3480 := z.EncBinary()
_ = yym3480
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3475[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3481 := z.EncBinary()
_ = yym3481
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3475 || yy2arr3475 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.LabelSelector == nil {
r.EncodeNil()
} else {
yym3483 := z.EncBinary()
_ = yym3483
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 {
yym3484 := z.EncBinary()
_ = yym3484
if false {
} else if z.HasExtensions() && z.EncExt(x.LabelSelector) {
} else {
z.EncFallback(x.LabelSelector)
}
}
}
if yyr3475 || yy2arr3475 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.FieldSelector == nil {
r.EncodeNil()
} else {
yym3486 := z.EncBinary()
_ = yym3486
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 {
yym3487 := z.EncBinary()
_ = yym3487
if false {
} else if z.HasExtensions() && z.EncExt(x.FieldSelector) {
} else {
z.EncFallback(x.FieldSelector)
}
}
}
if yyr3475 || yy2arr3475 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3489 := z.EncBinary()
_ = yym3489
if false {
} else {
r.EncodeBool(bool(x.Watch))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Watch"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3490 := z.EncBinary()
_ = yym3490
if false {
} else {
r.EncodeBool(bool(x.Watch))
}
}
if yyr3475 || yy2arr3475 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3492 := z.EncBinary()
_ = yym3492
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)
yym3493 := z.EncBinary()
_ = yym3493
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
}
}
if yyr3475 || yy2arr3475 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.TimeoutSeconds == nil {
r.EncodeNil()
} else {
yy3495 := *x.TimeoutSeconds
yym3496 := z.EncBinary()
_ = yym3496
if false {
} else {
r.EncodeInt(int64(yy3495))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("TimeoutSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.TimeoutSeconds == nil {
r.EncodeNil()
} else {
yy3497 := *x.TimeoutSeconds
yym3498 := z.EncBinary()
_ = yym3498
if false {
} else {
r.EncodeInt(int64(yy3497))
}
}
}
if yyr3475 || yy2arr3475 {
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
yym3499 := z.DecBinary()
_ = yym3499
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3500 := r.ContainerType()
if yyct3500 == codecSelferValueTypeMap1234 {
yyl3500 := r.ReadMapStart()
if yyl3500 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3500, d)
}
} else if yyct3500 == codecSelferValueTypeArray1234 {
yyl3500 := r.ReadArrayStart()
if yyl3500 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3500, 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 yys3501Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3501Slc
var yyhl3501 bool = l >= 0
for yyj3501 := 0; ; yyj3501++ {
if yyhl3501 {
if yyj3501 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3501Slc = r.DecodeBytes(yys3501Slc, true, true)
yys3501 := string(yys3501Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3501 {
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 {
yyv3504 := &x.LabelSelector
yym3505 := z.DecBinary()
_ = yym3505
if false {
} else if z.HasExtensions() && z.DecExt(yyv3504) {
} else {
z.DecFallback(yyv3504, true)
}
}
case "FieldSelector":
if r.TryDecodeAsNil() {
x.FieldSelector = nil
} else {
yyv3506 := &x.FieldSelector
yym3507 := z.DecBinary()
_ = yym3507
if false {
} else if z.HasExtensions() && z.DecExt(yyv3506) {
} else {
z.DecFallback(yyv3506, 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)
}
yym3511 := z.DecBinary()
_ = yym3511
if false {
} else {
*((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64))
}
}
default:
z.DecStructFieldNotFound(-1, yys3501)
} // end switch yys3501
} // end for yyj3501
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 yyj3512 int
var yyb3512 bool
var yyhl3512 bool = l >= 0
yyj3512++
if yyhl3512 {
yyb3512 = yyj3512 > l
} else {
yyb3512 = r.CheckBreak()
}
if yyb3512 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3512++
if yyhl3512 {
yyb3512 = yyj3512 > l
} else {
yyb3512 = r.CheckBreak()
}
if yyb3512 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3512++
if yyhl3512 {
yyb3512 = yyj3512 > l
} else {
yyb3512 = r.CheckBreak()
}
if yyb3512 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LabelSelector = nil
} else {
yyv3515 := &x.LabelSelector
yym3516 := z.DecBinary()
_ = yym3516
if false {
} else if z.HasExtensions() && z.DecExt(yyv3515) {
} else {
z.DecFallback(yyv3515, true)
}
}
yyj3512++
if yyhl3512 {
yyb3512 = yyj3512 > l
} else {
yyb3512 = r.CheckBreak()
}
if yyb3512 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FieldSelector = nil
} else {
yyv3517 := &x.FieldSelector
yym3518 := z.DecBinary()
_ = yym3518
if false {
} else if z.HasExtensions() && z.DecExt(yyv3517) {
} else {
z.DecFallback(yyv3517, true)
}
}
yyj3512++
if yyhl3512 {
yyb3512 = yyj3512 > l
} else {
yyb3512 = r.CheckBreak()
}
if yyb3512 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Watch = false
} else {
x.Watch = bool(r.DecodeBool())
}
yyj3512++
if yyhl3512 {
yyb3512 = yyj3512 > l
} else {
yyb3512 = r.CheckBreak()
}
if yyb3512 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ResourceVersion = ""
} else {
x.ResourceVersion = string(r.DecodeString())
}
yyj3512++
if yyhl3512 {
yyb3512 = yyj3512 > l
} else {
yyb3512 = r.CheckBreak()
}
if yyb3512 {
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)
}
yym3522 := z.DecBinary()
_ = yym3522
if false {
} else {
*((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64))
}
}
for {
yyj3512++
if yyhl3512 {
yyb3512 = yyj3512 > l
} else {
yyb3512 = r.CheckBreak()
}
if yyb3512 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3512-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 {
yym3523 := z.EncBinary()
_ = yym3523
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3524 := !z.EncBinary()
yy2arr3524 := z.EncBasicHandle().StructToArray
var yyq3524 [10]bool
_, _, _ = yysep3524, yyq3524, yy2arr3524
const yyr3524 bool = false
yyq3524[0] = x.Kind != ""
yyq3524[1] = x.APIVersion != ""
var yynn3524 int
if yyr3524 || yy2arr3524 {
r.EncodeArrayStart(10)
} else {
yynn3524 = 8
for _, b := range yyq3524 {
if b {
yynn3524++
}
}
r.EncodeMapStart(yynn3524)
yynn3524 = 0
}
if yyr3524 || yy2arr3524 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3524[0] {
yym3526 := z.EncBinary()
_ = yym3526
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3524[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3527 := z.EncBinary()
_ = yym3527
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3524 || yy2arr3524 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3524[1] {
yym3529 := z.EncBinary()
_ = yym3529
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3524[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3530 := z.EncBinary()
_ = yym3530
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3524 || yy2arr3524 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3532 := z.EncBinary()
_ = yym3532
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)
yym3533 := z.EncBinary()
_ = yym3533
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
}
}
if yyr3524 || yy2arr3524 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3535 := z.EncBinary()
_ = yym3535
if false {
} else {
r.EncodeBool(bool(x.Follow))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Follow"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3536 := z.EncBinary()
_ = yym3536
if false {
} else {
r.EncodeBool(bool(x.Follow))
}
}
if yyr3524 || yy2arr3524 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3538 := z.EncBinary()
_ = yym3538
if false {
} else {
r.EncodeBool(bool(x.Previous))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Previous"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3539 := z.EncBinary()
_ = yym3539
if false {
} else {
r.EncodeBool(bool(x.Previous))
}
}
if yyr3524 || yy2arr3524 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.SinceSeconds == nil {
r.EncodeNil()
} else {
yy3541 := *x.SinceSeconds
yym3542 := z.EncBinary()
_ = yym3542
if false {
} else {
r.EncodeInt(int64(yy3541))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("SinceSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.SinceSeconds == nil {
r.EncodeNil()
} else {
yy3543 := *x.SinceSeconds
yym3544 := z.EncBinary()
_ = yym3544
if false {
} else {
r.EncodeInt(int64(yy3543))
}
}
}
if yyr3524 || yy2arr3524 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.SinceTime == nil {
r.EncodeNil()
} else {
yym3546 := z.EncBinary()
_ = yym3546
if false {
} else if z.HasExtensions() && z.EncExt(x.SinceTime) {
} else if yym3546 {
z.EncBinaryMarshal(x.SinceTime)
} else if !yym3546 && 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 {
yym3547 := z.EncBinary()
_ = yym3547
if false {
} else if z.HasExtensions() && z.EncExt(x.SinceTime) {
} else if yym3547 {
z.EncBinaryMarshal(x.SinceTime)
} else if !yym3547 && z.IsJSONHandle() {
z.EncJSONMarshal(x.SinceTime)
} else {
z.EncFallback(x.SinceTime)
}
}
}
if yyr3524 || yy2arr3524 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3549 := z.EncBinary()
_ = yym3549
if false {
} else {
r.EncodeBool(bool(x.Timestamps))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Timestamps"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3550 := z.EncBinary()
_ = yym3550
if false {
} else {
r.EncodeBool(bool(x.Timestamps))
}
}
if yyr3524 || yy2arr3524 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.TailLines == nil {
r.EncodeNil()
} else {
yy3552 := *x.TailLines
yym3553 := z.EncBinary()
_ = yym3553
if false {
} else {
r.EncodeInt(int64(yy3552))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("TailLines"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.TailLines == nil {
r.EncodeNil()
} else {
yy3554 := *x.TailLines
yym3555 := z.EncBinary()
_ = yym3555
if false {
} else {
r.EncodeInt(int64(yy3554))
}
}
}
if yyr3524 || yy2arr3524 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.LimitBytes == nil {
r.EncodeNil()
} else {
yy3557 := *x.LimitBytes
yym3558 := z.EncBinary()
_ = yym3558
if false {
} else {
r.EncodeInt(int64(yy3557))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("LimitBytes"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.LimitBytes == nil {
r.EncodeNil()
} else {
yy3559 := *x.LimitBytes
yym3560 := z.EncBinary()
_ = yym3560
if false {
} else {
r.EncodeInt(int64(yy3559))
}
}
}
if yyr3524 || yy2arr3524 {
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
yym3561 := z.DecBinary()
_ = yym3561
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3562 := r.ContainerType()
if yyct3562 == codecSelferValueTypeMap1234 {
yyl3562 := r.ReadMapStart()
if yyl3562 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3562, d)
}
} else if yyct3562 == codecSelferValueTypeArray1234 {
yyl3562 := r.ReadArrayStart()
if yyl3562 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3562, 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 yys3563Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3563Slc
var yyhl3563 bool = l >= 0
for yyj3563 := 0; ; yyj3563++ {
if yyhl3563 {
if yyj3563 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3563Slc = r.DecodeBytes(yys3563Slc, true, true)
yys3563 := string(yys3563Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3563 {
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)
}
yym3570 := z.DecBinary()
_ = yym3570
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)
}
yym3572 := z.DecBinary()
_ = yym3572
if false {
} else if z.HasExtensions() && z.DecExt(x.SinceTime) {
} else if yym3572 {
z.DecBinaryUnmarshal(x.SinceTime)
} else if !yym3572 && 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)
}
yym3575 := z.DecBinary()
_ = yym3575
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)
}
yym3577 := z.DecBinary()
_ = yym3577
if false {
} else {
*((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64))
}
}
default:
z.DecStructFieldNotFound(-1, yys3563)
} // end switch yys3563
} // end for yyj3563
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 yyj3578 int
var yyb3578 bool
var yyhl3578 bool = l >= 0
yyj3578++
if yyhl3578 {
yyb3578 = yyj3578 > l
} else {
yyb3578 = r.CheckBreak()
}
if yyb3578 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3578++
if yyhl3578 {
yyb3578 = yyj3578 > l
} else {
yyb3578 = r.CheckBreak()
}
if yyb3578 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3578++
if yyhl3578 {
yyb3578 = yyj3578 > l
} else {
yyb3578 = r.CheckBreak()
}
if yyb3578 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Container = ""
} else {
x.Container = string(r.DecodeString())
}
yyj3578++
if yyhl3578 {
yyb3578 = yyj3578 > l
} else {
yyb3578 = r.CheckBreak()
}
if yyb3578 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Follow = false
} else {
x.Follow = bool(r.DecodeBool())
}
yyj3578++
if yyhl3578 {
yyb3578 = yyj3578 > l
} else {
yyb3578 = r.CheckBreak()
}
if yyb3578 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Previous = false
} else {
x.Previous = bool(r.DecodeBool())
}
yyj3578++
if yyhl3578 {
yyb3578 = yyj3578 > l
} else {
yyb3578 = r.CheckBreak()
}
if yyb3578 {
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)
}
yym3585 := z.DecBinary()
_ = yym3585
if false {
} else {
*((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64))
}
}
yyj3578++
if yyhl3578 {
yyb3578 = yyj3578 > l
} else {
yyb3578 = r.CheckBreak()
}
if yyb3578 {
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)
}
yym3587 := z.DecBinary()
_ = yym3587
if false {
} else if z.HasExtensions() && z.DecExt(x.SinceTime) {
} else if yym3587 {
z.DecBinaryUnmarshal(x.SinceTime)
} else if !yym3587 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.SinceTime)
} else {
z.DecFallback(x.SinceTime, false)
}
}
yyj3578++
if yyhl3578 {
yyb3578 = yyj3578 > l
} else {
yyb3578 = r.CheckBreak()
}
if yyb3578 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Timestamps = false
} else {
x.Timestamps = bool(r.DecodeBool())
}
yyj3578++
if yyhl3578 {
yyb3578 = yyj3578 > l
} else {
yyb3578 = r.CheckBreak()
}
if yyb3578 {
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)
}
yym3590 := z.DecBinary()
_ = yym3590
if false {
} else {
*((*int64)(x.TailLines)) = int64(r.DecodeInt(64))
}
}
yyj3578++
if yyhl3578 {
yyb3578 = yyj3578 > l
} else {
yyb3578 = r.CheckBreak()
}
if yyb3578 {
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)
}
yym3592 := z.DecBinary()
_ = yym3592
if false {
} else {
*((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64))
}
}
for {
yyj3578++
if yyhl3578 {
yyb3578 = yyj3578 > l
} else {
yyb3578 = r.CheckBreak()
}
if yyb3578 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3578-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 {
yym3593 := z.EncBinary()
_ = yym3593
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3594 := !z.EncBinary()
yy2arr3594 := z.EncBasicHandle().StructToArray
var yyq3594 [7]bool
_, _, _ = yysep3594, yyq3594, yy2arr3594
const yyr3594 bool = false
yyq3594[0] = x.Kind != ""
yyq3594[1] = x.APIVersion != ""
yyq3594[2] = x.Stdin != false
yyq3594[3] = x.Stdout != false
yyq3594[4] = x.Stderr != false
yyq3594[5] = x.TTY != false
yyq3594[6] = x.Container != ""
var yynn3594 int
if yyr3594 || yy2arr3594 {
r.EncodeArrayStart(7)
} else {
yynn3594 = 0
for _, b := range yyq3594 {
if b {
yynn3594++
}
}
r.EncodeMapStart(yynn3594)
yynn3594 = 0
}
if yyr3594 || yy2arr3594 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3594[0] {
yym3596 := z.EncBinary()
_ = yym3596
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3594[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3597 := z.EncBinary()
_ = yym3597
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3594 || yy2arr3594 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3594[1] {
yym3599 := z.EncBinary()
_ = yym3599
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3594[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3600 := z.EncBinary()
_ = yym3600
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3594 || yy2arr3594 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3594[2] {
yym3602 := z.EncBinary()
_ = yym3602
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq3594[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stdin"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3603 := z.EncBinary()
_ = yym3603
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
}
}
if yyr3594 || yy2arr3594 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3594[3] {
yym3605 := z.EncBinary()
_ = yym3605
if false {
} else {
r.EncodeBool(bool(x.Stdout))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq3594[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stdout"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3606 := z.EncBinary()
_ = yym3606
if false {
} else {
r.EncodeBool(bool(x.Stdout))
}
}
}
if yyr3594 || yy2arr3594 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3594[4] {
yym3608 := z.EncBinary()
_ = yym3608
if false {
} else {
r.EncodeBool(bool(x.Stderr))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq3594[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stderr"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3609 := z.EncBinary()
_ = yym3609
if false {
} else {
r.EncodeBool(bool(x.Stderr))
}
}
}
if yyr3594 || yy2arr3594 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3594[5] {
yym3611 := z.EncBinary()
_ = yym3611
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq3594[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("tty"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3612 := z.EncBinary()
_ = yym3612
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
}
}
if yyr3594 || yy2arr3594 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3594[6] {
yym3614 := z.EncBinary()
_ = yym3614
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3594[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("container"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3615 := z.EncBinary()
_ = yym3615
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
}
}
}
if yyr3594 || yy2arr3594 {
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
yym3616 := z.DecBinary()
_ = yym3616
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3617 := r.ContainerType()
if yyct3617 == codecSelferValueTypeMap1234 {
yyl3617 := r.ReadMapStart()
if yyl3617 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3617, d)
}
} else if yyct3617 == codecSelferValueTypeArray1234 {
yyl3617 := r.ReadArrayStart()
if yyl3617 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3617, 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 yys3618Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3618Slc
var yyhl3618 bool = l >= 0
for yyj3618 := 0; ; yyj3618++ {
if yyhl3618 {
if yyj3618 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3618Slc = r.DecodeBytes(yys3618Slc, true, true)
yys3618 := string(yys3618Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3618 {
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, yys3618)
} // end switch yys3618
} // end for yyj3618
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 yyj3626 int
var yyb3626 bool
var yyhl3626 bool = l >= 0
yyj3626++
if yyhl3626 {
yyb3626 = yyj3626 > l
} else {
yyb3626 = r.CheckBreak()
}
if yyb3626 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3626++
if yyhl3626 {
yyb3626 = yyj3626 > l
} else {
yyb3626 = r.CheckBreak()
}
if yyb3626 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3626++
if yyhl3626 {
yyb3626 = yyj3626 > l
} else {
yyb3626 = r.CheckBreak()
}
if yyb3626 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdin = false
} else {
x.Stdin = bool(r.DecodeBool())
}
yyj3626++
if yyhl3626 {
yyb3626 = yyj3626 > l
} else {
yyb3626 = r.CheckBreak()
}
if yyb3626 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdout = false
} else {
x.Stdout = bool(r.DecodeBool())
}
yyj3626++
if yyhl3626 {
yyb3626 = yyj3626 > l
} else {
yyb3626 = r.CheckBreak()
}
if yyb3626 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stderr = false
} else {
x.Stderr = bool(r.DecodeBool())
}
yyj3626++
if yyhl3626 {
yyb3626 = yyj3626 > l
} else {
yyb3626 = r.CheckBreak()
}
if yyb3626 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TTY = false
} else {
x.TTY = bool(r.DecodeBool())
}
yyj3626++
if yyhl3626 {
yyb3626 = yyj3626 > l
} else {
yyb3626 = r.CheckBreak()
}
if yyb3626 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Container = ""
} else {
x.Container = string(r.DecodeString())
}
for {
yyj3626++
if yyhl3626 {
yyb3626 = yyj3626 > l
} else {
yyb3626 = r.CheckBreak()
}
if yyb3626 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3626-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3634 := z.EncBinary()
_ = yym3634
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3635 := !z.EncBinary()
yy2arr3635 := z.EncBasicHandle().StructToArray
var yyq3635 [8]bool
_, _, _ = yysep3635, yyq3635, yy2arr3635
const yyr3635 bool = false
yyq3635[0] = x.Kind != ""
yyq3635[1] = x.APIVersion != ""
var yynn3635 int
if yyr3635 || yy2arr3635 {
r.EncodeArrayStart(8)
} else {
yynn3635 = 6
for _, b := range yyq3635 {
if b {
yynn3635++
}
}
r.EncodeMapStart(yynn3635)
yynn3635 = 0
}
if yyr3635 || yy2arr3635 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3635[0] {
yym3637 := z.EncBinary()
_ = yym3637
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3635[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3638 := z.EncBinary()
_ = yym3638
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3635 || yy2arr3635 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3635[1] {
yym3640 := z.EncBinary()
_ = yym3640
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3635[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3641 := z.EncBinary()
_ = yym3641
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3635 || yy2arr3635 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3643 := z.EncBinary()
_ = yym3643
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Stdin"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3644 := z.EncBinary()
_ = yym3644
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
}
if yyr3635 || yy2arr3635 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3646 := z.EncBinary()
_ = yym3646
if false {
} else {
r.EncodeBool(bool(x.Stdout))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Stdout"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3647 := z.EncBinary()
_ = yym3647
if false {
} else {
r.EncodeBool(bool(x.Stdout))
}
}
if yyr3635 || yy2arr3635 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3649 := z.EncBinary()
_ = yym3649
if false {
} else {
r.EncodeBool(bool(x.Stderr))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Stderr"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3650 := z.EncBinary()
_ = yym3650
if false {
} else {
r.EncodeBool(bool(x.Stderr))
}
}
if yyr3635 || yy2arr3635 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3652 := z.EncBinary()
_ = yym3652
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("TTY"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3653 := z.EncBinary()
_ = yym3653
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
}
if yyr3635 || yy2arr3635 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3655 := z.EncBinary()
_ = yym3655
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)
yym3656 := z.EncBinary()
_ = yym3656
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
}
}
if yyr3635 || yy2arr3635 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Command == nil {
r.EncodeNil()
} else {
yym3658 := z.EncBinary()
_ = yym3658
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 {
yym3659 := z.EncBinary()
_ = yym3659
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
}
if yyr3635 || yy2arr3635 {
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
yym3660 := z.DecBinary()
_ = yym3660
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3661 := r.ContainerType()
if yyct3661 == codecSelferValueTypeMap1234 {
yyl3661 := r.ReadMapStart()
if yyl3661 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3661, d)
}
} else if yyct3661 == codecSelferValueTypeArray1234 {
yyl3661 := r.ReadArrayStart()
if yyl3661 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3661, 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 yys3662Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3662Slc
var yyhl3662 bool = l >= 0
for yyj3662 := 0; ; yyj3662++ {
if yyhl3662 {
if yyj3662 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3662Slc = r.DecodeBytes(yys3662Slc, true, true)
yys3662 := string(yys3662Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3662 {
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 {
yyv3670 := &x.Command
yym3671 := z.DecBinary()
_ = yym3671
if false {
} else {
z.F.DecSliceStringX(yyv3670, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3662)
} // end switch yys3662
} // end for yyj3662
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 yyj3672 int
var yyb3672 bool
var yyhl3672 bool = l >= 0
yyj3672++
if yyhl3672 {
yyb3672 = yyj3672 > l
} else {
yyb3672 = r.CheckBreak()
}
if yyb3672 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3672++
if yyhl3672 {
yyb3672 = yyj3672 > l
} else {
yyb3672 = r.CheckBreak()
}
if yyb3672 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3672++
if yyhl3672 {
yyb3672 = yyj3672 > l
} else {
yyb3672 = r.CheckBreak()
}
if yyb3672 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdin = false
} else {
x.Stdin = bool(r.DecodeBool())
}
yyj3672++
if yyhl3672 {
yyb3672 = yyj3672 > l
} else {
yyb3672 = r.CheckBreak()
}
if yyb3672 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdout = false
} else {
x.Stdout = bool(r.DecodeBool())
}
yyj3672++
if yyhl3672 {
yyb3672 = yyj3672 > l
} else {
yyb3672 = r.CheckBreak()
}
if yyb3672 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stderr = false
} else {
x.Stderr = bool(r.DecodeBool())
}
yyj3672++
if yyhl3672 {
yyb3672 = yyj3672 > l
} else {
yyb3672 = r.CheckBreak()
}
if yyb3672 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TTY = false
} else {
x.TTY = bool(r.DecodeBool())
}
yyj3672++
if yyhl3672 {
yyb3672 = yyj3672 > l
} else {
yyb3672 = r.CheckBreak()
}
if yyb3672 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Container = ""
} else {
x.Container = string(r.DecodeString())
}
yyj3672++
if yyhl3672 {
yyb3672 = yyj3672 > l
} else {
yyb3672 = r.CheckBreak()
}
if yyb3672 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Command = nil
} else {
yyv3680 := &x.Command
yym3681 := z.DecBinary()
_ = yym3681
if false {
} else {
z.F.DecSliceStringX(yyv3680, false, d)
}
}
for {
yyj3672++
if yyhl3672 {
yyb3672 = yyj3672 > l
} else {
yyb3672 = r.CheckBreak()
}
if yyb3672 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3672-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 {
yym3682 := z.EncBinary()
_ = yym3682
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3683 := !z.EncBinary()
yy2arr3683 := z.EncBasicHandle().StructToArray
var yyq3683 [3]bool
_, _, _ = yysep3683, yyq3683, yy2arr3683
const yyr3683 bool = false
yyq3683[0] = x.Kind != ""
yyq3683[1] = x.APIVersion != ""
var yynn3683 int
if yyr3683 || yy2arr3683 {
r.EncodeArrayStart(3)
} else {
yynn3683 = 1
for _, b := range yyq3683 {
if b {
yynn3683++
}
}
r.EncodeMapStart(yynn3683)
yynn3683 = 0
}
if yyr3683 || yy2arr3683 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3683[0] {
yym3685 := z.EncBinary()
_ = yym3685
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3683[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3686 := z.EncBinary()
_ = yym3686
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3683 || yy2arr3683 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3683[1] {
yym3688 := z.EncBinary()
_ = yym3688
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3683[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3689 := z.EncBinary()
_ = yym3689
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3683 || yy2arr3683 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3691 := z.EncBinary()
_ = yym3691
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)
yym3692 := z.EncBinary()
_ = yym3692
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr3683 || yy2arr3683 {
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
yym3693 := z.DecBinary()
_ = yym3693
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3694 := r.ContainerType()
if yyct3694 == codecSelferValueTypeMap1234 {
yyl3694 := r.ReadMapStart()
if yyl3694 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3694, d)
}
} else if yyct3694 == codecSelferValueTypeArray1234 {
yyl3694 := r.ReadArrayStart()
if yyl3694 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3694, 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 yys3695Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3695Slc
var yyhl3695 bool = l >= 0
for yyj3695 := 0; ; yyj3695++ {
if yyhl3695 {
if yyj3695 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3695Slc = r.DecodeBytes(yys3695Slc, true, true)
yys3695 := string(yys3695Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3695 {
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, yys3695)
} // end switch yys3695
} // end for yyj3695
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 yyj3699 int
var yyb3699 bool
var yyhl3699 bool = l >= 0
yyj3699++
if yyhl3699 {
yyb3699 = yyj3699 > l
} else {
yyb3699 = r.CheckBreak()
}
if yyb3699 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3699++
if yyhl3699 {
yyb3699 = yyj3699 > l
} else {
yyb3699 = r.CheckBreak()
}
if yyb3699 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3699++
if yyhl3699 {
yyb3699 = yyj3699 > l
} else {
yyb3699 = r.CheckBreak()
}
if yyb3699 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
for {
yyj3699++
if yyhl3699 {
yyb3699 = yyj3699 > l
} else {
yyb3699 = r.CheckBreak()
}
if yyb3699 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3699-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3703 := z.EncBinary()
_ = yym3703
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3704 := !z.EncBinary()
yy2arr3704 := z.EncBasicHandle().StructToArray
var yyq3704 [3]bool
_, _, _ = yysep3704, yyq3704, yy2arr3704
const yyr3704 bool = false
yyq3704[0] = x.Kind != ""
yyq3704[1] = x.APIVersion != ""
var yynn3704 int
if yyr3704 || yy2arr3704 {
r.EncodeArrayStart(3)
} else {
yynn3704 = 1
for _, b := range yyq3704 {
if b {
yynn3704++
}
}
r.EncodeMapStart(yynn3704)
yynn3704 = 0
}
if yyr3704 || yy2arr3704 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3704[0] {
yym3706 := z.EncBinary()
_ = yym3706
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3704[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3707 := z.EncBinary()
_ = yym3707
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3704 || yy2arr3704 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3704[1] {
yym3709 := z.EncBinary()
_ = yym3709
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3704[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3710 := z.EncBinary()
_ = yym3710
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3704 || yy2arr3704 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3712 := z.EncBinary()
_ = yym3712
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)
yym3713 := z.EncBinary()
_ = yym3713
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr3704 || yy2arr3704 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *NodeProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym3714 := z.DecBinary()
_ = yym3714
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3715 := r.ContainerType()
if yyct3715 == codecSelferValueTypeMap1234 {
yyl3715 := r.ReadMapStart()
if yyl3715 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3715, d)
}
} else if yyct3715 == codecSelferValueTypeArray1234 {
yyl3715 := r.ReadArrayStart()
if yyl3715 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3715, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NodeProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3716Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3716Slc
var yyhl3716 bool = l >= 0
for yyj3716 := 0; ; yyj3716++ {
if yyhl3716 {
if yyj3716 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3716Slc = r.DecodeBytes(yys3716Slc, true, true)
yys3716 := string(yys3716Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3716 {
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, yys3716)
} // end switch yys3716
} // end for yyj3716
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj3720 int
var yyb3720 bool
var yyhl3720 bool = l >= 0
yyj3720++
if yyhl3720 {
yyb3720 = yyj3720 > l
} else {
yyb3720 = r.CheckBreak()
}
if yyb3720 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3720++
if yyhl3720 {
yyb3720 = yyj3720 > l
} else {
yyb3720 = r.CheckBreak()
}
if yyb3720 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3720++
if yyhl3720 {
yyb3720 = yyj3720 > l
} else {
yyb3720 = r.CheckBreak()
}
if yyb3720 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
for {
yyj3720++
if yyhl3720 {
yyb3720 = yyj3720 > l
} else {
yyb3720 = r.CheckBreak()
}
if yyb3720 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3720-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3724 := z.EncBinary()
_ = yym3724
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3725 := !z.EncBinary()
yy2arr3725 := z.EncBasicHandle().StructToArray
var yyq3725 [3]bool
_, _, _ = yysep3725, yyq3725, yy2arr3725
const yyr3725 bool = false
yyq3725[0] = x.Kind != ""
yyq3725[1] = x.APIVersion != ""
var yynn3725 int
if yyr3725 || yy2arr3725 {
r.EncodeArrayStart(3)
} else {
yynn3725 = 1
for _, b := range yyq3725 {
if b {
yynn3725++
}
}
r.EncodeMapStart(yynn3725)
yynn3725 = 0
}
if yyr3725 || yy2arr3725 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3725[0] {
yym3727 := z.EncBinary()
_ = yym3727
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3725[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3728 := z.EncBinary()
_ = yym3728
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3725 || yy2arr3725 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3725[1] {
yym3730 := z.EncBinary()
_ = yym3730
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3725[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3731 := z.EncBinary()
_ = yym3731
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3725 || yy2arr3725 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3733 := z.EncBinary()
_ = yym3733
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)
yym3734 := z.EncBinary()
_ = yym3734
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr3725 || yy2arr3725 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ServiceProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym3735 := z.DecBinary()
_ = yym3735
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3736 := r.ContainerType()
if yyct3736 == codecSelferValueTypeMap1234 {
yyl3736 := r.ReadMapStart()
if yyl3736 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3736, d)
}
} else if yyct3736 == codecSelferValueTypeArray1234 {
yyl3736 := r.ReadArrayStart()
if yyl3736 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3736, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ServiceProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3737Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3737Slc
var yyhl3737 bool = l >= 0
for yyj3737 := 0; ; yyj3737++ {
if yyhl3737 {
if yyj3737 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3737Slc = r.DecodeBytes(yys3737Slc, true, true)
yys3737 := string(yys3737Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3737 {
case "kind":
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
case "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, yys3737)
} // end switch yys3737
} // end for yyj3737
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj3741 int
var yyb3741 bool
var yyhl3741 bool = l >= 0
yyj3741++
if yyhl3741 {
yyb3741 = yyj3741 > l
} else {
yyb3741 = r.CheckBreak()
}
if yyb3741 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3741++
if yyhl3741 {
yyb3741 = yyj3741 > l
} else {
yyb3741 = r.CheckBreak()
}
if yyb3741 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3741++
if yyhl3741 {
yyb3741 = yyj3741 > l
} else {
yyb3741 = r.CheckBreak()
}
if yyb3741 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
for {
yyj3741++
if yyhl3741 {
yyb3741 = yyj3741 > l
} else {
yyb3741 = r.CheckBreak()
}
if yyb3741 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3741-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3745 := z.EncBinary()
_ = yym3745
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3746 := !z.EncBinary()
yy2arr3746 := z.EncBasicHandle().StructToArray
var yyq3746 [5]bool
_, _, _ = yysep3746, yyq3746, yy2arr3746
const yyr3746 bool = false
yyq3746[4] = x.Controller != nil
var yynn3746 int
if yyr3746 || yy2arr3746 {
r.EncodeArrayStart(5)
} else {
yynn3746 = 4
for _, b := range yyq3746 {
if b {
yynn3746++
}
}
r.EncodeMapStart(yynn3746)
yynn3746 = 0
}
if yyr3746 || yy2arr3746 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3748 := z.EncBinary()
_ = yym3748
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)
yym3749 := z.EncBinary()
_ = yym3749
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
if yyr3746 || yy2arr3746 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3751 := z.EncBinary()
_ = yym3751
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3752 := z.EncBinary()
_ = yym3752
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
if yyr3746 || yy2arr3746 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3754 := z.EncBinary()
_ = yym3754
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)
yym3755 := z.EncBinary()
_ = yym3755
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr3746 || yy2arr3746 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3757 := z.EncBinary()
_ = yym3757
if false {
} else if z.HasExtensions() && z.EncExt(x.UID) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.UID))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("uid"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3758 := z.EncBinary()
_ = yym3758
if false {
} else if z.HasExtensions() && z.EncExt(x.UID) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.UID))
}
}
if yyr3746 || yy2arr3746 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3746[4] {
if x.Controller == nil {
r.EncodeNil()
} else {
yy3760 := *x.Controller
yym3761 := z.EncBinary()
_ = yym3761
if false {
} else {
r.EncodeBool(bool(yy3760))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3746[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("controller"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Controller == nil {
r.EncodeNil()
} else {
yy3762 := *x.Controller
yym3763 := z.EncBinary()
_ = yym3763
if false {
} else {
r.EncodeBool(bool(yy3762))
}
}
}
}
if yyr3746 || yy2arr3746 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *OwnerReference) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym3764 := z.DecBinary()
_ = yym3764
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3765 := r.ContainerType()
if yyct3765 == codecSelferValueTypeMap1234 {
yyl3765 := r.ReadMapStart()
if yyl3765 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3765, d)
}
} else if yyct3765 == codecSelferValueTypeArray1234 {
yyl3765 := r.ReadArrayStart()
if yyl3765 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3765, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *OwnerReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3766Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3766Slc
var yyhl3766 bool = l >= 0
for yyj3766 := 0; ; yyj3766++ {
if yyhl3766 {
if yyj3766 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3766Slc = r.DecodeBytes(yys3766Slc, true, true)
yys3766 := string(yys3766Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3766 {
case "apiVersion":
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
case "kind":
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "uid":
if r.TryDecodeAsNil() {
x.UID = ""
} else {
x.UID = pkg1_types.UID(r.DecodeString())
}
case "controller":
if r.TryDecodeAsNil() {
if x.Controller != nil {
x.Controller = nil
}
} else {
if x.Controller == nil {
x.Controller = new(bool)
}
yym3772 := z.DecBinary()
_ = yym3772
if false {
} else {
*((*bool)(x.Controller)) = r.DecodeBool()
}
}
default:
z.DecStructFieldNotFound(-1, yys3766)
} // end switch yys3766
} // end for yyj3766
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj3773 int
var yyb3773 bool
var yyhl3773 bool = l >= 0
yyj3773++
if yyhl3773 {
yyb3773 = yyj3773 > l
} else {
yyb3773 = r.CheckBreak()
}
if yyb3773 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3773++
if yyhl3773 {
yyb3773 = yyj3773 > l
} else {
yyb3773 = r.CheckBreak()
}
if yyb3773 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3773++
if yyhl3773 {
yyb3773 = yyj3773 > l
} else {
yyb3773 = r.CheckBreak()
}
if yyb3773 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj3773++
if yyhl3773 {
yyb3773 = yyj3773 > l
} else {
yyb3773 = r.CheckBreak()
}
if yyb3773 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.UID = ""
} else {
x.UID = pkg1_types.UID(r.DecodeString())
}
yyj3773++
if yyhl3773 {
yyb3773 = yyj3773 > l
} else {
yyb3773 = r.CheckBreak()
}
if yyb3773 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Controller != nil {
x.Controller = nil
}
} else {
if x.Controller == nil {
x.Controller = new(bool)
}
yym3779 := z.DecBinary()
_ = yym3779
if false {
} else {
*((*bool)(x.Controller)) = r.DecodeBool()
}
}
for {
yyj3773++
if yyhl3773 {
yyb3773 = yyj3773 > l
} else {
yyb3773 = r.CheckBreak()
}
if yyb3773 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3773-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 {
yym3780 := z.EncBinary()
_ = yym3780
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3781 := !z.EncBinary()
yy2arr3781 := z.EncBasicHandle().StructToArray
var yyq3781 [7]bool
_, _, _ = yysep3781, yyq3781, yy2arr3781
const yyr3781 bool = false
yyq3781[0] = x.Kind != ""
yyq3781[1] = x.Namespace != ""
yyq3781[2] = x.Name != ""
yyq3781[3] = x.UID != ""
yyq3781[4] = x.APIVersion != ""
yyq3781[5] = x.ResourceVersion != ""
yyq3781[6] = x.FieldPath != ""
var yynn3781 int
if yyr3781 || yy2arr3781 {
r.EncodeArrayStart(7)
} else {
yynn3781 = 0
for _, b := range yyq3781 {
if b {
yynn3781++
}
}
r.EncodeMapStart(yynn3781)
yynn3781 = 0
}
if yyr3781 || yy2arr3781 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3781[0] {
yym3783 := z.EncBinary()
_ = yym3783
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3781[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3784 := z.EncBinary()
_ = yym3784
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3781 || yy2arr3781 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3781[1] {
yym3786 := z.EncBinary()
_ = yym3786
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3781[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("namespace"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3787 := z.EncBinary()
_ = yym3787
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
}
}
}
if yyr3781 || yy2arr3781 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3781[2] {
yym3789 := z.EncBinary()
_ = yym3789
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3781[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3790 := z.EncBinary()
_ = yym3790
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
}
if yyr3781 || yy2arr3781 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3781[3] {
yym3792 := z.EncBinary()
_ = yym3792
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 yyq3781[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("uid"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3793 := z.EncBinary()
_ = yym3793
if false {
} else if z.HasExtensions() && z.EncExt(x.UID) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.UID))
}
}
}
if yyr3781 || yy2arr3781 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3781[4] {
yym3795 := z.EncBinary()
_ = yym3795
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3781[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3796 := z.EncBinary()
_ = yym3796
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3781 || yy2arr3781 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3781[5] {
yym3798 := z.EncBinary()
_ = yym3798
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3781[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("resourceVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3799 := z.EncBinary()
_ = yym3799
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
}
}
}
if yyr3781 || yy2arr3781 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3781[6] {
yym3801 := z.EncBinary()
_ = yym3801
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3781[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fieldPath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3802 := z.EncBinary()
_ = yym3802
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
}
}
}
if yyr3781 || yy2arr3781 {
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
yym3803 := z.DecBinary()
_ = yym3803
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3804 := r.ContainerType()
if yyct3804 == codecSelferValueTypeMap1234 {
yyl3804 := r.ReadMapStart()
if yyl3804 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3804, d)
}
} else if yyct3804 == codecSelferValueTypeArray1234 {
yyl3804 := r.ReadArrayStart()
if yyl3804 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3804, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3805Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3805Slc
var yyhl3805 bool = l >= 0
for yyj3805 := 0; ; yyj3805++ {
if yyhl3805 {
if yyj3805 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3805Slc = r.DecodeBytes(yys3805Slc, true, true)
yys3805 := string(yys3805Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3805 {
case "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, yys3805)
} // end switch yys3805
} // end for yyj3805
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 yyj3813 int
var yyb3813 bool
var yyhl3813 bool = l >= 0
yyj3813++
if yyhl3813 {
yyb3813 = yyj3813 > l
} else {
yyb3813 = r.CheckBreak()
}
if yyb3813 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3813++
if yyhl3813 {
yyb3813 = yyj3813 > l
} else {
yyb3813 = r.CheckBreak()
}
if yyb3813 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Namespace = ""
} else {
x.Namespace = string(r.DecodeString())
}
yyj3813++
if yyhl3813 {
yyb3813 = yyj3813 > l
} else {
yyb3813 = r.CheckBreak()
}
if yyb3813 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj3813++
if yyhl3813 {
yyb3813 = yyj3813 > l
} else {
yyb3813 = r.CheckBreak()
}
if yyb3813 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.UID = ""
} else {
x.UID = pkg1_types.UID(r.DecodeString())
}
yyj3813++
if yyhl3813 {
yyb3813 = yyj3813 > l
} else {
yyb3813 = r.CheckBreak()
}
if yyb3813 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3813++
if yyhl3813 {
yyb3813 = yyj3813 > l
} else {
yyb3813 = r.CheckBreak()
}
if yyb3813 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ResourceVersion = ""
} else {
x.ResourceVersion = string(r.DecodeString())
}
yyj3813++
if yyhl3813 {
yyb3813 = yyj3813 > l
} else {
yyb3813 = r.CheckBreak()
}
if yyb3813 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FieldPath = ""
} else {
x.FieldPath = string(r.DecodeString())
}
for {
yyj3813++
if yyhl3813 {
yyb3813 = yyj3813 > l
} else {
yyb3813 = r.CheckBreak()
}
if yyb3813 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3813-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 {
yym3821 := z.EncBinary()
_ = yym3821
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3822 := !z.EncBinary()
yy2arr3822 := z.EncBasicHandle().StructToArray
var yyq3822 [1]bool
_, _, _ = yysep3822, yyq3822, yy2arr3822
const yyr3822 bool = false
var yynn3822 int
if yyr3822 || yy2arr3822 {
r.EncodeArrayStart(1)
} else {
yynn3822 = 1
for _, b := range yyq3822 {
if b {
yynn3822++
}
}
r.EncodeMapStart(yynn3822)
yynn3822 = 0
}
if yyr3822 || yy2arr3822 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3824 := z.EncBinary()
_ = yym3824
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)
yym3825 := z.EncBinary()
_ = yym3825
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr3822 || yy2arr3822 {
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
yym3826 := z.DecBinary()
_ = yym3826
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3827 := r.ContainerType()
if yyct3827 == codecSelferValueTypeMap1234 {
yyl3827 := r.ReadMapStart()
if yyl3827 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3827, d)
}
} else if yyct3827 == codecSelferValueTypeArray1234 {
yyl3827 := r.ReadArrayStart()
if yyl3827 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3827, 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 yys3828Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3828Slc
var yyhl3828 bool = l >= 0
for yyj3828 := 0; ; yyj3828++ {
if yyhl3828 {
if yyj3828 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3828Slc = r.DecodeBytes(yys3828Slc, true, true)
yys3828 := string(yys3828Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3828 {
case "Name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys3828)
} // end switch yys3828
} // end for yyj3828
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 yyj3830 int
var yyb3830 bool
var yyhl3830 bool = l >= 0
yyj3830++
if yyhl3830 {
yyb3830 = yyj3830 > l
} else {
yyb3830 = r.CheckBreak()
}
if yyb3830 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
for {
yyj3830++
if yyhl3830 {
yyb3830 = yyj3830 > l
} else {
yyb3830 = r.CheckBreak()
}
if yyb3830 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3830-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 {
yym3832 := z.EncBinary()
_ = yym3832
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3833 := !z.EncBinary()
yy2arr3833 := z.EncBasicHandle().StructToArray
var yyq3833 [3]bool
_, _, _ = yysep3833, yyq3833, yy2arr3833
const yyr3833 bool = false
yyq3833[0] = x.Kind != ""
yyq3833[1] = x.APIVersion != ""
yyq3833[2] = true
var yynn3833 int
if yyr3833 || yy2arr3833 {
r.EncodeArrayStart(3)
} else {
yynn3833 = 0
for _, b := range yyq3833 {
if b {
yynn3833++
}
}
r.EncodeMapStart(yynn3833)
yynn3833 = 0
}
if yyr3833 || yy2arr3833 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3833[0] {
yym3835 := z.EncBinary()
_ = yym3835
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3833[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3836 := z.EncBinary()
_ = yym3836
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3833 || yy2arr3833 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3833[1] {
yym3838 := z.EncBinary()
_ = yym3838
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3833[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3839 := z.EncBinary()
_ = yym3839
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3833 || yy2arr3833 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3833[2] {
yy3841 := &x.Reference
yy3841.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3833[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reference"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3842 := &x.Reference
yy3842.CodecEncodeSelf(e)
}
}
if yyr3833 || yy2arr3833 {
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
yym3843 := z.DecBinary()
_ = yym3843
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3844 := r.ContainerType()
if yyct3844 == codecSelferValueTypeMap1234 {
yyl3844 := r.ReadMapStart()
if yyl3844 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3844, d)
}
} else if yyct3844 == codecSelferValueTypeArray1234 {
yyl3844 := r.ReadArrayStart()
if yyl3844 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3844, 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 yys3845Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3845Slc
var yyhl3845 bool = l >= 0
for yyj3845 := 0; ; yyj3845++ {
if yyhl3845 {
if yyj3845 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3845Slc = r.DecodeBytes(yys3845Slc, true, true)
yys3845 := string(yys3845Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3845 {
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 {
yyv3848 := &x.Reference
yyv3848.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3845)
} // end switch yys3845
} // end for yyj3845
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 yyj3849 int
var yyb3849 bool
var yyhl3849 bool = l >= 0
yyj3849++
if yyhl3849 {
yyb3849 = yyj3849 > l
} else {
yyb3849 = r.CheckBreak()
}
if yyb3849 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3849++
if yyhl3849 {
yyb3849 = yyj3849 > l
} else {
yyb3849 = r.CheckBreak()
}
if yyb3849 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3849++
if yyhl3849 {
yyb3849 = yyj3849 > l
} else {
yyb3849 = r.CheckBreak()
}
if yyb3849 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reference = ObjectReference{}
} else {
yyv3852 := &x.Reference
yyv3852.CodecDecodeSelf(d)
}
for {
yyj3849++
if yyhl3849 {
yyb3849 = yyj3849 > l
} else {
yyb3849 = r.CheckBreak()
}
if yyb3849 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3849-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 {
yym3853 := z.EncBinary()
_ = yym3853
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3854 := !z.EncBinary()
yy2arr3854 := z.EncBasicHandle().StructToArray
var yyq3854 [2]bool
_, _, _ = yysep3854, yyq3854, yy2arr3854
const yyr3854 bool = false
yyq3854[0] = x.Component != ""
yyq3854[1] = x.Host != ""
var yynn3854 int
if yyr3854 || yy2arr3854 {
r.EncodeArrayStart(2)
} else {
yynn3854 = 0
for _, b := range yyq3854 {
if b {
yynn3854++
}
}
r.EncodeMapStart(yynn3854)
yynn3854 = 0
}
if yyr3854 || yy2arr3854 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3854[0] {
yym3856 := z.EncBinary()
_ = yym3856
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Component))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3854[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("component"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3857 := z.EncBinary()
_ = yym3857
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Component))
}
}
}
if yyr3854 || yy2arr3854 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3854[1] {
yym3859 := z.EncBinary()
_ = yym3859
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3854[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("host"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3860 := z.EncBinary()
_ = yym3860
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
}
}
}
if yyr3854 || yy2arr3854 {
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
yym3861 := z.DecBinary()
_ = yym3861
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3862 := r.ContainerType()
if yyct3862 == codecSelferValueTypeMap1234 {
yyl3862 := r.ReadMapStart()
if yyl3862 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3862, d)
}
} else if yyct3862 == codecSelferValueTypeArray1234 {
yyl3862 := r.ReadArrayStart()
if yyl3862 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3862, 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 yys3863Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3863Slc
var yyhl3863 bool = l >= 0
for yyj3863 := 0; ; yyj3863++ {
if yyhl3863 {
if yyj3863 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3863Slc = r.DecodeBytes(yys3863Slc, true, true)
yys3863 := string(yys3863Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3863 {
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, yys3863)
} // end switch yys3863
} // end for yyj3863
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 yyj3866 int
var yyb3866 bool
var yyhl3866 bool = l >= 0
yyj3866++
if yyhl3866 {
yyb3866 = yyj3866 > l
} else {
yyb3866 = r.CheckBreak()
}
if yyb3866 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Component = ""
} else {
x.Component = string(r.DecodeString())
}
yyj3866++
if yyhl3866 {
yyb3866 = yyj3866 > l
} else {
yyb3866 = r.CheckBreak()
}
if yyb3866 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Host = ""
} else {
x.Host = string(r.DecodeString())
}
for {
yyj3866++
if yyhl3866 {
yyb3866 = yyj3866 > l
} else {
yyb3866 = r.CheckBreak()
}
if yyb3866 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3866-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3869 := z.EncBinary()
_ = yym3869
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3870 := !z.EncBinary()
yy2arr3870 := z.EncBasicHandle().StructToArray
var yyq3870 [11]bool
_, _, _ = yysep3870, yyq3870, yy2arr3870
const yyr3870 bool = false
yyq3870[0] = x.Kind != ""
yyq3870[1] = x.APIVersion != ""
yyq3870[2] = true
yyq3870[3] = true
yyq3870[4] = x.Reason != ""
yyq3870[5] = x.Message != ""
yyq3870[6] = true
yyq3870[7] = true
yyq3870[8] = true
yyq3870[9] = x.Count != 0
yyq3870[10] = x.Type != ""
var yynn3870 int
if yyr3870 || yy2arr3870 {
r.EncodeArrayStart(11)
} else {
yynn3870 = 0
for _, b := range yyq3870 {
if b {
yynn3870++
}
}
r.EncodeMapStart(yynn3870)
yynn3870 = 0
}
if yyr3870 || yy2arr3870 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3870[0] {
yym3872 := z.EncBinary()
_ = yym3872
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3870[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3873 := z.EncBinary()
_ = yym3873
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3870 || yy2arr3870 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3870[1] {
yym3875 := z.EncBinary()
_ = yym3875
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3870[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3876 := z.EncBinary()
_ = yym3876
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3870 || yy2arr3870 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3870[2] {
yy3878 := &x.ObjectMeta
yy3878.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3870[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3879 := &x.ObjectMeta
yy3879.CodecEncodeSelf(e)
}
}
if yyr3870 || yy2arr3870 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3870[3] {
yy3881 := &x.InvolvedObject
yy3881.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3870[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("involvedObject"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3882 := &x.InvolvedObject
yy3882.CodecEncodeSelf(e)
}
}
if yyr3870 || yy2arr3870 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3870[4] {
yym3884 := z.EncBinary()
_ = yym3884
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3870[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3885 := z.EncBinary()
_ = yym3885
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr3870 || yy2arr3870 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3870[5] {
yym3887 := z.EncBinary()
_ = yym3887
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3870[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3888 := z.EncBinary()
_ = yym3888
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr3870 || yy2arr3870 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3870[6] {
yy3890 := &x.Source
yy3890.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3870[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("source"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3891 := &x.Source
yy3891.CodecEncodeSelf(e)
}
}
if yyr3870 || yy2arr3870 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3870[7] {
yy3893 := &x.FirstTimestamp
yym3894 := z.EncBinary()
_ = yym3894
if false {
} else if z.HasExtensions() && z.EncExt(yy3893) {
} else if yym3894 {
z.EncBinaryMarshal(yy3893)
} else if !yym3894 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3893)
} else {
z.EncFallback(yy3893)
}
} else {
r.EncodeNil()
}
} else {
if yyq3870[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3895 := &x.FirstTimestamp
yym3896 := z.EncBinary()
_ = yym3896
if false {
} else if z.HasExtensions() && z.EncExt(yy3895) {
} else if yym3896 {
z.EncBinaryMarshal(yy3895)
} else if !yym3896 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3895)
} else {
z.EncFallback(yy3895)
}
}
}
if yyr3870 || yy2arr3870 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3870[8] {
yy3898 := &x.LastTimestamp
yym3899 := z.EncBinary()
_ = yym3899
if false {
} else if z.HasExtensions() && z.EncExt(yy3898) {
} else if yym3899 {
z.EncBinaryMarshal(yy3898)
} else if !yym3899 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3898)
} else {
z.EncFallback(yy3898)
}
} else {
r.EncodeNil()
}
} else {
if yyq3870[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3900 := &x.LastTimestamp
yym3901 := z.EncBinary()
_ = yym3901
if false {
} else if z.HasExtensions() && z.EncExt(yy3900) {
} else if yym3901 {
z.EncBinaryMarshal(yy3900)
} else if !yym3901 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3900)
} else {
z.EncFallback(yy3900)
}
}
}
if yyr3870 || yy2arr3870 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3870[9] {
yym3903 := z.EncBinary()
_ = yym3903
if false {
} else {
r.EncodeInt(int64(x.Count))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq3870[9] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("count"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3904 := z.EncBinary()
_ = yym3904
if false {
} else {
r.EncodeInt(int64(x.Count))
}
}
}
if yyr3870 || yy2arr3870 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3870[10] {
yym3906 := z.EncBinary()
_ = yym3906
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3870[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3907 := z.EncBinary()
_ = yym3907
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
}
}
}
if yyr3870 || yy2arr3870 {
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
yym3908 := z.DecBinary()
_ = yym3908
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3909 := r.ContainerType()
if yyct3909 == codecSelferValueTypeMap1234 {
yyl3909 := r.ReadMapStart()
if yyl3909 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3909, d)
}
} else if yyct3909 == codecSelferValueTypeArray1234 {
yyl3909 := r.ReadArrayStart()
if yyl3909 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3909, 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 yys3910Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3910Slc
var yyhl3910 bool = l >= 0
for yyj3910 := 0; ; yyj3910++ {
if yyhl3910 {
if yyj3910 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3910Slc = r.DecodeBytes(yys3910Slc, true, true)
yys3910 := string(yys3910Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3910 {
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 {
yyv3913 := &x.ObjectMeta
yyv3913.CodecDecodeSelf(d)
}
case "involvedObject":
if r.TryDecodeAsNil() {
x.InvolvedObject = ObjectReference{}
} else {
yyv3914 := &x.InvolvedObject
yyv3914.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 {
yyv3917 := &x.Source
yyv3917.CodecDecodeSelf(d)
}
case "firstTimestamp":
if r.TryDecodeAsNil() {
x.FirstTimestamp = pkg2_unversioned.Time{}
} else {
yyv3918 := &x.FirstTimestamp
yym3919 := z.DecBinary()
_ = yym3919
if false {
} else if z.HasExtensions() && z.DecExt(yyv3918) {
} else if yym3919 {
z.DecBinaryUnmarshal(yyv3918)
} else if !yym3919 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3918)
} else {
z.DecFallback(yyv3918, false)
}
}
case "lastTimestamp":
if r.TryDecodeAsNil() {
x.LastTimestamp = pkg2_unversioned.Time{}
} else {
yyv3920 := &x.LastTimestamp
yym3921 := z.DecBinary()
_ = yym3921
if false {
} else if z.HasExtensions() && z.DecExt(yyv3920) {
} else if yym3921 {
z.DecBinaryUnmarshal(yyv3920)
} else if !yym3921 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3920)
} else {
z.DecFallback(yyv3920, false)
}
}
case "count":
if r.TryDecodeAsNil() {
x.Count = 0
} else {
x.Count = int32(r.DecodeInt(32))
}
case "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys3910)
} // end switch yys3910
} // end for yyj3910
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 yyj3924 int
var yyb3924 bool
var yyhl3924 bool = l >= 0
yyj3924++
if yyhl3924 {
yyb3924 = yyj3924 > l
} else {
yyb3924 = r.CheckBreak()
}
if yyb3924 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3924++
if yyhl3924 {
yyb3924 = yyj3924 > l
} else {
yyb3924 = r.CheckBreak()
}
if yyb3924 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3924++
if yyhl3924 {
yyb3924 = yyj3924 > l
} else {
yyb3924 = r.CheckBreak()
}
if yyb3924 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3927 := &x.ObjectMeta
yyv3927.CodecDecodeSelf(d)
}
yyj3924++
if yyhl3924 {
yyb3924 = yyj3924 > l
} else {
yyb3924 = r.CheckBreak()
}
if yyb3924 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.InvolvedObject = ObjectReference{}
} else {
yyv3928 := &x.InvolvedObject
yyv3928.CodecDecodeSelf(d)
}
yyj3924++
if yyhl3924 {
yyb3924 = yyj3924 > l
} else {
yyb3924 = r.CheckBreak()
}
if yyb3924 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj3924++
if yyhl3924 {
yyb3924 = yyj3924 > l
} else {
yyb3924 = r.CheckBreak()
}
if yyb3924 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
yyj3924++
if yyhl3924 {
yyb3924 = yyj3924 > l
} else {
yyb3924 = r.CheckBreak()
}
if yyb3924 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Source = EventSource{}
} else {
yyv3931 := &x.Source
yyv3931.CodecDecodeSelf(d)
}
yyj3924++
if yyhl3924 {
yyb3924 = yyj3924 > l
} else {
yyb3924 = r.CheckBreak()
}
if yyb3924 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FirstTimestamp = pkg2_unversioned.Time{}
} else {
yyv3932 := &x.FirstTimestamp
yym3933 := z.DecBinary()
_ = yym3933
if false {
} else if z.HasExtensions() && z.DecExt(yyv3932) {
} else if yym3933 {
z.DecBinaryUnmarshal(yyv3932)
} else if !yym3933 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3932)
} else {
z.DecFallback(yyv3932, false)
}
}
yyj3924++
if yyhl3924 {
yyb3924 = yyj3924 > l
} else {
yyb3924 = r.CheckBreak()
}
if yyb3924 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastTimestamp = pkg2_unversioned.Time{}
} else {
yyv3934 := &x.LastTimestamp
yym3935 := z.DecBinary()
_ = yym3935
if false {
} else if z.HasExtensions() && z.DecExt(yyv3934) {
} else if yym3935 {
z.DecBinaryUnmarshal(yyv3934)
} else if !yym3935 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3934)
} else {
z.DecFallback(yyv3934, false)
}
}
yyj3924++
if yyhl3924 {
yyb3924 = yyj3924 > l
} else {
yyb3924 = r.CheckBreak()
}
if yyb3924 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Count = 0
} else {
x.Count = int32(r.DecodeInt(32))
}
yyj3924++
if yyhl3924 {
yyb3924 = yyj3924 > l
} else {
yyb3924 = r.CheckBreak()
}
if yyb3924 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = string(r.DecodeString())
}
for {
yyj3924++
if yyhl3924 {
yyb3924 = yyj3924 > l
} else {
yyb3924 = r.CheckBreak()
}
if yyb3924 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3924-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 {
yym3938 := z.EncBinary()
_ = yym3938
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3939 := !z.EncBinary()
yy2arr3939 := z.EncBasicHandle().StructToArray
var yyq3939 [4]bool
_, _, _ = yysep3939, yyq3939, yy2arr3939
const yyr3939 bool = false
yyq3939[0] = x.Kind != ""
yyq3939[1] = x.APIVersion != ""
yyq3939[2] = true
var yynn3939 int
if yyr3939 || yy2arr3939 {
r.EncodeArrayStart(4)
} else {
yynn3939 = 1
for _, b := range yyq3939 {
if b {
yynn3939++
}
}
r.EncodeMapStart(yynn3939)
yynn3939 = 0
}
if yyr3939 || yy2arr3939 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3939[0] {
yym3941 := z.EncBinary()
_ = yym3941
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3939[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3942 := z.EncBinary()
_ = yym3942
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3939 || yy2arr3939 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3939[1] {
yym3944 := z.EncBinary()
_ = yym3944
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3939[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3945 := z.EncBinary()
_ = yym3945
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3939 || yy2arr3939 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3939[2] {
yy3947 := &x.ListMeta
yym3948 := z.EncBinary()
_ = yym3948
if false {
} else if z.HasExtensions() && z.EncExt(yy3947) {
} else {
z.EncFallback(yy3947)
}
} else {
r.EncodeNil()
}
} else {
if yyq3939[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3949 := &x.ListMeta
yym3950 := z.EncBinary()
_ = yym3950
if false {
} else if z.HasExtensions() && z.EncExt(yy3949) {
} else {
z.EncFallback(yy3949)
}
}
}
if yyr3939 || yy2arr3939 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3952 := z.EncBinary()
_ = yym3952
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 {
yym3953 := z.EncBinary()
_ = yym3953
if false {
} else {
h.encSliceEvent(([]Event)(x.Items), e)
}
}
}
if yyr3939 || yy2arr3939 {
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
yym3954 := z.DecBinary()
_ = yym3954
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3955 := r.ContainerType()
if yyct3955 == codecSelferValueTypeMap1234 {
yyl3955 := r.ReadMapStart()
if yyl3955 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3955, d)
}
} else if yyct3955 == codecSelferValueTypeArray1234 {
yyl3955 := r.ReadArrayStart()
if yyl3955 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3955, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *EventList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3956Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3956Slc
var yyhl3956 bool = l >= 0
for yyj3956 := 0; ; yyj3956++ {
if yyhl3956 {
if yyj3956 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3956Slc = r.DecodeBytes(yys3956Slc, true, true)
yys3956 := string(yys3956Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3956 {
case "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 {
yyv3959 := &x.ListMeta
yym3960 := z.DecBinary()
_ = yym3960
if false {
} else if z.HasExtensions() && z.DecExt(yyv3959) {
} else {
z.DecFallback(yyv3959, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3961 := &x.Items
yym3962 := z.DecBinary()
_ = yym3962
if false {
} else {
h.decSliceEvent((*[]Event)(yyv3961), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3956)
} // end switch yys3956
} // end for yyj3956
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 yyj3963 int
var yyb3963 bool
var yyhl3963 bool = l >= 0
yyj3963++
if yyhl3963 {
yyb3963 = yyj3963 > l
} else {
yyb3963 = r.CheckBreak()
}
if yyb3963 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3963++
if yyhl3963 {
yyb3963 = yyj3963 > l
} else {
yyb3963 = r.CheckBreak()
}
if yyb3963 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3963++
if yyhl3963 {
yyb3963 = yyj3963 > l
} else {
yyb3963 = r.CheckBreak()
}
if yyb3963 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3966 := &x.ListMeta
yym3967 := z.DecBinary()
_ = yym3967
if false {
} else if z.HasExtensions() && z.DecExt(yyv3966) {
} else {
z.DecFallback(yyv3966, false)
}
}
yyj3963++
if yyhl3963 {
yyb3963 = yyj3963 > l
} else {
yyb3963 = r.CheckBreak()
}
if yyb3963 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3968 := &x.Items
yym3969 := z.DecBinary()
_ = yym3969
if false {
} else {
h.decSliceEvent((*[]Event)(yyv3968), d)
}
}
for {
yyj3963++
if yyhl3963 {
yyb3963 = yyj3963 > l
} else {
yyb3963 = r.CheckBreak()
}
if yyb3963 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3963-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *List) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3970 := z.EncBinary()
_ = yym3970
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3971 := !z.EncBinary()
yy2arr3971 := z.EncBasicHandle().StructToArray
var yyq3971 [4]bool
_, _, _ = yysep3971, yyq3971, yy2arr3971
const yyr3971 bool = false
yyq3971[0] = x.Kind != ""
yyq3971[1] = x.APIVersion != ""
yyq3971[2] = true
var yynn3971 int
if yyr3971 || yy2arr3971 {
r.EncodeArrayStart(4)
} else {
yynn3971 = 1
for _, b := range yyq3971 {
if b {
yynn3971++
}
}
r.EncodeMapStart(yynn3971)
yynn3971 = 0
}
if yyr3971 || yy2arr3971 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3971[0] {
yym3973 := z.EncBinary()
_ = yym3973
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3971[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3974 := z.EncBinary()
_ = yym3974
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3971 || yy2arr3971 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3971[1] {
yym3976 := z.EncBinary()
_ = yym3976
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3971[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3977 := z.EncBinary()
_ = yym3977
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3971 || yy2arr3971 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3971[2] {
yy3979 := &x.ListMeta
yym3980 := z.EncBinary()
_ = yym3980
if false {
} else if z.HasExtensions() && z.EncExt(yy3979) {
} else {
z.EncFallback(yy3979)
}
} else {
r.EncodeNil()
}
} else {
if yyq3971[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3981 := &x.ListMeta
yym3982 := z.EncBinary()
_ = yym3982
if false {
} else if z.HasExtensions() && z.EncExt(yy3981) {
} else {
z.EncFallback(yy3981)
}
}
}
if yyr3971 || yy2arr3971 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3984 := z.EncBinary()
_ = yym3984
if false {
} else {
h.encSliceruntime_Object(([]pkg7_runtime.Object)(x.Items), e)
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("items"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3985 := z.EncBinary()
_ = yym3985
if false {
} else {
h.encSliceruntime_Object(([]pkg7_runtime.Object)(x.Items), e)
}
}
}
if yyr3971 || yy2arr3971 {
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
yym3986 := z.DecBinary()
_ = yym3986
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3987 := r.ContainerType()
if yyct3987 == codecSelferValueTypeMap1234 {
yyl3987 := r.ReadMapStart()
if yyl3987 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3987, d)
}
} else if yyct3987 == codecSelferValueTypeArray1234 {
yyl3987 := r.ReadArrayStart()
if yyl3987 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3987, 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 yys3988Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3988Slc
var yyhl3988 bool = l >= 0
for yyj3988 := 0; ; yyj3988++ {
if yyhl3988 {
if yyj3988 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3988Slc = r.DecodeBytes(yys3988Slc, true, true)
yys3988 := string(yys3988Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3988 {
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 {
yyv3991 := &x.ListMeta
yym3992 := z.DecBinary()
_ = yym3992
if false {
} else if z.HasExtensions() && z.DecExt(yyv3991) {
} else {
z.DecFallback(yyv3991, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3993 := &x.Items
yym3994 := z.DecBinary()
_ = yym3994
if false {
} else {
h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv3993), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3988)
} // end switch yys3988
} // end for yyj3988
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 yyj3995 int
var yyb3995 bool
var yyhl3995 bool = l >= 0
yyj3995++
if yyhl3995 {
yyb3995 = yyj3995 > l
} else {
yyb3995 = r.CheckBreak()
}
if yyb3995 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3995++
if yyhl3995 {
yyb3995 = yyj3995 > l
} else {
yyb3995 = r.CheckBreak()
}
if yyb3995 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3995++
if yyhl3995 {
yyb3995 = yyj3995 > l
} else {
yyb3995 = r.CheckBreak()
}
if yyb3995 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3998 := &x.ListMeta
yym3999 := z.DecBinary()
_ = yym3999
if false {
} else if z.HasExtensions() && z.DecExt(yyv3998) {
} else {
z.DecFallback(yyv3998, false)
}
}
yyj3995++
if yyhl3995 {
yyb3995 = yyj3995 > l
} else {
yyb3995 = r.CheckBreak()
}
if yyb3995 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4000 := &x.Items
yym4001 := z.DecBinary()
_ = yym4001
if false {
} else {
h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv4000), d)
}
}
for {
yyj3995++
if yyhl3995 {
yyb3995 = yyj3995 > l
} else {
yyb3995 = r.CheckBreak()
}
if yyb3995 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3995-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym4002 := z.EncBinary()
_ = yym4002
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
yym4003 := z.DecBinary()
_ = yym4003
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 {
yym4004 := z.EncBinary()
_ = yym4004
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4005 := !z.EncBinary()
yy2arr4005 := z.EncBasicHandle().StructToArray
var yyq4005 [6]bool
_, _, _ = yysep4005, yyq4005, yy2arr4005
const yyr4005 bool = false
yyq4005[0] = x.Type != ""
yyq4005[1] = len(x.Max) != 0
yyq4005[2] = len(x.Min) != 0
yyq4005[3] = len(x.Default) != 0
yyq4005[4] = len(x.DefaultRequest) != 0
yyq4005[5] = len(x.MaxLimitRequestRatio) != 0
var yynn4005 int
if yyr4005 || yy2arr4005 {
r.EncodeArrayStart(6)
} else {
yynn4005 = 0
for _, b := range yyq4005 {
if b {
yynn4005++
}
}
r.EncodeMapStart(yynn4005)
yynn4005 = 0
}
if yyr4005 || yy2arr4005 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4005[0] {
x.Type.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4005[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Type.CodecEncodeSelf(e)
}
}
if yyr4005 || yy2arr4005 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4005[1] {
if x.Max == nil {
r.EncodeNil()
} else {
x.Max.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4005[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 yyr4005 || yy2arr4005 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4005[2] {
if x.Min == nil {
r.EncodeNil()
} else {
x.Min.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4005[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 yyr4005 || yy2arr4005 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4005[3] {
if x.Default == nil {
r.EncodeNil()
} else {
x.Default.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4005[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 yyr4005 || yy2arr4005 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4005[4] {
if x.DefaultRequest == nil {
r.EncodeNil()
} else {
x.DefaultRequest.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4005[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 yyr4005 || yy2arr4005 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4005[5] {
if x.MaxLimitRequestRatio == nil {
r.EncodeNil()
} else {
x.MaxLimitRequestRatio.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4005[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 yyr4005 || yy2arr4005 {
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
yym4012 := z.DecBinary()
_ = yym4012
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4013 := r.ContainerType()
if yyct4013 == codecSelferValueTypeMap1234 {
yyl4013 := r.ReadMapStart()
if yyl4013 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4013, d)
}
} else if yyct4013 == codecSelferValueTypeArray1234 {
yyl4013 := r.ReadArrayStart()
if yyl4013 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4013, 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 yys4014Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4014Slc
var yyhl4014 bool = l >= 0
for yyj4014 := 0; ; yyj4014++ {
if yyhl4014 {
if yyj4014 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4014Slc = r.DecodeBytes(yys4014Slc, true, true)
yys4014 := string(yys4014Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4014 {
case "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = LimitType(r.DecodeString())
}
case "max":
if r.TryDecodeAsNil() {
x.Max = nil
} else {
yyv4016 := &x.Max
yyv4016.CodecDecodeSelf(d)
}
case "min":
if r.TryDecodeAsNil() {
x.Min = nil
} else {
yyv4017 := &x.Min
yyv4017.CodecDecodeSelf(d)
}
case "default":
if r.TryDecodeAsNil() {
x.Default = nil
} else {
yyv4018 := &x.Default
yyv4018.CodecDecodeSelf(d)
}
case "defaultRequest":
if r.TryDecodeAsNil() {
x.DefaultRequest = nil
} else {
yyv4019 := &x.DefaultRequest
yyv4019.CodecDecodeSelf(d)
}
case "maxLimitRequestRatio":
if r.TryDecodeAsNil() {
x.MaxLimitRequestRatio = nil
} else {
yyv4020 := &x.MaxLimitRequestRatio
yyv4020.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys4014)
} // end switch yys4014
} // end for yyj4014
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 yyj4021 int
var yyb4021 bool
var yyhl4021 bool = l >= 0
yyj4021++
if yyhl4021 {
yyb4021 = yyj4021 > l
} else {
yyb4021 = r.CheckBreak()
}
if yyb4021 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = LimitType(r.DecodeString())
}
yyj4021++
if yyhl4021 {
yyb4021 = yyj4021 > l
} else {
yyb4021 = r.CheckBreak()
}
if yyb4021 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Max = nil
} else {
yyv4023 := &x.Max
yyv4023.CodecDecodeSelf(d)
}
yyj4021++
if yyhl4021 {
yyb4021 = yyj4021 > l
} else {
yyb4021 = r.CheckBreak()
}
if yyb4021 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Min = nil
} else {
yyv4024 := &x.Min
yyv4024.CodecDecodeSelf(d)
}
yyj4021++
if yyhl4021 {
yyb4021 = yyj4021 > l
} else {
yyb4021 = r.CheckBreak()
}
if yyb4021 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Default = nil
} else {
yyv4025 := &x.Default
yyv4025.CodecDecodeSelf(d)
}
yyj4021++
if yyhl4021 {
yyb4021 = yyj4021 > l
} else {
yyb4021 = r.CheckBreak()
}
if yyb4021 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DefaultRequest = nil
} else {
yyv4026 := &x.DefaultRequest
yyv4026.CodecDecodeSelf(d)
}
yyj4021++
if yyhl4021 {
yyb4021 = yyj4021 > l
} else {
yyb4021 = r.CheckBreak()
}
if yyb4021 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.MaxLimitRequestRatio = nil
} else {
yyv4027 := &x.MaxLimitRequestRatio
yyv4027.CodecDecodeSelf(d)
}
for {
yyj4021++
if yyhl4021 {
yyb4021 = yyj4021 > l
} else {
yyb4021 = r.CheckBreak()
}
if yyb4021 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4021-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 {
yym4028 := z.EncBinary()
_ = yym4028
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4029 := !z.EncBinary()
yy2arr4029 := z.EncBasicHandle().StructToArray
var yyq4029 [1]bool
_, _, _ = yysep4029, yyq4029, yy2arr4029
const yyr4029 bool = false
var yynn4029 int
if yyr4029 || yy2arr4029 {
r.EncodeArrayStart(1)
} else {
yynn4029 = 1
for _, b := range yyq4029 {
if b {
yynn4029++
}
}
r.EncodeMapStart(yynn4029)
yynn4029 = 0
}
if yyr4029 || yy2arr4029 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Limits == nil {
r.EncodeNil()
} else {
yym4031 := z.EncBinary()
_ = yym4031
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 {
yym4032 := z.EncBinary()
_ = yym4032
if false {
} else {
h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e)
}
}
}
if yyr4029 || yy2arr4029 {
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
yym4033 := z.DecBinary()
_ = yym4033
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4034 := r.ContainerType()
if yyct4034 == codecSelferValueTypeMap1234 {
yyl4034 := r.ReadMapStart()
if yyl4034 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4034, d)
}
} else if yyct4034 == codecSelferValueTypeArray1234 {
yyl4034 := r.ReadArrayStart()
if yyl4034 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4034, 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 yys4035Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4035Slc
var yyhl4035 bool = l >= 0
for yyj4035 := 0; ; yyj4035++ {
if yyhl4035 {
if yyj4035 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4035Slc = r.DecodeBytes(yys4035Slc, true, true)
yys4035 := string(yys4035Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4035 {
case "limits":
if r.TryDecodeAsNil() {
x.Limits = nil
} else {
yyv4036 := &x.Limits
yym4037 := z.DecBinary()
_ = yym4037
if false {
} else {
h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv4036), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4035)
} // end switch yys4035
} // end for yyj4035
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 yyj4038 int
var yyb4038 bool
var yyhl4038 bool = l >= 0
yyj4038++
if yyhl4038 {
yyb4038 = yyj4038 > l
} else {
yyb4038 = r.CheckBreak()
}
if yyb4038 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Limits = nil
} else {
yyv4039 := &x.Limits
yym4040 := z.DecBinary()
_ = yym4040
if false {
} else {
h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv4039), d)
}
}
for {
yyj4038++
if yyhl4038 {
yyb4038 = yyj4038 > l
} else {
yyb4038 = r.CheckBreak()
}
if yyb4038 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4038-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 {
yym4041 := z.EncBinary()
_ = yym4041
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4042 := !z.EncBinary()
yy2arr4042 := z.EncBasicHandle().StructToArray
var yyq4042 [4]bool
_, _, _ = yysep4042, yyq4042, yy2arr4042
const yyr4042 bool = false
yyq4042[0] = x.Kind != ""
yyq4042[1] = x.APIVersion != ""
yyq4042[2] = true
yyq4042[3] = true
var yynn4042 int
if yyr4042 || yy2arr4042 {
r.EncodeArrayStart(4)
} else {
yynn4042 = 0
for _, b := range yyq4042 {
if b {
yynn4042++
}
}
r.EncodeMapStart(yynn4042)
yynn4042 = 0
}
if yyr4042 || yy2arr4042 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4042[0] {
yym4044 := z.EncBinary()
_ = yym4044
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4042[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4045 := z.EncBinary()
_ = yym4045
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4042 || yy2arr4042 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4042[1] {
yym4047 := z.EncBinary()
_ = yym4047
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4042[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4048 := z.EncBinary()
_ = yym4048
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4042 || yy2arr4042 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4042[2] {
yy4050 := &x.ObjectMeta
yy4050.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4042[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4051 := &x.ObjectMeta
yy4051.CodecEncodeSelf(e)
}
}
if yyr4042 || yy2arr4042 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4042[3] {
yy4053 := &x.Spec
yy4053.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4042[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4054 := &x.Spec
yy4054.CodecEncodeSelf(e)
}
}
if yyr4042 || yy2arr4042 {
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
yym4055 := z.DecBinary()
_ = yym4055
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4056 := r.ContainerType()
if yyct4056 == codecSelferValueTypeMap1234 {
yyl4056 := r.ReadMapStart()
if yyl4056 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4056, d)
}
} else if yyct4056 == codecSelferValueTypeArray1234 {
yyl4056 := r.ReadArrayStart()
if yyl4056 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4056, 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 yys4057Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4057Slc
var yyhl4057 bool = l >= 0
for yyj4057 := 0; ; yyj4057++ {
if yyhl4057 {
if yyj4057 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4057Slc = r.DecodeBytes(yys4057Slc, true, true)
yys4057 := string(yys4057Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4057 {
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 {
yyv4060 := &x.ObjectMeta
yyv4060.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = LimitRangeSpec{}
} else {
yyv4061 := &x.Spec
yyv4061.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys4057)
} // end switch yys4057
} // end for yyj4057
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 yyj4062 int
var yyb4062 bool
var yyhl4062 bool = l >= 0
yyj4062++
if yyhl4062 {
yyb4062 = yyj4062 > l
} else {
yyb4062 = r.CheckBreak()
}
if yyb4062 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4062++
if yyhl4062 {
yyb4062 = yyj4062 > l
} else {
yyb4062 = r.CheckBreak()
}
if yyb4062 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4062++
if yyhl4062 {
yyb4062 = yyj4062 > l
} else {
yyb4062 = r.CheckBreak()
}
if yyb4062 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv4065 := &x.ObjectMeta
yyv4065.CodecDecodeSelf(d)
}
yyj4062++
if yyhl4062 {
yyb4062 = yyj4062 > l
} else {
yyb4062 = r.CheckBreak()
}
if yyb4062 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = LimitRangeSpec{}
} else {
yyv4066 := &x.Spec
yyv4066.CodecDecodeSelf(d)
}
for {
yyj4062++
if yyhl4062 {
yyb4062 = yyj4062 > l
} else {
yyb4062 = r.CheckBreak()
}
if yyb4062 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4062-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 {
yym4067 := z.EncBinary()
_ = yym4067
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4068 := !z.EncBinary()
yy2arr4068 := z.EncBasicHandle().StructToArray
var yyq4068 [4]bool
_, _, _ = yysep4068, yyq4068, yy2arr4068
const yyr4068 bool = false
yyq4068[0] = x.Kind != ""
yyq4068[1] = x.APIVersion != ""
yyq4068[2] = true
var yynn4068 int
if yyr4068 || yy2arr4068 {
r.EncodeArrayStart(4)
} else {
yynn4068 = 1
for _, b := range yyq4068 {
if b {
yynn4068++
}
}
r.EncodeMapStart(yynn4068)
yynn4068 = 0
}
if yyr4068 || yy2arr4068 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4068[0] {
yym4070 := z.EncBinary()
_ = yym4070
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4068[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4071 := z.EncBinary()
_ = yym4071
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4068 || yy2arr4068 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4068[1] {
yym4073 := z.EncBinary()
_ = yym4073
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4068[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4074 := z.EncBinary()
_ = yym4074
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4068 || yy2arr4068 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4068[2] {
yy4076 := &x.ListMeta
yym4077 := z.EncBinary()
_ = yym4077
if false {
} else if z.HasExtensions() && z.EncExt(yy4076) {
} else {
z.EncFallback(yy4076)
}
} else {
r.EncodeNil()
}
} else {
if yyq4068[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4078 := &x.ListMeta
yym4079 := z.EncBinary()
_ = yym4079
if false {
} else if z.HasExtensions() && z.EncExt(yy4078) {
} else {
z.EncFallback(yy4078)
}
}
}
if yyr4068 || yy2arr4068 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym4081 := z.EncBinary()
_ = yym4081
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 {
yym4082 := z.EncBinary()
_ = yym4082
if false {
} else {
h.encSliceLimitRange(([]LimitRange)(x.Items), e)
}
}
}
if yyr4068 || yy2arr4068 {
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
yym4083 := z.DecBinary()
_ = yym4083
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4084 := r.ContainerType()
if yyct4084 == codecSelferValueTypeMap1234 {
yyl4084 := r.ReadMapStart()
if yyl4084 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4084, d)
}
} else if yyct4084 == codecSelferValueTypeArray1234 {
yyl4084 := r.ReadArrayStart()
if yyl4084 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4084, 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 yys4085Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4085Slc
var yyhl4085 bool = l >= 0
for yyj4085 := 0; ; yyj4085++ {
if yyhl4085 {
if yyj4085 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4085Slc = r.DecodeBytes(yys4085Slc, true, true)
yys4085 := string(yys4085Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4085 {
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 {
yyv4088 := &x.ListMeta
yym4089 := z.DecBinary()
_ = yym4089
if false {
} else if z.HasExtensions() && z.DecExt(yyv4088) {
} else {
z.DecFallback(yyv4088, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4090 := &x.Items
yym4091 := z.DecBinary()
_ = yym4091
if false {
} else {
h.decSliceLimitRange((*[]LimitRange)(yyv4090), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4085)
} // end switch yys4085
} // end for yyj4085
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 yyj4092 int
var yyb4092 bool
var yyhl4092 bool = l >= 0
yyj4092++
if yyhl4092 {
yyb4092 = yyj4092 > l
} else {
yyb4092 = r.CheckBreak()
}
if yyb4092 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4092++
if yyhl4092 {
yyb4092 = yyj4092 > l
} else {
yyb4092 = r.CheckBreak()
}
if yyb4092 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4092++
if yyhl4092 {
yyb4092 = yyj4092 > l
} else {
yyb4092 = r.CheckBreak()
}
if yyb4092 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv4095 := &x.ListMeta
yym4096 := z.DecBinary()
_ = yym4096
if false {
} else if z.HasExtensions() && z.DecExt(yyv4095) {
} else {
z.DecFallback(yyv4095, false)
}
}
yyj4092++
if yyhl4092 {
yyb4092 = yyj4092 > l
} else {
yyb4092 = r.CheckBreak()
}
if yyb4092 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4097 := &x.Items
yym4098 := z.DecBinary()
_ = yym4098
if false {
} else {
h.decSliceLimitRange((*[]LimitRange)(yyv4097), d)
}
}
for {
yyj4092++
if yyhl4092 {
yyb4092 = yyj4092 > l
} else {
yyb4092 = r.CheckBreak()
}
if yyb4092 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4092-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x ResourceQuotaScope) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym4099 := z.EncBinary()
_ = yym4099
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *ResourceQuotaScope) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym4100 := z.DecBinary()
_ = yym4100
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym4101 := z.EncBinary()
_ = yym4101
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4102 := !z.EncBinary()
yy2arr4102 := z.EncBasicHandle().StructToArray
var yyq4102 [2]bool
_, _, _ = yysep4102, yyq4102, yy2arr4102
const yyr4102 bool = false
yyq4102[0] = len(x.Hard) != 0
yyq4102[1] = len(x.Scopes) != 0
var yynn4102 int
if yyr4102 || yy2arr4102 {
r.EncodeArrayStart(2)
} else {
yynn4102 = 0
for _, b := range yyq4102 {
if b {
yynn4102++
}
}
r.EncodeMapStart(yynn4102)
yynn4102 = 0
}
if yyr4102 || yy2arr4102 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4102[0] {
if x.Hard == nil {
r.EncodeNil()
} else {
x.Hard.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4102[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 yyr4102 || yy2arr4102 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4102[1] {
if x.Scopes == nil {
r.EncodeNil()
} else {
yym4105 := z.EncBinary()
_ = yym4105
if false {
} else {
h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4102[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("scopes"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Scopes == nil {
r.EncodeNil()
} else {
yym4106 := z.EncBinary()
_ = yym4106
if false {
} else {
h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e)
}
}
}
}
if yyr4102 || yy2arr4102 {
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
yym4107 := z.DecBinary()
_ = yym4107
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4108 := r.ContainerType()
if yyct4108 == codecSelferValueTypeMap1234 {
yyl4108 := r.ReadMapStart()
if yyl4108 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4108, d)
}
} else if yyct4108 == codecSelferValueTypeArray1234 {
yyl4108 := r.ReadArrayStart()
if yyl4108 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4108, 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 yys4109Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4109Slc
var yyhl4109 bool = l >= 0
for yyj4109 := 0; ; yyj4109++ {
if yyhl4109 {
if yyj4109 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4109Slc = r.DecodeBytes(yys4109Slc, true, true)
yys4109 := string(yys4109Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4109 {
case "hard":
if r.TryDecodeAsNil() {
x.Hard = nil
} else {
yyv4110 := &x.Hard
yyv4110.CodecDecodeSelf(d)
}
case "scopes":
if r.TryDecodeAsNil() {
x.Scopes = nil
} else {
yyv4111 := &x.Scopes
yym4112 := z.DecBinary()
_ = yym4112
if false {
} else {
h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4111), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4109)
} // end switch yys4109
} // end for yyj4109
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 yyj4113 int
var yyb4113 bool
var yyhl4113 bool = l >= 0
yyj4113++
if yyhl4113 {
yyb4113 = yyj4113 > l
} else {
yyb4113 = r.CheckBreak()
}
if yyb4113 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Hard = nil
} else {
yyv4114 := &x.Hard
yyv4114.CodecDecodeSelf(d)
}
yyj4113++
if yyhl4113 {
yyb4113 = yyj4113 > l
} else {
yyb4113 = r.CheckBreak()
}
if yyb4113 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Scopes = nil
} else {
yyv4115 := &x.Scopes
yym4116 := z.DecBinary()
_ = yym4116
if false {
} else {
h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4115), d)
}
}
for {
yyj4113++
if yyhl4113 {
yyb4113 = yyj4113 > l
} else {
yyb4113 = r.CheckBreak()
}
if yyb4113 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4113-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 {
yym4117 := z.EncBinary()
_ = yym4117
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4118 := !z.EncBinary()
yy2arr4118 := z.EncBasicHandle().StructToArray
var yyq4118 [2]bool
_, _, _ = yysep4118, yyq4118, yy2arr4118
const yyr4118 bool = false
yyq4118[0] = len(x.Hard) != 0
yyq4118[1] = len(x.Used) != 0
var yynn4118 int
if yyr4118 || yy2arr4118 {
r.EncodeArrayStart(2)
} else {
yynn4118 = 0
for _, b := range yyq4118 {
if b {
yynn4118++
}
}
r.EncodeMapStart(yynn4118)
yynn4118 = 0
}
if yyr4118 || yy2arr4118 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4118[0] {
if x.Hard == nil {
r.EncodeNil()
} else {
x.Hard.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4118[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 yyr4118 || yy2arr4118 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4118[1] {
if x.Used == nil {
r.EncodeNil()
} else {
x.Used.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4118[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 yyr4118 || yy2arr4118 {
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
yym4121 := z.DecBinary()
_ = yym4121
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4122 := r.ContainerType()
if yyct4122 == codecSelferValueTypeMap1234 {
yyl4122 := r.ReadMapStart()
if yyl4122 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4122, d)
}
} else if yyct4122 == codecSelferValueTypeArray1234 {
yyl4122 := r.ReadArrayStart()
if yyl4122 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4122, 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 yys4123Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4123Slc
var yyhl4123 bool = l >= 0
for yyj4123 := 0; ; yyj4123++ {
if yyhl4123 {
if yyj4123 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4123Slc = r.DecodeBytes(yys4123Slc, true, true)
yys4123 := string(yys4123Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4123 {
case "hard":
if r.TryDecodeAsNil() {
x.Hard = nil
} else {
yyv4124 := &x.Hard
yyv4124.CodecDecodeSelf(d)
}
case "used":
if r.TryDecodeAsNil() {
x.Used = nil
} else {
yyv4125 := &x.Used
yyv4125.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys4123)
} // end switch yys4123
} // end for yyj4123
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 yyj4126 int
var yyb4126 bool
var yyhl4126 bool = l >= 0
yyj4126++
if yyhl4126 {
yyb4126 = yyj4126 > l
} else {
yyb4126 = r.CheckBreak()
}
if yyb4126 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Hard = nil
} else {
yyv4127 := &x.Hard
yyv4127.CodecDecodeSelf(d)
}
yyj4126++
if yyhl4126 {
yyb4126 = yyj4126 > l
} else {
yyb4126 = r.CheckBreak()
}
if yyb4126 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Used = nil
} else {
yyv4128 := &x.Used
yyv4128.CodecDecodeSelf(d)
}
for {
yyj4126++
if yyhl4126 {
yyb4126 = yyj4126 > l
} else {
yyb4126 = r.CheckBreak()
}
if yyb4126 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4126-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 {
yym4129 := z.EncBinary()
_ = yym4129
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4130 := !z.EncBinary()
yy2arr4130 := z.EncBasicHandle().StructToArray
var yyq4130 [5]bool
_, _, _ = yysep4130, yyq4130, yy2arr4130
const yyr4130 bool = false
yyq4130[0] = x.Kind != ""
yyq4130[1] = x.APIVersion != ""
yyq4130[2] = true
yyq4130[3] = true
yyq4130[4] = true
var yynn4130 int
if yyr4130 || yy2arr4130 {
r.EncodeArrayStart(5)
} else {
yynn4130 = 0
for _, b := range yyq4130 {
if b {
yynn4130++
}
}
r.EncodeMapStart(yynn4130)
yynn4130 = 0
}
if yyr4130 || yy2arr4130 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4130[0] {
yym4132 := z.EncBinary()
_ = yym4132
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4130[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4133 := z.EncBinary()
_ = yym4133
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4130 || yy2arr4130 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4130[1] {
yym4135 := z.EncBinary()
_ = yym4135
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4130[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4136 := z.EncBinary()
_ = yym4136
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4130 || yy2arr4130 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4130[2] {
yy4138 := &x.ObjectMeta
yy4138.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4130[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4139 := &x.ObjectMeta
yy4139.CodecEncodeSelf(e)
}
}
if yyr4130 || yy2arr4130 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4130[3] {
yy4141 := &x.Spec
yy4141.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4130[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4142 := &x.Spec
yy4142.CodecEncodeSelf(e)
}
}
if yyr4130 || yy2arr4130 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4130[4] {
yy4144 := &x.Status
yy4144.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4130[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4145 := &x.Status
yy4145.CodecEncodeSelf(e)
}
}
if yyr4130 || yy2arr4130 {
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
yym4146 := z.DecBinary()
_ = yym4146
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4147 := r.ContainerType()
if yyct4147 == codecSelferValueTypeMap1234 {
yyl4147 := r.ReadMapStart()
if yyl4147 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4147, d)
}
} else if yyct4147 == codecSelferValueTypeArray1234 {
yyl4147 := r.ReadArrayStart()
if yyl4147 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4147, 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 yys4148Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4148Slc
var yyhl4148 bool = l >= 0
for yyj4148 := 0; ; yyj4148++ {
if yyhl4148 {
if yyj4148 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4148Slc = r.DecodeBytes(yys4148Slc, true, true)
yys4148 := string(yys4148Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4148 {
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 {
yyv4151 := &x.ObjectMeta
yyv4151.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = ResourceQuotaSpec{}
} else {
yyv4152 := &x.Spec
yyv4152.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = ResourceQuotaStatus{}
} else {
yyv4153 := &x.Status
yyv4153.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys4148)
} // end switch yys4148
} // end for yyj4148
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 yyj4154 int
var yyb4154 bool
var yyhl4154 bool = l >= 0
yyj4154++
if yyhl4154 {
yyb4154 = yyj4154 > l
} else {
yyb4154 = r.CheckBreak()
}
if yyb4154 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4154++
if yyhl4154 {
yyb4154 = yyj4154 > l
} else {
yyb4154 = r.CheckBreak()
}
if yyb4154 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4154++
if yyhl4154 {
yyb4154 = yyj4154 > l
} else {
yyb4154 = r.CheckBreak()
}
if yyb4154 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv4157 := &x.ObjectMeta
yyv4157.CodecDecodeSelf(d)
}
yyj4154++
if yyhl4154 {
yyb4154 = yyj4154 > l
} else {
yyb4154 = r.CheckBreak()
}
if yyb4154 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = ResourceQuotaSpec{}
} else {
yyv4158 := &x.Spec
yyv4158.CodecDecodeSelf(d)
}
yyj4154++
if yyhl4154 {
yyb4154 = yyj4154 > l
} else {
yyb4154 = r.CheckBreak()
}
if yyb4154 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ResourceQuotaStatus{}
} else {
yyv4159 := &x.Status
yyv4159.CodecDecodeSelf(d)
}
for {
yyj4154++
if yyhl4154 {
yyb4154 = yyj4154 > l
} else {
yyb4154 = r.CheckBreak()
}
if yyb4154 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4154-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 {
yym4160 := z.EncBinary()
_ = yym4160
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4161 := !z.EncBinary()
yy2arr4161 := z.EncBasicHandle().StructToArray
var yyq4161 [4]bool
_, _, _ = yysep4161, yyq4161, yy2arr4161
const yyr4161 bool = false
yyq4161[0] = x.Kind != ""
yyq4161[1] = x.APIVersion != ""
yyq4161[2] = true
var yynn4161 int
if yyr4161 || yy2arr4161 {
r.EncodeArrayStart(4)
} else {
yynn4161 = 1
for _, b := range yyq4161 {
if b {
yynn4161++
}
}
r.EncodeMapStart(yynn4161)
yynn4161 = 0
}
if yyr4161 || yy2arr4161 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4161[0] {
yym4163 := z.EncBinary()
_ = yym4163
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4161[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4164 := z.EncBinary()
_ = yym4164
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4161 || yy2arr4161 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4161[1] {
yym4166 := z.EncBinary()
_ = yym4166
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4161[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4167 := z.EncBinary()
_ = yym4167
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4161 || yy2arr4161 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4161[2] {
yy4169 := &x.ListMeta
yym4170 := z.EncBinary()
_ = yym4170
if false {
} else if z.HasExtensions() && z.EncExt(yy4169) {
} else {
z.EncFallback(yy4169)
}
} else {
r.EncodeNil()
}
} else {
if yyq4161[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4171 := &x.ListMeta
yym4172 := z.EncBinary()
_ = yym4172
if false {
} else if z.HasExtensions() && z.EncExt(yy4171) {
} else {
z.EncFallback(yy4171)
}
}
}
if yyr4161 || yy2arr4161 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym4174 := z.EncBinary()
_ = yym4174
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 {
yym4175 := z.EncBinary()
_ = yym4175
if false {
} else {
h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e)
}
}
}
if yyr4161 || yy2arr4161 {
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
yym4176 := z.DecBinary()
_ = yym4176
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4177 := r.ContainerType()
if yyct4177 == codecSelferValueTypeMap1234 {
yyl4177 := r.ReadMapStart()
if yyl4177 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4177, d)
}
} else if yyct4177 == codecSelferValueTypeArray1234 {
yyl4177 := r.ReadArrayStart()
if yyl4177 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4177, 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 yys4178Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4178Slc
var yyhl4178 bool = l >= 0
for yyj4178 := 0; ; yyj4178++ {
if yyhl4178 {
if yyj4178 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4178Slc = r.DecodeBytes(yys4178Slc, true, true)
yys4178 := string(yys4178Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4178 {
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 {
yyv4181 := &x.ListMeta
yym4182 := z.DecBinary()
_ = yym4182
if false {
} else if z.HasExtensions() && z.DecExt(yyv4181) {
} else {
z.DecFallback(yyv4181, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4183 := &x.Items
yym4184 := z.DecBinary()
_ = yym4184
if false {
} else {
h.decSliceResourceQuota((*[]ResourceQuota)(yyv4183), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4178)
} // end switch yys4178
} // end for yyj4178
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 yyj4185 int
var yyb4185 bool
var yyhl4185 bool = l >= 0
yyj4185++
if yyhl4185 {
yyb4185 = yyj4185 > l
} else {
yyb4185 = r.CheckBreak()
}
if yyb4185 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4185++
if yyhl4185 {
yyb4185 = yyj4185 > l
} else {
yyb4185 = r.CheckBreak()
}
if yyb4185 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4185++
if yyhl4185 {
yyb4185 = yyj4185 > l
} else {
yyb4185 = r.CheckBreak()
}
if yyb4185 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv4188 := &x.ListMeta
yym4189 := z.DecBinary()
_ = yym4189
if false {
} else if z.HasExtensions() && z.DecExt(yyv4188) {
} else {
z.DecFallback(yyv4188, false)
}
}
yyj4185++
if yyhl4185 {
yyb4185 = yyj4185 > l
} else {
yyb4185 = r.CheckBreak()
}
if yyb4185 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4190 := &x.Items
yym4191 := z.DecBinary()
_ = yym4191
if false {
} else {
h.decSliceResourceQuota((*[]ResourceQuota)(yyv4190), d)
}
}
for {
yyj4185++
if yyhl4185 {
yyb4185 = yyj4185 > l
} else {
yyb4185 = r.CheckBreak()
}
if yyb4185 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4185-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 {
yym4192 := z.EncBinary()
_ = yym4192
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4193 := !z.EncBinary()
yy2arr4193 := z.EncBasicHandle().StructToArray
var yyq4193 [5]bool
_, _, _ = yysep4193, yyq4193, yy2arr4193
const yyr4193 bool = false
yyq4193[0] = x.Kind != ""
yyq4193[1] = x.APIVersion != ""
yyq4193[2] = true
yyq4193[3] = len(x.Data) != 0
yyq4193[4] = x.Type != ""
var yynn4193 int
if yyr4193 || yy2arr4193 {
r.EncodeArrayStart(5)
} else {
yynn4193 = 0
for _, b := range yyq4193 {
if b {
yynn4193++
}
}
r.EncodeMapStart(yynn4193)
yynn4193 = 0
}
if yyr4193 || yy2arr4193 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4193[0] {
yym4195 := z.EncBinary()
_ = yym4195
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4193[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4196 := z.EncBinary()
_ = yym4196
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4193 || yy2arr4193 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4193[1] {
yym4198 := z.EncBinary()
_ = yym4198
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4193[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4199 := z.EncBinary()
_ = yym4199
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4193 || yy2arr4193 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4193[2] {
yy4201 := &x.ObjectMeta
yy4201.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4193[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4202 := &x.ObjectMeta
yy4202.CodecEncodeSelf(e)
}
}
if yyr4193 || yy2arr4193 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4193[3] {
if x.Data == nil {
r.EncodeNil()
} else {
yym4204 := z.EncBinary()
_ = yym4204
if false {
} else {
h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4193[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("data"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Data == nil {
r.EncodeNil()
} else {
yym4205 := z.EncBinary()
_ = yym4205
if false {
} else {
h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e)
}
}
}
}
if yyr4193 || yy2arr4193 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4193[4] {
x.Type.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4193[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Type.CodecEncodeSelf(e)
}
}
if yyr4193 || yy2arr4193 {
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
yym4207 := z.DecBinary()
_ = yym4207
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4208 := r.ContainerType()
if yyct4208 == codecSelferValueTypeMap1234 {
yyl4208 := r.ReadMapStart()
if yyl4208 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4208, d)
}
} else if yyct4208 == codecSelferValueTypeArray1234 {
yyl4208 := r.ReadArrayStart()
if yyl4208 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4208, 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 yys4209Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4209Slc
var yyhl4209 bool = l >= 0
for yyj4209 := 0; ; yyj4209++ {
if yyhl4209 {
if yyj4209 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4209Slc = r.DecodeBytes(yys4209Slc, true, true)
yys4209 := string(yys4209Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4209 {
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 {
yyv4212 := &x.ObjectMeta
yyv4212.CodecDecodeSelf(d)
}
case "data":
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv4213 := &x.Data
yym4214 := z.DecBinary()
_ = yym4214
if false {
} else {
h.decMapstringSliceuint8((*map[string][]uint8)(yyv4213), d)
}
}
case "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = SecretType(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys4209)
} // end switch yys4209
} // end for yyj4209
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 yyj4216 int
var yyb4216 bool
var yyhl4216 bool = l >= 0
yyj4216++
if yyhl4216 {
yyb4216 = yyj4216 > l
} else {
yyb4216 = r.CheckBreak()
}
if yyb4216 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4216++
if yyhl4216 {
yyb4216 = yyj4216 > l
} else {
yyb4216 = r.CheckBreak()
}
if yyb4216 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4216++
if yyhl4216 {
yyb4216 = yyj4216 > l
} else {
yyb4216 = r.CheckBreak()
}
if yyb4216 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv4219 := &x.ObjectMeta
yyv4219.CodecDecodeSelf(d)
}
yyj4216++
if yyhl4216 {
yyb4216 = yyj4216 > l
} else {
yyb4216 = r.CheckBreak()
}
if yyb4216 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv4220 := &x.Data
yym4221 := z.DecBinary()
_ = yym4221
if false {
} else {
h.decMapstringSliceuint8((*map[string][]uint8)(yyv4220), d)
}
}
yyj4216++
if yyhl4216 {
yyb4216 = yyj4216 > l
} else {
yyb4216 = r.CheckBreak()
}
if yyb4216 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = SecretType(r.DecodeString())
}
for {
yyj4216++
if yyhl4216 {
yyb4216 = yyj4216 > l
} else {
yyb4216 = r.CheckBreak()
}
if yyb4216 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4216-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x SecretType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym4223 := z.EncBinary()
_ = yym4223
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
yym4224 := z.DecBinary()
_ = yym4224
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 {
yym4225 := z.EncBinary()
_ = yym4225
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4226 := !z.EncBinary()
yy2arr4226 := z.EncBasicHandle().StructToArray
var yyq4226 [4]bool
_, _, _ = yysep4226, yyq4226, yy2arr4226
const yyr4226 bool = false
yyq4226[0] = x.Kind != ""
yyq4226[1] = x.APIVersion != ""
yyq4226[2] = true
var yynn4226 int
if yyr4226 || yy2arr4226 {
r.EncodeArrayStart(4)
} else {
yynn4226 = 1
for _, b := range yyq4226 {
if b {
yynn4226++
}
}
r.EncodeMapStart(yynn4226)
yynn4226 = 0
}
if yyr4226 || yy2arr4226 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4226[0] {
yym4228 := z.EncBinary()
_ = yym4228
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4226[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4229 := z.EncBinary()
_ = yym4229
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4226 || yy2arr4226 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4226[1] {
yym4231 := z.EncBinary()
_ = yym4231
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4226[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4232 := z.EncBinary()
_ = yym4232
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4226 || yy2arr4226 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4226[2] {
yy4234 := &x.ListMeta
yym4235 := z.EncBinary()
_ = yym4235
if false {
} else if z.HasExtensions() && z.EncExt(yy4234) {
} else {
z.EncFallback(yy4234)
}
} else {
r.EncodeNil()
}
} else {
if yyq4226[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4236 := &x.ListMeta
yym4237 := z.EncBinary()
_ = yym4237
if false {
} else if z.HasExtensions() && z.EncExt(yy4236) {
} else {
z.EncFallback(yy4236)
}
}
}
if yyr4226 || yy2arr4226 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym4239 := z.EncBinary()
_ = yym4239
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 {
yym4240 := z.EncBinary()
_ = yym4240
if false {
} else {
h.encSliceSecret(([]Secret)(x.Items), e)
}
}
}
if yyr4226 || yy2arr4226 {
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
yym4241 := z.DecBinary()
_ = yym4241
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4242 := r.ContainerType()
if yyct4242 == codecSelferValueTypeMap1234 {
yyl4242 := r.ReadMapStart()
if yyl4242 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4242, d)
}
} else if yyct4242 == codecSelferValueTypeArray1234 {
yyl4242 := r.ReadArrayStart()
if yyl4242 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4242, 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 yys4243Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4243Slc
var yyhl4243 bool = l >= 0
for yyj4243 := 0; ; yyj4243++ {
if yyhl4243 {
if yyj4243 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4243Slc = r.DecodeBytes(yys4243Slc, true, true)
yys4243 := string(yys4243Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4243 {
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 {
yyv4246 := &x.ListMeta
yym4247 := z.DecBinary()
_ = yym4247
if false {
} else if z.HasExtensions() && z.DecExt(yyv4246) {
} else {
z.DecFallback(yyv4246, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4248 := &x.Items
yym4249 := z.DecBinary()
_ = yym4249
if false {
} else {
h.decSliceSecret((*[]Secret)(yyv4248), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4243)
} // end switch yys4243
} // end for yyj4243
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 yyj4250 int
var yyb4250 bool
var yyhl4250 bool = l >= 0
yyj4250++
if yyhl4250 {
yyb4250 = yyj4250 > l
} else {
yyb4250 = r.CheckBreak()
}
if yyb4250 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4250++
if yyhl4250 {
yyb4250 = yyj4250 > l
} else {
yyb4250 = r.CheckBreak()
}
if yyb4250 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4250++
if yyhl4250 {
yyb4250 = yyj4250 > l
} else {
yyb4250 = r.CheckBreak()
}
if yyb4250 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv4253 := &x.ListMeta
yym4254 := z.DecBinary()
_ = yym4254
if false {
} else if z.HasExtensions() && z.DecExt(yyv4253) {
} else {
z.DecFallback(yyv4253, false)
}
}
yyj4250++
if yyhl4250 {
yyb4250 = yyj4250 > l
} else {
yyb4250 = r.CheckBreak()
}
if yyb4250 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4255 := &x.Items
yym4256 := z.DecBinary()
_ = yym4256
if false {
} else {
h.decSliceSecret((*[]Secret)(yyv4255), d)
}
}
for {
yyj4250++
if yyhl4250 {
yyb4250 = yyj4250 > l
} else {
yyb4250 = r.CheckBreak()
}
if yyb4250 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4250-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym4257 := z.EncBinary()
_ = yym4257
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4258 := !z.EncBinary()
yy2arr4258 := z.EncBasicHandle().StructToArray
var yyq4258 [4]bool
_, _, _ = yysep4258, yyq4258, yy2arr4258
const yyr4258 bool = false
yyq4258[0] = x.Kind != ""
yyq4258[1] = x.APIVersion != ""
yyq4258[2] = true
yyq4258[3] = len(x.Data) != 0
var yynn4258 int
if yyr4258 || yy2arr4258 {
r.EncodeArrayStart(4)
} else {
yynn4258 = 0
for _, b := range yyq4258 {
if b {
yynn4258++
}
}
r.EncodeMapStart(yynn4258)
yynn4258 = 0
}
if yyr4258 || yy2arr4258 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4258[0] {
yym4260 := z.EncBinary()
_ = yym4260
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4258[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4261 := z.EncBinary()
_ = yym4261
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4258 || yy2arr4258 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4258[1] {
yym4263 := z.EncBinary()
_ = yym4263
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4258[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4264 := z.EncBinary()
_ = yym4264
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4258 || yy2arr4258 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4258[2] {
yy4266 := &x.ObjectMeta
yy4266.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4258[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4267 := &x.ObjectMeta
yy4267.CodecEncodeSelf(e)
}
}
if yyr4258 || yy2arr4258 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4258[3] {
if x.Data == nil {
r.EncodeNil()
} else {
yym4269 := z.EncBinary()
_ = yym4269
if false {
} else {
z.F.EncMapStringStringV(x.Data, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4258[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("data"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Data == nil {
r.EncodeNil()
} else {
yym4270 := z.EncBinary()
_ = yym4270
if false {
} else {
z.F.EncMapStringStringV(x.Data, false, e)
}
}
}
}
if yyr4258 || yy2arr4258 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ConfigMap) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym4271 := z.DecBinary()
_ = yym4271
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4272 := r.ContainerType()
if yyct4272 == codecSelferValueTypeMap1234 {
yyl4272 := r.ReadMapStart()
if yyl4272 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4272, d)
}
} else if yyct4272 == codecSelferValueTypeArray1234 {
yyl4272 := r.ReadArrayStart()
if yyl4272 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4272, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ConfigMap) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys4273Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4273Slc
var yyhl4273 bool = l >= 0
for yyj4273 := 0; ; yyj4273++ {
if yyhl4273 {
if yyj4273 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4273Slc = r.DecodeBytes(yys4273Slc, true, true)
yys4273 := string(yys4273Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4273 {
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 {
yyv4276 := &x.ObjectMeta
yyv4276.CodecDecodeSelf(d)
}
case "data":
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv4277 := &x.Data
yym4278 := z.DecBinary()
_ = yym4278
if false {
} else {
z.F.DecMapStringStringX(yyv4277, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4273)
} // end switch yys4273
} // end for yyj4273
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj4279 int
var yyb4279 bool
var yyhl4279 bool = l >= 0
yyj4279++
if yyhl4279 {
yyb4279 = yyj4279 > l
} else {
yyb4279 = r.CheckBreak()
}
if yyb4279 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4279++
if yyhl4279 {
yyb4279 = yyj4279 > l
} else {
yyb4279 = r.CheckBreak()
}
if yyb4279 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4279++
if yyhl4279 {
yyb4279 = yyj4279 > l
} else {
yyb4279 = r.CheckBreak()
}
if yyb4279 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv4282 := &x.ObjectMeta
yyv4282.CodecDecodeSelf(d)
}
yyj4279++
if yyhl4279 {
yyb4279 = yyj4279 > l
} else {
yyb4279 = r.CheckBreak()
}
if yyb4279 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv4283 := &x.Data
yym4284 := z.DecBinary()
_ = yym4284
if false {
} else {
z.F.DecMapStringStringX(yyv4283, false, d)
}
}
for {
yyj4279++
if yyhl4279 {
yyb4279 = yyj4279 > l
} else {
yyb4279 = r.CheckBreak()
}
if yyb4279 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4279-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym4285 := z.EncBinary()
_ = yym4285
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4286 := !z.EncBinary()
yy2arr4286 := z.EncBasicHandle().StructToArray
var yyq4286 [4]bool
_, _, _ = yysep4286, yyq4286, yy2arr4286
const yyr4286 bool = false
yyq4286[0] = x.Kind != ""
yyq4286[1] = x.APIVersion != ""
yyq4286[2] = true
var yynn4286 int
if yyr4286 || yy2arr4286 {
r.EncodeArrayStart(4)
} else {
yynn4286 = 1
for _, b := range yyq4286 {
if b {
yynn4286++
}
}
r.EncodeMapStart(yynn4286)
yynn4286 = 0
}
if yyr4286 || yy2arr4286 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4286[0] {
yym4288 := z.EncBinary()
_ = yym4288
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4286[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4289 := z.EncBinary()
_ = yym4289
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4286 || yy2arr4286 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4286[1] {
yym4291 := z.EncBinary()
_ = yym4291
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4286[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4292 := z.EncBinary()
_ = yym4292
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4286 || yy2arr4286 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4286[2] {
yy4294 := &x.ListMeta
yym4295 := z.EncBinary()
_ = yym4295
if false {
} else if z.HasExtensions() && z.EncExt(yy4294) {
} else {
z.EncFallback(yy4294)
}
} else {
r.EncodeNil()
}
} else {
if yyq4286[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4296 := &x.ListMeta
yym4297 := z.EncBinary()
_ = yym4297
if false {
} else if z.HasExtensions() && z.EncExt(yy4296) {
} else {
z.EncFallback(yy4296)
}
}
}
if yyr4286 || yy2arr4286 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym4299 := z.EncBinary()
_ = yym4299
if false {
} else {
h.encSliceConfigMap(([]ConfigMap)(x.Items), e)
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("items"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym4300 := z.EncBinary()
_ = yym4300
if false {
} else {
h.encSliceConfigMap(([]ConfigMap)(x.Items), e)
}
}
}
if yyr4286 || yy2arr4286 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ConfigMapList) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym4301 := z.DecBinary()
_ = yym4301
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4302 := r.ContainerType()
if yyct4302 == codecSelferValueTypeMap1234 {
yyl4302 := r.ReadMapStart()
if yyl4302 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4302, d)
}
} else if yyct4302 == codecSelferValueTypeArray1234 {
yyl4302 := r.ReadArrayStart()
if yyl4302 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4302, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ConfigMapList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys4303Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4303Slc
var yyhl4303 bool = l >= 0
for yyj4303 := 0; ; yyj4303++ {
if yyhl4303 {
if yyj4303 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4303Slc = r.DecodeBytes(yys4303Slc, true, true)
yys4303 := string(yys4303Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4303 {
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 {
yyv4306 := &x.ListMeta
yym4307 := z.DecBinary()
_ = yym4307
if false {
} else if z.HasExtensions() && z.DecExt(yyv4306) {
} else {
z.DecFallback(yyv4306, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4308 := &x.Items
yym4309 := z.DecBinary()
_ = yym4309
if false {
} else {
h.decSliceConfigMap((*[]ConfigMap)(yyv4308), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4303)
} // end switch yys4303
} // end for yyj4303
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj4310 int
var yyb4310 bool
var yyhl4310 bool = l >= 0
yyj4310++
if yyhl4310 {
yyb4310 = yyj4310 > l
} else {
yyb4310 = r.CheckBreak()
}
if yyb4310 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4310++
if yyhl4310 {
yyb4310 = yyj4310 > l
} else {
yyb4310 = r.CheckBreak()
}
if yyb4310 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4310++
if yyhl4310 {
yyb4310 = yyj4310 > l
} else {
yyb4310 = r.CheckBreak()
}
if yyb4310 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv4313 := &x.ListMeta
yym4314 := z.DecBinary()
_ = yym4314
if false {
} else if z.HasExtensions() && z.DecExt(yyv4313) {
} else {
z.DecFallback(yyv4313, false)
}
}
yyj4310++
if yyhl4310 {
yyb4310 = yyj4310 > l
} else {
yyb4310 = r.CheckBreak()
}
if yyb4310 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4315 := &x.Items
yym4316 := z.DecBinary()
_ = yym4316
if false {
} else {
h.decSliceConfigMap((*[]ConfigMap)(yyv4315), d)
}
}
for {
yyj4310++
if yyhl4310 {
yyb4310 = yyj4310 > l
} else {
yyb4310 = r.CheckBreak()
}
if yyb4310 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4310-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x PatchType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym4317 := z.EncBinary()
_ = yym4317
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
yym4318 := z.DecBinary()
_ = yym4318
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
yym4319 := z.EncBinary()
_ = yym4319
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
yym4320 := z.DecBinary()
_ = yym4320
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 {
yym4321 := z.EncBinary()
_ = yym4321
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4322 := !z.EncBinary()
yy2arr4322 := z.EncBasicHandle().StructToArray
var yyq4322 [4]bool
_, _, _ = yysep4322, yyq4322, yy2arr4322
const yyr4322 bool = false
yyq4322[2] = x.Message != ""
yyq4322[3] = x.Error != ""
var yynn4322 int
if yyr4322 || yy2arr4322 {
r.EncodeArrayStart(4)
} else {
yynn4322 = 2
for _, b := range yyq4322 {
if b {
yynn4322++
}
}
r.EncodeMapStart(yynn4322)
yynn4322 = 0
}
if yyr4322 || yy2arr4322 {
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 yyr4322 || yy2arr4322 {
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 yyr4322 || yy2arr4322 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4322[2] {
yym4326 := z.EncBinary()
_ = yym4326
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4322[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4327 := z.EncBinary()
_ = yym4327
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr4322 || yy2arr4322 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4322[3] {
yym4329 := z.EncBinary()
_ = yym4329
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Error))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4322[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("error"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4330 := z.EncBinary()
_ = yym4330
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Error))
}
}
}
if yyr4322 || yy2arr4322 {
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
yym4331 := z.DecBinary()
_ = yym4331
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4332 := r.ContainerType()
if yyct4332 == codecSelferValueTypeMap1234 {
yyl4332 := r.ReadMapStart()
if yyl4332 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4332, d)
}
} else if yyct4332 == codecSelferValueTypeArray1234 {
yyl4332 := r.ReadArrayStart()
if yyl4332 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4332, 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 yys4333Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4333Slc
var yyhl4333 bool = l >= 0
for yyj4333 := 0; ; yyj4333++ {
if yyhl4333 {
if yyj4333 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4333Slc = r.DecodeBytes(yys4333Slc, true, true)
yys4333 := string(yys4333Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4333 {
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, yys4333)
} // end switch yys4333
} // end for yyj4333
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 yyj4338 int
var yyb4338 bool
var yyhl4338 bool = l >= 0
yyj4338++
if yyhl4338 {
yyb4338 = yyj4338 > l
} else {
yyb4338 = r.CheckBreak()
}
if yyb4338 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = ComponentConditionType(r.DecodeString())
}
yyj4338++
if yyhl4338 {
yyb4338 = yyj4338 > l
} else {
yyb4338 = r.CheckBreak()
}
if yyb4338 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ""
} else {
x.Status = ConditionStatus(r.DecodeString())
}
yyj4338++
if yyhl4338 {
yyb4338 = yyj4338 > l
} else {
yyb4338 = r.CheckBreak()
}
if yyb4338 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
yyj4338++
if yyhl4338 {
yyb4338 = yyj4338 > l
} else {
yyb4338 = r.CheckBreak()
}
if yyb4338 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Error = ""
} else {
x.Error = string(r.DecodeString())
}
for {
yyj4338++
if yyhl4338 {
yyb4338 = yyj4338 > l
} else {
yyb4338 = r.CheckBreak()
}
if yyb4338 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4338-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ComponentStatus) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym4343 := z.EncBinary()
_ = yym4343
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4344 := !z.EncBinary()
yy2arr4344 := z.EncBasicHandle().StructToArray
var yyq4344 [4]bool
_, _, _ = yysep4344, yyq4344, yy2arr4344
const yyr4344 bool = false
yyq4344[0] = x.Kind != ""
yyq4344[1] = x.APIVersion != ""
yyq4344[2] = true
yyq4344[3] = len(x.Conditions) != 0
var yynn4344 int
if yyr4344 || yy2arr4344 {
r.EncodeArrayStart(4)
} else {
yynn4344 = 0
for _, b := range yyq4344 {
if b {
yynn4344++
}
}
r.EncodeMapStart(yynn4344)
yynn4344 = 0
}
if yyr4344 || yy2arr4344 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4344[0] {
yym4346 := z.EncBinary()
_ = yym4346
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4344[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4347 := z.EncBinary()
_ = yym4347
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4344 || yy2arr4344 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4344[1] {
yym4349 := z.EncBinary()
_ = yym4349
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4344[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4350 := z.EncBinary()
_ = yym4350
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4344 || yy2arr4344 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4344[2] {
yy4352 := &x.ObjectMeta
yy4352.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4344[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4353 := &x.ObjectMeta
yy4353.CodecEncodeSelf(e)
}
}
if yyr4344 || yy2arr4344 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4344[3] {
if x.Conditions == nil {
r.EncodeNil()
} else {
yym4355 := z.EncBinary()
_ = yym4355
if false {
} else {
h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4344[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Conditions == nil {
r.EncodeNil()
} else {
yym4356 := z.EncBinary()
_ = yym4356
if false {
} else {
h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e)
}
}
}
}
if yyr4344 || yy2arr4344 {
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
yym4357 := z.DecBinary()
_ = yym4357
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4358 := r.ContainerType()
if yyct4358 == codecSelferValueTypeMap1234 {
yyl4358 := r.ReadMapStart()
if yyl4358 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4358, d)
}
} else if yyct4358 == codecSelferValueTypeArray1234 {
yyl4358 := r.ReadArrayStart()
if yyl4358 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4358, 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 yys4359Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4359Slc
var yyhl4359 bool = l >= 0
for yyj4359 := 0; ; yyj4359++ {
if yyhl4359 {
if yyj4359 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4359Slc = r.DecodeBytes(yys4359Slc, true, true)
yys4359 := string(yys4359Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4359 {
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 {
yyv4362 := &x.ObjectMeta
yyv4362.CodecDecodeSelf(d)
}
case "conditions":
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv4363 := &x.Conditions
yym4364 := z.DecBinary()
_ = yym4364
if false {
} else {
h.decSliceComponentCondition((*[]ComponentCondition)(yyv4363), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4359)
} // end switch yys4359
} // end for yyj4359
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 yyj4365 int
var yyb4365 bool
var yyhl4365 bool = l >= 0
yyj4365++
if yyhl4365 {
yyb4365 = yyj4365 > l
} else {
yyb4365 = r.CheckBreak()
}
if yyb4365 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4365++
if yyhl4365 {
yyb4365 = yyj4365 > l
} else {
yyb4365 = r.CheckBreak()
}
if yyb4365 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4365++
if yyhl4365 {
yyb4365 = yyj4365 > l
} else {
yyb4365 = r.CheckBreak()
}
if yyb4365 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv4368 := &x.ObjectMeta
yyv4368.CodecDecodeSelf(d)
}
yyj4365++
if yyhl4365 {
yyb4365 = yyj4365 > l
} else {
yyb4365 = r.CheckBreak()
}
if yyb4365 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv4369 := &x.Conditions
yym4370 := z.DecBinary()
_ = yym4370
if false {
} else {
h.decSliceComponentCondition((*[]ComponentCondition)(yyv4369), d)
}
}
for {
yyj4365++
if yyhl4365 {
yyb4365 = yyj4365 > l
} else {
yyb4365 = r.CheckBreak()
}
if yyb4365 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4365-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 {
yym4371 := z.EncBinary()
_ = yym4371
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4372 := !z.EncBinary()
yy2arr4372 := z.EncBasicHandle().StructToArray
var yyq4372 [4]bool
_, _, _ = yysep4372, yyq4372, yy2arr4372
const yyr4372 bool = false
yyq4372[0] = x.Kind != ""
yyq4372[1] = x.APIVersion != ""
yyq4372[2] = true
var yynn4372 int
if yyr4372 || yy2arr4372 {
r.EncodeArrayStart(4)
} else {
yynn4372 = 1
for _, b := range yyq4372 {
if b {
yynn4372++
}
}
r.EncodeMapStart(yynn4372)
yynn4372 = 0
}
if yyr4372 || yy2arr4372 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4372[0] {
yym4374 := z.EncBinary()
_ = yym4374
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4372[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4375 := z.EncBinary()
_ = yym4375
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4372 || yy2arr4372 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4372[1] {
yym4377 := z.EncBinary()
_ = yym4377
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4372[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4378 := z.EncBinary()
_ = yym4378
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4372 || yy2arr4372 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4372[2] {
yy4380 := &x.ListMeta
yym4381 := z.EncBinary()
_ = yym4381
if false {
} else if z.HasExtensions() && z.EncExt(yy4380) {
} else {
z.EncFallback(yy4380)
}
} else {
r.EncodeNil()
}
} else {
if yyq4372[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4382 := &x.ListMeta
yym4383 := z.EncBinary()
_ = yym4383
if false {
} else if z.HasExtensions() && z.EncExt(yy4382) {
} else {
z.EncFallback(yy4382)
}
}
}
if yyr4372 || yy2arr4372 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym4385 := z.EncBinary()
_ = yym4385
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 {
yym4386 := z.EncBinary()
_ = yym4386
if false {
} else {
h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e)
}
}
}
if yyr4372 || yy2arr4372 {
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
yym4387 := z.DecBinary()
_ = yym4387
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4388 := r.ContainerType()
if yyct4388 == codecSelferValueTypeMap1234 {
yyl4388 := r.ReadMapStart()
if yyl4388 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4388, d)
}
} else if yyct4388 == codecSelferValueTypeArray1234 {
yyl4388 := r.ReadArrayStart()
if yyl4388 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4388, 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 yys4389Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4389Slc
var yyhl4389 bool = l >= 0
for yyj4389 := 0; ; yyj4389++ {
if yyhl4389 {
if yyj4389 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4389Slc = r.DecodeBytes(yys4389Slc, true, true)
yys4389 := string(yys4389Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4389 {
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 {
yyv4392 := &x.ListMeta
yym4393 := z.DecBinary()
_ = yym4393
if false {
} else if z.HasExtensions() && z.DecExt(yyv4392) {
} else {
z.DecFallback(yyv4392, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4394 := &x.Items
yym4395 := z.DecBinary()
_ = yym4395
if false {
} else {
h.decSliceComponentStatus((*[]ComponentStatus)(yyv4394), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4389)
} // end switch yys4389
} // end for yyj4389
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 yyj4396 int
var yyb4396 bool
var yyhl4396 bool = l >= 0
yyj4396++
if yyhl4396 {
yyb4396 = yyj4396 > l
} else {
yyb4396 = r.CheckBreak()
}
if yyb4396 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4396++
if yyhl4396 {
yyb4396 = yyj4396 > l
} else {
yyb4396 = r.CheckBreak()
}
if yyb4396 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4396++
if yyhl4396 {
yyb4396 = yyj4396 > l
} else {
yyb4396 = r.CheckBreak()
}
if yyb4396 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv4399 := &x.ListMeta
yym4400 := z.DecBinary()
_ = yym4400
if false {
} else if z.HasExtensions() && z.DecExt(yyv4399) {
} else {
z.DecFallback(yyv4399, false)
}
}
yyj4396++
if yyhl4396 {
yyb4396 = yyj4396 > l
} else {
yyb4396 = r.CheckBreak()
}
if yyb4396 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4401 := &x.Items
yym4402 := z.DecBinary()
_ = yym4402
if false {
} else {
h.decSliceComponentStatus((*[]ComponentStatus)(yyv4401), d)
}
}
for {
yyj4396++
if yyhl4396 {
yyb4396 = yyj4396 > l
} else {
yyb4396 = r.CheckBreak()
}
if yyb4396 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4396-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 {
yym4403 := z.EncBinary()
_ = yym4403
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4404 := !z.EncBinary()
yy2arr4404 := z.EncBasicHandle().StructToArray
var yyq4404 [6]bool
_, _, _ = yysep4404, yyq4404, yy2arr4404
const yyr4404 bool = false
yyq4404[0] = x.Capabilities != nil
yyq4404[1] = x.Privileged != nil
yyq4404[2] = x.SELinuxOptions != nil
yyq4404[3] = x.RunAsUser != nil
yyq4404[4] = x.RunAsNonRoot != nil
yyq4404[5] = x.ReadOnlyRootFilesystem != nil
var yynn4404 int
if yyr4404 || yy2arr4404 {
r.EncodeArrayStart(6)
} else {
yynn4404 = 0
for _, b := range yyq4404 {
if b {
yynn4404++
}
}
r.EncodeMapStart(yynn4404)
yynn4404 = 0
}
if yyr4404 || yy2arr4404 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4404[0] {
if x.Capabilities == nil {
r.EncodeNil()
} else {
x.Capabilities.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4404[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 yyr4404 || yy2arr4404 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4404[1] {
if x.Privileged == nil {
r.EncodeNil()
} else {
yy4407 := *x.Privileged
yym4408 := z.EncBinary()
_ = yym4408
if false {
} else {
r.EncodeBool(bool(yy4407))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4404[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("privileged"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Privileged == nil {
r.EncodeNil()
} else {
yy4409 := *x.Privileged
yym4410 := z.EncBinary()
_ = yym4410
if false {
} else {
r.EncodeBool(bool(yy4409))
}
}
}
}
if yyr4404 || yy2arr4404 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4404[2] {
if x.SELinuxOptions == nil {
r.EncodeNil()
} else {
x.SELinuxOptions.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4404[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 yyr4404 || yy2arr4404 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4404[3] {
if x.RunAsUser == nil {
r.EncodeNil()
} else {
yy4413 := *x.RunAsUser
yym4414 := z.EncBinary()
_ = yym4414
if false {
} else {
r.EncodeInt(int64(yy4413))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4404[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("runAsUser"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RunAsUser == nil {
r.EncodeNil()
} else {
yy4415 := *x.RunAsUser
yym4416 := z.EncBinary()
_ = yym4416
if false {
} else {
r.EncodeInt(int64(yy4415))
}
}
}
}
if yyr4404 || yy2arr4404 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4404[4] {
if x.RunAsNonRoot == nil {
r.EncodeNil()
} else {
yy4418 := *x.RunAsNonRoot
yym4419 := z.EncBinary()
_ = yym4419
if false {
} else {
r.EncodeBool(bool(yy4418))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4404[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RunAsNonRoot == nil {
r.EncodeNil()
} else {
yy4420 := *x.RunAsNonRoot
yym4421 := z.EncBinary()
_ = yym4421
if false {
} else {
r.EncodeBool(bool(yy4420))
}
}
}
}
if yyr4404 || yy2arr4404 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4404[5] {
if x.ReadOnlyRootFilesystem == nil {
r.EncodeNil()
} else {
yy4423 := *x.ReadOnlyRootFilesystem
yym4424 := z.EncBinary()
_ = yym4424
if false {
} else {
r.EncodeBool(bool(yy4423))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4404[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnlyRootFilesystem"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ReadOnlyRootFilesystem == nil {
r.EncodeNil()
} else {
yy4425 := *x.ReadOnlyRootFilesystem
yym4426 := z.EncBinary()
_ = yym4426
if false {
} else {
r.EncodeBool(bool(yy4425))
}
}
}
}
if yyr4404 || yy2arr4404 {
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
yym4427 := z.DecBinary()
_ = yym4427
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4428 := r.ContainerType()
if yyct4428 == codecSelferValueTypeMap1234 {
yyl4428 := r.ReadMapStart()
if yyl4428 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4428, d)
}
} else if yyct4428 == codecSelferValueTypeArray1234 {
yyl4428 := r.ReadArrayStart()
if yyl4428 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4428, 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 yys4429Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4429Slc
var yyhl4429 bool = l >= 0
for yyj4429 := 0; ; yyj4429++ {
if yyhl4429 {
if yyj4429 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4429Slc = r.DecodeBytes(yys4429Slc, true, true)
yys4429 := string(yys4429Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4429 {
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)
}
yym4432 := z.DecBinary()
_ = yym4432
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)
}
yym4435 := z.DecBinary()
_ = yym4435
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)
}
yym4437 := z.DecBinary()
_ = yym4437
if false {
} else {
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
}
}
case "readOnlyRootFilesystem":
if r.TryDecodeAsNil() {
if x.ReadOnlyRootFilesystem != nil {
x.ReadOnlyRootFilesystem = nil
}
} else {
if x.ReadOnlyRootFilesystem == nil {
x.ReadOnlyRootFilesystem = new(bool)
}
yym4439 := z.DecBinary()
_ = yym4439
if false {
} else {
*((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool()
}
}
default:
z.DecStructFieldNotFound(-1, yys4429)
} // end switch yys4429
} // end for yyj4429
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 yyj4440 int
var yyb4440 bool
var yyhl4440 bool = l >= 0
yyj4440++
if yyhl4440 {
yyb4440 = yyj4440 > l
} else {
yyb4440 = r.CheckBreak()
}
if yyb4440 {
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)
}
yyj4440++
if yyhl4440 {
yyb4440 = yyj4440 > l
} else {
yyb4440 = r.CheckBreak()
}
if yyb4440 {
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)
}
yym4443 := z.DecBinary()
_ = yym4443
if false {
} else {
*((*bool)(x.Privileged)) = r.DecodeBool()
}
}
yyj4440++
if yyhl4440 {
yyb4440 = yyj4440 > l
} else {
yyb4440 = r.CheckBreak()
}
if yyb4440 {
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)
}
yyj4440++
if yyhl4440 {
yyb4440 = yyj4440 > l
} else {
yyb4440 = r.CheckBreak()
}
if yyb4440 {
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)
}
yym4446 := z.DecBinary()
_ = yym4446
if false {
} else {
*((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64))
}
}
yyj4440++
if yyhl4440 {
yyb4440 = yyj4440 > l
} else {
yyb4440 = r.CheckBreak()
}
if yyb4440 {
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)
}
yym4448 := z.DecBinary()
_ = yym4448
if false {
} else {
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
}
}
yyj4440++
if yyhl4440 {
yyb4440 = yyj4440 > l
} else {
yyb4440 = r.CheckBreak()
}
if yyb4440 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.ReadOnlyRootFilesystem != nil {
x.ReadOnlyRootFilesystem = nil
}
} else {
if x.ReadOnlyRootFilesystem == nil {
x.ReadOnlyRootFilesystem = new(bool)
}
yym4450 := z.DecBinary()
_ = yym4450
if false {
} else {
*((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool()
}
}
for {
yyj4440++
if yyhl4440 {
yyb4440 = yyj4440 > l
} else {
yyb4440 = r.CheckBreak()
}
if yyb4440 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4440-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 {
yym4451 := z.EncBinary()
_ = yym4451
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4452 := !z.EncBinary()
yy2arr4452 := z.EncBasicHandle().StructToArray
var yyq4452 [4]bool
_, _, _ = yysep4452, yyq4452, yy2arr4452
const yyr4452 bool = false
yyq4452[0] = x.User != ""
yyq4452[1] = x.Role != ""
yyq4452[2] = x.Type != ""
yyq4452[3] = x.Level != ""
var yynn4452 int
if yyr4452 || yy2arr4452 {
r.EncodeArrayStart(4)
} else {
yynn4452 = 0
for _, b := range yyq4452 {
if b {
yynn4452++
}
}
r.EncodeMapStart(yynn4452)
yynn4452 = 0
}
if yyr4452 || yy2arr4452 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4452[0] {
yym4454 := z.EncBinary()
_ = yym4454
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.User))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4452[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("user"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4455 := z.EncBinary()
_ = yym4455
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.User))
}
}
}
if yyr4452 || yy2arr4452 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4452[1] {
yym4457 := z.EncBinary()
_ = yym4457
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Role))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4452[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("role"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4458 := z.EncBinary()
_ = yym4458
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Role))
}
}
}
if yyr4452 || yy2arr4452 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4452[2] {
yym4460 := z.EncBinary()
_ = yym4460
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4452[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4461 := z.EncBinary()
_ = yym4461
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
}
}
}
if yyr4452 || yy2arr4452 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4452[3] {
yym4463 := z.EncBinary()
_ = yym4463
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Level))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4452[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("level"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4464 := z.EncBinary()
_ = yym4464
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Level))
}
}
}
if yyr4452 || yy2arr4452 {
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
yym4465 := z.DecBinary()
_ = yym4465
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4466 := r.ContainerType()
if yyct4466 == codecSelferValueTypeMap1234 {
yyl4466 := r.ReadMapStart()
if yyl4466 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4466, d)
}
} else if yyct4466 == codecSelferValueTypeArray1234 {
yyl4466 := r.ReadArrayStart()
if yyl4466 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4466, 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 yys4467Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4467Slc
var yyhl4467 bool = l >= 0
for yyj4467 := 0; ; yyj4467++ {
if yyhl4467 {
if yyj4467 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4467Slc = r.DecodeBytes(yys4467Slc, true, true)
yys4467 := string(yys4467Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4467 {
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, yys4467)
} // end switch yys4467
} // end for yyj4467
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 yyj4472 int
var yyb4472 bool
var yyhl4472 bool = l >= 0
yyj4472++
if yyhl4472 {
yyb4472 = yyj4472 > l
} else {
yyb4472 = r.CheckBreak()
}
if yyb4472 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.User = ""
} else {
x.User = string(r.DecodeString())
}
yyj4472++
if yyhl4472 {
yyb4472 = yyj4472 > l
} else {
yyb4472 = r.CheckBreak()
}
if yyb4472 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Role = ""
} else {
x.Role = string(r.DecodeString())
}
yyj4472++
if yyhl4472 {
yyb4472 = yyj4472 > l
} else {
yyb4472 = r.CheckBreak()
}
if yyb4472 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = string(r.DecodeString())
}
yyj4472++
if yyhl4472 {
yyb4472 = yyj4472 > l
} else {
yyb4472 = r.CheckBreak()
}
if yyb4472 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Level = ""
} else {
x.Level = string(r.DecodeString())
}
for {
yyj4472++
if yyhl4472 {
yyb4472 = yyj4472 > l
} else {
yyb4472 = r.CheckBreak()
}
if yyb4472 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4472-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 {
yym4477 := z.EncBinary()
_ = yym4477
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4478 := !z.EncBinary()
yy2arr4478 := z.EncBasicHandle().StructToArray
var yyq4478 [5]bool
_, _, _ = yysep4478, yyq4478, yy2arr4478
const yyr4478 bool = false
yyq4478[0] = x.Kind != ""
yyq4478[1] = x.APIVersion != ""
yyq4478[2] = true
var yynn4478 int
if yyr4478 || yy2arr4478 {
r.EncodeArrayStart(5)
} else {
yynn4478 = 2
for _, b := range yyq4478 {
if b {
yynn4478++
}
}
r.EncodeMapStart(yynn4478)
yynn4478 = 0
}
if yyr4478 || yy2arr4478 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4478[0] {
yym4480 := z.EncBinary()
_ = yym4480
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4478[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4481 := z.EncBinary()
_ = yym4481
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4478 || yy2arr4478 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4478[1] {
yym4483 := z.EncBinary()
_ = yym4483
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4478[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4484 := z.EncBinary()
_ = yym4484
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4478 || yy2arr4478 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4478[2] {
yy4486 := &x.ObjectMeta
yy4486.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4478[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4487 := &x.ObjectMeta
yy4487.CodecEncodeSelf(e)
}
}
if yyr4478 || yy2arr4478 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym4489 := z.EncBinary()
_ = yym4489
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)
yym4490 := z.EncBinary()
_ = yym4490
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Range))
}
}
if yyr4478 || yy2arr4478 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Data == nil {
r.EncodeNil()
} else {
yym4492 := z.EncBinary()
_ = yym4492
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 {
yym4493 := z.EncBinary()
_ = yym4493
if false {
} else {
r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data))
}
}
}
if yyr4478 || yy2arr4478 {
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
yym4494 := z.DecBinary()
_ = yym4494
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4495 := r.ContainerType()
if yyct4495 == codecSelferValueTypeMap1234 {
yyl4495 := r.ReadMapStart()
if yyl4495 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4495, d)
}
} else if yyct4495 == codecSelferValueTypeArray1234 {
yyl4495 := r.ReadArrayStart()
if yyl4495 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4495, 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 yys4496Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4496Slc
var yyhl4496 bool = l >= 0
for yyj4496 := 0; ; yyj4496++ {
if yyhl4496 {
if yyj4496 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4496Slc = r.DecodeBytes(yys4496Slc, true, true)
yys4496 := string(yys4496Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4496 {
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 {
yyv4499 := &x.ObjectMeta
yyv4499.CodecDecodeSelf(d)
}
case "range":
if r.TryDecodeAsNil() {
x.Range = ""
} else {
x.Range = string(r.DecodeString())
}
case "data":
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv4501 := &x.Data
yym4502 := z.DecBinary()
_ = yym4502
if false {
} else {
*yyv4501 = r.DecodeBytes(*(*[]byte)(yyv4501), false, false)
}
}
default:
z.DecStructFieldNotFound(-1, yys4496)
} // end switch yys4496
} // end for yyj4496
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 yyj4503 int
var yyb4503 bool
var yyhl4503 bool = l >= 0
yyj4503++
if yyhl4503 {
yyb4503 = yyj4503 > l
} else {
yyb4503 = r.CheckBreak()
}
if yyb4503 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4503++
if yyhl4503 {
yyb4503 = yyj4503 > l
} else {
yyb4503 = r.CheckBreak()
}
if yyb4503 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4503++
if yyhl4503 {
yyb4503 = yyj4503 > l
} else {
yyb4503 = r.CheckBreak()
}
if yyb4503 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv4506 := &x.ObjectMeta
yyv4506.CodecDecodeSelf(d)
}
yyj4503++
if yyhl4503 {
yyb4503 = yyj4503 > l
} else {
yyb4503 = r.CheckBreak()
}
if yyb4503 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Range = ""
} else {
x.Range = string(r.DecodeString())
}
yyj4503++
if yyhl4503 {
yyb4503 = yyj4503 > l
} else {
yyb4503 = r.CheckBreak()
}
if yyb4503 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv4508 := &x.Data
yym4509 := z.DecBinary()
_ = yym4509
if false {
} else {
*yyv4508 = r.DecodeBytes(*(*[]byte)(yyv4508), false, false)
}
}
for {
yyj4503++
if yyhl4503 {
yyb4503 = yyj4503 > l
} else {
yyb4503 = r.CheckBreak()
}
if yyb4503 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4503-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) encSliceOwnerReference(v []OwnerReference, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4510 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4511 := &yyv4510
yy4511.CodecEncodeSelf(e)
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceOwnerReference(v *[]OwnerReference, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4512 := *v
yyh4512, yyl4512 := z.DecSliceHelperStart()
var yyc4512 bool
if yyl4512 == 0 {
if yyv4512 == nil {
yyv4512 = []OwnerReference{}
yyc4512 = true
} else if len(yyv4512) != 0 {
yyv4512 = yyv4512[:0]
yyc4512 = true
}
} else if yyl4512 > 0 {
var yyrr4512, yyrl4512 int
var yyrt4512 bool
if yyl4512 > cap(yyv4512) {
yyrg4512 := len(yyv4512) > 0
yyv24512 := yyv4512
yyrl4512, yyrt4512 = z.DecInferLen(yyl4512, z.DecBasicHandle().MaxInitLen, 72)
if yyrt4512 {
if yyrl4512 <= cap(yyv4512) {
yyv4512 = yyv4512[:yyrl4512]
} else {
yyv4512 = make([]OwnerReference, yyrl4512)
}
} else {
yyv4512 = make([]OwnerReference, yyrl4512)
}
yyc4512 = true
yyrr4512 = len(yyv4512)
if yyrg4512 {
copy(yyv4512, yyv24512)
}
} else if yyl4512 != len(yyv4512) {
yyv4512 = yyv4512[:yyl4512]
yyc4512 = true
}
yyj4512 := 0
for ; yyj4512 < yyrr4512; yyj4512++ {
yyh4512.ElemContainerState(yyj4512)
if r.TryDecodeAsNil() {
yyv4512[yyj4512] = OwnerReference{}
} else {
yyv4513 := &yyv4512[yyj4512]
yyv4513.CodecDecodeSelf(d)
}
}
if yyrt4512 {
for ; yyj4512 < yyl4512; yyj4512++ {
yyv4512 = append(yyv4512, OwnerReference{})
yyh4512.ElemContainerState(yyj4512)
if r.TryDecodeAsNil() {
yyv4512[yyj4512] = OwnerReference{}
} else {
yyv4514 := &yyv4512[yyj4512]
yyv4514.CodecDecodeSelf(d)
}
}
}
} else {
yyj4512 := 0
for ; !r.CheckBreak(); yyj4512++ {
if yyj4512 >= len(yyv4512) {
yyv4512 = append(yyv4512, OwnerReference{}) // var yyz4512 OwnerReference
yyc4512 = true
}
yyh4512.ElemContainerState(yyj4512)
if yyj4512 < len(yyv4512) {
if r.TryDecodeAsNil() {
yyv4512[yyj4512] = OwnerReference{}
} else {
yyv4515 := &yyv4512[yyj4512]
yyv4515.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4512 < len(yyv4512) {
yyv4512 = yyv4512[:yyj4512]
yyc4512 = true
} else if yyj4512 == 0 && yyv4512 == nil {
yyv4512 = []OwnerReference{}
yyc4512 = true
}
}
yyh4512.End()
if yyc4512 {
*v = yyv4512
}
}
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 _, yyv4516 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yyv4516.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
yyv4517 := *v
yyh4517, yyl4517 := z.DecSliceHelperStart()
var yyc4517 bool
if yyl4517 == 0 {
if yyv4517 == nil {
yyv4517 = []PersistentVolumeAccessMode{}
yyc4517 = true
} else if len(yyv4517) != 0 {
yyv4517 = yyv4517[:0]
yyc4517 = true
}
} else if yyl4517 > 0 {
var yyrr4517, yyrl4517 int
var yyrt4517 bool
if yyl4517 > cap(yyv4517) {
yyrl4517, yyrt4517 = z.DecInferLen(yyl4517, z.DecBasicHandle().MaxInitLen, 16)
if yyrt4517 {
if yyrl4517 <= cap(yyv4517) {
yyv4517 = yyv4517[:yyrl4517]
} else {
yyv4517 = make([]PersistentVolumeAccessMode, yyrl4517)
}
} else {
yyv4517 = make([]PersistentVolumeAccessMode, yyrl4517)
}
yyc4517 = true
yyrr4517 = len(yyv4517)
} else if yyl4517 != len(yyv4517) {
yyv4517 = yyv4517[:yyl4517]
yyc4517 = true
}
yyj4517 := 0
for ; yyj4517 < yyrr4517; yyj4517++ {
yyh4517.ElemContainerState(yyj4517)
if r.TryDecodeAsNil() {
yyv4517[yyj4517] = ""
} else {
yyv4517[yyj4517] = PersistentVolumeAccessMode(r.DecodeString())
}
}
if yyrt4517 {
for ; yyj4517 < yyl4517; yyj4517++ {
yyv4517 = append(yyv4517, "")
yyh4517.ElemContainerState(yyj4517)
if r.TryDecodeAsNil() {
yyv4517[yyj4517] = ""
} else {
yyv4517[yyj4517] = PersistentVolumeAccessMode(r.DecodeString())
}
}
}
} else {
yyj4517 := 0
for ; !r.CheckBreak(); yyj4517++ {
if yyj4517 >= len(yyv4517) {
yyv4517 = append(yyv4517, "") // var yyz4517 PersistentVolumeAccessMode
yyc4517 = true
}
yyh4517.ElemContainerState(yyj4517)
if yyj4517 < len(yyv4517) {
if r.TryDecodeAsNil() {
yyv4517[yyj4517] = ""
} else {
yyv4517[yyj4517] = PersistentVolumeAccessMode(r.DecodeString())
}
} else {
z.DecSwallow()
}
}
if yyj4517 < len(yyv4517) {
yyv4517 = yyv4517[:yyj4517]
yyc4517 = true
} else if yyj4517 == 0 && yyv4517 == nil {
yyv4517 = []PersistentVolumeAccessMode{}
yyc4517 = true
}
}
yyh4517.End()
if yyc4517 {
*v = yyv4517
}
}
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 _, yyv4521 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4522 := &yyv4521
yy4522.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
yyv4523 := *v
yyh4523, yyl4523 := z.DecSliceHelperStart()
var yyc4523 bool
if yyl4523 == 0 {
if yyv4523 == nil {
yyv4523 = []PersistentVolume{}
yyc4523 = true
} else if len(yyv4523) != 0 {
yyv4523 = yyv4523[:0]
yyc4523 = true
}
} else if yyl4523 > 0 {
var yyrr4523, yyrl4523 int
var yyrt4523 bool
if yyl4523 > cap(yyv4523) {
yyrg4523 := len(yyv4523) > 0
yyv24523 := yyv4523
yyrl4523, yyrt4523 = z.DecInferLen(yyl4523, z.DecBasicHandle().MaxInitLen, 488)
if yyrt4523 {
if yyrl4523 <= cap(yyv4523) {
yyv4523 = yyv4523[:yyrl4523]
} else {
yyv4523 = make([]PersistentVolume, yyrl4523)
}
} else {
yyv4523 = make([]PersistentVolume, yyrl4523)
}
yyc4523 = true
yyrr4523 = len(yyv4523)
if yyrg4523 {
copy(yyv4523, yyv24523)
}
} else if yyl4523 != len(yyv4523) {
yyv4523 = yyv4523[:yyl4523]
yyc4523 = true
}
yyj4523 := 0
for ; yyj4523 < yyrr4523; yyj4523++ {
yyh4523.ElemContainerState(yyj4523)
if r.TryDecodeAsNil() {
yyv4523[yyj4523] = PersistentVolume{}
} else {
yyv4524 := &yyv4523[yyj4523]
yyv4524.CodecDecodeSelf(d)
}
}
if yyrt4523 {
for ; yyj4523 < yyl4523; yyj4523++ {
yyv4523 = append(yyv4523, PersistentVolume{})
yyh4523.ElemContainerState(yyj4523)
if r.TryDecodeAsNil() {
yyv4523[yyj4523] = PersistentVolume{}
} else {
yyv4525 := &yyv4523[yyj4523]
yyv4525.CodecDecodeSelf(d)
}
}
}
} else {
yyj4523 := 0
for ; !r.CheckBreak(); yyj4523++ {
if yyj4523 >= len(yyv4523) {
yyv4523 = append(yyv4523, PersistentVolume{}) // var yyz4523 PersistentVolume
yyc4523 = true
}
yyh4523.ElemContainerState(yyj4523)
if yyj4523 < len(yyv4523) {
if r.TryDecodeAsNil() {
yyv4523[yyj4523] = PersistentVolume{}
} else {
yyv4526 := &yyv4523[yyj4523]
yyv4526.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4523 < len(yyv4523) {
yyv4523 = yyv4523[:yyj4523]
yyc4523 = true
} else if yyj4523 == 0 && yyv4523 == nil {
yyv4523 = []PersistentVolume{}
yyc4523 = true
}
}
yyh4523.End()
if yyc4523 {
*v = yyv4523
}
}
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 _, yyv4527 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4528 := &yyv4527
yy4528.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
yyv4529 := *v
yyh4529, yyl4529 := z.DecSliceHelperStart()
var yyc4529 bool
if yyl4529 == 0 {
if yyv4529 == nil {
yyv4529 = []PersistentVolumeClaim{}
yyc4529 = true
} else if len(yyv4529) != 0 {
yyv4529 = yyv4529[:0]
yyc4529 = true
}
} else if yyl4529 > 0 {
var yyrr4529, yyrl4529 int
var yyrt4529 bool
if yyl4529 > cap(yyv4529) {
yyrg4529 := len(yyv4529) > 0
yyv24529 := yyv4529
yyrl4529, yyrt4529 = z.DecInferLen(yyl4529, z.DecBasicHandle().MaxInitLen, 368)
if yyrt4529 {
if yyrl4529 <= cap(yyv4529) {
yyv4529 = yyv4529[:yyrl4529]
} else {
yyv4529 = make([]PersistentVolumeClaim, yyrl4529)
}
} else {
yyv4529 = make([]PersistentVolumeClaim, yyrl4529)
}
yyc4529 = true
yyrr4529 = len(yyv4529)
if yyrg4529 {
copy(yyv4529, yyv24529)
}
} else if yyl4529 != len(yyv4529) {
yyv4529 = yyv4529[:yyl4529]
yyc4529 = true
}
yyj4529 := 0
for ; yyj4529 < yyrr4529; yyj4529++ {
yyh4529.ElemContainerState(yyj4529)
if r.TryDecodeAsNil() {
yyv4529[yyj4529] = PersistentVolumeClaim{}
} else {
yyv4530 := &yyv4529[yyj4529]
yyv4530.CodecDecodeSelf(d)
}
}
if yyrt4529 {
for ; yyj4529 < yyl4529; yyj4529++ {
yyv4529 = append(yyv4529, PersistentVolumeClaim{})
yyh4529.ElemContainerState(yyj4529)
if r.TryDecodeAsNil() {
yyv4529[yyj4529] = PersistentVolumeClaim{}
} else {
yyv4531 := &yyv4529[yyj4529]
yyv4531.CodecDecodeSelf(d)
}
}
}
} else {
yyj4529 := 0
for ; !r.CheckBreak(); yyj4529++ {
if yyj4529 >= len(yyv4529) {
yyv4529 = append(yyv4529, PersistentVolumeClaim{}) // var yyz4529 PersistentVolumeClaim
yyc4529 = true
}
yyh4529.ElemContainerState(yyj4529)
if yyj4529 < len(yyv4529) {
if r.TryDecodeAsNil() {
yyv4529[yyj4529] = PersistentVolumeClaim{}
} else {
yyv4532 := &yyv4529[yyj4529]
yyv4532.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4529 < len(yyv4529) {
yyv4529 = yyv4529[:yyj4529]
yyc4529 = true
} else if yyj4529 == 0 && yyv4529 == nil {
yyv4529 = []PersistentVolumeClaim{}
yyc4529 = true
}
}
yyh4529.End()
if yyc4529 {
*v = yyv4529
}
}
func (x codecSelfer1234) encSliceKeyToPath(v []KeyToPath, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4533 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4534 := &yyv4533
yy4534.CodecEncodeSelf(e)
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceKeyToPath(v *[]KeyToPath, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4535 := *v
yyh4535, yyl4535 := z.DecSliceHelperStart()
var yyc4535 bool
if yyl4535 == 0 {
if yyv4535 == nil {
yyv4535 = []KeyToPath{}
yyc4535 = true
} else if len(yyv4535) != 0 {
yyv4535 = yyv4535[:0]
yyc4535 = true
}
} else if yyl4535 > 0 {
var yyrr4535, yyrl4535 int
var yyrt4535 bool
if yyl4535 > cap(yyv4535) {
yyrg4535 := len(yyv4535) > 0
yyv24535 := yyv4535
yyrl4535, yyrt4535 = z.DecInferLen(yyl4535, z.DecBasicHandle().MaxInitLen, 40)
if yyrt4535 {
if yyrl4535 <= cap(yyv4535) {
yyv4535 = yyv4535[:yyrl4535]
} else {
yyv4535 = make([]KeyToPath, yyrl4535)
}
} else {
yyv4535 = make([]KeyToPath, yyrl4535)
}
yyc4535 = true
yyrr4535 = len(yyv4535)
if yyrg4535 {
copy(yyv4535, yyv24535)
}
} else if yyl4535 != len(yyv4535) {
yyv4535 = yyv4535[:yyl4535]
yyc4535 = true
}
yyj4535 := 0
for ; yyj4535 < yyrr4535; yyj4535++ {
yyh4535.ElemContainerState(yyj4535)
if r.TryDecodeAsNil() {
yyv4535[yyj4535] = KeyToPath{}
} else {
yyv4536 := &yyv4535[yyj4535]
yyv4536.CodecDecodeSelf(d)
}
}
if yyrt4535 {
for ; yyj4535 < yyl4535; yyj4535++ {
yyv4535 = append(yyv4535, KeyToPath{})
yyh4535.ElemContainerState(yyj4535)
if r.TryDecodeAsNil() {
yyv4535[yyj4535] = KeyToPath{}
} else {
yyv4537 := &yyv4535[yyj4535]
yyv4537.CodecDecodeSelf(d)
}
}
}
} else {
yyj4535 := 0
for ; !r.CheckBreak(); yyj4535++ {
if yyj4535 >= len(yyv4535) {
yyv4535 = append(yyv4535, KeyToPath{}) // var yyz4535 KeyToPath
yyc4535 = true
}
yyh4535.ElemContainerState(yyj4535)
if yyj4535 < len(yyv4535) {
if r.TryDecodeAsNil() {
yyv4535[yyj4535] = KeyToPath{}
} else {
yyv4538 := &yyv4535[yyj4535]
yyv4538.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4535 < len(yyv4535) {
yyv4535 = yyv4535[:yyj4535]
yyc4535 = true
} else if yyj4535 == 0 && yyv4535 == nil {
yyv4535 = []KeyToPath{}
yyc4535 = true
}
}
yyh4535.End()
if yyc4535 {
*v = yyv4535
}
}
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 _, yyv4539 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4540 := &yyv4539
yy4540.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
yyv4541 := *v
yyh4541, yyl4541 := z.DecSliceHelperStart()
var yyc4541 bool
if yyl4541 == 0 {
if yyv4541 == nil {
yyv4541 = []DownwardAPIVolumeFile{}
yyc4541 = true
} else if len(yyv4541) != 0 {
yyv4541 = yyv4541[:0]
yyc4541 = true
}
} else if yyl4541 > 0 {
var yyrr4541, yyrl4541 int
var yyrt4541 bool
if yyl4541 > cap(yyv4541) {
yyrg4541 := len(yyv4541) > 0
yyv24541 := yyv4541
yyrl4541, yyrt4541 = z.DecInferLen(yyl4541, z.DecBasicHandle().MaxInitLen, 40)
if yyrt4541 {
if yyrl4541 <= cap(yyv4541) {
yyv4541 = yyv4541[:yyrl4541]
} else {
yyv4541 = make([]DownwardAPIVolumeFile, yyrl4541)
}
} else {
yyv4541 = make([]DownwardAPIVolumeFile, yyrl4541)
}
yyc4541 = true
yyrr4541 = len(yyv4541)
if yyrg4541 {
copy(yyv4541, yyv24541)
}
} else if yyl4541 != len(yyv4541) {
yyv4541 = yyv4541[:yyl4541]
yyc4541 = true
}
yyj4541 := 0
for ; yyj4541 < yyrr4541; yyj4541++ {
yyh4541.ElemContainerState(yyj4541)
if r.TryDecodeAsNil() {
yyv4541[yyj4541] = DownwardAPIVolumeFile{}
} else {
yyv4542 := &yyv4541[yyj4541]
yyv4542.CodecDecodeSelf(d)
}
}
if yyrt4541 {
for ; yyj4541 < yyl4541; yyj4541++ {
yyv4541 = append(yyv4541, DownwardAPIVolumeFile{})
yyh4541.ElemContainerState(yyj4541)
if r.TryDecodeAsNil() {
yyv4541[yyj4541] = DownwardAPIVolumeFile{}
} else {
yyv4543 := &yyv4541[yyj4541]
yyv4543.CodecDecodeSelf(d)
}
}
}
} else {
yyj4541 := 0
for ; !r.CheckBreak(); yyj4541++ {
if yyj4541 >= len(yyv4541) {
yyv4541 = append(yyv4541, DownwardAPIVolumeFile{}) // var yyz4541 DownwardAPIVolumeFile
yyc4541 = true
}
yyh4541.ElemContainerState(yyj4541)
if yyj4541 < len(yyv4541) {
if r.TryDecodeAsNil() {
yyv4541[yyj4541] = DownwardAPIVolumeFile{}
} else {
yyv4544 := &yyv4541[yyj4541]
yyv4544.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4541 < len(yyv4541) {
yyv4541 = yyv4541[:yyj4541]
yyc4541 = true
} else if yyj4541 == 0 && yyv4541 == nil {
yyv4541 = []DownwardAPIVolumeFile{}
yyc4541 = true
}
}
yyh4541.End()
if yyc4541 {
*v = yyv4541
}
}
func (x codecSelfer1234) encSliceHTTPHeader(v []HTTPHeader, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4545 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4546 := &yyv4545
yy4546.CodecEncodeSelf(e)
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceHTTPHeader(v *[]HTTPHeader, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4547 := *v
yyh4547, yyl4547 := z.DecSliceHelperStart()
var yyc4547 bool
if yyl4547 == 0 {
if yyv4547 == nil {
yyv4547 = []HTTPHeader{}
yyc4547 = true
} else if len(yyv4547) != 0 {
yyv4547 = yyv4547[:0]
yyc4547 = true
}
} else if yyl4547 > 0 {
var yyrr4547, yyrl4547 int
var yyrt4547 bool
if yyl4547 > cap(yyv4547) {
yyrg4547 := len(yyv4547) > 0
yyv24547 := yyv4547
yyrl4547, yyrt4547 = z.DecInferLen(yyl4547, z.DecBasicHandle().MaxInitLen, 32)
if yyrt4547 {
if yyrl4547 <= cap(yyv4547) {
yyv4547 = yyv4547[:yyrl4547]
} else {
yyv4547 = make([]HTTPHeader, yyrl4547)
}
} else {
yyv4547 = make([]HTTPHeader, yyrl4547)
}
yyc4547 = true
yyrr4547 = len(yyv4547)
if yyrg4547 {
copy(yyv4547, yyv24547)
}
} else if yyl4547 != len(yyv4547) {
yyv4547 = yyv4547[:yyl4547]
yyc4547 = true
}
yyj4547 := 0
for ; yyj4547 < yyrr4547; yyj4547++ {
yyh4547.ElemContainerState(yyj4547)
if r.TryDecodeAsNil() {
yyv4547[yyj4547] = HTTPHeader{}
} else {
yyv4548 := &yyv4547[yyj4547]
yyv4548.CodecDecodeSelf(d)
}
}
if yyrt4547 {
for ; yyj4547 < yyl4547; yyj4547++ {
yyv4547 = append(yyv4547, HTTPHeader{})
yyh4547.ElemContainerState(yyj4547)
if r.TryDecodeAsNil() {
yyv4547[yyj4547] = HTTPHeader{}
} else {
yyv4549 := &yyv4547[yyj4547]
yyv4549.CodecDecodeSelf(d)
}
}
}
} else {
yyj4547 := 0
for ; !r.CheckBreak(); yyj4547++ {
if yyj4547 >= len(yyv4547) {
yyv4547 = append(yyv4547, HTTPHeader{}) // var yyz4547 HTTPHeader
yyc4547 = true
}
yyh4547.ElemContainerState(yyj4547)
if yyj4547 < len(yyv4547) {
if r.TryDecodeAsNil() {
yyv4547[yyj4547] = HTTPHeader{}
} else {
yyv4550 := &yyv4547[yyj4547]
yyv4550.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4547 < len(yyv4547) {
yyv4547 = yyv4547[:yyj4547]
yyc4547 = true
} else if yyj4547 == 0 && yyv4547 == nil {
yyv4547 = []HTTPHeader{}
yyc4547 = true
}
}
yyh4547.End()
if yyc4547 {
*v = yyv4547
}
}
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 _, yyv4551 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yyv4551.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
yyv4552 := *v
yyh4552, yyl4552 := z.DecSliceHelperStart()
var yyc4552 bool
if yyl4552 == 0 {
if yyv4552 == nil {
yyv4552 = []Capability{}
yyc4552 = true
} else if len(yyv4552) != 0 {
yyv4552 = yyv4552[:0]
yyc4552 = true
}
} else if yyl4552 > 0 {
var yyrr4552, yyrl4552 int
var yyrt4552 bool
if yyl4552 > cap(yyv4552) {
yyrl4552, yyrt4552 = z.DecInferLen(yyl4552, z.DecBasicHandle().MaxInitLen, 16)
if yyrt4552 {
if yyrl4552 <= cap(yyv4552) {
yyv4552 = yyv4552[:yyrl4552]
} else {
yyv4552 = make([]Capability, yyrl4552)
}
} else {
yyv4552 = make([]Capability, yyrl4552)
}
yyc4552 = true
yyrr4552 = len(yyv4552)
} else if yyl4552 != len(yyv4552) {
yyv4552 = yyv4552[:yyl4552]
yyc4552 = true
}
yyj4552 := 0
for ; yyj4552 < yyrr4552; yyj4552++ {
yyh4552.ElemContainerState(yyj4552)
if r.TryDecodeAsNil() {
yyv4552[yyj4552] = ""
} else {
yyv4552[yyj4552] = Capability(r.DecodeString())
}
}
if yyrt4552 {
for ; yyj4552 < yyl4552; yyj4552++ {
yyv4552 = append(yyv4552, "")
yyh4552.ElemContainerState(yyj4552)
if r.TryDecodeAsNil() {
yyv4552[yyj4552] = ""
} else {
yyv4552[yyj4552] = Capability(r.DecodeString())
}
}
}
} else {
yyj4552 := 0
for ; !r.CheckBreak(); yyj4552++ {
if yyj4552 >= len(yyv4552) {
yyv4552 = append(yyv4552, "") // var yyz4552 Capability
yyc4552 = true
}
yyh4552.ElemContainerState(yyj4552)
if yyj4552 < len(yyv4552) {
if r.TryDecodeAsNil() {
yyv4552[yyj4552] = ""
} else {
yyv4552[yyj4552] = Capability(r.DecodeString())
}
} else {
z.DecSwallow()
}
}
if yyj4552 < len(yyv4552) {
yyv4552 = yyv4552[:yyj4552]
yyc4552 = true
} else if yyj4552 == 0 && yyv4552 == nil {
yyv4552 = []Capability{}
yyc4552 = true
}
}
yyh4552.End()
if yyc4552 {
*v = yyv4552
}
}
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 _, yyv4556 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4557 := &yyv4556
yy4557.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
yyv4558 := *v
yyh4558, yyl4558 := z.DecSliceHelperStart()
var yyc4558 bool
if yyl4558 == 0 {
if yyv4558 == nil {
yyv4558 = []ContainerPort{}
yyc4558 = true
} else if len(yyv4558) != 0 {
yyv4558 = yyv4558[:0]
yyc4558 = true
}
} else if yyl4558 > 0 {
var yyrr4558, yyrl4558 int
var yyrt4558 bool
if yyl4558 > cap(yyv4558) {
yyrg4558 := len(yyv4558) > 0
yyv24558 := yyv4558
yyrl4558, yyrt4558 = z.DecInferLen(yyl4558, z.DecBasicHandle().MaxInitLen, 56)
if yyrt4558 {
if yyrl4558 <= cap(yyv4558) {
yyv4558 = yyv4558[:yyrl4558]
} else {
yyv4558 = make([]ContainerPort, yyrl4558)
}
} else {
yyv4558 = make([]ContainerPort, yyrl4558)
}
yyc4558 = true
yyrr4558 = len(yyv4558)
if yyrg4558 {
copy(yyv4558, yyv24558)
}
} else if yyl4558 != len(yyv4558) {
yyv4558 = yyv4558[:yyl4558]
yyc4558 = true
}
yyj4558 := 0
for ; yyj4558 < yyrr4558; yyj4558++ {
yyh4558.ElemContainerState(yyj4558)
if r.TryDecodeAsNil() {
yyv4558[yyj4558] = ContainerPort{}
} else {
yyv4559 := &yyv4558[yyj4558]
yyv4559.CodecDecodeSelf(d)
}
}
if yyrt4558 {
for ; yyj4558 < yyl4558; yyj4558++ {
yyv4558 = append(yyv4558, ContainerPort{})
yyh4558.ElemContainerState(yyj4558)
if r.TryDecodeAsNil() {
yyv4558[yyj4558] = ContainerPort{}
} else {
yyv4560 := &yyv4558[yyj4558]
yyv4560.CodecDecodeSelf(d)
}
}
}
} else {
yyj4558 := 0
for ; !r.CheckBreak(); yyj4558++ {
if yyj4558 >= len(yyv4558) {
yyv4558 = append(yyv4558, ContainerPort{}) // var yyz4558 ContainerPort
yyc4558 = true
}
yyh4558.ElemContainerState(yyj4558)
if yyj4558 < len(yyv4558) {
if r.TryDecodeAsNil() {
yyv4558[yyj4558] = ContainerPort{}
} else {
yyv4561 := &yyv4558[yyj4558]
yyv4561.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4558 < len(yyv4558) {
yyv4558 = yyv4558[:yyj4558]
yyc4558 = true
} else if yyj4558 == 0 && yyv4558 == nil {
yyv4558 = []ContainerPort{}
yyc4558 = true
}
}
yyh4558.End()
if yyc4558 {
*v = yyv4558
}
}
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 _, yyv4562 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4563 := &yyv4562
yy4563.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
yyv4564 := *v
yyh4564, yyl4564 := z.DecSliceHelperStart()
var yyc4564 bool
if yyl4564 == 0 {
if yyv4564 == nil {
yyv4564 = []EnvVar{}
yyc4564 = true
} else if len(yyv4564) != 0 {
yyv4564 = yyv4564[:0]
yyc4564 = true
}
} else if yyl4564 > 0 {
var yyrr4564, yyrl4564 int
var yyrt4564 bool
if yyl4564 > cap(yyv4564) {
yyrg4564 := len(yyv4564) > 0
yyv24564 := yyv4564
yyrl4564, yyrt4564 = z.DecInferLen(yyl4564, z.DecBasicHandle().MaxInitLen, 40)
if yyrt4564 {
if yyrl4564 <= cap(yyv4564) {
yyv4564 = yyv4564[:yyrl4564]
} else {
yyv4564 = make([]EnvVar, yyrl4564)
}
} else {
yyv4564 = make([]EnvVar, yyrl4564)
}
yyc4564 = true
yyrr4564 = len(yyv4564)
if yyrg4564 {
copy(yyv4564, yyv24564)
}
} else if yyl4564 != len(yyv4564) {
yyv4564 = yyv4564[:yyl4564]
yyc4564 = true
}
yyj4564 := 0
for ; yyj4564 < yyrr4564; yyj4564++ {
yyh4564.ElemContainerState(yyj4564)
if r.TryDecodeAsNil() {
yyv4564[yyj4564] = EnvVar{}
} else {
yyv4565 := &yyv4564[yyj4564]
yyv4565.CodecDecodeSelf(d)
}
}
if yyrt4564 {
for ; yyj4564 < yyl4564; yyj4564++ {
yyv4564 = append(yyv4564, EnvVar{})
yyh4564.ElemContainerState(yyj4564)
if r.TryDecodeAsNil() {
yyv4564[yyj4564] = EnvVar{}
} else {
yyv4566 := &yyv4564[yyj4564]
yyv4566.CodecDecodeSelf(d)
}
}
}
} else {
yyj4564 := 0
for ; !r.CheckBreak(); yyj4564++ {
if yyj4564 >= len(yyv4564) {
yyv4564 = append(yyv4564, EnvVar{}) // var yyz4564 EnvVar
yyc4564 = true
}
yyh4564.ElemContainerState(yyj4564)
if yyj4564 < len(yyv4564) {
if r.TryDecodeAsNil() {
yyv4564[yyj4564] = EnvVar{}
} else {
yyv4567 := &yyv4564[yyj4564]
yyv4567.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4564 < len(yyv4564) {
yyv4564 = yyv4564[:yyj4564]
yyc4564 = true
} else if yyj4564 == 0 && yyv4564 == nil {
yyv4564 = []EnvVar{}
yyc4564 = true
}
}
yyh4564.End()
if yyc4564 {
*v = yyv4564
}
}
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 _, yyv4568 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4569 := &yyv4568
yy4569.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
yyv4570 := *v
yyh4570, yyl4570 := z.DecSliceHelperStart()
var yyc4570 bool
if yyl4570 == 0 {
if yyv4570 == nil {
yyv4570 = []VolumeMount{}
yyc4570 = true
} else if len(yyv4570) != 0 {
yyv4570 = yyv4570[:0]
yyc4570 = true
}
} else if yyl4570 > 0 {
var yyrr4570, yyrl4570 int
var yyrt4570 bool
if yyl4570 > cap(yyv4570) {
yyrg4570 := len(yyv4570) > 0
yyv24570 := yyv4570
yyrl4570, yyrt4570 = z.DecInferLen(yyl4570, z.DecBasicHandle().MaxInitLen, 56)
if yyrt4570 {
if yyrl4570 <= cap(yyv4570) {
yyv4570 = yyv4570[:yyrl4570]
} else {
yyv4570 = make([]VolumeMount, yyrl4570)
}
} else {
yyv4570 = make([]VolumeMount, yyrl4570)
}
yyc4570 = true
yyrr4570 = len(yyv4570)
if yyrg4570 {
copy(yyv4570, yyv24570)
}
} else if yyl4570 != len(yyv4570) {
yyv4570 = yyv4570[:yyl4570]
yyc4570 = true
}
yyj4570 := 0
for ; yyj4570 < yyrr4570; yyj4570++ {
yyh4570.ElemContainerState(yyj4570)
if r.TryDecodeAsNil() {
yyv4570[yyj4570] = VolumeMount{}
} else {
yyv4571 := &yyv4570[yyj4570]
yyv4571.CodecDecodeSelf(d)
}
}
if yyrt4570 {
for ; yyj4570 < yyl4570; yyj4570++ {
yyv4570 = append(yyv4570, VolumeMount{})
yyh4570.ElemContainerState(yyj4570)
if r.TryDecodeAsNil() {
yyv4570[yyj4570] = VolumeMount{}
} else {
yyv4572 := &yyv4570[yyj4570]
yyv4572.CodecDecodeSelf(d)
}
}
}
} else {
yyj4570 := 0
for ; !r.CheckBreak(); yyj4570++ {
if yyj4570 >= len(yyv4570) {
yyv4570 = append(yyv4570, VolumeMount{}) // var yyz4570 VolumeMount
yyc4570 = true
}
yyh4570.ElemContainerState(yyj4570)
if yyj4570 < len(yyv4570) {
if r.TryDecodeAsNil() {
yyv4570[yyj4570] = VolumeMount{}
} else {
yyv4573 := &yyv4570[yyj4570]
yyv4573.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4570 < len(yyv4570) {
yyv4570 = yyv4570[:yyj4570]
yyc4570 = true
} else if yyj4570 == 0 && yyv4570 == nil {
yyv4570 = []VolumeMount{}
yyc4570 = true
}
}
yyh4570.End()
if yyc4570 {
*v = yyv4570
}
}
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 _, yyv4574 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4575 := &yyv4574
yy4575.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
yyv4576 := *v
yyh4576, yyl4576 := z.DecSliceHelperStart()
var yyc4576 bool
if yyl4576 == 0 {
if yyv4576 == nil {
yyv4576 = []Pod{}
yyc4576 = true
} else if len(yyv4576) != 0 {
yyv4576 = yyv4576[:0]
yyc4576 = true
}
} else if yyl4576 > 0 {
var yyrr4576, yyrl4576 int
var yyrt4576 bool
if yyl4576 > cap(yyv4576) {
yyrg4576 := len(yyv4576) > 0
yyv24576 := yyv4576
yyrl4576, yyrt4576 = z.DecInferLen(yyl4576, z.DecBasicHandle().MaxInitLen, 640)
if yyrt4576 {
if yyrl4576 <= cap(yyv4576) {
yyv4576 = yyv4576[:yyrl4576]
} else {
yyv4576 = make([]Pod, yyrl4576)
}
} else {
yyv4576 = make([]Pod, yyrl4576)
}
yyc4576 = true
yyrr4576 = len(yyv4576)
if yyrg4576 {
copy(yyv4576, yyv24576)
}
} else if yyl4576 != len(yyv4576) {
yyv4576 = yyv4576[:yyl4576]
yyc4576 = true
}
yyj4576 := 0
for ; yyj4576 < yyrr4576; yyj4576++ {
yyh4576.ElemContainerState(yyj4576)
if r.TryDecodeAsNil() {
yyv4576[yyj4576] = Pod{}
} else {
yyv4577 := &yyv4576[yyj4576]
yyv4577.CodecDecodeSelf(d)
}
}
if yyrt4576 {
for ; yyj4576 < yyl4576; yyj4576++ {
yyv4576 = append(yyv4576, Pod{})
yyh4576.ElemContainerState(yyj4576)
if r.TryDecodeAsNil() {
yyv4576[yyj4576] = Pod{}
} else {
yyv4578 := &yyv4576[yyj4576]
yyv4578.CodecDecodeSelf(d)
}
}
}
} else {
yyj4576 := 0
for ; !r.CheckBreak(); yyj4576++ {
if yyj4576 >= len(yyv4576) {
yyv4576 = append(yyv4576, Pod{}) // var yyz4576 Pod
yyc4576 = true
}
yyh4576.ElemContainerState(yyj4576)
if yyj4576 < len(yyv4576) {
if r.TryDecodeAsNil() {
yyv4576[yyj4576] = Pod{}
} else {
yyv4579 := &yyv4576[yyj4576]
yyv4579.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4576 < len(yyv4576) {
yyv4576 = yyv4576[:yyj4576]
yyc4576 = true
} else if yyj4576 == 0 && yyv4576 == nil {
yyv4576 = []Pod{}
yyc4576 = true
}
}
yyh4576.End()
if yyc4576 {
*v = yyv4576
}
}
func (x codecSelfer1234) encSliceNodeSelectorTerm(v []NodeSelectorTerm, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4580 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4581 := &yyv4580
yy4581.CodecEncodeSelf(e)
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceNodeSelectorTerm(v *[]NodeSelectorTerm, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4582 := *v
yyh4582, yyl4582 := z.DecSliceHelperStart()
var yyc4582 bool
if yyl4582 == 0 {
if yyv4582 == nil {
yyv4582 = []NodeSelectorTerm{}
yyc4582 = true
} else if len(yyv4582) != 0 {
yyv4582 = yyv4582[:0]
yyc4582 = true
}
} else if yyl4582 > 0 {
var yyrr4582, yyrl4582 int
var yyrt4582 bool
if yyl4582 > cap(yyv4582) {
yyrg4582 := len(yyv4582) > 0
yyv24582 := yyv4582
yyrl4582, yyrt4582 = z.DecInferLen(yyl4582, z.DecBasicHandle().MaxInitLen, 24)
if yyrt4582 {
if yyrl4582 <= cap(yyv4582) {
yyv4582 = yyv4582[:yyrl4582]
} else {
yyv4582 = make([]NodeSelectorTerm, yyrl4582)
}
} else {
yyv4582 = make([]NodeSelectorTerm, yyrl4582)
}
yyc4582 = true
yyrr4582 = len(yyv4582)
if yyrg4582 {
copy(yyv4582, yyv24582)
}
} else if yyl4582 != len(yyv4582) {
yyv4582 = yyv4582[:yyl4582]
yyc4582 = true
}
yyj4582 := 0
for ; yyj4582 < yyrr4582; yyj4582++ {
yyh4582.ElemContainerState(yyj4582)
if r.TryDecodeAsNil() {
yyv4582[yyj4582] = NodeSelectorTerm{}
} else {
yyv4583 := &yyv4582[yyj4582]
yyv4583.CodecDecodeSelf(d)
}
}
if yyrt4582 {
for ; yyj4582 < yyl4582; yyj4582++ {
yyv4582 = append(yyv4582, NodeSelectorTerm{})
yyh4582.ElemContainerState(yyj4582)
if r.TryDecodeAsNil() {
yyv4582[yyj4582] = NodeSelectorTerm{}
} else {
yyv4584 := &yyv4582[yyj4582]
yyv4584.CodecDecodeSelf(d)
}
}
}
} else {
yyj4582 := 0
for ; !r.CheckBreak(); yyj4582++ {
if yyj4582 >= len(yyv4582) {
yyv4582 = append(yyv4582, NodeSelectorTerm{}) // var yyz4582 NodeSelectorTerm
yyc4582 = true
}
yyh4582.ElemContainerState(yyj4582)
if yyj4582 < len(yyv4582) {
if r.TryDecodeAsNil() {
yyv4582[yyj4582] = NodeSelectorTerm{}
} else {
yyv4585 := &yyv4582[yyj4582]
yyv4585.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4582 < len(yyv4582) {
yyv4582 = yyv4582[:yyj4582]
yyc4582 = true
} else if yyj4582 == 0 && yyv4582 == nil {
yyv4582 = []NodeSelectorTerm{}
yyc4582 = true
}
}
yyh4582.End()
if yyc4582 {
*v = yyv4582
}
}
func (x codecSelfer1234) encSliceNodeSelectorRequirement(v []NodeSelectorRequirement, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4586 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4587 := &yyv4586
yy4587.CodecEncodeSelf(e)
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceNodeSelectorRequirement(v *[]NodeSelectorRequirement, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4588 := *v
yyh4588, yyl4588 := z.DecSliceHelperStart()
var yyc4588 bool
if yyl4588 == 0 {
if yyv4588 == nil {
yyv4588 = []NodeSelectorRequirement{}
yyc4588 = true
} else if len(yyv4588) != 0 {
yyv4588 = yyv4588[:0]
yyc4588 = true
}
} else if yyl4588 > 0 {
var yyrr4588, yyrl4588 int
var yyrt4588 bool
if yyl4588 > cap(yyv4588) {
yyrg4588 := len(yyv4588) > 0
yyv24588 := yyv4588
yyrl4588, yyrt4588 = z.DecInferLen(yyl4588, z.DecBasicHandle().MaxInitLen, 56)
if yyrt4588 {
if yyrl4588 <= cap(yyv4588) {
yyv4588 = yyv4588[:yyrl4588]
} else {
yyv4588 = make([]NodeSelectorRequirement, yyrl4588)
}
} else {
yyv4588 = make([]NodeSelectorRequirement, yyrl4588)
}
yyc4588 = true
yyrr4588 = len(yyv4588)
if yyrg4588 {
copy(yyv4588, yyv24588)
}
} else if yyl4588 != len(yyv4588) {
yyv4588 = yyv4588[:yyl4588]
yyc4588 = true
}
yyj4588 := 0
for ; yyj4588 < yyrr4588; yyj4588++ {
yyh4588.ElemContainerState(yyj4588)
if r.TryDecodeAsNil() {
yyv4588[yyj4588] = NodeSelectorRequirement{}
} else {
yyv4589 := &yyv4588[yyj4588]
yyv4589.CodecDecodeSelf(d)
}
}
if yyrt4588 {
for ; yyj4588 < yyl4588; yyj4588++ {
yyv4588 = append(yyv4588, NodeSelectorRequirement{})
yyh4588.ElemContainerState(yyj4588)
if r.TryDecodeAsNil() {
yyv4588[yyj4588] = NodeSelectorRequirement{}
} else {
yyv4590 := &yyv4588[yyj4588]
yyv4590.CodecDecodeSelf(d)
}
}
}
} else {
yyj4588 := 0
for ; !r.CheckBreak(); yyj4588++ {
if yyj4588 >= len(yyv4588) {
yyv4588 = append(yyv4588, NodeSelectorRequirement{}) // var yyz4588 NodeSelectorRequirement
yyc4588 = true
}
yyh4588.ElemContainerState(yyj4588)
if yyj4588 < len(yyv4588) {
if r.TryDecodeAsNil() {
yyv4588[yyj4588] = NodeSelectorRequirement{}
} else {
yyv4591 := &yyv4588[yyj4588]
yyv4591.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4588 < len(yyv4588) {
yyv4588 = yyv4588[:yyj4588]
yyc4588 = true
} else if yyj4588 == 0 && yyv4588 == nil {
yyv4588 = []NodeSelectorRequirement{}
yyc4588 = true
}
}
yyh4588.End()
if yyc4588 {
*v = yyv4588
}
}
func (x codecSelfer1234) encSlicePodAffinityTerm(v []PodAffinityTerm, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4592 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4593 := &yyv4592
yy4593.CodecEncodeSelf(e)
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSlicePodAffinityTerm(v *[]PodAffinityTerm, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4594 := *v
yyh4594, yyl4594 := z.DecSliceHelperStart()
var yyc4594 bool
if yyl4594 == 0 {
if yyv4594 == nil {
yyv4594 = []PodAffinityTerm{}
yyc4594 = true
} else if len(yyv4594) != 0 {
yyv4594 = yyv4594[:0]
yyc4594 = true
}
} else if yyl4594 > 0 {
var yyrr4594, yyrl4594 int
var yyrt4594 bool
if yyl4594 > cap(yyv4594) {
yyrg4594 := len(yyv4594) > 0
yyv24594 := yyv4594
yyrl4594, yyrt4594 = z.DecInferLen(yyl4594, z.DecBasicHandle().MaxInitLen, 48)
if yyrt4594 {
if yyrl4594 <= cap(yyv4594) {
yyv4594 = yyv4594[:yyrl4594]
} else {
yyv4594 = make([]PodAffinityTerm, yyrl4594)
}
} else {
yyv4594 = make([]PodAffinityTerm, yyrl4594)
}
yyc4594 = true
yyrr4594 = len(yyv4594)
if yyrg4594 {
copy(yyv4594, yyv24594)
}
} else if yyl4594 != len(yyv4594) {
yyv4594 = yyv4594[:yyl4594]
yyc4594 = true
}
yyj4594 := 0
for ; yyj4594 < yyrr4594; yyj4594++ {
yyh4594.ElemContainerState(yyj4594)
if r.TryDecodeAsNil() {
yyv4594[yyj4594] = PodAffinityTerm{}
} else {
yyv4595 := &yyv4594[yyj4594]
yyv4595.CodecDecodeSelf(d)
}
}
if yyrt4594 {
for ; yyj4594 < yyl4594; yyj4594++ {
yyv4594 = append(yyv4594, PodAffinityTerm{})
yyh4594.ElemContainerState(yyj4594)
if r.TryDecodeAsNil() {
yyv4594[yyj4594] = PodAffinityTerm{}
} else {
yyv4596 := &yyv4594[yyj4594]
yyv4596.CodecDecodeSelf(d)
}
}
}
} else {
yyj4594 := 0
for ; !r.CheckBreak(); yyj4594++ {
if yyj4594 >= len(yyv4594) {
yyv4594 = append(yyv4594, PodAffinityTerm{}) // var yyz4594 PodAffinityTerm
yyc4594 = true
}
yyh4594.ElemContainerState(yyj4594)
if yyj4594 < len(yyv4594) {
if r.TryDecodeAsNil() {
yyv4594[yyj4594] = PodAffinityTerm{}
} else {
yyv4597 := &yyv4594[yyj4594]
yyv4597.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4594 < len(yyv4594) {
yyv4594 = yyv4594[:yyj4594]
yyc4594 = true
} else if yyj4594 == 0 && yyv4594 == nil {
yyv4594 = []PodAffinityTerm{}
yyc4594 = true
}
}
yyh4594.End()
if yyc4594 {
*v = yyv4594
}
}
func (x codecSelfer1234) encSliceWeightedPodAffinityTerm(v []WeightedPodAffinityTerm, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4598 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4599 := &yyv4598
yy4599.CodecEncodeSelf(e)
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceWeightedPodAffinityTerm(v *[]WeightedPodAffinityTerm, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4600 := *v
yyh4600, yyl4600 := z.DecSliceHelperStart()
var yyc4600 bool
if yyl4600 == 0 {
if yyv4600 == nil {
yyv4600 = []WeightedPodAffinityTerm{}
yyc4600 = true
} else if len(yyv4600) != 0 {
yyv4600 = yyv4600[:0]
yyc4600 = true
}
} else if yyl4600 > 0 {
var yyrr4600, yyrl4600 int
var yyrt4600 bool
if yyl4600 > cap(yyv4600) {
yyrg4600 := len(yyv4600) > 0
yyv24600 := yyv4600
yyrl4600, yyrt4600 = z.DecInferLen(yyl4600, z.DecBasicHandle().MaxInitLen, 56)
if yyrt4600 {
if yyrl4600 <= cap(yyv4600) {
yyv4600 = yyv4600[:yyrl4600]
} else {
yyv4600 = make([]WeightedPodAffinityTerm, yyrl4600)
}
} else {
yyv4600 = make([]WeightedPodAffinityTerm, yyrl4600)
}
yyc4600 = true
yyrr4600 = len(yyv4600)
if yyrg4600 {
copy(yyv4600, yyv24600)
}
} else if yyl4600 != len(yyv4600) {
yyv4600 = yyv4600[:yyl4600]
yyc4600 = true
}
yyj4600 := 0
for ; yyj4600 < yyrr4600; yyj4600++ {
yyh4600.ElemContainerState(yyj4600)
if r.TryDecodeAsNil() {
yyv4600[yyj4600] = WeightedPodAffinityTerm{}
} else {
yyv4601 := &yyv4600[yyj4600]
yyv4601.CodecDecodeSelf(d)
}
}
if yyrt4600 {
for ; yyj4600 < yyl4600; yyj4600++ {
yyv4600 = append(yyv4600, WeightedPodAffinityTerm{})
yyh4600.ElemContainerState(yyj4600)
if r.TryDecodeAsNil() {
yyv4600[yyj4600] = WeightedPodAffinityTerm{}
} else {
yyv4602 := &yyv4600[yyj4600]
yyv4602.CodecDecodeSelf(d)
}
}
}
} else {
yyj4600 := 0
for ; !r.CheckBreak(); yyj4600++ {
if yyj4600 >= len(yyv4600) {
yyv4600 = append(yyv4600, WeightedPodAffinityTerm{}) // var yyz4600 WeightedPodAffinityTerm
yyc4600 = true
}
yyh4600.ElemContainerState(yyj4600)
if yyj4600 < len(yyv4600) {
if r.TryDecodeAsNil() {
yyv4600[yyj4600] = WeightedPodAffinityTerm{}
} else {
yyv4603 := &yyv4600[yyj4600]
yyv4603.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4600 < len(yyv4600) {
yyv4600 = yyv4600[:yyj4600]
yyc4600 = true
} else if yyj4600 == 0 && yyv4600 == nil {
yyv4600 = []WeightedPodAffinityTerm{}
yyc4600 = true
}
}
yyh4600.End()
if yyc4600 {
*v = yyv4600
}
}
func (x codecSelfer1234) encSlicePreferredSchedulingTerm(v []PreferredSchedulingTerm, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4604 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4605 := &yyv4604
yy4605.CodecEncodeSelf(e)
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSlicePreferredSchedulingTerm(v *[]PreferredSchedulingTerm, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4606 := *v
yyh4606, yyl4606 := z.DecSliceHelperStart()
var yyc4606 bool
if yyl4606 == 0 {
if yyv4606 == nil {
yyv4606 = []PreferredSchedulingTerm{}
yyc4606 = true
} else if len(yyv4606) != 0 {
yyv4606 = yyv4606[:0]
yyc4606 = true
}
} else if yyl4606 > 0 {
var yyrr4606, yyrl4606 int
var yyrt4606 bool
if yyl4606 > cap(yyv4606) {
yyrg4606 := len(yyv4606) > 0
yyv24606 := yyv4606
yyrl4606, yyrt4606 = z.DecInferLen(yyl4606, z.DecBasicHandle().MaxInitLen, 32)
if yyrt4606 {
if yyrl4606 <= cap(yyv4606) {
yyv4606 = yyv4606[:yyrl4606]
} else {
yyv4606 = make([]PreferredSchedulingTerm, yyrl4606)
}
} else {
yyv4606 = make([]PreferredSchedulingTerm, yyrl4606)
}
yyc4606 = true
yyrr4606 = len(yyv4606)
if yyrg4606 {
copy(yyv4606, yyv24606)
}
} else if yyl4606 != len(yyv4606) {
yyv4606 = yyv4606[:yyl4606]
yyc4606 = true
}
yyj4606 := 0
for ; yyj4606 < yyrr4606; yyj4606++ {
yyh4606.ElemContainerState(yyj4606)
if r.TryDecodeAsNil() {
yyv4606[yyj4606] = PreferredSchedulingTerm{}
} else {
yyv4607 := &yyv4606[yyj4606]
yyv4607.CodecDecodeSelf(d)
}
}
if yyrt4606 {
for ; yyj4606 < yyl4606; yyj4606++ {
yyv4606 = append(yyv4606, PreferredSchedulingTerm{})
yyh4606.ElemContainerState(yyj4606)
if r.TryDecodeAsNil() {
yyv4606[yyj4606] = PreferredSchedulingTerm{}
} else {
yyv4608 := &yyv4606[yyj4606]
yyv4608.CodecDecodeSelf(d)
}
}
}
} else {
yyj4606 := 0
for ; !r.CheckBreak(); yyj4606++ {
if yyj4606 >= len(yyv4606) {
yyv4606 = append(yyv4606, PreferredSchedulingTerm{}) // var yyz4606 PreferredSchedulingTerm
yyc4606 = true
}
yyh4606.ElemContainerState(yyj4606)
if yyj4606 < len(yyv4606) {
if r.TryDecodeAsNil() {
yyv4606[yyj4606] = PreferredSchedulingTerm{}
} else {
yyv4609 := &yyv4606[yyj4606]
yyv4609.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4606 < len(yyv4606) {
yyv4606 = yyv4606[:yyj4606]
yyc4606 = true
} else if yyj4606 == 0 && yyv4606 == nil {
yyv4606 = []PreferredSchedulingTerm{}
yyc4606 = true
}
}
yyh4606.End()
if yyc4606 {
*v = yyv4606
}
}
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 _, yyv4610 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4611 := &yyv4610
yy4611.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
yyv4612 := *v
yyh4612, yyl4612 := z.DecSliceHelperStart()
var yyc4612 bool
if yyl4612 == 0 {
if yyv4612 == nil {
yyv4612 = []Volume{}
yyc4612 = true
} else if len(yyv4612) != 0 {
yyv4612 = yyv4612[:0]
yyc4612 = true
}
} else if yyl4612 > 0 {
var yyrr4612, yyrl4612 int
var yyrt4612 bool
if yyl4612 > cap(yyv4612) {
yyrg4612 := len(yyv4612) > 0
yyv24612 := yyv4612
yyrl4612, yyrt4612 = z.DecInferLen(yyl4612, z.DecBasicHandle().MaxInitLen, 192)
if yyrt4612 {
if yyrl4612 <= cap(yyv4612) {
yyv4612 = yyv4612[:yyrl4612]
} else {
yyv4612 = make([]Volume, yyrl4612)
}
} else {
yyv4612 = make([]Volume, yyrl4612)
}
yyc4612 = true
yyrr4612 = len(yyv4612)
if yyrg4612 {
copy(yyv4612, yyv24612)
}
} else if yyl4612 != len(yyv4612) {
yyv4612 = yyv4612[:yyl4612]
yyc4612 = true
}
yyj4612 := 0
for ; yyj4612 < yyrr4612; yyj4612++ {
yyh4612.ElemContainerState(yyj4612)
if r.TryDecodeAsNil() {
yyv4612[yyj4612] = Volume{}
} else {
yyv4613 := &yyv4612[yyj4612]
yyv4613.CodecDecodeSelf(d)
}
}
if yyrt4612 {
for ; yyj4612 < yyl4612; yyj4612++ {
yyv4612 = append(yyv4612, Volume{})
yyh4612.ElemContainerState(yyj4612)
if r.TryDecodeAsNil() {
yyv4612[yyj4612] = Volume{}
} else {
yyv4614 := &yyv4612[yyj4612]
yyv4614.CodecDecodeSelf(d)
}
}
}
} else {
yyj4612 := 0
for ; !r.CheckBreak(); yyj4612++ {
if yyj4612 >= len(yyv4612) {
yyv4612 = append(yyv4612, Volume{}) // var yyz4612 Volume
yyc4612 = true
}
yyh4612.ElemContainerState(yyj4612)
if yyj4612 < len(yyv4612) {
if r.TryDecodeAsNil() {
yyv4612[yyj4612] = Volume{}
} else {
yyv4615 := &yyv4612[yyj4612]
yyv4615.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4612 < len(yyv4612) {
yyv4612 = yyv4612[:yyj4612]
yyc4612 = true
} else if yyj4612 == 0 && yyv4612 == nil {
yyv4612 = []Volume{}
yyc4612 = true
}
}
yyh4612.End()
if yyc4612 {
*v = yyv4612
}
}
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 _, yyv4616 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4617 := &yyv4616
yy4617.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
yyv4618 := *v
yyh4618, yyl4618 := z.DecSliceHelperStart()
var yyc4618 bool
if yyl4618 == 0 {
if yyv4618 == nil {
yyv4618 = []Container{}
yyc4618 = true
} else if len(yyv4618) != 0 {
yyv4618 = yyv4618[:0]
yyc4618 = true
}
} else if yyl4618 > 0 {
var yyrr4618, yyrl4618 int
var yyrt4618 bool
if yyl4618 > cap(yyv4618) {
yyrg4618 := len(yyv4618) > 0
yyv24618 := yyv4618
yyrl4618, yyrt4618 = z.DecInferLen(yyl4618, z.DecBasicHandle().MaxInitLen, 256)
if yyrt4618 {
if yyrl4618 <= cap(yyv4618) {
yyv4618 = yyv4618[:yyrl4618]
} else {
yyv4618 = make([]Container, yyrl4618)
}
} else {
yyv4618 = make([]Container, yyrl4618)
}
yyc4618 = true
yyrr4618 = len(yyv4618)
if yyrg4618 {
copy(yyv4618, yyv24618)
}
} else if yyl4618 != len(yyv4618) {
yyv4618 = yyv4618[:yyl4618]
yyc4618 = true
}
yyj4618 := 0
for ; yyj4618 < yyrr4618; yyj4618++ {
yyh4618.ElemContainerState(yyj4618)
if r.TryDecodeAsNil() {
yyv4618[yyj4618] = Container{}
} else {
yyv4619 := &yyv4618[yyj4618]
yyv4619.CodecDecodeSelf(d)
}
}
if yyrt4618 {
for ; yyj4618 < yyl4618; yyj4618++ {
yyv4618 = append(yyv4618, Container{})
yyh4618.ElemContainerState(yyj4618)
if r.TryDecodeAsNil() {
yyv4618[yyj4618] = Container{}
} else {
yyv4620 := &yyv4618[yyj4618]
yyv4620.CodecDecodeSelf(d)
}
}
}
} else {
yyj4618 := 0
for ; !r.CheckBreak(); yyj4618++ {
if yyj4618 >= len(yyv4618) {
yyv4618 = append(yyv4618, Container{}) // var yyz4618 Container
yyc4618 = true
}
yyh4618.ElemContainerState(yyj4618)
if yyj4618 < len(yyv4618) {
if r.TryDecodeAsNil() {
yyv4618[yyj4618] = Container{}
} else {
yyv4621 := &yyv4618[yyj4618]
yyv4621.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4618 < len(yyv4618) {
yyv4618 = yyv4618[:yyj4618]
yyc4618 = true
} else if yyj4618 == 0 && yyv4618 == nil {
yyv4618 = []Container{}
yyc4618 = true
}
}
yyh4618.End()
if yyc4618 {
*v = yyv4618
}
}
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 _, yyv4622 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4623 := &yyv4622
yy4623.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
yyv4624 := *v
yyh4624, yyl4624 := z.DecSliceHelperStart()
var yyc4624 bool
if yyl4624 == 0 {
if yyv4624 == nil {
yyv4624 = []LocalObjectReference{}
yyc4624 = true
} else if len(yyv4624) != 0 {
yyv4624 = yyv4624[:0]
yyc4624 = true
}
} else if yyl4624 > 0 {
var yyrr4624, yyrl4624 int
var yyrt4624 bool
if yyl4624 > cap(yyv4624) {
yyrg4624 := len(yyv4624) > 0
yyv24624 := yyv4624
yyrl4624, yyrt4624 = z.DecInferLen(yyl4624, z.DecBasicHandle().MaxInitLen, 16)
if yyrt4624 {
if yyrl4624 <= cap(yyv4624) {
yyv4624 = yyv4624[:yyrl4624]
} else {
yyv4624 = make([]LocalObjectReference, yyrl4624)
}
} else {
yyv4624 = make([]LocalObjectReference, yyrl4624)
}
yyc4624 = true
yyrr4624 = len(yyv4624)
if yyrg4624 {
copy(yyv4624, yyv24624)
}
} else if yyl4624 != len(yyv4624) {
yyv4624 = yyv4624[:yyl4624]
yyc4624 = true
}
yyj4624 := 0
for ; yyj4624 < yyrr4624; yyj4624++ {
yyh4624.ElemContainerState(yyj4624)
if r.TryDecodeAsNil() {
yyv4624[yyj4624] = LocalObjectReference{}
} else {
yyv4625 := &yyv4624[yyj4624]
yyv4625.CodecDecodeSelf(d)
}
}
if yyrt4624 {
for ; yyj4624 < yyl4624; yyj4624++ {
yyv4624 = append(yyv4624, LocalObjectReference{})
yyh4624.ElemContainerState(yyj4624)
if r.TryDecodeAsNil() {
yyv4624[yyj4624] = LocalObjectReference{}
} else {
yyv4626 := &yyv4624[yyj4624]
yyv4626.CodecDecodeSelf(d)
}
}
}
} else {
yyj4624 := 0
for ; !r.CheckBreak(); yyj4624++ {
if yyj4624 >= len(yyv4624) {
yyv4624 = append(yyv4624, LocalObjectReference{}) // var yyz4624 LocalObjectReference
yyc4624 = true
}
yyh4624.ElemContainerState(yyj4624)
if yyj4624 < len(yyv4624) {
if r.TryDecodeAsNil() {
yyv4624[yyj4624] = LocalObjectReference{}
} else {
yyv4627 := &yyv4624[yyj4624]
yyv4627.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4624 < len(yyv4624) {
yyv4624 = yyv4624[:yyj4624]
yyc4624 = true
} else if yyj4624 == 0 && yyv4624 == nil {
yyv4624 = []LocalObjectReference{}
yyc4624 = true
}
}
yyh4624.End()
if yyc4624 {
*v = yyv4624
}
}
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 _, yyv4628 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4629 := &yyv4628
yy4629.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
yyv4630 := *v
yyh4630, yyl4630 := z.DecSliceHelperStart()
var yyc4630 bool
if yyl4630 == 0 {
if yyv4630 == nil {
yyv4630 = []PodCondition{}
yyc4630 = true
} else if len(yyv4630) != 0 {
yyv4630 = yyv4630[:0]
yyc4630 = true
}
} else if yyl4630 > 0 {
var yyrr4630, yyrl4630 int
var yyrt4630 bool
if yyl4630 > cap(yyv4630) {
yyrg4630 := len(yyv4630) > 0
yyv24630 := yyv4630
yyrl4630, yyrt4630 = z.DecInferLen(yyl4630, z.DecBasicHandle().MaxInitLen, 112)
if yyrt4630 {
if yyrl4630 <= cap(yyv4630) {
yyv4630 = yyv4630[:yyrl4630]
} else {
yyv4630 = make([]PodCondition, yyrl4630)
}
} else {
yyv4630 = make([]PodCondition, yyrl4630)
}
yyc4630 = true
yyrr4630 = len(yyv4630)
if yyrg4630 {
copy(yyv4630, yyv24630)
}
} else if yyl4630 != len(yyv4630) {
yyv4630 = yyv4630[:yyl4630]
yyc4630 = true
}
yyj4630 := 0
for ; yyj4630 < yyrr4630; yyj4630++ {
yyh4630.ElemContainerState(yyj4630)
if r.TryDecodeAsNil() {
yyv4630[yyj4630] = PodCondition{}
} else {
yyv4631 := &yyv4630[yyj4630]
yyv4631.CodecDecodeSelf(d)
}
}
if yyrt4630 {
for ; yyj4630 < yyl4630; yyj4630++ {
yyv4630 = append(yyv4630, PodCondition{})
yyh4630.ElemContainerState(yyj4630)
if r.TryDecodeAsNil() {
yyv4630[yyj4630] = PodCondition{}
} else {
yyv4632 := &yyv4630[yyj4630]
yyv4632.CodecDecodeSelf(d)
}
}
}
} else {
yyj4630 := 0
for ; !r.CheckBreak(); yyj4630++ {
if yyj4630 >= len(yyv4630) {
yyv4630 = append(yyv4630, PodCondition{}) // var yyz4630 PodCondition
yyc4630 = true
}
yyh4630.ElemContainerState(yyj4630)
if yyj4630 < len(yyv4630) {
if r.TryDecodeAsNil() {
yyv4630[yyj4630] = PodCondition{}
} else {
yyv4633 := &yyv4630[yyj4630]
yyv4633.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4630 < len(yyv4630) {
yyv4630 = yyv4630[:yyj4630]
yyc4630 = true
} else if yyj4630 == 0 && yyv4630 == nil {
yyv4630 = []PodCondition{}
yyc4630 = true
}
}
yyh4630.End()
if yyc4630 {
*v = yyv4630
}
}
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 _, yyv4634 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4635 := &yyv4634
yy4635.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
yyv4636 := *v
yyh4636, yyl4636 := z.DecSliceHelperStart()
var yyc4636 bool
if yyl4636 == 0 {
if yyv4636 == nil {
yyv4636 = []ContainerStatus{}
yyc4636 = true
} else if len(yyv4636) != 0 {
yyv4636 = yyv4636[:0]
yyc4636 = true
}
} else if yyl4636 > 0 {
var yyrr4636, yyrl4636 int
var yyrt4636 bool
if yyl4636 > cap(yyv4636) {
yyrg4636 := len(yyv4636) > 0
yyv24636 := yyv4636
yyrl4636, yyrt4636 = z.DecInferLen(yyl4636, z.DecBasicHandle().MaxInitLen, 120)
if yyrt4636 {
if yyrl4636 <= cap(yyv4636) {
yyv4636 = yyv4636[:yyrl4636]
} else {
yyv4636 = make([]ContainerStatus, yyrl4636)
}
} else {
yyv4636 = make([]ContainerStatus, yyrl4636)
}
yyc4636 = true
yyrr4636 = len(yyv4636)
if yyrg4636 {
copy(yyv4636, yyv24636)
}
} else if yyl4636 != len(yyv4636) {
yyv4636 = yyv4636[:yyl4636]
yyc4636 = true
}
yyj4636 := 0
for ; yyj4636 < yyrr4636; yyj4636++ {
yyh4636.ElemContainerState(yyj4636)
if r.TryDecodeAsNil() {
yyv4636[yyj4636] = ContainerStatus{}
} else {
yyv4637 := &yyv4636[yyj4636]
yyv4637.CodecDecodeSelf(d)
}
}
if yyrt4636 {
for ; yyj4636 < yyl4636; yyj4636++ {
yyv4636 = append(yyv4636, ContainerStatus{})
yyh4636.ElemContainerState(yyj4636)
if r.TryDecodeAsNil() {
yyv4636[yyj4636] = ContainerStatus{}
} else {
yyv4638 := &yyv4636[yyj4636]
yyv4638.CodecDecodeSelf(d)
}
}
}
} else {
yyj4636 := 0
for ; !r.CheckBreak(); yyj4636++ {
if yyj4636 >= len(yyv4636) {
yyv4636 = append(yyv4636, ContainerStatus{}) // var yyz4636 ContainerStatus
yyc4636 = true
}
yyh4636.ElemContainerState(yyj4636)
if yyj4636 < len(yyv4636) {
if r.TryDecodeAsNil() {
yyv4636[yyj4636] = ContainerStatus{}
} else {
yyv4639 := &yyv4636[yyj4636]
yyv4639.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4636 < len(yyv4636) {
yyv4636 = yyv4636[:yyj4636]
yyc4636 = true
} else if yyj4636 == 0 && yyv4636 == nil {
yyv4636 = []ContainerStatus{}
yyc4636 = true
}
}
yyh4636.End()
if yyc4636 {
*v = yyv4636
}
}
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 _, yyv4640 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4641 := &yyv4640
yy4641.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
yyv4642 := *v
yyh4642, yyl4642 := z.DecSliceHelperStart()
var yyc4642 bool
if yyl4642 == 0 {
if yyv4642 == nil {
yyv4642 = []PodTemplate{}
yyc4642 = true
} else if len(yyv4642) != 0 {
yyv4642 = yyv4642[:0]
yyc4642 = true
}
} else if yyl4642 > 0 {
var yyrr4642, yyrl4642 int
var yyrt4642 bool
if yyl4642 > cap(yyv4642) {
yyrg4642 := len(yyv4642) > 0
yyv24642 := yyv4642
yyrl4642, yyrt4642 = z.DecInferLen(yyl4642, z.DecBasicHandle().MaxInitLen, 704)
if yyrt4642 {
if yyrl4642 <= cap(yyv4642) {
yyv4642 = yyv4642[:yyrl4642]
} else {
yyv4642 = make([]PodTemplate, yyrl4642)
}
} else {
yyv4642 = make([]PodTemplate, yyrl4642)
}
yyc4642 = true
yyrr4642 = len(yyv4642)
if yyrg4642 {
copy(yyv4642, yyv24642)
}
} else if yyl4642 != len(yyv4642) {
yyv4642 = yyv4642[:yyl4642]
yyc4642 = true
}
yyj4642 := 0
for ; yyj4642 < yyrr4642; yyj4642++ {
yyh4642.ElemContainerState(yyj4642)
if r.TryDecodeAsNil() {
yyv4642[yyj4642] = PodTemplate{}
} else {
yyv4643 := &yyv4642[yyj4642]
yyv4643.CodecDecodeSelf(d)
}
}
if yyrt4642 {
for ; yyj4642 < yyl4642; yyj4642++ {
yyv4642 = append(yyv4642, PodTemplate{})
yyh4642.ElemContainerState(yyj4642)
if r.TryDecodeAsNil() {
yyv4642[yyj4642] = PodTemplate{}
} else {
yyv4644 := &yyv4642[yyj4642]
yyv4644.CodecDecodeSelf(d)
}
}
}
} else {
yyj4642 := 0
for ; !r.CheckBreak(); yyj4642++ {
if yyj4642 >= len(yyv4642) {
yyv4642 = append(yyv4642, PodTemplate{}) // var yyz4642 PodTemplate
yyc4642 = true
}
yyh4642.ElemContainerState(yyj4642)
if yyj4642 < len(yyv4642) {
if r.TryDecodeAsNil() {
yyv4642[yyj4642] = PodTemplate{}
} else {
yyv4645 := &yyv4642[yyj4642]
yyv4645.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4642 < len(yyv4642) {
yyv4642 = yyv4642[:yyj4642]
yyc4642 = true
} else if yyj4642 == 0 && yyv4642 == nil {
yyv4642 = []PodTemplate{}
yyc4642 = true
}
}
yyh4642.End()
if yyc4642 {
*v = yyv4642
}
}
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 _, yyv4646 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4647 := &yyv4646
yy4647.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
yyv4648 := *v
yyh4648, yyl4648 := z.DecSliceHelperStart()
var yyc4648 bool
if yyl4648 == 0 {
if yyv4648 == nil {
yyv4648 = []ReplicationController{}
yyc4648 = true
} else if len(yyv4648) != 0 {
yyv4648 = yyv4648[:0]
yyc4648 = true
}
} else if yyl4648 > 0 {
var yyrr4648, yyrl4648 int
var yyrt4648 bool
if yyl4648 > cap(yyv4648) {
yyrg4648 := len(yyv4648) > 0
yyv24648 := yyv4648
yyrl4648, yyrt4648 = z.DecInferLen(yyl4648, z.DecBasicHandle().MaxInitLen, 304)
if yyrt4648 {
if yyrl4648 <= cap(yyv4648) {
yyv4648 = yyv4648[:yyrl4648]
} else {
yyv4648 = make([]ReplicationController, yyrl4648)
}
} else {
yyv4648 = make([]ReplicationController, yyrl4648)
}
yyc4648 = true
yyrr4648 = len(yyv4648)
if yyrg4648 {
copy(yyv4648, yyv24648)
}
} else if yyl4648 != len(yyv4648) {
yyv4648 = yyv4648[:yyl4648]
yyc4648 = true
}
yyj4648 := 0
for ; yyj4648 < yyrr4648; yyj4648++ {
yyh4648.ElemContainerState(yyj4648)
if r.TryDecodeAsNil() {
yyv4648[yyj4648] = ReplicationController{}
} else {
yyv4649 := &yyv4648[yyj4648]
yyv4649.CodecDecodeSelf(d)
}
}
if yyrt4648 {
for ; yyj4648 < yyl4648; yyj4648++ {
yyv4648 = append(yyv4648, ReplicationController{})
yyh4648.ElemContainerState(yyj4648)
if r.TryDecodeAsNil() {
yyv4648[yyj4648] = ReplicationController{}
} else {
yyv4650 := &yyv4648[yyj4648]
yyv4650.CodecDecodeSelf(d)
}
}
}
} else {
yyj4648 := 0
for ; !r.CheckBreak(); yyj4648++ {
if yyj4648 >= len(yyv4648) {
yyv4648 = append(yyv4648, ReplicationController{}) // var yyz4648 ReplicationController
yyc4648 = true
}
yyh4648.ElemContainerState(yyj4648)
if yyj4648 < len(yyv4648) {
if r.TryDecodeAsNil() {
yyv4648[yyj4648] = ReplicationController{}
} else {
yyv4651 := &yyv4648[yyj4648]
yyv4651.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4648 < len(yyv4648) {
yyv4648 = yyv4648[:yyj4648]
yyc4648 = true
} else if yyj4648 == 0 && yyv4648 == nil {
yyv4648 = []ReplicationController{}
yyc4648 = true
}
}
yyh4648.End()
if yyc4648 {
*v = yyv4648
}
}
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 _, yyv4652 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4653 := &yyv4652
yy4653.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
yyv4654 := *v
yyh4654, yyl4654 := z.DecSliceHelperStart()
var yyc4654 bool
if yyl4654 == 0 {
if yyv4654 == nil {
yyv4654 = []Service{}
yyc4654 = true
} else if len(yyv4654) != 0 {
yyv4654 = yyv4654[:0]
yyc4654 = true
}
} else if yyl4654 > 0 {
var yyrr4654, yyrl4654 int
var yyrt4654 bool
if yyl4654 > cap(yyv4654) {
yyrg4654 := len(yyv4654) > 0
yyv24654 := yyv4654
yyrl4654, yyrt4654 = z.DecInferLen(yyl4654, z.DecBasicHandle().MaxInitLen, 440)
if yyrt4654 {
if yyrl4654 <= cap(yyv4654) {
yyv4654 = yyv4654[:yyrl4654]
} else {
yyv4654 = make([]Service, yyrl4654)
}
} else {
yyv4654 = make([]Service, yyrl4654)
}
yyc4654 = true
yyrr4654 = len(yyv4654)
if yyrg4654 {
copy(yyv4654, yyv24654)
}
} else if yyl4654 != len(yyv4654) {
yyv4654 = yyv4654[:yyl4654]
yyc4654 = true
}
yyj4654 := 0
for ; yyj4654 < yyrr4654; yyj4654++ {
yyh4654.ElemContainerState(yyj4654)
if r.TryDecodeAsNil() {
yyv4654[yyj4654] = Service{}
} else {
yyv4655 := &yyv4654[yyj4654]
yyv4655.CodecDecodeSelf(d)
}
}
if yyrt4654 {
for ; yyj4654 < yyl4654; yyj4654++ {
yyv4654 = append(yyv4654, Service{})
yyh4654.ElemContainerState(yyj4654)
if r.TryDecodeAsNil() {
yyv4654[yyj4654] = Service{}
} else {
yyv4656 := &yyv4654[yyj4654]
yyv4656.CodecDecodeSelf(d)
}
}
}
} else {
yyj4654 := 0
for ; !r.CheckBreak(); yyj4654++ {
if yyj4654 >= len(yyv4654) {
yyv4654 = append(yyv4654, Service{}) // var yyz4654 Service
yyc4654 = true
}
yyh4654.ElemContainerState(yyj4654)
if yyj4654 < len(yyv4654) {
if r.TryDecodeAsNil() {
yyv4654[yyj4654] = Service{}
} else {
yyv4657 := &yyv4654[yyj4654]
yyv4657.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4654 < len(yyv4654) {
yyv4654 = yyv4654[:yyj4654]
yyc4654 = true
} else if yyj4654 == 0 && yyv4654 == nil {
yyv4654 = []Service{}
yyc4654 = true
}
}
yyh4654.End()
if yyc4654 {
*v = yyv4654
}
}
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 _, yyv4658 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4659 := &yyv4658
yy4659.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
yyv4660 := *v
yyh4660, yyl4660 := z.DecSliceHelperStart()
var yyc4660 bool
if yyl4660 == 0 {
if yyv4660 == nil {
yyv4660 = []LoadBalancerIngress{}
yyc4660 = true
} else if len(yyv4660) != 0 {
yyv4660 = yyv4660[:0]
yyc4660 = true
}
} else if yyl4660 > 0 {
var yyrr4660, yyrl4660 int
var yyrt4660 bool
if yyl4660 > cap(yyv4660) {
yyrg4660 := len(yyv4660) > 0
yyv24660 := yyv4660
yyrl4660, yyrt4660 = z.DecInferLen(yyl4660, z.DecBasicHandle().MaxInitLen, 32)
if yyrt4660 {
if yyrl4660 <= cap(yyv4660) {
yyv4660 = yyv4660[:yyrl4660]
} else {
yyv4660 = make([]LoadBalancerIngress, yyrl4660)
}
} else {
yyv4660 = make([]LoadBalancerIngress, yyrl4660)
}
yyc4660 = true
yyrr4660 = len(yyv4660)
if yyrg4660 {
copy(yyv4660, yyv24660)
}
} else if yyl4660 != len(yyv4660) {
yyv4660 = yyv4660[:yyl4660]
yyc4660 = true
}
yyj4660 := 0
for ; yyj4660 < yyrr4660; yyj4660++ {
yyh4660.ElemContainerState(yyj4660)
if r.TryDecodeAsNil() {
yyv4660[yyj4660] = LoadBalancerIngress{}
} else {
yyv4661 := &yyv4660[yyj4660]
yyv4661.CodecDecodeSelf(d)
}
}
if yyrt4660 {
for ; yyj4660 < yyl4660; yyj4660++ {
yyv4660 = append(yyv4660, LoadBalancerIngress{})
yyh4660.ElemContainerState(yyj4660)
if r.TryDecodeAsNil() {
yyv4660[yyj4660] = LoadBalancerIngress{}
} else {
yyv4662 := &yyv4660[yyj4660]
yyv4662.CodecDecodeSelf(d)
}
}
}
} else {
yyj4660 := 0
for ; !r.CheckBreak(); yyj4660++ {
if yyj4660 >= len(yyv4660) {
yyv4660 = append(yyv4660, LoadBalancerIngress{}) // var yyz4660 LoadBalancerIngress
yyc4660 = true
}
yyh4660.ElemContainerState(yyj4660)
if yyj4660 < len(yyv4660) {
if r.TryDecodeAsNil() {
yyv4660[yyj4660] = LoadBalancerIngress{}
} else {
yyv4663 := &yyv4660[yyj4660]
yyv4663.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4660 < len(yyv4660) {
yyv4660 = yyv4660[:yyj4660]
yyc4660 = true
} else if yyj4660 == 0 && yyv4660 == nil {
yyv4660 = []LoadBalancerIngress{}
yyc4660 = true
}
}
yyh4660.End()
if yyc4660 {
*v = yyv4660
}
}
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 _, yyv4664 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4665 := &yyv4664
yy4665.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
yyv4666 := *v
yyh4666, yyl4666 := z.DecSliceHelperStart()
var yyc4666 bool
if yyl4666 == 0 {
if yyv4666 == nil {
yyv4666 = []ServicePort{}
yyc4666 = true
} else if len(yyv4666) != 0 {
yyv4666 = yyv4666[:0]
yyc4666 = true
}
} else if yyl4666 > 0 {
var yyrr4666, yyrl4666 int
var yyrt4666 bool
if yyl4666 > cap(yyv4666) {
yyrg4666 := len(yyv4666) > 0
yyv24666 := yyv4666
yyrl4666, yyrt4666 = z.DecInferLen(yyl4666, z.DecBasicHandle().MaxInitLen, 80)
if yyrt4666 {
if yyrl4666 <= cap(yyv4666) {
yyv4666 = yyv4666[:yyrl4666]
} else {
yyv4666 = make([]ServicePort, yyrl4666)
}
} else {
yyv4666 = make([]ServicePort, yyrl4666)
}
yyc4666 = true
yyrr4666 = len(yyv4666)
if yyrg4666 {
copy(yyv4666, yyv24666)
}
} else if yyl4666 != len(yyv4666) {
yyv4666 = yyv4666[:yyl4666]
yyc4666 = true
}
yyj4666 := 0
for ; yyj4666 < yyrr4666; yyj4666++ {
yyh4666.ElemContainerState(yyj4666)
if r.TryDecodeAsNil() {
yyv4666[yyj4666] = ServicePort{}
} else {
yyv4667 := &yyv4666[yyj4666]
yyv4667.CodecDecodeSelf(d)
}
}
if yyrt4666 {
for ; yyj4666 < yyl4666; yyj4666++ {
yyv4666 = append(yyv4666, ServicePort{})
yyh4666.ElemContainerState(yyj4666)
if r.TryDecodeAsNil() {
yyv4666[yyj4666] = ServicePort{}
} else {
yyv4668 := &yyv4666[yyj4666]
yyv4668.CodecDecodeSelf(d)
}
}
}
} else {
yyj4666 := 0
for ; !r.CheckBreak(); yyj4666++ {
if yyj4666 >= len(yyv4666) {
yyv4666 = append(yyv4666, ServicePort{}) // var yyz4666 ServicePort
yyc4666 = true
}
yyh4666.ElemContainerState(yyj4666)
if yyj4666 < len(yyv4666) {
if r.TryDecodeAsNil() {
yyv4666[yyj4666] = ServicePort{}
} else {
yyv4669 := &yyv4666[yyj4666]
yyv4669.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4666 < len(yyv4666) {
yyv4666 = yyv4666[:yyj4666]
yyc4666 = true
} else if yyj4666 == 0 && yyv4666 == nil {
yyv4666 = []ServicePort{}
yyc4666 = true
}
}
yyh4666.End()
if yyc4666 {
*v = yyv4666
}
}
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 _, yyv4670 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4671 := &yyv4670
yy4671.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
yyv4672 := *v
yyh4672, yyl4672 := z.DecSliceHelperStart()
var yyc4672 bool
if yyl4672 == 0 {
if yyv4672 == nil {
yyv4672 = []ObjectReference{}
yyc4672 = true
} else if len(yyv4672) != 0 {
yyv4672 = yyv4672[:0]
yyc4672 = true
}
} else if yyl4672 > 0 {
var yyrr4672, yyrl4672 int
var yyrt4672 bool
if yyl4672 > cap(yyv4672) {
yyrg4672 := len(yyv4672) > 0
yyv24672 := yyv4672
yyrl4672, yyrt4672 = z.DecInferLen(yyl4672, z.DecBasicHandle().MaxInitLen, 112)
if yyrt4672 {
if yyrl4672 <= cap(yyv4672) {
yyv4672 = yyv4672[:yyrl4672]
} else {
yyv4672 = make([]ObjectReference, yyrl4672)
}
} else {
yyv4672 = make([]ObjectReference, yyrl4672)
}
yyc4672 = true
yyrr4672 = len(yyv4672)
if yyrg4672 {
copy(yyv4672, yyv24672)
}
} else if yyl4672 != len(yyv4672) {
yyv4672 = yyv4672[:yyl4672]
yyc4672 = true
}
yyj4672 := 0
for ; yyj4672 < yyrr4672; yyj4672++ {
yyh4672.ElemContainerState(yyj4672)
if r.TryDecodeAsNil() {
yyv4672[yyj4672] = ObjectReference{}
} else {
yyv4673 := &yyv4672[yyj4672]
yyv4673.CodecDecodeSelf(d)
}
}
if yyrt4672 {
for ; yyj4672 < yyl4672; yyj4672++ {
yyv4672 = append(yyv4672, ObjectReference{})
yyh4672.ElemContainerState(yyj4672)
if r.TryDecodeAsNil() {
yyv4672[yyj4672] = ObjectReference{}
} else {
yyv4674 := &yyv4672[yyj4672]
yyv4674.CodecDecodeSelf(d)
}
}
}
} else {
yyj4672 := 0
for ; !r.CheckBreak(); yyj4672++ {
if yyj4672 >= len(yyv4672) {
yyv4672 = append(yyv4672, ObjectReference{}) // var yyz4672 ObjectReference
yyc4672 = true
}
yyh4672.ElemContainerState(yyj4672)
if yyj4672 < len(yyv4672) {
if r.TryDecodeAsNil() {
yyv4672[yyj4672] = ObjectReference{}
} else {
yyv4675 := &yyv4672[yyj4672]
yyv4675.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4672 < len(yyv4672) {
yyv4672 = yyv4672[:yyj4672]
yyc4672 = true
} else if yyj4672 == 0 && yyv4672 == nil {
yyv4672 = []ObjectReference{}
yyc4672 = true
}
}
yyh4672.End()
if yyc4672 {
*v = yyv4672
}
}
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 _, yyv4676 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4677 := &yyv4676
yy4677.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
yyv4678 := *v
yyh4678, yyl4678 := z.DecSliceHelperStart()
var yyc4678 bool
if yyl4678 == 0 {
if yyv4678 == nil {
yyv4678 = []ServiceAccount{}
yyc4678 = true
} else if len(yyv4678) != 0 {
yyv4678 = yyv4678[:0]
yyc4678 = true
}
} else if yyl4678 > 0 {
var yyrr4678, yyrl4678 int
var yyrt4678 bool
if yyl4678 > cap(yyv4678) {
yyrg4678 := len(yyv4678) > 0
yyv24678 := yyv4678
yyrl4678, yyrt4678 = z.DecInferLen(yyl4678, z.DecBasicHandle().MaxInitLen, 304)
if yyrt4678 {
if yyrl4678 <= cap(yyv4678) {
yyv4678 = yyv4678[:yyrl4678]
} else {
yyv4678 = make([]ServiceAccount, yyrl4678)
}
} else {
yyv4678 = make([]ServiceAccount, yyrl4678)
}
yyc4678 = true
yyrr4678 = len(yyv4678)
if yyrg4678 {
copy(yyv4678, yyv24678)
}
} else if yyl4678 != len(yyv4678) {
yyv4678 = yyv4678[:yyl4678]
yyc4678 = true
}
yyj4678 := 0
for ; yyj4678 < yyrr4678; yyj4678++ {
yyh4678.ElemContainerState(yyj4678)
if r.TryDecodeAsNil() {
yyv4678[yyj4678] = ServiceAccount{}
} else {
yyv4679 := &yyv4678[yyj4678]
yyv4679.CodecDecodeSelf(d)
}
}
if yyrt4678 {
for ; yyj4678 < yyl4678; yyj4678++ {
yyv4678 = append(yyv4678, ServiceAccount{})
yyh4678.ElemContainerState(yyj4678)
if r.TryDecodeAsNil() {
yyv4678[yyj4678] = ServiceAccount{}
} else {
yyv4680 := &yyv4678[yyj4678]
yyv4680.CodecDecodeSelf(d)
}
}
}
} else {
yyj4678 := 0
for ; !r.CheckBreak(); yyj4678++ {
if yyj4678 >= len(yyv4678) {
yyv4678 = append(yyv4678, ServiceAccount{}) // var yyz4678 ServiceAccount
yyc4678 = true
}
yyh4678.ElemContainerState(yyj4678)
if yyj4678 < len(yyv4678) {
if r.TryDecodeAsNil() {
yyv4678[yyj4678] = ServiceAccount{}
} else {
yyv4681 := &yyv4678[yyj4678]
yyv4681.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4678 < len(yyv4678) {
yyv4678 = yyv4678[:yyj4678]
yyc4678 = true
} else if yyj4678 == 0 && yyv4678 == nil {
yyv4678 = []ServiceAccount{}
yyc4678 = true
}
}
yyh4678.End()
if yyc4678 {
*v = yyv4678
}
}
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 _, yyv4682 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4683 := &yyv4682
yy4683.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
yyv4684 := *v
yyh4684, yyl4684 := z.DecSliceHelperStart()
var yyc4684 bool
if yyl4684 == 0 {
if yyv4684 == nil {
yyv4684 = []EndpointSubset{}
yyc4684 = true
} else if len(yyv4684) != 0 {
yyv4684 = yyv4684[:0]
yyc4684 = true
}
} else if yyl4684 > 0 {
var yyrr4684, yyrl4684 int
var yyrt4684 bool
if yyl4684 > cap(yyv4684) {
yyrg4684 := len(yyv4684) > 0
yyv24684 := yyv4684
yyrl4684, yyrt4684 = z.DecInferLen(yyl4684, z.DecBasicHandle().MaxInitLen, 72)
if yyrt4684 {
if yyrl4684 <= cap(yyv4684) {
yyv4684 = yyv4684[:yyrl4684]
} else {
yyv4684 = make([]EndpointSubset, yyrl4684)
}
} else {
yyv4684 = make([]EndpointSubset, yyrl4684)
}
yyc4684 = true
yyrr4684 = len(yyv4684)
if yyrg4684 {
copy(yyv4684, yyv24684)
}
} else if yyl4684 != len(yyv4684) {
yyv4684 = yyv4684[:yyl4684]
yyc4684 = true
}
yyj4684 := 0
for ; yyj4684 < yyrr4684; yyj4684++ {
yyh4684.ElemContainerState(yyj4684)
if r.TryDecodeAsNil() {
yyv4684[yyj4684] = EndpointSubset{}
} else {
yyv4685 := &yyv4684[yyj4684]
yyv4685.CodecDecodeSelf(d)
}
}
if yyrt4684 {
for ; yyj4684 < yyl4684; yyj4684++ {
yyv4684 = append(yyv4684, EndpointSubset{})
yyh4684.ElemContainerState(yyj4684)
if r.TryDecodeAsNil() {
yyv4684[yyj4684] = EndpointSubset{}
} else {
yyv4686 := &yyv4684[yyj4684]
yyv4686.CodecDecodeSelf(d)
}
}
}
} else {
yyj4684 := 0
for ; !r.CheckBreak(); yyj4684++ {
if yyj4684 >= len(yyv4684) {
yyv4684 = append(yyv4684, EndpointSubset{}) // var yyz4684 EndpointSubset
yyc4684 = true
}
yyh4684.ElemContainerState(yyj4684)
if yyj4684 < len(yyv4684) {
if r.TryDecodeAsNil() {
yyv4684[yyj4684] = EndpointSubset{}
} else {
yyv4687 := &yyv4684[yyj4684]
yyv4687.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4684 < len(yyv4684) {
yyv4684 = yyv4684[:yyj4684]
yyc4684 = true
} else if yyj4684 == 0 && yyv4684 == nil {
yyv4684 = []EndpointSubset{}
yyc4684 = true
}
}
yyh4684.End()
if yyc4684 {
*v = yyv4684
}
}
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 _, yyv4688 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4689 := &yyv4688
yy4689.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
yyv4690 := *v
yyh4690, yyl4690 := z.DecSliceHelperStart()
var yyc4690 bool
if yyl4690 == 0 {
if yyv4690 == nil {
yyv4690 = []EndpointAddress{}
yyc4690 = true
} else if len(yyv4690) != 0 {
yyv4690 = yyv4690[:0]
yyc4690 = true
}
} else if yyl4690 > 0 {
var yyrr4690, yyrl4690 int
var yyrt4690 bool
if yyl4690 > cap(yyv4690) {
yyrg4690 := len(yyv4690) > 0
yyv24690 := yyv4690
yyrl4690, yyrt4690 = z.DecInferLen(yyl4690, z.DecBasicHandle().MaxInitLen, 48)
if yyrt4690 {
if yyrl4690 <= cap(yyv4690) {
yyv4690 = yyv4690[:yyrl4690]
} else {
yyv4690 = make([]EndpointAddress, yyrl4690)
}
} else {
yyv4690 = make([]EndpointAddress, yyrl4690)
}
yyc4690 = true
yyrr4690 = len(yyv4690)
if yyrg4690 {
copy(yyv4690, yyv24690)
}
} else if yyl4690 != len(yyv4690) {
yyv4690 = yyv4690[:yyl4690]
yyc4690 = true
}
yyj4690 := 0
for ; yyj4690 < yyrr4690; yyj4690++ {
yyh4690.ElemContainerState(yyj4690)
if r.TryDecodeAsNil() {
yyv4690[yyj4690] = EndpointAddress{}
} else {
yyv4691 := &yyv4690[yyj4690]
yyv4691.CodecDecodeSelf(d)
}
}
if yyrt4690 {
for ; yyj4690 < yyl4690; yyj4690++ {
yyv4690 = append(yyv4690, EndpointAddress{})
yyh4690.ElemContainerState(yyj4690)
if r.TryDecodeAsNil() {
yyv4690[yyj4690] = EndpointAddress{}
} else {
yyv4692 := &yyv4690[yyj4690]
yyv4692.CodecDecodeSelf(d)
}
}
}
} else {
yyj4690 := 0
for ; !r.CheckBreak(); yyj4690++ {
if yyj4690 >= len(yyv4690) {
yyv4690 = append(yyv4690, EndpointAddress{}) // var yyz4690 EndpointAddress
yyc4690 = true
}
yyh4690.ElemContainerState(yyj4690)
if yyj4690 < len(yyv4690) {
if r.TryDecodeAsNil() {
yyv4690[yyj4690] = EndpointAddress{}
} else {
yyv4693 := &yyv4690[yyj4690]
yyv4693.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4690 < len(yyv4690) {
yyv4690 = yyv4690[:yyj4690]
yyc4690 = true
} else if yyj4690 == 0 && yyv4690 == nil {
yyv4690 = []EndpointAddress{}
yyc4690 = true
}
}
yyh4690.End()
if yyc4690 {
*v = yyv4690
}
}
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 _, yyv4694 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4695 := &yyv4694
yy4695.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
yyv4696 := *v
yyh4696, yyl4696 := z.DecSliceHelperStart()
var yyc4696 bool
if yyl4696 == 0 {
if yyv4696 == nil {
yyv4696 = []EndpointPort{}
yyc4696 = true
} else if len(yyv4696) != 0 {
yyv4696 = yyv4696[:0]
yyc4696 = true
}
} else if yyl4696 > 0 {
var yyrr4696, yyrl4696 int
var yyrt4696 bool
if yyl4696 > cap(yyv4696) {
yyrg4696 := len(yyv4696) > 0
yyv24696 := yyv4696
yyrl4696, yyrt4696 = z.DecInferLen(yyl4696, z.DecBasicHandle().MaxInitLen, 40)
if yyrt4696 {
if yyrl4696 <= cap(yyv4696) {
yyv4696 = yyv4696[:yyrl4696]
} else {
yyv4696 = make([]EndpointPort, yyrl4696)
}
} else {
yyv4696 = make([]EndpointPort, yyrl4696)
}
yyc4696 = true
yyrr4696 = len(yyv4696)
if yyrg4696 {
copy(yyv4696, yyv24696)
}
} else if yyl4696 != len(yyv4696) {
yyv4696 = yyv4696[:yyl4696]
yyc4696 = true
}
yyj4696 := 0
for ; yyj4696 < yyrr4696; yyj4696++ {
yyh4696.ElemContainerState(yyj4696)
if r.TryDecodeAsNil() {
yyv4696[yyj4696] = EndpointPort{}
} else {
yyv4697 := &yyv4696[yyj4696]
yyv4697.CodecDecodeSelf(d)
}
}
if yyrt4696 {
for ; yyj4696 < yyl4696; yyj4696++ {
yyv4696 = append(yyv4696, EndpointPort{})
yyh4696.ElemContainerState(yyj4696)
if r.TryDecodeAsNil() {
yyv4696[yyj4696] = EndpointPort{}
} else {
yyv4698 := &yyv4696[yyj4696]
yyv4698.CodecDecodeSelf(d)
}
}
}
} else {
yyj4696 := 0
for ; !r.CheckBreak(); yyj4696++ {
if yyj4696 >= len(yyv4696) {
yyv4696 = append(yyv4696, EndpointPort{}) // var yyz4696 EndpointPort
yyc4696 = true
}
yyh4696.ElemContainerState(yyj4696)
if yyj4696 < len(yyv4696) {
if r.TryDecodeAsNil() {
yyv4696[yyj4696] = EndpointPort{}
} else {
yyv4699 := &yyv4696[yyj4696]
yyv4699.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4696 < len(yyv4696) {
yyv4696 = yyv4696[:yyj4696]
yyc4696 = true
} else if yyj4696 == 0 && yyv4696 == nil {
yyv4696 = []EndpointPort{}
yyc4696 = true
}
}
yyh4696.End()
if yyc4696 {
*v = yyv4696
}
}
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 _, yyv4700 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4701 := &yyv4700
yy4701.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
yyv4702 := *v
yyh4702, yyl4702 := z.DecSliceHelperStart()
var yyc4702 bool
if yyl4702 == 0 {
if yyv4702 == nil {
yyv4702 = []Endpoints{}
yyc4702 = true
} else if len(yyv4702) != 0 {
yyv4702 = yyv4702[:0]
yyc4702 = true
}
} else if yyl4702 > 0 {
var yyrr4702, yyrl4702 int
var yyrt4702 bool
if yyl4702 > cap(yyv4702) {
yyrg4702 := len(yyv4702) > 0
yyv24702 := yyv4702
yyrl4702, yyrt4702 = z.DecInferLen(yyl4702, z.DecBasicHandle().MaxInitLen, 280)
if yyrt4702 {
if yyrl4702 <= cap(yyv4702) {
yyv4702 = yyv4702[:yyrl4702]
} else {
yyv4702 = make([]Endpoints, yyrl4702)
}
} else {
yyv4702 = make([]Endpoints, yyrl4702)
}
yyc4702 = true
yyrr4702 = len(yyv4702)
if yyrg4702 {
copy(yyv4702, yyv24702)
}
} else if yyl4702 != len(yyv4702) {
yyv4702 = yyv4702[:yyl4702]
yyc4702 = true
}
yyj4702 := 0
for ; yyj4702 < yyrr4702; yyj4702++ {
yyh4702.ElemContainerState(yyj4702)
if r.TryDecodeAsNil() {
yyv4702[yyj4702] = Endpoints{}
} else {
yyv4703 := &yyv4702[yyj4702]
yyv4703.CodecDecodeSelf(d)
}
}
if yyrt4702 {
for ; yyj4702 < yyl4702; yyj4702++ {
yyv4702 = append(yyv4702, Endpoints{})
yyh4702.ElemContainerState(yyj4702)
if r.TryDecodeAsNil() {
yyv4702[yyj4702] = Endpoints{}
} else {
yyv4704 := &yyv4702[yyj4702]
yyv4704.CodecDecodeSelf(d)
}
}
}
} else {
yyj4702 := 0
for ; !r.CheckBreak(); yyj4702++ {
if yyj4702 >= len(yyv4702) {
yyv4702 = append(yyv4702, Endpoints{}) // var yyz4702 Endpoints
yyc4702 = true
}
yyh4702.ElemContainerState(yyj4702)
if yyj4702 < len(yyv4702) {
if r.TryDecodeAsNil() {
yyv4702[yyj4702] = Endpoints{}
} else {
yyv4705 := &yyv4702[yyj4702]
yyv4705.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4702 < len(yyv4702) {
yyv4702 = yyv4702[:yyj4702]
yyc4702 = true
} else if yyj4702 == 0 && yyv4702 == nil {
yyv4702 = []Endpoints{}
yyc4702 = true
}
}
yyh4702.End()
if yyc4702 {
*v = yyv4702
}
}
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 _, yyv4706 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4707 := &yyv4706
yy4707.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
yyv4708 := *v
yyh4708, yyl4708 := z.DecSliceHelperStart()
var yyc4708 bool
if yyl4708 == 0 {
if yyv4708 == nil {
yyv4708 = []NodeCondition{}
yyc4708 = true
} else if len(yyv4708) != 0 {
yyv4708 = yyv4708[:0]
yyc4708 = true
}
} else if yyl4708 > 0 {
var yyrr4708, yyrl4708 int
var yyrt4708 bool
if yyl4708 > cap(yyv4708) {
yyrg4708 := len(yyv4708) > 0
yyv24708 := yyv4708
yyrl4708, yyrt4708 = z.DecInferLen(yyl4708, z.DecBasicHandle().MaxInitLen, 112)
if yyrt4708 {
if yyrl4708 <= cap(yyv4708) {
yyv4708 = yyv4708[:yyrl4708]
} else {
yyv4708 = make([]NodeCondition, yyrl4708)
}
} else {
yyv4708 = make([]NodeCondition, yyrl4708)
}
yyc4708 = true
yyrr4708 = len(yyv4708)
if yyrg4708 {
copy(yyv4708, yyv24708)
}
} else if yyl4708 != len(yyv4708) {
yyv4708 = yyv4708[:yyl4708]
yyc4708 = true
}
yyj4708 := 0
for ; yyj4708 < yyrr4708; yyj4708++ {
yyh4708.ElemContainerState(yyj4708)
if r.TryDecodeAsNil() {
yyv4708[yyj4708] = NodeCondition{}
} else {
yyv4709 := &yyv4708[yyj4708]
yyv4709.CodecDecodeSelf(d)
}
}
if yyrt4708 {
for ; yyj4708 < yyl4708; yyj4708++ {
yyv4708 = append(yyv4708, NodeCondition{})
yyh4708.ElemContainerState(yyj4708)
if r.TryDecodeAsNil() {
yyv4708[yyj4708] = NodeCondition{}
} else {
yyv4710 := &yyv4708[yyj4708]
yyv4710.CodecDecodeSelf(d)
}
}
}
} else {
yyj4708 := 0
for ; !r.CheckBreak(); yyj4708++ {
if yyj4708 >= len(yyv4708) {
yyv4708 = append(yyv4708, NodeCondition{}) // var yyz4708 NodeCondition
yyc4708 = true
}
yyh4708.ElemContainerState(yyj4708)
if yyj4708 < len(yyv4708) {
if r.TryDecodeAsNil() {
yyv4708[yyj4708] = NodeCondition{}
} else {
yyv4711 := &yyv4708[yyj4708]
yyv4711.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4708 < len(yyv4708) {
yyv4708 = yyv4708[:yyj4708]
yyc4708 = true
} else if yyj4708 == 0 && yyv4708 == nil {
yyv4708 = []NodeCondition{}
yyc4708 = true
}
}
yyh4708.End()
if yyc4708 {
*v = yyv4708
}
}
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 _, yyv4712 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4713 := &yyv4712
yy4713.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
yyv4714 := *v
yyh4714, yyl4714 := z.DecSliceHelperStart()
var yyc4714 bool
if yyl4714 == 0 {
if yyv4714 == nil {
yyv4714 = []NodeAddress{}
yyc4714 = true
} else if len(yyv4714) != 0 {
yyv4714 = yyv4714[:0]
yyc4714 = true
}
} else if yyl4714 > 0 {
var yyrr4714, yyrl4714 int
var yyrt4714 bool
if yyl4714 > cap(yyv4714) {
yyrg4714 := len(yyv4714) > 0
yyv24714 := yyv4714
yyrl4714, yyrt4714 = z.DecInferLen(yyl4714, z.DecBasicHandle().MaxInitLen, 32)
if yyrt4714 {
if yyrl4714 <= cap(yyv4714) {
yyv4714 = yyv4714[:yyrl4714]
} else {
yyv4714 = make([]NodeAddress, yyrl4714)
}
} else {
yyv4714 = make([]NodeAddress, yyrl4714)
}
yyc4714 = true
yyrr4714 = len(yyv4714)
if yyrg4714 {
copy(yyv4714, yyv24714)
}
} else if yyl4714 != len(yyv4714) {
yyv4714 = yyv4714[:yyl4714]
yyc4714 = true
}
yyj4714 := 0
for ; yyj4714 < yyrr4714; yyj4714++ {
yyh4714.ElemContainerState(yyj4714)
if r.TryDecodeAsNil() {
yyv4714[yyj4714] = NodeAddress{}
} else {
yyv4715 := &yyv4714[yyj4714]
yyv4715.CodecDecodeSelf(d)
}
}
if yyrt4714 {
for ; yyj4714 < yyl4714; yyj4714++ {
yyv4714 = append(yyv4714, NodeAddress{})
yyh4714.ElemContainerState(yyj4714)
if r.TryDecodeAsNil() {
yyv4714[yyj4714] = NodeAddress{}
} else {
yyv4716 := &yyv4714[yyj4714]
yyv4716.CodecDecodeSelf(d)
}
}
}
} else {
yyj4714 := 0
for ; !r.CheckBreak(); yyj4714++ {
if yyj4714 >= len(yyv4714) {
yyv4714 = append(yyv4714, NodeAddress{}) // var yyz4714 NodeAddress
yyc4714 = true
}
yyh4714.ElemContainerState(yyj4714)
if yyj4714 < len(yyv4714) {
if r.TryDecodeAsNil() {
yyv4714[yyj4714] = NodeAddress{}
} else {
yyv4717 := &yyv4714[yyj4714]
yyv4717.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4714 < len(yyv4714) {
yyv4714 = yyv4714[:yyj4714]
yyc4714 = true
} else if yyj4714 == 0 && yyv4714 == nil {
yyv4714 = []NodeAddress{}
yyc4714 = true
}
}
yyh4714.End()
if yyc4714 {
*v = yyv4714
}
}
func (x codecSelfer1234) encSliceContainerImage(v []ContainerImage, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4718 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4719 := &yyv4718
yy4719.CodecEncodeSelf(e)
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceContainerImage(v *[]ContainerImage, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4720 := *v
yyh4720, yyl4720 := z.DecSliceHelperStart()
var yyc4720 bool
if yyl4720 == 0 {
if yyv4720 == nil {
yyv4720 = []ContainerImage{}
yyc4720 = true
} else if len(yyv4720) != 0 {
yyv4720 = yyv4720[:0]
yyc4720 = true
}
} else if yyl4720 > 0 {
var yyrr4720, yyrl4720 int
var yyrt4720 bool
if yyl4720 > cap(yyv4720) {
yyrg4720 := len(yyv4720) > 0
yyv24720 := yyv4720
yyrl4720, yyrt4720 = z.DecInferLen(yyl4720, z.DecBasicHandle().MaxInitLen, 32)
if yyrt4720 {
if yyrl4720 <= cap(yyv4720) {
yyv4720 = yyv4720[:yyrl4720]
} else {
yyv4720 = make([]ContainerImage, yyrl4720)
}
} else {
yyv4720 = make([]ContainerImage, yyrl4720)
}
yyc4720 = true
yyrr4720 = len(yyv4720)
if yyrg4720 {
copy(yyv4720, yyv24720)
}
} else if yyl4720 != len(yyv4720) {
yyv4720 = yyv4720[:yyl4720]
yyc4720 = true
}
yyj4720 := 0
for ; yyj4720 < yyrr4720; yyj4720++ {
yyh4720.ElemContainerState(yyj4720)
if r.TryDecodeAsNil() {
yyv4720[yyj4720] = ContainerImage{}
} else {
yyv4721 := &yyv4720[yyj4720]
yyv4721.CodecDecodeSelf(d)
}
}
if yyrt4720 {
for ; yyj4720 < yyl4720; yyj4720++ {
yyv4720 = append(yyv4720, ContainerImage{})
yyh4720.ElemContainerState(yyj4720)
if r.TryDecodeAsNil() {
yyv4720[yyj4720] = ContainerImage{}
} else {
yyv4722 := &yyv4720[yyj4720]
yyv4722.CodecDecodeSelf(d)
}
}
}
} else {
yyj4720 := 0
for ; !r.CheckBreak(); yyj4720++ {
if yyj4720 >= len(yyv4720) {
yyv4720 = append(yyv4720, ContainerImage{}) // var yyz4720 ContainerImage
yyc4720 = true
}
yyh4720.ElemContainerState(yyj4720)
if yyj4720 < len(yyv4720) {
if r.TryDecodeAsNil() {
yyv4720[yyj4720] = ContainerImage{}
} else {
yyv4723 := &yyv4720[yyj4720]
yyv4723.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4720 < len(yyv4720) {
yyv4720 = yyv4720[:yyj4720]
yyc4720 = true
} else if yyj4720 == 0 && yyv4720 == nil {
yyv4720 = []ContainerImage{}
yyc4720 = true
}
}
yyh4720.End()
if yyc4720 {
*v = yyv4720
}
}
func (x codecSelfer1234) encSliceUniqueVolumeName(v []UniqueVolumeName, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4724 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yyv4724.CodecEncodeSelf(e)
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceUniqueVolumeName(v *[]UniqueVolumeName, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4725 := *v
yyh4725, yyl4725 := z.DecSliceHelperStart()
var yyc4725 bool
if yyl4725 == 0 {
if yyv4725 == nil {
yyv4725 = []UniqueVolumeName{}
yyc4725 = true
} else if len(yyv4725) != 0 {
yyv4725 = yyv4725[:0]
yyc4725 = true
}
} else if yyl4725 > 0 {
var yyrr4725, yyrl4725 int
var yyrt4725 bool
if yyl4725 > cap(yyv4725) {
yyrl4725, yyrt4725 = z.DecInferLen(yyl4725, z.DecBasicHandle().MaxInitLen, 16)
if yyrt4725 {
if yyrl4725 <= cap(yyv4725) {
yyv4725 = yyv4725[:yyrl4725]
} else {
yyv4725 = make([]UniqueVolumeName, yyrl4725)
}
} else {
yyv4725 = make([]UniqueVolumeName, yyrl4725)
}
yyc4725 = true
yyrr4725 = len(yyv4725)
} else if yyl4725 != len(yyv4725) {
yyv4725 = yyv4725[:yyl4725]
yyc4725 = true
}
yyj4725 := 0
for ; yyj4725 < yyrr4725; yyj4725++ {
yyh4725.ElemContainerState(yyj4725)
if r.TryDecodeAsNil() {
yyv4725[yyj4725] = ""
} else {
yyv4725[yyj4725] = UniqueVolumeName(r.DecodeString())
}
}
if yyrt4725 {
for ; yyj4725 < yyl4725; yyj4725++ {
yyv4725 = append(yyv4725, "")
yyh4725.ElemContainerState(yyj4725)
if r.TryDecodeAsNil() {
yyv4725[yyj4725] = ""
} else {
yyv4725[yyj4725] = UniqueVolumeName(r.DecodeString())
}
}
}
} else {
yyj4725 := 0
for ; !r.CheckBreak(); yyj4725++ {
if yyj4725 >= len(yyv4725) {
yyv4725 = append(yyv4725, "") // var yyz4725 UniqueVolumeName
yyc4725 = true
}
yyh4725.ElemContainerState(yyj4725)
if yyj4725 < len(yyv4725) {
if r.TryDecodeAsNil() {
yyv4725[yyj4725] = ""
} else {
yyv4725[yyj4725] = UniqueVolumeName(r.DecodeString())
}
} else {
z.DecSwallow()
}
}
if yyj4725 < len(yyv4725) {
yyv4725 = yyv4725[:yyj4725]
yyc4725 = true
} else if yyj4725 == 0 && yyv4725 == nil {
yyv4725 = []UniqueVolumeName{}
yyc4725 = true
}
}
yyh4725.End()
if yyc4725 {
*v = yyv4725
}
}
func (x codecSelfer1234) encSliceAttachedVolume(v []AttachedVolume, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4729 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4730 := &yyv4729
yy4730.CodecEncodeSelf(e)
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4731 := *v
yyh4731, yyl4731 := z.DecSliceHelperStart()
var yyc4731 bool
if yyl4731 == 0 {
if yyv4731 == nil {
yyv4731 = []AttachedVolume{}
yyc4731 = true
} else if len(yyv4731) != 0 {
yyv4731 = yyv4731[:0]
yyc4731 = true
}
} else if yyl4731 > 0 {
var yyrr4731, yyrl4731 int
var yyrt4731 bool
if yyl4731 > cap(yyv4731) {
yyrg4731 := len(yyv4731) > 0
yyv24731 := yyv4731
yyrl4731, yyrt4731 = z.DecInferLen(yyl4731, z.DecBasicHandle().MaxInitLen, 32)
if yyrt4731 {
if yyrl4731 <= cap(yyv4731) {
yyv4731 = yyv4731[:yyrl4731]
} else {
yyv4731 = make([]AttachedVolume, yyrl4731)
}
} else {
yyv4731 = make([]AttachedVolume, yyrl4731)
}
yyc4731 = true
yyrr4731 = len(yyv4731)
if yyrg4731 {
copy(yyv4731, yyv24731)
}
} else if yyl4731 != len(yyv4731) {
yyv4731 = yyv4731[:yyl4731]
yyc4731 = true
}
yyj4731 := 0
for ; yyj4731 < yyrr4731; yyj4731++ {
yyh4731.ElemContainerState(yyj4731)
if r.TryDecodeAsNil() {
yyv4731[yyj4731] = AttachedVolume{}
} else {
yyv4732 := &yyv4731[yyj4731]
yyv4732.CodecDecodeSelf(d)
}
}
if yyrt4731 {
for ; yyj4731 < yyl4731; yyj4731++ {
yyv4731 = append(yyv4731, AttachedVolume{})
yyh4731.ElemContainerState(yyj4731)
if r.TryDecodeAsNil() {
yyv4731[yyj4731] = AttachedVolume{}
} else {
yyv4733 := &yyv4731[yyj4731]
yyv4733.CodecDecodeSelf(d)
}
}
}
} else {
yyj4731 := 0
for ; !r.CheckBreak(); yyj4731++ {
if yyj4731 >= len(yyv4731) {
yyv4731 = append(yyv4731, AttachedVolume{}) // var yyz4731 AttachedVolume
yyc4731 = true
}
yyh4731.ElemContainerState(yyj4731)
if yyj4731 < len(yyv4731) {
if r.TryDecodeAsNil() {
yyv4731[yyj4731] = AttachedVolume{}
} else {
yyv4734 := &yyv4731[yyj4731]
yyv4734.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4731 < len(yyv4731) {
yyv4731 = yyv4731[:yyj4731]
yyc4731 = true
} else if yyj4731 == 0 && yyv4731 == nil {
yyv4731 = []AttachedVolume{}
yyc4731 = true
}
}
yyh4731.End()
if yyc4731 {
*v = yyv4731
}
}
func (x codecSelfer1234) encSlicePreferAvoidPodsEntry(v []PreferAvoidPodsEntry, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4735 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4736 := &yyv4735
yy4736.CodecEncodeSelf(e)
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4737 := *v
yyh4737, yyl4737 := z.DecSliceHelperStart()
var yyc4737 bool
if yyl4737 == 0 {
if yyv4737 == nil {
yyv4737 = []PreferAvoidPodsEntry{}
yyc4737 = true
} else if len(yyv4737) != 0 {
yyv4737 = yyv4737[:0]
yyc4737 = true
}
} else if yyl4737 > 0 {
var yyrr4737, yyrl4737 int
var yyrt4737 bool
if yyl4737 > cap(yyv4737) {
yyrg4737 := len(yyv4737) > 0
yyv24737 := yyv4737
yyrl4737, yyrt4737 = z.DecInferLen(yyl4737, z.DecBasicHandle().MaxInitLen, 64)
if yyrt4737 {
if yyrl4737 <= cap(yyv4737) {
yyv4737 = yyv4737[:yyrl4737]
} else {
yyv4737 = make([]PreferAvoidPodsEntry, yyrl4737)
}
} else {
yyv4737 = make([]PreferAvoidPodsEntry, yyrl4737)
}
yyc4737 = true
yyrr4737 = len(yyv4737)
if yyrg4737 {
copy(yyv4737, yyv24737)
}
} else if yyl4737 != len(yyv4737) {
yyv4737 = yyv4737[:yyl4737]
yyc4737 = true
}
yyj4737 := 0
for ; yyj4737 < yyrr4737; yyj4737++ {
yyh4737.ElemContainerState(yyj4737)
if r.TryDecodeAsNil() {
yyv4737[yyj4737] = PreferAvoidPodsEntry{}
} else {
yyv4738 := &yyv4737[yyj4737]
yyv4738.CodecDecodeSelf(d)
}
}
if yyrt4737 {
for ; yyj4737 < yyl4737; yyj4737++ {
yyv4737 = append(yyv4737, PreferAvoidPodsEntry{})
yyh4737.ElemContainerState(yyj4737)
if r.TryDecodeAsNil() {
yyv4737[yyj4737] = PreferAvoidPodsEntry{}
} else {
yyv4739 := &yyv4737[yyj4737]
yyv4739.CodecDecodeSelf(d)
}
}
}
} else {
yyj4737 := 0
for ; !r.CheckBreak(); yyj4737++ {
if yyj4737 >= len(yyv4737) {
yyv4737 = append(yyv4737, PreferAvoidPodsEntry{}) // var yyz4737 PreferAvoidPodsEntry
yyc4737 = true
}
yyh4737.ElemContainerState(yyj4737)
if yyj4737 < len(yyv4737) {
if r.TryDecodeAsNil() {
yyv4737[yyj4737] = PreferAvoidPodsEntry{}
} else {
yyv4740 := &yyv4737[yyj4737]
yyv4740.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4737 < len(yyv4737) {
yyv4737 = yyv4737[:yyj4737]
yyc4737 = true
} else if yyj4737 == 0 && yyv4737 == nil {
yyv4737 = []PreferAvoidPodsEntry{}
yyc4737 = true
}
}
yyh4737.End()
if yyc4737 {
*v = yyv4737
}
}
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 yyk4741, yyv4741 := range v {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
yyk4741.CodecEncodeSelf(e)
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4742 := &yyv4741
yym4743 := z.EncBinary()
_ = yym4743
if false {
} else if z.HasExtensions() && z.EncExt(yy4742) {
} else if !yym4743 && z.IsJSONHandle() {
z.EncJSONMarshal(yy4742)
} else {
z.EncFallback(yy4742)
}
}
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4744 := *v
yyl4744 := r.ReadMapStart()
yybh4744 := z.DecBasicHandle()
if yyv4744 == nil {
yyrl4744, _ := z.DecInferLen(yyl4744, yybh4744.MaxInitLen, 72)
yyv4744 = make(map[ResourceName]pkg3_resource.Quantity, yyrl4744)
*v = yyv4744
}
var yymk4744 ResourceName
var yymv4744 pkg3_resource.Quantity
var yymg4744 bool
if yybh4744.MapValueReset {
yymg4744 = true
}
if yyl4744 > 0 {
for yyj4744 := 0; yyj4744 < yyl4744; yyj4744++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() {
yymk4744 = ""
} else {
yymk4744 = ResourceName(r.DecodeString())
}
if yymg4744 {
yymv4744 = yyv4744[yymk4744]
} else {
yymv4744 = pkg3_resource.Quantity{}
}
z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() {
yymv4744 = pkg3_resource.Quantity{}
} else {
yyv4746 := &yymv4744
yym4747 := z.DecBinary()
_ = yym4747
if false {
} else if z.HasExtensions() && z.DecExt(yyv4746) {
} else if !yym4747 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv4746)
} else {
z.DecFallback(yyv4746, false)
}
}
if yyv4744 != nil {
yyv4744[yymk4744] = yymv4744
}
}
} else if yyl4744 < 0 {
for yyj4744 := 0; !r.CheckBreak(); yyj4744++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() {
yymk4744 = ""
} else {
yymk4744 = ResourceName(r.DecodeString())
}
if yymg4744 {
yymv4744 = yyv4744[yymk4744]
} else {
yymv4744 = pkg3_resource.Quantity{}
}
z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() {
yymv4744 = pkg3_resource.Quantity{}
} else {
yyv4749 := &yymv4744
yym4750 := z.DecBinary()
_ = yym4750
if false {
} else if z.HasExtensions() && z.DecExt(yyv4749) {
} else if !yym4750 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv4749)
} else {
z.DecFallback(yyv4749, false)
}
}
if yyv4744 != nil {
yyv4744[yymk4744] = yymv4744
}
}
} // 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 _, yyv4751 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4752 := &yyv4751
yy4752.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
yyv4753 := *v
yyh4753, yyl4753 := z.DecSliceHelperStart()
var yyc4753 bool
if yyl4753 == 0 {
if yyv4753 == nil {
yyv4753 = []Node{}
yyc4753 = true
} else if len(yyv4753) != 0 {
yyv4753 = yyv4753[:0]
yyc4753 = true
}
} else if yyl4753 > 0 {
var yyrr4753, yyrl4753 int
var yyrt4753 bool
if yyl4753 > cap(yyv4753) {
yyrg4753 := len(yyv4753) > 0
yyv24753 := yyv4753
yyrl4753, yyrt4753 = z.DecInferLen(yyl4753, z.DecBasicHandle().MaxInitLen, 632)
if yyrt4753 {
if yyrl4753 <= cap(yyv4753) {
yyv4753 = yyv4753[:yyrl4753]
} else {
yyv4753 = make([]Node, yyrl4753)
}
} else {
yyv4753 = make([]Node, yyrl4753)
}
yyc4753 = true
yyrr4753 = len(yyv4753)
if yyrg4753 {
copy(yyv4753, yyv24753)
}
} else if yyl4753 != len(yyv4753) {
yyv4753 = yyv4753[:yyl4753]
yyc4753 = true
}
yyj4753 := 0
for ; yyj4753 < yyrr4753; yyj4753++ {
yyh4753.ElemContainerState(yyj4753)
if r.TryDecodeAsNil() {
yyv4753[yyj4753] = Node{}
} else {
yyv4754 := &yyv4753[yyj4753]
yyv4754.CodecDecodeSelf(d)
}
}
if yyrt4753 {
for ; yyj4753 < yyl4753; yyj4753++ {
yyv4753 = append(yyv4753, Node{})
yyh4753.ElemContainerState(yyj4753)
if r.TryDecodeAsNil() {
yyv4753[yyj4753] = Node{}
} else {
yyv4755 := &yyv4753[yyj4753]
yyv4755.CodecDecodeSelf(d)
}
}
}
} else {
yyj4753 := 0
for ; !r.CheckBreak(); yyj4753++ {
if yyj4753 >= len(yyv4753) {
yyv4753 = append(yyv4753, Node{}) // var yyz4753 Node
yyc4753 = true
}
yyh4753.ElemContainerState(yyj4753)
if yyj4753 < len(yyv4753) {
if r.TryDecodeAsNil() {
yyv4753[yyj4753] = Node{}
} else {
yyv4756 := &yyv4753[yyj4753]
yyv4756.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4753 < len(yyv4753) {
yyv4753 = yyv4753[:yyj4753]
yyc4753 = true
} else if yyj4753 == 0 && yyv4753 == nil {
yyv4753 = []Node{}
yyc4753 = true
}
}
yyh4753.End()
if yyc4753 {
*v = yyv4753
}
}
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 _, yyv4757 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yyv4757.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
yyv4758 := *v
yyh4758, yyl4758 := z.DecSliceHelperStart()
var yyc4758 bool
if yyl4758 == 0 {
if yyv4758 == nil {
yyv4758 = []FinalizerName{}
yyc4758 = true
} else if len(yyv4758) != 0 {
yyv4758 = yyv4758[:0]
yyc4758 = true
}
} else if yyl4758 > 0 {
var yyrr4758, yyrl4758 int
var yyrt4758 bool
if yyl4758 > cap(yyv4758) {
yyrl4758, yyrt4758 = z.DecInferLen(yyl4758, z.DecBasicHandle().MaxInitLen, 16)
if yyrt4758 {
if yyrl4758 <= cap(yyv4758) {
yyv4758 = yyv4758[:yyrl4758]
} else {
yyv4758 = make([]FinalizerName, yyrl4758)
}
} else {
yyv4758 = make([]FinalizerName, yyrl4758)
}
yyc4758 = true
yyrr4758 = len(yyv4758)
} else if yyl4758 != len(yyv4758) {
yyv4758 = yyv4758[:yyl4758]
yyc4758 = true
}
yyj4758 := 0
for ; yyj4758 < yyrr4758; yyj4758++ {
yyh4758.ElemContainerState(yyj4758)
if r.TryDecodeAsNil() {
yyv4758[yyj4758] = ""
} else {
yyv4758[yyj4758] = FinalizerName(r.DecodeString())
}
}
if yyrt4758 {
for ; yyj4758 < yyl4758; yyj4758++ {
yyv4758 = append(yyv4758, "")
yyh4758.ElemContainerState(yyj4758)
if r.TryDecodeAsNil() {
yyv4758[yyj4758] = ""
} else {
yyv4758[yyj4758] = FinalizerName(r.DecodeString())
}
}
}
} else {
yyj4758 := 0
for ; !r.CheckBreak(); yyj4758++ {
if yyj4758 >= len(yyv4758) {
yyv4758 = append(yyv4758, "") // var yyz4758 FinalizerName
yyc4758 = true
}
yyh4758.ElemContainerState(yyj4758)
if yyj4758 < len(yyv4758) {
if r.TryDecodeAsNil() {
yyv4758[yyj4758] = ""
} else {
yyv4758[yyj4758] = FinalizerName(r.DecodeString())
}
} else {
z.DecSwallow()
}
}
if yyj4758 < len(yyv4758) {
yyv4758 = yyv4758[:yyj4758]
yyc4758 = true
} else if yyj4758 == 0 && yyv4758 == nil {
yyv4758 = []FinalizerName{}
yyc4758 = true
}
}
yyh4758.End()
if yyc4758 {
*v = yyv4758
}
}
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 _, yyv4762 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4763 := &yyv4762
yy4763.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
yyv4764 := *v
yyh4764, yyl4764 := z.DecSliceHelperStart()
var yyc4764 bool
if yyl4764 == 0 {
if yyv4764 == nil {
yyv4764 = []Namespace{}
yyc4764 = true
} else if len(yyv4764) != 0 {
yyv4764 = yyv4764[:0]
yyc4764 = true
}
} else if yyl4764 > 0 {
var yyrr4764, yyrl4764 int
var yyrt4764 bool
if yyl4764 > cap(yyv4764) {
yyrg4764 := len(yyv4764) > 0
yyv24764 := yyv4764
yyrl4764, yyrt4764 = z.DecInferLen(yyl4764, z.DecBasicHandle().MaxInitLen, 296)
if yyrt4764 {
if yyrl4764 <= cap(yyv4764) {
yyv4764 = yyv4764[:yyrl4764]
} else {
yyv4764 = make([]Namespace, yyrl4764)
}
} else {
yyv4764 = make([]Namespace, yyrl4764)
}
yyc4764 = true
yyrr4764 = len(yyv4764)
if yyrg4764 {
copy(yyv4764, yyv24764)
}
} else if yyl4764 != len(yyv4764) {
yyv4764 = yyv4764[:yyl4764]
yyc4764 = true
}
yyj4764 := 0
for ; yyj4764 < yyrr4764; yyj4764++ {
yyh4764.ElemContainerState(yyj4764)
if r.TryDecodeAsNil() {
yyv4764[yyj4764] = Namespace{}
} else {
yyv4765 := &yyv4764[yyj4764]
yyv4765.CodecDecodeSelf(d)
}
}
if yyrt4764 {
for ; yyj4764 < yyl4764; yyj4764++ {
yyv4764 = append(yyv4764, Namespace{})
yyh4764.ElemContainerState(yyj4764)
if r.TryDecodeAsNil() {
yyv4764[yyj4764] = Namespace{}
} else {
yyv4766 := &yyv4764[yyj4764]
yyv4766.CodecDecodeSelf(d)
}
}
}
} else {
yyj4764 := 0
for ; !r.CheckBreak(); yyj4764++ {
if yyj4764 >= len(yyv4764) {
yyv4764 = append(yyv4764, Namespace{}) // var yyz4764 Namespace
yyc4764 = true
}
yyh4764.ElemContainerState(yyj4764)
if yyj4764 < len(yyv4764) {
if r.TryDecodeAsNil() {
yyv4764[yyj4764] = Namespace{}
} else {
yyv4767 := &yyv4764[yyj4764]
yyv4767.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4764 < len(yyv4764) {
yyv4764 = yyv4764[:yyj4764]
yyc4764 = true
} else if yyj4764 == 0 && yyv4764 == nil {
yyv4764 = []Namespace{}
yyc4764 = true
}
}
yyh4764.End()
if yyc4764 {
*v = yyv4764
}
}
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 _, yyv4768 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4769 := &yyv4768
yy4769.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
yyv4770 := *v
yyh4770, yyl4770 := z.DecSliceHelperStart()
var yyc4770 bool
if yyl4770 == 0 {
if yyv4770 == nil {
yyv4770 = []Event{}
yyc4770 = true
} else if len(yyv4770) != 0 {
yyv4770 = yyv4770[:0]
yyc4770 = true
}
} else if yyl4770 > 0 {
var yyrr4770, yyrl4770 int
var yyrt4770 bool
if yyl4770 > cap(yyv4770) {
yyrg4770 := len(yyv4770) > 0
yyv24770 := yyv4770
yyrl4770, yyrt4770 = z.DecInferLen(yyl4770, z.DecBasicHandle().MaxInitLen, 504)
if yyrt4770 {
if yyrl4770 <= cap(yyv4770) {
yyv4770 = yyv4770[:yyrl4770]
} else {
yyv4770 = make([]Event, yyrl4770)
}
} else {
yyv4770 = make([]Event, yyrl4770)
}
yyc4770 = true
yyrr4770 = len(yyv4770)
if yyrg4770 {
copy(yyv4770, yyv24770)
}
} else if yyl4770 != len(yyv4770) {
yyv4770 = yyv4770[:yyl4770]
yyc4770 = true
}
yyj4770 := 0
for ; yyj4770 < yyrr4770; yyj4770++ {
yyh4770.ElemContainerState(yyj4770)
if r.TryDecodeAsNil() {
yyv4770[yyj4770] = Event{}
} else {
yyv4771 := &yyv4770[yyj4770]
yyv4771.CodecDecodeSelf(d)
}
}
if yyrt4770 {
for ; yyj4770 < yyl4770; yyj4770++ {
yyv4770 = append(yyv4770, Event{})
yyh4770.ElemContainerState(yyj4770)
if r.TryDecodeAsNil() {
yyv4770[yyj4770] = Event{}
} else {
yyv4772 := &yyv4770[yyj4770]
yyv4772.CodecDecodeSelf(d)
}
}
}
} else {
yyj4770 := 0
for ; !r.CheckBreak(); yyj4770++ {
if yyj4770 >= len(yyv4770) {
yyv4770 = append(yyv4770, Event{}) // var yyz4770 Event
yyc4770 = true
}
yyh4770.ElemContainerState(yyj4770)
if yyj4770 < len(yyv4770) {
if r.TryDecodeAsNil() {
yyv4770[yyj4770] = Event{}
} else {
yyv4773 := &yyv4770[yyj4770]
yyv4773.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4770 < len(yyv4770) {
yyv4770 = yyv4770[:yyj4770]
yyc4770 = true
} else if yyj4770 == 0 && yyv4770 == nil {
yyv4770 = []Event{}
yyc4770 = true
}
}
yyh4770.End()
if yyc4770 {
*v = yyv4770
}
}
func (x codecSelfer1234) encSliceruntime_Object(v []pkg7_runtime.Object, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4774 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyv4774 == nil {
r.EncodeNil()
} else {
yym4775 := z.EncBinary()
_ = yym4775
if false {
} else if z.HasExtensions() && z.EncExt(yyv4774) {
} else {
z.EncFallback(yyv4774)
}
}
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceruntime_Object(v *[]pkg7_runtime.Object, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4776 := *v
yyh4776, yyl4776 := z.DecSliceHelperStart()
var yyc4776 bool
if yyl4776 == 0 {
if yyv4776 == nil {
yyv4776 = []pkg7_runtime.Object{}
yyc4776 = true
} else if len(yyv4776) != 0 {
yyv4776 = yyv4776[:0]
yyc4776 = true
}
} else if yyl4776 > 0 {
var yyrr4776, yyrl4776 int
var yyrt4776 bool
if yyl4776 > cap(yyv4776) {
yyrg4776 := len(yyv4776) > 0
yyv24776 := yyv4776
yyrl4776, yyrt4776 = z.DecInferLen(yyl4776, z.DecBasicHandle().MaxInitLen, 16)
if yyrt4776 {
if yyrl4776 <= cap(yyv4776) {
yyv4776 = yyv4776[:yyrl4776]
} else {
yyv4776 = make([]pkg7_runtime.Object, yyrl4776)
}
} else {
yyv4776 = make([]pkg7_runtime.Object, yyrl4776)
}
yyc4776 = true
yyrr4776 = len(yyv4776)
if yyrg4776 {
copy(yyv4776, yyv24776)
}
} else if yyl4776 != len(yyv4776) {
yyv4776 = yyv4776[:yyl4776]
yyc4776 = true
}
yyj4776 := 0
for ; yyj4776 < yyrr4776; yyj4776++ {
yyh4776.ElemContainerState(yyj4776)
if r.TryDecodeAsNil() {
yyv4776[yyj4776] = nil
} else {
yyv4777 := &yyv4776[yyj4776]
yym4778 := z.DecBinary()
_ = yym4778
if false {
} else if z.HasExtensions() && z.DecExt(yyv4777) {
} else {
z.DecFallback(yyv4777, true)
}
}
}
if yyrt4776 {
for ; yyj4776 < yyl4776; yyj4776++ {
yyv4776 = append(yyv4776, nil)
yyh4776.ElemContainerState(yyj4776)
if r.TryDecodeAsNil() {
yyv4776[yyj4776] = nil
} else {
yyv4779 := &yyv4776[yyj4776]
yym4780 := z.DecBinary()
_ = yym4780
if false {
} else if z.HasExtensions() && z.DecExt(yyv4779) {
} else {
z.DecFallback(yyv4779, true)
}
}
}
}
} else {
yyj4776 := 0
for ; !r.CheckBreak(); yyj4776++ {
if yyj4776 >= len(yyv4776) {
yyv4776 = append(yyv4776, nil) // var yyz4776 pkg7_runtime.Object
yyc4776 = true
}
yyh4776.ElemContainerState(yyj4776)
if yyj4776 < len(yyv4776) {
if r.TryDecodeAsNil() {
yyv4776[yyj4776] = nil
} else {
yyv4781 := &yyv4776[yyj4776]
yym4782 := z.DecBinary()
_ = yym4782
if false {
} else if z.HasExtensions() && z.DecExt(yyv4781) {
} else {
z.DecFallback(yyv4781, true)
}
}
} else {
z.DecSwallow()
}
}
if yyj4776 < len(yyv4776) {
yyv4776 = yyv4776[:yyj4776]
yyc4776 = true
} else if yyj4776 == 0 && yyv4776 == nil {
yyv4776 = []pkg7_runtime.Object{}
yyc4776 = true
}
}
yyh4776.End()
if yyc4776 {
*v = yyv4776
}
}
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 _, yyv4783 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4784 := &yyv4783
yy4784.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
yyv4785 := *v
yyh4785, yyl4785 := z.DecSliceHelperStart()
var yyc4785 bool
if yyl4785 == 0 {
if yyv4785 == nil {
yyv4785 = []LimitRangeItem{}
yyc4785 = true
} else if len(yyv4785) != 0 {
yyv4785 = yyv4785[:0]
yyc4785 = true
}
} else if yyl4785 > 0 {
var yyrr4785, yyrl4785 int
var yyrt4785 bool
if yyl4785 > cap(yyv4785) {
yyrg4785 := len(yyv4785) > 0
yyv24785 := yyv4785
yyrl4785, yyrt4785 = z.DecInferLen(yyl4785, z.DecBasicHandle().MaxInitLen, 56)
if yyrt4785 {
if yyrl4785 <= cap(yyv4785) {
yyv4785 = yyv4785[:yyrl4785]
} else {
yyv4785 = make([]LimitRangeItem, yyrl4785)
}
} else {
yyv4785 = make([]LimitRangeItem, yyrl4785)
}
yyc4785 = true
yyrr4785 = len(yyv4785)
if yyrg4785 {
copy(yyv4785, yyv24785)
}
} else if yyl4785 != len(yyv4785) {
yyv4785 = yyv4785[:yyl4785]
yyc4785 = true
}
yyj4785 := 0
for ; yyj4785 < yyrr4785; yyj4785++ {
yyh4785.ElemContainerState(yyj4785)
if r.TryDecodeAsNil() {
yyv4785[yyj4785] = LimitRangeItem{}
} else {
yyv4786 := &yyv4785[yyj4785]
yyv4786.CodecDecodeSelf(d)
}
}
if yyrt4785 {
for ; yyj4785 < yyl4785; yyj4785++ {
yyv4785 = append(yyv4785, LimitRangeItem{})
yyh4785.ElemContainerState(yyj4785)
if r.TryDecodeAsNil() {
yyv4785[yyj4785] = LimitRangeItem{}
} else {
yyv4787 := &yyv4785[yyj4785]
yyv4787.CodecDecodeSelf(d)
}
}
}
} else {
yyj4785 := 0
for ; !r.CheckBreak(); yyj4785++ {
if yyj4785 >= len(yyv4785) {
yyv4785 = append(yyv4785, LimitRangeItem{}) // var yyz4785 LimitRangeItem
yyc4785 = true
}
yyh4785.ElemContainerState(yyj4785)
if yyj4785 < len(yyv4785) {
if r.TryDecodeAsNil() {
yyv4785[yyj4785] = LimitRangeItem{}
} else {
yyv4788 := &yyv4785[yyj4785]
yyv4788.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4785 < len(yyv4785) {
yyv4785 = yyv4785[:yyj4785]
yyc4785 = true
} else if yyj4785 == 0 && yyv4785 == nil {
yyv4785 = []LimitRangeItem{}
yyc4785 = true
}
}
yyh4785.End()
if yyc4785 {
*v = yyv4785
}
}
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 _, yyv4789 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4790 := &yyv4789
yy4790.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
yyv4791 := *v
yyh4791, yyl4791 := z.DecSliceHelperStart()
var yyc4791 bool
if yyl4791 == 0 {
if yyv4791 == nil {
yyv4791 = []LimitRange{}
yyc4791 = true
} else if len(yyv4791) != 0 {
yyv4791 = yyv4791[:0]
yyc4791 = true
}
} else if yyl4791 > 0 {
var yyrr4791, yyrl4791 int
var yyrt4791 bool
if yyl4791 > cap(yyv4791) {
yyrg4791 := len(yyv4791) > 0
yyv24791 := yyv4791
yyrl4791, yyrt4791 = z.DecInferLen(yyl4791, z.DecBasicHandle().MaxInitLen, 280)
if yyrt4791 {
if yyrl4791 <= cap(yyv4791) {
yyv4791 = yyv4791[:yyrl4791]
} else {
yyv4791 = make([]LimitRange, yyrl4791)
}
} else {
yyv4791 = make([]LimitRange, yyrl4791)
}
yyc4791 = true
yyrr4791 = len(yyv4791)
if yyrg4791 {
copy(yyv4791, yyv24791)
}
} else if yyl4791 != len(yyv4791) {
yyv4791 = yyv4791[:yyl4791]
yyc4791 = true
}
yyj4791 := 0
for ; yyj4791 < yyrr4791; yyj4791++ {
yyh4791.ElemContainerState(yyj4791)
if r.TryDecodeAsNil() {
yyv4791[yyj4791] = LimitRange{}
} else {
yyv4792 := &yyv4791[yyj4791]
yyv4792.CodecDecodeSelf(d)
}
}
if yyrt4791 {
for ; yyj4791 < yyl4791; yyj4791++ {
yyv4791 = append(yyv4791, LimitRange{})
yyh4791.ElemContainerState(yyj4791)
if r.TryDecodeAsNil() {
yyv4791[yyj4791] = LimitRange{}
} else {
yyv4793 := &yyv4791[yyj4791]
yyv4793.CodecDecodeSelf(d)
}
}
}
} else {
yyj4791 := 0
for ; !r.CheckBreak(); yyj4791++ {
if yyj4791 >= len(yyv4791) {
yyv4791 = append(yyv4791, LimitRange{}) // var yyz4791 LimitRange
yyc4791 = true
}
yyh4791.ElemContainerState(yyj4791)
if yyj4791 < len(yyv4791) {
if r.TryDecodeAsNil() {
yyv4791[yyj4791] = LimitRange{}
} else {
yyv4794 := &yyv4791[yyj4791]
yyv4794.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4791 < len(yyv4791) {
yyv4791 = yyv4791[:yyj4791]
yyc4791 = true
} else if yyj4791 == 0 && yyv4791 == nil {
yyv4791 = []LimitRange{}
yyc4791 = true
}
}
yyh4791.End()
if yyc4791 {
*v = yyv4791
}
}
func (x codecSelfer1234) encSliceResourceQuotaScope(v []ResourceQuotaScope, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4795 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yyv4795.CodecEncodeSelf(e)
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4796 := *v
yyh4796, yyl4796 := z.DecSliceHelperStart()
var yyc4796 bool
if yyl4796 == 0 {
if yyv4796 == nil {
yyv4796 = []ResourceQuotaScope{}
yyc4796 = true
} else if len(yyv4796) != 0 {
yyv4796 = yyv4796[:0]
yyc4796 = true
}
} else if yyl4796 > 0 {
var yyrr4796, yyrl4796 int
var yyrt4796 bool
if yyl4796 > cap(yyv4796) {
yyrl4796, yyrt4796 = z.DecInferLen(yyl4796, z.DecBasicHandle().MaxInitLen, 16)
if yyrt4796 {
if yyrl4796 <= cap(yyv4796) {
yyv4796 = yyv4796[:yyrl4796]
} else {
yyv4796 = make([]ResourceQuotaScope, yyrl4796)
}
} else {
yyv4796 = make([]ResourceQuotaScope, yyrl4796)
}
yyc4796 = true
yyrr4796 = len(yyv4796)
} else if yyl4796 != len(yyv4796) {
yyv4796 = yyv4796[:yyl4796]
yyc4796 = true
}
yyj4796 := 0
for ; yyj4796 < yyrr4796; yyj4796++ {
yyh4796.ElemContainerState(yyj4796)
if r.TryDecodeAsNil() {
yyv4796[yyj4796] = ""
} else {
yyv4796[yyj4796] = ResourceQuotaScope(r.DecodeString())
}
}
if yyrt4796 {
for ; yyj4796 < yyl4796; yyj4796++ {
yyv4796 = append(yyv4796, "")
yyh4796.ElemContainerState(yyj4796)
if r.TryDecodeAsNil() {
yyv4796[yyj4796] = ""
} else {
yyv4796[yyj4796] = ResourceQuotaScope(r.DecodeString())
}
}
}
} else {
yyj4796 := 0
for ; !r.CheckBreak(); yyj4796++ {
if yyj4796 >= len(yyv4796) {
yyv4796 = append(yyv4796, "") // var yyz4796 ResourceQuotaScope
yyc4796 = true
}
yyh4796.ElemContainerState(yyj4796)
if yyj4796 < len(yyv4796) {
if r.TryDecodeAsNil() {
yyv4796[yyj4796] = ""
} else {
yyv4796[yyj4796] = ResourceQuotaScope(r.DecodeString())
}
} else {
z.DecSwallow()
}
}
if yyj4796 < len(yyv4796) {
yyv4796 = yyv4796[:yyj4796]
yyc4796 = true
} else if yyj4796 == 0 && yyv4796 == nil {
yyv4796 = []ResourceQuotaScope{}
yyc4796 = true
}
}
yyh4796.End()
if yyc4796 {
*v = yyv4796
}
}
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 _, yyv4800 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4801 := &yyv4800
yy4801.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
yyv4802 := *v
yyh4802, yyl4802 := z.DecSliceHelperStart()
var yyc4802 bool
if yyl4802 == 0 {
if yyv4802 == nil {
yyv4802 = []ResourceQuota{}
yyc4802 = true
} else if len(yyv4802) != 0 {
yyv4802 = yyv4802[:0]
yyc4802 = true
}
} else if yyl4802 > 0 {
var yyrr4802, yyrl4802 int
var yyrt4802 bool
if yyl4802 > cap(yyv4802) {
yyrg4802 := len(yyv4802) > 0
yyv24802 := yyv4802
yyrl4802, yyrt4802 = z.DecInferLen(yyl4802, z.DecBasicHandle().MaxInitLen, 304)
if yyrt4802 {
if yyrl4802 <= cap(yyv4802) {
yyv4802 = yyv4802[:yyrl4802]
} else {
yyv4802 = make([]ResourceQuota, yyrl4802)
}
} else {
yyv4802 = make([]ResourceQuota, yyrl4802)
}
yyc4802 = true
yyrr4802 = len(yyv4802)
if yyrg4802 {
copy(yyv4802, yyv24802)
}
} else if yyl4802 != len(yyv4802) {
yyv4802 = yyv4802[:yyl4802]
yyc4802 = true
}
yyj4802 := 0
for ; yyj4802 < yyrr4802; yyj4802++ {
yyh4802.ElemContainerState(yyj4802)
if r.TryDecodeAsNil() {
yyv4802[yyj4802] = ResourceQuota{}
} else {
yyv4803 := &yyv4802[yyj4802]
yyv4803.CodecDecodeSelf(d)
}
}
if yyrt4802 {
for ; yyj4802 < yyl4802; yyj4802++ {
yyv4802 = append(yyv4802, ResourceQuota{})
yyh4802.ElemContainerState(yyj4802)
if r.TryDecodeAsNil() {
yyv4802[yyj4802] = ResourceQuota{}
} else {
yyv4804 := &yyv4802[yyj4802]
yyv4804.CodecDecodeSelf(d)
}
}
}
} else {
yyj4802 := 0
for ; !r.CheckBreak(); yyj4802++ {
if yyj4802 >= len(yyv4802) {
yyv4802 = append(yyv4802, ResourceQuota{}) // var yyz4802 ResourceQuota
yyc4802 = true
}
yyh4802.ElemContainerState(yyj4802)
if yyj4802 < len(yyv4802) {
if r.TryDecodeAsNil() {
yyv4802[yyj4802] = ResourceQuota{}
} else {
yyv4805 := &yyv4802[yyj4802]
yyv4805.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4802 < len(yyv4802) {
yyv4802 = yyv4802[:yyj4802]
yyc4802 = true
} else if yyj4802 == 0 && yyv4802 == nil {
yyv4802 = []ResourceQuota{}
yyc4802 = true
}
}
yyh4802.End()
if yyc4802 {
*v = yyv4802
}
}
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 yyk4806, yyv4806 := range v {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
yym4807 := z.EncBinary()
_ = yym4807
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(yyk4806))
}
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyv4806 == nil {
r.EncodeNil()
} else {
yym4808 := z.EncBinary()
_ = yym4808
if false {
} else {
r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv4806))
}
}
}
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
yyv4809 := *v
yyl4809 := r.ReadMapStart()
yybh4809 := z.DecBasicHandle()
if yyv4809 == nil {
yyrl4809, _ := z.DecInferLen(yyl4809, yybh4809.MaxInitLen, 40)
yyv4809 = make(map[string][]uint8, yyrl4809)
*v = yyv4809
}
var yymk4809 string
var yymv4809 []uint8
var yymg4809 bool
if yybh4809.MapValueReset {
yymg4809 = true
}
if yyl4809 > 0 {
for yyj4809 := 0; yyj4809 < yyl4809; yyj4809++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() {
yymk4809 = ""
} else {
yymk4809 = string(r.DecodeString())
}
if yymg4809 {
yymv4809 = yyv4809[yymk4809]
} else {
yymv4809 = nil
}
z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() {
yymv4809 = nil
} else {
yyv4811 := &yymv4809
yym4812 := z.DecBinary()
_ = yym4812
if false {
} else {
*yyv4811 = r.DecodeBytes(*(*[]byte)(yyv4811), false, false)
}
}
if yyv4809 != nil {
yyv4809[yymk4809] = yymv4809
}
}
} else if yyl4809 < 0 {
for yyj4809 := 0; !r.CheckBreak(); yyj4809++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() {
yymk4809 = ""
} else {
yymk4809 = string(r.DecodeString())
}
if yymg4809 {
yymv4809 = yyv4809[yymk4809]
} else {
yymv4809 = nil
}
z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() {
yymv4809 = nil
} else {
yyv4814 := &yymv4809
yym4815 := z.DecBinary()
_ = yym4815
if false {
} else {
*yyv4814 = r.DecodeBytes(*(*[]byte)(yyv4814), false, false)
}
}
if yyv4809 != nil {
yyv4809[yymk4809] = yymv4809
}
}
} // 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 _, yyv4816 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4817 := &yyv4816
yy4817.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
yyv4818 := *v
yyh4818, yyl4818 := z.DecSliceHelperStart()
var yyc4818 bool
if yyl4818 == 0 {
if yyv4818 == nil {
yyv4818 = []Secret{}
yyc4818 = true
} else if len(yyv4818) != 0 {
yyv4818 = yyv4818[:0]
yyc4818 = true
}
} else if yyl4818 > 0 {
var yyrr4818, yyrl4818 int
var yyrt4818 bool
if yyl4818 > cap(yyv4818) {
yyrg4818 := len(yyv4818) > 0
yyv24818 := yyv4818
yyrl4818, yyrt4818 = z.DecInferLen(yyl4818, z.DecBasicHandle().MaxInitLen, 280)
if yyrt4818 {
if yyrl4818 <= cap(yyv4818) {
yyv4818 = yyv4818[:yyrl4818]
} else {
yyv4818 = make([]Secret, yyrl4818)
}
} else {
yyv4818 = make([]Secret, yyrl4818)
}
yyc4818 = true
yyrr4818 = len(yyv4818)
if yyrg4818 {
copy(yyv4818, yyv24818)
}
} else if yyl4818 != len(yyv4818) {
yyv4818 = yyv4818[:yyl4818]
yyc4818 = true
}
yyj4818 := 0
for ; yyj4818 < yyrr4818; yyj4818++ {
yyh4818.ElemContainerState(yyj4818)
if r.TryDecodeAsNil() {
yyv4818[yyj4818] = Secret{}
} else {
yyv4819 := &yyv4818[yyj4818]
yyv4819.CodecDecodeSelf(d)
}
}
if yyrt4818 {
for ; yyj4818 < yyl4818; yyj4818++ {
yyv4818 = append(yyv4818, Secret{})
yyh4818.ElemContainerState(yyj4818)
if r.TryDecodeAsNil() {
yyv4818[yyj4818] = Secret{}
} else {
yyv4820 := &yyv4818[yyj4818]
yyv4820.CodecDecodeSelf(d)
}
}
}
} else {
yyj4818 := 0
for ; !r.CheckBreak(); yyj4818++ {
if yyj4818 >= len(yyv4818) {
yyv4818 = append(yyv4818, Secret{}) // var yyz4818 Secret
yyc4818 = true
}
yyh4818.ElemContainerState(yyj4818)
if yyj4818 < len(yyv4818) {
if r.TryDecodeAsNil() {
yyv4818[yyj4818] = Secret{}
} else {
yyv4821 := &yyv4818[yyj4818]
yyv4821.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4818 < len(yyv4818) {
yyv4818 = yyv4818[:yyj4818]
yyc4818 = true
} else if yyj4818 == 0 && yyv4818 == nil {
yyv4818 = []Secret{}
yyc4818 = true
}
}
yyh4818.End()
if yyc4818 {
*v = yyv4818
}
}
func (x codecSelfer1234) encSliceConfigMap(v []ConfigMap, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4822 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4823 := &yyv4822
yy4823.CodecEncodeSelf(e)
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceConfigMap(v *[]ConfigMap, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4824 := *v
yyh4824, yyl4824 := z.DecSliceHelperStart()
var yyc4824 bool
if yyl4824 == 0 {
if yyv4824 == nil {
yyv4824 = []ConfigMap{}
yyc4824 = true
} else if len(yyv4824) != 0 {
yyv4824 = yyv4824[:0]
yyc4824 = true
}
} else if yyl4824 > 0 {
var yyrr4824, yyrl4824 int
var yyrt4824 bool
if yyl4824 > cap(yyv4824) {
yyrg4824 := len(yyv4824) > 0
yyv24824 := yyv4824
yyrl4824, yyrt4824 = z.DecInferLen(yyl4824, z.DecBasicHandle().MaxInitLen, 264)
if yyrt4824 {
if yyrl4824 <= cap(yyv4824) {
yyv4824 = yyv4824[:yyrl4824]
} else {
yyv4824 = make([]ConfigMap, yyrl4824)
}
} else {
yyv4824 = make([]ConfigMap, yyrl4824)
}
yyc4824 = true
yyrr4824 = len(yyv4824)
if yyrg4824 {
copy(yyv4824, yyv24824)
}
} else if yyl4824 != len(yyv4824) {
yyv4824 = yyv4824[:yyl4824]
yyc4824 = true
}
yyj4824 := 0
for ; yyj4824 < yyrr4824; yyj4824++ {
yyh4824.ElemContainerState(yyj4824)
if r.TryDecodeAsNil() {
yyv4824[yyj4824] = ConfigMap{}
} else {
yyv4825 := &yyv4824[yyj4824]
yyv4825.CodecDecodeSelf(d)
}
}
if yyrt4824 {
for ; yyj4824 < yyl4824; yyj4824++ {
yyv4824 = append(yyv4824, ConfigMap{})
yyh4824.ElemContainerState(yyj4824)
if r.TryDecodeAsNil() {
yyv4824[yyj4824] = ConfigMap{}
} else {
yyv4826 := &yyv4824[yyj4824]
yyv4826.CodecDecodeSelf(d)
}
}
}
} else {
yyj4824 := 0
for ; !r.CheckBreak(); yyj4824++ {
if yyj4824 >= len(yyv4824) {
yyv4824 = append(yyv4824, ConfigMap{}) // var yyz4824 ConfigMap
yyc4824 = true
}
yyh4824.ElemContainerState(yyj4824)
if yyj4824 < len(yyv4824) {
if r.TryDecodeAsNil() {
yyv4824[yyj4824] = ConfigMap{}
} else {
yyv4827 := &yyv4824[yyj4824]
yyv4827.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4824 < len(yyv4824) {
yyv4824 = yyv4824[:yyj4824]
yyc4824 = true
} else if yyj4824 == 0 && yyv4824 == nil {
yyv4824 = []ConfigMap{}
yyc4824 = true
}
}
yyh4824.End()
if yyc4824 {
*v = yyv4824
}
}
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 _, yyv4828 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4829 := &yyv4828
yy4829.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
yyv4830 := *v
yyh4830, yyl4830 := z.DecSliceHelperStart()
var yyc4830 bool
if yyl4830 == 0 {
if yyv4830 == nil {
yyv4830 = []ComponentCondition{}
yyc4830 = true
} else if len(yyv4830) != 0 {
yyv4830 = yyv4830[:0]
yyc4830 = true
}
} else if yyl4830 > 0 {
var yyrr4830, yyrl4830 int
var yyrt4830 bool
if yyl4830 > cap(yyv4830) {
yyrg4830 := len(yyv4830) > 0
yyv24830 := yyv4830
yyrl4830, yyrt4830 = z.DecInferLen(yyl4830, z.DecBasicHandle().MaxInitLen, 64)
if yyrt4830 {
if yyrl4830 <= cap(yyv4830) {
yyv4830 = yyv4830[:yyrl4830]
} else {
yyv4830 = make([]ComponentCondition, yyrl4830)
}
} else {
yyv4830 = make([]ComponentCondition, yyrl4830)
}
yyc4830 = true
yyrr4830 = len(yyv4830)
if yyrg4830 {
copy(yyv4830, yyv24830)
}
} else if yyl4830 != len(yyv4830) {
yyv4830 = yyv4830[:yyl4830]
yyc4830 = true
}
yyj4830 := 0
for ; yyj4830 < yyrr4830; yyj4830++ {
yyh4830.ElemContainerState(yyj4830)
if r.TryDecodeAsNil() {
yyv4830[yyj4830] = ComponentCondition{}
} else {
yyv4831 := &yyv4830[yyj4830]
yyv4831.CodecDecodeSelf(d)
}
}
if yyrt4830 {
for ; yyj4830 < yyl4830; yyj4830++ {
yyv4830 = append(yyv4830, ComponentCondition{})
yyh4830.ElemContainerState(yyj4830)
if r.TryDecodeAsNil() {
yyv4830[yyj4830] = ComponentCondition{}
} else {
yyv4832 := &yyv4830[yyj4830]
yyv4832.CodecDecodeSelf(d)
}
}
}
} else {
yyj4830 := 0
for ; !r.CheckBreak(); yyj4830++ {
if yyj4830 >= len(yyv4830) {
yyv4830 = append(yyv4830, ComponentCondition{}) // var yyz4830 ComponentCondition
yyc4830 = true
}
yyh4830.ElemContainerState(yyj4830)
if yyj4830 < len(yyv4830) {
if r.TryDecodeAsNil() {
yyv4830[yyj4830] = ComponentCondition{}
} else {
yyv4833 := &yyv4830[yyj4830]
yyv4833.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4830 < len(yyv4830) {
yyv4830 = yyv4830[:yyj4830]
yyc4830 = true
} else if yyj4830 == 0 && yyv4830 == nil {
yyv4830 = []ComponentCondition{}
yyc4830 = true
}
}
yyh4830.End()
if yyc4830 {
*v = yyv4830
}
}
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 _, yyv4834 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4835 := &yyv4834
yy4835.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
yyv4836 := *v
yyh4836, yyl4836 := z.DecSliceHelperStart()
var yyc4836 bool
if yyl4836 == 0 {
if yyv4836 == nil {
yyv4836 = []ComponentStatus{}
yyc4836 = true
} else if len(yyv4836) != 0 {
yyv4836 = yyv4836[:0]
yyc4836 = true
}
} else if yyl4836 > 0 {
var yyrr4836, yyrl4836 int
var yyrt4836 bool
if yyl4836 > cap(yyv4836) {
yyrg4836 := len(yyv4836) > 0
yyv24836 := yyv4836
yyrl4836, yyrt4836 = z.DecInferLen(yyl4836, z.DecBasicHandle().MaxInitLen, 280)
if yyrt4836 {
if yyrl4836 <= cap(yyv4836) {
yyv4836 = yyv4836[:yyrl4836]
} else {
yyv4836 = make([]ComponentStatus, yyrl4836)
}
} else {
yyv4836 = make([]ComponentStatus, yyrl4836)
}
yyc4836 = true
yyrr4836 = len(yyv4836)
if yyrg4836 {
copy(yyv4836, yyv24836)
}
} else if yyl4836 != len(yyv4836) {
yyv4836 = yyv4836[:yyl4836]
yyc4836 = true
}
yyj4836 := 0
for ; yyj4836 < yyrr4836; yyj4836++ {
yyh4836.ElemContainerState(yyj4836)
if r.TryDecodeAsNil() {
yyv4836[yyj4836] = ComponentStatus{}
} else {
yyv4837 := &yyv4836[yyj4836]
yyv4837.CodecDecodeSelf(d)
}
}
if yyrt4836 {
for ; yyj4836 < yyl4836; yyj4836++ {
yyv4836 = append(yyv4836, ComponentStatus{})
yyh4836.ElemContainerState(yyj4836)
if r.TryDecodeAsNil() {
yyv4836[yyj4836] = ComponentStatus{}
} else {
yyv4838 := &yyv4836[yyj4836]
yyv4838.CodecDecodeSelf(d)
}
}
}
} else {
yyj4836 := 0
for ; !r.CheckBreak(); yyj4836++ {
if yyj4836 >= len(yyv4836) {
yyv4836 = append(yyv4836, ComponentStatus{}) // var yyz4836 ComponentStatus
yyc4836 = true
}
yyh4836.ElemContainerState(yyj4836)
if yyj4836 < len(yyv4836) {
if r.TryDecodeAsNil() {
yyv4836[yyj4836] = ComponentStatus{}
} else {
yyv4839 := &yyv4836[yyj4836]
yyv4839.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4836 < len(yyv4836) {
yyv4836 = yyv4836[:yyj4836]
yyc4836 = true
} else if yyj4836 == 0 && yyv4836 == nil {
yyv4836 = []ComponentStatus{}
yyc4836 = true
}
}
yyh4836.End()
if yyc4836 {
*v = yyv4836
}
}