kubernetes/pkg/api/types.generated.go
Christian Simon 1c11047ffb Adds datasetUUID for referencing flocker datasets
* flocker datasets should be attached using an unique identifier. This
  is not the case for the name metadata used by datasetName
* allow only one of datasetUUID / datasetName specified
2016-09-27 13:19:22 +00:00

62486 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 [2]bool
_, _, _ = yysep991, yyq991, yy2arr991
const yyr991 bool = false
yyq991[0] = x.DatasetName != ""
yyq991[1] = x.DatasetUUID != ""
var yynn991 int
if yyr991 || yy2arr991 {
r.EncodeArrayStart(2)
} else {
yynn991 = 0
for _, b := range yyq991 {
if b {
yynn991++
}
}
r.EncodeMapStart(yynn991)
yynn991 = 0
}
if yyr991 || yy2arr991 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq991[0] {
yym993 := z.EncBinary()
_ = yym993
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq991[0] {
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_containerArrayElem1234)
if yyq991[1] {
yym996 := z.EncBinary()
_ = yym996
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.DatasetUUID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq991[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("datasetUUID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym997 := z.EncBinary()
_ = yym997
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.DatasetUUID))
}
}
}
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
yym998 := z.DecBinary()
_ = yym998
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct999 := r.ContainerType()
if yyct999 == codecSelferValueTypeMap1234 {
yyl999 := r.ReadMapStart()
if yyl999 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl999, d)
}
} else if yyct999 == codecSelferValueTypeArray1234 {
yyl999 := r.ReadArrayStart()
if yyl999 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl999, 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 yys1000Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1000Slc
var yyhl1000 bool = l >= 0
for yyj1000 := 0; ; yyj1000++ {
if yyhl1000 {
if yyj1000 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1000Slc = r.DecodeBytes(yys1000Slc, true, true)
yys1000 := string(yys1000Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1000 {
case "datasetName":
if r.TryDecodeAsNil() {
x.DatasetName = ""
} else {
x.DatasetName = string(r.DecodeString())
}
case "datasetUUID":
if r.TryDecodeAsNil() {
x.DatasetUUID = ""
} else {
x.DatasetUUID = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1000)
} // end switch yys1000
} // end for yyj1000
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 yyj1003 int
var yyb1003 bool
var yyhl1003 bool = l >= 0
yyj1003++
if yyhl1003 {
yyb1003 = yyj1003 > l
} else {
yyb1003 = r.CheckBreak()
}
if yyb1003 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DatasetName = ""
} else {
x.DatasetName = string(r.DecodeString())
}
yyj1003++
if yyhl1003 {
yyb1003 = yyj1003 > l
} else {
yyb1003 = r.CheckBreak()
}
if yyb1003 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DatasetUUID = ""
} else {
x.DatasetUUID = string(r.DecodeString())
}
for {
yyj1003++
if yyhl1003 {
yyb1003 = yyj1003 > l
} else {
yyb1003 = r.CheckBreak()
}
if yyb1003 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1003-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 {
yym1006 := z.EncBinary()
_ = yym1006
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1007 := !z.EncBinary()
yy2arr1007 := z.EncBasicHandle().StructToArray
var yyq1007 [2]bool
_, _, _ = yysep1007, yyq1007, yy2arr1007
const yyr1007 bool = false
yyq1007[0] = len(x.Items) != 0
yyq1007[1] = x.DefaultMode != nil
var yynn1007 int
if yyr1007 || yy2arr1007 {
r.EncodeArrayStart(2)
} else {
yynn1007 = 0
for _, b := range yyq1007 {
if b {
yynn1007++
}
}
r.EncodeMapStart(yynn1007)
yynn1007 = 0
}
if yyr1007 || yy2arr1007 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1007[0] {
if x.Items == nil {
r.EncodeNil()
} else {
yym1009 := z.EncBinary()
_ = yym1009
if false {
} else {
h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1007[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("items"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym1010 := z.EncBinary()
_ = yym1010
if false {
} else {
h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e)
}
}
}
}
if yyr1007 || yy2arr1007 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1007[1] {
if x.DefaultMode == nil {
r.EncodeNil()
} else {
yy1012 := *x.DefaultMode
yym1013 := z.EncBinary()
_ = yym1013
if false {
} else {
r.EncodeInt(int64(yy1012))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1007[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("defaultMode"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.DefaultMode == nil {
r.EncodeNil()
} else {
yy1014 := *x.DefaultMode
yym1015 := z.EncBinary()
_ = yym1015
if false {
} else {
r.EncodeInt(int64(yy1014))
}
}
}
}
if yyr1007 || yy2arr1007 {
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
yym1016 := z.DecBinary()
_ = yym1016
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1017 := r.ContainerType()
if yyct1017 == codecSelferValueTypeMap1234 {
yyl1017 := r.ReadMapStart()
if yyl1017 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1017, d)
}
} else if yyct1017 == codecSelferValueTypeArray1234 {
yyl1017 := r.ReadArrayStart()
if yyl1017 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1017, 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 yys1018Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1018Slc
var yyhl1018 bool = l >= 0
for yyj1018 := 0; ; yyj1018++ {
if yyhl1018 {
if yyj1018 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1018Slc = r.DecodeBytes(yys1018Slc, true, true)
yys1018 := string(yys1018Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1018 {
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1019 := &x.Items
yym1020 := z.DecBinary()
_ = yym1020
if false {
} else {
h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv1019), d)
}
}
case "defaultMode":
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))
}
}
default:
z.DecStructFieldNotFound(-1, yys1018)
} // end switch yys1018
} // end for yyj1018
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 yyj1023 int
var yyb1023 bool
var yyhl1023 bool = l >= 0
yyj1023++
if yyhl1023 {
yyb1023 = yyj1023 > l
} else {
yyb1023 = r.CheckBreak()
}
if yyb1023 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1024 := &x.Items
yym1025 := z.DecBinary()
_ = yym1025
if false {
} else {
h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv1024), d)
}
}
yyj1023++
if yyhl1023 {
yyb1023 = yyj1023 > l
} else {
yyb1023 = r.CheckBreak()
}
if yyb1023 {
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)
}
yym1027 := z.DecBinary()
_ = yym1027
if false {
} else {
*((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32))
}
}
for {
yyj1023++
if yyhl1023 {
yyb1023 = yyj1023 > l
} else {
yyb1023 = r.CheckBreak()
}
if yyb1023 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1023-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 {
yym1028 := z.EncBinary()
_ = yym1028
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1029 := !z.EncBinary()
yy2arr1029 := z.EncBasicHandle().StructToArray
var yyq1029 [4]bool
_, _, _ = yysep1029, yyq1029, yy2arr1029
const yyr1029 bool = false
yyq1029[1] = x.FieldRef != nil
yyq1029[2] = x.ResourceFieldRef != nil
yyq1029[3] = x.Mode != nil
var yynn1029 int
if yyr1029 || yy2arr1029 {
r.EncodeArrayStart(4)
} else {
yynn1029 = 1
for _, b := range yyq1029 {
if b {
yynn1029++
}
}
r.EncodeMapStart(yynn1029)
yynn1029 = 0
}
if yyr1029 || yy2arr1029 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1031 := z.EncBinary()
_ = yym1031
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)
yym1032 := z.EncBinary()
_ = yym1032
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr1029 || yy2arr1029 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1029[1] {
if x.FieldRef == nil {
r.EncodeNil()
} else {
x.FieldRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1029[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 yyr1029 || yy2arr1029 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1029[2] {
if x.ResourceFieldRef == nil {
r.EncodeNil()
} else {
x.ResourceFieldRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1029[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 yyr1029 || yy2arr1029 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1029[3] {
if x.Mode == nil {
r.EncodeNil()
} else {
yy1036 := *x.Mode
yym1037 := z.EncBinary()
_ = yym1037
if false {
} else {
r.EncodeInt(int64(yy1036))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1029[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("mode"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Mode == nil {
r.EncodeNil()
} else {
yy1038 := *x.Mode
yym1039 := z.EncBinary()
_ = yym1039
if false {
} else {
r.EncodeInt(int64(yy1038))
}
}
}
}
if yyr1029 || yy2arr1029 {
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
yym1040 := z.DecBinary()
_ = yym1040
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1041 := r.ContainerType()
if yyct1041 == codecSelferValueTypeMap1234 {
yyl1041 := r.ReadMapStart()
if yyl1041 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1041, d)
}
} else if yyct1041 == codecSelferValueTypeArray1234 {
yyl1041 := r.ReadArrayStart()
if yyl1041 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1041, 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 yys1042Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1042Slc
var yyhl1042 bool = l >= 0
for yyj1042 := 0; ; yyj1042++ {
if yyhl1042 {
if yyj1042 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1042Slc = r.DecodeBytes(yys1042Slc, true, true)
yys1042 := string(yys1042Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1042 {
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)
}
yym1047 := z.DecBinary()
_ = yym1047
if false {
} else {
*((*int32)(x.Mode)) = int32(r.DecodeInt(32))
}
}
default:
z.DecStructFieldNotFound(-1, yys1042)
} // end switch yys1042
} // end for yyj1042
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 yyj1048 int
var yyb1048 bool
var yyhl1048 bool = l >= 0
yyj1048++
if yyhl1048 {
yyb1048 = yyj1048 > l
} else {
yyb1048 = r.CheckBreak()
}
if yyb1048 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
yyj1048++
if yyhl1048 {
yyb1048 = yyj1048 > l
} else {
yyb1048 = r.CheckBreak()
}
if yyb1048 {
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)
}
yyj1048++
if yyhl1048 {
yyb1048 = yyj1048 > l
} else {
yyb1048 = r.CheckBreak()
}
if yyb1048 {
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)
}
yyj1048++
if yyhl1048 {
yyb1048 = yyj1048 > l
} else {
yyb1048 = r.CheckBreak()
}
if yyb1048 {
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)
}
yym1053 := z.DecBinary()
_ = yym1053
if false {
} else {
*((*int32)(x.Mode)) = int32(r.DecodeInt(32))
}
}
for {
yyj1048++
if yyhl1048 {
yyb1048 = yyj1048 > l
} else {
yyb1048 = r.CheckBreak()
}
if yyb1048 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1048-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 {
yym1054 := z.EncBinary()
_ = yym1054
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1055 := !z.EncBinary()
yy2arr1055 := z.EncBasicHandle().StructToArray
var yyq1055 [3]bool
_, _, _ = yysep1055, yyq1055, yy2arr1055
const yyr1055 bool = false
yyq1055[2] = x.ReadOnly != false
var yynn1055 int
if yyr1055 || yy2arr1055 {
r.EncodeArrayStart(3)
} else {
yynn1055 = 2
for _, b := range yyq1055 {
if b {
yynn1055++
}
}
r.EncodeMapStart(yynn1055)
yynn1055 = 0
}
if yyr1055 || yy2arr1055 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1057 := z.EncBinary()
_ = yym1057
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)
yym1058 := z.EncBinary()
_ = yym1058
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SecretName))
}
}
if yyr1055 || yy2arr1055 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1060 := z.EncBinary()
_ = yym1060
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)
yym1061 := z.EncBinary()
_ = yym1061
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ShareName))
}
}
if yyr1055 || yy2arr1055 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1055[2] {
yym1063 := z.EncBinary()
_ = yym1063
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1055[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1064 := z.EncBinary()
_ = yym1064
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr1055 || yy2arr1055 {
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
yym1065 := z.DecBinary()
_ = yym1065
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1066 := r.ContainerType()
if yyct1066 == codecSelferValueTypeMap1234 {
yyl1066 := r.ReadMapStart()
if yyl1066 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1066, d)
}
} else if yyct1066 == codecSelferValueTypeArray1234 {
yyl1066 := r.ReadArrayStart()
if yyl1066 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1066, 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 yys1067Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1067Slc
var yyhl1067 bool = l >= 0
for yyj1067 := 0; ; yyj1067++ {
if yyhl1067 {
if yyj1067 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1067Slc = r.DecodeBytes(yys1067Slc, true, true)
yys1067 := string(yys1067Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1067 {
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, yys1067)
} // end switch yys1067
} // end for yyj1067
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 yyj1071 int
var yyb1071 bool
var yyhl1071 bool = l >= 0
yyj1071++
if yyhl1071 {
yyb1071 = yyj1071 > l
} else {
yyb1071 = r.CheckBreak()
}
if yyb1071 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SecretName = ""
} else {
x.SecretName = string(r.DecodeString())
}
yyj1071++
if yyhl1071 {
yyb1071 = yyj1071 > l
} else {
yyb1071 = r.CheckBreak()
}
if yyb1071 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ShareName = ""
} else {
x.ShareName = string(r.DecodeString())
}
yyj1071++
if yyhl1071 {
yyb1071 = yyj1071 > l
} else {
yyb1071 = r.CheckBreak()
}
if yyb1071 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj1071++
if yyhl1071 {
yyb1071 = yyj1071 > l
} else {
yyb1071 = r.CheckBreak()
}
if yyb1071 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1071-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 {
yym1075 := z.EncBinary()
_ = yym1075
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1076 := !z.EncBinary()
yy2arr1076 := z.EncBasicHandle().StructToArray
var yyq1076 [2]bool
_, _, _ = yysep1076, yyq1076, yy2arr1076
const yyr1076 bool = false
yyq1076[1] = x.FSType != ""
var yynn1076 int
if yyr1076 || yy2arr1076 {
r.EncodeArrayStart(2)
} else {
yynn1076 = 1
for _, b := range yyq1076 {
if b {
yynn1076++
}
}
r.EncodeMapStart(yynn1076)
yynn1076 = 0
}
if yyr1076 || yy2arr1076 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1078 := z.EncBinary()
_ = yym1078
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)
yym1079 := z.EncBinary()
_ = yym1079
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.VolumePath))
}
}
if yyr1076 || yy2arr1076 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1076[1] {
yym1081 := z.EncBinary()
_ = yym1081
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1076[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1082 := z.EncBinary()
_ = yym1082
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
}
if yyr1076 || yy2arr1076 {
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
yym1083 := z.DecBinary()
_ = yym1083
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1084 := r.ContainerType()
if yyct1084 == codecSelferValueTypeMap1234 {
yyl1084 := r.ReadMapStart()
if yyl1084 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1084, d)
}
} else if yyct1084 == codecSelferValueTypeArray1234 {
yyl1084 := r.ReadArrayStart()
if yyl1084 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1084, 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 yys1085Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1085Slc
var yyhl1085 bool = l >= 0
for yyj1085 := 0; ; yyj1085++ {
if yyhl1085 {
if yyj1085 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1085Slc = r.DecodeBytes(yys1085Slc, true, true)
yys1085 := string(yys1085Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1085 {
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, yys1085)
} // end switch yys1085
} // end for yyj1085
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 yyj1088 int
var yyb1088 bool
var yyhl1088 bool = l >= 0
yyj1088++
if yyhl1088 {
yyb1088 = yyj1088 > l
} else {
yyb1088 = r.CheckBreak()
}
if yyb1088 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.VolumePath = ""
} else {
x.VolumePath = string(r.DecodeString())
}
yyj1088++
if yyhl1088 {
yyb1088 = yyj1088 > l
} else {
yyb1088 = r.CheckBreak()
}
if yyb1088 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
for {
yyj1088++
if yyhl1088 {
yyb1088 = yyj1088 > l
} else {
yyb1088 = r.CheckBreak()
}
if yyb1088 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1088-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x AzureDataDiskCachingMode) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1091 := z.EncBinary()
_ = yym1091
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
yym1092 := z.DecBinary()
_ = yym1092
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 {
yym1093 := z.EncBinary()
_ = yym1093
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1094 := !z.EncBinary()
yy2arr1094 := z.EncBasicHandle().StructToArray
var yyq1094 [5]bool
_, _, _ = yysep1094, yyq1094, yy2arr1094
const yyr1094 bool = false
yyq1094[2] = x.CachingMode != nil
yyq1094[3] = x.FSType != nil
yyq1094[4] = x.ReadOnly != nil
var yynn1094 int
if yyr1094 || yy2arr1094 {
r.EncodeArrayStart(5)
} else {
yynn1094 = 2
for _, b := range yyq1094 {
if b {
yynn1094++
}
}
r.EncodeMapStart(yynn1094)
yynn1094 = 0
}
if yyr1094 || yy2arr1094 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1096 := z.EncBinary()
_ = yym1096
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)
yym1097 := z.EncBinary()
_ = yym1097
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.DiskName))
}
}
if yyr1094 || yy2arr1094 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1099 := z.EncBinary()
_ = yym1099
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)
yym1100 := z.EncBinary()
_ = yym1100
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.DataDiskURI))
}
}
if yyr1094 || yy2arr1094 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1094[2] {
if x.CachingMode == nil {
r.EncodeNil()
} else {
yy1102 := *x.CachingMode
yy1102.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1094[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cachingMode"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.CachingMode == nil {
r.EncodeNil()
} else {
yy1103 := *x.CachingMode
yy1103.CodecEncodeSelf(e)
}
}
}
if yyr1094 || yy2arr1094 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1094[3] {
if x.FSType == nil {
r.EncodeNil()
} else {
yy1105 := *x.FSType
yym1106 := z.EncBinary()
_ = yym1106
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(yy1105))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1094[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.FSType == nil {
r.EncodeNil()
} else {
yy1107 := *x.FSType
yym1108 := z.EncBinary()
_ = yym1108
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(yy1107))
}
}
}
}
if yyr1094 || yy2arr1094 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1094[4] {
if x.ReadOnly == nil {
r.EncodeNil()
} else {
yy1110 := *x.ReadOnly
yym1111 := z.EncBinary()
_ = yym1111
if false {
} else {
r.EncodeBool(bool(yy1110))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1094[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ReadOnly == nil {
r.EncodeNil()
} else {
yy1112 := *x.ReadOnly
yym1113 := z.EncBinary()
_ = yym1113
if false {
} else {
r.EncodeBool(bool(yy1112))
}
}
}
}
if yyr1094 || yy2arr1094 {
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
yym1114 := z.DecBinary()
_ = yym1114
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1115 := r.ContainerType()
if yyct1115 == codecSelferValueTypeMap1234 {
yyl1115 := r.ReadMapStart()
if yyl1115 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1115, d)
}
} else if yyct1115 == codecSelferValueTypeArray1234 {
yyl1115 := r.ReadArrayStart()
if yyl1115 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1115, 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 yys1116Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1116Slc
var yyhl1116 bool = l >= 0
for yyj1116 := 0; ; yyj1116++ {
if yyhl1116 {
if yyj1116 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1116Slc = r.DecodeBytes(yys1116Slc, true, true)
yys1116 := string(yys1116Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1116 {
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)
}
yym1121 := z.DecBinary()
_ = yym1121
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)
}
yym1123 := z.DecBinary()
_ = yym1123
if false {
} else {
*((*bool)(x.ReadOnly)) = r.DecodeBool()
}
}
default:
z.DecStructFieldNotFound(-1, yys1116)
} // end switch yys1116
} // end for yyj1116
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 yyj1124 int
var yyb1124 bool
var yyhl1124 bool = l >= 0
yyj1124++
if yyhl1124 {
yyb1124 = yyj1124 > l
} else {
yyb1124 = r.CheckBreak()
}
if yyb1124 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DiskName = ""
} else {
x.DiskName = string(r.DecodeString())
}
yyj1124++
if yyhl1124 {
yyb1124 = yyj1124 > l
} else {
yyb1124 = r.CheckBreak()
}
if yyb1124 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DataDiskURI = ""
} else {
x.DataDiskURI = string(r.DecodeString())
}
yyj1124++
if yyhl1124 {
yyb1124 = yyj1124 > l
} else {
yyb1124 = r.CheckBreak()
}
if yyb1124 {
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)
}
yyj1124++
if yyhl1124 {
yyb1124 = yyj1124 > l
} else {
yyb1124 = r.CheckBreak()
}
if yyb1124 {
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)
}
yym1129 := z.DecBinary()
_ = yym1129
if false {
} else {
*((*string)(x.FSType)) = r.DecodeString()
}
}
yyj1124++
if yyhl1124 {
yyb1124 = yyj1124 > l
} else {
yyb1124 = r.CheckBreak()
}
if yyb1124 {
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)
}
yym1131 := z.DecBinary()
_ = yym1131
if false {
} else {
*((*bool)(x.ReadOnly)) = r.DecodeBool()
}
}
for {
yyj1124++
if yyhl1124 {
yyb1124 = yyj1124 > l
} else {
yyb1124 = r.CheckBreak()
}
if yyb1124 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1124-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 {
yym1132 := z.EncBinary()
_ = yym1132
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1133 := !z.EncBinary()
yy2arr1133 := z.EncBasicHandle().StructToArray
var yyq1133 [3]bool
_, _, _ = yysep1133, yyq1133, yy2arr1133
const yyr1133 bool = false
yyq1133[1] = len(x.Items) != 0
yyq1133[2] = x.DefaultMode != nil
var yynn1133 int
if yyr1133 || yy2arr1133 {
r.EncodeArrayStart(3)
} else {
yynn1133 = 1
for _, b := range yyq1133 {
if b {
yynn1133++
}
}
r.EncodeMapStart(yynn1133)
yynn1133 = 0
}
if yyr1133 || yy2arr1133 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1135 := z.EncBinary()
_ = yym1135
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)
yym1136 := z.EncBinary()
_ = yym1136
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1133 || yy2arr1133 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1133[1] {
if x.Items == nil {
r.EncodeNil()
} else {
yym1138 := z.EncBinary()
_ = yym1138
if false {
} else {
h.encSliceKeyToPath(([]KeyToPath)(x.Items), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1133[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("items"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym1139 := z.EncBinary()
_ = yym1139
if false {
} else {
h.encSliceKeyToPath(([]KeyToPath)(x.Items), e)
}
}
}
}
if yyr1133 || yy2arr1133 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1133[2] {
if x.DefaultMode == nil {
r.EncodeNil()
} else {
yy1141 := *x.DefaultMode
yym1142 := z.EncBinary()
_ = yym1142
if false {
} else {
r.EncodeInt(int64(yy1141))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1133[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("defaultMode"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.DefaultMode == nil {
r.EncodeNil()
} else {
yy1143 := *x.DefaultMode
yym1144 := z.EncBinary()
_ = yym1144
if false {
} else {
r.EncodeInt(int64(yy1143))
}
}
}
}
if yyr1133 || yy2arr1133 {
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
yym1145 := z.DecBinary()
_ = yym1145
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1146 := r.ContainerType()
if yyct1146 == codecSelferValueTypeMap1234 {
yyl1146 := r.ReadMapStart()
if yyl1146 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1146, d)
}
} else if yyct1146 == codecSelferValueTypeArray1234 {
yyl1146 := r.ReadArrayStart()
if yyl1146 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1146, 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 yys1147Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1147Slc
var yyhl1147 bool = l >= 0
for yyj1147 := 0; ; yyj1147++ {
if yyhl1147 {
if yyj1147 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1147Slc = r.DecodeBytes(yys1147Slc, true, true)
yys1147 := string(yys1147Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1147 {
case "Name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1149 := &x.Items
yym1150 := z.DecBinary()
_ = yym1150
if false {
} else {
h.decSliceKeyToPath((*[]KeyToPath)(yyv1149), d)
}
}
case "defaultMode":
if r.TryDecodeAsNil() {
if x.DefaultMode != nil {
x.DefaultMode = nil
}
} else {
if x.DefaultMode == nil {
x.DefaultMode = new(int32)
}
yym1152 := z.DecBinary()
_ = yym1152
if false {
} else {
*((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32))
}
}
default:
z.DecStructFieldNotFound(-1, yys1147)
} // end switch yys1147
} // end for yyj1147
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 yyj1153 int
var yyb1153 bool
var yyhl1153 bool = l >= 0
yyj1153++
if yyhl1153 {
yyb1153 = yyj1153 > l
} else {
yyb1153 = r.CheckBreak()
}
if yyb1153 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1153++
if yyhl1153 {
yyb1153 = yyj1153 > l
} else {
yyb1153 = r.CheckBreak()
}
if yyb1153 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1155 := &x.Items
yym1156 := z.DecBinary()
_ = yym1156
if false {
} else {
h.decSliceKeyToPath((*[]KeyToPath)(yyv1155), d)
}
}
yyj1153++
if yyhl1153 {
yyb1153 = yyj1153 > l
} else {
yyb1153 = r.CheckBreak()
}
if yyb1153 {
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)
}
yym1158 := z.DecBinary()
_ = yym1158
if false {
} else {
*((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32))
}
}
for {
yyj1153++
if yyhl1153 {
yyb1153 = yyj1153 > l
} else {
yyb1153 = r.CheckBreak()
}
if yyb1153 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1153-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 {
yym1159 := z.EncBinary()
_ = yym1159
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1160 := !z.EncBinary()
yy2arr1160 := z.EncBasicHandle().StructToArray
var yyq1160 [3]bool
_, _, _ = yysep1160, yyq1160, yy2arr1160
const yyr1160 bool = false
yyq1160[2] = x.Mode != nil
var yynn1160 int
if yyr1160 || yy2arr1160 {
r.EncodeArrayStart(3)
} else {
yynn1160 = 2
for _, b := range yyq1160 {
if b {
yynn1160++
}
}
r.EncodeMapStart(yynn1160)
yynn1160 = 0
}
if yyr1160 || yy2arr1160 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1162 := z.EncBinary()
_ = yym1162
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)
yym1163 := z.EncBinary()
_ = yym1163
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
}
if yyr1160 || yy2arr1160 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1165 := z.EncBinary()
_ = yym1165
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)
yym1166 := z.EncBinary()
_ = yym1166
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr1160 || yy2arr1160 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1160[2] {
if x.Mode == nil {
r.EncodeNil()
} else {
yy1168 := *x.Mode
yym1169 := z.EncBinary()
_ = yym1169
if false {
} else {
r.EncodeInt(int64(yy1168))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1160[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("mode"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Mode == nil {
r.EncodeNil()
} else {
yy1170 := *x.Mode
yym1171 := z.EncBinary()
_ = yym1171
if false {
} else {
r.EncodeInt(int64(yy1170))
}
}
}
}
if yyr1160 || yy2arr1160 {
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
yym1172 := z.DecBinary()
_ = yym1172
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1173 := r.ContainerType()
if yyct1173 == codecSelferValueTypeMap1234 {
yyl1173 := r.ReadMapStart()
if yyl1173 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1173, d)
}
} else if yyct1173 == codecSelferValueTypeArray1234 {
yyl1173 := r.ReadArrayStart()
if yyl1173 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1173, 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 yys1174Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1174Slc
var yyhl1174 bool = l >= 0
for yyj1174 := 0; ; yyj1174++ {
if yyhl1174 {
if yyj1174 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1174Slc = r.DecodeBytes(yys1174Slc, true, true)
yys1174 := string(yys1174Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1174 {
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)
}
yym1178 := z.DecBinary()
_ = yym1178
if false {
} else {
*((*int32)(x.Mode)) = int32(r.DecodeInt(32))
}
}
default:
z.DecStructFieldNotFound(-1, yys1174)
} // end switch yys1174
} // end for yyj1174
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 yyj1179 int
var yyb1179 bool
var yyhl1179 bool = l >= 0
yyj1179++
if yyhl1179 {
yyb1179 = yyj1179 > l
} else {
yyb1179 = r.CheckBreak()
}
if yyb1179 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
yyj1179++
if yyhl1179 {
yyb1179 = yyj1179 > l
} else {
yyb1179 = r.CheckBreak()
}
if yyb1179 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
yyj1179++
if yyhl1179 {
yyb1179 = yyj1179 > l
} else {
yyb1179 = r.CheckBreak()
}
if yyb1179 {
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)
}
yym1183 := z.DecBinary()
_ = yym1183
if false {
} else {
*((*int32)(x.Mode)) = int32(r.DecodeInt(32))
}
}
for {
yyj1179++
if yyhl1179 {
yyb1179 = yyj1179 > l
} else {
yyb1179 = r.CheckBreak()
}
if yyb1179 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1179-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 {
yym1184 := z.EncBinary()
_ = yym1184
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1185 := !z.EncBinary()
yy2arr1185 := z.EncBasicHandle().StructToArray
var yyq1185 [5]bool
_, _, _ = yysep1185, yyq1185, yy2arr1185
const yyr1185 bool = false
yyq1185[0] = x.Name != ""
yyq1185[1] = x.HostPort != 0
yyq1185[3] = x.Protocol != ""
yyq1185[4] = x.HostIP != ""
var yynn1185 int
if yyr1185 || yy2arr1185 {
r.EncodeArrayStart(5)
} else {
yynn1185 = 1
for _, b := range yyq1185 {
if b {
yynn1185++
}
}
r.EncodeMapStart(yynn1185)
yynn1185 = 0
}
if yyr1185 || yy2arr1185 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1185[0] {
yym1187 := z.EncBinary()
_ = yym1187
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1185[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1188 := z.EncBinary()
_ = yym1188
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
}
if yyr1185 || yy2arr1185 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1185[1] {
yym1190 := z.EncBinary()
_ = yym1190
if false {
} else {
r.EncodeInt(int64(x.HostPort))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1185[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostPort"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1191 := z.EncBinary()
_ = yym1191
if false {
} else {
r.EncodeInt(int64(x.HostPort))
}
}
}
if yyr1185 || yy2arr1185 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1193 := z.EncBinary()
_ = yym1193
if false {
} else {
r.EncodeInt(int64(x.ContainerPort))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("containerPort"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1194 := z.EncBinary()
_ = yym1194
if false {
} else {
r.EncodeInt(int64(x.ContainerPort))
}
}
if yyr1185 || yy2arr1185 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1185[3] {
x.Protocol.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1185[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("protocol"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Protocol.CodecEncodeSelf(e)
}
}
if yyr1185 || yy2arr1185 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1185[4] {
yym1197 := z.EncBinary()
_ = yym1197
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1185[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1198 := z.EncBinary()
_ = yym1198
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
}
}
}
if yyr1185 || yy2arr1185 {
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
yym1199 := z.DecBinary()
_ = yym1199
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1200 := r.ContainerType()
if yyct1200 == codecSelferValueTypeMap1234 {
yyl1200 := r.ReadMapStart()
if yyl1200 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1200, d)
}
} else if yyct1200 == codecSelferValueTypeArray1234 {
yyl1200 := r.ReadArrayStart()
if yyl1200 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1200, 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 yys1201Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1201Slc
var yyhl1201 bool = l >= 0
for yyj1201 := 0; ; yyj1201++ {
if yyhl1201 {
if yyj1201 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1201Slc = r.DecodeBytes(yys1201Slc, true, true)
yys1201 := string(yys1201Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1201 {
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, yys1201)
} // end switch yys1201
} // end for yyj1201
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 yyj1207 int
var yyb1207 bool
var yyhl1207 bool = l >= 0
yyj1207++
if yyhl1207 {
yyb1207 = yyj1207 > l
} else {
yyb1207 = r.CheckBreak()
}
if yyb1207 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1207++
if yyhl1207 {
yyb1207 = yyj1207 > l
} else {
yyb1207 = r.CheckBreak()
}
if yyb1207 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostPort = 0
} else {
x.HostPort = int32(r.DecodeInt(32))
}
yyj1207++
if yyhl1207 {
yyb1207 = yyj1207 > l
} else {
yyb1207 = r.CheckBreak()
}
if yyb1207 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerPort = 0
} else {
x.ContainerPort = int32(r.DecodeInt(32))
}
yyj1207++
if yyhl1207 {
yyb1207 = yyj1207 > l
} else {
yyb1207 = r.CheckBreak()
}
if yyb1207 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
yyj1207++
if yyhl1207 {
yyb1207 = yyj1207 > l
} else {
yyb1207 = r.CheckBreak()
}
if yyb1207 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostIP = ""
} else {
x.HostIP = string(r.DecodeString())
}
for {
yyj1207++
if yyhl1207 {
yyb1207 = yyj1207 > l
} else {
yyb1207 = r.CheckBreak()
}
if yyb1207 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1207-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 {
yym1213 := z.EncBinary()
_ = yym1213
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1214 := !z.EncBinary()
yy2arr1214 := z.EncBasicHandle().StructToArray
var yyq1214 [4]bool
_, _, _ = yysep1214, yyq1214, yy2arr1214
const yyr1214 bool = false
yyq1214[1] = x.ReadOnly != false
yyq1214[3] = x.SubPath != ""
var yynn1214 int
if yyr1214 || yy2arr1214 {
r.EncodeArrayStart(4)
} else {
yynn1214 = 2
for _, b := range yyq1214 {
if b {
yynn1214++
}
}
r.EncodeMapStart(yynn1214)
yynn1214 = 0
}
if yyr1214 || yy2arr1214 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1216 := z.EncBinary()
_ = yym1216
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1217 := z.EncBinary()
_ = yym1217
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1214 || yy2arr1214 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1214[1] {
yym1219 := z.EncBinary()
_ = yym1219
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1214[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1220 := z.EncBinary()
_ = yym1220
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr1214 || yy2arr1214 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1222 := z.EncBinary()
_ = yym1222
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)
yym1223 := z.EncBinary()
_ = yym1223
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.MountPath))
}
}
if yyr1214 || yy2arr1214 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1214[3] {
yym1225 := z.EncBinary()
_ = yym1225
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SubPath))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1214[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("subPath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1226 := z.EncBinary()
_ = yym1226
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SubPath))
}
}
}
if yyr1214 || yy2arr1214 {
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
yym1227 := z.DecBinary()
_ = yym1227
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1228 := r.ContainerType()
if yyct1228 == codecSelferValueTypeMap1234 {
yyl1228 := r.ReadMapStart()
if yyl1228 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1228, d)
}
} else if yyct1228 == codecSelferValueTypeArray1234 {
yyl1228 := r.ReadArrayStart()
if yyl1228 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1228, 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 yys1229Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1229Slc
var yyhl1229 bool = l >= 0
for yyj1229 := 0; ; yyj1229++ {
if yyhl1229 {
if yyj1229 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1229Slc = r.DecodeBytes(yys1229Slc, true, true)
yys1229 := string(yys1229Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1229 {
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, yys1229)
} // end switch yys1229
} // end for yyj1229
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 yyj1234 int
var yyb1234 bool
var yyhl1234 bool = l >= 0
yyj1234++
if yyhl1234 {
yyb1234 = yyj1234 > l
} else {
yyb1234 = r.CheckBreak()
}
if yyb1234 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1234++
if yyhl1234 {
yyb1234 = yyj1234 > l
} else {
yyb1234 = r.CheckBreak()
}
if yyb1234 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
yyj1234++
if yyhl1234 {
yyb1234 = yyj1234 > l
} else {
yyb1234 = r.CheckBreak()
}
if yyb1234 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.MountPath = ""
} else {
x.MountPath = string(r.DecodeString())
}
yyj1234++
if yyhl1234 {
yyb1234 = yyj1234 > l
} else {
yyb1234 = r.CheckBreak()
}
if yyb1234 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SubPath = ""
} else {
x.SubPath = string(r.DecodeString())
}
for {
yyj1234++
if yyhl1234 {
yyb1234 = yyj1234 > l
} else {
yyb1234 = r.CheckBreak()
}
if yyb1234 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1234-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 {
yym1239 := z.EncBinary()
_ = yym1239
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1240 := !z.EncBinary()
yy2arr1240 := z.EncBasicHandle().StructToArray
var yyq1240 [3]bool
_, _, _ = yysep1240, yyq1240, yy2arr1240
const yyr1240 bool = false
yyq1240[1] = x.Value != ""
yyq1240[2] = x.ValueFrom != nil
var yynn1240 int
if yyr1240 || yy2arr1240 {
r.EncodeArrayStart(3)
} else {
yynn1240 = 1
for _, b := range yyq1240 {
if b {
yynn1240++
}
}
r.EncodeMapStart(yynn1240)
yynn1240 = 0
}
if yyr1240 || yy2arr1240 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1242 := z.EncBinary()
_ = yym1242
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1243 := z.EncBinary()
_ = yym1243
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1240 || yy2arr1240 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1240[1] {
yym1245 := z.EncBinary()
_ = yym1245
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1240[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("value"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1246 := z.EncBinary()
_ = yym1246
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
}
}
if yyr1240 || yy2arr1240 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1240[2] {
if x.ValueFrom == nil {
r.EncodeNil()
} else {
x.ValueFrom.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1240[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 yyr1240 || yy2arr1240 {
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
yym1248 := z.DecBinary()
_ = yym1248
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1249 := r.ContainerType()
if yyct1249 == codecSelferValueTypeMap1234 {
yyl1249 := r.ReadMapStart()
if yyl1249 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1249, d)
}
} else if yyct1249 == codecSelferValueTypeArray1234 {
yyl1249 := r.ReadArrayStart()
if yyl1249 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1249, 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 yys1250Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1250Slc
var yyhl1250 bool = l >= 0
for yyj1250 := 0; ; yyj1250++ {
if yyhl1250 {
if yyj1250 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1250Slc = r.DecodeBytes(yys1250Slc, true, true)
yys1250 := string(yys1250Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1250 {
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, yys1250)
} // end switch yys1250
} // end for yyj1250
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 yyj1254 int
var yyb1254 bool
var yyhl1254 bool = l >= 0
yyj1254++
if yyhl1254 {
yyb1254 = yyj1254 > l
} else {
yyb1254 = r.CheckBreak()
}
if yyb1254 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1254++
if yyhl1254 {
yyb1254 = yyj1254 > l
} else {
yyb1254 = r.CheckBreak()
}
if yyb1254 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Value = ""
} else {
x.Value = string(r.DecodeString())
}
yyj1254++
if yyhl1254 {
yyb1254 = yyj1254 > l
} else {
yyb1254 = r.CheckBreak()
}
if yyb1254 {
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 {
yyj1254++
if yyhl1254 {
yyb1254 = yyj1254 > l
} else {
yyb1254 = r.CheckBreak()
}
if yyb1254 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1254-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 {
yym1258 := z.EncBinary()
_ = yym1258
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1259 := !z.EncBinary()
yy2arr1259 := z.EncBasicHandle().StructToArray
var yyq1259 [4]bool
_, _, _ = yysep1259, yyq1259, yy2arr1259
const yyr1259 bool = false
yyq1259[0] = x.FieldRef != nil
yyq1259[1] = x.ResourceFieldRef != nil
yyq1259[2] = x.ConfigMapKeyRef != nil
yyq1259[3] = x.SecretKeyRef != nil
var yynn1259 int
if yyr1259 || yy2arr1259 {
r.EncodeArrayStart(4)
} else {
yynn1259 = 0
for _, b := range yyq1259 {
if b {
yynn1259++
}
}
r.EncodeMapStart(yynn1259)
yynn1259 = 0
}
if yyr1259 || yy2arr1259 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1259[0] {
if x.FieldRef == nil {
r.EncodeNil()
} else {
x.FieldRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1259[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 yyr1259 || yy2arr1259 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1259[1] {
if x.ResourceFieldRef == nil {
r.EncodeNil()
} else {
x.ResourceFieldRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1259[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 yyr1259 || yy2arr1259 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1259[2] {
if x.ConfigMapKeyRef == nil {
r.EncodeNil()
} else {
x.ConfigMapKeyRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1259[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 yyr1259 || yy2arr1259 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1259[3] {
if x.SecretKeyRef == nil {
r.EncodeNil()
} else {
x.SecretKeyRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1259[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 yyr1259 || yy2arr1259 {
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
yym1264 := z.DecBinary()
_ = yym1264
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1265 := r.ContainerType()
if yyct1265 == codecSelferValueTypeMap1234 {
yyl1265 := r.ReadMapStart()
if yyl1265 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1265, d)
}
} else if yyct1265 == codecSelferValueTypeArray1234 {
yyl1265 := r.ReadArrayStart()
if yyl1265 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1265, 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 yys1266Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1266Slc
var yyhl1266 bool = l >= 0
for yyj1266 := 0; ; yyj1266++ {
if yyhl1266 {
if yyj1266 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1266Slc = r.DecodeBytes(yys1266Slc, true, true)
yys1266 := string(yys1266Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1266 {
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, yys1266)
} // end switch yys1266
} // end for yyj1266
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 yyj1271 int
var yyb1271 bool
var yyhl1271 bool = l >= 0
yyj1271++
if yyhl1271 {
yyb1271 = yyj1271 > l
} else {
yyb1271 = r.CheckBreak()
}
if yyb1271 {
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)
}
yyj1271++
if yyhl1271 {
yyb1271 = yyj1271 > l
} else {
yyb1271 = r.CheckBreak()
}
if yyb1271 {
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)
}
yyj1271++
if yyhl1271 {
yyb1271 = yyj1271 > l
} else {
yyb1271 = r.CheckBreak()
}
if yyb1271 {
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)
}
yyj1271++
if yyhl1271 {
yyb1271 = yyj1271 > l
} else {
yyb1271 = r.CheckBreak()
}
if yyb1271 {
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 {
yyj1271++
if yyhl1271 {
yyb1271 = yyj1271 > l
} else {
yyb1271 = r.CheckBreak()
}
if yyb1271 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1271-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 {
yym1276 := z.EncBinary()
_ = yym1276
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1277 := !z.EncBinary()
yy2arr1277 := z.EncBasicHandle().StructToArray
var yyq1277 [2]bool
_, _, _ = yysep1277, yyq1277, yy2arr1277
const yyr1277 bool = false
var yynn1277 int
if yyr1277 || yy2arr1277 {
r.EncodeArrayStart(2)
} else {
yynn1277 = 2
for _, b := range yyq1277 {
if b {
yynn1277++
}
}
r.EncodeMapStart(yynn1277)
yynn1277 = 0
}
if yyr1277 || yy2arr1277 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1279 := z.EncBinary()
_ = yym1279
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)
yym1280 := z.EncBinary()
_ = yym1280
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
if yyr1277 || yy2arr1277 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1282 := z.EncBinary()
_ = yym1282
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)
yym1283 := z.EncBinary()
_ = yym1283
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
}
}
if yyr1277 || yy2arr1277 {
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
yym1284 := z.DecBinary()
_ = yym1284
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1285 := r.ContainerType()
if yyct1285 == codecSelferValueTypeMap1234 {
yyl1285 := r.ReadMapStart()
if yyl1285 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1285, d)
}
} else if yyct1285 == codecSelferValueTypeArray1234 {
yyl1285 := r.ReadArrayStart()
if yyl1285 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1285, 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 yys1286Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1286Slc
var yyhl1286 bool = l >= 0
for yyj1286 := 0; ; yyj1286++ {
if yyhl1286 {
if yyj1286 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1286Slc = r.DecodeBytes(yys1286Slc, true, true)
yys1286 := string(yys1286Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1286 {
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, yys1286)
} // end switch yys1286
} // end for yyj1286
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 yyj1289 int
var yyb1289 bool
var yyhl1289 bool = l >= 0
yyj1289++
if yyhl1289 {
yyb1289 = yyj1289 > l
} else {
yyb1289 = r.CheckBreak()
}
if yyb1289 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1289++
if yyhl1289 {
yyb1289 = yyj1289 > l
} else {
yyb1289 = r.CheckBreak()
}
if yyb1289 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FieldPath = ""
} else {
x.FieldPath = string(r.DecodeString())
}
for {
yyj1289++
if yyhl1289 {
yyb1289 = yyj1289 > l
} else {
yyb1289 = r.CheckBreak()
}
if yyb1289 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1289-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 {
yym1292 := z.EncBinary()
_ = yym1292
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1293 := !z.EncBinary()
yy2arr1293 := z.EncBasicHandle().StructToArray
var yyq1293 [3]bool
_, _, _ = yysep1293, yyq1293, yy2arr1293
const yyr1293 bool = false
yyq1293[0] = x.ContainerName != ""
yyq1293[2] = true
var yynn1293 int
if yyr1293 || yy2arr1293 {
r.EncodeArrayStart(3)
} else {
yynn1293 = 1
for _, b := range yyq1293 {
if b {
yynn1293++
}
}
r.EncodeMapStart(yynn1293)
yynn1293 = 0
}
if yyr1293 || yy2arr1293 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1293[0] {
yym1295 := z.EncBinary()
_ = yym1295
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1293[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("containerName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1296 := z.EncBinary()
_ = yym1296
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName))
}
}
}
if yyr1293 || yy2arr1293 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1298 := z.EncBinary()
_ = yym1298
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)
yym1299 := z.EncBinary()
_ = yym1299
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Resource))
}
}
if yyr1293 || yy2arr1293 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1293[2] {
yy1301 := &x.Divisor
yym1302 := z.EncBinary()
_ = yym1302
if false {
} else if z.HasExtensions() && z.EncExt(yy1301) {
} else if !yym1302 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1301)
} else {
z.EncFallback(yy1301)
}
} else {
r.EncodeNil()
}
} else {
if yyq1293[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("divisor"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1303 := &x.Divisor
yym1304 := z.EncBinary()
_ = yym1304
if false {
} else if z.HasExtensions() && z.EncExt(yy1303) {
} else if !yym1304 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1303)
} else {
z.EncFallback(yy1303)
}
}
}
if yyr1293 || yy2arr1293 {
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
yym1305 := z.DecBinary()
_ = yym1305
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1306 := r.ContainerType()
if yyct1306 == codecSelferValueTypeMap1234 {
yyl1306 := r.ReadMapStart()
if yyl1306 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1306, d)
}
} else if yyct1306 == codecSelferValueTypeArray1234 {
yyl1306 := r.ReadArrayStart()
if yyl1306 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1306, 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 yys1307Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1307Slc
var yyhl1307 bool = l >= 0
for yyj1307 := 0; ; yyj1307++ {
if yyhl1307 {
if yyj1307 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1307Slc = r.DecodeBytes(yys1307Slc, true, true)
yys1307 := string(yys1307Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1307 {
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 {
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)
}
}
default:
z.DecStructFieldNotFound(-1, yys1307)
} // end switch yys1307
} // end for yyj1307
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 yyj1312 int
var yyb1312 bool
var yyhl1312 bool = l >= 0
yyj1312++
if yyhl1312 {
yyb1312 = yyj1312 > l
} else {
yyb1312 = r.CheckBreak()
}
if yyb1312 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerName = ""
} else {
x.ContainerName = string(r.DecodeString())
}
yyj1312++
if yyhl1312 {
yyb1312 = yyj1312 > l
} else {
yyb1312 = r.CheckBreak()
}
if yyb1312 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Resource = ""
} else {
x.Resource = string(r.DecodeString())
}
yyj1312++
if yyhl1312 {
yyb1312 = yyj1312 > l
} else {
yyb1312 = r.CheckBreak()
}
if yyb1312 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Divisor = pkg3_resource.Quantity{}
} else {
yyv1315 := &x.Divisor
yym1316 := z.DecBinary()
_ = yym1316
if false {
} else if z.HasExtensions() && z.DecExt(yyv1315) {
} else if !yym1316 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1315)
} else {
z.DecFallback(yyv1315, false)
}
}
for {
yyj1312++
if yyhl1312 {
yyb1312 = yyj1312 > l
} else {
yyb1312 = r.CheckBreak()
}
if yyb1312 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1312-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 {
yym1317 := z.EncBinary()
_ = yym1317
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1318 := !z.EncBinary()
yy2arr1318 := z.EncBasicHandle().StructToArray
var yyq1318 [2]bool
_, _, _ = yysep1318, yyq1318, yy2arr1318
const yyr1318 bool = false
var yynn1318 int
if yyr1318 || yy2arr1318 {
r.EncodeArrayStart(2)
} else {
yynn1318 = 2
for _, b := range yyq1318 {
if b {
yynn1318++
}
}
r.EncodeMapStart(yynn1318)
yynn1318 = 0
}
if yyr1318 || yy2arr1318 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1320 := z.EncBinary()
_ = yym1320
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)
yym1321 := z.EncBinary()
_ = yym1321
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1318 || yy2arr1318 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1323 := z.EncBinary()
_ = yym1323
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)
yym1324 := z.EncBinary()
_ = yym1324
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
}
if yyr1318 || yy2arr1318 {
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
yym1325 := z.DecBinary()
_ = yym1325
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1326 := r.ContainerType()
if yyct1326 == codecSelferValueTypeMap1234 {
yyl1326 := r.ReadMapStart()
if yyl1326 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1326, d)
}
} else if yyct1326 == codecSelferValueTypeArray1234 {
yyl1326 := r.ReadArrayStart()
if yyl1326 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1326, 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 yys1327Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1327Slc
var yyhl1327 bool = l >= 0
for yyj1327 := 0; ; yyj1327++ {
if yyhl1327 {
if yyj1327 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1327Slc = r.DecodeBytes(yys1327Slc, true, true)
yys1327 := string(yys1327Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1327 {
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, yys1327)
} // end switch yys1327
} // end for yyj1327
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 yyj1330 int
var yyb1330 bool
var yyhl1330 bool = l >= 0
yyj1330++
if yyhl1330 {
yyb1330 = yyj1330 > l
} else {
yyb1330 = r.CheckBreak()
}
if yyb1330 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1330++
if yyhl1330 {
yyb1330 = yyj1330 > l
} else {
yyb1330 = r.CheckBreak()
}
if yyb1330 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
for {
yyj1330++
if yyhl1330 {
yyb1330 = yyj1330 > l
} else {
yyb1330 = r.CheckBreak()
}
if yyb1330 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1330-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 {
yym1333 := z.EncBinary()
_ = yym1333
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1334 := !z.EncBinary()
yy2arr1334 := z.EncBasicHandle().StructToArray
var yyq1334 [2]bool
_, _, _ = yysep1334, yyq1334, yy2arr1334
const yyr1334 bool = false
var yynn1334 int
if yyr1334 || yy2arr1334 {
r.EncodeArrayStart(2)
} else {
yynn1334 = 2
for _, b := range yyq1334 {
if b {
yynn1334++
}
}
r.EncodeMapStart(yynn1334)
yynn1334 = 0
}
if yyr1334 || yy2arr1334 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1336 := z.EncBinary()
_ = yym1336
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)
yym1337 := z.EncBinary()
_ = yym1337
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1334 || yy2arr1334 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1339 := z.EncBinary()
_ = yym1339
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)
yym1340 := z.EncBinary()
_ = yym1340
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
}
if yyr1334 || yy2arr1334 {
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
yym1341 := z.DecBinary()
_ = yym1341
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1342 := r.ContainerType()
if yyct1342 == codecSelferValueTypeMap1234 {
yyl1342 := r.ReadMapStart()
if yyl1342 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1342, d)
}
} else if yyct1342 == codecSelferValueTypeArray1234 {
yyl1342 := r.ReadArrayStart()
if yyl1342 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1342, 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 yys1343Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1343Slc
var yyhl1343 bool = l >= 0
for yyj1343 := 0; ; yyj1343++ {
if yyhl1343 {
if yyj1343 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1343Slc = r.DecodeBytes(yys1343Slc, true, true)
yys1343 := string(yys1343Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1343 {
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, yys1343)
} // end switch yys1343
} // end for yyj1343
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 yyj1346 int
var yyb1346 bool
var yyhl1346 bool = l >= 0
yyj1346++
if yyhl1346 {
yyb1346 = yyj1346 > l
} else {
yyb1346 = r.CheckBreak()
}
if yyb1346 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1346++
if yyhl1346 {
yyb1346 = yyj1346 > l
} else {
yyb1346 = r.CheckBreak()
}
if yyb1346 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
for {
yyj1346++
if yyhl1346 {
yyb1346 = yyj1346 > l
} else {
yyb1346 = r.CheckBreak()
}
if yyb1346 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1346-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 {
yym1349 := z.EncBinary()
_ = yym1349
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1350 := !z.EncBinary()
yy2arr1350 := z.EncBasicHandle().StructToArray
var yyq1350 [2]bool
_, _, _ = yysep1350, yyq1350, yy2arr1350
const yyr1350 bool = false
var yynn1350 int
if yyr1350 || yy2arr1350 {
r.EncodeArrayStart(2)
} else {
yynn1350 = 2
for _, b := range yyq1350 {
if b {
yynn1350++
}
}
r.EncodeMapStart(yynn1350)
yynn1350 = 0
}
if yyr1350 || yy2arr1350 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1352 := z.EncBinary()
_ = yym1352
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)
yym1353 := z.EncBinary()
_ = yym1353
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1350 || yy2arr1350 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1355 := z.EncBinary()
_ = yym1355
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)
yym1356 := z.EncBinary()
_ = yym1356
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
}
if yyr1350 || yy2arr1350 {
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
yym1357 := z.DecBinary()
_ = yym1357
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1358 := r.ContainerType()
if yyct1358 == codecSelferValueTypeMap1234 {
yyl1358 := r.ReadMapStart()
if yyl1358 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1358, d)
}
} else if yyct1358 == codecSelferValueTypeArray1234 {
yyl1358 := r.ReadArrayStart()
if yyl1358 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1358, 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 yys1359Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1359Slc
var yyhl1359 bool = l >= 0
for yyj1359 := 0; ; yyj1359++ {
if yyhl1359 {
if yyj1359 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1359Slc = r.DecodeBytes(yys1359Slc, true, true)
yys1359 := string(yys1359Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1359 {
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, yys1359)
} // end switch yys1359
} // end for yyj1359
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 yyj1362 int
var yyb1362 bool
var yyhl1362 bool = l >= 0
yyj1362++
if yyhl1362 {
yyb1362 = yyj1362 > l
} else {
yyb1362 = r.CheckBreak()
}
if yyb1362 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1362++
if yyhl1362 {
yyb1362 = yyj1362 > l
} else {
yyb1362 = r.CheckBreak()
}
if yyb1362 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Value = ""
} else {
x.Value = string(r.DecodeString())
}
for {
yyj1362++
if yyhl1362 {
yyb1362 = yyj1362 > l
} else {
yyb1362 = r.CheckBreak()
}
if yyb1362 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1362-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 {
yym1365 := z.EncBinary()
_ = yym1365
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1366 := !z.EncBinary()
yy2arr1366 := z.EncBasicHandle().StructToArray
var yyq1366 [5]bool
_, _, _ = yysep1366, yyq1366, yy2arr1366
const yyr1366 bool = false
yyq1366[0] = x.Path != ""
yyq1366[1] = true
yyq1366[2] = x.Host != ""
yyq1366[3] = x.Scheme != ""
yyq1366[4] = len(x.HTTPHeaders) != 0
var yynn1366 int
if yyr1366 || yy2arr1366 {
r.EncodeArrayStart(5)
} else {
yynn1366 = 0
for _, b := range yyq1366 {
if b {
yynn1366++
}
}
r.EncodeMapStart(yynn1366)
yynn1366 = 0
}
if yyr1366 || yy2arr1366 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1366[0] {
yym1368 := z.EncBinary()
_ = yym1368
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1366[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("path"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1369 := z.EncBinary()
_ = yym1369
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
}
if yyr1366 || yy2arr1366 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1366[1] {
yy1371 := &x.Port
yym1372 := z.EncBinary()
_ = yym1372
if false {
} else if z.HasExtensions() && z.EncExt(yy1371) {
} else if !yym1372 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1371)
} else {
z.EncFallback(yy1371)
}
} else {
r.EncodeNil()
}
} else {
if yyq1366[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1373 := &x.Port
yym1374 := z.EncBinary()
_ = yym1374
if false {
} else if z.HasExtensions() && z.EncExt(yy1373) {
} else if !yym1374 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1373)
} else {
z.EncFallback(yy1373)
}
}
}
if yyr1366 || yy2arr1366 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1366[2] {
yym1376 := z.EncBinary()
_ = yym1376
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1366[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("host"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1377 := z.EncBinary()
_ = yym1377
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
}
}
}
if yyr1366 || yy2arr1366 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1366[3] {
x.Scheme.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1366[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("scheme"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Scheme.CodecEncodeSelf(e)
}
}
if yyr1366 || yy2arr1366 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1366[4] {
if x.HTTPHeaders == nil {
r.EncodeNil()
} else {
yym1380 := z.EncBinary()
_ = yym1380
if false {
} else {
h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1366[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("httpHeaders"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.HTTPHeaders == nil {
r.EncodeNil()
} else {
yym1381 := z.EncBinary()
_ = yym1381
if false {
} else {
h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e)
}
}
}
}
if yyr1366 || yy2arr1366 {
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
yym1382 := z.DecBinary()
_ = yym1382
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1383 := r.ContainerType()
if yyct1383 == codecSelferValueTypeMap1234 {
yyl1383 := r.ReadMapStart()
if yyl1383 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1383, d)
}
} else if yyct1383 == codecSelferValueTypeArray1234 {
yyl1383 := r.ReadArrayStart()
if yyl1383 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1383, 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 yys1384Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1384Slc
var yyhl1384 bool = l >= 0
for yyj1384 := 0; ; yyj1384++ {
if yyhl1384 {
if yyj1384 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1384Slc = r.DecodeBytes(yys1384Slc, true, true)
yys1384 := string(yys1384Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1384 {
case "path":
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
case "port":
if r.TryDecodeAsNil() {
x.Port = pkg4_intstr.IntOrString{}
} else {
yyv1386 := &x.Port
yym1387 := z.DecBinary()
_ = yym1387
if false {
} else if z.HasExtensions() && z.DecExt(yyv1386) {
} else if !yym1387 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1386)
} else {
z.DecFallback(yyv1386, 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 {
yyv1390 := &x.HTTPHeaders
yym1391 := z.DecBinary()
_ = yym1391
if false {
} else {
h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1390), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1384)
} // end switch yys1384
} // end for yyj1384
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 yyj1392 int
var yyb1392 bool
var yyhl1392 bool = l >= 0
yyj1392++
if yyhl1392 {
yyb1392 = yyj1392 > l
} else {
yyb1392 = r.CheckBreak()
}
if yyb1392 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
yyj1392++
if yyhl1392 {
yyb1392 = yyj1392 > l
} else {
yyb1392 = r.CheckBreak()
}
if yyb1392 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = pkg4_intstr.IntOrString{}
} else {
yyv1394 := &x.Port
yym1395 := z.DecBinary()
_ = yym1395
if false {
} else if z.HasExtensions() && z.DecExt(yyv1394) {
} else if !yym1395 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1394)
} else {
z.DecFallback(yyv1394, false)
}
}
yyj1392++
if yyhl1392 {
yyb1392 = yyj1392 > l
} else {
yyb1392 = r.CheckBreak()
}
if yyb1392 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Host = ""
} else {
x.Host = string(r.DecodeString())
}
yyj1392++
if yyhl1392 {
yyb1392 = yyj1392 > l
} else {
yyb1392 = r.CheckBreak()
}
if yyb1392 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Scheme = ""
} else {
x.Scheme = URIScheme(r.DecodeString())
}
yyj1392++
if yyhl1392 {
yyb1392 = yyj1392 > l
} else {
yyb1392 = r.CheckBreak()
}
if yyb1392 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HTTPHeaders = nil
} else {
yyv1398 := &x.HTTPHeaders
yym1399 := z.DecBinary()
_ = yym1399
if false {
} else {
h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1398), d)
}
}
for {
yyj1392++
if yyhl1392 {
yyb1392 = yyj1392 > l
} else {
yyb1392 = r.CheckBreak()
}
if yyb1392 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1392-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x URIScheme) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1400 := z.EncBinary()
_ = yym1400
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
yym1401 := z.DecBinary()
_ = yym1401
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 {
yym1402 := z.EncBinary()
_ = yym1402
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1403 := !z.EncBinary()
yy2arr1403 := z.EncBasicHandle().StructToArray
var yyq1403 [1]bool
_, _, _ = yysep1403, yyq1403, yy2arr1403
const yyr1403 bool = false
yyq1403[0] = true
var yynn1403 int
if yyr1403 || yy2arr1403 {
r.EncodeArrayStart(1)
} else {
yynn1403 = 0
for _, b := range yyq1403 {
if b {
yynn1403++
}
}
r.EncodeMapStart(yynn1403)
yynn1403 = 0
}
if yyr1403 || yy2arr1403 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1403[0] {
yy1405 := &x.Port
yym1406 := z.EncBinary()
_ = yym1406
if false {
} else if z.HasExtensions() && z.EncExt(yy1405) {
} else if !yym1406 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1405)
} else {
z.EncFallback(yy1405)
}
} else {
r.EncodeNil()
}
} else {
if yyq1403[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1407 := &x.Port
yym1408 := z.EncBinary()
_ = yym1408
if false {
} else if z.HasExtensions() && z.EncExt(yy1407) {
} else if !yym1408 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1407)
} else {
z.EncFallback(yy1407)
}
}
}
if yyr1403 || yy2arr1403 {
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
yym1409 := z.DecBinary()
_ = yym1409
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1410 := r.ContainerType()
if yyct1410 == codecSelferValueTypeMap1234 {
yyl1410 := r.ReadMapStart()
if yyl1410 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1410, d)
}
} else if yyct1410 == codecSelferValueTypeArray1234 {
yyl1410 := r.ReadArrayStart()
if yyl1410 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1410, 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 yys1411Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1411Slc
var yyhl1411 bool = l >= 0
for yyj1411 := 0; ; yyj1411++ {
if yyhl1411 {
if yyj1411 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1411Slc = r.DecodeBytes(yys1411Slc, true, true)
yys1411 := string(yys1411Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1411 {
case "port":
if r.TryDecodeAsNil() {
x.Port = pkg4_intstr.IntOrString{}
} else {
yyv1412 := &x.Port
yym1413 := z.DecBinary()
_ = yym1413
if false {
} else if z.HasExtensions() && z.DecExt(yyv1412) {
} else if !yym1413 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1412)
} else {
z.DecFallback(yyv1412, false)
}
}
default:
z.DecStructFieldNotFound(-1, yys1411)
} // end switch yys1411
} // end for yyj1411
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 yyj1414 int
var yyb1414 bool
var yyhl1414 bool = l >= 0
yyj1414++
if yyhl1414 {
yyb1414 = yyj1414 > l
} else {
yyb1414 = r.CheckBreak()
}
if yyb1414 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = pkg4_intstr.IntOrString{}
} else {
yyv1415 := &x.Port
yym1416 := z.DecBinary()
_ = yym1416
if false {
} else if z.HasExtensions() && z.DecExt(yyv1415) {
} else if !yym1416 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1415)
} else {
z.DecFallback(yyv1415, false)
}
}
for {
yyj1414++
if yyhl1414 {
yyb1414 = yyj1414 > l
} else {
yyb1414 = r.CheckBreak()
}
if yyb1414 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1414-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 {
yym1417 := z.EncBinary()
_ = yym1417
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1418 := !z.EncBinary()
yy2arr1418 := z.EncBasicHandle().StructToArray
var yyq1418 [1]bool
_, _, _ = yysep1418, yyq1418, yy2arr1418
const yyr1418 bool = false
yyq1418[0] = len(x.Command) != 0
var yynn1418 int
if yyr1418 || yy2arr1418 {
r.EncodeArrayStart(1)
} else {
yynn1418 = 0
for _, b := range yyq1418 {
if b {
yynn1418++
}
}
r.EncodeMapStart(yynn1418)
yynn1418 = 0
}
if yyr1418 || yy2arr1418 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1418[0] {
if x.Command == nil {
r.EncodeNil()
} else {
yym1420 := z.EncBinary()
_ = yym1420
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1418[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("command"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Command == nil {
r.EncodeNil()
} else {
yym1421 := z.EncBinary()
_ = yym1421
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
}
}
if yyr1418 || yy2arr1418 {
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
yym1422 := z.DecBinary()
_ = yym1422
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1423 := r.ContainerType()
if yyct1423 == codecSelferValueTypeMap1234 {
yyl1423 := r.ReadMapStart()
if yyl1423 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1423, d)
}
} else if yyct1423 == codecSelferValueTypeArray1234 {
yyl1423 := r.ReadArrayStart()
if yyl1423 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1423, 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 yys1424Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1424Slc
var yyhl1424 bool = l >= 0
for yyj1424 := 0; ; yyj1424++ {
if yyhl1424 {
if yyj1424 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1424Slc = r.DecodeBytes(yys1424Slc, true, true)
yys1424 := string(yys1424Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1424 {
case "command":
if r.TryDecodeAsNil() {
x.Command = nil
} else {
yyv1425 := &x.Command
yym1426 := z.DecBinary()
_ = yym1426
if false {
} else {
z.F.DecSliceStringX(yyv1425, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1424)
} // end switch yys1424
} // end for yyj1424
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 yyj1427 int
var yyb1427 bool
var yyhl1427 bool = l >= 0
yyj1427++
if yyhl1427 {
yyb1427 = yyj1427 > l
} else {
yyb1427 = r.CheckBreak()
}
if yyb1427 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Command = nil
} else {
yyv1428 := &x.Command
yym1429 := z.DecBinary()
_ = yym1429
if false {
} else {
z.F.DecSliceStringX(yyv1428, false, d)
}
}
for {
yyj1427++
if yyhl1427 {
yyb1427 = yyj1427 > l
} else {
yyb1427 = r.CheckBreak()
}
if yyb1427 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1427-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 {
yym1430 := z.EncBinary()
_ = yym1430
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1431 := !z.EncBinary()
yy2arr1431 := z.EncBasicHandle().StructToArray
var yyq1431 [8]bool
_, _, _ = yysep1431, yyq1431, yy2arr1431
const yyr1431 bool = false
yyq1431[0] = x.Handler.Exec != nil && x.Exec != nil
yyq1431[1] = x.Handler.HTTPGet != nil && x.HTTPGet != nil
yyq1431[2] = x.Handler.TCPSocket != nil && x.TCPSocket != nil
yyq1431[3] = x.InitialDelaySeconds != 0
yyq1431[4] = x.TimeoutSeconds != 0
yyq1431[5] = x.PeriodSeconds != 0
yyq1431[6] = x.SuccessThreshold != 0
yyq1431[7] = x.FailureThreshold != 0
var yynn1431 int
if yyr1431 || yy2arr1431 {
r.EncodeArrayStart(8)
} else {
yynn1431 = 0
for _, b := range yyq1431 {
if b {
yynn1431++
}
}
r.EncodeMapStart(yynn1431)
yynn1431 = 0
}
var yyn1432 bool
if x.Handler.Exec == nil {
yyn1432 = true
goto LABEL1432
}
LABEL1432:
if yyr1431 || yy2arr1431 {
if yyn1432 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1431[0] {
if x.Exec == nil {
r.EncodeNil()
} else {
x.Exec.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq1431[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("exec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn1432 {
r.EncodeNil()
} else {
if x.Exec == nil {
r.EncodeNil()
} else {
x.Exec.CodecEncodeSelf(e)
}
}
}
}
var yyn1433 bool
if x.Handler.HTTPGet == nil {
yyn1433 = true
goto LABEL1433
}
LABEL1433:
if yyr1431 || yy2arr1431 {
if yyn1433 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1431[1] {
if x.HTTPGet == nil {
r.EncodeNil()
} else {
x.HTTPGet.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq1431[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("httpGet"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn1433 {
r.EncodeNil()
} else {
if x.HTTPGet == nil {
r.EncodeNil()
} else {
x.HTTPGet.CodecEncodeSelf(e)
}
}
}
}
var yyn1434 bool
if x.Handler.TCPSocket == nil {
yyn1434 = true
goto LABEL1434
}
LABEL1434:
if yyr1431 || yy2arr1431 {
if yyn1434 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1431[2] {
if x.TCPSocket == nil {
r.EncodeNil()
} else {
x.TCPSocket.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq1431[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("tcpSocket"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn1434 {
r.EncodeNil()
} else {
if x.TCPSocket == nil {
r.EncodeNil()
} else {
x.TCPSocket.CodecEncodeSelf(e)
}
}
}
}
if yyr1431 || yy2arr1431 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1431[3] {
yym1436 := z.EncBinary()
_ = yym1436
if false {
} else {
r.EncodeInt(int64(x.InitialDelaySeconds))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1431[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("initialDelaySeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1437 := z.EncBinary()
_ = yym1437
if false {
} else {
r.EncodeInt(int64(x.InitialDelaySeconds))
}
}
}
if yyr1431 || yy2arr1431 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1431[4] {
yym1439 := z.EncBinary()
_ = yym1439
if false {
} else {
r.EncodeInt(int64(x.TimeoutSeconds))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1431[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1440 := z.EncBinary()
_ = yym1440
if false {
} else {
r.EncodeInt(int64(x.TimeoutSeconds))
}
}
}
if yyr1431 || yy2arr1431 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1431[5] {
yym1442 := z.EncBinary()
_ = yym1442
if false {
} else {
r.EncodeInt(int64(x.PeriodSeconds))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1431[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("periodSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1443 := z.EncBinary()
_ = yym1443
if false {
} else {
r.EncodeInt(int64(x.PeriodSeconds))
}
}
}
if yyr1431 || yy2arr1431 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1431[6] {
yym1445 := z.EncBinary()
_ = yym1445
if false {
} else {
r.EncodeInt(int64(x.SuccessThreshold))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1431[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("successThreshold"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1446 := z.EncBinary()
_ = yym1446
if false {
} else {
r.EncodeInt(int64(x.SuccessThreshold))
}
}
}
if yyr1431 || yy2arr1431 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1431[7] {
yym1448 := z.EncBinary()
_ = yym1448
if false {
} else {
r.EncodeInt(int64(x.FailureThreshold))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1431[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("failureThreshold"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1449 := z.EncBinary()
_ = yym1449
if false {
} else {
r.EncodeInt(int64(x.FailureThreshold))
}
}
}
if yyr1431 || yy2arr1431 {
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
yym1450 := z.DecBinary()
_ = yym1450
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1451 := r.ContainerType()
if yyct1451 == codecSelferValueTypeMap1234 {
yyl1451 := r.ReadMapStart()
if yyl1451 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1451, d)
}
} else if yyct1451 == codecSelferValueTypeArray1234 {
yyl1451 := r.ReadArrayStart()
if yyl1451 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1451, 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 yys1452Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1452Slc
var yyhl1452 bool = l >= 0
for yyj1452 := 0; ; yyj1452++ {
if yyhl1452 {
if yyj1452 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1452Slc = r.DecodeBytes(yys1452Slc, true, true)
yys1452 := string(yys1452Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1452 {
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, yys1452)
} // end switch yys1452
} // end for yyj1452
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 yyj1461 int
var yyb1461 bool
var yyhl1461 bool = l >= 0
if x.Handler.Exec == nil {
x.Handler.Exec = new(ExecAction)
}
yyj1461++
if yyhl1461 {
yyb1461 = yyj1461 > l
} else {
yyb1461 = r.CheckBreak()
}
if yyb1461 {
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)
}
yyj1461++
if yyhl1461 {
yyb1461 = yyj1461 > l
} else {
yyb1461 = r.CheckBreak()
}
if yyb1461 {
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)
}
yyj1461++
if yyhl1461 {
yyb1461 = yyj1461 > l
} else {
yyb1461 = r.CheckBreak()
}
if yyb1461 {
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)
}
yyj1461++
if yyhl1461 {
yyb1461 = yyj1461 > l
} else {
yyb1461 = r.CheckBreak()
}
if yyb1461 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.InitialDelaySeconds = 0
} else {
x.InitialDelaySeconds = int32(r.DecodeInt(32))
}
yyj1461++
if yyhl1461 {
yyb1461 = yyj1461 > l
} else {
yyb1461 = r.CheckBreak()
}
if yyb1461 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TimeoutSeconds = 0
} else {
x.TimeoutSeconds = int32(r.DecodeInt(32))
}
yyj1461++
if yyhl1461 {
yyb1461 = yyj1461 > l
} else {
yyb1461 = r.CheckBreak()
}
if yyb1461 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PeriodSeconds = 0
} else {
x.PeriodSeconds = int32(r.DecodeInt(32))
}
yyj1461++
if yyhl1461 {
yyb1461 = yyj1461 > l
} else {
yyb1461 = r.CheckBreak()
}
if yyb1461 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SuccessThreshold = 0
} else {
x.SuccessThreshold = int32(r.DecodeInt(32))
}
yyj1461++
if yyhl1461 {
yyb1461 = yyj1461 > l
} else {
yyb1461 = r.CheckBreak()
}
if yyb1461 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FailureThreshold = 0
} else {
x.FailureThreshold = int32(r.DecodeInt(32))
}
for {
yyj1461++
if yyhl1461 {
yyb1461 = yyj1461 > l
} else {
yyb1461 = r.CheckBreak()
}
if yyb1461 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1461-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x PullPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1470 := z.EncBinary()
_ = yym1470
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
yym1471 := z.DecBinary()
_ = yym1471
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
yym1472 := z.EncBinary()
_ = yym1472
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
yym1473 := z.DecBinary()
_ = yym1473
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 {
yym1474 := z.EncBinary()
_ = yym1474
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1475 := !z.EncBinary()
yy2arr1475 := z.EncBasicHandle().StructToArray
var yyq1475 [2]bool
_, _, _ = yysep1475, yyq1475, yy2arr1475
const yyr1475 bool = false
yyq1475[0] = len(x.Add) != 0
yyq1475[1] = len(x.Drop) != 0
var yynn1475 int
if yyr1475 || yy2arr1475 {
r.EncodeArrayStart(2)
} else {
yynn1475 = 0
for _, b := range yyq1475 {
if b {
yynn1475++
}
}
r.EncodeMapStart(yynn1475)
yynn1475 = 0
}
if yyr1475 || yy2arr1475 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1475[0] {
if x.Add == nil {
r.EncodeNil()
} else {
yym1477 := z.EncBinary()
_ = yym1477
if false {
} else {
h.encSliceCapability(([]Capability)(x.Add), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1475[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("add"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Add == nil {
r.EncodeNil()
} else {
yym1478 := z.EncBinary()
_ = yym1478
if false {
} else {
h.encSliceCapability(([]Capability)(x.Add), e)
}
}
}
}
if yyr1475 || yy2arr1475 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1475[1] {
if x.Drop == nil {
r.EncodeNil()
} else {
yym1480 := z.EncBinary()
_ = yym1480
if false {
} else {
h.encSliceCapability(([]Capability)(x.Drop), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1475[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("drop"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Drop == nil {
r.EncodeNil()
} else {
yym1481 := z.EncBinary()
_ = yym1481
if false {
} else {
h.encSliceCapability(([]Capability)(x.Drop), e)
}
}
}
}
if yyr1475 || yy2arr1475 {
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
yym1482 := z.DecBinary()
_ = yym1482
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1483 := r.ContainerType()
if yyct1483 == codecSelferValueTypeMap1234 {
yyl1483 := r.ReadMapStart()
if yyl1483 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1483, d)
}
} else if yyct1483 == codecSelferValueTypeArray1234 {
yyl1483 := r.ReadArrayStart()
if yyl1483 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1483, 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 yys1484Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1484Slc
var yyhl1484 bool = l >= 0
for yyj1484 := 0; ; yyj1484++ {
if yyhl1484 {
if yyj1484 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1484Slc = r.DecodeBytes(yys1484Slc, true, true)
yys1484 := string(yys1484Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1484 {
case "add":
if r.TryDecodeAsNil() {
x.Add = nil
} else {
yyv1485 := &x.Add
yym1486 := z.DecBinary()
_ = yym1486
if false {
} else {
h.decSliceCapability((*[]Capability)(yyv1485), d)
}
}
case "drop":
if r.TryDecodeAsNil() {
x.Drop = nil
} else {
yyv1487 := &x.Drop
yym1488 := z.DecBinary()
_ = yym1488
if false {
} else {
h.decSliceCapability((*[]Capability)(yyv1487), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1484)
} // end switch yys1484
} // end for yyj1484
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 yyj1489 int
var yyb1489 bool
var yyhl1489 bool = l >= 0
yyj1489++
if yyhl1489 {
yyb1489 = yyj1489 > l
} else {
yyb1489 = r.CheckBreak()
}
if yyb1489 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Add = nil
} else {
yyv1490 := &x.Add
yym1491 := z.DecBinary()
_ = yym1491
if false {
} else {
h.decSliceCapability((*[]Capability)(yyv1490), d)
}
}
yyj1489++
if yyhl1489 {
yyb1489 = yyj1489 > l
} else {
yyb1489 = r.CheckBreak()
}
if yyb1489 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Drop = nil
} else {
yyv1492 := &x.Drop
yym1493 := z.DecBinary()
_ = yym1493
if false {
} else {
h.decSliceCapability((*[]Capability)(yyv1492), d)
}
}
for {
yyj1489++
if yyhl1489 {
yyb1489 = yyj1489 > l
} else {
yyb1489 = r.CheckBreak()
}
if yyb1489 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1489-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 {
yym1494 := z.EncBinary()
_ = yym1494
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1495 := !z.EncBinary()
yy2arr1495 := z.EncBasicHandle().StructToArray
var yyq1495 [2]bool
_, _, _ = yysep1495, yyq1495, yy2arr1495
const yyr1495 bool = false
yyq1495[0] = len(x.Limits) != 0
yyq1495[1] = len(x.Requests) != 0
var yynn1495 int
if yyr1495 || yy2arr1495 {
r.EncodeArrayStart(2)
} else {
yynn1495 = 0
for _, b := range yyq1495 {
if b {
yynn1495++
}
}
r.EncodeMapStart(yynn1495)
yynn1495 = 0
}
if yyr1495 || yy2arr1495 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1495[0] {
if x.Limits == nil {
r.EncodeNil()
} else {
x.Limits.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1495[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 yyr1495 || yy2arr1495 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1495[1] {
if x.Requests == nil {
r.EncodeNil()
} else {
x.Requests.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1495[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 yyr1495 || yy2arr1495 {
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
yym1498 := z.DecBinary()
_ = yym1498
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1499 := r.ContainerType()
if yyct1499 == codecSelferValueTypeMap1234 {
yyl1499 := r.ReadMapStart()
if yyl1499 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1499, d)
}
} else if yyct1499 == codecSelferValueTypeArray1234 {
yyl1499 := r.ReadArrayStart()
if yyl1499 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1499, 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 yys1500Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1500Slc
var yyhl1500 bool = l >= 0
for yyj1500 := 0; ; yyj1500++ {
if yyhl1500 {
if yyj1500 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1500Slc = r.DecodeBytes(yys1500Slc, true, true)
yys1500 := string(yys1500Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1500 {
case "limits":
if r.TryDecodeAsNil() {
x.Limits = nil
} else {
yyv1501 := &x.Limits
yyv1501.CodecDecodeSelf(d)
}
case "requests":
if r.TryDecodeAsNil() {
x.Requests = nil
} else {
yyv1502 := &x.Requests
yyv1502.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1500)
} // end switch yys1500
} // end for yyj1500
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 yyj1503 int
var yyb1503 bool
var yyhl1503 bool = l >= 0
yyj1503++
if yyhl1503 {
yyb1503 = yyj1503 > l
} else {
yyb1503 = r.CheckBreak()
}
if yyb1503 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Limits = nil
} else {
yyv1504 := &x.Limits
yyv1504.CodecDecodeSelf(d)
}
yyj1503++
if yyhl1503 {
yyb1503 = yyj1503 > l
} else {
yyb1503 = r.CheckBreak()
}
if yyb1503 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Requests = nil
} else {
yyv1505 := &x.Requests
yyv1505.CodecDecodeSelf(d)
}
for {
yyj1503++
if yyhl1503 {
yyb1503 = yyj1503 > l
} else {
yyb1503 = r.CheckBreak()
}
if yyb1503 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1503-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 {
yym1506 := z.EncBinary()
_ = yym1506
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1507 := !z.EncBinary()
yy2arr1507 := z.EncBasicHandle().StructToArray
var yyq1507 [18]bool
_, _, _ = yysep1507, yyq1507, yy2arr1507
const yyr1507 bool = false
yyq1507[2] = len(x.Command) != 0
yyq1507[3] = len(x.Args) != 0
yyq1507[4] = x.WorkingDir != ""
yyq1507[5] = len(x.Ports) != 0
yyq1507[6] = len(x.Env) != 0
yyq1507[7] = true
yyq1507[8] = len(x.VolumeMounts) != 0
yyq1507[9] = x.LivenessProbe != nil
yyq1507[10] = x.ReadinessProbe != nil
yyq1507[11] = x.Lifecycle != nil
yyq1507[12] = x.TerminationMessagePath != ""
yyq1507[14] = x.SecurityContext != nil
yyq1507[15] = x.Stdin != false
yyq1507[16] = x.StdinOnce != false
yyq1507[17] = x.TTY != false
var yynn1507 int
if yyr1507 || yy2arr1507 {
r.EncodeArrayStart(18)
} else {
yynn1507 = 3
for _, b := range yyq1507 {
if b {
yynn1507++
}
}
r.EncodeMapStart(yynn1507)
yynn1507 = 0
}
if yyr1507 || yy2arr1507 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1509 := z.EncBinary()
_ = yym1509
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)
yym1510 := z.EncBinary()
_ = yym1510
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1507 || yy2arr1507 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1512 := z.EncBinary()
_ = yym1512
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)
yym1513 := z.EncBinary()
_ = yym1513
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Image))
}
}
if yyr1507 || yy2arr1507 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1507[2] {
if x.Command == nil {
r.EncodeNil()
} else {
yym1515 := z.EncBinary()
_ = yym1515
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1507[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("command"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Command == nil {
r.EncodeNil()
} else {
yym1516 := z.EncBinary()
_ = yym1516
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
}
}
if yyr1507 || yy2arr1507 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1507[3] {
if x.Args == nil {
r.EncodeNil()
} else {
yym1518 := z.EncBinary()
_ = yym1518
if false {
} else {
z.F.EncSliceStringV(x.Args, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1507[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("args"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Args == nil {
r.EncodeNil()
} else {
yym1519 := z.EncBinary()
_ = yym1519
if false {
} else {
z.F.EncSliceStringV(x.Args, false, e)
}
}
}
}
if yyr1507 || yy2arr1507 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1507[4] {
yym1521 := z.EncBinary()
_ = yym1521
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1507[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("workingDir"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1522 := z.EncBinary()
_ = yym1522
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir))
}
}
}
if yyr1507 || yy2arr1507 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1507[5] {
if x.Ports == nil {
r.EncodeNil()
} else {
yym1524 := z.EncBinary()
_ = yym1524
if false {
} else {
h.encSliceContainerPort(([]ContainerPort)(x.Ports), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1507[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ports"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Ports == nil {
r.EncodeNil()
} else {
yym1525 := z.EncBinary()
_ = yym1525
if false {
} else {
h.encSliceContainerPort(([]ContainerPort)(x.Ports), e)
}
}
}
}
if yyr1507 || yy2arr1507 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1507[6] {
if x.Env == nil {
r.EncodeNil()
} else {
yym1527 := z.EncBinary()
_ = yym1527
if false {
} else {
h.encSliceEnvVar(([]EnvVar)(x.Env), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1507[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("env"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Env == nil {
r.EncodeNil()
} else {
yym1528 := z.EncBinary()
_ = yym1528
if false {
} else {
h.encSliceEnvVar(([]EnvVar)(x.Env), e)
}
}
}
}
if yyr1507 || yy2arr1507 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1507[7] {
yy1530 := &x.Resources
yy1530.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1507[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("resources"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1531 := &x.Resources
yy1531.CodecEncodeSelf(e)
}
}
if yyr1507 || yy2arr1507 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1507[8] {
if x.VolumeMounts == nil {
r.EncodeNil()
} else {
yym1533 := z.EncBinary()
_ = yym1533
if false {
} else {
h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1507[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("volumeMounts"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.VolumeMounts == nil {
r.EncodeNil()
} else {
yym1534 := z.EncBinary()
_ = yym1534
if false {
} else {
h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e)
}
}
}
}
if yyr1507 || yy2arr1507 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1507[9] {
if x.LivenessProbe == nil {
r.EncodeNil()
} else {
x.LivenessProbe.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1507[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 yyr1507 || yy2arr1507 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1507[10] {
if x.ReadinessProbe == nil {
r.EncodeNil()
} else {
x.ReadinessProbe.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1507[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 yyr1507 || yy2arr1507 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1507[11] {
if x.Lifecycle == nil {
r.EncodeNil()
} else {
x.Lifecycle.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1507[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 yyr1507 || yy2arr1507 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1507[12] {
yym1539 := z.EncBinary()
_ = yym1539
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1507[12] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("terminationMessagePath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1540 := z.EncBinary()
_ = yym1540
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath))
}
}
}
if yyr1507 || yy2arr1507 {
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 yyr1507 || yy2arr1507 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1507[14] {
if x.SecurityContext == nil {
r.EncodeNil()
} else {
x.SecurityContext.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1507[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 yyr1507 || yy2arr1507 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1507[15] {
yym1544 := z.EncBinary()
_ = yym1544
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1507[15] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stdin"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1545 := z.EncBinary()
_ = yym1545
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
}
}
if yyr1507 || yy2arr1507 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1507[16] {
yym1547 := z.EncBinary()
_ = yym1547
if false {
} else {
r.EncodeBool(bool(x.StdinOnce))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1507[16] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stdinOnce"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1548 := z.EncBinary()
_ = yym1548
if false {
} else {
r.EncodeBool(bool(x.StdinOnce))
}
}
}
if yyr1507 || yy2arr1507 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1507[17] {
yym1550 := z.EncBinary()
_ = yym1550
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1507[17] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("tty"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1551 := z.EncBinary()
_ = yym1551
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
}
}
if yyr1507 || yy2arr1507 {
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
yym1552 := z.DecBinary()
_ = yym1552
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1553 := r.ContainerType()
if yyct1553 == codecSelferValueTypeMap1234 {
yyl1553 := r.ReadMapStart()
if yyl1553 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1553, d)
}
} else if yyct1553 == codecSelferValueTypeArray1234 {
yyl1553 := r.ReadArrayStart()
if yyl1553 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1553, 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 yys1554Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1554Slc
var yyhl1554 bool = l >= 0
for yyj1554 := 0; ; yyj1554++ {
if yyhl1554 {
if yyj1554 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1554Slc = r.DecodeBytes(yys1554Slc, true, true)
yys1554 := string(yys1554Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1554 {
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 {
yyv1557 := &x.Command
yym1558 := z.DecBinary()
_ = yym1558
if false {
} else {
z.F.DecSliceStringX(yyv1557, false, d)
}
}
case "args":
if r.TryDecodeAsNil() {
x.Args = nil
} else {
yyv1559 := &x.Args
yym1560 := z.DecBinary()
_ = yym1560
if false {
} else {
z.F.DecSliceStringX(yyv1559, false, d)
}
}
case "workingDir":
if r.TryDecodeAsNil() {
x.WorkingDir = ""
} else {
x.WorkingDir = string(r.DecodeString())
}
case "ports":
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv1562 := &x.Ports
yym1563 := z.DecBinary()
_ = yym1563
if false {
} else {
h.decSliceContainerPort((*[]ContainerPort)(yyv1562), d)
}
}
case "env":
if r.TryDecodeAsNil() {
x.Env = nil
} else {
yyv1564 := &x.Env
yym1565 := z.DecBinary()
_ = yym1565
if false {
} else {
h.decSliceEnvVar((*[]EnvVar)(yyv1564), d)
}
}
case "resources":
if r.TryDecodeAsNil() {
x.Resources = ResourceRequirements{}
} else {
yyv1566 := &x.Resources
yyv1566.CodecDecodeSelf(d)
}
case "volumeMounts":
if r.TryDecodeAsNil() {
x.VolumeMounts = nil
} else {
yyv1567 := &x.VolumeMounts
yym1568 := z.DecBinary()
_ = yym1568
if false {
} else {
h.decSliceVolumeMount((*[]VolumeMount)(yyv1567), 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, yys1554)
} // end switch yys1554
} // end for yyj1554
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 yyj1578 int
var yyb1578 bool
var yyhl1578 bool = l >= 0
yyj1578++
if yyhl1578 {
yyb1578 = yyj1578 > l
} else {
yyb1578 = r.CheckBreak()
}
if yyb1578 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1578++
if yyhl1578 {
yyb1578 = yyj1578 > l
} else {
yyb1578 = r.CheckBreak()
}
if yyb1578 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Image = ""
} else {
x.Image = string(r.DecodeString())
}
yyj1578++
if yyhl1578 {
yyb1578 = yyj1578 > l
} else {
yyb1578 = r.CheckBreak()
}
if yyb1578 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Command = nil
} else {
yyv1581 := &x.Command
yym1582 := z.DecBinary()
_ = yym1582
if false {
} else {
z.F.DecSliceStringX(yyv1581, false, d)
}
}
yyj1578++
if yyhl1578 {
yyb1578 = yyj1578 > l
} else {
yyb1578 = r.CheckBreak()
}
if yyb1578 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Args = nil
} else {
yyv1583 := &x.Args
yym1584 := z.DecBinary()
_ = yym1584
if false {
} else {
z.F.DecSliceStringX(yyv1583, false, d)
}
}
yyj1578++
if yyhl1578 {
yyb1578 = yyj1578 > l
} else {
yyb1578 = r.CheckBreak()
}
if yyb1578 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.WorkingDir = ""
} else {
x.WorkingDir = string(r.DecodeString())
}
yyj1578++
if yyhl1578 {
yyb1578 = yyj1578 > l
} else {
yyb1578 = r.CheckBreak()
}
if yyb1578 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv1586 := &x.Ports
yym1587 := z.DecBinary()
_ = yym1587
if false {
} else {
h.decSliceContainerPort((*[]ContainerPort)(yyv1586), d)
}
}
yyj1578++
if yyhl1578 {
yyb1578 = yyj1578 > l
} else {
yyb1578 = r.CheckBreak()
}
if yyb1578 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Env = nil
} else {
yyv1588 := &x.Env
yym1589 := z.DecBinary()
_ = yym1589
if false {
} else {
h.decSliceEnvVar((*[]EnvVar)(yyv1588), d)
}
}
yyj1578++
if yyhl1578 {
yyb1578 = yyj1578 > l
} else {
yyb1578 = r.CheckBreak()
}
if yyb1578 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Resources = ResourceRequirements{}
} else {
yyv1590 := &x.Resources
yyv1590.CodecDecodeSelf(d)
}
yyj1578++
if yyhl1578 {
yyb1578 = yyj1578 > l
} else {
yyb1578 = r.CheckBreak()
}
if yyb1578 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.VolumeMounts = nil
} else {
yyv1591 := &x.VolumeMounts
yym1592 := z.DecBinary()
_ = yym1592
if false {
} else {
h.decSliceVolumeMount((*[]VolumeMount)(yyv1591), d)
}
}
yyj1578++
if yyhl1578 {
yyb1578 = yyj1578 > l
} else {
yyb1578 = r.CheckBreak()
}
if yyb1578 {
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)
}
yyj1578++
if yyhl1578 {
yyb1578 = yyj1578 > l
} else {
yyb1578 = r.CheckBreak()
}
if yyb1578 {
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)
}
yyj1578++
if yyhl1578 {
yyb1578 = yyj1578 > l
} else {
yyb1578 = r.CheckBreak()
}
if yyb1578 {
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)
}
yyj1578++
if yyhl1578 {
yyb1578 = yyj1578 > l
} else {
yyb1578 = r.CheckBreak()
}
if yyb1578 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TerminationMessagePath = ""
} else {
x.TerminationMessagePath = string(r.DecodeString())
}
yyj1578++
if yyhl1578 {
yyb1578 = yyj1578 > l
} else {
yyb1578 = r.CheckBreak()
}
if yyb1578 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ImagePullPolicy = ""
} else {
x.ImagePullPolicy = PullPolicy(r.DecodeString())
}
yyj1578++
if yyhl1578 {
yyb1578 = yyj1578 > l
} else {
yyb1578 = r.CheckBreak()
}
if yyb1578 {
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)
}
yyj1578++
if yyhl1578 {
yyb1578 = yyj1578 > l
} else {
yyb1578 = r.CheckBreak()
}
if yyb1578 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdin = false
} else {
x.Stdin = bool(r.DecodeBool())
}
yyj1578++
if yyhl1578 {
yyb1578 = yyj1578 > l
} else {
yyb1578 = r.CheckBreak()
}
if yyb1578 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.StdinOnce = false
} else {
x.StdinOnce = bool(r.DecodeBool())
}
yyj1578++
if yyhl1578 {
yyb1578 = yyj1578 > l
} else {
yyb1578 = r.CheckBreak()
}
if yyb1578 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TTY = false
} else {
x.TTY = bool(r.DecodeBool())
}
for {
yyj1578++
if yyhl1578 {
yyb1578 = yyj1578 > l
} else {
yyb1578 = r.CheckBreak()
}
if yyb1578 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1578-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 {
yym1602 := z.EncBinary()
_ = yym1602
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1603 := !z.EncBinary()
yy2arr1603 := z.EncBasicHandle().StructToArray
var yyq1603 [3]bool
_, _, _ = yysep1603, yyq1603, yy2arr1603
const yyr1603 bool = false
yyq1603[0] = x.Exec != nil
yyq1603[1] = x.HTTPGet != nil
yyq1603[2] = x.TCPSocket != nil
var yynn1603 int
if yyr1603 || yy2arr1603 {
r.EncodeArrayStart(3)
} else {
yynn1603 = 0
for _, b := range yyq1603 {
if b {
yynn1603++
}
}
r.EncodeMapStart(yynn1603)
yynn1603 = 0
}
if yyr1603 || yy2arr1603 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1603[0] {
if x.Exec == nil {
r.EncodeNil()
} else {
x.Exec.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1603[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 yyr1603 || yy2arr1603 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1603[1] {
if x.HTTPGet == nil {
r.EncodeNil()
} else {
x.HTTPGet.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1603[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 yyr1603 || yy2arr1603 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1603[2] {
if x.TCPSocket == nil {
r.EncodeNil()
} else {
x.TCPSocket.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1603[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 yyr1603 || yy2arr1603 {
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
yym1607 := z.DecBinary()
_ = yym1607
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1608 := r.ContainerType()
if yyct1608 == codecSelferValueTypeMap1234 {
yyl1608 := r.ReadMapStart()
if yyl1608 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1608, d)
}
} else if yyct1608 == codecSelferValueTypeArray1234 {
yyl1608 := r.ReadArrayStart()
if yyl1608 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1608, 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 yys1609Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1609Slc
var yyhl1609 bool = l >= 0
for yyj1609 := 0; ; yyj1609++ {
if yyhl1609 {
if yyj1609 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1609Slc = r.DecodeBytes(yys1609Slc, true, true)
yys1609 := string(yys1609Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1609 {
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, yys1609)
} // end switch yys1609
} // end for yyj1609
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 yyj1613 int
var yyb1613 bool
var yyhl1613 bool = l >= 0
yyj1613++
if yyhl1613 {
yyb1613 = yyj1613 > l
} else {
yyb1613 = r.CheckBreak()
}
if yyb1613 {
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)
}
yyj1613++
if yyhl1613 {
yyb1613 = yyj1613 > l
} else {
yyb1613 = r.CheckBreak()
}
if yyb1613 {
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)
}
yyj1613++
if yyhl1613 {
yyb1613 = yyj1613 > l
} else {
yyb1613 = r.CheckBreak()
}
if yyb1613 {
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 {
yyj1613++
if yyhl1613 {
yyb1613 = yyj1613 > l
} else {
yyb1613 = r.CheckBreak()
}
if yyb1613 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1613-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 {
yym1617 := z.EncBinary()
_ = yym1617
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1618 := !z.EncBinary()
yy2arr1618 := z.EncBasicHandle().StructToArray
var yyq1618 [2]bool
_, _, _ = yysep1618, yyq1618, yy2arr1618
const yyr1618 bool = false
yyq1618[0] = x.PostStart != nil
yyq1618[1] = x.PreStop != nil
var yynn1618 int
if yyr1618 || yy2arr1618 {
r.EncodeArrayStart(2)
} else {
yynn1618 = 0
for _, b := range yyq1618 {
if b {
yynn1618++
}
}
r.EncodeMapStart(yynn1618)
yynn1618 = 0
}
if yyr1618 || yy2arr1618 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1618[0] {
if x.PostStart == nil {
r.EncodeNil()
} else {
x.PostStart.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1618[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 yyr1618 || yy2arr1618 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1618[1] {
if x.PreStop == nil {
r.EncodeNil()
} else {
x.PreStop.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1618[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 yyr1618 || yy2arr1618 {
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
yym1621 := z.DecBinary()
_ = yym1621
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1622 := r.ContainerType()
if yyct1622 == codecSelferValueTypeMap1234 {
yyl1622 := r.ReadMapStart()
if yyl1622 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1622, d)
}
} else if yyct1622 == codecSelferValueTypeArray1234 {
yyl1622 := r.ReadArrayStart()
if yyl1622 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1622, 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 yys1623Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1623Slc
var yyhl1623 bool = l >= 0
for yyj1623 := 0; ; yyj1623++ {
if yyhl1623 {
if yyj1623 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1623Slc = r.DecodeBytes(yys1623Slc, true, true)
yys1623 := string(yys1623Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1623 {
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, yys1623)
} // end switch yys1623
} // end for yyj1623
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 yyj1626 int
var yyb1626 bool
var yyhl1626 bool = l >= 0
yyj1626++
if yyhl1626 {
yyb1626 = yyj1626 > l
} else {
yyb1626 = r.CheckBreak()
}
if yyb1626 {
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)
}
yyj1626++
if yyhl1626 {
yyb1626 = yyj1626 > l
} else {
yyb1626 = r.CheckBreak()
}
if yyb1626 {
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 {
yyj1626++
if yyhl1626 {
yyb1626 = yyj1626 > l
} else {
yyb1626 = r.CheckBreak()
}
if yyb1626 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1626-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x ConditionStatus) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1629 := z.EncBinary()
_ = yym1629
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
yym1630 := z.DecBinary()
_ = yym1630
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 {
yym1631 := z.EncBinary()
_ = yym1631
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1632 := !z.EncBinary()
yy2arr1632 := z.EncBasicHandle().StructToArray
var yyq1632 [2]bool
_, _, _ = yysep1632, yyq1632, yy2arr1632
const yyr1632 bool = false
yyq1632[0] = x.Reason != ""
yyq1632[1] = x.Message != ""
var yynn1632 int
if yyr1632 || yy2arr1632 {
r.EncodeArrayStart(2)
} else {
yynn1632 = 0
for _, b := range yyq1632 {
if b {
yynn1632++
}
}
r.EncodeMapStart(yynn1632)
yynn1632 = 0
}
if yyr1632 || yy2arr1632 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1632[0] {
yym1634 := z.EncBinary()
_ = yym1634
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1632[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1635 := z.EncBinary()
_ = yym1635
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr1632 || yy2arr1632 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1632[1] {
yym1637 := z.EncBinary()
_ = yym1637
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1632[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1638 := z.EncBinary()
_ = yym1638
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr1632 || yy2arr1632 {
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
yym1639 := z.DecBinary()
_ = yym1639
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1640 := r.ContainerType()
if yyct1640 == codecSelferValueTypeMap1234 {
yyl1640 := r.ReadMapStart()
if yyl1640 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1640, d)
}
} else if yyct1640 == codecSelferValueTypeArray1234 {
yyl1640 := r.ReadArrayStart()
if yyl1640 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1640, 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 yys1641Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1641Slc
var yyhl1641 bool = l >= 0
for yyj1641 := 0; ; yyj1641++ {
if yyhl1641 {
if yyj1641 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1641Slc = r.DecodeBytes(yys1641Slc, true, true)
yys1641 := string(yys1641Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1641 {
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, yys1641)
} // end switch yys1641
} // end for yyj1641
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 yyj1644 int
var yyb1644 bool
var yyhl1644 bool = l >= 0
yyj1644++
if yyhl1644 {
yyb1644 = yyj1644 > l
} else {
yyb1644 = r.CheckBreak()
}
if yyb1644 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj1644++
if yyhl1644 {
yyb1644 = yyj1644 > l
} else {
yyb1644 = r.CheckBreak()
}
if yyb1644 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
for {
yyj1644++
if yyhl1644 {
yyb1644 = yyj1644 > l
} else {
yyb1644 = r.CheckBreak()
}
if yyb1644 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1644-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 {
yym1647 := z.EncBinary()
_ = yym1647
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1648 := !z.EncBinary()
yy2arr1648 := z.EncBasicHandle().StructToArray
var yyq1648 [1]bool
_, _, _ = yysep1648, yyq1648, yy2arr1648
const yyr1648 bool = false
yyq1648[0] = true
var yynn1648 int
if yyr1648 || yy2arr1648 {
r.EncodeArrayStart(1)
} else {
yynn1648 = 0
for _, b := range yyq1648 {
if b {
yynn1648++
}
}
r.EncodeMapStart(yynn1648)
yynn1648 = 0
}
if yyr1648 || yy2arr1648 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1648[0] {
yy1650 := &x.StartedAt
yym1651 := z.EncBinary()
_ = yym1651
if false {
} else if z.HasExtensions() && z.EncExt(yy1650) {
} else if yym1651 {
z.EncBinaryMarshal(yy1650)
} else if !yym1651 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1650)
} else {
z.EncFallback(yy1650)
}
} else {
r.EncodeNil()
}
} else {
if yyq1648[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("startedAt"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1652 := &x.StartedAt
yym1653 := z.EncBinary()
_ = yym1653
if false {
} else if z.HasExtensions() && z.EncExt(yy1652) {
} else if yym1653 {
z.EncBinaryMarshal(yy1652)
} else if !yym1653 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1652)
} else {
z.EncFallback(yy1652)
}
}
}
if yyr1648 || yy2arr1648 {
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
yym1654 := z.DecBinary()
_ = yym1654
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1655 := r.ContainerType()
if yyct1655 == codecSelferValueTypeMap1234 {
yyl1655 := r.ReadMapStart()
if yyl1655 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1655, d)
}
} else if yyct1655 == codecSelferValueTypeArray1234 {
yyl1655 := r.ReadArrayStart()
if yyl1655 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1655, 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 yys1656Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1656Slc
var yyhl1656 bool = l >= 0
for yyj1656 := 0; ; yyj1656++ {
if yyhl1656 {
if yyj1656 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1656Slc = r.DecodeBytes(yys1656Slc, true, true)
yys1656 := string(yys1656Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1656 {
case "startedAt":
if r.TryDecodeAsNil() {
x.StartedAt = pkg2_unversioned.Time{}
} else {
yyv1657 := &x.StartedAt
yym1658 := z.DecBinary()
_ = yym1658
if false {
} else if z.HasExtensions() && z.DecExt(yyv1657) {
} else if yym1658 {
z.DecBinaryUnmarshal(yyv1657)
} else if !yym1658 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1657)
} else {
z.DecFallback(yyv1657, false)
}
}
default:
z.DecStructFieldNotFound(-1, yys1656)
} // end switch yys1656
} // end for yyj1656
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 yyj1659 int
var yyb1659 bool
var yyhl1659 bool = l >= 0
yyj1659++
if yyhl1659 {
yyb1659 = yyj1659 > l
} else {
yyb1659 = r.CheckBreak()
}
if yyb1659 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.StartedAt = pkg2_unversioned.Time{}
} else {
yyv1660 := &x.StartedAt
yym1661 := z.DecBinary()
_ = yym1661
if false {
} else if z.HasExtensions() && z.DecExt(yyv1660) {
} else if yym1661 {
z.DecBinaryUnmarshal(yyv1660)
} else if !yym1661 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1660)
} else {
z.DecFallback(yyv1660, false)
}
}
for {
yyj1659++
if yyhl1659 {
yyb1659 = yyj1659 > l
} else {
yyb1659 = r.CheckBreak()
}
if yyb1659 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1659-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1662 := z.EncBinary()
_ = yym1662
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1663 := !z.EncBinary()
yy2arr1663 := z.EncBasicHandle().StructToArray
var yyq1663 [7]bool
_, _, _ = yysep1663, yyq1663, yy2arr1663
const yyr1663 bool = false
yyq1663[1] = x.Signal != 0
yyq1663[2] = x.Reason != ""
yyq1663[3] = x.Message != ""
yyq1663[4] = true
yyq1663[5] = true
yyq1663[6] = x.ContainerID != ""
var yynn1663 int
if yyr1663 || yy2arr1663 {
r.EncodeArrayStart(7)
} else {
yynn1663 = 1
for _, b := range yyq1663 {
if b {
yynn1663++
}
}
r.EncodeMapStart(yynn1663)
yynn1663 = 0
}
if yyr1663 || yy2arr1663 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1665 := z.EncBinary()
_ = yym1665
if false {
} else {
r.EncodeInt(int64(x.ExitCode))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("exitCode"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1666 := z.EncBinary()
_ = yym1666
if false {
} else {
r.EncodeInt(int64(x.ExitCode))
}
}
if yyr1663 || yy2arr1663 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1663[1] {
yym1668 := z.EncBinary()
_ = yym1668
if false {
} else {
r.EncodeInt(int64(x.Signal))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1663[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("signal"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1669 := z.EncBinary()
_ = yym1669
if false {
} else {
r.EncodeInt(int64(x.Signal))
}
}
}
if yyr1663 || yy2arr1663 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1663[2] {
yym1671 := z.EncBinary()
_ = yym1671
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1663[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1672 := z.EncBinary()
_ = yym1672
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr1663 || yy2arr1663 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1663[3] {
yym1674 := z.EncBinary()
_ = yym1674
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1663[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1675 := z.EncBinary()
_ = yym1675
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr1663 || yy2arr1663 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1663[4] {
yy1677 := &x.StartedAt
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 yyq1663[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("startedAt"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1679 := &x.StartedAt
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 yyr1663 || yy2arr1663 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1663[5] {
yy1682 := &x.FinishedAt
yym1683 := z.EncBinary()
_ = yym1683
if false {
} else if z.HasExtensions() && z.EncExt(yy1682) {
} else if yym1683 {
z.EncBinaryMarshal(yy1682)
} else if !yym1683 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1682)
} else {
z.EncFallback(yy1682)
}
} else {
r.EncodeNil()
}
} else {
if yyq1663[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("finishedAt"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1684 := &x.FinishedAt
yym1685 := z.EncBinary()
_ = yym1685
if false {
} else if z.HasExtensions() && z.EncExt(yy1684) {
} else if yym1685 {
z.EncBinaryMarshal(yy1684)
} else if !yym1685 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1684)
} else {
z.EncFallback(yy1684)
}
}
}
if yyr1663 || yy2arr1663 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1663[6] {
yym1687 := z.EncBinary()
_ = yym1687
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1663[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("containerID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1688 := z.EncBinary()
_ = yym1688
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
}
}
}
if yyr1663 || yy2arr1663 {
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
yym1689 := z.DecBinary()
_ = yym1689
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1690 := r.ContainerType()
if yyct1690 == codecSelferValueTypeMap1234 {
yyl1690 := r.ReadMapStart()
if yyl1690 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1690, d)
}
} else if yyct1690 == codecSelferValueTypeArray1234 {
yyl1690 := r.ReadArrayStart()
if yyl1690 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1690, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ContainerStateTerminated) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1691Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1691Slc
var yyhl1691 bool = l >= 0
for yyj1691 := 0; ; yyj1691++ {
if yyhl1691 {
if yyj1691 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1691Slc = r.DecodeBytes(yys1691Slc, true, true)
yys1691 := string(yys1691Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1691 {
case "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 {
yyv1696 := &x.StartedAt
yym1697 := z.DecBinary()
_ = yym1697
if false {
} else if z.HasExtensions() && z.DecExt(yyv1696) {
} else if yym1697 {
z.DecBinaryUnmarshal(yyv1696)
} else if !yym1697 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1696)
} else {
z.DecFallback(yyv1696, false)
}
}
case "finishedAt":
if r.TryDecodeAsNil() {
x.FinishedAt = pkg2_unversioned.Time{}
} else {
yyv1698 := &x.FinishedAt
yym1699 := z.DecBinary()
_ = yym1699
if false {
} else if z.HasExtensions() && z.DecExt(yyv1698) {
} else if yym1699 {
z.DecBinaryUnmarshal(yyv1698)
} else if !yym1699 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1698)
} else {
z.DecFallback(yyv1698, false)
}
}
case "containerID":
if r.TryDecodeAsNil() {
x.ContainerID = ""
} else {
x.ContainerID = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1691)
} // end switch yys1691
} // end for yyj1691
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1701 int
var yyb1701 bool
var yyhl1701 bool = l >= 0
yyj1701++
if yyhl1701 {
yyb1701 = yyj1701 > l
} else {
yyb1701 = r.CheckBreak()
}
if yyb1701 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ExitCode = 0
} else {
x.ExitCode = int32(r.DecodeInt(32))
}
yyj1701++
if yyhl1701 {
yyb1701 = yyj1701 > l
} else {
yyb1701 = r.CheckBreak()
}
if yyb1701 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Signal = 0
} else {
x.Signal = int32(r.DecodeInt(32))
}
yyj1701++
if yyhl1701 {
yyb1701 = yyj1701 > l
} else {
yyb1701 = r.CheckBreak()
}
if yyb1701 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj1701++
if yyhl1701 {
yyb1701 = yyj1701 > l
} else {
yyb1701 = r.CheckBreak()
}
if yyb1701 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
yyj1701++
if yyhl1701 {
yyb1701 = yyj1701 > l
} else {
yyb1701 = r.CheckBreak()
}
if yyb1701 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.StartedAt = pkg2_unversioned.Time{}
} else {
yyv1706 := &x.StartedAt
yym1707 := z.DecBinary()
_ = yym1707
if false {
} else if z.HasExtensions() && z.DecExt(yyv1706) {
} else if yym1707 {
z.DecBinaryUnmarshal(yyv1706)
} else if !yym1707 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1706)
} else {
z.DecFallback(yyv1706, false)
}
}
yyj1701++
if yyhl1701 {
yyb1701 = yyj1701 > l
} else {
yyb1701 = r.CheckBreak()
}
if yyb1701 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FinishedAt = pkg2_unversioned.Time{}
} else {
yyv1708 := &x.FinishedAt
yym1709 := z.DecBinary()
_ = yym1709
if false {
} else if z.HasExtensions() && z.DecExt(yyv1708) {
} else if yym1709 {
z.DecBinaryUnmarshal(yyv1708)
} else if !yym1709 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1708)
} else {
z.DecFallback(yyv1708, false)
}
}
yyj1701++
if yyhl1701 {
yyb1701 = yyj1701 > l
} else {
yyb1701 = r.CheckBreak()
}
if yyb1701 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerID = ""
} else {
x.ContainerID = string(r.DecodeString())
}
for {
yyj1701++
if yyhl1701 {
yyb1701 = yyj1701 > l
} else {
yyb1701 = r.CheckBreak()
}
if yyb1701 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1701-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 {
yym1711 := z.EncBinary()
_ = yym1711
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1712 := !z.EncBinary()
yy2arr1712 := z.EncBasicHandle().StructToArray
var yyq1712 [3]bool
_, _, _ = yysep1712, yyq1712, yy2arr1712
const yyr1712 bool = false
yyq1712[0] = x.Waiting != nil
yyq1712[1] = x.Running != nil
yyq1712[2] = x.Terminated != nil
var yynn1712 int
if yyr1712 || yy2arr1712 {
r.EncodeArrayStart(3)
} else {
yynn1712 = 0
for _, b := range yyq1712 {
if b {
yynn1712++
}
}
r.EncodeMapStart(yynn1712)
yynn1712 = 0
}
if yyr1712 || yy2arr1712 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1712[0] {
if x.Waiting == nil {
r.EncodeNil()
} else {
x.Waiting.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1712[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 yyr1712 || yy2arr1712 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1712[1] {
if x.Running == nil {
r.EncodeNil()
} else {
x.Running.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1712[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 yyr1712 || yy2arr1712 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1712[2] {
if x.Terminated == nil {
r.EncodeNil()
} else {
x.Terminated.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1712[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 yyr1712 || yy2arr1712 {
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
yym1716 := z.DecBinary()
_ = yym1716
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1717 := r.ContainerType()
if yyct1717 == codecSelferValueTypeMap1234 {
yyl1717 := r.ReadMapStart()
if yyl1717 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1717, d)
}
} else if yyct1717 == codecSelferValueTypeArray1234 {
yyl1717 := r.ReadArrayStart()
if yyl1717 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1717, 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 yys1718Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1718Slc
var yyhl1718 bool = l >= 0
for yyj1718 := 0; ; yyj1718++ {
if yyhl1718 {
if yyj1718 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1718Slc = r.DecodeBytes(yys1718Slc, true, true)
yys1718 := string(yys1718Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1718 {
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, yys1718)
} // end switch yys1718
} // end for yyj1718
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 yyj1722 int
var yyb1722 bool
var yyhl1722 bool = l >= 0
yyj1722++
if yyhl1722 {
yyb1722 = yyj1722 > l
} else {
yyb1722 = r.CheckBreak()
}
if yyb1722 {
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)
}
yyj1722++
if yyhl1722 {
yyb1722 = yyj1722 > l
} else {
yyb1722 = r.CheckBreak()
}
if yyb1722 {
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)
}
yyj1722++
if yyhl1722 {
yyb1722 = yyj1722 > l
} else {
yyb1722 = r.CheckBreak()
}
if yyb1722 {
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 {
yyj1722++
if yyhl1722 {
yyb1722 = yyj1722 > l
} else {
yyb1722 = r.CheckBreak()
}
if yyb1722 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1722-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 {
yym1726 := z.EncBinary()
_ = yym1726
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1727 := !z.EncBinary()
yy2arr1727 := z.EncBasicHandle().StructToArray
var yyq1727 [8]bool
_, _, _ = yysep1727, yyq1727, yy2arr1727
const yyr1727 bool = false
yyq1727[1] = true
yyq1727[2] = true
yyq1727[7] = x.ContainerID != ""
var yynn1727 int
if yyr1727 || yy2arr1727 {
r.EncodeArrayStart(8)
} else {
yynn1727 = 5
for _, b := range yyq1727 {
if b {
yynn1727++
}
}
r.EncodeMapStart(yynn1727)
yynn1727 = 0
}
if yyr1727 || yy2arr1727 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1729 := z.EncBinary()
_ = yym1729
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)
yym1730 := z.EncBinary()
_ = yym1730
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1727 || yy2arr1727 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1727[1] {
yy1732 := &x.State
yy1732.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1727[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("state"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1733 := &x.State
yy1733.CodecEncodeSelf(e)
}
}
if yyr1727 || yy2arr1727 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1727[2] {
yy1735 := &x.LastTerminationState
yy1735.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1727[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastState"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1736 := &x.LastTerminationState
yy1736.CodecEncodeSelf(e)
}
}
if yyr1727 || yy2arr1727 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1738 := z.EncBinary()
_ = yym1738
if false {
} else {
r.EncodeBool(bool(x.Ready))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ready"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1739 := z.EncBinary()
_ = yym1739
if false {
} else {
r.EncodeBool(bool(x.Ready))
}
}
if yyr1727 || yy2arr1727 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1741 := z.EncBinary()
_ = yym1741
if false {
} else {
r.EncodeInt(int64(x.RestartCount))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("restartCount"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1742 := z.EncBinary()
_ = yym1742
if false {
} else {
r.EncodeInt(int64(x.RestartCount))
}
}
if yyr1727 || yy2arr1727 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1744 := z.EncBinary()
_ = yym1744
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)
yym1745 := z.EncBinary()
_ = yym1745
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Image))
}
}
if yyr1727 || yy2arr1727 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1747 := z.EncBinary()
_ = yym1747
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)
yym1748 := z.EncBinary()
_ = yym1748
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ImageID))
}
}
if yyr1727 || yy2arr1727 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1727[7] {
yym1750 := z.EncBinary()
_ = yym1750
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1727[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("containerID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1751 := z.EncBinary()
_ = yym1751
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
}
}
}
if yyr1727 || yy2arr1727 {
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
yym1752 := z.DecBinary()
_ = yym1752
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1753 := r.ContainerType()
if yyct1753 == codecSelferValueTypeMap1234 {
yyl1753 := r.ReadMapStart()
if yyl1753 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1753, d)
}
} else if yyct1753 == codecSelferValueTypeArray1234 {
yyl1753 := r.ReadArrayStart()
if yyl1753 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1753, 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 yys1754Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1754Slc
var yyhl1754 bool = l >= 0
for yyj1754 := 0; ; yyj1754++ {
if yyhl1754 {
if yyj1754 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1754Slc = r.DecodeBytes(yys1754Slc, true, true)
yys1754 := string(yys1754Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1754 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "state":
if r.TryDecodeAsNil() {
x.State = ContainerState{}
} else {
yyv1756 := &x.State
yyv1756.CodecDecodeSelf(d)
}
case "lastState":
if r.TryDecodeAsNil() {
x.LastTerminationState = ContainerState{}
} else {
yyv1757 := &x.LastTerminationState
yyv1757.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, yys1754)
} // end switch yys1754
} // end for yyj1754
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 yyj1763 int
var yyb1763 bool
var yyhl1763 bool = l >= 0
yyj1763++
if yyhl1763 {
yyb1763 = yyj1763 > l
} else {
yyb1763 = r.CheckBreak()
}
if yyb1763 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1763++
if yyhl1763 {
yyb1763 = yyj1763 > l
} else {
yyb1763 = r.CheckBreak()
}
if yyb1763 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.State = ContainerState{}
} else {
yyv1765 := &x.State
yyv1765.CodecDecodeSelf(d)
}
yyj1763++
if yyhl1763 {
yyb1763 = yyj1763 > l
} else {
yyb1763 = r.CheckBreak()
}
if yyb1763 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastTerminationState = ContainerState{}
} else {
yyv1766 := &x.LastTerminationState
yyv1766.CodecDecodeSelf(d)
}
yyj1763++
if yyhl1763 {
yyb1763 = yyj1763 > l
} else {
yyb1763 = r.CheckBreak()
}
if yyb1763 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ready = false
} else {
x.Ready = bool(r.DecodeBool())
}
yyj1763++
if yyhl1763 {
yyb1763 = yyj1763 > l
} else {
yyb1763 = r.CheckBreak()
}
if yyb1763 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RestartCount = 0
} else {
x.RestartCount = int32(r.DecodeInt(32))
}
yyj1763++
if yyhl1763 {
yyb1763 = yyj1763 > l
} else {
yyb1763 = r.CheckBreak()
}
if yyb1763 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Image = ""
} else {
x.Image = string(r.DecodeString())
}
yyj1763++
if yyhl1763 {
yyb1763 = yyj1763 > l
} else {
yyb1763 = r.CheckBreak()
}
if yyb1763 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ImageID = ""
} else {
x.ImageID = string(r.DecodeString())
}
yyj1763++
if yyhl1763 {
yyb1763 = yyj1763 > l
} else {
yyb1763 = r.CheckBreak()
}
if yyb1763 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerID = ""
} else {
x.ContainerID = string(r.DecodeString())
}
for {
yyj1763++
if yyhl1763 {
yyb1763 = yyj1763 > l
} else {
yyb1763 = r.CheckBreak()
}
if yyb1763 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1763-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x PodPhase) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1772 := z.EncBinary()
_ = yym1772
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
yym1773 := z.DecBinary()
_ = yym1773
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
yym1774 := z.EncBinary()
_ = yym1774
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
yym1775 := z.DecBinary()
_ = yym1775
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 {
yym1776 := z.EncBinary()
_ = yym1776
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1777 := !z.EncBinary()
yy2arr1777 := z.EncBasicHandle().StructToArray
var yyq1777 [6]bool
_, _, _ = yysep1777, yyq1777, yy2arr1777
const yyr1777 bool = false
yyq1777[2] = true
yyq1777[3] = true
yyq1777[4] = x.Reason != ""
yyq1777[5] = x.Message != ""
var yynn1777 int
if yyr1777 || yy2arr1777 {
r.EncodeArrayStart(6)
} else {
yynn1777 = 2
for _, b := range yyq1777 {
if b {
yynn1777++
}
}
r.EncodeMapStart(yynn1777)
yynn1777 = 0
}
if yyr1777 || yy2arr1777 {
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 yyr1777 || yy2arr1777 {
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 yyr1777 || yy2arr1777 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1777[2] {
yy1781 := &x.LastProbeTime
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 yyq1777[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1783 := &x.LastProbeTime
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 yyr1777 || yy2arr1777 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1777[3] {
yy1786 := &x.LastTransitionTime
yym1787 := z.EncBinary()
_ = yym1787
if false {
} else if z.HasExtensions() && z.EncExt(yy1786) {
} else if yym1787 {
z.EncBinaryMarshal(yy1786)
} else if !yym1787 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1786)
} else {
z.EncFallback(yy1786)
}
} else {
r.EncodeNil()
}
} else {
if yyq1777[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1788 := &x.LastTransitionTime
yym1789 := z.EncBinary()
_ = yym1789
if false {
} else if z.HasExtensions() && z.EncExt(yy1788) {
} else if yym1789 {
z.EncBinaryMarshal(yy1788)
} else if !yym1789 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1788)
} else {
z.EncFallback(yy1788)
}
}
}
if yyr1777 || yy2arr1777 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1777[4] {
yym1791 := z.EncBinary()
_ = yym1791
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1777[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1792 := z.EncBinary()
_ = yym1792
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr1777 || yy2arr1777 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1777[5] {
yym1794 := z.EncBinary()
_ = yym1794
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1777[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1795 := z.EncBinary()
_ = yym1795
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr1777 || yy2arr1777 {
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
yym1796 := z.DecBinary()
_ = yym1796
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1797 := r.ContainerType()
if yyct1797 == codecSelferValueTypeMap1234 {
yyl1797 := r.ReadMapStart()
if yyl1797 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1797, d)
}
} else if yyct1797 == codecSelferValueTypeArray1234 {
yyl1797 := r.ReadArrayStart()
if yyl1797 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1797, 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 yys1798Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1798Slc
var yyhl1798 bool = l >= 0
for yyj1798 := 0; ; yyj1798++ {
if yyhl1798 {
if yyj1798 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1798Slc = r.DecodeBytes(yys1798Slc, true, true)
yys1798 := string(yys1798Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1798 {
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 {
yyv1801 := &x.LastProbeTime
yym1802 := z.DecBinary()
_ = yym1802
if false {
} else if z.HasExtensions() && z.DecExt(yyv1801) {
} else if yym1802 {
z.DecBinaryUnmarshal(yyv1801)
} else if !yym1802 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1801)
} else {
z.DecFallback(yyv1801, false)
}
}
case "lastTransitionTime":
if r.TryDecodeAsNil() {
x.LastTransitionTime = pkg2_unversioned.Time{}
} else {
yyv1803 := &x.LastTransitionTime
yym1804 := z.DecBinary()
_ = yym1804
if false {
} else if z.HasExtensions() && z.DecExt(yyv1803) {
} else if yym1804 {
z.DecBinaryUnmarshal(yyv1803)
} else if !yym1804 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1803)
} else {
z.DecFallback(yyv1803, 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, yys1798)
} // end switch yys1798
} // end for yyj1798
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 yyj1807 int
var yyb1807 bool
var yyhl1807 bool = l >= 0
yyj1807++
if yyhl1807 {
yyb1807 = yyj1807 > l
} else {
yyb1807 = r.CheckBreak()
}
if yyb1807 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = PodConditionType(r.DecodeString())
}
yyj1807++
if yyhl1807 {
yyb1807 = yyj1807 > l
} else {
yyb1807 = r.CheckBreak()
}
if yyb1807 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ""
} else {
x.Status = ConditionStatus(r.DecodeString())
}
yyj1807++
if yyhl1807 {
yyb1807 = yyj1807 > l
} else {
yyb1807 = r.CheckBreak()
}
if yyb1807 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastProbeTime = pkg2_unversioned.Time{}
} else {
yyv1810 := &x.LastProbeTime
yym1811 := z.DecBinary()
_ = yym1811
if false {
} else if z.HasExtensions() && z.DecExt(yyv1810) {
} else if yym1811 {
z.DecBinaryUnmarshal(yyv1810)
} else if !yym1811 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1810)
} else {
z.DecFallback(yyv1810, false)
}
}
yyj1807++
if yyhl1807 {
yyb1807 = yyj1807 > l
} else {
yyb1807 = r.CheckBreak()
}
if yyb1807 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastTransitionTime = pkg2_unversioned.Time{}
} else {
yyv1812 := &x.LastTransitionTime
yym1813 := z.DecBinary()
_ = yym1813
if false {
} else if z.HasExtensions() && z.DecExt(yyv1812) {
} else if yym1813 {
z.DecBinaryUnmarshal(yyv1812)
} else if !yym1813 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1812)
} else {
z.DecFallback(yyv1812, false)
}
}
yyj1807++
if yyhl1807 {
yyb1807 = yyj1807 > l
} else {
yyb1807 = r.CheckBreak()
}
if yyb1807 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj1807++
if yyhl1807 {
yyb1807 = yyj1807 > l
} else {
yyb1807 = r.CheckBreak()
}
if yyb1807 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
for {
yyj1807++
if yyhl1807 {
yyb1807 = yyj1807 > l
} else {
yyb1807 = r.CheckBreak()
}
if yyb1807 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1807-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1816 := z.EncBinary()
_ = yym1816
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
yym1817 := z.DecBinary()
_ = yym1817
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 {
yym1818 := z.EncBinary()
_ = yym1818
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1819 := !z.EncBinary()
yy2arr1819 := z.EncBasicHandle().StructToArray
var yyq1819 [4]bool
_, _, _ = yysep1819, yyq1819, yy2arr1819
const yyr1819 bool = false
yyq1819[0] = x.Kind != ""
yyq1819[1] = x.APIVersion != ""
yyq1819[2] = true
var yynn1819 int
if yyr1819 || yy2arr1819 {
r.EncodeArrayStart(4)
} else {
yynn1819 = 1
for _, b := range yyq1819 {
if b {
yynn1819++
}
}
r.EncodeMapStart(yynn1819)
yynn1819 = 0
}
if yyr1819 || yy2arr1819 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1819[0] {
yym1821 := z.EncBinary()
_ = yym1821
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1819[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1822 := z.EncBinary()
_ = yym1822
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr1819 || yy2arr1819 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1819[1] {
yym1824 := z.EncBinary()
_ = yym1824
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1819[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1825 := z.EncBinary()
_ = yym1825
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr1819 || yy2arr1819 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1819[2] {
yy1827 := &x.ListMeta
yym1828 := z.EncBinary()
_ = yym1828
if false {
} else if z.HasExtensions() && z.EncExt(yy1827) {
} else {
z.EncFallback(yy1827)
}
} else {
r.EncodeNil()
}
} else {
if yyq1819[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1829 := &x.ListMeta
yym1830 := z.EncBinary()
_ = yym1830
if false {
} else if z.HasExtensions() && z.EncExt(yy1829) {
} else {
z.EncFallback(yy1829)
}
}
}
if yyr1819 || yy2arr1819 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym1832 := z.EncBinary()
_ = yym1832
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 {
yym1833 := z.EncBinary()
_ = yym1833
if false {
} else {
h.encSlicePod(([]Pod)(x.Items), e)
}
}
}
if yyr1819 || yy2arr1819 {
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
yym1834 := z.DecBinary()
_ = yym1834
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1835 := r.ContainerType()
if yyct1835 == codecSelferValueTypeMap1234 {
yyl1835 := r.ReadMapStart()
if yyl1835 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1835, d)
}
} else if yyct1835 == codecSelferValueTypeArray1234 {
yyl1835 := r.ReadArrayStart()
if yyl1835 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1835, 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 yys1836Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1836Slc
var yyhl1836 bool = l >= 0
for yyj1836 := 0; ; yyj1836++ {
if yyhl1836 {
if yyj1836 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1836Slc = r.DecodeBytes(yys1836Slc, true, true)
yys1836 := string(yys1836Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1836 {
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 {
yyv1839 := &x.ListMeta
yym1840 := z.DecBinary()
_ = yym1840
if false {
} else if z.HasExtensions() && z.DecExt(yyv1839) {
} else {
z.DecFallback(yyv1839, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1841 := &x.Items
yym1842 := z.DecBinary()
_ = yym1842
if false {
} else {
h.decSlicePod((*[]Pod)(yyv1841), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1836)
} // end switch yys1836
} // end for yyj1836
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 yyj1843 int
var yyb1843 bool
var yyhl1843 bool = l >= 0
yyj1843++
if yyhl1843 {
yyb1843 = yyj1843 > l
} else {
yyb1843 = r.CheckBreak()
}
if yyb1843 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj1843++
if yyhl1843 {
yyb1843 = yyj1843 > l
} else {
yyb1843 = r.CheckBreak()
}
if yyb1843 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1843++
if yyhl1843 {
yyb1843 = yyj1843 > l
} else {
yyb1843 = r.CheckBreak()
}
if yyb1843 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv1846 := &x.ListMeta
yym1847 := z.DecBinary()
_ = yym1847
if false {
} else if z.HasExtensions() && z.DecExt(yyv1846) {
} else {
z.DecFallback(yyv1846, false)
}
}
yyj1843++
if yyhl1843 {
yyb1843 = yyj1843 > l
} else {
yyb1843 = r.CheckBreak()
}
if yyb1843 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1848 := &x.Items
yym1849 := z.DecBinary()
_ = yym1849
if false {
} else {
h.decSlicePod((*[]Pod)(yyv1848), d)
}
}
for {
yyj1843++
if yyhl1843 {
yyb1843 = yyj1843 > l
} else {
yyb1843 = r.CheckBreak()
}
if yyb1843 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1843-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x DNSPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1850 := z.EncBinary()
_ = yym1850
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
yym1851 := z.DecBinary()
_ = yym1851
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 {
yym1852 := z.EncBinary()
_ = yym1852
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1853 := !z.EncBinary()
yy2arr1853 := z.EncBasicHandle().StructToArray
var yyq1853 [1]bool
_, _, _ = yysep1853, yyq1853, yy2arr1853
const yyr1853 bool = false
var yynn1853 int
if yyr1853 || yy2arr1853 {
r.EncodeArrayStart(1)
} else {
yynn1853 = 1
for _, b := range yyq1853 {
if b {
yynn1853++
}
}
r.EncodeMapStart(yynn1853)
yynn1853 = 0
}
if yyr1853 || yy2arr1853 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.NodeSelectorTerms == nil {
r.EncodeNil()
} else {
yym1855 := z.EncBinary()
_ = yym1855
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 {
yym1856 := z.EncBinary()
_ = yym1856
if false {
} else {
h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e)
}
}
}
if yyr1853 || yy2arr1853 {
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
yym1857 := z.DecBinary()
_ = yym1857
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1858 := r.ContainerType()
if yyct1858 == codecSelferValueTypeMap1234 {
yyl1858 := r.ReadMapStart()
if yyl1858 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1858, d)
}
} else if yyct1858 == codecSelferValueTypeArray1234 {
yyl1858 := r.ReadArrayStart()
if yyl1858 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1858, 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 yys1859Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1859Slc
var yyhl1859 bool = l >= 0
for yyj1859 := 0; ; yyj1859++ {
if yyhl1859 {
if yyj1859 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1859Slc = r.DecodeBytes(yys1859Slc, true, true)
yys1859 := string(yys1859Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1859 {
case "nodeSelectorTerms":
if r.TryDecodeAsNil() {
x.NodeSelectorTerms = nil
} else {
yyv1860 := &x.NodeSelectorTerms
yym1861 := z.DecBinary()
_ = yym1861
if false {
} else {
h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1860), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1859)
} // end switch yys1859
} // end for yyj1859
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 yyj1862 int
var yyb1862 bool
var yyhl1862 bool = l >= 0
yyj1862++
if yyhl1862 {
yyb1862 = yyj1862 > l
} else {
yyb1862 = r.CheckBreak()
}
if yyb1862 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodeSelectorTerms = nil
} else {
yyv1863 := &x.NodeSelectorTerms
yym1864 := z.DecBinary()
_ = yym1864
if false {
} else {
h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1863), d)
}
}
for {
yyj1862++
if yyhl1862 {
yyb1862 = yyj1862 > l
} else {
yyb1862 = r.CheckBreak()
}
if yyb1862 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1862-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 {
yym1865 := z.EncBinary()
_ = yym1865
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1866 := !z.EncBinary()
yy2arr1866 := z.EncBasicHandle().StructToArray
var yyq1866 [1]bool
_, _, _ = yysep1866, yyq1866, yy2arr1866
const yyr1866 bool = false
var yynn1866 int
if yyr1866 || yy2arr1866 {
r.EncodeArrayStart(1)
} else {
yynn1866 = 1
for _, b := range yyq1866 {
if b {
yynn1866++
}
}
r.EncodeMapStart(yynn1866)
yynn1866 = 0
}
if yyr1866 || yy2arr1866 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.MatchExpressions == nil {
r.EncodeNil()
} else {
yym1868 := z.EncBinary()
_ = yym1868
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 {
yym1869 := z.EncBinary()
_ = yym1869
if false {
} else {
h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e)
}
}
}
if yyr1866 || yy2arr1866 {
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
yym1870 := z.DecBinary()
_ = yym1870
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1871 := r.ContainerType()
if yyct1871 == codecSelferValueTypeMap1234 {
yyl1871 := r.ReadMapStart()
if yyl1871 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1871, d)
}
} else if yyct1871 == codecSelferValueTypeArray1234 {
yyl1871 := r.ReadArrayStart()
if yyl1871 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1871, 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 yys1872Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1872Slc
var yyhl1872 bool = l >= 0
for yyj1872 := 0; ; yyj1872++ {
if yyhl1872 {
if yyj1872 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1872Slc = r.DecodeBytes(yys1872Slc, true, true)
yys1872 := string(yys1872Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1872 {
case "matchExpressions":
if r.TryDecodeAsNil() {
x.MatchExpressions = nil
} else {
yyv1873 := &x.MatchExpressions
yym1874 := z.DecBinary()
_ = yym1874
if false {
} else {
h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1873), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1872)
} // end switch yys1872
} // end for yyj1872
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 yyj1875 int
var yyb1875 bool
var yyhl1875 bool = l >= 0
yyj1875++
if yyhl1875 {
yyb1875 = yyj1875 > l
} else {
yyb1875 = r.CheckBreak()
}
if yyb1875 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.MatchExpressions = nil
} else {
yyv1876 := &x.MatchExpressions
yym1877 := z.DecBinary()
_ = yym1877
if false {
} else {
h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1876), d)
}
}
for {
yyj1875++
if yyhl1875 {
yyb1875 = yyj1875 > l
} else {
yyb1875 = r.CheckBreak()
}
if yyb1875 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1875-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 {
yym1878 := z.EncBinary()
_ = yym1878
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1879 := !z.EncBinary()
yy2arr1879 := z.EncBasicHandle().StructToArray
var yyq1879 [3]bool
_, _, _ = yysep1879, yyq1879, yy2arr1879
const yyr1879 bool = false
yyq1879[2] = len(x.Values) != 0
var yynn1879 int
if yyr1879 || yy2arr1879 {
r.EncodeArrayStart(3)
} else {
yynn1879 = 2
for _, b := range yyq1879 {
if b {
yynn1879++
}
}
r.EncodeMapStart(yynn1879)
yynn1879 = 0
}
if yyr1879 || yy2arr1879 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1881 := z.EncBinary()
_ = yym1881
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)
yym1882 := z.EncBinary()
_ = yym1882
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
}
if yyr1879 || yy2arr1879 {
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 yyr1879 || yy2arr1879 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1879[2] {
if x.Values == nil {
r.EncodeNil()
} else {
yym1885 := z.EncBinary()
_ = yym1885
if false {
} else {
z.F.EncSliceStringV(x.Values, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1879[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("values"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Values == nil {
r.EncodeNil()
} else {
yym1886 := z.EncBinary()
_ = yym1886
if false {
} else {
z.F.EncSliceStringV(x.Values, false, e)
}
}
}
}
if yyr1879 || yy2arr1879 {
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
yym1887 := z.DecBinary()
_ = yym1887
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1888 := r.ContainerType()
if yyct1888 == codecSelferValueTypeMap1234 {
yyl1888 := r.ReadMapStart()
if yyl1888 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1888, d)
}
} else if yyct1888 == codecSelferValueTypeArray1234 {
yyl1888 := r.ReadArrayStart()
if yyl1888 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1888, 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 yys1889Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1889Slc
var yyhl1889 bool = l >= 0
for yyj1889 := 0; ; yyj1889++ {
if yyhl1889 {
if yyj1889 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1889Slc = r.DecodeBytes(yys1889Slc, true, true)
yys1889 := string(yys1889Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1889 {
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 {
yyv1892 := &x.Values
yym1893 := z.DecBinary()
_ = yym1893
if false {
} else {
z.F.DecSliceStringX(yyv1892, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1889)
} // end switch yys1889
} // end for yyj1889
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 yyj1894 int
var yyb1894 bool
var yyhl1894 bool = l >= 0
yyj1894++
if yyhl1894 {
yyb1894 = yyj1894 > l
} else {
yyb1894 = r.CheckBreak()
}
if yyb1894 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
yyj1894++
if yyhl1894 {
yyb1894 = yyj1894 > l
} else {
yyb1894 = r.CheckBreak()
}
if yyb1894 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Operator = ""
} else {
x.Operator = NodeSelectorOperator(r.DecodeString())
}
yyj1894++
if yyhl1894 {
yyb1894 = yyj1894 > l
} else {
yyb1894 = r.CheckBreak()
}
if yyb1894 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Values = nil
} else {
yyv1897 := &x.Values
yym1898 := z.DecBinary()
_ = yym1898
if false {
} else {
z.F.DecSliceStringX(yyv1897, false, d)
}
}
for {
yyj1894++
if yyhl1894 {
yyb1894 = yyj1894 > l
} else {
yyb1894 = r.CheckBreak()
}
if yyb1894 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1894-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x NodeSelectorOperator) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1899 := z.EncBinary()
_ = yym1899
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
yym1900 := z.DecBinary()
_ = yym1900
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 {
yym1901 := z.EncBinary()
_ = yym1901
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1902 := !z.EncBinary()
yy2arr1902 := z.EncBasicHandle().StructToArray
var yyq1902 [3]bool
_, _, _ = yysep1902, yyq1902, yy2arr1902
const yyr1902 bool = false
yyq1902[0] = x.NodeAffinity != nil
yyq1902[1] = x.PodAffinity != nil
yyq1902[2] = x.PodAntiAffinity != nil
var yynn1902 int
if yyr1902 || yy2arr1902 {
r.EncodeArrayStart(3)
} else {
yynn1902 = 0
for _, b := range yyq1902 {
if b {
yynn1902++
}
}
r.EncodeMapStart(yynn1902)
yynn1902 = 0
}
if yyr1902 || yy2arr1902 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1902[0] {
if x.NodeAffinity == nil {
r.EncodeNil()
} else {
x.NodeAffinity.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1902[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 yyr1902 || yy2arr1902 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1902[1] {
if x.PodAffinity == nil {
r.EncodeNil()
} else {
x.PodAffinity.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1902[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 yyr1902 || yy2arr1902 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1902[2] {
if x.PodAntiAffinity == nil {
r.EncodeNil()
} else {
x.PodAntiAffinity.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1902[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 yyr1902 || yy2arr1902 {
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
yym1906 := z.DecBinary()
_ = yym1906
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1907 := r.ContainerType()
if yyct1907 == codecSelferValueTypeMap1234 {
yyl1907 := r.ReadMapStart()
if yyl1907 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1907, d)
}
} else if yyct1907 == codecSelferValueTypeArray1234 {
yyl1907 := r.ReadArrayStart()
if yyl1907 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1907, 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 yys1908Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1908Slc
var yyhl1908 bool = l >= 0
for yyj1908 := 0; ; yyj1908++ {
if yyhl1908 {
if yyj1908 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1908Slc = r.DecodeBytes(yys1908Slc, true, true)
yys1908 := string(yys1908Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1908 {
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, yys1908)
} // end switch yys1908
} // end for yyj1908
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 yyj1912 int
var yyb1912 bool
var yyhl1912 bool = l >= 0
yyj1912++
if yyhl1912 {
yyb1912 = yyj1912 > l
} else {
yyb1912 = r.CheckBreak()
}
if yyb1912 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.NodeAffinity != nil {
x.NodeAffinity = nil
}
} else {
if x.NodeAffinity == nil {
x.NodeAffinity = new(NodeAffinity)
}
x.NodeAffinity.CodecDecodeSelf(d)
}
yyj1912++
if yyhl1912 {
yyb1912 = yyj1912 > l
} else {
yyb1912 = r.CheckBreak()
}
if yyb1912 {
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)
}
yyj1912++
if yyhl1912 {
yyb1912 = yyj1912 > l
} else {
yyb1912 = r.CheckBreak()
}
if yyb1912 {
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 {
yyj1912++
if yyhl1912 {
yyb1912 = yyj1912 > l
} else {
yyb1912 = r.CheckBreak()
}
if yyb1912 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1912-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1916 := z.EncBinary()
_ = yym1916
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1917 := !z.EncBinary()
yy2arr1917 := z.EncBasicHandle().StructToArray
var yyq1917 [2]bool
_, _, _ = yysep1917, yyq1917, yy2arr1917
const yyr1917 bool = false
yyq1917[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0
yyq1917[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0
var yynn1917 int
if yyr1917 || yy2arr1917 {
r.EncodeArrayStart(2)
} else {
yynn1917 = 0
for _, b := range yyq1917 {
if b {
yynn1917++
}
}
r.EncodeMapStart(yynn1917)
yynn1917 = 0
}
if yyr1917 || yy2arr1917 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1917[0] {
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1919 := z.EncBinary()
_ = yym1919
if false {
} else {
h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1917[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1920 := z.EncBinary()
_ = yym1920
if false {
} else {
h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e)
}
}
}
}
if yyr1917 || yy2arr1917 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1917[1] {
if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1922 := z.EncBinary()
_ = yym1922
if false {
} else {
h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1917[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1923 := z.EncBinary()
_ = yym1923
if false {
} else {
h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
}
}
}
}
if yyr1917 || yy2arr1917 {
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
yym1924 := z.DecBinary()
_ = yym1924
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1925 := r.ContainerType()
if yyct1925 == codecSelferValueTypeMap1234 {
yyl1925 := r.ReadMapStart()
if yyl1925 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1925, d)
}
} else if yyct1925 == codecSelferValueTypeArray1234 {
yyl1925 := r.ReadArrayStart()
if yyl1925 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1925, 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 yys1926Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1926Slc
var yyhl1926 bool = l >= 0
for yyj1926 := 0; ; yyj1926++ {
if yyhl1926 {
if yyj1926 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1926Slc = r.DecodeBytes(yys1926Slc, true, true)
yys1926 := string(yys1926Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1926 {
case "requiredDuringSchedulingIgnoredDuringExecution":
if r.TryDecodeAsNil() {
x.RequiredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv1927 := &x.RequiredDuringSchedulingIgnoredDuringExecution
yym1928 := z.DecBinary()
_ = yym1928
if false {
} else {
h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1927), d)
}
}
case "preferredDuringSchedulingIgnoredDuringExecution":
if r.TryDecodeAsNil() {
x.PreferredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv1929 := &x.PreferredDuringSchedulingIgnoredDuringExecution
yym1930 := z.DecBinary()
_ = yym1930
if false {
} else {
h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1929), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1926)
} // end switch yys1926
} // end for yyj1926
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 yyj1931 int
var yyb1931 bool
var yyhl1931 bool = l >= 0
yyj1931++
if yyhl1931 {
yyb1931 = yyj1931 > l
} else {
yyb1931 = r.CheckBreak()
}
if yyb1931 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RequiredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv1932 := &x.RequiredDuringSchedulingIgnoredDuringExecution
yym1933 := z.DecBinary()
_ = yym1933
if false {
} else {
h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1932), d)
}
}
yyj1931++
if yyhl1931 {
yyb1931 = yyj1931 > l
} else {
yyb1931 = r.CheckBreak()
}
if yyb1931 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PreferredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv1934 := &x.PreferredDuringSchedulingIgnoredDuringExecution
yym1935 := z.DecBinary()
_ = yym1935
if false {
} else {
h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1934), d)
}
}
for {
yyj1931++
if yyhl1931 {
yyb1931 = yyj1931 > l
} else {
yyb1931 = r.CheckBreak()
}
if yyb1931 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1931-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 {
yym1936 := z.EncBinary()
_ = yym1936
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1937 := !z.EncBinary()
yy2arr1937 := z.EncBasicHandle().StructToArray
var yyq1937 [2]bool
_, _, _ = yysep1937, yyq1937, yy2arr1937
const yyr1937 bool = false
yyq1937[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0
yyq1937[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0
var yynn1937 int
if yyr1937 || yy2arr1937 {
r.EncodeArrayStart(2)
} else {
yynn1937 = 0
for _, b := range yyq1937 {
if b {
yynn1937++
}
}
r.EncodeMapStart(yynn1937)
yynn1937 = 0
}
if yyr1937 || yy2arr1937 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1937[0] {
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1939 := z.EncBinary()
_ = yym1939
if false {
} else {
h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1937[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1940 := z.EncBinary()
_ = yym1940
if false {
} else {
h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e)
}
}
}
}
if yyr1937 || yy2arr1937 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1937[1] {
if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1942 := z.EncBinary()
_ = yym1942
if false {
} else {
h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1937[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1943 := z.EncBinary()
_ = yym1943
if false {
} else {
h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
}
}
}
}
if yyr1937 || yy2arr1937 {
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
yym1944 := z.DecBinary()
_ = yym1944
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1945 := r.ContainerType()
if yyct1945 == codecSelferValueTypeMap1234 {
yyl1945 := r.ReadMapStart()
if yyl1945 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1945, d)
}
} else if yyct1945 == codecSelferValueTypeArray1234 {
yyl1945 := r.ReadArrayStart()
if yyl1945 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1945, 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 yys1946Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1946Slc
var yyhl1946 bool = l >= 0
for yyj1946 := 0; ; yyj1946++ {
if yyhl1946 {
if yyj1946 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1946Slc = r.DecodeBytes(yys1946Slc, true, true)
yys1946 := string(yys1946Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1946 {
case "requiredDuringSchedulingIgnoredDuringExecution":
if r.TryDecodeAsNil() {
x.RequiredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv1947 := &x.RequiredDuringSchedulingIgnoredDuringExecution
yym1948 := z.DecBinary()
_ = yym1948
if false {
} else {
h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1947), d)
}
}
case "preferredDuringSchedulingIgnoredDuringExecution":
if r.TryDecodeAsNil() {
x.PreferredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv1949 := &x.PreferredDuringSchedulingIgnoredDuringExecution
yym1950 := z.DecBinary()
_ = yym1950
if false {
} else {
h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1949), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1946)
} // end switch yys1946
} // end for yyj1946
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 yyj1951 int
var yyb1951 bool
var yyhl1951 bool = l >= 0
yyj1951++
if yyhl1951 {
yyb1951 = yyj1951 > l
} else {
yyb1951 = r.CheckBreak()
}
if yyb1951 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RequiredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv1952 := &x.RequiredDuringSchedulingIgnoredDuringExecution
yym1953 := z.DecBinary()
_ = yym1953
if false {
} else {
h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1952), d)
}
}
yyj1951++
if yyhl1951 {
yyb1951 = yyj1951 > l
} else {
yyb1951 = r.CheckBreak()
}
if yyb1951 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PreferredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv1954 := &x.PreferredDuringSchedulingIgnoredDuringExecution
yym1955 := z.DecBinary()
_ = yym1955
if false {
} else {
h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1954), d)
}
}
for {
yyj1951++
if yyhl1951 {
yyb1951 = yyj1951 > l
} else {
yyb1951 = r.CheckBreak()
}
if yyb1951 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1951-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 {
yym1956 := z.EncBinary()
_ = yym1956
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1957 := !z.EncBinary()
yy2arr1957 := z.EncBasicHandle().StructToArray
var yyq1957 [2]bool
_, _, _ = yysep1957, yyq1957, yy2arr1957
const yyr1957 bool = false
var yynn1957 int
if yyr1957 || yy2arr1957 {
r.EncodeArrayStart(2)
} else {
yynn1957 = 2
for _, b := range yyq1957 {
if b {
yynn1957++
}
}
r.EncodeMapStart(yynn1957)
yynn1957 = 0
}
if yyr1957 || yy2arr1957 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1959 := z.EncBinary()
_ = yym1959
if false {
} else {
r.EncodeInt(int64(x.Weight))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("weight"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1960 := z.EncBinary()
_ = yym1960
if false {
} else {
r.EncodeInt(int64(x.Weight))
}
}
if yyr1957 || yy2arr1957 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy1962 := &x.PodAffinityTerm
yy1962.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("podAffinityTerm"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1963 := &x.PodAffinityTerm
yy1963.CodecEncodeSelf(e)
}
if yyr1957 || yy2arr1957 {
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
yym1964 := z.DecBinary()
_ = yym1964
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1965 := r.ContainerType()
if yyct1965 == codecSelferValueTypeMap1234 {
yyl1965 := r.ReadMapStart()
if yyl1965 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1965, d)
}
} else if yyct1965 == codecSelferValueTypeArray1234 {
yyl1965 := r.ReadArrayStart()
if yyl1965 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1965, 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 yys1966Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1966Slc
var yyhl1966 bool = l >= 0
for yyj1966 := 0; ; yyj1966++ {
if yyhl1966 {
if yyj1966 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1966Slc = r.DecodeBytes(yys1966Slc, true, true)
yys1966 := string(yys1966Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1966 {
case "weight":
if r.TryDecodeAsNil() {
x.Weight = 0
} else {
x.Weight = int(r.DecodeInt(codecSelferBitsize1234))
}
case "podAffinityTerm":
if r.TryDecodeAsNil() {
x.PodAffinityTerm = PodAffinityTerm{}
} else {
yyv1968 := &x.PodAffinityTerm
yyv1968.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1966)
} // end switch yys1966
} // end for yyj1966
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 yyj1969 int
var yyb1969 bool
var yyhl1969 bool = l >= 0
yyj1969++
if yyhl1969 {
yyb1969 = yyj1969 > l
} else {
yyb1969 = r.CheckBreak()
}
if yyb1969 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Weight = 0
} else {
x.Weight = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1969++
if yyhl1969 {
yyb1969 = yyj1969 > l
} else {
yyb1969 = r.CheckBreak()
}
if yyb1969 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PodAffinityTerm = PodAffinityTerm{}
} else {
yyv1971 := &x.PodAffinityTerm
yyv1971.CodecDecodeSelf(d)
}
for {
yyj1969++
if yyhl1969 {
yyb1969 = yyj1969 > l
} else {
yyb1969 = r.CheckBreak()
}
if yyb1969 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1969-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 {
yym1972 := z.EncBinary()
_ = yym1972
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1973 := !z.EncBinary()
yy2arr1973 := z.EncBasicHandle().StructToArray
var yyq1973 [3]bool
_, _, _ = yysep1973, yyq1973, yy2arr1973
const yyr1973 bool = false
yyq1973[0] = x.LabelSelector != nil
yyq1973[2] = x.TopologyKey != ""
var yynn1973 int
if yyr1973 || yy2arr1973 {
r.EncodeArrayStart(3)
} else {
yynn1973 = 1
for _, b := range yyq1973 {
if b {
yynn1973++
}
}
r.EncodeMapStart(yynn1973)
yynn1973 = 0
}
if yyr1973 || yy2arr1973 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1973[0] {
if x.LabelSelector == nil {
r.EncodeNil()
} else {
yym1975 := z.EncBinary()
_ = yym1975
if false {
} else if z.HasExtensions() && z.EncExt(x.LabelSelector) {
} else {
z.EncFallback(x.LabelSelector)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1973[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("labelSelector"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.LabelSelector == nil {
r.EncodeNil()
} else {
yym1976 := z.EncBinary()
_ = yym1976
if false {
} else if z.HasExtensions() && z.EncExt(x.LabelSelector) {
} else {
z.EncFallback(x.LabelSelector)
}
}
}
}
if yyr1973 || yy2arr1973 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Namespaces == nil {
r.EncodeNil()
} else {
yym1978 := z.EncBinary()
_ = yym1978
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 {
yym1979 := z.EncBinary()
_ = yym1979
if false {
} else {
z.F.EncSliceStringV(x.Namespaces, false, e)
}
}
}
if yyr1973 || yy2arr1973 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1973[2] {
yym1981 := z.EncBinary()
_ = yym1981
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1973[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("topologyKey"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1982 := z.EncBinary()
_ = yym1982
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey))
}
}
}
if yyr1973 || yy2arr1973 {
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
yym1983 := z.DecBinary()
_ = yym1983
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1984 := r.ContainerType()
if yyct1984 == codecSelferValueTypeMap1234 {
yyl1984 := r.ReadMapStart()
if yyl1984 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1984, d)
}
} else if yyct1984 == codecSelferValueTypeArray1234 {
yyl1984 := r.ReadArrayStart()
if yyl1984 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1984, 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 yys1985Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1985Slc
var yyhl1985 bool = l >= 0
for yyj1985 := 0; ; yyj1985++ {
if yyhl1985 {
if yyj1985 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1985Slc = r.DecodeBytes(yys1985Slc, true, true)
yys1985 := string(yys1985Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1985 {
case "labelSelector":
if r.TryDecodeAsNil() {
if x.LabelSelector != nil {
x.LabelSelector = nil
}
} else {
if x.LabelSelector == nil {
x.LabelSelector = new(pkg2_unversioned.LabelSelector)
}
yym1987 := z.DecBinary()
_ = yym1987
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 {
yyv1988 := &x.Namespaces
yym1989 := z.DecBinary()
_ = yym1989
if false {
} else {
z.F.DecSliceStringX(yyv1988, false, d)
}
}
case "topologyKey":
if r.TryDecodeAsNil() {
x.TopologyKey = ""
} else {
x.TopologyKey = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1985)
} // end switch yys1985
} // end for yyj1985
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 yyj1991 int
var yyb1991 bool
var yyhl1991 bool = l >= 0
yyj1991++
if yyhl1991 {
yyb1991 = yyj1991 > l
} else {
yyb1991 = r.CheckBreak()
}
if yyb1991 {
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)
}
yym1993 := z.DecBinary()
_ = yym1993
if false {
} else if z.HasExtensions() && z.DecExt(x.LabelSelector) {
} else {
z.DecFallback(x.LabelSelector, false)
}
}
yyj1991++
if yyhl1991 {
yyb1991 = yyj1991 > l
} else {
yyb1991 = r.CheckBreak()
}
if yyb1991 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Namespaces = nil
} else {
yyv1994 := &x.Namespaces
yym1995 := z.DecBinary()
_ = yym1995
if false {
} else {
z.F.DecSliceStringX(yyv1994, false, d)
}
}
yyj1991++
if yyhl1991 {
yyb1991 = yyj1991 > l
} else {
yyb1991 = r.CheckBreak()
}
if yyb1991 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TopologyKey = ""
} else {
x.TopologyKey = string(r.DecodeString())
}
for {
yyj1991++
if yyhl1991 {
yyb1991 = yyj1991 > l
} else {
yyb1991 = r.CheckBreak()
}
if yyb1991 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1991-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 {
yym1997 := z.EncBinary()
_ = yym1997
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1998 := !z.EncBinary()
yy2arr1998 := z.EncBasicHandle().StructToArray
var yyq1998 [2]bool
_, _, _ = yysep1998, yyq1998, yy2arr1998
const yyr1998 bool = false
yyq1998[0] = x.RequiredDuringSchedulingIgnoredDuringExecution != nil
yyq1998[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0
var yynn1998 int
if yyr1998 || yy2arr1998 {
r.EncodeArrayStart(2)
} else {
yynn1998 = 0
for _, b := range yyq1998 {
if b {
yynn1998++
}
}
r.EncodeMapStart(yynn1998)
yynn1998 = 0
}
if yyr1998 || yy2arr1998 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1998[0] {
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
x.RequiredDuringSchedulingIgnoredDuringExecution.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1998[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 yyr1998 || yy2arr1998 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1998[1] {
if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym2001 := z.EncBinary()
_ = yym2001
if false {
} else {
h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1998[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym2002 := z.EncBinary()
_ = yym2002
if false {
} else {
h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
}
}
}
}
if yyr1998 || yy2arr1998 {
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
yym2003 := z.DecBinary()
_ = yym2003
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2004 := r.ContainerType()
if yyct2004 == codecSelferValueTypeMap1234 {
yyl2004 := r.ReadMapStart()
if yyl2004 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2004, d)
}
} else if yyct2004 == codecSelferValueTypeArray1234 {
yyl2004 := r.ReadArrayStart()
if yyl2004 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2004, 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 yys2005Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2005Slc
var yyhl2005 bool = l >= 0
for yyj2005 := 0; ; yyj2005++ {
if yyhl2005 {
if yyj2005 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2005Slc = r.DecodeBytes(yys2005Slc, true, true)
yys2005 := string(yys2005Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2005 {
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 {
yyv2007 := &x.PreferredDuringSchedulingIgnoredDuringExecution
yym2008 := z.DecBinary()
_ = yym2008
if false {
} else {
h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv2007), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2005)
} // end switch yys2005
} // end for yyj2005
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 yyj2009 int
var yyb2009 bool
var yyhl2009 bool = l >= 0
yyj2009++
if yyhl2009 {
yyb2009 = yyj2009 > l
} else {
yyb2009 = r.CheckBreak()
}
if yyb2009 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.RequiredDuringSchedulingIgnoredDuringExecution != nil {
x.RequiredDuringSchedulingIgnoredDuringExecution = nil
}
} else {
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
x.RequiredDuringSchedulingIgnoredDuringExecution = new(NodeSelector)
}
x.RequiredDuringSchedulingIgnoredDuringExecution.CodecDecodeSelf(d)
}
yyj2009++
if yyhl2009 {
yyb2009 = yyj2009 > l
} else {
yyb2009 = r.CheckBreak()
}
if yyb2009 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PreferredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv2011 := &x.PreferredDuringSchedulingIgnoredDuringExecution
yym2012 := z.DecBinary()
_ = yym2012
if false {
} else {
h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv2011), d)
}
}
for {
yyj2009++
if yyhl2009 {
yyb2009 = yyj2009 > l
} else {
yyb2009 = r.CheckBreak()
}
if yyb2009 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2009-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PreferredSchedulingTerm) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2013 := z.EncBinary()
_ = yym2013
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2014 := !z.EncBinary()
yy2arr2014 := z.EncBasicHandle().StructToArray
var yyq2014 [2]bool
_, _, _ = yysep2014, yyq2014, yy2arr2014
const yyr2014 bool = false
var yynn2014 int
if yyr2014 || yy2arr2014 {
r.EncodeArrayStart(2)
} else {
yynn2014 = 2
for _, b := range yyq2014 {
if b {
yynn2014++
}
}
r.EncodeMapStart(yynn2014)
yynn2014 = 0
}
if yyr2014 || yy2arr2014 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2016 := z.EncBinary()
_ = yym2016
if false {
} else {
r.EncodeInt(int64(x.Weight))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("weight"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2017 := z.EncBinary()
_ = yym2017
if false {
} else {
r.EncodeInt(int64(x.Weight))
}
}
if yyr2014 || yy2arr2014 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy2019 := &x.Preference
yy2019.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("preference"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2020 := &x.Preference
yy2020.CodecEncodeSelf(e)
}
if yyr2014 || yy2arr2014 {
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
yym2021 := z.DecBinary()
_ = yym2021
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2022 := r.ContainerType()
if yyct2022 == codecSelferValueTypeMap1234 {
yyl2022 := r.ReadMapStart()
if yyl2022 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2022, d)
}
} else if yyct2022 == codecSelferValueTypeArray1234 {
yyl2022 := r.ReadArrayStart()
if yyl2022 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2022, 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 yys2023Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2023Slc
var yyhl2023 bool = l >= 0
for yyj2023 := 0; ; yyj2023++ {
if yyhl2023 {
if yyj2023 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2023Slc = r.DecodeBytes(yys2023Slc, true, true)
yys2023 := string(yys2023Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2023 {
case "weight":
if r.TryDecodeAsNil() {
x.Weight = 0
} else {
x.Weight = int32(r.DecodeInt(32))
}
case "preference":
if r.TryDecodeAsNil() {
x.Preference = NodeSelectorTerm{}
} else {
yyv2025 := &x.Preference
yyv2025.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2023)
} // end switch yys2023
} // end for yyj2023
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 yyj2026 int
var yyb2026 bool
var yyhl2026 bool = l >= 0
yyj2026++
if yyhl2026 {
yyb2026 = yyj2026 > l
} else {
yyb2026 = r.CheckBreak()
}
if yyb2026 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Weight = 0
} else {
x.Weight = int32(r.DecodeInt(32))
}
yyj2026++
if yyhl2026 {
yyb2026 = yyj2026 > l
} else {
yyb2026 = r.CheckBreak()
}
if yyb2026 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Preference = NodeSelectorTerm{}
} else {
yyv2028 := &x.Preference
yyv2028.CodecDecodeSelf(d)
}
for {
yyj2026++
if yyhl2026 {
yyb2026 = yyj2026 > l
} else {
yyb2026 = r.CheckBreak()
}
if yyb2026 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2026-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 {
yym2029 := z.EncBinary()
_ = yym2029
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2030 := !z.EncBinary()
yy2arr2030 := z.EncBasicHandle().StructToArray
var yyq2030 [3]bool
_, _, _ = yysep2030, yyq2030, yy2arr2030
const yyr2030 bool = false
yyq2030[1] = x.Value != ""
var yynn2030 int
if yyr2030 || yy2arr2030 {
r.EncodeArrayStart(3)
} else {
yynn2030 = 2
for _, b := range yyq2030 {
if b {
yynn2030++
}
}
r.EncodeMapStart(yynn2030)
yynn2030 = 0
}
if yyr2030 || yy2arr2030 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2032 := z.EncBinary()
_ = yym2032
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)
yym2033 := z.EncBinary()
_ = yym2033
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
}
if yyr2030 || yy2arr2030 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2030[1] {
yym2035 := z.EncBinary()
_ = yym2035
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2030[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("value"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2036 := z.EncBinary()
_ = yym2036
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
}
}
if yyr2030 || yy2arr2030 {
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 yyr2030 || yy2arr2030 {
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
yym2038 := z.DecBinary()
_ = yym2038
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2039 := r.ContainerType()
if yyct2039 == codecSelferValueTypeMap1234 {
yyl2039 := r.ReadMapStart()
if yyl2039 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2039, d)
}
} else if yyct2039 == codecSelferValueTypeArray1234 {
yyl2039 := r.ReadArrayStart()
if yyl2039 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2039, 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 yys2040Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2040Slc
var yyhl2040 bool = l >= 0
for yyj2040 := 0; ; yyj2040++ {
if yyhl2040 {
if yyj2040 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2040Slc = r.DecodeBytes(yys2040Slc, true, true)
yys2040 := string(yys2040Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2040 {
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, yys2040)
} // end switch yys2040
} // end for yyj2040
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 yyj2044 int
var yyb2044 bool
var yyhl2044 bool = l >= 0
yyj2044++
if yyhl2044 {
yyb2044 = yyj2044 > l
} else {
yyb2044 = r.CheckBreak()
}
if yyb2044 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
yyj2044++
if yyhl2044 {
yyb2044 = yyj2044 > l
} else {
yyb2044 = r.CheckBreak()
}
if yyb2044 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Value = ""
} else {
x.Value = string(r.DecodeString())
}
yyj2044++
if yyhl2044 {
yyb2044 = yyj2044 > l
} else {
yyb2044 = r.CheckBreak()
}
if yyb2044 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Effect = ""
} else {
x.Effect = TaintEffect(r.DecodeString())
}
for {
yyj2044++
if yyhl2044 {
yyb2044 = yyj2044 > l
} else {
yyb2044 = r.CheckBreak()
}
if yyb2044 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2044-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x TaintEffect) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym2048 := z.EncBinary()
_ = yym2048
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
yym2049 := z.DecBinary()
_ = yym2049
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 {
yym2050 := z.EncBinary()
_ = yym2050
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2051 := !z.EncBinary()
yy2arr2051 := z.EncBasicHandle().StructToArray
var yyq2051 [4]bool
_, _, _ = yysep2051, yyq2051, yy2arr2051
const yyr2051 bool = false
yyq2051[0] = x.Key != ""
yyq2051[1] = x.Operator != ""
yyq2051[2] = x.Value != ""
yyq2051[3] = x.Effect != ""
var yynn2051 int
if yyr2051 || yy2arr2051 {
r.EncodeArrayStart(4)
} else {
yynn2051 = 0
for _, b := range yyq2051 {
if b {
yynn2051++
}
}
r.EncodeMapStart(yynn2051)
yynn2051 = 0
}
if yyr2051 || yy2arr2051 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2051[0] {
yym2053 := z.EncBinary()
_ = yym2053
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2051[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("key"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2054 := z.EncBinary()
_ = yym2054
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
}
}
if yyr2051 || yy2arr2051 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2051[1] {
x.Operator.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2051[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("operator"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Operator.CodecEncodeSelf(e)
}
}
if yyr2051 || yy2arr2051 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2051[2] {
yym2057 := z.EncBinary()
_ = yym2057
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2051[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("value"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2058 := z.EncBinary()
_ = yym2058
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
}
}
if yyr2051 || yy2arr2051 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2051[3] {
x.Effect.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2051[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("effect"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Effect.CodecEncodeSelf(e)
}
}
if yyr2051 || yy2arr2051 {
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
yym2060 := z.DecBinary()
_ = yym2060
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2061 := r.ContainerType()
if yyct2061 == codecSelferValueTypeMap1234 {
yyl2061 := r.ReadMapStart()
if yyl2061 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2061, d)
}
} else if yyct2061 == codecSelferValueTypeArray1234 {
yyl2061 := r.ReadArrayStart()
if yyl2061 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2061, 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 yys2062Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2062Slc
var yyhl2062 bool = l >= 0
for yyj2062 := 0; ; yyj2062++ {
if yyhl2062 {
if yyj2062 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2062Slc = r.DecodeBytes(yys2062Slc, true, true)
yys2062 := string(yys2062Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2062 {
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, yys2062)
} // end switch yys2062
} // end for yyj2062
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 yyj2067 int
var yyb2067 bool
var yyhl2067 bool = l >= 0
yyj2067++
if yyhl2067 {
yyb2067 = yyj2067 > l
} else {
yyb2067 = r.CheckBreak()
}
if yyb2067 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
yyj2067++
if yyhl2067 {
yyb2067 = yyj2067 > l
} else {
yyb2067 = r.CheckBreak()
}
if yyb2067 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Operator = ""
} else {
x.Operator = TolerationOperator(r.DecodeString())
}
yyj2067++
if yyhl2067 {
yyb2067 = yyj2067 > l
} else {
yyb2067 = r.CheckBreak()
}
if yyb2067 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Value = ""
} else {
x.Value = string(r.DecodeString())
}
yyj2067++
if yyhl2067 {
yyb2067 = yyj2067 > l
} else {
yyb2067 = r.CheckBreak()
}
if yyb2067 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Effect = ""
} else {
x.Effect = TaintEffect(r.DecodeString())
}
for {
yyj2067++
if yyhl2067 {
yyb2067 = yyj2067 > l
} else {
yyb2067 = r.CheckBreak()
}
if yyb2067 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2067-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x TolerationOperator) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym2072 := z.EncBinary()
_ = yym2072
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
yym2073 := z.DecBinary()
_ = yym2073
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 {
yym2074 := z.EncBinary()
_ = yym2074
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2075 := !z.EncBinary()
yy2arr2075 := z.EncBasicHandle().StructToArray
var yyq2075 [13]bool
_, _, _ = yysep2075, yyq2075, yy2arr2075
const yyr2075 bool = false
yyq2075[2] = x.RestartPolicy != ""
yyq2075[3] = x.TerminationGracePeriodSeconds != nil
yyq2075[4] = x.ActiveDeadlineSeconds != nil
yyq2075[5] = x.DNSPolicy != ""
yyq2075[6] = len(x.NodeSelector) != 0
yyq2075[8] = x.NodeName != ""
yyq2075[9] = x.SecurityContext != nil
yyq2075[10] = len(x.ImagePullSecrets) != 0
yyq2075[11] = x.Hostname != ""
yyq2075[12] = x.Subdomain != ""
var yynn2075 int
if yyr2075 || yy2arr2075 {
r.EncodeArrayStart(13)
} else {
yynn2075 = 3
for _, b := range yyq2075 {
if b {
yynn2075++
}
}
r.EncodeMapStart(yynn2075)
yynn2075 = 0
}
if yyr2075 || yy2arr2075 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Volumes == nil {
r.EncodeNil()
} else {
yym2077 := z.EncBinary()
_ = yym2077
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 {
yym2078 := z.EncBinary()
_ = yym2078
if false {
} else {
h.encSliceVolume(([]Volume)(x.Volumes), e)
}
}
}
if yyr2075 || yy2arr2075 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Containers == nil {
r.EncodeNil()
} else {
yym2080 := z.EncBinary()
_ = yym2080
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 {
yym2081 := z.EncBinary()
_ = yym2081
if false {
} else {
h.encSliceContainer(([]Container)(x.Containers), e)
}
}
}
if yyr2075 || yy2arr2075 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2075[2] {
x.RestartPolicy.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2075[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("restartPolicy"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.RestartPolicy.CodecEncodeSelf(e)
}
}
if yyr2075 || yy2arr2075 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2075[3] {
if x.TerminationGracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy2084 := *x.TerminationGracePeriodSeconds
yym2085 := z.EncBinary()
_ = yym2085
if false {
} else {
r.EncodeInt(int64(yy2084))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2075[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("terminationGracePeriodSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.TerminationGracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy2086 := *x.TerminationGracePeriodSeconds
yym2087 := z.EncBinary()
_ = yym2087
if false {
} else {
r.EncodeInt(int64(yy2086))
}
}
}
}
if yyr2075 || yy2arr2075 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2075[4] {
if x.ActiveDeadlineSeconds == nil {
r.EncodeNil()
} else {
yy2089 := *x.ActiveDeadlineSeconds
yym2090 := z.EncBinary()
_ = yym2090
if false {
} else {
r.EncodeInt(int64(yy2089))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2075[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ActiveDeadlineSeconds == nil {
r.EncodeNil()
} else {
yy2091 := *x.ActiveDeadlineSeconds
yym2092 := z.EncBinary()
_ = yym2092
if false {
} else {
r.EncodeInt(int64(yy2091))
}
}
}
}
if yyr2075 || yy2arr2075 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2075[5] {
x.DNSPolicy.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2075[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("dnsPolicy"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.DNSPolicy.CodecEncodeSelf(e)
}
}
if yyr2075 || yy2arr2075 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2075[6] {
if x.NodeSelector == nil {
r.EncodeNil()
} else {
yym2095 := z.EncBinary()
_ = yym2095
if false {
} else {
z.F.EncMapStringStringV(x.NodeSelector, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2075[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeSelector"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.NodeSelector == nil {
r.EncodeNil()
} else {
yym2096 := z.EncBinary()
_ = yym2096
if false {
} else {
z.F.EncMapStringStringV(x.NodeSelector, false, e)
}
}
}
}
if yyr2075 || yy2arr2075 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2098 := z.EncBinary()
_ = yym2098
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)
yym2099 := z.EncBinary()
_ = yym2099
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName))
}
}
if yyr2075 || yy2arr2075 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2075[8] {
yym2101 := z.EncBinary()
_ = yym2101
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.NodeName))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2075[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2102 := z.EncBinary()
_ = yym2102
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.NodeName))
}
}
}
if yyr2075 || yy2arr2075 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2075[9] {
if x.SecurityContext == nil {
r.EncodeNil()
} else {
x.SecurityContext.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq2075[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 yyr2075 || yy2arr2075 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2075[10] {
if x.ImagePullSecrets == nil {
r.EncodeNil()
} else {
yym2105 := z.EncBinary()
_ = yym2105
if false {
} else {
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2075[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ImagePullSecrets == nil {
r.EncodeNil()
} else {
yym2106 := z.EncBinary()
_ = yym2106
if false {
} else {
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
}
}
}
}
if yyr2075 || yy2arr2075 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2075[11] {
yym2108 := z.EncBinary()
_ = yym2108
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2075[11] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostname"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2109 := z.EncBinary()
_ = yym2109
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
}
}
}
if yyr2075 || yy2arr2075 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2075[12] {
yym2111 := z.EncBinary()
_ = yym2111
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2075[12] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("subdomain"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2112 := z.EncBinary()
_ = yym2112
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain))
}
}
}
if yyr2075 || yy2arr2075 {
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
yym2113 := z.DecBinary()
_ = yym2113
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2114 := r.ContainerType()
if yyct2114 == codecSelferValueTypeMap1234 {
yyl2114 := r.ReadMapStart()
if yyl2114 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2114, d)
}
} else if yyct2114 == codecSelferValueTypeArray1234 {
yyl2114 := r.ReadArrayStart()
if yyl2114 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2114, 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 yys2115Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2115Slc
var yyhl2115 bool = l >= 0
for yyj2115 := 0; ; yyj2115++ {
if yyhl2115 {
if yyj2115 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2115Slc = r.DecodeBytes(yys2115Slc, true, true)
yys2115 := string(yys2115Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2115 {
case "volumes":
if r.TryDecodeAsNil() {
x.Volumes = nil
} else {
yyv2116 := &x.Volumes
yym2117 := z.DecBinary()
_ = yym2117
if false {
} else {
h.decSliceVolume((*[]Volume)(yyv2116), d)
}
}
case "containers":
if r.TryDecodeAsNil() {
x.Containers = nil
} else {
yyv2118 := &x.Containers
yym2119 := z.DecBinary()
_ = yym2119
if false {
} else {
h.decSliceContainer((*[]Container)(yyv2118), 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)
}
yym2122 := z.DecBinary()
_ = yym2122
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)
}
yym2124 := z.DecBinary()
_ = yym2124
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 {
yyv2126 := &x.NodeSelector
yym2127 := z.DecBinary()
_ = yym2127
if false {
} else {
z.F.DecMapStringStringX(yyv2126, 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 {
yyv2131 := &x.ImagePullSecrets
yym2132 := z.DecBinary()
_ = yym2132
if false {
} else {
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2131), 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, yys2115)
} // end switch yys2115
} // end for yyj2115
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 yyj2135 int
var yyb2135 bool
var yyhl2135 bool = l >= 0
yyj2135++
if yyhl2135 {
yyb2135 = yyj2135 > l
} else {
yyb2135 = r.CheckBreak()
}
if yyb2135 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Volumes = nil
} else {
yyv2136 := &x.Volumes
yym2137 := z.DecBinary()
_ = yym2137
if false {
} else {
h.decSliceVolume((*[]Volume)(yyv2136), d)
}
}
yyj2135++
if yyhl2135 {
yyb2135 = yyj2135 > l
} else {
yyb2135 = r.CheckBreak()
}
if yyb2135 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Containers = nil
} else {
yyv2138 := &x.Containers
yym2139 := z.DecBinary()
_ = yym2139
if false {
} else {
h.decSliceContainer((*[]Container)(yyv2138), d)
}
}
yyj2135++
if yyhl2135 {
yyb2135 = yyj2135 > l
} else {
yyb2135 = r.CheckBreak()
}
if yyb2135 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RestartPolicy = ""
} else {
x.RestartPolicy = RestartPolicy(r.DecodeString())
}
yyj2135++
if yyhl2135 {
yyb2135 = yyj2135 > l
} else {
yyb2135 = r.CheckBreak()
}
if yyb2135 {
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)
}
yym2142 := z.DecBinary()
_ = yym2142
if false {
} else {
*((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64))
}
}
yyj2135++
if yyhl2135 {
yyb2135 = yyj2135 > l
} else {
yyb2135 = r.CheckBreak()
}
if yyb2135 {
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)
}
yym2144 := z.DecBinary()
_ = yym2144
if false {
} else {
*((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64))
}
}
yyj2135++
if yyhl2135 {
yyb2135 = yyj2135 > l
} else {
yyb2135 = r.CheckBreak()
}
if yyb2135 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DNSPolicy = ""
} else {
x.DNSPolicy = DNSPolicy(r.DecodeString())
}
yyj2135++
if yyhl2135 {
yyb2135 = yyj2135 > l
} else {
yyb2135 = r.CheckBreak()
}
if yyb2135 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodeSelector = nil
} else {
yyv2146 := &x.NodeSelector
yym2147 := z.DecBinary()
_ = yym2147
if false {
} else {
z.F.DecMapStringStringX(yyv2146, false, d)
}
}
yyj2135++
if yyhl2135 {
yyb2135 = yyj2135 > l
} else {
yyb2135 = r.CheckBreak()
}
if yyb2135 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ServiceAccountName = ""
} else {
x.ServiceAccountName = string(r.DecodeString())
}
yyj2135++
if yyhl2135 {
yyb2135 = yyj2135 > l
} else {
yyb2135 = r.CheckBreak()
}
if yyb2135 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodeName = ""
} else {
x.NodeName = string(r.DecodeString())
}
yyj2135++
if yyhl2135 {
yyb2135 = yyj2135 > l
} else {
yyb2135 = r.CheckBreak()
}
if yyb2135 {
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)
}
yyj2135++
if yyhl2135 {
yyb2135 = yyj2135 > l
} else {
yyb2135 = r.CheckBreak()
}
if yyb2135 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ImagePullSecrets = nil
} else {
yyv2151 := &x.ImagePullSecrets
yym2152 := z.DecBinary()
_ = yym2152
if false {
} else {
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2151), d)
}
}
yyj2135++
if yyhl2135 {
yyb2135 = yyj2135 > l
} else {
yyb2135 = r.CheckBreak()
}
if yyb2135 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Hostname = ""
} else {
x.Hostname = string(r.DecodeString())
}
yyj2135++
if yyhl2135 {
yyb2135 = yyj2135 > l
} else {
yyb2135 = r.CheckBreak()
}
if yyb2135 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Subdomain = ""
} else {
x.Subdomain = string(r.DecodeString())
}
for {
yyj2135++
if yyhl2135 {
yyb2135 = yyj2135 > l
} else {
yyb2135 = r.CheckBreak()
}
if yyb2135 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2135-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *Sysctl) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2155 := z.EncBinary()
_ = yym2155
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2156 := !z.EncBinary()
yy2arr2156 := z.EncBasicHandle().StructToArray
var yyq2156 [2]bool
_, _, _ = yysep2156, yyq2156, yy2arr2156
const yyr2156 bool = false
var yynn2156 int
if yyr2156 || yy2arr2156 {
r.EncodeArrayStart(2)
} else {
yynn2156 = 2
for _, b := range yyq2156 {
if b {
yynn2156++
}
}
r.EncodeMapStart(yynn2156)
yynn2156 = 0
}
if yyr2156 || yy2arr2156 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2158 := z.EncBinary()
_ = yym2158
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)
yym2159 := z.EncBinary()
_ = yym2159
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr2156 || yy2arr2156 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2161 := z.EncBinary()
_ = yym2161
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)
yym2162 := z.EncBinary()
_ = yym2162
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
}
if yyr2156 || yy2arr2156 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *Sysctl) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym2163 := z.DecBinary()
_ = yym2163
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2164 := r.ContainerType()
if yyct2164 == codecSelferValueTypeMap1234 {
yyl2164 := r.ReadMapStart()
if yyl2164 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2164, d)
}
} else if yyct2164 == codecSelferValueTypeArray1234 {
yyl2164 := r.ReadArrayStart()
if yyl2164 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2164, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *Sysctl) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys2165Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2165Slc
var yyhl2165 bool = l >= 0
for yyj2165 := 0; ; yyj2165++ {
if yyhl2165 {
if yyj2165 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2165Slc = r.DecodeBytes(yys2165Slc, true, true)
yys2165 := string(yys2165Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2165 {
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, yys2165)
} // end switch yys2165
} // end for yyj2165
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *Sysctl) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj2168 int
var yyb2168 bool
var yyhl2168 bool = l >= 0
yyj2168++
if yyhl2168 {
yyb2168 = yyj2168 > l
} else {
yyb2168 = r.CheckBreak()
}
if yyb2168 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj2168++
if yyhl2168 {
yyb2168 = yyj2168 > l
} else {
yyb2168 = r.CheckBreak()
}
if yyb2168 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Value = ""
} else {
x.Value = string(r.DecodeString())
}
for {
yyj2168++
if yyhl2168 {
yyb2168 = yyj2168 > l
} else {
yyb2168 = r.CheckBreak()
}
if yyb2168 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2168-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 {
yym2171 := z.EncBinary()
_ = yym2171
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2172 := !z.EncBinary()
yy2arr2172 := z.EncBasicHandle().StructToArray
var yyq2172 [8]bool
_, _, _ = yysep2172, yyq2172, yy2arr2172
const yyr2172 bool = false
yyq2172[0] = x.HostNetwork != false
yyq2172[1] = x.HostPID != false
yyq2172[2] = x.HostIPC != false
yyq2172[3] = x.SELinuxOptions != nil
yyq2172[4] = x.RunAsUser != nil
yyq2172[5] = x.RunAsNonRoot != nil
yyq2172[6] = len(x.SupplementalGroups) != 0
yyq2172[7] = x.FSGroup != nil
var yynn2172 int
if yyr2172 || yy2arr2172 {
r.EncodeArrayStart(8)
} else {
yynn2172 = 0
for _, b := range yyq2172 {
if b {
yynn2172++
}
}
r.EncodeMapStart(yynn2172)
yynn2172 = 0
}
if yyr2172 || yy2arr2172 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2172[0] {
yym2174 := z.EncBinary()
_ = yym2174
if false {
} else {
r.EncodeBool(bool(x.HostNetwork))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq2172[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostNetwork"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2175 := z.EncBinary()
_ = yym2175
if false {
} else {
r.EncodeBool(bool(x.HostNetwork))
}
}
}
if yyr2172 || yy2arr2172 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2172[1] {
yym2177 := z.EncBinary()
_ = yym2177
if false {
} else {
r.EncodeBool(bool(x.HostPID))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq2172[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostPID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2178 := z.EncBinary()
_ = yym2178
if false {
} else {
r.EncodeBool(bool(x.HostPID))
}
}
}
if yyr2172 || yy2arr2172 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2172[2] {
yym2180 := z.EncBinary()
_ = yym2180
if false {
} else {
r.EncodeBool(bool(x.HostIPC))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq2172[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostIPC"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2181 := z.EncBinary()
_ = yym2181
if false {
} else {
r.EncodeBool(bool(x.HostIPC))
}
}
}
if yyr2172 || yy2arr2172 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2172[3] {
if x.SELinuxOptions == nil {
r.EncodeNil()
} else {
x.SELinuxOptions.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq2172[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 yyr2172 || yy2arr2172 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2172[4] {
if x.RunAsUser == nil {
r.EncodeNil()
} else {
yy2184 := *x.RunAsUser
yym2185 := z.EncBinary()
_ = yym2185
if false {
} else {
r.EncodeInt(int64(yy2184))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2172[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("runAsUser"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RunAsUser == nil {
r.EncodeNil()
} else {
yy2186 := *x.RunAsUser
yym2187 := z.EncBinary()
_ = yym2187
if false {
} else {
r.EncodeInt(int64(yy2186))
}
}
}
}
if yyr2172 || yy2arr2172 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2172[5] {
if x.RunAsNonRoot == nil {
r.EncodeNil()
} else {
yy2189 := *x.RunAsNonRoot
yym2190 := z.EncBinary()
_ = yym2190
if false {
} else {
r.EncodeBool(bool(yy2189))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2172[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RunAsNonRoot == nil {
r.EncodeNil()
} else {
yy2191 := *x.RunAsNonRoot
yym2192 := z.EncBinary()
_ = yym2192
if false {
} else {
r.EncodeBool(bool(yy2191))
}
}
}
}
if yyr2172 || yy2arr2172 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2172[6] {
if x.SupplementalGroups == nil {
r.EncodeNil()
} else {
yym2194 := z.EncBinary()
_ = yym2194
if false {
} else {
z.F.EncSliceInt64V(x.SupplementalGroups, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2172[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.SupplementalGroups == nil {
r.EncodeNil()
} else {
yym2195 := z.EncBinary()
_ = yym2195
if false {
} else {
z.F.EncSliceInt64V(x.SupplementalGroups, false, e)
}
}
}
}
if yyr2172 || yy2arr2172 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2172[7] {
if x.FSGroup == nil {
r.EncodeNil()
} else {
yy2197 := *x.FSGroup
yym2198 := z.EncBinary()
_ = yym2198
if false {
} else {
r.EncodeInt(int64(yy2197))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2172[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsGroup"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.FSGroup == nil {
r.EncodeNil()
} else {
yy2199 := *x.FSGroup
yym2200 := z.EncBinary()
_ = yym2200
if false {
} else {
r.EncodeInt(int64(yy2199))
}
}
}
}
if yyr2172 || yy2arr2172 {
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
yym2201 := z.DecBinary()
_ = yym2201
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2202 := r.ContainerType()
if yyct2202 == codecSelferValueTypeMap1234 {
yyl2202 := r.ReadMapStart()
if yyl2202 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2202, d)
}
} else if yyct2202 == codecSelferValueTypeArray1234 {
yyl2202 := r.ReadArrayStart()
if yyl2202 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2202, 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 yys2203Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2203Slc
var yyhl2203 bool = l >= 0
for yyj2203 := 0; ; yyj2203++ {
if yyhl2203 {
if yyj2203 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2203Slc = r.DecodeBytes(yys2203Slc, true, true)
yys2203 := string(yys2203Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2203 {
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)
}
yym2209 := z.DecBinary()
_ = yym2209
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)
}
yym2211 := z.DecBinary()
_ = yym2211
if false {
} else {
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
}
}
case "supplementalGroups":
if r.TryDecodeAsNil() {
x.SupplementalGroups = nil
} else {
yyv2212 := &x.SupplementalGroups
yym2213 := z.DecBinary()
_ = yym2213
if false {
} else {
z.F.DecSliceInt64X(yyv2212, false, d)
}
}
case "fsGroup":
if r.TryDecodeAsNil() {
if x.FSGroup != nil {
x.FSGroup = nil
}
} else {
if x.FSGroup == nil {
x.FSGroup = new(int64)
}
yym2215 := z.DecBinary()
_ = yym2215
if false {
} else {
*((*int64)(x.FSGroup)) = int64(r.DecodeInt(64))
}
}
default:
z.DecStructFieldNotFound(-1, yys2203)
} // end switch yys2203
} // end for yyj2203
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 yyj2216 int
var yyb2216 bool
var yyhl2216 bool = l >= 0
yyj2216++
if yyhl2216 {
yyb2216 = yyj2216 > l
} else {
yyb2216 = r.CheckBreak()
}
if yyb2216 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostNetwork = false
} else {
x.HostNetwork = bool(r.DecodeBool())
}
yyj2216++
if yyhl2216 {
yyb2216 = yyj2216 > l
} else {
yyb2216 = r.CheckBreak()
}
if yyb2216 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostPID = false
} else {
x.HostPID = bool(r.DecodeBool())
}
yyj2216++
if yyhl2216 {
yyb2216 = yyj2216 > l
} else {
yyb2216 = r.CheckBreak()
}
if yyb2216 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostIPC = false
} else {
x.HostIPC = bool(r.DecodeBool())
}
yyj2216++
if yyhl2216 {
yyb2216 = yyj2216 > l
} else {
yyb2216 = r.CheckBreak()
}
if yyb2216 {
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)
}
yyj2216++
if yyhl2216 {
yyb2216 = yyj2216 > l
} else {
yyb2216 = r.CheckBreak()
}
if yyb2216 {
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)
}
yym2222 := z.DecBinary()
_ = yym2222
if false {
} else {
*((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64))
}
}
yyj2216++
if yyhl2216 {
yyb2216 = yyj2216 > l
} else {
yyb2216 = r.CheckBreak()
}
if yyb2216 {
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)
}
yym2224 := z.DecBinary()
_ = yym2224
if false {
} else {
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
}
}
yyj2216++
if yyhl2216 {
yyb2216 = yyj2216 > l
} else {
yyb2216 = r.CheckBreak()
}
if yyb2216 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SupplementalGroups = nil
} else {
yyv2225 := &x.SupplementalGroups
yym2226 := z.DecBinary()
_ = yym2226
if false {
} else {
z.F.DecSliceInt64X(yyv2225, false, d)
}
}
yyj2216++
if yyhl2216 {
yyb2216 = yyj2216 > l
} else {
yyb2216 = r.CheckBreak()
}
if yyb2216 {
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)
}
yym2228 := z.DecBinary()
_ = yym2228
if false {
} else {
*((*int64)(x.FSGroup)) = int64(r.DecodeInt(64))
}
}
for {
yyj2216++
if yyhl2216 {
yyb2216 = yyj2216 > l
} else {
yyb2216 = r.CheckBreak()
}
if yyb2216 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2216-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 {
yym2229 := z.EncBinary()
_ = yym2229
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2230 := !z.EncBinary()
yy2arr2230 := z.EncBasicHandle().StructToArray
var yyq2230 [8]bool
_, _, _ = yysep2230, yyq2230, yy2arr2230
const yyr2230 bool = false
yyq2230[0] = x.Phase != ""
yyq2230[1] = len(x.Conditions) != 0
yyq2230[2] = x.Message != ""
yyq2230[3] = x.Reason != ""
yyq2230[4] = x.HostIP != ""
yyq2230[5] = x.PodIP != ""
yyq2230[6] = x.StartTime != nil
yyq2230[7] = len(x.ContainerStatuses) != 0
var yynn2230 int
if yyr2230 || yy2arr2230 {
r.EncodeArrayStart(8)
} else {
yynn2230 = 0
for _, b := range yyq2230 {
if b {
yynn2230++
}
}
r.EncodeMapStart(yynn2230)
yynn2230 = 0
}
if yyr2230 || yy2arr2230 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2230[0] {
x.Phase.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2230[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("phase"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Phase.CodecEncodeSelf(e)
}
}
if yyr2230 || yy2arr2230 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2230[1] {
if x.Conditions == nil {
r.EncodeNil()
} else {
yym2233 := z.EncBinary()
_ = yym2233
if false {
} else {
h.encSlicePodCondition(([]PodCondition)(x.Conditions), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2230[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Conditions == nil {
r.EncodeNil()
} else {
yym2234 := z.EncBinary()
_ = yym2234
if false {
} else {
h.encSlicePodCondition(([]PodCondition)(x.Conditions), e)
}
}
}
}
if yyr2230 || yy2arr2230 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2230[2] {
yym2236 := z.EncBinary()
_ = yym2236
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2230[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2237 := z.EncBinary()
_ = yym2237
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr2230 || yy2arr2230 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2230[3] {
yym2239 := z.EncBinary()
_ = yym2239
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2230[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2240 := z.EncBinary()
_ = yym2240
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr2230 || yy2arr2230 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2230[4] {
yym2242 := z.EncBinary()
_ = yym2242
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2230[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2243 := z.EncBinary()
_ = yym2243
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
}
}
}
if yyr2230 || yy2arr2230 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2230[5] {
yym2245 := z.EncBinary()
_ = yym2245
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PodIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2230[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("podIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2246 := z.EncBinary()
_ = yym2246
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PodIP))
}
}
}
if yyr2230 || yy2arr2230 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2230[6] {
if x.StartTime == nil {
r.EncodeNil()
} else {
yym2248 := z.EncBinary()
_ = yym2248
if false {
} else if z.HasExtensions() && z.EncExt(x.StartTime) {
} else if yym2248 {
z.EncBinaryMarshal(x.StartTime)
} else if !yym2248 && z.IsJSONHandle() {
z.EncJSONMarshal(x.StartTime)
} else {
z.EncFallback(x.StartTime)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2230[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("startTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.StartTime == nil {
r.EncodeNil()
} else {
yym2249 := z.EncBinary()
_ = yym2249
if false {
} else if z.HasExtensions() && z.EncExt(x.StartTime) {
} else if yym2249 {
z.EncBinaryMarshal(x.StartTime)
} else if !yym2249 && z.IsJSONHandle() {
z.EncJSONMarshal(x.StartTime)
} else {
z.EncFallback(x.StartTime)
}
}
}
}
if yyr2230 || yy2arr2230 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2230[7] {
if x.ContainerStatuses == nil {
r.EncodeNil()
} else {
yym2251 := z.EncBinary()
_ = yym2251
if false {
} else {
h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2230[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("containerStatuses"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ContainerStatuses == nil {
r.EncodeNil()
} else {
yym2252 := z.EncBinary()
_ = yym2252
if false {
} else {
h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e)
}
}
}
}
if yyr2230 || yy2arr2230 {
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
yym2253 := z.DecBinary()
_ = yym2253
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2254 := r.ContainerType()
if yyct2254 == codecSelferValueTypeMap1234 {
yyl2254 := r.ReadMapStart()
if yyl2254 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2254, d)
}
} else if yyct2254 == codecSelferValueTypeArray1234 {
yyl2254 := r.ReadArrayStart()
if yyl2254 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2254, 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 yys2255Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2255Slc
var yyhl2255 bool = l >= 0
for yyj2255 := 0; ; yyj2255++ {
if yyhl2255 {
if yyj2255 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2255Slc = r.DecodeBytes(yys2255Slc, true, true)
yys2255 := string(yys2255Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2255 {
case "phase":
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = PodPhase(r.DecodeString())
}
case "conditions":
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv2257 := &x.Conditions
yym2258 := z.DecBinary()
_ = yym2258
if false {
} else {
h.decSlicePodCondition((*[]PodCondition)(yyv2257), 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)
}
yym2264 := z.DecBinary()
_ = yym2264
if false {
} else if z.HasExtensions() && z.DecExt(x.StartTime) {
} else if yym2264 {
z.DecBinaryUnmarshal(x.StartTime)
} else if !yym2264 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.StartTime)
} else {
z.DecFallback(x.StartTime, false)
}
}
case "containerStatuses":
if r.TryDecodeAsNil() {
x.ContainerStatuses = nil
} else {
yyv2265 := &x.ContainerStatuses
yym2266 := z.DecBinary()
_ = yym2266
if false {
} else {
h.decSliceContainerStatus((*[]ContainerStatus)(yyv2265), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2255)
} // end switch yys2255
} // end for yyj2255
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 yyj2267 int
var yyb2267 bool
var yyhl2267 bool = l >= 0
yyj2267++
if yyhl2267 {
yyb2267 = yyj2267 > l
} else {
yyb2267 = r.CheckBreak()
}
if yyb2267 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = PodPhase(r.DecodeString())
}
yyj2267++
if yyhl2267 {
yyb2267 = yyj2267 > l
} else {
yyb2267 = r.CheckBreak()
}
if yyb2267 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv2269 := &x.Conditions
yym2270 := z.DecBinary()
_ = yym2270
if false {
} else {
h.decSlicePodCondition((*[]PodCondition)(yyv2269), d)
}
}
yyj2267++
if yyhl2267 {
yyb2267 = yyj2267 > l
} else {
yyb2267 = r.CheckBreak()
}
if yyb2267 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
yyj2267++
if yyhl2267 {
yyb2267 = yyj2267 > l
} else {
yyb2267 = r.CheckBreak()
}
if yyb2267 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj2267++
if yyhl2267 {
yyb2267 = yyj2267 > l
} else {
yyb2267 = r.CheckBreak()
}
if yyb2267 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostIP = ""
} else {
x.HostIP = string(r.DecodeString())
}
yyj2267++
if yyhl2267 {
yyb2267 = yyj2267 > l
} else {
yyb2267 = r.CheckBreak()
}
if yyb2267 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PodIP = ""
} else {
x.PodIP = string(r.DecodeString())
}
yyj2267++
if yyhl2267 {
yyb2267 = yyj2267 > l
} else {
yyb2267 = r.CheckBreak()
}
if yyb2267 {
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)
}
yym2276 := z.DecBinary()
_ = yym2276
if false {
} else if z.HasExtensions() && z.DecExt(x.StartTime) {
} else if yym2276 {
z.DecBinaryUnmarshal(x.StartTime)
} else if !yym2276 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.StartTime)
} else {
z.DecFallback(x.StartTime, false)
}
}
yyj2267++
if yyhl2267 {
yyb2267 = yyj2267 > l
} else {
yyb2267 = r.CheckBreak()
}
if yyb2267 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerStatuses = nil
} else {
yyv2277 := &x.ContainerStatuses
yym2278 := z.DecBinary()
_ = yym2278
if false {
} else {
h.decSliceContainerStatus((*[]ContainerStatus)(yyv2277), d)
}
}
for {
yyj2267++
if yyhl2267 {
yyb2267 = yyj2267 > l
} else {
yyb2267 = r.CheckBreak()
}
if yyb2267 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2267-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 {
yym2279 := z.EncBinary()
_ = yym2279
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2280 := !z.EncBinary()
yy2arr2280 := z.EncBasicHandle().StructToArray
var yyq2280 [4]bool
_, _, _ = yysep2280, yyq2280, yy2arr2280
const yyr2280 bool = false
yyq2280[0] = x.Kind != ""
yyq2280[1] = x.APIVersion != ""
yyq2280[2] = true
yyq2280[3] = true
var yynn2280 int
if yyr2280 || yy2arr2280 {
r.EncodeArrayStart(4)
} else {
yynn2280 = 0
for _, b := range yyq2280 {
if b {
yynn2280++
}
}
r.EncodeMapStart(yynn2280)
yynn2280 = 0
}
if yyr2280 || yy2arr2280 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2280[0] {
yym2282 := z.EncBinary()
_ = yym2282
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2280[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2283 := z.EncBinary()
_ = yym2283
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2280 || yy2arr2280 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2280[1] {
yym2285 := z.EncBinary()
_ = yym2285
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2280[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2286 := z.EncBinary()
_ = yym2286
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2280 || yy2arr2280 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2280[2] {
yy2288 := &x.ObjectMeta
yy2288.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2280[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2289 := &x.ObjectMeta
yy2289.CodecEncodeSelf(e)
}
}
if yyr2280 || yy2arr2280 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2280[3] {
yy2291 := &x.Status
yy2291.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2280[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2292 := &x.Status
yy2292.CodecEncodeSelf(e)
}
}
if yyr2280 || yy2arr2280 {
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
yym2293 := z.DecBinary()
_ = yym2293
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2294 := r.ContainerType()
if yyct2294 == codecSelferValueTypeMap1234 {
yyl2294 := r.ReadMapStart()
if yyl2294 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2294, d)
}
} else if yyct2294 == codecSelferValueTypeArray1234 {
yyl2294 := r.ReadArrayStart()
if yyl2294 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2294, 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 yys2295Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2295Slc
var yyhl2295 bool = l >= 0
for yyj2295 := 0; ; yyj2295++ {
if yyhl2295 {
if yyj2295 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2295Slc = r.DecodeBytes(yys2295Slc, true, true)
yys2295 := string(yys2295Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2295 {
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 {
yyv2298 := &x.ObjectMeta
yyv2298.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = PodStatus{}
} else {
yyv2299 := &x.Status
yyv2299.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2295)
} // end switch yys2295
} // end for yyj2295
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 yyj2300 int
var yyb2300 bool
var yyhl2300 bool = l >= 0
yyj2300++
if yyhl2300 {
yyb2300 = yyj2300 > l
} else {
yyb2300 = r.CheckBreak()
}
if yyb2300 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2300++
if yyhl2300 {
yyb2300 = yyj2300 > l
} else {
yyb2300 = r.CheckBreak()
}
if yyb2300 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2300++
if yyhl2300 {
yyb2300 = yyj2300 > l
} else {
yyb2300 = r.CheckBreak()
}
if yyb2300 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2303 := &x.ObjectMeta
yyv2303.CodecDecodeSelf(d)
}
yyj2300++
if yyhl2300 {
yyb2300 = yyj2300 > l
} else {
yyb2300 = r.CheckBreak()
}
if yyb2300 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = PodStatus{}
} else {
yyv2304 := &x.Status
yyv2304.CodecDecodeSelf(d)
}
for {
yyj2300++
if yyhl2300 {
yyb2300 = yyj2300 > l
} else {
yyb2300 = r.CheckBreak()
}
if yyb2300 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2300-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 {
yym2305 := z.EncBinary()
_ = yym2305
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2306 := !z.EncBinary()
yy2arr2306 := z.EncBasicHandle().StructToArray
var yyq2306 [5]bool
_, _, _ = yysep2306, yyq2306, yy2arr2306
const yyr2306 bool = false
yyq2306[0] = x.Kind != ""
yyq2306[1] = x.APIVersion != ""
yyq2306[2] = true
yyq2306[3] = true
yyq2306[4] = true
var yynn2306 int
if yyr2306 || yy2arr2306 {
r.EncodeArrayStart(5)
} else {
yynn2306 = 0
for _, b := range yyq2306 {
if b {
yynn2306++
}
}
r.EncodeMapStart(yynn2306)
yynn2306 = 0
}
if yyr2306 || yy2arr2306 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2306[0] {
yym2308 := z.EncBinary()
_ = yym2308
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2306[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2309 := z.EncBinary()
_ = yym2309
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2306 || yy2arr2306 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2306[1] {
yym2311 := z.EncBinary()
_ = yym2311
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2306[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2312 := z.EncBinary()
_ = yym2312
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2306 || yy2arr2306 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2306[2] {
yy2314 := &x.ObjectMeta
yy2314.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2306[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2315 := &x.ObjectMeta
yy2315.CodecEncodeSelf(e)
}
}
if yyr2306 || yy2arr2306 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2306[3] {
yy2317 := &x.Spec
yy2317.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2306[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2318 := &x.Spec
yy2318.CodecEncodeSelf(e)
}
}
if yyr2306 || yy2arr2306 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2306[4] {
yy2320 := &x.Status
yy2320.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2306[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2321 := &x.Status
yy2321.CodecEncodeSelf(e)
}
}
if yyr2306 || yy2arr2306 {
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
yym2322 := z.DecBinary()
_ = yym2322
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2323 := r.ContainerType()
if yyct2323 == codecSelferValueTypeMap1234 {
yyl2323 := r.ReadMapStart()
if yyl2323 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2323, d)
}
} else if yyct2323 == codecSelferValueTypeArray1234 {
yyl2323 := r.ReadArrayStart()
if yyl2323 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2323, 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 yys2324Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2324Slc
var yyhl2324 bool = l >= 0
for yyj2324 := 0; ; yyj2324++ {
if yyhl2324 {
if yyj2324 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2324Slc = r.DecodeBytes(yys2324Slc, true, true)
yys2324 := string(yys2324Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2324 {
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 {
yyv2327 := &x.ObjectMeta
yyv2327.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = PodSpec{}
} else {
yyv2328 := &x.Spec
yyv2328.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = PodStatus{}
} else {
yyv2329 := &x.Status
yyv2329.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2324)
} // end switch yys2324
} // end for yyj2324
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 yyj2330 int
var yyb2330 bool
var yyhl2330 bool = l >= 0
yyj2330++
if yyhl2330 {
yyb2330 = yyj2330 > l
} else {
yyb2330 = r.CheckBreak()
}
if yyb2330 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2330++
if yyhl2330 {
yyb2330 = yyj2330 > l
} else {
yyb2330 = r.CheckBreak()
}
if yyb2330 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2330++
if yyhl2330 {
yyb2330 = yyj2330 > l
} else {
yyb2330 = r.CheckBreak()
}
if yyb2330 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2333 := &x.ObjectMeta
yyv2333.CodecDecodeSelf(d)
}
yyj2330++
if yyhl2330 {
yyb2330 = yyj2330 > l
} else {
yyb2330 = r.CheckBreak()
}
if yyb2330 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = PodSpec{}
} else {
yyv2334 := &x.Spec
yyv2334.CodecDecodeSelf(d)
}
yyj2330++
if yyhl2330 {
yyb2330 = yyj2330 > l
} else {
yyb2330 = r.CheckBreak()
}
if yyb2330 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = PodStatus{}
} else {
yyv2335 := &x.Status
yyv2335.CodecDecodeSelf(d)
}
for {
yyj2330++
if yyhl2330 {
yyb2330 = yyj2330 > l
} else {
yyb2330 = r.CheckBreak()
}
if yyb2330 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2330-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PodTemplateSpec) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2336 := z.EncBinary()
_ = yym2336
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2337 := !z.EncBinary()
yy2arr2337 := z.EncBasicHandle().StructToArray
var yyq2337 [2]bool
_, _, _ = yysep2337, yyq2337, yy2arr2337
const yyr2337 bool = false
yyq2337[0] = true
yyq2337[1] = true
var yynn2337 int
if yyr2337 || yy2arr2337 {
r.EncodeArrayStart(2)
} else {
yynn2337 = 0
for _, b := range yyq2337 {
if b {
yynn2337++
}
}
r.EncodeMapStart(yynn2337)
yynn2337 = 0
}
if yyr2337 || yy2arr2337 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2337[0] {
yy2339 := &x.ObjectMeta
yy2339.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2337[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2340 := &x.ObjectMeta
yy2340.CodecEncodeSelf(e)
}
}
if yyr2337 || yy2arr2337 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2337[1] {
yy2342 := &x.Spec
yy2342.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2337[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2343 := &x.Spec
yy2343.CodecEncodeSelf(e)
}
}
if yyr2337 || yy2arr2337 {
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
yym2344 := z.DecBinary()
_ = yym2344
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2345 := r.ContainerType()
if yyct2345 == codecSelferValueTypeMap1234 {
yyl2345 := r.ReadMapStart()
if yyl2345 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2345, d)
}
} else if yyct2345 == codecSelferValueTypeArray1234 {
yyl2345 := r.ReadArrayStart()
if yyl2345 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2345, 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 yys2346Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2346Slc
var yyhl2346 bool = l >= 0
for yyj2346 := 0; ; yyj2346++ {
if yyhl2346 {
if yyj2346 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2346Slc = r.DecodeBytes(yys2346Slc, true, true)
yys2346 := string(yys2346Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2346 {
case "metadata":
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2347 := &x.ObjectMeta
yyv2347.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = PodSpec{}
} else {
yyv2348 := &x.Spec
yyv2348.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2346)
} // end switch yys2346
} // end for yyj2346
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 yyj2349 int
var yyb2349 bool
var yyhl2349 bool = l >= 0
yyj2349++
if yyhl2349 {
yyb2349 = yyj2349 > l
} else {
yyb2349 = r.CheckBreak()
}
if yyb2349 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2350 := &x.ObjectMeta
yyv2350.CodecDecodeSelf(d)
}
yyj2349++
if yyhl2349 {
yyb2349 = yyj2349 > l
} else {
yyb2349 = r.CheckBreak()
}
if yyb2349 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = PodSpec{}
} else {
yyv2351 := &x.Spec
yyv2351.CodecDecodeSelf(d)
}
for {
yyj2349++
if yyhl2349 {
yyb2349 = yyj2349 > l
} else {
yyb2349 = r.CheckBreak()
}
if yyb2349 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2349-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 {
yym2352 := z.EncBinary()
_ = yym2352
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2353 := !z.EncBinary()
yy2arr2353 := z.EncBasicHandle().StructToArray
var yyq2353 [4]bool
_, _, _ = yysep2353, yyq2353, yy2arr2353
const yyr2353 bool = false
yyq2353[0] = x.Kind != ""
yyq2353[1] = x.APIVersion != ""
yyq2353[2] = true
yyq2353[3] = true
var yynn2353 int
if yyr2353 || yy2arr2353 {
r.EncodeArrayStart(4)
} else {
yynn2353 = 0
for _, b := range yyq2353 {
if b {
yynn2353++
}
}
r.EncodeMapStart(yynn2353)
yynn2353 = 0
}
if yyr2353 || yy2arr2353 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2353[0] {
yym2355 := z.EncBinary()
_ = yym2355
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2353[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2356 := z.EncBinary()
_ = yym2356
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2353 || yy2arr2353 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2353[1] {
yym2358 := z.EncBinary()
_ = yym2358
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2353[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2359 := z.EncBinary()
_ = yym2359
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2353 || yy2arr2353 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2353[2] {
yy2361 := &x.ObjectMeta
yy2361.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2353[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2362 := &x.ObjectMeta
yy2362.CodecEncodeSelf(e)
}
}
if yyr2353 || yy2arr2353 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2353[3] {
yy2364 := &x.Template
yy2364.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2353[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("template"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2365 := &x.Template
yy2365.CodecEncodeSelf(e)
}
}
if yyr2353 || yy2arr2353 {
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
yym2366 := z.DecBinary()
_ = yym2366
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2367 := r.ContainerType()
if yyct2367 == codecSelferValueTypeMap1234 {
yyl2367 := r.ReadMapStart()
if yyl2367 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2367, d)
}
} else if yyct2367 == codecSelferValueTypeArray1234 {
yyl2367 := r.ReadArrayStart()
if yyl2367 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2367, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PodTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys2368Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2368Slc
var yyhl2368 bool = l >= 0
for yyj2368 := 0; ; yyj2368++ {
if yyhl2368 {
if yyj2368 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2368Slc = r.DecodeBytes(yys2368Slc, true, true)
yys2368 := string(yys2368Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2368 {
case "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 {
yyv2371 := &x.ObjectMeta
yyv2371.CodecDecodeSelf(d)
}
case "template":
if r.TryDecodeAsNil() {
x.Template = PodTemplateSpec{}
} else {
yyv2372 := &x.Template
yyv2372.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2368)
} // end switch yys2368
} // end for yyj2368
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 yyj2373 int
var yyb2373 bool
var yyhl2373 bool = l >= 0
yyj2373++
if yyhl2373 {
yyb2373 = yyj2373 > l
} else {
yyb2373 = r.CheckBreak()
}
if yyb2373 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2373++
if yyhl2373 {
yyb2373 = yyj2373 > l
} else {
yyb2373 = r.CheckBreak()
}
if yyb2373 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2373++
if yyhl2373 {
yyb2373 = yyj2373 > l
} else {
yyb2373 = r.CheckBreak()
}
if yyb2373 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2376 := &x.ObjectMeta
yyv2376.CodecDecodeSelf(d)
}
yyj2373++
if yyhl2373 {
yyb2373 = yyj2373 > l
} else {
yyb2373 = r.CheckBreak()
}
if yyb2373 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Template = PodTemplateSpec{}
} else {
yyv2377 := &x.Template
yyv2377.CodecDecodeSelf(d)
}
for {
yyj2373++
if yyhl2373 {
yyb2373 = yyj2373 > l
} else {
yyb2373 = r.CheckBreak()
}
if yyb2373 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2373-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2378 := z.EncBinary()
_ = yym2378
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2379 := !z.EncBinary()
yy2arr2379 := z.EncBasicHandle().StructToArray
var yyq2379 [4]bool
_, _, _ = yysep2379, yyq2379, yy2arr2379
const yyr2379 bool = false
yyq2379[0] = x.Kind != ""
yyq2379[1] = x.APIVersion != ""
yyq2379[2] = true
var yynn2379 int
if yyr2379 || yy2arr2379 {
r.EncodeArrayStart(4)
} else {
yynn2379 = 1
for _, b := range yyq2379 {
if b {
yynn2379++
}
}
r.EncodeMapStart(yynn2379)
yynn2379 = 0
}
if yyr2379 || yy2arr2379 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2379[0] {
yym2381 := z.EncBinary()
_ = yym2381
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2379[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2382 := z.EncBinary()
_ = yym2382
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2379 || yy2arr2379 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2379[1] {
yym2384 := z.EncBinary()
_ = yym2384
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2379[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2385 := z.EncBinary()
_ = yym2385
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2379 || yy2arr2379 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2379[2] {
yy2387 := &x.ListMeta
yym2388 := z.EncBinary()
_ = yym2388
if false {
} else if z.HasExtensions() && z.EncExt(yy2387) {
} else {
z.EncFallback(yy2387)
}
} else {
r.EncodeNil()
}
} else {
if yyq2379[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2389 := &x.ListMeta
yym2390 := z.EncBinary()
_ = yym2390
if false {
} else if z.HasExtensions() && z.EncExt(yy2389) {
} else {
z.EncFallback(yy2389)
}
}
}
if yyr2379 || yy2arr2379 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2392 := z.EncBinary()
_ = yym2392
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 {
yym2393 := z.EncBinary()
_ = yym2393
if false {
} else {
h.encSlicePodTemplate(([]PodTemplate)(x.Items), e)
}
}
}
if yyr2379 || yy2arr2379 {
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
yym2394 := z.DecBinary()
_ = yym2394
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2395 := r.ContainerType()
if yyct2395 == codecSelferValueTypeMap1234 {
yyl2395 := r.ReadMapStart()
if yyl2395 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2395, d)
}
} else if yyct2395 == codecSelferValueTypeArray1234 {
yyl2395 := r.ReadArrayStart()
if yyl2395 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2395, 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 yys2396Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2396Slc
var yyhl2396 bool = l >= 0
for yyj2396 := 0; ; yyj2396++ {
if yyhl2396 {
if yyj2396 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2396Slc = r.DecodeBytes(yys2396Slc, true, true)
yys2396 := string(yys2396Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2396 {
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 {
yyv2399 := &x.ListMeta
yym2400 := z.DecBinary()
_ = yym2400
if false {
} else if z.HasExtensions() && z.DecExt(yyv2399) {
} else {
z.DecFallback(yyv2399, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2401 := &x.Items
yym2402 := z.DecBinary()
_ = yym2402
if false {
} else {
h.decSlicePodTemplate((*[]PodTemplate)(yyv2401), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2396)
} // end switch yys2396
} // end for yyj2396
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 yyj2403 int
var yyb2403 bool
var yyhl2403 bool = l >= 0
yyj2403++
if yyhl2403 {
yyb2403 = yyj2403 > l
} else {
yyb2403 = r.CheckBreak()
}
if yyb2403 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2403++
if yyhl2403 {
yyb2403 = yyj2403 > l
} else {
yyb2403 = r.CheckBreak()
}
if yyb2403 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2403++
if yyhl2403 {
yyb2403 = yyj2403 > l
} else {
yyb2403 = r.CheckBreak()
}
if yyb2403 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2406 := &x.ListMeta
yym2407 := z.DecBinary()
_ = yym2407
if false {
} else if z.HasExtensions() && z.DecExt(yyv2406) {
} else {
z.DecFallback(yyv2406, false)
}
}
yyj2403++
if yyhl2403 {
yyb2403 = yyj2403 > l
} else {
yyb2403 = r.CheckBreak()
}
if yyb2403 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2408 := &x.Items
yym2409 := z.DecBinary()
_ = yym2409
if false {
} else {
h.decSlicePodTemplate((*[]PodTemplate)(yyv2408), d)
}
}
for {
yyj2403++
if yyhl2403 {
yyb2403 = yyj2403 > l
} else {
yyb2403 = r.CheckBreak()
}
if yyb2403 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2403-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ReplicationControllerSpec) 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 [3]bool
_, _, _ = yysep2411, yyq2411, yy2arr2411
const yyr2411 bool = false
yyq2411[2] = x.Template != nil
var yynn2411 int
if yyr2411 || yy2arr2411 {
r.EncodeArrayStart(3)
} else {
yynn2411 = 2
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 x.Selector == nil {
r.EncodeNil()
} else {
yym2416 := z.EncBinary()
_ = yym2416
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 {
yym2417 := z.EncBinary()
_ = yym2417
if false {
} else {
z.F.EncMapStringStringV(x.Selector, false, e)
}
}
}
if yyr2411 || yy2arr2411 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2411[2] {
if x.Template == nil {
r.EncodeNil()
} else {
x.Template.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq2411[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 yyr2411 || yy2arr2411 {
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
yym2419 := z.DecBinary()
_ = yym2419
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2420 := r.ContainerType()
if yyct2420 == codecSelferValueTypeMap1234 {
yyl2420 := r.ReadMapStart()
if yyl2420 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2420, d)
}
} else if yyct2420 == codecSelferValueTypeArray1234 {
yyl2420 := r.ReadArrayStart()
if yyl2420 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2420, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ReplicationControllerSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys2421Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2421Slc
var yyhl2421 bool = l >= 0
for yyj2421 := 0; ; yyj2421++ {
if yyhl2421 {
if yyj2421 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2421Slc = r.DecodeBytes(yys2421Slc, true, true)
yys2421 := string(yys2421Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2421 {
case "replicas":
if r.TryDecodeAsNil() {
x.Replicas = 0
} else {
x.Replicas = int32(r.DecodeInt(32))
}
case "selector":
if r.TryDecodeAsNil() {
x.Selector = nil
} else {
yyv2423 := &x.Selector
yym2424 := z.DecBinary()
_ = yym2424
if false {
} else {
z.F.DecMapStringStringX(yyv2423, 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, yys2421)
} // end switch yys2421
} // end for yyj2421
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 yyj2426 int
var yyb2426 bool
var yyhl2426 bool = l >= 0
yyj2426++
if yyhl2426 {
yyb2426 = yyj2426 > l
} else {
yyb2426 = r.CheckBreak()
}
if yyb2426 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Replicas = 0
} else {
x.Replicas = int32(r.DecodeInt(32))
}
yyj2426++
if yyhl2426 {
yyb2426 = yyj2426 > l
} else {
yyb2426 = r.CheckBreak()
}
if yyb2426 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Selector = nil
} else {
yyv2428 := &x.Selector
yym2429 := z.DecBinary()
_ = yym2429
if false {
} else {
z.F.DecMapStringStringX(yyv2428, false, d)
}
}
yyj2426++
if yyhl2426 {
yyb2426 = yyj2426 > l
} else {
yyb2426 = r.CheckBreak()
}
if yyb2426 {
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 {
yyj2426++
if yyhl2426 {
yyb2426 = yyj2426 > l
} else {
yyb2426 = r.CheckBreak()
}
if yyb2426 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2426-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 {
yym2431 := z.EncBinary()
_ = yym2431
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2432 := !z.EncBinary()
yy2arr2432 := z.EncBasicHandle().StructToArray
var yyq2432 [4]bool
_, _, _ = yysep2432, yyq2432, yy2arr2432
const yyr2432 bool = false
yyq2432[1] = x.FullyLabeledReplicas != 0
yyq2432[2] = x.ReadyReplicas != 0
yyq2432[3] = x.ObservedGeneration != 0
var yynn2432 int
if yyr2432 || yy2arr2432 {
r.EncodeArrayStart(4)
} else {
yynn2432 = 1
for _, b := range yyq2432 {
if b {
yynn2432++
}
}
r.EncodeMapStart(yynn2432)
yynn2432 = 0
}
if yyr2432 || yy2arr2432 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2434 := z.EncBinary()
_ = yym2434
if false {
} else {
r.EncodeInt(int64(x.Replicas))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("replicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2435 := z.EncBinary()
_ = yym2435
if false {
} else {
r.EncodeInt(int64(x.Replicas))
}
}
if yyr2432 || yy2arr2432 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2432[1] {
yym2437 := z.EncBinary()
_ = yym2437
if false {
} else {
r.EncodeInt(int64(x.FullyLabeledReplicas))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq2432[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fullyLabeledReplicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2438 := z.EncBinary()
_ = yym2438
if false {
} else {
r.EncodeInt(int64(x.FullyLabeledReplicas))
}
}
}
if yyr2432 || yy2arr2432 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2432[2] {
yym2440 := z.EncBinary()
_ = yym2440
if false {
} else {
r.EncodeInt(int64(x.ReadyReplicas))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq2432[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readyReplicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2441 := z.EncBinary()
_ = yym2441
if false {
} else {
r.EncodeInt(int64(x.ReadyReplicas))
}
}
}
if yyr2432 || yy2arr2432 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2432[3] {
yym2443 := z.EncBinary()
_ = yym2443
if false {
} else {
r.EncodeInt(int64(x.ObservedGeneration))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq2432[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("observedGeneration"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2444 := z.EncBinary()
_ = yym2444
if false {
} else {
r.EncodeInt(int64(x.ObservedGeneration))
}
}
}
if yyr2432 || yy2arr2432 {
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
yym2445 := z.DecBinary()
_ = yym2445
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2446 := r.ContainerType()
if yyct2446 == codecSelferValueTypeMap1234 {
yyl2446 := r.ReadMapStart()
if yyl2446 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2446, d)
}
} else if yyct2446 == codecSelferValueTypeArray1234 {
yyl2446 := r.ReadArrayStart()
if yyl2446 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2446, 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 yys2447Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2447Slc
var yyhl2447 bool = l >= 0
for yyj2447 := 0; ; yyj2447++ {
if yyhl2447 {
if yyj2447 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2447Slc = r.DecodeBytes(yys2447Slc, true, true)
yys2447 := string(yys2447Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2447 {
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, yys2447)
} // end switch yys2447
} // end for yyj2447
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 yyj2452 int
var yyb2452 bool
var yyhl2452 bool = l >= 0
yyj2452++
if yyhl2452 {
yyb2452 = yyj2452 > l
} else {
yyb2452 = r.CheckBreak()
}
if yyb2452 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Replicas = 0
} else {
x.Replicas = int32(r.DecodeInt(32))
}
yyj2452++
if yyhl2452 {
yyb2452 = yyj2452 > l
} else {
yyb2452 = r.CheckBreak()
}
if yyb2452 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FullyLabeledReplicas = 0
} else {
x.FullyLabeledReplicas = int32(r.DecodeInt(32))
}
yyj2452++
if yyhl2452 {
yyb2452 = yyj2452 > l
} else {
yyb2452 = r.CheckBreak()
}
if yyb2452 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadyReplicas = 0
} else {
x.ReadyReplicas = int32(r.DecodeInt(32))
}
yyj2452++
if yyhl2452 {
yyb2452 = yyj2452 > l
} else {
yyb2452 = r.CheckBreak()
}
if yyb2452 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObservedGeneration = 0
} else {
x.ObservedGeneration = int64(r.DecodeInt(64))
}
for {
yyj2452++
if yyhl2452 {
yyb2452 = yyj2452 > l
} else {
yyb2452 = r.CheckBreak()
}
if yyb2452 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2452-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 {
yym2457 := z.EncBinary()
_ = yym2457
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2458 := !z.EncBinary()
yy2arr2458 := z.EncBasicHandle().StructToArray
var yyq2458 [5]bool
_, _, _ = yysep2458, yyq2458, yy2arr2458
const yyr2458 bool = false
yyq2458[0] = x.Kind != ""
yyq2458[1] = x.APIVersion != ""
yyq2458[2] = true
yyq2458[3] = true
yyq2458[4] = true
var yynn2458 int
if yyr2458 || yy2arr2458 {
r.EncodeArrayStart(5)
} else {
yynn2458 = 0
for _, b := range yyq2458 {
if b {
yynn2458++
}
}
r.EncodeMapStart(yynn2458)
yynn2458 = 0
}
if yyr2458 || yy2arr2458 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2458[0] {
yym2460 := z.EncBinary()
_ = yym2460
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2458[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2461 := z.EncBinary()
_ = yym2461
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2458 || yy2arr2458 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2458[1] {
yym2463 := z.EncBinary()
_ = yym2463
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2458[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2464 := z.EncBinary()
_ = yym2464
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2458 || yy2arr2458 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2458[2] {
yy2466 := &x.ObjectMeta
yy2466.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2458[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2467 := &x.ObjectMeta
yy2467.CodecEncodeSelf(e)
}
}
if yyr2458 || yy2arr2458 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2458[3] {
yy2469 := &x.Spec
yy2469.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2458[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2470 := &x.Spec
yy2470.CodecEncodeSelf(e)
}
}
if yyr2458 || yy2arr2458 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2458[4] {
yy2472 := &x.Status
yy2472.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2458[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2473 := &x.Status
yy2473.CodecEncodeSelf(e)
}
}
if yyr2458 || yy2arr2458 {
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
yym2474 := z.DecBinary()
_ = yym2474
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2475 := r.ContainerType()
if yyct2475 == codecSelferValueTypeMap1234 {
yyl2475 := r.ReadMapStart()
if yyl2475 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2475, d)
}
} else if yyct2475 == codecSelferValueTypeArray1234 {
yyl2475 := r.ReadArrayStart()
if yyl2475 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2475, 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 yys2476Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2476Slc
var yyhl2476 bool = l >= 0
for yyj2476 := 0; ; yyj2476++ {
if yyhl2476 {
if yyj2476 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2476Slc = r.DecodeBytes(yys2476Slc, true, true)
yys2476 := string(yys2476Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2476 {
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 {
yyv2479 := &x.ObjectMeta
yyv2479.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = ReplicationControllerSpec{}
} else {
yyv2480 := &x.Spec
yyv2480.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = ReplicationControllerStatus{}
} else {
yyv2481 := &x.Status
yyv2481.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2476)
} // end switch yys2476
} // end for yyj2476
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 yyj2482 int
var yyb2482 bool
var yyhl2482 bool = l >= 0
yyj2482++
if yyhl2482 {
yyb2482 = yyj2482 > l
} else {
yyb2482 = r.CheckBreak()
}
if yyb2482 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2482++
if yyhl2482 {
yyb2482 = yyj2482 > l
} else {
yyb2482 = r.CheckBreak()
}
if yyb2482 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2482++
if yyhl2482 {
yyb2482 = yyj2482 > l
} else {
yyb2482 = r.CheckBreak()
}
if yyb2482 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2485 := &x.ObjectMeta
yyv2485.CodecDecodeSelf(d)
}
yyj2482++
if yyhl2482 {
yyb2482 = yyj2482 > l
} else {
yyb2482 = r.CheckBreak()
}
if yyb2482 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = ReplicationControllerSpec{}
} else {
yyv2486 := &x.Spec
yyv2486.CodecDecodeSelf(d)
}
yyj2482++
if yyhl2482 {
yyb2482 = yyj2482 > l
} else {
yyb2482 = r.CheckBreak()
}
if yyb2482 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ReplicationControllerStatus{}
} else {
yyv2487 := &x.Status
yyv2487.CodecDecodeSelf(d)
}
for {
yyj2482++
if yyhl2482 {
yyb2482 = yyj2482 > l
} else {
yyb2482 = r.CheckBreak()
}
if yyb2482 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2482-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 {
yym2488 := z.EncBinary()
_ = yym2488
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2489 := !z.EncBinary()
yy2arr2489 := z.EncBasicHandle().StructToArray
var yyq2489 [4]bool
_, _, _ = yysep2489, yyq2489, yy2arr2489
const yyr2489 bool = false
yyq2489[0] = x.Kind != ""
yyq2489[1] = x.APIVersion != ""
yyq2489[2] = true
var yynn2489 int
if yyr2489 || yy2arr2489 {
r.EncodeArrayStart(4)
} else {
yynn2489 = 1
for _, b := range yyq2489 {
if b {
yynn2489++
}
}
r.EncodeMapStart(yynn2489)
yynn2489 = 0
}
if yyr2489 || yy2arr2489 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2489[0] {
yym2491 := z.EncBinary()
_ = yym2491
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2489[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2492 := z.EncBinary()
_ = yym2492
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2489 || yy2arr2489 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2489[1] {
yym2494 := z.EncBinary()
_ = yym2494
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2489[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2495 := z.EncBinary()
_ = yym2495
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2489 || yy2arr2489 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2489[2] {
yy2497 := &x.ListMeta
yym2498 := z.EncBinary()
_ = yym2498
if false {
} else if z.HasExtensions() && z.EncExt(yy2497) {
} else {
z.EncFallback(yy2497)
}
} else {
r.EncodeNil()
}
} else {
if yyq2489[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2499 := &x.ListMeta
yym2500 := z.EncBinary()
_ = yym2500
if false {
} else if z.HasExtensions() && z.EncExt(yy2499) {
} else {
z.EncFallback(yy2499)
}
}
}
if yyr2489 || yy2arr2489 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2502 := z.EncBinary()
_ = yym2502
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 {
yym2503 := z.EncBinary()
_ = yym2503
if false {
} else {
h.encSliceReplicationController(([]ReplicationController)(x.Items), e)
}
}
}
if yyr2489 || yy2arr2489 {
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
yym2504 := z.DecBinary()
_ = yym2504
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2505 := r.ContainerType()
if yyct2505 == codecSelferValueTypeMap1234 {
yyl2505 := r.ReadMapStart()
if yyl2505 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2505, d)
}
} else if yyct2505 == codecSelferValueTypeArray1234 {
yyl2505 := r.ReadArrayStart()
if yyl2505 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2505, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ReplicationControllerList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys2506Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2506Slc
var yyhl2506 bool = l >= 0
for yyj2506 := 0; ; yyj2506++ {
if yyhl2506 {
if yyj2506 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2506Slc = r.DecodeBytes(yys2506Slc, true, true)
yys2506 := string(yys2506Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2506 {
case "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 {
yyv2509 := &x.ListMeta
yym2510 := z.DecBinary()
_ = yym2510
if false {
} else if z.HasExtensions() && z.DecExt(yyv2509) {
} else {
z.DecFallback(yyv2509, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2511 := &x.Items
yym2512 := z.DecBinary()
_ = yym2512
if false {
} else {
h.decSliceReplicationController((*[]ReplicationController)(yyv2511), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2506)
} // end switch yys2506
} // end for yyj2506
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 yyj2513 int
var yyb2513 bool
var yyhl2513 bool = l >= 0
yyj2513++
if yyhl2513 {
yyb2513 = yyj2513 > l
} else {
yyb2513 = r.CheckBreak()
}
if yyb2513 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2513++
if yyhl2513 {
yyb2513 = yyj2513 > l
} else {
yyb2513 = r.CheckBreak()
}
if yyb2513 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2513++
if yyhl2513 {
yyb2513 = yyj2513 > l
} else {
yyb2513 = r.CheckBreak()
}
if yyb2513 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2516 := &x.ListMeta
yym2517 := z.DecBinary()
_ = yym2517
if false {
} else if z.HasExtensions() && z.DecExt(yyv2516) {
} else {
z.DecFallback(yyv2516, false)
}
}
yyj2513++
if yyhl2513 {
yyb2513 = yyj2513 > l
} else {
yyb2513 = r.CheckBreak()
}
if yyb2513 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2518 := &x.Items
yym2519 := z.DecBinary()
_ = yym2519
if false {
} else {
h.decSliceReplicationController((*[]ReplicationController)(yyv2518), d)
}
}
for {
yyj2513++
if yyhl2513 {
yyb2513 = yyj2513 > l
} else {
yyb2513 = r.CheckBreak()
}
if yyb2513 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2513-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 {
yym2520 := z.EncBinary()
_ = yym2520
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2521 := !z.EncBinary()
yy2arr2521 := z.EncBasicHandle().StructToArray
var yyq2521 [4]bool
_, _, _ = yysep2521, yyq2521, yy2arr2521
const yyr2521 bool = false
yyq2521[0] = x.Kind != ""
yyq2521[1] = x.APIVersion != ""
yyq2521[2] = true
var yynn2521 int
if yyr2521 || yy2arr2521 {
r.EncodeArrayStart(4)
} else {
yynn2521 = 1
for _, b := range yyq2521 {
if b {
yynn2521++
}
}
r.EncodeMapStart(yynn2521)
yynn2521 = 0
}
if yyr2521 || yy2arr2521 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2521[0] {
yym2523 := z.EncBinary()
_ = yym2523
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2521[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2524 := z.EncBinary()
_ = yym2524
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2521 || yy2arr2521 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2521[1] {
yym2526 := z.EncBinary()
_ = yym2526
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2521[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2527 := z.EncBinary()
_ = yym2527
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2521 || yy2arr2521 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2521[2] {
yy2529 := &x.ListMeta
yym2530 := z.EncBinary()
_ = yym2530
if false {
} else if z.HasExtensions() && z.EncExt(yy2529) {
} else {
z.EncFallback(yy2529)
}
} else {
r.EncodeNil()
}
} else {
if yyq2521[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2531 := &x.ListMeta
yym2532 := z.EncBinary()
_ = yym2532
if false {
} else if z.HasExtensions() && z.EncExt(yy2531) {
} else {
z.EncFallback(yy2531)
}
}
}
if yyr2521 || yy2arr2521 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2534 := z.EncBinary()
_ = yym2534
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 {
yym2535 := z.EncBinary()
_ = yym2535
if false {
} else {
h.encSliceService(([]Service)(x.Items), e)
}
}
}
if yyr2521 || yy2arr2521 {
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
yym2536 := z.DecBinary()
_ = yym2536
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2537 := r.ContainerType()
if yyct2537 == codecSelferValueTypeMap1234 {
yyl2537 := r.ReadMapStart()
if yyl2537 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2537, d)
}
} else if yyct2537 == codecSelferValueTypeArray1234 {
yyl2537 := r.ReadArrayStart()
if yyl2537 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2537, 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 yys2538Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2538Slc
var yyhl2538 bool = l >= 0
for yyj2538 := 0; ; yyj2538++ {
if yyhl2538 {
if yyj2538 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2538Slc = r.DecodeBytes(yys2538Slc, true, true)
yys2538 := string(yys2538Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2538 {
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 {
yyv2541 := &x.ListMeta
yym2542 := z.DecBinary()
_ = yym2542
if false {
} else if z.HasExtensions() && z.DecExt(yyv2541) {
} else {
z.DecFallback(yyv2541, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2543 := &x.Items
yym2544 := z.DecBinary()
_ = yym2544
if false {
} else {
h.decSliceService((*[]Service)(yyv2543), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2538)
} // end switch yys2538
} // end for yyj2538
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 yyj2545 int
var yyb2545 bool
var yyhl2545 bool = l >= 0
yyj2545++
if yyhl2545 {
yyb2545 = yyj2545 > l
} else {
yyb2545 = r.CheckBreak()
}
if yyb2545 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2545++
if yyhl2545 {
yyb2545 = yyj2545 > l
} else {
yyb2545 = r.CheckBreak()
}
if yyb2545 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2545++
if yyhl2545 {
yyb2545 = yyj2545 > l
} else {
yyb2545 = r.CheckBreak()
}
if yyb2545 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2548 := &x.ListMeta
yym2549 := z.DecBinary()
_ = yym2549
if false {
} else if z.HasExtensions() && z.DecExt(yyv2548) {
} else {
z.DecFallback(yyv2548, false)
}
}
yyj2545++
if yyhl2545 {
yyb2545 = yyj2545 > l
} else {
yyb2545 = r.CheckBreak()
}
if yyb2545 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2550 := &x.Items
yym2551 := z.DecBinary()
_ = yym2551
if false {
} else {
h.decSliceService((*[]Service)(yyv2550), d)
}
}
for {
yyj2545++
if yyhl2545 {
yyb2545 = yyj2545 > l
} else {
yyb2545 = r.CheckBreak()
}
if yyb2545 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2545-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x ServiceAffinity) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym2552 := z.EncBinary()
_ = yym2552
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
yym2553 := z.DecBinary()
_ = yym2553
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
yym2554 := z.EncBinary()
_ = yym2554
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
yym2555 := z.DecBinary()
_ = yym2555
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 {
yym2556 := z.EncBinary()
_ = yym2556
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2557 := !z.EncBinary()
yy2arr2557 := z.EncBasicHandle().StructToArray
var yyq2557 [1]bool
_, _, _ = yysep2557, yyq2557, yy2arr2557
const yyr2557 bool = false
yyq2557[0] = true
var yynn2557 int
if yyr2557 || yy2arr2557 {
r.EncodeArrayStart(1)
} else {
yynn2557 = 0
for _, b := range yyq2557 {
if b {
yynn2557++
}
}
r.EncodeMapStart(yynn2557)
yynn2557 = 0
}
if yyr2557 || yy2arr2557 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2557[0] {
yy2559 := &x.LoadBalancer
yy2559.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2557[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("loadBalancer"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2560 := &x.LoadBalancer
yy2560.CodecEncodeSelf(e)
}
}
if yyr2557 || yy2arr2557 {
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
yym2561 := z.DecBinary()
_ = yym2561
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2562 := r.ContainerType()
if yyct2562 == codecSelferValueTypeMap1234 {
yyl2562 := r.ReadMapStart()
if yyl2562 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2562, d)
}
} else if yyct2562 == codecSelferValueTypeArray1234 {
yyl2562 := r.ReadArrayStart()
if yyl2562 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2562, 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 yys2563Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2563Slc
var yyhl2563 bool = l >= 0
for yyj2563 := 0; ; yyj2563++ {
if yyhl2563 {
if yyj2563 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2563Slc = r.DecodeBytes(yys2563Slc, true, true)
yys2563 := string(yys2563Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2563 {
case "loadBalancer":
if r.TryDecodeAsNil() {
x.LoadBalancer = LoadBalancerStatus{}
} else {
yyv2564 := &x.LoadBalancer
yyv2564.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2563)
} // end switch yys2563
} // end for yyj2563
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 yyj2565 int
var yyb2565 bool
var yyhl2565 bool = l >= 0
yyj2565++
if yyhl2565 {
yyb2565 = yyj2565 > l
} else {
yyb2565 = r.CheckBreak()
}
if yyb2565 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LoadBalancer = LoadBalancerStatus{}
} else {
yyv2566 := &x.LoadBalancer
yyv2566.CodecDecodeSelf(d)
}
for {
yyj2565++
if yyhl2565 {
yyb2565 = yyj2565 > l
} else {
yyb2565 = r.CheckBreak()
}
if yyb2565 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2565-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 {
yym2567 := z.EncBinary()
_ = yym2567
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2568 := !z.EncBinary()
yy2arr2568 := z.EncBasicHandle().StructToArray
var yyq2568 [1]bool
_, _, _ = yysep2568, yyq2568, yy2arr2568
const yyr2568 bool = false
yyq2568[0] = len(x.Ingress) != 0
var yynn2568 int
if yyr2568 || yy2arr2568 {
r.EncodeArrayStart(1)
} else {
yynn2568 = 0
for _, b := range yyq2568 {
if b {
yynn2568++
}
}
r.EncodeMapStart(yynn2568)
yynn2568 = 0
}
if yyr2568 || yy2arr2568 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2568[0] {
if x.Ingress == nil {
r.EncodeNil()
} else {
yym2570 := z.EncBinary()
_ = yym2570
if false {
} else {
h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2568[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ingress"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Ingress == nil {
r.EncodeNil()
} else {
yym2571 := z.EncBinary()
_ = yym2571
if false {
} else {
h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e)
}
}
}
}
if yyr2568 || yy2arr2568 {
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
yym2572 := z.DecBinary()
_ = yym2572
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2573 := r.ContainerType()
if yyct2573 == codecSelferValueTypeMap1234 {
yyl2573 := r.ReadMapStart()
if yyl2573 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2573, d)
}
} else if yyct2573 == codecSelferValueTypeArray1234 {
yyl2573 := r.ReadArrayStart()
if yyl2573 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2573, 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 yys2574Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2574Slc
var yyhl2574 bool = l >= 0
for yyj2574 := 0; ; yyj2574++ {
if yyhl2574 {
if yyj2574 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2574Slc = r.DecodeBytes(yys2574Slc, true, true)
yys2574 := string(yys2574Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2574 {
case "ingress":
if r.TryDecodeAsNil() {
x.Ingress = nil
} else {
yyv2575 := &x.Ingress
yym2576 := z.DecBinary()
_ = yym2576
if false {
} else {
h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2575), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2574)
} // end switch yys2574
} // end for yyj2574
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 yyj2577 int
var yyb2577 bool
var yyhl2577 bool = l >= 0
yyj2577++
if yyhl2577 {
yyb2577 = yyj2577 > l
} else {
yyb2577 = r.CheckBreak()
}
if yyb2577 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ingress = nil
} else {
yyv2578 := &x.Ingress
yym2579 := z.DecBinary()
_ = yym2579
if false {
} else {
h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2578), d)
}
}
for {
yyj2577++
if yyhl2577 {
yyb2577 = yyj2577 > l
} else {
yyb2577 = r.CheckBreak()
}
if yyb2577 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2577-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 {
yym2580 := z.EncBinary()
_ = yym2580
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2581 := !z.EncBinary()
yy2arr2581 := z.EncBasicHandle().StructToArray
var yyq2581 [2]bool
_, _, _ = yysep2581, yyq2581, yy2arr2581
const yyr2581 bool = false
yyq2581[0] = x.IP != ""
yyq2581[1] = x.Hostname != ""
var yynn2581 int
if yyr2581 || yy2arr2581 {
r.EncodeArrayStart(2)
} else {
yynn2581 = 0
for _, b := range yyq2581 {
if b {
yynn2581++
}
}
r.EncodeMapStart(yynn2581)
yynn2581 = 0
}
if yyr2581 || yy2arr2581 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2581[0] {
yym2583 := z.EncBinary()
_ = yym2583
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2581[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ip"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2584 := z.EncBinary()
_ = yym2584
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
}
}
}
if yyr2581 || yy2arr2581 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2581[1] {
yym2586 := z.EncBinary()
_ = yym2586
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2581[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostname"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2587 := z.EncBinary()
_ = yym2587
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
}
}
}
if yyr2581 || yy2arr2581 {
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
yym2588 := z.DecBinary()
_ = yym2588
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2589 := r.ContainerType()
if yyct2589 == codecSelferValueTypeMap1234 {
yyl2589 := r.ReadMapStart()
if yyl2589 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2589, d)
}
} else if yyct2589 == codecSelferValueTypeArray1234 {
yyl2589 := r.ReadArrayStart()
if yyl2589 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2589, 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 yys2590Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2590Slc
var yyhl2590 bool = l >= 0
for yyj2590 := 0; ; yyj2590++ {
if yyhl2590 {
if yyj2590 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2590Slc = r.DecodeBytes(yys2590Slc, true, true)
yys2590 := string(yys2590Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2590 {
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, yys2590)
} // end switch yys2590
} // end for yyj2590
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 yyj2593 int
var yyb2593 bool
var yyhl2593 bool = l >= 0
yyj2593++
if yyhl2593 {
yyb2593 = yyj2593 > l
} else {
yyb2593 = r.CheckBreak()
}
if yyb2593 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.IP = ""
} else {
x.IP = string(r.DecodeString())
}
yyj2593++
if yyhl2593 {
yyb2593 = yyj2593 > l
} else {
yyb2593 = r.CheckBreak()
}
if yyb2593 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Hostname = ""
} else {
x.Hostname = string(r.DecodeString())
}
for {
yyj2593++
if yyhl2593 {
yyb2593 = yyj2593 > l
} else {
yyb2593 = r.CheckBreak()
}
if yyb2593 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2593-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 {
yym2596 := z.EncBinary()
_ = yym2596
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2597 := !z.EncBinary()
yy2arr2597 := z.EncBasicHandle().StructToArray
var yyq2597 [9]bool
_, _, _ = yysep2597, yyq2597, yy2arr2597
const yyr2597 bool = false
yyq2597[0] = x.Type != ""
yyq2597[3] = x.ClusterIP != ""
yyq2597[5] = len(x.ExternalIPs) != 0
yyq2597[6] = x.LoadBalancerIP != ""
yyq2597[7] = x.SessionAffinity != ""
yyq2597[8] = len(x.LoadBalancerSourceRanges) != 0
var yynn2597 int
if yyr2597 || yy2arr2597 {
r.EncodeArrayStart(9)
} else {
yynn2597 = 3
for _, b := range yyq2597 {
if b {
yynn2597++
}
}
r.EncodeMapStart(yynn2597)
yynn2597 = 0
}
if yyr2597 || yy2arr2597 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2597[0] {
x.Type.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2597[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Type.CodecEncodeSelf(e)
}
}
if yyr2597 || yy2arr2597 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Ports == nil {
r.EncodeNil()
} else {
yym2600 := z.EncBinary()
_ = yym2600
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 {
yym2601 := z.EncBinary()
_ = yym2601
if false {
} else {
h.encSliceServicePort(([]ServicePort)(x.Ports), e)
}
}
}
if yyr2597 || yy2arr2597 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Selector == nil {
r.EncodeNil()
} else {
yym2603 := z.EncBinary()
_ = yym2603
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 {
yym2604 := z.EncBinary()
_ = yym2604
if false {
} else {
z.F.EncMapStringStringV(x.Selector, false, e)
}
}
}
if yyr2597 || yy2arr2597 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2597[3] {
yym2606 := z.EncBinary()
_ = yym2606
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2597[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("clusterIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2607 := z.EncBinary()
_ = yym2607
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP))
}
}
}
if yyr2597 || yy2arr2597 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2609 := z.EncBinary()
_ = yym2609
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)
yym2610 := z.EncBinary()
_ = yym2610
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ExternalName))
}
}
if yyr2597 || yy2arr2597 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2597[5] {
if x.ExternalIPs == nil {
r.EncodeNil()
} else {
yym2612 := z.EncBinary()
_ = yym2612
if false {
} else {
z.F.EncSliceStringV(x.ExternalIPs, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2597[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("externalIPs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ExternalIPs == nil {
r.EncodeNil()
} else {
yym2613 := z.EncBinary()
_ = yym2613
if false {
} else {
z.F.EncSliceStringV(x.ExternalIPs, false, e)
}
}
}
}
if yyr2597 || yy2arr2597 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2597[6] {
yym2615 := z.EncBinary()
_ = yym2615
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2597[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2616 := z.EncBinary()
_ = yym2616
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP))
}
}
}
if yyr2597 || yy2arr2597 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2597[7] {
x.SessionAffinity.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2597[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.SessionAffinity.CodecEncodeSelf(e)
}
}
if yyr2597 || yy2arr2597 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2597[8] {
if x.LoadBalancerSourceRanges == nil {
r.EncodeNil()
} else {
yym2619 := z.EncBinary()
_ = yym2619
if false {
} else {
z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2597[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("loadBalancerSourceRanges"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.LoadBalancerSourceRanges == nil {
r.EncodeNil()
} else {
yym2620 := z.EncBinary()
_ = yym2620
if false {
} else {
z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e)
}
}
}
}
if yyr2597 || yy2arr2597 {
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
yym2621 := z.DecBinary()
_ = yym2621
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2622 := r.ContainerType()
if yyct2622 == codecSelferValueTypeMap1234 {
yyl2622 := r.ReadMapStart()
if yyl2622 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2622, d)
}
} else if yyct2622 == codecSelferValueTypeArray1234 {
yyl2622 := r.ReadArrayStart()
if yyl2622 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2622, 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 yys2623Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2623Slc
var yyhl2623 bool = l >= 0
for yyj2623 := 0; ; yyj2623++ {
if yyhl2623 {
if yyj2623 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2623Slc = r.DecodeBytes(yys2623Slc, true, true)
yys2623 := string(yys2623Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2623 {
case "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = ServiceType(r.DecodeString())
}
case "ports":
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv2625 := &x.Ports
yym2626 := z.DecBinary()
_ = yym2626
if false {
} else {
h.decSliceServicePort((*[]ServicePort)(yyv2625), d)
}
}
case "selector":
if r.TryDecodeAsNil() {
x.Selector = nil
} else {
yyv2627 := &x.Selector
yym2628 := z.DecBinary()
_ = yym2628
if false {
} else {
z.F.DecMapStringStringX(yyv2627, 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 {
yyv2631 := &x.ExternalIPs
yym2632 := z.DecBinary()
_ = yym2632
if false {
} else {
z.F.DecSliceStringX(yyv2631, 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 {
yyv2635 := &x.LoadBalancerSourceRanges
yym2636 := z.DecBinary()
_ = yym2636
if false {
} else {
z.F.DecSliceStringX(yyv2635, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2623)
} // end switch yys2623
} // end for yyj2623
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 yyj2637 int
var yyb2637 bool
var yyhl2637 bool = l >= 0
yyj2637++
if yyhl2637 {
yyb2637 = yyj2637 > l
} else {
yyb2637 = r.CheckBreak()
}
if yyb2637 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = ServiceType(r.DecodeString())
}
yyj2637++
if yyhl2637 {
yyb2637 = yyj2637 > l
} else {
yyb2637 = r.CheckBreak()
}
if yyb2637 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv2639 := &x.Ports
yym2640 := z.DecBinary()
_ = yym2640
if false {
} else {
h.decSliceServicePort((*[]ServicePort)(yyv2639), d)
}
}
yyj2637++
if yyhl2637 {
yyb2637 = yyj2637 > l
} else {
yyb2637 = r.CheckBreak()
}
if yyb2637 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Selector = nil
} else {
yyv2641 := &x.Selector
yym2642 := z.DecBinary()
_ = yym2642
if false {
} else {
z.F.DecMapStringStringX(yyv2641, false, d)
}
}
yyj2637++
if yyhl2637 {
yyb2637 = yyj2637 > l
} else {
yyb2637 = r.CheckBreak()
}
if yyb2637 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ClusterIP = ""
} else {
x.ClusterIP = string(r.DecodeString())
}
yyj2637++
if yyhl2637 {
yyb2637 = yyj2637 > l
} else {
yyb2637 = r.CheckBreak()
}
if yyb2637 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ExternalName = ""
} else {
x.ExternalName = string(r.DecodeString())
}
yyj2637++
if yyhl2637 {
yyb2637 = yyj2637 > l
} else {
yyb2637 = r.CheckBreak()
}
if yyb2637 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ExternalIPs = nil
} else {
yyv2645 := &x.ExternalIPs
yym2646 := z.DecBinary()
_ = yym2646
if false {
} else {
z.F.DecSliceStringX(yyv2645, false, d)
}
}
yyj2637++
if yyhl2637 {
yyb2637 = yyj2637 > l
} else {
yyb2637 = r.CheckBreak()
}
if yyb2637 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LoadBalancerIP = ""
} else {
x.LoadBalancerIP = string(r.DecodeString())
}
yyj2637++
if yyhl2637 {
yyb2637 = yyj2637 > l
} else {
yyb2637 = r.CheckBreak()
}
if yyb2637 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SessionAffinity = ""
} else {
x.SessionAffinity = ServiceAffinity(r.DecodeString())
}
yyj2637++
if yyhl2637 {
yyb2637 = yyj2637 > l
} else {
yyb2637 = r.CheckBreak()
}
if yyb2637 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LoadBalancerSourceRanges = nil
} else {
yyv2649 := &x.LoadBalancerSourceRanges
yym2650 := z.DecBinary()
_ = yym2650
if false {
} else {
z.F.DecSliceStringX(yyv2649, false, d)
}
}
for {
yyj2637++
if yyhl2637 {
yyb2637 = yyj2637 > l
} else {
yyb2637 = r.CheckBreak()
}
if yyb2637 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2637-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 {
yym2651 := z.EncBinary()
_ = yym2651
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2652 := !z.EncBinary()
yy2arr2652 := z.EncBasicHandle().StructToArray
var yyq2652 [5]bool
_, _, _ = yysep2652, yyq2652, yy2arr2652
const yyr2652 bool = false
var yynn2652 int
if yyr2652 || yy2arr2652 {
r.EncodeArrayStart(5)
} else {
yynn2652 = 5
for _, b := range yyq2652 {
if b {
yynn2652++
}
}
r.EncodeMapStart(yynn2652)
yynn2652 = 0
}
if yyr2652 || yy2arr2652 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2654 := z.EncBinary()
_ = yym2654
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)
yym2655 := z.EncBinary()
_ = yym2655
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr2652 || yy2arr2652 {
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 yyr2652 || yy2arr2652 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2658 := z.EncBinary()
_ = yym2658
if false {
} else {
r.EncodeInt(int64(x.Port))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2659 := z.EncBinary()
_ = yym2659
if false {
} else {
r.EncodeInt(int64(x.Port))
}
}
if yyr2652 || yy2arr2652 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy2661 := &x.TargetPort
yym2662 := z.EncBinary()
_ = yym2662
if false {
} else if z.HasExtensions() && z.EncExt(yy2661) {
} else if !yym2662 && z.IsJSONHandle() {
z.EncJSONMarshal(yy2661)
} else {
z.EncFallback(yy2661)
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("targetPort"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2663 := &x.TargetPort
yym2664 := z.EncBinary()
_ = yym2664
if false {
} else if z.HasExtensions() && z.EncExt(yy2663) {
} else if !yym2664 && z.IsJSONHandle() {
z.EncJSONMarshal(yy2663)
} else {
z.EncFallback(yy2663)
}
}
if yyr2652 || yy2arr2652 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2666 := z.EncBinary()
_ = yym2666
if false {
} else {
r.EncodeInt(int64(x.NodePort))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodePort"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2667 := z.EncBinary()
_ = yym2667
if false {
} else {
r.EncodeInt(int64(x.NodePort))
}
}
if yyr2652 || yy2arr2652 {
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
yym2668 := z.DecBinary()
_ = yym2668
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2669 := r.ContainerType()
if yyct2669 == codecSelferValueTypeMap1234 {
yyl2669 := r.ReadMapStart()
if yyl2669 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2669, d)
}
} else if yyct2669 == codecSelferValueTypeArray1234 {
yyl2669 := r.ReadArrayStart()
if yyl2669 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2669, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ServicePort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys2670Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2670Slc
var yyhl2670 bool = l >= 0
for yyj2670 := 0; ; yyj2670++ {
if yyhl2670 {
if yyj2670 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2670Slc = r.DecodeBytes(yys2670Slc, true, true)
yys2670 := string(yys2670Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2670 {
case "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 {
yyv2674 := &x.TargetPort
yym2675 := z.DecBinary()
_ = yym2675
if false {
} else if z.HasExtensions() && z.DecExt(yyv2674) {
} else if !yym2675 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv2674)
} else {
z.DecFallback(yyv2674, false)
}
}
case "nodePort":
if r.TryDecodeAsNil() {
x.NodePort = 0
} else {
x.NodePort = int32(r.DecodeInt(32))
}
default:
z.DecStructFieldNotFound(-1, yys2670)
} // end switch yys2670
} // end for yyj2670
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 yyj2677 int
var yyb2677 bool
var yyhl2677 bool = l >= 0
yyj2677++
if yyhl2677 {
yyb2677 = yyj2677 > l
} else {
yyb2677 = r.CheckBreak()
}
if yyb2677 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj2677++
if yyhl2677 {
yyb2677 = yyj2677 > l
} else {
yyb2677 = r.CheckBreak()
}
if yyb2677 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
yyj2677++
if yyhl2677 {
yyb2677 = yyj2677 > l
} else {
yyb2677 = r.CheckBreak()
}
if yyb2677 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int32(r.DecodeInt(32))
}
yyj2677++
if yyhl2677 {
yyb2677 = yyj2677 > l
} else {
yyb2677 = r.CheckBreak()
}
if yyb2677 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TargetPort = pkg4_intstr.IntOrString{}
} else {
yyv2681 := &x.TargetPort
yym2682 := z.DecBinary()
_ = yym2682
if false {
} else if z.HasExtensions() && z.DecExt(yyv2681) {
} else if !yym2682 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv2681)
} else {
z.DecFallback(yyv2681, false)
}
}
yyj2677++
if yyhl2677 {
yyb2677 = yyj2677 > l
} else {
yyb2677 = r.CheckBreak()
}
if yyb2677 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodePort = 0
} else {
x.NodePort = int32(r.DecodeInt(32))
}
for {
yyj2677++
if yyhl2677 {
yyb2677 = yyj2677 > l
} else {
yyb2677 = r.CheckBreak()
}
if yyb2677 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2677-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 {
yym2684 := z.EncBinary()
_ = yym2684
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2685 := !z.EncBinary()
yy2arr2685 := z.EncBasicHandle().StructToArray
var yyq2685 [5]bool
_, _, _ = yysep2685, yyq2685, yy2arr2685
const yyr2685 bool = false
yyq2685[0] = x.Kind != ""
yyq2685[1] = x.APIVersion != ""
yyq2685[2] = true
yyq2685[3] = true
yyq2685[4] = true
var yynn2685 int
if yyr2685 || yy2arr2685 {
r.EncodeArrayStart(5)
} else {
yynn2685 = 0
for _, b := range yyq2685 {
if b {
yynn2685++
}
}
r.EncodeMapStart(yynn2685)
yynn2685 = 0
}
if yyr2685 || yy2arr2685 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2685[0] {
yym2687 := z.EncBinary()
_ = yym2687
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2685[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2688 := z.EncBinary()
_ = yym2688
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2685 || yy2arr2685 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2685[1] {
yym2690 := z.EncBinary()
_ = yym2690
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2685[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2691 := z.EncBinary()
_ = yym2691
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2685 || yy2arr2685 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2685[2] {
yy2693 := &x.ObjectMeta
yy2693.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2685[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2694 := &x.ObjectMeta
yy2694.CodecEncodeSelf(e)
}
}
if yyr2685 || yy2arr2685 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2685[3] {
yy2696 := &x.Spec
yy2696.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2685[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2697 := &x.Spec
yy2697.CodecEncodeSelf(e)
}
}
if yyr2685 || yy2arr2685 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2685[4] {
yy2699 := &x.Status
yy2699.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2685[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2700 := &x.Status
yy2700.CodecEncodeSelf(e)
}
}
if yyr2685 || yy2arr2685 {
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
yym2701 := z.DecBinary()
_ = yym2701
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2702 := r.ContainerType()
if yyct2702 == codecSelferValueTypeMap1234 {
yyl2702 := r.ReadMapStart()
if yyl2702 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2702, d)
}
} else if yyct2702 == codecSelferValueTypeArray1234 {
yyl2702 := r.ReadArrayStart()
if yyl2702 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2702, 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 yys2703Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2703Slc
var yyhl2703 bool = l >= 0
for yyj2703 := 0; ; yyj2703++ {
if yyhl2703 {
if yyj2703 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2703Slc = r.DecodeBytes(yys2703Slc, true, true)
yys2703 := string(yys2703Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2703 {
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 {
yyv2706 := &x.ObjectMeta
yyv2706.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = ServiceSpec{}
} else {
yyv2707 := &x.Spec
yyv2707.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = ServiceStatus{}
} else {
yyv2708 := &x.Status
yyv2708.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2703)
} // end switch yys2703
} // end for yyj2703
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 yyj2709 int
var yyb2709 bool
var yyhl2709 bool = l >= 0
yyj2709++
if yyhl2709 {
yyb2709 = yyj2709 > l
} else {
yyb2709 = r.CheckBreak()
}
if yyb2709 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2709++
if yyhl2709 {
yyb2709 = yyj2709 > l
} else {
yyb2709 = r.CheckBreak()
}
if yyb2709 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2709++
if yyhl2709 {
yyb2709 = yyj2709 > l
} else {
yyb2709 = r.CheckBreak()
}
if yyb2709 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2712 := &x.ObjectMeta
yyv2712.CodecDecodeSelf(d)
}
yyj2709++
if yyhl2709 {
yyb2709 = yyj2709 > l
} else {
yyb2709 = r.CheckBreak()
}
if yyb2709 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = ServiceSpec{}
} else {
yyv2713 := &x.Spec
yyv2713.CodecDecodeSelf(d)
}
yyj2709++
if yyhl2709 {
yyb2709 = yyj2709 > l
} else {
yyb2709 = r.CheckBreak()
}
if yyb2709 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ServiceStatus{}
} else {
yyv2714 := &x.Status
yyv2714.CodecDecodeSelf(d)
}
for {
yyj2709++
if yyhl2709 {
yyb2709 = yyj2709 > l
} else {
yyb2709 = r.CheckBreak()
}
if yyb2709 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2709-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 {
yym2715 := z.EncBinary()
_ = yym2715
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2716 := !z.EncBinary()
yy2arr2716 := z.EncBasicHandle().StructToArray
var yyq2716 [5]bool
_, _, _ = yysep2716, yyq2716, yy2arr2716
const yyr2716 bool = false
yyq2716[0] = x.Kind != ""
yyq2716[1] = x.APIVersion != ""
yyq2716[2] = true
yyq2716[4] = len(x.ImagePullSecrets) != 0
var yynn2716 int
if yyr2716 || yy2arr2716 {
r.EncodeArrayStart(5)
} else {
yynn2716 = 1
for _, b := range yyq2716 {
if b {
yynn2716++
}
}
r.EncodeMapStart(yynn2716)
yynn2716 = 0
}
if yyr2716 || yy2arr2716 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2716[0] {
yym2718 := z.EncBinary()
_ = yym2718
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2716[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2719 := z.EncBinary()
_ = yym2719
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2716 || yy2arr2716 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2716[1] {
yym2721 := z.EncBinary()
_ = yym2721
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2716[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2722 := z.EncBinary()
_ = yym2722
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2716 || yy2arr2716 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2716[2] {
yy2724 := &x.ObjectMeta
yy2724.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2716[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2725 := &x.ObjectMeta
yy2725.CodecEncodeSelf(e)
}
}
if yyr2716 || yy2arr2716 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Secrets == nil {
r.EncodeNil()
} else {
yym2727 := z.EncBinary()
_ = yym2727
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 {
yym2728 := z.EncBinary()
_ = yym2728
if false {
} else {
h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e)
}
}
}
if yyr2716 || yy2arr2716 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2716[4] {
if x.ImagePullSecrets == nil {
r.EncodeNil()
} else {
yym2730 := z.EncBinary()
_ = yym2730
if false {
} else {
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2716[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ImagePullSecrets == nil {
r.EncodeNil()
} else {
yym2731 := z.EncBinary()
_ = yym2731
if false {
} else {
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
}
}
}
}
if yyr2716 || yy2arr2716 {
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
yym2732 := z.DecBinary()
_ = yym2732
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2733 := r.ContainerType()
if yyct2733 == codecSelferValueTypeMap1234 {
yyl2733 := r.ReadMapStart()
if yyl2733 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2733, d)
}
} else if yyct2733 == codecSelferValueTypeArray1234 {
yyl2733 := r.ReadArrayStart()
if yyl2733 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2733, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ServiceAccount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys2734Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2734Slc
var yyhl2734 bool = l >= 0
for yyj2734 := 0; ; yyj2734++ {
if yyhl2734 {
if yyj2734 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2734Slc = r.DecodeBytes(yys2734Slc, true, true)
yys2734 := string(yys2734Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2734 {
case "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 {
yyv2737 := &x.ObjectMeta
yyv2737.CodecDecodeSelf(d)
}
case "secrets":
if r.TryDecodeAsNil() {
x.Secrets = nil
} else {
yyv2738 := &x.Secrets
yym2739 := z.DecBinary()
_ = yym2739
if false {
} else {
h.decSliceObjectReference((*[]ObjectReference)(yyv2738), d)
}
}
case "imagePullSecrets":
if r.TryDecodeAsNil() {
x.ImagePullSecrets = nil
} else {
yyv2740 := &x.ImagePullSecrets
yym2741 := z.DecBinary()
_ = yym2741
if false {
} else {
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2740), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2734)
} // end switch yys2734
} // end for yyj2734
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 yyj2742 int
var yyb2742 bool
var yyhl2742 bool = l >= 0
yyj2742++
if yyhl2742 {
yyb2742 = yyj2742 > l
} else {
yyb2742 = r.CheckBreak()
}
if yyb2742 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2742++
if yyhl2742 {
yyb2742 = yyj2742 > l
} else {
yyb2742 = r.CheckBreak()
}
if yyb2742 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2742++
if yyhl2742 {
yyb2742 = yyj2742 > l
} else {
yyb2742 = r.CheckBreak()
}
if yyb2742 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2745 := &x.ObjectMeta
yyv2745.CodecDecodeSelf(d)
}
yyj2742++
if yyhl2742 {
yyb2742 = yyj2742 > l
} else {
yyb2742 = r.CheckBreak()
}
if yyb2742 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Secrets = nil
} else {
yyv2746 := &x.Secrets
yym2747 := z.DecBinary()
_ = yym2747
if false {
} else {
h.decSliceObjectReference((*[]ObjectReference)(yyv2746), d)
}
}
yyj2742++
if yyhl2742 {
yyb2742 = yyj2742 > l
} else {
yyb2742 = r.CheckBreak()
}
if yyb2742 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ImagePullSecrets = nil
} else {
yyv2748 := &x.ImagePullSecrets
yym2749 := z.DecBinary()
_ = yym2749
if false {
} else {
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2748), d)
}
}
for {
yyj2742++
if yyhl2742 {
yyb2742 = yyj2742 > l
} else {
yyb2742 = r.CheckBreak()
}
if yyb2742 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2742-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 {
yym2750 := z.EncBinary()
_ = yym2750
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2751 := !z.EncBinary()
yy2arr2751 := z.EncBasicHandle().StructToArray
var yyq2751 [4]bool
_, _, _ = yysep2751, yyq2751, yy2arr2751
const yyr2751 bool = false
yyq2751[0] = x.Kind != ""
yyq2751[1] = x.APIVersion != ""
yyq2751[2] = true
var yynn2751 int
if yyr2751 || yy2arr2751 {
r.EncodeArrayStart(4)
} else {
yynn2751 = 1
for _, b := range yyq2751 {
if b {
yynn2751++
}
}
r.EncodeMapStart(yynn2751)
yynn2751 = 0
}
if yyr2751 || yy2arr2751 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2751[0] {
yym2753 := z.EncBinary()
_ = yym2753
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2751[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2754 := z.EncBinary()
_ = yym2754
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2751 || yy2arr2751 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2751[1] {
yym2756 := z.EncBinary()
_ = yym2756
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2751[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2757 := z.EncBinary()
_ = yym2757
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2751 || yy2arr2751 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2751[2] {
yy2759 := &x.ListMeta
yym2760 := z.EncBinary()
_ = yym2760
if false {
} else if z.HasExtensions() && z.EncExt(yy2759) {
} else {
z.EncFallback(yy2759)
}
} else {
r.EncodeNil()
}
} else {
if yyq2751[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2761 := &x.ListMeta
yym2762 := z.EncBinary()
_ = yym2762
if false {
} else if z.HasExtensions() && z.EncExt(yy2761) {
} else {
z.EncFallback(yy2761)
}
}
}
if yyr2751 || yy2arr2751 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2764 := z.EncBinary()
_ = yym2764
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 {
yym2765 := z.EncBinary()
_ = yym2765
if false {
} else {
h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e)
}
}
}
if yyr2751 || yy2arr2751 {
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
yym2766 := z.DecBinary()
_ = yym2766
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2767 := r.ContainerType()
if yyct2767 == codecSelferValueTypeMap1234 {
yyl2767 := r.ReadMapStart()
if yyl2767 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2767, d)
}
} else if yyct2767 == codecSelferValueTypeArray1234 {
yyl2767 := r.ReadArrayStart()
if yyl2767 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2767, 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 yys2768Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2768Slc
var yyhl2768 bool = l >= 0
for yyj2768 := 0; ; yyj2768++ {
if yyhl2768 {
if yyj2768 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2768Slc = r.DecodeBytes(yys2768Slc, true, true)
yys2768 := string(yys2768Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2768 {
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 {
yyv2771 := &x.ListMeta
yym2772 := z.DecBinary()
_ = yym2772
if false {
} else if z.HasExtensions() && z.DecExt(yyv2771) {
} else {
z.DecFallback(yyv2771, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2773 := &x.Items
yym2774 := z.DecBinary()
_ = yym2774
if false {
} else {
h.decSliceServiceAccount((*[]ServiceAccount)(yyv2773), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2768)
} // end switch yys2768
} // end for yyj2768
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 yyj2775 int
var yyb2775 bool
var yyhl2775 bool = l >= 0
yyj2775++
if yyhl2775 {
yyb2775 = yyj2775 > l
} else {
yyb2775 = r.CheckBreak()
}
if yyb2775 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2775++
if yyhl2775 {
yyb2775 = yyj2775 > l
} else {
yyb2775 = r.CheckBreak()
}
if yyb2775 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2775++
if yyhl2775 {
yyb2775 = yyj2775 > l
} else {
yyb2775 = r.CheckBreak()
}
if yyb2775 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2778 := &x.ListMeta
yym2779 := z.DecBinary()
_ = yym2779
if false {
} else if z.HasExtensions() && z.DecExt(yyv2778) {
} else {
z.DecFallback(yyv2778, false)
}
}
yyj2775++
if yyhl2775 {
yyb2775 = yyj2775 > l
} else {
yyb2775 = r.CheckBreak()
}
if yyb2775 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2780 := &x.Items
yym2781 := z.DecBinary()
_ = yym2781
if false {
} else {
h.decSliceServiceAccount((*[]ServiceAccount)(yyv2780), d)
}
}
for {
yyj2775++
if yyhl2775 {
yyb2775 = yyj2775 > l
} else {
yyb2775 = r.CheckBreak()
}
if yyb2775 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2775-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 {
yym2782 := z.EncBinary()
_ = yym2782
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2783 := !z.EncBinary()
yy2arr2783 := z.EncBasicHandle().StructToArray
var yyq2783 [4]bool
_, _, _ = yysep2783, yyq2783, yy2arr2783
const yyr2783 bool = false
yyq2783[0] = x.Kind != ""
yyq2783[1] = x.APIVersion != ""
yyq2783[2] = true
var yynn2783 int
if yyr2783 || yy2arr2783 {
r.EncodeArrayStart(4)
} else {
yynn2783 = 1
for _, b := range yyq2783 {
if b {
yynn2783++
}
}
r.EncodeMapStart(yynn2783)
yynn2783 = 0
}
if yyr2783 || yy2arr2783 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2783[0] {
yym2785 := z.EncBinary()
_ = yym2785
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2783[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2786 := z.EncBinary()
_ = yym2786
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2783 || yy2arr2783 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2783[1] {
yym2788 := z.EncBinary()
_ = yym2788
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2783[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2789 := z.EncBinary()
_ = yym2789
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2783 || yy2arr2783 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2783[2] {
yy2791 := &x.ObjectMeta
yy2791.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2783[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2792 := &x.ObjectMeta
yy2792.CodecEncodeSelf(e)
}
}
if yyr2783 || yy2arr2783 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Subsets == nil {
r.EncodeNil()
} else {
yym2794 := z.EncBinary()
_ = yym2794
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 {
yym2795 := z.EncBinary()
_ = yym2795
if false {
} else {
h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e)
}
}
}
if yyr2783 || yy2arr2783 {
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
yym2796 := z.DecBinary()
_ = yym2796
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2797 := r.ContainerType()
if yyct2797 == codecSelferValueTypeMap1234 {
yyl2797 := r.ReadMapStart()
if yyl2797 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2797, d)
}
} else if yyct2797 == codecSelferValueTypeArray1234 {
yyl2797 := r.ReadArrayStart()
if yyl2797 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2797, 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 yys2798Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2798Slc
var yyhl2798 bool = l >= 0
for yyj2798 := 0; ; yyj2798++ {
if yyhl2798 {
if yyj2798 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2798Slc = r.DecodeBytes(yys2798Slc, true, true)
yys2798 := string(yys2798Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2798 {
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 {
yyv2801 := &x.ObjectMeta
yyv2801.CodecDecodeSelf(d)
}
case "Subsets":
if r.TryDecodeAsNil() {
x.Subsets = nil
} else {
yyv2802 := &x.Subsets
yym2803 := z.DecBinary()
_ = yym2803
if false {
} else {
h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2802), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2798)
} // end switch yys2798
} // end for yyj2798
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 yyj2804 int
var yyb2804 bool
var yyhl2804 bool = l >= 0
yyj2804++
if yyhl2804 {
yyb2804 = yyj2804 > l
} else {
yyb2804 = r.CheckBreak()
}
if yyb2804 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2804++
if yyhl2804 {
yyb2804 = yyj2804 > l
} else {
yyb2804 = r.CheckBreak()
}
if yyb2804 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2804++
if yyhl2804 {
yyb2804 = yyj2804 > l
} else {
yyb2804 = r.CheckBreak()
}
if yyb2804 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2807 := &x.ObjectMeta
yyv2807.CodecDecodeSelf(d)
}
yyj2804++
if yyhl2804 {
yyb2804 = yyj2804 > l
} else {
yyb2804 = r.CheckBreak()
}
if yyb2804 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Subsets = nil
} else {
yyv2808 := &x.Subsets
yym2809 := z.DecBinary()
_ = yym2809
if false {
} else {
h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2808), d)
}
}
for {
yyj2804++
if yyhl2804 {
yyb2804 = yyj2804 > l
} else {
yyb2804 = r.CheckBreak()
}
if yyb2804 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2804-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 {
yym2810 := z.EncBinary()
_ = yym2810
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2811 := !z.EncBinary()
yy2arr2811 := z.EncBasicHandle().StructToArray
var yyq2811 [3]bool
_, _, _ = yysep2811, yyq2811, yy2arr2811
const yyr2811 bool = false
var yynn2811 int
if yyr2811 || yy2arr2811 {
r.EncodeArrayStart(3)
} else {
yynn2811 = 3
for _, b := range yyq2811 {
if b {
yynn2811++
}
}
r.EncodeMapStart(yynn2811)
yynn2811 = 0
}
if yyr2811 || yy2arr2811 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Addresses == nil {
r.EncodeNil()
} else {
yym2813 := z.EncBinary()
_ = yym2813
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 {
yym2814 := z.EncBinary()
_ = yym2814
if false {
} else {
h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e)
}
}
}
if yyr2811 || yy2arr2811 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.NotReadyAddresses == nil {
r.EncodeNil()
} else {
yym2816 := z.EncBinary()
_ = yym2816
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 {
yym2817 := z.EncBinary()
_ = yym2817
if false {
} else {
h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e)
}
}
}
if yyr2811 || yy2arr2811 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Ports == nil {
r.EncodeNil()
} else {
yym2819 := z.EncBinary()
_ = yym2819
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 {
yym2820 := z.EncBinary()
_ = yym2820
if false {
} else {
h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e)
}
}
}
if yyr2811 || yy2arr2811 {
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
yym2821 := z.DecBinary()
_ = yym2821
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2822 := r.ContainerType()
if yyct2822 == codecSelferValueTypeMap1234 {
yyl2822 := r.ReadMapStart()
if yyl2822 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2822, d)
}
} else if yyct2822 == codecSelferValueTypeArray1234 {
yyl2822 := r.ReadArrayStart()
if yyl2822 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2822, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *EndpointSubset) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys2823Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2823Slc
var yyhl2823 bool = l >= 0
for yyj2823 := 0; ; yyj2823++ {
if yyhl2823 {
if yyj2823 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2823Slc = r.DecodeBytes(yys2823Slc, true, true)
yys2823 := string(yys2823Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2823 {
case "Addresses":
if r.TryDecodeAsNil() {
x.Addresses = nil
} else {
yyv2824 := &x.Addresses
yym2825 := z.DecBinary()
_ = yym2825
if false {
} else {
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2824), d)
}
}
case "NotReadyAddresses":
if r.TryDecodeAsNil() {
x.NotReadyAddresses = nil
} else {
yyv2826 := &x.NotReadyAddresses
yym2827 := z.DecBinary()
_ = yym2827
if false {
} else {
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2826), d)
}
}
case "Ports":
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv2828 := &x.Ports
yym2829 := z.DecBinary()
_ = yym2829
if false {
} else {
h.decSliceEndpointPort((*[]EndpointPort)(yyv2828), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2823)
} // end switch yys2823
} // end for yyj2823
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 yyj2830 int
var yyb2830 bool
var yyhl2830 bool = l >= 0
yyj2830++
if yyhl2830 {
yyb2830 = yyj2830 > l
} else {
yyb2830 = r.CheckBreak()
}
if yyb2830 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Addresses = nil
} else {
yyv2831 := &x.Addresses
yym2832 := z.DecBinary()
_ = yym2832
if false {
} else {
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2831), d)
}
}
yyj2830++
if yyhl2830 {
yyb2830 = yyj2830 > l
} else {
yyb2830 = r.CheckBreak()
}
if yyb2830 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NotReadyAddresses = nil
} else {
yyv2833 := &x.NotReadyAddresses
yym2834 := z.DecBinary()
_ = yym2834
if false {
} else {
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2833), d)
}
}
yyj2830++
if yyhl2830 {
yyb2830 = yyj2830 > l
} else {
yyb2830 = r.CheckBreak()
}
if yyb2830 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv2835 := &x.Ports
yym2836 := z.DecBinary()
_ = yym2836
if false {
} else {
h.decSliceEndpointPort((*[]EndpointPort)(yyv2835), d)
}
}
for {
yyj2830++
if yyhl2830 {
yyb2830 = yyj2830 > l
} else {
yyb2830 = r.CheckBreak()
}
if yyb2830 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2830-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2837 := z.EncBinary()
_ = yym2837
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2838 := !z.EncBinary()
yy2arr2838 := z.EncBasicHandle().StructToArray
var yyq2838 [4]bool
_, _, _ = yysep2838, yyq2838, yy2arr2838
const yyr2838 bool = false
yyq2838[1] = x.Hostname != ""
yyq2838[2] = x.NodeName != nil
var yynn2838 int
if yyr2838 || yy2arr2838 {
r.EncodeArrayStart(4)
} else {
yynn2838 = 2
for _, b := range yyq2838 {
if b {
yynn2838++
}
}
r.EncodeMapStart(yynn2838)
yynn2838 = 0
}
if yyr2838 || yy2arr2838 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2840 := z.EncBinary()
_ = yym2840
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)
yym2841 := z.EncBinary()
_ = yym2841
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
}
}
if yyr2838 || yy2arr2838 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2838[1] {
yym2843 := z.EncBinary()
_ = yym2843
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2838[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostname"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2844 := z.EncBinary()
_ = yym2844
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
}
}
}
if yyr2838 || yy2arr2838 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2838[2] {
if x.NodeName == nil {
r.EncodeNil()
} else {
yy2846 := *x.NodeName
yym2847 := z.EncBinary()
_ = yym2847
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(yy2846))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2838[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.NodeName == nil {
r.EncodeNil()
} else {
yy2848 := *x.NodeName
yym2849 := z.EncBinary()
_ = yym2849
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(yy2848))
}
}
}
}
if yyr2838 || yy2arr2838 {
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 yyr2838 || yy2arr2838 {
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
yym2851 := z.DecBinary()
_ = yym2851
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2852 := r.ContainerType()
if yyct2852 == codecSelferValueTypeMap1234 {
yyl2852 := r.ReadMapStart()
if yyl2852 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2852, d)
}
} else if yyct2852 == codecSelferValueTypeArray1234 {
yyl2852 := r.ReadArrayStart()
if yyl2852 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2852, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys2853Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2853Slc
var yyhl2853 bool = l >= 0
for yyj2853 := 0; ; yyj2853++ {
if yyhl2853 {
if yyj2853 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2853Slc = r.DecodeBytes(yys2853Slc, true, true)
yys2853 := string(yys2853Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2853 {
case "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)
}
yym2857 := z.DecBinary()
_ = yym2857
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, yys2853)
} // end switch yys2853
} // end for yyj2853
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 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.IP = ""
} else {
x.IP = 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.Hostname = ""
} else {
x.Hostname = 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() {
if x.NodeName != nil {
x.NodeName = nil
}
} else {
if x.NodeName == nil {
x.NodeName = new(string)
}
yym2863 := z.DecBinary()
_ = yym2863
if false {
} else {
*((*string)(x.NodeName)) = 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() {
if x.TargetRef != nil {
x.TargetRef = nil
}
} else {
if x.TargetRef == nil {
x.TargetRef = new(ObjectReference)
}
x.TargetRef.CodecDecodeSelf(d)
}
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 *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2865 := z.EncBinary()
_ = yym2865
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2866 := !z.EncBinary()
yy2arr2866 := z.EncBasicHandle().StructToArray
var yyq2866 [3]bool
_, _, _ = yysep2866, yyq2866, yy2arr2866
const yyr2866 bool = false
var yynn2866 int
if yyr2866 || yy2arr2866 {
r.EncodeArrayStart(3)
} else {
yynn2866 = 3
for _, b := range yyq2866 {
if b {
yynn2866++
}
}
r.EncodeMapStart(yynn2866)
yynn2866 = 0
}
if yyr2866 || yy2arr2866 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2868 := z.EncBinary()
_ = yym2868
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)
yym2869 := z.EncBinary()
_ = yym2869
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr2866 || yy2arr2866 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2871 := z.EncBinary()
_ = yym2871
if false {
} else {
r.EncodeInt(int64(x.Port))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2872 := z.EncBinary()
_ = yym2872
if false {
} else {
r.EncodeInt(int64(x.Port))
}
}
if yyr2866 || yy2arr2866 {
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 yyr2866 || yy2arr2866 {
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
yym2874 := z.DecBinary()
_ = yym2874
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2875 := r.ContainerType()
if yyct2875 == codecSelferValueTypeMap1234 {
yyl2875 := r.ReadMapStart()
if yyl2875 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2875, d)
}
} else if yyct2875 == codecSelferValueTypeArray1234 {
yyl2875 := r.ReadArrayStart()
if yyl2875 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2875, 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 yys2876Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2876Slc
var yyhl2876 bool = l >= 0
for yyj2876 := 0; ; yyj2876++ {
if yyhl2876 {
if yyj2876 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2876Slc = r.DecodeBytes(yys2876Slc, true, true)
yys2876 := string(yys2876Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2876 {
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, yys2876)
} // end switch yys2876
} // end for yyj2876
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 yyj2880 int
var yyb2880 bool
var yyhl2880 bool = l >= 0
yyj2880++
if yyhl2880 {
yyb2880 = yyj2880 > l
} else {
yyb2880 = r.CheckBreak()
}
if yyb2880 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj2880++
if yyhl2880 {
yyb2880 = yyj2880 > l
} else {
yyb2880 = r.CheckBreak()
}
if yyb2880 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int32(r.DecodeInt(32))
}
yyj2880++
if yyhl2880 {
yyb2880 = yyj2880 > l
} else {
yyb2880 = r.CheckBreak()
}
if yyb2880 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
for {
yyj2880++
if yyhl2880 {
yyb2880 = yyj2880 > l
} else {
yyb2880 = r.CheckBreak()
}
if yyb2880 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2880-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 {
yym2884 := z.EncBinary()
_ = yym2884
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2885 := !z.EncBinary()
yy2arr2885 := z.EncBasicHandle().StructToArray
var yyq2885 [4]bool
_, _, _ = yysep2885, yyq2885, yy2arr2885
const yyr2885 bool = false
yyq2885[0] = x.Kind != ""
yyq2885[1] = x.APIVersion != ""
yyq2885[2] = true
var yynn2885 int
if yyr2885 || yy2arr2885 {
r.EncodeArrayStart(4)
} else {
yynn2885 = 1
for _, b := range yyq2885 {
if b {
yynn2885++
}
}
r.EncodeMapStart(yynn2885)
yynn2885 = 0
}
if yyr2885 || yy2arr2885 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2885[0] {
yym2887 := z.EncBinary()
_ = yym2887
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2885[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2888 := z.EncBinary()
_ = yym2888
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2885 || yy2arr2885 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2885[1] {
yym2890 := z.EncBinary()
_ = yym2890
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2885[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2891 := z.EncBinary()
_ = yym2891
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2885 || yy2arr2885 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2885[2] {
yy2893 := &x.ListMeta
yym2894 := z.EncBinary()
_ = yym2894
if false {
} else if z.HasExtensions() && z.EncExt(yy2893) {
} else {
z.EncFallback(yy2893)
}
} else {
r.EncodeNil()
}
} else {
if yyq2885[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2895 := &x.ListMeta
yym2896 := z.EncBinary()
_ = yym2896
if false {
} else if z.HasExtensions() && z.EncExt(yy2895) {
} else {
z.EncFallback(yy2895)
}
}
}
if yyr2885 || yy2arr2885 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2898 := z.EncBinary()
_ = yym2898
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 {
yym2899 := z.EncBinary()
_ = yym2899
if false {
} else {
h.encSliceEndpoints(([]Endpoints)(x.Items), e)
}
}
}
if yyr2885 || yy2arr2885 {
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
yym2900 := z.DecBinary()
_ = yym2900
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2901 := r.ContainerType()
if yyct2901 == codecSelferValueTypeMap1234 {
yyl2901 := r.ReadMapStart()
if yyl2901 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2901, d)
}
} else if yyct2901 == codecSelferValueTypeArray1234 {
yyl2901 := r.ReadArrayStart()
if yyl2901 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2901, 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 yys2902Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2902Slc
var yyhl2902 bool = l >= 0
for yyj2902 := 0; ; yyj2902++ {
if yyhl2902 {
if yyj2902 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2902Slc = r.DecodeBytes(yys2902Slc, true, true)
yys2902 := string(yys2902Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2902 {
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 {
yyv2905 := &x.ListMeta
yym2906 := z.DecBinary()
_ = yym2906
if false {
} else if z.HasExtensions() && z.DecExt(yyv2905) {
} else {
z.DecFallback(yyv2905, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2907 := &x.Items
yym2908 := z.DecBinary()
_ = yym2908
if false {
} else {
h.decSliceEndpoints((*[]Endpoints)(yyv2907), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2902)
} // end switch yys2902
} // end for yyj2902
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 yyj2909 int
var yyb2909 bool
var yyhl2909 bool = l >= 0
yyj2909++
if yyhl2909 {
yyb2909 = yyj2909 > l
} else {
yyb2909 = r.CheckBreak()
}
if yyb2909 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2909++
if yyhl2909 {
yyb2909 = yyj2909 > l
} else {
yyb2909 = r.CheckBreak()
}
if yyb2909 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2909++
if yyhl2909 {
yyb2909 = yyj2909 > l
} else {
yyb2909 = r.CheckBreak()
}
if yyb2909 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2912 := &x.ListMeta
yym2913 := z.DecBinary()
_ = yym2913
if false {
} else if z.HasExtensions() && z.DecExt(yyv2912) {
} else {
z.DecFallback(yyv2912, false)
}
}
yyj2909++
if yyhl2909 {
yyb2909 = yyj2909 > l
} else {
yyb2909 = r.CheckBreak()
}
if yyb2909 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2914 := &x.Items
yym2915 := z.DecBinary()
_ = yym2915
if false {
} else {
h.decSliceEndpoints((*[]Endpoints)(yyv2914), d)
}
}
for {
yyj2909++
if yyhl2909 {
yyb2909 = yyj2909 > l
} else {
yyb2909 = r.CheckBreak()
}
if yyb2909 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2909-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 {
yym2916 := z.EncBinary()
_ = yym2916
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2917 := !z.EncBinary()
yy2arr2917 := z.EncBasicHandle().StructToArray
var yyq2917 [4]bool
_, _, _ = yysep2917, yyq2917, yy2arr2917
const yyr2917 bool = false
yyq2917[0] = x.PodCIDR != ""
yyq2917[1] = x.ExternalID != ""
yyq2917[2] = x.ProviderID != ""
yyq2917[3] = x.Unschedulable != false
var yynn2917 int
if yyr2917 || yy2arr2917 {
r.EncodeArrayStart(4)
} else {
yynn2917 = 0
for _, b := range yyq2917 {
if b {
yynn2917++
}
}
r.EncodeMapStart(yynn2917)
yynn2917 = 0
}
if yyr2917 || yy2arr2917 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2917[0] {
yym2919 := z.EncBinary()
_ = yym2919
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2917[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("podCIDR"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2920 := z.EncBinary()
_ = yym2920
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR))
}
}
}
if yyr2917 || yy2arr2917 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2917[1] {
yym2922 := z.EncBinary()
_ = yym2922
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2917[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("externalID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2923 := z.EncBinary()
_ = yym2923
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID))
}
}
}
if yyr2917 || yy2arr2917 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2917[2] {
yym2925 := z.EncBinary()
_ = yym2925
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2917[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("providerID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2926 := z.EncBinary()
_ = yym2926
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID))
}
}
}
if yyr2917 || yy2arr2917 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2917[3] {
yym2928 := z.EncBinary()
_ = yym2928
if false {
} else {
r.EncodeBool(bool(x.Unschedulable))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq2917[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("unschedulable"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2929 := z.EncBinary()
_ = yym2929
if false {
} else {
r.EncodeBool(bool(x.Unschedulable))
}
}
}
if yyr2917 || yy2arr2917 {
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
yym2930 := z.DecBinary()
_ = yym2930
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2931 := r.ContainerType()
if yyct2931 == codecSelferValueTypeMap1234 {
yyl2931 := r.ReadMapStart()
if yyl2931 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2931, d)
}
} else if yyct2931 == codecSelferValueTypeArray1234 {
yyl2931 := r.ReadArrayStart()
if yyl2931 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2931, 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 yys2932Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2932Slc
var yyhl2932 bool = l >= 0
for yyj2932 := 0; ; yyj2932++ {
if yyhl2932 {
if yyj2932 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2932Slc = r.DecodeBytes(yys2932Slc, true, true)
yys2932 := string(yys2932Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2932 {
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, yys2932)
} // end switch yys2932
} // end for yyj2932
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 yyj2937 int
var yyb2937 bool
var yyhl2937 bool = l >= 0
yyj2937++
if yyhl2937 {
yyb2937 = yyj2937 > l
} else {
yyb2937 = r.CheckBreak()
}
if yyb2937 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PodCIDR = ""
} else {
x.PodCIDR = string(r.DecodeString())
}
yyj2937++
if yyhl2937 {
yyb2937 = yyj2937 > l
} else {
yyb2937 = r.CheckBreak()
}
if yyb2937 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ExternalID = ""
} else {
x.ExternalID = string(r.DecodeString())
}
yyj2937++
if yyhl2937 {
yyb2937 = yyj2937 > l
} else {
yyb2937 = r.CheckBreak()
}
if yyb2937 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ProviderID = ""
} else {
x.ProviderID = string(r.DecodeString())
}
yyj2937++
if yyhl2937 {
yyb2937 = yyj2937 > l
} else {
yyb2937 = r.CheckBreak()
}
if yyb2937 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Unschedulable = false
} else {
x.Unschedulable = bool(r.DecodeBool())
}
for {
yyj2937++
if yyhl2937 {
yyb2937 = yyj2937 > l
} else {
yyb2937 = r.CheckBreak()
}
if yyb2937 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2937-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 {
yym2942 := z.EncBinary()
_ = yym2942
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2943 := !z.EncBinary()
yy2arr2943 := z.EncBasicHandle().StructToArray
var yyq2943 [1]bool
_, _, _ = yysep2943, yyq2943, yy2arr2943
const yyr2943 bool = false
var yynn2943 int
if yyr2943 || yy2arr2943 {
r.EncodeArrayStart(1)
} else {
yynn2943 = 1
for _, b := range yyq2943 {
if b {
yynn2943++
}
}
r.EncodeMapStart(yynn2943)
yynn2943 = 0
}
if yyr2943 || yy2arr2943 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2945 := z.EncBinary()
_ = yym2945
if false {
} else {
r.EncodeInt(int64(x.Port))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2946 := z.EncBinary()
_ = yym2946
if false {
} else {
r.EncodeInt(int64(x.Port))
}
}
if yyr2943 || yy2arr2943 {
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
yym2947 := z.DecBinary()
_ = yym2947
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2948 := r.ContainerType()
if yyct2948 == codecSelferValueTypeMap1234 {
yyl2948 := r.ReadMapStart()
if yyl2948 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2948, d)
}
} else if yyct2948 == codecSelferValueTypeArray1234 {
yyl2948 := r.ReadArrayStart()
if yyl2948 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2948, 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 yys2949Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2949Slc
var yyhl2949 bool = l >= 0
for yyj2949 := 0; ; yyj2949++ {
if yyhl2949 {
if yyj2949 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2949Slc = r.DecodeBytes(yys2949Slc, true, true)
yys2949 := string(yys2949Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2949 {
case "Port":
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int32(r.DecodeInt(32))
}
default:
z.DecStructFieldNotFound(-1, yys2949)
} // end switch yys2949
} // end for yyj2949
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 yyj2951 int
var yyb2951 bool
var yyhl2951 bool = l >= 0
yyj2951++
if yyhl2951 {
yyb2951 = yyj2951 > l
} else {
yyb2951 = r.CheckBreak()
}
if yyb2951 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int32(r.DecodeInt(32))
}
for {
yyj2951++
if yyhl2951 {
yyb2951 = yyj2951 > l
} else {
yyb2951 = r.CheckBreak()
}
if yyb2951 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2951-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 {
yym2953 := z.EncBinary()
_ = yym2953
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2954 := !z.EncBinary()
yy2arr2954 := z.EncBasicHandle().StructToArray
var yyq2954 [1]bool
_, _, _ = yysep2954, yyq2954, yy2arr2954
const yyr2954 bool = false
yyq2954[0] = true
var yynn2954 int
if yyr2954 || yy2arr2954 {
r.EncodeArrayStart(1)
} else {
yynn2954 = 0
for _, b := range yyq2954 {
if b {
yynn2954++
}
}
r.EncodeMapStart(yynn2954)
yynn2954 = 0
}
if yyr2954 || yy2arr2954 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2954[0] {
yy2956 := &x.KubeletEndpoint
yy2956.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2954[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kubeletEndpoint"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2957 := &x.KubeletEndpoint
yy2957.CodecEncodeSelf(e)
}
}
if yyr2954 || yy2arr2954 {
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
yym2958 := z.DecBinary()
_ = yym2958
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2959 := r.ContainerType()
if yyct2959 == codecSelferValueTypeMap1234 {
yyl2959 := r.ReadMapStart()
if yyl2959 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2959, d)
}
} else if yyct2959 == codecSelferValueTypeArray1234 {
yyl2959 := r.ReadArrayStart()
if yyl2959 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2959, 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 yys2960Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2960Slc
var yyhl2960 bool = l >= 0
for yyj2960 := 0; ; yyj2960++ {
if yyhl2960 {
if yyj2960 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2960Slc = r.DecodeBytes(yys2960Slc, true, true)
yys2960 := string(yys2960Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2960 {
case "kubeletEndpoint":
if r.TryDecodeAsNil() {
x.KubeletEndpoint = DaemonEndpoint{}
} else {
yyv2961 := &x.KubeletEndpoint
yyv2961.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2960)
} // end switch yys2960
} // end for yyj2960
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 yyj2962 int
var yyb2962 bool
var yyhl2962 bool = l >= 0
yyj2962++
if yyhl2962 {
yyb2962 = yyj2962 > l
} else {
yyb2962 = r.CheckBreak()
}
if yyb2962 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.KubeletEndpoint = DaemonEndpoint{}
} else {
yyv2963 := &x.KubeletEndpoint
yyv2963.CodecDecodeSelf(d)
}
for {
yyj2962++
if yyhl2962 {
yyb2962 = yyj2962 > l
} else {
yyb2962 = r.CheckBreak()
}
if yyb2962 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2962-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 {
yym2964 := z.EncBinary()
_ = yym2964
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2965 := !z.EncBinary()
yy2arr2965 := z.EncBasicHandle().StructToArray
var yyq2965 [10]bool
_, _, _ = yysep2965, yyq2965, yy2arr2965
const yyr2965 bool = false
var yynn2965 int
if yyr2965 || yy2arr2965 {
r.EncodeArrayStart(10)
} else {
yynn2965 = 10
for _, b := range yyq2965 {
if b {
yynn2965++
}
}
r.EncodeMapStart(yynn2965)
yynn2965 = 0
}
if yyr2965 || yy2arr2965 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2967 := z.EncBinary()
_ = yym2967
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)
yym2968 := z.EncBinary()
_ = yym2968
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.MachineID))
}
}
if yyr2965 || yy2arr2965 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2970 := z.EncBinary()
_ = yym2970
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)
yym2971 := z.EncBinary()
_ = yym2971
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID))
}
}
if yyr2965 || yy2arr2965 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2973 := z.EncBinary()
_ = yym2973
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)
yym2974 := z.EncBinary()
_ = yym2974
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.BootID))
}
}
if yyr2965 || yy2arr2965 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2976 := z.EncBinary()
_ = yym2976
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)
yym2977 := z.EncBinary()
_ = yym2977
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion))
}
}
if yyr2965 || yy2arr2965 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2979 := z.EncBinary()
_ = yym2979
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)
yym2980 := z.EncBinary()
_ = yym2980
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.OSImage))
}
}
if yyr2965 || yy2arr2965 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2982 := z.EncBinary()
_ = yym2982
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)
yym2983 := z.EncBinary()
_ = yym2983
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion))
}
}
if yyr2965 || yy2arr2965 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2985 := z.EncBinary()
_ = yym2985
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)
yym2986 := z.EncBinary()
_ = yym2986
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion))
}
}
if yyr2965 || yy2arr2965 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2988 := z.EncBinary()
_ = yym2988
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)
yym2989 := z.EncBinary()
_ = yym2989
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion))
}
}
if yyr2965 || yy2arr2965 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2991 := z.EncBinary()
_ = yym2991
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)
yym2992 := z.EncBinary()
_ = yym2992
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem))
}
}
if yyr2965 || yy2arr2965 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2994 := z.EncBinary()
_ = yym2994
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)
yym2995 := z.EncBinary()
_ = yym2995
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Architecture))
}
}
if yyr2965 || yy2arr2965 {
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
yym2996 := z.DecBinary()
_ = yym2996
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2997 := r.ContainerType()
if yyct2997 == codecSelferValueTypeMap1234 {
yyl2997 := r.ReadMapStart()
if yyl2997 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2997, d)
}
} else if yyct2997 == codecSelferValueTypeArray1234 {
yyl2997 := r.ReadArrayStart()
if yyl2997 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2997, 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 yys2998Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2998Slc
var yyhl2998 bool = l >= 0
for yyj2998 := 0; ; yyj2998++ {
if yyhl2998 {
if yyj2998 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2998Slc = r.DecodeBytes(yys2998Slc, true, true)
yys2998 := string(yys2998Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2998 {
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, yys2998)
} // end switch yys2998
} // end for yyj2998
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 yyj3009 int
var yyb3009 bool
var yyhl3009 bool = l >= 0
yyj3009++
if yyhl3009 {
yyb3009 = yyj3009 > l
} else {
yyb3009 = r.CheckBreak()
}
if yyb3009 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.MachineID = ""
} else {
x.MachineID = string(r.DecodeString())
}
yyj3009++
if yyhl3009 {
yyb3009 = yyj3009 > l
} else {
yyb3009 = r.CheckBreak()
}
if yyb3009 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SystemUUID = ""
} else {
x.SystemUUID = string(r.DecodeString())
}
yyj3009++
if yyhl3009 {
yyb3009 = yyj3009 > l
} else {
yyb3009 = r.CheckBreak()
}
if yyb3009 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.BootID = ""
} else {
x.BootID = string(r.DecodeString())
}
yyj3009++
if yyhl3009 {
yyb3009 = yyj3009 > l
} else {
yyb3009 = r.CheckBreak()
}
if yyb3009 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.KernelVersion = ""
} else {
x.KernelVersion = string(r.DecodeString())
}
yyj3009++
if yyhl3009 {
yyb3009 = yyj3009 > l
} else {
yyb3009 = r.CheckBreak()
}
if yyb3009 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.OSImage = ""
} else {
x.OSImage = string(r.DecodeString())
}
yyj3009++
if yyhl3009 {
yyb3009 = yyj3009 > l
} else {
yyb3009 = r.CheckBreak()
}
if yyb3009 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerRuntimeVersion = ""
} else {
x.ContainerRuntimeVersion = string(r.DecodeString())
}
yyj3009++
if yyhl3009 {
yyb3009 = yyj3009 > l
} else {
yyb3009 = r.CheckBreak()
}
if yyb3009 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.KubeletVersion = ""
} else {
x.KubeletVersion = string(r.DecodeString())
}
yyj3009++
if yyhl3009 {
yyb3009 = yyj3009 > l
} else {
yyb3009 = r.CheckBreak()
}
if yyb3009 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.KubeProxyVersion = ""
} else {
x.KubeProxyVersion = string(r.DecodeString())
}
yyj3009++
if yyhl3009 {
yyb3009 = yyj3009 > l
} else {
yyb3009 = r.CheckBreak()
}
if yyb3009 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.OperatingSystem = ""
} else {
x.OperatingSystem = string(r.DecodeString())
}
yyj3009++
if yyhl3009 {
yyb3009 = yyj3009 > l
} else {
yyb3009 = r.CheckBreak()
}
if yyb3009 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Architecture = ""
} else {
x.Architecture = string(r.DecodeString())
}
for {
yyj3009++
if yyhl3009 {
yyb3009 = yyj3009 > l
} else {
yyb3009 = r.CheckBreak()
}
if yyb3009 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3009-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 {
yym3020 := z.EncBinary()
_ = yym3020
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3021 := !z.EncBinary()
yy2arr3021 := z.EncBasicHandle().StructToArray
var yyq3021 [10]bool
_, _, _ = yysep3021, yyq3021, yy2arr3021
const yyr3021 bool = false
yyq3021[0] = len(x.Capacity) != 0
yyq3021[1] = len(x.Allocatable) != 0
yyq3021[2] = x.Phase != ""
yyq3021[3] = len(x.Conditions) != 0
yyq3021[4] = len(x.Addresses) != 0
yyq3021[5] = true
yyq3021[6] = true
yyq3021[7] = len(x.Images) != 0
yyq3021[8] = len(x.VolumesInUse) != 0
yyq3021[9] = len(x.VolumesAttached) != 0
var yynn3021 int
if yyr3021 || yy2arr3021 {
r.EncodeArrayStart(10)
} else {
yynn3021 = 0
for _, b := range yyq3021 {
if b {
yynn3021++
}
}
r.EncodeMapStart(yynn3021)
yynn3021 = 0
}
if yyr3021 || yy2arr3021 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3021[0] {
if x.Capacity == nil {
r.EncodeNil()
} else {
x.Capacity.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3021[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 yyr3021 || yy2arr3021 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3021[1] {
if x.Allocatable == nil {
r.EncodeNil()
} else {
x.Allocatable.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3021[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 yyr3021 || yy2arr3021 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3021[2] {
x.Phase.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3021[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("phase"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Phase.CodecEncodeSelf(e)
}
}
if yyr3021 || yy2arr3021 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3021[3] {
if x.Conditions == nil {
r.EncodeNil()
} else {
yym3026 := z.EncBinary()
_ = yym3026
if false {
} else {
h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3021[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Conditions == nil {
r.EncodeNil()
} else {
yym3027 := z.EncBinary()
_ = yym3027
if false {
} else {
h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e)
}
}
}
}
if yyr3021 || yy2arr3021 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3021[4] {
if x.Addresses == nil {
r.EncodeNil()
} else {
yym3029 := z.EncBinary()
_ = yym3029
if false {
} else {
h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3021[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("addresses"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Addresses == nil {
r.EncodeNil()
} else {
yym3030 := z.EncBinary()
_ = yym3030
if false {
} else {
h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e)
}
}
}
}
if yyr3021 || yy2arr3021 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3021[5] {
yy3032 := &x.DaemonEndpoints
yy3032.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3021[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("daemonEndpoints"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3033 := &x.DaemonEndpoints
yy3033.CodecEncodeSelf(e)
}
}
if yyr3021 || yy2arr3021 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3021[6] {
yy3035 := &x.NodeInfo
yy3035.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3021[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeInfo"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3036 := &x.NodeInfo
yy3036.CodecEncodeSelf(e)
}
}
if yyr3021 || yy2arr3021 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3021[7] {
if x.Images == nil {
r.EncodeNil()
} else {
yym3038 := z.EncBinary()
_ = yym3038
if false {
} else {
h.encSliceContainerImage(([]ContainerImage)(x.Images), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3021[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("images"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Images == nil {
r.EncodeNil()
} else {
yym3039 := z.EncBinary()
_ = yym3039
if false {
} else {
h.encSliceContainerImage(([]ContainerImage)(x.Images), e)
}
}
}
}
if yyr3021 || yy2arr3021 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3021[8] {
if x.VolumesInUse == nil {
r.EncodeNil()
} else {
yym3041 := z.EncBinary()
_ = yym3041
if false {
} else {
h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3021[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("volumesInUse"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.VolumesInUse == nil {
r.EncodeNil()
} else {
yym3042 := z.EncBinary()
_ = yym3042
if false {
} else {
h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e)
}
}
}
}
if yyr3021 || yy2arr3021 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3021[9] {
if x.VolumesAttached == nil {
r.EncodeNil()
} else {
yym3044 := z.EncBinary()
_ = yym3044
if false {
} else {
h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3021[9] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("volumesAttached"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.VolumesAttached == nil {
r.EncodeNil()
} else {
yym3045 := z.EncBinary()
_ = yym3045
if false {
} else {
h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e)
}
}
}
}
if yyr3021 || yy2arr3021 {
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
yym3046 := z.DecBinary()
_ = yym3046
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3047 := r.ContainerType()
if yyct3047 == codecSelferValueTypeMap1234 {
yyl3047 := r.ReadMapStart()
if yyl3047 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3047, d)
}
} else if yyct3047 == codecSelferValueTypeArray1234 {
yyl3047 := r.ReadArrayStart()
if yyl3047 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3047, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NodeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3048Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3048Slc
var yyhl3048 bool = l >= 0
for yyj3048 := 0; ; yyj3048++ {
if yyhl3048 {
if yyj3048 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3048Slc = r.DecodeBytes(yys3048Slc, true, true)
yys3048 := string(yys3048Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3048 {
case "capacity":
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv3049 := &x.Capacity
yyv3049.CodecDecodeSelf(d)
}
case "allocatable":
if r.TryDecodeAsNil() {
x.Allocatable = nil
} else {
yyv3050 := &x.Allocatable
yyv3050.CodecDecodeSelf(d)
}
case "phase":
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = NodePhase(r.DecodeString())
}
case "conditions":
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv3052 := &x.Conditions
yym3053 := z.DecBinary()
_ = yym3053
if false {
} else {
h.decSliceNodeCondition((*[]NodeCondition)(yyv3052), d)
}
}
case "addresses":
if r.TryDecodeAsNil() {
x.Addresses = nil
} else {
yyv3054 := &x.Addresses
yym3055 := z.DecBinary()
_ = yym3055
if false {
} else {
h.decSliceNodeAddress((*[]NodeAddress)(yyv3054), d)
}
}
case "daemonEndpoints":
if r.TryDecodeAsNil() {
x.DaemonEndpoints = NodeDaemonEndpoints{}
} else {
yyv3056 := &x.DaemonEndpoints
yyv3056.CodecDecodeSelf(d)
}
case "nodeInfo":
if r.TryDecodeAsNil() {
x.NodeInfo = NodeSystemInfo{}
} else {
yyv3057 := &x.NodeInfo
yyv3057.CodecDecodeSelf(d)
}
case "images":
if r.TryDecodeAsNil() {
x.Images = nil
} else {
yyv3058 := &x.Images
yym3059 := z.DecBinary()
_ = yym3059
if false {
} else {
h.decSliceContainerImage((*[]ContainerImage)(yyv3058), d)
}
}
case "volumesInUse":
if r.TryDecodeAsNil() {
x.VolumesInUse = nil
} else {
yyv3060 := &x.VolumesInUse
yym3061 := z.DecBinary()
_ = yym3061
if false {
} else {
h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv3060), d)
}
}
case "volumesAttached":
if r.TryDecodeAsNil() {
x.VolumesAttached = nil
} else {
yyv3062 := &x.VolumesAttached
yym3063 := z.DecBinary()
_ = yym3063
if false {
} else {
h.decSliceAttachedVolume((*[]AttachedVolume)(yyv3062), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3048)
} // end switch yys3048
} // end for yyj3048
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 yyj3064 int
var yyb3064 bool
var yyhl3064 bool = l >= 0
yyj3064++
if yyhl3064 {
yyb3064 = yyj3064 > l
} else {
yyb3064 = r.CheckBreak()
}
if yyb3064 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv3065 := &x.Capacity
yyv3065.CodecDecodeSelf(d)
}
yyj3064++
if yyhl3064 {
yyb3064 = yyj3064 > l
} else {
yyb3064 = r.CheckBreak()
}
if yyb3064 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Allocatable = nil
} else {
yyv3066 := &x.Allocatable
yyv3066.CodecDecodeSelf(d)
}
yyj3064++
if yyhl3064 {
yyb3064 = yyj3064 > l
} else {
yyb3064 = r.CheckBreak()
}
if yyb3064 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = NodePhase(r.DecodeString())
}
yyj3064++
if yyhl3064 {
yyb3064 = yyj3064 > l
} else {
yyb3064 = r.CheckBreak()
}
if yyb3064 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv3068 := &x.Conditions
yym3069 := z.DecBinary()
_ = yym3069
if false {
} else {
h.decSliceNodeCondition((*[]NodeCondition)(yyv3068), d)
}
}
yyj3064++
if yyhl3064 {
yyb3064 = yyj3064 > l
} else {
yyb3064 = r.CheckBreak()
}
if yyb3064 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Addresses = nil
} else {
yyv3070 := &x.Addresses
yym3071 := z.DecBinary()
_ = yym3071
if false {
} else {
h.decSliceNodeAddress((*[]NodeAddress)(yyv3070), d)
}
}
yyj3064++
if yyhl3064 {
yyb3064 = yyj3064 > l
} else {
yyb3064 = r.CheckBreak()
}
if yyb3064 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DaemonEndpoints = NodeDaemonEndpoints{}
} else {
yyv3072 := &x.DaemonEndpoints
yyv3072.CodecDecodeSelf(d)
}
yyj3064++
if yyhl3064 {
yyb3064 = yyj3064 > l
} else {
yyb3064 = r.CheckBreak()
}
if yyb3064 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodeInfo = NodeSystemInfo{}
} else {
yyv3073 := &x.NodeInfo
yyv3073.CodecDecodeSelf(d)
}
yyj3064++
if yyhl3064 {
yyb3064 = yyj3064 > l
} else {
yyb3064 = r.CheckBreak()
}
if yyb3064 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Images = nil
} else {
yyv3074 := &x.Images
yym3075 := z.DecBinary()
_ = yym3075
if false {
} else {
h.decSliceContainerImage((*[]ContainerImage)(yyv3074), d)
}
}
yyj3064++
if yyhl3064 {
yyb3064 = yyj3064 > l
} else {
yyb3064 = r.CheckBreak()
}
if yyb3064 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.VolumesInUse = nil
} else {
yyv3076 := &x.VolumesInUse
yym3077 := z.DecBinary()
_ = yym3077
if false {
} else {
h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv3076), d)
}
}
yyj3064++
if yyhl3064 {
yyb3064 = yyj3064 > l
} else {
yyb3064 = r.CheckBreak()
}
if yyb3064 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.VolumesAttached = nil
} else {
yyv3078 := &x.VolumesAttached
yym3079 := z.DecBinary()
_ = yym3079
if false {
} else {
h.decSliceAttachedVolume((*[]AttachedVolume)(yyv3078), d)
}
}
for {
yyj3064++
if yyhl3064 {
yyb3064 = yyj3064 > l
} else {
yyb3064 = r.CheckBreak()
}
if yyb3064 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3064-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x UniqueVolumeName) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3080 := z.EncBinary()
_ = yym3080
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
yym3081 := z.DecBinary()
_ = yym3081
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 {
yym3082 := z.EncBinary()
_ = yym3082
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3083 := !z.EncBinary()
yy2arr3083 := z.EncBasicHandle().StructToArray
var yyq3083 [2]bool
_, _, _ = yysep3083, yyq3083, yy2arr3083
const yyr3083 bool = false
var yynn3083 int
if yyr3083 || yy2arr3083 {
r.EncodeArrayStart(2)
} else {
yynn3083 = 2
for _, b := range yyq3083 {
if b {
yynn3083++
}
}
r.EncodeMapStart(yynn3083)
yynn3083 = 0
}
if yyr3083 || yy2arr3083 {
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 yyr3083 || yy2arr3083 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3086 := z.EncBinary()
_ = yym3086
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)
yym3087 := z.EncBinary()
_ = yym3087
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath))
}
}
if yyr3083 || yy2arr3083 {
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
yym3088 := z.DecBinary()
_ = yym3088
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3089 := r.ContainerType()
if yyct3089 == codecSelferValueTypeMap1234 {
yyl3089 := r.ReadMapStart()
if yyl3089 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3089, d)
}
} else if yyct3089 == codecSelferValueTypeArray1234 {
yyl3089 := r.ReadArrayStart()
if yyl3089 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3089, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *AttachedVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3090Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3090Slc
var yyhl3090 bool = l >= 0
for yyj3090 := 0; ; yyj3090++ {
if yyhl3090 {
if yyj3090 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3090Slc = r.DecodeBytes(yys3090Slc, true, true)
yys3090 := string(yys3090Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3090 {
case "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, yys3090)
} // end switch yys3090
} // end for yyj3090
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 yyj3093 int
var yyb3093 bool
var yyhl3093 bool = l >= 0
yyj3093++
if yyhl3093 {
yyb3093 = yyj3093 > l
} else {
yyb3093 = r.CheckBreak()
}
if yyb3093 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = UniqueVolumeName(r.DecodeString())
}
yyj3093++
if yyhl3093 {
yyb3093 = yyj3093 > l
} else {
yyb3093 = r.CheckBreak()
}
if yyb3093 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DevicePath = ""
} else {
x.DevicePath = string(r.DecodeString())
}
for {
yyj3093++
if yyhl3093 {
yyb3093 = yyj3093 > l
} else {
yyb3093 = r.CheckBreak()
}
if yyb3093 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3093-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 {
yym3096 := z.EncBinary()
_ = yym3096
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3097 := !z.EncBinary()
yy2arr3097 := z.EncBasicHandle().StructToArray
var yyq3097 [1]bool
_, _, _ = yysep3097, yyq3097, yy2arr3097
const yyr3097 bool = false
yyq3097[0] = len(x.PreferAvoidPods) != 0
var yynn3097 int
if yyr3097 || yy2arr3097 {
r.EncodeArrayStart(1)
} else {
yynn3097 = 0
for _, b := range yyq3097 {
if b {
yynn3097++
}
}
r.EncodeMapStart(yynn3097)
yynn3097 = 0
}
if yyr3097 || yy2arr3097 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3097[0] {
if x.PreferAvoidPods == nil {
r.EncodeNil()
} else {
yym3099 := z.EncBinary()
_ = yym3099
if false {
} else {
h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3097[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("preferAvoidPods"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.PreferAvoidPods == nil {
r.EncodeNil()
} else {
yym3100 := z.EncBinary()
_ = yym3100
if false {
} else {
h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e)
}
}
}
}
if yyr3097 || yy2arr3097 {
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
yym3101 := z.DecBinary()
_ = yym3101
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3102 := r.ContainerType()
if yyct3102 == codecSelferValueTypeMap1234 {
yyl3102 := r.ReadMapStart()
if yyl3102 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3102, d)
}
} else if yyct3102 == codecSelferValueTypeArray1234 {
yyl3102 := r.ReadArrayStart()
if yyl3102 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3102, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *AvoidPods) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3103Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3103Slc
var yyhl3103 bool = l >= 0
for yyj3103 := 0; ; yyj3103++ {
if yyhl3103 {
if yyj3103 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3103Slc = r.DecodeBytes(yys3103Slc, true, true)
yys3103 := string(yys3103Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3103 {
case "preferAvoidPods":
if r.TryDecodeAsNil() {
x.PreferAvoidPods = nil
} else {
yyv3104 := &x.PreferAvoidPods
yym3105 := z.DecBinary()
_ = yym3105
if false {
} else {
h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3104), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3103)
} // end switch yys3103
} // end for yyj3103
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 yyj3106 int
var yyb3106 bool
var yyhl3106 bool = l >= 0
yyj3106++
if yyhl3106 {
yyb3106 = yyj3106 > l
} else {
yyb3106 = r.CheckBreak()
}
if yyb3106 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PreferAvoidPods = nil
} else {
yyv3107 := &x.PreferAvoidPods
yym3108 := z.DecBinary()
_ = yym3108
if false {
} else {
h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3107), d)
}
}
for {
yyj3106++
if yyhl3106 {
yyb3106 = yyj3106 > l
} else {
yyb3106 = r.CheckBreak()
}
if yyb3106 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3106-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 {
yym3109 := z.EncBinary()
_ = yym3109
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3110 := !z.EncBinary()
yy2arr3110 := z.EncBasicHandle().StructToArray
var yyq3110 [4]bool
_, _, _ = yysep3110, yyq3110, yy2arr3110
const yyr3110 bool = false
yyq3110[1] = true
yyq3110[2] = x.Reason != ""
yyq3110[3] = x.Message != ""
var yynn3110 int
if yyr3110 || yy2arr3110 {
r.EncodeArrayStart(4)
} else {
yynn3110 = 1
for _, b := range yyq3110 {
if b {
yynn3110++
}
}
r.EncodeMapStart(yynn3110)
yynn3110 = 0
}
if yyr3110 || yy2arr3110 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3112 := &x.PodSignature
yy3112.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("podSignature"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3113 := &x.PodSignature
yy3113.CodecEncodeSelf(e)
}
if yyr3110 || yy2arr3110 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3110[1] {
yy3115 := &x.EvictionTime
yym3116 := z.EncBinary()
_ = yym3116
if false {
} else if z.HasExtensions() && z.EncExt(yy3115) {
} else if yym3116 {
z.EncBinaryMarshal(yy3115)
} else if !yym3116 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3115)
} else {
z.EncFallback(yy3115)
}
} else {
r.EncodeNil()
}
} else {
if yyq3110[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("evictionTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3117 := &x.EvictionTime
yym3118 := z.EncBinary()
_ = yym3118
if false {
} else if z.HasExtensions() && z.EncExt(yy3117) {
} else if yym3118 {
z.EncBinaryMarshal(yy3117)
} else if !yym3118 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3117)
} else {
z.EncFallback(yy3117)
}
}
}
if yyr3110 || yy2arr3110 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3110[2] {
yym3120 := z.EncBinary()
_ = yym3120
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3110[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3121 := z.EncBinary()
_ = yym3121
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr3110 || yy2arr3110 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3110[3] {
yym3123 := z.EncBinary()
_ = yym3123
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3110[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3124 := z.EncBinary()
_ = yym3124
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr3110 || yy2arr3110 {
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
yym3125 := z.DecBinary()
_ = yym3125
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3126 := r.ContainerType()
if yyct3126 == codecSelferValueTypeMap1234 {
yyl3126 := r.ReadMapStart()
if yyl3126 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3126, d)
}
} else if yyct3126 == codecSelferValueTypeArray1234 {
yyl3126 := r.ReadArrayStart()
if yyl3126 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3126, 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 yys3127Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3127Slc
var yyhl3127 bool = l >= 0
for yyj3127 := 0; ; yyj3127++ {
if yyhl3127 {
if yyj3127 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3127Slc = r.DecodeBytes(yys3127Slc, true, true)
yys3127 := string(yys3127Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3127 {
case "podSignature":
if r.TryDecodeAsNil() {
x.PodSignature = PodSignature{}
} else {
yyv3128 := &x.PodSignature
yyv3128.CodecDecodeSelf(d)
}
case "evictionTime":
if r.TryDecodeAsNil() {
x.EvictionTime = pkg2_unversioned.Time{}
} else {
yyv3129 := &x.EvictionTime
yym3130 := z.DecBinary()
_ = yym3130
if false {
} else if z.HasExtensions() && z.DecExt(yyv3129) {
} else if yym3130 {
z.DecBinaryUnmarshal(yyv3129)
} else if !yym3130 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3129)
} else {
z.DecFallback(yyv3129, 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, yys3127)
} // end switch yys3127
} // end for yyj3127
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 yyj3133 int
var yyb3133 bool
var yyhl3133 bool = l >= 0
yyj3133++
if yyhl3133 {
yyb3133 = yyj3133 > l
} else {
yyb3133 = r.CheckBreak()
}
if yyb3133 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PodSignature = PodSignature{}
} else {
yyv3134 := &x.PodSignature
yyv3134.CodecDecodeSelf(d)
}
yyj3133++
if yyhl3133 {
yyb3133 = yyj3133 > l
} else {
yyb3133 = r.CheckBreak()
}
if yyb3133 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.EvictionTime = pkg2_unversioned.Time{}
} else {
yyv3135 := &x.EvictionTime
yym3136 := z.DecBinary()
_ = yym3136
if false {
} else if z.HasExtensions() && z.DecExt(yyv3135) {
} else if yym3136 {
z.DecBinaryUnmarshal(yyv3135)
} else if !yym3136 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3135)
} else {
z.DecFallback(yyv3135, false)
}
}
yyj3133++
if yyhl3133 {
yyb3133 = yyj3133 > l
} else {
yyb3133 = r.CheckBreak()
}
if yyb3133 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj3133++
if yyhl3133 {
yyb3133 = yyj3133 > l
} else {
yyb3133 = r.CheckBreak()
}
if yyb3133 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
for {
yyj3133++
if yyhl3133 {
yyb3133 = yyj3133 > l
} else {
yyb3133 = r.CheckBreak()
}
if yyb3133 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3133-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 {
yym3139 := z.EncBinary()
_ = yym3139
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3140 := !z.EncBinary()
yy2arr3140 := z.EncBasicHandle().StructToArray
var yyq3140 [1]bool
_, _, _ = yysep3140, yyq3140, yy2arr3140
const yyr3140 bool = false
yyq3140[0] = x.PodController != nil
var yynn3140 int
if yyr3140 || yy2arr3140 {
r.EncodeArrayStart(1)
} else {
yynn3140 = 0
for _, b := range yyq3140 {
if b {
yynn3140++
}
}
r.EncodeMapStart(yynn3140)
yynn3140 = 0
}
if yyr3140 || yy2arr3140 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3140[0] {
if x.PodController == nil {
r.EncodeNil()
} else {
x.PodController.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3140[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 yyr3140 || yy2arr3140 {
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
yym3142 := z.DecBinary()
_ = yym3142
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3143 := r.ContainerType()
if yyct3143 == codecSelferValueTypeMap1234 {
yyl3143 := r.ReadMapStart()
if yyl3143 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3143, d)
}
} else if yyct3143 == codecSelferValueTypeArray1234 {
yyl3143 := r.ReadArrayStart()
if yyl3143 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3143, 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 yys3144Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3144Slc
var yyhl3144 bool = l >= 0
for yyj3144 := 0; ; yyj3144++ {
if yyhl3144 {
if yyj3144 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3144Slc = r.DecodeBytes(yys3144Slc, true, true)
yys3144 := string(yys3144Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3144 {
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, yys3144)
} // end switch yys3144
} // end for yyj3144
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 yyj3146 int
var yyb3146 bool
var yyhl3146 bool = l >= 0
yyj3146++
if yyhl3146 {
yyb3146 = yyj3146 > l
} else {
yyb3146 = r.CheckBreak()
}
if yyb3146 {
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 {
yyj3146++
if yyhl3146 {
yyb3146 = yyj3146 > l
} else {
yyb3146 = r.CheckBreak()
}
if yyb3146 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3146-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 {
yym3148 := z.EncBinary()
_ = yym3148
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3149 := !z.EncBinary()
yy2arr3149 := z.EncBasicHandle().StructToArray
var yyq3149 [2]bool
_, _, _ = yysep3149, yyq3149, yy2arr3149
const yyr3149 bool = false
yyq3149[1] = x.SizeBytes != 0
var yynn3149 int
if yyr3149 || yy2arr3149 {
r.EncodeArrayStart(2)
} else {
yynn3149 = 1
for _, b := range yyq3149 {
if b {
yynn3149++
}
}
r.EncodeMapStart(yynn3149)
yynn3149 = 0
}
if yyr3149 || yy2arr3149 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Names == nil {
r.EncodeNil()
} else {
yym3151 := z.EncBinary()
_ = yym3151
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 {
yym3152 := z.EncBinary()
_ = yym3152
if false {
} else {
z.F.EncSliceStringV(x.Names, false, e)
}
}
}
if yyr3149 || yy2arr3149 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3149[1] {
yym3154 := z.EncBinary()
_ = yym3154
if false {
} else {
r.EncodeInt(int64(x.SizeBytes))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq3149[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("sizeBytes"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3155 := z.EncBinary()
_ = yym3155
if false {
} else {
r.EncodeInt(int64(x.SizeBytes))
}
}
}
if yyr3149 || yy2arr3149 {
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
yym3156 := z.DecBinary()
_ = yym3156
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3157 := r.ContainerType()
if yyct3157 == codecSelferValueTypeMap1234 {
yyl3157 := r.ReadMapStart()
if yyl3157 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3157, d)
}
} else if yyct3157 == codecSelferValueTypeArray1234 {
yyl3157 := r.ReadArrayStart()
if yyl3157 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3157, 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 yys3158Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3158Slc
var yyhl3158 bool = l >= 0
for yyj3158 := 0; ; yyj3158++ {
if yyhl3158 {
if yyj3158 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3158Slc = r.DecodeBytes(yys3158Slc, true, true)
yys3158 := string(yys3158Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3158 {
case "names":
if r.TryDecodeAsNil() {
x.Names = nil
} else {
yyv3159 := &x.Names
yym3160 := z.DecBinary()
_ = yym3160
if false {
} else {
z.F.DecSliceStringX(yyv3159, false, d)
}
}
case "sizeBytes":
if r.TryDecodeAsNil() {
x.SizeBytes = 0
} else {
x.SizeBytes = int64(r.DecodeInt(64))
}
default:
z.DecStructFieldNotFound(-1, yys3158)
} // end switch yys3158
} // end for yyj3158
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 yyj3162 int
var yyb3162 bool
var yyhl3162 bool = l >= 0
yyj3162++
if yyhl3162 {
yyb3162 = yyj3162 > l
} else {
yyb3162 = r.CheckBreak()
}
if yyb3162 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Names = nil
} else {
yyv3163 := &x.Names
yym3164 := z.DecBinary()
_ = yym3164
if false {
} else {
z.F.DecSliceStringX(yyv3163, false, d)
}
}
yyj3162++
if yyhl3162 {
yyb3162 = yyj3162 > l
} else {
yyb3162 = r.CheckBreak()
}
if yyb3162 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SizeBytes = 0
} else {
x.SizeBytes = int64(r.DecodeInt(64))
}
for {
yyj3162++
if yyhl3162 {
yyb3162 = yyj3162 > l
} else {
yyb3162 = r.CheckBreak()
}
if yyb3162 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3162-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3166 := z.EncBinary()
_ = yym3166
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
yym3167 := z.DecBinary()
_ = yym3167
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
yym3168 := z.EncBinary()
_ = yym3168
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
yym3169 := z.DecBinary()
_ = yym3169
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 {
yym3170 := z.EncBinary()
_ = yym3170
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3171 := !z.EncBinary()
yy2arr3171 := z.EncBasicHandle().StructToArray
var yyq3171 [6]bool
_, _, _ = yysep3171, yyq3171, yy2arr3171
const yyr3171 bool = false
yyq3171[2] = true
yyq3171[3] = true
yyq3171[4] = x.Reason != ""
yyq3171[5] = x.Message != ""
var yynn3171 int
if yyr3171 || yy2arr3171 {
r.EncodeArrayStart(6)
} else {
yynn3171 = 2
for _, b := range yyq3171 {
if b {
yynn3171++
}
}
r.EncodeMapStart(yynn3171)
yynn3171 = 0
}
if yyr3171 || yy2arr3171 {
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 yyr3171 || yy2arr3171 {
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 yyr3171 || yy2arr3171 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3171[2] {
yy3175 := &x.LastHeartbeatTime
yym3176 := z.EncBinary()
_ = yym3176
if false {
} else if z.HasExtensions() && z.EncExt(yy3175) {
} else if yym3176 {
z.EncBinaryMarshal(yy3175)
} else if !yym3176 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3175)
} else {
z.EncFallback(yy3175)
}
} else {
r.EncodeNil()
}
} else {
if yyq3171[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3177 := &x.LastHeartbeatTime
yym3178 := z.EncBinary()
_ = yym3178
if false {
} else if z.HasExtensions() && z.EncExt(yy3177) {
} else if yym3178 {
z.EncBinaryMarshal(yy3177)
} else if !yym3178 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3177)
} else {
z.EncFallback(yy3177)
}
}
}
if yyr3171 || yy2arr3171 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3171[3] {
yy3180 := &x.LastTransitionTime
yym3181 := z.EncBinary()
_ = yym3181
if false {
} else if z.HasExtensions() && z.EncExt(yy3180) {
} else if yym3181 {
z.EncBinaryMarshal(yy3180)
} else if !yym3181 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3180)
} else {
z.EncFallback(yy3180)
}
} else {
r.EncodeNil()
}
} else {
if yyq3171[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3182 := &x.LastTransitionTime
yym3183 := z.EncBinary()
_ = yym3183
if false {
} else if z.HasExtensions() && z.EncExt(yy3182) {
} else if yym3183 {
z.EncBinaryMarshal(yy3182)
} else if !yym3183 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3182)
} else {
z.EncFallback(yy3182)
}
}
}
if yyr3171 || yy2arr3171 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3171[4] {
yym3185 := z.EncBinary()
_ = yym3185
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3171[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3186 := z.EncBinary()
_ = yym3186
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr3171 || yy2arr3171 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3171[5] {
yym3188 := z.EncBinary()
_ = yym3188
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3171[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3189 := z.EncBinary()
_ = yym3189
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr3171 || yy2arr3171 {
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
yym3190 := z.DecBinary()
_ = yym3190
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3191 := r.ContainerType()
if yyct3191 == codecSelferValueTypeMap1234 {
yyl3191 := r.ReadMapStart()
if yyl3191 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3191, d)
}
} else if yyct3191 == codecSelferValueTypeArray1234 {
yyl3191 := r.ReadArrayStart()
if yyl3191 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3191, 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 yys3192Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3192Slc
var yyhl3192 bool = l >= 0
for yyj3192 := 0; ; yyj3192++ {
if yyhl3192 {
if yyj3192 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3192Slc = r.DecodeBytes(yys3192Slc, true, true)
yys3192 := string(yys3192Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3192 {
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 {
yyv3195 := &x.LastHeartbeatTime
yym3196 := z.DecBinary()
_ = yym3196
if false {
} else if z.HasExtensions() && z.DecExt(yyv3195) {
} else if yym3196 {
z.DecBinaryUnmarshal(yyv3195)
} else if !yym3196 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3195)
} else {
z.DecFallback(yyv3195, false)
}
}
case "lastTransitionTime":
if r.TryDecodeAsNil() {
x.LastTransitionTime = pkg2_unversioned.Time{}
} else {
yyv3197 := &x.LastTransitionTime
yym3198 := z.DecBinary()
_ = yym3198
if false {
} else if z.HasExtensions() && z.DecExt(yyv3197) {
} else if yym3198 {
z.DecBinaryUnmarshal(yyv3197)
} else if !yym3198 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3197)
} else {
z.DecFallback(yyv3197, 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, yys3192)
} // end switch yys3192
} // end for yyj3192
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 yyj3201 int
var yyb3201 bool
var yyhl3201 bool = l >= 0
yyj3201++
if yyhl3201 {
yyb3201 = yyj3201 > l
} else {
yyb3201 = r.CheckBreak()
}
if yyb3201 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = NodeConditionType(r.DecodeString())
}
yyj3201++
if yyhl3201 {
yyb3201 = yyj3201 > l
} else {
yyb3201 = r.CheckBreak()
}
if yyb3201 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ""
} else {
x.Status = ConditionStatus(r.DecodeString())
}
yyj3201++
if yyhl3201 {
yyb3201 = yyj3201 > l
} else {
yyb3201 = r.CheckBreak()
}
if yyb3201 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastHeartbeatTime = pkg2_unversioned.Time{}
} else {
yyv3204 := &x.LastHeartbeatTime
yym3205 := z.DecBinary()
_ = yym3205
if false {
} else if z.HasExtensions() && z.DecExt(yyv3204) {
} else if yym3205 {
z.DecBinaryUnmarshal(yyv3204)
} else if !yym3205 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3204)
} else {
z.DecFallback(yyv3204, false)
}
}
yyj3201++
if yyhl3201 {
yyb3201 = yyj3201 > l
} else {
yyb3201 = r.CheckBreak()
}
if yyb3201 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastTransitionTime = pkg2_unversioned.Time{}
} else {
yyv3206 := &x.LastTransitionTime
yym3207 := z.DecBinary()
_ = yym3207
if false {
} else if z.HasExtensions() && z.DecExt(yyv3206) {
} else if yym3207 {
z.DecBinaryUnmarshal(yyv3206)
} else if !yym3207 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3206)
} else {
z.DecFallback(yyv3206, false)
}
}
yyj3201++
if yyhl3201 {
yyb3201 = yyj3201 > l
} else {
yyb3201 = r.CheckBreak()
}
if yyb3201 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj3201++
if yyhl3201 {
yyb3201 = yyj3201 > l
} else {
yyb3201 = r.CheckBreak()
}
if yyb3201 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
for {
yyj3201++
if yyhl3201 {
yyb3201 = yyj3201 > l
} else {
yyb3201 = r.CheckBreak()
}
if yyb3201 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3201-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3210 := z.EncBinary()
_ = yym3210
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
yym3211 := z.DecBinary()
_ = yym3211
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 {
yym3212 := z.EncBinary()
_ = yym3212
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3213 := !z.EncBinary()
yy2arr3213 := z.EncBasicHandle().StructToArray
var yyq3213 [2]bool
_, _, _ = yysep3213, yyq3213, yy2arr3213
const yyr3213 bool = false
var yynn3213 int
if yyr3213 || yy2arr3213 {
r.EncodeArrayStart(2)
} else {
yynn3213 = 2
for _, b := range yyq3213 {
if b {
yynn3213++
}
}
r.EncodeMapStart(yynn3213)
yynn3213 = 0
}
if yyr3213 || yy2arr3213 {
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 yyr3213 || yy2arr3213 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3216 := z.EncBinary()
_ = yym3216
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)
yym3217 := z.EncBinary()
_ = yym3217
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Address))
}
}
if yyr3213 || yy2arr3213 {
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
yym3218 := z.DecBinary()
_ = yym3218
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3219 := r.ContainerType()
if yyct3219 == codecSelferValueTypeMap1234 {
yyl3219 := r.ReadMapStart()
if yyl3219 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3219, d)
}
} else if yyct3219 == codecSelferValueTypeArray1234 {
yyl3219 := r.ReadArrayStart()
if yyl3219 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3219, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3220Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3220Slc
var yyhl3220 bool = l >= 0
for yyj3220 := 0; ; yyj3220++ {
if yyhl3220 {
if yyj3220 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3220Slc = r.DecodeBytes(yys3220Slc, true, true)
yys3220 := string(yys3220Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3220 {
case "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, yys3220)
} // end switch yys3220
} // end for yyj3220
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 yyj3223 int
var yyb3223 bool
var yyhl3223 bool = l >= 0
yyj3223++
if yyhl3223 {
yyb3223 = yyj3223 > l
} else {
yyb3223 = r.CheckBreak()
}
if yyb3223 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = NodeAddressType(r.DecodeString())
}
yyj3223++
if yyhl3223 {
yyb3223 = yyj3223 > l
} else {
yyb3223 = r.CheckBreak()
}
if yyb3223 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Address = ""
} else {
x.Address = string(r.DecodeString())
}
for {
yyj3223++
if yyhl3223 {
yyb3223 = yyj3223 > l
} else {
yyb3223 = r.CheckBreak()
}
if yyb3223 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3223-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *NodeResources) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3226 := z.EncBinary()
_ = yym3226
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3227 := !z.EncBinary()
yy2arr3227 := z.EncBasicHandle().StructToArray
var yyq3227 [1]bool
_, _, _ = yysep3227, yyq3227, yy2arr3227
const yyr3227 bool = false
yyq3227[0] = len(x.Capacity) != 0
var yynn3227 int
if yyr3227 || yy2arr3227 {
r.EncodeArrayStart(1)
} else {
yynn3227 = 0
for _, b := range yyq3227 {
if b {
yynn3227++
}
}
r.EncodeMapStart(yynn3227)
yynn3227 = 0
}
if yyr3227 || yy2arr3227 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3227[0] {
if x.Capacity == nil {
r.EncodeNil()
} else {
x.Capacity.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3227[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 yyr3227 || yy2arr3227 {
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
yym3229 := z.DecBinary()
_ = yym3229
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3230 := r.ContainerType()
if yyct3230 == codecSelferValueTypeMap1234 {
yyl3230 := r.ReadMapStart()
if yyl3230 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3230, d)
}
} else if yyct3230 == codecSelferValueTypeArray1234 {
yyl3230 := r.ReadArrayStart()
if yyl3230 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3230, 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 yys3231Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3231Slc
var yyhl3231 bool = l >= 0
for yyj3231 := 0; ; yyj3231++ {
if yyhl3231 {
if yyj3231 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3231Slc = r.DecodeBytes(yys3231Slc, true, true)
yys3231 := string(yys3231Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3231 {
case "capacity":
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv3232 := &x.Capacity
yyv3232.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3231)
} // end switch yys3231
} // end for yyj3231
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 yyj3233 int
var yyb3233 bool
var yyhl3233 bool = l >= 0
yyj3233++
if yyhl3233 {
yyb3233 = yyj3233 > l
} else {
yyb3233 = r.CheckBreak()
}
if yyb3233 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv3234 := &x.Capacity
yyv3234.CodecDecodeSelf(d)
}
for {
yyj3233++
if yyhl3233 {
yyb3233 = yyj3233 > l
} else {
yyb3233 = r.CheckBreak()
}
if yyb3233 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3233-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x ResourceName) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3235 := z.EncBinary()
_ = yym3235
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
yym3236 := z.DecBinary()
_ = yym3236
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 {
yym3237 := z.EncBinary()
_ = yym3237
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
yym3238 := z.DecBinary()
_ = yym3238
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 {
yym3239 := z.EncBinary()
_ = yym3239
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3240 := !z.EncBinary()
yy2arr3240 := z.EncBasicHandle().StructToArray
var yyq3240 [5]bool
_, _, _ = yysep3240, yyq3240, yy2arr3240
const yyr3240 bool = false
yyq3240[0] = x.Kind != ""
yyq3240[1] = x.APIVersion != ""
yyq3240[2] = true
yyq3240[3] = true
yyq3240[4] = true
var yynn3240 int
if yyr3240 || yy2arr3240 {
r.EncodeArrayStart(5)
} else {
yynn3240 = 0
for _, b := range yyq3240 {
if b {
yynn3240++
}
}
r.EncodeMapStart(yynn3240)
yynn3240 = 0
}
if yyr3240 || yy2arr3240 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3240[0] {
yym3242 := z.EncBinary()
_ = yym3242
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3240[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3243 := z.EncBinary()
_ = yym3243
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3240 || yy2arr3240 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3240[1] {
yym3245 := z.EncBinary()
_ = yym3245
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3240[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3246 := z.EncBinary()
_ = yym3246
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3240 || yy2arr3240 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3240[2] {
yy3248 := &x.ObjectMeta
yy3248.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3240[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3249 := &x.ObjectMeta
yy3249.CodecEncodeSelf(e)
}
}
if yyr3240 || yy2arr3240 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3240[3] {
yy3251 := &x.Spec
yy3251.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3240[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3252 := &x.Spec
yy3252.CodecEncodeSelf(e)
}
}
if yyr3240 || yy2arr3240 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3240[4] {
yy3254 := &x.Status
yy3254.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3240[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3255 := &x.Status
yy3255.CodecEncodeSelf(e)
}
}
if yyr3240 || yy2arr3240 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *Node) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym3256 := z.DecBinary()
_ = yym3256
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3257 := r.ContainerType()
if yyct3257 == codecSelferValueTypeMap1234 {
yyl3257 := r.ReadMapStart()
if yyl3257 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3257, d)
}
} else if yyct3257 == codecSelferValueTypeArray1234 {
yyl3257 := r.ReadArrayStart()
if yyl3257 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3257, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3258Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3258Slc
var yyhl3258 bool = l >= 0
for yyj3258 := 0; ; yyj3258++ {
if yyhl3258 {
if yyj3258 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3258Slc = r.DecodeBytes(yys3258Slc, true, true)
yys3258 := string(yys3258Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3258 {
case "kind":
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
case "apiVersion":
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
case "metadata":
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3261 := &x.ObjectMeta
yyv3261.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = NodeSpec{}
} else {
yyv3262 := &x.Spec
yyv3262.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = NodeStatus{}
} else {
yyv3263 := &x.Status
yyv3263.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3258)
} // end switch yys3258
} // end for yyj3258
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 yyj3264 int
var yyb3264 bool
var yyhl3264 bool = l >= 0
yyj3264++
if yyhl3264 {
yyb3264 = yyj3264 > l
} else {
yyb3264 = r.CheckBreak()
}
if yyb3264 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3264++
if yyhl3264 {
yyb3264 = yyj3264 > l
} else {
yyb3264 = r.CheckBreak()
}
if yyb3264 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3264++
if yyhl3264 {
yyb3264 = yyj3264 > l
} else {
yyb3264 = r.CheckBreak()
}
if yyb3264 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3267 := &x.ObjectMeta
yyv3267.CodecDecodeSelf(d)
}
yyj3264++
if yyhl3264 {
yyb3264 = yyj3264 > l
} else {
yyb3264 = r.CheckBreak()
}
if yyb3264 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = NodeSpec{}
} else {
yyv3268 := &x.Spec
yyv3268.CodecDecodeSelf(d)
}
yyj3264++
if yyhl3264 {
yyb3264 = yyj3264 > l
} else {
yyb3264 = r.CheckBreak()
}
if yyb3264 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = NodeStatus{}
} else {
yyv3269 := &x.Status
yyv3269.CodecDecodeSelf(d)
}
for {
yyj3264++
if yyhl3264 {
yyb3264 = yyj3264 > l
} else {
yyb3264 = r.CheckBreak()
}
if yyb3264 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3264-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3270 := z.EncBinary()
_ = yym3270
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3271 := !z.EncBinary()
yy2arr3271 := z.EncBasicHandle().StructToArray
var yyq3271 [4]bool
_, _, _ = yysep3271, yyq3271, yy2arr3271
const yyr3271 bool = false
yyq3271[0] = x.Kind != ""
yyq3271[1] = x.APIVersion != ""
yyq3271[2] = true
var yynn3271 int
if yyr3271 || yy2arr3271 {
r.EncodeArrayStart(4)
} else {
yynn3271 = 1
for _, b := range yyq3271 {
if b {
yynn3271++
}
}
r.EncodeMapStart(yynn3271)
yynn3271 = 0
}
if yyr3271 || yy2arr3271 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3271[0] {
yym3273 := z.EncBinary()
_ = yym3273
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3271[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3274 := z.EncBinary()
_ = yym3274
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3271 || yy2arr3271 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3271[1] {
yym3276 := z.EncBinary()
_ = yym3276
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3271[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3277 := z.EncBinary()
_ = yym3277
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3271 || yy2arr3271 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3271[2] {
yy3279 := &x.ListMeta
yym3280 := z.EncBinary()
_ = yym3280
if false {
} else if z.HasExtensions() && z.EncExt(yy3279) {
} else {
z.EncFallback(yy3279)
}
} else {
r.EncodeNil()
}
} else {
if yyq3271[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3281 := &x.ListMeta
yym3282 := z.EncBinary()
_ = yym3282
if false {
} else if z.HasExtensions() && z.EncExt(yy3281) {
} else {
z.EncFallback(yy3281)
}
}
}
if yyr3271 || yy2arr3271 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3284 := z.EncBinary()
_ = yym3284
if false {
} else {
h.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 {
yym3285 := z.EncBinary()
_ = yym3285
if false {
} else {
h.encSliceNode(([]Node)(x.Items), e)
}
}
}
if yyr3271 || yy2arr3271 {
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
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 *NodeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3288Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3288Slc
var yyhl3288 bool = l >= 0
for yyj3288 := 0; ; yyj3288++ {
if yyhl3288 {
if yyj3288 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3288Slc = r.DecodeBytes(yys3288Slc, true, true)
yys3288 := string(yys3288Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3288 {
case "kind":
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
case "apiVersion":
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
case "metadata":
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3291 := &x.ListMeta
yym3292 := z.DecBinary()
_ = yym3292
if false {
} else if z.HasExtensions() && z.DecExt(yyv3291) {
} else {
z.DecFallback(yyv3291, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3293 := &x.Items
yym3294 := z.DecBinary()
_ = yym3294
if false {
} else {
h.decSliceNode((*[]Node)(yyv3293), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3288)
} // end switch yys3288
} // end for yyj3288
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 yyj3295 int
var yyb3295 bool
var yyhl3295 bool = l >= 0
yyj3295++
if yyhl3295 {
yyb3295 = yyj3295 > l
} else {
yyb3295 = r.CheckBreak()
}
if yyb3295 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3295++
if yyhl3295 {
yyb3295 = yyj3295 > l
} else {
yyb3295 = r.CheckBreak()
}
if yyb3295 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3295++
if yyhl3295 {
yyb3295 = yyj3295 > l
} else {
yyb3295 = r.CheckBreak()
}
if yyb3295 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3298 := &x.ListMeta
yym3299 := z.DecBinary()
_ = yym3299
if false {
} else if z.HasExtensions() && z.DecExt(yyv3298) {
} else {
z.DecFallback(yyv3298, false)
}
}
yyj3295++
if yyhl3295 {
yyb3295 = yyj3295 > l
} else {
yyb3295 = r.CheckBreak()
}
if yyb3295 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3300 := &x.Items
yym3301 := z.DecBinary()
_ = yym3301
if false {
} else {
h.decSliceNode((*[]Node)(yyv3300), d)
}
}
for {
yyj3295++
if yyhl3295 {
yyb3295 = yyj3295 > l
} else {
yyb3295 = r.CheckBreak()
}
if yyb3295 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3295-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *NamespaceSpec) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3302 := z.EncBinary()
_ = yym3302
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3303 := !z.EncBinary()
yy2arr3303 := z.EncBasicHandle().StructToArray
var yyq3303 [1]bool
_, _, _ = yysep3303, yyq3303, yy2arr3303
const yyr3303 bool = false
var yynn3303 int
if yyr3303 || yy2arr3303 {
r.EncodeArrayStart(1)
} else {
yynn3303 = 1
for _, b := range yyq3303 {
if b {
yynn3303++
}
}
r.EncodeMapStart(yynn3303)
yynn3303 = 0
}
if yyr3303 || yy2arr3303 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Finalizers == nil {
r.EncodeNil()
} else {
yym3305 := z.EncBinary()
_ = yym3305
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 {
yym3306 := z.EncBinary()
_ = yym3306
if false {
} else {
h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e)
}
}
}
if yyr3303 || yy2arr3303 {
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
yym3307 := z.DecBinary()
_ = yym3307
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3308 := r.ContainerType()
if yyct3308 == codecSelferValueTypeMap1234 {
yyl3308 := r.ReadMapStart()
if yyl3308 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3308, d)
}
} else if yyct3308 == codecSelferValueTypeArray1234 {
yyl3308 := r.ReadArrayStart()
if yyl3308 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3308, 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 yys3309Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3309Slc
var yyhl3309 bool = l >= 0
for yyj3309 := 0; ; yyj3309++ {
if yyhl3309 {
if yyj3309 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3309Slc = r.DecodeBytes(yys3309Slc, true, true)
yys3309 := string(yys3309Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3309 {
case "Finalizers":
if r.TryDecodeAsNil() {
x.Finalizers = nil
} else {
yyv3310 := &x.Finalizers
yym3311 := z.DecBinary()
_ = yym3311
if false {
} else {
h.decSliceFinalizerName((*[]FinalizerName)(yyv3310), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3309)
} // end switch yys3309
} // end for yyj3309
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 yyj3312 int
var yyb3312 bool
var yyhl3312 bool = l >= 0
yyj3312++
if yyhl3312 {
yyb3312 = yyj3312 > l
} else {
yyb3312 = r.CheckBreak()
}
if yyb3312 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Finalizers = nil
} else {
yyv3313 := &x.Finalizers
yym3314 := z.DecBinary()
_ = yym3314
if false {
} else {
h.decSliceFinalizerName((*[]FinalizerName)(yyv3313), d)
}
}
for {
yyj3312++
if yyhl3312 {
yyb3312 = yyj3312 > l
} else {
yyb3312 = r.CheckBreak()
}
if yyb3312 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3312-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3315 := z.EncBinary()
_ = yym3315
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
yym3316 := z.DecBinary()
_ = yym3316
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 {
yym3317 := z.EncBinary()
_ = yym3317
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3318 := !z.EncBinary()
yy2arr3318 := z.EncBasicHandle().StructToArray
var yyq3318 [1]bool
_, _, _ = yysep3318, yyq3318, yy2arr3318
const yyr3318 bool = false
yyq3318[0] = x.Phase != ""
var yynn3318 int
if yyr3318 || yy2arr3318 {
r.EncodeArrayStart(1)
} else {
yynn3318 = 0
for _, b := range yyq3318 {
if b {
yynn3318++
}
}
r.EncodeMapStart(yynn3318)
yynn3318 = 0
}
if yyr3318 || yy2arr3318 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3318[0] {
x.Phase.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3318[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("phase"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Phase.CodecEncodeSelf(e)
}
}
if yyr3318 || yy2arr3318 {
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
yym3320 := z.DecBinary()
_ = yym3320
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3321 := r.ContainerType()
if yyct3321 == codecSelferValueTypeMap1234 {
yyl3321 := r.ReadMapStart()
if yyl3321 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3321, d)
}
} else if yyct3321 == codecSelferValueTypeArray1234 {
yyl3321 := r.ReadArrayStart()
if yyl3321 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3321, 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 yys3322Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3322Slc
var yyhl3322 bool = l >= 0
for yyj3322 := 0; ; yyj3322++ {
if yyhl3322 {
if yyj3322 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3322Slc = r.DecodeBytes(yys3322Slc, true, true)
yys3322 := string(yys3322Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3322 {
case "phase":
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = NamespacePhase(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys3322)
} // end switch yys3322
} // end for yyj3322
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 yyj3324 int
var yyb3324 bool
var yyhl3324 bool = l >= 0
yyj3324++
if yyhl3324 {
yyb3324 = yyj3324 > l
} else {
yyb3324 = r.CheckBreak()
}
if yyb3324 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = NamespacePhase(r.DecodeString())
}
for {
yyj3324++
if yyhl3324 {
yyb3324 = yyj3324 > l
} else {
yyb3324 = r.CheckBreak()
}
if yyb3324 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3324-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x NamespacePhase) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3326 := z.EncBinary()
_ = yym3326
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
yym3327 := z.DecBinary()
_ = yym3327
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 {
yym3328 := z.EncBinary()
_ = yym3328
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3329 := !z.EncBinary()
yy2arr3329 := z.EncBasicHandle().StructToArray
var yyq3329 [5]bool
_, _, _ = yysep3329, yyq3329, yy2arr3329
const yyr3329 bool = false
yyq3329[0] = x.Kind != ""
yyq3329[1] = x.APIVersion != ""
yyq3329[2] = true
yyq3329[3] = true
yyq3329[4] = true
var yynn3329 int
if yyr3329 || yy2arr3329 {
r.EncodeArrayStart(5)
} else {
yynn3329 = 0
for _, b := range yyq3329 {
if b {
yynn3329++
}
}
r.EncodeMapStart(yynn3329)
yynn3329 = 0
}
if yyr3329 || yy2arr3329 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3329[0] {
yym3331 := z.EncBinary()
_ = yym3331
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3329[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3332 := z.EncBinary()
_ = yym3332
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3329 || yy2arr3329 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3329[1] {
yym3334 := z.EncBinary()
_ = yym3334
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3329[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3335 := z.EncBinary()
_ = yym3335
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3329 || yy2arr3329 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3329[2] {
yy3337 := &x.ObjectMeta
yy3337.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3329[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3338 := &x.ObjectMeta
yy3338.CodecEncodeSelf(e)
}
}
if yyr3329 || yy2arr3329 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3329[3] {
yy3340 := &x.Spec
yy3340.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3329[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3341 := &x.Spec
yy3341.CodecEncodeSelf(e)
}
}
if yyr3329 || yy2arr3329 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3329[4] {
yy3343 := &x.Status
yy3343.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3329[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3344 := &x.Status
yy3344.CodecEncodeSelf(e)
}
}
if yyr3329 || yy2arr3329 {
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
yym3345 := z.DecBinary()
_ = yym3345
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3346 := r.ContainerType()
if yyct3346 == codecSelferValueTypeMap1234 {
yyl3346 := r.ReadMapStart()
if yyl3346 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3346, d)
}
} else if yyct3346 == codecSelferValueTypeArray1234 {
yyl3346 := r.ReadArrayStart()
if yyl3346 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3346, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *Namespace) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3347Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3347Slc
var yyhl3347 bool = l >= 0
for yyj3347 := 0; ; yyj3347++ {
if yyhl3347 {
if yyj3347 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3347Slc = r.DecodeBytes(yys3347Slc, true, true)
yys3347 := string(yys3347Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3347 {
case "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 {
yyv3350 := &x.ObjectMeta
yyv3350.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = NamespaceSpec{}
} else {
yyv3351 := &x.Spec
yyv3351.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = NamespaceStatus{}
} else {
yyv3352 := &x.Status
yyv3352.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3347)
} // end switch yys3347
} // end for yyj3347
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 yyj3353 int
var yyb3353 bool
var yyhl3353 bool = l >= 0
yyj3353++
if yyhl3353 {
yyb3353 = yyj3353 > l
} else {
yyb3353 = r.CheckBreak()
}
if yyb3353 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3353++
if yyhl3353 {
yyb3353 = yyj3353 > l
} else {
yyb3353 = r.CheckBreak()
}
if yyb3353 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3353++
if yyhl3353 {
yyb3353 = yyj3353 > l
} else {
yyb3353 = r.CheckBreak()
}
if yyb3353 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3356 := &x.ObjectMeta
yyv3356.CodecDecodeSelf(d)
}
yyj3353++
if yyhl3353 {
yyb3353 = yyj3353 > l
} else {
yyb3353 = r.CheckBreak()
}
if yyb3353 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = NamespaceSpec{}
} else {
yyv3357 := &x.Spec
yyv3357.CodecDecodeSelf(d)
}
yyj3353++
if yyhl3353 {
yyb3353 = yyj3353 > l
} else {
yyb3353 = r.CheckBreak()
}
if yyb3353 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = NamespaceStatus{}
} else {
yyv3358 := &x.Status
yyv3358.CodecDecodeSelf(d)
}
for {
yyj3353++
if yyhl3353 {
yyb3353 = yyj3353 > l
} else {
yyb3353 = r.CheckBreak()
}
if yyb3353 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3353-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 {
yym3359 := z.EncBinary()
_ = yym3359
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3360 := !z.EncBinary()
yy2arr3360 := z.EncBasicHandle().StructToArray
var yyq3360 [4]bool
_, _, _ = yysep3360, yyq3360, yy2arr3360
const yyr3360 bool = false
yyq3360[0] = x.Kind != ""
yyq3360[1] = x.APIVersion != ""
yyq3360[2] = true
var yynn3360 int
if yyr3360 || yy2arr3360 {
r.EncodeArrayStart(4)
} else {
yynn3360 = 1
for _, b := range yyq3360 {
if b {
yynn3360++
}
}
r.EncodeMapStart(yynn3360)
yynn3360 = 0
}
if yyr3360 || yy2arr3360 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3360[0] {
yym3362 := z.EncBinary()
_ = yym3362
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3360[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3363 := z.EncBinary()
_ = yym3363
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3360 || yy2arr3360 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3360[1] {
yym3365 := z.EncBinary()
_ = yym3365
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3360[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3366 := z.EncBinary()
_ = yym3366
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3360 || yy2arr3360 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3360[2] {
yy3368 := &x.ListMeta
yym3369 := z.EncBinary()
_ = yym3369
if false {
} else if z.HasExtensions() && z.EncExt(yy3368) {
} else {
z.EncFallback(yy3368)
}
} else {
r.EncodeNil()
}
} else {
if yyq3360[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3370 := &x.ListMeta
yym3371 := z.EncBinary()
_ = yym3371
if false {
} else if z.HasExtensions() && z.EncExt(yy3370) {
} else {
z.EncFallback(yy3370)
}
}
}
if yyr3360 || yy2arr3360 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3373 := z.EncBinary()
_ = yym3373
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 {
yym3374 := z.EncBinary()
_ = yym3374
if false {
} else {
h.encSliceNamespace(([]Namespace)(x.Items), e)
}
}
}
if yyr3360 || yy2arr3360 {
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
yym3375 := z.DecBinary()
_ = yym3375
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3376 := r.ContainerType()
if yyct3376 == codecSelferValueTypeMap1234 {
yyl3376 := r.ReadMapStart()
if yyl3376 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3376, d)
}
} else if yyct3376 == codecSelferValueTypeArray1234 {
yyl3376 := r.ReadArrayStart()
if yyl3376 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3376, 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 yys3377Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3377Slc
var yyhl3377 bool = l >= 0
for yyj3377 := 0; ; yyj3377++ {
if yyhl3377 {
if yyj3377 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3377Slc = r.DecodeBytes(yys3377Slc, true, true)
yys3377 := string(yys3377Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3377 {
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 {
yyv3380 := &x.ListMeta
yym3381 := z.DecBinary()
_ = yym3381
if false {
} else if z.HasExtensions() && z.DecExt(yyv3380) {
} else {
z.DecFallback(yyv3380, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3382 := &x.Items
yym3383 := z.DecBinary()
_ = yym3383
if false {
} else {
h.decSliceNamespace((*[]Namespace)(yyv3382), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3377)
} // end switch yys3377
} // end for yyj3377
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 yyj3384 int
var yyb3384 bool
var yyhl3384 bool = l >= 0
yyj3384++
if yyhl3384 {
yyb3384 = yyj3384 > l
} else {
yyb3384 = r.CheckBreak()
}
if yyb3384 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3384++
if yyhl3384 {
yyb3384 = yyj3384 > l
} else {
yyb3384 = r.CheckBreak()
}
if yyb3384 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3384++
if yyhl3384 {
yyb3384 = yyj3384 > l
} else {
yyb3384 = r.CheckBreak()
}
if yyb3384 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3387 := &x.ListMeta
yym3388 := z.DecBinary()
_ = yym3388
if false {
} else if z.HasExtensions() && z.DecExt(yyv3387) {
} else {
z.DecFallback(yyv3387, false)
}
}
yyj3384++
if yyhl3384 {
yyb3384 = yyj3384 > l
} else {
yyb3384 = r.CheckBreak()
}
if yyb3384 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3389 := &x.Items
yym3390 := z.DecBinary()
_ = yym3390
if false {
} else {
h.decSliceNamespace((*[]Namespace)(yyv3389), d)
}
}
for {
yyj3384++
if yyhl3384 {
yyb3384 = yyj3384 > l
} else {
yyb3384 = r.CheckBreak()
}
if yyb3384 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3384-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 {
yym3391 := z.EncBinary()
_ = yym3391
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3392 := !z.EncBinary()
yy2arr3392 := z.EncBasicHandle().StructToArray
var yyq3392 [4]bool
_, _, _ = yysep3392, yyq3392, yy2arr3392
const yyr3392 bool = false
yyq3392[0] = x.Kind != ""
yyq3392[1] = x.APIVersion != ""
yyq3392[2] = true
var yynn3392 int
if yyr3392 || yy2arr3392 {
r.EncodeArrayStart(4)
} else {
yynn3392 = 1
for _, b := range yyq3392 {
if b {
yynn3392++
}
}
r.EncodeMapStart(yynn3392)
yynn3392 = 0
}
if yyr3392 || yy2arr3392 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3392[0] {
yym3394 := z.EncBinary()
_ = yym3394
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3392[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3395 := z.EncBinary()
_ = yym3395
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3392 || yy2arr3392 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3392[1] {
yym3397 := z.EncBinary()
_ = yym3397
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3392[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3398 := z.EncBinary()
_ = yym3398
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3392 || yy2arr3392 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3392[2] {
yy3400 := &x.ObjectMeta
yy3400.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3392[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3401 := &x.ObjectMeta
yy3401.CodecEncodeSelf(e)
}
}
if yyr3392 || yy2arr3392 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3403 := &x.Target
yy3403.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("target"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3404 := &x.Target
yy3404.CodecEncodeSelf(e)
}
if yyr3392 || yy2arr3392 {
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
yym3405 := z.DecBinary()
_ = yym3405
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3406 := r.ContainerType()
if yyct3406 == codecSelferValueTypeMap1234 {
yyl3406 := r.ReadMapStart()
if yyl3406 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3406, d)
}
} else if yyct3406 == codecSelferValueTypeArray1234 {
yyl3406 := r.ReadArrayStart()
if yyl3406 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3406, 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 yys3407Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3407Slc
var yyhl3407 bool = l >= 0
for yyj3407 := 0; ; yyj3407++ {
if yyhl3407 {
if yyj3407 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3407Slc = r.DecodeBytes(yys3407Slc, true, true)
yys3407 := string(yys3407Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3407 {
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 {
yyv3410 := &x.ObjectMeta
yyv3410.CodecDecodeSelf(d)
}
case "target":
if r.TryDecodeAsNil() {
x.Target = ObjectReference{}
} else {
yyv3411 := &x.Target
yyv3411.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3407)
} // end switch yys3407
} // end for yyj3407
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 yyj3412 int
var yyb3412 bool
var yyhl3412 bool = l >= 0
yyj3412++
if yyhl3412 {
yyb3412 = yyj3412 > l
} else {
yyb3412 = r.CheckBreak()
}
if yyb3412 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3412++
if yyhl3412 {
yyb3412 = yyj3412 > l
} else {
yyb3412 = r.CheckBreak()
}
if yyb3412 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3412++
if yyhl3412 {
yyb3412 = yyj3412 > l
} else {
yyb3412 = r.CheckBreak()
}
if yyb3412 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3415 := &x.ObjectMeta
yyv3415.CodecDecodeSelf(d)
}
yyj3412++
if yyhl3412 {
yyb3412 = yyj3412 > l
} else {
yyb3412 = r.CheckBreak()
}
if yyb3412 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Target = ObjectReference{}
} else {
yyv3416 := &x.Target
yyv3416.CodecDecodeSelf(d)
}
for {
yyj3412++
if yyhl3412 {
yyb3412 = yyj3412 > l
} else {
yyb3412 = r.CheckBreak()
}
if yyb3412 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3412-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 {
yym3417 := z.EncBinary()
_ = yym3417
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3418 := !z.EncBinary()
yy2arr3418 := z.EncBasicHandle().StructToArray
var yyq3418 [1]bool
_, _, _ = yysep3418, yyq3418, yy2arr3418
const yyr3418 bool = false
yyq3418[0] = x.UID != nil
var yynn3418 int
if yyr3418 || yy2arr3418 {
r.EncodeArrayStart(1)
} else {
yynn3418 = 0
for _, b := range yyq3418 {
if b {
yynn3418++
}
}
r.EncodeMapStart(yynn3418)
yynn3418 = 0
}
if yyr3418 || yy2arr3418 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3418[0] {
if x.UID == nil {
r.EncodeNil()
} else {
yy3420 := *x.UID
yym3421 := z.EncBinary()
_ = yym3421
if false {
} else if z.HasExtensions() && z.EncExt(yy3420) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(yy3420))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3418[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("uid"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.UID == nil {
r.EncodeNil()
} else {
yy3422 := *x.UID
yym3423 := z.EncBinary()
_ = yym3423
if false {
} else if z.HasExtensions() && z.EncExt(yy3422) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(yy3422))
}
}
}
}
if yyr3418 || yy2arr3418 {
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
yym3424 := z.DecBinary()
_ = yym3424
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3425 := r.ContainerType()
if yyct3425 == codecSelferValueTypeMap1234 {
yyl3425 := r.ReadMapStart()
if yyl3425 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3425, d)
}
} else if yyct3425 == codecSelferValueTypeArray1234 {
yyl3425 := r.ReadArrayStart()
if yyl3425 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3425, 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 yys3426Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3426Slc
var yyhl3426 bool = l >= 0
for yyj3426 := 0; ; yyj3426++ {
if yyhl3426 {
if yyj3426 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3426Slc = r.DecodeBytes(yys3426Slc, true, true)
yys3426 := string(yys3426Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3426 {
case "uid":
if r.TryDecodeAsNil() {
if x.UID != nil {
x.UID = nil
}
} else {
if x.UID == nil {
x.UID = new(pkg1_types.UID)
}
yym3428 := z.DecBinary()
_ = yym3428
if false {
} else if z.HasExtensions() && z.DecExt(x.UID) {
} else {
*((*string)(x.UID)) = r.DecodeString()
}
}
default:
z.DecStructFieldNotFound(-1, yys3426)
} // end switch yys3426
} // end for yyj3426
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 yyj3429 int
var yyb3429 bool
var yyhl3429 bool = l >= 0
yyj3429++
if yyhl3429 {
yyb3429 = yyj3429 > l
} else {
yyb3429 = r.CheckBreak()
}
if yyb3429 {
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)
}
yym3431 := z.DecBinary()
_ = yym3431
if false {
} else if z.HasExtensions() && z.DecExt(x.UID) {
} else {
*((*string)(x.UID)) = r.DecodeString()
}
}
for {
yyj3429++
if yyhl3429 {
yyb3429 = yyj3429 > l
} else {
yyb3429 = r.CheckBreak()
}
if yyb3429 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3429-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 {
yym3432 := z.EncBinary()
_ = yym3432
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3433 := !z.EncBinary()
yy2arr3433 := z.EncBasicHandle().StructToArray
var yyq3433 [5]bool
_, _, _ = yysep3433, yyq3433, yy2arr3433
const yyr3433 bool = false
yyq3433[0] = x.Kind != ""
yyq3433[1] = x.APIVersion != ""
yyq3433[2] = x.GracePeriodSeconds != nil
yyq3433[3] = x.Preconditions != nil
yyq3433[4] = x.OrphanDependents != nil
var yynn3433 int
if yyr3433 || yy2arr3433 {
r.EncodeArrayStart(5)
} else {
yynn3433 = 0
for _, b := range yyq3433 {
if b {
yynn3433++
}
}
r.EncodeMapStart(yynn3433)
yynn3433 = 0
}
if yyr3433 || yy2arr3433 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3433[0] {
yym3435 := z.EncBinary()
_ = yym3435
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3433[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3436 := z.EncBinary()
_ = yym3436
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3433 || yy2arr3433 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3433[1] {
yym3438 := z.EncBinary()
_ = yym3438
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3433[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3439 := z.EncBinary()
_ = yym3439
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3433 || yy2arr3433 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3433[2] {
if x.GracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy3441 := *x.GracePeriodSeconds
yym3442 := z.EncBinary()
_ = yym3442
if false {
} else {
r.EncodeInt(int64(yy3441))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3433[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.GracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy3443 := *x.GracePeriodSeconds
yym3444 := z.EncBinary()
_ = yym3444
if false {
} else {
r.EncodeInt(int64(yy3443))
}
}
}
}
if yyr3433 || yy2arr3433 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3433[3] {
if x.Preconditions == nil {
r.EncodeNil()
} else {
x.Preconditions.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3433[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 yyr3433 || yy2arr3433 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3433[4] {
if x.OrphanDependents == nil {
r.EncodeNil()
} else {
yy3447 := *x.OrphanDependents
yym3448 := z.EncBinary()
_ = yym3448
if false {
} else {
r.EncodeBool(bool(yy3447))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3433[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("orphanDependents"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.OrphanDependents == nil {
r.EncodeNil()
} else {
yy3449 := *x.OrphanDependents
yym3450 := z.EncBinary()
_ = yym3450
if false {
} else {
r.EncodeBool(bool(yy3449))
}
}
}
}
if yyr3433 || yy2arr3433 {
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
yym3451 := z.DecBinary()
_ = yym3451
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3452 := r.ContainerType()
if yyct3452 == codecSelferValueTypeMap1234 {
yyl3452 := r.ReadMapStart()
if yyl3452 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3452, d)
}
} else if yyct3452 == codecSelferValueTypeArray1234 {
yyl3452 := r.ReadArrayStart()
if yyl3452 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3452, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3453Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3453Slc
var yyhl3453 bool = l >= 0
for yyj3453 := 0; ; yyj3453++ {
if yyhl3453 {
if yyj3453 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3453Slc = r.DecodeBytes(yys3453Slc, true, true)
yys3453 := string(yys3453Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3453 {
case "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)
}
yym3457 := z.DecBinary()
_ = yym3457
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)
}
yym3460 := z.DecBinary()
_ = yym3460
if false {
} else {
*((*bool)(x.OrphanDependents)) = r.DecodeBool()
}
}
default:
z.DecStructFieldNotFound(-1, yys3453)
} // end switch yys3453
} // end for yyj3453
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 yyj3461 int
var yyb3461 bool
var yyhl3461 bool = l >= 0
yyj3461++
if yyhl3461 {
yyb3461 = yyj3461 > l
} else {
yyb3461 = r.CheckBreak()
}
if yyb3461 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3461++
if yyhl3461 {
yyb3461 = yyj3461 > l
} else {
yyb3461 = r.CheckBreak()
}
if yyb3461 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3461++
if yyhl3461 {
yyb3461 = yyj3461 > l
} else {
yyb3461 = r.CheckBreak()
}
if yyb3461 {
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)
}
yym3465 := z.DecBinary()
_ = yym3465
if false {
} else {
*((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64))
}
}
yyj3461++
if yyhl3461 {
yyb3461 = yyj3461 > l
} else {
yyb3461 = r.CheckBreak()
}
if yyb3461 {
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)
}
yyj3461++
if yyhl3461 {
yyb3461 = yyj3461 > l
} else {
yyb3461 = r.CheckBreak()
}
if yyb3461 {
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)
}
yym3468 := z.DecBinary()
_ = yym3468
if false {
} else {
*((*bool)(x.OrphanDependents)) = r.DecodeBool()
}
}
for {
yyj3461++
if yyhl3461 {
yyb3461 = yyj3461 > l
} else {
yyb3461 = r.CheckBreak()
}
if yyb3461 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3461-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 {
yym3469 := z.EncBinary()
_ = yym3469
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3470 := !z.EncBinary()
yy2arr3470 := z.EncBasicHandle().StructToArray
var yyq3470 [4]bool
_, _, _ = yysep3470, yyq3470, yy2arr3470
const yyr3470 bool = false
yyq3470[0] = x.Kind != ""
yyq3470[1] = x.APIVersion != ""
var yynn3470 int
if yyr3470 || yy2arr3470 {
r.EncodeArrayStart(4)
} else {
yynn3470 = 2
for _, b := range yyq3470 {
if b {
yynn3470++
}
}
r.EncodeMapStart(yynn3470)
yynn3470 = 0
}
if yyr3470 || yy2arr3470 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3470[0] {
yym3472 := z.EncBinary()
_ = yym3472
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3470[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3473 := z.EncBinary()
_ = yym3473
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3470 || yy2arr3470 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3470[1] {
yym3475 := z.EncBinary()
_ = yym3475
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3470[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3476 := z.EncBinary()
_ = yym3476
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3470 || yy2arr3470 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3478 := z.EncBinary()
_ = yym3478
if false {
} else {
r.EncodeBool(bool(x.Export))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("export"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3479 := z.EncBinary()
_ = yym3479
if false {
} else {
r.EncodeBool(bool(x.Export))
}
}
if yyr3470 || yy2arr3470 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3481 := z.EncBinary()
_ = yym3481
if false {
} else {
r.EncodeBool(bool(x.Exact))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("exact"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3482 := z.EncBinary()
_ = yym3482
if false {
} else {
r.EncodeBool(bool(x.Exact))
}
}
if yyr3470 || yy2arr3470 {
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
yym3483 := z.DecBinary()
_ = yym3483
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3484 := r.ContainerType()
if yyct3484 == codecSelferValueTypeMap1234 {
yyl3484 := r.ReadMapStart()
if yyl3484 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3484, d)
}
} else if yyct3484 == codecSelferValueTypeArray1234 {
yyl3484 := r.ReadArrayStart()
if yyl3484 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3484, 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 yys3485Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3485Slc
var yyhl3485 bool = l >= 0
for yyj3485 := 0; ; yyj3485++ {
if yyhl3485 {
if yyj3485 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3485Slc = r.DecodeBytes(yys3485Slc, true, true)
yys3485 := string(yys3485Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3485 {
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, yys3485)
} // end switch yys3485
} // end for yyj3485
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 yyj3490 int
var yyb3490 bool
var yyhl3490 bool = l >= 0
yyj3490++
if yyhl3490 {
yyb3490 = yyj3490 > l
} else {
yyb3490 = r.CheckBreak()
}
if yyb3490 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3490++
if yyhl3490 {
yyb3490 = yyj3490 > l
} else {
yyb3490 = r.CheckBreak()
}
if yyb3490 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3490++
if yyhl3490 {
yyb3490 = yyj3490 > l
} else {
yyb3490 = r.CheckBreak()
}
if yyb3490 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Export = false
} else {
x.Export = bool(r.DecodeBool())
}
yyj3490++
if yyhl3490 {
yyb3490 = yyj3490 > l
} else {
yyb3490 = r.CheckBreak()
}
if yyb3490 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Exact = false
} else {
x.Exact = bool(r.DecodeBool())
}
for {
yyj3490++
if yyhl3490 {
yyb3490 = yyj3490 > l
} else {
yyb3490 = r.CheckBreak()
}
if yyb3490 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3490-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 {
yym3495 := z.EncBinary()
_ = yym3495
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3496 := !z.EncBinary()
yy2arr3496 := z.EncBasicHandle().StructToArray
var yyq3496 [7]bool
_, _, _ = yysep3496, yyq3496, yy2arr3496
const yyr3496 bool = false
yyq3496[0] = x.Kind != ""
yyq3496[1] = x.APIVersion != ""
var yynn3496 int
if yyr3496 || yy2arr3496 {
r.EncodeArrayStart(7)
} else {
yynn3496 = 5
for _, b := range yyq3496 {
if b {
yynn3496++
}
}
r.EncodeMapStart(yynn3496)
yynn3496 = 0
}
if yyr3496 || yy2arr3496 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3496[0] {
yym3498 := z.EncBinary()
_ = yym3498
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3496[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3499 := z.EncBinary()
_ = yym3499
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3496 || yy2arr3496 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3496[1] {
yym3501 := z.EncBinary()
_ = yym3501
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3496[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3502 := z.EncBinary()
_ = yym3502
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3496 || yy2arr3496 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.LabelSelector == nil {
r.EncodeNil()
} else {
yym3504 := z.EncBinary()
_ = yym3504
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 {
yym3505 := z.EncBinary()
_ = yym3505
if false {
} else if z.HasExtensions() && z.EncExt(x.LabelSelector) {
} else {
z.EncFallback(x.LabelSelector)
}
}
}
if yyr3496 || yy2arr3496 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.FieldSelector == nil {
r.EncodeNil()
} else {
yym3507 := z.EncBinary()
_ = yym3507
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 {
yym3508 := z.EncBinary()
_ = yym3508
if false {
} else if z.HasExtensions() && z.EncExt(x.FieldSelector) {
} else {
z.EncFallback(x.FieldSelector)
}
}
}
if yyr3496 || yy2arr3496 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3510 := z.EncBinary()
_ = yym3510
if false {
} else {
r.EncodeBool(bool(x.Watch))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Watch"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3511 := z.EncBinary()
_ = yym3511
if false {
} else {
r.EncodeBool(bool(x.Watch))
}
}
if yyr3496 || yy2arr3496 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3513 := z.EncBinary()
_ = yym3513
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)
yym3514 := z.EncBinary()
_ = yym3514
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
}
}
if yyr3496 || yy2arr3496 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.TimeoutSeconds == nil {
r.EncodeNil()
} else {
yy3516 := *x.TimeoutSeconds
yym3517 := z.EncBinary()
_ = yym3517
if false {
} else {
r.EncodeInt(int64(yy3516))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("TimeoutSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.TimeoutSeconds == nil {
r.EncodeNil()
} else {
yy3518 := *x.TimeoutSeconds
yym3519 := z.EncBinary()
_ = yym3519
if false {
} else {
r.EncodeInt(int64(yy3518))
}
}
}
if yyr3496 || yy2arr3496 {
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
yym3520 := z.DecBinary()
_ = yym3520
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3521 := r.ContainerType()
if yyct3521 == codecSelferValueTypeMap1234 {
yyl3521 := r.ReadMapStart()
if yyl3521 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3521, d)
}
} else if yyct3521 == codecSelferValueTypeArray1234 {
yyl3521 := r.ReadArrayStart()
if yyl3521 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3521, 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 yys3522Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3522Slc
var yyhl3522 bool = l >= 0
for yyj3522 := 0; ; yyj3522++ {
if yyhl3522 {
if yyj3522 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3522Slc = r.DecodeBytes(yys3522Slc, true, true)
yys3522 := string(yys3522Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3522 {
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 {
yyv3525 := &x.LabelSelector
yym3526 := z.DecBinary()
_ = yym3526
if false {
} else if z.HasExtensions() && z.DecExt(yyv3525) {
} else {
z.DecFallback(yyv3525, true)
}
}
case "FieldSelector":
if r.TryDecodeAsNil() {
x.FieldSelector = nil
} else {
yyv3527 := &x.FieldSelector
yym3528 := z.DecBinary()
_ = yym3528
if false {
} else if z.HasExtensions() && z.DecExt(yyv3527) {
} else {
z.DecFallback(yyv3527, 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)
}
yym3532 := z.DecBinary()
_ = yym3532
if false {
} else {
*((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64))
}
}
default:
z.DecStructFieldNotFound(-1, yys3522)
} // end switch yys3522
} // end for yyj3522
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 yyj3533 int
var yyb3533 bool
var yyhl3533 bool = l >= 0
yyj3533++
if yyhl3533 {
yyb3533 = yyj3533 > l
} else {
yyb3533 = r.CheckBreak()
}
if yyb3533 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3533++
if yyhl3533 {
yyb3533 = yyj3533 > l
} else {
yyb3533 = r.CheckBreak()
}
if yyb3533 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3533++
if yyhl3533 {
yyb3533 = yyj3533 > l
} else {
yyb3533 = r.CheckBreak()
}
if yyb3533 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LabelSelector = nil
} else {
yyv3536 := &x.LabelSelector
yym3537 := z.DecBinary()
_ = yym3537
if false {
} else if z.HasExtensions() && z.DecExt(yyv3536) {
} else {
z.DecFallback(yyv3536, true)
}
}
yyj3533++
if yyhl3533 {
yyb3533 = yyj3533 > l
} else {
yyb3533 = r.CheckBreak()
}
if yyb3533 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FieldSelector = nil
} else {
yyv3538 := &x.FieldSelector
yym3539 := z.DecBinary()
_ = yym3539
if false {
} else if z.HasExtensions() && z.DecExt(yyv3538) {
} else {
z.DecFallback(yyv3538, true)
}
}
yyj3533++
if yyhl3533 {
yyb3533 = yyj3533 > l
} else {
yyb3533 = r.CheckBreak()
}
if yyb3533 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Watch = false
} else {
x.Watch = bool(r.DecodeBool())
}
yyj3533++
if yyhl3533 {
yyb3533 = yyj3533 > l
} else {
yyb3533 = r.CheckBreak()
}
if yyb3533 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ResourceVersion = ""
} else {
x.ResourceVersion = string(r.DecodeString())
}
yyj3533++
if yyhl3533 {
yyb3533 = yyj3533 > l
} else {
yyb3533 = r.CheckBreak()
}
if yyb3533 {
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)
}
yym3543 := z.DecBinary()
_ = yym3543
if false {
} else {
*((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64))
}
}
for {
yyj3533++
if yyhl3533 {
yyb3533 = yyj3533 > l
} else {
yyb3533 = r.CheckBreak()
}
if yyb3533 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3533-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 {
yym3544 := z.EncBinary()
_ = yym3544
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3545 := !z.EncBinary()
yy2arr3545 := z.EncBasicHandle().StructToArray
var yyq3545 [10]bool
_, _, _ = yysep3545, yyq3545, yy2arr3545
const yyr3545 bool = false
yyq3545[0] = x.Kind != ""
yyq3545[1] = x.APIVersion != ""
var yynn3545 int
if yyr3545 || yy2arr3545 {
r.EncodeArrayStart(10)
} else {
yynn3545 = 8
for _, b := range yyq3545 {
if b {
yynn3545++
}
}
r.EncodeMapStart(yynn3545)
yynn3545 = 0
}
if yyr3545 || yy2arr3545 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3545[0] {
yym3547 := z.EncBinary()
_ = yym3547
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3545[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3548 := z.EncBinary()
_ = yym3548
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3545 || yy2arr3545 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3545[1] {
yym3550 := z.EncBinary()
_ = yym3550
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3545[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3551 := z.EncBinary()
_ = yym3551
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3545 || yy2arr3545 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3553 := z.EncBinary()
_ = yym3553
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)
yym3554 := z.EncBinary()
_ = yym3554
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
}
}
if yyr3545 || yy2arr3545 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3556 := z.EncBinary()
_ = yym3556
if false {
} else {
r.EncodeBool(bool(x.Follow))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Follow"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3557 := z.EncBinary()
_ = yym3557
if false {
} else {
r.EncodeBool(bool(x.Follow))
}
}
if yyr3545 || yy2arr3545 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3559 := z.EncBinary()
_ = yym3559
if false {
} else {
r.EncodeBool(bool(x.Previous))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Previous"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3560 := z.EncBinary()
_ = yym3560
if false {
} else {
r.EncodeBool(bool(x.Previous))
}
}
if yyr3545 || yy2arr3545 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.SinceSeconds == nil {
r.EncodeNil()
} else {
yy3562 := *x.SinceSeconds
yym3563 := z.EncBinary()
_ = yym3563
if false {
} else {
r.EncodeInt(int64(yy3562))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("SinceSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.SinceSeconds == nil {
r.EncodeNil()
} else {
yy3564 := *x.SinceSeconds
yym3565 := z.EncBinary()
_ = yym3565
if false {
} else {
r.EncodeInt(int64(yy3564))
}
}
}
if yyr3545 || yy2arr3545 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.SinceTime == nil {
r.EncodeNil()
} else {
yym3567 := z.EncBinary()
_ = yym3567
if false {
} else if z.HasExtensions() && z.EncExt(x.SinceTime) {
} else if yym3567 {
z.EncBinaryMarshal(x.SinceTime)
} else if !yym3567 && 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 {
yym3568 := z.EncBinary()
_ = yym3568
if false {
} else if z.HasExtensions() && z.EncExt(x.SinceTime) {
} else if yym3568 {
z.EncBinaryMarshal(x.SinceTime)
} else if !yym3568 && z.IsJSONHandle() {
z.EncJSONMarshal(x.SinceTime)
} else {
z.EncFallback(x.SinceTime)
}
}
}
if yyr3545 || yy2arr3545 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3570 := z.EncBinary()
_ = yym3570
if false {
} else {
r.EncodeBool(bool(x.Timestamps))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Timestamps"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3571 := z.EncBinary()
_ = yym3571
if false {
} else {
r.EncodeBool(bool(x.Timestamps))
}
}
if yyr3545 || yy2arr3545 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.TailLines == nil {
r.EncodeNil()
} else {
yy3573 := *x.TailLines
yym3574 := z.EncBinary()
_ = yym3574
if false {
} else {
r.EncodeInt(int64(yy3573))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("TailLines"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.TailLines == nil {
r.EncodeNil()
} else {
yy3575 := *x.TailLines
yym3576 := z.EncBinary()
_ = yym3576
if false {
} else {
r.EncodeInt(int64(yy3575))
}
}
}
if yyr3545 || yy2arr3545 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.LimitBytes == nil {
r.EncodeNil()
} else {
yy3578 := *x.LimitBytes
yym3579 := z.EncBinary()
_ = yym3579
if false {
} else {
r.EncodeInt(int64(yy3578))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("LimitBytes"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.LimitBytes == nil {
r.EncodeNil()
} else {
yy3580 := *x.LimitBytes
yym3581 := z.EncBinary()
_ = yym3581
if false {
} else {
r.EncodeInt(int64(yy3580))
}
}
}
if yyr3545 || yy2arr3545 {
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
yym3582 := z.DecBinary()
_ = yym3582
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3583 := r.ContainerType()
if yyct3583 == codecSelferValueTypeMap1234 {
yyl3583 := r.ReadMapStart()
if yyl3583 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3583, d)
}
} else if yyct3583 == codecSelferValueTypeArray1234 {
yyl3583 := r.ReadArrayStart()
if yyl3583 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3583, 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 yys3584Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3584Slc
var yyhl3584 bool = l >= 0
for yyj3584 := 0; ; yyj3584++ {
if yyhl3584 {
if yyj3584 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3584Slc = r.DecodeBytes(yys3584Slc, true, true)
yys3584 := string(yys3584Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3584 {
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)
}
yym3591 := z.DecBinary()
_ = yym3591
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)
}
yym3593 := z.DecBinary()
_ = yym3593
if false {
} else if z.HasExtensions() && z.DecExt(x.SinceTime) {
} else if yym3593 {
z.DecBinaryUnmarshal(x.SinceTime)
} else if !yym3593 && 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)
}
yym3596 := z.DecBinary()
_ = yym3596
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)
}
yym3598 := z.DecBinary()
_ = yym3598
if false {
} else {
*((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64))
}
}
default:
z.DecStructFieldNotFound(-1, yys3584)
} // end switch yys3584
} // end for yyj3584
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 yyj3599 int
var yyb3599 bool
var yyhl3599 bool = l >= 0
yyj3599++
if yyhl3599 {
yyb3599 = yyj3599 > l
} else {
yyb3599 = r.CheckBreak()
}
if yyb3599 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3599++
if yyhl3599 {
yyb3599 = yyj3599 > l
} else {
yyb3599 = r.CheckBreak()
}
if yyb3599 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3599++
if yyhl3599 {
yyb3599 = yyj3599 > l
} else {
yyb3599 = r.CheckBreak()
}
if yyb3599 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Container = ""
} else {
x.Container = string(r.DecodeString())
}
yyj3599++
if yyhl3599 {
yyb3599 = yyj3599 > l
} else {
yyb3599 = r.CheckBreak()
}
if yyb3599 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Follow = false
} else {
x.Follow = bool(r.DecodeBool())
}
yyj3599++
if yyhl3599 {
yyb3599 = yyj3599 > l
} else {
yyb3599 = r.CheckBreak()
}
if yyb3599 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Previous = false
} else {
x.Previous = bool(r.DecodeBool())
}
yyj3599++
if yyhl3599 {
yyb3599 = yyj3599 > l
} else {
yyb3599 = r.CheckBreak()
}
if yyb3599 {
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)
}
yym3606 := z.DecBinary()
_ = yym3606
if false {
} else {
*((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64))
}
}
yyj3599++
if yyhl3599 {
yyb3599 = yyj3599 > l
} else {
yyb3599 = r.CheckBreak()
}
if yyb3599 {
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)
}
yym3608 := z.DecBinary()
_ = yym3608
if false {
} else if z.HasExtensions() && z.DecExt(x.SinceTime) {
} else if yym3608 {
z.DecBinaryUnmarshal(x.SinceTime)
} else if !yym3608 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.SinceTime)
} else {
z.DecFallback(x.SinceTime, false)
}
}
yyj3599++
if yyhl3599 {
yyb3599 = yyj3599 > l
} else {
yyb3599 = r.CheckBreak()
}
if yyb3599 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Timestamps = false
} else {
x.Timestamps = bool(r.DecodeBool())
}
yyj3599++
if yyhl3599 {
yyb3599 = yyj3599 > l
} else {
yyb3599 = r.CheckBreak()
}
if yyb3599 {
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)
}
yym3611 := z.DecBinary()
_ = yym3611
if false {
} else {
*((*int64)(x.TailLines)) = int64(r.DecodeInt(64))
}
}
yyj3599++
if yyhl3599 {
yyb3599 = yyj3599 > l
} else {
yyb3599 = r.CheckBreak()
}
if yyb3599 {
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)
}
yym3613 := z.DecBinary()
_ = yym3613
if false {
} else {
*((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64))
}
}
for {
yyj3599++
if yyhl3599 {
yyb3599 = yyj3599 > l
} else {
yyb3599 = r.CheckBreak()
}
if yyb3599 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3599-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 {
yym3614 := z.EncBinary()
_ = yym3614
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3615 := !z.EncBinary()
yy2arr3615 := z.EncBasicHandle().StructToArray
var yyq3615 [7]bool
_, _, _ = yysep3615, yyq3615, yy2arr3615
const yyr3615 bool = false
yyq3615[0] = x.Kind != ""
yyq3615[1] = x.APIVersion != ""
yyq3615[2] = x.Stdin != false
yyq3615[3] = x.Stdout != false
yyq3615[4] = x.Stderr != false
yyq3615[5] = x.TTY != false
yyq3615[6] = x.Container != ""
var yynn3615 int
if yyr3615 || yy2arr3615 {
r.EncodeArrayStart(7)
} else {
yynn3615 = 0
for _, b := range yyq3615 {
if b {
yynn3615++
}
}
r.EncodeMapStart(yynn3615)
yynn3615 = 0
}
if yyr3615 || yy2arr3615 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3615[0] {
yym3617 := z.EncBinary()
_ = yym3617
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3615[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3618 := z.EncBinary()
_ = yym3618
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3615 || yy2arr3615 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3615[1] {
yym3620 := z.EncBinary()
_ = yym3620
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3615[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3621 := z.EncBinary()
_ = yym3621
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3615 || yy2arr3615 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3615[2] {
yym3623 := z.EncBinary()
_ = yym3623
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq3615[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stdin"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3624 := z.EncBinary()
_ = yym3624
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
}
}
if yyr3615 || yy2arr3615 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3615[3] {
yym3626 := z.EncBinary()
_ = yym3626
if false {
} else {
r.EncodeBool(bool(x.Stdout))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq3615[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stdout"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3627 := z.EncBinary()
_ = yym3627
if false {
} else {
r.EncodeBool(bool(x.Stdout))
}
}
}
if yyr3615 || yy2arr3615 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3615[4] {
yym3629 := z.EncBinary()
_ = yym3629
if false {
} else {
r.EncodeBool(bool(x.Stderr))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq3615[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stderr"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3630 := z.EncBinary()
_ = yym3630
if false {
} else {
r.EncodeBool(bool(x.Stderr))
}
}
}
if yyr3615 || yy2arr3615 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3615[5] {
yym3632 := z.EncBinary()
_ = yym3632
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq3615[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("tty"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3633 := z.EncBinary()
_ = yym3633
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
}
}
if yyr3615 || yy2arr3615 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3615[6] {
yym3635 := z.EncBinary()
_ = yym3635
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3615[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("container"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3636 := z.EncBinary()
_ = yym3636
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
}
}
}
if yyr3615 || yy2arr3615 {
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
yym3637 := z.DecBinary()
_ = yym3637
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3638 := r.ContainerType()
if yyct3638 == codecSelferValueTypeMap1234 {
yyl3638 := r.ReadMapStart()
if yyl3638 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3638, d)
}
} else if yyct3638 == codecSelferValueTypeArray1234 {
yyl3638 := r.ReadArrayStart()
if yyl3638 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3638, 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 yys3639Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3639Slc
var yyhl3639 bool = l >= 0
for yyj3639 := 0; ; yyj3639++ {
if yyhl3639 {
if yyj3639 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3639Slc = r.DecodeBytes(yys3639Slc, true, true)
yys3639 := string(yys3639Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3639 {
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, yys3639)
} // end switch yys3639
} // end for yyj3639
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 yyj3647 int
var yyb3647 bool
var yyhl3647 bool = l >= 0
yyj3647++
if yyhl3647 {
yyb3647 = yyj3647 > l
} else {
yyb3647 = r.CheckBreak()
}
if yyb3647 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3647++
if yyhl3647 {
yyb3647 = yyj3647 > l
} else {
yyb3647 = r.CheckBreak()
}
if yyb3647 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3647++
if yyhl3647 {
yyb3647 = yyj3647 > l
} else {
yyb3647 = r.CheckBreak()
}
if yyb3647 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdin = false
} else {
x.Stdin = bool(r.DecodeBool())
}
yyj3647++
if yyhl3647 {
yyb3647 = yyj3647 > l
} else {
yyb3647 = r.CheckBreak()
}
if yyb3647 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdout = false
} else {
x.Stdout = bool(r.DecodeBool())
}
yyj3647++
if yyhl3647 {
yyb3647 = yyj3647 > l
} else {
yyb3647 = r.CheckBreak()
}
if yyb3647 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stderr = false
} else {
x.Stderr = bool(r.DecodeBool())
}
yyj3647++
if yyhl3647 {
yyb3647 = yyj3647 > l
} else {
yyb3647 = r.CheckBreak()
}
if yyb3647 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TTY = false
} else {
x.TTY = bool(r.DecodeBool())
}
yyj3647++
if yyhl3647 {
yyb3647 = yyj3647 > l
} else {
yyb3647 = r.CheckBreak()
}
if yyb3647 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Container = ""
} else {
x.Container = string(r.DecodeString())
}
for {
yyj3647++
if yyhl3647 {
yyb3647 = yyj3647 > l
} else {
yyb3647 = r.CheckBreak()
}
if yyb3647 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3647-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 {
yym3655 := z.EncBinary()
_ = yym3655
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3656 := !z.EncBinary()
yy2arr3656 := z.EncBasicHandle().StructToArray
var yyq3656 [8]bool
_, _, _ = yysep3656, yyq3656, yy2arr3656
const yyr3656 bool = false
yyq3656[0] = x.Kind != ""
yyq3656[1] = x.APIVersion != ""
var yynn3656 int
if yyr3656 || yy2arr3656 {
r.EncodeArrayStart(8)
} else {
yynn3656 = 6
for _, b := range yyq3656 {
if b {
yynn3656++
}
}
r.EncodeMapStart(yynn3656)
yynn3656 = 0
}
if yyr3656 || yy2arr3656 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3656[0] {
yym3658 := z.EncBinary()
_ = yym3658
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3656[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3659 := z.EncBinary()
_ = yym3659
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3656 || yy2arr3656 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3656[1] {
yym3661 := z.EncBinary()
_ = yym3661
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3656[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3662 := z.EncBinary()
_ = yym3662
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3656 || yy2arr3656 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3664 := z.EncBinary()
_ = yym3664
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Stdin"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3665 := z.EncBinary()
_ = yym3665
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
}
if yyr3656 || yy2arr3656 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3667 := z.EncBinary()
_ = yym3667
if false {
} else {
r.EncodeBool(bool(x.Stdout))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Stdout"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3668 := z.EncBinary()
_ = yym3668
if false {
} else {
r.EncodeBool(bool(x.Stdout))
}
}
if yyr3656 || yy2arr3656 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3670 := z.EncBinary()
_ = yym3670
if false {
} else {
r.EncodeBool(bool(x.Stderr))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Stderr"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3671 := z.EncBinary()
_ = yym3671
if false {
} else {
r.EncodeBool(bool(x.Stderr))
}
}
if yyr3656 || yy2arr3656 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3673 := z.EncBinary()
_ = yym3673
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("TTY"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3674 := z.EncBinary()
_ = yym3674
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
}
if yyr3656 || yy2arr3656 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3676 := z.EncBinary()
_ = yym3676
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)
yym3677 := z.EncBinary()
_ = yym3677
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
}
}
if yyr3656 || yy2arr3656 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Command == nil {
r.EncodeNil()
} else {
yym3679 := z.EncBinary()
_ = yym3679
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 {
yym3680 := z.EncBinary()
_ = yym3680
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
}
if yyr3656 || yy2arr3656 {
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
yym3681 := z.DecBinary()
_ = yym3681
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3682 := r.ContainerType()
if yyct3682 == codecSelferValueTypeMap1234 {
yyl3682 := r.ReadMapStart()
if yyl3682 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3682, d)
}
} else if yyct3682 == codecSelferValueTypeArray1234 {
yyl3682 := r.ReadArrayStart()
if yyl3682 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3682, 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 yys3683Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3683Slc
var yyhl3683 bool = l >= 0
for yyj3683 := 0; ; yyj3683++ {
if yyhl3683 {
if yyj3683 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3683Slc = r.DecodeBytes(yys3683Slc, true, true)
yys3683 := string(yys3683Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3683 {
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 {
yyv3691 := &x.Command
yym3692 := z.DecBinary()
_ = yym3692
if false {
} else {
z.F.DecSliceStringX(yyv3691, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3683)
} // end switch yys3683
} // end for yyj3683
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 yyj3693 int
var yyb3693 bool
var yyhl3693 bool = l >= 0
yyj3693++
if yyhl3693 {
yyb3693 = yyj3693 > l
} else {
yyb3693 = r.CheckBreak()
}
if yyb3693 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3693++
if yyhl3693 {
yyb3693 = yyj3693 > l
} else {
yyb3693 = r.CheckBreak()
}
if yyb3693 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3693++
if yyhl3693 {
yyb3693 = yyj3693 > l
} else {
yyb3693 = r.CheckBreak()
}
if yyb3693 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdin = false
} else {
x.Stdin = bool(r.DecodeBool())
}
yyj3693++
if yyhl3693 {
yyb3693 = yyj3693 > l
} else {
yyb3693 = r.CheckBreak()
}
if yyb3693 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdout = false
} else {
x.Stdout = bool(r.DecodeBool())
}
yyj3693++
if yyhl3693 {
yyb3693 = yyj3693 > l
} else {
yyb3693 = r.CheckBreak()
}
if yyb3693 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stderr = false
} else {
x.Stderr = bool(r.DecodeBool())
}
yyj3693++
if yyhl3693 {
yyb3693 = yyj3693 > l
} else {
yyb3693 = r.CheckBreak()
}
if yyb3693 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TTY = false
} else {
x.TTY = bool(r.DecodeBool())
}
yyj3693++
if yyhl3693 {
yyb3693 = yyj3693 > l
} else {
yyb3693 = r.CheckBreak()
}
if yyb3693 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Container = ""
} else {
x.Container = string(r.DecodeString())
}
yyj3693++
if yyhl3693 {
yyb3693 = yyj3693 > l
} else {
yyb3693 = r.CheckBreak()
}
if yyb3693 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Command = nil
} else {
yyv3701 := &x.Command
yym3702 := z.DecBinary()
_ = yym3702
if false {
} else {
z.F.DecSliceStringX(yyv3701, false, d)
}
}
for {
yyj3693++
if yyhl3693 {
yyb3693 = yyj3693 > l
} else {
yyb3693 = r.CheckBreak()
}
if yyb3693 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3693-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 {
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 *PodProxyOptions) 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 *PodProxyOptions) 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 *PodProxyOptions) 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 *NodeProxyOptions) 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 *NodeProxyOptions) 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 *NodeProxyOptions) 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 *NodeProxyOptions) 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 *ServiceProxyOptions) 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 [3]bool
_, _, _ = yysep3746, yyq3746, yy2arr3746
const yyr3746 bool = false
yyq3746[0] = x.Kind != ""
yyq3746[1] = x.APIVersion != ""
var yynn3746 int
if yyr3746 || yy2arr3746 {
r.EncodeArrayStart(3)
} else {
yynn3746 = 1
for _, b := range yyq3746 {
if b {
yynn3746++
}
}
r.EncodeMapStart(yynn3746)
yynn3746 = 0
}
if yyr3746 || yy2arr3746 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3746[0] {
yym3748 := z.EncBinary()
_ = yym3748
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3746[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3749 := z.EncBinary()
_ = yym3749
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3746 || yy2arr3746 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3746[1] {
yym3751 := z.EncBinary()
_ = yym3751
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3746[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3752 := z.EncBinary()
_ = yym3752
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3746 || yy2arr3746 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3754 := z.EncBinary()
_ = yym3754
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)
yym3755 := z.EncBinary()
_ = yym3755
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr3746 || yy2arr3746 {
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
yym3756 := z.DecBinary()
_ = yym3756
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3757 := r.ContainerType()
if yyct3757 == codecSelferValueTypeMap1234 {
yyl3757 := r.ReadMapStart()
if yyl3757 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3757, d)
}
} else if yyct3757 == codecSelferValueTypeArray1234 {
yyl3757 := r.ReadArrayStart()
if yyl3757 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3757, 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 yys3758Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3758Slc
var yyhl3758 bool = l >= 0
for yyj3758 := 0; ; yyj3758++ {
if yyhl3758 {
if yyj3758 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3758Slc = r.DecodeBytes(yys3758Slc, true, true)
yys3758 := string(yys3758Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3758 {
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, yys3758)
} // end switch yys3758
} // end for yyj3758
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 yyj3762 int
var yyb3762 bool
var yyhl3762 bool = l >= 0
yyj3762++
if yyhl3762 {
yyb3762 = yyj3762 > l
} else {
yyb3762 = r.CheckBreak()
}
if yyb3762 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3762++
if yyhl3762 {
yyb3762 = yyj3762 > l
} else {
yyb3762 = r.CheckBreak()
}
if yyb3762 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3762++
if yyhl3762 {
yyb3762 = yyj3762 > l
} else {
yyb3762 = r.CheckBreak()
}
if yyb3762 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
for {
yyj3762++
if yyhl3762 {
yyb3762 = yyj3762 > l
} else {
yyb3762 = r.CheckBreak()
}
if yyb3762 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3762-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3766 := z.EncBinary()
_ = yym3766
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3767 := !z.EncBinary()
yy2arr3767 := z.EncBasicHandle().StructToArray
var yyq3767 [5]bool
_, _, _ = yysep3767, yyq3767, yy2arr3767
const yyr3767 bool = false
yyq3767[4] = x.Controller != nil
var yynn3767 int
if yyr3767 || yy2arr3767 {
r.EncodeArrayStart(5)
} else {
yynn3767 = 4
for _, b := range yyq3767 {
if b {
yynn3767++
}
}
r.EncodeMapStart(yynn3767)
yynn3767 = 0
}
if yyr3767 || yy2arr3767 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3769 := z.EncBinary()
_ = yym3769
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)
yym3770 := z.EncBinary()
_ = yym3770
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
if yyr3767 || yy2arr3767 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3772 := z.EncBinary()
_ = yym3772
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)
yym3773 := z.EncBinary()
_ = yym3773
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
if yyr3767 || yy2arr3767 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3775 := z.EncBinary()
_ = yym3775
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)
yym3776 := z.EncBinary()
_ = yym3776
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr3767 || yy2arr3767 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3778 := z.EncBinary()
_ = yym3778
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)
yym3779 := z.EncBinary()
_ = yym3779
if false {
} else if z.HasExtensions() && z.EncExt(x.UID) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.UID))
}
}
if yyr3767 || yy2arr3767 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3767[4] {
if x.Controller == nil {
r.EncodeNil()
} else {
yy3781 := *x.Controller
yym3782 := z.EncBinary()
_ = yym3782
if false {
} else {
r.EncodeBool(bool(yy3781))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3767[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("controller"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Controller == nil {
r.EncodeNil()
} else {
yy3783 := *x.Controller
yym3784 := z.EncBinary()
_ = yym3784
if false {
} else {
r.EncodeBool(bool(yy3783))
}
}
}
}
if yyr3767 || yy2arr3767 {
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
yym3785 := z.DecBinary()
_ = yym3785
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3786 := r.ContainerType()
if yyct3786 == codecSelferValueTypeMap1234 {
yyl3786 := r.ReadMapStart()
if yyl3786 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3786, d)
}
} else if yyct3786 == codecSelferValueTypeArray1234 {
yyl3786 := r.ReadArrayStart()
if yyl3786 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3786, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *OwnerReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3787Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3787Slc
var yyhl3787 bool = l >= 0
for yyj3787 := 0; ; yyj3787++ {
if yyhl3787 {
if yyj3787 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3787Slc = r.DecodeBytes(yys3787Slc, true, true)
yys3787 := string(yys3787Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3787 {
case "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)
}
yym3793 := z.DecBinary()
_ = yym3793
if false {
} else {
*((*bool)(x.Controller)) = r.DecodeBool()
}
}
default:
z.DecStructFieldNotFound(-1, yys3787)
} // end switch yys3787
} // end for yyj3787
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 yyj3794 int
var yyb3794 bool
var yyhl3794 bool = l >= 0
yyj3794++
if yyhl3794 {
yyb3794 = yyj3794 > l
} else {
yyb3794 = r.CheckBreak()
}
if yyb3794 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3794++
if yyhl3794 {
yyb3794 = yyj3794 > l
} else {
yyb3794 = r.CheckBreak()
}
if yyb3794 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3794++
if yyhl3794 {
yyb3794 = yyj3794 > l
} else {
yyb3794 = r.CheckBreak()
}
if yyb3794 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj3794++
if yyhl3794 {
yyb3794 = yyj3794 > l
} else {
yyb3794 = r.CheckBreak()
}
if yyb3794 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.UID = ""
} else {
x.UID = pkg1_types.UID(r.DecodeString())
}
yyj3794++
if yyhl3794 {
yyb3794 = yyj3794 > l
} else {
yyb3794 = r.CheckBreak()
}
if yyb3794 {
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)
}
yym3800 := z.DecBinary()
_ = yym3800
if false {
} else {
*((*bool)(x.Controller)) = r.DecodeBool()
}
}
for {
yyj3794++
if yyhl3794 {
yyb3794 = yyj3794 > l
} else {
yyb3794 = r.CheckBreak()
}
if yyb3794 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3794-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 {
yym3801 := z.EncBinary()
_ = yym3801
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3802 := !z.EncBinary()
yy2arr3802 := z.EncBasicHandle().StructToArray
var yyq3802 [7]bool
_, _, _ = yysep3802, yyq3802, yy2arr3802
const yyr3802 bool = false
yyq3802[0] = x.Kind != ""
yyq3802[1] = x.Namespace != ""
yyq3802[2] = x.Name != ""
yyq3802[3] = x.UID != ""
yyq3802[4] = x.APIVersion != ""
yyq3802[5] = x.ResourceVersion != ""
yyq3802[6] = x.FieldPath != ""
var yynn3802 int
if yyr3802 || yy2arr3802 {
r.EncodeArrayStart(7)
} else {
yynn3802 = 0
for _, b := range yyq3802 {
if b {
yynn3802++
}
}
r.EncodeMapStart(yynn3802)
yynn3802 = 0
}
if yyr3802 || yy2arr3802 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3802[0] {
yym3804 := z.EncBinary()
_ = yym3804
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3802[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3805 := z.EncBinary()
_ = yym3805
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3802 || yy2arr3802 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3802[1] {
yym3807 := z.EncBinary()
_ = yym3807
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3802[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("namespace"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3808 := z.EncBinary()
_ = yym3808
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
}
}
}
if yyr3802 || yy2arr3802 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3802[2] {
yym3810 := z.EncBinary()
_ = yym3810
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3802[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3811 := z.EncBinary()
_ = yym3811
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
}
if yyr3802 || yy2arr3802 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3802[3] {
yym3813 := z.EncBinary()
_ = yym3813
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 yyq3802[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("uid"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3814 := z.EncBinary()
_ = yym3814
if false {
} else if z.HasExtensions() && z.EncExt(x.UID) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.UID))
}
}
}
if yyr3802 || yy2arr3802 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3802[4] {
yym3816 := z.EncBinary()
_ = yym3816
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3802[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3817 := z.EncBinary()
_ = yym3817
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3802 || yy2arr3802 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3802[5] {
yym3819 := z.EncBinary()
_ = yym3819
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3802[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("resourceVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3820 := z.EncBinary()
_ = yym3820
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
}
}
}
if yyr3802 || yy2arr3802 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3802[6] {
yym3822 := z.EncBinary()
_ = yym3822
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3802[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fieldPath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3823 := z.EncBinary()
_ = yym3823
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
}
}
}
if yyr3802 || yy2arr3802 {
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
yym3824 := z.DecBinary()
_ = yym3824
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3825 := r.ContainerType()
if yyct3825 == codecSelferValueTypeMap1234 {
yyl3825 := r.ReadMapStart()
if yyl3825 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3825, d)
}
} else if yyct3825 == codecSelferValueTypeArray1234 {
yyl3825 := r.ReadArrayStart()
if yyl3825 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3825, 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 yys3826Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3826Slc
var yyhl3826 bool = l >= 0
for yyj3826 := 0; ; yyj3826++ {
if yyhl3826 {
if yyj3826 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3826Slc = r.DecodeBytes(yys3826Slc, true, true)
yys3826 := string(yys3826Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3826 {
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, yys3826)
} // end switch yys3826
} // end for yyj3826
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 yyj3834 int
var yyb3834 bool
var yyhl3834 bool = l >= 0
yyj3834++
if yyhl3834 {
yyb3834 = yyj3834 > l
} else {
yyb3834 = r.CheckBreak()
}
if yyb3834 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3834++
if yyhl3834 {
yyb3834 = yyj3834 > l
} else {
yyb3834 = r.CheckBreak()
}
if yyb3834 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Namespace = ""
} else {
x.Namespace = string(r.DecodeString())
}
yyj3834++
if yyhl3834 {
yyb3834 = yyj3834 > l
} else {
yyb3834 = r.CheckBreak()
}
if yyb3834 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj3834++
if yyhl3834 {
yyb3834 = yyj3834 > l
} else {
yyb3834 = r.CheckBreak()
}
if yyb3834 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.UID = ""
} else {
x.UID = pkg1_types.UID(r.DecodeString())
}
yyj3834++
if yyhl3834 {
yyb3834 = yyj3834 > l
} else {
yyb3834 = r.CheckBreak()
}
if yyb3834 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3834++
if yyhl3834 {
yyb3834 = yyj3834 > l
} else {
yyb3834 = r.CheckBreak()
}
if yyb3834 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ResourceVersion = ""
} else {
x.ResourceVersion = string(r.DecodeString())
}
yyj3834++
if yyhl3834 {
yyb3834 = yyj3834 > l
} else {
yyb3834 = r.CheckBreak()
}
if yyb3834 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FieldPath = ""
} else {
x.FieldPath = string(r.DecodeString())
}
for {
yyj3834++
if yyhl3834 {
yyb3834 = yyj3834 > l
} else {
yyb3834 = r.CheckBreak()
}
if yyb3834 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3834-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 {
yym3842 := z.EncBinary()
_ = yym3842
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3843 := !z.EncBinary()
yy2arr3843 := z.EncBasicHandle().StructToArray
var yyq3843 [1]bool
_, _, _ = yysep3843, yyq3843, yy2arr3843
const yyr3843 bool = false
var yynn3843 int
if yyr3843 || yy2arr3843 {
r.EncodeArrayStart(1)
} else {
yynn3843 = 1
for _, b := range yyq3843 {
if b {
yynn3843++
}
}
r.EncodeMapStart(yynn3843)
yynn3843 = 0
}
if yyr3843 || yy2arr3843 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3845 := z.EncBinary()
_ = yym3845
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)
yym3846 := z.EncBinary()
_ = yym3846
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr3843 || yy2arr3843 {
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
yym3847 := z.DecBinary()
_ = yym3847
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3848 := r.ContainerType()
if yyct3848 == codecSelferValueTypeMap1234 {
yyl3848 := r.ReadMapStart()
if yyl3848 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3848, d)
}
} else if yyct3848 == codecSelferValueTypeArray1234 {
yyl3848 := r.ReadArrayStart()
if yyl3848 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3848, 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 yys3849Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3849Slc
var yyhl3849 bool = l >= 0
for yyj3849 := 0; ; yyj3849++ {
if yyhl3849 {
if yyj3849 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3849Slc = r.DecodeBytes(yys3849Slc, true, true)
yys3849 := string(yys3849Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3849 {
case "Name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys3849)
} // end switch yys3849
} // end for yyj3849
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 yyj3851 int
var yyb3851 bool
var yyhl3851 bool = l >= 0
yyj3851++
if yyhl3851 {
yyb3851 = yyj3851 > l
} else {
yyb3851 = r.CheckBreak()
}
if yyb3851 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
for {
yyj3851++
if yyhl3851 {
yyb3851 = yyj3851 > l
} else {
yyb3851 = r.CheckBreak()
}
if yyb3851 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3851-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 {
yym3853 := z.EncBinary()
_ = yym3853
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3854 := !z.EncBinary()
yy2arr3854 := z.EncBasicHandle().StructToArray
var yyq3854 [3]bool
_, _, _ = yysep3854, yyq3854, yy2arr3854
const yyr3854 bool = false
yyq3854[0] = x.Kind != ""
yyq3854[1] = x.APIVersion != ""
yyq3854[2] = true
var yynn3854 int
if yyr3854 || yy2arr3854 {
r.EncodeArrayStart(3)
} 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.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3854[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3857 := z.EncBinary()
_ = yym3857
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3854 || yy2arr3854 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3854[1] {
yym3859 := z.EncBinary()
_ = yym3859
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3854[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3860 := z.EncBinary()
_ = yym3860
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3854 || yy2arr3854 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3854[2] {
yy3862 := &x.Reference
yy3862.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3854[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reference"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3863 := &x.Reference
yy3863.CodecEncodeSelf(e)
}
}
if yyr3854 || yy2arr3854 {
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
yym3864 := z.DecBinary()
_ = yym3864
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3865 := r.ContainerType()
if yyct3865 == codecSelferValueTypeMap1234 {
yyl3865 := r.ReadMapStart()
if yyl3865 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3865, d)
}
} else if yyct3865 == codecSelferValueTypeArray1234 {
yyl3865 := r.ReadArrayStart()
if yyl3865 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3865, 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 yys3866Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3866Slc
var yyhl3866 bool = l >= 0
for yyj3866 := 0; ; yyj3866++ {
if yyhl3866 {
if yyj3866 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3866Slc = r.DecodeBytes(yys3866Slc, true, true)
yys3866 := string(yys3866Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3866 {
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 {
yyv3869 := &x.Reference
yyv3869.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3866)
} // end switch yys3866
} // end for yyj3866
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 yyj3870 int
var yyb3870 bool
var yyhl3870 bool = l >= 0
yyj3870++
if yyhl3870 {
yyb3870 = yyj3870 > l
} else {
yyb3870 = r.CheckBreak()
}
if yyb3870 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3870++
if yyhl3870 {
yyb3870 = yyj3870 > l
} else {
yyb3870 = r.CheckBreak()
}
if yyb3870 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3870++
if yyhl3870 {
yyb3870 = yyj3870 > l
} else {
yyb3870 = r.CheckBreak()
}
if yyb3870 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reference = ObjectReference{}
} else {
yyv3873 := &x.Reference
yyv3873.CodecDecodeSelf(d)
}
for {
yyj3870++
if yyhl3870 {
yyb3870 = yyj3870 > l
} else {
yyb3870 = r.CheckBreak()
}
if yyb3870 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3870-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 {
yym3874 := z.EncBinary()
_ = yym3874
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3875 := !z.EncBinary()
yy2arr3875 := z.EncBasicHandle().StructToArray
var yyq3875 [2]bool
_, _, _ = yysep3875, yyq3875, yy2arr3875
const yyr3875 bool = false
yyq3875[0] = x.Component != ""
yyq3875[1] = x.Host != ""
var yynn3875 int
if yyr3875 || yy2arr3875 {
r.EncodeArrayStart(2)
} else {
yynn3875 = 0
for _, b := range yyq3875 {
if b {
yynn3875++
}
}
r.EncodeMapStart(yynn3875)
yynn3875 = 0
}
if yyr3875 || yy2arr3875 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3875[0] {
yym3877 := z.EncBinary()
_ = yym3877
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Component))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3875[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("component"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3878 := z.EncBinary()
_ = yym3878
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Component))
}
}
}
if yyr3875 || yy2arr3875 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3875[1] {
yym3880 := z.EncBinary()
_ = yym3880
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3875[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("host"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3881 := z.EncBinary()
_ = yym3881
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
}
}
}
if yyr3875 || yy2arr3875 {
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
yym3882 := z.DecBinary()
_ = yym3882
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3883 := r.ContainerType()
if yyct3883 == codecSelferValueTypeMap1234 {
yyl3883 := r.ReadMapStart()
if yyl3883 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3883, d)
}
} else if yyct3883 == codecSelferValueTypeArray1234 {
yyl3883 := r.ReadArrayStart()
if yyl3883 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3883, 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 yys3884Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3884Slc
var yyhl3884 bool = l >= 0
for yyj3884 := 0; ; yyj3884++ {
if yyhl3884 {
if yyj3884 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3884Slc = r.DecodeBytes(yys3884Slc, true, true)
yys3884 := string(yys3884Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3884 {
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, yys3884)
} // end switch yys3884
} // end for yyj3884
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 yyj3887 int
var yyb3887 bool
var yyhl3887 bool = l >= 0
yyj3887++
if yyhl3887 {
yyb3887 = yyj3887 > l
} else {
yyb3887 = r.CheckBreak()
}
if yyb3887 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Component = ""
} else {
x.Component = string(r.DecodeString())
}
yyj3887++
if yyhl3887 {
yyb3887 = yyj3887 > l
} else {
yyb3887 = r.CheckBreak()
}
if yyb3887 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Host = ""
} else {
x.Host = string(r.DecodeString())
}
for {
yyj3887++
if yyhl3887 {
yyb3887 = yyj3887 > l
} else {
yyb3887 = r.CheckBreak()
}
if yyb3887 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3887-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 {
yym3890 := z.EncBinary()
_ = yym3890
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3891 := !z.EncBinary()
yy2arr3891 := z.EncBasicHandle().StructToArray
var yyq3891 [11]bool
_, _, _ = yysep3891, yyq3891, yy2arr3891
const yyr3891 bool = false
yyq3891[0] = x.Kind != ""
yyq3891[1] = x.APIVersion != ""
yyq3891[2] = true
yyq3891[3] = true
yyq3891[4] = x.Reason != ""
yyq3891[5] = x.Message != ""
yyq3891[6] = true
yyq3891[7] = true
yyq3891[8] = true
yyq3891[9] = x.Count != 0
yyq3891[10] = x.Type != ""
var yynn3891 int
if yyr3891 || yy2arr3891 {
r.EncodeArrayStart(11)
} else {
yynn3891 = 0
for _, b := range yyq3891 {
if b {
yynn3891++
}
}
r.EncodeMapStart(yynn3891)
yynn3891 = 0
}
if yyr3891 || yy2arr3891 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3891[0] {
yym3893 := z.EncBinary()
_ = yym3893
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3891[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3894 := z.EncBinary()
_ = yym3894
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3891 || yy2arr3891 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3891[1] {
yym3896 := z.EncBinary()
_ = yym3896
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3891[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3897 := z.EncBinary()
_ = yym3897
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3891 || yy2arr3891 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3891[2] {
yy3899 := &x.ObjectMeta
yy3899.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3891[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3900 := &x.ObjectMeta
yy3900.CodecEncodeSelf(e)
}
}
if yyr3891 || yy2arr3891 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3891[3] {
yy3902 := &x.InvolvedObject
yy3902.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3891[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("involvedObject"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3903 := &x.InvolvedObject
yy3903.CodecEncodeSelf(e)
}
}
if yyr3891 || yy2arr3891 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3891[4] {
yym3905 := z.EncBinary()
_ = yym3905
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3891[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3906 := z.EncBinary()
_ = yym3906
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr3891 || yy2arr3891 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3891[5] {
yym3908 := z.EncBinary()
_ = yym3908
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3891[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3909 := z.EncBinary()
_ = yym3909
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr3891 || yy2arr3891 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3891[6] {
yy3911 := &x.Source
yy3911.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3891[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("source"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3912 := &x.Source
yy3912.CodecEncodeSelf(e)
}
}
if yyr3891 || yy2arr3891 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3891[7] {
yy3914 := &x.FirstTimestamp
yym3915 := z.EncBinary()
_ = yym3915
if false {
} else if z.HasExtensions() && z.EncExt(yy3914) {
} else if yym3915 {
z.EncBinaryMarshal(yy3914)
} else if !yym3915 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3914)
} else {
z.EncFallback(yy3914)
}
} else {
r.EncodeNil()
}
} else {
if yyq3891[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3916 := &x.FirstTimestamp
yym3917 := z.EncBinary()
_ = yym3917
if false {
} else if z.HasExtensions() && z.EncExt(yy3916) {
} else if yym3917 {
z.EncBinaryMarshal(yy3916)
} else if !yym3917 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3916)
} else {
z.EncFallback(yy3916)
}
}
}
if yyr3891 || yy2arr3891 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3891[8] {
yy3919 := &x.LastTimestamp
yym3920 := z.EncBinary()
_ = yym3920
if false {
} else if z.HasExtensions() && z.EncExt(yy3919) {
} else if yym3920 {
z.EncBinaryMarshal(yy3919)
} else if !yym3920 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3919)
} else {
z.EncFallback(yy3919)
}
} else {
r.EncodeNil()
}
} else {
if yyq3891[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3921 := &x.LastTimestamp
yym3922 := z.EncBinary()
_ = yym3922
if false {
} else if z.HasExtensions() && z.EncExt(yy3921) {
} else if yym3922 {
z.EncBinaryMarshal(yy3921)
} else if !yym3922 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3921)
} else {
z.EncFallback(yy3921)
}
}
}
if yyr3891 || yy2arr3891 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3891[9] {
yym3924 := z.EncBinary()
_ = yym3924
if false {
} else {
r.EncodeInt(int64(x.Count))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq3891[9] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("count"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3925 := z.EncBinary()
_ = yym3925
if false {
} else {
r.EncodeInt(int64(x.Count))
}
}
}
if yyr3891 || yy2arr3891 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3891[10] {
yym3927 := z.EncBinary()
_ = yym3927
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3891[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3928 := z.EncBinary()
_ = yym3928
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
}
}
}
if yyr3891 || yy2arr3891 {
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
yym3929 := z.DecBinary()
_ = yym3929
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3930 := r.ContainerType()
if yyct3930 == codecSelferValueTypeMap1234 {
yyl3930 := r.ReadMapStart()
if yyl3930 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3930, d)
}
} else if yyct3930 == codecSelferValueTypeArray1234 {
yyl3930 := r.ReadArrayStart()
if yyl3930 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3930, 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 yys3931Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3931Slc
var yyhl3931 bool = l >= 0
for yyj3931 := 0; ; yyj3931++ {
if yyhl3931 {
if yyj3931 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3931Slc = r.DecodeBytes(yys3931Slc, true, true)
yys3931 := string(yys3931Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3931 {
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 {
yyv3934 := &x.ObjectMeta
yyv3934.CodecDecodeSelf(d)
}
case "involvedObject":
if r.TryDecodeAsNil() {
x.InvolvedObject = ObjectReference{}
} else {
yyv3935 := &x.InvolvedObject
yyv3935.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 {
yyv3938 := &x.Source
yyv3938.CodecDecodeSelf(d)
}
case "firstTimestamp":
if r.TryDecodeAsNil() {
x.FirstTimestamp = pkg2_unversioned.Time{}
} else {
yyv3939 := &x.FirstTimestamp
yym3940 := z.DecBinary()
_ = yym3940
if false {
} else if z.HasExtensions() && z.DecExt(yyv3939) {
} else if yym3940 {
z.DecBinaryUnmarshal(yyv3939)
} else if !yym3940 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3939)
} else {
z.DecFallback(yyv3939, false)
}
}
case "lastTimestamp":
if r.TryDecodeAsNil() {
x.LastTimestamp = pkg2_unversioned.Time{}
} else {
yyv3941 := &x.LastTimestamp
yym3942 := z.DecBinary()
_ = yym3942
if false {
} else if z.HasExtensions() && z.DecExt(yyv3941) {
} else if yym3942 {
z.DecBinaryUnmarshal(yyv3941)
} else if !yym3942 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3941)
} else {
z.DecFallback(yyv3941, 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, yys3931)
} // end switch yys3931
} // end for yyj3931
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 yyj3945 int
var yyb3945 bool
var yyhl3945 bool = l >= 0
yyj3945++
if yyhl3945 {
yyb3945 = yyj3945 > l
} else {
yyb3945 = r.CheckBreak()
}
if yyb3945 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3945++
if yyhl3945 {
yyb3945 = yyj3945 > l
} else {
yyb3945 = r.CheckBreak()
}
if yyb3945 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3945++
if yyhl3945 {
yyb3945 = yyj3945 > l
} else {
yyb3945 = r.CheckBreak()
}
if yyb3945 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3948 := &x.ObjectMeta
yyv3948.CodecDecodeSelf(d)
}
yyj3945++
if yyhl3945 {
yyb3945 = yyj3945 > l
} else {
yyb3945 = r.CheckBreak()
}
if yyb3945 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.InvolvedObject = ObjectReference{}
} else {
yyv3949 := &x.InvolvedObject
yyv3949.CodecDecodeSelf(d)
}
yyj3945++
if yyhl3945 {
yyb3945 = yyj3945 > l
} else {
yyb3945 = r.CheckBreak()
}
if yyb3945 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj3945++
if yyhl3945 {
yyb3945 = yyj3945 > l
} else {
yyb3945 = r.CheckBreak()
}
if yyb3945 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
yyj3945++
if yyhl3945 {
yyb3945 = yyj3945 > l
} else {
yyb3945 = r.CheckBreak()
}
if yyb3945 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Source = EventSource{}
} else {
yyv3952 := &x.Source
yyv3952.CodecDecodeSelf(d)
}
yyj3945++
if yyhl3945 {
yyb3945 = yyj3945 > l
} else {
yyb3945 = r.CheckBreak()
}
if yyb3945 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FirstTimestamp = pkg2_unversioned.Time{}
} else {
yyv3953 := &x.FirstTimestamp
yym3954 := z.DecBinary()
_ = yym3954
if false {
} else if z.HasExtensions() && z.DecExt(yyv3953) {
} else if yym3954 {
z.DecBinaryUnmarshal(yyv3953)
} else if !yym3954 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3953)
} else {
z.DecFallback(yyv3953, false)
}
}
yyj3945++
if yyhl3945 {
yyb3945 = yyj3945 > l
} else {
yyb3945 = r.CheckBreak()
}
if yyb3945 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastTimestamp = pkg2_unversioned.Time{}
} else {
yyv3955 := &x.LastTimestamp
yym3956 := z.DecBinary()
_ = yym3956
if false {
} else if z.HasExtensions() && z.DecExt(yyv3955) {
} else if yym3956 {
z.DecBinaryUnmarshal(yyv3955)
} else if !yym3956 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3955)
} else {
z.DecFallback(yyv3955, false)
}
}
yyj3945++
if yyhl3945 {
yyb3945 = yyj3945 > l
} else {
yyb3945 = r.CheckBreak()
}
if yyb3945 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Count = 0
} else {
x.Count = int32(r.DecodeInt(32))
}
yyj3945++
if yyhl3945 {
yyb3945 = yyj3945 > l
} else {
yyb3945 = r.CheckBreak()
}
if yyb3945 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = string(r.DecodeString())
}
for {
yyj3945++
if yyhl3945 {
yyb3945 = yyj3945 > l
} else {
yyb3945 = r.CheckBreak()
}
if yyb3945 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3945-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 {
yym3959 := z.EncBinary()
_ = yym3959
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3960 := !z.EncBinary()
yy2arr3960 := z.EncBasicHandle().StructToArray
var yyq3960 [4]bool
_, _, _ = yysep3960, yyq3960, yy2arr3960
const yyr3960 bool = false
yyq3960[0] = x.Kind != ""
yyq3960[1] = x.APIVersion != ""
yyq3960[2] = true
var yynn3960 int
if yyr3960 || yy2arr3960 {
r.EncodeArrayStart(4)
} else {
yynn3960 = 1
for _, b := range yyq3960 {
if b {
yynn3960++
}
}
r.EncodeMapStart(yynn3960)
yynn3960 = 0
}
if yyr3960 || yy2arr3960 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3960[0] {
yym3962 := z.EncBinary()
_ = yym3962
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3960[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3963 := z.EncBinary()
_ = yym3963
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3960 || yy2arr3960 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3960[1] {
yym3965 := z.EncBinary()
_ = yym3965
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3960[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3966 := z.EncBinary()
_ = yym3966
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3960 || yy2arr3960 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3960[2] {
yy3968 := &x.ListMeta
yym3969 := z.EncBinary()
_ = yym3969
if false {
} else if z.HasExtensions() && z.EncExt(yy3968) {
} else {
z.EncFallback(yy3968)
}
} else {
r.EncodeNil()
}
} else {
if yyq3960[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3970 := &x.ListMeta
yym3971 := z.EncBinary()
_ = yym3971
if false {
} else if z.HasExtensions() && z.EncExt(yy3970) {
} else {
z.EncFallback(yy3970)
}
}
}
if yyr3960 || yy2arr3960 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3973 := z.EncBinary()
_ = yym3973
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 {
yym3974 := z.EncBinary()
_ = yym3974
if false {
} else {
h.encSliceEvent(([]Event)(x.Items), e)
}
}
}
if yyr3960 || yy2arr3960 {
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
yym3975 := z.DecBinary()
_ = yym3975
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3976 := r.ContainerType()
if yyct3976 == codecSelferValueTypeMap1234 {
yyl3976 := r.ReadMapStart()
if yyl3976 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3976, d)
}
} else if yyct3976 == codecSelferValueTypeArray1234 {
yyl3976 := r.ReadArrayStart()
if yyl3976 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3976, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *EventList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3977Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3977Slc
var yyhl3977 bool = l >= 0
for yyj3977 := 0; ; yyj3977++ {
if yyhl3977 {
if yyj3977 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3977Slc = r.DecodeBytes(yys3977Slc, true, true)
yys3977 := string(yys3977Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3977 {
case "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 {
yyv3980 := &x.ListMeta
yym3981 := z.DecBinary()
_ = yym3981
if false {
} else if z.HasExtensions() && z.DecExt(yyv3980) {
} else {
z.DecFallback(yyv3980, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3982 := &x.Items
yym3983 := z.DecBinary()
_ = yym3983
if false {
} else {
h.decSliceEvent((*[]Event)(yyv3982), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3977)
} // end switch yys3977
} // end for yyj3977
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 yyj3984 int
var yyb3984 bool
var yyhl3984 bool = l >= 0
yyj3984++
if yyhl3984 {
yyb3984 = yyj3984 > l
} else {
yyb3984 = r.CheckBreak()
}
if yyb3984 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3984++
if yyhl3984 {
yyb3984 = yyj3984 > l
} else {
yyb3984 = r.CheckBreak()
}
if yyb3984 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3984++
if yyhl3984 {
yyb3984 = yyj3984 > l
} else {
yyb3984 = r.CheckBreak()
}
if yyb3984 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3987 := &x.ListMeta
yym3988 := z.DecBinary()
_ = yym3988
if false {
} else if z.HasExtensions() && z.DecExt(yyv3987) {
} else {
z.DecFallback(yyv3987, false)
}
}
yyj3984++
if yyhl3984 {
yyb3984 = yyj3984 > l
} else {
yyb3984 = r.CheckBreak()
}
if yyb3984 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3989 := &x.Items
yym3990 := z.DecBinary()
_ = yym3990
if false {
} else {
h.decSliceEvent((*[]Event)(yyv3989), d)
}
}
for {
yyj3984++
if yyhl3984 {
yyb3984 = yyj3984 > l
} else {
yyb3984 = r.CheckBreak()
}
if yyb3984 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3984-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 {
yym3991 := z.EncBinary()
_ = yym3991
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3992 := !z.EncBinary()
yy2arr3992 := z.EncBasicHandle().StructToArray
var yyq3992 [4]bool
_, _, _ = yysep3992, yyq3992, yy2arr3992
const yyr3992 bool = false
yyq3992[0] = x.Kind != ""
yyq3992[1] = x.APIVersion != ""
yyq3992[2] = true
var yynn3992 int
if yyr3992 || yy2arr3992 {
r.EncodeArrayStart(4)
} else {
yynn3992 = 1
for _, b := range yyq3992 {
if b {
yynn3992++
}
}
r.EncodeMapStart(yynn3992)
yynn3992 = 0
}
if yyr3992 || yy2arr3992 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3992[0] {
yym3994 := z.EncBinary()
_ = yym3994
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3992[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3995 := z.EncBinary()
_ = yym3995
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3992 || yy2arr3992 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3992[1] {
yym3997 := z.EncBinary()
_ = yym3997
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3992[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3998 := z.EncBinary()
_ = yym3998
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3992 || yy2arr3992 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3992[2] {
yy4000 := &x.ListMeta
yym4001 := z.EncBinary()
_ = yym4001
if false {
} else if z.HasExtensions() && z.EncExt(yy4000) {
} else {
z.EncFallback(yy4000)
}
} else {
r.EncodeNil()
}
} else {
if yyq3992[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4002 := &x.ListMeta
yym4003 := z.EncBinary()
_ = yym4003
if false {
} else if z.HasExtensions() && z.EncExt(yy4002) {
} else {
z.EncFallback(yy4002)
}
}
}
if yyr3992 || yy2arr3992 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym4005 := z.EncBinary()
_ = yym4005
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 {
yym4006 := z.EncBinary()
_ = yym4006
if false {
} else {
h.encSliceruntime_Object(([]pkg7_runtime.Object)(x.Items), e)
}
}
}
if yyr3992 || yy2arr3992 {
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
yym4007 := z.DecBinary()
_ = yym4007
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4008 := r.ContainerType()
if yyct4008 == codecSelferValueTypeMap1234 {
yyl4008 := r.ReadMapStart()
if yyl4008 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4008, d)
}
} else if yyct4008 == codecSelferValueTypeArray1234 {
yyl4008 := r.ReadArrayStart()
if yyl4008 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4008, 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 yys4009Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4009Slc
var yyhl4009 bool = l >= 0
for yyj4009 := 0; ; yyj4009++ {
if yyhl4009 {
if yyj4009 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4009Slc = r.DecodeBytes(yys4009Slc, true, true)
yys4009 := string(yys4009Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4009 {
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 {
yyv4012 := &x.ListMeta
yym4013 := z.DecBinary()
_ = yym4013
if false {
} else if z.HasExtensions() && z.DecExt(yyv4012) {
} else {
z.DecFallback(yyv4012, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4014 := &x.Items
yym4015 := z.DecBinary()
_ = yym4015
if false {
} else {
h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv4014), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4009)
} // end switch yys4009
} // end for yyj4009
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 yyj4016 int
var yyb4016 bool
var yyhl4016 bool = l >= 0
yyj4016++
if yyhl4016 {
yyb4016 = yyj4016 > l
} else {
yyb4016 = r.CheckBreak()
}
if yyb4016 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4016++
if yyhl4016 {
yyb4016 = yyj4016 > l
} else {
yyb4016 = r.CheckBreak()
}
if yyb4016 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4016++
if yyhl4016 {
yyb4016 = yyj4016 > l
} else {
yyb4016 = r.CheckBreak()
}
if yyb4016 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv4019 := &x.ListMeta
yym4020 := z.DecBinary()
_ = yym4020
if false {
} else if z.HasExtensions() && z.DecExt(yyv4019) {
} else {
z.DecFallback(yyv4019, false)
}
}
yyj4016++
if yyhl4016 {
yyb4016 = yyj4016 > l
} else {
yyb4016 = r.CheckBreak()
}
if yyb4016 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4021 := &x.Items
yym4022 := z.DecBinary()
_ = yym4022
if false {
} else {
h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv4021), d)
}
}
for {
yyj4016++
if yyhl4016 {
yyb4016 = yyj4016 > l
} else {
yyb4016 = r.CheckBreak()
}
if yyb4016 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4016-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym4023 := z.EncBinary()
_ = yym4023
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
yym4024 := z.DecBinary()
_ = yym4024
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 {
yym4025 := z.EncBinary()
_ = yym4025
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4026 := !z.EncBinary()
yy2arr4026 := z.EncBasicHandle().StructToArray
var yyq4026 [6]bool
_, _, _ = yysep4026, yyq4026, yy2arr4026
const yyr4026 bool = false
yyq4026[0] = x.Type != ""
yyq4026[1] = len(x.Max) != 0
yyq4026[2] = len(x.Min) != 0
yyq4026[3] = len(x.Default) != 0
yyq4026[4] = len(x.DefaultRequest) != 0
yyq4026[5] = len(x.MaxLimitRequestRatio) != 0
var yynn4026 int
if yyr4026 || yy2arr4026 {
r.EncodeArrayStart(6)
} else {
yynn4026 = 0
for _, b := range yyq4026 {
if b {
yynn4026++
}
}
r.EncodeMapStart(yynn4026)
yynn4026 = 0
}
if yyr4026 || yy2arr4026 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4026[0] {
x.Type.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4026[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Type.CodecEncodeSelf(e)
}
}
if yyr4026 || yy2arr4026 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4026[1] {
if x.Max == nil {
r.EncodeNil()
} else {
x.Max.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4026[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 yyr4026 || yy2arr4026 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4026[2] {
if x.Min == nil {
r.EncodeNil()
} else {
x.Min.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4026[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 yyr4026 || yy2arr4026 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4026[3] {
if x.Default == nil {
r.EncodeNil()
} else {
x.Default.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4026[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 yyr4026 || yy2arr4026 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4026[4] {
if x.DefaultRequest == nil {
r.EncodeNil()
} else {
x.DefaultRequest.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4026[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 yyr4026 || yy2arr4026 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4026[5] {
if x.MaxLimitRequestRatio == nil {
r.EncodeNil()
} else {
x.MaxLimitRequestRatio.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4026[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 yyr4026 || yy2arr4026 {
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
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 *LimitRangeItem) 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 "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = LimitType(r.DecodeString())
}
case "max":
if r.TryDecodeAsNil() {
x.Max = nil
} else {
yyv4037 := &x.Max
yyv4037.CodecDecodeSelf(d)
}
case "min":
if r.TryDecodeAsNil() {
x.Min = nil
} else {
yyv4038 := &x.Min
yyv4038.CodecDecodeSelf(d)
}
case "default":
if r.TryDecodeAsNil() {
x.Default = nil
} else {
yyv4039 := &x.Default
yyv4039.CodecDecodeSelf(d)
}
case "defaultRequest":
if r.TryDecodeAsNil() {
x.DefaultRequest = nil
} else {
yyv4040 := &x.DefaultRequest
yyv4040.CodecDecodeSelf(d)
}
case "maxLimitRequestRatio":
if r.TryDecodeAsNil() {
x.MaxLimitRequestRatio = nil
} else {
yyv4041 := &x.MaxLimitRequestRatio
yyv4041.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys4035)
} // end switch yys4035
} // end for yyj4035
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 yyj4042 int
var yyb4042 bool
var yyhl4042 bool = l >= 0
yyj4042++
if yyhl4042 {
yyb4042 = yyj4042 > l
} else {
yyb4042 = r.CheckBreak()
}
if yyb4042 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = LimitType(r.DecodeString())
}
yyj4042++
if yyhl4042 {
yyb4042 = yyj4042 > l
} else {
yyb4042 = r.CheckBreak()
}
if yyb4042 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Max = nil
} else {
yyv4044 := &x.Max
yyv4044.CodecDecodeSelf(d)
}
yyj4042++
if yyhl4042 {
yyb4042 = yyj4042 > l
} else {
yyb4042 = r.CheckBreak()
}
if yyb4042 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Min = nil
} else {
yyv4045 := &x.Min
yyv4045.CodecDecodeSelf(d)
}
yyj4042++
if yyhl4042 {
yyb4042 = yyj4042 > l
} else {
yyb4042 = r.CheckBreak()
}
if yyb4042 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Default = nil
} else {
yyv4046 := &x.Default
yyv4046.CodecDecodeSelf(d)
}
yyj4042++
if yyhl4042 {
yyb4042 = yyj4042 > l
} else {
yyb4042 = r.CheckBreak()
}
if yyb4042 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DefaultRequest = nil
} else {
yyv4047 := &x.DefaultRequest
yyv4047.CodecDecodeSelf(d)
}
yyj4042++
if yyhl4042 {
yyb4042 = yyj4042 > l
} else {
yyb4042 = r.CheckBreak()
}
if yyb4042 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.MaxLimitRequestRatio = nil
} else {
yyv4048 := &x.MaxLimitRequestRatio
yyv4048.CodecDecodeSelf(d)
}
for {
yyj4042++
if yyhl4042 {
yyb4042 = yyj4042 > l
} else {
yyb4042 = r.CheckBreak()
}
if yyb4042 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4042-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 {
yym4049 := z.EncBinary()
_ = yym4049
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4050 := !z.EncBinary()
yy2arr4050 := z.EncBasicHandle().StructToArray
var yyq4050 [1]bool
_, _, _ = yysep4050, yyq4050, yy2arr4050
const yyr4050 bool = false
var yynn4050 int
if yyr4050 || yy2arr4050 {
r.EncodeArrayStart(1)
} else {
yynn4050 = 1
for _, b := range yyq4050 {
if b {
yynn4050++
}
}
r.EncodeMapStart(yynn4050)
yynn4050 = 0
}
if yyr4050 || yy2arr4050 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Limits == nil {
r.EncodeNil()
} else {
yym4052 := z.EncBinary()
_ = yym4052
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 {
yym4053 := z.EncBinary()
_ = yym4053
if false {
} else {
h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e)
}
}
}
if yyr4050 || yy2arr4050 {
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
yym4054 := z.DecBinary()
_ = yym4054
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4055 := r.ContainerType()
if yyct4055 == codecSelferValueTypeMap1234 {
yyl4055 := r.ReadMapStart()
if yyl4055 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4055, d)
}
} else if yyct4055 == codecSelferValueTypeArray1234 {
yyl4055 := r.ReadArrayStart()
if yyl4055 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4055, 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 yys4056Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4056Slc
var yyhl4056 bool = l >= 0
for yyj4056 := 0; ; yyj4056++ {
if yyhl4056 {
if yyj4056 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4056Slc = r.DecodeBytes(yys4056Slc, true, true)
yys4056 := string(yys4056Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4056 {
case "limits":
if r.TryDecodeAsNil() {
x.Limits = nil
} else {
yyv4057 := &x.Limits
yym4058 := z.DecBinary()
_ = yym4058
if false {
} else {
h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv4057), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4056)
} // end switch yys4056
} // end for yyj4056
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 yyj4059 int
var yyb4059 bool
var yyhl4059 bool = l >= 0
yyj4059++
if yyhl4059 {
yyb4059 = yyj4059 > l
} else {
yyb4059 = r.CheckBreak()
}
if yyb4059 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Limits = nil
} else {
yyv4060 := &x.Limits
yym4061 := z.DecBinary()
_ = yym4061
if false {
} else {
h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv4060), d)
}
}
for {
yyj4059++
if yyhl4059 {
yyb4059 = yyj4059 > l
} else {
yyb4059 = r.CheckBreak()
}
if yyb4059 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4059-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 {
yym4062 := z.EncBinary()
_ = yym4062
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4063 := !z.EncBinary()
yy2arr4063 := z.EncBasicHandle().StructToArray
var yyq4063 [4]bool
_, _, _ = yysep4063, yyq4063, yy2arr4063
const yyr4063 bool = false
yyq4063[0] = x.Kind != ""
yyq4063[1] = x.APIVersion != ""
yyq4063[2] = true
yyq4063[3] = true
var yynn4063 int
if yyr4063 || yy2arr4063 {
r.EncodeArrayStart(4)
} else {
yynn4063 = 0
for _, b := range yyq4063 {
if b {
yynn4063++
}
}
r.EncodeMapStart(yynn4063)
yynn4063 = 0
}
if yyr4063 || yy2arr4063 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4063[0] {
yym4065 := z.EncBinary()
_ = yym4065
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4063[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4066 := z.EncBinary()
_ = yym4066
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4063 || yy2arr4063 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4063[1] {
yym4068 := z.EncBinary()
_ = yym4068
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4063[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4069 := z.EncBinary()
_ = yym4069
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4063 || yy2arr4063 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4063[2] {
yy4071 := &x.ObjectMeta
yy4071.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4063[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4072 := &x.ObjectMeta
yy4072.CodecEncodeSelf(e)
}
}
if yyr4063 || yy2arr4063 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4063[3] {
yy4074 := &x.Spec
yy4074.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4063[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4075 := &x.Spec
yy4075.CodecEncodeSelf(e)
}
}
if yyr4063 || yy2arr4063 {
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
yym4076 := z.DecBinary()
_ = yym4076
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4077 := r.ContainerType()
if yyct4077 == codecSelferValueTypeMap1234 {
yyl4077 := r.ReadMapStart()
if yyl4077 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4077, d)
}
} else if yyct4077 == codecSelferValueTypeArray1234 {
yyl4077 := r.ReadArrayStart()
if yyl4077 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4077, 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 yys4078Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4078Slc
var yyhl4078 bool = l >= 0
for yyj4078 := 0; ; yyj4078++ {
if yyhl4078 {
if yyj4078 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4078Slc = r.DecodeBytes(yys4078Slc, true, true)
yys4078 := string(yys4078Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4078 {
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 {
yyv4081 := &x.ObjectMeta
yyv4081.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = LimitRangeSpec{}
} else {
yyv4082 := &x.Spec
yyv4082.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys4078)
} // end switch yys4078
} // end for yyj4078
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 yyj4083 int
var yyb4083 bool
var yyhl4083 bool = l >= 0
yyj4083++
if yyhl4083 {
yyb4083 = yyj4083 > l
} else {
yyb4083 = r.CheckBreak()
}
if yyb4083 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4083++
if yyhl4083 {
yyb4083 = yyj4083 > l
} else {
yyb4083 = r.CheckBreak()
}
if yyb4083 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4083++
if yyhl4083 {
yyb4083 = yyj4083 > l
} else {
yyb4083 = r.CheckBreak()
}
if yyb4083 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv4086 := &x.ObjectMeta
yyv4086.CodecDecodeSelf(d)
}
yyj4083++
if yyhl4083 {
yyb4083 = yyj4083 > l
} else {
yyb4083 = r.CheckBreak()
}
if yyb4083 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = LimitRangeSpec{}
} else {
yyv4087 := &x.Spec
yyv4087.CodecDecodeSelf(d)
}
for {
yyj4083++
if yyhl4083 {
yyb4083 = yyj4083 > l
} else {
yyb4083 = r.CheckBreak()
}
if yyb4083 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4083-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 {
yym4088 := z.EncBinary()
_ = yym4088
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4089 := !z.EncBinary()
yy2arr4089 := z.EncBasicHandle().StructToArray
var yyq4089 [4]bool
_, _, _ = yysep4089, yyq4089, yy2arr4089
const yyr4089 bool = false
yyq4089[0] = x.Kind != ""
yyq4089[1] = x.APIVersion != ""
yyq4089[2] = true
var yynn4089 int
if yyr4089 || yy2arr4089 {
r.EncodeArrayStart(4)
} else {
yynn4089 = 1
for _, b := range yyq4089 {
if b {
yynn4089++
}
}
r.EncodeMapStart(yynn4089)
yynn4089 = 0
}
if yyr4089 || yy2arr4089 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4089[0] {
yym4091 := z.EncBinary()
_ = yym4091
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4089[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4092 := z.EncBinary()
_ = yym4092
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4089 || yy2arr4089 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4089[1] {
yym4094 := z.EncBinary()
_ = yym4094
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4089[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4095 := z.EncBinary()
_ = yym4095
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4089 || yy2arr4089 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4089[2] {
yy4097 := &x.ListMeta
yym4098 := z.EncBinary()
_ = yym4098
if false {
} else if z.HasExtensions() && z.EncExt(yy4097) {
} else {
z.EncFallback(yy4097)
}
} else {
r.EncodeNil()
}
} else {
if yyq4089[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4099 := &x.ListMeta
yym4100 := z.EncBinary()
_ = yym4100
if false {
} else if z.HasExtensions() && z.EncExt(yy4099) {
} else {
z.EncFallback(yy4099)
}
}
}
if yyr4089 || yy2arr4089 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym4102 := z.EncBinary()
_ = yym4102
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 {
yym4103 := z.EncBinary()
_ = yym4103
if false {
} else {
h.encSliceLimitRange(([]LimitRange)(x.Items), e)
}
}
}
if yyr4089 || yy2arr4089 {
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
yym4104 := z.DecBinary()
_ = yym4104
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4105 := r.ContainerType()
if yyct4105 == codecSelferValueTypeMap1234 {
yyl4105 := r.ReadMapStart()
if yyl4105 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4105, d)
}
} else if yyct4105 == codecSelferValueTypeArray1234 {
yyl4105 := r.ReadArrayStart()
if yyl4105 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4105, 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 yys4106Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4106Slc
var yyhl4106 bool = l >= 0
for yyj4106 := 0; ; yyj4106++ {
if yyhl4106 {
if yyj4106 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4106Slc = r.DecodeBytes(yys4106Slc, true, true)
yys4106 := string(yys4106Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4106 {
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 {
yyv4109 := &x.ListMeta
yym4110 := z.DecBinary()
_ = yym4110
if false {
} else if z.HasExtensions() && z.DecExt(yyv4109) {
} else {
z.DecFallback(yyv4109, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4111 := &x.Items
yym4112 := z.DecBinary()
_ = yym4112
if false {
} else {
h.decSliceLimitRange((*[]LimitRange)(yyv4111), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4106)
} // end switch yys4106
} // end for yyj4106
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 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.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
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.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
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.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv4116 := &x.ListMeta
yym4117 := z.DecBinary()
_ = yym4117
if false {
} else if z.HasExtensions() && z.DecExt(yyv4116) {
} else {
z.DecFallback(yyv4116, false)
}
}
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.Items = nil
} else {
yyv4118 := &x.Items
yym4119 := z.DecBinary()
_ = yym4119
if false {
} else {
h.decSliceLimitRange((*[]LimitRange)(yyv4118), 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 ResourceQuotaScope) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym4120 := z.EncBinary()
_ = yym4120
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
yym4121 := z.DecBinary()
_ = yym4121
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 {
yym4122 := z.EncBinary()
_ = yym4122
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4123 := !z.EncBinary()
yy2arr4123 := z.EncBasicHandle().StructToArray
var yyq4123 [2]bool
_, _, _ = yysep4123, yyq4123, yy2arr4123
const yyr4123 bool = false
yyq4123[0] = len(x.Hard) != 0
yyq4123[1] = len(x.Scopes) != 0
var yynn4123 int
if yyr4123 || yy2arr4123 {
r.EncodeArrayStart(2)
} else {
yynn4123 = 0
for _, b := range yyq4123 {
if b {
yynn4123++
}
}
r.EncodeMapStart(yynn4123)
yynn4123 = 0
}
if yyr4123 || yy2arr4123 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4123[0] {
if x.Hard == nil {
r.EncodeNil()
} else {
x.Hard.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4123[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 yyr4123 || yy2arr4123 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4123[1] {
if x.Scopes == nil {
r.EncodeNil()
} else {
yym4126 := z.EncBinary()
_ = yym4126
if false {
} else {
h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4123[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("scopes"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Scopes == nil {
r.EncodeNil()
} else {
yym4127 := z.EncBinary()
_ = yym4127
if false {
} else {
h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e)
}
}
}
}
if yyr4123 || yy2arr4123 {
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
yym4128 := z.DecBinary()
_ = yym4128
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4129 := r.ContainerType()
if yyct4129 == codecSelferValueTypeMap1234 {
yyl4129 := r.ReadMapStart()
if yyl4129 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4129, d)
}
} else if yyct4129 == codecSelferValueTypeArray1234 {
yyl4129 := r.ReadArrayStart()
if yyl4129 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4129, 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 yys4130Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4130Slc
var yyhl4130 bool = l >= 0
for yyj4130 := 0; ; yyj4130++ {
if yyhl4130 {
if yyj4130 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4130Slc = r.DecodeBytes(yys4130Slc, true, true)
yys4130 := string(yys4130Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4130 {
case "hard":
if r.TryDecodeAsNil() {
x.Hard = nil
} else {
yyv4131 := &x.Hard
yyv4131.CodecDecodeSelf(d)
}
case "scopes":
if r.TryDecodeAsNil() {
x.Scopes = nil
} else {
yyv4132 := &x.Scopes
yym4133 := z.DecBinary()
_ = yym4133
if false {
} else {
h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4132), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4130)
} // end switch yys4130
} // end for yyj4130
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 yyj4134 int
var yyb4134 bool
var yyhl4134 bool = l >= 0
yyj4134++
if yyhl4134 {
yyb4134 = yyj4134 > l
} else {
yyb4134 = r.CheckBreak()
}
if yyb4134 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Hard = nil
} else {
yyv4135 := &x.Hard
yyv4135.CodecDecodeSelf(d)
}
yyj4134++
if yyhl4134 {
yyb4134 = yyj4134 > l
} else {
yyb4134 = r.CheckBreak()
}
if yyb4134 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Scopes = nil
} else {
yyv4136 := &x.Scopes
yym4137 := z.DecBinary()
_ = yym4137
if false {
} else {
h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4136), d)
}
}
for {
yyj4134++
if yyhl4134 {
yyb4134 = yyj4134 > l
} else {
yyb4134 = r.CheckBreak()
}
if yyb4134 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4134-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 {
yym4138 := z.EncBinary()
_ = yym4138
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4139 := !z.EncBinary()
yy2arr4139 := z.EncBasicHandle().StructToArray
var yyq4139 [2]bool
_, _, _ = yysep4139, yyq4139, yy2arr4139
const yyr4139 bool = false
yyq4139[0] = len(x.Hard) != 0
yyq4139[1] = len(x.Used) != 0
var yynn4139 int
if yyr4139 || yy2arr4139 {
r.EncodeArrayStart(2)
} else {
yynn4139 = 0
for _, b := range yyq4139 {
if b {
yynn4139++
}
}
r.EncodeMapStart(yynn4139)
yynn4139 = 0
}
if yyr4139 || yy2arr4139 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4139[0] {
if x.Hard == nil {
r.EncodeNil()
} else {
x.Hard.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4139[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 yyr4139 || yy2arr4139 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4139[1] {
if x.Used == nil {
r.EncodeNil()
} else {
x.Used.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4139[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 yyr4139 || yy2arr4139 {
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
yym4142 := z.DecBinary()
_ = yym4142
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4143 := r.ContainerType()
if yyct4143 == codecSelferValueTypeMap1234 {
yyl4143 := r.ReadMapStart()
if yyl4143 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4143, d)
}
} else if yyct4143 == codecSelferValueTypeArray1234 {
yyl4143 := r.ReadArrayStart()
if yyl4143 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4143, 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 yys4144Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4144Slc
var yyhl4144 bool = l >= 0
for yyj4144 := 0; ; yyj4144++ {
if yyhl4144 {
if yyj4144 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4144Slc = r.DecodeBytes(yys4144Slc, true, true)
yys4144 := string(yys4144Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4144 {
case "hard":
if r.TryDecodeAsNil() {
x.Hard = nil
} else {
yyv4145 := &x.Hard
yyv4145.CodecDecodeSelf(d)
}
case "used":
if r.TryDecodeAsNil() {
x.Used = nil
} else {
yyv4146 := &x.Used
yyv4146.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys4144)
} // end switch yys4144
} // end for yyj4144
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 yyj4147 int
var yyb4147 bool
var yyhl4147 bool = l >= 0
yyj4147++
if yyhl4147 {
yyb4147 = yyj4147 > l
} else {
yyb4147 = r.CheckBreak()
}
if yyb4147 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Hard = nil
} else {
yyv4148 := &x.Hard
yyv4148.CodecDecodeSelf(d)
}
yyj4147++
if yyhl4147 {
yyb4147 = yyj4147 > l
} else {
yyb4147 = r.CheckBreak()
}
if yyb4147 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Used = nil
} else {
yyv4149 := &x.Used
yyv4149.CodecDecodeSelf(d)
}
for {
yyj4147++
if yyhl4147 {
yyb4147 = yyj4147 > l
} else {
yyb4147 = r.CheckBreak()
}
if yyb4147 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4147-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 {
yym4150 := z.EncBinary()
_ = yym4150
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4151 := !z.EncBinary()
yy2arr4151 := z.EncBasicHandle().StructToArray
var yyq4151 [5]bool
_, _, _ = yysep4151, yyq4151, yy2arr4151
const yyr4151 bool = false
yyq4151[0] = x.Kind != ""
yyq4151[1] = x.APIVersion != ""
yyq4151[2] = true
yyq4151[3] = true
yyq4151[4] = true
var yynn4151 int
if yyr4151 || yy2arr4151 {
r.EncodeArrayStart(5)
} else {
yynn4151 = 0
for _, b := range yyq4151 {
if b {
yynn4151++
}
}
r.EncodeMapStart(yynn4151)
yynn4151 = 0
}
if yyr4151 || yy2arr4151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4151[0] {
yym4153 := z.EncBinary()
_ = yym4153
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4151[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4154 := z.EncBinary()
_ = yym4154
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4151 || yy2arr4151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4151[1] {
yym4156 := z.EncBinary()
_ = yym4156
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4151[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4157 := z.EncBinary()
_ = yym4157
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4151 || yy2arr4151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4151[2] {
yy4159 := &x.ObjectMeta
yy4159.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4151[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4160 := &x.ObjectMeta
yy4160.CodecEncodeSelf(e)
}
}
if yyr4151 || yy2arr4151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4151[3] {
yy4162 := &x.Spec
yy4162.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4151[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4163 := &x.Spec
yy4163.CodecEncodeSelf(e)
}
}
if yyr4151 || yy2arr4151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4151[4] {
yy4165 := &x.Status
yy4165.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4151[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4166 := &x.Status
yy4166.CodecEncodeSelf(e)
}
}
if yyr4151 || yy2arr4151 {
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
yym4167 := z.DecBinary()
_ = yym4167
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4168 := r.ContainerType()
if yyct4168 == codecSelferValueTypeMap1234 {
yyl4168 := r.ReadMapStart()
if yyl4168 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4168, d)
}
} else if yyct4168 == codecSelferValueTypeArray1234 {
yyl4168 := r.ReadArrayStart()
if yyl4168 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4168, 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 yys4169Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4169Slc
var yyhl4169 bool = l >= 0
for yyj4169 := 0; ; yyj4169++ {
if yyhl4169 {
if yyj4169 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4169Slc = r.DecodeBytes(yys4169Slc, true, true)
yys4169 := string(yys4169Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4169 {
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 {
yyv4172 := &x.ObjectMeta
yyv4172.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = ResourceQuotaSpec{}
} else {
yyv4173 := &x.Spec
yyv4173.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = ResourceQuotaStatus{}
} else {
yyv4174 := &x.Status
yyv4174.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys4169)
} // end switch yys4169
} // end for yyj4169
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 yyj4175 int
var yyb4175 bool
var yyhl4175 bool = l >= 0
yyj4175++
if yyhl4175 {
yyb4175 = yyj4175 > l
} else {
yyb4175 = r.CheckBreak()
}
if yyb4175 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4175++
if yyhl4175 {
yyb4175 = yyj4175 > l
} else {
yyb4175 = r.CheckBreak()
}
if yyb4175 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4175++
if yyhl4175 {
yyb4175 = yyj4175 > l
} else {
yyb4175 = r.CheckBreak()
}
if yyb4175 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv4178 := &x.ObjectMeta
yyv4178.CodecDecodeSelf(d)
}
yyj4175++
if yyhl4175 {
yyb4175 = yyj4175 > l
} else {
yyb4175 = r.CheckBreak()
}
if yyb4175 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = ResourceQuotaSpec{}
} else {
yyv4179 := &x.Spec
yyv4179.CodecDecodeSelf(d)
}
yyj4175++
if yyhl4175 {
yyb4175 = yyj4175 > l
} else {
yyb4175 = r.CheckBreak()
}
if yyb4175 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ResourceQuotaStatus{}
} else {
yyv4180 := &x.Status
yyv4180.CodecDecodeSelf(d)
}
for {
yyj4175++
if yyhl4175 {
yyb4175 = yyj4175 > l
} else {
yyb4175 = r.CheckBreak()
}
if yyb4175 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4175-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 {
yym4181 := z.EncBinary()
_ = yym4181
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4182 := !z.EncBinary()
yy2arr4182 := z.EncBasicHandle().StructToArray
var yyq4182 [4]bool
_, _, _ = yysep4182, yyq4182, yy2arr4182
const yyr4182 bool = false
yyq4182[0] = x.Kind != ""
yyq4182[1] = x.APIVersion != ""
yyq4182[2] = true
var yynn4182 int
if yyr4182 || yy2arr4182 {
r.EncodeArrayStart(4)
} else {
yynn4182 = 1
for _, b := range yyq4182 {
if b {
yynn4182++
}
}
r.EncodeMapStart(yynn4182)
yynn4182 = 0
}
if yyr4182 || yy2arr4182 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4182[0] {
yym4184 := z.EncBinary()
_ = yym4184
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4182[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4185 := z.EncBinary()
_ = yym4185
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4182 || yy2arr4182 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4182[1] {
yym4187 := z.EncBinary()
_ = yym4187
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4182[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4188 := z.EncBinary()
_ = yym4188
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4182 || yy2arr4182 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4182[2] {
yy4190 := &x.ListMeta
yym4191 := z.EncBinary()
_ = yym4191
if false {
} else if z.HasExtensions() && z.EncExt(yy4190) {
} else {
z.EncFallback(yy4190)
}
} else {
r.EncodeNil()
}
} else {
if yyq4182[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4192 := &x.ListMeta
yym4193 := z.EncBinary()
_ = yym4193
if false {
} else if z.HasExtensions() && z.EncExt(yy4192) {
} else {
z.EncFallback(yy4192)
}
}
}
if yyr4182 || yy2arr4182 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym4195 := z.EncBinary()
_ = yym4195
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 {
yym4196 := z.EncBinary()
_ = yym4196
if false {
} else {
h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e)
}
}
}
if yyr4182 || yy2arr4182 {
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
yym4197 := z.DecBinary()
_ = yym4197
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4198 := r.ContainerType()
if yyct4198 == codecSelferValueTypeMap1234 {
yyl4198 := r.ReadMapStart()
if yyl4198 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4198, d)
}
} else if yyct4198 == codecSelferValueTypeArray1234 {
yyl4198 := r.ReadArrayStart()
if yyl4198 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4198, 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 yys4199Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4199Slc
var yyhl4199 bool = l >= 0
for yyj4199 := 0; ; yyj4199++ {
if yyhl4199 {
if yyj4199 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4199Slc = r.DecodeBytes(yys4199Slc, true, true)
yys4199 := string(yys4199Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4199 {
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 {
yyv4202 := &x.ListMeta
yym4203 := z.DecBinary()
_ = yym4203
if false {
} else if z.HasExtensions() && z.DecExt(yyv4202) {
} else {
z.DecFallback(yyv4202, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4204 := &x.Items
yym4205 := z.DecBinary()
_ = yym4205
if false {
} else {
h.decSliceResourceQuota((*[]ResourceQuota)(yyv4204), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4199)
} // end switch yys4199
} // end for yyj4199
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 yyj4206 int
var yyb4206 bool
var yyhl4206 bool = l >= 0
yyj4206++
if yyhl4206 {
yyb4206 = yyj4206 > l
} else {
yyb4206 = r.CheckBreak()
}
if yyb4206 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4206++
if yyhl4206 {
yyb4206 = yyj4206 > l
} else {
yyb4206 = r.CheckBreak()
}
if yyb4206 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4206++
if yyhl4206 {
yyb4206 = yyj4206 > l
} else {
yyb4206 = r.CheckBreak()
}
if yyb4206 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv4209 := &x.ListMeta
yym4210 := z.DecBinary()
_ = yym4210
if false {
} else if z.HasExtensions() && z.DecExt(yyv4209) {
} else {
z.DecFallback(yyv4209, false)
}
}
yyj4206++
if yyhl4206 {
yyb4206 = yyj4206 > l
} else {
yyb4206 = r.CheckBreak()
}
if yyb4206 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4211 := &x.Items
yym4212 := z.DecBinary()
_ = yym4212
if false {
} else {
h.decSliceResourceQuota((*[]ResourceQuota)(yyv4211), d)
}
}
for {
yyj4206++
if yyhl4206 {
yyb4206 = yyj4206 > l
} else {
yyb4206 = r.CheckBreak()
}
if yyb4206 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4206-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 {
yym4213 := z.EncBinary()
_ = yym4213
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4214 := !z.EncBinary()
yy2arr4214 := z.EncBasicHandle().StructToArray
var yyq4214 [5]bool
_, _, _ = yysep4214, yyq4214, yy2arr4214
const yyr4214 bool = false
yyq4214[0] = x.Kind != ""
yyq4214[1] = x.APIVersion != ""
yyq4214[2] = true
yyq4214[3] = len(x.Data) != 0
yyq4214[4] = x.Type != ""
var yynn4214 int
if yyr4214 || yy2arr4214 {
r.EncodeArrayStart(5)
} else {
yynn4214 = 0
for _, b := range yyq4214 {
if b {
yynn4214++
}
}
r.EncodeMapStart(yynn4214)
yynn4214 = 0
}
if yyr4214 || yy2arr4214 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4214[0] {
yym4216 := z.EncBinary()
_ = yym4216
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4214[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4217 := z.EncBinary()
_ = yym4217
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4214 || yy2arr4214 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4214[1] {
yym4219 := z.EncBinary()
_ = yym4219
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4214[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4220 := z.EncBinary()
_ = yym4220
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4214 || yy2arr4214 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4214[2] {
yy4222 := &x.ObjectMeta
yy4222.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4214[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4223 := &x.ObjectMeta
yy4223.CodecEncodeSelf(e)
}
}
if yyr4214 || yy2arr4214 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4214[3] {
if x.Data == nil {
r.EncodeNil()
} else {
yym4225 := z.EncBinary()
_ = yym4225
if false {
} else {
h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4214[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("data"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Data == nil {
r.EncodeNil()
} else {
yym4226 := z.EncBinary()
_ = yym4226
if false {
} else {
h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e)
}
}
}
}
if yyr4214 || yy2arr4214 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4214[4] {
x.Type.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4214[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Type.CodecEncodeSelf(e)
}
}
if yyr4214 || yy2arr4214 {
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
yym4228 := z.DecBinary()
_ = yym4228
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4229 := r.ContainerType()
if yyct4229 == codecSelferValueTypeMap1234 {
yyl4229 := r.ReadMapStart()
if yyl4229 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4229, d)
}
} else if yyct4229 == codecSelferValueTypeArray1234 {
yyl4229 := r.ReadArrayStart()
if yyl4229 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4229, 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 yys4230Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4230Slc
var yyhl4230 bool = l >= 0
for yyj4230 := 0; ; yyj4230++ {
if yyhl4230 {
if yyj4230 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4230Slc = r.DecodeBytes(yys4230Slc, true, true)
yys4230 := string(yys4230Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4230 {
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 {
yyv4233 := &x.ObjectMeta
yyv4233.CodecDecodeSelf(d)
}
case "data":
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv4234 := &x.Data
yym4235 := z.DecBinary()
_ = yym4235
if false {
} else {
h.decMapstringSliceuint8((*map[string][]uint8)(yyv4234), d)
}
}
case "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = SecretType(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys4230)
} // end switch yys4230
} // end for yyj4230
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 yyj4237 int
var yyb4237 bool
var yyhl4237 bool = l >= 0
yyj4237++
if yyhl4237 {
yyb4237 = yyj4237 > l
} else {
yyb4237 = r.CheckBreak()
}
if yyb4237 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4237++
if yyhl4237 {
yyb4237 = yyj4237 > l
} else {
yyb4237 = r.CheckBreak()
}
if yyb4237 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4237++
if yyhl4237 {
yyb4237 = yyj4237 > l
} else {
yyb4237 = r.CheckBreak()
}
if yyb4237 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv4240 := &x.ObjectMeta
yyv4240.CodecDecodeSelf(d)
}
yyj4237++
if yyhl4237 {
yyb4237 = yyj4237 > l
} else {
yyb4237 = r.CheckBreak()
}
if yyb4237 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv4241 := &x.Data
yym4242 := z.DecBinary()
_ = yym4242
if false {
} else {
h.decMapstringSliceuint8((*map[string][]uint8)(yyv4241), d)
}
}
yyj4237++
if yyhl4237 {
yyb4237 = yyj4237 > l
} else {
yyb4237 = r.CheckBreak()
}
if yyb4237 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = SecretType(r.DecodeString())
}
for {
yyj4237++
if yyhl4237 {
yyb4237 = yyj4237 > l
} else {
yyb4237 = r.CheckBreak()
}
if yyb4237 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4237-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x SecretType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym4244 := z.EncBinary()
_ = yym4244
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
yym4245 := z.DecBinary()
_ = yym4245
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 {
yym4246 := z.EncBinary()
_ = yym4246
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4247 := !z.EncBinary()
yy2arr4247 := z.EncBasicHandle().StructToArray
var yyq4247 [4]bool
_, _, _ = yysep4247, yyq4247, yy2arr4247
const yyr4247 bool = false
yyq4247[0] = x.Kind != ""
yyq4247[1] = x.APIVersion != ""
yyq4247[2] = true
var yynn4247 int
if yyr4247 || yy2arr4247 {
r.EncodeArrayStart(4)
} else {
yynn4247 = 1
for _, b := range yyq4247 {
if b {
yynn4247++
}
}
r.EncodeMapStart(yynn4247)
yynn4247 = 0
}
if yyr4247 || yy2arr4247 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4247[0] {
yym4249 := z.EncBinary()
_ = yym4249
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4247[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4250 := z.EncBinary()
_ = yym4250
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4247 || yy2arr4247 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4247[1] {
yym4252 := z.EncBinary()
_ = yym4252
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4247[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4253 := z.EncBinary()
_ = yym4253
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4247 || yy2arr4247 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4247[2] {
yy4255 := &x.ListMeta
yym4256 := z.EncBinary()
_ = yym4256
if false {
} else if z.HasExtensions() && z.EncExt(yy4255) {
} else {
z.EncFallback(yy4255)
}
} else {
r.EncodeNil()
}
} else {
if yyq4247[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4257 := &x.ListMeta
yym4258 := z.EncBinary()
_ = yym4258
if false {
} else if z.HasExtensions() && z.EncExt(yy4257) {
} else {
z.EncFallback(yy4257)
}
}
}
if yyr4247 || yy2arr4247 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym4260 := z.EncBinary()
_ = yym4260
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 {
yym4261 := z.EncBinary()
_ = yym4261
if false {
} else {
h.encSliceSecret(([]Secret)(x.Items), e)
}
}
}
if yyr4247 || yy2arr4247 {
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
yym4262 := z.DecBinary()
_ = yym4262
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4263 := r.ContainerType()
if yyct4263 == codecSelferValueTypeMap1234 {
yyl4263 := r.ReadMapStart()
if yyl4263 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4263, d)
}
} else if yyct4263 == codecSelferValueTypeArray1234 {
yyl4263 := r.ReadArrayStart()
if yyl4263 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4263, 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 yys4264Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4264Slc
var yyhl4264 bool = l >= 0
for yyj4264 := 0; ; yyj4264++ {
if yyhl4264 {
if yyj4264 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4264Slc = r.DecodeBytes(yys4264Slc, true, true)
yys4264 := string(yys4264Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4264 {
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 {
yyv4267 := &x.ListMeta
yym4268 := z.DecBinary()
_ = yym4268
if false {
} else if z.HasExtensions() && z.DecExt(yyv4267) {
} else {
z.DecFallback(yyv4267, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4269 := &x.Items
yym4270 := z.DecBinary()
_ = yym4270
if false {
} else {
h.decSliceSecret((*[]Secret)(yyv4269), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4264)
} // end switch yys4264
} // end for yyj4264
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 yyj4271 int
var yyb4271 bool
var yyhl4271 bool = l >= 0
yyj4271++
if yyhl4271 {
yyb4271 = yyj4271 > l
} else {
yyb4271 = r.CheckBreak()
}
if yyb4271 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4271++
if yyhl4271 {
yyb4271 = yyj4271 > l
} else {
yyb4271 = r.CheckBreak()
}
if yyb4271 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4271++
if yyhl4271 {
yyb4271 = yyj4271 > l
} else {
yyb4271 = r.CheckBreak()
}
if yyb4271 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv4274 := &x.ListMeta
yym4275 := z.DecBinary()
_ = yym4275
if false {
} else if z.HasExtensions() && z.DecExt(yyv4274) {
} else {
z.DecFallback(yyv4274, false)
}
}
yyj4271++
if yyhl4271 {
yyb4271 = yyj4271 > l
} else {
yyb4271 = r.CheckBreak()
}
if yyb4271 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4276 := &x.Items
yym4277 := z.DecBinary()
_ = yym4277
if false {
} else {
h.decSliceSecret((*[]Secret)(yyv4276), d)
}
}
for {
yyj4271++
if yyhl4271 {
yyb4271 = yyj4271 > l
} else {
yyb4271 = r.CheckBreak()
}
if yyb4271 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4271-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 {
yym4278 := z.EncBinary()
_ = yym4278
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4279 := !z.EncBinary()
yy2arr4279 := z.EncBasicHandle().StructToArray
var yyq4279 [4]bool
_, _, _ = yysep4279, yyq4279, yy2arr4279
const yyr4279 bool = false
yyq4279[0] = x.Kind != ""
yyq4279[1] = x.APIVersion != ""
yyq4279[2] = true
yyq4279[3] = len(x.Data) != 0
var yynn4279 int
if yyr4279 || yy2arr4279 {
r.EncodeArrayStart(4)
} else {
yynn4279 = 0
for _, b := range yyq4279 {
if b {
yynn4279++
}
}
r.EncodeMapStart(yynn4279)
yynn4279 = 0
}
if yyr4279 || yy2arr4279 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4279[0] {
yym4281 := z.EncBinary()
_ = yym4281
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4279[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4282 := z.EncBinary()
_ = yym4282
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4279 || yy2arr4279 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4279[1] {
yym4284 := z.EncBinary()
_ = yym4284
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4279[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4285 := z.EncBinary()
_ = yym4285
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4279 || yy2arr4279 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4279[2] {
yy4287 := &x.ObjectMeta
yy4287.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4279[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4288 := &x.ObjectMeta
yy4288.CodecEncodeSelf(e)
}
}
if yyr4279 || yy2arr4279 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4279[3] {
if x.Data == nil {
r.EncodeNil()
} else {
yym4290 := z.EncBinary()
_ = yym4290
if false {
} else {
z.F.EncMapStringStringV(x.Data, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4279[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("data"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Data == nil {
r.EncodeNil()
} else {
yym4291 := z.EncBinary()
_ = yym4291
if false {
} else {
z.F.EncMapStringStringV(x.Data, false, e)
}
}
}
}
if yyr4279 || yy2arr4279 {
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
yym4292 := z.DecBinary()
_ = yym4292
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4293 := r.ContainerType()
if yyct4293 == codecSelferValueTypeMap1234 {
yyl4293 := r.ReadMapStart()
if yyl4293 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4293, d)
}
} else if yyct4293 == codecSelferValueTypeArray1234 {
yyl4293 := r.ReadArrayStart()
if yyl4293 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4293, 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 yys4294Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4294Slc
var yyhl4294 bool = l >= 0
for yyj4294 := 0; ; yyj4294++ {
if yyhl4294 {
if yyj4294 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4294Slc = r.DecodeBytes(yys4294Slc, true, true)
yys4294 := string(yys4294Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4294 {
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 {
yyv4297 := &x.ObjectMeta
yyv4297.CodecDecodeSelf(d)
}
case "data":
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv4298 := &x.Data
yym4299 := z.DecBinary()
_ = yym4299
if false {
} else {
z.F.DecMapStringStringX(yyv4298, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4294)
} // end switch yys4294
} // end for yyj4294
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 yyj4300 int
var yyb4300 bool
var yyhl4300 bool = l >= 0
yyj4300++
if yyhl4300 {
yyb4300 = yyj4300 > l
} else {
yyb4300 = r.CheckBreak()
}
if yyb4300 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4300++
if yyhl4300 {
yyb4300 = yyj4300 > l
} else {
yyb4300 = r.CheckBreak()
}
if yyb4300 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4300++
if yyhl4300 {
yyb4300 = yyj4300 > l
} else {
yyb4300 = r.CheckBreak()
}
if yyb4300 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv4303 := &x.ObjectMeta
yyv4303.CodecDecodeSelf(d)
}
yyj4300++
if yyhl4300 {
yyb4300 = yyj4300 > l
} else {
yyb4300 = r.CheckBreak()
}
if yyb4300 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv4304 := &x.Data
yym4305 := z.DecBinary()
_ = yym4305
if false {
} else {
z.F.DecMapStringStringX(yyv4304, false, d)
}
}
for {
yyj4300++
if yyhl4300 {
yyb4300 = yyj4300 > l
} else {
yyb4300 = r.CheckBreak()
}
if yyb4300 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4300-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 {
yym4306 := z.EncBinary()
_ = yym4306
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4307 := !z.EncBinary()
yy2arr4307 := z.EncBasicHandle().StructToArray
var yyq4307 [4]bool
_, _, _ = yysep4307, yyq4307, yy2arr4307
const yyr4307 bool = false
yyq4307[0] = x.Kind != ""
yyq4307[1] = x.APIVersion != ""
yyq4307[2] = true
var yynn4307 int
if yyr4307 || yy2arr4307 {
r.EncodeArrayStart(4)
} else {
yynn4307 = 1
for _, b := range yyq4307 {
if b {
yynn4307++
}
}
r.EncodeMapStart(yynn4307)
yynn4307 = 0
}
if yyr4307 || yy2arr4307 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4307[0] {
yym4309 := z.EncBinary()
_ = yym4309
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4307[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4310 := z.EncBinary()
_ = yym4310
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4307 || yy2arr4307 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4307[1] {
yym4312 := z.EncBinary()
_ = yym4312
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4307[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4313 := z.EncBinary()
_ = yym4313
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4307 || yy2arr4307 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4307[2] {
yy4315 := &x.ListMeta
yym4316 := z.EncBinary()
_ = yym4316
if false {
} else if z.HasExtensions() && z.EncExt(yy4315) {
} else {
z.EncFallback(yy4315)
}
} else {
r.EncodeNil()
}
} else {
if yyq4307[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4317 := &x.ListMeta
yym4318 := z.EncBinary()
_ = yym4318
if false {
} else if z.HasExtensions() && z.EncExt(yy4317) {
} else {
z.EncFallback(yy4317)
}
}
}
if yyr4307 || yy2arr4307 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym4320 := z.EncBinary()
_ = yym4320
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 {
yym4321 := z.EncBinary()
_ = yym4321
if false {
} else {
h.encSliceConfigMap(([]ConfigMap)(x.Items), e)
}
}
}
if yyr4307 || yy2arr4307 {
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
yym4322 := z.DecBinary()
_ = yym4322
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4323 := r.ContainerType()
if yyct4323 == codecSelferValueTypeMap1234 {
yyl4323 := r.ReadMapStart()
if yyl4323 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4323, d)
}
} else if yyct4323 == codecSelferValueTypeArray1234 {
yyl4323 := r.ReadArrayStart()
if yyl4323 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4323, 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 yys4324Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4324Slc
var yyhl4324 bool = l >= 0
for yyj4324 := 0; ; yyj4324++ {
if yyhl4324 {
if yyj4324 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4324Slc = r.DecodeBytes(yys4324Slc, true, true)
yys4324 := string(yys4324Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4324 {
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 {
yyv4327 := &x.ListMeta
yym4328 := z.DecBinary()
_ = yym4328
if false {
} else if z.HasExtensions() && z.DecExt(yyv4327) {
} else {
z.DecFallback(yyv4327, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4329 := &x.Items
yym4330 := z.DecBinary()
_ = yym4330
if false {
} else {
h.decSliceConfigMap((*[]ConfigMap)(yyv4329), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4324)
} // end switch yys4324
} // end for yyj4324
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 yyj4331 int
var yyb4331 bool
var yyhl4331 bool = l >= 0
yyj4331++
if yyhl4331 {
yyb4331 = yyj4331 > l
} else {
yyb4331 = r.CheckBreak()
}
if yyb4331 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4331++
if yyhl4331 {
yyb4331 = yyj4331 > l
} else {
yyb4331 = r.CheckBreak()
}
if yyb4331 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4331++
if yyhl4331 {
yyb4331 = yyj4331 > l
} else {
yyb4331 = r.CheckBreak()
}
if yyb4331 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv4334 := &x.ListMeta
yym4335 := z.DecBinary()
_ = yym4335
if false {
} else if z.HasExtensions() && z.DecExt(yyv4334) {
} else {
z.DecFallback(yyv4334, false)
}
}
yyj4331++
if yyhl4331 {
yyb4331 = yyj4331 > l
} else {
yyb4331 = r.CheckBreak()
}
if yyb4331 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4336 := &x.Items
yym4337 := z.DecBinary()
_ = yym4337
if false {
} else {
h.decSliceConfigMap((*[]ConfigMap)(yyv4336), d)
}
}
for {
yyj4331++
if yyhl4331 {
yyb4331 = yyj4331 > l
} else {
yyb4331 = r.CheckBreak()
}
if yyb4331 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4331-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x PatchType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym4338 := z.EncBinary()
_ = yym4338
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
yym4339 := z.DecBinary()
_ = yym4339
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
yym4340 := z.EncBinary()
_ = yym4340
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
yym4341 := z.DecBinary()
_ = yym4341
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 {
yym4342 := z.EncBinary()
_ = yym4342
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4343 := !z.EncBinary()
yy2arr4343 := z.EncBasicHandle().StructToArray
var yyq4343 [4]bool
_, _, _ = yysep4343, yyq4343, yy2arr4343
const yyr4343 bool = false
yyq4343[2] = x.Message != ""
yyq4343[3] = x.Error != ""
var yynn4343 int
if yyr4343 || yy2arr4343 {
r.EncodeArrayStart(4)
} else {
yynn4343 = 2
for _, b := range yyq4343 {
if b {
yynn4343++
}
}
r.EncodeMapStart(yynn4343)
yynn4343 = 0
}
if yyr4343 || yy2arr4343 {
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 yyr4343 || yy2arr4343 {
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 yyr4343 || yy2arr4343 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4343[2] {
yym4347 := z.EncBinary()
_ = yym4347
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4343[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4348 := z.EncBinary()
_ = yym4348
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr4343 || yy2arr4343 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4343[3] {
yym4350 := z.EncBinary()
_ = yym4350
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Error))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4343[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("error"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4351 := z.EncBinary()
_ = yym4351
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Error))
}
}
}
if yyr4343 || yy2arr4343 {
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
yym4352 := z.DecBinary()
_ = yym4352
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4353 := r.ContainerType()
if yyct4353 == codecSelferValueTypeMap1234 {
yyl4353 := r.ReadMapStart()
if yyl4353 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4353, d)
}
} else if yyct4353 == codecSelferValueTypeArray1234 {
yyl4353 := r.ReadArrayStart()
if yyl4353 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4353, 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 yys4354Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4354Slc
var yyhl4354 bool = l >= 0
for yyj4354 := 0; ; yyj4354++ {
if yyhl4354 {
if yyj4354 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4354Slc = r.DecodeBytes(yys4354Slc, true, true)
yys4354 := string(yys4354Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4354 {
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, yys4354)
} // end switch yys4354
} // end for yyj4354
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 yyj4359 int
var yyb4359 bool
var yyhl4359 bool = l >= 0
yyj4359++
if yyhl4359 {
yyb4359 = yyj4359 > l
} else {
yyb4359 = r.CheckBreak()
}
if yyb4359 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = ComponentConditionType(r.DecodeString())
}
yyj4359++
if yyhl4359 {
yyb4359 = yyj4359 > l
} else {
yyb4359 = r.CheckBreak()
}
if yyb4359 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ""
} else {
x.Status = ConditionStatus(r.DecodeString())
}
yyj4359++
if yyhl4359 {
yyb4359 = yyj4359 > l
} else {
yyb4359 = r.CheckBreak()
}
if yyb4359 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
yyj4359++
if yyhl4359 {
yyb4359 = yyj4359 > l
} else {
yyb4359 = r.CheckBreak()
}
if yyb4359 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Error = ""
} else {
x.Error = string(r.DecodeString())
}
for {
yyj4359++
if yyhl4359 {
yyb4359 = yyj4359 > l
} else {
yyb4359 = r.CheckBreak()
}
if yyb4359 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4359-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 {
yym4364 := z.EncBinary()
_ = yym4364
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4365 := !z.EncBinary()
yy2arr4365 := z.EncBasicHandle().StructToArray
var yyq4365 [4]bool
_, _, _ = yysep4365, yyq4365, yy2arr4365
const yyr4365 bool = false
yyq4365[0] = x.Kind != ""
yyq4365[1] = x.APIVersion != ""
yyq4365[2] = true
yyq4365[3] = len(x.Conditions) != 0
var yynn4365 int
if yyr4365 || yy2arr4365 {
r.EncodeArrayStart(4)
} else {
yynn4365 = 0
for _, b := range yyq4365 {
if b {
yynn4365++
}
}
r.EncodeMapStart(yynn4365)
yynn4365 = 0
}
if yyr4365 || yy2arr4365 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4365[0] {
yym4367 := z.EncBinary()
_ = yym4367
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4365[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4368 := z.EncBinary()
_ = yym4368
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4365 || yy2arr4365 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4365[1] {
yym4370 := z.EncBinary()
_ = yym4370
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4365[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4371 := z.EncBinary()
_ = yym4371
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4365 || yy2arr4365 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4365[2] {
yy4373 := &x.ObjectMeta
yy4373.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4365[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4374 := &x.ObjectMeta
yy4374.CodecEncodeSelf(e)
}
}
if yyr4365 || yy2arr4365 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4365[3] {
if x.Conditions == nil {
r.EncodeNil()
} else {
yym4376 := z.EncBinary()
_ = yym4376
if false {
} else {
h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4365[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Conditions == nil {
r.EncodeNil()
} else {
yym4377 := z.EncBinary()
_ = yym4377
if false {
} else {
h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e)
}
}
}
}
if yyr4365 || yy2arr4365 {
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
yym4378 := z.DecBinary()
_ = yym4378
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4379 := r.ContainerType()
if yyct4379 == codecSelferValueTypeMap1234 {
yyl4379 := r.ReadMapStart()
if yyl4379 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4379, d)
}
} else if yyct4379 == codecSelferValueTypeArray1234 {
yyl4379 := r.ReadArrayStart()
if yyl4379 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4379, 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 yys4380Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4380Slc
var yyhl4380 bool = l >= 0
for yyj4380 := 0; ; yyj4380++ {
if yyhl4380 {
if yyj4380 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4380Slc = r.DecodeBytes(yys4380Slc, true, true)
yys4380 := string(yys4380Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4380 {
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 {
yyv4383 := &x.ObjectMeta
yyv4383.CodecDecodeSelf(d)
}
case "conditions":
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv4384 := &x.Conditions
yym4385 := z.DecBinary()
_ = yym4385
if false {
} else {
h.decSliceComponentCondition((*[]ComponentCondition)(yyv4384), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4380)
} // end switch yys4380
} // end for yyj4380
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 yyj4386 int
var yyb4386 bool
var yyhl4386 bool = l >= 0
yyj4386++
if yyhl4386 {
yyb4386 = yyj4386 > l
} else {
yyb4386 = r.CheckBreak()
}
if yyb4386 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4386++
if yyhl4386 {
yyb4386 = yyj4386 > l
} else {
yyb4386 = r.CheckBreak()
}
if yyb4386 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4386++
if yyhl4386 {
yyb4386 = yyj4386 > l
} else {
yyb4386 = r.CheckBreak()
}
if yyb4386 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv4389 := &x.ObjectMeta
yyv4389.CodecDecodeSelf(d)
}
yyj4386++
if yyhl4386 {
yyb4386 = yyj4386 > l
} else {
yyb4386 = r.CheckBreak()
}
if yyb4386 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv4390 := &x.Conditions
yym4391 := z.DecBinary()
_ = yym4391
if false {
} else {
h.decSliceComponentCondition((*[]ComponentCondition)(yyv4390), d)
}
}
for {
yyj4386++
if yyhl4386 {
yyb4386 = yyj4386 > l
} else {
yyb4386 = r.CheckBreak()
}
if yyb4386 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4386-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 {
yym4392 := z.EncBinary()
_ = yym4392
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4393 := !z.EncBinary()
yy2arr4393 := z.EncBasicHandle().StructToArray
var yyq4393 [4]bool
_, _, _ = yysep4393, yyq4393, yy2arr4393
const yyr4393 bool = false
yyq4393[0] = x.Kind != ""
yyq4393[1] = x.APIVersion != ""
yyq4393[2] = true
var yynn4393 int
if yyr4393 || yy2arr4393 {
r.EncodeArrayStart(4)
} else {
yynn4393 = 1
for _, b := range yyq4393 {
if b {
yynn4393++
}
}
r.EncodeMapStart(yynn4393)
yynn4393 = 0
}
if yyr4393 || yy2arr4393 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4393[0] {
yym4395 := z.EncBinary()
_ = yym4395
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4393[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4396 := z.EncBinary()
_ = yym4396
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4393 || yy2arr4393 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4393[1] {
yym4398 := z.EncBinary()
_ = yym4398
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4393[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4399 := z.EncBinary()
_ = yym4399
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4393 || yy2arr4393 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4393[2] {
yy4401 := &x.ListMeta
yym4402 := z.EncBinary()
_ = yym4402
if false {
} else if z.HasExtensions() && z.EncExt(yy4401) {
} else {
z.EncFallback(yy4401)
}
} else {
r.EncodeNil()
}
} else {
if yyq4393[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4403 := &x.ListMeta
yym4404 := z.EncBinary()
_ = yym4404
if false {
} else if z.HasExtensions() && z.EncExt(yy4403) {
} else {
z.EncFallback(yy4403)
}
}
}
if yyr4393 || yy2arr4393 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym4406 := z.EncBinary()
_ = yym4406
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 {
yym4407 := z.EncBinary()
_ = yym4407
if false {
} else {
h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e)
}
}
}
if yyr4393 || yy2arr4393 {
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
yym4408 := z.DecBinary()
_ = yym4408
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4409 := r.ContainerType()
if yyct4409 == codecSelferValueTypeMap1234 {
yyl4409 := r.ReadMapStart()
if yyl4409 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4409, d)
}
} else if yyct4409 == codecSelferValueTypeArray1234 {
yyl4409 := r.ReadArrayStart()
if yyl4409 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4409, 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 yys4410Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4410Slc
var yyhl4410 bool = l >= 0
for yyj4410 := 0; ; yyj4410++ {
if yyhl4410 {
if yyj4410 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4410Slc = r.DecodeBytes(yys4410Slc, true, true)
yys4410 := string(yys4410Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4410 {
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 {
yyv4413 := &x.ListMeta
yym4414 := z.DecBinary()
_ = yym4414
if false {
} else if z.HasExtensions() && z.DecExt(yyv4413) {
} else {
z.DecFallback(yyv4413, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4415 := &x.Items
yym4416 := z.DecBinary()
_ = yym4416
if false {
} else {
h.decSliceComponentStatus((*[]ComponentStatus)(yyv4415), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4410)
} // end switch yys4410
} // end for yyj4410
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 yyj4417 int
var yyb4417 bool
var yyhl4417 bool = l >= 0
yyj4417++
if yyhl4417 {
yyb4417 = yyj4417 > l
} else {
yyb4417 = r.CheckBreak()
}
if yyb4417 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4417++
if yyhl4417 {
yyb4417 = yyj4417 > l
} else {
yyb4417 = r.CheckBreak()
}
if yyb4417 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4417++
if yyhl4417 {
yyb4417 = yyj4417 > l
} else {
yyb4417 = r.CheckBreak()
}
if yyb4417 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv4420 := &x.ListMeta
yym4421 := z.DecBinary()
_ = yym4421
if false {
} else if z.HasExtensions() && z.DecExt(yyv4420) {
} else {
z.DecFallback(yyv4420, false)
}
}
yyj4417++
if yyhl4417 {
yyb4417 = yyj4417 > l
} else {
yyb4417 = r.CheckBreak()
}
if yyb4417 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4422 := &x.Items
yym4423 := z.DecBinary()
_ = yym4423
if false {
} else {
h.decSliceComponentStatus((*[]ComponentStatus)(yyv4422), d)
}
}
for {
yyj4417++
if yyhl4417 {
yyb4417 = yyj4417 > l
} else {
yyb4417 = r.CheckBreak()
}
if yyb4417 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4417-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 {
yym4424 := z.EncBinary()
_ = yym4424
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4425 := !z.EncBinary()
yy2arr4425 := z.EncBasicHandle().StructToArray
var yyq4425 [6]bool
_, _, _ = yysep4425, yyq4425, yy2arr4425
const yyr4425 bool = false
yyq4425[0] = x.Capabilities != nil
yyq4425[1] = x.Privileged != nil
yyq4425[2] = x.SELinuxOptions != nil
yyq4425[3] = x.RunAsUser != nil
yyq4425[4] = x.RunAsNonRoot != nil
yyq4425[5] = x.ReadOnlyRootFilesystem != nil
var yynn4425 int
if yyr4425 || yy2arr4425 {
r.EncodeArrayStart(6)
} else {
yynn4425 = 0
for _, b := range yyq4425 {
if b {
yynn4425++
}
}
r.EncodeMapStart(yynn4425)
yynn4425 = 0
}
if yyr4425 || yy2arr4425 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4425[0] {
if x.Capabilities == nil {
r.EncodeNil()
} else {
x.Capabilities.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4425[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 yyr4425 || yy2arr4425 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4425[1] {
if x.Privileged == nil {
r.EncodeNil()
} else {
yy4428 := *x.Privileged
yym4429 := z.EncBinary()
_ = yym4429
if false {
} else {
r.EncodeBool(bool(yy4428))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4425[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("privileged"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Privileged == nil {
r.EncodeNil()
} else {
yy4430 := *x.Privileged
yym4431 := z.EncBinary()
_ = yym4431
if false {
} else {
r.EncodeBool(bool(yy4430))
}
}
}
}
if yyr4425 || yy2arr4425 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4425[2] {
if x.SELinuxOptions == nil {
r.EncodeNil()
} else {
x.SELinuxOptions.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4425[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 yyr4425 || yy2arr4425 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4425[3] {
if x.RunAsUser == nil {
r.EncodeNil()
} else {
yy4434 := *x.RunAsUser
yym4435 := z.EncBinary()
_ = yym4435
if false {
} else {
r.EncodeInt(int64(yy4434))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4425[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("runAsUser"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RunAsUser == nil {
r.EncodeNil()
} else {
yy4436 := *x.RunAsUser
yym4437 := z.EncBinary()
_ = yym4437
if false {
} else {
r.EncodeInt(int64(yy4436))
}
}
}
}
if yyr4425 || yy2arr4425 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4425[4] {
if x.RunAsNonRoot == nil {
r.EncodeNil()
} else {
yy4439 := *x.RunAsNonRoot
yym4440 := z.EncBinary()
_ = yym4440
if false {
} else {
r.EncodeBool(bool(yy4439))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4425[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RunAsNonRoot == nil {
r.EncodeNil()
} else {
yy4441 := *x.RunAsNonRoot
yym4442 := z.EncBinary()
_ = yym4442
if false {
} else {
r.EncodeBool(bool(yy4441))
}
}
}
}
if yyr4425 || yy2arr4425 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4425[5] {
if x.ReadOnlyRootFilesystem == nil {
r.EncodeNil()
} else {
yy4444 := *x.ReadOnlyRootFilesystem
yym4445 := z.EncBinary()
_ = yym4445
if false {
} else {
r.EncodeBool(bool(yy4444))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4425[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnlyRootFilesystem"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ReadOnlyRootFilesystem == nil {
r.EncodeNil()
} else {
yy4446 := *x.ReadOnlyRootFilesystem
yym4447 := z.EncBinary()
_ = yym4447
if false {
} else {
r.EncodeBool(bool(yy4446))
}
}
}
}
if yyr4425 || yy2arr4425 {
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
yym4448 := z.DecBinary()
_ = yym4448
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4449 := r.ContainerType()
if yyct4449 == codecSelferValueTypeMap1234 {
yyl4449 := r.ReadMapStart()
if yyl4449 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4449, d)
}
} else if yyct4449 == codecSelferValueTypeArray1234 {
yyl4449 := r.ReadArrayStart()
if yyl4449 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4449, 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 yys4450Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4450Slc
var yyhl4450 bool = l >= 0
for yyj4450 := 0; ; yyj4450++ {
if yyhl4450 {
if yyj4450 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4450Slc = r.DecodeBytes(yys4450Slc, true, true)
yys4450 := string(yys4450Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4450 {
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)
}
yym4453 := z.DecBinary()
_ = yym4453
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)
}
yym4456 := z.DecBinary()
_ = yym4456
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)
}
yym4458 := z.DecBinary()
_ = yym4458
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)
}
yym4460 := z.DecBinary()
_ = yym4460
if false {
} else {
*((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool()
}
}
default:
z.DecStructFieldNotFound(-1, yys4450)
} // end switch yys4450
} // end for yyj4450
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 yyj4461 int
var yyb4461 bool
var yyhl4461 bool = l >= 0
yyj4461++
if yyhl4461 {
yyb4461 = yyj4461 > l
} else {
yyb4461 = r.CheckBreak()
}
if yyb4461 {
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)
}
yyj4461++
if yyhl4461 {
yyb4461 = yyj4461 > l
} else {
yyb4461 = r.CheckBreak()
}
if yyb4461 {
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)
}
yym4464 := z.DecBinary()
_ = yym4464
if false {
} else {
*((*bool)(x.Privileged)) = r.DecodeBool()
}
}
yyj4461++
if yyhl4461 {
yyb4461 = yyj4461 > l
} else {
yyb4461 = r.CheckBreak()
}
if yyb4461 {
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)
}
yyj4461++
if yyhl4461 {
yyb4461 = yyj4461 > l
} else {
yyb4461 = r.CheckBreak()
}
if yyb4461 {
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)
}
yym4467 := z.DecBinary()
_ = yym4467
if false {
} else {
*((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64))
}
}
yyj4461++
if yyhl4461 {
yyb4461 = yyj4461 > l
} else {
yyb4461 = r.CheckBreak()
}
if yyb4461 {
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)
}
yym4469 := z.DecBinary()
_ = yym4469
if false {
} else {
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
}
}
yyj4461++
if yyhl4461 {
yyb4461 = yyj4461 > l
} else {
yyb4461 = r.CheckBreak()
}
if yyb4461 {
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)
}
yym4471 := z.DecBinary()
_ = yym4471
if false {
} else {
*((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool()
}
}
for {
yyj4461++
if yyhl4461 {
yyb4461 = yyj4461 > l
} else {
yyb4461 = r.CheckBreak()
}
if yyb4461 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4461-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 {
yym4472 := z.EncBinary()
_ = yym4472
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4473 := !z.EncBinary()
yy2arr4473 := z.EncBasicHandle().StructToArray
var yyq4473 [4]bool
_, _, _ = yysep4473, yyq4473, yy2arr4473
const yyr4473 bool = false
yyq4473[0] = x.User != ""
yyq4473[1] = x.Role != ""
yyq4473[2] = x.Type != ""
yyq4473[3] = x.Level != ""
var yynn4473 int
if yyr4473 || yy2arr4473 {
r.EncodeArrayStart(4)
} else {
yynn4473 = 0
for _, b := range yyq4473 {
if b {
yynn4473++
}
}
r.EncodeMapStart(yynn4473)
yynn4473 = 0
}
if yyr4473 || yy2arr4473 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4473[0] {
yym4475 := z.EncBinary()
_ = yym4475
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.User))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4473[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("user"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4476 := z.EncBinary()
_ = yym4476
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.User))
}
}
}
if yyr4473 || yy2arr4473 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4473[1] {
yym4478 := z.EncBinary()
_ = yym4478
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Role))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4473[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("role"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4479 := z.EncBinary()
_ = yym4479
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Role))
}
}
}
if yyr4473 || yy2arr4473 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4473[2] {
yym4481 := z.EncBinary()
_ = yym4481
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4473[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4482 := z.EncBinary()
_ = yym4482
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
}
}
}
if yyr4473 || yy2arr4473 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4473[3] {
yym4484 := z.EncBinary()
_ = yym4484
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Level))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4473[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("level"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4485 := z.EncBinary()
_ = yym4485
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Level))
}
}
}
if yyr4473 || yy2arr4473 {
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
yym4486 := z.DecBinary()
_ = yym4486
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4487 := r.ContainerType()
if yyct4487 == codecSelferValueTypeMap1234 {
yyl4487 := r.ReadMapStart()
if yyl4487 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4487, d)
}
} else if yyct4487 == codecSelferValueTypeArray1234 {
yyl4487 := r.ReadArrayStart()
if yyl4487 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4487, 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 yys4488Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4488Slc
var yyhl4488 bool = l >= 0
for yyj4488 := 0; ; yyj4488++ {
if yyhl4488 {
if yyj4488 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4488Slc = r.DecodeBytes(yys4488Slc, true, true)
yys4488 := string(yys4488Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4488 {
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, yys4488)
} // end switch yys4488
} // end for yyj4488
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 yyj4493 int
var yyb4493 bool
var yyhl4493 bool = l >= 0
yyj4493++
if yyhl4493 {
yyb4493 = yyj4493 > l
} else {
yyb4493 = r.CheckBreak()
}
if yyb4493 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.User = ""
} else {
x.User = string(r.DecodeString())
}
yyj4493++
if yyhl4493 {
yyb4493 = yyj4493 > l
} else {
yyb4493 = r.CheckBreak()
}
if yyb4493 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Role = ""
} else {
x.Role = string(r.DecodeString())
}
yyj4493++
if yyhl4493 {
yyb4493 = yyj4493 > l
} else {
yyb4493 = r.CheckBreak()
}
if yyb4493 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = string(r.DecodeString())
}
yyj4493++
if yyhl4493 {
yyb4493 = yyj4493 > l
} else {
yyb4493 = r.CheckBreak()
}
if yyb4493 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Level = ""
} else {
x.Level = string(r.DecodeString())
}
for {
yyj4493++
if yyhl4493 {
yyb4493 = yyj4493 > l
} else {
yyb4493 = r.CheckBreak()
}
if yyb4493 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4493-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 {
yym4498 := z.EncBinary()
_ = yym4498
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4499 := !z.EncBinary()
yy2arr4499 := z.EncBasicHandle().StructToArray
var yyq4499 [5]bool
_, _, _ = yysep4499, yyq4499, yy2arr4499
const yyr4499 bool = false
yyq4499[0] = x.Kind != ""
yyq4499[1] = x.APIVersion != ""
yyq4499[2] = true
var yynn4499 int
if yyr4499 || yy2arr4499 {
r.EncodeArrayStart(5)
} else {
yynn4499 = 2
for _, b := range yyq4499 {
if b {
yynn4499++
}
}
r.EncodeMapStart(yynn4499)
yynn4499 = 0
}
if yyr4499 || yy2arr4499 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4499[0] {
yym4501 := z.EncBinary()
_ = yym4501
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4499[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4502 := z.EncBinary()
_ = yym4502
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4499 || yy2arr4499 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4499[1] {
yym4504 := z.EncBinary()
_ = yym4504
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4499[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4505 := z.EncBinary()
_ = yym4505
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4499 || yy2arr4499 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4499[2] {
yy4507 := &x.ObjectMeta
yy4507.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4499[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4508 := &x.ObjectMeta
yy4508.CodecEncodeSelf(e)
}
}
if yyr4499 || yy2arr4499 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym4510 := z.EncBinary()
_ = yym4510
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)
yym4511 := z.EncBinary()
_ = yym4511
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Range))
}
}
if yyr4499 || yy2arr4499 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Data == nil {
r.EncodeNil()
} else {
yym4513 := z.EncBinary()
_ = yym4513
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 {
yym4514 := z.EncBinary()
_ = yym4514
if false {
} else {
r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data))
}
}
}
if yyr4499 || yy2arr4499 {
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
yym4515 := z.DecBinary()
_ = yym4515
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4516 := r.ContainerType()
if yyct4516 == codecSelferValueTypeMap1234 {
yyl4516 := r.ReadMapStart()
if yyl4516 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4516, d)
}
} else if yyct4516 == codecSelferValueTypeArray1234 {
yyl4516 := r.ReadArrayStart()
if yyl4516 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4516, 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 yys4517Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4517Slc
var yyhl4517 bool = l >= 0
for yyj4517 := 0; ; yyj4517++ {
if yyhl4517 {
if yyj4517 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4517Slc = r.DecodeBytes(yys4517Slc, true, true)
yys4517 := string(yys4517Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4517 {
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 {
yyv4520 := &x.ObjectMeta
yyv4520.CodecDecodeSelf(d)
}
case "range":
if r.TryDecodeAsNil() {
x.Range = ""
} else {
x.Range = string(r.DecodeString())
}
case "data":
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv4522 := &x.Data
yym4523 := z.DecBinary()
_ = yym4523
if false {
} else {
*yyv4522 = r.DecodeBytes(*(*[]byte)(yyv4522), false, false)
}
}
default:
z.DecStructFieldNotFound(-1, yys4517)
} // end switch yys4517
} // end for yyj4517
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 yyj4524 int
var yyb4524 bool
var yyhl4524 bool = l >= 0
yyj4524++
if yyhl4524 {
yyb4524 = yyj4524 > l
} else {
yyb4524 = r.CheckBreak()
}
if yyb4524 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4524++
if yyhl4524 {
yyb4524 = yyj4524 > l
} else {
yyb4524 = r.CheckBreak()
}
if yyb4524 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4524++
if yyhl4524 {
yyb4524 = yyj4524 > l
} else {
yyb4524 = r.CheckBreak()
}
if yyb4524 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv4527 := &x.ObjectMeta
yyv4527.CodecDecodeSelf(d)
}
yyj4524++
if yyhl4524 {
yyb4524 = yyj4524 > l
} else {
yyb4524 = r.CheckBreak()
}
if yyb4524 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Range = ""
} else {
x.Range = string(r.DecodeString())
}
yyj4524++
if yyhl4524 {
yyb4524 = yyj4524 > l
} else {
yyb4524 = r.CheckBreak()
}
if yyb4524 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv4529 := &x.Data
yym4530 := z.DecBinary()
_ = yym4530
if false {
} else {
*yyv4529 = r.DecodeBytes(*(*[]byte)(yyv4529), false, false)
}
}
for {
yyj4524++
if yyhl4524 {
yyb4524 = yyj4524 > l
} else {
yyb4524 = r.CheckBreak()
}
if yyb4524 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4524-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 _, yyv4531 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4532 := &yyv4531
yy4532.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
yyv4533 := *v
yyh4533, yyl4533 := z.DecSliceHelperStart()
var yyc4533 bool
if yyl4533 == 0 {
if yyv4533 == nil {
yyv4533 = []OwnerReference{}
yyc4533 = true
} else if len(yyv4533) != 0 {
yyv4533 = yyv4533[:0]
yyc4533 = true
}
} else if yyl4533 > 0 {
var yyrr4533, yyrl4533 int
var yyrt4533 bool
if yyl4533 > cap(yyv4533) {
yyrg4533 := len(yyv4533) > 0
yyv24533 := yyv4533
yyrl4533, yyrt4533 = z.DecInferLen(yyl4533, z.DecBasicHandle().MaxInitLen, 72)
if yyrt4533 {
if yyrl4533 <= cap(yyv4533) {
yyv4533 = yyv4533[:yyrl4533]
} else {
yyv4533 = make([]OwnerReference, yyrl4533)
}
} else {
yyv4533 = make([]OwnerReference, yyrl4533)
}
yyc4533 = true
yyrr4533 = len(yyv4533)
if yyrg4533 {
copy(yyv4533, yyv24533)
}
} else if yyl4533 != len(yyv4533) {
yyv4533 = yyv4533[:yyl4533]
yyc4533 = true
}
yyj4533 := 0
for ; yyj4533 < yyrr4533; yyj4533++ {
yyh4533.ElemContainerState(yyj4533)
if r.TryDecodeAsNil() {
yyv4533[yyj4533] = OwnerReference{}
} else {
yyv4534 := &yyv4533[yyj4533]
yyv4534.CodecDecodeSelf(d)
}
}
if yyrt4533 {
for ; yyj4533 < yyl4533; yyj4533++ {
yyv4533 = append(yyv4533, OwnerReference{})
yyh4533.ElemContainerState(yyj4533)
if r.TryDecodeAsNil() {
yyv4533[yyj4533] = OwnerReference{}
} else {
yyv4535 := &yyv4533[yyj4533]
yyv4535.CodecDecodeSelf(d)
}
}
}
} else {
yyj4533 := 0
for ; !r.CheckBreak(); yyj4533++ {
if yyj4533 >= len(yyv4533) {
yyv4533 = append(yyv4533, OwnerReference{}) // var yyz4533 OwnerReference
yyc4533 = true
}
yyh4533.ElemContainerState(yyj4533)
if yyj4533 < len(yyv4533) {
if r.TryDecodeAsNil() {
yyv4533[yyj4533] = OwnerReference{}
} else {
yyv4536 := &yyv4533[yyj4533]
yyv4536.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4533 < len(yyv4533) {
yyv4533 = yyv4533[:yyj4533]
yyc4533 = true
} else if yyj4533 == 0 && yyv4533 == nil {
yyv4533 = []OwnerReference{}
yyc4533 = true
}
}
yyh4533.End()
if yyc4533 {
*v = yyv4533
}
}
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 _, yyv4537 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yyv4537.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
yyv4538 := *v
yyh4538, yyl4538 := z.DecSliceHelperStart()
var yyc4538 bool
if yyl4538 == 0 {
if yyv4538 == nil {
yyv4538 = []PersistentVolumeAccessMode{}
yyc4538 = true
} else if len(yyv4538) != 0 {
yyv4538 = yyv4538[:0]
yyc4538 = true
}
} else if yyl4538 > 0 {
var yyrr4538, yyrl4538 int
var yyrt4538 bool
if yyl4538 > cap(yyv4538) {
yyrl4538, yyrt4538 = z.DecInferLen(yyl4538, z.DecBasicHandle().MaxInitLen, 16)
if yyrt4538 {
if yyrl4538 <= cap(yyv4538) {
yyv4538 = yyv4538[:yyrl4538]
} else {
yyv4538 = make([]PersistentVolumeAccessMode, yyrl4538)
}
} else {
yyv4538 = make([]PersistentVolumeAccessMode, yyrl4538)
}
yyc4538 = true
yyrr4538 = len(yyv4538)
} else if yyl4538 != len(yyv4538) {
yyv4538 = yyv4538[:yyl4538]
yyc4538 = true
}
yyj4538 := 0
for ; yyj4538 < yyrr4538; yyj4538++ {
yyh4538.ElemContainerState(yyj4538)
if r.TryDecodeAsNil() {
yyv4538[yyj4538] = ""
} else {
yyv4538[yyj4538] = PersistentVolumeAccessMode(r.DecodeString())
}
}
if yyrt4538 {
for ; yyj4538 < yyl4538; yyj4538++ {
yyv4538 = append(yyv4538, "")
yyh4538.ElemContainerState(yyj4538)
if r.TryDecodeAsNil() {
yyv4538[yyj4538] = ""
} else {
yyv4538[yyj4538] = PersistentVolumeAccessMode(r.DecodeString())
}
}
}
} else {
yyj4538 := 0
for ; !r.CheckBreak(); yyj4538++ {
if yyj4538 >= len(yyv4538) {
yyv4538 = append(yyv4538, "") // var yyz4538 PersistentVolumeAccessMode
yyc4538 = true
}
yyh4538.ElemContainerState(yyj4538)
if yyj4538 < len(yyv4538) {
if r.TryDecodeAsNil() {
yyv4538[yyj4538] = ""
} else {
yyv4538[yyj4538] = PersistentVolumeAccessMode(r.DecodeString())
}
} else {
z.DecSwallow()
}
}
if yyj4538 < len(yyv4538) {
yyv4538 = yyv4538[:yyj4538]
yyc4538 = true
} else if yyj4538 == 0 && yyv4538 == nil {
yyv4538 = []PersistentVolumeAccessMode{}
yyc4538 = true
}
}
yyh4538.End()
if yyc4538 {
*v = yyv4538
}
}
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 _, yyv4542 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4543 := &yyv4542
yy4543.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
yyv4544 := *v
yyh4544, yyl4544 := z.DecSliceHelperStart()
var yyc4544 bool
if yyl4544 == 0 {
if yyv4544 == nil {
yyv4544 = []PersistentVolume{}
yyc4544 = true
} else if len(yyv4544) != 0 {
yyv4544 = yyv4544[:0]
yyc4544 = true
}
} else if yyl4544 > 0 {
var yyrr4544, yyrl4544 int
var yyrt4544 bool
if yyl4544 > cap(yyv4544) {
yyrg4544 := len(yyv4544) > 0
yyv24544 := yyv4544
yyrl4544, yyrt4544 = z.DecInferLen(yyl4544, z.DecBasicHandle().MaxInitLen, 488)
if yyrt4544 {
if yyrl4544 <= cap(yyv4544) {
yyv4544 = yyv4544[:yyrl4544]
} else {
yyv4544 = make([]PersistentVolume, yyrl4544)
}
} else {
yyv4544 = make([]PersistentVolume, yyrl4544)
}
yyc4544 = true
yyrr4544 = len(yyv4544)
if yyrg4544 {
copy(yyv4544, yyv24544)
}
} else if yyl4544 != len(yyv4544) {
yyv4544 = yyv4544[:yyl4544]
yyc4544 = true
}
yyj4544 := 0
for ; yyj4544 < yyrr4544; yyj4544++ {
yyh4544.ElemContainerState(yyj4544)
if r.TryDecodeAsNil() {
yyv4544[yyj4544] = PersistentVolume{}
} else {
yyv4545 := &yyv4544[yyj4544]
yyv4545.CodecDecodeSelf(d)
}
}
if yyrt4544 {
for ; yyj4544 < yyl4544; yyj4544++ {
yyv4544 = append(yyv4544, PersistentVolume{})
yyh4544.ElemContainerState(yyj4544)
if r.TryDecodeAsNil() {
yyv4544[yyj4544] = PersistentVolume{}
} else {
yyv4546 := &yyv4544[yyj4544]
yyv4546.CodecDecodeSelf(d)
}
}
}
} else {
yyj4544 := 0
for ; !r.CheckBreak(); yyj4544++ {
if yyj4544 >= len(yyv4544) {
yyv4544 = append(yyv4544, PersistentVolume{}) // var yyz4544 PersistentVolume
yyc4544 = true
}
yyh4544.ElemContainerState(yyj4544)
if yyj4544 < len(yyv4544) {
if r.TryDecodeAsNil() {
yyv4544[yyj4544] = PersistentVolume{}
} else {
yyv4547 := &yyv4544[yyj4544]
yyv4547.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4544 < len(yyv4544) {
yyv4544 = yyv4544[:yyj4544]
yyc4544 = true
} else if yyj4544 == 0 && yyv4544 == nil {
yyv4544 = []PersistentVolume{}
yyc4544 = true
}
}
yyh4544.End()
if yyc4544 {
*v = yyv4544
}
}
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 _, yyv4548 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4549 := &yyv4548
yy4549.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
yyv4550 := *v
yyh4550, yyl4550 := z.DecSliceHelperStart()
var yyc4550 bool
if yyl4550 == 0 {
if yyv4550 == nil {
yyv4550 = []PersistentVolumeClaim{}
yyc4550 = true
} else if len(yyv4550) != 0 {
yyv4550 = yyv4550[:0]
yyc4550 = true
}
} else if yyl4550 > 0 {
var yyrr4550, yyrl4550 int
var yyrt4550 bool
if yyl4550 > cap(yyv4550) {
yyrg4550 := len(yyv4550) > 0
yyv24550 := yyv4550
yyrl4550, yyrt4550 = z.DecInferLen(yyl4550, z.DecBasicHandle().MaxInitLen, 368)
if yyrt4550 {
if yyrl4550 <= cap(yyv4550) {
yyv4550 = yyv4550[:yyrl4550]
} else {
yyv4550 = make([]PersistentVolumeClaim, yyrl4550)
}
} else {
yyv4550 = make([]PersistentVolumeClaim, yyrl4550)
}
yyc4550 = true
yyrr4550 = len(yyv4550)
if yyrg4550 {
copy(yyv4550, yyv24550)
}
} else if yyl4550 != len(yyv4550) {
yyv4550 = yyv4550[:yyl4550]
yyc4550 = true
}
yyj4550 := 0
for ; yyj4550 < yyrr4550; yyj4550++ {
yyh4550.ElemContainerState(yyj4550)
if r.TryDecodeAsNil() {
yyv4550[yyj4550] = PersistentVolumeClaim{}
} else {
yyv4551 := &yyv4550[yyj4550]
yyv4551.CodecDecodeSelf(d)
}
}
if yyrt4550 {
for ; yyj4550 < yyl4550; yyj4550++ {
yyv4550 = append(yyv4550, PersistentVolumeClaim{})
yyh4550.ElemContainerState(yyj4550)
if r.TryDecodeAsNil() {
yyv4550[yyj4550] = PersistentVolumeClaim{}
} else {
yyv4552 := &yyv4550[yyj4550]
yyv4552.CodecDecodeSelf(d)
}
}
}
} else {
yyj4550 := 0
for ; !r.CheckBreak(); yyj4550++ {
if yyj4550 >= len(yyv4550) {
yyv4550 = append(yyv4550, PersistentVolumeClaim{}) // var yyz4550 PersistentVolumeClaim
yyc4550 = true
}
yyh4550.ElemContainerState(yyj4550)
if yyj4550 < len(yyv4550) {
if r.TryDecodeAsNil() {
yyv4550[yyj4550] = PersistentVolumeClaim{}
} else {
yyv4553 := &yyv4550[yyj4550]
yyv4553.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4550 < len(yyv4550) {
yyv4550 = yyv4550[:yyj4550]
yyc4550 = true
} else if yyj4550 == 0 && yyv4550 == nil {
yyv4550 = []PersistentVolumeClaim{}
yyc4550 = true
}
}
yyh4550.End()
if yyc4550 {
*v = yyv4550
}
}
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 _, yyv4554 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4555 := &yyv4554
yy4555.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
yyv4556 := *v
yyh4556, yyl4556 := z.DecSliceHelperStart()
var yyc4556 bool
if yyl4556 == 0 {
if yyv4556 == nil {
yyv4556 = []KeyToPath{}
yyc4556 = true
} else if len(yyv4556) != 0 {
yyv4556 = yyv4556[:0]
yyc4556 = true
}
} else if yyl4556 > 0 {
var yyrr4556, yyrl4556 int
var yyrt4556 bool
if yyl4556 > cap(yyv4556) {
yyrg4556 := len(yyv4556) > 0
yyv24556 := yyv4556
yyrl4556, yyrt4556 = z.DecInferLen(yyl4556, z.DecBasicHandle().MaxInitLen, 40)
if yyrt4556 {
if yyrl4556 <= cap(yyv4556) {
yyv4556 = yyv4556[:yyrl4556]
} else {
yyv4556 = make([]KeyToPath, yyrl4556)
}
} else {
yyv4556 = make([]KeyToPath, yyrl4556)
}
yyc4556 = true
yyrr4556 = len(yyv4556)
if yyrg4556 {
copy(yyv4556, yyv24556)
}
} else if yyl4556 != len(yyv4556) {
yyv4556 = yyv4556[:yyl4556]
yyc4556 = true
}
yyj4556 := 0
for ; yyj4556 < yyrr4556; yyj4556++ {
yyh4556.ElemContainerState(yyj4556)
if r.TryDecodeAsNil() {
yyv4556[yyj4556] = KeyToPath{}
} else {
yyv4557 := &yyv4556[yyj4556]
yyv4557.CodecDecodeSelf(d)
}
}
if yyrt4556 {
for ; yyj4556 < yyl4556; yyj4556++ {
yyv4556 = append(yyv4556, KeyToPath{})
yyh4556.ElemContainerState(yyj4556)
if r.TryDecodeAsNil() {
yyv4556[yyj4556] = KeyToPath{}
} else {
yyv4558 := &yyv4556[yyj4556]
yyv4558.CodecDecodeSelf(d)
}
}
}
} else {
yyj4556 := 0
for ; !r.CheckBreak(); yyj4556++ {
if yyj4556 >= len(yyv4556) {
yyv4556 = append(yyv4556, KeyToPath{}) // var yyz4556 KeyToPath
yyc4556 = true
}
yyh4556.ElemContainerState(yyj4556)
if yyj4556 < len(yyv4556) {
if r.TryDecodeAsNil() {
yyv4556[yyj4556] = KeyToPath{}
} else {
yyv4559 := &yyv4556[yyj4556]
yyv4559.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4556 < len(yyv4556) {
yyv4556 = yyv4556[:yyj4556]
yyc4556 = true
} else if yyj4556 == 0 && yyv4556 == nil {
yyv4556 = []KeyToPath{}
yyc4556 = true
}
}
yyh4556.End()
if yyc4556 {
*v = yyv4556
}
}
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 _, yyv4560 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4561 := &yyv4560
yy4561.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
yyv4562 := *v
yyh4562, yyl4562 := z.DecSliceHelperStart()
var yyc4562 bool
if yyl4562 == 0 {
if yyv4562 == nil {
yyv4562 = []DownwardAPIVolumeFile{}
yyc4562 = true
} else if len(yyv4562) != 0 {
yyv4562 = yyv4562[:0]
yyc4562 = true
}
} else if yyl4562 > 0 {
var yyrr4562, yyrl4562 int
var yyrt4562 bool
if yyl4562 > cap(yyv4562) {
yyrg4562 := len(yyv4562) > 0
yyv24562 := yyv4562
yyrl4562, yyrt4562 = z.DecInferLen(yyl4562, z.DecBasicHandle().MaxInitLen, 40)
if yyrt4562 {
if yyrl4562 <= cap(yyv4562) {
yyv4562 = yyv4562[:yyrl4562]
} else {
yyv4562 = make([]DownwardAPIVolumeFile, yyrl4562)
}
} else {
yyv4562 = make([]DownwardAPIVolumeFile, yyrl4562)
}
yyc4562 = true
yyrr4562 = len(yyv4562)
if yyrg4562 {
copy(yyv4562, yyv24562)
}
} else if yyl4562 != len(yyv4562) {
yyv4562 = yyv4562[:yyl4562]
yyc4562 = true
}
yyj4562 := 0
for ; yyj4562 < yyrr4562; yyj4562++ {
yyh4562.ElemContainerState(yyj4562)
if r.TryDecodeAsNil() {
yyv4562[yyj4562] = DownwardAPIVolumeFile{}
} else {
yyv4563 := &yyv4562[yyj4562]
yyv4563.CodecDecodeSelf(d)
}
}
if yyrt4562 {
for ; yyj4562 < yyl4562; yyj4562++ {
yyv4562 = append(yyv4562, DownwardAPIVolumeFile{})
yyh4562.ElemContainerState(yyj4562)
if r.TryDecodeAsNil() {
yyv4562[yyj4562] = DownwardAPIVolumeFile{}
} else {
yyv4564 := &yyv4562[yyj4562]
yyv4564.CodecDecodeSelf(d)
}
}
}
} else {
yyj4562 := 0
for ; !r.CheckBreak(); yyj4562++ {
if yyj4562 >= len(yyv4562) {
yyv4562 = append(yyv4562, DownwardAPIVolumeFile{}) // var yyz4562 DownwardAPIVolumeFile
yyc4562 = true
}
yyh4562.ElemContainerState(yyj4562)
if yyj4562 < len(yyv4562) {
if r.TryDecodeAsNil() {
yyv4562[yyj4562] = DownwardAPIVolumeFile{}
} else {
yyv4565 := &yyv4562[yyj4562]
yyv4565.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4562 < len(yyv4562) {
yyv4562 = yyv4562[:yyj4562]
yyc4562 = true
} else if yyj4562 == 0 && yyv4562 == nil {
yyv4562 = []DownwardAPIVolumeFile{}
yyc4562 = true
}
}
yyh4562.End()
if yyc4562 {
*v = yyv4562
}
}
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 _, yyv4566 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4567 := &yyv4566
yy4567.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
yyv4568 := *v
yyh4568, yyl4568 := z.DecSliceHelperStart()
var yyc4568 bool
if yyl4568 == 0 {
if yyv4568 == nil {
yyv4568 = []HTTPHeader{}
yyc4568 = true
} else if len(yyv4568) != 0 {
yyv4568 = yyv4568[:0]
yyc4568 = true
}
} else if yyl4568 > 0 {
var yyrr4568, yyrl4568 int
var yyrt4568 bool
if yyl4568 > cap(yyv4568) {
yyrg4568 := len(yyv4568) > 0
yyv24568 := yyv4568
yyrl4568, yyrt4568 = z.DecInferLen(yyl4568, z.DecBasicHandle().MaxInitLen, 32)
if yyrt4568 {
if yyrl4568 <= cap(yyv4568) {
yyv4568 = yyv4568[:yyrl4568]
} else {
yyv4568 = make([]HTTPHeader, yyrl4568)
}
} else {
yyv4568 = make([]HTTPHeader, yyrl4568)
}
yyc4568 = true
yyrr4568 = len(yyv4568)
if yyrg4568 {
copy(yyv4568, yyv24568)
}
} else if yyl4568 != len(yyv4568) {
yyv4568 = yyv4568[:yyl4568]
yyc4568 = true
}
yyj4568 := 0
for ; yyj4568 < yyrr4568; yyj4568++ {
yyh4568.ElemContainerState(yyj4568)
if r.TryDecodeAsNil() {
yyv4568[yyj4568] = HTTPHeader{}
} else {
yyv4569 := &yyv4568[yyj4568]
yyv4569.CodecDecodeSelf(d)
}
}
if yyrt4568 {
for ; yyj4568 < yyl4568; yyj4568++ {
yyv4568 = append(yyv4568, HTTPHeader{})
yyh4568.ElemContainerState(yyj4568)
if r.TryDecodeAsNil() {
yyv4568[yyj4568] = HTTPHeader{}
} else {
yyv4570 := &yyv4568[yyj4568]
yyv4570.CodecDecodeSelf(d)
}
}
}
} else {
yyj4568 := 0
for ; !r.CheckBreak(); yyj4568++ {
if yyj4568 >= len(yyv4568) {
yyv4568 = append(yyv4568, HTTPHeader{}) // var yyz4568 HTTPHeader
yyc4568 = true
}
yyh4568.ElemContainerState(yyj4568)
if yyj4568 < len(yyv4568) {
if r.TryDecodeAsNil() {
yyv4568[yyj4568] = HTTPHeader{}
} else {
yyv4571 := &yyv4568[yyj4568]
yyv4571.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4568 < len(yyv4568) {
yyv4568 = yyv4568[:yyj4568]
yyc4568 = true
} else if yyj4568 == 0 && yyv4568 == nil {
yyv4568 = []HTTPHeader{}
yyc4568 = true
}
}
yyh4568.End()
if yyc4568 {
*v = yyv4568
}
}
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 _, yyv4572 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yyv4572.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
yyv4573 := *v
yyh4573, yyl4573 := z.DecSliceHelperStart()
var yyc4573 bool
if yyl4573 == 0 {
if yyv4573 == nil {
yyv4573 = []Capability{}
yyc4573 = true
} else if len(yyv4573) != 0 {
yyv4573 = yyv4573[:0]
yyc4573 = true
}
} else if yyl4573 > 0 {
var yyrr4573, yyrl4573 int
var yyrt4573 bool
if yyl4573 > cap(yyv4573) {
yyrl4573, yyrt4573 = z.DecInferLen(yyl4573, z.DecBasicHandle().MaxInitLen, 16)
if yyrt4573 {
if yyrl4573 <= cap(yyv4573) {
yyv4573 = yyv4573[:yyrl4573]
} else {
yyv4573 = make([]Capability, yyrl4573)
}
} else {
yyv4573 = make([]Capability, yyrl4573)
}
yyc4573 = true
yyrr4573 = len(yyv4573)
} else if yyl4573 != len(yyv4573) {
yyv4573 = yyv4573[:yyl4573]
yyc4573 = true
}
yyj4573 := 0
for ; yyj4573 < yyrr4573; yyj4573++ {
yyh4573.ElemContainerState(yyj4573)
if r.TryDecodeAsNil() {
yyv4573[yyj4573] = ""
} else {
yyv4573[yyj4573] = Capability(r.DecodeString())
}
}
if yyrt4573 {
for ; yyj4573 < yyl4573; yyj4573++ {
yyv4573 = append(yyv4573, "")
yyh4573.ElemContainerState(yyj4573)
if r.TryDecodeAsNil() {
yyv4573[yyj4573] = ""
} else {
yyv4573[yyj4573] = Capability(r.DecodeString())
}
}
}
} else {
yyj4573 := 0
for ; !r.CheckBreak(); yyj4573++ {
if yyj4573 >= len(yyv4573) {
yyv4573 = append(yyv4573, "") // var yyz4573 Capability
yyc4573 = true
}
yyh4573.ElemContainerState(yyj4573)
if yyj4573 < len(yyv4573) {
if r.TryDecodeAsNil() {
yyv4573[yyj4573] = ""
} else {
yyv4573[yyj4573] = Capability(r.DecodeString())
}
} else {
z.DecSwallow()
}
}
if yyj4573 < len(yyv4573) {
yyv4573 = yyv4573[:yyj4573]
yyc4573 = true
} else if yyj4573 == 0 && yyv4573 == nil {
yyv4573 = []Capability{}
yyc4573 = true
}
}
yyh4573.End()
if yyc4573 {
*v = yyv4573
}
}
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 _, yyv4577 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4578 := &yyv4577
yy4578.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
yyv4579 := *v
yyh4579, yyl4579 := z.DecSliceHelperStart()
var yyc4579 bool
if yyl4579 == 0 {
if yyv4579 == nil {
yyv4579 = []ContainerPort{}
yyc4579 = true
} else if len(yyv4579) != 0 {
yyv4579 = yyv4579[:0]
yyc4579 = true
}
} else if yyl4579 > 0 {
var yyrr4579, yyrl4579 int
var yyrt4579 bool
if yyl4579 > cap(yyv4579) {
yyrg4579 := len(yyv4579) > 0
yyv24579 := yyv4579
yyrl4579, yyrt4579 = z.DecInferLen(yyl4579, z.DecBasicHandle().MaxInitLen, 56)
if yyrt4579 {
if yyrl4579 <= cap(yyv4579) {
yyv4579 = yyv4579[:yyrl4579]
} else {
yyv4579 = make([]ContainerPort, yyrl4579)
}
} else {
yyv4579 = make([]ContainerPort, yyrl4579)
}
yyc4579 = true
yyrr4579 = len(yyv4579)
if yyrg4579 {
copy(yyv4579, yyv24579)
}
} else if yyl4579 != len(yyv4579) {
yyv4579 = yyv4579[:yyl4579]
yyc4579 = true
}
yyj4579 := 0
for ; yyj4579 < yyrr4579; yyj4579++ {
yyh4579.ElemContainerState(yyj4579)
if r.TryDecodeAsNil() {
yyv4579[yyj4579] = ContainerPort{}
} else {
yyv4580 := &yyv4579[yyj4579]
yyv4580.CodecDecodeSelf(d)
}
}
if yyrt4579 {
for ; yyj4579 < yyl4579; yyj4579++ {
yyv4579 = append(yyv4579, ContainerPort{})
yyh4579.ElemContainerState(yyj4579)
if r.TryDecodeAsNil() {
yyv4579[yyj4579] = ContainerPort{}
} else {
yyv4581 := &yyv4579[yyj4579]
yyv4581.CodecDecodeSelf(d)
}
}
}
} else {
yyj4579 := 0
for ; !r.CheckBreak(); yyj4579++ {
if yyj4579 >= len(yyv4579) {
yyv4579 = append(yyv4579, ContainerPort{}) // var yyz4579 ContainerPort
yyc4579 = true
}
yyh4579.ElemContainerState(yyj4579)
if yyj4579 < len(yyv4579) {
if r.TryDecodeAsNil() {
yyv4579[yyj4579] = ContainerPort{}
} else {
yyv4582 := &yyv4579[yyj4579]
yyv4582.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4579 < len(yyv4579) {
yyv4579 = yyv4579[:yyj4579]
yyc4579 = true
} else if yyj4579 == 0 && yyv4579 == nil {
yyv4579 = []ContainerPort{}
yyc4579 = true
}
}
yyh4579.End()
if yyc4579 {
*v = yyv4579
}
}
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 _, yyv4583 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4584 := &yyv4583
yy4584.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
yyv4585 := *v
yyh4585, yyl4585 := z.DecSliceHelperStart()
var yyc4585 bool
if yyl4585 == 0 {
if yyv4585 == nil {
yyv4585 = []EnvVar{}
yyc4585 = true
} else if len(yyv4585) != 0 {
yyv4585 = yyv4585[:0]
yyc4585 = true
}
} else if yyl4585 > 0 {
var yyrr4585, yyrl4585 int
var yyrt4585 bool
if yyl4585 > cap(yyv4585) {
yyrg4585 := len(yyv4585) > 0
yyv24585 := yyv4585
yyrl4585, yyrt4585 = z.DecInferLen(yyl4585, z.DecBasicHandle().MaxInitLen, 40)
if yyrt4585 {
if yyrl4585 <= cap(yyv4585) {
yyv4585 = yyv4585[:yyrl4585]
} else {
yyv4585 = make([]EnvVar, yyrl4585)
}
} else {
yyv4585 = make([]EnvVar, yyrl4585)
}
yyc4585 = true
yyrr4585 = len(yyv4585)
if yyrg4585 {
copy(yyv4585, yyv24585)
}
} else if yyl4585 != len(yyv4585) {
yyv4585 = yyv4585[:yyl4585]
yyc4585 = true
}
yyj4585 := 0
for ; yyj4585 < yyrr4585; yyj4585++ {
yyh4585.ElemContainerState(yyj4585)
if r.TryDecodeAsNil() {
yyv4585[yyj4585] = EnvVar{}
} else {
yyv4586 := &yyv4585[yyj4585]
yyv4586.CodecDecodeSelf(d)
}
}
if yyrt4585 {
for ; yyj4585 < yyl4585; yyj4585++ {
yyv4585 = append(yyv4585, EnvVar{})
yyh4585.ElemContainerState(yyj4585)
if r.TryDecodeAsNil() {
yyv4585[yyj4585] = EnvVar{}
} else {
yyv4587 := &yyv4585[yyj4585]
yyv4587.CodecDecodeSelf(d)
}
}
}
} else {
yyj4585 := 0
for ; !r.CheckBreak(); yyj4585++ {
if yyj4585 >= len(yyv4585) {
yyv4585 = append(yyv4585, EnvVar{}) // var yyz4585 EnvVar
yyc4585 = true
}
yyh4585.ElemContainerState(yyj4585)
if yyj4585 < len(yyv4585) {
if r.TryDecodeAsNil() {
yyv4585[yyj4585] = EnvVar{}
} else {
yyv4588 := &yyv4585[yyj4585]
yyv4588.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4585 < len(yyv4585) {
yyv4585 = yyv4585[:yyj4585]
yyc4585 = true
} else if yyj4585 == 0 && yyv4585 == nil {
yyv4585 = []EnvVar{}
yyc4585 = true
}
}
yyh4585.End()
if yyc4585 {
*v = yyv4585
}
}
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 _, yyv4589 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4590 := &yyv4589
yy4590.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
yyv4591 := *v
yyh4591, yyl4591 := z.DecSliceHelperStart()
var yyc4591 bool
if yyl4591 == 0 {
if yyv4591 == nil {
yyv4591 = []VolumeMount{}
yyc4591 = true
} else if len(yyv4591) != 0 {
yyv4591 = yyv4591[:0]
yyc4591 = true
}
} else if yyl4591 > 0 {
var yyrr4591, yyrl4591 int
var yyrt4591 bool
if yyl4591 > cap(yyv4591) {
yyrg4591 := len(yyv4591) > 0
yyv24591 := yyv4591
yyrl4591, yyrt4591 = z.DecInferLen(yyl4591, z.DecBasicHandle().MaxInitLen, 56)
if yyrt4591 {
if yyrl4591 <= cap(yyv4591) {
yyv4591 = yyv4591[:yyrl4591]
} else {
yyv4591 = make([]VolumeMount, yyrl4591)
}
} else {
yyv4591 = make([]VolumeMount, yyrl4591)
}
yyc4591 = true
yyrr4591 = len(yyv4591)
if yyrg4591 {
copy(yyv4591, yyv24591)
}
} else if yyl4591 != len(yyv4591) {
yyv4591 = yyv4591[:yyl4591]
yyc4591 = true
}
yyj4591 := 0
for ; yyj4591 < yyrr4591; yyj4591++ {
yyh4591.ElemContainerState(yyj4591)
if r.TryDecodeAsNil() {
yyv4591[yyj4591] = VolumeMount{}
} else {
yyv4592 := &yyv4591[yyj4591]
yyv4592.CodecDecodeSelf(d)
}
}
if yyrt4591 {
for ; yyj4591 < yyl4591; yyj4591++ {
yyv4591 = append(yyv4591, VolumeMount{})
yyh4591.ElemContainerState(yyj4591)
if r.TryDecodeAsNil() {
yyv4591[yyj4591] = VolumeMount{}
} else {
yyv4593 := &yyv4591[yyj4591]
yyv4593.CodecDecodeSelf(d)
}
}
}
} else {
yyj4591 := 0
for ; !r.CheckBreak(); yyj4591++ {
if yyj4591 >= len(yyv4591) {
yyv4591 = append(yyv4591, VolumeMount{}) // var yyz4591 VolumeMount
yyc4591 = true
}
yyh4591.ElemContainerState(yyj4591)
if yyj4591 < len(yyv4591) {
if r.TryDecodeAsNil() {
yyv4591[yyj4591] = VolumeMount{}
} else {
yyv4594 := &yyv4591[yyj4591]
yyv4594.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4591 < len(yyv4591) {
yyv4591 = yyv4591[:yyj4591]
yyc4591 = true
} else if yyj4591 == 0 && yyv4591 == nil {
yyv4591 = []VolumeMount{}
yyc4591 = true
}
}
yyh4591.End()
if yyc4591 {
*v = yyv4591
}
}
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 _, yyv4595 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4596 := &yyv4595
yy4596.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
yyv4597 := *v
yyh4597, yyl4597 := z.DecSliceHelperStart()
var yyc4597 bool
if yyl4597 == 0 {
if yyv4597 == nil {
yyv4597 = []Pod{}
yyc4597 = true
} else if len(yyv4597) != 0 {
yyv4597 = yyv4597[:0]
yyc4597 = true
}
} else if yyl4597 > 0 {
var yyrr4597, yyrl4597 int
var yyrt4597 bool
if yyl4597 > cap(yyv4597) {
yyrg4597 := len(yyv4597) > 0
yyv24597 := yyv4597
yyrl4597, yyrt4597 = z.DecInferLen(yyl4597, z.DecBasicHandle().MaxInitLen, 640)
if yyrt4597 {
if yyrl4597 <= cap(yyv4597) {
yyv4597 = yyv4597[:yyrl4597]
} else {
yyv4597 = make([]Pod, yyrl4597)
}
} else {
yyv4597 = make([]Pod, yyrl4597)
}
yyc4597 = true
yyrr4597 = len(yyv4597)
if yyrg4597 {
copy(yyv4597, yyv24597)
}
} else if yyl4597 != len(yyv4597) {
yyv4597 = yyv4597[:yyl4597]
yyc4597 = true
}
yyj4597 := 0
for ; yyj4597 < yyrr4597; yyj4597++ {
yyh4597.ElemContainerState(yyj4597)
if r.TryDecodeAsNil() {
yyv4597[yyj4597] = Pod{}
} else {
yyv4598 := &yyv4597[yyj4597]
yyv4598.CodecDecodeSelf(d)
}
}
if yyrt4597 {
for ; yyj4597 < yyl4597; yyj4597++ {
yyv4597 = append(yyv4597, Pod{})
yyh4597.ElemContainerState(yyj4597)
if r.TryDecodeAsNil() {
yyv4597[yyj4597] = Pod{}
} else {
yyv4599 := &yyv4597[yyj4597]
yyv4599.CodecDecodeSelf(d)
}
}
}
} else {
yyj4597 := 0
for ; !r.CheckBreak(); yyj4597++ {
if yyj4597 >= len(yyv4597) {
yyv4597 = append(yyv4597, Pod{}) // var yyz4597 Pod
yyc4597 = true
}
yyh4597.ElemContainerState(yyj4597)
if yyj4597 < len(yyv4597) {
if r.TryDecodeAsNil() {
yyv4597[yyj4597] = Pod{}
} else {
yyv4600 := &yyv4597[yyj4597]
yyv4600.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4597 < len(yyv4597) {
yyv4597 = yyv4597[:yyj4597]
yyc4597 = true
} else if yyj4597 == 0 && yyv4597 == nil {
yyv4597 = []Pod{}
yyc4597 = true
}
}
yyh4597.End()
if yyc4597 {
*v = yyv4597
}
}
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 _, yyv4601 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4602 := &yyv4601
yy4602.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
yyv4603 := *v
yyh4603, yyl4603 := z.DecSliceHelperStart()
var yyc4603 bool
if yyl4603 == 0 {
if yyv4603 == nil {
yyv4603 = []NodeSelectorTerm{}
yyc4603 = true
} else if len(yyv4603) != 0 {
yyv4603 = yyv4603[:0]
yyc4603 = true
}
} else if yyl4603 > 0 {
var yyrr4603, yyrl4603 int
var yyrt4603 bool
if yyl4603 > cap(yyv4603) {
yyrg4603 := len(yyv4603) > 0
yyv24603 := yyv4603
yyrl4603, yyrt4603 = z.DecInferLen(yyl4603, z.DecBasicHandle().MaxInitLen, 24)
if yyrt4603 {
if yyrl4603 <= cap(yyv4603) {
yyv4603 = yyv4603[:yyrl4603]
} else {
yyv4603 = make([]NodeSelectorTerm, yyrl4603)
}
} else {
yyv4603 = make([]NodeSelectorTerm, yyrl4603)
}
yyc4603 = true
yyrr4603 = len(yyv4603)
if yyrg4603 {
copy(yyv4603, yyv24603)
}
} else if yyl4603 != len(yyv4603) {
yyv4603 = yyv4603[:yyl4603]
yyc4603 = true
}
yyj4603 := 0
for ; yyj4603 < yyrr4603; yyj4603++ {
yyh4603.ElemContainerState(yyj4603)
if r.TryDecodeAsNil() {
yyv4603[yyj4603] = NodeSelectorTerm{}
} else {
yyv4604 := &yyv4603[yyj4603]
yyv4604.CodecDecodeSelf(d)
}
}
if yyrt4603 {
for ; yyj4603 < yyl4603; yyj4603++ {
yyv4603 = append(yyv4603, NodeSelectorTerm{})
yyh4603.ElemContainerState(yyj4603)
if r.TryDecodeAsNil() {
yyv4603[yyj4603] = NodeSelectorTerm{}
} else {
yyv4605 := &yyv4603[yyj4603]
yyv4605.CodecDecodeSelf(d)
}
}
}
} else {
yyj4603 := 0
for ; !r.CheckBreak(); yyj4603++ {
if yyj4603 >= len(yyv4603) {
yyv4603 = append(yyv4603, NodeSelectorTerm{}) // var yyz4603 NodeSelectorTerm
yyc4603 = true
}
yyh4603.ElemContainerState(yyj4603)
if yyj4603 < len(yyv4603) {
if r.TryDecodeAsNil() {
yyv4603[yyj4603] = NodeSelectorTerm{}
} else {
yyv4606 := &yyv4603[yyj4603]
yyv4606.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4603 < len(yyv4603) {
yyv4603 = yyv4603[:yyj4603]
yyc4603 = true
} else if yyj4603 == 0 && yyv4603 == nil {
yyv4603 = []NodeSelectorTerm{}
yyc4603 = true
}
}
yyh4603.End()
if yyc4603 {
*v = yyv4603
}
}
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 _, yyv4607 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4608 := &yyv4607
yy4608.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
yyv4609 := *v
yyh4609, yyl4609 := z.DecSliceHelperStart()
var yyc4609 bool
if yyl4609 == 0 {
if yyv4609 == nil {
yyv4609 = []NodeSelectorRequirement{}
yyc4609 = true
} else if len(yyv4609) != 0 {
yyv4609 = yyv4609[:0]
yyc4609 = true
}
} else if yyl4609 > 0 {
var yyrr4609, yyrl4609 int
var yyrt4609 bool
if yyl4609 > cap(yyv4609) {
yyrg4609 := len(yyv4609) > 0
yyv24609 := yyv4609
yyrl4609, yyrt4609 = z.DecInferLen(yyl4609, z.DecBasicHandle().MaxInitLen, 56)
if yyrt4609 {
if yyrl4609 <= cap(yyv4609) {
yyv4609 = yyv4609[:yyrl4609]
} else {
yyv4609 = make([]NodeSelectorRequirement, yyrl4609)
}
} else {
yyv4609 = make([]NodeSelectorRequirement, yyrl4609)
}
yyc4609 = true
yyrr4609 = len(yyv4609)
if yyrg4609 {
copy(yyv4609, yyv24609)
}
} else if yyl4609 != len(yyv4609) {
yyv4609 = yyv4609[:yyl4609]
yyc4609 = true
}
yyj4609 := 0
for ; yyj4609 < yyrr4609; yyj4609++ {
yyh4609.ElemContainerState(yyj4609)
if r.TryDecodeAsNil() {
yyv4609[yyj4609] = NodeSelectorRequirement{}
} else {
yyv4610 := &yyv4609[yyj4609]
yyv4610.CodecDecodeSelf(d)
}
}
if yyrt4609 {
for ; yyj4609 < yyl4609; yyj4609++ {
yyv4609 = append(yyv4609, NodeSelectorRequirement{})
yyh4609.ElemContainerState(yyj4609)
if r.TryDecodeAsNil() {
yyv4609[yyj4609] = NodeSelectorRequirement{}
} else {
yyv4611 := &yyv4609[yyj4609]
yyv4611.CodecDecodeSelf(d)
}
}
}
} else {
yyj4609 := 0
for ; !r.CheckBreak(); yyj4609++ {
if yyj4609 >= len(yyv4609) {
yyv4609 = append(yyv4609, NodeSelectorRequirement{}) // var yyz4609 NodeSelectorRequirement
yyc4609 = true
}
yyh4609.ElemContainerState(yyj4609)
if yyj4609 < len(yyv4609) {
if r.TryDecodeAsNil() {
yyv4609[yyj4609] = NodeSelectorRequirement{}
} else {
yyv4612 := &yyv4609[yyj4609]
yyv4612.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4609 < len(yyv4609) {
yyv4609 = yyv4609[:yyj4609]
yyc4609 = true
} else if yyj4609 == 0 && yyv4609 == nil {
yyv4609 = []NodeSelectorRequirement{}
yyc4609 = true
}
}
yyh4609.End()
if yyc4609 {
*v = yyv4609
}
}
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 _, yyv4613 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4614 := &yyv4613
yy4614.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
yyv4615 := *v
yyh4615, yyl4615 := z.DecSliceHelperStart()
var yyc4615 bool
if yyl4615 == 0 {
if yyv4615 == nil {
yyv4615 = []PodAffinityTerm{}
yyc4615 = true
} else if len(yyv4615) != 0 {
yyv4615 = yyv4615[:0]
yyc4615 = true
}
} else if yyl4615 > 0 {
var yyrr4615, yyrl4615 int
var yyrt4615 bool
if yyl4615 > cap(yyv4615) {
yyrg4615 := len(yyv4615) > 0
yyv24615 := yyv4615
yyrl4615, yyrt4615 = z.DecInferLen(yyl4615, z.DecBasicHandle().MaxInitLen, 48)
if yyrt4615 {
if yyrl4615 <= cap(yyv4615) {
yyv4615 = yyv4615[:yyrl4615]
} else {
yyv4615 = make([]PodAffinityTerm, yyrl4615)
}
} else {
yyv4615 = make([]PodAffinityTerm, yyrl4615)
}
yyc4615 = true
yyrr4615 = len(yyv4615)
if yyrg4615 {
copy(yyv4615, yyv24615)
}
} else if yyl4615 != len(yyv4615) {
yyv4615 = yyv4615[:yyl4615]
yyc4615 = true
}
yyj4615 := 0
for ; yyj4615 < yyrr4615; yyj4615++ {
yyh4615.ElemContainerState(yyj4615)
if r.TryDecodeAsNil() {
yyv4615[yyj4615] = PodAffinityTerm{}
} else {
yyv4616 := &yyv4615[yyj4615]
yyv4616.CodecDecodeSelf(d)
}
}
if yyrt4615 {
for ; yyj4615 < yyl4615; yyj4615++ {
yyv4615 = append(yyv4615, PodAffinityTerm{})
yyh4615.ElemContainerState(yyj4615)
if r.TryDecodeAsNil() {
yyv4615[yyj4615] = PodAffinityTerm{}
} else {
yyv4617 := &yyv4615[yyj4615]
yyv4617.CodecDecodeSelf(d)
}
}
}
} else {
yyj4615 := 0
for ; !r.CheckBreak(); yyj4615++ {
if yyj4615 >= len(yyv4615) {
yyv4615 = append(yyv4615, PodAffinityTerm{}) // var yyz4615 PodAffinityTerm
yyc4615 = true
}
yyh4615.ElemContainerState(yyj4615)
if yyj4615 < len(yyv4615) {
if r.TryDecodeAsNil() {
yyv4615[yyj4615] = PodAffinityTerm{}
} else {
yyv4618 := &yyv4615[yyj4615]
yyv4618.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4615 < len(yyv4615) {
yyv4615 = yyv4615[:yyj4615]
yyc4615 = true
} else if yyj4615 == 0 && yyv4615 == nil {
yyv4615 = []PodAffinityTerm{}
yyc4615 = true
}
}
yyh4615.End()
if yyc4615 {
*v = yyv4615
}
}
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 _, yyv4619 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4620 := &yyv4619
yy4620.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
yyv4621 := *v
yyh4621, yyl4621 := z.DecSliceHelperStart()
var yyc4621 bool
if yyl4621 == 0 {
if yyv4621 == nil {
yyv4621 = []WeightedPodAffinityTerm{}
yyc4621 = true
} else if len(yyv4621) != 0 {
yyv4621 = yyv4621[:0]
yyc4621 = true
}
} else if yyl4621 > 0 {
var yyrr4621, yyrl4621 int
var yyrt4621 bool
if yyl4621 > cap(yyv4621) {
yyrg4621 := len(yyv4621) > 0
yyv24621 := yyv4621
yyrl4621, yyrt4621 = z.DecInferLen(yyl4621, z.DecBasicHandle().MaxInitLen, 56)
if yyrt4621 {
if yyrl4621 <= cap(yyv4621) {
yyv4621 = yyv4621[:yyrl4621]
} else {
yyv4621 = make([]WeightedPodAffinityTerm, yyrl4621)
}
} else {
yyv4621 = make([]WeightedPodAffinityTerm, yyrl4621)
}
yyc4621 = true
yyrr4621 = len(yyv4621)
if yyrg4621 {
copy(yyv4621, yyv24621)
}
} else if yyl4621 != len(yyv4621) {
yyv4621 = yyv4621[:yyl4621]
yyc4621 = true
}
yyj4621 := 0
for ; yyj4621 < yyrr4621; yyj4621++ {
yyh4621.ElemContainerState(yyj4621)
if r.TryDecodeAsNil() {
yyv4621[yyj4621] = WeightedPodAffinityTerm{}
} else {
yyv4622 := &yyv4621[yyj4621]
yyv4622.CodecDecodeSelf(d)
}
}
if yyrt4621 {
for ; yyj4621 < yyl4621; yyj4621++ {
yyv4621 = append(yyv4621, WeightedPodAffinityTerm{})
yyh4621.ElemContainerState(yyj4621)
if r.TryDecodeAsNil() {
yyv4621[yyj4621] = WeightedPodAffinityTerm{}
} else {
yyv4623 := &yyv4621[yyj4621]
yyv4623.CodecDecodeSelf(d)
}
}
}
} else {
yyj4621 := 0
for ; !r.CheckBreak(); yyj4621++ {
if yyj4621 >= len(yyv4621) {
yyv4621 = append(yyv4621, WeightedPodAffinityTerm{}) // var yyz4621 WeightedPodAffinityTerm
yyc4621 = true
}
yyh4621.ElemContainerState(yyj4621)
if yyj4621 < len(yyv4621) {
if r.TryDecodeAsNil() {
yyv4621[yyj4621] = WeightedPodAffinityTerm{}
} else {
yyv4624 := &yyv4621[yyj4621]
yyv4624.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4621 < len(yyv4621) {
yyv4621 = yyv4621[:yyj4621]
yyc4621 = true
} else if yyj4621 == 0 && yyv4621 == nil {
yyv4621 = []WeightedPodAffinityTerm{}
yyc4621 = true
}
}
yyh4621.End()
if yyc4621 {
*v = yyv4621
}
}
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 _, yyv4625 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4626 := &yyv4625
yy4626.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
yyv4627 := *v
yyh4627, yyl4627 := z.DecSliceHelperStart()
var yyc4627 bool
if yyl4627 == 0 {
if yyv4627 == nil {
yyv4627 = []PreferredSchedulingTerm{}
yyc4627 = true
} else if len(yyv4627) != 0 {
yyv4627 = yyv4627[:0]
yyc4627 = true
}
} else if yyl4627 > 0 {
var yyrr4627, yyrl4627 int
var yyrt4627 bool
if yyl4627 > cap(yyv4627) {
yyrg4627 := len(yyv4627) > 0
yyv24627 := yyv4627
yyrl4627, yyrt4627 = z.DecInferLen(yyl4627, z.DecBasicHandle().MaxInitLen, 32)
if yyrt4627 {
if yyrl4627 <= cap(yyv4627) {
yyv4627 = yyv4627[:yyrl4627]
} else {
yyv4627 = make([]PreferredSchedulingTerm, yyrl4627)
}
} else {
yyv4627 = make([]PreferredSchedulingTerm, yyrl4627)
}
yyc4627 = true
yyrr4627 = len(yyv4627)
if yyrg4627 {
copy(yyv4627, yyv24627)
}
} else if yyl4627 != len(yyv4627) {
yyv4627 = yyv4627[:yyl4627]
yyc4627 = true
}
yyj4627 := 0
for ; yyj4627 < yyrr4627; yyj4627++ {
yyh4627.ElemContainerState(yyj4627)
if r.TryDecodeAsNil() {
yyv4627[yyj4627] = PreferredSchedulingTerm{}
} else {
yyv4628 := &yyv4627[yyj4627]
yyv4628.CodecDecodeSelf(d)
}
}
if yyrt4627 {
for ; yyj4627 < yyl4627; yyj4627++ {
yyv4627 = append(yyv4627, PreferredSchedulingTerm{})
yyh4627.ElemContainerState(yyj4627)
if r.TryDecodeAsNil() {
yyv4627[yyj4627] = PreferredSchedulingTerm{}
} else {
yyv4629 := &yyv4627[yyj4627]
yyv4629.CodecDecodeSelf(d)
}
}
}
} else {
yyj4627 := 0
for ; !r.CheckBreak(); yyj4627++ {
if yyj4627 >= len(yyv4627) {
yyv4627 = append(yyv4627, PreferredSchedulingTerm{}) // var yyz4627 PreferredSchedulingTerm
yyc4627 = true
}
yyh4627.ElemContainerState(yyj4627)
if yyj4627 < len(yyv4627) {
if r.TryDecodeAsNil() {
yyv4627[yyj4627] = PreferredSchedulingTerm{}
} else {
yyv4630 := &yyv4627[yyj4627]
yyv4630.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4627 < len(yyv4627) {
yyv4627 = yyv4627[:yyj4627]
yyc4627 = true
} else if yyj4627 == 0 && yyv4627 == nil {
yyv4627 = []PreferredSchedulingTerm{}
yyc4627 = true
}
}
yyh4627.End()
if yyc4627 {
*v = yyv4627
}
}
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 _, yyv4631 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4632 := &yyv4631
yy4632.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
yyv4633 := *v
yyh4633, yyl4633 := z.DecSliceHelperStart()
var yyc4633 bool
if yyl4633 == 0 {
if yyv4633 == nil {
yyv4633 = []Volume{}
yyc4633 = true
} else if len(yyv4633) != 0 {
yyv4633 = yyv4633[:0]
yyc4633 = true
}
} else if yyl4633 > 0 {
var yyrr4633, yyrl4633 int
var yyrt4633 bool
if yyl4633 > cap(yyv4633) {
yyrg4633 := len(yyv4633) > 0
yyv24633 := yyv4633
yyrl4633, yyrt4633 = z.DecInferLen(yyl4633, z.DecBasicHandle().MaxInitLen, 192)
if yyrt4633 {
if yyrl4633 <= cap(yyv4633) {
yyv4633 = yyv4633[:yyrl4633]
} else {
yyv4633 = make([]Volume, yyrl4633)
}
} else {
yyv4633 = make([]Volume, yyrl4633)
}
yyc4633 = true
yyrr4633 = len(yyv4633)
if yyrg4633 {
copy(yyv4633, yyv24633)
}
} else if yyl4633 != len(yyv4633) {
yyv4633 = yyv4633[:yyl4633]
yyc4633 = true
}
yyj4633 := 0
for ; yyj4633 < yyrr4633; yyj4633++ {
yyh4633.ElemContainerState(yyj4633)
if r.TryDecodeAsNil() {
yyv4633[yyj4633] = Volume{}
} else {
yyv4634 := &yyv4633[yyj4633]
yyv4634.CodecDecodeSelf(d)
}
}
if yyrt4633 {
for ; yyj4633 < yyl4633; yyj4633++ {
yyv4633 = append(yyv4633, Volume{})
yyh4633.ElemContainerState(yyj4633)
if r.TryDecodeAsNil() {
yyv4633[yyj4633] = Volume{}
} else {
yyv4635 := &yyv4633[yyj4633]
yyv4635.CodecDecodeSelf(d)
}
}
}
} else {
yyj4633 := 0
for ; !r.CheckBreak(); yyj4633++ {
if yyj4633 >= len(yyv4633) {
yyv4633 = append(yyv4633, Volume{}) // var yyz4633 Volume
yyc4633 = true
}
yyh4633.ElemContainerState(yyj4633)
if yyj4633 < len(yyv4633) {
if r.TryDecodeAsNil() {
yyv4633[yyj4633] = Volume{}
} else {
yyv4636 := &yyv4633[yyj4633]
yyv4636.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4633 < len(yyv4633) {
yyv4633 = yyv4633[:yyj4633]
yyc4633 = true
} else if yyj4633 == 0 && yyv4633 == nil {
yyv4633 = []Volume{}
yyc4633 = true
}
}
yyh4633.End()
if yyc4633 {
*v = yyv4633
}
}
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 _, yyv4637 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4638 := &yyv4637
yy4638.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
yyv4639 := *v
yyh4639, yyl4639 := z.DecSliceHelperStart()
var yyc4639 bool
if yyl4639 == 0 {
if yyv4639 == nil {
yyv4639 = []Container{}
yyc4639 = true
} else if len(yyv4639) != 0 {
yyv4639 = yyv4639[:0]
yyc4639 = true
}
} else if yyl4639 > 0 {
var yyrr4639, yyrl4639 int
var yyrt4639 bool
if yyl4639 > cap(yyv4639) {
yyrg4639 := len(yyv4639) > 0
yyv24639 := yyv4639
yyrl4639, yyrt4639 = z.DecInferLen(yyl4639, z.DecBasicHandle().MaxInitLen, 256)
if yyrt4639 {
if yyrl4639 <= cap(yyv4639) {
yyv4639 = yyv4639[:yyrl4639]
} else {
yyv4639 = make([]Container, yyrl4639)
}
} else {
yyv4639 = make([]Container, yyrl4639)
}
yyc4639 = true
yyrr4639 = len(yyv4639)
if yyrg4639 {
copy(yyv4639, yyv24639)
}
} else if yyl4639 != len(yyv4639) {
yyv4639 = yyv4639[:yyl4639]
yyc4639 = true
}
yyj4639 := 0
for ; yyj4639 < yyrr4639; yyj4639++ {
yyh4639.ElemContainerState(yyj4639)
if r.TryDecodeAsNil() {
yyv4639[yyj4639] = Container{}
} else {
yyv4640 := &yyv4639[yyj4639]
yyv4640.CodecDecodeSelf(d)
}
}
if yyrt4639 {
for ; yyj4639 < yyl4639; yyj4639++ {
yyv4639 = append(yyv4639, Container{})
yyh4639.ElemContainerState(yyj4639)
if r.TryDecodeAsNil() {
yyv4639[yyj4639] = Container{}
} else {
yyv4641 := &yyv4639[yyj4639]
yyv4641.CodecDecodeSelf(d)
}
}
}
} else {
yyj4639 := 0
for ; !r.CheckBreak(); yyj4639++ {
if yyj4639 >= len(yyv4639) {
yyv4639 = append(yyv4639, Container{}) // var yyz4639 Container
yyc4639 = true
}
yyh4639.ElemContainerState(yyj4639)
if yyj4639 < len(yyv4639) {
if r.TryDecodeAsNil() {
yyv4639[yyj4639] = Container{}
} else {
yyv4642 := &yyv4639[yyj4639]
yyv4642.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4639 < len(yyv4639) {
yyv4639 = yyv4639[:yyj4639]
yyc4639 = true
} else if yyj4639 == 0 && yyv4639 == nil {
yyv4639 = []Container{}
yyc4639 = true
}
}
yyh4639.End()
if yyc4639 {
*v = yyv4639
}
}
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 _, yyv4643 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4644 := &yyv4643
yy4644.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
yyv4645 := *v
yyh4645, yyl4645 := z.DecSliceHelperStart()
var yyc4645 bool
if yyl4645 == 0 {
if yyv4645 == nil {
yyv4645 = []LocalObjectReference{}
yyc4645 = true
} else if len(yyv4645) != 0 {
yyv4645 = yyv4645[:0]
yyc4645 = true
}
} else if yyl4645 > 0 {
var yyrr4645, yyrl4645 int
var yyrt4645 bool
if yyl4645 > cap(yyv4645) {
yyrg4645 := len(yyv4645) > 0
yyv24645 := yyv4645
yyrl4645, yyrt4645 = z.DecInferLen(yyl4645, z.DecBasicHandle().MaxInitLen, 16)
if yyrt4645 {
if yyrl4645 <= cap(yyv4645) {
yyv4645 = yyv4645[:yyrl4645]
} else {
yyv4645 = make([]LocalObjectReference, yyrl4645)
}
} else {
yyv4645 = make([]LocalObjectReference, yyrl4645)
}
yyc4645 = true
yyrr4645 = len(yyv4645)
if yyrg4645 {
copy(yyv4645, yyv24645)
}
} else if yyl4645 != len(yyv4645) {
yyv4645 = yyv4645[:yyl4645]
yyc4645 = true
}
yyj4645 := 0
for ; yyj4645 < yyrr4645; yyj4645++ {
yyh4645.ElemContainerState(yyj4645)
if r.TryDecodeAsNil() {
yyv4645[yyj4645] = LocalObjectReference{}
} else {
yyv4646 := &yyv4645[yyj4645]
yyv4646.CodecDecodeSelf(d)
}
}
if yyrt4645 {
for ; yyj4645 < yyl4645; yyj4645++ {
yyv4645 = append(yyv4645, LocalObjectReference{})
yyh4645.ElemContainerState(yyj4645)
if r.TryDecodeAsNil() {
yyv4645[yyj4645] = LocalObjectReference{}
} else {
yyv4647 := &yyv4645[yyj4645]
yyv4647.CodecDecodeSelf(d)
}
}
}
} else {
yyj4645 := 0
for ; !r.CheckBreak(); yyj4645++ {
if yyj4645 >= len(yyv4645) {
yyv4645 = append(yyv4645, LocalObjectReference{}) // var yyz4645 LocalObjectReference
yyc4645 = true
}
yyh4645.ElemContainerState(yyj4645)
if yyj4645 < len(yyv4645) {
if r.TryDecodeAsNil() {
yyv4645[yyj4645] = LocalObjectReference{}
} else {
yyv4648 := &yyv4645[yyj4645]
yyv4648.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4645 < len(yyv4645) {
yyv4645 = yyv4645[:yyj4645]
yyc4645 = true
} else if yyj4645 == 0 && yyv4645 == nil {
yyv4645 = []LocalObjectReference{}
yyc4645 = true
}
}
yyh4645.End()
if yyc4645 {
*v = yyv4645
}
}
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 _, yyv4649 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4650 := &yyv4649
yy4650.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
yyv4651 := *v
yyh4651, yyl4651 := z.DecSliceHelperStart()
var yyc4651 bool
if yyl4651 == 0 {
if yyv4651 == nil {
yyv4651 = []PodCondition{}
yyc4651 = true
} else if len(yyv4651) != 0 {
yyv4651 = yyv4651[:0]
yyc4651 = true
}
} else if yyl4651 > 0 {
var yyrr4651, yyrl4651 int
var yyrt4651 bool
if yyl4651 > cap(yyv4651) {
yyrg4651 := len(yyv4651) > 0
yyv24651 := yyv4651
yyrl4651, yyrt4651 = z.DecInferLen(yyl4651, z.DecBasicHandle().MaxInitLen, 112)
if yyrt4651 {
if yyrl4651 <= cap(yyv4651) {
yyv4651 = yyv4651[:yyrl4651]
} else {
yyv4651 = make([]PodCondition, yyrl4651)
}
} else {
yyv4651 = make([]PodCondition, yyrl4651)
}
yyc4651 = true
yyrr4651 = len(yyv4651)
if yyrg4651 {
copy(yyv4651, yyv24651)
}
} else if yyl4651 != len(yyv4651) {
yyv4651 = yyv4651[:yyl4651]
yyc4651 = true
}
yyj4651 := 0
for ; yyj4651 < yyrr4651; yyj4651++ {
yyh4651.ElemContainerState(yyj4651)
if r.TryDecodeAsNil() {
yyv4651[yyj4651] = PodCondition{}
} else {
yyv4652 := &yyv4651[yyj4651]
yyv4652.CodecDecodeSelf(d)
}
}
if yyrt4651 {
for ; yyj4651 < yyl4651; yyj4651++ {
yyv4651 = append(yyv4651, PodCondition{})
yyh4651.ElemContainerState(yyj4651)
if r.TryDecodeAsNil() {
yyv4651[yyj4651] = PodCondition{}
} else {
yyv4653 := &yyv4651[yyj4651]
yyv4653.CodecDecodeSelf(d)
}
}
}
} else {
yyj4651 := 0
for ; !r.CheckBreak(); yyj4651++ {
if yyj4651 >= len(yyv4651) {
yyv4651 = append(yyv4651, PodCondition{}) // var yyz4651 PodCondition
yyc4651 = true
}
yyh4651.ElemContainerState(yyj4651)
if yyj4651 < len(yyv4651) {
if r.TryDecodeAsNil() {
yyv4651[yyj4651] = PodCondition{}
} else {
yyv4654 := &yyv4651[yyj4651]
yyv4654.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4651 < len(yyv4651) {
yyv4651 = yyv4651[:yyj4651]
yyc4651 = true
} else if yyj4651 == 0 && yyv4651 == nil {
yyv4651 = []PodCondition{}
yyc4651 = true
}
}
yyh4651.End()
if yyc4651 {
*v = yyv4651
}
}
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 _, yyv4655 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4656 := &yyv4655
yy4656.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
yyv4657 := *v
yyh4657, yyl4657 := z.DecSliceHelperStart()
var yyc4657 bool
if yyl4657 == 0 {
if yyv4657 == nil {
yyv4657 = []ContainerStatus{}
yyc4657 = true
} else if len(yyv4657) != 0 {
yyv4657 = yyv4657[:0]
yyc4657 = true
}
} else if yyl4657 > 0 {
var yyrr4657, yyrl4657 int
var yyrt4657 bool
if yyl4657 > cap(yyv4657) {
yyrg4657 := len(yyv4657) > 0
yyv24657 := yyv4657
yyrl4657, yyrt4657 = z.DecInferLen(yyl4657, z.DecBasicHandle().MaxInitLen, 120)
if yyrt4657 {
if yyrl4657 <= cap(yyv4657) {
yyv4657 = yyv4657[:yyrl4657]
} else {
yyv4657 = make([]ContainerStatus, yyrl4657)
}
} else {
yyv4657 = make([]ContainerStatus, yyrl4657)
}
yyc4657 = true
yyrr4657 = len(yyv4657)
if yyrg4657 {
copy(yyv4657, yyv24657)
}
} else if yyl4657 != len(yyv4657) {
yyv4657 = yyv4657[:yyl4657]
yyc4657 = true
}
yyj4657 := 0
for ; yyj4657 < yyrr4657; yyj4657++ {
yyh4657.ElemContainerState(yyj4657)
if r.TryDecodeAsNil() {
yyv4657[yyj4657] = ContainerStatus{}
} else {
yyv4658 := &yyv4657[yyj4657]
yyv4658.CodecDecodeSelf(d)
}
}
if yyrt4657 {
for ; yyj4657 < yyl4657; yyj4657++ {
yyv4657 = append(yyv4657, ContainerStatus{})
yyh4657.ElemContainerState(yyj4657)
if r.TryDecodeAsNil() {
yyv4657[yyj4657] = ContainerStatus{}
} else {
yyv4659 := &yyv4657[yyj4657]
yyv4659.CodecDecodeSelf(d)
}
}
}
} else {
yyj4657 := 0
for ; !r.CheckBreak(); yyj4657++ {
if yyj4657 >= len(yyv4657) {
yyv4657 = append(yyv4657, ContainerStatus{}) // var yyz4657 ContainerStatus
yyc4657 = true
}
yyh4657.ElemContainerState(yyj4657)
if yyj4657 < len(yyv4657) {
if r.TryDecodeAsNil() {
yyv4657[yyj4657] = ContainerStatus{}
} else {
yyv4660 := &yyv4657[yyj4657]
yyv4660.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4657 < len(yyv4657) {
yyv4657 = yyv4657[:yyj4657]
yyc4657 = true
} else if yyj4657 == 0 && yyv4657 == nil {
yyv4657 = []ContainerStatus{}
yyc4657 = true
}
}
yyh4657.End()
if yyc4657 {
*v = yyv4657
}
}
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 _, yyv4661 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4662 := &yyv4661
yy4662.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
yyv4663 := *v
yyh4663, yyl4663 := z.DecSliceHelperStart()
var yyc4663 bool
if yyl4663 == 0 {
if yyv4663 == nil {
yyv4663 = []PodTemplate{}
yyc4663 = true
} else if len(yyv4663) != 0 {
yyv4663 = yyv4663[:0]
yyc4663 = true
}
} else if yyl4663 > 0 {
var yyrr4663, yyrl4663 int
var yyrt4663 bool
if yyl4663 > cap(yyv4663) {
yyrg4663 := len(yyv4663) > 0
yyv24663 := yyv4663
yyrl4663, yyrt4663 = z.DecInferLen(yyl4663, z.DecBasicHandle().MaxInitLen, 704)
if yyrt4663 {
if yyrl4663 <= cap(yyv4663) {
yyv4663 = yyv4663[:yyrl4663]
} else {
yyv4663 = make([]PodTemplate, yyrl4663)
}
} else {
yyv4663 = make([]PodTemplate, yyrl4663)
}
yyc4663 = true
yyrr4663 = len(yyv4663)
if yyrg4663 {
copy(yyv4663, yyv24663)
}
} else if yyl4663 != len(yyv4663) {
yyv4663 = yyv4663[:yyl4663]
yyc4663 = true
}
yyj4663 := 0
for ; yyj4663 < yyrr4663; yyj4663++ {
yyh4663.ElemContainerState(yyj4663)
if r.TryDecodeAsNil() {
yyv4663[yyj4663] = PodTemplate{}
} else {
yyv4664 := &yyv4663[yyj4663]
yyv4664.CodecDecodeSelf(d)
}
}
if yyrt4663 {
for ; yyj4663 < yyl4663; yyj4663++ {
yyv4663 = append(yyv4663, PodTemplate{})
yyh4663.ElemContainerState(yyj4663)
if r.TryDecodeAsNil() {
yyv4663[yyj4663] = PodTemplate{}
} else {
yyv4665 := &yyv4663[yyj4663]
yyv4665.CodecDecodeSelf(d)
}
}
}
} else {
yyj4663 := 0
for ; !r.CheckBreak(); yyj4663++ {
if yyj4663 >= len(yyv4663) {
yyv4663 = append(yyv4663, PodTemplate{}) // var yyz4663 PodTemplate
yyc4663 = true
}
yyh4663.ElemContainerState(yyj4663)
if yyj4663 < len(yyv4663) {
if r.TryDecodeAsNil() {
yyv4663[yyj4663] = PodTemplate{}
} else {
yyv4666 := &yyv4663[yyj4663]
yyv4666.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4663 < len(yyv4663) {
yyv4663 = yyv4663[:yyj4663]
yyc4663 = true
} else if yyj4663 == 0 && yyv4663 == nil {
yyv4663 = []PodTemplate{}
yyc4663 = true
}
}
yyh4663.End()
if yyc4663 {
*v = yyv4663
}
}
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 _, yyv4667 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4668 := &yyv4667
yy4668.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
yyv4669 := *v
yyh4669, yyl4669 := z.DecSliceHelperStart()
var yyc4669 bool
if yyl4669 == 0 {
if yyv4669 == nil {
yyv4669 = []ReplicationController{}
yyc4669 = true
} else if len(yyv4669) != 0 {
yyv4669 = yyv4669[:0]
yyc4669 = true
}
} else if yyl4669 > 0 {
var yyrr4669, yyrl4669 int
var yyrt4669 bool
if yyl4669 > cap(yyv4669) {
yyrg4669 := len(yyv4669) > 0
yyv24669 := yyv4669
yyrl4669, yyrt4669 = z.DecInferLen(yyl4669, z.DecBasicHandle().MaxInitLen, 304)
if yyrt4669 {
if yyrl4669 <= cap(yyv4669) {
yyv4669 = yyv4669[:yyrl4669]
} else {
yyv4669 = make([]ReplicationController, yyrl4669)
}
} else {
yyv4669 = make([]ReplicationController, yyrl4669)
}
yyc4669 = true
yyrr4669 = len(yyv4669)
if yyrg4669 {
copy(yyv4669, yyv24669)
}
} else if yyl4669 != len(yyv4669) {
yyv4669 = yyv4669[:yyl4669]
yyc4669 = true
}
yyj4669 := 0
for ; yyj4669 < yyrr4669; yyj4669++ {
yyh4669.ElemContainerState(yyj4669)
if r.TryDecodeAsNil() {
yyv4669[yyj4669] = ReplicationController{}
} else {
yyv4670 := &yyv4669[yyj4669]
yyv4670.CodecDecodeSelf(d)
}
}
if yyrt4669 {
for ; yyj4669 < yyl4669; yyj4669++ {
yyv4669 = append(yyv4669, ReplicationController{})
yyh4669.ElemContainerState(yyj4669)
if r.TryDecodeAsNil() {
yyv4669[yyj4669] = ReplicationController{}
} else {
yyv4671 := &yyv4669[yyj4669]
yyv4671.CodecDecodeSelf(d)
}
}
}
} else {
yyj4669 := 0
for ; !r.CheckBreak(); yyj4669++ {
if yyj4669 >= len(yyv4669) {
yyv4669 = append(yyv4669, ReplicationController{}) // var yyz4669 ReplicationController
yyc4669 = true
}
yyh4669.ElemContainerState(yyj4669)
if yyj4669 < len(yyv4669) {
if r.TryDecodeAsNil() {
yyv4669[yyj4669] = ReplicationController{}
} else {
yyv4672 := &yyv4669[yyj4669]
yyv4672.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4669 < len(yyv4669) {
yyv4669 = yyv4669[:yyj4669]
yyc4669 = true
} else if yyj4669 == 0 && yyv4669 == nil {
yyv4669 = []ReplicationController{}
yyc4669 = true
}
}
yyh4669.End()
if yyc4669 {
*v = yyv4669
}
}
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 _, yyv4673 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4674 := &yyv4673
yy4674.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
yyv4675 := *v
yyh4675, yyl4675 := z.DecSliceHelperStart()
var yyc4675 bool
if yyl4675 == 0 {
if yyv4675 == nil {
yyv4675 = []Service{}
yyc4675 = true
} else if len(yyv4675) != 0 {
yyv4675 = yyv4675[:0]
yyc4675 = true
}
} else if yyl4675 > 0 {
var yyrr4675, yyrl4675 int
var yyrt4675 bool
if yyl4675 > cap(yyv4675) {
yyrg4675 := len(yyv4675) > 0
yyv24675 := yyv4675
yyrl4675, yyrt4675 = z.DecInferLen(yyl4675, z.DecBasicHandle().MaxInitLen, 440)
if yyrt4675 {
if yyrl4675 <= cap(yyv4675) {
yyv4675 = yyv4675[:yyrl4675]
} else {
yyv4675 = make([]Service, yyrl4675)
}
} else {
yyv4675 = make([]Service, yyrl4675)
}
yyc4675 = true
yyrr4675 = len(yyv4675)
if yyrg4675 {
copy(yyv4675, yyv24675)
}
} else if yyl4675 != len(yyv4675) {
yyv4675 = yyv4675[:yyl4675]
yyc4675 = true
}
yyj4675 := 0
for ; yyj4675 < yyrr4675; yyj4675++ {
yyh4675.ElemContainerState(yyj4675)
if r.TryDecodeAsNil() {
yyv4675[yyj4675] = Service{}
} else {
yyv4676 := &yyv4675[yyj4675]
yyv4676.CodecDecodeSelf(d)
}
}
if yyrt4675 {
for ; yyj4675 < yyl4675; yyj4675++ {
yyv4675 = append(yyv4675, Service{})
yyh4675.ElemContainerState(yyj4675)
if r.TryDecodeAsNil() {
yyv4675[yyj4675] = Service{}
} else {
yyv4677 := &yyv4675[yyj4675]
yyv4677.CodecDecodeSelf(d)
}
}
}
} else {
yyj4675 := 0
for ; !r.CheckBreak(); yyj4675++ {
if yyj4675 >= len(yyv4675) {
yyv4675 = append(yyv4675, Service{}) // var yyz4675 Service
yyc4675 = true
}
yyh4675.ElemContainerState(yyj4675)
if yyj4675 < len(yyv4675) {
if r.TryDecodeAsNil() {
yyv4675[yyj4675] = Service{}
} else {
yyv4678 := &yyv4675[yyj4675]
yyv4678.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4675 < len(yyv4675) {
yyv4675 = yyv4675[:yyj4675]
yyc4675 = true
} else if yyj4675 == 0 && yyv4675 == nil {
yyv4675 = []Service{}
yyc4675 = true
}
}
yyh4675.End()
if yyc4675 {
*v = yyv4675
}
}
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 _, yyv4679 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4680 := &yyv4679
yy4680.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
yyv4681 := *v
yyh4681, yyl4681 := z.DecSliceHelperStart()
var yyc4681 bool
if yyl4681 == 0 {
if yyv4681 == nil {
yyv4681 = []LoadBalancerIngress{}
yyc4681 = true
} else if len(yyv4681) != 0 {
yyv4681 = yyv4681[:0]
yyc4681 = true
}
} else if yyl4681 > 0 {
var yyrr4681, yyrl4681 int
var yyrt4681 bool
if yyl4681 > cap(yyv4681) {
yyrg4681 := len(yyv4681) > 0
yyv24681 := yyv4681
yyrl4681, yyrt4681 = z.DecInferLen(yyl4681, z.DecBasicHandle().MaxInitLen, 32)
if yyrt4681 {
if yyrl4681 <= cap(yyv4681) {
yyv4681 = yyv4681[:yyrl4681]
} else {
yyv4681 = make([]LoadBalancerIngress, yyrl4681)
}
} else {
yyv4681 = make([]LoadBalancerIngress, yyrl4681)
}
yyc4681 = true
yyrr4681 = len(yyv4681)
if yyrg4681 {
copy(yyv4681, yyv24681)
}
} else if yyl4681 != len(yyv4681) {
yyv4681 = yyv4681[:yyl4681]
yyc4681 = true
}
yyj4681 := 0
for ; yyj4681 < yyrr4681; yyj4681++ {
yyh4681.ElemContainerState(yyj4681)
if r.TryDecodeAsNil() {
yyv4681[yyj4681] = LoadBalancerIngress{}
} else {
yyv4682 := &yyv4681[yyj4681]
yyv4682.CodecDecodeSelf(d)
}
}
if yyrt4681 {
for ; yyj4681 < yyl4681; yyj4681++ {
yyv4681 = append(yyv4681, LoadBalancerIngress{})
yyh4681.ElemContainerState(yyj4681)
if r.TryDecodeAsNil() {
yyv4681[yyj4681] = LoadBalancerIngress{}
} else {
yyv4683 := &yyv4681[yyj4681]
yyv4683.CodecDecodeSelf(d)
}
}
}
} else {
yyj4681 := 0
for ; !r.CheckBreak(); yyj4681++ {
if yyj4681 >= len(yyv4681) {
yyv4681 = append(yyv4681, LoadBalancerIngress{}) // var yyz4681 LoadBalancerIngress
yyc4681 = true
}
yyh4681.ElemContainerState(yyj4681)
if yyj4681 < len(yyv4681) {
if r.TryDecodeAsNil() {
yyv4681[yyj4681] = LoadBalancerIngress{}
} else {
yyv4684 := &yyv4681[yyj4681]
yyv4684.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4681 < len(yyv4681) {
yyv4681 = yyv4681[:yyj4681]
yyc4681 = true
} else if yyj4681 == 0 && yyv4681 == nil {
yyv4681 = []LoadBalancerIngress{}
yyc4681 = true
}
}
yyh4681.End()
if yyc4681 {
*v = yyv4681
}
}
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 _, yyv4685 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4686 := &yyv4685
yy4686.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
yyv4687 := *v
yyh4687, yyl4687 := z.DecSliceHelperStart()
var yyc4687 bool
if yyl4687 == 0 {
if yyv4687 == nil {
yyv4687 = []ServicePort{}
yyc4687 = true
} else if len(yyv4687) != 0 {
yyv4687 = yyv4687[:0]
yyc4687 = true
}
} else if yyl4687 > 0 {
var yyrr4687, yyrl4687 int
var yyrt4687 bool
if yyl4687 > cap(yyv4687) {
yyrg4687 := len(yyv4687) > 0
yyv24687 := yyv4687
yyrl4687, yyrt4687 = z.DecInferLen(yyl4687, z.DecBasicHandle().MaxInitLen, 80)
if yyrt4687 {
if yyrl4687 <= cap(yyv4687) {
yyv4687 = yyv4687[:yyrl4687]
} else {
yyv4687 = make([]ServicePort, yyrl4687)
}
} else {
yyv4687 = make([]ServicePort, yyrl4687)
}
yyc4687 = true
yyrr4687 = len(yyv4687)
if yyrg4687 {
copy(yyv4687, yyv24687)
}
} else if yyl4687 != len(yyv4687) {
yyv4687 = yyv4687[:yyl4687]
yyc4687 = true
}
yyj4687 := 0
for ; yyj4687 < yyrr4687; yyj4687++ {
yyh4687.ElemContainerState(yyj4687)
if r.TryDecodeAsNil() {
yyv4687[yyj4687] = ServicePort{}
} else {
yyv4688 := &yyv4687[yyj4687]
yyv4688.CodecDecodeSelf(d)
}
}
if yyrt4687 {
for ; yyj4687 < yyl4687; yyj4687++ {
yyv4687 = append(yyv4687, ServicePort{})
yyh4687.ElemContainerState(yyj4687)
if r.TryDecodeAsNil() {
yyv4687[yyj4687] = ServicePort{}
} else {
yyv4689 := &yyv4687[yyj4687]
yyv4689.CodecDecodeSelf(d)
}
}
}
} else {
yyj4687 := 0
for ; !r.CheckBreak(); yyj4687++ {
if yyj4687 >= len(yyv4687) {
yyv4687 = append(yyv4687, ServicePort{}) // var yyz4687 ServicePort
yyc4687 = true
}
yyh4687.ElemContainerState(yyj4687)
if yyj4687 < len(yyv4687) {
if r.TryDecodeAsNil() {
yyv4687[yyj4687] = ServicePort{}
} else {
yyv4690 := &yyv4687[yyj4687]
yyv4690.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4687 < len(yyv4687) {
yyv4687 = yyv4687[:yyj4687]
yyc4687 = true
} else if yyj4687 == 0 && yyv4687 == nil {
yyv4687 = []ServicePort{}
yyc4687 = true
}
}
yyh4687.End()
if yyc4687 {
*v = yyv4687
}
}
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 _, yyv4691 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4692 := &yyv4691
yy4692.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
yyv4693 := *v
yyh4693, yyl4693 := z.DecSliceHelperStart()
var yyc4693 bool
if yyl4693 == 0 {
if yyv4693 == nil {
yyv4693 = []ObjectReference{}
yyc4693 = true
} else if len(yyv4693) != 0 {
yyv4693 = yyv4693[:0]
yyc4693 = true
}
} else if yyl4693 > 0 {
var yyrr4693, yyrl4693 int
var yyrt4693 bool
if yyl4693 > cap(yyv4693) {
yyrg4693 := len(yyv4693) > 0
yyv24693 := yyv4693
yyrl4693, yyrt4693 = z.DecInferLen(yyl4693, z.DecBasicHandle().MaxInitLen, 112)
if yyrt4693 {
if yyrl4693 <= cap(yyv4693) {
yyv4693 = yyv4693[:yyrl4693]
} else {
yyv4693 = make([]ObjectReference, yyrl4693)
}
} else {
yyv4693 = make([]ObjectReference, yyrl4693)
}
yyc4693 = true
yyrr4693 = len(yyv4693)
if yyrg4693 {
copy(yyv4693, yyv24693)
}
} else if yyl4693 != len(yyv4693) {
yyv4693 = yyv4693[:yyl4693]
yyc4693 = true
}
yyj4693 := 0
for ; yyj4693 < yyrr4693; yyj4693++ {
yyh4693.ElemContainerState(yyj4693)
if r.TryDecodeAsNil() {
yyv4693[yyj4693] = ObjectReference{}
} else {
yyv4694 := &yyv4693[yyj4693]
yyv4694.CodecDecodeSelf(d)
}
}
if yyrt4693 {
for ; yyj4693 < yyl4693; yyj4693++ {
yyv4693 = append(yyv4693, ObjectReference{})
yyh4693.ElemContainerState(yyj4693)
if r.TryDecodeAsNil() {
yyv4693[yyj4693] = ObjectReference{}
} else {
yyv4695 := &yyv4693[yyj4693]
yyv4695.CodecDecodeSelf(d)
}
}
}
} else {
yyj4693 := 0
for ; !r.CheckBreak(); yyj4693++ {
if yyj4693 >= len(yyv4693) {
yyv4693 = append(yyv4693, ObjectReference{}) // var yyz4693 ObjectReference
yyc4693 = true
}
yyh4693.ElemContainerState(yyj4693)
if yyj4693 < len(yyv4693) {
if r.TryDecodeAsNil() {
yyv4693[yyj4693] = ObjectReference{}
} else {
yyv4696 := &yyv4693[yyj4693]
yyv4696.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4693 < len(yyv4693) {
yyv4693 = yyv4693[:yyj4693]
yyc4693 = true
} else if yyj4693 == 0 && yyv4693 == nil {
yyv4693 = []ObjectReference{}
yyc4693 = true
}
}
yyh4693.End()
if yyc4693 {
*v = yyv4693
}
}
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 _, yyv4697 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4698 := &yyv4697
yy4698.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
yyv4699 := *v
yyh4699, yyl4699 := z.DecSliceHelperStart()
var yyc4699 bool
if yyl4699 == 0 {
if yyv4699 == nil {
yyv4699 = []ServiceAccount{}
yyc4699 = true
} else if len(yyv4699) != 0 {
yyv4699 = yyv4699[:0]
yyc4699 = true
}
} else if yyl4699 > 0 {
var yyrr4699, yyrl4699 int
var yyrt4699 bool
if yyl4699 > cap(yyv4699) {
yyrg4699 := len(yyv4699) > 0
yyv24699 := yyv4699
yyrl4699, yyrt4699 = z.DecInferLen(yyl4699, z.DecBasicHandle().MaxInitLen, 304)
if yyrt4699 {
if yyrl4699 <= cap(yyv4699) {
yyv4699 = yyv4699[:yyrl4699]
} else {
yyv4699 = make([]ServiceAccount, yyrl4699)
}
} else {
yyv4699 = make([]ServiceAccount, yyrl4699)
}
yyc4699 = true
yyrr4699 = len(yyv4699)
if yyrg4699 {
copy(yyv4699, yyv24699)
}
} else if yyl4699 != len(yyv4699) {
yyv4699 = yyv4699[:yyl4699]
yyc4699 = true
}
yyj4699 := 0
for ; yyj4699 < yyrr4699; yyj4699++ {
yyh4699.ElemContainerState(yyj4699)
if r.TryDecodeAsNil() {
yyv4699[yyj4699] = ServiceAccount{}
} else {
yyv4700 := &yyv4699[yyj4699]
yyv4700.CodecDecodeSelf(d)
}
}
if yyrt4699 {
for ; yyj4699 < yyl4699; yyj4699++ {
yyv4699 = append(yyv4699, ServiceAccount{})
yyh4699.ElemContainerState(yyj4699)
if r.TryDecodeAsNil() {
yyv4699[yyj4699] = ServiceAccount{}
} else {
yyv4701 := &yyv4699[yyj4699]
yyv4701.CodecDecodeSelf(d)
}
}
}
} else {
yyj4699 := 0
for ; !r.CheckBreak(); yyj4699++ {
if yyj4699 >= len(yyv4699) {
yyv4699 = append(yyv4699, ServiceAccount{}) // var yyz4699 ServiceAccount
yyc4699 = true
}
yyh4699.ElemContainerState(yyj4699)
if yyj4699 < len(yyv4699) {
if r.TryDecodeAsNil() {
yyv4699[yyj4699] = ServiceAccount{}
} else {
yyv4702 := &yyv4699[yyj4699]
yyv4702.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4699 < len(yyv4699) {
yyv4699 = yyv4699[:yyj4699]
yyc4699 = true
} else if yyj4699 == 0 && yyv4699 == nil {
yyv4699 = []ServiceAccount{}
yyc4699 = true
}
}
yyh4699.End()
if yyc4699 {
*v = yyv4699
}
}
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 _, yyv4703 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4704 := &yyv4703
yy4704.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
yyv4705 := *v
yyh4705, yyl4705 := z.DecSliceHelperStart()
var yyc4705 bool
if yyl4705 == 0 {
if yyv4705 == nil {
yyv4705 = []EndpointSubset{}
yyc4705 = true
} else if len(yyv4705) != 0 {
yyv4705 = yyv4705[:0]
yyc4705 = true
}
} else if yyl4705 > 0 {
var yyrr4705, yyrl4705 int
var yyrt4705 bool
if yyl4705 > cap(yyv4705) {
yyrg4705 := len(yyv4705) > 0
yyv24705 := yyv4705
yyrl4705, yyrt4705 = z.DecInferLen(yyl4705, z.DecBasicHandle().MaxInitLen, 72)
if yyrt4705 {
if yyrl4705 <= cap(yyv4705) {
yyv4705 = yyv4705[:yyrl4705]
} else {
yyv4705 = make([]EndpointSubset, yyrl4705)
}
} else {
yyv4705 = make([]EndpointSubset, yyrl4705)
}
yyc4705 = true
yyrr4705 = len(yyv4705)
if yyrg4705 {
copy(yyv4705, yyv24705)
}
} else if yyl4705 != len(yyv4705) {
yyv4705 = yyv4705[:yyl4705]
yyc4705 = true
}
yyj4705 := 0
for ; yyj4705 < yyrr4705; yyj4705++ {
yyh4705.ElemContainerState(yyj4705)
if r.TryDecodeAsNil() {
yyv4705[yyj4705] = EndpointSubset{}
} else {
yyv4706 := &yyv4705[yyj4705]
yyv4706.CodecDecodeSelf(d)
}
}
if yyrt4705 {
for ; yyj4705 < yyl4705; yyj4705++ {
yyv4705 = append(yyv4705, EndpointSubset{})
yyh4705.ElemContainerState(yyj4705)
if r.TryDecodeAsNil() {
yyv4705[yyj4705] = EndpointSubset{}
} else {
yyv4707 := &yyv4705[yyj4705]
yyv4707.CodecDecodeSelf(d)
}
}
}
} else {
yyj4705 := 0
for ; !r.CheckBreak(); yyj4705++ {
if yyj4705 >= len(yyv4705) {
yyv4705 = append(yyv4705, EndpointSubset{}) // var yyz4705 EndpointSubset
yyc4705 = true
}
yyh4705.ElemContainerState(yyj4705)
if yyj4705 < len(yyv4705) {
if r.TryDecodeAsNil() {
yyv4705[yyj4705] = EndpointSubset{}
} else {
yyv4708 := &yyv4705[yyj4705]
yyv4708.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4705 < len(yyv4705) {
yyv4705 = yyv4705[:yyj4705]
yyc4705 = true
} else if yyj4705 == 0 && yyv4705 == nil {
yyv4705 = []EndpointSubset{}
yyc4705 = true
}
}
yyh4705.End()
if yyc4705 {
*v = yyv4705
}
}
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 _, yyv4709 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4710 := &yyv4709
yy4710.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
yyv4711 := *v
yyh4711, yyl4711 := z.DecSliceHelperStart()
var yyc4711 bool
if yyl4711 == 0 {
if yyv4711 == nil {
yyv4711 = []EndpointAddress{}
yyc4711 = true
} else if len(yyv4711) != 0 {
yyv4711 = yyv4711[:0]
yyc4711 = true
}
} else if yyl4711 > 0 {
var yyrr4711, yyrl4711 int
var yyrt4711 bool
if yyl4711 > cap(yyv4711) {
yyrg4711 := len(yyv4711) > 0
yyv24711 := yyv4711
yyrl4711, yyrt4711 = z.DecInferLen(yyl4711, z.DecBasicHandle().MaxInitLen, 48)
if yyrt4711 {
if yyrl4711 <= cap(yyv4711) {
yyv4711 = yyv4711[:yyrl4711]
} else {
yyv4711 = make([]EndpointAddress, yyrl4711)
}
} else {
yyv4711 = make([]EndpointAddress, yyrl4711)
}
yyc4711 = true
yyrr4711 = len(yyv4711)
if yyrg4711 {
copy(yyv4711, yyv24711)
}
} else if yyl4711 != len(yyv4711) {
yyv4711 = yyv4711[:yyl4711]
yyc4711 = true
}
yyj4711 := 0
for ; yyj4711 < yyrr4711; yyj4711++ {
yyh4711.ElemContainerState(yyj4711)
if r.TryDecodeAsNil() {
yyv4711[yyj4711] = EndpointAddress{}
} else {
yyv4712 := &yyv4711[yyj4711]
yyv4712.CodecDecodeSelf(d)
}
}
if yyrt4711 {
for ; yyj4711 < yyl4711; yyj4711++ {
yyv4711 = append(yyv4711, EndpointAddress{})
yyh4711.ElemContainerState(yyj4711)
if r.TryDecodeAsNil() {
yyv4711[yyj4711] = EndpointAddress{}
} else {
yyv4713 := &yyv4711[yyj4711]
yyv4713.CodecDecodeSelf(d)
}
}
}
} else {
yyj4711 := 0
for ; !r.CheckBreak(); yyj4711++ {
if yyj4711 >= len(yyv4711) {
yyv4711 = append(yyv4711, EndpointAddress{}) // var yyz4711 EndpointAddress
yyc4711 = true
}
yyh4711.ElemContainerState(yyj4711)
if yyj4711 < len(yyv4711) {
if r.TryDecodeAsNil() {
yyv4711[yyj4711] = EndpointAddress{}
} else {
yyv4714 := &yyv4711[yyj4711]
yyv4714.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4711 < len(yyv4711) {
yyv4711 = yyv4711[:yyj4711]
yyc4711 = true
} else if yyj4711 == 0 && yyv4711 == nil {
yyv4711 = []EndpointAddress{}
yyc4711 = true
}
}
yyh4711.End()
if yyc4711 {
*v = yyv4711
}
}
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 _, yyv4715 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4716 := &yyv4715
yy4716.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
yyv4717 := *v
yyh4717, yyl4717 := z.DecSliceHelperStart()
var yyc4717 bool
if yyl4717 == 0 {
if yyv4717 == nil {
yyv4717 = []EndpointPort{}
yyc4717 = true
} else if len(yyv4717) != 0 {
yyv4717 = yyv4717[:0]
yyc4717 = true
}
} else if yyl4717 > 0 {
var yyrr4717, yyrl4717 int
var yyrt4717 bool
if yyl4717 > cap(yyv4717) {
yyrg4717 := len(yyv4717) > 0
yyv24717 := yyv4717
yyrl4717, yyrt4717 = z.DecInferLen(yyl4717, z.DecBasicHandle().MaxInitLen, 40)
if yyrt4717 {
if yyrl4717 <= cap(yyv4717) {
yyv4717 = yyv4717[:yyrl4717]
} else {
yyv4717 = make([]EndpointPort, yyrl4717)
}
} else {
yyv4717 = make([]EndpointPort, yyrl4717)
}
yyc4717 = true
yyrr4717 = len(yyv4717)
if yyrg4717 {
copy(yyv4717, yyv24717)
}
} else if yyl4717 != len(yyv4717) {
yyv4717 = yyv4717[:yyl4717]
yyc4717 = true
}
yyj4717 := 0
for ; yyj4717 < yyrr4717; yyj4717++ {
yyh4717.ElemContainerState(yyj4717)
if r.TryDecodeAsNil() {
yyv4717[yyj4717] = EndpointPort{}
} else {
yyv4718 := &yyv4717[yyj4717]
yyv4718.CodecDecodeSelf(d)
}
}
if yyrt4717 {
for ; yyj4717 < yyl4717; yyj4717++ {
yyv4717 = append(yyv4717, EndpointPort{})
yyh4717.ElemContainerState(yyj4717)
if r.TryDecodeAsNil() {
yyv4717[yyj4717] = EndpointPort{}
} else {
yyv4719 := &yyv4717[yyj4717]
yyv4719.CodecDecodeSelf(d)
}
}
}
} else {
yyj4717 := 0
for ; !r.CheckBreak(); yyj4717++ {
if yyj4717 >= len(yyv4717) {
yyv4717 = append(yyv4717, EndpointPort{}) // var yyz4717 EndpointPort
yyc4717 = true
}
yyh4717.ElemContainerState(yyj4717)
if yyj4717 < len(yyv4717) {
if r.TryDecodeAsNil() {
yyv4717[yyj4717] = EndpointPort{}
} else {
yyv4720 := &yyv4717[yyj4717]
yyv4720.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4717 < len(yyv4717) {
yyv4717 = yyv4717[:yyj4717]
yyc4717 = true
} else if yyj4717 == 0 && yyv4717 == nil {
yyv4717 = []EndpointPort{}
yyc4717 = true
}
}
yyh4717.End()
if yyc4717 {
*v = yyv4717
}
}
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 _, yyv4721 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4722 := &yyv4721
yy4722.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
yyv4723 := *v
yyh4723, yyl4723 := z.DecSliceHelperStart()
var yyc4723 bool
if yyl4723 == 0 {
if yyv4723 == nil {
yyv4723 = []Endpoints{}
yyc4723 = true
} else if len(yyv4723) != 0 {
yyv4723 = yyv4723[:0]
yyc4723 = true
}
} else if yyl4723 > 0 {
var yyrr4723, yyrl4723 int
var yyrt4723 bool
if yyl4723 > cap(yyv4723) {
yyrg4723 := len(yyv4723) > 0
yyv24723 := yyv4723
yyrl4723, yyrt4723 = z.DecInferLen(yyl4723, z.DecBasicHandle().MaxInitLen, 280)
if yyrt4723 {
if yyrl4723 <= cap(yyv4723) {
yyv4723 = yyv4723[:yyrl4723]
} else {
yyv4723 = make([]Endpoints, yyrl4723)
}
} else {
yyv4723 = make([]Endpoints, yyrl4723)
}
yyc4723 = true
yyrr4723 = len(yyv4723)
if yyrg4723 {
copy(yyv4723, yyv24723)
}
} else if yyl4723 != len(yyv4723) {
yyv4723 = yyv4723[:yyl4723]
yyc4723 = true
}
yyj4723 := 0
for ; yyj4723 < yyrr4723; yyj4723++ {
yyh4723.ElemContainerState(yyj4723)
if r.TryDecodeAsNil() {
yyv4723[yyj4723] = Endpoints{}
} else {
yyv4724 := &yyv4723[yyj4723]
yyv4724.CodecDecodeSelf(d)
}
}
if yyrt4723 {
for ; yyj4723 < yyl4723; yyj4723++ {
yyv4723 = append(yyv4723, Endpoints{})
yyh4723.ElemContainerState(yyj4723)
if r.TryDecodeAsNil() {
yyv4723[yyj4723] = Endpoints{}
} else {
yyv4725 := &yyv4723[yyj4723]
yyv4725.CodecDecodeSelf(d)
}
}
}
} else {
yyj4723 := 0
for ; !r.CheckBreak(); yyj4723++ {
if yyj4723 >= len(yyv4723) {
yyv4723 = append(yyv4723, Endpoints{}) // var yyz4723 Endpoints
yyc4723 = true
}
yyh4723.ElemContainerState(yyj4723)
if yyj4723 < len(yyv4723) {
if r.TryDecodeAsNil() {
yyv4723[yyj4723] = Endpoints{}
} else {
yyv4726 := &yyv4723[yyj4723]
yyv4726.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4723 < len(yyv4723) {
yyv4723 = yyv4723[:yyj4723]
yyc4723 = true
} else if yyj4723 == 0 && yyv4723 == nil {
yyv4723 = []Endpoints{}
yyc4723 = true
}
}
yyh4723.End()
if yyc4723 {
*v = yyv4723
}
}
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 _, yyv4727 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4728 := &yyv4727
yy4728.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
yyv4729 := *v
yyh4729, yyl4729 := z.DecSliceHelperStart()
var yyc4729 bool
if yyl4729 == 0 {
if yyv4729 == nil {
yyv4729 = []NodeCondition{}
yyc4729 = true
} else if len(yyv4729) != 0 {
yyv4729 = yyv4729[:0]
yyc4729 = true
}
} else if yyl4729 > 0 {
var yyrr4729, yyrl4729 int
var yyrt4729 bool
if yyl4729 > cap(yyv4729) {
yyrg4729 := len(yyv4729) > 0
yyv24729 := yyv4729
yyrl4729, yyrt4729 = z.DecInferLen(yyl4729, z.DecBasicHandle().MaxInitLen, 112)
if yyrt4729 {
if yyrl4729 <= cap(yyv4729) {
yyv4729 = yyv4729[:yyrl4729]
} else {
yyv4729 = make([]NodeCondition, yyrl4729)
}
} else {
yyv4729 = make([]NodeCondition, yyrl4729)
}
yyc4729 = true
yyrr4729 = len(yyv4729)
if yyrg4729 {
copy(yyv4729, yyv24729)
}
} else if yyl4729 != len(yyv4729) {
yyv4729 = yyv4729[:yyl4729]
yyc4729 = true
}
yyj4729 := 0
for ; yyj4729 < yyrr4729; yyj4729++ {
yyh4729.ElemContainerState(yyj4729)
if r.TryDecodeAsNil() {
yyv4729[yyj4729] = NodeCondition{}
} else {
yyv4730 := &yyv4729[yyj4729]
yyv4730.CodecDecodeSelf(d)
}
}
if yyrt4729 {
for ; yyj4729 < yyl4729; yyj4729++ {
yyv4729 = append(yyv4729, NodeCondition{})
yyh4729.ElemContainerState(yyj4729)
if r.TryDecodeAsNil() {
yyv4729[yyj4729] = NodeCondition{}
} else {
yyv4731 := &yyv4729[yyj4729]
yyv4731.CodecDecodeSelf(d)
}
}
}
} else {
yyj4729 := 0
for ; !r.CheckBreak(); yyj4729++ {
if yyj4729 >= len(yyv4729) {
yyv4729 = append(yyv4729, NodeCondition{}) // var yyz4729 NodeCondition
yyc4729 = true
}
yyh4729.ElemContainerState(yyj4729)
if yyj4729 < len(yyv4729) {
if r.TryDecodeAsNil() {
yyv4729[yyj4729] = NodeCondition{}
} else {
yyv4732 := &yyv4729[yyj4729]
yyv4732.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4729 < len(yyv4729) {
yyv4729 = yyv4729[:yyj4729]
yyc4729 = true
} else if yyj4729 == 0 && yyv4729 == nil {
yyv4729 = []NodeCondition{}
yyc4729 = true
}
}
yyh4729.End()
if yyc4729 {
*v = yyv4729
}
}
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 _, yyv4733 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4734 := &yyv4733
yy4734.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
yyv4735 := *v
yyh4735, yyl4735 := z.DecSliceHelperStart()
var yyc4735 bool
if yyl4735 == 0 {
if yyv4735 == nil {
yyv4735 = []NodeAddress{}
yyc4735 = true
} else if len(yyv4735) != 0 {
yyv4735 = yyv4735[:0]
yyc4735 = true
}
} else if yyl4735 > 0 {
var yyrr4735, yyrl4735 int
var yyrt4735 bool
if yyl4735 > cap(yyv4735) {
yyrg4735 := len(yyv4735) > 0
yyv24735 := yyv4735
yyrl4735, yyrt4735 = z.DecInferLen(yyl4735, z.DecBasicHandle().MaxInitLen, 32)
if yyrt4735 {
if yyrl4735 <= cap(yyv4735) {
yyv4735 = yyv4735[:yyrl4735]
} else {
yyv4735 = make([]NodeAddress, yyrl4735)
}
} else {
yyv4735 = make([]NodeAddress, yyrl4735)
}
yyc4735 = true
yyrr4735 = len(yyv4735)
if yyrg4735 {
copy(yyv4735, yyv24735)
}
} else if yyl4735 != len(yyv4735) {
yyv4735 = yyv4735[:yyl4735]
yyc4735 = true
}
yyj4735 := 0
for ; yyj4735 < yyrr4735; yyj4735++ {
yyh4735.ElemContainerState(yyj4735)
if r.TryDecodeAsNil() {
yyv4735[yyj4735] = NodeAddress{}
} else {
yyv4736 := &yyv4735[yyj4735]
yyv4736.CodecDecodeSelf(d)
}
}
if yyrt4735 {
for ; yyj4735 < yyl4735; yyj4735++ {
yyv4735 = append(yyv4735, NodeAddress{})
yyh4735.ElemContainerState(yyj4735)
if r.TryDecodeAsNil() {
yyv4735[yyj4735] = NodeAddress{}
} else {
yyv4737 := &yyv4735[yyj4735]
yyv4737.CodecDecodeSelf(d)
}
}
}
} else {
yyj4735 := 0
for ; !r.CheckBreak(); yyj4735++ {
if yyj4735 >= len(yyv4735) {
yyv4735 = append(yyv4735, NodeAddress{}) // var yyz4735 NodeAddress
yyc4735 = true
}
yyh4735.ElemContainerState(yyj4735)
if yyj4735 < len(yyv4735) {
if r.TryDecodeAsNil() {
yyv4735[yyj4735] = NodeAddress{}
} else {
yyv4738 := &yyv4735[yyj4735]
yyv4738.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4735 < len(yyv4735) {
yyv4735 = yyv4735[:yyj4735]
yyc4735 = true
} else if yyj4735 == 0 && yyv4735 == nil {
yyv4735 = []NodeAddress{}
yyc4735 = true
}
}
yyh4735.End()
if yyc4735 {
*v = yyv4735
}
}
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 _, yyv4739 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4740 := &yyv4739
yy4740.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
yyv4741 := *v
yyh4741, yyl4741 := z.DecSliceHelperStart()
var yyc4741 bool
if yyl4741 == 0 {
if yyv4741 == nil {
yyv4741 = []ContainerImage{}
yyc4741 = true
} else if len(yyv4741) != 0 {
yyv4741 = yyv4741[:0]
yyc4741 = true
}
} else if yyl4741 > 0 {
var yyrr4741, yyrl4741 int
var yyrt4741 bool
if yyl4741 > cap(yyv4741) {
yyrg4741 := len(yyv4741) > 0
yyv24741 := yyv4741
yyrl4741, yyrt4741 = z.DecInferLen(yyl4741, z.DecBasicHandle().MaxInitLen, 32)
if yyrt4741 {
if yyrl4741 <= cap(yyv4741) {
yyv4741 = yyv4741[:yyrl4741]
} else {
yyv4741 = make([]ContainerImage, yyrl4741)
}
} else {
yyv4741 = make([]ContainerImage, yyrl4741)
}
yyc4741 = true
yyrr4741 = len(yyv4741)
if yyrg4741 {
copy(yyv4741, yyv24741)
}
} else if yyl4741 != len(yyv4741) {
yyv4741 = yyv4741[:yyl4741]
yyc4741 = true
}
yyj4741 := 0
for ; yyj4741 < yyrr4741; yyj4741++ {
yyh4741.ElemContainerState(yyj4741)
if r.TryDecodeAsNil() {
yyv4741[yyj4741] = ContainerImage{}
} else {
yyv4742 := &yyv4741[yyj4741]
yyv4742.CodecDecodeSelf(d)
}
}
if yyrt4741 {
for ; yyj4741 < yyl4741; yyj4741++ {
yyv4741 = append(yyv4741, ContainerImage{})
yyh4741.ElemContainerState(yyj4741)
if r.TryDecodeAsNil() {
yyv4741[yyj4741] = ContainerImage{}
} else {
yyv4743 := &yyv4741[yyj4741]
yyv4743.CodecDecodeSelf(d)
}
}
}
} else {
yyj4741 := 0
for ; !r.CheckBreak(); yyj4741++ {
if yyj4741 >= len(yyv4741) {
yyv4741 = append(yyv4741, ContainerImage{}) // var yyz4741 ContainerImage
yyc4741 = true
}
yyh4741.ElemContainerState(yyj4741)
if yyj4741 < len(yyv4741) {
if r.TryDecodeAsNil() {
yyv4741[yyj4741] = ContainerImage{}
} else {
yyv4744 := &yyv4741[yyj4741]
yyv4744.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4741 < len(yyv4741) {
yyv4741 = yyv4741[:yyj4741]
yyc4741 = true
} else if yyj4741 == 0 && yyv4741 == nil {
yyv4741 = []ContainerImage{}
yyc4741 = true
}
}
yyh4741.End()
if yyc4741 {
*v = yyv4741
}
}
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 _, yyv4745 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yyv4745.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
yyv4746 := *v
yyh4746, yyl4746 := z.DecSliceHelperStart()
var yyc4746 bool
if yyl4746 == 0 {
if yyv4746 == nil {
yyv4746 = []UniqueVolumeName{}
yyc4746 = true
} else if len(yyv4746) != 0 {
yyv4746 = yyv4746[:0]
yyc4746 = true
}
} else if yyl4746 > 0 {
var yyrr4746, yyrl4746 int
var yyrt4746 bool
if yyl4746 > cap(yyv4746) {
yyrl4746, yyrt4746 = z.DecInferLen(yyl4746, z.DecBasicHandle().MaxInitLen, 16)
if yyrt4746 {
if yyrl4746 <= cap(yyv4746) {
yyv4746 = yyv4746[:yyrl4746]
} else {
yyv4746 = make([]UniqueVolumeName, yyrl4746)
}
} else {
yyv4746 = make([]UniqueVolumeName, yyrl4746)
}
yyc4746 = true
yyrr4746 = len(yyv4746)
} else if yyl4746 != len(yyv4746) {
yyv4746 = yyv4746[:yyl4746]
yyc4746 = true
}
yyj4746 := 0
for ; yyj4746 < yyrr4746; yyj4746++ {
yyh4746.ElemContainerState(yyj4746)
if r.TryDecodeAsNil() {
yyv4746[yyj4746] = ""
} else {
yyv4746[yyj4746] = UniqueVolumeName(r.DecodeString())
}
}
if yyrt4746 {
for ; yyj4746 < yyl4746; yyj4746++ {
yyv4746 = append(yyv4746, "")
yyh4746.ElemContainerState(yyj4746)
if r.TryDecodeAsNil() {
yyv4746[yyj4746] = ""
} else {
yyv4746[yyj4746] = UniqueVolumeName(r.DecodeString())
}
}
}
} else {
yyj4746 := 0
for ; !r.CheckBreak(); yyj4746++ {
if yyj4746 >= len(yyv4746) {
yyv4746 = append(yyv4746, "") // var yyz4746 UniqueVolumeName
yyc4746 = true
}
yyh4746.ElemContainerState(yyj4746)
if yyj4746 < len(yyv4746) {
if r.TryDecodeAsNil() {
yyv4746[yyj4746] = ""
} else {
yyv4746[yyj4746] = UniqueVolumeName(r.DecodeString())
}
} else {
z.DecSwallow()
}
}
if yyj4746 < len(yyv4746) {
yyv4746 = yyv4746[:yyj4746]
yyc4746 = true
} else if yyj4746 == 0 && yyv4746 == nil {
yyv4746 = []UniqueVolumeName{}
yyc4746 = true
}
}
yyh4746.End()
if yyc4746 {
*v = yyv4746
}
}
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 _, yyv4750 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4751 := &yyv4750
yy4751.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
yyv4752 := *v
yyh4752, yyl4752 := z.DecSliceHelperStart()
var yyc4752 bool
if yyl4752 == 0 {
if yyv4752 == nil {
yyv4752 = []AttachedVolume{}
yyc4752 = true
} else if len(yyv4752) != 0 {
yyv4752 = yyv4752[:0]
yyc4752 = true
}
} else if yyl4752 > 0 {
var yyrr4752, yyrl4752 int
var yyrt4752 bool
if yyl4752 > cap(yyv4752) {
yyrg4752 := len(yyv4752) > 0
yyv24752 := yyv4752
yyrl4752, yyrt4752 = z.DecInferLen(yyl4752, z.DecBasicHandle().MaxInitLen, 32)
if yyrt4752 {
if yyrl4752 <= cap(yyv4752) {
yyv4752 = yyv4752[:yyrl4752]
} else {
yyv4752 = make([]AttachedVolume, yyrl4752)
}
} else {
yyv4752 = make([]AttachedVolume, yyrl4752)
}
yyc4752 = true
yyrr4752 = len(yyv4752)
if yyrg4752 {
copy(yyv4752, yyv24752)
}
} else if yyl4752 != len(yyv4752) {
yyv4752 = yyv4752[:yyl4752]
yyc4752 = true
}
yyj4752 := 0
for ; yyj4752 < yyrr4752; yyj4752++ {
yyh4752.ElemContainerState(yyj4752)
if r.TryDecodeAsNil() {
yyv4752[yyj4752] = AttachedVolume{}
} else {
yyv4753 := &yyv4752[yyj4752]
yyv4753.CodecDecodeSelf(d)
}
}
if yyrt4752 {
for ; yyj4752 < yyl4752; yyj4752++ {
yyv4752 = append(yyv4752, AttachedVolume{})
yyh4752.ElemContainerState(yyj4752)
if r.TryDecodeAsNil() {
yyv4752[yyj4752] = AttachedVolume{}
} else {
yyv4754 := &yyv4752[yyj4752]
yyv4754.CodecDecodeSelf(d)
}
}
}
} else {
yyj4752 := 0
for ; !r.CheckBreak(); yyj4752++ {
if yyj4752 >= len(yyv4752) {
yyv4752 = append(yyv4752, AttachedVolume{}) // var yyz4752 AttachedVolume
yyc4752 = true
}
yyh4752.ElemContainerState(yyj4752)
if yyj4752 < len(yyv4752) {
if r.TryDecodeAsNil() {
yyv4752[yyj4752] = AttachedVolume{}
} else {
yyv4755 := &yyv4752[yyj4752]
yyv4755.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4752 < len(yyv4752) {
yyv4752 = yyv4752[:yyj4752]
yyc4752 = true
} else if yyj4752 == 0 && yyv4752 == nil {
yyv4752 = []AttachedVolume{}
yyc4752 = true
}
}
yyh4752.End()
if yyc4752 {
*v = yyv4752
}
}
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 _, yyv4756 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4757 := &yyv4756
yy4757.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
yyv4758 := *v
yyh4758, yyl4758 := z.DecSliceHelperStart()
var yyc4758 bool
if yyl4758 == 0 {
if yyv4758 == nil {
yyv4758 = []PreferAvoidPodsEntry{}
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) {
yyrg4758 := len(yyv4758) > 0
yyv24758 := yyv4758
yyrl4758, yyrt4758 = z.DecInferLen(yyl4758, z.DecBasicHandle().MaxInitLen, 64)
if yyrt4758 {
if yyrl4758 <= cap(yyv4758) {
yyv4758 = yyv4758[:yyrl4758]
} else {
yyv4758 = make([]PreferAvoidPodsEntry, yyrl4758)
}
} else {
yyv4758 = make([]PreferAvoidPodsEntry, yyrl4758)
}
yyc4758 = true
yyrr4758 = len(yyv4758)
if yyrg4758 {
copy(yyv4758, yyv24758)
}
} else if yyl4758 != len(yyv4758) {
yyv4758 = yyv4758[:yyl4758]
yyc4758 = true
}
yyj4758 := 0
for ; yyj4758 < yyrr4758; yyj4758++ {
yyh4758.ElemContainerState(yyj4758)
if r.TryDecodeAsNil() {
yyv4758[yyj4758] = PreferAvoidPodsEntry{}
} else {
yyv4759 := &yyv4758[yyj4758]
yyv4759.CodecDecodeSelf(d)
}
}
if yyrt4758 {
for ; yyj4758 < yyl4758; yyj4758++ {
yyv4758 = append(yyv4758, PreferAvoidPodsEntry{})
yyh4758.ElemContainerState(yyj4758)
if r.TryDecodeAsNil() {
yyv4758[yyj4758] = PreferAvoidPodsEntry{}
} else {
yyv4760 := &yyv4758[yyj4758]
yyv4760.CodecDecodeSelf(d)
}
}
}
} else {
yyj4758 := 0
for ; !r.CheckBreak(); yyj4758++ {
if yyj4758 >= len(yyv4758) {
yyv4758 = append(yyv4758, PreferAvoidPodsEntry{}) // var yyz4758 PreferAvoidPodsEntry
yyc4758 = true
}
yyh4758.ElemContainerState(yyj4758)
if yyj4758 < len(yyv4758) {
if r.TryDecodeAsNil() {
yyv4758[yyj4758] = PreferAvoidPodsEntry{}
} else {
yyv4761 := &yyv4758[yyj4758]
yyv4761.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4758 < len(yyv4758) {
yyv4758 = yyv4758[:yyj4758]
yyc4758 = true
} else if yyj4758 == 0 && yyv4758 == nil {
yyv4758 = []PreferAvoidPodsEntry{}
yyc4758 = true
}
}
yyh4758.End()
if yyc4758 {
*v = yyv4758
}
}
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 yyk4762, yyv4762 := range v {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
yyk4762.CodecEncodeSelf(e)
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4763 := &yyv4762
yym4764 := z.EncBinary()
_ = yym4764
if false {
} else if z.HasExtensions() && z.EncExt(yy4763) {
} else if !yym4764 && z.IsJSONHandle() {
z.EncJSONMarshal(yy4763)
} else {
z.EncFallback(yy4763)
}
}
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4765 := *v
yyl4765 := r.ReadMapStart()
yybh4765 := z.DecBasicHandle()
if yyv4765 == nil {
yyrl4765, _ := z.DecInferLen(yyl4765, yybh4765.MaxInitLen, 72)
yyv4765 = make(map[ResourceName]pkg3_resource.Quantity, yyrl4765)
*v = yyv4765
}
var yymk4765 ResourceName
var yymv4765 pkg3_resource.Quantity
var yymg4765 bool
if yybh4765.MapValueReset {
yymg4765 = true
}
if yyl4765 > 0 {
for yyj4765 := 0; yyj4765 < yyl4765; yyj4765++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() {
yymk4765 = ""
} else {
yymk4765 = ResourceName(r.DecodeString())
}
if yymg4765 {
yymv4765 = yyv4765[yymk4765]
} else {
yymv4765 = pkg3_resource.Quantity{}
}
z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() {
yymv4765 = pkg3_resource.Quantity{}
} else {
yyv4767 := &yymv4765
yym4768 := z.DecBinary()
_ = yym4768
if false {
} else if z.HasExtensions() && z.DecExt(yyv4767) {
} else if !yym4768 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv4767)
} else {
z.DecFallback(yyv4767, false)
}
}
if yyv4765 != nil {
yyv4765[yymk4765] = yymv4765
}
}
} else if yyl4765 < 0 {
for yyj4765 := 0; !r.CheckBreak(); yyj4765++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() {
yymk4765 = ""
} else {
yymk4765 = ResourceName(r.DecodeString())
}
if yymg4765 {
yymv4765 = yyv4765[yymk4765]
} else {
yymv4765 = pkg3_resource.Quantity{}
}
z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() {
yymv4765 = pkg3_resource.Quantity{}
} else {
yyv4770 := &yymv4765
yym4771 := z.DecBinary()
_ = yym4771
if false {
} else if z.HasExtensions() && z.DecExt(yyv4770) {
} else if !yym4771 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv4770)
} else {
z.DecFallback(yyv4770, false)
}
}
if yyv4765 != nil {
yyv4765[yymk4765] = yymv4765
}
}
} // 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 _, yyv4772 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4773 := &yyv4772
yy4773.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
yyv4774 := *v
yyh4774, yyl4774 := z.DecSliceHelperStart()
var yyc4774 bool
if yyl4774 == 0 {
if yyv4774 == nil {
yyv4774 = []Node{}
yyc4774 = true
} else if len(yyv4774) != 0 {
yyv4774 = yyv4774[:0]
yyc4774 = true
}
} else if yyl4774 > 0 {
var yyrr4774, yyrl4774 int
var yyrt4774 bool
if yyl4774 > cap(yyv4774) {
yyrg4774 := len(yyv4774) > 0
yyv24774 := yyv4774
yyrl4774, yyrt4774 = z.DecInferLen(yyl4774, z.DecBasicHandle().MaxInitLen, 632)
if yyrt4774 {
if yyrl4774 <= cap(yyv4774) {
yyv4774 = yyv4774[:yyrl4774]
} else {
yyv4774 = make([]Node, yyrl4774)
}
} else {
yyv4774 = make([]Node, yyrl4774)
}
yyc4774 = true
yyrr4774 = len(yyv4774)
if yyrg4774 {
copy(yyv4774, yyv24774)
}
} else if yyl4774 != len(yyv4774) {
yyv4774 = yyv4774[:yyl4774]
yyc4774 = true
}
yyj4774 := 0
for ; yyj4774 < yyrr4774; yyj4774++ {
yyh4774.ElemContainerState(yyj4774)
if r.TryDecodeAsNil() {
yyv4774[yyj4774] = Node{}
} else {
yyv4775 := &yyv4774[yyj4774]
yyv4775.CodecDecodeSelf(d)
}
}
if yyrt4774 {
for ; yyj4774 < yyl4774; yyj4774++ {
yyv4774 = append(yyv4774, Node{})
yyh4774.ElemContainerState(yyj4774)
if r.TryDecodeAsNil() {
yyv4774[yyj4774] = Node{}
} else {
yyv4776 := &yyv4774[yyj4774]
yyv4776.CodecDecodeSelf(d)
}
}
}
} else {
yyj4774 := 0
for ; !r.CheckBreak(); yyj4774++ {
if yyj4774 >= len(yyv4774) {
yyv4774 = append(yyv4774, Node{}) // var yyz4774 Node
yyc4774 = true
}
yyh4774.ElemContainerState(yyj4774)
if yyj4774 < len(yyv4774) {
if r.TryDecodeAsNil() {
yyv4774[yyj4774] = Node{}
} else {
yyv4777 := &yyv4774[yyj4774]
yyv4777.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4774 < len(yyv4774) {
yyv4774 = yyv4774[:yyj4774]
yyc4774 = true
} else if yyj4774 == 0 && yyv4774 == nil {
yyv4774 = []Node{}
yyc4774 = true
}
}
yyh4774.End()
if yyc4774 {
*v = yyv4774
}
}
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 _, yyv4778 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yyv4778.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
yyv4779 := *v
yyh4779, yyl4779 := z.DecSliceHelperStart()
var yyc4779 bool
if yyl4779 == 0 {
if yyv4779 == nil {
yyv4779 = []FinalizerName{}
yyc4779 = true
} else if len(yyv4779) != 0 {
yyv4779 = yyv4779[:0]
yyc4779 = true
}
} else if yyl4779 > 0 {
var yyrr4779, yyrl4779 int
var yyrt4779 bool
if yyl4779 > cap(yyv4779) {
yyrl4779, yyrt4779 = z.DecInferLen(yyl4779, z.DecBasicHandle().MaxInitLen, 16)
if yyrt4779 {
if yyrl4779 <= cap(yyv4779) {
yyv4779 = yyv4779[:yyrl4779]
} else {
yyv4779 = make([]FinalizerName, yyrl4779)
}
} else {
yyv4779 = make([]FinalizerName, yyrl4779)
}
yyc4779 = true
yyrr4779 = len(yyv4779)
} else if yyl4779 != len(yyv4779) {
yyv4779 = yyv4779[:yyl4779]
yyc4779 = true
}
yyj4779 := 0
for ; yyj4779 < yyrr4779; yyj4779++ {
yyh4779.ElemContainerState(yyj4779)
if r.TryDecodeAsNil() {
yyv4779[yyj4779] = ""
} else {
yyv4779[yyj4779] = FinalizerName(r.DecodeString())
}
}
if yyrt4779 {
for ; yyj4779 < yyl4779; yyj4779++ {
yyv4779 = append(yyv4779, "")
yyh4779.ElemContainerState(yyj4779)
if r.TryDecodeAsNil() {
yyv4779[yyj4779] = ""
} else {
yyv4779[yyj4779] = FinalizerName(r.DecodeString())
}
}
}
} else {
yyj4779 := 0
for ; !r.CheckBreak(); yyj4779++ {
if yyj4779 >= len(yyv4779) {
yyv4779 = append(yyv4779, "") // var yyz4779 FinalizerName
yyc4779 = true
}
yyh4779.ElemContainerState(yyj4779)
if yyj4779 < len(yyv4779) {
if r.TryDecodeAsNil() {
yyv4779[yyj4779] = ""
} else {
yyv4779[yyj4779] = FinalizerName(r.DecodeString())
}
} else {
z.DecSwallow()
}
}
if yyj4779 < len(yyv4779) {
yyv4779 = yyv4779[:yyj4779]
yyc4779 = true
} else if yyj4779 == 0 && yyv4779 == nil {
yyv4779 = []FinalizerName{}
yyc4779 = true
}
}
yyh4779.End()
if yyc4779 {
*v = yyv4779
}
}
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 _, yyv4783 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4784 := &yyv4783
yy4784.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
yyv4785 := *v
yyh4785, yyl4785 := z.DecSliceHelperStart()
var yyc4785 bool
if yyl4785 == 0 {
if yyv4785 == nil {
yyv4785 = []Namespace{}
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, 296)
if yyrt4785 {
if yyrl4785 <= cap(yyv4785) {
yyv4785 = yyv4785[:yyrl4785]
} else {
yyv4785 = make([]Namespace, yyrl4785)
}
} else {
yyv4785 = make([]Namespace, 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] = Namespace{}
} else {
yyv4786 := &yyv4785[yyj4785]
yyv4786.CodecDecodeSelf(d)
}
}
if yyrt4785 {
for ; yyj4785 < yyl4785; yyj4785++ {
yyv4785 = append(yyv4785, Namespace{})
yyh4785.ElemContainerState(yyj4785)
if r.TryDecodeAsNil() {
yyv4785[yyj4785] = Namespace{}
} else {
yyv4787 := &yyv4785[yyj4785]
yyv4787.CodecDecodeSelf(d)
}
}
}
} else {
yyj4785 := 0
for ; !r.CheckBreak(); yyj4785++ {
if yyj4785 >= len(yyv4785) {
yyv4785 = append(yyv4785, Namespace{}) // var yyz4785 Namespace
yyc4785 = true
}
yyh4785.ElemContainerState(yyj4785)
if yyj4785 < len(yyv4785) {
if r.TryDecodeAsNil() {
yyv4785[yyj4785] = Namespace{}
} 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 = []Namespace{}
yyc4785 = true
}
}
yyh4785.End()
if yyc4785 {
*v = yyv4785
}
}
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 _, yyv4789 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4790 := &yyv4789
yy4790.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
yyv4791 := *v
yyh4791, yyl4791 := z.DecSliceHelperStart()
var yyc4791 bool
if yyl4791 == 0 {
if yyv4791 == nil {
yyv4791 = []Event{}
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, 504)
if yyrt4791 {
if yyrl4791 <= cap(yyv4791) {
yyv4791 = yyv4791[:yyrl4791]
} else {
yyv4791 = make([]Event, yyrl4791)
}
} else {
yyv4791 = make([]Event, 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] = Event{}
} else {
yyv4792 := &yyv4791[yyj4791]
yyv4792.CodecDecodeSelf(d)
}
}
if yyrt4791 {
for ; yyj4791 < yyl4791; yyj4791++ {
yyv4791 = append(yyv4791, Event{})
yyh4791.ElemContainerState(yyj4791)
if r.TryDecodeAsNil() {
yyv4791[yyj4791] = Event{}
} else {
yyv4793 := &yyv4791[yyj4791]
yyv4793.CodecDecodeSelf(d)
}
}
}
} else {
yyj4791 := 0
for ; !r.CheckBreak(); yyj4791++ {
if yyj4791 >= len(yyv4791) {
yyv4791 = append(yyv4791, Event{}) // var yyz4791 Event
yyc4791 = true
}
yyh4791.ElemContainerState(yyj4791)
if yyj4791 < len(yyv4791) {
if r.TryDecodeAsNil() {
yyv4791[yyj4791] = Event{}
} 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 = []Event{}
yyc4791 = true
}
}
yyh4791.End()
if yyc4791 {
*v = yyv4791
}
}
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 _, yyv4795 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyv4795 == nil {
r.EncodeNil()
} else {
yym4796 := z.EncBinary()
_ = yym4796
if false {
} else if z.HasExtensions() && z.EncExt(yyv4795) {
} else {
z.EncFallback(yyv4795)
}
}
}
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
yyv4797 := *v
yyh4797, yyl4797 := z.DecSliceHelperStart()
var yyc4797 bool
if yyl4797 == 0 {
if yyv4797 == nil {
yyv4797 = []pkg7_runtime.Object{}
yyc4797 = true
} else if len(yyv4797) != 0 {
yyv4797 = yyv4797[:0]
yyc4797 = true
}
} else if yyl4797 > 0 {
var yyrr4797, yyrl4797 int
var yyrt4797 bool
if yyl4797 > cap(yyv4797) {
yyrg4797 := len(yyv4797) > 0
yyv24797 := yyv4797
yyrl4797, yyrt4797 = z.DecInferLen(yyl4797, z.DecBasicHandle().MaxInitLen, 16)
if yyrt4797 {
if yyrl4797 <= cap(yyv4797) {
yyv4797 = yyv4797[:yyrl4797]
} else {
yyv4797 = make([]pkg7_runtime.Object, yyrl4797)
}
} else {
yyv4797 = make([]pkg7_runtime.Object, yyrl4797)
}
yyc4797 = true
yyrr4797 = len(yyv4797)
if yyrg4797 {
copy(yyv4797, yyv24797)
}
} else if yyl4797 != len(yyv4797) {
yyv4797 = yyv4797[:yyl4797]
yyc4797 = true
}
yyj4797 := 0
for ; yyj4797 < yyrr4797; yyj4797++ {
yyh4797.ElemContainerState(yyj4797)
if r.TryDecodeAsNil() {
yyv4797[yyj4797] = nil
} else {
yyv4798 := &yyv4797[yyj4797]
yym4799 := z.DecBinary()
_ = yym4799
if false {
} else if z.HasExtensions() && z.DecExt(yyv4798) {
} else {
z.DecFallback(yyv4798, true)
}
}
}
if yyrt4797 {
for ; yyj4797 < yyl4797; yyj4797++ {
yyv4797 = append(yyv4797, nil)
yyh4797.ElemContainerState(yyj4797)
if r.TryDecodeAsNil() {
yyv4797[yyj4797] = nil
} else {
yyv4800 := &yyv4797[yyj4797]
yym4801 := z.DecBinary()
_ = yym4801
if false {
} else if z.HasExtensions() && z.DecExt(yyv4800) {
} else {
z.DecFallback(yyv4800, true)
}
}
}
}
} else {
yyj4797 := 0
for ; !r.CheckBreak(); yyj4797++ {
if yyj4797 >= len(yyv4797) {
yyv4797 = append(yyv4797, nil) // var yyz4797 pkg7_runtime.Object
yyc4797 = true
}
yyh4797.ElemContainerState(yyj4797)
if yyj4797 < len(yyv4797) {
if r.TryDecodeAsNil() {
yyv4797[yyj4797] = nil
} else {
yyv4802 := &yyv4797[yyj4797]
yym4803 := z.DecBinary()
_ = yym4803
if false {
} else if z.HasExtensions() && z.DecExt(yyv4802) {
} else {
z.DecFallback(yyv4802, true)
}
}
} else {
z.DecSwallow()
}
}
if yyj4797 < len(yyv4797) {
yyv4797 = yyv4797[:yyj4797]
yyc4797 = true
} else if yyj4797 == 0 && yyv4797 == nil {
yyv4797 = []pkg7_runtime.Object{}
yyc4797 = true
}
}
yyh4797.End()
if yyc4797 {
*v = yyv4797
}
}
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 _, yyv4804 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4805 := &yyv4804
yy4805.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
yyv4806 := *v
yyh4806, yyl4806 := z.DecSliceHelperStart()
var yyc4806 bool
if yyl4806 == 0 {
if yyv4806 == nil {
yyv4806 = []LimitRangeItem{}
yyc4806 = true
} else if len(yyv4806) != 0 {
yyv4806 = yyv4806[:0]
yyc4806 = true
}
} else if yyl4806 > 0 {
var yyrr4806, yyrl4806 int
var yyrt4806 bool
if yyl4806 > cap(yyv4806) {
yyrg4806 := len(yyv4806) > 0
yyv24806 := yyv4806
yyrl4806, yyrt4806 = z.DecInferLen(yyl4806, z.DecBasicHandle().MaxInitLen, 56)
if yyrt4806 {
if yyrl4806 <= cap(yyv4806) {
yyv4806 = yyv4806[:yyrl4806]
} else {
yyv4806 = make([]LimitRangeItem, yyrl4806)
}
} else {
yyv4806 = make([]LimitRangeItem, yyrl4806)
}
yyc4806 = true
yyrr4806 = len(yyv4806)
if yyrg4806 {
copy(yyv4806, yyv24806)
}
} else if yyl4806 != len(yyv4806) {
yyv4806 = yyv4806[:yyl4806]
yyc4806 = true
}
yyj4806 := 0
for ; yyj4806 < yyrr4806; yyj4806++ {
yyh4806.ElemContainerState(yyj4806)
if r.TryDecodeAsNil() {
yyv4806[yyj4806] = LimitRangeItem{}
} else {
yyv4807 := &yyv4806[yyj4806]
yyv4807.CodecDecodeSelf(d)
}
}
if yyrt4806 {
for ; yyj4806 < yyl4806; yyj4806++ {
yyv4806 = append(yyv4806, LimitRangeItem{})
yyh4806.ElemContainerState(yyj4806)
if r.TryDecodeAsNil() {
yyv4806[yyj4806] = LimitRangeItem{}
} else {
yyv4808 := &yyv4806[yyj4806]
yyv4808.CodecDecodeSelf(d)
}
}
}
} else {
yyj4806 := 0
for ; !r.CheckBreak(); yyj4806++ {
if yyj4806 >= len(yyv4806) {
yyv4806 = append(yyv4806, LimitRangeItem{}) // var yyz4806 LimitRangeItem
yyc4806 = true
}
yyh4806.ElemContainerState(yyj4806)
if yyj4806 < len(yyv4806) {
if r.TryDecodeAsNil() {
yyv4806[yyj4806] = LimitRangeItem{}
} else {
yyv4809 := &yyv4806[yyj4806]
yyv4809.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4806 < len(yyv4806) {
yyv4806 = yyv4806[:yyj4806]
yyc4806 = true
} else if yyj4806 == 0 && yyv4806 == nil {
yyv4806 = []LimitRangeItem{}
yyc4806 = true
}
}
yyh4806.End()
if yyc4806 {
*v = yyv4806
}
}
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 _, yyv4810 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4811 := &yyv4810
yy4811.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
yyv4812 := *v
yyh4812, yyl4812 := z.DecSliceHelperStart()
var yyc4812 bool
if yyl4812 == 0 {
if yyv4812 == nil {
yyv4812 = []LimitRange{}
yyc4812 = true
} else if len(yyv4812) != 0 {
yyv4812 = yyv4812[:0]
yyc4812 = true
}
} else if yyl4812 > 0 {
var yyrr4812, yyrl4812 int
var yyrt4812 bool
if yyl4812 > cap(yyv4812) {
yyrg4812 := len(yyv4812) > 0
yyv24812 := yyv4812
yyrl4812, yyrt4812 = z.DecInferLen(yyl4812, z.DecBasicHandle().MaxInitLen, 280)
if yyrt4812 {
if yyrl4812 <= cap(yyv4812) {
yyv4812 = yyv4812[:yyrl4812]
} else {
yyv4812 = make([]LimitRange, yyrl4812)
}
} else {
yyv4812 = make([]LimitRange, yyrl4812)
}
yyc4812 = true
yyrr4812 = len(yyv4812)
if yyrg4812 {
copy(yyv4812, yyv24812)
}
} else if yyl4812 != len(yyv4812) {
yyv4812 = yyv4812[:yyl4812]
yyc4812 = true
}
yyj4812 := 0
for ; yyj4812 < yyrr4812; yyj4812++ {
yyh4812.ElemContainerState(yyj4812)
if r.TryDecodeAsNil() {
yyv4812[yyj4812] = LimitRange{}
} else {
yyv4813 := &yyv4812[yyj4812]
yyv4813.CodecDecodeSelf(d)
}
}
if yyrt4812 {
for ; yyj4812 < yyl4812; yyj4812++ {
yyv4812 = append(yyv4812, LimitRange{})
yyh4812.ElemContainerState(yyj4812)
if r.TryDecodeAsNil() {
yyv4812[yyj4812] = LimitRange{}
} else {
yyv4814 := &yyv4812[yyj4812]
yyv4814.CodecDecodeSelf(d)
}
}
}
} else {
yyj4812 := 0
for ; !r.CheckBreak(); yyj4812++ {
if yyj4812 >= len(yyv4812) {
yyv4812 = append(yyv4812, LimitRange{}) // var yyz4812 LimitRange
yyc4812 = true
}
yyh4812.ElemContainerState(yyj4812)
if yyj4812 < len(yyv4812) {
if r.TryDecodeAsNil() {
yyv4812[yyj4812] = LimitRange{}
} else {
yyv4815 := &yyv4812[yyj4812]
yyv4815.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4812 < len(yyv4812) {
yyv4812 = yyv4812[:yyj4812]
yyc4812 = true
} else if yyj4812 == 0 && yyv4812 == nil {
yyv4812 = []LimitRange{}
yyc4812 = true
}
}
yyh4812.End()
if yyc4812 {
*v = yyv4812
}
}
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 _, yyv4816 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yyv4816.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
yyv4817 := *v
yyh4817, yyl4817 := z.DecSliceHelperStart()
var yyc4817 bool
if yyl4817 == 0 {
if yyv4817 == nil {
yyv4817 = []ResourceQuotaScope{}
yyc4817 = true
} else if len(yyv4817) != 0 {
yyv4817 = yyv4817[:0]
yyc4817 = true
}
} else if yyl4817 > 0 {
var yyrr4817, yyrl4817 int
var yyrt4817 bool
if yyl4817 > cap(yyv4817) {
yyrl4817, yyrt4817 = z.DecInferLen(yyl4817, z.DecBasicHandle().MaxInitLen, 16)
if yyrt4817 {
if yyrl4817 <= cap(yyv4817) {
yyv4817 = yyv4817[:yyrl4817]
} else {
yyv4817 = make([]ResourceQuotaScope, yyrl4817)
}
} else {
yyv4817 = make([]ResourceQuotaScope, yyrl4817)
}
yyc4817 = true
yyrr4817 = len(yyv4817)
} else if yyl4817 != len(yyv4817) {
yyv4817 = yyv4817[:yyl4817]
yyc4817 = true
}
yyj4817 := 0
for ; yyj4817 < yyrr4817; yyj4817++ {
yyh4817.ElemContainerState(yyj4817)
if r.TryDecodeAsNil() {
yyv4817[yyj4817] = ""
} else {
yyv4817[yyj4817] = ResourceQuotaScope(r.DecodeString())
}
}
if yyrt4817 {
for ; yyj4817 < yyl4817; yyj4817++ {
yyv4817 = append(yyv4817, "")
yyh4817.ElemContainerState(yyj4817)
if r.TryDecodeAsNil() {
yyv4817[yyj4817] = ""
} else {
yyv4817[yyj4817] = ResourceQuotaScope(r.DecodeString())
}
}
}
} else {
yyj4817 := 0
for ; !r.CheckBreak(); yyj4817++ {
if yyj4817 >= len(yyv4817) {
yyv4817 = append(yyv4817, "") // var yyz4817 ResourceQuotaScope
yyc4817 = true
}
yyh4817.ElemContainerState(yyj4817)
if yyj4817 < len(yyv4817) {
if r.TryDecodeAsNil() {
yyv4817[yyj4817] = ""
} else {
yyv4817[yyj4817] = ResourceQuotaScope(r.DecodeString())
}
} else {
z.DecSwallow()
}
}
if yyj4817 < len(yyv4817) {
yyv4817 = yyv4817[:yyj4817]
yyc4817 = true
} else if yyj4817 == 0 && yyv4817 == nil {
yyv4817 = []ResourceQuotaScope{}
yyc4817 = true
}
}
yyh4817.End()
if yyc4817 {
*v = yyv4817
}
}
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 _, yyv4821 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4822 := &yyv4821
yy4822.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
yyv4823 := *v
yyh4823, yyl4823 := z.DecSliceHelperStart()
var yyc4823 bool
if yyl4823 == 0 {
if yyv4823 == nil {
yyv4823 = []ResourceQuota{}
yyc4823 = true
} else if len(yyv4823) != 0 {
yyv4823 = yyv4823[:0]
yyc4823 = true
}
} else if yyl4823 > 0 {
var yyrr4823, yyrl4823 int
var yyrt4823 bool
if yyl4823 > cap(yyv4823) {
yyrg4823 := len(yyv4823) > 0
yyv24823 := yyv4823
yyrl4823, yyrt4823 = z.DecInferLen(yyl4823, z.DecBasicHandle().MaxInitLen, 304)
if yyrt4823 {
if yyrl4823 <= cap(yyv4823) {
yyv4823 = yyv4823[:yyrl4823]
} else {
yyv4823 = make([]ResourceQuota, yyrl4823)
}
} else {
yyv4823 = make([]ResourceQuota, yyrl4823)
}
yyc4823 = true
yyrr4823 = len(yyv4823)
if yyrg4823 {
copy(yyv4823, yyv24823)
}
} else if yyl4823 != len(yyv4823) {
yyv4823 = yyv4823[:yyl4823]
yyc4823 = true
}
yyj4823 := 0
for ; yyj4823 < yyrr4823; yyj4823++ {
yyh4823.ElemContainerState(yyj4823)
if r.TryDecodeAsNil() {
yyv4823[yyj4823] = ResourceQuota{}
} else {
yyv4824 := &yyv4823[yyj4823]
yyv4824.CodecDecodeSelf(d)
}
}
if yyrt4823 {
for ; yyj4823 < yyl4823; yyj4823++ {
yyv4823 = append(yyv4823, ResourceQuota{})
yyh4823.ElemContainerState(yyj4823)
if r.TryDecodeAsNil() {
yyv4823[yyj4823] = ResourceQuota{}
} else {
yyv4825 := &yyv4823[yyj4823]
yyv4825.CodecDecodeSelf(d)
}
}
}
} else {
yyj4823 := 0
for ; !r.CheckBreak(); yyj4823++ {
if yyj4823 >= len(yyv4823) {
yyv4823 = append(yyv4823, ResourceQuota{}) // var yyz4823 ResourceQuota
yyc4823 = true
}
yyh4823.ElemContainerState(yyj4823)
if yyj4823 < len(yyv4823) {
if r.TryDecodeAsNil() {
yyv4823[yyj4823] = ResourceQuota{}
} else {
yyv4826 := &yyv4823[yyj4823]
yyv4826.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4823 < len(yyv4823) {
yyv4823 = yyv4823[:yyj4823]
yyc4823 = true
} else if yyj4823 == 0 && yyv4823 == nil {
yyv4823 = []ResourceQuota{}
yyc4823 = true
}
}
yyh4823.End()
if yyc4823 {
*v = yyv4823
}
}
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 yyk4827, yyv4827 := range v {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
yym4828 := z.EncBinary()
_ = yym4828
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(yyk4827))
}
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyv4827 == nil {
r.EncodeNil()
} else {
yym4829 := z.EncBinary()
_ = yym4829
if false {
} else {
r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv4827))
}
}
}
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
yyv4830 := *v
yyl4830 := r.ReadMapStart()
yybh4830 := z.DecBasicHandle()
if yyv4830 == nil {
yyrl4830, _ := z.DecInferLen(yyl4830, yybh4830.MaxInitLen, 40)
yyv4830 = make(map[string][]uint8, yyrl4830)
*v = yyv4830
}
var yymk4830 string
var yymv4830 []uint8
var yymg4830 bool
if yybh4830.MapValueReset {
yymg4830 = true
}
if yyl4830 > 0 {
for yyj4830 := 0; yyj4830 < yyl4830; yyj4830++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() {
yymk4830 = ""
} else {
yymk4830 = string(r.DecodeString())
}
if yymg4830 {
yymv4830 = yyv4830[yymk4830]
} else {
yymv4830 = nil
}
z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() {
yymv4830 = nil
} else {
yyv4832 := &yymv4830
yym4833 := z.DecBinary()
_ = yym4833
if false {
} else {
*yyv4832 = r.DecodeBytes(*(*[]byte)(yyv4832), false, false)
}
}
if yyv4830 != nil {
yyv4830[yymk4830] = yymv4830
}
}
} else if yyl4830 < 0 {
for yyj4830 := 0; !r.CheckBreak(); yyj4830++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() {
yymk4830 = ""
} else {
yymk4830 = string(r.DecodeString())
}
if yymg4830 {
yymv4830 = yyv4830[yymk4830]
} else {
yymv4830 = nil
}
z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() {
yymv4830 = nil
} else {
yyv4835 := &yymv4830
yym4836 := z.DecBinary()
_ = yym4836
if false {
} else {
*yyv4835 = r.DecodeBytes(*(*[]byte)(yyv4835), false, false)
}
}
if yyv4830 != nil {
yyv4830[yymk4830] = yymv4830
}
}
} // 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 _, yyv4837 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4838 := &yyv4837
yy4838.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
yyv4839 := *v
yyh4839, yyl4839 := z.DecSliceHelperStart()
var yyc4839 bool
if yyl4839 == 0 {
if yyv4839 == nil {
yyv4839 = []Secret{}
yyc4839 = true
} else if len(yyv4839) != 0 {
yyv4839 = yyv4839[:0]
yyc4839 = true
}
} else if yyl4839 > 0 {
var yyrr4839, yyrl4839 int
var yyrt4839 bool
if yyl4839 > cap(yyv4839) {
yyrg4839 := len(yyv4839) > 0
yyv24839 := yyv4839
yyrl4839, yyrt4839 = z.DecInferLen(yyl4839, z.DecBasicHandle().MaxInitLen, 280)
if yyrt4839 {
if yyrl4839 <= cap(yyv4839) {
yyv4839 = yyv4839[:yyrl4839]
} else {
yyv4839 = make([]Secret, yyrl4839)
}
} else {
yyv4839 = make([]Secret, yyrl4839)
}
yyc4839 = true
yyrr4839 = len(yyv4839)
if yyrg4839 {
copy(yyv4839, yyv24839)
}
} else if yyl4839 != len(yyv4839) {
yyv4839 = yyv4839[:yyl4839]
yyc4839 = true
}
yyj4839 := 0
for ; yyj4839 < yyrr4839; yyj4839++ {
yyh4839.ElemContainerState(yyj4839)
if r.TryDecodeAsNil() {
yyv4839[yyj4839] = Secret{}
} else {
yyv4840 := &yyv4839[yyj4839]
yyv4840.CodecDecodeSelf(d)
}
}
if yyrt4839 {
for ; yyj4839 < yyl4839; yyj4839++ {
yyv4839 = append(yyv4839, Secret{})
yyh4839.ElemContainerState(yyj4839)
if r.TryDecodeAsNil() {
yyv4839[yyj4839] = Secret{}
} else {
yyv4841 := &yyv4839[yyj4839]
yyv4841.CodecDecodeSelf(d)
}
}
}
} else {
yyj4839 := 0
for ; !r.CheckBreak(); yyj4839++ {
if yyj4839 >= len(yyv4839) {
yyv4839 = append(yyv4839, Secret{}) // var yyz4839 Secret
yyc4839 = true
}
yyh4839.ElemContainerState(yyj4839)
if yyj4839 < len(yyv4839) {
if r.TryDecodeAsNil() {
yyv4839[yyj4839] = Secret{}
} else {
yyv4842 := &yyv4839[yyj4839]
yyv4842.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4839 < len(yyv4839) {
yyv4839 = yyv4839[:yyj4839]
yyc4839 = true
} else if yyj4839 == 0 && yyv4839 == nil {
yyv4839 = []Secret{}
yyc4839 = true
}
}
yyh4839.End()
if yyc4839 {
*v = yyv4839
}
}
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 _, yyv4843 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4844 := &yyv4843
yy4844.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
yyv4845 := *v
yyh4845, yyl4845 := z.DecSliceHelperStart()
var yyc4845 bool
if yyl4845 == 0 {
if yyv4845 == nil {
yyv4845 = []ConfigMap{}
yyc4845 = true
} else if len(yyv4845) != 0 {
yyv4845 = yyv4845[:0]
yyc4845 = true
}
} else if yyl4845 > 0 {
var yyrr4845, yyrl4845 int
var yyrt4845 bool
if yyl4845 > cap(yyv4845) {
yyrg4845 := len(yyv4845) > 0
yyv24845 := yyv4845
yyrl4845, yyrt4845 = z.DecInferLen(yyl4845, z.DecBasicHandle().MaxInitLen, 264)
if yyrt4845 {
if yyrl4845 <= cap(yyv4845) {
yyv4845 = yyv4845[:yyrl4845]
} else {
yyv4845 = make([]ConfigMap, yyrl4845)
}
} else {
yyv4845 = make([]ConfigMap, yyrl4845)
}
yyc4845 = true
yyrr4845 = len(yyv4845)
if yyrg4845 {
copy(yyv4845, yyv24845)
}
} else if yyl4845 != len(yyv4845) {
yyv4845 = yyv4845[:yyl4845]
yyc4845 = true
}
yyj4845 := 0
for ; yyj4845 < yyrr4845; yyj4845++ {
yyh4845.ElemContainerState(yyj4845)
if r.TryDecodeAsNil() {
yyv4845[yyj4845] = ConfigMap{}
} else {
yyv4846 := &yyv4845[yyj4845]
yyv4846.CodecDecodeSelf(d)
}
}
if yyrt4845 {
for ; yyj4845 < yyl4845; yyj4845++ {
yyv4845 = append(yyv4845, ConfigMap{})
yyh4845.ElemContainerState(yyj4845)
if r.TryDecodeAsNil() {
yyv4845[yyj4845] = ConfigMap{}
} else {
yyv4847 := &yyv4845[yyj4845]
yyv4847.CodecDecodeSelf(d)
}
}
}
} else {
yyj4845 := 0
for ; !r.CheckBreak(); yyj4845++ {
if yyj4845 >= len(yyv4845) {
yyv4845 = append(yyv4845, ConfigMap{}) // var yyz4845 ConfigMap
yyc4845 = true
}
yyh4845.ElemContainerState(yyj4845)
if yyj4845 < len(yyv4845) {
if r.TryDecodeAsNil() {
yyv4845[yyj4845] = ConfigMap{}
} else {
yyv4848 := &yyv4845[yyj4845]
yyv4848.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4845 < len(yyv4845) {
yyv4845 = yyv4845[:yyj4845]
yyc4845 = true
} else if yyj4845 == 0 && yyv4845 == nil {
yyv4845 = []ConfigMap{}
yyc4845 = true
}
}
yyh4845.End()
if yyc4845 {
*v = yyv4845
}
}
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 _, yyv4849 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4850 := &yyv4849
yy4850.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
yyv4851 := *v
yyh4851, yyl4851 := z.DecSliceHelperStart()
var yyc4851 bool
if yyl4851 == 0 {
if yyv4851 == nil {
yyv4851 = []ComponentCondition{}
yyc4851 = true
} else if len(yyv4851) != 0 {
yyv4851 = yyv4851[:0]
yyc4851 = true
}
} else if yyl4851 > 0 {
var yyrr4851, yyrl4851 int
var yyrt4851 bool
if yyl4851 > cap(yyv4851) {
yyrg4851 := len(yyv4851) > 0
yyv24851 := yyv4851
yyrl4851, yyrt4851 = z.DecInferLen(yyl4851, z.DecBasicHandle().MaxInitLen, 64)
if yyrt4851 {
if yyrl4851 <= cap(yyv4851) {
yyv4851 = yyv4851[:yyrl4851]
} else {
yyv4851 = make([]ComponentCondition, yyrl4851)
}
} else {
yyv4851 = make([]ComponentCondition, yyrl4851)
}
yyc4851 = true
yyrr4851 = len(yyv4851)
if yyrg4851 {
copy(yyv4851, yyv24851)
}
} else if yyl4851 != len(yyv4851) {
yyv4851 = yyv4851[:yyl4851]
yyc4851 = true
}
yyj4851 := 0
for ; yyj4851 < yyrr4851; yyj4851++ {
yyh4851.ElemContainerState(yyj4851)
if r.TryDecodeAsNil() {
yyv4851[yyj4851] = ComponentCondition{}
} else {
yyv4852 := &yyv4851[yyj4851]
yyv4852.CodecDecodeSelf(d)
}
}
if yyrt4851 {
for ; yyj4851 < yyl4851; yyj4851++ {
yyv4851 = append(yyv4851, ComponentCondition{})
yyh4851.ElemContainerState(yyj4851)
if r.TryDecodeAsNil() {
yyv4851[yyj4851] = ComponentCondition{}
} else {
yyv4853 := &yyv4851[yyj4851]
yyv4853.CodecDecodeSelf(d)
}
}
}
} else {
yyj4851 := 0
for ; !r.CheckBreak(); yyj4851++ {
if yyj4851 >= len(yyv4851) {
yyv4851 = append(yyv4851, ComponentCondition{}) // var yyz4851 ComponentCondition
yyc4851 = true
}
yyh4851.ElemContainerState(yyj4851)
if yyj4851 < len(yyv4851) {
if r.TryDecodeAsNil() {
yyv4851[yyj4851] = ComponentCondition{}
} else {
yyv4854 := &yyv4851[yyj4851]
yyv4854.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4851 < len(yyv4851) {
yyv4851 = yyv4851[:yyj4851]
yyc4851 = true
} else if yyj4851 == 0 && yyv4851 == nil {
yyv4851 = []ComponentCondition{}
yyc4851 = true
}
}
yyh4851.End()
if yyc4851 {
*v = yyv4851
}
}
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 _, yyv4855 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4856 := &yyv4855
yy4856.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
yyv4857 := *v
yyh4857, yyl4857 := z.DecSliceHelperStart()
var yyc4857 bool
if yyl4857 == 0 {
if yyv4857 == nil {
yyv4857 = []ComponentStatus{}
yyc4857 = true
} else if len(yyv4857) != 0 {
yyv4857 = yyv4857[:0]
yyc4857 = true
}
} else if yyl4857 > 0 {
var yyrr4857, yyrl4857 int
var yyrt4857 bool
if yyl4857 > cap(yyv4857) {
yyrg4857 := len(yyv4857) > 0
yyv24857 := yyv4857
yyrl4857, yyrt4857 = z.DecInferLen(yyl4857, z.DecBasicHandle().MaxInitLen, 280)
if yyrt4857 {
if yyrl4857 <= cap(yyv4857) {
yyv4857 = yyv4857[:yyrl4857]
} else {
yyv4857 = make([]ComponentStatus, yyrl4857)
}
} else {
yyv4857 = make([]ComponentStatus, yyrl4857)
}
yyc4857 = true
yyrr4857 = len(yyv4857)
if yyrg4857 {
copy(yyv4857, yyv24857)
}
} else if yyl4857 != len(yyv4857) {
yyv4857 = yyv4857[:yyl4857]
yyc4857 = true
}
yyj4857 := 0
for ; yyj4857 < yyrr4857; yyj4857++ {
yyh4857.ElemContainerState(yyj4857)
if r.TryDecodeAsNil() {
yyv4857[yyj4857] = ComponentStatus{}
} else {
yyv4858 := &yyv4857[yyj4857]
yyv4858.CodecDecodeSelf(d)
}
}
if yyrt4857 {
for ; yyj4857 < yyl4857; yyj4857++ {
yyv4857 = append(yyv4857, ComponentStatus{})
yyh4857.ElemContainerState(yyj4857)
if r.TryDecodeAsNil() {
yyv4857[yyj4857] = ComponentStatus{}
} else {
yyv4859 := &yyv4857[yyj4857]
yyv4859.CodecDecodeSelf(d)
}
}
}
} else {
yyj4857 := 0
for ; !r.CheckBreak(); yyj4857++ {
if yyj4857 >= len(yyv4857) {
yyv4857 = append(yyv4857, ComponentStatus{}) // var yyz4857 ComponentStatus
yyc4857 = true
}
yyh4857.ElemContainerState(yyj4857)
if yyj4857 < len(yyv4857) {
if r.TryDecodeAsNil() {
yyv4857[yyj4857] = ComponentStatus{}
} else {
yyv4860 := &yyv4857[yyj4857]
yyv4860.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4857 < len(yyv4857) {
yyv4857 = yyv4857[:yyj4857]
yyc4857 = true
} else if yyj4857 == 0 && yyv4857 == nil {
yyv4857 = []ComponentStatus{}
yyc4857 = true
}
}
yyh4857.End()
if yyc4857 {
*v = yyv4857
}
}