traefik/vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/types.generated.go

24422 lines
581 KiB
Go
Raw Normal View History

2017-02-07 21:33:23 +00:00
/*
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 v1beta1
import (
"errors"
"fmt"
codec1978 "github.com/ugorji/go/codec"
2017-04-07 10:49:53 +00:00
pkg4_resource "k8s.io/client-go/pkg/api/resource"
pkg1_unversioned "k8s.io/client-go/pkg/api/unversioned"
pkg2_v1 "k8s.io/client-go/pkg/api/v1"
pkg3_types "k8s.io/client-go/pkg/types"
pkg5_intstr "k8s.io/client-go/pkg/util/intstr"
2017-02-07 21:33:23 +00:00
"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 pkg4_resource.Quantity
var v1 pkg1_unversioned.TypeMeta
var v2 pkg2_v1.ObjectMeta
var v3 pkg3_types.UID
var v4 pkg5_intstr.IntOrString
var v5 time.Time
_, _, _, _, _, _ = v0, v1, v2, v3, v4, v5
}
}
func (x *ScaleSpec) 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 [1]bool
_, _, _ = yysep2, yyq2, yy2arr2
const yyr2 bool = false
yyq2[0] = x.Replicas != 0
var yynn2 int
if yyr2 || yy2arr2 {
r.EncodeArrayStart(1)
} 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.EncodeInt(int64(x.Replicas))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq2[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("replicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym5 := z.EncBinary()
_ = yym5
if false {
} else {
r.EncodeInt(int64(x.Replicas))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ScaleSpec) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym6 := z.DecBinary()
_ = yym6
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct7 := r.ContainerType()
if yyct7 == codecSelferValueTypeMap1234 {
yyl7 := r.ReadMapStart()
if yyl7 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl7, d)
}
} else if yyct7 == codecSelferValueTypeArray1234 {
yyl7 := r.ReadArrayStart()
if yyl7 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl7, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ScaleSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys8Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys8Slc
var yyhl8 bool = l >= 0
for yyj8 := 0; ; yyj8++ {
if yyhl8 {
if yyj8 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys8Slc = r.DecodeBytes(yys8Slc, true, true)
yys8 := string(yys8Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys8 {
case "replicas":
if r.TryDecodeAsNil() {
x.Replicas = 0
} else {
x.Replicas = int32(r.DecodeInt(32))
}
default:
z.DecStructFieldNotFound(-1, yys8)
} // end switch yys8
} // end for yyj8
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ScaleSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj10 int
var yyb10 bool
var yyhl10 bool = l >= 0
yyj10++
if yyhl10 {
yyb10 = yyj10 > l
} else {
yyb10 = r.CheckBreak()
}
if yyb10 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Replicas = 0
} else {
x.Replicas = int32(r.DecodeInt(32))
}
for {
yyj10++
if yyhl10 {
yyb10 = yyj10 > l
} else {
yyb10 = r.CheckBreak()
}
if yyb10 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj10-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ScaleStatus) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym12 := z.EncBinary()
_ = yym12
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep13 := !z.EncBinary()
yy2arr13 := z.EncBasicHandle().StructToArray
var yyq13 [3]bool
_, _, _ = yysep13, yyq13, yy2arr13
const yyr13 bool = false
yyq13[1] = len(x.Selector) != 0
yyq13[2] = x.TargetSelector != ""
var yynn13 int
if yyr13 || yy2arr13 {
r.EncodeArrayStart(3)
} else {
yynn13 = 1
for _, b := range yyq13 {
if b {
yynn13++
}
}
r.EncodeMapStart(yynn13)
yynn13 = 0
}
if yyr13 || yy2arr13 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym15 := z.EncBinary()
_ = yym15
if false {
} else {
r.EncodeInt(int64(x.Replicas))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("replicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym16 := z.EncBinary()
_ = yym16
if false {
} else {
r.EncodeInt(int64(x.Replicas))
}
}
if yyr13 || yy2arr13 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq13[1] {
if x.Selector == nil {
r.EncodeNil()
} else {
yym18 := z.EncBinary()
_ = yym18
if false {
} else {
z.F.EncMapStringStringV(x.Selector, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq13[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("selector"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Selector == nil {
r.EncodeNil()
} else {
yym19 := z.EncBinary()
_ = yym19
if false {
} else {
z.F.EncMapStringStringV(x.Selector, false, e)
}
}
}
}
if yyr13 || yy2arr13 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq13[2] {
yym21 := z.EncBinary()
_ = yym21
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.TargetSelector))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq13[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("targetSelector"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym22 := z.EncBinary()
_ = yym22
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.TargetSelector))
}
}
}
if yyr13 || yy2arr13 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ScaleStatus) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym23 := z.DecBinary()
_ = yym23
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct24 := r.ContainerType()
if yyct24 == codecSelferValueTypeMap1234 {
yyl24 := r.ReadMapStart()
if yyl24 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl24, d)
}
} else if yyct24 == codecSelferValueTypeArray1234 {
yyl24 := r.ReadArrayStart()
if yyl24 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl24, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ScaleStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys25Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys25Slc
var yyhl25 bool = l >= 0
for yyj25 := 0; ; yyj25++ {
if yyhl25 {
if yyj25 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys25Slc = r.DecodeBytes(yys25Slc, true, true)
yys25 := string(yys25Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys25 {
case "replicas":
if r.TryDecodeAsNil() {
x.Replicas = 0
} else {
x.Replicas = int32(r.DecodeInt(32))
}
case "selector":
if r.TryDecodeAsNil() {
x.Selector = nil
} else {
yyv27 := &x.Selector
yym28 := z.DecBinary()
_ = yym28
if false {
} else {
z.F.DecMapStringStringX(yyv27, false, d)
}
}
case "targetSelector":
if r.TryDecodeAsNil() {
x.TargetSelector = ""
} else {
x.TargetSelector = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys25)
} // end switch yys25
} // end for yyj25
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ScaleStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj30 int
var yyb30 bool
var yyhl30 bool = l >= 0
yyj30++
if yyhl30 {
yyb30 = yyj30 > l
} else {
yyb30 = r.CheckBreak()
}
if yyb30 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Replicas = 0
} else {
x.Replicas = int32(r.DecodeInt(32))
}
yyj30++
if yyhl30 {
yyb30 = yyj30 > l
} else {
yyb30 = r.CheckBreak()
}
if yyb30 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Selector = nil
} else {
yyv32 := &x.Selector
yym33 := z.DecBinary()
_ = yym33
if false {
} else {
z.F.DecMapStringStringX(yyv32, false, d)
}
}
yyj30++
if yyhl30 {
yyb30 = yyj30 > l
} else {
yyb30 = r.CheckBreak()
}
if yyb30 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TargetSelector = ""
} else {
x.TargetSelector = string(r.DecodeString())
}
for {
yyj30++
if yyhl30 {
yyb30 = yyj30 > l
} else {
yyb30 = r.CheckBreak()
}
if yyb30 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj30-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *Scale) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym35 := z.EncBinary()
_ = yym35
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep36 := !z.EncBinary()
yy2arr36 := z.EncBasicHandle().StructToArray
var yyq36 [5]bool
_, _, _ = yysep36, yyq36, yy2arr36
const yyr36 bool = false
yyq36[0] = x.Kind != ""
yyq36[1] = x.APIVersion != ""
yyq36[2] = true
yyq36[3] = true
yyq36[4] = true
var yynn36 int
if yyr36 || yy2arr36 {
r.EncodeArrayStart(5)
} else {
yynn36 = 0
for _, b := range yyq36 {
if b {
yynn36++
}
}
r.EncodeMapStart(yynn36)
yynn36 = 0
}
if yyr36 || yy2arr36 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq36[0] {
yym38 := z.EncBinary()
_ = yym38
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq36[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym39 := z.EncBinary()
_ = yym39
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr36 || yy2arr36 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq36[1] {
yym41 := z.EncBinary()
_ = yym41
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq36[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym42 := z.EncBinary()
_ = yym42
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr36 || yy2arr36 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq36[2] {
yy44 := &x.ObjectMeta
yy44.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq36[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy45 := &x.ObjectMeta
yy45.CodecEncodeSelf(e)
}
}
if yyr36 || yy2arr36 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq36[3] {
yy47 := &x.Spec
yy47.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq36[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy48 := &x.Spec
yy48.CodecEncodeSelf(e)
}
}
if yyr36 || yy2arr36 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq36[4] {
yy50 := &x.Status
yy50.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq36[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy51 := &x.Status
yy51.CodecEncodeSelf(e)
}
}
if yyr36 || yy2arr36 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *Scale) 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 *Scale) 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 "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 = pkg2_v1.ObjectMeta{}
} else {
yyv57 := &x.ObjectMeta
yyv57.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = ScaleSpec{}
} else {
yyv58 := &x.Spec
yyv58.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = ScaleStatus{}
} else {
yyv59 := &x.Status
yyv59.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys54)
} // end switch yys54
} // end for yyj54
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *Scale) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj60 int
var yyb60 bool
var yyhl60 bool = l >= 0
yyj60++
if yyhl60 {
yyb60 = yyj60 > l
} else {
yyb60 = r.CheckBreak()
}
if yyb60 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj60++
if yyhl60 {
yyb60 = yyj60 > l
} else {
yyb60 = r.CheckBreak()
}
if yyb60 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj60++
if yyhl60 {
yyb60 = yyj60 > l
} else {
yyb60 = r.CheckBreak()
}
if yyb60 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{}
} else {
yyv63 := &x.ObjectMeta
yyv63.CodecDecodeSelf(d)
}
yyj60++
if yyhl60 {
yyb60 = yyj60 > l
} else {
yyb60 = r.CheckBreak()
}
if yyb60 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = ScaleSpec{}
} else {
yyv64 := &x.Spec
yyv64.CodecDecodeSelf(d)
}
yyj60++
if yyhl60 {
yyb60 = yyj60 > l
} else {
yyb60 = r.CheckBreak()
}
if yyb60 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ScaleStatus{}
} else {
yyv65 := &x.Status
yyv65.CodecDecodeSelf(d)
}
for {
yyj60++
if yyhl60 {
yyb60 = yyj60 > l
} else {
yyb60 = r.CheckBreak()
}
if yyb60 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj60-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ReplicationControllerDummy) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym66 := z.EncBinary()
_ = yym66
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep67 := !z.EncBinary()
yy2arr67 := z.EncBasicHandle().StructToArray
var yyq67 [2]bool
_, _, _ = yysep67, yyq67, yy2arr67
const yyr67 bool = false
yyq67[0] = x.Kind != ""
yyq67[1] = x.APIVersion != ""
var yynn67 int
if yyr67 || yy2arr67 {
r.EncodeArrayStart(2)
} else {
yynn67 = 0
for _, b := range yyq67 {
if b {
yynn67++
}
}
r.EncodeMapStart(yynn67)
yynn67 = 0
}
if yyr67 || yy2arr67 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq67[0] {
yym69 := z.EncBinary()
_ = yym69
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq67[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym70 := z.EncBinary()
_ = yym70
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr67 || yy2arr67 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq67[1] {
yym72 := z.EncBinary()
_ = yym72
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq67[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym73 := z.EncBinary()
_ = yym73
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr67 || yy2arr67 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ReplicationControllerDummy) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym74 := z.DecBinary()
_ = yym74
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct75 := r.ContainerType()
if yyct75 == codecSelferValueTypeMap1234 {
yyl75 := r.ReadMapStart()
if yyl75 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl75, d)
}
} else if yyct75 == codecSelferValueTypeArray1234 {
yyl75 := r.ReadArrayStart()
if yyl75 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl75, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ReplicationControllerDummy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys76Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys76Slc
var yyhl76 bool = l >= 0
for yyj76 := 0; ; yyj76++ {
if yyhl76 {
if yyj76 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys76Slc = r.DecodeBytes(yys76Slc, true, true)
yys76 := string(yys76Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys76 {
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())
}
default:
z.DecStructFieldNotFound(-1, yys76)
} // end switch yys76
} // end for yyj76
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ReplicationControllerDummy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj79 int
var yyb79 bool
var yyhl79 bool = l >= 0
yyj79++
if yyhl79 {
yyb79 = yyj79 > l
} else {
yyb79 = r.CheckBreak()
}
if yyb79 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj79++
if yyhl79 {
yyb79 = yyj79 > l
} else {
yyb79 = r.CheckBreak()
}
if yyb79 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
for {
yyj79++
if yyhl79 {
yyb79 = yyj79 > l
} else {
yyb79 = r.CheckBreak()
}
if yyb79 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj79-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *SubresourceReference) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym82 := z.EncBinary()
_ = yym82
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep83 := !z.EncBinary()
yy2arr83 := z.EncBasicHandle().StructToArray
var yyq83 [4]bool
_, _, _ = yysep83, yyq83, yy2arr83
const yyr83 bool = false
yyq83[0] = x.Kind != ""
yyq83[1] = x.Name != ""
yyq83[2] = x.APIVersion != ""
yyq83[3] = x.Subresource != ""
var yynn83 int
if yyr83 || yy2arr83 {
r.EncodeArrayStart(4)
} else {
yynn83 = 0
for _, b := range yyq83 {
if b {
yynn83++
}
}
r.EncodeMapStart(yynn83)
yynn83 = 0
}
if yyr83 || yy2arr83 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq83[0] {
yym85 := z.EncBinary()
_ = yym85
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq83[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym86 := z.EncBinary()
_ = yym86
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr83 || yy2arr83 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq83[1] {
yym88 := z.EncBinary()
_ = yym88
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq83[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym89 := z.EncBinary()
_ = yym89
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
}
if yyr83 || yy2arr83 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq83[2] {
yym91 := z.EncBinary()
_ = yym91
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq83[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym92 := z.EncBinary()
_ = yym92
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr83 || yy2arr83 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq83[3] {
yym94 := z.EncBinary()
_ = yym94
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Subresource))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq83[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("subresource"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym95 := z.EncBinary()
_ = yym95
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Subresource))
}
}
}
if yyr83 || yy2arr83 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *SubresourceReference) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym96 := z.DecBinary()
_ = yym96
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct97 := r.ContainerType()
if yyct97 == codecSelferValueTypeMap1234 {
yyl97 := r.ReadMapStart()
if yyl97 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl97, d)
}
} else if yyct97 == codecSelferValueTypeArray1234 {
yyl97 := r.ReadArrayStart()
if yyl97 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl97, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *SubresourceReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys98Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys98Slc
var yyhl98 bool = l >= 0
for yyj98 := 0; ; yyj98++ {
if yyhl98 {
if yyj98 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys98Slc = r.DecodeBytes(yys98Slc, true, true)
yys98 := string(yys98Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys98 {
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 "apiVersion":
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
case "subresource":
if r.TryDecodeAsNil() {
x.Subresource = ""
} else {
x.Subresource = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys98)
} // end switch yys98
} // end for yyj98
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *SubresourceReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj103 int
var yyb103 bool
var yyhl103 bool = l >= 0
yyj103++
if yyhl103 {
yyb103 = yyj103 > l
} else {
yyb103 = r.CheckBreak()
}
if yyb103 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj103++
if yyhl103 {
yyb103 = yyj103 > l
} else {
yyb103 = r.CheckBreak()
}
if yyb103 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj103++
if yyhl103 {
yyb103 = yyj103 > l
} else {
yyb103 = r.CheckBreak()
}
if yyb103 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj103++
if yyhl103 {
yyb103 = yyj103 > l
} else {
yyb103 = r.CheckBreak()
}
if yyb103 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Subresource = ""
} else {
x.Subresource = string(r.DecodeString())
}
for {
yyj103++
if yyhl103 {
yyb103 = yyj103 > l
} else {
yyb103 = r.CheckBreak()
}
if yyb103 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj103-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *CPUTargetUtilization) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym108 := z.EncBinary()
_ = yym108
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep109 := !z.EncBinary()
yy2arr109 := z.EncBasicHandle().StructToArray
var yyq109 [1]bool
_, _, _ = yysep109, yyq109, yy2arr109
const yyr109 bool = false
var yynn109 int
if yyr109 || yy2arr109 {
r.EncodeArrayStart(1)
} else {
yynn109 = 1
for _, b := range yyq109 {
if b {
yynn109++
}
}
r.EncodeMapStart(yynn109)
yynn109 = 0
}
if yyr109 || yy2arr109 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym111 := z.EncBinary()
_ = yym111
if false {
} else {
r.EncodeInt(int64(x.TargetPercentage))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("targetPercentage"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym112 := z.EncBinary()
_ = yym112
if false {
} else {
r.EncodeInt(int64(x.TargetPercentage))
}
}
if yyr109 || yy2arr109 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *CPUTargetUtilization) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym113 := z.DecBinary()
_ = yym113
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct114 := r.ContainerType()
if yyct114 == codecSelferValueTypeMap1234 {
yyl114 := r.ReadMapStart()
if yyl114 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl114, d)
}
} else if yyct114 == codecSelferValueTypeArray1234 {
yyl114 := r.ReadArrayStart()
if yyl114 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl114, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *CPUTargetUtilization) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys115Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys115Slc
var yyhl115 bool = l >= 0
for yyj115 := 0; ; yyj115++ {
if yyhl115 {
if yyj115 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys115Slc = r.DecodeBytes(yys115Slc, true, true)
yys115 := string(yys115Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys115 {
case "targetPercentage":
if r.TryDecodeAsNil() {
x.TargetPercentage = 0
} else {
x.TargetPercentage = int32(r.DecodeInt(32))
}
default:
z.DecStructFieldNotFound(-1, yys115)
} // end switch yys115
} // end for yyj115
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *CPUTargetUtilization) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj117 int
var yyb117 bool
var yyhl117 bool = l >= 0
yyj117++
if yyhl117 {
yyb117 = yyj117 > l
} else {
yyb117 = r.CheckBreak()
}
if yyb117 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TargetPercentage = 0
} else {
x.TargetPercentage = int32(r.DecodeInt(32))
}
for {
yyj117++
if yyhl117 {
yyb117 = yyj117 > l
} else {
yyb117 = r.CheckBreak()
}
if yyb117 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj117-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *CustomMetricTarget) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym119 := z.EncBinary()
_ = yym119
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep120 := !z.EncBinary()
yy2arr120 := z.EncBasicHandle().StructToArray
var yyq120 [2]bool
_, _, _ = yysep120, yyq120, yy2arr120
const yyr120 bool = false
var yynn120 int
if yyr120 || yy2arr120 {
r.EncodeArrayStart(2)
} else {
yynn120 = 2
for _, b := range yyq120 {
if b {
yynn120++
}
}
r.EncodeMapStart(yynn120)
yynn120 = 0
}
if yyr120 || yy2arr120 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym122 := z.EncBinary()
_ = yym122
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)
yym123 := z.EncBinary()
_ = yym123
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr120 || yy2arr120 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy125 := &x.TargetValue
yym126 := z.EncBinary()
_ = yym126
if false {
} else if z.HasExtensions() && z.EncExt(yy125) {
} else if !yym126 && z.IsJSONHandle() {
z.EncJSONMarshal(yy125)
} else {
z.EncFallback(yy125)
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("value"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy127 := &x.TargetValue
yym128 := z.EncBinary()
_ = yym128
if false {
} else if z.HasExtensions() && z.EncExt(yy127) {
} else if !yym128 && z.IsJSONHandle() {
z.EncJSONMarshal(yy127)
} else {
z.EncFallback(yy127)
}
}
if yyr120 || yy2arr120 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *CustomMetricTarget) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym129 := z.DecBinary()
_ = yym129
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct130 := r.ContainerType()
if yyct130 == codecSelferValueTypeMap1234 {
yyl130 := r.ReadMapStart()
if yyl130 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl130, d)
}
} else if yyct130 == codecSelferValueTypeArray1234 {
yyl130 := r.ReadArrayStart()
if yyl130 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl130, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *CustomMetricTarget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys131Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys131Slc
var yyhl131 bool = l >= 0
for yyj131 := 0; ; yyj131++ {
if yyhl131 {
if yyj131 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys131Slc = r.DecodeBytes(yys131Slc, true, true)
yys131 := string(yys131Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys131 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "value":
if r.TryDecodeAsNil() {
x.TargetValue = pkg4_resource.Quantity{}
} else {
yyv133 := &x.TargetValue
yym134 := z.DecBinary()
_ = yym134
if false {
} else if z.HasExtensions() && z.DecExt(yyv133) {
} else if !yym134 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv133)
} else {
z.DecFallback(yyv133, false)
}
}
default:
z.DecStructFieldNotFound(-1, yys131)
} // end switch yys131
} // end for yyj131
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *CustomMetricTarget) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj135 int
var yyb135 bool
var yyhl135 bool = l >= 0
yyj135++
if yyhl135 {
yyb135 = yyj135 > l
} else {
yyb135 = r.CheckBreak()
}
if yyb135 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj135++
if yyhl135 {
yyb135 = yyj135 > l
} else {
yyb135 = r.CheckBreak()
}
if yyb135 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TargetValue = pkg4_resource.Quantity{}
} else {
yyv137 := &x.TargetValue
yym138 := z.DecBinary()
_ = yym138
if false {
} else if z.HasExtensions() && z.DecExt(yyv137) {
} else if !yym138 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv137)
} else {
z.DecFallback(yyv137, false)
}
}
for {
yyj135++
if yyhl135 {
yyb135 = yyj135 > l
} else {
yyb135 = r.CheckBreak()
}
if yyb135 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj135-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *CustomMetricTargetList) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym139 := z.EncBinary()
_ = yym139
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep140 := !z.EncBinary()
yy2arr140 := z.EncBasicHandle().StructToArray
var yyq140 [1]bool
_, _, _ = yysep140, yyq140, yy2arr140
const yyr140 bool = false
var yynn140 int
if yyr140 || yy2arr140 {
r.EncodeArrayStart(1)
} else {
yynn140 = 1
for _, b := range yyq140 {
if b {
yynn140++
}
}
r.EncodeMapStart(yynn140)
yynn140 = 0
}
if yyr140 || yy2arr140 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym142 := z.EncBinary()
_ = yym142
if false {
} else {
h.encSliceCustomMetricTarget(([]CustomMetricTarget)(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 {
yym143 := z.EncBinary()
_ = yym143
if false {
} else {
h.encSliceCustomMetricTarget(([]CustomMetricTarget)(x.Items), e)
}
}
}
if yyr140 || yy2arr140 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *CustomMetricTargetList) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym144 := z.DecBinary()
_ = yym144
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct145 := r.ContainerType()
if yyct145 == codecSelferValueTypeMap1234 {
yyl145 := r.ReadMapStart()
if yyl145 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl145, d)
}
} else if yyct145 == codecSelferValueTypeArray1234 {
yyl145 := r.ReadArrayStart()
if yyl145 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl145, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *CustomMetricTargetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys146Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys146Slc
var yyhl146 bool = l >= 0
for yyj146 := 0; ; yyj146++ {
if yyhl146 {
if yyj146 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys146Slc = r.DecodeBytes(yys146Slc, true, true)
yys146 := string(yys146Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys146 {
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv147 := &x.Items
yym148 := z.DecBinary()
_ = yym148
if false {
} else {
h.decSliceCustomMetricTarget((*[]CustomMetricTarget)(yyv147), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys146)
} // end switch yys146
} // end for yyj146
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *CustomMetricTargetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj149 int
var yyb149 bool
var yyhl149 bool = l >= 0
yyj149++
if yyhl149 {
yyb149 = yyj149 > l
} else {
yyb149 = r.CheckBreak()
}
if yyb149 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv150 := &x.Items
yym151 := z.DecBinary()
_ = yym151
if false {
} else {
h.decSliceCustomMetricTarget((*[]CustomMetricTarget)(yyv150), d)
}
}
for {
yyj149++
if yyhl149 {
yyb149 = yyj149 > l
} else {
yyb149 = r.CheckBreak()
}
if yyb149 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj149-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *CustomMetricCurrentStatus) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym152 := z.EncBinary()
_ = yym152
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep153 := !z.EncBinary()
yy2arr153 := z.EncBasicHandle().StructToArray
var yyq153 [2]bool
_, _, _ = yysep153, yyq153, yy2arr153
const yyr153 bool = false
var yynn153 int
if yyr153 || yy2arr153 {
r.EncodeArrayStart(2)
} else {
yynn153 = 2
for _, b := range yyq153 {
if b {
yynn153++
}
}
r.EncodeMapStart(yynn153)
yynn153 = 0
}
if yyr153 || yy2arr153 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym155 := z.EncBinary()
_ = yym155
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)
yym156 := z.EncBinary()
_ = yym156
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr153 || yy2arr153 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy158 := &x.CurrentValue
yym159 := z.EncBinary()
_ = yym159
if false {
} else if z.HasExtensions() && z.EncExt(yy158) {
} else if !yym159 && z.IsJSONHandle() {
z.EncJSONMarshal(yy158)
} else {
z.EncFallback(yy158)
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("value"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy160 := &x.CurrentValue
yym161 := z.EncBinary()
_ = yym161
if false {
} else if z.HasExtensions() && z.EncExt(yy160) {
} else if !yym161 && z.IsJSONHandle() {
z.EncJSONMarshal(yy160)
} else {
z.EncFallback(yy160)
}
}
if yyr153 || yy2arr153 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *CustomMetricCurrentStatus) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym162 := z.DecBinary()
_ = yym162
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct163 := r.ContainerType()
if yyct163 == codecSelferValueTypeMap1234 {
yyl163 := r.ReadMapStart()
if yyl163 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl163, d)
}
} else if yyct163 == codecSelferValueTypeArray1234 {
yyl163 := r.ReadArrayStart()
if yyl163 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl163, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *CustomMetricCurrentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys164Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys164Slc
var yyhl164 bool = l >= 0
for yyj164 := 0; ; yyj164++ {
if yyhl164 {
if yyj164 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys164Slc = r.DecodeBytes(yys164Slc, true, true)
yys164 := string(yys164Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys164 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "value":
if r.TryDecodeAsNil() {
x.CurrentValue = pkg4_resource.Quantity{}
} else {
yyv166 := &x.CurrentValue
yym167 := z.DecBinary()
_ = yym167
if false {
} else if z.HasExtensions() && z.DecExt(yyv166) {
} else if !yym167 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv166)
} else {
z.DecFallback(yyv166, false)
}
}
default:
z.DecStructFieldNotFound(-1, yys164)
} // end switch yys164
} // end for yyj164
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *CustomMetricCurrentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj168 int
var yyb168 bool
var yyhl168 bool = l >= 0
yyj168++
if yyhl168 {
yyb168 = yyj168 > l
} else {
yyb168 = r.CheckBreak()
}
if yyb168 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj168++
if yyhl168 {
yyb168 = yyj168 > l
} else {
yyb168 = r.CheckBreak()
}
if yyb168 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.CurrentValue = pkg4_resource.Quantity{}
} else {
yyv170 := &x.CurrentValue
yym171 := z.DecBinary()
_ = yym171
if false {
} else if z.HasExtensions() && z.DecExt(yyv170) {
} else if !yym171 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv170)
} else {
z.DecFallback(yyv170, false)
}
}
for {
yyj168++
if yyhl168 {
yyb168 = yyj168 > l
} else {
yyb168 = r.CheckBreak()
}
if yyb168 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj168-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *CustomMetricCurrentStatusList) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym172 := z.EncBinary()
_ = yym172
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep173 := !z.EncBinary()
yy2arr173 := z.EncBasicHandle().StructToArray
var yyq173 [1]bool
_, _, _ = yysep173, yyq173, yy2arr173
const yyr173 bool = false
var yynn173 int
if yyr173 || yy2arr173 {
r.EncodeArrayStart(1)
} else {
yynn173 = 1
for _, b := range yyq173 {
if b {
yynn173++
}
}
r.EncodeMapStart(yynn173)
yynn173 = 0
}
if yyr173 || yy2arr173 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym175 := z.EncBinary()
_ = yym175
if false {
} else {
h.encSliceCustomMetricCurrentStatus(([]CustomMetricCurrentStatus)(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 {
yym176 := z.EncBinary()
_ = yym176
if false {
} else {
h.encSliceCustomMetricCurrentStatus(([]CustomMetricCurrentStatus)(x.Items), e)
}
}
}
if yyr173 || yy2arr173 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *CustomMetricCurrentStatusList) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym177 := z.DecBinary()
_ = yym177
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct178 := r.ContainerType()
if yyct178 == codecSelferValueTypeMap1234 {
yyl178 := r.ReadMapStart()
if yyl178 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl178, d)
}
} else if yyct178 == codecSelferValueTypeArray1234 {
yyl178 := r.ReadArrayStart()
if yyl178 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl178, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *CustomMetricCurrentStatusList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys179Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys179Slc
var yyhl179 bool = l >= 0
for yyj179 := 0; ; yyj179++ {
if yyhl179 {
if yyj179 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys179Slc = r.DecodeBytes(yys179Slc, true, true)
yys179 := string(yys179Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys179 {
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv180 := &x.Items
yym181 := z.DecBinary()
_ = yym181
if false {
} else {
h.decSliceCustomMetricCurrentStatus((*[]CustomMetricCurrentStatus)(yyv180), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys179)
} // end switch yys179
} // end for yyj179
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *CustomMetricCurrentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj182 int
var yyb182 bool
var yyhl182 bool = l >= 0
yyj182++
if yyhl182 {
yyb182 = yyj182 > l
} else {
yyb182 = r.CheckBreak()
}
if yyb182 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv183 := &x.Items
yym184 := z.DecBinary()
_ = yym184
if false {
} else {
h.decSliceCustomMetricCurrentStatus((*[]CustomMetricCurrentStatus)(yyv183), d)
}
}
for {
yyj182++
if yyhl182 {
yyb182 = yyj182 > l
} else {
yyb182 = r.CheckBreak()
}
if yyb182 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj182-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *HorizontalPodAutoscalerSpec) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym185 := z.EncBinary()
_ = yym185
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep186 := !z.EncBinary()
yy2arr186 := z.EncBasicHandle().StructToArray
var yyq186 [4]bool
_, _, _ = yysep186, yyq186, yy2arr186
const yyr186 bool = false
yyq186[1] = x.MinReplicas != nil
yyq186[3] = x.CPUUtilization != nil
var yynn186 int
if yyr186 || yy2arr186 {
r.EncodeArrayStart(4)
} else {
yynn186 = 2
for _, b := range yyq186 {
if b {
yynn186++
}
}
r.EncodeMapStart(yynn186)
yynn186 = 0
}
if yyr186 || yy2arr186 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy188 := &x.ScaleRef
yy188.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("scaleRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy189 := &x.ScaleRef
yy189.CodecEncodeSelf(e)
}
if yyr186 || yy2arr186 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq186[1] {
if x.MinReplicas == nil {
r.EncodeNil()
} else {
yy191 := *x.MinReplicas
yym192 := z.EncBinary()
_ = yym192
if false {
} else {
r.EncodeInt(int64(yy191))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq186[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("minReplicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.MinReplicas == nil {
r.EncodeNil()
} else {
yy193 := *x.MinReplicas
yym194 := z.EncBinary()
_ = yym194
if false {
} else {
r.EncodeInt(int64(yy193))
}
}
}
}
if yyr186 || yy2arr186 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym196 := z.EncBinary()
_ = yym196
if false {
} else {
r.EncodeInt(int64(x.MaxReplicas))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("maxReplicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym197 := z.EncBinary()
_ = yym197
if false {
} else {
r.EncodeInt(int64(x.MaxReplicas))
}
}
if yyr186 || yy2arr186 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq186[3] {
if x.CPUUtilization == nil {
r.EncodeNil()
} else {
x.CPUUtilization.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq186[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cpuUtilization"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.CPUUtilization == nil {
r.EncodeNil()
} else {
x.CPUUtilization.CodecEncodeSelf(e)
}
}
}
if yyr186 || yy2arr186 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *HorizontalPodAutoscalerSpec) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym199 := z.DecBinary()
_ = yym199
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct200 := r.ContainerType()
if yyct200 == codecSelferValueTypeMap1234 {
yyl200 := r.ReadMapStart()
if yyl200 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl200, d)
}
} else if yyct200 == codecSelferValueTypeArray1234 {
yyl200 := r.ReadArrayStart()
if yyl200 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl200, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys201Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys201Slc
var yyhl201 bool = l >= 0
for yyj201 := 0; ; yyj201++ {
if yyhl201 {
if yyj201 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys201Slc = r.DecodeBytes(yys201Slc, true, true)
yys201 := string(yys201Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys201 {
case "scaleRef":
if r.TryDecodeAsNil() {
x.ScaleRef = SubresourceReference{}
} else {
yyv202 := &x.ScaleRef
yyv202.CodecDecodeSelf(d)
}
case "minReplicas":
if r.TryDecodeAsNil() {
if x.MinReplicas != nil {
x.MinReplicas = nil
}
} else {
if x.MinReplicas == nil {
x.MinReplicas = new(int32)
}
yym204 := z.DecBinary()
_ = yym204
if false {
} else {
*((*int32)(x.MinReplicas)) = int32(r.DecodeInt(32))
}
}
case "maxReplicas":
if r.TryDecodeAsNil() {
x.MaxReplicas = 0
} else {
x.MaxReplicas = int32(r.DecodeInt(32))
}
case "cpuUtilization":
if r.TryDecodeAsNil() {
if x.CPUUtilization != nil {
x.CPUUtilization = nil
}
} else {
if x.CPUUtilization == nil {
x.CPUUtilization = new(CPUTargetUtilization)
}
x.CPUUtilization.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys201)
} // end switch yys201
} // end for yyj201
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *HorizontalPodAutoscalerSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj207 int
var yyb207 bool
var yyhl207 bool = l >= 0
yyj207++
if yyhl207 {
yyb207 = yyj207 > l
} else {
yyb207 = r.CheckBreak()
}
if yyb207 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ScaleRef = SubresourceReference{}
} else {
yyv208 := &x.ScaleRef
yyv208.CodecDecodeSelf(d)
}
yyj207++
if yyhl207 {
yyb207 = yyj207 > l
} else {
yyb207 = r.CheckBreak()
}
if yyb207 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.MinReplicas != nil {
x.MinReplicas = nil
}
} else {
if x.MinReplicas == nil {
x.MinReplicas = new(int32)
}
yym210 := z.DecBinary()
_ = yym210
if false {
} else {
*((*int32)(x.MinReplicas)) = int32(r.DecodeInt(32))
}
}
yyj207++
if yyhl207 {
yyb207 = yyj207 > l
} else {
yyb207 = r.CheckBreak()
}
if yyb207 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.MaxReplicas = 0
} else {
x.MaxReplicas = int32(r.DecodeInt(32))
}
yyj207++
if yyhl207 {
yyb207 = yyj207 > l
} else {
yyb207 = r.CheckBreak()
}
if yyb207 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.CPUUtilization != nil {
x.CPUUtilization = nil
}
} else {
if x.CPUUtilization == nil {
x.CPUUtilization = new(CPUTargetUtilization)
}
x.CPUUtilization.CodecDecodeSelf(d)
}
for {
yyj207++
if yyhl207 {
yyb207 = yyj207 > l
} else {
yyb207 = r.CheckBreak()
}
if yyb207 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj207-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *HorizontalPodAutoscalerStatus) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym213 := z.EncBinary()
_ = yym213
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep214 := !z.EncBinary()
yy2arr214 := z.EncBasicHandle().StructToArray
var yyq214 [5]bool
_, _, _ = yysep214, yyq214, yy2arr214
const yyr214 bool = false
yyq214[0] = x.ObservedGeneration != nil
yyq214[1] = x.LastScaleTime != nil
yyq214[4] = x.CurrentCPUUtilizationPercentage != nil
var yynn214 int
if yyr214 || yy2arr214 {
r.EncodeArrayStart(5)
} else {
yynn214 = 2
for _, b := range yyq214 {
if b {
yynn214++
}
}
r.EncodeMapStart(yynn214)
yynn214 = 0
}
if yyr214 || yy2arr214 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq214[0] {
if x.ObservedGeneration == nil {
r.EncodeNil()
} else {
yy216 := *x.ObservedGeneration
yym217 := z.EncBinary()
_ = yym217
if false {
} else {
r.EncodeInt(int64(yy216))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq214[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("observedGeneration"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ObservedGeneration == nil {
r.EncodeNil()
} else {
yy218 := *x.ObservedGeneration
yym219 := z.EncBinary()
_ = yym219
if false {
} else {
r.EncodeInt(int64(yy218))
}
}
}
}
if yyr214 || yy2arr214 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq214[1] {
if x.LastScaleTime == nil {
r.EncodeNil()
} else {
yym221 := z.EncBinary()
_ = yym221
if false {
} else if z.HasExtensions() && z.EncExt(x.LastScaleTime) {
} else if yym221 {
z.EncBinaryMarshal(x.LastScaleTime)
} else if !yym221 && z.IsJSONHandle() {
z.EncJSONMarshal(x.LastScaleTime)
} else {
z.EncFallback(x.LastScaleTime)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq214[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastScaleTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.LastScaleTime == nil {
r.EncodeNil()
} else {
yym222 := z.EncBinary()
_ = yym222
if false {
} else if z.HasExtensions() && z.EncExt(x.LastScaleTime) {
} else if yym222 {
z.EncBinaryMarshal(x.LastScaleTime)
} else if !yym222 && z.IsJSONHandle() {
z.EncJSONMarshal(x.LastScaleTime)
} else {
z.EncFallback(x.LastScaleTime)
}
}
}
}
if yyr214 || yy2arr214 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym224 := z.EncBinary()
_ = yym224
if false {
} else {
r.EncodeInt(int64(x.CurrentReplicas))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("currentReplicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym225 := z.EncBinary()
_ = yym225
if false {
} else {
r.EncodeInt(int64(x.CurrentReplicas))
}
}
if yyr214 || yy2arr214 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym227 := z.EncBinary()
_ = yym227
if false {
} else {
r.EncodeInt(int64(x.DesiredReplicas))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("desiredReplicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym228 := z.EncBinary()
_ = yym228
if false {
} else {
r.EncodeInt(int64(x.DesiredReplicas))
}
}
if yyr214 || yy2arr214 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq214[4] {
if x.CurrentCPUUtilizationPercentage == nil {
r.EncodeNil()
} else {
yy230 := *x.CurrentCPUUtilizationPercentage
yym231 := z.EncBinary()
_ = yym231
if false {
} else {
r.EncodeInt(int64(yy230))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq214[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("currentCPUUtilizationPercentage"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.CurrentCPUUtilizationPercentage == nil {
r.EncodeNil()
} else {
yy232 := *x.CurrentCPUUtilizationPercentage
yym233 := z.EncBinary()
_ = yym233
if false {
} else {
r.EncodeInt(int64(yy232))
}
}
}
}
if yyr214 || yy2arr214 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *HorizontalPodAutoscalerStatus) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym234 := z.DecBinary()
_ = yym234
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct235 := r.ContainerType()
if yyct235 == codecSelferValueTypeMap1234 {
yyl235 := r.ReadMapStart()
if yyl235 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl235, d)
}
} else if yyct235 == codecSelferValueTypeArray1234 {
yyl235 := r.ReadArrayStart()
if yyl235 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl235, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys236Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys236Slc
var yyhl236 bool = l >= 0
for yyj236 := 0; ; yyj236++ {
if yyhl236 {
if yyj236 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys236Slc = r.DecodeBytes(yys236Slc, true, true)
yys236 := string(yys236Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys236 {
case "observedGeneration":
if r.TryDecodeAsNil() {
if x.ObservedGeneration != nil {
x.ObservedGeneration = nil
}
} else {
if x.ObservedGeneration == nil {
x.ObservedGeneration = new(int64)
}
yym238 := z.DecBinary()
_ = yym238
if false {
} else {
*((*int64)(x.ObservedGeneration)) = int64(r.DecodeInt(64))
}
}
case "lastScaleTime":
if r.TryDecodeAsNil() {
if x.LastScaleTime != nil {
x.LastScaleTime = nil
}
} else {
if x.LastScaleTime == nil {
x.LastScaleTime = new(pkg1_unversioned.Time)
}
yym240 := z.DecBinary()
_ = yym240
if false {
} else if z.HasExtensions() && z.DecExt(x.LastScaleTime) {
} else if yym240 {
z.DecBinaryUnmarshal(x.LastScaleTime)
} else if !yym240 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.LastScaleTime)
} else {
z.DecFallback(x.LastScaleTime, false)
}
}
case "currentReplicas":
if r.TryDecodeAsNil() {
x.CurrentReplicas = 0
} else {
x.CurrentReplicas = int32(r.DecodeInt(32))
}
case "desiredReplicas":
if r.TryDecodeAsNil() {
x.DesiredReplicas = 0
} else {
x.DesiredReplicas = int32(r.DecodeInt(32))
}
case "currentCPUUtilizationPercentage":
if r.TryDecodeAsNil() {
if x.CurrentCPUUtilizationPercentage != nil {
x.CurrentCPUUtilizationPercentage = nil
}
} else {
if x.CurrentCPUUtilizationPercentage == nil {
x.CurrentCPUUtilizationPercentage = new(int32)
}
yym244 := z.DecBinary()
_ = yym244
if false {
} else {
*((*int32)(x.CurrentCPUUtilizationPercentage)) = int32(r.DecodeInt(32))
}
}
default:
z.DecStructFieldNotFound(-1, yys236)
} // end switch yys236
} // end for yyj236
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *HorizontalPodAutoscalerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj245 int
var yyb245 bool
var yyhl245 bool = l >= 0
yyj245++
if yyhl245 {
yyb245 = yyj245 > l
} else {
yyb245 = r.CheckBreak()
}
if yyb245 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.ObservedGeneration != nil {
x.ObservedGeneration = nil
}
} else {
if x.ObservedGeneration == nil {
x.ObservedGeneration = new(int64)
}
yym247 := z.DecBinary()
_ = yym247
if false {
} else {
*((*int64)(x.ObservedGeneration)) = int64(r.DecodeInt(64))
}
}
yyj245++
if yyhl245 {
yyb245 = yyj245 > l
} else {
yyb245 = r.CheckBreak()
}
if yyb245 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.LastScaleTime != nil {
x.LastScaleTime = nil
}
} else {
if x.LastScaleTime == nil {
x.LastScaleTime = new(pkg1_unversioned.Time)
}
yym249 := z.DecBinary()
_ = yym249
if false {
} else if z.HasExtensions() && z.DecExt(x.LastScaleTime) {
} else if yym249 {
z.DecBinaryUnmarshal(x.LastScaleTime)
} else if !yym249 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.LastScaleTime)
} else {
z.DecFallback(x.LastScaleTime, false)
}
}
yyj245++
if yyhl245 {
yyb245 = yyj245 > l
} else {
yyb245 = r.CheckBreak()
}
if yyb245 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.CurrentReplicas = 0
} else {
x.CurrentReplicas = int32(r.DecodeInt(32))
}
yyj245++
if yyhl245 {
yyb245 = yyj245 > l
} else {
yyb245 = r.CheckBreak()
}
if yyb245 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DesiredReplicas = 0
} else {
x.DesiredReplicas = int32(r.DecodeInt(32))
}
yyj245++
if yyhl245 {
yyb245 = yyj245 > l
} else {
yyb245 = r.CheckBreak()
}
if yyb245 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.CurrentCPUUtilizationPercentage != nil {
x.CurrentCPUUtilizationPercentage = nil
}
} else {
if x.CurrentCPUUtilizationPercentage == nil {
x.CurrentCPUUtilizationPercentage = new(int32)
}
yym253 := z.DecBinary()
_ = yym253
if false {
} else {
*((*int32)(x.CurrentCPUUtilizationPercentage)) = int32(r.DecodeInt(32))
}
}
for {
yyj245++
if yyhl245 {
yyb245 = yyj245 > l
} else {
yyb245 = r.CheckBreak()
}
if yyb245 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj245-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *HorizontalPodAutoscaler) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym254 := z.EncBinary()
_ = yym254
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep255 := !z.EncBinary()
yy2arr255 := z.EncBasicHandle().StructToArray
var yyq255 [5]bool
_, _, _ = yysep255, yyq255, yy2arr255
const yyr255 bool = false
yyq255[0] = x.Kind != ""
yyq255[1] = x.APIVersion != ""
yyq255[2] = true
yyq255[3] = true
yyq255[4] = true
var yynn255 int
if yyr255 || yy2arr255 {
r.EncodeArrayStart(5)
} else {
yynn255 = 0
for _, b := range yyq255 {
if b {
yynn255++
}
}
r.EncodeMapStart(yynn255)
yynn255 = 0
}
if yyr255 || yy2arr255 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq255[0] {
yym257 := z.EncBinary()
_ = yym257
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq255[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym258 := z.EncBinary()
_ = yym258
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr255 || yy2arr255 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq255[1] {
yym260 := z.EncBinary()
_ = yym260
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq255[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym261 := z.EncBinary()
_ = yym261
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr255 || yy2arr255 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq255[2] {
yy263 := &x.ObjectMeta
yy263.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq255[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy264 := &x.ObjectMeta
yy264.CodecEncodeSelf(e)
}
}
if yyr255 || yy2arr255 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq255[3] {
yy266 := &x.Spec
yy266.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq255[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy267 := &x.Spec
yy267.CodecEncodeSelf(e)
}
}
if yyr255 || yy2arr255 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq255[4] {
yy269 := &x.Status
yy269.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq255[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy270 := &x.Status
yy270.CodecEncodeSelf(e)
}
}
if yyr255 || yy2arr255 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *HorizontalPodAutoscaler) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym271 := z.DecBinary()
_ = yym271
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct272 := r.ContainerType()
if yyct272 == codecSelferValueTypeMap1234 {
yyl272 := r.ReadMapStart()
if yyl272 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl272, d)
}
} else if yyct272 == codecSelferValueTypeArray1234 {
yyl272 := r.ReadArrayStart()
if yyl272 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl272, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *HorizontalPodAutoscaler) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys273Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys273Slc
var yyhl273 bool = l >= 0
for yyj273 := 0; ; yyj273++ {
if yyhl273 {
if yyj273 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys273Slc = r.DecodeBytes(yys273Slc, true, true)
yys273 := string(yys273Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys273 {
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 = pkg2_v1.ObjectMeta{}
} else {
yyv276 := &x.ObjectMeta
yyv276.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = HorizontalPodAutoscalerSpec{}
} else {
yyv277 := &x.Spec
yyv277.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = HorizontalPodAutoscalerStatus{}
} else {
yyv278 := &x.Status
yyv278.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys273)
} // end switch yys273
} // end for yyj273
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *HorizontalPodAutoscaler) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj279 int
var yyb279 bool
var yyhl279 bool = l >= 0
yyj279++
if yyhl279 {
yyb279 = yyj279 > l
} else {
yyb279 = r.CheckBreak()
}
if yyb279 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj279++
if yyhl279 {
yyb279 = yyj279 > l
} else {
yyb279 = r.CheckBreak()
}
if yyb279 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj279++
if yyhl279 {
yyb279 = yyj279 > l
} else {
yyb279 = r.CheckBreak()
}
if yyb279 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{}
} else {
yyv282 := &x.ObjectMeta
yyv282.CodecDecodeSelf(d)
}
yyj279++
if yyhl279 {
yyb279 = yyj279 > l
} else {
yyb279 = r.CheckBreak()
}
if yyb279 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = HorizontalPodAutoscalerSpec{}
} else {
yyv283 := &x.Spec
yyv283.CodecDecodeSelf(d)
}
yyj279++
if yyhl279 {
yyb279 = yyj279 > l
} else {
yyb279 = r.CheckBreak()
}
if yyb279 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = HorizontalPodAutoscalerStatus{}
} else {
yyv284 := &x.Status
yyv284.CodecDecodeSelf(d)
}
for {
yyj279++
if yyhl279 {
yyb279 = yyj279 > l
} else {
yyb279 = r.CheckBreak()
}
if yyb279 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj279-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *HorizontalPodAutoscalerList) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym285 := z.EncBinary()
_ = yym285
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep286 := !z.EncBinary()
yy2arr286 := z.EncBasicHandle().StructToArray
var yyq286 [4]bool
_, _, _ = yysep286, yyq286, yy2arr286
const yyr286 bool = false
yyq286[0] = x.Kind != ""
yyq286[1] = x.APIVersion != ""
yyq286[2] = true
var yynn286 int
if yyr286 || yy2arr286 {
r.EncodeArrayStart(4)
} else {
yynn286 = 1
for _, b := range yyq286 {
if b {
yynn286++
}
}
r.EncodeMapStart(yynn286)
yynn286 = 0
}
if yyr286 || yy2arr286 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq286[0] {
yym288 := z.EncBinary()
_ = yym288
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq286[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym289 := z.EncBinary()
_ = yym289
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr286 || yy2arr286 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq286[1] {
yym291 := z.EncBinary()
_ = yym291
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq286[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym292 := z.EncBinary()
_ = yym292
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr286 || yy2arr286 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq286[2] {
yy294 := &x.ListMeta
yym295 := z.EncBinary()
_ = yym295
if false {
} else if z.HasExtensions() && z.EncExt(yy294) {
} else {
z.EncFallback(yy294)
}
} else {
r.EncodeNil()
}
} else {
if yyq286[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy296 := &x.ListMeta
yym297 := z.EncBinary()
_ = yym297
if false {
} else if z.HasExtensions() && z.EncExt(yy296) {
} else {
z.EncFallback(yy296)
}
}
}
if yyr286 || yy2arr286 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym299 := z.EncBinary()
_ = yym299
if false {
} else {
h.encSliceHorizontalPodAutoscaler(([]HorizontalPodAutoscaler)(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 {
yym300 := z.EncBinary()
_ = yym300
if false {
} else {
h.encSliceHorizontalPodAutoscaler(([]HorizontalPodAutoscaler)(x.Items), e)
}
}
}
if yyr286 || yy2arr286 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *HorizontalPodAutoscalerList) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym301 := z.DecBinary()
_ = yym301
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct302 := r.ContainerType()
if yyct302 == codecSelferValueTypeMap1234 {
yyl302 := r.ReadMapStart()
if yyl302 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl302, d)
}
} else if yyct302 == codecSelferValueTypeArray1234 {
yyl302 := r.ReadArrayStart()
if yyl302 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl302, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *HorizontalPodAutoscalerList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys303Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys303Slc
var yyhl303 bool = l >= 0
for yyj303 := 0; ; yyj303++ {
if yyhl303 {
if yyj303 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys303Slc = r.DecodeBytes(yys303Slc, true, true)
yys303 := string(yys303Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys303 {
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 = pkg1_unversioned.ListMeta{}
} else {
yyv306 := &x.ListMeta
yym307 := z.DecBinary()
_ = yym307
if false {
} else if z.HasExtensions() && z.DecExt(yyv306) {
} else {
z.DecFallback(yyv306, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv308 := &x.Items
yym309 := z.DecBinary()
_ = yym309
if false {
} else {
h.decSliceHorizontalPodAutoscaler((*[]HorizontalPodAutoscaler)(yyv308), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys303)
} // end switch yys303
} // end for yyj303
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *HorizontalPodAutoscalerList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj310 int
var yyb310 bool
var yyhl310 bool = l >= 0
yyj310++
if yyhl310 {
yyb310 = yyj310 > l
} else {
yyb310 = r.CheckBreak()
}
if yyb310 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj310++
if yyhl310 {
yyb310 = yyj310 > l
} else {
yyb310 = r.CheckBreak()
}
if yyb310 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj310++
if yyhl310 {
yyb310 = yyj310 > l
} else {
yyb310 = r.CheckBreak()
}
if yyb310 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg1_unversioned.ListMeta{}
} else {
yyv313 := &x.ListMeta
yym314 := z.DecBinary()
_ = yym314
if false {
} else if z.HasExtensions() && z.DecExt(yyv313) {
} else {
z.DecFallback(yyv313, false)
}
}
yyj310++
if yyhl310 {
yyb310 = yyj310 > l
} else {
yyb310 = r.CheckBreak()
}
if yyb310 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv315 := &x.Items
yym316 := z.DecBinary()
_ = yym316
if false {
} else {
h.decSliceHorizontalPodAutoscaler((*[]HorizontalPodAutoscaler)(yyv315), d)
}
}
for {
yyj310++
if yyhl310 {
yyb310 = yyj310 > l
} else {
yyb310 = r.CheckBreak()
}
if yyb310 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj310-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ThirdPartyResource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym317 := z.EncBinary()
_ = yym317
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep318 := !z.EncBinary()
yy2arr318 := z.EncBasicHandle().StructToArray
var yyq318 [5]bool
_, _, _ = yysep318, yyq318, yy2arr318
const yyr318 bool = false
yyq318[0] = x.Kind != ""
yyq318[1] = x.APIVersion != ""
yyq318[2] = true
yyq318[3] = x.Description != ""
yyq318[4] = len(x.Versions) != 0
var yynn318 int
if yyr318 || yy2arr318 {
r.EncodeArrayStart(5)
} else {
yynn318 = 0
for _, b := range yyq318 {
if b {
yynn318++
}
}
r.EncodeMapStart(yynn318)
yynn318 = 0
}
if yyr318 || yy2arr318 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq318[0] {
yym320 := z.EncBinary()
_ = yym320
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq318[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym321 := z.EncBinary()
_ = yym321
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr318 || yy2arr318 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq318[1] {
yym323 := z.EncBinary()
_ = yym323
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq318[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym324 := z.EncBinary()
_ = yym324
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr318 || yy2arr318 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq318[2] {
yy326 := &x.ObjectMeta
yy326.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq318[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy327 := &x.ObjectMeta
yy327.CodecEncodeSelf(e)
}
}
if yyr318 || yy2arr318 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq318[3] {
yym329 := z.EncBinary()
_ = yym329
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Description))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq318[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("description"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym330 := z.EncBinary()
_ = yym330
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Description))
}
}
}
if yyr318 || yy2arr318 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq318[4] {
if x.Versions == nil {
r.EncodeNil()
} else {
yym332 := z.EncBinary()
_ = yym332
if false {
} else {
h.encSliceAPIVersion(([]APIVersion)(x.Versions), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq318[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("versions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Versions == nil {
r.EncodeNil()
} else {
yym333 := z.EncBinary()
_ = yym333
if false {
} else {
h.encSliceAPIVersion(([]APIVersion)(x.Versions), e)
}
}
}
}
if yyr318 || yy2arr318 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ThirdPartyResource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym334 := z.DecBinary()
_ = yym334
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct335 := r.ContainerType()
if yyct335 == codecSelferValueTypeMap1234 {
yyl335 := r.ReadMapStart()
if yyl335 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl335, d)
}
} else if yyct335 == codecSelferValueTypeArray1234 {
yyl335 := r.ReadArrayStart()
if yyl335 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl335, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ThirdPartyResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys336Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys336Slc
var yyhl336 bool = l >= 0
for yyj336 := 0; ; yyj336++ {
if yyhl336 {
if yyj336 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys336Slc = r.DecodeBytes(yys336Slc, true, true)
yys336 := string(yys336Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys336 {
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 = pkg2_v1.ObjectMeta{}
} else {
yyv339 := &x.ObjectMeta
yyv339.CodecDecodeSelf(d)
}
case "description":
if r.TryDecodeAsNil() {
x.Description = ""
} else {
x.Description = string(r.DecodeString())
}
case "versions":
if r.TryDecodeAsNil() {
x.Versions = nil
} else {
yyv341 := &x.Versions
yym342 := z.DecBinary()
_ = yym342
if false {
} else {
h.decSliceAPIVersion((*[]APIVersion)(yyv341), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys336)
} // end switch yys336
} // end for yyj336
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ThirdPartyResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj343 int
var yyb343 bool
var yyhl343 bool = l >= 0
yyj343++
if yyhl343 {
yyb343 = yyj343 > l
} else {
yyb343 = r.CheckBreak()
}
if yyb343 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj343++
if yyhl343 {
yyb343 = yyj343 > l
} else {
yyb343 = r.CheckBreak()
}
if yyb343 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj343++
if yyhl343 {
yyb343 = yyj343 > l
} else {
yyb343 = r.CheckBreak()
}
if yyb343 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{}
} else {
yyv346 := &x.ObjectMeta
yyv346.CodecDecodeSelf(d)
}
yyj343++
if yyhl343 {
yyb343 = yyj343 > l
} else {
yyb343 = r.CheckBreak()
}
if yyb343 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Description = ""
} else {
x.Description = string(r.DecodeString())
}
yyj343++
if yyhl343 {
yyb343 = yyj343 > l
} else {
yyb343 = r.CheckBreak()
}
if yyb343 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Versions = nil
} else {
yyv348 := &x.Versions
yym349 := z.DecBinary()
_ = yym349
if false {
} else {
h.decSliceAPIVersion((*[]APIVersion)(yyv348), d)
}
}
for {
yyj343++
if yyhl343 {
yyb343 = yyj343 > l
} else {
yyb343 = r.CheckBreak()
}
if yyb343 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj343-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ThirdPartyResourceList) 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 [4]bool
_, _, _ = yysep351, yyq351, yy2arr351
const yyr351 bool = false
yyq351[0] = x.Kind != ""
yyq351[1] = x.APIVersion != ""
yyq351[2] = true
var yynn351 int
if yyr351 || yy2arr351 {
r.EncodeArrayStart(4)
} else {
yynn351 = 1
for _, b := range yyq351 {
if b {
yynn351++
}
}
r.EncodeMapStart(yynn351)
yynn351 = 0
}
if yyr351 || yy2arr351 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq351[0] {
yym353 := z.EncBinary()
_ = yym353
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq351[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym354 := z.EncBinary()
_ = yym354
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr351 || yy2arr351 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq351[1] {
yym356 := z.EncBinary()
_ = yym356
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq351[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym357 := z.EncBinary()
_ = yym357
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr351 || yy2arr351 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq351[2] {
yy359 := &x.ListMeta
yym360 := z.EncBinary()
_ = yym360
if false {
} else if z.HasExtensions() && z.EncExt(yy359) {
} else {
z.EncFallback(yy359)
}
} else {
r.EncodeNil()
}
} else {
if yyq351[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy361 := &x.ListMeta
yym362 := z.EncBinary()
_ = yym362
if false {
} else if z.HasExtensions() && z.EncExt(yy361) {
} else {
z.EncFallback(yy361)
}
}
}
if yyr351 || yy2arr351 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym364 := z.EncBinary()
_ = yym364
if false {
} else {
h.encSliceThirdPartyResource(([]ThirdPartyResource)(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 {
yym365 := z.EncBinary()
_ = yym365
if false {
} else {
h.encSliceThirdPartyResource(([]ThirdPartyResource)(x.Items), e)
}
}
}
if yyr351 || yy2arr351 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ThirdPartyResourceList) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym366 := z.DecBinary()
_ = yym366
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct367 := r.ContainerType()
if yyct367 == codecSelferValueTypeMap1234 {
yyl367 := r.ReadMapStart()
if yyl367 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl367, d)
}
} else if yyct367 == codecSelferValueTypeArray1234 {
yyl367 := r.ReadArrayStart()
if yyl367 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl367, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ThirdPartyResourceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys368Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys368Slc
var yyhl368 bool = l >= 0
for yyj368 := 0; ; yyj368++ {
if yyhl368 {
if yyj368 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys368Slc = r.DecodeBytes(yys368Slc, true, true)
yys368 := string(yys368Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys368 {
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 = pkg1_unversioned.ListMeta{}
} else {
yyv371 := &x.ListMeta
yym372 := z.DecBinary()
_ = yym372
if false {
} else if z.HasExtensions() && z.DecExt(yyv371) {
} else {
z.DecFallback(yyv371, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv373 := &x.Items
yym374 := z.DecBinary()
_ = yym374
if false {
} else {
h.decSliceThirdPartyResource((*[]ThirdPartyResource)(yyv373), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys368)
} // end switch yys368
} // end for yyj368
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ThirdPartyResourceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj375 int
var yyb375 bool
var yyhl375 bool = l >= 0
yyj375++
if yyhl375 {
yyb375 = yyj375 > l
} else {
yyb375 = r.CheckBreak()
}
if yyb375 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj375++
if yyhl375 {
yyb375 = yyj375 > l
} else {
yyb375 = r.CheckBreak()
}
if yyb375 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj375++
if yyhl375 {
yyb375 = yyj375 > l
} else {
yyb375 = r.CheckBreak()
}
if yyb375 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg1_unversioned.ListMeta{}
} else {
yyv378 := &x.ListMeta
yym379 := z.DecBinary()
_ = yym379
if false {
} else if z.HasExtensions() && z.DecExt(yyv378) {
} else {
z.DecFallback(yyv378, false)
}
}
yyj375++
if yyhl375 {
yyb375 = yyj375 > l
} else {
yyb375 = r.CheckBreak()
}
if yyb375 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv380 := &x.Items
yym381 := z.DecBinary()
_ = yym381
if false {
} else {
h.decSliceThirdPartyResource((*[]ThirdPartyResource)(yyv380), d)
}
}
for {
yyj375++
if yyhl375 {
yyb375 = yyj375 > l
} else {
yyb375 = r.CheckBreak()
}
if yyb375 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj375-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *APIVersion) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym382 := z.EncBinary()
_ = yym382
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep383 := !z.EncBinary()
yy2arr383 := z.EncBasicHandle().StructToArray
var yyq383 [1]bool
_, _, _ = yysep383, yyq383, yy2arr383
const yyr383 bool = false
yyq383[0] = x.Name != ""
var yynn383 int
if yyr383 || yy2arr383 {
r.EncodeArrayStart(1)
} else {
yynn383 = 0
for _, b := range yyq383 {
if b {
yynn383++
}
}
r.EncodeMapStart(yynn383)
yynn383 = 0
}
if yyr383 || yy2arr383 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq383[0] {
yym385 := z.EncBinary()
_ = yym385
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq383[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym386 := z.EncBinary()
_ = yym386
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
}
if yyr383 || yy2arr383 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *APIVersion) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym387 := z.DecBinary()
_ = yym387
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct388 := r.ContainerType()
if yyct388 == codecSelferValueTypeMap1234 {
yyl388 := r.ReadMapStart()
if yyl388 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl388, d)
}
} else if yyct388 == codecSelferValueTypeArray1234 {
yyl388 := r.ReadArrayStart()
if yyl388 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl388, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *APIVersion) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys389Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys389Slc
var yyhl389 bool = l >= 0
for yyj389 := 0; ; yyj389++ {
if yyhl389 {
if yyj389 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys389Slc = r.DecodeBytes(yys389Slc, true, true)
yys389 := string(yys389Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys389 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys389)
} // end switch yys389
} // end for yyj389
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *APIVersion) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj391 int
var yyb391 bool
var yyhl391 bool = l >= 0
yyj391++
if yyhl391 {
yyb391 = yyj391 > l
} else {
yyb391 = r.CheckBreak()
}
if yyb391 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
for {
yyj391++
if yyhl391 {
yyb391 = yyj391 > l
} else {
yyb391 = r.CheckBreak()
}
if yyb391 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj391-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ThirdPartyResourceData) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym393 := z.EncBinary()
_ = yym393
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep394 := !z.EncBinary()
yy2arr394 := z.EncBasicHandle().StructToArray
var yyq394 [4]bool
_, _, _ = yysep394, yyq394, yy2arr394
const yyr394 bool = false
yyq394[0] = x.Kind != ""
yyq394[1] = x.APIVersion != ""
yyq394[2] = true
yyq394[3] = len(x.Data) != 0
var yynn394 int
if yyr394 || yy2arr394 {
r.EncodeArrayStart(4)
} else {
yynn394 = 0
for _, b := range yyq394 {
if b {
yynn394++
}
}
r.EncodeMapStart(yynn394)
yynn394 = 0
}
if yyr394 || yy2arr394 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq394[0] {
yym396 := z.EncBinary()
_ = yym396
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq394[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym397 := z.EncBinary()
_ = yym397
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr394 || yy2arr394 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq394[1] {
yym399 := z.EncBinary()
_ = yym399
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq394[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym400 := z.EncBinary()
_ = yym400
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr394 || yy2arr394 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq394[2] {
yy402 := &x.ObjectMeta
yy402.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq394[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy403 := &x.ObjectMeta
yy403.CodecEncodeSelf(e)
}
}
if yyr394 || yy2arr394 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq394[3] {
if x.Data == nil {
r.EncodeNil()
} else {
yym405 := z.EncBinary()
_ = yym405
if false {
} else {
r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq394[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("data"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Data == nil {
r.EncodeNil()
} else {
yym406 := z.EncBinary()
_ = yym406
if false {
} else {
r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data))
}
}
}
}
if yyr394 || yy2arr394 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ThirdPartyResourceData) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym407 := z.DecBinary()
_ = yym407
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct408 := r.ContainerType()
if yyct408 == codecSelferValueTypeMap1234 {
yyl408 := r.ReadMapStart()
if yyl408 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl408, d)
}
} else if yyct408 == codecSelferValueTypeArray1234 {
yyl408 := r.ReadArrayStart()
if yyl408 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl408, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ThirdPartyResourceData) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys409Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys409Slc
var yyhl409 bool = l >= 0
for yyj409 := 0; ; yyj409++ {
if yyhl409 {
if yyj409 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys409Slc = r.DecodeBytes(yys409Slc, true, true)
yys409 := string(yys409Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys409 {
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 = pkg2_v1.ObjectMeta{}
} else {
yyv412 := &x.ObjectMeta
yyv412.CodecDecodeSelf(d)
}
case "data":
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv413 := &x.Data
yym414 := z.DecBinary()
_ = yym414
if false {
} else {
*yyv413 = r.DecodeBytes(*(*[]byte)(yyv413), false, false)
}
}
default:
z.DecStructFieldNotFound(-1, yys409)
} // end switch yys409
} // end for yyj409
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ThirdPartyResourceData) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj415 int
var yyb415 bool
var yyhl415 bool = l >= 0
yyj415++
if yyhl415 {
yyb415 = yyj415 > l
} else {
yyb415 = r.CheckBreak()
}
if yyb415 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj415++
if yyhl415 {
yyb415 = yyj415 > l
} else {
yyb415 = r.CheckBreak()
}
if yyb415 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj415++
if yyhl415 {
yyb415 = yyj415 > l
} else {
yyb415 = r.CheckBreak()
}
if yyb415 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{}
} else {
yyv418 := &x.ObjectMeta
yyv418.CodecDecodeSelf(d)
}
yyj415++
if yyhl415 {
yyb415 = yyj415 > l
} else {
yyb415 = r.CheckBreak()
}
if yyb415 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv419 := &x.Data
yym420 := z.DecBinary()
_ = yym420
if false {
} else {
*yyv419 = r.DecodeBytes(*(*[]byte)(yyv419), false, false)
}
}
for {
yyj415++
if yyhl415 {
yyb415 = yyj415 > l
} else {
yyb415 = r.CheckBreak()
}
if yyb415 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj415-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *Deployment) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym421 := z.EncBinary()
_ = yym421
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep422 := !z.EncBinary()
yy2arr422 := z.EncBasicHandle().StructToArray
var yyq422 [5]bool
_, _, _ = yysep422, yyq422, yy2arr422
const yyr422 bool = false
yyq422[0] = x.Kind != ""
yyq422[1] = x.APIVersion != ""
yyq422[2] = true
yyq422[3] = true
yyq422[4] = true
var yynn422 int
if yyr422 || yy2arr422 {
r.EncodeArrayStart(5)
} else {
yynn422 = 0
for _, b := range yyq422 {
if b {
yynn422++
}
}
r.EncodeMapStart(yynn422)
yynn422 = 0
}
if yyr422 || yy2arr422 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq422[0] {
yym424 := z.EncBinary()
_ = yym424
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq422[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym425 := z.EncBinary()
_ = yym425
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr422 || yy2arr422 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq422[1] {
yym427 := z.EncBinary()
_ = yym427
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq422[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym428 := z.EncBinary()
_ = yym428
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr422 || yy2arr422 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq422[2] {
yy430 := &x.ObjectMeta
yy430.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq422[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy431 := &x.ObjectMeta
yy431.CodecEncodeSelf(e)
}
}
if yyr422 || yy2arr422 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq422[3] {
yy433 := &x.Spec
yy433.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq422[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy434 := &x.Spec
yy434.CodecEncodeSelf(e)
}
}
if yyr422 || yy2arr422 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq422[4] {
yy436 := &x.Status
yy436.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq422[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy437 := &x.Status
yy437.CodecEncodeSelf(e)
}
}
if yyr422 || yy2arr422 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *Deployment) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym438 := z.DecBinary()
_ = yym438
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct439 := r.ContainerType()
if yyct439 == codecSelferValueTypeMap1234 {
yyl439 := r.ReadMapStart()
if yyl439 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl439, d)
}
} else if yyct439 == codecSelferValueTypeArray1234 {
yyl439 := r.ReadArrayStart()
if yyl439 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl439, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *Deployment) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys440Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys440Slc
var yyhl440 bool = l >= 0
for yyj440 := 0; ; yyj440++ {
if yyhl440 {
if yyj440 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys440Slc = r.DecodeBytes(yys440Slc, true, true)
yys440 := string(yys440Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys440 {
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 = pkg2_v1.ObjectMeta{}
} else {
yyv443 := &x.ObjectMeta
yyv443.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = DeploymentSpec{}
} else {
yyv444 := &x.Spec
yyv444.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = DeploymentStatus{}
} else {
yyv445 := &x.Status
yyv445.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys440)
} // end switch yys440
} // end for yyj440
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *Deployment) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj446 int
var yyb446 bool
var yyhl446 bool = l >= 0
yyj446++
if yyhl446 {
yyb446 = yyj446 > l
} else {
yyb446 = r.CheckBreak()
}
if yyb446 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj446++
if yyhl446 {
yyb446 = yyj446 > l
} else {
yyb446 = r.CheckBreak()
}
if yyb446 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj446++
if yyhl446 {
yyb446 = yyj446 > l
} else {
yyb446 = r.CheckBreak()
}
if yyb446 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{}
} else {
yyv449 := &x.ObjectMeta
yyv449.CodecDecodeSelf(d)
}
yyj446++
if yyhl446 {
yyb446 = yyj446 > l
} else {
yyb446 = r.CheckBreak()
}
if yyb446 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = DeploymentSpec{}
} else {
yyv450 := &x.Spec
yyv450.CodecDecodeSelf(d)
}
yyj446++
if yyhl446 {
yyb446 = yyj446 > l
} else {
yyb446 = r.CheckBreak()
}
if yyb446 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = DeploymentStatus{}
} else {
yyv451 := &x.Status
yyv451.CodecDecodeSelf(d)
}
for {
yyj446++
if yyhl446 {
yyb446 = yyj446 > l
} else {
yyb446 = r.CheckBreak()
}
if yyb446 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj446-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym452 := z.EncBinary()
_ = yym452
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep453 := !z.EncBinary()
yy2arr453 := z.EncBasicHandle().StructToArray
2017-04-07 10:49:53 +00:00
var yyq453 [9]bool
2017-02-07 21:33:23 +00:00
_, _, _ = yysep453, yyq453, yy2arr453
const yyr453 bool = false
yyq453[0] = x.Replicas != nil
yyq453[1] = x.Selector != nil
yyq453[3] = true
yyq453[4] = x.MinReadySeconds != 0
yyq453[5] = x.RevisionHistoryLimit != nil
yyq453[6] = x.Paused != false
yyq453[7] = x.RollbackTo != nil
2017-04-07 10:49:53 +00:00
yyq453[8] = x.ProgressDeadlineSeconds != nil
2017-02-07 21:33:23 +00:00
var yynn453 int
if yyr453 || yy2arr453 {
2017-04-07 10:49:53 +00:00
r.EncodeArrayStart(9)
2017-02-07 21:33:23 +00:00
} else {
yynn453 = 1
for _, b := range yyq453 {
if b {
yynn453++
}
}
r.EncodeMapStart(yynn453)
yynn453 = 0
}
if yyr453 || yy2arr453 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq453[0] {
if x.Replicas == nil {
r.EncodeNil()
} else {
yy455 := *x.Replicas
yym456 := z.EncBinary()
_ = yym456
if false {
} else {
r.EncodeInt(int64(yy455))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq453[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("replicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Replicas == nil {
r.EncodeNil()
} else {
yy457 := *x.Replicas
yym458 := z.EncBinary()
_ = yym458
if false {
} else {
r.EncodeInt(int64(yy457))
}
}
}
}
if yyr453 || yy2arr453 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq453[1] {
if x.Selector == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym460 := z.EncBinary()
_ = yym460
if false {
} else if z.HasExtensions() && z.EncExt(x.Selector) {
} else {
z.EncFallback(x.Selector)
}
2017-02-07 21:33:23 +00:00
}
} else {
r.EncodeNil()
}
} else {
if yyq453[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("selector"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Selector == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym461 := z.EncBinary()
_ = yym461
if false {
} else if z.HasExtensions() && z.EncExt(x.Selector) {
} else {
z.EncFallback(x.Selector)
}
2017-02-07 21:33:23 +00:00
}
}
}
if yyr453 || yy2arr453 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy463 := &x.Template
yy463.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("template"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy464 := &x.Template
yy464.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
if yyr453 || yy2arr453 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq453[3] {
2017-04-07 10:49:53 +00:00
yy466 := &x.Strategy
yy466.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
} else {
r.EncodeNil()
}
} else {
if yyq453[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("strategy"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy467 := &x.Strategy
yy467.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
}
if yyr453 || yy2arr453 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq453[4] {
2017-04-07 10:49:53 +00:00
yym469 := z.EncBinary()
_ = yym469
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeInt(int64(x.MinReadySeconds))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq453[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("minReadySeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym470 := z.EncBinary()
_ = yym470
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeInt(int64(x.MinReadySeconds))
}
}
}
if yyr453 || yy2arr453 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq453[5] {
if x.RevisionHistoryLimit == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yy472 := *x.RevisionHistoryLimit
yym473 := z.EncBinary()
_ = yym473
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
r.EncodeInt(int64(yy472))
2017-02-07 21:33:23 +00:00
}
}
} else {
r.EncodeNil()
}
} else {
if yyq453[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("revisionHistoryLimit"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RevisionHistoryLimit == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yy474 := *x.RevisionHistoryLimit
yym475 := z.EncBinary()
_ = yym475
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
r.EncodeInt(int64(yy474))
2017-02-07 21:33:23 +00:00
}
}
}
}
if yyr453 || yy2arr453 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq453[6] {
2017-04-07 10:49:53 +00:00
yym477 := z.EncBinary()
_ = yym477
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeBool(bool(x.Paused))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq453[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("paused"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym478 := z.EncBinary()
_ = yym478
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeBool(bool(x.Paused))
}
}
}
if yyr453 || yy2arr453 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq453[7] {
if x.RollbackTo == nil {
r.EncodeNil()
} else {
x.RollbackTo.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq453[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("rollbackTo"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RollbackTo == nil {
r.EncodeNil()
} else {
x.RollbackTo.CodecEncodeSelf(e)
}
}
}
2017-04-07 10:49:53 +00:00
if yyr453 || yy2arr453 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq453[8] {
if x.ProgressDeadlineSeconds == nil {
r.EncodeNil()
} else {
yy481 := *x.ProgressDeadlineSeconds
yym482 := z.EncBinary()
_ = yym482
if false {
} else {
r.EncodeInt(int64(yy481))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq453[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("progressDeadlineSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ProgressDeadlineSeconds == nil {
r.EncodeNil()
} else {
yy483 := *x.ProgressDeadlineSeconds
yym484 := z.EncBinary()
_ = yym484
if false {
} else {
r.EncodeInt(int64(yy483))
}
}
}
}
2017-02-07 21:33:23 +00:00
if yyr453 || yy2arr453 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *DeploymentSpec) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym485 := z.DecBinary()
_ = yym485
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct486 := r.ContainerType()
if yyct486 == codecSelferValueTypeMap1234 {
yyl486 := r.ReadMapStart()
if yyl486 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl486, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct486 == codecSelferValueTypeArray1234 {
yyl486 := r.ReadArrayStart()
if yyl486 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl486, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *DeploymentSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys487Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys487Slc
var yyhl487 bool = l >= 0
for yyj487 := 0; ; yyj487++ {
if yyhl487 {
if yyj487 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys487Slc = r.DecodeBytes(yys487Slc, true, true)
yys487 := string(yys487Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys487 {
2017-02-07 21:33:23 +00:00
case "replicas":
if r.TryDecodeAsNil() {
if x.Replicas != nil {
x.Replicas = nil
}
} else {
if x.Replicas == nil {
x.Replicas = new(int32)
}
2017-04-07 10:49:53 +00:00
yym489 := z.DecBinary()
_ = yym489
2017-02-07 21:33:23 +00:00
if false {
} else {
*((*int32)(x.Replicas)) = int32(r.DecodeInt(32))
}
}
case "selector":
if r.TryDecodeAsNil() {
if x.Selector != nil {
x.Selector = nil
}
} else {
if x.Selector == nil {
2017-04-07 10:49:53 +00:00
x.Selector = new(pkg1_unversioned.LabelSelector)
}
yym491 := z.DecBinary()
_ = yym491
if false {
} else if z.HasExtensions() && z.DecExt(x.Selector) {
} else {
z.DecFallback(x.Selector, false)
2017-02-07 21:33:23 +00:00
}
}
case "template":
if r.TryDecodeAsNil() {
x.Template = pkg2_v1.PodTemplateSpec{}
} else {
2017-04-07 10:49:53 +00:00
yyv492 := &x.Template
yyv492.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
case "strategy":
if r.TryDecodeAsNil() {
x.Strategy = DeploymentStrategy{}
} else {
2017-04-07 10:49:53 +00:00
yyv493 := &x.Strategy
yyv493.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
case "minReadySeconds":
if r.TryDecodeAsNil() {
x.MinReadySeconds = 0
} else {
x.MinReadySeconds = int32(r.DecodeInt(32))
}
case "revisionHistoryLimit":
if r.TryDecodeAsNil() {
if x.RevisionHistoryLimit != nil {
x.RevisionHistoryLimit = nil
}
} else {
if x.RevisionHistoryLimit == nil {
x.RevisionHistoryLimit = new(int32)
}
2017-04-07 10:49:53 +00:00
yym496 := z.DecBinary()
_ = yym496
2017-02-07 21:33:23 +00:00
if false {
} else {
*((*int32)(x.RevisionHistoryLimit)) = int32(r.DecodeInt(32))
}
}
case "paused":
if r.TryDecodeAsNil() {
x.Paused = false
} else {
x.Paused = bool(r.DecodeBool())
}
case "rollbackTo":
if r.TryDecodeAsNil() {
if x.RollbackTo != nil {
x.RollbackTo = nil
}
} else {
if x.RollbackTo == nil {
x.RollbackTo = new(RollbackConfig)
}
x.RollbackTo.CodecDecodeSelf(d)
}
2017-04-07 10:49:53 +00:00
case "progressDeadlineSeconds":
if r.TryDecodeAsNil() {
if x.ProgressDeadlineSeconds != nil {
x.ProgressDeadlineSeconds = nil
}
} else {
if x.ProgressDeadlineSeconds == nil {
x.ProgressDeadlineSeconds = new(int32)
}
yym500 := z.DecBinary()
_ = yym500
if false {
} else {
*((*int32)(x.ProgressDeadlineSeconds)) = int32(r.DecodeInt(32))
}
}
2017-02-07 21:33:23 +00:00
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys487)
} // end switch yys487
} // end for yyj487
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj501 int
var yyb501 bool
var yyhl501 bool = l >= 0
yyj501++
if yyhl501 {
yyb501 = yyj501 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb501 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb501 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Replicas != nil {
x.Replicas = nil
}
} else {
if x.Replicas == nil {
x.Replicas = new(int32)
}
2017-04-07 10:49:53 +00:00
yym503 := z.DecBinary()
_ = yym503
2017-02-07 21:33:23 +00:00
if false {
} else {
*((*int32)(x.Replicas)) = int32(r.DecodeInt(32))
}
}
2017-04-07 10:49:53 +00:00
yyj501++
if yyhl501 {
yyb501 = yyj501 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb501 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb501 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Selector != nil {
x.Selector = nil
}
} else {
if x.Selector == nil {
2017-04-07 10:49:53 +00:00
x.Selector = new(pkg1_unversioned.LabelSelector)
}
yym505 := z.DecBinary()
_ = yym505
if false {
} else if z.HasExtensions() && z.DecExt(x.Selector) {
} else {
z.DecFallback(x.Selector, false)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyj501++
if yyhl501 {
yyb501 = yyj501 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb501 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb501 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Template = pkg2_v1.PodTemplateSpec{}
} else {
2017-04-07 10:49:53 +00:00
yyv506 := &x.Template
yyv506.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj501++
if yyhl501 {
yyb501 = yyj501 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb501 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb501 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Strategy = DeploymentStrategy{}
} else {
2017-04-07 10:49:53 +00:00
yyv507 := &x.Strategy
yyv507.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj501++
if yyhl501 {
yyb501 = yyj501 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb501 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb501 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.MinReadySeconds = 0
} else {
x.MinReadySeconds = int32(r.DecodeInt(32))
}
2017-04-07 10:49:53 +00:00
yyj501++
if yyhl501 {
yyb501 = yyj501 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb501 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb501 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.RevisionHistoryLimit != nil {
x.RevisionHistoryLimit = nil
}
} else {
if x.RevisionHistoryLimit == nil {
x.RevisionHistoryLimit = new(int32)
}
2017-04-07 10:49:53 +00:00
yym510 := z.DecBinary()
_ = yym510
2017-02-07 21:33:23 +00:00
if false {
} else {
*((*int32)(x.RevisionHistoryLimit)) = int32(r.DecodeInt(32))
}
}
2017-04-07 10:49:53 +00:00
yyj501++
if yyhl501 {
yyb501 = yyj501 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb501 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb501 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Paused = false
} else {
x.Paused = bool(r.DecodeBool())
}
2017-04-07 10:49:53 +00:00
yyj501++
if yyhl501 {
yyb501 = yyj501 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb501 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb501 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.RollbackTo != nil {
x.RollbackTo = nil
}
} else {
if x.RollbackTo == nil {
x.RollbackTo = new(RollbackConfig)
}
x.RollbackTo.CodecDecodeSelf(d)
}
2017-04-07 10:49:53 +00:00
yyj501++
if yyhl501 {
yyb501 = yyj501 > l
} else {
yyb501 = r.CheckBreak()
}
if yyb501 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.ProgressDeadlineSeconds != nil {
x.ProgressDeadlineSeconds = nil
}
} else {
if x.ProgressDeadlineSeconds == nil {
x.ProgressDeadlineSeconds = new(int32)
}
yym514 := z.DecBinary()
_ = yym514
if false {
} else {
*((*int32)(x.ProgressDeadlineSeconds)) = int32(r.DecodeInt(32))
}
}
2017-02-07 21:33:23 +00:00
for {
2017-04-07 10:49:53 +00:00
yyj501++
if yyhl501 {
yyb501 = yyj501 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb501 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb501 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj501-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *DeploymentRollback) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym515 := z.EncBinary()
_ = yym515
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep516 := !z.EncBinary()
yy2arr516 := z.EncBasicHandle().StructToArray
var yyq516 [5]bool
_, _, _ = yysep516, yyq516, yy2arr516
const yyr516 bool = false
yyq516[0] = x.Kind != ""
yyq516[1] = x.APIVersion != ""
yyq516[3] = len(x.UpdatedAnnotations) != 0
var yynn516 int
if yyr516 || yy2arr516 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(5)
} else {
2017-04-07 10:49:53 +00:00
yynn516 = 2
for _, b := range yyq516 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn516++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn516)
yynn516 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr516 || yy2arr516 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq516[0] {
yym518 := z.EncBinary()
_ = yym518
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq516[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym519 := z.EncBinary()
_ = yym519
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr516 || yy2arr516 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq516[1] {
yym521 := z.EncBinary()
_ = yym521
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq516[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym522 := z.EncBinary()
_ = yym522
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr516 || yy2arr516 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yym524 := z.EncBinary()
_ = yym524
2017-02-07 21:33:23 +00:00
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)
2017-04-07 10:49:53 +00:00
yym525 := z.EncBinary()
_ = yym525
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
2017-04-07 10:49:53 +00:00
if yyr516 || yy2arr516 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq516[3] {
2017-02-07 21:33:23 +00:00
if x.UpdatedAnnotations == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym527 := z.EncBinary()
_ = yym527
2017-02-07 21:33:23 +00:00
if false {
} else {
z.F.EncMapStringStringV(x.UpdatedAnnotations, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq516[3] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("updatedAnnotations"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.UpdatedAnnotations == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym528 := z.EncBinary()
_ = yym528
2017-02-07 21:33:23 +00:00
if false {
} else {
z.F.EncMapStringStringV(x.UpdatedAnnotations, false, e)
}
}
}
}
2017-04-07 10:49:53 +00:00
if yyr516 || yy2arr516 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy530 := &x.RollbackTo
yy530.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("rollbackTo"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy531 := &x.RollbackTo
yy531.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr516 || yy2arr516 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *DeploymentRollback) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym532 := z.DecBinary()
_ = yym532
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct533 := r.ContainerType()
if yyct533 == codecSelferValueTypeMap1234 {
yyl533 := r.ReadMapStart()
if yyl533 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl533, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct533 == codecSelferValueTypeArray1234 {
yyl533 := r.ReadArrayStart()
if yyl533 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl533, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *DeploymentRollback) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys534Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys534Slc
var yyhl534 bool = l >= 0
for yyj534 := 0; ; yyj534++ {
if yyhl534 {
if yyj534 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys534Slc = r.DecodeBytes(yys534Slc, true, true)
yys534 := string(yys534Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys534 {
2017-02-07 21:33:23 +00:00
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 "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "updatedAnnotations":
if r.TryDecodeAsNil() {
x.UpdatedAnnotations = nil
} else {
2017-04-07 10:49:53 +00:00
yyv538 := &x.UpdatedAnnotations
yym539 := z.DecBinary()
_ = yym539
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
z.F.DecMapStringStringX(yyv538, false, d)
2017-02-07 21:33:23 +00:00
}
}
case "rollbackTo":
if r.TryDecodeAsNil() {
x.RollbackTo = RollbackConfig{}
} else {
2017-04-07 10:49:53 +00:00
yyv540 := &x.RollbackTo
yyv540.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys534)
} // end switch yys534
} // end for yyj534
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *DeploymentRollback) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj541 int
var yyb541 bool
var yyhl541 bool = l >= 0
yyj541++
if yyhl541 {
yyb541 = yyj541 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb541 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb541 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj541++
if yyhl541 {
yyb541 = yyj541 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb541 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb541 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj541++
if yyhl541 {
yyb541 = yyj541 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb541 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb541 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj541++
if yyhl541 {
yyb541 = yyj541 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb541 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb541 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.UpdatedAnnotations = nil
} else {
2017-04-07 10:49:53 +00:00
yyv545 := &x.UpdatedAnnotations
yym546 := z.DecBinary()
_ = yym546
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
z.F.DecMapStringStringX(yyv545, false, d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyj541++
if yyhl541 {
yyb541 = yyj541 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb541 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb541 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RollbackTo = RollbackConfig{}
} else {
2017-04-07 10:49:53 +00:00
yyv547 := &x.RollbackTo
yyv547.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
for {
2017-04-07 10:49:53 +00:00
yyj541++
if yyhl541 {
yyb541 = yyj541 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb541 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb541 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj541-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *RollbackConfig) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym548 := z.EncBinary()
_ = yym548
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep549 := !z.EncBinary()
yy2arr549 := z.EncBasicHandle().StructToArray
var yyq549 [1]bool
_, _, _ = yysep549, yyq549, yy2arr549
const yyr549 bool = false
yyq549[0] = x.Revision != 0
var yynn549 int
if yyr549 || yy2arr549 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(1)
} else {
2017-04-07 10:49:53 +00:00
yynn549 = 0
for _, b := range yyq549 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn549++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn549)
yynn549 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr549 || yy2arr549 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq549[0] {
yym551 := z.EncBinary()
_ = yym551
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeInt(int64(x.Revision))
}
} else {
r.EncodeInt(0)
}
} else {
2017-04-07 10:49:53 +00:00
if yyq549[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("revision"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym552 := z.EncBinary()
_ = yym552
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeInt(int64(x.Revision))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr549 || yy2arr549 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *RollbackConfig) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym553 := z.DecBinary()
_ = yym553
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct554 := r.ContainerType()
if yyct554 == codecSelferValueTypeMap1234 {
yyl554 := r.ReadMapStart()
if yyl554 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl554, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct554 == codecSelferValueTypeArray1234 {
yyl554 := r.ReadArrayStart()
if yyl554 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl554, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *RollbackConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys555Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys555Slc
var yyhl555 bool = l >= 0
for yyj555 := 0; ; yyj555++ {
if yyhl555 {
if yyj555 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys555Slc = r.DecodeBytes(yys555Slc, true, true)
yys555 := string(yys555Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys555 {
2017-02-07 21:33:23 +00:00
case "revision":
if r.TryDecodeAsNil() {
x.Revision = 0
} else {
x.Revision = int64(r.DecodeInt(64))
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys555)
} // end switch yys555
} // end for yyj555
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *RollbackConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj557 int
var yyb557 bool
var yyhl557 bool = l >= 0
yyj557++
if yyhl557 {
yyb557 = yyj557 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb557 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb557 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Revision = 0
} else {
x.Revision = int64(r.DecodeInt(64))
}
for {
2017-04-07 10:49:53 +00:00
yyj557++
if yyhl557 {
yyb557 = yyj557 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb557 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb557 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj557-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *DeploymentStrategy) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym559 := z.EncBinary()
_ = yym559
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep560 := !z.EncBinary()
yy2arr560 := z.EncBasicHandle().StructToArray
var yyq560 [2]bool
_, _, _ = yysep560, yyq560, yy2arr560
const yyr560 bool = false
yyq560[0] = x.Type != ""
yyq560[1] = x.RollingUpdate != nil
var yynn560 int
if yyr560 || yy2arr560 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(2)
} else {
2017-04-07 10:49:53 +00:00
yynn560 = 0
for _, b := range yyq560 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn560++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn560)
yynn560 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr560 || yy2arr560 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq560[0] {
2017-02-07 21:33:23 +00:00
x.Type.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq560[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Type.CodecEncodeSelf(e)
}
}
2017-04-07 10:49:53 +00:00
if yyr560 || yy2arr560 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq560[1] {
2017-02-07 21:33:23 +00:00
if x.RollingUpdate == nil {
r.EncodeNil()
} else {
x.RollingUpdate.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq560[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("rollingUpdate"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RollingUpdate == nil {
r.EncodeNil()
} else {
x.RollingUpdate.CodecEncodeSelf(e)
}
}
}
2017-04-07 10:49:53 +00:00
if yyr560 || yy2arr560 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *DeploymentStrategy) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym563 := z.DecBinary()
_ = yym563
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct564 := r.ContainerType()
if yyct564 == codecSelferValueTypeMap1234 {
yyl564 := r.ReadMapStart()
if yyl564 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl564, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct564 == codecSelferValueTypeArray1234 {
yyl564 := r.ReadArrayStart()
if yyl564 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl564, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *DeploymentStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys565Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys565Slc
var yyhl565 bool = l >= 0
for yyj565 := 0; ; yyj565++ {
if yyhl565 {
if yyj565 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys565Slc = r.DecodeBytes(yys565Slc, true, true)
yys565 := string(yys565Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys565 {
2017-02-07 21:33:23 +00:00
case "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = DeploymentStrategyType(r.DecodeString())
}
case "rollingUpdate":
if r.TryDecodeAsNil() {
if x.RollingUpdate != nil {
x.RollingUpdate = nil
}
} else {
if x.RollingUpdate == nil {
x.RollingUpdate = new(RollingUpdateDeployment)
}
x.RollingUpdate.CodecDecodeSelf(d)
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys565)
} // end switch yys565
} // end for yyj565
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *DeploymentStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj568 int
var yyb568 bool
var yyhl568 bool = l >= 0
yyj568++
if yyhl568 {
yyb568 = yyj568 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb568 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb568 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = DeploymentStrategyType(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj568++
if yyhl568 {
yyb568 = yyj568 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb568 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb568 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.RollingUpdate != nil {
x.RollingUpdate = nil
}
} else {
if x.RollingUpdate == nil {
x.RollingUpdate = new(RollingUpdateDeployment)
}
x.RollingUpdate.CodecDecodeSelf(d)
}
for {
2017-04-07 10:49:53 +00:00
yyj568++
if yyhl568 {
yyb568 = yyj568 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb568 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb568 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj568-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x DeploymentStrategyType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym571 := z.EncBinary()
_ = yym571
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *DeploymentStrategyType) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym572 := z.DecBinary()
_ = yym572
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *RollingUpdateDeployment) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym573 := z.EncBinary()
_ = yym573
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep574 := !z.EncBinary()
yy2arr574 := z.EncBasicHandle().StructToArray
var yyq574 [2]bool
_, _, _ = yysep574, yyq574, yy2arr574
const yyr574 bool = false
yyq574[0] = x.MaxUnavailable != nil
yyq574[1] = x.MaxSurge != nil
var yynn574 int
if yyr574 || yy2arr574 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(2)
} else {
2017-04-07 10:49:53 +00:00
yynn574 = 0
for _, b := range yyq574 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn574++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn574)
yynn574 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr574 || yy2arr574 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq574[0] {
2017-02-07 21:33:23 +00:00
if x.MaxUnavailable == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym576 := z.EncBinary()
_ = yym576
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x.MaxUnavailable) {
2017-04-07 10:49:53 +00:00
} else if !yym576 && z.IsJSONHandle() {
2017-02-07 21:33:23 +00:00
z.EncJSONMarshal(x.MaxUnavailable)
} else {
z.EncFallback(x.MaxUnavailable)
}
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq574[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("maxUnavailable"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.MaxUnavailable == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym577 := z.EncBinary()
_ = yym577
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x.MaxUnavailable) {
2017-04-07 10:49:53 +00:00
} else if !yym577 && z.IsJSONHandle() {
2017-02-07 21:33:23 +00:00
z.EncJSONMarshal(x.MaxUnavailable)
} else {
z.EncFallback(x.MaxUnavailable)
}
}
}
}
2017-04-07 10:49:53 +00:00
if yyr574 || yy2arr574 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq574[1] {
2017-02-07 21:33:23 +00:00
if x.MaxSurge == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym579 := z.EncBinary()
_ = yym579
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x.MaxSurge) {
2017-04-07 10:49:53 +00:00
} else if !yym579 && z.IsJSONHandle() {
2017-02-07 21:33:23 +00:00
z.EncJSONMarshal(x.MaxSurge)
} else {
z.EncFallback(x.MaxSurge)
}
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq574[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("maxSurge"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.MaxSurge == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym580 := z.EncBinary()
_ = yym580
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x.MaxSurge) {
2017-04-07 10:49:53 +00:00
} else if !yym580 && z.IsJSONHandle() {
2017-02-07 21:33:23 +00:00
z.EncJSONMarshal(x.MaxSurge)
} else {
z.EncFallback(x.MaxSurge)
}
}
}
}
2017-04-07 10:49:53 +00:00
if yyr574 || yy2arr574 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *RollingUpdateDeployment) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym581 := z.DecBinary()
_ = yym581
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct582 := r.ContainerType()
if yyct582 == codecSelferValueTypeMap1234 {
yyl582 := r.ReadMapStart()
if yyl582 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl582, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct582 == codecSelferValueTypeArray1234 {
yyl582 := r.ReadArrayStart()
if yyl582 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl582, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *RollingUpdateDeployment) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys583Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys583Slc
var yyhl583 bool = l >= 0
for yyj583 := 0; ; yyj583++ {
if yyhl583 {
if yyj583 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys583Slc = r.DecodeBytes(yys583Slc, true, true)
yys583 := string(yys583Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys583 {
2017-02-07 21:33:23 +00:00
case "maxUnavailable":
if r.TryDecodeAsNil() {
if x.MaxUnavailable != nil {
x.MaxUnavailable = nil
}
} else {
if x.MaxUnavailable == nil {
x.MaxUnavailable = new(pkg5_intstr.IntOrString)
}
2017-04-07 10:49:53 +00:00
yym585 := z.DecBinary()
_ = yym585
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x.MaxUnavailable) {
2017-04-07 10:49:53 +00:00
} else if !yym585 && z.IsJSONHandle() {
2017-02-07 21:33:23 +00:00
z.DecJSONUnmarshal(x.MaxUnavailable)
} else {
z.DecFallback(x.MaxUnavailable, false)
}
}
case "maxSurge":
if r.TryDecodeAsNil() {
if x.MaxSurge != nil {
x.MaxSurge = nil
}
} else {
if x.MaxSurge == nil {
x.MaxSurge = new(pkg5_intstr.IntOrString)
}
2017-04-07 10:49:53 +00:00
yym587 := z.DecBinary()
_ = yym587
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x.MaxSurge) {
2017-04-07 10:49:53 +00:00
} else if !yym587 && z.IsJSONHandle() {
2017-02-07 21:33:23 +00:00
z.DecJSONUnmarshal(x.MaxSurge)
} else {
z.DecFallback(x.MaxSurge, false)
}
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys583)
} // end switch yys583
} // end for yyj583
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *RollingUpdateDeployment) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj588 int
var yyb588 bool
var yyhl588 bool = l >= 0
yyj588++
if yyhl588 {
yyb588 = yyj588 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb588 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb588 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.MaxUnavailable != nil {
x.MaxUnavailable = nil
}
} else {
if x.MaxUnavailable == nil {
x.MaxUnavailable = new(pkg5_intstr.IntOrString)
}
2017-04-07 10:49:53 +00:00
yym590 := z.DecBinary()
_ = yym590
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x.MaxUnavailable) {
2017-04-07 10:49:53 +00:00
} else if !yym590 && z.IsJSONHandle() {
2017-02-07 21:33:23 +00:00
z.DecJSONUnmarshal(x.MaxUnavailable)
} else {
z.DecFallback(x.MaxUnavailable, false)
}
}
2017-04-07 10:49:53 +00:00
yyj588++
if yyhl588 {
yyb588 = yyj588 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb588 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb588 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.MaxSurge != nil {
x.MaxSurge = nil
}
} else {
if x.MaxSurge == nil {
x.MaxSurge = new(pkg5_intstr.IntOrString)
}
2017-04-07 10:49:53 +00:00
yym592 := z.DecBinary()
_ = yym592
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x.MaxSurge) {
2017-04-07 10:49:53 +00:00
} else if !yym592 && z.IsJSONHandle() {
2017-02-07 21:33:23 +00:00
z.DecJSONUnmarshal(x.MaxSurge)
} else {
z.DecFallback(x.MaxSurge, false)
}
}
for {
2017-04-07 10:49:53 +00:00
yyj588++
if yyhl588 {
yyb588 = yyj588 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb588 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb588 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj588-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym593 := z.EncBinary()
_ = yym593
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep594 := !z.EncBinary()
yy2arr594 := z.EncBasicHandle().StructToArray
var yyq594 [6]bool
_, _, _ = yysep594, yyq594, yy2arr594
const yyr594 bool = false
yyq594[0] = x.ObservedGeneration != 0
yyq594[1] = x.Replicas != 0
yyq594[2] = x.UpdatedReplicas != 0
yyq594[3] = x.AvailableReplicas != 0
yyq594[4] = x.UnavailableReplicas != 0
yyq594[5] = len(x.Conditions) != 0
var yynn594 int
if yyr594 || yy2arr594 {
r.EncodeArrayStart(6)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yynn594 = 0
for _, b := range yyq594 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn594++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn594)
yynn594 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr594 || yy2arr594 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq594[0] {
yym596 := z.EncBinary()
_ = yym596
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeInt(int64(x.ObservedGeneration))
}
} else {
r.EncodeInt(0)
}
} else {
2017-04-07 10:49:53 +00:00
if yyq594[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("observedGeneration"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym597 := z.EncBinary()
_ = yym597
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeInt(int64(x.ObservedGeneration))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr594 || yy2arr594 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq594[1] {
yym599 := z.EncBinary()
_ = yym599
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeInt(int64(x.Replicas))
}
} else {
r.EncodeInt(0)
}
} else {
2017-04-07 10:49:53 +00:00
if yyq594[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("replicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym600 := z.EncBinary()
_ = yym600
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeInt(int64(x.Replicas))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr594 || yy2arr594 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq594[2] {
yym602 := z.EncBinary()
_ = yym602
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeInt(int64(x.UpdatedReplicas))
}
} else {
r.EncodeInt(0)
}
} else {
2017-04-07 10:49:53 +00:00
if yyq594[2] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("updatedReplicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym603 := z.EncBinary()
_ = yym603
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeInt(int64(x.UpdatedReplicas))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr594 || yy2arr594 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq594[3] {
yym605 := z.EncBinary()
_ = yym605
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeInt(int64(x.AvailableReplicas))
}
} else {
r.EncodeInt(0)
}
} else {
2017-04-07 10:49:53 +00:00
if yyq594[3] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("availableReplicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym606 := z.EncBinary()
_ = yym606
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeInt(int64(x.AvailableReplicas))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr594 || yy2arr594 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq594[4] {
yym608 := z.EncBinary()
_ = yym608
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeInt(int64(x.UnavailableReplicas))
}
} else {
r.EncodeInt(0)
}
} else {
2017-04-07 10:49:53 +00:00
if yyq594[4] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("unavailableReplicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym609 := z.EncBinary()
_ = yym609
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeInt(int64(x.UnavailableReplicas))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr594 || yy2arr594 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq594[5] {
if x.Conditions == nil {
r.EncodeNil()
} else {
yym611 := z.EncBinary()
_ = yym611
if false {
} else {
h.encSliceDeploymentCondition(([]DeploymentCondition)(x.Conditions), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq594[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Conditions == nil {
r.EncodeNil()
} else {
yym612 := z.EncBinary()
_ = yym612
if false {
} else {
h.encSliceDeploymentCondition(([]DeploymentCondition)(x.Conditions), e)
}
}
}
}
if yyr594 || yy2arr594 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *DeploymentStatus) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym613 := z.DecBinary()
_ = yym613
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct614 := r.ContainerType()
if yyct614 == codecSelferValueTypeMap1234 {
yyl614 := r.ReadMapStart()
if yyl614 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl614, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct614 == codecSelferValueTypeArray1234 {
yyl614 := r.ReadArrayStart()
if yyl614 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl614, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *DeploymentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys615Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys615Slc
var yyhl615 bool = l >= 0
for yyj615 := 0; ; yyj615++ {
if yyhl615 {
if yyj615 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys615Slc = r.DecodeBytes(yys615Slc, true, true)
yys615 := string(yys615Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys615 {
2017-02-07 21:33:23 +00:00
case "observedGeneration":
if r.TryDecodeAsNil() {
x.ObservedGeneration = 0
} else {
x.ObservedGeneration = int64(r.DecodeInt(64))
}
case "replicas":
if r.TryDecodeAsNil() {
x.Replicas = 0
} else {
x.Replicas = int32(r.DecodeInt(32))
}
case "updatedReplicas":
if r.TryDecodeAsNil() {
x.UpdatedReplicas = 0
} else {
x.UpdatedReplicas = int32(r.DecodeInt(32))
}
case "availableReplicas":
if r.TryDecodeAsNil() {
x.AvailableReplicas = 0
} else {
x.AvailableReplicas = int32(r.DecodeInt(32))
}
case "unavailableReplicas":
if r.TryDecodeAsNil() {
x.UnavailableReplicas = 0
} else {
x.UnavailableReplicas = int32(r.DecodeInt(32))
}
2017-04-07 10:49:53 +00:00
case "conditions":
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv621 := &x.Conditions
yym622 := z.DecBinary()
_ = yym622
if false {
} else {
h.decSliceDeploymentCondition((*[]DeploymentCondition)(yyv621), d)
}
}
2017-02-07 21:33:23 +00:00
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys615)
} // end switch yys615
} // end for yyj615
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj623 int
var yyb623 bool
var yyhl623 bool = l >= 0
yyj623++
if yyhl623 {
yyb623 = yyj623 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb623 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb623 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObservedGeneration = 0
} else {
x.ObservedGeneration = int64(r.DecodeInt(64))
}
2017-04-07 10:49:53 +00:00
yyj623++
if yyhl623 {
yyb623 = yyj623 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb623 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb623 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Replicas = 0
} else {
x.Replicas = int32(r.DecodeInt(32))
}
2017-04-07 10:49:53 +00:00
yyj623++
if yyhl623 {
yyb623 = yyj623 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb623 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb623 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.UpdatedReplicas = 0
} else {
x.UpdatedReplicas = int32(r.DecodeInt(32))
}
2017-04-07 10:49:53 +00:00
yyj623++
if yyhl623 {
yyb623 = yyj623 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb623 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb623 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.AvailableReplicas = 0
} else {
x.AvailableReplicas = int32(r.DecodeInt(32))
}
2017-04-07 10:49:53 +00:00
yyj623++
if yyhl623 {
yyb623 = yyj623 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb623 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb623 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.UnavailableReplicas = 0
} else {
x.UnavailableReplicas = int32(r.DecodeInt(32))
}
2017-04-07 10:49:53 +00:00
yyj623++
if yyhl623 {
yyb623 = yyj623 > l
} else {
yyb623 = r.CheckBreak()
}
if yyb623 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv629 := &x.Conditions
yym630 := z.DecBinary()
_ = yym630
if false {
} else {
h.decSliceDeploymentCondition((*[]DeploymentCondition)(yyv629), d)
}
}
2017-02-07 21:33:23 +00:00
for {
2017-04-07 10:49:53 +00:00
yyj623++
if yyhl623 {
yyb623 = yyj623 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb623 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb623 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj623-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
2017-04-07 10:49:53 +00:00
func (x DeploymentConditionType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym631 := z.EncBinary()
_ = yym631
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *DeploymentConditionType) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym632 := z.DecBinary()
_ = yym632
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *DeploymentCondition) CodecEncodeSelf(e *codec1978.Encoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym633 := z.EncBinary()
_ = yym633
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep634 := !z.EncBinary()
yy2arr634 := z.EncBasicHandle().StructToArray
var yyq634 [6]bool
_, _, _ = yysep634, yyq634, yy2arr634
const yyr634 bool = false
yyq634[2] = true
yyq634[3] = true
yyq634[4] = x.Reason != ""
yyq634[5] = x.Message != ""
var yynn634 int
if yyr634 || yy2arr634 {
r.EncodeArrayStart(6)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yynn634 = 2
for _, b := range yyq634 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn634++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn634)
yynn634 = 0
}
if yyr634 || yy2arr634 {
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 yyr634 || yy2arr634 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym637 := z.EncBinary()
_ = yym637
if false {
} else if z.HasExtensions() && z.EncExt(x.Status) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Status))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym638 := z.EncBinary()
_ = yym638
if false {
} else if z.HasExtensions() && z.EncExt(x.Status) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Status))
}
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr634 || yy2arr634 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq634[2] {
yy640 := &x.LastUpdateTime
yym641 := z.EncBinary()
_ = yym641
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(yy640) {
} else if yym641 {
z.EncBinaryMarshal(yy640)
} else if !yym641 && z.IsJSONHandle() {
z.EncJSONMarshal(yy640)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.EncFallback(yy640)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
r.EncodeNil()
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
if yyq634[2] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string("lastUpdateTime"))
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy642 := &x.LastUpdateTime
yym643 := z.EncBinary()
_ = yym643
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(yy642) {
} else if yym643 {
z.EncBinaryMarshal(yy642)
} else if !yym643 && z.IsJSONHandle() {
z.EncJSONMarshal(yy642)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.EncFallback(yy642)
2017-02-07 21:33:23 +00:00
}
}
}
2017-04-07 10:49:53 +00:00
if yyr634 || yy2arr634 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq634[3] {
yy645 := &x.LastTransitionTime
yym646 := z.EncBinary()
_ = yym646
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(yy645) {
} else if yym646 {
z.EncBinaryMarshal(yy645)
} else if !yym646 && z.IsJSONHandle() {
z.EncJSONMarshal(yy645)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.EncFallback(yy645)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
r.EncodeNil()
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
if yyq634[3] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime"))
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy647 := &x.LastTransitionTime
yym648 := z.EncBinary()
_ = yym648
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(yy647) {
} else if yym648 {
z.EncBinaryMarshal(yy647)
} else if !yym648 && z.IsJSONHandle() {
z.EncJSONMarshal(yy647)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.EncFallback(yy647)
2017-02-07 21:33:23 +00:00
}
}
}
2017-04-07 10:49:53 +00:00
if yyr634 || yy2arr634 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq634[4] {
yym650 := z.EncBinary()
_ = yym650
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, "")
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
if yyq634[4] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string("reason"))
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym651 := z.EncBinary()
_ = yym651
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
2017-02-07 21:33:23 +00:00
}
}
}
2017-04-07 10:49:53 +00:00
if yyr634 || yy2arr634 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq634[5] {
yym653 := z.EncBinary()
_ = yym653
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else {
r.EncodeString(codecSelferC_UTF81234, "")
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
if yyq634[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym654 := z.EncBinary()
_ = yym654
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
2017-02-07 21:33:23 +00:00
}
}
}
2017-04-07 10:49:53 +00:00
if yyr634 || yy2arr634 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
2017-04-07 10:49:53 +00:00
func (x *DeploymentCondition) CodecDecodeSelf(d *codec1978.Decoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym655 := z.DecBinary()
_ = yym655
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct656 := r.ContainerType()
if yyct656 == codecSelferValueTypeMap1234 {
yyl656 := r.ReadMapStart()
if yyl656 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl656, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct656 == codecSelferValueTypeArray1234 {
yyl656 := r.ReadArrayStart()
if yyl656 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl656, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
2017-04-07 10:49:53 +00:00
func (x *DeploymentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys657Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys657Slc
var yyhl657 bool = l >= 0
for yyj657 := 0; ; yyj657++ {
if yyhl657 {
if yyj657 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys657Slc = r.DecodeBytes(yys657Slc, true, true)
yys657 := string(yys657Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys657 {
case "type":
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.Type = ""
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
x.Type = DeploymentConditionType(r.DecodeString())
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
case "status":
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.Status = ""
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
x.Status = pkg2_v1.ConditionStatus(r.DecodeString())
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
case "lastUpdateTime":
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.LastUpdateTime = pkg1_unversioned.Time{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv660 := &x.LastUpdateTime
yym661 := z.DecBinary()
_ = yym661
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.DecExt(yyv660) {
} else if yym661 {
z.DecBinaryUnmarshal(yyv660)
} else if !yym661 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv660)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.DecFallback(yyv660, false)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
case "lastTransitionTime":
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.LastTransitionTime = pkg1_unversioned.Time{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv662 := &x.LastTransitionTime
yym663 := z.DecBinary()
_ = yym663
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.DecExt(yyv662) {
} else if yym663 {
z.DecBinaryUnmarshal(yyv662)
} else if !yym663 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv662)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.DecFallback(yyv662, false)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
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())
}
2017-02-07 21:33:23 +00:00
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys657)
} // end switch yys657
} // end for yyj657
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
2017-04-07 10:49:53 +00:00
func (x *DeploymentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj666 int
var yyb666 bool
var yyhl666 bool = l >= 0
yyj666++
if yyhl666 {
yyb666 = yyj666 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb666 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb666 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.Type = ""
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
x.Type = DeploymentConditionType(r.DecodeString())
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj666++
if yyhl666 {
yyb666 = yyj666 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb666 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb666 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.Status = ""
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
x.Status = pkg2_v1.ConditionStatus(r.DecodeString())
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj666++
if yyhl666 {
yyb666 = yyj666 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb666 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb666 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.LastUpdateTime = pkg1_unversioned.Time{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv669 := &x.LastUpdateTime
yym670 := z.DecBinary()
_ = yym670
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.DecExt(yyv669) {
} else if yym670 {
z.DecBinaryUnmarshal(yyv669)
} else if !yym670 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv669)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.DecFallback(yyv669, false)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyj666++
if yyhl666 {
yyb666 = yyj666 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb666 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb666 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.LastTransitionTime = pkg1_unversioned.Time{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv671 := &x.LastTransitionTime
yym672 := z.DecBinary()
_ = yym672
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.DecExt(yyv671) {
} else if yym672 {
z.DecBinaryUnmarshal(yyv671)
} else if !yym672 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv671)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.DecFallback(yyv671, false)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyj666++
if yyhl666 {
yyb666 = yyj666 > l
} else {
yyb666 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb666 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj666++
if yyhl666 {
yyb666 = yyj666 > l
} else {
yyb666 = r.CheckBreak()
}
if yyb666 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
for {
yyj666++
if yyhl666 {
yyb666 = yyj666 > l
} else {
yyb666 = r.CheckBreak()
}
if yyb666 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj666-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
func (x *DeploymentList) CodecEncodeSelf(e *codec1978.Encoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym675 := z.EncBinary()
_ = yym675
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep676 := !z.EncBinary()
yy2arr676 := z.EncBasicHandle().StructToArray
var yyq676 [4]bool
_, _, _ = yysep676, yyq676, yy2arr676
const yyr676 bool = false
yyq676[0] = x.Kind != ""
yyq676[1] = x.APIVersion != ""
yyq676[2] = true
var yynn676 int
if yyr676 || yy2arr676 {
r.EncodeArrayStart(4)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yynn676 = 1
for _, b := range yyq676 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn676++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn676)
yynn676 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr676 || yy2arr676 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq676[0] {
yym678 := z.EncBinary()
_ = yym678
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq676[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym679 := z.EncBinary()
_ = yym679
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr676 || yy2arr676 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq676[1] {
yym681 := z.EncBinary()
_ = yym681
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq676[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym682 := z.EncBinary()
_ = yym682
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr676 || yy2arr676 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq676[2] {
yy684 := &x.ListMeta
yym685 := z.EncBinary()
_ = yym685
if false {
} else if z.HasExtensions() && z.EncExt(yy684) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.EncFallback(yy684)
2017-02-07 21:33:23 +00:00
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq676[2] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy686 := &x.ListMeta
yym687 := z.EncBinary()
_ = yym687
if false {
} else if z.HasExtensions() && z.EncExt(yy686) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.EncFallback(yy686)
2017-02-07 21:33:23 +00:00
}
}
}
2017-04-07 10:49:53 +00:00
if yyr676 || yy2arr676 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if x.Items == nil {
r.EncodeNil()
} else {
yym689 := z.EncBinary()
_ = yym689
if false {
} else {
h.encSliceDeployment(([]Deployment)(x.Items), e)
}
}
2017-02-07 21:33:23 +00:00
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string("items"))
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
if x.Items == nil {
r.EncodeNil()
} else {
yym690 := z.EncBinary()
_ = yym690
if false {
} else {
h.encSliceDeployment(([]Deployment)(x.Items), e)
}
}
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr676 || yy2arr676 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
2017-04-07 10:49:53 +00:00
func (x *DeploymentList) CodecDecodeSelf(d *codec1978.Decoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym691 := z.DecBinary()
_ = yym691
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct692 := r.ContainerType()
if yyct692 == codecSelferValueTypeMap1234 {
yyl692 := r.ReadMapStart()
if yyl692 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl692, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct692 == codecSelferValueTypeArray1234 {
yyl692 := r.ReadArrayStart()
if yyl692 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl692, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
2017-04-07 10:49:53 +00:00
func (x *DeploymentList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys693Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys693Slc
var yyhl693 bool = l >= 0
for yyj693 := 0; ; yyj693++ {
if yyhl693 {
if yyj693 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys693Slc = r.DecodeBytes(yys693Slc, true, true)
yys693 := string(yys693Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys693 {
case "kind":
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.Kind = ""
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
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 = pkg1_unversioned.ListMeta{}
} else {
yyv696 := &x.ListMeta
yym697 := z.DecBinary()
_ = yym697
if false {
} else if z.HasExtensions() && z.DecExt(yyv696) {
} else {
z.DecFallback(yyv696, false)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
case "items":
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.Items = nil
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv698 := &x.Items
yym699 := z.DecBinary()
_ = yym699
if false {
} else {
h.decSliceDeployment((*[]Deployment)(yyv698), d)
}
2017-02-07 21:33:23 +00:00
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys693)
} // end switch yys693
} // end for yyj693
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
2017-04-07 10:49:53 +00:00
func (x *DeploymentList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj700 int
var yyb700 bool
var yyhl700 bool = l >= 0
yyj700++
if yyhl700 {
yyb700 = yyj700 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb700 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb700 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.Kind = ""
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
x.Kind = string(r.DecodeString())
}
yyj700++
if yyhl700 {
yyb700 = yyj700 > l
} else {
yyb700 = r.CheckBreak()
}
if yyb700 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj700++
if yyhl700 {
yyb700 = yyj700 > l
} else {
yyb700 = r.CheckBreak()
}
if yyb700 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg1_unversioned.ListMeta{}
} else {
yyv703 := &x.ListMeta
yym704 := z.DecBinary()
_ = yym704
if false {
} else if z.HasExtensions() && z.DecExt(yyv703) {
} else {
z.DecFallback(yyv703, false)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyj700++
if yyhl700 {
yyb700 = yyj700 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb700 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb700 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.Items = nil
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv705 := &x.Items
yym706 := z.DecBinary()
_ = yym706
if false {
} else {
h.decSliceDeployment((*[]Deployment)(yyv705), d)
}
2017-02-07 21:33:23 +00:00
}
for {
2017-04-07 10:49:53 +00:00
yyj700++
if yyhl700 {
yyb700 = yyj700 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb700 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb700 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj700-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
2017-04-07 10:49:53 +00:00
func (x *DaemonSetSpec) CodecEncodeSelf(e *codec1978.Encoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym707 := z.EncBinary()
_ = yym707
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep708 := !z.EncBinary()
yy2arr708 := z.EncBasicHandle().StructToArray
var yyq708 [2]bool
_, _, _ = yysep708, yyq708, yy2arr708
const yyr708 bool = false
yyq708[0] = x.Selector != nil
var yynn708 int
if yyr708 || yy2arr708 {
r.EncodeArrayStart(2)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yynn708 = 1
for _, b := range yyq708 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn708++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn708)
yynn708 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr708 || yy2arr708 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq708[0] {
if x.Selector == nil {
r.EncodeNil()
} else {
yym710 := z.EncBinary()
_ = yym710
if false {
} else if z.HasExtensions() && z.EncExt(x.Selector) {
} else {
z.EncFallback(x.Selector)
}
}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
r.EncodeNil()
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
if yyq708[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("selector"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Selector == nil {
r.EncodeNil()
} else {
yym711 := z.EncBinary()
_ = yym711
if false {
} else if z.HasExtensions() && z.EncExt(x.Selector) {
} else {
z.EncFallback(x.Selector)
}
}
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyr708 || yy2arr708 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy713 := &x.Template
yy713.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string("template"))
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy714 := &x.Template
yy714.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr708 || yy2arr708 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
2017-04-07 10:49:53 +00:00
func (x *DaemonSetSpec) CodecDecodeSelf(d *codec1978.Decoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym715 := z.DecBinary()
_ = yym715
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct716 := r.ContainerType()
if yyct716 == codecSelferValueTypeMap1234 {
yyl716 := r.ReadMapStart()
if yyl716 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl716, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct716 == codecSelferValueTypeArray1234 {
yyl716 := r.ReadArrayStart()
if yyl716 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl716, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
2017-04-07 10:49:53 +00:00
func (x *DaemonSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys717Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys717Slc
var yyhl717 bool = l >= 0
for yyj717 := 0; ; yyj717++ {
if yyhl717 {
if yyj717 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys717Slc = r.DecodeBytes(yys717Slc, true, true)
yys717 := string(yys717Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys717 {
case "selector":
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
if x.Selector != nil {
x.Selector = nil
}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
if x.Selector == nil {
x.Selector = new(pkg1_unversioned.LabelSelector)
}
yym719 := z.DecBinary()
_ = yym719
if false {
} else if z.HasExtensions() && z.DecExt(x.Selector) {
} else {
z.DecFallback(x.Selector, false)
}
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
case "template":
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.Template = pkg2_v1.PodTemplateSpec{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv720 := &x.Template
yyv720.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys717)
} // end switch yys717
} // end for yyj717
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
2017-04-07 10:49:53 +00:00
func (x *DaemonSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj721 int
var yyb721 bool
var yyhl721 bool = l >= 0
yyj721++
if yyhl721 {
yyb721 = yyj721 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb721 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb721 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
if x.Selector != nil {
x.Selector = nil
}
} else {
if x.Selector == nil {
x.Selector = new(pkg1_unversioned.LabelSelector)
}
yym723 := z.DecBinary()
_ = yym723
if false {
} else if z.HasExtensions() && z.DecExt(x.Selector) {
} else {
z.DecFallback(x.Selector, false)
}
}
yyj721++
if yyhl721 {
yyb721 = yyj721 > l
} else {
yyb721 = r.CheckBreak()
}
if yyb721 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Template = pkg2_v1.PodTemplateSpec{}
} else {
yyv724 := &x.Template
yyv724.CodecDecodeSelf(d)
}
for {
yyj721++
if yyhl721 {
yyb721 = yyj721 > l
} else {
yyb721 = r.CheckBreak()
}
if yyb721 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj721-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *DaemonSetStatus) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym725 := z.EncBinary()
_ = yym725
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep726 := !z.EncBinary()
yy2arr726 := z.EncBasicHandle().StructToArray
var yyq726 [4]bool
_, _, _ = yysep726, yyq726, yy2arr726
const yyr726 bool = false
var yynn726 int
if yyr726 || yy2arr726 {
r.EncodeArrayStart(4)
} else {
yynn726 = 4
for _, b := range yyq726 {
if b {
yynn726++
}
}
r.EncodeMapStart(yynn726)
yynn726 = 0
}
if yyr726 || yy2arr726 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym728 := z.EncBinary()
_ = yym728
if false {
} else {
r.EncodeInt(int64(x.CurrentNumberScheduled))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("currentNumberScheduled"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym729 := z.EncBinary()
_ = yym729
if false {
} else {
r.EncodeInt(int64(x.CurrentNumberScheduled))
}
}
if yyr726 || yy2arr726 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym731 := z.EncBinary()
_ = yym731
if false {
} else {
r.EncodeInt(int64(x.NumberMisscheduled))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("numberMisscheduled"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym732 := z.EncBinary()
_ = yym732
if false {
} else {
r.EncodeInt(int64(x.NumberMisscheduled))
}
}
if yyr726 || yy2arr726 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym734 := z.EncBinary()
_ = yym734
if false {
} else {
r.EncodeInt(int64(x.DesiredNumberScheduled))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("desiredNumberScheduled"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym735 := z.EncBinary()
_ = yym735
if false {
} else {
r.EncodeInt(int64(x.DesiredNumberScheduled))
}
}
if yyr726 || yy2arr726 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym737 := z.EncBinary()
_ = yym737
if false {
} else {
r.EncodeInt(int64(x.NumberReady))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("numberReady"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym738 := z.EncBinary()
_ = yym738
if false {
} else {
r.EncodeInt(int64(x.NumberReady))
}
}
if yyr726 || yy2arr726 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *DaemonSetStatus) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym739 := z.DecBinary()
_ = yym739
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct740 := r.ContainerType()
if yyct740 == codecSelferValueTypeMap1234 {
yyl740 := r.ReadMapStart()
if yyl740 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl740, d)
}
} else if yyct740 == codecSelferValueTypeArray1234 {
yyl740 := r.ReadArrayStart()
if yyl740 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl740, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *DaemonSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys741Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys741Slc
var yyhl741 bool = l >= 0
for yyj741 := 0; ; yyj741++ {
if yyhl741 {
if yyj741 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys741Slc = r.DecodeBytes(yys741Slc, true, true)
yys741 := string(yys741Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys741 {
case "currentNumberScheduled":
if r.TryDecodeAsNil() {
x.CurrentNumberScheduled = 0
} else {
x.CurrentNumberScheduled = int32(r.DecodeInt(32))
}
case "numberMisscheduled":
if r.TryDecodeAsNil() {
x.NumberMisscheduled = 0
} else {
x.NumberMisscheduled = int32(r.DecodeInt(32))
}
case "desiredNumberScheduled":
if r.TryDecodeAsNil() {
x.DesiredNumberScheduled = 0
} else {
x.DesiredNumberScheduled = int32(r.DecodeInt(32))
}
case "numberReady":
if r.TryDecodeAsNil() {
x.NumberReady = 0
} else {
x.NumberReady = int32(r.DecodeInt(32))
}
default:
z.DecStructFieldNotFound(-1, yys741)
} // end switch yys741
} // end for yyj741
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *DaemonSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj746 int
var yyb746 bool
var yyhl746 bool = l >= 0
yyj746++
if yyhl746 {
yyb746 = yyj746 > l
} else {
yyb746 = r.CheckBreak()
}
if yyb746 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.CurrentNumberScheduled = 0
} else {
2017-02-07 21:33:23 +00:00
x.CurrentNumberScheduled = int32(r.DecodeInt(32))
}
2017-04-07 10:49:53 +00:00
yyj746++
if yyhl746 {
yyb746 = yyj746 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb746 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb746 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NumberMisscheduled = 0
} else {
x.NumberMisscheduled = int32(r.DecodeInt(32))
}
2017-04-07 10:49:53 +00:00
yyj746++
if yyhl746 {
yyb746 = yyj746 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb746 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb746 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DesiredNumberScheduled = 0
} else {
x.DesiredNumberScheduled = int32(r.DecodeInt(32))
}
2017-04-07 10:49:53 +00:00
yyj746++
if yyhl746 {
yyb746 = yyj746 > l
} else {
yyb746 = r.CheckBreak()
}
if yyb746 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NumberReady = 0
} else {
x.NumberReady = int32(r.DecodeInt(32))
}
2017-02-07 21:33:23 +00:00
for {
2017-04-07 10:49:53 +00:00
yyj746++
if yyhl746 {
yyb746 = yyj746 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb746 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb746 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj746-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *DaemonSet) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym751 := z.EncBinary()
_ = yym751
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep752 := !z.EncBinary()
yy2arr752 := z.EncBasicHandle().StructToArray
var yyq752 [5]bool
_, _, _ = yysep752, yyq752, yy2arr752
const yyr752 bool = false
yyq752[0] = x.Kind != ""
yyq752[1] = x.APIVersion != ""
yyq752[2] = true
yyq752[3] = true
yyq752[4] = true
var yynn752 int
if yyr752 || yy2arr752 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(5)
} else {
2017-04-07 10:49:53 +00:00
yynn752 = 0
for _, b := range yyq752 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn752++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn752)
yynn752 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr752 || yy2arr752 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq752[0] {
yym754 := z.EncBinary()
_ = yym754
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq752[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym755 := z.EncBinary()
_ = yym755
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr752 || yy2arr752 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq752[1] {
yym757 := z.EncBinary()
_ = yym757
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq752[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym758 := z.EncBinary()
_ = yym758
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr752 || yy2arr752 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq752[2] {
yy760 := &x.ObjectMeta
yy760.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq752[2] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy761 := &x.ObjectMeta
yy761.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyr752 || yy2arr752 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq752[3] {
yy763 := &x.Spec
yy763.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq752[3] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy764 := &x.Spec
yy764.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyr752 || yy2arr752 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq752[4] {
yy766 := &x.Status
yy766.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq752[4] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy767 := &x.Status
yy767.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyr752 || yy2arr752 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *DaemonSet) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym768 := z.DecBinary()
_ = yym768
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct769 := r.ContainerType()
if yyct769 == codecSelferValueTypeMap1234 {
yyl769 := r.ReadMapStart()
if yyl769 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl769, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct769 == codecSelferValueTypeArray1234 {
yyl769 := r.ReadArrayStart()
if yyl769 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl769, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *DaemonSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys770Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys770Slc
var yyhl770 bool = l >= 0
for yyj770 := 0; ; yyj770++ {
if yyhl770 {
if yyj770 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys770Slc = r.DecodeBytes(yys770Slc, true, true)
yys770 := string(yys770Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys770 {
2017-02-07 21:33:23 +00:00
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 = pkg2_v1.ObjectMeta{}
} else {
2017-04-07 10:49:53 +00:00
yyv773 := &x.ObjectMeta
yyv773.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = DaemonSetSpec{}
} else {
2017-04-07 10:49:53 +00:00
yyv774 := &x.Spec
yyv774.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
case "status":
if r.TryDecodeAsNil() {
x.Status = DaemonSetStatus{}
} else {
2017-04-07 10:49:53 +00:00
yyv775 := &x.Status
yyv775.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys770)
} // end switch yys770
} // end for yyj770
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *DaemonSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj776 int
var yyb776 bool
var yyhl776 bool = l >= 0
yyj776++
if yyhl776 {
yyb776 = yyj776 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb776 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb776 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj776++
if yyhl776 {
yyb776 = yyj776 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb776 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb776 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj776++
if yyhl776 {
yyb776 = yyj776 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb776 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb776 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{}
} else {
2017-04-07 10:49:53 +00:00
yyv779 := &x.ObjectMeta
yyv779.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj776++
if yyhl776 {
yyb776 = yyj776 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb776 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb776 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = DaemonSetSpec{}
} else {
2017-04-07 10:49:53 +00:00
yyv780 := &x.Spec
yyv780.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj776++
if yyhl776 {
yyb776 = yyj776 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb776 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb776 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = DaemonSetStatus{}
} else {
2017-04-07 10:49:53 +00:00
yyv781 := &x.Status
yyv781.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
for {
2017-04-07 10:49:53 +00:00
yyj776++
if yyhl776 {
yyb776 = yyj776 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb776 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb776 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj776-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *DaemonSetList) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym782 := z.EncBinary()
_ = yym782
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep783 := !z.EncBinary()
yy2arr783 := z.EncBasicHandle().StructToArray
var yyq783 [4]bool
_, _, _ = yysep783, yyq783, yy2arr783
const yyr783 bool = false
yyq783[0] = x.Kind != ""
yyq783[1] = x.APIVersion != ""
yyq783[2] = true
var yynn783 int
if yyr783 || yy2arr783 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(4)
} else {
2017-04-07 10:49:53 +00:00
yynn783 = 1
for _, b := range yyq783 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn783++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn783)
yynn783 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr783 || yy2arr783 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq783[0] {
yym785 := z.EncBinary()
_ = yym785
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq783[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym786 := z.EncBinary()
_ = yym786
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr783 || yy2arr783 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq783[1] {
yym788 := z.EncBinary()
_ = yym788
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq783[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym789 := z.EncBinary()
_ = yym789
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr783 || yy2arr783 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq783[2] {
yy791 := &x.ListMeta
yym792 := z.EncBinary()
_ = yym792
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(yy791) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.EncFallback(yy791)
2017-02-07 21:33:23 +00:00
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq783[2] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy793 := &x.ListMeta
yym794 := z.EncBinary()
_ = yym794
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(yy793) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.EncFallback(yy793)
2017-02-07 21:33:23 +00:00
}
}
}
2017-04-07 10:49:53 +00:00
if yyr783 || yy2arr783 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym796 := z.EncBinary()
_ = yym796
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceDaemonSet(([]DaemonSet)(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 {
2017-04-07 10:49:53 +00:00
yym797 := z.EncBinary()
_ = yym797
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceDaemonSet(([]DaemonSet)(x.Items), e)
}
}
}
2017-04-07 10:49:53 +00:00
if yyr783 || yy2arr783 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *DaemonSetList) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym798 := z.DecBinary()
_ = yym798
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct799 := r.ContainerType()
if yyct799 == codecSelferValueTypeMap1234 {
yyl799 := r.ReadMapStart()
if yyl799 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl799, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct799 == codecSelferValueTypeArray1234 {
yyl799 := r.ReadArrayStart()
if yyl799 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl799, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *DaemonSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys800Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys800Slc
var yyhl800 bool = l >= 0
for yyj800 := 0; ; yyj800++ {
if yyhl800 {
if yyj800 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys800Slc = r.DecodeBytes(yys800Slc, true, true)
yys800 := string(yys800Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys800 {
2017-02-07 21:33:23 +00:00
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 = pkg1_unversioned.ListMeta{}
} else {
2017-04-07 10:49:53 +00:00
yyv803 := &x.ListMeta
yym804 := z.DecBinary()
_ = yym804
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.DecExt(yyv803) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.DecFallback(yyv803, false)
2017-02-07 21:33:23 +00:00
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
2017-04-07 10:49:53 +00:00
yyv805 := &x.Items
yym806 := z.DecBinary()
_ = yym806
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceDaemonSet((*[]DaemonSet)(yyv805), d)
2017-02-07 21:33:23 +00:00
}
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys800)
} // end switch yys800
} // end for yyj800
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *DaemonSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj807 int
var yyb807 bool
var yyhl807 bool = l >= 0
yyj807++
if yyhl807 {
yyb807 = yyj807 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb807 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb807 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj807++
if yyhl807 {
yyb807 = yyj807 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb807 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb807 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj807++
if yyhl807 {
yyb807 = yyj807 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb807 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb807 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg1_unversioned.ListMeta{}
} else {
2017-04-07 10:49:53 +00:00
yyv810 := &x.ListMeta
yym811 := z.DecBinary()
_ = yym811
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.DecExt(yyv810) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.DecFallback(yyv810, false)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyj807++
if yyhl807 {
yyb807 = yyj807 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb807 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb807 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
2017-04-07 10:49:53 +00:00
yyv812 := &x.Items
yym813 := z.DecBinary()
_ = yym813
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceDaemonSet((*[]DaemonSet)(yyv812), d)
2017-02-07 21:33:23 +00:00
}
}
for {
2017-04-07 10:49:53 +00:00
yyj807++
if yyhl807 {
yyb807 = yyj807 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb807 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb807 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj807-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ThirdPartyResourceDataList) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym814 := z.EncBinary()
_ = yym814
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep815 := !z.EncBinary()
yy2arr815 := z.EncBasicHandle().StructToArray
var yyq815 [4]bool
_, _, _ = yysep815, yyq815, yy2arr815
const yyr815 bool = false
yyq815[0] = x.Kind != ""
yyq815[1] = x.APIVersion != ""
yyq815[2] = true
var yynn815 int
if yyr815 || yy2arr815 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(4)
} else {
2017-04-07 10:49:53 +00:00
yynn815 = 1
for _, b := range yyq815 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn815++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn815)
yynn815 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr815 || yy2arr815 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq815[0] {
yym817 := z.EncBinary()
_ = yym817
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq815[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym818 := z.EncBinary()
_ = yym818
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr815 || yy2arr815 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq815[1] {
yym820 := z.EncBinary()
_ = yym820
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq815[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym821 := z.EncBinary()
_ = yym821
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr815 || yy2arr815 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq815[2] {
yy823 := &x.ListMeta
yym824 := z.EncBinary()
_ = yym824
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(yy823) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.EncFallback(yy823)
2017-02-07 21:33:23 +00:00
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq815[2] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy825 := &x.ListMeta
yym826 := z.EncBinary()
_ = yym826
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(yy825) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.EncFallback(yy825)
2017-02-07 21:33:23 +00:00
}
}
}
2017-04-07 10:49:53 +00:00
if yyr815 || yy2arr815 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym828 := z.EncBinary()
_ = yym828
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceThirdPartyResourceData(([]ThirdPartyResourceData)(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 {
2017-04-07 10:49:53 +00:00
yym829 := z.EncBinary()
_ = yym829
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceThirdPartyResourceData(([]ThirdPartyResourceData)(x.Items), e)
}
}
}
2017-04-07 10:49:53 +00:00
if yyr815 || yy2arr815 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ThirdPartyResourceDataList) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym830 := z.DecBinary()
_ = yym830
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct831 := r.ContainerType()
if yyct831 == codecSelferValueTypeMap1234 {
yyl831 := r.ReadMapStart()
if yyl831 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl831, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct831 == codecSelferValueTypeArray1234 {
yyl831 := r.ReadArrayStart()
if yyl831 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl831, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ThirdPartyResourceDataList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys832Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys832Slc
var yyhl832 bool = l >= 0
for yyj832 := 0; ; yyj832++ {
if yyhl832 {
if yyj832 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys832Slc = r.DecodeBytes(yys832Slc, true, true)
yys832 := string(yys832Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys832 {
2017-02-07 21:33:23 +00:00
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 = pkg1_unversioned.ListMeta{}
} else {
2017-04-07 10:49:53 +00:00
yyv835 := &x.ListMeta
yym836 := z.DecBinary()
_ = yym836
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.DecExt(yyv835) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.DecFallback(yyv835, false)
2017-02-07 21:33:23 +00:00
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
2017-04-07 10:49:53 +00:00
yyv837 := &x.Items
yym838 := z.DecBinary()
_ = yym838
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceThirdPartyResourceData((*[]ThirdPartyResourceData)(yyv837), d)
2017-02-07 21:33:23 +00:00
}
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys832)
} // end switch yys832
} // end for yyj832
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ThirdPartyResourceDataList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj839 int
var yyb839 bool
var yyhl839 bool = l >= 0
yyj839++
if yyhl839 {
yyb839 = yyj839 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb839 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb839 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj839++
if yyhl839 {
yyb839 = yyj839 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb839 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb839 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj839++
if yyhl839 {
yyb839 = yyj839 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb839 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb839 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg1_unversioned.ListMeta{}
} else {
2017-04-07 10:49:53 +00:00
yyv842 := &x.ListMeta
yym843 := z.DecBinary()
_ = yym843
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.DecExt(yyv842) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.DecFallback(yyv842, false)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyj839++
if yyhl839 {
yyb839 = yyj839 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb839 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb839 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
2017-04-07 10:49:53 +00:00
yyv844 := &x.Items
yym845 := z.DecBinary()
_ = yym845
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceThirdPartyResourceData((*[]ThirdPartyResourceData)(yyv844), d)
2017-02-07 21:33:23 +00:00
}
}
for {
2017-04-07 10:49:53 +00:00
yyj839++
if yyhl839 {
yyb839 = yyj839 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb839 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb839 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj839-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *Job) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym846 := z.EncBinary()
_ = yym846
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep847 := !z.EncBinary()
yy2arr847 := z.EncBasicHandle().StructToArray
var yyq847 [5]bool
_, _, _ = yysep847, yyq847, yy2arr847
const yyr847 bool = false
yyq847[0] = x.Kind != ""
yyq847[1] = x.APIVersion != ""
yyq847[2] = true
yyq847[3] = true
yyq847[4] = true
var yynn847 int
if yyr847 || yy2arr847 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(5)
} else {
2017-04-07 10:49:53 +00:00
yynn847 = 0
for _, b := range yyq847 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn847++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn847)
yynn847 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr847 || yy2arr847 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq847[0] {
yym849 := z.EncBinary()
_ = yym849
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq847[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym850 := z.EncBinary()
_ = yym850
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr847 || yy2arr847 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq847[1] {
yym852 := z.EncBinary()
_ = yym852
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq847[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym853 := z.EncBinary()
_ = yym853
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr847 || yy2arr847 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq847[2] {
yy855 := &x.ObjectMeta
yy855.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq847[2] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy856 := &x.ObjectMeta
yy856.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyr847 || yy2arr847 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq847[3] {
yy858 := &x.Spec
yy858.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq847[3] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy859 := &x.Spec
yy859.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyr847 || yy2arr847 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq847[4] {
yy861 := &x.Status
yy861.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq847[4] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy862 := &x.Status
yy862.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyr847 || yy2arr847 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *Job) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym863 := z.DecBinary()
_ = yym863
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct864 := r.ContainerType()
if yyct864 == codecSelferValueTypeMap1234 {
yyl864 := r.ReadMapStart()
if yyl864 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl864, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct864 == codecSelferValueTypeArray1234 {
yyl864 := r.ReadArrayStart()
if yyl864 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl864, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *Job) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys865Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys865Slc
var yyhl865 bool = l >= 0
for yyj865 := 0; ; yyj865++ {
if yyhl865 {
if yyj865 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys865Slc = r.DecodeBytes(yys865Slc, true, true)
yys865 := string(yys865Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys865 {
2017-02-07 21:33:23 +00:00
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 = pkg2_v1.ObjectMeta{}
} else {
2017-04-07 10:49:53 +00:00
yyv868 := &x.ObjectMeta
yyv868.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = JobSpec{}
} else {
2017-04-07 10:49:53 +00:00
yyv869 := &x.Spec
yyv869.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
case "status":
if r.TryDecodeAsNil() {
x.Status = JobStatus{}
} else {
2017-04-07 10:49:53 +00:00
yyv870 := &x.Status
yyv870.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys865)
} // end switch yys865
} // end for yyj865
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj871 int
var yyb871 bool
var yyhl871 bool = l >= 0
yyj871++
if yyhl871 {
yyb871 = yyj871 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb871 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb871 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj871++
if yyhl871 {
yyb871 = yyj871 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb871 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb871 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj871++
if yyhl871 {
yyb871 = yyj871 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb871 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb871 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{}
} else {
2017-04-07 10:49:53 +00:00
yyv874 := &x.ObjectMeta
yyv874.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj871++
if yyhl871 {
yyb871 = yyj871 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb871 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb871 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = JobSpec{}
} else {
2017-04-07 10:49:53 +00:00
yyv875 := &x.Spec
yyv875.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj871++
if yyhl871 {
yyb871 = yyj871 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb871 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb871 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = JobStatus{}
} else {
2017-04-07 10:49:53 +00:00
yyv876 := &x.Status
yyv876.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
for {
2017-04-07 10:49:53 +00:00
yyj871++
if yyhl871 {
yyb871 = yyj871 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb871 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb871 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj871-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *JobList) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym877 := z.EncBinary()
_ = yym877
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep878 := !z.EncBinary()
yy2arr878 := z.EncBasicHandle().StructToArray
var yyq878 [4]bool
_, _, _ = yysep878, yyq878, yy2arr878
const yyr878 bool = false
yyq878[0] = x.Kind != ""
yyq878[1] = x.APIVersion != ""
yyq878[2] = true
var yynn878 int
if yyr878 || yy2arr878 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(4)
} else {
2017-04-07 10:49:53 +00:00
yynn878 = 1
for _, b := range yyq878 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn878++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn878)
yynn878 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr878 || yy2arr878 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq878[0] {
yym880 := z.EncBinary()
_ = yym880
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq878[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym881 := z.EncBinary()
_ = yym881
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr878 || yy2arr878 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq878[1] {
yym883 := z.EncBinary()
_ = yym883
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq878[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym884 := z.EncBinary()
_ = yym884
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr878 || yy2arr878 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq878[2] {
yy886 := &x.ListMeta
yym887 := z.EncBinary()
_ = yym887
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(yy886) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.EncFallback(yy886)
2017-02-07 21:33:23 +00:00
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq878[2] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy888 := &x.ListMeta
yym889 := z.EncBinary()
_ = yym889
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(yy888) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.EncFallback(yy888)
2017-02-07 21:33:23 +00:00
}
}
}
2017-04-07 10:49:53 +00:00
if yyr878 || yy2arr878 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym891 := z.EncBinary()
_ = yym891
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceJob(([]Job)(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 {
2017-04-07 10:49:53 +00:00
yym892 := z.EncBinary()
_ = yym892
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceJob(([]Job)(x.Items), e)
}
}
}
2017-04-07 10:49:53 +00:00
if yyr878 || yy2arr878 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *JobList) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym893 := z.DecBinary()
_ = yym893
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct894 := r.ContainerType()
if yyct894 == codecSelferValueTypeMap1234 {
yyl894 := r.ReadMapStart()
if yyl894 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl894, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct894 == codecSelferValueTypeArray1234 {
yyl894 := r.ReadArrayStart()
if yyl894 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl894, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *JobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys895Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys895Slc
var yyhl895 bool = l >= 0
for yyj895 := 0; ; yyj895++ {
if yyhl895 {
if yyj895 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys895Slc = r.DecodeBytes(yys895Slc, true, true)
yys895 := string(yys895Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys895 {
2017-02-07 21:33:23 +00:00
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 = pkg1_unversioned.ListMeta{}
} else {
2017-04-07 10:49:53 +00:00
yyv898 := &x.ListMeta
yym899 := z.DecBinary()
_ = yym899
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.DecExt(yyv898) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.DecFallback(yyv898, false)
2017-02-07 21:33:23 +00:00
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
2017-04-07 10:49:53 +00:00
yyv900 := &x.Items
yym901 := z.DecBinary()
_ = yym901
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceJob((*[]Job)(yyv900), d)
2017-02-07 21:33:23 +00:00
}
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys895)
} // end switch yys895
} // end for yyj895
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *JobList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj902 int
var yyb902 bool
var yyhl902 bool = l >= 0
yyj902++
if yyhl902 {
yyb902 = yyj902 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb902 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb902 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj902++
if yyhl902 {
yyb902 = yyj902 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb902 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb902 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj902++
if yyhl902 {
yyb902 = yyj902 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb902 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb902 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg1_unversioned.ListMeta{}
} else {
2017-04-07 10:49:53 +00:00
yyv905 := &x.ListMeta
yym906 := z.DecBinary()
_ = yym906
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.DecExt(yyv905) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.DecFallback(yyv905, false)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyj902++
if yyhl902 {
yyb902 = yyj902 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb902 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb902 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
2017-04-07 10:49:53 +00:00
yyv907 := &x.Items
yym908 := z.DecBinary()
_ = yym908
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceJob((*[]Job)(yyv907), d)
2017-02-07 21:33:23 +00:00
}
}
for {
2017-04-07 10:49:53 +00:00
yyj902++
if yyhl902 {
yyb902 = yyj902 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb902 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb902 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj902-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *JobSpec) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym909 := z.EncBinary()
_ = yym909
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep910 := !z.EncBinary()
yy2arr910 := z.EncBasicHandle().StructToArray
var yyq910 [6]bool
_, _, _ = yysep910, yyq910, yy2arr910
const yyr910 bool = false
yyq910[0] = x.Parallelism != nil
yyq910[1] = x.Completions != nil
yyq910[2] = x.ActiveDeadlineSeconds != nil
yyq910[3] = x.Selector != nil
yyq910[4] = x.AutoSelector != nil
var yynn910 int
if yyr910 || yy2arr910 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(6)
} else {
2017-04-07 10:49:53 +00:00
yynn910 = 1
for _, b := range yyq910 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn910++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn910)
yynn910 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr910 || yy2arr910 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq910[0] {
2017-02-07 21:33:23 +00:00
if x.Parallelism == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yy912 := *x.Parallelism
yym913 := z.EncBinary()
_ = yym913
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
r.EncodeInt(int64(yy912))
2017-02-07 21:33:23 +00:00
}
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq910[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("parallelism"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Parallelism == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yy914 := *x.Parallelism
yym915 := z.EncBinary()
_ = yym915
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
r.EncodeInt(int64(yy914))
2017-02-07 21:33:23 +00:00
}
}
}
}
2017-04-07 10:49:53 +00:00
if yyr910 || yy2arr910 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq910[1] {
2017-02-07 21:33:23 +00:00
if x.Completions == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yy917 := *x.Completions
yym918 := z.EncBinary()
_ = yym918
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
r.EncodeInt(int64(yy917))
2017-02-07 21:33:23 +00:00
}
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq910[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("completions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Completions == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yy919 := *x.Completions
yym920 := z.EncBinary()
_ = yym920
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
r.EncodeInt(int64(yy919))
2017-02-07 21:33:23 +00:00
}
}
}
}
2017-04-07 10:49:53 +00:00
if yyr910 || yy2arr910 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq910[2] {
2017-02-07 21:33:23 +00:00
if x.ActiveDeadlineSeconds == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yy922 := *x.ActiveDeadlineSeconds
yym923 := z.EncBinary()
_ = yym923
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
r.EncodeInt(int64(yy922))
2017-02-07 21:33:23 +00:00
}
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq910[2] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ActiveDeadlineSeconds == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yy924 := *x.ActiveDeadlineSeconds
yym925 := z.EncBinary()
_ = yym925
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
r.EncodeInt(int64(yy924))
2017-02-07 21:33:23 +00:00
}
}
}
}
2017-04-07 10:49:53 +00:00
if yyr910 || yy2arr910 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq910[3] {
2017-02-07 21:33:23 +00:00
if x.Selector == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym927 := z.EncBinary()
_ = yym927
if false {
} else if z.HasExtensions() && z.EncExt(x.Selector) {
} else {
z.EncFallback(x.Selector)
}
2017-02-07 21:33:23 +00:00
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq910[3] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("selector"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Selector == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym928 := z.EncBinary()
_ = yym928
if false {
} else if z.HasExtensions() && z.EncExt(x.Selector) {
} else {
z.EncFallback(x.Selector)
}
2017-02-07 21:33:23 +00:00
}
}
}
2017-04-07 10:49:53 +00:00
if yyr910 || yy2arr910 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq910[4] {
2017-02-07 21:33:23 +00:00
if x.AutoSelector == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yy930 := *x.AutoSelector
yym931 := z.EncBinary()
_ = yym931
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
r.EncodeBool(bool(yy930))
2017-02-07 21:33:23 +00:00
}
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq910[4] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("autoSelector"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.AutoSelector == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yy932 := *x.AutoSelector
yym933 := z.EncBinary()
_ = yym933
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
r.EncodeBool(bool(yy932))
2017-02-07 21:33:23 +00:00
}
}
}
}
2017-04-07 10:49:53 +00:00
if yyr910 || yy2arr910 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy935 := &x.Template
yy935.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("template"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy936 := &x.Template
yy936.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr910 || yy2arr910 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *JobSpec) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym937 := z.DecBinary()
_ = yym937
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct938 := r.ContainerType()
if yyct938 == codecSelferValueTypeMap1234 {
yyl938 := r.ReadMapStart()
if yyl938 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl938, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct938 == codecSelferValueTypeArray1234 {
yyl938 := r.ReadArrayStart()
if yyl938 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl938, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys939Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys939Slc
var yyhl939 bool = l >= 0
for yyj939 := 0; ; yyj939++ {
if yyhl939 {
if yyj939 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys939Slc = r.DecodeBytes(yys939Slc, true, true)
yys939 := string(yys939Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys939 {
2017-02-07 21:33:23 +00:00
case "parallelism":
if r.TryDecodeAsNil() {
if x.Parallelism != nil {
x.Parallelism = nil
}
} else {
if x.Parallelism == nil {
x.Parallelism = new(int32)
}
2017-04-07 10:49:53 +00:00
yym941 := z.DecBinary()
_ = yym941
2017-02-07 21:33:23 +00:00
if false {
} else {
*((*int32)(x.Parallelism)) = int32(r.DecodeInt(32))
}
}
case "completions":
if r.TryDecodeAsNil() {
if x.Completions != nil {
x.Completions = nil
}
} else {
if x.Completions == nil {
x.Completions = new(int32)
}
2017-04-07 10:49:53 +00:00
yym943 := z.DecBinary()
_ = yym943
2017-02-07 21:33:23 +00:00
if false {
} else {
*((*int32)(x.Completions)) = int32(r.DecodeInt(32))
}
}
case "activeDeadlineSeconds":
if r.TryDecodeAsNil() {
if x.ActiveDeadlineSeconds != nil {
x.ActiveDeadlineSeconds = nil
}
} else {
if x.ActiveDeadlineSeconds == nil {
x.ActiveDeadlineSeconds = new(int64)
}
2017-04-07 10:49:53 +00:00
yym945 := z.DecBinary()
_ = yym945
2017-02-07 21:33:23 +00:00
if false {
} else {
*((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64))
}
}
case "selector":
if r.TryDecodeAsNil() {
if x.Selector != nil {
x.Selector = nil
}
} else {
if x.Selector == nil {
2017-04-07 10:49:53 +00:00
x.Selector = new(pkg1_unversioned.LabelSelector)
}
yym947 := z.DecBinary()
_ = yym947
if false {
} else if z.HasExtensions() && z.DecExt(x.Selector) {
} else {
z.DecFallback(x.Selector, false)
2017-02-07 21:33:23 +00:00
}
}
case "autoSelector":
if r.TryDecodeAsNil() {
if x.AutoSelector != nil {
x.AutoSelector = nil
}
} else {
if x.AutoSelector == nil {
x.AutoSelector = new(bool)
}
2017-04-07 10:49:53 +00:00
yym949 := z.DecBinary()
_ = yym949
2017-02-07 21:33:23 +00:00
if false {
} else {
*((*bool)(x.AutoSelector)) = r.DecodeBool()
}
}
case "template":
if r.TryDecodeAsNil() {
x.Template = pkg2_v1.PodTemplateSpec{}
} else {
2017-04-07 10:49:53 +00:00
yyv950 := &x.Template
yyv950.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys939)
} // end switch yys939
} // end for yyj939
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj951 int
var yyb951 bool
var yyhl951 bool = l >= 0
yyj951++
if yyhl951 {
yyb951 = yyj951 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb951 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb951 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Parallelism != nil {
x.Parallelism = nil
}
} else {
if x.Parallelism == nil {
x.Parallelism = new(int32)
}
2017-04-07 10:49:53 +00:00
yym953 := z.DecBinary()
_ = yym953
2017-02-07 21:33:23 +00:00
if false {
} else {
*((*int32)(x.Parallelism)) = int32(r.DecodeInt(32))
}
}
2017-04-07 10:49:53 +00:00
yyj951++
if yyhl951 {
yyb951 = yyj951 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb951 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb951 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Completions != nil {
x.Completions = nil
}
} else {
if x.Completions == nil {
x.Completions = new(int32)
}
2017-04-07 10:49:53 +00:00
yym955 := z.DecBinary()
_ = yym955
2017-02-07 21:33:23 +00:00
if false {
} else {
*((*int32)(x.Completions)) = int32(r.DecodeInt(32))
}
}
2017-04-07 10:49:53 +00:00
yyj951++
if yyhl951 {
yyb951 = yyj951 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb951 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb951 {
2017-02-07 21:33:23 +00:00
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)
}
2017-04-07 10:49:53 +00:00
yym957 := z.DecBinary()
_ = yym957
2017-02-07 21:33:23 +00:00
if false {
} else {
*((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64))
}
}
2017-04-07 10:49:53 +00:00
yyj951++
if yyhl951 {
yyb951 = yyj951 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb951 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb951 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Selector != nil {
x.Selector = nil
}
} else {
if x.Selector == nil {
2017-04-07 10:49:53 +00:00
x.Selector = new(pkg1_unversioned.LabelSelector)
}
yym959 := z.DecBinary()
_ = yym959
if false {
} else if z.HasExtensions() && z.DecExt(x.Selector) {
} else {
z.DecFallback(x.Selector, false)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyj951++
if yyhl951 {
yyb951 = yyj951 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb951 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb951 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.AutoSelector != nil {
x.AutoSelector = nil
}
} else {
if x.AutoSelector == nil {
x.AutoSelector = new(bool)
}
2017-04-07 10:49:53 +00:00
yym961 := z.DecBinary()
_ = yym961
2017-02-07 21:33:23 +00:00
if false {
} else {
*((*bool)(x.AutoSelector)) = r.DecodeBool()
}
}
2017-04-07 10:49:53 +00:00
yyj951++
if yyhl951 {
yyb951 = yyj951 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb951 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb951 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Template = pkg2_v1.PodTemplateSpec{}
} else {
2017-04-07 10:49:53 +00:00
yyv962 := &x.Template
yyv962.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
for {
2017-04-07 10:49:53 +00:00
yyj951++
if yyhl951 {
yyb951 = yyj951 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb951 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb951 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj951-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym963 := z.EncBinary()
_ = yym963
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep964 := !z.EncBinary()
yy2arr964 := z.EncBasicHandle().StructToArray
var yyq964 [6]bool
_, _, _ = yysep964, yyq964, yy2arr964
const yyr964 bool = false
yyq964[0] = len(x.Conditions) != 0
yyq964[1] = x.StartTime != nil
yyq964[2] = x.CompletionTime != nil
yyq964[3] = x.Active != 0
yyq964[4] = x.Succeeded != 0
yyq964[5] = x.Failed != 0
var yynn964 int
if yyr964 || yy2arr964 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(6)
} else {
2017-04-07 10:49:53 +00:00
yynn964 = 0
for _, b := range yyq964 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn964++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn964)
yynn964 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr964 || yy2arr964 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq964[0] {
2017-02-07 21:33:23 +00:00
if x.Conditions == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym966 := z.EncBinary()
_ = yym966
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceJobCondition(([]JobCondition)(x.Conditions), e)
}
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq964[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Conditions == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym967 := z.EncBinary()
_ = yym967
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceJobCondition(([]JobCondition)(x.Conditions), e)
}
}
}
}
2017-04-07 10:49:53 +00:00
if yyr964 || yy2arr964 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq964[1] {
2017-02-07 21:33:23 +00:00
if x.StartTime == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym969 := z.EncBinary()
_ = yym969
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x.StartTime) {
2017-04-07 10:49:53 +00:00
} else if yym969 {
2017-02-07 21:33:23 +00:00
z.EncBinaryMarshal(x.StartTime)
2017-04-07 10:49:53 +00:00
} else if !yym969 && z.IsJSONHandle() {
2017-02-07 21:33:23 +00:00
z.EncJSONMarshal(x.StartTime)
} else {
z.EncFallback(x.StartTime)
}
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq964[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("startTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.StartTime == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym970 := z.EncBinary()
_ = yym970
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x.StartTime) {
2017-04-07 10:49:53 +00:00
} else if yym970 {
2017-02-07 21:33:23 +00:00
z.EncBinaryMarshal(x.StartTime)
2017-04-07 10:49:53 +00:00
} else if !yym970 && z.IsJSONHandle() {
2017-02-07 21:33:23 +00:00
z.EncJSONMarshal(x.StartTime)
} else {
z.EncFallback(x.StartTime)
}
}
}
}
2017-04-07 10:49:53 +00:00
if yyr964 || yy2arr964 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq964[2] {
2017-02-07 21:33:23 +00:00
if x.CompletionTime == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym972 := z.EncBinary()
_ = yym972
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x.CompletionTime) {
2017-04-07 10:49:53 +00:00
} else if yym972 {
2017-02-07 21:33:23 +00:00
z.EncBinaryMarshal(x.CompletionTime)
2017-04-07 10:49:53 +00:00
} else if !yym972 && z.IsJSONHandle() {
2017-02-07 21:33:23 +00:00
z.EncJSONMarshal(x.CompletionTime)
} else {
z.EncFallback(x.CompletionTime)
}
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq964[2] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("completionTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.CompletionTime == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym973 := z.EncBinary()
_ = yym973
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x.CompletionTime) {
2017-04-07 10:49:53 +00:00
} else if yym973 {
2017-02-07 21:33:23 +00:00
z.EncBinaryMarshal(x.CompletionTime)
2017-04-07 10:49:53 +00:00
} else if !yym973 && z.IsJSONHandle() {
2017-02-07 21:33:23 +00:00
z.EncJSONMarshal(x.CompletionTime)
} else {
z.EncFallback(x.CompletionTime)
}
}
}
}
2017-04-07 10:49:53 +00:00
if yyr964 || yy2arr964 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq964[3] {
yym975 := z.EncBinary()
_ = yym975
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeInt(int64(x.Active))
}
} else {
r.EncodeInt(0)
}
} else {
2017-04-07 10:49:53 +00:00
if yyq964[3] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("active"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym976 := z.EncBinary()
_ = yym976
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeInt(int64(x.Active))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr964 || yy2arr964 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq964[4] {
yym978 := z.EncBinary()
_ = yym978
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeInt(int64(x.Succeeded))
}
} else {
r.EncodeInt(0)
}
} else {
2017-04-07 10:49:53 +00:00
if yyq964[4] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("succeeded"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym979 := z.EncBinary()
_ = yym979
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeInt(int64(x.Succeeded))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr964 || yy2arr964 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq964[5] {
yym981 := z.EncBinary()
_ = yym981
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeInt(int64(x.Failed))
}
} else {
r.EncodeInt(0)
}
} else {
2017-04-07 10:49:53 +00:00
if yyq964[5] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("failed"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym982 := z.EncBinary()
_ = yym982
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeInt(int64(x.Failed))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr964 || yy2arr964 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *JobStatus) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym983 := z.DecBinary()
_ = yym983
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct984 := r.ContainerType()
if yyct984 == codecSelferValueTypeMap1234 {
yyl984 := r.ReadMapStart()
if yyl984 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl984, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct984 == codecSelferValueTypeArray1234 {
yyl984 := r.ReadArrayStart()
if yyl984 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl984, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys985Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys985Slc
var yyhl985 bool = l >= 0
for yyj985 := 0; ; yyj985++ {
if yyhl985 {
if yyj985 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys985Slc = r.DecodeBytes(yys985Slc, true, true)
yys985 := string(yys985Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys985 {
2017-02-07 21:33:23 +00:00
case "conditions":
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
2017-04-07 10:49:53 +00:00
yyv986 := &x.Conditions
yym987 := z.DecBinary()
_ = yym987
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceJobCondition((*[]JobCondition)(yyv986), d)
2017-02-07 21:33:23 +00:00
}
}
case "startTime":
if r.TryDecodeAsNil() {
if x.StartTime != nil {
x.StartTime = nil
}
} else {
if x.StartTime == nil {
x.StartTime = new(pkg1_unversioned.Time)
}
2017-04-07 10:49:53 +00:00
yym989 := z.DecBinary()
_ = yym989
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x.StartTime) {
2017-04-07 10:49:53 +00:00
} else if yym989 {
2017-02-07 21:33:23 +00:00
z.DecBinaryUnmarshal(x.StartTime)
2017-04-07 10:49:53 +00:00
} else if !yym989 && z.IsJSONHandle() {
2017-02-07 21:33:23 +00:00
z.DecJSONUnmarshal(x.StartTime)
} else {
z.DecFallback(x.StartTime, false)
}
}
case "completionTime":
if r.TryDecodeAsNil() {
if x.CompletionTime != nil {
x.CompletionTime = nil
}
} else {
if x.CompletionTime == nil {
x.CompletionTime = new(pkg1_unversioned.Time)
}
2017-04-07 10:49:53 +00:00
yym991 := z.DecBinary()
_ = yym991
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x.CompletionTime) {
2017-04-07 10:49:53 +00:00
} else if yym991 {
2017-02-07 21:33:23 +00:00
z.DecBinaryUnmarshal(x.CompletionTime)
2017-04-07 10:49:53 +00:00
} else if !yym991 && z.IsJSONHandle() {
2017-02-07 21:33:23 +00:00
z.DecJSONUnmarshal(x.CompletionTime)
} else {
z.DecFallback(x.CompletionTime, false)
}
}
case "active":
if r.TryDecodeAsNil() {
x.Active = 0
} else {
x.Active = int32(r.DecodeInt(32))
}
case "succeeded":
if r.TryDecodeAsNil() {
x.Succeeded = 0
} else {
x.Succeeded = int32(r.DecodeInt(32))
}
case "failed":
if r.TryDecodeAsNil() {
x.Failed = 0
} else {
x.Failed = int32(r.DecodeInt(32))
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys985)
} // end switch yys985
} // end for yyj985
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj995 int
var yyb995 bool
var yyhl995 bool = l >= 0
yyj995++
if yyhl995 {
yyb995 = yyj995 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb995 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb995 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
2017-04-07 10:49:53 +00:00
yyv996 := &x.Conditions
yym997 := z.DecBinary()
_ = yym997
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceJobCondition((*[]JobCondition)(yyv996), d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyj995++
if yyhl995 {
yyb995 = yyj995 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb995 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb995 {
2017-02-07 21:33:23 +00:00
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(pkg1_unversioned.Time)
}
2017-04-07 10:49:53 +00:00
yym999 := z.DecBinary()
_ = yym999
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x.StartTime) {
2017-04-07 10:49:53 +00:00
} else if yym999 {
2017-02-07 21:33:23 +00:00
z.DecBinaryUnmarshal(x.StartTime)
2017-04-07 10:49:53 +00:00
} else if !yym999 && z.IsJSONHandle() {
2017-02-07 21:33:23 +00:00
z.DecJSONUnmarshal(x.StartTime)
} else {
z.DecFallback(x.StartTime, false)
}
}
2017-04-07 10:49:53 +00:00
yyj995++
if yyhl995 {
yyb995 = yyj995 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb995 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb995 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.CompletionTime != nil {
x.CompletionTime = nil
}
} else {
if x.CompletionTime == nil {
x.CompletionTime = new(pkg1_unversioned.Time)
}
2017-04-07 10:49:53 +00:00
yym1001 := z.DecBinary()
_ = yym1001
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x.CompletionTime) {
2017-04-07 10:49:53 +00:00
} else if yym1001 {
2017-02-07 21:33:23 +00:00
z.DecBinaryUnmarshal(x.CompletionTime)
2017-04-07 10:49:53 +00:00
} else if !yym1001 && z.IsJSONHandle() {
2017-02-07 21:33:23 +00:00
z.DecJSONUnmarshal(x.CompletionTime)
} else {
z.DecFallback(x.CompletionTime, false)
}
}
2017-04-07 10:49:53 +00:00
yyj995++
if yyhl995 {
yyb995 = yyj995 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb995 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb995 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Active = 0
} else {
x.Active = int32(r.DecodeInt(32))
}
2017-04-07 10:49:53 +00:00
yyj995++
if yyhl995 {
yyb995 = yyj995 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb995 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb995 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Succeeded = 0
} else {
x.Succeeded = int32(r.DecodeInt(32))
}
2017-04-07 10:49:53 +00:00
yyj995++
if yyhl995 {
yyb995 = yyj995 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb995 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb995 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Failed = 0
} else {
x.Failed = int32(r.DecodeInt(32))
}
for {
2017-04-07 10:49:53 +00:00
yyj995++
if yyhl995 {
yyb995 = yyj995 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb995 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb995 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj995-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x JobConditionType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1005 := z.EncBinary()
_ = yym1005
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *JobConditionType) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1006 := z.DecBinary()
_ = yym1006
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1007 := z.EncBinary()
_ = yym1007
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1008 := !z.EncBinary()
yy2arr1008 := z.EncBasicHandle().StructToArray
var yyq1008 [6]bool
_, _, _ = yysep1008, yyq1008, yy2arr1008
const yyr1008 bool = false
yyq1008[2] = true
yyq1008[3] = true
yyq1008[4] = x.Reason != ""
yyq1008[5] = x.Message != ""
var yynn1008 int
if yyr1008 || yy2arr1008 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(6)
} else {
2017-04-07 10:49:53 +00:00
yynn1008 = 2
for _, b := range yyq1008 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1008++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1008)
yynn1008 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1008 || yy2arr1008 {
2017-02-07 21:33:23 +00:00
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)
}
2017-04-07 10:49:53 +00:00
if yyr1008 || yy2arr1008 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yym1011 := z.EncBinary()
_ = yym1011
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x.Status) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Status))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1012 := z.EncBinary()
_ = yym1012
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x.Status) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Status))
}
}
2017-04-07 10:49:53 +00:00
if yyr1008 || yy2arr1008 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1008[2] {
yy1014 := &x.LastProbeTime
yym1015 := z.EncBinary()
_ = yym1015
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(yy1014) {
} else if yym1015 {
z.EncBinaryMarshal(yy1014)
} else if !yym1015 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1014)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.EncFallback(yy1014)
2017-02-07 21:33:23 +00:00
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1008[2] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy1016 := &x.LastProbeTime
yym1017 := z.EncBinary()
_ = yym1017
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(yy1016) {
} else if yym1017 {
z.EncBinaryMarshal(yy1016)
} else if !yym1017 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1016)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.EncFallback(yy1016)
2017-02-07 21:33:23 +00:00
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1008 || yy2arr1008 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1008[3] {
yy1019 := &x.LastTransitionTime
yym1020 := z.EncBinary()
_ = yym1020
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(yy1019) {
} else if yym1020 {
z.EncBinaryMarshal(yy1019)
} else if !yym1020 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1019)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.EncFallback(yy1019)
2017-02-07 21:33:23 +00:00
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1008[3] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy1021 := &x.LastTransitionTime
yym1022 := z.EncBinary()
_ = yym1022
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(yy1021) {
} else if yym1022 {
z.EncBinaryMarshal(yy1021)
} else if !yym1022 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1021)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.EncFallback(yy1021)
2017-02-07 21:33:23 +00:00
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1008 || yy2arr1008 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1008[4] {
yym1024 := z.EncBinary()
_ = yym1024
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1008[4] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1025 := z.EncBinary()
_ = yym1025
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1008 || yy2arr1008 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1008[5] {
yym1027 := z.EncBinary()
_ = yym1027
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1008[5] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1028 := z.EncBinary()
_ = yym1028
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1008 || yy2arr1008 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *JobCondition) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1029 := z.DecBinary()
_ = yym1029
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1030 := r.ContainerType()
if yyct1030 == codecSelferValueTypeMap1234 {
yyl1030 := r.ReadMapStart()
if yyl1030 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1030, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1030 == codecSelferValueTypeArray1234 {
yyl1030 := r.ReadArrayStart()
if yyl1030 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1030, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1031Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1031Slc
var yyhl1031 bool = l >= 0
for yyj1031 := 0; ; yyj1031++ {
if yyhl1031 {
if yyj1031 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1031Slc = r.DecodeBytes(yys1031Slc, true, true)
yys1031 := string(yys1031Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1031 {
2017-02-07 21:33:23 +00:00
case "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = JobConditionType(r.DecodeString())
}
case "status":
if r.TryDecodeAsNil() {
x.Status = ""
} else {
x.Status = pkg2_v1.ConditionStatus(r.DecodeString())
}
case "lastProbeTime":
if r.TryDecodeAsNil() {
x.LastProbeTime = pkg1_unversioned.Time{}
} else {
2017-04-07 10:49:53 +00:00
yyv1034 := &x.LastProbeTime
yym1035 := z.DecBinary()
_ = yym1035
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.DecExt(yyv1034) {
} else if yym1035 {
z.DecBinaryUnmarshal(yyv1034)
} else if !yym1035 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1034)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.DecFallback(yyv1034, false)
2017-02-07 21:33:23 +00:00
}
}
case "lastTransitionTime":
if r.TryDecodeAsNil() {
x.LastTransitionTime = pkg1_unversioned.Time{}
} else {
2017-04-07 10:49:53 +00:00
yyv1036 := &x.LastTransitionTime
yym1037 := z.DecBinary()
_ = yym1037
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.DecExt(yyv1036) {
} else if yym1037 {
z.DecBinaryUnmarshal(yyv1036)
} else if !yym1037 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1036)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.DecFallback(yyv1036, false)
2017-02-07 21:33:23 +00:00
}
}
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:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1031)
} // end switch yys1031
} // end for yyj1031
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1040 int
var yyb1040 bool
var yyhl1040 bool = l >= 0
yyj1040++
if yyhl1040 {
yyb1040 = yyj1040 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1040 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1040 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = JobConditionType(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj1040++
if yyhl1040 {
yyb1040 = yyj1040 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1040 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1040 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ""
} else {
x.Status = pkg2_v1.ConditionStatus(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj1040++
if yyhl1040 {
yyb1040 = yyj1040 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1040 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1040 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastProbeTime = pkg1_unversioned.Time{}
} else {
2017-04-07 10:49:53 +00:00
yyv1043 := &x.LastProbeTime
yym1044 := z.DecBinary()
_ = yym1044
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.DecExt(yyv1043) {
} else if yym1044 {
z.DecBinaryUnmarshal(yyv1043)
} else if !yym1044 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1043)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.DecFallback(yyv1043, false)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyj1040++
if yyhl1040 {
yyb1040 = yyj1040 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1040 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1040 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastTransitionTime = pkg1_unversioned.Time{}
} else {
2017-04-07 10:49:53 +00:00
yyv1045 := &x.LastTransitionTime
yym1046 := z.DecBinary()
_ = yym1046
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.DecExt(yyv1045) {
} else if yym1046 {
z.DecBinaryUnmarshal(yyv1045)
} else if !yym1046 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1045)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.DecFallback(yyv1045, false)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyj1040++
if yyhl1040 {
yyb1040 = yyj1040 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1040 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1040 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj1040++
if yyhl1040 {
yyb1040 = yyj1040 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1040 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1040 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
for {
2017-04-07 10:49:53 +00:00
yyj1040++
if yyhl1040 {
yyb1040 = yyj1040 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1040 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1040 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1040-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *Ingress) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1049 := z.EncBinary()
_ = yym1049
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1050 := !z.EncBinary()
yy2arr1050 := z.EncBasicHandle().StructToArray
var yyq1050 [5]bool
_, _, _ = yysep1050, yyq1050, yy2arr1050
const yyr1050 bool = false
yyq1050[0] = x.Kind != ""
yyq1050[1] = x.APIVersion != ""
yyq1050[2] = true
yyq1050[3] = true
yyq1050[4] = true
var yynn1050 int
if yyr1050 || yy2arr1050 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(5)
} else {
2017-04-07 10:49:53 +00:00
yynn1050 = 0
for _, b := range yyq1050 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1050++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1050)
yynn1050 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1050 || yy2arr1050 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1050[0] {
yym1052 := z.EncBinary()
_ = yym1052
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1050[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1053 := z.EncBinary()
_ = yym1053
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1050 || yy2arr1050 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1050[1] {
yym1055 := z.EncBinary()
_ = yym1055
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1050[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1056 := z.EncBinary()
_ = yym1056
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1050 || yy2arr1050 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1050[2] {
yy1058 := &x.ObjectMeta
yy1058.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1050[2] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy1059 := &x.ObjectMeta
yy1059.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyr1050 || yy2arr1050 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1050[3] {
yy1061 := &x.Spec
yy1061.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1050[3] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy1062 := &x.Spec
yy1062.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyr1050 || yy2arr1050 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1050[4] {
yy1064 := &x.Status
yy1064.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1050[4] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy1065 := &x.Status
yy1065.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyr1050 || yy2arr1050 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *Ingress) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1066 := z.DecBinary()
_ = yym1066
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1067 := r.ContainerType()
if yyct1067 == codecSelferValueTypeMap1234 {
yyl1067 := r.ReadMapStart()
if yyl1067 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1067, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1067 == codecSelferValueTypeArray1234 {
yyl1067 := r.ReadArrayStart()
if yyl1067 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1067, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *Ingress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1068Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1068Slc
var yyhl1068 bool = l >= 0
for yyj1068 := 0; ; yyj1068++ {
if yyhl1068 {
if yyj1068 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1068Slc = r.DecodeBytes(yys1068Slc, true, true)
yys1068 := string(yys1068Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1068 {
2017-02-07 21:33:23 +00:00
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 = pkg2_v1.ObjectMeta{}
} else {
2017-04-07 10:49:53 +00:00
yyv1071 := &x.ObjectMeta
yyv1071.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = IngressSpec{}
} else {
2017-04-07 10:49:53 +00:00
yyv1072 := &x.Spec
yyv1072.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
case "status":
if r.TryDecodeAsNil() {
x.Status = IngressStatus{}
} else {
2017-04-07 10:49:53 +00:00
yyv1073 := &x.Status
yyv1073.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1068)
} // end switch yys1068
} // end for yyj1068
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *Ingress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1074 int
var yyb1074 bool
var yyhl1074 bool = l >= 0
yyj1074++
if yyhl1074 {
yyb1074 = yyj1074 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1074 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1074 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj1074++
if yyhl1074 {
yyb1074 = yyj1074 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1074 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1074 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj1074++
if yyhl1074 {
yyb1074 = yyj1074 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1074 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1074 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{}
} else {
2017-04-07 10:49:53 +00:00
yyv1077 := &x.ObjectMeta
yyv1077.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1074++
if yyhl1074 {
yyb1074 = yyj1074 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1074 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1074 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = IngressSpec{}
} else {
2017-04-07 10:49:53 +00:00
yyv1078 := &x.Spec
yyv1078.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1074++
if yyhl1074 {
yyb1074 = yyj1074 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1074 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1074 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = IngressStatus{}
} else {
2017-04-07 10:49:53 +00:00
yyv1079 := &x.Status
yyv1079.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
for {
2017-04-07 10:49:53 +00:00
yyj1074++
if yyhl1074 {
yyb1074 = yyj1074 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1074 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1074 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1074-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *IngressList) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1080 := z.EncBinary()
_ = yym1080
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1081 := !z.EncBinary()
yy2arr1081 := z.EncBasicHandle().StructToArray
var yyq1081 [4]bool
_, _, _ = yysep1081, yyq1081, yy2arr1081
const yyr1081 bool = false
yyq1081[0] = x.Kind != ""
yyq1081[1] = x.APIVersion != ""
yyq1081[2] = true
var yynn1081 int
if yyr1081 || yy2arr1081 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(4)
} else {
2017-04-07 10:49:53 +00:00
yynn1081 = 1
for _, b := range yyq1081 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1081++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1081)
yynn1081 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1081 || yy2arr1081 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1081[0] {
yym1083 := z.EncBinary()
_ = yym1083
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1081[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1084 := z.EncBinary()
_ = yym1084
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1081 || yy2arr1081 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1081[1] {
yym1086 := z.EncBinary()
_ = yym1086
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1081[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1087 := z.EncBinary()
_ = yym1087
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1081 || yy2arr1081 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1081[2] {
yy1089 := &x.ListMeta
yym1090 := z.EncBinary()
_ = yym1090
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(yy1089) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.EncFallback(yy1089)
2017-02-07 21:33:23 +00:00
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1081[2] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy1091 := &x.ListMeta
yym1092 := z.EncBinary()
_ = yym1092
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(yy1091) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.EncFallback(yy1091)
2017-02-07 21:33:23 +00:00
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1081 || yy2arr1081 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1094 := z.EncBinary()
_ = yym1094
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceIngress(([]Ingress)(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 {
2017-04-07 10:49:53 +00:00
yym1095 := z.EncBinary()
_ = yym1095
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceIngress(([]Ingress)(x.Items), e)
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1081 || yy2arr1081 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *IngressList) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1096 := z.DecBinary()
_ = yym1096
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1097 := r.ContainerType()
if yyct1097 == codecSelferValueTypeMap1234 {
yyl1097 := r.ReadMapStart()
if yyl1097 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1097, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1097 == codecSelferValueTypeArray1234 {
yyl1097 := r.ReadArrayStart()
if yyl1097 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1097, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *IngressList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1098Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1098Slc
var yyhl1098 bool = l >= 0
for yyj1098 := 0; ; yyj1098++ {
if yyhl1098 {
if yyj1098 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1098Slc = r.DecodeBytes(yys1098Slc, true, true)
yys1098 := string(yys1098Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1098 {
2017-02-07 21:33:23 +00:00
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 = pkg1_unversioned.ListMeta{}
} else {
2017-04-07 10:49:53 +00:00
yyv1101 := &x.ListMeta
yym1102 := z.DecBinary()
_ = yym1102
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.DecExt(yyv1101) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.DecFallback(yyv1101, false)
2017-02-07 21:33:23 +00:00
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1103 := &x.Items
yym1104 := z.DecBinary()
_ = yym1104
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceIngress((*[]Ingress)(yyv1103), d)
2017-02-07 21:33:23 +00:00
}
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1098)
} // end switch yys1098
} // end for yyj1098
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *IngressList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1105 int
var yyb1105 bool
var yyhl1105 bool = l >= 0
yyj1105++
if yyhl1105 {
yyb1105 = yyj1105 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1105 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1105 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj1105++
if yyhl1105 {
yyb1105 = yyj1105 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1105 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1105 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj1105++
if yyhl1105 {
yyb1105 = yyj1105 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1105 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1105 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg1_unversioned.ListMeta{}
} else {
2017-04-07 10:49:53 +00:00
yyv1108 := &x.ListMeta
yym1109 := z.DecBinary()
_ = yym1109
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.DecExt(yyv1108) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.DecFallback(yyv1108, false)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyj1105++
if yyhl1105 {
yyb1105 = yyj1105 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1105 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1105 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1110 := &x.Items
yym1111 := z.DecBinary()
_ = yym1111
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceIngress((*[]Ingress)(yyv1110), d)
2017-02-07 21:33:23 +00:00
}
}
for {
2017-04-07 10:49:53 +00:00
yyj1105++
if yyhl1105 {
yyb1105 = yyj1105 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1105 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1105 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1105-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1112 := z.EncBinary()
_ = yym1112
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1113 := !z.EncBinary()
yy2arr1113 := z.EncBasicHandle().StructToArray
var yyq1113 [3]bool
_, _, _ = yysep1113, yyq1113, yy2arr1113
const yyr1113 bool = false
yyq1113[0] = x.Backend != nil
yyq1113[1] = len(x.TLS) != 0
yyq1113[2] = len(x.Rules) != 0
var yynn1113 int
if yyr1113 || yy2arr1113 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(3)
} else {
2017-04-07 10:49:53 +00:00
yynn1113 = 0
for _, b := range yyq1113 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1113++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1113)
yynn1113 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1113 || yy2arr1113 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1113[0] {
2017-02-07 21:33:23 +00:00
if x.Backend == nil {
r.EncodeNil()
} else {
x.Backend.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1113[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("backend"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Backend == nil {
r.EncodeNil()
} else {
x.Backend.CodecEncodeSelf(e)
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1113 || yy2arr1113 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1113[1] {
2017-02-07 21:33:23 +00:00
if x.TLS == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1116 := z.EncBinary()
_ = yym1116
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceIngressTLS(([]IngressTLS)(x.TLS), e)
}
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1113[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("tls"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.TLS == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1117 := z.EncBinary()
_ = yym1117
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceIngressTLS(([]IngressTLS)(x.TLS), e)
}
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1113 || yy2arr1113 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1113[2] {
2017-02-07 21:33:23 +00:00
if x.Rules == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1119 := z.EncBinary()
_ = yym1119
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceIngressRule(([]IngressRule)(x.Rules), e)
}
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1113[2] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("rules"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Rules == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1120 := z.EncBinary()
_ = yym1120
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceIngressRule(([]IngressRule)(x.Rules), e)
}
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1113 || yy2arr1113 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *IngressSpec) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1121 := z.DecBinary()
_ = yym1121
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1122 := r.ContainerType()
if yyct1122 == codecSelferValueTypeMap1234 {
yyl1122 := r.ReadMapStart()
if yyl1122 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1122, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1122 == codecSelferValueTypeArray1234 {
yyl1122 := r.ReadArrayStart()
if yyl1122 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1122, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *IngressSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1123Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1123Slc
var yyhl1123 bool = l >= 0
for yyj1123 := 0; ; yyj1123++ {
if yyhl1123 {
if yyj1123 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1123Slc = r.DecodeBytes(yys1123Slc, true, true)
yys1123 := string(yys1123Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1123 {
2017-02-07 21:33:23 +00:00
case "backend":
if r.TryDecodeAsNil() {
if x.Backend != nil {
x.Backend = nil
}
} else {
if x.Backend == nil {
x.Backend = new(IngressBackend)
}
x.Backend.CodecDecodeSelf(d)
}
case "tls":
if r.TryDecodeAsNil() {
x.TLS = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1125 := &x.TLS
yym1126 := z.DecBinary()
_ = yym1126
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceIngressTLS((*[]IngressTLS)(yyv1125), d)
2017-02-07 21:33:23 +00:00
}
}
case "rules":
if r.TryDecodeAsNil() {
x.Rules = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1127 := &x.Rules
yym1128 := z.DecBinary()
_ = yym1128
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceIngressRule((*[]IngressRule)(yyv1127), d)
2017-02-07 21:33:23 +00:00
}
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1123)
} // end switch yys1123
} // end for yyj1123
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *IngressSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1129 int
var yyb1129 bool
var yyhl1129 bool = l >= 0
yyj1129++
if yyhl1129 {
yyb1129 = yyj1129 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1129 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1129 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Backend != nil {
x.Backend = nil
}
} else {
if x.Backend == nil {
x.Backend = new(IngressBackend)
}
x.Backend.CodecDecodeSelf(d)
}
2017-04-07 10:49:53 +00:00
yyj1129++
if yyhl1129 {
yyb1129 = yyj1129 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1129 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1129 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TLS = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1131 := &x.TLS
yym1132 := z.DecBinary()
_ = yym1132
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceIngressTLS((*[]IngressTLS)(yyv1131), d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyj1129++
if yyhl1129 {
yyb1129 = yyj1129 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1129 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1129 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Rules = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1133 := &x.Rules
yym1134 := z.DecBinary()
_ = yym1134
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceIngressRule((*[]IngressRule)(yyv1133), d)
2017-02-07 21:33:23 +00:00
}
}
for {
2017-04-07 10:49:53 +00:00
yyj1129++
if yyhl1129 {
yyb1129 = yyj1129 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1129 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1129 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1129-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *IngressTLS) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1135 := z.EncBinary()
_ = yym1135
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1136 := !z.EncBinary()
yy2arr1136 := z.EncBasicHandle().StructToArray
var yyq1136 [2]bool
_, _, _ = yysep1136, yyq1136, yy2arr1136
const yyr1136 bool = false
yyq1136[0] = len(x.Hosts) != 0
yyq1136[1] = x.SecretName != ""
var yynn1136 int
if yyr1136 || yy2arr1136 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(2)
} else {
2017-04-07 10:49:53 +00:00
yynn1136 = 0
for _, b := range yyq1136 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1136++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1136)
yynn1136 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1136 || yy2arr1136 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1136[0] {
2017-02-07 21:33:23 +00:00
if x.Hosts == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1138 := z.EncBinary()
_ = yym1138
2017-02-07 21:33:23 +00:00
if false {
} else {
z.F.EncSliceStringV(x.Hosts, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1136[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hosts"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Hosts == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1139 := z.EncBinary()
_ = yym1139
2017-02-07 21:33:23 +00:00
if false {
} else {
z.F.EncSliceStringV(x.Hosts, false, e)
}
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1136 || yy2arr1136 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1136[1] {
yym1141 := z.EncBinary()
_ = yym1141
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SecretName))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1136[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("secretName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1142 := z.EncBinary()
_ = yym1142
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SecretName))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1136 || yy2arr1136 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *IngressTLS) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1143 := z.DecBinary()
_ = yym1143
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1144 := r.ContainerType()
if yyct1144 == codecSelferValueTypeMap1234 {
yyl1144 := r.ReadMapStart()
if yyl1144 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1144, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1144 == codecSelferValueTypeArray1234 {
yyl1144 := r.ReadArrayStart()
if yyl1144 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1144, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *IngressTLS) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1145Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1145Slc
var yyhl1145 bool = l >= 0
for yyj1145 := 0; ; yyj1145++ {
if yyhl1145 {
if yyj1145 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1145Slc = r.DecodeBytes(yys1145Slc, true, true)
yys1145 := string(yys1145Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1145 {
2017-02-07 21:33:23 +00:00
case "hosts":
if r.TryDecodeAsNil() {
x.Hosts = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1146 := &x.Hosts
yym1147 := z.DecBinary()
_ = yym1147
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
z.F.DecSliceStringX(yyv1146, false, d)
2017-02-07 21:33:23 +00:00
}
}
case "secretName":
if r.TryDecodeAsNil() {
x.SecretName = ""
} else {
x.SecretName = string(r.DecodeString())
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1145)
} // end switch yys1145
} // end for yyj1145
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *IngressTLS) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1149 int
var yyb1149 bool
var yyhl1149 bool = l >= 0
yyj1149++
if yyhl1149 {
yyb1149 = yyj1149 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1149 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1149 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Hosts = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1150 := &x.Hosts
yym1151 := z.DecBinary()
_ = yym1151
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
z.F.DecSliceStringX(yyv1150, false, d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyj1149++
if yyhl1149 {
yyb1149 = yyj1149 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1149 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1149 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SecretName = ""
} else {
x.SecretName = string(r.DecodeString())
}
for {
2017-04-07 10:49:53 +00:00
yyj1149++
if yyhl1149 {
yyb1149 = yyj1149 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1149 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1149 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1149-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *IngressStatus) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1153 := z.EncBinary()
_ = yym1153
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1154 := !z.EncBinary()
yy2arr1154 := z.EncBasicHandle().StructToArray
var yyq1154 [1]bool
_, _, _ = yysep1154, yyq1154, yy2arr1154
const yyr1154 bool = false
yyq1154[0] = true
var yynn1154 int
if yyr1154 || yy2arr1154 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(1)
} else {
2017-04-07 10:49:53 +00:00
yynn1154 = 0
for _, b := range yyq1154 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1154++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1154)
yynn1154 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1154 || yy2arr1154 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1154[0] {
yy1156 := &x.LoadBalancer
yy1156.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1154[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("loadBalancer"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy1157 := &x.LoadBalancer
yy1157.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyr1154 || yy2arr1154 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *IngressStatus) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1158 := z.DecBinary()
_ = yym1158
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1159 := r.ContainerType()
if yyct1159 == codecSelferValueTypeMap1234 {
yyl1159 := r.ReadMapStart()
if yyl1159 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1159, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1159 == codecSelferValueTypeArray1234 {
yyl1159 := r.ReadArrayStart()
if yyl1159 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1159, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *IngressStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1160Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1160Slc
var yyhl1160 bool = l >= 0
for yyj1160 := 0; ; yyj1160++ {
if yyhl1160 {
if yyj1160 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1160Slc = r.DecodeBytes(yys1160Slc, true, true)
yys1160 := string(yys1160Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1160 {
2017-02-07 21:33:23 +00:00
case "loadBalancer":
if r.TryDecodeAsNil() {
x.LoadBalancer = pkg2_v1.LoadBalancerStatus{}
} else {
2017-04-07 10:49:53 +00:00
yyv1161 := &x.LoadBalancer
yyv1161.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1160)
} // end switch yys1160
} // end for yyj1160
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *IngressStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1162 int
var yyb1162 bool
var yyhl1162 bool = l >= 0
yyj1162++
if yyhl1162 {
yyb1162 = yyj1162 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1162 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1162 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LoadBalancer = pkg2_v1.LoadBalancerStatus{}
} else {
2017-04-07 10:49:53 +00:00
yyv1163 := &x.LoadBalancer
yyv1163.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
for {
2017-04-07 10:49:53 +00:00
yyj1162++
if yyhl1162 {
yyb1162 = yyj1162 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1162 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1162 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1162-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *IngressRule) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1164 := z.EncBinary()
_ = yym1164
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1165 := !z.EncBinary()
yy2arr1165 := z.EncBasicHandle().StructToArray
var yyq1165 [2]bool
_, _, _ = yysep1165, yyq1165, yy2arr1165
const yyr1165 bool = false
yyq1165[0] = x.Host != ""
yyq1165[1] = x.IngressRuleValue.HTTP != nil && x.HTTP != nil
var yynn1165 int
if yyr1165 || yy2arr1165 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(2)
} else {
2017-04-07 10:49:53 +00:00
yynn1165 = 0
for _, b := range yyq1165 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1165++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1165)
yynn1165 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1165 || yy2arr1165 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1165[0] {
yym1167 := z.EncBinary()
_ = yym1167
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1165[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("host"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1168 := z.EncBinary()
_ = yym1168
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
}
}
}
2017-04-07 10:49:53 +00:00
var yyn1169 bool
2017-02-07 21:33:23 +00:00
if x.IngressRuleValue.HTTP == nil {
2017-04-07 10:49:53 +00:00
yyn1169 = true
goto LABEL1169
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
LABEL1169:
if yyr1165 || yy2arr1165 {
if yyn1169 {
2017-02-07 21:33:23 +00:00
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1165[1] {
2017-02-07 21:33:23 +00:00
if x.HTTP == nil {
r.EncodeNil()
} else {
x.HTTP.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1165[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("http"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
if yyn1169 {
2017-02-07 21:33:23 +00:00
r.EncodeNil()
} else {
if x.HTTP == nil {
r.EncodeNil()
} else {
x.HTTP.CodecEncodeSelf(e)
}
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1165 || yy2arr1165 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *IngressRule) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1170 := z.DecBinary()
_ = yym1170
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1171 := r.ContainerType()
if yyct1171 == codecSelferValueTypeMap1234 {
yyl1171 := r.ReadMapStart()
if yyl1171 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1171, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1171 == codecSelferValueTypeArray1234 {
yyl1171 := r.ReadArrayStart()
if yyl1171 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1171, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *IngressRule) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1172Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1172Slc
var yyhl1172 bool = l >= 0
for yyj1172 := 0; ; yyj1172++ {
if yyhl1172 {
if yyj1172 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1172Slc = r.DecodeBytes(yys1172Slc, true, true)
yys1172 := string(yys1172Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1172 {
2017-02-07 21:33:23 +00:00
case "host":
if r.TryDecodeAsNil() {
x.Host = ""
} else {
x.Host = string(r.DecodeString())
}
case "http":
if x.IngressRuleValue.HTTP == nil {
x.IngressRuleValue.HTTP = new(HTTPIngressRuleValue)
}
if r.TryDecodeAsNil() {
if x.HTTP != nil {
x.HTTP = nil
}
} else {
if x.HTTP == nil {
x.HTTP = new(HTTPIngressRuleValue)
}
x.HTTP.CodecDecodeSelf(d)
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1172)
} // end switch yys1172
} // end for yyj1172
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *IngressRule) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1175 int
var yyb1175 bool
var yyhl1175 bool = l >= 0
yyj1175++
if yyhl1175 {
yyb1175 = yyj1175 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1175 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1175 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Host = ""
} else {
x.Host = string(r.DecodeString())
}
if x.IngressRuleValue.HTTP == nil {
x.IngressRuleValue.HTTP = new(HTTPIngressRuleValue)
}
2017-04-07 10:49:53 +00:00
yyj1175++
if yyhl1175 {
yyb1175 = yyj1175 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1175 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1175 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.HTTP != nil {
x.HTTP = nil
}
} else {
if x.HTTP == nil {
x.HTTP = new(HTTPIngressRuleValue)
}
x.HTTP.CodecDecodeSelf(d)
}
for {
2017-04-07 10:49:53 +00:00
yyj1175++
if yyhl1175 {
yyb1175 = yyj1175 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1175 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1175 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1175-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *IngressRuleValue) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1178 := z.EncBinary()
_ = yym1178
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1179 := !z.EncBinary()
yy2arr1179 := z.EncBasicHandle().StructToArray
var yyq1179 [1]bool
_, _, _ = yysep1179, yyq1179, yy2arr1179
const yyr1179 bool = false
yyq1179[0] = x.HTTP != nil
var yynn1179 int
if yyr1179 || yy2arr1179 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(1)
} else {
2017-04-07 10:49:53 +00:00
yynn1179 = 0
for _, b := range yyq1179 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1179++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1179)
yynn1179 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1179 || yy2arr1179 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1179[0] {
2017-02-07 21:33:23 +00:00
if x.HTTP == nil {
r.EncodeNil()
} else {
x.HTTP.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1179[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("http"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.HTTP == nil {
r.EncodeNil()
} else {
x.HTTP.CodecEncodeSelf(e)
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1179 || yy2arr1179 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *IngressRuleValue) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1181 := z.DecBinary()
_ = yym1181
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1182 := r.ContainerType()
if yyct1182 == codecSelferValueTypeMap1234 {
yyl1182 := r.ReadMapStart()
if yyl1182 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1182, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1182 == codecSelferValueTypeArray1234 {
yyl1182 := r.ReadArrayStart()
if yyl1182 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1182, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *IngressRuleValue) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1183Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1183Slc
var yyhl1183 bool = l >= 0
for yyj1183 := 0; ; yyj1183++ {
if yyhl1183 {
if yyj1183 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1183Slc = r.DecodeBytes(yys1183Slc, true, true)
yys1183 := string(yys1183Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1183 {
2017-02-07 21:33:23 +00:00
case "http":
if r.TryDecodeAsNil() {
if x.HTTP != nil {
x.HTTP = nil
}
} else {
if x.HTTP == nil {
x.HTTP = new(HTTPIngressRuleValue)
}
x.HTTP.CodecDecodeSelf(d)
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1183)
} // end switch yys1183
} // end for yyj1183
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *IngressRuleValue) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1185 int
var yyb1185 bool
var yyhl1185 bool = l >= 0
yyj1185++
if yyhl1185 {
yyb1185 = yyj1185 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1185 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1185 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.HTTP != nil {
x.HTTP = nil
}
} else {
if x.HTTP == nil {
x.HTTP = new(HTTPIngressRuleValue)
}
x.HTTP.CodecDecodeSelf(d)
}
for {
2017-04-07 10:49:53 +00:00
yyj1185++
if yyhl1185 {
yyb1185 = yyj1185 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1185 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1185 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1185-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *HTTPIngressRuleValue) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1187 := z.EncBinary()
_ = yym1187
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1188 := !z.EncBinary()
yy2arr1188 := z.EncBasicHandle().StructToArray
var yyq1188 [1]bool
_, _, _ = yysep1188, yyq1188, yy2arr1188
const yyr1188 bool = false
var yynn1188 int
if yyr1188 || yy2arr1188 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(1)
} else {
2017-04-07 10:49:53 +00:00
yynn1188 = 1
for _, b := range yyq1188 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1188++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1188)
yynn1188 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1188 || yy2arr1188 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Paths == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1190 := z.EncBinary()
_ = yym1190
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceHTTPIngressPath(([]HTTPIngressPath)(x.Paths), e)
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("paths"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Paths == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1191 := z.EncBinary()
_ = yym1191
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceHTTPIngressPath(([]HTTPIngressPath)(x.Paths), e)
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1188 || yy2arr1188 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *HTTPIngressRuleValue) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1192 := z.DecBinary()
_ = yym1192
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1193 := r.ContainerType()
if yyct1193 == codecSelferValueTypeMap1234 {
yyl1193 := r.ReadMapStart()
if yyl1193 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1193, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1193 == codecSelferValueTypeArray1234 {
yyl1193 := r.ReadArrayStart()
if yyl1193 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1193, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *HTTPIngressRuleValue) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1194Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1194Slc
var yyhl1194 bool = l >= 0
for yyj1194 := 0; ; yyj1194++ {
if yyhl1194 {
if yyj1194 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1194Slc = r.DecodeBytes(yys1194Slc, true, true)
yys1194 := string(yys1194Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1194 {
2017-02-07 21:33:23 +00:00
case "paths":
if r.TryDecodeAsNil() {
x.Paths = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1195 := &x.Paths
yym1196 := z.DecBinary()
_ = yym1196
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceHTTPIngressPath((*[]HTTPIngressPath)(yyv1195), d)
2017-02-07 21:33:23 +00:00
}
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1194)
} // end switch yys1194
} // end for yyj1194
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *HTTPIngressRuleValue) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1197 int
var yyb1197 bool
var yyhl1197 bool = l >= 0
yyj1197++
if yyhl1197 {
yyb1197 = yyj1197 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1197 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1197 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Paths = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1198 := &x.Paths
yym1199 := z.DecBinary()
_ = yym1199
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceHTTPIngressPath((*[]HTTPIngressPath)(yyv1198), d)
2017-02-07 21:33:23 +00:00
}
}
for {
2017-04-07 10:49:53 +00:00
yyj1197++
if yyhl1197 {
yyb1197 = yyj1197 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1197 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1197 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1197-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *HTTPIngressPath) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1200 := z.EncBinary()
_ = yym1200
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1201 := !z.EncBinary()
yy2arr1201 := z.EncBasicHandle().StructToArray
var yyq1201 [2]bool
_, _, _ = yysep1201, yyq1201, yy2arr1201
const yyr1201 bool = false
yyq1201[0] = x.Path != ""
var yynn1201 int
if yyr1201 || yy2arr1201 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(2)
} else {
2017-04-07 10:49:53 +00:00
yynn1201 = 1
for _, b := range yyq1201 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1201++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1201)
yynn1201 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1201 || yy2arr1201 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1201[0] {
yym1203 := z.EncBinary()
_ = yym1203
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1201[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("path"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1204 := z.EncBinary()
_ = yym1204
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1201 || yy2arr1201 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1206 := &x.Backend
yy1206.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("backend"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy1207 := &x.Backend
yy1207.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1201 || yy2arr1201 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *HTTPIngressPath) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1208 := z.DecBinary()
_ = yym1208
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1209 := r.ContainerType()
if yyct1209 == codecSelferValueTypeMap1234 {
yyl1209 := r.ReadMapStart()
if yyl1209 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1209, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1209 == codecSelferValueTypeArray1234 {
yyl1209 := r.ReadArrayStart()
if yyl1209 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1209, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *HTTPIngressPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1210Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1210Slc
var yyhl1210 bool = l >= 0
for yyj1210 := 0; ; yyj1210++ {
if yyhl1210 {
if yyj1210 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1210Slc = r.DecodeBytes(yys1210Slc, true, true)
yys1210 := string(yys1210Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1210 {
2017-02-07 21:33:23 +00:00
case "path":
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
case "backend":
if r.TryDecodeAsNil() {
x.Backend = IngressBackend{}
} else {
2017-04-07 10:49:53 +00:00
yyv1212 := &x.Backend
yyv1212.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1210)
} // end switch yys1210
} // end for yyj1210
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *HTTPIngressPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1213 int
var yyb1213 bool
var yyhl1213 bool = l >= 0
yyj1213++
if yyhl1213 {
yyb1213 = yyj1213 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1213 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1213 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj1213++
if yyhl1213 {
yyb1213 = yyj1213 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1213 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1213 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Backend = IngressBackend{}
} else {
2017-04-07 10:49:53 +00:00
yyv1215 := &x.Backend
yyv1215.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
for {
2017-04-07 10:49:53 +00:00
yyj1213++
if yyhl1213 {
yyb1213 = yyj1213 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1213 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1213 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1213-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *IngressBackend) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1216 := z.EncBinary()
_ = yym1216
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1217 := !z.EncBinary()
yy2arr1217 := z.EncBasicHandle().StructToArray
var yyq1217 [2]bool
_, _, _ = yysep1217, yyq1217, yy2arr1217
const yyr1217 bool = false
var yynn1217 int
if yyr1217 || yy2arr1217 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(2)
} else {
2017-04-07 10:49:53 +00:00
yynn1217 = 2
for _, b := range yyq1217 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1217++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1217)
yynn1217 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1217 || yy2arr1217 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yym1219 := z.EncBinary()
_ = yym1219
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ServiceName))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("serviceName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1220 := z.EncBinary()
_ = yym1220
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ServiceName))
}
}
2017-04-07 10:49:53 +00:00
if yyr1217 || yy2arr1217 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1222 := &x.ServicePort
yym1223 := z.EncBinary()
_ = yym1223
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(yy1222) {
} else if !yym1223 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1222)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.EncFallback(yy1222)
2017-02-07 21:33:23 +00:00
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("servicePort"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy1224 := &x.ServicePort
yym1225 := z.EncBinary()
_ = yym1225
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(yy1224) {
} else if !yym1225 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1224)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.EncFallback(yy1224)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyr1217 || yy2arr1217 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *IngressBackend) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1226 := z.DecBinary()
_ = yym1226
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1227 := r.ContainerType()
if yyct1227 == codecSelferValueTypeMap1234 {
yyl1227 := r.ReadMapStart()
if yyl1227 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1227, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1227 == codecSelferValueTypeArray1234 {
yyl1227 := r.ReadArrayStart()
if yyl1227 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1227, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *IngressBackend) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1228Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1228Slc
var yyhl1228 bool = l >= 0
for yyj1228 := 0; ; yyj1228++ {
if yyhl1228 {
if yyj1228 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1228Slc = r.DecodeBytes(yys1228Slc, true, true)
yys1228 := string(yys1228Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1228 {
2017-02-07 21:33:23 +00:00
case "serviceName":
if r.TryDecodeAsNil() {
x.ServiceName = ""
} else {
x.ServiceName = string(r.DecodeString())
}
case "servicePort":
if r.TryDecodeAsNil() {
x.ServicePort = pkg5_intstr.IntOrString{}
} else {
2017-04-07 10:49:53 +00:00
yyv1230 := &x.ServicePort
yym1231 := z.DecBinary()
_ = yym1231
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.DecExt(yyv1230) {
} else if !yym1231 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1230)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.DecFallback(yyv1230, false)
2017-02-07 21:33:23 +00:00
}
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1228)
} // end switch yys1228
} // end for yyj1228
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *IngressBackend) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1232 int
var yyb1232 bool
var yyhl1232 bool = l >= 0
yyj1232++
if yyhl1232 {
yyb1232 = yyj1232 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1232 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1232 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ServiceName = ""
} else {
x.ServiceName = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj1232++
if yyhl1232 {
yyb1232 = yyj1232 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1232 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1232 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ServicePort = pkg5_intstr.IntOrString{}
} else {
2017-04-07 10:49:53 +00:00
yyv1234 := &x.ServicePort
yym1235 := z.DecBinary()
_ = yym1235
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.DecExt(yyv1234) {
} else if !yym1235 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1234)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.DecFallback(yyv1234, false)
2017-02-07 21:33:23 +00:00
}
}
for {
2017-04-07 10:49:53 +00:00
yyj1232++
if yyhl1232 {
yyb1232 = yyj1232 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1232 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1232 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1232-1, "")
2017-02-07 21:33:23 +00:00
}
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 {
2017-04-07 10:49:53 +00:00
yym1236 := z.EncBinary()
_ = yym1236
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1237 := !z.EncBinary()
yy2arr1237 := z.EncBasicHandle().StructToArray
var yyq1237 [4]bool
_, _, _ = yysep1237, yyq1237, yy2arr1237
const yyr1237 bool = false
yyq1237[0] = x.Kind != ""
yyq1237[1] = x.APIVersion != ""
var yynn1237 int
if yyr1237 || yy2arr1237 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(4)
} else {
2017-04-07 10:49:53 +00:00
yynn1237 = 2
for _, b := range yyq1237 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1237++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1237)
yynn1237 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1237 || yy2arr1237 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1237[0] {
yym1239 := z.EncBinary()
_ = yym1239
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1237[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1240 := z.EncBinary()
_ = yym1240
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1237 || yy2arr1237 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1237[1] {
yym1242 := z.EncBinary()
_ = yym1242
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1237[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1243 := z.EncBinary()
_ = yym1243
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1237 || yy2arr1237 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yym1245 := z.EncBinary()
_ = yym1245
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeBool(bool(x.Export))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("export"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1246 := z.EncBinary()
_ = yym1246
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeBool(bool(x.Export))
}
}
2017-04-07 10:49:53 +00:00
if yyr1237 || yy2arr1237 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yym1248 := z.EncBinary()
_ = yym1248
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeBool(bool(x.Exact))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("exact"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1249 := z.EncBinary()
_ = yym1249
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeBool(bool(x.Exact))
}
}
2017-04-07 10:49:53 +00:00
if yyr1237 || yy2arr1237 {
2017-02-07 21:33:23 +00:00
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
2017-04-07 10:49:53 +00:00
yym1250 := z.DecBinary()
_ = yym1250
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1251 := r.ContainerType()
if yyct1251 == codecSelferValueTypeMap1234 {
yyl1251 := r.ReadMapStart()
if yyl1251 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1251, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1251 == codecSelferValueTypeArray1234 {
yyl1251 := r.ReadArrayStart()
if yyl1251 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1251, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1252Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1252Slc
var yyhl1252 bool = l >= 0
for yyj1252 := 0; ; yyj1252++ {
if yyhl1252 {
if yyj1252 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1252Slc = r.DecodeBytes(yys1252Slc, true, true)
yys1252 := string(yys1252Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1252 {
2017-02-07 21:33:23 +00:00
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:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1252)
} // end switch yys1252
} // end for yyj1252
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1257 int
var yyb1257 bool
var yyhl1257 bool = l >= 0
yyj1257++
if yyhl1257 {
yyb1257 = yyj1257 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1257 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1257 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj1257++
if yyhl1257 {
yyb1257 = yyj1257 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1257 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1257 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj1257++
if yyhl1257 {
yyb1257 = yyj1257 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1257 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1257 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Export = false
} else {
x.Export = bool(r.DecodeBool())
}
2017-04-07 10:49:53 +00:00
yyj1257++
if yyhl1257 {
yyb1257 = yyj1257 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1257 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1257 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Exact = false
} else {
x.Exact = bool(r.DecodeBool())
}
for {
2017-04-07 10:49:53 +00:00
yyj1257++
if yyhl1257 {
yyb1257 = yyj1257 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1257 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1257 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1257-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
2017-04-07 10:49:53 +00:00
func (x *ReplicaSet) CodecEncodeSelf(e *codec1978.Encoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1262 := z.EncBinary()
_ = yym1262
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1263 := !z.EncBinary()
yy2arr1263 := z.EncBasicHandle().StructToArray
var yyq1263 [5]bool
_, _, _ = yysep1263, yyq1263, yy2arr1263
const yyr1263 bool = false
yyq1263[0] = x.Kind != ""
yyq1263[1] = x.APIVersion != ""
yyq1263[2] = true
yyq1263[3] = true
yyq1263[4] = true
var yynn1263 int
if yyr1263 || yy2arr1263 {
r.EncodeArrayStart(5)
} else {
yynn1263 = 0
for _, b := range yyq1263 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1263++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1263)
yynn1263 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1263 || yy2arr1263 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1263[0] {
yym1265 := z.EncBinary()
_ = yym1265
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1263[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1266 := z.EncBinary()
_ = yym1266
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1263 || yy2arr1263 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1263[1] {
yym1268 := z.EncBinary()
_ = yym1268
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1263[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1269 := z.EncBinary()
_ = yym1269
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1263 || yy2arr1263 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1263[2] {
yy1271 := &x.ObjectMeta
yy1271.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
r.EncodeNil()
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1263[2] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy1272 := &x.ObjectMeta
yy1272.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyr1263 || yy2arr1263 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1263[3] {
yy1274 := &x.Spec
yy1274.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
r.EncodeNil()
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1263[3] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string("spec"))
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy1275 := &x.Spec
yy1275.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyr1263 || yy2arr1263 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1263[4] {
yy1277 := &x.Status
yy1277.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1263[4] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string("status"))
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy1278 := &x.Status
yy1278.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyr1263 || yy2arr1263 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
2017-04-07 10:49:53 +00:00
func (x *ReplicaSet) CodecDecodeSelf(d *codec1978.Decoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1279 := z.DecBinary()
_ = yym1279
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1280 := r.ContainerType()
if yyct1280 == codecSelferValueTypeMap1234 {
yyl1280 := r.ReadMapStart()
if yyl1280 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1280, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1280 == codecSelferValueTypeArray1234 {
yyl1280 := r.ReadArrayStart()
if yyl1280 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1280, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
2017-04-07 10:49:53 +00:00
func (x *ReplicaSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1281Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1281Slc
var yyhl1281 bool = l >= 0
for yyj1281 := 0; ; yyj1281++ {
if yyhl1281 {
if yyj1281 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1281Slc = r.DecodeBytes(yys1281Slc, true, true)
yys1281 := string(yys1281Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1281 {
2017-02-07 21:33:23 +00:00
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())
}
2017-04-07 10:49:53 +00:00
case "metadata":
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.ObjectMeta = pkg2_v1.ObjectMeta{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1284 := &x.ObjectMeta
yyv1284.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
case "spec":
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.Spec = ReplicaSetSpec{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1285 := &x.Spec
yyv1285.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
case "status":
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.Status = ReplicaSetStatus{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1286 := &x.Status
yyv1286.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1281)
} // end switch yys1281
} // end for yyj1281
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
2017-04-07 10:49:53 +00:00
func (x *ReplicaSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1287 int
var yyb1287 bool
var yyhl1287 bool = l >= 0
yyj1287++
if yyhl1287 {
yyb1287 = yyj1287 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1287 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1287 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj1287++
if yyhl1287 {
yyb1287 = yyj1287 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1287 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1287 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj1287++
if yyhl1287 {
yyb1287 = yyj1287 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1287 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1287 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.ObjectMeta = pkg2_v1.ObjectMeta{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1290 := &x.ObjectMeta
yyv1290.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1287++
if yyhl1287 {
yyb1287 = yyj1287 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1287 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1287 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.Spec = ReplicaSetSpec{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1291 := &x.Spec
yyv1291.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1287++
if yyhl1287 {
yyb1287 = yyj1287 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1287 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1287 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.Status = ReplicaSetStatus{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1292 := &x.Status
yyv1292.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
for {
2017-04-07 10:49:53 +00:00
yyj1287++
if yyhl1287 {
yyb1287 = yyj1287 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1287 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1287 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1287-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
2017-04-07 10:49:53 +00:00
func (x *ReplicaSetList) CodecEncodeSelf(e *codec1978.Encoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1293 := z.EncBinary()
_ = yym1293
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1294 := !z.EncBinary()
yy2arr1294 := z.EncBasicHandle().StructToArray
var yyq1294 [4]bool
_, _, _ = yysep1294, yyq1294, yy2arr1294
const yyr1294 bool = false
yyq1294[0] = x.Kind != ""
yyq1294[1] = x.APIVersion != ""
yyq1294[2] = true
var yynn1294 int
if yyr1294 || yy2arr1294 {
r.EncodeArrayStart(4)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yynn1294 = 1
for _, b := range yyq1294 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1294++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1294)
yynn1294 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1294 || yy2arr1294 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1294[0] {
yym1296 := z.EncBinary()
_ = yym1296
if false {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, "")
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1294[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string("kind"))
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1297 := z.EncBinary()
_ = yym1297
if false {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
2017-02-07 21:33:23 +00:00
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1294 || yy2arr1294 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1294[1] {
yym1299 := z.EncBinary()
_ = yym1299
if false {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1294[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1300 := z.EncBinary()
_ = yym1300
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr1294 || yy2arr1294 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1294[2] {
yy1302 := &x.ListMeta
yym1303 := z.EncBinary()
_ = yym1303
if false {
} else if z.HasExtensions() && z.EncExt(yy1302) {
} else {
z.EncFallback(yy1302)
2017-02-07 21:33:23 +00:00
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1294[2] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy1304 := &x.ListMeta
yym1305 := z.EncBinary()
_ = yym1305
if false {
} else if z.HasExtensions() && z.EncExt(yy1304) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.EncFallback(yy1304)
}
}
}
if yyr1294 || yy2arr1294 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym1307 := z.EncBinary()
_ = yym1307
if false {
} else {
h.encSliceReplicaSet(([]ReplicaSet)(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 {
yym1308 := z.EncBinary()
_ = yym1308
if false {
} else {
h.encSliceReplicaSet(([]ReplicaSet)(x.Items), e)
2017-02-07 21:33:23 +00:00
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1294 || yy2arr1294 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
2017-04-07 10:49:53 +00:00
func (x *ReplicaSetList) CodecDecodeSelf(d *codec1978.Decoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1309 := z.DecBinary()
_ = yym1309
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1310 := r.ContainerType()
if yyct1310 == codecSelferValueTypeMap1234 {
yyl1310 := r.ReadMapStart()
if yyl1310 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1310, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1310 == codecSelferValueTypeArray1234 {
yyl1310 := r.ReadArrayStart()
if yyl1310 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1310, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
2017-04-07 10:49:53 +00:00
func (x *ReplicaSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1311Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1311Slc
var yyhl1311 bool = l >= 0
for yyj1311 := 0; ; yyj1311++ {
if yyhl1311 {
if yyj1311 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1311Slc = r.DecodeBytes(yys1311Slc, true, true)
yys1311 := string(yys1311Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1311 {
case "kind":
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.Kind = ""
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
x.Kind = string(r.DecodeString())
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
case "apiVersion":
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.APIVersion = ""
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
x.APIVersion = string(r.DecodeString())
}
case "metadata":
if r.TryDecodeAsNil() {
x.ListMeta = pkg1_unversioned.ListMeta{}
} else {
yyv1314 := &x.ListMeta
yym1315 := z.DecBinary()
_ = yym1315
if false {
} else if z.HasExtensions() && z.DecExt(yyv1314) {
} else {
z.DecFallback(yyv1314, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1316 := &x.Items
yym1317 := z.DecBinary()
_ = yym1317
if false {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
h.decSliceReplicaSet((*[]ReplicaSet)(yyv1316), d)
2017-02-07 21:33:23 +00:00
}
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1311)
} // end switch yys1311
} // end for yyj1311
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
2017-04-07 10:49:53 +00:00
func (x *ReplicaSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1318 int
var yyb1318 bool
var yyhl1318 bool = l >= 0
yyj1318++
if yyhl1318 {
yyb1318 = yyj1318 > l
} else {
yyb1318 = r.CheckBreak()
}
if yyb1318 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj1318++
if yyhl1318 {
yyb1318 = yyj1318 > l
} else {
yyb1318 = r.CheckBreak()
}
if yyb1318 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1318++
if yyhl1318 {
yyb1318 = yyj1318 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1318 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1318 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.ListMeta = pkg1_unversioned.ListMeta{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1321 := &x.ListMeta
yym1322 := z.DecBinary()
_ = yym1322
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.DecExt(yyv1321) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.DecFallback(yyv1321, false)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyj1318++
if yyhl1318 {
yyb1318 = yyj1318 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1318 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1318 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.Items = nil
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1323 := &x.Items
yym1324 := z.DecBinary()
_ = yym1324
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceReplicaSet((*[]ReplicaSet)(yyv1323), d)
2017-02-07 21:33:23 +00:00
}
}
for {
2017-04-07 10:49:53 +00:00
yyj1318++
if yyhl1318 {
yyb1318 = yyj1318 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1318 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1318 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1318-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
2017-04-07 10:49:53 +00:00
func (x *ReplicaSetSpec) CodecEncodeSelf(e *codec1978.Encoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1325 := z.EncBinary()
_ = yym1325
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1326 := !z.EncBinary()
yy2arr1326 := z.EncBasicHandle().StructToArray
var yyq1326 [4]bool
_, _, _ = yysep1326, yyq1326, yy2arr1326
const yyr1326 bool = false
yyq1326[0] = x.Replicas != nil
yyq1326[1] = x.MinReadySeconds != 0
yyq1326[2] = x.Selector != nil
yyq1326[3] = true
var yynn1326 int
if yyr1326 || yy2arr1326 {
r.EncodeArrayStart(4)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yynn1326 = 0
for _, b := range yyq1326 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1326++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1326)
yynn1326 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1326 || yy2arr1326 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1326[0] {
if x.Replicas == nil {
r.EncodeNil()
} else {
yy1328 := *x.Replicas
yym1329 := z.EncBinary()
_ = yym1329
if false {
} else {
r.EncodeInt(int64(yy1328))
}
}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
r.EncodeNil()
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1326[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("replicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Replicas == nil {
r.EncodeNil()
} else {
yy1330 := *x.Replicas
yym1331 := z.EncBinary()
_ = yym1331
if false {
} else {
r.EncodeInt(int64(yy1330))
}
}
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyr1326 || yy2arr1326 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1326[1] {
yym1333 := z.EncBinary()
_ = yym1333
if false {
} else {
r.EncodeInt(int64(x.MinReadySeconds))
}
} else {
r.EncodeInt(0)
}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
if yyq1326[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("minReadySeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1334 := z.EncBinary()
_ = yym1334
if false {
} else {
r.EncodeInt(int64(x.MinReadySeconds))
}
}
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1326 || yy2arr1326 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1326[2] {
if x.Selector == nil {
2017-02-07 21:33:23 +00:00
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1336 := z.EncBinary()
_ = yym1336
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(x.Selector) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.EncFallback(x.Selector)
2017-02-07 21:33:23 +00:00
}
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1326[2] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string("selector"))
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
if x.Selector == nil {
2017-02-07 21:33:23 +00:00
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1337 := z.EncBinary()
_ = yym1337
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(x.Selector) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.EncFallback(x.Selector)
2017-02-07 21:33:23 +00:00
}
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1326 || yy2arr1326 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1326[3] {
yy1339 := &x.Template
yy1339.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1326[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("template"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1340 := &x.Template
yy1340.CodecEncodeSelf(e)
}
}
if yyr1326 || yy2arr1326 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
2017-04-07 10:49:53 +00:00
func (x *ReplicaSetSpec) CodecDecodeSelf(d *codec1978.Decoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1341 := z.DecBinary()
_ = yym1341
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1342 := r.ContainerType()
if yyct1342 == codecSelferValueTypeMap1234 {
yyl1342 := r.ReadMapStart()
if yyl1342 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1342, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1342 == codecSelferValueTypeArray1234 {
yyl1342 := r.ReadArrayStart()
if yyl1342 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1342, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
2017-04-07 10:49:53 +00:00
func (x *ReplicaSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1343Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1343Slc
var yyhl1343 bool = l >= 0
for yyj1343 := 0; ; yyj1343++ {
if yyhl1343 {
if yyj1343 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1343Slc = r.DecodeBytes(yys1343Slc, true, true)
yys1343 := string(yys1343Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1343 {
case "replicas":
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
if x.Replicas != nil {
x.Replicas = nil
}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
if x.Replicas == nil {
x.Replicas = new(int32)
}
yym1345 := z.DecBinary()
_ = yym1345
if false {
} else {
*((*int32)(x.Replicas)) = int32(r.DecodeInt(32))
}
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
case "minReadySeconds":
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.MinReadySeconds = 0
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
x.MinReadySeconds = int32(r.DecodeInt(32))
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
case "selector":
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
if x.Selector != nil {
x.Selector = nil
}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
if x.Selector == nil {
x.Selector = new(pkg1_unversioned.LabelSelector)
}
yym1348 := z.DecBinary()
_ = yym1348
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.DecExt(x.Selector) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.DecFallback(x.Selector, false)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
case "template":
if r.TryDecodeAsNil() {
x.Template = pkg2_v1.PodTemplateSpec{}
} else {
yyv1349 := &x.Template
yyv1349.CodecDecodeSelf(d)
}
2017-02-07 21:33:23 +00:00
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1343)
} // end switch yys1343
} // end for yyj1343
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
2017-04-07 10:49:53 +00:00
func (x *ReplicaSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1350 int
var yyb1350 bool
var yyhl1350 bool = l >= 0
yyj1350++
if yyhl1350 {
yyb1350 = yyj1350 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1350 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1350 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
if x.Replicas != nil {
x.Replicas = nil
}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
if x.Replicas == nil {
x.Replicas = new(int32)
}
yym1352 := z.DecBinary()
_ = yym1352
if false {
} else {
*((*int32)(x.Replicas)) = int32(r.DecodeInt(32))
}
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1350++
if yyhl1350 {
yyb1350 = yyj1350 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1350 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1350 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.MinReadySeconds = 0
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
x.MinReadySeconds = int32(r.DecodeInt(32))
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1350++
if yyhl1350 {
yyb1350 = yyj1350 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1350 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1350 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
if x.Selector != nil {
x.Selector = nil
}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
if x.Selector == nil {
x.Selector = new(pkg1_unversioned.LabelSelector)
}
yym1355 := z.DecBinary()
_ = yym1355
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.DecExt(x.Selector) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.DecFallback(x.Selector, false)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyj1350++
if yyhl1350 {
yyb1350 = yyj1350 > l
} else {
yyb1350 = r.CheckBreak()
}
if yyb1350 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Template = pkg2_v1.PodTemplateSpec{}
} else {
yyv1356 := &x.Template
yyv1356.CodecDecodeSelf(d)
}
2017-02-07 21:33:23 +00:00
for {
2017-04-07 10:49:53 +00:00
yyj1350++
if yyhl1350 {
yyb1350 = yyj1350 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1350 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1350 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1350-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
2017-04-07 10:49:53 +00:00
func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1357 := z.EncBinary()
_ = yym1357
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1358 := !z.EncBinary()
yy2arr1358 := z.EncBasicHandle().StructToArray
var yyq1358 [6]bool
_, _, _ = yysep1358, yyq1358, yy2arr1358
const yyr1358 bool = false
yyq1358[1] = x.FullyLabeledReplicas != 0
yyq1358[2] = x.ReadyReplicas != 0
yyq1358[3] = x.AvailableReplicas != 0
yyq1358[4] = x.ObservedGeneration != 0
yyq1358[5] = len(x.Conditions) != 0
var yynn1358 int
if yyr1358 || yy2arr1358 {
r.EncodeArrayStart(6)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yynn1358 = 1
for _, b := range yyq1358 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1358++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1358)
yynn1358 = 0
}
if yyr1358 || yy2arr1358 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1360 := z.EncBinary()
_ = yym1360
if false {
} else {
r.EncodeInt(int64(x.Replicas))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("replicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1361 := z.EncBinary()
_ = yym1361
if false {
} else {
r.EncodeInt(int64(x.Replicas))
}
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1358 || yy2arr1358 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1358[1] {
yym1363 := z.EncBinary()
_ = yym1363
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
r.EncodeInt(int64(x.FullyLabeledReplicas))
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
r.EncodeInt(0)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1358[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string("fullyLabeledReplicas"))
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1364 := z.EncBinary()
_ = yym1364
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
r.EncodeInt(int64(x.FullyLabeledReplicas))
2017-02-07 21:33:23 +00:00
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1358 || yy2arr1358 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1358[2] {
yym1366 := z.EncBinary()
_ = yym1366
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
r.EncodeInt(int64(x.ReadyReplicas))
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
r.EncodeInt(0)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1358[2] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string("readyReplicas"))
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1367 := z.EncBinary()
_ = yym1367
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
r.EncodeInt(int64(x.ReadyReplicas))
2017-02-07 21:33:23 +00:00
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1358 || yy2arr1358 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1358[3] {
yym1369 := z.EncBinary()
_ = yym1369
if false {
} else {
r.EncodeInt(int64(x.AvailableReplicas))
}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
r.EncodeInt(0)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1358[3] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string("availableReplicas"))
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1370 := z.EncBinary()
_ = yym1370
if false {
} else {
r.EncodeInt(int64(x.AvailableReplicas))
}
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyr1358 || yy2arr1358 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1358[4] {
yym1372 := z.EncBinary()
_ = yym1372
if false {
} else {
r.EncodeInt(int64(x.ObservedGeneration))
}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
r.EncodeInt(0)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1358[4] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string("observedGeneration"))
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1373 := z.EncBinary()
_ = yym1373
if false {
} else {
r.EncodeInt(int64(x.ObservedGeneration))
}
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyr1358 || yy2arr1358 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1358[5] {
if x.Conditions == nil {
r.EncodeNil()
} else {
yym1375 := z.EncBinary()
_ = yym1375
if false {
} else {
h.encSliceReplicaSetCondition(([]ReplicaSetCondition)(x.Conditions), e)
}
}
2017-02-07 21:33:23 +00:00
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1358[5] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
if x.Conditions == nil {
r.EncodeNil()
} else {
yym1376 := z.EncBinary()
_ = yym1376
if false {
} else {
h.encSliceReplicaSetCondition(([]ReplicaSetCondition)(x.Conditions), e)
}
}
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyr1358 || yy2arr1358 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
2017-04-07 10:49:53 +00:00
func (x *ReplicaSetStatus) CodecDecodeSelf(d *codec1978.Decoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1377 := z.DecBinary()
_ = yym1377
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1378 := r.ContainerType()
if yyct1378 == codecSelferValueTypeMap1234 {
yyl1378 := r.ReadMapStart()
if yyl1378 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1378, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1378 == codecSelferValueTypeArray1234 {
yyl1378 := r.ReadArrayStart()
if yyl1378 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1378, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
2017-04-07 10:49:53 +00:00
func (x *ReplicaSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1379Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1379Slc
var yyhl1379 bool = l >= 0
for yyj1379 := 0; ; yyj1379++ {
if yyhl1379 {
if yyj1379 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1379Slc = r.DecodeBytes(yys1379Slc, true, true)
yys1379 := string(yys1379Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1379 {
case "replicas":
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.Replicas = 0
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
x.Replicas = int32(r.DecodeInt(32))
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
case "fullyLabeledReplicas":
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.FullyLabeledReplicas = 0
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
x.FullyLabeledReplicas = int32(r.DecodeInt(32))
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
case "readyReplicas":
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.ReadyReplicas = 0
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
x.ReadyReplicas = int32(r.DecodeInt(32))
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
case "availableReplicas":
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.AvailableReplicas = 0
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
x.AvailableReplicas = int32(r.DecodeInt(32))
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
case "observedGeneration":
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.ObservedGeneration = 0
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
x.ObservedGeneration = int64(r.DecodeInt(64))
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
case "conditions":
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.Conditions = nil
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1385 := &x.Conditions
yym1386 := z.DecBinary()
_ = yym1386
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceReplicaSetCondition((*[]ReplicaSetCondition)(yyv1385), d)
2017-02-07 21:33:23 +00:00
}
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1379)
} // end switch yys1379
} // end for yyj1379
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
2017-04-07 10:49:53 +00:00
func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1387 int
var yyb1387 bool
var yyhl1387 bool = l >= 0
yyj1387++
if yyhl1387 {
yyb1387 = yyj1387 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1387 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1387 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.Replicas = 0
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
x.Replicas = int32(r.DecodeInt(32))
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1387++
if yyhl1387 {
yyb1387 = yyj1387 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1387 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1387 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.FullyLabeledReplicas = 0
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
x.FullyLabeledReplicas = int32(r.DecodeInt(32))
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1387++
if yyhl1387 {
yyb1387 = yyj1387 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1387 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1387 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.ReadyReplicas = 0
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
x.ReadyReplicas = int32(r.DecodeInt(32))
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1387++
if yyhl1387 {
yyb1387 = yyj1387 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1387 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1387 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.AvailableReplicas = 0
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
x.AvailableReplicas = int32(r.DecodeInt(32))
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1387++
if yyhl1387 {
yyb1387 = yyj1387 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1387 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1387 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.ObservedGeneration = 0
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
x.ObservedGeneration = int64(r.DecodeInt(64))
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1387++
if yyhl1387 {
yyb1387 = yyj1387 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1387 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1387 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.Conditions = nil
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1393 := &x.Conditions
yym1394 := z.DecBinary()
_ = yym1394
if false {
} else {
h.decSliceReplicaSetCondition((*[]ReplicaSetCondition)(yyv1393), d)
}
2017-02-07 21:33:23 +00:00
}
for {
2017-04-07 10:49:53 +00:00
yyj1387++
if yyhl1387 {
yyb1387 = yyj1387 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1387 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1387 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1387-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
2017-04-07 10:49:53 +00:00
func (x ReplicaSetConditionType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1395 := z.EncBinary()
_ = yym1395
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *ReplicaSetConditionType) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1396 := z.DecBinary()
_ = yym1396
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *ReplicaSetCondition) CodecEncodeSelf(e *codec1978.Encoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1397 := z.EncBinary()
_ = yym1397
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1398 := !z.EncBinary()
yy2arr1398 := z.EncBasicHandle().StructToArray
var yyq1398 [5]bool
_, _, _ = yysep1398, yyq1398, yy2arr1398
const yyr1398 bool = false
yyq1398[2] = true
yyq1398[3] = x.Reason != ""
yyq1398[4] = x.Message != ""
var yynn1398 int
if yyr1398 || yy2arr1398 {
r.EncodeArrayStart(5)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yynn1398 = 2
for _, b := range yyq1398 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1398++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1398)
yynn1398 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1398 || yy2arr1398 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
x.Type.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Type.CodecEncodeSelf(e)
}
if yyr1398 || yy2arr1398 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1401 := z.EncBinary()
_ = yym1401
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(x.Status) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string(x.Status))
2017-02-07 21:33:23 +00:00
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string("status"))
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1402 := z.EncBinary()
_ = yym1402
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(x.Status) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string(x.Status))
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyr1398 || yy2arr1398 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1398[2] {
yy1404 := &x.LastTransitionTime
yym1405 := z.EncBinary()
_ = yym1405
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(yy1404) {
} else if yym1405 {
z.EncBinaryMarshal(yy1404)
} else if !yym1405 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1404)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.EncFallback(yy1404)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
r.EncodeNil()
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1398[2] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime"))
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy1406 := &x.LastTransitionTime
yym1407 := z.EncBinary()
_ = yym1407
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(yy1406) {
} else if yym1407 {
z.EncBinaryMarshal(yy1406)
} else if !yym1407 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1406)
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.EncFallback(yy1406)
2017-02-07 21:33:23 +00:00
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1398 || yy2arr1398 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1398[3] {
yym1409 := z.EncBinary()
_ = yym1409
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, "")
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1398[3] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string("reason"))
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1410 := z.EncBinary()
_ = yym1410
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
2017-02-07 21:33:23 +00:00
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1398 || yy2arr1398 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1398[4] {
yym1412 := z.EncBinary()
_ = yym1412
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, "")
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1398[4] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string("message"))
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1413 := z.EncBinary()
_ = yym1413
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
2017-02-07 21:33:23 +00:00
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1398 || yy2arr1398 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
2017-04-07 10:49:53 +00:00
func (x *ReplicaSetCondition) CodecDecodeSelf(d *codec1978.Decoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1414 := z.DecBinary()
_ = yym1414
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1415 := r.ContainerType()
if yyct1415 == codecSelferValueTypeMap1234 {
yyl1415 := r.ReadMapStart()
if yyl1415 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1415, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1415 == codecSelferValueTypeArray1234 {
yyl1415 := r.ReadArrayStart()
if yyl1415 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1415, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
2017-04-07 10:49:53 +00:00
func (x *ReplicaSetCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1416Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1416Slc
var yyhl1416 bool = l >= 0
for yyj1416 := 0; ; yyj1416++ {
if yyhl1416 {
if yyj1416 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1416Slc = r.DecodeBytes(yys1416Slc, true, true)
yys1416 := string(yys1416Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1416 {
case "type":
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.Type = ""
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
x.Type = ReplicaSetConditionType(r.DecodeString())
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
case "status":
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.Status = ""
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
x.Status = pkg2_v1.ConditionStatus(r.DecodeString())
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
case "lastTransitionTime":
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.LastTransitionTime = pkg1_unversioned.Time{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1419 := &x.LastTransitionTime
yym1420 := z.DecBinary()
_ = yym1420
if false {
} else if z.HasExtensions() && z.DecExt(yyv1419) {
} else if yym1420 {
z.DecBinaryUnmarshal(yyv1419)
} else if !yym1420 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1419)
} else {
z.DecFallback(yyv1419, false)
}
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
case "reason":
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.Reason = ""
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
x.Reason = string(r.DecodeString())
}
case "message":
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
2017-02-07 21:33:23 +00:00
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1416)
} // end switch yys1416
} // end for yyj1416
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
2017-04-07 10:49:53 +00:00
func (x *ReplicaSetCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1423 int
var yyb1423 bool
var yyhl1423 bool = l >= 0
yyj1423++
if yyhl1423 {
yyb1423 = yyj1423 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1423 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1423 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.Type = ""
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
x.Type = ReplicaSetConditionType(r.DecodeString())
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1423++
if yyhl1423 {
yyb1423 = yyj1423 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1423 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1423 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.Status = ""
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
x.Status = pkg2_v1.ConditionStatus(r.DecodeString())
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1423++
if yyhl1423 {
yyb1423 = yyj1423 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1423 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1423 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.LastTransitionTime = pkg1_unversioned.Time{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1426 := &x.LastTransitionTime
yym1427 := z.DecBinary()
_ = yym1427
if false {
} else if z.HasExtensions() && z.DecExt(yyv1426) {
} else if yym1427 {
z.DecBinaryUnmarshal(yyv1426)
} else if !yym1427 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1426)
} else {
z.DecFallback(yyv1426, false)
}
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1423++
if yyhl1423 {
yyb1423 = yyj1423 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1423 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1423 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.Reason = ""
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
x.Reason = string(r.DecodeString())
}
yyj1423++
if yyhl1423 {
yyb1423 = yyj1423 > l
} else {
yyb1423 = r.CheckBreak()
}
if yyb1423 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
2017-02-07 21:33:23 +00:00
}
for {
2017-04-07 10:49:53 +00:00
yyj1423++
if yyhl1423 {
yyb1423 = yyj1423 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1423 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1423 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1423-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PodSecurityPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1430 := z.EncBinary()
_ = yym1430
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1431 := !z.EncBinary()
yy2arr1431 := z.EncBasicHandle().StructToArray
var yyq1431 [4]bool
_, _, _ = yysep1431, yyq1431, yy2arr1431
const yyr1431 bool = false
yyq1431[0] = x.Kind != ""
yyq1431[1] = x.APIVersion != ""
yyq1431[2] = true
yyq1431[3] = true
var yynn1431 int
if yyr1431 || yy2arr1431 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(4)
} else {
2017-04-07 10:49:53 +00:00
yynn1431 = 0
for _, b := range yyq1431 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1431++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1431)
yynn1431 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1431 || yy2arr1431 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1431[0] {
yym1433 := z.EncBinary()
_ = yym1433
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1431[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1434 := z.EncBinary()
_ = yym1434
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1431 || yy2arr1431 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1431[1] {
yym1436 := z.EncBinary()
_ = yym1436
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1431[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1437 := z.EncBinary()
_ = yym1437
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1431 || yy2arr1431 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1431[2] {
yy1439 := &x.ObjectMeta
yy1439.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1431[2] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy1440 := &x.ObjectMeta
yy1440.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyr1431 || yy2arr1431 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1431[3] {
yy1442 := &x.Spec
yy1442.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1431[3] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy1443 := &x.Spec
yy1443.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyr1431 || yy2arr1431 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *PodSecurityPolicy) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1444 := z.DecBinary()
_ = yym1444
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1445 := r.ContainerType()
if yyct1445 == codecSelferValueTypeMap1234 {
yyl1445 := r.ReadMapStart()
if yyl1445 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1445, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1445 == codecSelferValueTypeArray1234 {
yyl1445 := r.ReadArrayStart()
if yyl1445 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1445, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PodSecurityPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1446Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1446Slc
var yyhl1446 bool = l >= 0
for yyj1446 := 0; ; yyj1446++ {
if yyhl1446 {
if yyj1446 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1446Slc = r.DecodeBytes(yys1446Slc, true, true)
yys1446 := string(yys1446Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1446 {
2017-02-07 21:33:23 +00:00
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 = pkg2_v1.ObjectMeta{}
} else {
2017-04-07 10:49:53 +00:00
yyv1449 := &x.ObjectMeta
yyv1449.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = PodSecurityPolicySpec{}
} else {
2017-04-07 10:49:53 +00:00
yyv1450 := &x.Spec
yyv1450.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1446)
} // end switch yys1446
} // end for yyj1446
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *PodSecurityPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1451 int
var yyb1451 bool
var yyhl1451 bool = l >= 0
yyj1451++
if yyhl1451 {
yyb1451 = yyj1451 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1451 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1451 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj1451++
if yyhl1451 {
yyb1451 = yyj1451 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1451 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1451 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj1451++
if yyhl1451 {
yyb1451 = yyj1451 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1451 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1451 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{}
} else {
2017-04-07 10:49:53 +00:00
yyv1454 := &x.ObjectMeta
yyv1454.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1451++
if yyhl1451 {
yyb1451 = yyj1451 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1451 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1451 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = PodSecurityPolicySpec{}
} else {
2017-04-07 10:49:53 +00:00
yyv1455 := &x.Spec
yyv1455.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
for {
2017-04-07 10:49:53 +00:00
yyj1451++
if yyhl1451 {
yyb1451 = yyj1451 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1451 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1451 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1451-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1456 := z.EncBinary()
_ = yym1456
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1457 := !z.EncBinary()
yy2arr1457 := z.EncBasicHandle().StructToArray
var yyq1457 [14]bool
_, _, _ = yysep1457, yyq1457, yy2arr1457
const yyr1457 bool = false
yyq1457[0] = x.Privileged != false
yyq1457[1] = len(x.DefaultAddCapabilities) != 0
yyq1457[2] = len(x.RequiredDropCapabilities) != 0
yyq1457[3] = len(x.AllowedCapabilities) != 0
yyq1457[4] = len(x.Volumes) != 0
yyq1457[5] = x.HostNetwork != false
yyq1457[6] = len(x.HostPorts) != 0
yyq1457[7] = x.HostPID != false
yyq1457[8] = x.HostIPC != false
yyq1457[13] = x.ReadOnlyRootFilesystem != false
var yynn1457 int
if yyr1457 || yy2arr1457 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(14)
} else {
2017-04-07 10:49:53 +00:00
yynn1457 = 4
for _, b := range yyq1457 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1457++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1457)
yynn1457 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1457 || yy2arr1457 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1457[0] {
yym1459 := z.EncBinary()
_ = yym1459
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeBool(bool(x.Privileged))
}
} else {
r.EncodeBool(false)
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1457[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("privileged"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1460 := z.EncBinary()
_ = yym1460
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeBool(bool(x.Privileged))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1457 || yy2arr1457 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1457[1] {
2017-02-07 21:33:23 +00:00
if x.DefaultAddCapabilities == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1462 := z.EncBinary()
_ = yym1462
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.DefaultAddCapabilities), e)
}
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1457[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("defaultAddCapabilities"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.DefaultAddCapabilities == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1463 := z.EncBinary()
_ = yym1463
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.DefaultAddCapabilities), e)
}
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1457 || yy2arr1457 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1457[2] {
2017-02-07 21:33:23 +00:00
if x.RequiredDropCapabilities == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1465 := z.EncBinary()
_ = yym1465
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.RequiredDropCapabilities), e)
}
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1457[2] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("requiredDropCapabilities"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RequiredDropCapabilities == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1466 := z.EncBinary()
_ = yym1466
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.RequiredDropCapabilities), e)
}
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1457 || yy2arr1457 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1457[3] {
2017-02-07 21:33:23 +00:00
if x.AllowedCapabilities == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1468 := z.EncBinary()
_ = yym1468
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.AllowedCapabilities), e)
}
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1457[3] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("allowedCapabilities"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.AllowedCapabilities == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1469 := z.EncBinary()
_ = yym1469
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.AllowedCapabilities), e)
}
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1457 || yy2arr1457 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1457[4] {
2017-02-07 21:33:23 +00:00
if x.Volumes == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1471 := z.EncBinary()
_ = yym1471
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceFSType(([]FSType)(x.Volumes), e)
}
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1457[4] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("volumes"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Volumes == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1472 := z.EncBinary()
_ = yym1472
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceFSType(([]FSType)(x.Volumes), e)
}
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1457 || yy2arr1457 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1457[5] {
yym1474 := z.EncBinary()
_ = yym1474
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeBool(bool(x.HostNetwork))
}
} else {
r.EncodeBool(false)
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1457[5] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostNetwork"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1475 := z.EncBinary()
_ = yym1475
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeBool(bool(x.HostNetwork))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1457 || yy2arr1457 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1457[6] {
2017-02-07 21:33:23 +00:00
if x.HostPorts == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1477 := z.EncBinary()
_ = yym1477
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceHostPortRange(([]HostPortRange)(x.HostPorts), e)
}
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1457[6] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostPorts"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.HostPorts == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1478 := z.EncBinary()
_ = yym1478
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceHostPortRange(([]HostPortRange)(x.HostPorts), e)
}
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1457 || yy2arr1457 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1457[7] {
yym1480 := z.EncBinary()
_ = yym1480
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeBool(bool(x.HostPID))
}
} else {
r.EncodeBool(false)
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1457[7] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostPID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1481 := z.EncBinary()
_ = yym1481
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeBool(bool(x.HostPID))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1457 || yy2arr1457 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1457[8] {
yym1483 := z.EncBinary()
_ = yym1483
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeBool(bool(x.HostIPC))
}
} else {
r.EncodeBool(false)
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1457[8] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostIPC"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1484 := z.EncBinary()
_ = yym1484
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeBool(bool(x.HostIPC))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1457 || yy2arr1457 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1486 := &x.SELinux
yy1486.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("seLinux"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy1487 := &x.SELinux
yy1487.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1457 || yy2arr1457 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1489 := &x.RunAsUser
yy1489.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("runAsUser"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy1490 := &x.RunAsUser
yy1490.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1457 || yy2arr1457 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1492 := &x.SupplementalGroups
yy1492.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy1493 := &x.SupplementalGroups
yy1493.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1457 || yy2arr1457 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1495 := &x.FSGroup
yy1495.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsGroup"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy1496 := &x.FSGroup
yy1496.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1457 || yy2arr1457 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1457[13] {
yym1498 := z.EncBinary()
_ = yym1498
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeBool(bool(x.ReadOnlyRootFilesystem))
}
} else {
r.EncodeBool(false)
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1457[13] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnlyRootFilesystem"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1499 := z.EncBinary()
_ = yym1499
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeBool(bool(x.ReadOnlyRootFilesystem))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1457 || yy2arr1457 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *PodSecurityPolicySpec) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1500 := z.DecBinary()
_ = yym1500
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1501 := r.ContainerType()
if yyct1501 == codecSelferValueTypeMap1234 {
yyl1501 := r.ReadMapStart()
if yyl1501 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1501, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1501 == codecSelferValueTypeArray1234 {
yyl1501 := r.ReadArrayStart()
if yyl1501 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1501, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1502Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1502Slc
var yyhl1502 bool = l >= 0
for yyj1502 := 0; ; yyj1502++ {
if yyhl1502 {
if yyj1502 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1502Slc = r.DecodeBytes(yys1502Slc, true, true)
yys1502 := string(yys1502Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1502 {
2017-02-07 21:33:23 +00:00
case "privileged":
if r.TryDecodeAsNil() {
x.Privileged = false
} else {
x.Privileged = bool(r.DecodeBool())
}
case "defaultAddCapabilities":
if r.TryDecodeAsNil() {
x.DefaultAddCapabilities = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1504 := &x.DefaultAddCapabilities
yym1505 := z.DecBinary()
_ = yym1505
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1504), d)
2017-02-07 21:33:23 +00:00
}
}
case "requiredDropCapabilities":
if r.TryDecodeAsNil() {
x.RequiredDropCapabilities = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1506 := &x.RequiredDropCapabilities
yym1507 := z.DecBinary()
_ = yym1507
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1506), d)
2017-02-07 21:33:23 +00:00
}
}
case "allowedCapabilities":
if r.TryDecodeAsNil() {
x.AllowedCapabilities = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1508 := &x.AllowedCapabilities
yym1509 := z.DecBinary()
_ = yym1509
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1508), d)
2017-02-07 21:33:23 +00:00
}
}
case "volumes":
if r.TryDecodeAsNil() {
x.Volumes = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1510 := &x.Volumes
yym1511 := z.DecBinary()
_ = yym1511
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceFSType((*[]FSType)(yyv1510), d)
2017-02-07 21:33:23 +00:00
}
}
case "hostNetwork":
if r.TryDecodeAsNil() {
x.HostNetwork = false
} else {
x.HostNetwork = bool(r.DecodeBool())
}
case "hostPorts":
if r.TryDecodeAsNil() {
x.HostPorts = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1513 := &x.HostPorts
yym1514 := z.DecBinary()
_ = yym1514
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceHostPortRange((*[]HostPortRange)(yyv1513), d)
2017-02-07 21:33:23 +00:00
}
}
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 "seLinux":
if r.TryDecodeAsNil() {
x.SELinux = SELinuxStrategyOptions{}
} else {
2017-04-07 10:49:53 +00:00
yyv1517 := &x.SELinux
yyv1517.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
case "runAsUser":
if r.TryDecodeAsNil() {
x.RunAsUser = RunAsUserStrategyOptions{}
} else {
2017-04-07 10:49:53 +00:00
yyv1518 := &x.RunAsUser
yyv1518.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
case "supplementalGroups":
if r.TryDecodeAsNil() {
x.SupplementalGroups = SupplementalGroupsStrategyOptions{}
} else {
2017-04-07 10:49:53 +00:00
yyv1519 := &x.SupplementalGroups
yyv1519.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
case "fsGroup":
if r.TryDecodeAsNil() {
x.FSGroup = FSGroupStrategyOptions{}
} else {
2017-04-07 10:49:53 +00:00
yyv1520 := &x.FSGroup
yyv1520.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
case "readOnlyRootFilesystem":
if r.TryDecodeAsNil() {
x.ReadOnlyRootFilesystem = false
} else {
x.ReadOnlyRootFilesystem = bool(r.DecodeBool())
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1502)
} // end switch yys1502
} // end for yyj1502
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1522 int
var yyb1522 bool
var yyhl1522 bool = l >= 0
yyj1522++
if yyhl1522 {
yyb1522 = yyj1522 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1522 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1522 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Privileged = false
} else {
x.Privileged = bool(r.DecodeBool())
}
2017-04-07 10:49:53 +00:00
yyj1522++
if yyhl1522 {
yyb1522 = yyj1522 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1522 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1522 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DefaultAddCapabilities = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1524 := &x.DefaultAddCapabilities
yym1525 := z.DecBinary()
_ = yym1525
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1524), d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyj1522++
if yyhl1522 {
yyb1522 = yyj1522 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1522 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1522 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RequiredDropCapabilities = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1526 := &x.RequiredDropCapabilities
yym1527 := z.DecBinary()
_ = yym1527
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1526), d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyj1522++
if yyhl1522 {
yyb1522 = yyj1522 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1522 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1522 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.AllowedCapabilities = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1528 := &x.AllowedCapabilities
yym1529 := z.DecBinary()
_ = yym1529
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1528), d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyj1522++
if yyhl1522 {
yyb1522 = yyj1522 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1522 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1522 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Volumes = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1530 := &x.Volumes
yym1531 := z.DecBinary()
_ = yym1531
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceFSType((*[]FSType)(yyv1530), d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyj1522++
if yyhl1522 {
yyb1522 = yyj1522 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1522 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1522 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostNetwork = false
} else {
x.HostNetwork = bool(r.DecodeBool())
}
2017-04-07 10:49:53 +00:00
yyj1522++
if yyhl1522 {
yyb1522 = yyj1522 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1522 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1522 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostPorts = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1533 := &x.HostPorts
yym1534 := z.DecBinary()
_ = yym1534
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceHostPortRange((*[]HostPortRange)(yyv1533), d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyj1522++
if yyhl1522 {
yyb1522 = yyj1522 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1522 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1522 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostPID = false
} else {
x.HostPID = bool(r.DecodeBool())
}
2017-04-07 10:49:53 +00:00
yyj1522++
if yyhl1522 {
yyb1522 = yyj1522 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1522 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1522 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostIPC = false
} else {
x.HostIPC = bool(r.DecodeBool())
}
2017-04-07 10:49:53 +00:00
yyj1522++
if yyhl1522 {
yyb1522 = yyj1522 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1522 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1522 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SELinux = SELinuxStrategyOptions{}
} else {
2017-04-07 10:49:53 +00:00
yyv1537 := &x.SELinux
yyv1537.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1522++
if yyhl1522 {
yyb1522 = yyj1522 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1522 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1522 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RunAsUser = RunAsUserStrategyOptions{}
} else {
2017-04-07 10:49:53 +00:00
yyv1538 := &x.RunAsUser
yyv1538.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1522++
if yyhl1522 {
yyb1522 = yyj1522 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1522 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1522 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SupplementalGroups = SupplementalGroupsStrategyOptions{}
} else {
2017-04-07 10:49:53 +00:00
yyv1539 := &x.SupplementalGroups
yyv1539.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1522++
if yyhl1522 {
yyb1522 = yyj1522 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1522 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1522 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FSGroup = FSGroupStrategyOptions{}
} else {
2017-04-07 10:49:53 +00:00
yyv1540 := &x.FSGroup
yyv1540.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1522++
if yyhl1522 {
yyb1522 = yyj1522 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1522 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1522 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnlyRootFilesystem = false
} else {
x.ReadOnlyRootFilesystem = bool(r.DecodeBool())
}
for {
2017-04-07 10:49:53 +00:00
yyj1522++
if yyhl1522 {
yyb1522 = yyj1522 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1522 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1522 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1522-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x FSType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1542 := z.EncBinary()
_ = yym1542
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *FSType) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1543 := z.DecBinary()
_ = yym1543
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *HostPortRange) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1544 := z.EncBinary()
_ = yym1544
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1545 := !z.EncBinary()
yy2arr1545 := z.EncBasicHandle().StructToArray
var yyq1545 [2]bool
_, _, _ = yysep1545, yyq1545, yy2arr1545
const yyr1545 bool = false
var yynn1545 int
if yyr1545 || yy2arr1545 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(2)
} else {
2017-04-07 10:49:53 +00:00
yynn1545 = 2
for _, b := range yyq1545 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1545++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1545)
yynn1545 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1545 || yy2arr1545 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yym1547 := z.EncBinary()
_ = yym1547
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeInt(int64(x.Min))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("min"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1548 := z.EncBinary()
_ = yym1548
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeInt(int64(x.Min))
}
}
2017-04-07 10:49:53 +00:00
if yyr1545 || yy2arr1545 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yym1550 := z.EncBinary()
_ = yym1550
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeInt(int64(x.Max))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("max"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1551 := z.EncBinary()
_ = yym1551
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeInt(int64(x.Max))
}
}
2017-04-07 10:49:53 +00:00
if yyr1545 || yy2arr1545 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *HostPortRange) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1552 := z.DecBinary()
_ = yym1552
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1553 := r.ContainerType()
if yyct1553 == codecSelferValueTypeMap1234 {
yyl1553 := r.ReadMapStart()
if yyl1553 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1553, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1553 == codecSelferValueTypeArray1234 {
yyl1553 := r.ReadArrayStart()
if yyl1553 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1553, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *HostPortRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1554Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1554Slc
var yyhl1554 bool = l >= 0
for yyj1554 := 0; ; yyj1554++ {
if yyhl1554 {
if yyj1554 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1554Slc = r.DecodeBytes(yys1554Slc, true, true)
yys1554 := string(yys1554Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1554 {
2017-02-07 21:33:23 +00:00
case "min":
if r.TryDecodeAsNil() {
x.Min = 0
} else {
x.Min = int32(r.DecodeInt(32))
}
case "max":
if r.TryDecodeAsNil() {
x.Max = 0
} else {
x.Max = int32(r.DecodeInt(32))
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1554)
} // end switch yys1554
} // end for yyj1554
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *HostPortRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1557 int
var yyb1557 bool
var yyhl1557 bool = l >= 0
yyj1557++
if yyhl1557 {
yyb1557 = yyj1557 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1557 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1557 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Min = 0
} else {
x.Min = int32(r.DecodeInt(32))
}
2017-04-07 10:49:53 +00:00
yyj1557++
if yyhl1557 {
yyb1557 = yyj1557 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1557 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1557 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Max = 0
} else {
x.Max = int32(r.DecodeInt(32))
}
for {
2017-04-07 10:49:53 +00:00
yyj1557++
if yyhl1557 {
yyb1557 = yyj1557 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1557 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1557 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1557-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *SELinuxStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1560 := z.EncBinary()
_ = yym1560
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1561 := !z.EncBinary()
yy2arr1561 := z.EncBasicHandle().StructToArray
var yyq1561 [2]bool
_, _, _ = yysep1561, yyq1561, yy2arr1561
const yyr1561 bool = false
yyq1561[1] = x.SELinuxOptions != nil
var yynn1561 int
if yyr1561 || yy2arr1561 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(2)
} else {
2017-04-07 10:49:53 +00:00
yynn1561 = 1
for _, b := range yyq1561 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1561++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1561)
yynn1561 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1561 || yy2arr1561 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
x.Rule.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("rule"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Rule.CodecEncodeSelf(e)
}
2017-04-07 10:49:53 +00:00
if yyr1561 || yy2arr1561 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1561[1] {
2017-02-07 21:33:23 +00:00
if x.SELinuxOptions == nil {
r.EncodeNil()
} else {
x.SELinuxOptions.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1561[1] {
2017-02-07 21:33:23 +00:00
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)
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1561 || yy2arr1561 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *SELinuxStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1564 := z.DecBinary()
_ = yym1564
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1565 := r.ContainerType()
if yyct1565 == codecSelferValueTypeMap1234 {
yyl1565 := r.ReadMapStart()
if yyl1565 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1565, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1565 == codecSelferValueTypeArray1234 {
yyl1565 := r.ReadArrayStart()
if yyl1565 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1565, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *SELinuxStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1566Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1566Slc
var yyhl1566 bool = l >= 0
for yyj1566 := 0; ; yyj1566++ {
if yyhl1566 {
if yyj1566 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1566Slc = r.DecodeBytes(yys1566Slc, true, true)
yys1566 := string(yys1566Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1566 {
2017-02-07 21:33:23 +00:00
case "rule":
if r.TryDecodeAsNil() {
x.Rule = ""
} else {
x.Rule = SELinuxStrategy(r.DecodeString())
}
case "seLinuxOptions":
if r.TryDecodeAsNil() {
if x.SELinuxOptions != nil {
x.SELinuxOptions = nil
}
} else {
if x.SELinuxOptions == nil {
x.SELinuxOptions = new(pkg2_v1.SELinuxOptions)
}
x.SELinuxOptions.CodecDecodeSelf(d)
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1566)
} // end switch yys1566
} // end for yyj1566
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *SELinuxStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1569 int
var yyb1569 bool
var yyhl1569 bool = l >= 0
yyj1569++
if yyhl1569 {
yyb1569 = yyj1569 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1569 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1569 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Rule = ""
} else {
x.Rule = SELinuxStrategy(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj1569++
if yyhl1569 {
yyb1569 = yyj1569 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1569 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1569 {
2017-02-07 21:33:23 +00:00
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(pkg2_v1.SELinuxOptions)
}
x.SELinuxOptions.CodecDecodeSelf(d)
}
for {
2017-04-07 10:49:53 +00:00
yyj1569++
if yyhl1569 {
yyb1569 = yyj1569 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1569 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1569 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1569-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x SELinuxStrategy) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1572 := z.EncBinary()
_ = yym1572
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *SELinuxStrategy) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1573 := z.DecBinary()
_ = yym1573
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *RunAsUserStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1574 := z.EncBinary()
_ = yym1574
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1575 := !z.EncBinary()
yy2arr1575 := z.EncBasicHandle().StructToArray
var yyq1575 [2]bool
_, _, _ = yysep1575, yyq1575, yy2arr1575
const yyr1575 bool = false
yyq1575[1] = len(x.Ranges) != 0
var yynn1575 int
if yyr1575 || yy2arr1575 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(2)
} else {
2017-04-07 10:49:53 +00:00
yynn1575 = 1
for _, b := range yyq1575 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1575++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1575)
yynn1575 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1575 || yy2arr1575 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
x.Rule.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("rule"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Rule.CodecEncodeSelf(e)
}
2017-04-07 10:49:53 +00:00
if yyr1575 || yy2arr1575 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1575[1] {
2017-02-07 21:33:23 +00:00
if x.Ranges == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1578 := z.EncBinary()
_ = yym1578
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceIDRange(([]IDRange)(x.Ranges), e)
}
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1575[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ranges"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Ranges == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1579 := z.EncBinary()
_ = yym1579
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceIDRange(([]IDRange)(x.Ranges), e)
}
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1575 || yy2arr1575 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *RunAsUserStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1580 := z.DecBinary()
_ = yym1580
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1581 := r.ContainerType()
if yyct1581 == codecSelferValueTypeMap1234 {
yyl1581 := r.ReadMapStart()
if yyl1581 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1581, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1581 == codecSelferValueTypeArray1234 {
yyl1581 := r.ReadArrayStart()
if yyl1581 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1581, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *RunAsUserStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1582Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1582Slc
var yyhl1582 bool = l >= 0
for yyj1582 := 0; ; yyj1582++ {
if yyhl1582 {
if yyj1582 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1582Slc = r.DecodeBytes(yys1582Slc, true, true)
yys1582 := string(yys1582Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1582 {
2017-02-07 21:33:23 +00:00
case "rule":
if r.TryDecodeAsNil() {
x.Rule = ""
} else {
x.Rule = RunAsUserStrategy(r.DecodeString())
}
case "ranges":
if r.TryDecodeAsNil() {
x.Ranges = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1584 := &x.Ranges
yym1585 := z.DecBinary()
_ = yym1585
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceIDRange((*[]IDRange)(yyv1584), d)
2017-02-07 21:33:23 +00:00
}
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1582)
} // end switch yys1582
} // end for yyj1582
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *RunAsUserStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1586 int
var yyb1586 bool
var yyhl1586 bool = l >= 0
yyj1586++
if yyhl1586 {
yyb1586 = yyj1586 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1586 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1586 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Rule = ""
} else {
x.Rule = RunAsUserStrategy(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj1586++
if yyhl1586 {
yyb1586 = yyj1586 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1586 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1586 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ranges = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1588 := &x.Ranges
yym1589 := z.DecBinary()
_ = yym1589
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceIDRange((*[]IDRange)(yyv1588), d)
2017-02-07 21:33:23 +00:00
}
}
for {
2017-04-07 10:49:53 +00:00
yyj1586++
if yyhl1586 {
yyb1586 = yyj1586 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1586 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1586 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1586-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *IDRange) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1590 := z.EncBinary()
_ = yym1590
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1591 := !z.EncBinary()
yy2arr1591 := z.EncBasicHandle().StructToArray
var yyq1591 [2]bool
_, _, _ = yysep1591, yyq1591, yy2arr1591
const yyr1591 bool = false
var yynn1591 int
if yyr1591 || yy2arr1591 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(2)
} else {
2017-04-07 10:49:53 +00:00
yynn1591 = 2
for _, b := range yyq1591 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1591++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1591)
yynn1591 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1591 || yy2arr1591 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yym1593 := z.EncBinary()
_ = yym1593
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeInt(int64(x.Min))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("min"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1594 := z.EncBinary()
_ = yym1594
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeInt(int64(x.Min))
}
}
2017-04-07 10:49:53 +00:00
if yyr1591 || yy2arr1591 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yym1596 := z.EncBinary()
_ = yym1596
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeInt(int64(x.Max))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("max"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1597 := z.EncBinary()
_ = yym1597
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeInt(int64(x.Max))
}
}
2017-04-07 10:49:53 +00:00
if yyr1591 || yy2arr1591 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *IDRange) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1598 := z.DecBinary()
_ = yym1598
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1599 := r.ContainerType()
if yyct1599 == codecSelferValueTypeMap1234 {
yyl1599 := r.ReadMapStart()
if yyl1599 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1599, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1599 == codecSelferValueTypeArray1234 {
yyl1599 := r.ReadArrayStart()
if yyl1599 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1599, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *IDRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1600Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1600Slc
var yyhl1600 bool = l >= 0
for yyj1600 := 0; ; yyj1600++ {
if yyhl1600 {
if yyj1600 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1600Slc = r.DecodeBytes(yys1600Slc, true, true)
yys1600 := string(yys1600Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1600 {
2017-02-07 21:33:23 +00:00
case "min":
if r.TryDecodeAsNil() {
x.Min = 0
} else {
x.Min = int64(r.DecodeInt(64))
}
case "max":
if r.TryDecodeAsNil() {
x.Max = 0
} else {
x.Max = int64(r.DecodeInt(64))
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1600)
} // end switch yys1600
} // end for yyj1600
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *IDRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1603 int
var yyb1603 bool
var yyhl1603 bool = l >= 0
yyj1603++
if yyhl1603 {
yyb1603 = yyj1603 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1603 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1603 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Min = 0
} else {
x.Min = int64(r.DecodeInt(64))
}
2017-04-07 10:49:53 +00:00
yyj1603++
if yyhl1603 {
yyb1603 = yyj1603 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1603 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1603 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Max = 0
} else {
x.Max = int64(r.DecodeInt(64))
}
for {
2017-04-07 10:49:53 +00:00
yyj1603++
if yyhl1603 {
yyb1603 = yyj1603 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1603 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1603 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1603-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x RunAsUserStrategy) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1606 := z.EncBinary()
_ = yym1606
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *RunAsUserStrategy) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1607 := z.DecBinary()
_ = yym1607
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *FSGroupStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1608 := z.EncBinary()
_ = yym1608
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1609 := !z.EncBinary()
yy2arr1609 := z.EncBasicHandle().StructToArray
var yyq1609 [2]bool
_, _, _ = yysep1609, yyq1609, yy2arr1609
const yyr1609 bool = false
yyq1609[0] = x.Rule != ""
yyq1609[1] = len(x.Ranges) != 0
var yynn1609 int
if yyr1609 || yy2arr1609 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(2)
} else {
2017-04-07 10:49:53 +00:00
yynn1609 = 0
for _, b := range yyq1609 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1609++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1609)
yynn1609 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1609 || yy2arr1609 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1609[0] {
2017-02-07 21:33:23 +00:00
x.Rule.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1609[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("rule"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Rule.CodecEncodeSelf(e)
}
}
2017-04-07 10:49:53 +00:00
if yyr1609 || yy2arr1609 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1609[1] {
2017-02-07 21:33:23 +00:00
if x.Ranges == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1612 := z.EncBinary()
_ = yym1612
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceIDRange(([]IDRange)(x.Ranges), e)
}
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1609[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ranges"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Ranges == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1613 := z.EncBinary()
_ = yym1613
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceIDRange(([]IDRange)(x.Ranges), e)
}
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1609 || yy2arr1609 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *FSGroupStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1614 := z.DecBinary()
_ = yym1614
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1615 := r.ContainerType()
if yyct1615 == codecSelferValueTypeMap1234 {
yyl1615 := r.ReadMapStart()
if yyl1615 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1615, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1615 == codecSelferValueTypeArray1234 {
yyl1615 := r.ReadArrayStart()
if yyl1615 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1615, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *FSGroupStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1616Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1616Slc
var yyhl1616 bool = l >= 0
for yyj1616 := 0; ; yyj1616++ {
if yyhl1616 {
if yyj1616 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1616Slc = r.DecodeBytes(yys1616Slc, true, true)
yys1616 := string(yys1616Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1616 {
2017-02-07 21:33:23 +00:00
case "rule":
if r.TryDecodeAsNil() {
x.Rule = ""
} else {
x.Rule = FSGroupStrategyType(r.DecodeString())
}
case "ranges":
if r.TryDecodeAsNil() {
x.Ranges = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1618 := &x.Ranges
yym1619 := z.DecBinary()
_ = yym1619
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceIDRange((*[]IDRange)(yyv1618), d)
2017-02-07 21:33:23 +00:00
}
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1616)
} // end switch yys1616
} // end for yyj1616
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *FSGroupStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1620 int
var yyb1620 bool
var yyhl1620 bool = l >= 0
yyj1620++
if yyhl1620 {
yyb1620 = yyj1620 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1620 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1620 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Rule = ""
} else {
x.Rule = FSGroupStrategyType(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj1620++
if yyhl1620 {
yyb1620 = yyj1620 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1620 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1620 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ranges = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1622 := &x.Ranges
yym1623 := z.DecBinary()
_ = yym1623
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceIDRange((*[]IDRange)(yyv1622), d)
2017-02-07 21:33:23 +00:00
}
}
for {
2017-04-07 10:49:53 +00:00
yyj1620++
if yyhl1620 {
yyb1620 = yyj1620 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1620 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1620 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1620-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x FSGroupStrategyType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1624 := z.EncBinary()
_ = yym1624
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *FSGroupStrategyType) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1625 := z.DecBinary()
_ = yym1625
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *SupplementalGroupsStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1626 := z.EncBinary()
_ = yym1626
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1627 := !z.EncBinary()
yy2arr1627 := z.EncBasicHandle().StructToArray
var yyq1627 [2]bool
_, _, _ = yysep1627, yyq1627, yy2arr1627
const yyr1627 bool = false
yyq1627[0] = x.Rule != ""
yyq1627[1] = len(x.Ranges) != 0
var yynn1627 int
if yyr1627 || yy2arr1627 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(2)
} else {
2017-04-07 10:49:53 +00:00
yynn1627 = 0
for _, b := range yyq1627 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1627++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1627)
yynn1627 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1627 || yy2arr1627 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1627[0] {
2017-02-07 21:33:23 +00:00
x.Rule.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1627[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("rule"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Rule.CodecEncodeSelf(e)
}
}
2017-04-07 10:49:53 +00:00
if yyr1627 || yy2arr1627 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1627[1] {
2017-02-07 21:33:23 +00:00
if x.Ranges == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1630 := z.EncBinary()
_ = yym1630
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceIDRange(([]IDRange)(x.Ranges), e)
}
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1627[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ranges"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Ranges == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1631 := z.EncBinary()
_ = yym1631
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceIDRange(([]IDRange)(x.Ranges), e)
}
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1627 || yy2arr1627 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *SupplementalGroupsStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1632 := z.DecBinary()
_ = yym1632
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1633 := r.ContainerType()
if yyct1633 == codecSelferValueTypeMap1234 {
yyl1633 := r.ReadMapStart()
if yyl1633 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1633, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1633 == codecSelferValueTypeArray1234 {
yyl1633 := r.ReadArrayStart()
if yyl1633 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1633, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1634Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1634Slc
var yyhl1634 bool = l >= 0
for yyj1634 := 0; ; yyj1634++ {
if yyhl1634 {
if yyj1634 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1634Slc = r.DecodeBytes(yys1634Slc, true, true)
yys1634 := string(yys1634Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1634 {
2017-02-07 21:33:23 +00:00
case "rule":
if r.TryDecodeAsNil() {
x.Rule = ""
} else {
x.Rule = SupplementalGroupsStrategyType(r.DecodeString())
}
case "ranges":
if r.TryDecodeAsNil() {
x.Ranges = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1636 := &x.Ranges
yym1637 := z.DecBinary()
_ = yym1637
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceIDRange((*[]IDRange)(yyv1636), d)
2017-02-07 21:33:23 +00:00
}
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1634)
} // end switch yys1634
} // end for yyj1634
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1638 int
var yyb1638 bool
var yyhl1638 bool = l >= 0
yyj1638++
if yyhl1638 {
yyb1638 = yyj1638 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1638 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1638 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Rule = ""
} else {
x.Rule = SupplementalGroupsStrategyType(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj1638++
if yyhl1638 {
yyb1638 = yyj1638 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1638 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1638 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ranges = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1640 := &x.Ranges
yym1641 := z.DecBinary()
_ = yym1641
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceIDRange((*[]IDRange)(yyv1640), d)
2017-02-07 21:33:23 +00:00
}
}
for {
2017-04-07 10:49:53 +00:00
yyj1638++
if yyhl1638 {
yyb1638 = yyj1638 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1638 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1638 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1638-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x SupplementalGroupsStrategyType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1642 := z.EncBinary()
_ = yym1642
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *SupplementalGroupsStrategyType) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1643 := z.DecBinary()
_ = yym1643
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *PodSecurityPolicyList) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1644 := z.EncBinary()
_ = yym1644
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1645 := !z.EncBinary()
yy2arr1645 := z.EncBasicHandle().StructToArray
var yyq1645 [4]bool
_, _, _ = yysep1645, yyq1645, yy2arr1645
const yyr1645 bool = false
yyq1645[0] = x.Kind != ""
yyq1645[1] = x.APIVersion != ""
yyq1645[2] = true
var yynn1645 int
if yyr1645 || yy2arr1645 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(4)
} else {
2017-04-07 10:49:53 +00:00
yynn1645 = 1
for _, b := range yyq1645 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1645++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1645)
yynn1645 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1645 || yy2arr1645 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1645[0] {
yym1647 := z.EncBinary()
_ = yym1647
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1645[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1648 := z.EncBinary()
_ = yym1648
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1645 || yy2arr1645 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1645[1] {
yym1650 := z.EncBinary()
_ = yym1650
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1645[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1651 := z.EncBinary()
_ = yym1651
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1645 || yy2arr1645 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1645[2] {
yy1653 := &x.ListMeta
yym1654 := z.EncBinary()
_ = yym1654
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(yy1653) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.EncFallback(yy1653)
2017-02-07 21:33:23 +00:00
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1645[2] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy1655 := &x.ListMeta
yym1656 := z.EncBinary()
_ = yym1656
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(yy1655) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.EncFallback(yy1655)
2017-02-07 21:33:23 +00:00
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1645 || yy2arr1645 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1658 := z.EncBinary()
_ = yym1658
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSlicePodSecurityPolicy(([]PodSecurityPolicy)(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 {
2017-04-07 10:49:53 +00:00
yym1659 := z.EncBinary()
_ = yym1659
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSlicePodSecurityPolicy(([]PodSecurityPolicy)(x.Items), e)
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1645 || yy2arr1645 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *PodSecurityPolicyList) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1660 := z.DecBinary()
_ = yym1660
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1661 := r.ContainerType()
if yyct1661 == codecSelferValueTypeMap1234 {
yyl1661 := r.ReadMapStart()
if yyl1661 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1661, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1661 == codecSelferValueTypeArray1234 {
yyl1661 := r.ReadArrayStart()
if yyl1661 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1661, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PodSecurityPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1662Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1662Slc
var yyhl1662 bool = l >= 0
for yyj1662 := 0; ; yyj1662++ {
if yyhl1662 {
if yyj1662 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1662Slc = r.DecodeBytes(yys1662Slc, true, true)
yys1662 := string(yys1662Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1662 {
2017-02-07 21:33:23 +00:00
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 = pkg1_unversioned.ListMeta{}
} else {
2017-04-07 10:49:53 +00:00
yyv1665 := &x.ListMeta
yym1666 := z.DecBinary()
_ = yym1666
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.DecExt(yyv1665) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.DecFallback(yyv1665, false)
2017-02-07 21:33:23 +00:00
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1667 := &x.Items
yym1668 := z.DecBinary()
_ = yym1668
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1667), d)
2017-02-07 21:33:23 +00:00
}
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1662)
} // end switch yys1662
} // end for yyj1662
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1669 int
var yyb1669 bool
var yyhl1669 bool = l >= 0
yyj1669++
if yyhl1669 {
yyb1669 = yyj1669 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1669 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1669 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj1669++
if yyhl1669 {
yyb1669 = yyj1669 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1669 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1669 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj1669++
if yyhl1669 {
yyb1669 = yyj1669 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1669 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1669 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg1_unversioned.ListMeta{}
} else {
2017-04-07 10:49:53 +00:00
yyv1672 := &x.ListMeta
yym1673 := z.DecBinary()
_ = yym1673
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.DecExt(yyv1672) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.DecFallback(yyv1672, false)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyj1669++
if yyhl1669 {
yyb1669 = yyj1669 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1669 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1669 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1674 := &x.Items
yym1675 := z.DecBinary()
_ = yym1675
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1674), d)
2017-02-07 21:33:23 +00:00
}
}
for {
2017-04-07 10:49:53 +00:00
yyj1669++
if yyhl1669 {
yyb1669 = yyj1669 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1669 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1669 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1669-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *NetworkPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1676 := z.EncBinary()
_ = yym1676
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1677 := !z.EncBinary()
yy2arr1677 := z.EncBasicHandle().StructToArray
var yyq1677 [4]bool
_, _, _ = yysep1677, yyq1677, yy2arr1677
const yyr1677 bool = false
yyq1677[0] = x.Kind != ""
yyq1677[1] = x.APIVersion != ""
yyq1677[2] = true
yyq1677[3] = true
var yynn1677 int
if yyr1677 || yy2arr1677 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(4)
} else {
2017-04-07 10:49:53 +00:00
yynn1677 = 0
for _, b := range yyq1677 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1677++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1677)
yynn1677 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1677 || yy2arr1677 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1677[0] {
yym1679 := z.EncBinary()
_ = yym1679
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1677[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1680 := z.EncBinary()
_ = yym1680
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1677 || yy2arr1677 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1677[1] {
yym1682 := z.EncBinary()
_ = yym1682
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1677[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1683 := z.EncBinary()
_ = yym1683
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1677 || yy2arr1677 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1677[2] {
yy1685 := &x.ObjectMeta
yy1685.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1677[2] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy1686 := &x.ObjectMeta
yy1686.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyr1677 || yy2arr1677 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1677[3] {
yy1688 := &x.Spec
yy1688.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1677[3] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy1689 := &x.Spec
yy1689.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyr1677 || yy2arr1677 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *NetworkPolicy) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1690 := z.DecBinary()
_ = yym1690
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1691 := r.ContainerType()
if yyct1691 == codecSelferValueTypeMap1234 {
yyl1691 := r.ReadMapStart()
if yyl1691 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1691, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1691 == codecSelferValueTypeArray1234 {
yyl1691 := r.ReadArrayStart()
if yyl1691 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1691, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NetworkPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1692Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1692Slc
var yyhl1692 bool = l >= 0
for yyj1692 := 0; ; yyj1692++ {
if yyhl1692 {
if yyj1692 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1692Slc = r.DecodeBytes(yys1692Slc, true, true)
yys1692 := string(yys1692Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1692 {
2017-02-07 21:33:23 +00:00
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 = pkg2_v1.ObjectMeta{}
} else {
2017-04-07 10:49:53 +00:00
yyv1695 := &x.ObjectMeta
yyv1695.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = NetworkPolicySpec{}
} else {
2017-04-07 10:49:53 +00:00
yyv1696 := &x.Spec
yyv1696.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1692)
} // end switch yys1692
} // end for yyj1692
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *NetworkPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1697 int
var yyb1697 bool
var yyhl1697 bool = l >= 0
yyj1697++
if yyhl1697 {
yyb1697 = yyj1697 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1697 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1697 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj1697++
if yyhl1697 {
yyb1697 = yyj1697 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1697 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1697 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj1697++
if yyhl1697 {
yyb1697 = yyj1697 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1697 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1697 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_v1.ObjectMeta{}
} else {
2017-04-07 10:49:53 +00:00
yyv1700 := &x.ObjectMeta
yyv1700.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1697++
if yyhl1697 {
yyb1697 = yyj1697 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1697 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1697 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = NetworkPolicySpec{}
} else {
2017-04-07 10:49:53 +00:00
yyv1701 := &x.Spec
yyv1701.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
for {
2017-04-07 10:49:53 +00:00
yyj1697++
if yyhl1697 {
yyb1697 = yyj1697 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1697 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1697 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1697-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *NetworkPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1702 := z.EncBinary()
_ = yym1702
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1703 := !z.EncBinary()
yy2arr1703 := z.EncBasicHandle().StructToArray
var yyq1703 [2]bool
_, _, _ = yysep1703, yyq1703, yy2arr1703
const yyr1703 bool = false
yyq1703[1] = len(x.Ingress) != 0
var yynn1703 int
if yyr1703 || yy2arr1703 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(2)
} else {
2017-04-07 10:49:53 +00:00
yynn1703 = 1
for _, b := range yyq1703 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1703++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1703)
yynn1703 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1703 || yy2arr1703 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1705 := &x.PodSelector
yym1706 := z.EncBinary()
_ = yym1706
if false {
} else if z.HasExtensions() && z.EncExt(yy1705) {
} else {
z.EncFallback(yy1705)
}
2017-02-07 21:33:23 +00:00
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("podSelector"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy1707 := &x.PodSelector
yym1708 := z.EncBinary()
_ = yym1708
if false {
} else if z.HasExtensions() && z.EncExt(yy1707) {
} else {
z.EncFallback(yy1707)
}
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1703 || yy2arr1703 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1703[1] {
2017-02-07 21:33:23 +00:00
if x.Ingress == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1710 := z.EncBinary()
_ = yym1710
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceNetworkPolicyIngressRule(([]NetworkPolicyIngressRule)(x.Ingress), e)
}
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1703[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ingress"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Ingress == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1711 := z.EncBinary()
_ = yym1711
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceNetworkPolicyIngressRule(([]NetworkPolicyIngressRule)(x.Ingress), e)
}
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1703 || yy2arr1703 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *NetworkPolicySpec) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1712 := z.DecBinary()
_ = yym1712
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1713 := r.ContainerType()
if yyct1713 == codecSelferValueTypeMap1234 {
yyl1713 := r.ReadMapStart()
if yyl1713 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1713, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1713 == codecSelferValueTypeArray1234 {
yyl1713 := r.ReadArrayStart()
if yyl1713 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1713, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NetworkPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1714Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1714Slc
var yyhl1714 bool = l >= 0
for yyj1714 := 0; ; yyj1714++ {
if yyhl1714 {
if yyj1714 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1714Slc = r.DecodeBytes(yys1714Slc, true, true)
yys1714 := string(yys1714Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1714 {
2017-02-07 21:33:23 +00:00
case "podSelector":
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.PodSelector = pkg1_unversioned.LabelSelector{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1715 := &x.PodSelector
yym1716 := z.DecBinary()
_ = yym1716
if false {
} else if z.HasExtensions() && z.DecExt(yyv1715) {
} else {
z.DecFallback(yyv1715, false)
}
2017-02-07 21:33:23 +00:00
}
case "ingress":
if r.TryDecodeAsNil() {
x.Ingress = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1717 := &x.Ingress
yym1718 := z.DecBinary()
_ = yym1718
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1717), d)
2017-02-07 21:33:23 +00:00
}
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1714)
} // end switch yys1714
} // end for yyj1714
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *NetworkPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1719 int
var yyb1719 bool
var yyhl1719 bool = l >= 0
yyj1719++
if yyhl1719 {
yyb1719 = yyj1719 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1719 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1719 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
x.PodSelector = pkg1_unversioned.LabelSelector{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1720 := &x.PodSelector
yym1721 := z.DecBinary()
_ = yym1721
if false {
} else if z.HasExtensions() && z.DecExt(yyv1720) {
} else {
z.DecFallback(yyv1720, false)
}
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1719++
if yyhl1719 {
yyb1719 = yyj1719 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1719 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1719 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ingress = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1722 := &x.Ingress
yym1723 := z.DecBinary()
_ = yym1723
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1722), d)
2017-02-07 21:33:23 +00:00
}
}
for {
2017-04-07 10:49:53 +00:00
yyj1719++
if yyhl1719 {
yyb1719 = yyj1719 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1719 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1719 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1719-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1724 := z.EncBinary()
_ = yym1724
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1725 := !z.EncBinary()
yy2arr1725 := z.EncBasicHandle().StructToArray
var yyq1725 [2]bool
_, _, _ = yysep1725, yyq1725, yy2arr1725
const yyr1725 bool = false
yyq1725[0] = len(x.Ports) != 0
yyq1725[1] = len(x.From) != 0
var yynn1725 int
if yyr1725 || yy2arr1725 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(2)
} else {
2017-04-07 10:49:53 +00:00
yynn1725 = 0
for _, b := range yyq1725 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1725++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1725)
yynn1725 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1725 || yy2arr1725 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1725[0] {
2017-02-07 21:33:23 +00:00
if x.Ports == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1727 := z.EncBinary()
_ = yym1727
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceNetworkPolicyPort(([]NetworkPolicyPort)(x.Ports), e)
}
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1725[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ports"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Ports == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1728 := z.EncBinary()
_ = yym1728
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceNetworkPolicyPort(([]NetworkPolicyPort)(x.Ports), e)
}
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1725 || yy2arr1725 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1725[1] {
2017-02-07 21:33:23 +00:00
if x.From == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1730 := z.EncBinary()
_ = yym1730
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceNetworkPolicyPeer(([]NetworkPolicyPeer)(x.From), e)
}
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1725[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("from"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.From == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1731 := z.EncBinary()
_ = yym1731
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceNetworkPolicyPeer(([]NetworkPolicyPeer)(x.From), e)
}
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1725 || yy2arr1725 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *NetworkPolicyIngressRule) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1732 := z.DecBinary()
_ = yym1732
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1733 := r.ContainerType()
if yyct1733 == codecSelferValueTypeMap1234 {
yyl1733 := r.ReadMapStart()
if yyl1733 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1733, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1733 == codecSelferValueTypeArray1234 {
yyl1733 := r.ReadArrayStart()
if yyl1733 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1733, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NetworkPolicyIngressRule) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1734Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1734Slc
var yyhl1734 bool = l >= 0
for yyj1734 := 0; ; yyj1734++ {
if yyhl1734 {
if yyj1734 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1734Slc = r.DecodeBytes(yys1734Slc, true, true)
yys1734 := string(yys1734Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1734 {
2017-02-07 21:33:23 +00:00
case "ports":
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1735 := &x.Ports
yym1736 := z.DecBinary()
_ = yym1736
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1735), d)
2017-02-07 21:33:23 +00:00
}
}
case "from":
if r.TryDecodeAsNil() {
x.From = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1737 := &x.From
yym1738 := z.DecBinary()
_ = yym1738
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1737), d)
2017-02-07 21:33:23 +00:00
}
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1734)
} // end switch yys1734
} // end for yyj1734
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *NetworkPolicyIngressRule) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1739 int
var yyb1739 bool
var yyhl1739 bool = l >= 0
yyj1739++
if yyhl1739 {
yyb1739 = yyj1739 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1739 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1739 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1740 := &x.Ports
yym1741 := z.DecBinary()
_ = yym1741
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1740), d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyj1739++
if yyhl1739 {
yyb1739 = yyj1739 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1739 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1739 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.From = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1742 := &x.From
yym1743 := z.DecBinary()
_ = yym1743
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1742), d)
2017-02-07 21:33:23 +00:00
}
}
for {
2017-04-07 10:49:53 +00:00
yyj1739++
if yyhl1739 {
yyb1739 = yyj1739 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1739 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1739 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1739-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *NetworkPolicyPort) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1744 := z.EncBinary()
_ = yym1744
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1745 := !z.EncBinary()
yy2arr1745 := z.EncBasicHandle().StructToArray
var yyq1745 [2]bool
_, _, _ = yysep1745, yyq1745, yy2arr1745
const yyr1745 bool = false
yyq1745[0] = x.Protocol != nil
yyq1745[1] = x.Port != nil
var yynn1745 int
if yyr1745 || yy2arr1745 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(2)
} else {
2017-04-07 10:49:53 +00:00
yynn1745 = 0
for _, b := range yyq1745 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1745++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1745)
yynn1745 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1745 || yy2arr1745 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1745[0] {
2017-02-07 21:33:23 +00:00
if x.Protocol == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yy1747 := *x.Protocol
yym1748 := z.EncBinary()
_ = yym1748
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(yy1747) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string(yy1747))
2017-02-07 21:33:23 +00:00
}
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1745[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("protocol"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Protocol == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yy1749 := *x.Protocol
yym1750 := z.EncBinary()
_ = yym1750
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(yy1749) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string(yy1749))
2017-02-07 21:33:23 +00:00
}
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1745 || yy2arr1745 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1745[1] {
2017-02-07 21:33:23 +00:00
if x.Port == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1752 := z.EncBinary()
_ = yym1752
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x.Port) {
2017-04-07 10:49:53 +00:00
} else if !yym1752 && z.IsJSONHandle() {
2017-02-07 21:33:23 +00:00
z.EncJSONMarshal(x.Port)
} else {
z.EncFallback(x.Port)
}
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1745[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Port == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1753 := z.EncBinary()
_ = yym1753
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x.Port) {
2017-04-07 10:49:53 +00:00
} else if !yym1753 && z.IsJSONHandle() {
2017-02-07 21:33:23 +00:00
z.EncJSONMarshal(x.Port)
} else {
z.EncFallback(x.Port)
}
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1745 || yy2arr1745 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *NetworkPolicyPort) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1754 := z.DecBinary()
_ = yym1754
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1755 := r.ContainerType()
if yyct1755 == codecSelferValueTypeMap1234 {
yyl1755 := r.ReadMapStart()
if yyl1755 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1755, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1755 == codecSelferValueTypeArray1234 {
yyl1755 := r.ReadArrayStart()
if yyl1755 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1755, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NetworkPolicyPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1756Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1756Slc
var yyhl1756 bool = l >= 0
for yyj1756 := 0; ; yyj1756++ {
if yyhl1756 {
if yyj1756 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1756Slc = r.DecodeBytes(yys1756Slc, true, true)
yys1756 := string(yys1756Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1756 {
2017-02-07 21:33:23 +00:00
case "protocol":
if r.TryDecodeAsNil() {
if x.Protocol != nil {
x.Protocol = nil
}
} else {
if x.Protocol == nil {
x.Protocol = new(pkg2_v1.Protocol)
}
x.Protocol.CodecDecodeSelf(d)
}
case "port":
if r.TryDecodeAsNil() {
if x.Port != nil {
x.Port = nil
}
} else {
if x.Port == nil {
x.Port = new(pkg5_intstr.IntOrString)
}
2017-04-07 10:49:53 +00:00
yym1759 := z.DecBinary()
_ = yym1759
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x.Port) {
2017-04-07 10:49:53 +00:00
} else if !yym1759 && z.IsJSONHandle() {
2017-02-07 21:33:23 +00:00
z.DecJSONUnmarshal(x.Port)
} else {
z.DecFallback(x.Port, false)
}
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1756)
} // end switch yys1756
} // end for yyj1756
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *NetworkPolicyPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1760 int
var yyb1760 bool
var yyhl1760 bool = l >= 0
yyj1760++
if yyhl1760 {
yyb1760 = yyj1760 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1760 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1760 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Protocol != nil {
x.Protocol = nil
}
} else {
if x.Protocol == nil {
x.Protocol = new(pkg2_v1.Protocol)
}
x.Protocol.CodecDecodeSelf(d)
}
2017-04-07 10:49:53 +00:00
yyj1760++
if yyhl1760 {
yyb1760 = yyj1760 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1760 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1760 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Port != nil {
x.Port = nil
}
} else {
if x.Port == nil {
x.Port = new(pkg5_intstr.IntOrString)
}
2017-04-07 10:49:53 +00:00
yym1763 := z.DecBinary()
_ = yym1763
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x.Port) {
2017-04-07 10:49:53 +00:00
} else if !yym1763 && z.IsJSONHandle() {
2017-02-07 21:33:23 +00:00
z.DecJSONUnmarshal(x.Port)
} else {
z.DecFallback(x.Port, false)
}
}
for {
2017-04-07 10:49:53 +00:00
yyj1760++
if yyhl1760 {
yyb1760 = yyj1760 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1760 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1760 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1760-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1764 := z.EncBinary()
_ = yym1764
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1765 := !z.EncBinary()
yy2arr1765 := z.EncBasicHandle().StructToArray
var yyq1765 [2]bool
_, _, _ = yysep1765, yyq1765, yy2arr1765
const yyr1765 bool = false
yyq1765[0] = x.PodSelector != nil
yyq1765[1] = x.NamespaceSelector != nil
var yynn1765 int
if yyr1765 || yy2arr1765 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(2)
} else {
2017-04-07 10:49:53 +00:00
yynn1765 = 0
for _, b := range yyq1765 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1765++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1765)
yynn1765 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1765 || yy2arr1765 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1765[0] {
2017-02-07 21:33:23 +00:00
if x.PodSelector == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1767 := z.EncBinary()
_ = yym1767
if false {
} else if z.HasExtensions() && z.EncExt(x.PodSelector) {
} else {
z.EncFallback(x.PodSelector)
}
2017-02-07 21:33:23 +00:00
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1765[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("podSelector"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.PodSelector == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1768 := z.EncBinary()
_ = yym1768
if false {
} else if z.HasExtensions() && z.EncExt(x.PodSelector) {
} else {
z.EncFallback(x.PodSelector)
}
2017-02-07 21:33:23 +00:00
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1765 || yy2arr1765 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1765[1] {
2017-02-07 21:33:23 +00:00
if x.NamespaceSelector == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1770 := z.EncBinary()
_ = yym1770
if false {
} else if z.HasExtensions() && z.EncExt(x.NamespaceSelector) {
} else {
z.EncFallback(x.NamespaceSelector)
}
2017-02-07 21:33:23 +00:00
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1765[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("namespaceSelector"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.NamespaceSelector == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1771 := z.EncBinary()
_ = yym1771
if false {
} else if z.HasExtensions() && z.EncExt(x.NamespaceSelector) {
} else {
z.EncFallback(x.NamespaceSelector)
}
2017-02-07 21:33:23 +00:00
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1765 || yy2arr1765 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *NetworkPolicyPeer) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1772 := z.DecBinary()
_ = yym1772
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1773 := r.ContainerType()
if yyct1773 == codecSelferValueTypeMap1234 {
yyl1773 := r.ReadMapStart()
if yyl1773 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1773, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1773 == codecSelferValueTypeArray1234 {
yyl1773 := r.ReadArrayStart()
if yyl1773 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1773, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1774Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1774Slc
var yyhl1774 bool = l >= 0
for yyj1774 := 0; ; yyj1774++ {
if yyhl1774 {
if yyj1774 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1774Slc = r.DecodeBytes(yys1774Slc, true, true)
yys1774 := string(yys1774Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1774 {
2017-02-07 21:33:23 +00:00
case "podSelector":
if r.TryDecodeAsNil() {
if x.PodSelector != nil {
x.PodSelector = nil
}
} else {
if x.PodSelector == nil {
2017-04-07 10:49:53 +00:00
x.PodSelector = new(pkg1_unversioned.LabelSelector)
}
yym1776 := z.DecBinary()
_ = yym1776
if false {
} else if z.HasExtensions() && z.DecExt(x.PodSelector) {
} else {
z.DecFallback(x.PodSelector, false)
2017-02-07 21:33:23 +00:00
}
}
case "namespaceSelector":
if r.TryDecodeAsNil() {
if x.NamespaceSelector != nil {
x.NamespaceSelector = nil
}
} else {
if x.NamespaceSelector == nil {
2017-04-07 10:49:53 +00:00
x.NamespaceSelector = new(pkg1_unversioned.LabelSelector)
}
yym1778 := z.DecBinary()
_ = yym1778
if false {
} else if z.HasExtensions() && z.DecExt(x.NamespaceSelector) {
} else {
z.DecFallback(x.NamespaceSelector, false)
2017-02-07 21:33:23 +00:00
}
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1774)
} // end switch yys1774
} // end for yyj1774
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *NetworkPolicyPeer) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1779 int
var yyb1779 bool
var yyhl1779 bool = l >= 0
yyj1779++
if yyhl1779 {
yyb1779 = yyj1779 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1779 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1779 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.PodSelector != nil {
x.PodSelector = nil
}
} else {
if x.PodSelector == nil {
2017-04-07 10:49:53 +00:00
x.PodSelector = new(pkg1_unversioned.LabelSelector)
}
yym1781 := z.DecBinary()
_ = yym1781
if false {
} else if z.HasExtensions() && z.DecExt(x.PodSelector) {
} else {
z.DecFallback(x.PodSelector, false)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyj1779++
if yyhl1779 {
yyb1779 = yyj1779 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1779 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1779 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.NamespaceSelector != nil {
x.NamespaceSelector = nil
}
} else {
if x.NamespaceSelector == nil {
2017-04-07 10:49:53 +00:00
x.NamespaceSelector = new(pkg1_unversioned.LabelSelector)
}
yym1783 := z.DecBinary()
_ = yym1783
if false {
} else if z.HasExtensions() && z.DecExt(x.NamespaceSelector) {
} else {
z.DecFallback(x.NamespaceSelector, false)
2017-02-07 21:33:23 +00:00
}
}
for {
2017-04-07 10:49:53 +00:00
yyj1779++
if yyhl1779 {
yyb1779 = yyj1779 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1779 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1779 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1779-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *NetworkPolicyList) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1784 := z.EncBinary()
_ = yym1784
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yysep1785 := !z.EncBinary()
yy2arr1785 := z.EncBasicHandle().StructToArray
var yyq1785 [4]bool
_, _, _ = yysep1785, yyq1785, yy2arr1785
const yyr1785 bool = false
yyq1785[0] = x.Kind != ""
yyq1785[1] = x.APIVersion != ""
yyq1785[2] = true
var yynn1785 int
if yyr1785 || yy2arr1785 {
2017-02-07 21:33:23 +00:00
r.EncodeArrayStart(4)
} else {
2017-04-07 10:49:53 +00:00
yynn1785 = 1
for _, b := range yyq1785 {
2017-02-07 21:33:23 +00:00
if b {
2017-04-07 10:49:53 +00:00
yynn1785++
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
r.EncodeMapStart(yynn1785)
yynn1785 = 0
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyr1785 || yy2arr1785 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1785[0] {
yym1787 := z.EncBinary()
_ = yym1787
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1785[0] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1788 := z.EncBinary()
_ = yym1788
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1785 || yy2arr1785 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1785[1] {
yym1790 := z.EncBinary()
_ = yym1790
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1785[1] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yym1791 := z.EncBinary()
_ = yym1791
2017-02-07 21:33:23 +00:00
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1785 || yy2arr1785 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
if yyq1785[2] {
yy1793 := &x.ListMeta
yym1794 := z.EncBinary()
_ = yym1794
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(yy1793) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.EncFallback(yy1793)
2017-02-07 21:33:23 +00:00
}
} else {
r.EncodeNil()
}
} else {
2017-04-07 10:49:53 +00:00
if yyq1785[2] {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
yy1795 := &x.ListMeta
yym1796 := z.EncBinary()
_ = yym1796
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(yy1795) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.EncFallback(yy1795)
2017-02-07 21:33:23 +00:00
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1785 || yy2arr1785 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
2017-04-07 10:49:53 +00:00
yym1798 := z.EncBinary()
_ = yym1798
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceNetworkPolicy(([]NetworkPolicy)(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 {
2017-04-07 10:49:53 +00:00
yym1799 := z.EncBinary()
_ = yym1799
2017-02-07 21:33:23 +00:00
if false {
} else {
h.encSliceNetworkPolicy(([]NetworkPolicy)(x.Items), e)
}
}
}
2017-04-07 10:49:53 +00:00
if yyr1785 || yy2arr1785 {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *NetworkPolicyList) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yym1800 := z.DecBinary()
_ = yym1800
2017-02-07 21:33:23 +00:00
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
2017-04-07 10:49:53 +00:00
yyct1801 := r.ContainerType()
if yyct1801 == codecSelferValueTypeMap1234 {
yyl1801 := r.ReadMapStart()
if yyl1801 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromMap(yyl1801, d)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyct1801 == codecSelferValueTypeArray1234 {
yyl1801 := r.ReadArrayStart()
if yyl1801 == 0 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
2017-04-07 10:49:53 +00:00
x.codecDecodeSelfFromArray(yyl1801, d)
2017-02-07 21:33:23 +00:00
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NetworkPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yys1802Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1802Slc
var yyhl1802 bool = l >= 0
for yyj1802 := 0; ; yyj1802++ {
if yyhl1802 {
if yyj1802 >= l {
2017-02-07 21:33:23 +00:00
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
2017-04-07 10:49:53 +00:00
yys1802Slc = r.DecodeBytes(yys1802Slc, true, true)
yys1802 := string(yys1802Slc)
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapValue1234)
2017-04-07 10:49:53 +00:00
switch yys1802 {
2017-02-07 21:33:23 +00:00
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 = pkg1_unversioned.ListMeta{}
} else {
2017-04-07 10:49:53 +00:00
yyv1805 := &x.ListMeta
yym1806 := z.DecBinary()
_ = yym1806
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.DecExt(yyv1805) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.DecFallback(yyv1805, false)
2017-02-07 21:33:23 +00:00
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1807 := &x.Items
yym1808 := z.DecBinary()
_ = yym1808
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1807), d)
2017-02-07 21:33:23 +00:00
}
}
default:
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(-1, yys1802)
} // end switch yys1802
} // end for yyj1802
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *NetworkPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
var yyj1809 int
var yyb1809 bool
var yyhl1809 bool = l >= 0
yyj1809++
if yyhl1809 {
yyb1809 = yyj1809 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1809 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1809 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj1809++
if yyhl1809 {
yyb1809 = yyj1809 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1809 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1809 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
2017-04-07 10:49:53 +00:00
yyj1809++
if yyhl1809 {
yyb1809 = yyj1809 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1809 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1809 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg1_unversioned.ListMeta{}
} else {
2017-04-07 10:49:53 +00:00
yyv1812 := &x.ListMeta
yym1813 := z.DecBinary()
_ = yym1813
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.DecExt(yyv1812) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
z.DecFallback(yyv1812, false)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyj1809++
if yyhl1809 {
yyb1809 = yyj1809 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1809 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1809 {
2017-02-07 21:33:23 +00:00
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
2017-04-07 10:49:53 +00:00
yyv1814 := &x.Items
yym1815 := z.DecBinary()
_ = yym1815
2017-02-07 21:33:23 +00:00
if false {
} else {
2017-04-07 10:49:53 +00:00
h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1814), d)
2017-02-07 21:33:23 +00:00
}
}
for {
2017-04-07 10:49:53 +00:00
yyj1809++
if yyhl1809 {
yyb1809 = yyj1809 > l
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyb1809 = r.CheckBreak()
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
if yyb1809 {
2017-02-07 21:33:23 +00:00
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
z.DecStructFieldNotFound(yyj1809-1, "")
2017-02-07 21:33:23 +00:00
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) encSliceCustomMetricTarget(v []CustomMetricTarget, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
2017-04-07 10:49:53 +00:00
for _, yyv1816 := range v {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1817 := &yyv1816
yy1817.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceCustomMetricTarget(v *[]CustomMetricTarget, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yyv1818 := *v
yyh1818, yyl1818 := z.DecSliceHelperStart()
var yyc1818 bool
if yyl1818 == 0 {
if yyv1818 == nil {
yyv1818 = []CustomMetricTarget{}
yyc1818 = true
} else if len(yyv1818) != 0 {
yyv1818 = yyv1818[:0]
yyc1818 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1818 > 0 {
var yyrr1818, yyrl1818 int
var yyrt1818 bool
if yyl1818 > cap(yyv1818) {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
yyrg1818 := len(yyv1818) > 0
yyv21818 := yyv1818
yyrl1818, yyrt1818 = z.DecInferLen(yyl1818, z.DecBasicHandle().MaxInitLen, 72)
if yyrt1818 {
if yyrl1818 <= cap(yyv1818) {
yyv1818 = yyv1818[:yyrl1818]
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1818 = make([]CustomMetricTarget, yyrl1818)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
yyv1818 = make([]CustomMetricTarget, yyrl1818)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyc1818 = true
yyrr1818 = len(yyv1818)
if yyrg1818 {
copy(yyv1818, yyv21818)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1818 != len(yyv1818) {
yyv1818 = yyv1818[:yyl1818]
yyc1818 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1818 := 0
for ; yyj1818 < yyrr1818; yyj1818++ {
yyh1818.ElemContainerState(yyj1818)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1818[yyj1818] = CustomMetricTarget{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1819 := &yyv1818[yyj1818]
yyv1819.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyrt1818 {
for ; yyj1818 < yyl1818; yyj1818++ {
yyv1818 = append(yyv1818, CustomMetricTarget{})
yyh1818.ElemContainerState(yyj1818)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1818[yyj1818] = CustomMetricTarget{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1820 := &yyv1818[yyj1818]
yyv1820.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
}
} else {
2017-04-07 10:49:53 +00:00
yyj1818 := 0
for ; !r.CheckBreak(); yyj1818++ {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
if yyj1818 >= len(yyv1818) {
yyv1818 = append(yyv1818, CustomMetricTarget{}) // var yyz1818 CustomMetricTarget
yyc1818 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyh1818.ElemContainerState(yyj1818)
if yyj1818 < len(yyv1818) {
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1818[yyj1818] = CustomMetricTarget{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1821 := &yyv1818[yyj1818]
yyv1821.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
} else {
z.DecSwallow()
}
}
2017-04-07 10:49:53 +00:00
if yyj1818 < len(yyv1818) {
yyv1818 = yyv1818[:yyj1818]
yyc1818 = true
} else if yyj1818 == 0 && yyv1818 == nil {
yyv1818 = []CustomMetricTarget{}
yyc1818 = true
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyh1818.End()
if yyc1818 {
*v = yyv1818
2017-02-07 21:33:23 +00:00
}
}
func (x codecSelfer1234) encSliceCustomMetricCurrentStatus(v []CustomMetricCurrentStatus, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
2017-04-07 10:49:53 +00:00
for _, yyv1822 := range v {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1823 := &yyv1822
yy1823.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceCustomMetricCurrentStatus(v *[]CustomMetricCurrentStatus, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yyv1824 := *v
yyh1824, yyl1824 := z.DecSliceHelperStart()
var yyc1824 bool
if yyl1824 == 0 {
if yyv1824 == nil {
yyv1824 = []CustomMetricCurrentStatus{}
yyc1824 = true
} else if len(yyv1824) != 0 {
yyv1824 = yyv1824[:0]
yyc1824 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1824 > 0 {
var yyrr1824, yyrl1824 int
var yyrt1824 bool
if yyl1824 > cap(yyv1824) {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
yyrg1824 := len(yyv1824) > 0
yyv21824 := yyv1824
yyrl1824, yyrt1824 = z.DecInferLen(yyl1824, z.DecBasicHandle().MaxInitLen, 72)
if yyrt1824 {
if yyrl1824 <= cap(yyv1824) {
yyv1824 = yyv1824[:yyrl1824]
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1824 = make([]CustomMetricCurrentStatus, yyrl1824)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
yyv1824 = make([]CustomMetricCurrentStatus, yyrl1824)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyc1824 = true
yyrr1824 = len(yyv1824)
if yyrg1824 {
copy(yyv1824, yyv21824)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1824 != len(yyv1824) {
yyv1824 = yyv1824[:yyl1824]
yyc1824 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1824 := 0
for ; yyj1824 < yyrr1824; yyj1824++ {
yyh1824.ElemContainerState(yyj1824)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1824[yyj1824] = CustomMetricCurrentStatus{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1825 := &yyv1824[yyj1824]
yyv1825.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyrt1824 {
for ; yyj1824 < yyl1824; yyj1824++ {
yyv1824 = append(yyv1824, CustomMetricCurrentStatus{})
yyh1824.ElemContainerState(yyj1824)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1824[yyj1824] = CustomMetricCurrentStatus{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1826 := &yyv1824[yyj1824]
yyv1826.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
}
} else {
2017-04-07 10:49:53 +00:00
yyj1824 := 0
for ; !r.CheckBreak(); yyj1824++ {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
if yyj1824 >= len(yyv1824) {
yyv1824 = append(yyv1824, CustomMetricCurrentStatus{}) // var yyz1824 CustomMetricCurrentStatus
yyc1824 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyh1824.ElemContainerState(yyj1824)
if yyj1824 < len(yyv1824) {
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1824[yyj1824] = CustomMetricCurrentStatus{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1827 := &yyv1824[yyj1824]
yyv1827.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
} else {
z.DecSwallow()
}
}
2017-04-07 10:49:53 +00:00
if yyj1824 < len(yyv1824) {
yyv1824 = yyv1824[:yyj1824]
yyc1824 = true
} else if yyj1824 == 0 && yyv1824 == nil {
yyv1824 = []CustomMetricCurrentStatus{}
yyc1824 = true
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyh1824.End()
if yyc1824 {
*v = yyv1824
2017-02-07 21:33:23 +00:00
}
}
func (x codecSelfer1234) encSliceHorizontalPodAutoscaler(v []HorizontalPodAutoscaler, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
2017-04-07 10:49:53 +00:00
for _, yyv1828 := range v {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1829 := &yyv1828
yy1829.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceHorizontalPodAutoscaler(v *[]HorizontalPodAutoscaler, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yyv1830 := *v
yyh1830, yyl1830 := z.DecSliceHelperStart()
var yyc1830 bool
if yyl1830 == 0 {
if yyv1830 == nil {
yyv1830 = []HorizontalPodAutoscaler{}
yyc1830 = true
} else if len(yyv1830) != 0 {
yyv1830 = yyv1830[:0]
yyc1830 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1830 > 0 {
var yyrr1830, yyrl1830 int
var yyrt1830 bool
if yyl1830 > cap(yyv1830) {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
yyrg1830 := len(yyv1830) > 0
yyv21830 := yyv1830
yyrl1830, yyrt1830 = z.DecInferLen(yyl1830, z.DecBasicHandle().MaxInitLen, 376)
if yyrt1830 {
if yyrl1830 <= cap(yyv1830) {
yyv1830 = yyv1830[:yyrl1830]
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1830 = make([]HorizontalPodAutoscaler, yyrl1830)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
yyv1830 = make([]HorizontalPodAutoscaler, yyrl1830)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyc1830 = true
yyrr1830 = len(yyv1830)
if yyrg1830 {
copy(yyv1830, yyv21830)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1830 != len(yyv1830) {
yyv1830 = yyv1830[:yyl1830]
yyc1830 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1830 := 0
for ; yyj1830 < yyrr1830; yyj1830++ {
yyh1830.ElemContainerState(yyj1830)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1830[yyj1830] = HorizontalPodAutoscaler{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1831 := &yyv1830[yyj1830]
yyv1831.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyrt1830 {
for ; yyj1830 < yyl1830; yyj1830++ {
yyv1830 = append(yyv1830, HorizontalPodAutoscaler{})
yyh1830.ElemContainerState(yyj1830)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1830[yyj1830] = HorizontalPodAutoscaler{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1832 := &yyv1830[yyj1830]
yyv1832.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
}
} else {
2017-04-07 10:49:53 +00:00
yyj1830 := 0
for ; !r.CheckBreak(); yyj1830++ {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
if yyj1830 >= len(yyv1830) {
yyv1830 = append(yyv1830, HorizontalPodAutoscaler{}) // var yyz1830 HorizontalPodAutoscaler
yyc1830 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyh1830.ElemContainerState(yyj1830)
if yyj1830 < len(yyv1830) {
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1830[yyj1830] = HorizontalPodAutoscaler{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1833 := &yyv1830[yyj1830]
yyv1833.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
} else {
z.DecSwallow()
}
}
2017-04-07 10:49:53 +00:00
if yyj1830 < len(yyv1830) {
yyv1830 = yyv1830[:yyj1830]
yyc1830 = true
} else if yyj1830 == 0 && yyv1830 == nil {
yyv1830 = []HorizontalPodAutoscaler{}
yyc1830 = true
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyh1830.End()
if yyc1830 {
*v = yyv1830
2017-02-07 21:33:23 +00:00
}
}
func (x codecSelfer1234) encSliceAPIVersion(v []APIVersion, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
2017-04-07 10:49:53 +00:00
for _, yyv1834 := range v {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1835 := &yyv1834
yy1835.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceAPIVersion(v *[]APIVersion, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yyv1836 := *v
yyh1836, yyl1836 := z.DecSliceHelperStart()
var yyc1836 bool
if yyl1836 == 0 {
if yyv1836 == nil {
yyv1836 = []APIVersion{}
yyc1836 = true
} else if len(yyv1836) != 0 {
yyv1836 = yyv1836[:0]
yyc1836 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1836 > 0 {
var yyrr1836, yyrl1836 int
var yyrt1836 bool
if yyl1836 > cap(yyv1836) {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
yyrg1836 := len(yyv1836) > 0
yyv21836 := yyv1836
yyrl1836, yyrt1836 = z.DecInferLen(yyl1836, z.DecBasicHandle().MaxInitLen, 16)
if yyrt1836 {
if yyrl1836 <= cap(yyv1836) {
yyv1836 = yyv1836[:yyrl1836]
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1836 = make([]APIVersion, yyrl1836)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
yyv1836 = make([]APIVersion, yyrl1836)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyc1836 = true
yyrr1836 = len(yyv1836)
if yyrg1836 {
copy(yyv1836, yyv21836)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1836 != len(yyv1836) {
yyv1836 = yyv1836[:yyl1836]
yyc1836 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1836 := 0
for ; yyj1836 < yyrr1836; yyj1836++ {
yyh1836.ElemContainerState(yyj1836)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1836[yyj1836] = APIVersion{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1837 := &yyv1836[yyj1836]
yyv1837.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyrt1836 {
for ; yyj1836 < yyl1836; yyj1836++ {
yyv1836 = append(yyv1836, APIVersion{})
yyh1836.ElemContainerState(yyj1836)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1836[yyj1836] = APIVersion{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1838 := &yyv1836[yyj1836]
yyv1838.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
}
} else {
2017-04-07 10:49:53 +00:00
yyj1836 := 0
for ; !r.CheckBreak(); yyj1836++ {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
if yyj1836 >= len(yyv1836) {
yyv1836 = append(yyv1836, APIVersion{}) // var yyz1836 APIVersion
yyc1836 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyh1836.ElemContainerState(yyj1836)
if yyj1836 < len(yyv1836) {
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1836[yyj1836] = APIVersion{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1839 := &yyv1836[yyj1836]
yyv1839.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
} else {
z.DecSwallow()
}
}
2017-04-07 10:49:53 +00:00
if yyj1836 < len(yyv1836) {
yyv1836 = yyv1836[:yyj1836]
yyc1836 = true
} else if yyj1836 == 0 && yyv1836 == nil {
yyv1836 = []APIVersion{}
yyc1836 = true
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyh1836.End()
if yyc1836 {
*v = yyv1836
2017-02-07 21:33:23 +00:00
}
}
func (x codecSelfer1234) encSliceThirdPartyResource(v []ThirdPartyResource, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
2017-04-07 10:49:53 +00:00
for _, yyv1840 := range v {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1841 := &yyv1840
yy1841.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceThirdPartyResource(v *[]ThirdPartyResource, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yyv1842 := *v
yyh1842, yyl1842 := z.DecSliceHelperStart()
var yyc1842 bool
if yyl1842 == 0 {
if yyv1842 == nil {
yyv1842 = []ThirdPartyResource{}
yyc1842 = true
} else if len(yyv1842) != 0 {
yyv1842 = yyv1842[:0]
yyc1842 = true
}
} else if yyl1842 > 0 {
var yyrr1842, yyrl1842 int
var yyrt1842 bool
if yyl1842 > cap(yyv1842) {
yyrg1842 := len(yyv1842) > 0
yyv21842 := yyv1842
yyrl1842, yyrt1842 = z.DecInferLen(yyl1842, z.DecBasicHandle().MaxInitLen, 296)
if yyrt1842 {
if yyrl1842 <= cap(yyv1842) {
yyv1842 = yyv1842[:yyrl1842]
} else {
yyv1842 = make([]ThirdPartyResource, yyrl1842)
}
} else {
yyv1842 = make([]ThirdPartyResource, yyrl1842)
}
yyc1842 = true
yyrr1842 = len(yyv1842)
if yyrg1842 {
copy(yyv1842, yyv21842)
}
} else if yyl1842 != len(yyv1842) {
yyv1842 = yyv1842[:yyl1842]
yyc1842 = true
}
yyj1842 := 0
for ; yyj1842 < yyrr1842; yyj1842++ {
yyh1842.ElemContainerState(yyj1842)
if r.TryDecodeAsNil() {
yyv1842[yyj1842] = ThirdPartyResource{}
} else {
yyv1843 := &yyv1842[yyj1842]
yyv1843.CodecDecodeSelf(d)
}
}
if yyrt1842 {
for ; yyj1842 < yyl1842; yyj1842++ {
yyv1842 = append(yyv1842, ThirdPartyResource{})
yyh1842.ElemContainerState(yyj1842)
if r.TryDecodeAsNil() {
yyv1842[yyj1842] = ThirdPartyResource{}
} else {
yyv1844 := &yyv1842[yyj1842]
yyv1844.CodecDecodeSelf(d)
}
}
}
} else {
yyj1842 := 0
for ; !r.CheckBreak(); yyj1842++ {
if yyj1842 >= len(yyv1842) {
yyv1842 = append(yyv1842, ThirdPartyResource{}) // var yyz1842 ThirdPartyResource
yyc1842 = true
}
yyh1842.ElemContainerState(yyj1842)
if yyj1842 < len(yyv1842) {
if r.TryDecodeAsNil() {
yyv1842[yyj1842] = ThirdPartyResource{}
} else {
yyv1845 := &yyv1842[yyj1842]
yyv1845.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj1842 < len(yyv1842) {
yyv1842 = yyv1842[:yyj1842]
yyc1842 = true
} else if yyj1842 == 0 && yyv1842 == nil {
yyv1842 = []ThirdPartyResource{}
yyc1842 = true
}
}
yyh1842.End()
if yyc1842 {
*v = yyv1842
}
}
func (x codecSelfer1234) encSliceDeploymentCondition(v []DeploymentCondition, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv1846 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy1847 := &yyv1846
yy1847.CodecEncodeSelf(e)
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceDeploymentCondition(v *[]DeploymentCondition, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv1848 := *v
yyh1848, yyl1848 := z.DecSliceHelperStart()
var yyc1848 bool
if yyl1848 == 0 {
if yyv1848 == nil {
yyv1848 = []DeploymentCondition{}
yyc1848 = true
} else if len(yyv1848) != 0 {
yyv1848 = yyv1848[:0]
yyc1848 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1848 > 0 {
var yyrr1848, yyrl1848 int
var yyrt1848 bool
if yyl1848 > cap(yyv1848) {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
yyrg1848 := len(yyv1848) > 0
yyv21848 := yyv1848
yyrl1848, yyrt1848 = z.DecInferLen(yyl1848, z.DecBasicHandle().MaxInitLen, 112)
if yyrt1848 {
if yyrl1848 <= cap(yyv1848) {
yyv1848 = yyv1848[:yyrl1848]
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1848 = make([]DeploymentCondition, yyrl1848)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
yyv1848 = make([]DeploymentCondition, yyrl1848)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyc1848 = true
yyrr1848 = len(yyv1848)
if yyrg1848 {
copy(yyv1848, yyv21848)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1848 != len(yyv1848) {
yyv1848 = yyv1848[:yyl1848]
yyc1848 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1848 := 0
for ; yyj1848 < yyrr1848; yyj1848++ {
yyh1848.ElemContainerState(yyj1848)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1848[yyj1848] = DeploymentCondition{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1849 := &yyv1848[yyj1848]
yyv1849.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyrt1848 {
for ; yyj1848 < yyl1848; yyj1848++ {
yyv1848 = append(yyv1848, DeploymentCondition{})
yyh1848.ElemContainerState(yyj1848)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1848[yyj1848] = DeploymentCondition{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1850 := &yyv1848[yyj1848]
yyv1850.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
}
} else {
2017-04-07 10:49:53 +00:00
yyj1848 := 0
for ; !r.CheckBreak(); yyj1848++ {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
if yyj1848 >= len(yyv1848) {
yyv1848 = append(yyv1848, DeploymentCondition{}) // var yyz1848 DeploymentCondition
yyc1848 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyh1848.ElemContainerState(yyj1848)
if yyj1848 < len(yyv1848) {
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1848[yyj1848] = DeploymentCondition{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1851 := &yyv1848[yyj1848]
yyv1851.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
} else {
z.DecSwallow()
}
}
2017-04-07 10:49:53 +00:00
if yyj1848 < len(yyv1848) {
yyv1848 = yyv1848[:yyj1848]
yyc1848 = true
} else if yyj1848 == 0 && yyv1848 == nil {
yyv1848 = []DeploymentCondition{}
yyc1848 = true
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyh1848.End()
if yyc1848 {
*v = yyv1848
2017-02-07 21:33:23 +00:00
}
}
func (x codecSelfer1234) encSliceDeployment(v []Deployment, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
2017-04-07 10:49:53 +00:00
for _, yyv1852 := range v {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1853 := &yyv1852
yy1853.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceDeployment(v *[]Deployment, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yyv1854 := *v
yyh1854, yyl1854 := z.DecSliceHelperStart()
var yyc1854 bool
if yyl1854 == 0 {
if yyv1854 == nil {
yyv1854 = []Deployment{}
yyc1854 = true
} else if len(yyv1854) != 0 {
yyv1854 = yyv1854[:0]
yyc1854 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1854 > 0 {
var yyrr1854, yyrl1854 int
var yyrt1854 bool
if yyl1854 > cap(yyv1854) {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
yyrg1854 := len(yyv1854) > 0
yyv21854 := yyv1854
yyrl1854, yyrt1854 = z.DecInferLen(yyl1854, z.DecBasicHandle().MaxInitLen, 856)
if yyrt1854 {
if yyrl1854 <= cap(yyv1854) {
yyv1854 = yyv1854[:yyrl1854]
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1854 = make([]Deployment, yyrl1854)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
yyv1854 = make([]Deployment, yyrl1854)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyc1854 = true
yyrr1854 = len(yyv1854)
if yyrg1854 {
copy(yyv1854, yyv21854)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1854 != len(yyv1854) {
yyv1854 = yyv1854[:yyl1854]
yyc1854 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1854 := 0
for ; yyj1854 < yyrr1854; yyj1854++ {
yyh1854.ElemContainerState(yyj1854)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1854[yyj1854] = Deployment{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1855 := &yyv1854[yyj1854]
yyv1855.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyrt1854 {
for ; yyj1854 < yyl1854; yyj1854++ {
yyv1854 = append(yyv1854, Deployment{})
yyh1854.ElemContainerState(yyj1854)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1854[yyj1854] = Deployment{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1856 := &yyv1854[yyj1854]
yyv1856.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
}
} else {
2017-04-07 10:49:53 +00:00
yyj1854 := 0
for ; !r.CheckBreak(); yyj1854++ {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
if yyj1854 >= len(yyv1854) {
yyv1854 = append(yyv1854, Deployment{}) // var yyz1854 Deployment
yyc1854 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyh1854.ElemContainerState(yyj1854)
if yyj1854 < len(yyv1854) {
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1854[yyj1854] = Deployment{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1857 := &yyv1854[yyj1854]
yyv1857.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
} else {
z.DecSwallow()
}
}
2017-04-07 10:49:53 +00:00
if yyj1854 < len(yyv1854) {
yyv1854 = yyv1854[:yyj1854]
yyc1854 = true
} else if yyj1854 == 0 && yyv1854 == nil {
yyv1854 = []Deployment{}
yyc1854 = true
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyh1854.End()
if yyc1854 {
*v = yyv1854
2017-02-07 21:33:23 +00:00
}
}
func (x codecSelfer1234) encSliceDaemonSet(v []DaemonSet, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
2017-04-07 10:49:53 +00:00
for _, yyv1858 := range v {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1859 := &yyv1858
yy1859.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceDaemonSet(v *[]DaemonSet, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yyv1860 := *v
yyh1860, yyl1860 := z.DecSliceHelperStart()
var yyc1860 bool
if yyl1860 == 0 {
if yyv1860 == nil {
yyv1860 = []DaemonSet{}
yyc1860 = true
} else if len(yyv1860) != 0 {
yyv1860 = yyv1860[:0]
yyc1860 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1860 > 0 {
var yyrr1860, yyrl1860 int
var yyrt1860 bool
if yyl1860 > cap(yyv1860) {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
yyrg1860 := len(yyv1860) > 0
yyv21860 := yyv1860
yyrl1860, yyrt1860 = z.DecInferLen(yyl1860, z.DecBasicHandle().MaxInitLen, 752)
if yyrt1860 {
if yyrl1860 <= cap(yyv1860) {
yyv1860 = yyv1860[:yyrl1860]
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1860 = make([]DaemonSet, yyrl1860)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
yyv1860 = make([]DaemonSet, yyrl1860)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyc1860 = true
yyrr1860 = len(yyv1860)
if yyrg1860 {
copy(yyv1860, yyv21860)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1860 != len(yyv1860) {
yyv1860 = yyv1860[:yyl1860]
yyc1860 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1860 := 0
for ; yyj1860 < yyrr1860; yyj1860++ {
yyh1860.ElemContainerState(yyj1860)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1860[yyj1860] = DaemonSet{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1861 := &yyv1860[yyj1860]
yyv1861.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyrt1860 {
for ; yyj1860 < yyl1860; yyj1860++ {
yyv1860 = append(yyv1860, DaemonSet{})
yyh1860.ElemContainerState(yyj1860)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1860[yyj1860] = DaemonSet{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1862 := &yyv1860[yyj1860]
yyv1862.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
}
} else {
2017-04-07 10:49:53 +00:00
yyj1860 := 0
for ; !r.CheckBreak(); yyj1860++ {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
if yyj1860 >= len(yyv1860) {
yyv1860 = append(yyv1860, DaemonSet{}) // var yyz1860 DaemonSet
yyc1860 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyh1860.ElemContainerState(yyj1860)
if yyj1860 < len(yyv1860) {
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1860[yyj1860] = DaemonSet{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1863 := &yyv1860[yyj1860]
yyv1863.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
} else {
z.DecSwallow()
}
}
2017-04-07 10:49:53 +00:00
if yyj1860 < len(yyv1860) {
yyv1860 = yyv1860[:yyj1860]
yyc1860 = true
} else if yyj1860 == 0 && yyv1860 == nil {
yyv1860 = []DaemonSet{}
yyc1860 = true
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyh1860.End()
if yyc1860 {
*v = yyv1860
2017-02-07 21:33:23 +00:00
}
}
func (x codecSelfer1234) encSliceThirdPartyResourceData(v []ThirdPartyResourceData, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
2017-04-07 10:49:53 +00:00
for _, yyv1864 := range v {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1865 := &yyv1864
yy1865.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceThirdPartyResourceData(v *[]ThirdPartyResourceData, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yyv1866 := *v
yyh1866, yyl1866 := z.DecSliceHelperStart()
var yyc1866 bool
if yyl1866 == 0 {
if yyv1866 == nil {
yyv1866 = []ThirdPartyResourceData{}
yyc1866 = true
} else if len(yyv1866) != 0 {
yyv1866 = yyv1866[:0]
yyc1866 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1866 > 0 {
var yyrr1866, yyrl1866 int
var yyrt1866 bool
if yyl1866 > cap(yyv1866) {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
yyrg1866 := len(yyv1866) > 0
yyv21866 := yyv1866
yyrl1866, yyrt1866 = z.DecInferLen(yyl1866, z.DecBasicHandle().MaxInitLen, 280)
if yyrt1866 {
if yyrl1866 <= cap(yyv1866) {
yyv1866 = yyv1866[:yyrl1866]
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1866 = make([]ThirdPartyResourceData, yyrl1866)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
yyv1866 = make([]ThirdPartyResourceData, yyrl1866)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyc1866 = true
yyrr1866 = len(yyv1866)
if yyrg1866 {
copy(yyv1866, yyv21866)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1866 != len(yyv1866) {
yyv1866 = yyv1866[:yyl1866]
yyc1866 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1866 := 0
for ; yyj1866 < yyrr1866; yyj1866++ {
yyh1866.ElemContainerState(yyj1866)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1866[yyj1866] = ThirdPartyResourceData{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1867 := &yyv1866[yyj1866]
yyv1867.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyrt1866 {
for ; yyj1866 < yyl1866; yyj1866++ {
yyv1866 = append(yyv1866, ThirdPartyResourceData{})
yyh1866.ElemContainerState(yyj1866)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1866[yyj1866] = ThirdPartyResourceData{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1868 := &yyv1866[yyj1866]
yyv1868.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
}
} else {
2017-04-07 10:49:53 +00:00
yyj1866 := 0
for ; !r.CheckBreak(); yyj1866++ {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
if yyj1866 >= len(yyv1866) {
yyv1866 = append(yyv1866, ThirdPartyResourceData{}) // var yyz1866 ThirdPartyResourceData
yyc1866 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyh1866.ElemContainerState(yyj1866)
if yyj1866 < len(yyv1866) {
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1866[yyj1866] = ThirdPartyResourceData{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1869 := &yyv1866[yyj1866]
yyv1869.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
} else {
z.DecSwallow()
}
}
2017-04-07 10:49:53 +00:00
if yyj1866 < len(yyv1866) {
yyv1866 = yyv1866[:yyj1866]
yyc1866 = true
} else if yyj1866 == 0 && yyv1866 == nil {
yyv1866 = []ThirdPartyResourceData{}
yyc1866 = true
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyh1866.End()
if yyc1866 {
*v = yyv1866
2017-02-07 21:33:23 +00:00
}
}
func (x codecSelfer1234) encSliceJob(v []Job, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
2017-04-07 10:49:53 +00:00
for _, yyv1870 := range v {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1871 := &yyv1870
yy1871.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceJob(v *[]Job, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yyv1872 := *v
yyh1872, yyl1872 := z.DecSliceHelperStart()
var yyc1872 bool
if yyl1872 == 0 {
if yyv1872 == nil {
yyv1872 = []Job{}
yyc1872 = true
} else if len(yyv1872) != 0 {
yyv1872 = yyv1872[:0]
yyc1872 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1872 > 0 {
var yyrr1872, yyrl1872 int
var yyrt1872 bool
if yyl1872 > cap(yyv1872) {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
yyrg1872 := len(yyv1872) > 0
yyv21872 := yyv1872
yyrl1872, yyrt1872 = z.DecInferLen(yyl1872, z.DecBasicHandle().MaxInitLen, 824)
if yyrt1872 {
if yyrl1872 <= cap(yyv1872) {
yyv1872 = yyv1872[:yyrl1872]
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1872 = make([]Job, yyrl1872)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
yyv1872 = make([]Job, yyrl1872)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyc1872 = true
yyrr1872 = len(yyv1872)
if yyrg1872 {
copy(yyv1872, yyv21872)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1872 != len(yyv1872) {
yyv1872 = yyv1872[:yyl1872]
yyc1872 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1872 := 0
for ; yyj1872 < yyrr1872; yyj1872++ {
yyh1872.ElemContainerState(yyj1872)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1872[yyj1872] = Job{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1873 := &yyv1872[yyj1872]
yyv1873.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyrt1872 {
for ; yyj1872 < yyl1872; yyj1872++ {
yyv1872 = append(yyv1872, Job{})
yyh1872.ElemContainerState(yyj1872)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1872[yyj1872] = Job{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1874 := &yyv1872[yyj1872]
yyv1874.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
}
} else {
2017-04-07 10:49:53 +00:00
yyj1872 := 0
for ; !r.CheckBreak(); yyj1872++ {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
if yyj1872 >= len(yyv1872) {
yyv1872 = append(yyv1872, Job{}) // var yyz1872 Job
yyc1872 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyh1872.ElemContainerState(yyj1872)
if yyj1872 < len(yyv1872) {
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1872[yyj1872] = Job{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1875 := &yyv1872[yyj1872]
yyv1875.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
} else {
z.DecSwallow()
}
}
2017-04-07 10:49:53 +00:00
if yyj1872 < len(yyv1872) {
yyv1872 = yyv1872[:yyj1872]
yyc1872 = true
} else if yyj1872 == 0 && yyv1872 == nil {
yyv1872 = []Job{}
yyc1872 = true
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyh1872.End()
if yyc1872 {
*v = yyv1872
2017-02-07 21:33:23 +00:00
}
}
func (x codecSelfer1234) encSliceJobCondition(v []JobCondition, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
2017-04-07 10:49:53 +00:00
for _, yyv1876 := range v {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1877 := &yyv1876
yy1877.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceJobCondition(v *[]JobCondition, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yyv1878 := *v
yyh1878, yyl1878 := z.DecSliceHelperStart()
var yyc1878 bool
if yyl1878 == 0 {
if yyv1878 == nil {
yyv1878 = []JobCondition{}
yyc1878 = true
} else if len(yyv1878) != 0 {
yyv1878 = yyv1878[:0]
yyc1878 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1878 > 0 {
var yyrr1878, yyrl1878 int
var yyrt1878 bool
if yyl1878 > cap(yyv1878) {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
yyrg1878 := len(yyv1878) > 0
yyv21878 := yyv1878
yyrl1878, yyrt1878 = z.DecInferLen(yyl1878, z.DecBasicHandle().MaxInitLen, 112)
if yyrt1878 {
if yyrl1878 <= cap(yyv1878) {
yyv1878 = yyv1878[:yyrl1878]
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1878 = make([]JobCondition, yyrl1878)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
yyv1878 = make([]JobCondition, yyrl1878)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyc1878 = true
yyrr1878 = len(yyv1878)
if yyrg1878 {
copy(yyv1878, yyv21878)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1878 != len(yyv1878) {
yyv1878 = yyv1878[:yyl1878]
yyc1878 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1878 := 0
for ; yyj1878 < yyrr1878; yyj1878++ {
yyh1878.ElemContainerState(yyj1878)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1878[yyj1878] = JobCondition{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1879 := &yyv1878[yyj1878]
yyv1879.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyrt1878 {
for ; yyj1878 < yyl1878; yyj1878++ {
yyv1878 = append(yyv1878, JobCondition{})
yyh1878.ElemContainerState(yyj1878)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1878[yyj1878] = JobCondition{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1880 := &yyv1878[yyj1878]
yyv1880.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
}
} else {
2017-04-07 10:49:53 +00:00
yyj1878 := 0
for ; !r.CheckBreak(); yyj1878++ {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
if yyj1878 >= len(yyv1878) {
yyv1878 = append(yyv1878, JobCondition{}) // var yyz1878 JobCondition
yyc1878 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyh1878.ElemContainerState(yyj1878)
if yyj1878 < len(yyv1878) {
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1878[yyj1878] = JobCondition{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1881 := &yyv1878[yyj1878]
yyv1881.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
} else {
z.DecSwallow()
}
}
2017-04-07 10:49:53 +00:00
if yyj1878 < len(yyv1878) {
yyv1878 = yyv1878[:yyj1878]
yyc1878 = true
} else if yyj1878 == 0 && yyv1878 == nil {
yyv1878 = []JobCondition{}
yyc1878 = true
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyh1878.End()
if yyc1878 {
*v = yyv1878
2017-02-07 21:33:23 +00:00
}
}
func (x codecSelfer1234) encSliceIngress(v []Ingress, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
2017-04-07 10:49:53 +00:00
for _, yyv1882 := range v {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1883 := &yyv1882
yy1883.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceIngress(v *[]Ingress, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yyv1884 := *v
yyh1884, yyl1884 := z.DecSliceHelperStart()
var yyc1884 bool
if yyl1884 == 0 {
if yyv1884 == nil {
yyv1884 = []Ingress{}
yyc1884 = true
} else if len(yyv1884) != 0 {
yyv1884 = yyv1884[:0]
yyc1884 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1884 > 0 {
var yyrr1884, yyrl1884 int
var yyrt1884 bool
if yyl1884 > cap(yyv1884) {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
yyrg1884 := len(yyv1884) > 0
yyv21884 := yyv1884
yyrl1884, yyrt1884 = z.DecInferLen(yyl1884, z.DecBasicHandle().MaxInitLen, 336)
if yyrt1884 {
if yyrl1884 <= cap(yyv1884) {
yyv1884 = yyv1884[:yyrl1884]
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1884 = make([]Ingress, yyrl1884)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
yyv1884 = make([]Ingress, yyrl1884)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyc1884 = true
yyrr1884 = len(yyv1884)
if yyrg1884 {
copy(yyv1884, yyv21884)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1884 != len(yyv1884) {
yyv1884 = yyv1884[:yyl1884]
yyc1884 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1884 := 0
for ; yyj1884 < yyrr1884; yyj1884++ {
yyh1884.ElemContainerState(yyj1884)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1884[yyj1884] = Ingress{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1885 := &yyv1884[yyj1884]
yyv1885.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyrt1884 {
for ; yyj1884 < yyl1884; yyj1884++ {
yyv1884 = append(yyv1884, Ingress{})
yyh1884.ElemContainerState(yyj1884)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1884[yyj1884] = Ingress{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1886 := &yyv1884[yyj1884]
yyv1886.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
}
} else {
2017-04-07 10:49:53 +00:00
yyj1884 := 0
for ; !r.CheckBreak(); yyj1884++ {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
if yyj1884 >= len(yyv1884) {
yyv1884 = append(yyv1884, Ingress{}) // var yyz1884 Ingress
yyc1884 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyh1884.ElemContainerState(yyj1884)
if yyj1884 < len(yyv1884) {
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1884[yyj1884] = Ingress{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1887 := &yyv1884[yyj1884]
yyv1887.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
} else {
z.DecSwallow()
}
}
2017-04-07 10:49:53 +00:00
if yyj1884 < len(yyv1884) {
yyv1884 = yyv1884[:yyj1884]
yyc1884 = true
} else if yyj1884 == 0 && yyv1884 == nil {
yyv1884 = []Ingress{}
yyc1884 = true
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyh1884.End()
if yyc1884 {
*v = yyv1884
2017-02-07 21:33:23 +00:00
}
}
func (x codecSelfer1234) encSliceIngressTLS(v []IngressTLS, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
2017-04-07 10:49:53 +00:00
for _, yyv1888 := range v {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1889 := &yyv1888
yy1889.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceIngressTLS(v *[]IngressTLS, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yyv1890 := *v
yyh1890, yyl1890 := z.DecSliceHelperStart()
var yyc1890 bool
if yyl1890 == 0 {
if yyv1890 == nil {
yyv1890 = []IngressTLS{}
yyc1890 = true
} else if len(yyv1890) != 0 {
yyv1890 = yyv1890[:0]
yyc1890 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1890 > 0 {
var yyrr1890, yyrl1890 int
var yyrt1890 bool
if yyl1890 > cap(yyv1890) {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
yyrg1890 := len(yyv1890) > 0
yyv21890 := yyv1890
yyrl1890, yyrt1890 = z.DecInferLen(yyl1890, z.DecBasicHandle().MaxInitLen, 40)
if yyrt1890 {
if yyrl1890 <= cap(yyv1890) {
yyv1890 = yyv1890[:yyrl1890]
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1890 = make([]IngressTLS, yyrl1890)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
yyv1890 = make([]IngressTLS, yyrl1890)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyc1890 = true
yyrr1890 = len(yyv1890)
if yyrg1890 {
copy(yyv1890, yyv21890)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1890 != len(yyv1890) {
yyv1890 = yyv1890[:yyl1890]
yyc1890 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1890 := 0
for ; yyj1890 < yyrr1890; yyj1890++ {
yyh1890.ElemContainerState(yyj1890)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1890[yyj1890] = IngressTLS{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1891 := &yyv1890[yyj1890]
yyv1891.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyrt1890 {
for ; yyj1890 < yyl1890; yyj1890++ {
yyv1890 = append(yyv1890, IngressTLS{})
yyh1890.ElemContainerState(yyj1890)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1890[yyj1890] = IngressTLS{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1892 := &yyv1890[yyj1890]
yyv1892.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
}
} else {
2017-04-07 10:49:53 +00:00
yyj1890 := 0
for ; !r.CheckBreak(); yyj1890++ {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
if yyj1890 >= len(yyv1890) {
yyv1890 = append(yyv1890, IngressTLS{}) // var yyz1890 IngressTLS
yyc1890 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyh1890.ElemContainerState(yyj1890)
if yyj1890 < len(yyv1890) {
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1890[yyj1890] = IngressTLS{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1893 := &yyv1890[yyj1890]
yyv1893.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
} else {
z.DecSwallow()
}
}
2017-04-07 10:49:53 +00:00
if yyj1890 < len(yyv1890) {
yyv1890 = yyv1890[:yyj1890]
yyc1890 = true
} else if yyj1890 == 0 && yyv1890 == nil {
yyv1890 = []IngressTLS{}
yyc1890 = true
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyh1890.End()
if yyc1890 {
*v = yyv1890
2017-02-07 21:33:23 +00:00
}
}
func (x codecSelfer1234) encSliceIngressRule(v []IngressRule, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
2017-04-07 10:49:53 +00:00
for _, yyv1894 := range v {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1895 := &yyv1894
yy1895.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceIngressRule(v *[]IngressRule, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yyv1896 := *v
yyh1896, yyl1896 := z.DecSliceHelperStart()
var yyc1896 bool
if yyl1896 == 0 {
if yyv1896 == nil {
yyv1896 = []IngressRule{}
yyc1896 = true
} else if len(yyv1896) != 0 {
yyv1896 = yyv1896[:0]
yyc1896 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1896 > 0 {
var yyrr1896, yyrl1896 int
var yyrt1896 bool
if yyl1896 > cap(yyv1896) {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
yyrg1896 := len(yyv1896) > 0
yyv21896 := yyv1896
yyrl1896, yyrt1896 = z.DecInferLen(yyl1896, z.DecBasicHandle().MaxInitLen, 24)
if yyrt1896 {
if yyrl1896 <= cap(yyv1896) {
yyv1896 = yyv1896[:yyrl1896]
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1896 = make([]IngressRule, yyrl1896)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
yyv1896 = make([]IngressRule, yyrl1896)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyc1896 = true
yyrr1896 = len(yyv1896)
if yyrg1896 {
copy(yyv1896, yyv21896)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1896 != len(yyv1896) {
yyv1896 = yyv1896[:yyl1896]
yyc1896 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1896 := 0
for ; yyj1896 < yyrr1896; yyj1896++ {
yyh1896.ElemContainerState(yyj1896)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1896[yyj1896] = IngressRule{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1897 := &yyv1896[yyj1896]
yyv1897.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyrt1896 {
for ; yyj1896 < yyl1896; yyj1896++ {
yyv1896 = append(yyv1896, IngressRule{})
yyh1896.ElemContainerState(yyj1896)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1896[yyj1896] = IngressRule{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1898 := &yyv1896[yyj1896]
yyv1898.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
}
} else {
2017-04-07 10:49:53 +00:00
yyj1896 := 0
for ; !r.CheckBreak(); yyj1896++ {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
if yyj1896 >= len(yyv1896) {
yyv1896 = append(yyv1896, IngressRule{}) // var yyz1896 IngressRule
yyc1896 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyh1896.ElemContainerState(yyj1896)
if yyj1896 < len(yyv1896) {
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1896[yyj1896] = IngressRule{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1899 := &yyv1896[yyj1896]
yyv1899.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
} else {
z.DecSwallow()
}
}
2017-04-07 10:49:53 +00:00
if yyj1896 < len(yyv1896) {
yyv1896 = yyv1896[:yyj1896]
yyc1896 = true
} else if yyj1896 == 0 && yyv1896 == nil {
yyv1896 = []IngressRule{}
yyc1896 = true
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyh1896.End()
if yyc1896 {
*v = yyv1896
2017-02-07 21:33:23 +00:00
}
}
func (x codecSelfer1234) encSliceHTTPIngressPath(v []HTTPIngressPath, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
2017-04-07 10:49:53 +00:00
for _, yyv1900 := range v {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1901 := &yyv1900
yy1901.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceHTTPIngressPath(v *[]HTTPIngressPath, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yyv1902 := *v
yyh1902, yyl1902 := z.DecSliceHelperStart()
var yyc1902 bool
if yyl1902 == 0 {
if yyv1902 == nil {
yyv1902 = []HTTPIngressPath{}
yyc1902 = true
} else if len(yyv1902) != 0 {
yyv1902 = yyv1902[:0]
yyc1902 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1902 > 0 {
var yyrr1902, yyrl1902 int
var yyrt1902 bool
if yyl1902 > cap(yyv1902) {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
yyrg1902 := len(yyv1902) > 0
yyv21902 := yyv1902
yyrl1902, yyrt1902 = z.DecInferLen(yyl1902, z.DecBasicHandle().MaxInitLen, 64)
if yyrt1902 {
if yyrl1902 <= cap(yyv1902) {
yyv1902 = yyv1902[:yyrl1902]
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1902 = make([]HTTPIngressPath, yyrl1902)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
yyv1902 = make([]HTTPIngressPath, yyrl1902)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyc1902 = true
yyrr1902 = len(yyv1902)
if yyrg1902 {
copy(yyv1902, yyv21902)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1902 != len(yyv1902) {
yyv1902 = yyv1902[:yyl1902]
yyc1902 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1902 := 0
for ; yyj1902 < yyrr1902; yyj1902++ {
yyh1902.ElemContainerState(yyj1902)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1902[yyj1902] = HTTPIngressPath{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1903 := &yyv1902[yyj1902]
yyv1903.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyrt1902 {
for ; yyj1902 < yyl1902; yyj1902++ {
yyv1902 = append(yyv1902, HTTPIngressPath{})
yyh1902.ElemContainerState(yyj1902)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1902[yyj1902] = HTTPIngressPath{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1904 := &yyv1902[yyj1902]
yyv1904.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
}
} else {
2017-04-07 10:49:53 +00:00
yyj1902 := 0
for ; !r.CheckBreak(); yyj1902++ {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
if yyj1902 >= len(yyv1902) {
yyv1902 = append(yyv1902, HTTPIngressPath{}) // var yyz1902 HTTPIngressPath
yyc1902 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyh1902.ElemContainerState(yyj1902)
if yyj1902 < len(yyv1902) {
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1902[yyj1902] = HTTPIngressPath{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1905 := &yyv1902[yyj1902]
yyv1905.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
} else {
z.DecSwallow()
}
}
2017-04-07 10:49:53 +00:00
if yyj1902 < len(yyv1902) {
yyv1902 = yyv1902[:yyj1902]
yyc1902 = true
} else if yyj1902 == 0 && yyv1902 == nil {
yyv1902 = []HTTPIngressPath{}
yyc1902 = true
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyh1902.End()
if yyc1902 {
*v = yyv1902
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
func (x codecSelfer1234) encSliceReplicaSet(v []ReplicaSet, e *codec1978.Encoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
2017-04-07 10:49:53 +00:00
for _, yyv1906 := range v {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1907 := &yyv1906
yy1907.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
2017-04-07 10:49:53 +00:00
func (x codecSelfer1234) decSliceReplicaSet(v *[]ReplicaSet, d *codec1978.Decoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yyv1908 := *v
yyh1908, yyl1908 := z.DecSliceHelperStart()
var yyc1908 bool
if yyl1908 == 0 {
if yyv1908 == nil {
yyv1908 = []ReplicaSet{}
yyc1908 = true
} else if len(yyv1908) != 0 {
yyv1908 = yyv1908[:0]
yyc1908 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1908 > 0 {
var yyrr1908, yyrl1908 int
var yyrt1908 bool
if yyl1908 > cap(yyv1908) {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
yyrg1908 := len(yyv1908) > 0
yyv21908 := yyv1908
yyrl1908, yyrt1908 = z.DecInferLen(yyl1908, z.DecBasicHandle().MaxInitLen, 800)
if yyrt1908 {
if yyrl1908 <= cap(yyv1908) {
yyv1908 = yyv1908[:yyrl1908]
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1908 = make([]ReplicaSet, yyrl1908)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
yyv1908 = make([]ReplicaSet, yyrl1908)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyc1908 = true
yyrr1908 = len(yyv1908)
if yyrg1908 {
copy(yyv1908, yyv21908)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1908 != len(yyv1908) {
yyv1908 = yyv1908[:yyl1908]
yyc1908 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1908 := 0
for ; yyj1908 < yyrr1908; yyj1908++ {
yyh1908.ElemContainerState(yyj1908)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1908[yyj1908] = ReplicaSet{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1909 := &yyv1908[yyj1908]
yyv1909.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyrt1908 {
for ; yyj1908 < yyl1908; yyj1908++ {
yyv1908 = append(yyv1908, ReplicaSet{})
yyh1908.ElemContainerState(yyj1908)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1908[yyj1908] = ReplicaSet{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1910 := &yyv1908[yyj1908]
yyv1910.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
}
} else {
2017-04-07 10:49:53 +00:00
yyj1908 := 0
for ; !r.CheckBreak(); yyj1908++ {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
if yyj1908 >= len(yyv1908) {
yyv1908 = append(yyv1908, ReplicaSet{}) // var yyz1908 ReplicaSet
yyc1908 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyh1908.ElemContainerState(yyj1908)
if yyj1908 < len(yyv1908) {
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1908[yyj1908] = ReplicaSet{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1911 := &yyv1908[yyj1908]
yyv1911.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
} else {
z.DecSwallow()
}
}
2017-04-07 10:49:53 +00:00
if yyj1908 < len(yyv1908) {
yyv1908 = yyv1908[:yyj1908]
yyc1908 = true
} else if yyj1908 == 0 && yyv1908 == nil {
yyv1908 = []ReplicaSet{}
yyc1908 = true
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyh1908.End()
if yyc1908 {
*v = yyv1908
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
func (x codecSelfer1234) encSliceReplicaSetCondition(v []ReplicaSetCondition, e *codec1978.Encoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
2017-04-07 10:49:53 +00:00
for _, yyv1912 := range v {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1913 := &yyv1912
yy1913.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
2017-04-07 10:49:53 +00:00
func (x codecSelfer1234) decSliceReplicaSetCondition(v *[]ReplicaSetCondition, d *codec1978.Decoder) {
2017-02-07 21:33:23 +00:00
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yyv1914 := *v
yyh1914, yyl1914 := z.DecSliceHelperStart()
var yyc1914 bool
if yyl1914 == 0 {
if yyv1914 == nil {
yyv1914 = []ReplicaSetCondition{}
yyc1914 = true
} else if len(yyv1914) != 0 {
yyv1914 = yyv1914[:0]
yyc1914 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1914 > 0 {
var yyrr1914, yyrl1914 int
var yyrt1914 bool
if yyl1914 > cap(yyv1914) {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
yyrg1914 := len(yyv1914) > 0
yyv21914 := yyv1914
yyrl1914, yyrt1914 = z.DecInferLen(yyl1914, z.DecBasicHandle().MaxInitLen, 88)
if yyrt1914 {
if yyrl1914 <= cap(yyv1914) {
yyv1914 = yyv1914[:yyrl1914]
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1914 = make([]ReplicaSetCondition, yyrl1914)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
yyv1914 = make([]ReplicaSetCondition, yyrl1914)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyc1914 = true
yyrr1914 = len(yyv1914)
if yyrg1914 {
copy(yyv1914, yyv21914)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1914 != len(yyv1914) {
yyv1914 = yyv1914[:yyl1914]
yyc1914 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1914 := 0
for ; yyj1914 < yyrr1914; yyj1914++ {
yyh1914.ElemContainerState(yyj1914)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1914[yyj1914] = ReplicaSetCondition{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1915 := &yyv1914[yyj1914]
yyv1915.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyrt1914 {
for ; yyj1914 < yyl1914; yyj1914++ {
yyv1914 = append(yyv1914, ReplicaSetCondition{})
yyh1914.ElemContainerState(yyj1914)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1914[yyj1914] = ReplicaSetCondition{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1916 := &yyv1914[yyj1914]
yyv1916.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
}
} else {
2017-04-07 10:49:53 +00:00
yyj1914 := 0
for ; !r.CheckBreak(); yyj1914++ {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
if yyj1914 >= len(yyv1914) {
yyv1914 = append(yyv1914, ReplicaSetCondition{}) // var yyz1914 ReplicaSetCondition
yyc1914 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyh1914.ElemContainerState(yyj1914)
if yyj1914 < len(yyv1914) {
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1914[yyj1914] = ReplicaSetCondition{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1917 := &yyv1914[yyj1914]
yyv1917.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
} else {
z.DecSwallow()
}
}
2017-04-07 10:49:53 +00:00
if yyj1914 < len(yyv1914) {
yyv1914 = yyv1914[:yyj1914]
yyc1914 = true
} else if yyj1914 == 0 && yyv1914 == nil {
yyv1914 = []ReplicaSetCondition{}
yyc1914 = true
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyh1914.End()
if yyc1914 {
*v = yyv1914
2017-02-07 21:33:23 +00:00
}
}
func (x codecSelfer1234) encSlicev1_Capability(v []pkg2_v1.Capability, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
2017-04-07 10:49:53 +00:00
for _, yyv1918 := range v {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yym1919 := z.EncBinary()
_ = yym1919
2017-02-07 21:33:23 +00:00
if false {
2017-04-07 10:49:53 +00:00
} else if z.HasExtensions() && z.EncExt(yyv1918) {
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
r.EncodeString(codecSelferC_UTF81234, string(yyv1918))
2017-02-07 21:33:23 +00:00
}
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSlicev1_Capability(v *[]pkg2_v1.Capability, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yyv1920 := *v
yyh1920, yyl1920 := z.DecSliceHelperStart()
var yyc1920 bool
if yyl1920 == 0 {
if yyv1920 == nil {
yyv1920 = []pkg2_v1.Capability{}
yyc1920 = true
} else if len(yyv1920) != 0 {
yyv1920 = yyv1920[:0]
yyc1920 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1920 > 0 {
var yyrr1920, yyrl1920 int
var yyrt1920 bool
if yyl1920 > cap(yyv1920) {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
yyrl1920, yyrt1920 = z.DecInferLen(yyl1920, z.DecBasicHandle().MaxInitLen, 16)
if yyrt1920 {
if yyrl1920 <= cap(yyv1920) {
yyv1920 = yyv1920[:yyrl1920]
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1920 = make([]pkg2_v1.Capability, yyrl1920)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
yyv1920 = make([]pkg2_v1.Capability, yyrl1920)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyc1920 = true
yyrr1920 = len(yyv1920)
} else if yyl1920 != len(yyv1920) {
yyv1920 = yyv1920[:yyl1920]
yyc1920 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1920 := 0
for ; yyj1920 < yyrr1920; yyj1920++ {
yyh1920.ElemContainerState(yyj1920)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1920[yyj1920] = ""
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1920[yyj1920] = pkg2_v1.Capability(r.DecodeString())
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyrt1920 {
for ; yyj1920 < yyl1920; yyj1920++ {
yyv1920 = append(yyv1920, "")
yyh1920.ElemContainerState(yyj1920)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1920[yyj1920] = ""
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1920[yyj1920] = pkg2_v1.Capability(r.DecodeString())
2017-02-07 21:33:23 +00:00
}
}
}
} else {
2017-04-07 10:49:53 +00:00
yyj1920 := 0
for ; !r.CheckBreak(); yyj1920++ {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
if yyj1920 >= len(yyv1920) {
yyv1920 = append(yyv1920, "") // var yyz1920 pkg2_v1.Capability
yyc1920 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyh1920.ElemContainerState(yyj1920)
if yyj1920 < len(yyv1920) {
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1920[yyj1920] = ""
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1920[yyj1920] = pkg2_v1.Capability(r.DecodeString())
2017-02-07 21:33:23 +00:00
}
} else {
z.DecSwallow()
}
}
2017-04-07 10:49:53 +00:00
if yyj1920 < len(yyv1920) {
yyv1920 = yyv1920[:yyj1920]
yyc1920 = true
} else if yyj1920 == 0 && yyv1920 == nil {
yyv1920 = []pkg2_v1.Capability{}
yyc1920 = true
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyh1920.End()
if yyc1920 {
*v = yyv1920
2017-02-07 21:33:23 +00:00
}
}
func (x codecSelfer1234) encSliceFSType(v []FSType, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
2017-04-07 10:49:53 +00:00
for _, yyv1924 := range v {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yyv1924.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yyv1925 := *v
yyh1925, yyl1925 := z.DecSliceHelperStart()
var yyc1925 bool
if yyl1925 == 0 {
if yyv1925 == nil {
yyv1925 = []FSType{}
yyc1925 = true
} else if len(yyv1925) != 0 {
yyv1925 = yyv1925[:0]
yyc1925 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1925 > 0 {
var yyrr1925, yyrl1925 int
var yyrt1925 bool
if yyl1925 > cap(yyv1925) {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
yyrl1925, yyrt1925 = z.DecInferLen(yyl1925, z.DecBasicHandle().MaxInitLen, 16)
if yyrt1925 {
if yyrl1925 <= cap(yyv1925) {
yyv1925 = yyv1925[:yyrl1925]
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1925 = make([]FSType, yyrl1925)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
yyv1925 = make([]FSType, yyrl1925)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyc1925 = true
yyrr1925 = len(yyv1925)
} else if yyl1925 != len(yyv1925) {
yyv1925 = yyv1925[:yyl1925]
yyc1925 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1925 := 0
for ; yyj1925 < yyrr1925; yyj1925++ {
yyh1925.ElemContainerState(yyj1925)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1925[yyj1925] = ""
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1925[yyj1925] = FSType(r.DecodeString())
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyrt1925 {
for ; yyj1925 < yyl1925; yyj1925++ {
yyv1925 = append(yyv1925, "")
yyh1925.ElemContainerState(yyj1925)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1925[yyj1925] = ""
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1925[yyj1925] = FSType(r.DecodeString())
2017-02-07 21:33:23 +00:00
}
}
}
} else {
2017-04-07 10:49:53 +00:00
yyj1925 := 0
for ; !r.CheckBreak(); yyj1925++ {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
if yyj1925 >= len(yyv1925) {
yyv1925 = append(yyv1925, "") // var yyz1925 FSType
yyc1925 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyh1925.ElemContainerState(yyj1925)
if yyj1925 < len(yyv1925) {
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1925[yyj1925] = ""
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1925[yyj1925] = FSType(r.DecodeString())
2017-02-07 21:33:23 +00:00
}
} else {
z.DecSwallow()
}
}
2017-04-07 10:49:53 +00:00
if yyj1925 < len(yyv1925) {
yyv1925 = yyv1925[:yyj1925]
yyc1925 = true
} else if yyj1925 == 0 && yyv1925 == nil {
yyv1925 = []FSType{}
yyc1925 = true
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyh1925.End()
if yyc1925 {
*v = yyv1925
2017-02-07 21:33:23 +00:00
}
}
func (x codecSelfer1234) encSliceHostPortRange(v []HostPortRange, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
2017-04-07 10:49:53 +00:00
for _, yyv1929 := range v {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1930 := &yyv1929
yy1930.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceHostPortRange(v *[]HostPortRange, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yyv1931 := *v
yyh1931, yyl1931 := z.DecSliceHelperStart()
var yyc1931 bool
if yyl1931 == 0 {
if yyv1931 == nil {
yyv1931 = []HostPortRange{}
yyc1931 = true
} else if len(yyv1931) != 0 {
yyv1931 = yyv1931[:0]
yyc1931 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1931 > 0 {
var yyrr1931, yyrl1931 int
var yyrt1931 bool
if yyl1931 > cap(yyv1931) {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
yyrg1931 := len(yyv1931) > 0
yyv21931 := yyv1931
yyrl1931, yyrt1931 = z.DecInferLen(yyl1931, z.DecBasicHandle().MaxInitLen, 8)
if yyrt1931 {
if yyrl1931 <= cap(yyv1931) {
yyv1931 = yyv1931[:yyrl1931]
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1931 = make([]HostPortRange, yyrl1931)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
yyv1931 = make([]HostPortRange, yyrl1931)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyc1931 = true
yyrr1931 = len(yyv1931)
if yyrg1931 {
copy(yyv1931, yyv21931)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1931 != len(yyv1931) {
yyv1931 = yyv1931[:yyl1931]
yyc1931 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1931 := 0
for ; yyj1931 < yyrr1931; yyj1931++ {
yyh1931.ElemContainerState(yyj1931)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1931[yyj1931] = HostPortRange{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1932 := &yyv1931[yyj1931]
yyv1932.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyrt1931 {
for ; yyj1931 < yyl1931; yyj1931++ {
yyv1931 = append(yyv1931, HostPortRange{})
yyh1931.ElemContainerState(yyj1931)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1931[yyj1931] = HostPortRange{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1933 := &yyv1931[yyj1931]
yyv1933.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
}
} else {
2017-04-07 10:49:53 +00:00
yyj1931 := 0
for ; !r.CheckBreak(); yyj1931++ {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
if yyj1931 >= len(yyv1931) {
yyv1931 = append(yyv1931, HostPortRange{}) // var yyz1931 HostPortRange
yyc1931 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyh1931.ElemContainerState(yyj1931)
if yyj1931 < len(yyv1931) {
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1931[yyj1931] = HostPortRange{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1934 := &yyv1931[yyj1931]
yyv1934.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
} else {
z.DecSwallow()
}
}
2017-04-07 10:49:53 +00:00
if yyj1931 < len(yyv1931) {
yyv1931 = yyv1931[:yyj1931]
yyc1931 = true
} else if yyj1931 == 0 && yyv1931 == nil {
yyv1931 = []HostPortRange{}
yyc1931 = true
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyh1931.End()
if yyc1931 {
*v = yyv1931
2017-02-07 21:33:23 +00:00
}
}
func (x codecSelfer1234) encSliceIDRange(v []IDRange, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
2017-04-07 10:49:53 +00:00
for _, yyv1935 := range v {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1936 := &yyv1935
yy1936.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceIDRange(v *[]IDRange, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yyv1937 := *v
yyh1937, yyl1937 := z.DecSliceHelperStart()
var yyc1937 bool
if yyl1937 == 0 {
if yyv1937 == nil {
yyv1937 = []IDRange{}
yyc1937 = true
} else if len(yyv1937) != 0 {
yyv1937 = yyv1937[:0]
yyc1937 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1937 > 0 {
var yyrr1937, yyrl1937 int
var yyrt1937 bool
if yyl1937 > cap(yyv1937) {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
yyrg1937 := len(yyv1937) > 0
yyv21937 := yyv1937
yyrl1937, yyrt1937 = z.DecInferLen(yyl1937, z.DecBasicHandle().MaxInitLen, 16)
if yyrt1937 {
if yyrl1937 <= cap(yyv1937) {
yyv1937 = yyv1937[:yyrl1937]
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1937 = make([]IDRange, yyrl1937)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
yyv1937 = make([]IDRange, yyrl1937)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyc1937 = true
yyrr1937 = len(yyv1937)
if yyrg1937 {
copy(yyv1937, yyv21937)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1937 != len(yyv1937) {
yyv1937 = yyv1937[:yyl1937]
yyc1937 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1937 := 0
for ; yyj1937 < yyrr1937; yyj1937++ {
yyh1937.ElemContainerState(yyj1937)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1937[yyj1937] = IDRange{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1938 := &yyv1937[yyj1937]
yyv1938.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyrt1937 {
for ; yyj1937 < yyl1937; yyj1937++ {
yyv1937 = append(yyv1937, IDRange{})
yyh1937.ElemContainerState(yyj1937)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1937[yyj1937] = IDRange{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1939 := &yyv1937[yyj1937]
yyv1939.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
}
} else {
2017-04-07 10:49:53 +00:00
yyj1937 := 0
for ; !r.CheckBreak(); yyj1937++ {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
if yyj1937 >= len(yyv1937) {
yyv1937 = append(yyv1937, IDRange{}) // var yyz1937 IDRange
yyc1937 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyh1937.ElemContainerState(yyj1937)
if yyj1937 < len(yyv1937) {
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1937[yyj1937] = IDRange{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1940 := &yyv1937[yyj1937]
yyv1940.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
} else {
z.DecSwallow()
}
}
2017-04-07 10:49:53 +00:00
if yyj1937 < len(yyv1937) {
yyv1937 = yyv1937[:yyj1937]
yyc1937 = true
} else if yyj1937 == 0 && yyv1937 == nil {
yyv1937 = []IDRange{}
yyc1937 = true
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyh1937.End()
if yyc1937 {
*v = yyv1937
2017-02-07 21:33:23 +00:00
}
}
func (x codecSelfer1234) encSlicePodSecurityPolicy(v []PodSecurityPolicy, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
2017-04-07 10:49:53 +00:00
for _, yyv1941 := range v {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1942 := &yyv1941
yy1942.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSlicePodSecurityPolicy(v *[]PodSecurityPolicy, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yyv1943 := *v
yyh1943, yyl1943 := z.DecSliceHelperStart()
var yyc1943 bool
if yyl1943 == 0 {
if yyv1943 == nil {
yyv1943 = []PodSecurityPolicy{}
yyc1943 = true
} else if len(yyv1943) != 0 {
yyv1943 = yyv1943[:0]
yyc1943 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1943 > 0 {
var yyrr1943, yyrl1943 int
var yyrt1943 bool
if yyl1943 > cap(yyv1943) {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
yyrg1943 := len(yyv1943) > 0
yyv21943 := yyv1943
yyrl1943, yyrt1943 = z.DecInferLen(yyl1943, z.DecBasicHandle().MaxInitLen, 552)
if yyrt1943 {
if yyrl1943 <= cap(yyv1943) {
yyv1943 = yyv1943[:yyrl1943]
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1943 = make([]PodSecurityPolicy, yyrl1943)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
yyv1943 = make([]PodSecurityPolicy, yyrl1943)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyc1943 = true
yyrr1943 = len(yyv1943)
if yyrg1943 {
copy(yyv1943, yyv21943)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1943 != len(yyv1943) {
yyv1943 = yyv1943[:yyl1943]
yyc1943 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1943 := 0
for ; yyj1943 < yyrr1943; yyj1943++ {
yyh1943.ElemContainerState(yyj1943)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1943[yyj1943] = PodSecurityPolicy{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1944 := &yyv1943[yyj1943]
yyv1944.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyrt1943 {
for ; yyj1943 < yyl1943; yyj1943++ {
yyv1943 = append(yyv1943, PodSecurityPolicy{})
yyh1943.ElemContainerState(yyj1943)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1943[yyj1943] = PodSecurityPolicy{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1945 := &yyv1943[yyj1943]
yyv1945.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
}
} else {
2017-04-07 10:49:53 +00:00
yyj1943 := 0
for ; !r.CheckBreak(); yyj1943++ {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
if yyj1943 >= len(yyv1943) {
yyv1943 = append(yyv1943, PodSecurityPolicy{}) // var yyz1943 PodSecurityPolicy
yyc1943 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyh1943.ElemContainerState(yyj1943)
if yyj1943 < len(yyv1943) {
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1943[yyj1943] = PodSecurityPolicy{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1946 := &yyv1943[yyj1943]
yyv1946.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
} else {
z.DecSwallow()
}
}
2017-04-07 10:49:53 +00:00
if yyj1943 < len(yyv1943) {
yyv1943 = yyv1943[:yyj1943]
yyc1943 = true
} else if yyj1943 == 0 && yyv1943 == nil {
yyv1943 = []PodSecurityPolicy{}
yyc1943 = true
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyh1943.End()
if yyc1943 {
*v = yyv1943
2017-02-07 21:33:23 +00:00
}
}
func (x codecSelfer1234) encSliceNetworkPolicyIngressRule(v []NetworkPolicyIngressRule, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
2017-04-07 10:49:53 +00:00
for _, yyv1947 := range v {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1948 := &yyv1947
yy1948.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceNetworkPolicyIngressRule(v *[]NetworkPolicyIngressRule, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yyv1949 := *v
yyh1949, yyl1949 := z.DecSliceHelperStart()
var yyc1949 bool
if yyl1949 == 0 {
if yyv1949 == nil {
yyv1949 = []NetworkPolicyIngressRule{}
yyc1949 = true
} else if len(yyv1949) != 0 {
yyv1949 = yyv1949[:0]
yyc1949 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1949 > 0 {
var yyrr1949, yyrl1949 int
var yyrt1949 bool
if yyl1949 > cap(yyv1949) {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
yyrg1949 := len(yyv1949) > 0
yyv21949 := yyv1949
yyrl1949, yyrt1949 = z.DecInferLen(yyl1949, z.DecBasicHandle().MaxInitLen, 48)
if yyrt1949 {
if yyrl1949 <= cap(yyv1949) {
yyv1949 = yyv1949[:yyrl1949]
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1949 = make([]NetworkPolicyIngressRule, yyrl1949)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
yyv1949 = make([]NetworkPolicyIngressRule, yyrl1949)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyc1949 = true
yyrr1949 = len(yyv1949)
if yyrg1949 {
copy(yyv1949, yyv21949)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1949 != len(yyv1949) {
yyv1949 = yyv1949[:yyl1949]
yyc1949 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1949 := 0
for ; yyj1949 < yyrr1949; yyj1949++ {
yyh1949.ElemContainerState(yyj1949)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1949[yyj1949] = NetworkPolicyIngressRule{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1950 := &yyv1949[yyj1949]
yyv1950.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyrt1949 {
for ; yyj1949 < yyl1949; yyj1949++ {
yyv1949 = append(yyv1949, NetworkPolicyIngressRule{})
yyh1949.ElemContainerState(yyj1949)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1949[yyj1949] = NetworkPolicyIngressRule{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1951 := &yyv1949[yyj1949]
yyv1951.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
}
} else {
2017-04-07 10:49:53 +00:00
yyj1949 := 0
for ; !r.CheckBreak(); yyj1949++ {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
if yyj1949 >= len(yyv1949) {
yyv1949 = append(yyv1949, NetworkPolicyIngressRule{}) // var yyz1949 NetworkPolicyIngressRule
yyc1949 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyh1949.ElemContainerState(yyj1949)
if yyj1949 < len(yyv1949) {
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1949[yyj1949] = NetworkPolicyIngressRule{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1952 := &yyv1949[yyj1949]
yyv1952.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
} else {
z.DecSwallow()
}
}
2017-04-07 10:49:53 +00:00
if yyj1949 < len(yyv1949) {
yyv1949 = yyv1949[:yyj1949]
yyc1949 = true
} else if yyj1949 == 0 && yyv1949 == nil {
yyv1949 = []NetworkPolicyIngressRule{}
yyc1949 = true
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyh1949.End()
if yyc1949 {
*v = yyv1949
2017-02-07 21:33:23 +00:00
}
}
func (x codecSelfer1234) encSliceNetworkPolicyPort(v []NetworkPolicyPort, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
2017-04-07 10:49:53 +00:00
for _, yyv1953 := range v {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1954 := &yyv1953
yy1954.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceNetworkPolicyPort(v *[]NetworkPolicyPort, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yyv1955 := *v
yyh1955, yyl1955 := z.DecSliceHelperStart()
var yyc1955 bool
if yyl1955 == 0 {
if yyv1955 == nil {
yyv1955 = []NetworkPolicyPort{}
yyc1955 = true
} else if len(yyv1955) != 0 {
yyv1955 = yyv1955[:0]
yyc1955 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1955 > 0 {
var yyrr1955, yyrl1955 int
var yyrt1955 bool
if yyl1955 > cap(yyv1955) {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
yyrg1955 := len(yyv1955) > 0
yyv21955 := yyv1955
yyrl1955, yyrt1955 = z.DecInferLen(yyl1955, z.DecBasicHandle().MaxInitLen, 16)
if yyrt1955 {
if yyrl1955 <= cap(yyv1955) {
yyv1955 = yyv1955[:yyrl1955]
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1955 = make([]NetworkPolicyPort, yyrl1955)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
yyv1955 = make([]NetworkPolicyPort, yyrl1955)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyc1955 = true
yyrr1955 = len(yyv1955)
if yyrg1955 {
copy(yyv1955, yyv21955)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1955 != len(yyv1955) {
yyv1955 = yyv1955[:yyl1955]
yyc1955 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1955 := 0
for ; yyj1955 < yyrr1955; yyj1955++ {
yyh1955.ElemContainerState(yyj1955)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1955[yyj1955] = NetworkPolicyPort{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1956 := &yyv1955[yyj1955]
yyv1956.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyrt1955 {
for ; yyj1955 < yyl1955; yyj1955++ {
yyv1955 = append(yyv1955, NetworkPolicyPort{})
yyh1955.ElemContainerState(yyj1955)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1955[yyj1955] = NetworkPolicyPort{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1957 := &yyv1955[yyj1955]
yyv1957.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
}
} else {
2017-04-07 10:49:53 +00:00
yyj1955 := 0
for ; !r.CheckBreak(); yyj1955++ {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
if yyj1955 >= len(yyv1955) {
yyv1955 = append(yyv1955, NetworkPolicyPort{}) // var yyz1955 NetworkPolicyPort
yyc1955 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyh1955.ElemContainerState(yyj1955)
if yyj1955 < len(yyv1955) {
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1955[yyj1955] = NetworkPolicyPort{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1958 := &yyv1955[yyj1955]
yyv1958.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
} else {
z.DecSwallow()
}
}
2017-04-07 10:49:53 +00:00
if yyj1955 < len(yyv1955) {
yyv1955 = yyv1955[:yyj1955]
yyc1955 = true
} else if yyj1955 == 0 && yyv1955 == nil {
yyv1955 = []NetworkPolicyPort{}
yyc1955 = true
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyh1955.End()
if yyc1955 {
*v = yyv1955
2017-02-07 21:33:23 +00:00
}
}
func (x codecSelfer1234) encSliceNetworkPolicyPeer(v []NetworkPolicyPeer, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
2017-04-07 10:49:53 +00:00
for _, yyv1959 := range v {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1960 := &yyv1959
yy1960.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceNetworkPolicyPeer(v *[]NetworkPolicyPeer, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yyv1961 := *v
yyh1961, yyl1961 := z.DecSliceHelperStart()
var yyc1961 bool
if yyl1961 == 0 {
if yyv1961 == nil {
yyv1961 = []NetworkPolicyPeer{}
yyc1961 = true
} else if len(yyv1961) != 0 {
yyv1961 = yyv1961[:0]
yyc1961 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1961 > 0 {
var yyrr1961, yyrl1961 int
var yyrt1961 bool
if yyl1961 > cap(yyv1961) {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
yyrg1961 := len(yyv1961) > 0
yyv21961 := yyv1961
yyrl1961, yyrt1961 = z.DecInferLen(yyl1961, z.DecBasicHandle().MaxInitLen, 16)
if yyrt1961 {
if yyrl1961 <= cap(yyv1961) {
yyv1961 = yyv1961[:yyrl1961]
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1961 = make([]NetworkPolicyPeer, yyrl1961)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
yyv1961 = make([]NetworkPolicyPeer, yyrl1961)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyc1961 = true
yyrr1961 = len(yyv1961)
if yyrg1961 {
copy(yyv1961, yyv21961)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1961 != len(yyv1961) {
yyv1961 = yyv1961[:yyl1961]
yyc1961 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1961 := 0
for ; yyj1961 < yyrr1961; yyj1961++ {
yyh1961.ElemContainerState(yyj1961)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1961[yyj1961] = NetworkPolicyPeer{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1962 := &yyv1961[yyj1961]
yyv1962.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyrt1961 {
for ; yyj1961 < yyl1961; yyj1961++ {
yyv1961 = append(yyv1961, NetworkPolicyPeer{})
yyh1961.ElemContainerState(yyj1961)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1961[yyj1961] = NetworkPolicyPeer{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1963 := &yyv1961[yyj1961]
yyv1963.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
}
} else {
2017-04-07 10:49:53 +00:00
yyj1961 := 0
for ; !r.CheckBreak(); yyj1961++ {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
if yyj1961 >= len(yyv1961) {
yyv1961 = append(yyv1961, NetworkPolicyPeer{}) // var yyz1961 NetworkPolicyPeer
yyc1961 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyh1961.ElemContainerState(yyj1961)
if yyj1961 < len(yyv1961) {
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1961[yyj1961] = NetworkPolicyPeer{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1964 := &yyv1961[yyj1961]
yyv1964.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
} else {
z.DecSwallow()
}
}
2017-04-07 10:49:53 +00:00
if yyj1961 < len(yyv1961) {
yyv1961 = yyv1961[:yyj1961]
yyc1961 = true
} else if yyj1961 == 0 && yyv1961 == nil {
yyv1961 = []NetworkPolicyPeer{}
yyc1961 = true
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyh1961.End()
if yyc1961 {
*v = yyv1961
2017-02-07 21:33:23 +00:00
}
}
func (x codecSelfer1234) encSliceNetworkPolicy(v []NetworkPolicy, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
2017-04-07 10:49:53 +00:00
for _, yyv1965 := range v {
2017-02-07 21:33:23 +00:00
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
2017-04-07 10:49:53 +00:00
yy1966 := &yyv1965
yy1966.CodecEncodeSelf(e)
2017-02-07 21:33:23 +00:00
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceNetworkPolicy(v *[]NetworkPolicy, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2017-04-07 10:49:53 +00:00
yyv1967 := *v
yyh1967, yyl1967 := z.DecSliceHelperStart()
var yyc1967 bool
if yyl1967 == 0 {
if yyv1967 == nil {
yyv1967 = []NetworkPolicy{}
yyc1967 = true
} else if len(yyv1967) != 0 {
yyv1967 = yyv1967[:0]
yyc1967 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1967 > 0 {
var yyrr1967, yyrl1967 int
var yyrt1967 bool
if yyl1967 > cap(yyv1967) {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
yyrg1967 := len(yyv1967) > 0
yyv21967 := yyv1967
yyrl1967, yyrt1967 = z.DecInferLen(yyl1967, z.DecBasicHandle().MaxInitLen, 312)
if yyrt1967 {
if yyrl1967 <= cap(yyv1967) {
yyv1967 = yyv1967[:yyrl1967]
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1967 = make([]NetworkPolicy, yyrl1967)
2017-02-07 21:33:23 +00:00
}
} else {
2017-04-07 10:49:53 +00:00
yyv1967 = make([]NetworkPolicy, yyrl1967)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyc1967 = true
yyrr1967 = len(yyv1967)
if yyrg1967 {
copy(yyv1967, yyv21967)
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
} else if yyl1967 != len(yyv1967) {
yyv1967 = yyv1967[:yyl1967]
yyc1967 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyj1967 := 0
for ; yyj1967 < yyrr1967; yyj1967++ {
yyh1967.ElemContainerState(yyj1967)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1967[yyj1967] = NetworkPolicy{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1968 := &yyv1967[yyj1967]
yyv1968.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
if yyrt1967 {
for ; yyj1967 < yyl1967; yyj1967++ {
yyv1967 = append(yyv1967, NetworkPolicy{})
yyh1967.ElemContainerState(yyj1967)
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1967[yyj1967] = NetworkPolicy{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1969 := &yyv1967[yyj1967]
yyv1969.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
}
}
} else {
2017-04-07 10:49:53 +00:00
yyj1967 := 0
for ; !r.CheckBreak(); yyj1967++ {
2017-02-07 21:33:23 +00:00
2017-04-07 10:49:53 +00:00
if yyj1967 >= len(yyv1967) {
yyv1967 = append(yyv1967, NetworkPolicy{}) // var yyz1967 NetworkPolicy
yyc1967 = true
2017-02-07 21:33:23 +00:00
}
2017-04-07 10:49:53 +00:00
yyh1967.ElemContainerState(yyj1967)
if yyj1967 < len(yyv1967) {
2017-02-07 21:33:23 +00:00
if r.TryDecodeAsNil() {
2017-04-07 10:49:53 +00:00
yyv1967[yyj1967] = NetworkPolicy{}
2017-02-07 21:33:23 +00:00
} else {
2017-04-07 10:49:53 +00:00
yyv1970 := &yyv1967[yyj1967]
yyv1970.CodecDecodeSelf(d)
2017-02-07 21:33:23 +00:00
}
} else {
z.DecSwallow()
}
}
2017-04-07 10:49:53 +00:00
if yyj1967 < len(yyv1967) {
yyv1967 = yyv1967[:yyj1967]
yyc1967 = true
} else if yyj1967 == 0 && yyv1967 == nil {
yyv1967 = []NetworkPolicy{}
yyc1967 = true
2017-02-07 21:33:23 +00:00
}
}
2017-04-07 10:49:53 +00:00
yyh1967.End()
if yyc1967 {
*v = yyv1967
2017-02-07 21:33:23 +00:00
}
}