Merge pull request #49302 from sttts/sttts-missing-codecs

Automatic merge from submit-queue

Add missing ugorji codecs for auth/v1, settings/v1alphav1 and storage/v1
This commit is contained in:
Kubernetes Submit Queue 2017-08-03 03:05:49 -07:00 committed by GitHub
commit f8affc7dcc
8 changed files with 4669 additions and 333 deletions

View File

@ -667,13 +667,7 @@ func (x *AdmissionReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[8] { if yyq2[8] {
yy36 := &x.UserInfo yy36 := &x.UserInfo
yym37 := z.EncBinary() yy36.CodecEncodeSelf(e)
_ = yym37
if false {
} else if z.HasExtensions() && z.EncExt(yy36) {
} else {
z.EncFallback(yy36)
}
} else { } else {
r.EncodeNil() r.EncodeNil()
} }
@ -683,13 +677,7 @@ func (x *AdmissionReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeString(codecSelferC_UTF81234, string("userInfo")) r.EncodeString(codecSelferC_UTF81234, string("userInfo"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy38 := &x.UserInfo yy38 := &x.UserInfo
yym39 := z.EncBinary() yy38.CodecEncodeSelf(e)
_ = yym39
if false {
} else if z.HasExtensions() && z.EncExt(yy38) {
} else {
z.EncFallback(yy38)
}
} }
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
@ -863,13 +851,7 @@ func (x *AdmissionReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder
x.UserInfo = pkg4_v1.UserInfo{} x.UserInfo = pkg4_v1.UserInfo{}
} else { } else {
yyv20 := &x.UserInfo yyv20 := &x.UserInfo
yym21 := z.DecBinary() yyv20.CodecDecodeSelf(d)
_ = yym21
if false {
} else if z.HasExtensions() && z.DecExt(yyv20) {
} else {
z.DecFallback(yyv20, false)
}
} }
default: default:
z.DecStructFieldNotFound(-1, yys3) z.DecStructFieldNotFound(-1, yys3)
@ -882,16 +864,16 @@ func (x *AdmissionReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decod
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yyj22 int var yyj21 int
var yyb22 bool var yyb21 bool
var yyhl22 bool = l >= 0 var yyhl21 bool = l >= 0
yyj22++ yyj21++
if yyhl22 { if yyhl21 {
yyb22 = yyj22 > l yyb21 = yyj21 > l
} else { } else {
yyb22 = r.CheckBreak() yyb21 = r.CheckBreak()
} }
if yyb22 { if yyb21 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -899,22 +881,22 @@ func (x *AdmissionReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decod
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Kind = pkg1_v1.GroupVersionKind{} x.Kind = pkg1_v1.GroupVersionKind{}
} else { } else {
yyv23 := &x.Kind yyv22 := &x.Kind
yym24 := z.DecBinary() yym23 := z.DecBinary()
_ = yym24 _ = yym23
if false { if false {
} else if z.HasExtensions() && z.DecExt(yyv23) { } else if z.HasExtensions() && z.DecExt(yyv22) {
} else { } else {
z.DecFallback(yyv23, false) z.DecFallback(yyv22, false)
} }
} }
yyj22++ yyj21++
if yyhl22 { if yyhl21 {
yyb22 = yyj22 > l yyb21 = yyj21 > l
} else { } else {
yyb22 = r.CheckBreak() yyb21 = r.CheckBreak()
} }
if yyb22 { if yyb21 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -922,24 +904,24 @@ func (x *AdmissionReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decod
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Object = pkg2_runtime.RawExtension{} x.Object = pkg2_runtime.RawExtension{}
} else { } else {
yyv25 := &x.Object yyv24 := &x.Object
yym26 := z.DecBinary() yym25 := z.DecBinary()
_ = yym26 _ = yym25
if false { if false {
} else if z.HasExtensions() && z.DecExt(yyv25) { } else if z.HasExtensions() && z.DecExt(yyv24) {
} else if !yym26 && z.IsJSONHandle() { } else if !yym25 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv25) z.DecJSONUnmarshal(yyv24)
} else { } else {
z.DecFallback(yyv25, false) z.DecFallback(yyv24, false)
} }
} }
yyj22++ yyj21++
if yyhl22 { if yyhl21 {
yyb22 = yyj22 > l yyb21 = yyj21 > l
} else { } else {
yyb22 = r.CheckBreak() yyb21 = r.CheckBreak()
} }
if yyb22 { if yyb21 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -947,24 +929,24 @@ func (x *AdmissionReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decod
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.OldObject = pkg2_runtime.RawExtension{} x.OldObject = pkg2_runtime.RawExtension{}
} else { } else {
yyv27 := &x.OldObject yyv26 := &x.OldObject
yym28 := z.DecBinary() yym27 := z.DecBinary()
_ = yym28 _ = yym27
if false { if false {
} else if z.HasExtensions() && z.DecExt(yyv27) { } else if z.HasExtensions() && z.DecExt(yyv26) {
} else if !yym28 && z.IsJSONHandle() { } else if !yym27 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv27) z.DecJSONUnmarshal(yyv26)
} else { } else {
z.DecFallback(yyv27, false) z.DecFallback(yyv26, false)
} }
} }
yyj22++ yyj21++
if yyhl22 { if yyhl21 {
yyb22 = yyj22 > l yyb21 = yyj21 > l
} else { } else {
yyb22 = r.CheckBreak() yyb21 = r.CheckBreak()
} }
if yyb22 { if yyb21 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -972,22 +954,22 @@ func (x *AdmissionReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decod
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Operation = "" x.Operation = ""
} else { } else {
yyv29 := &x.Operation yyv28 := &x.Operation
yym30 := z.DecBinary() yym29 := z.DecBinary()
_ = yym30 _ = yym29
if false { if false {
} else if z.HasExtensions() && z.DecExt(yyv29) { } else if z.HasExtensions() && z.DecExt(yyv28) {
} else { } else {
*((*string)(yyv29)) = r.DecodeString() *((*string)(yyv28)) = r.DecodeString()
} }
} }
yyj22++ yyj21++
if yyhl22 { if yyhl21 {
yyb22 = yyj22 > l yyb21 = yyj21 > l
} else { } else {
yyb22 = r.CheckBreak() yyb21 = r.CheckBreak()
} }
if yyb22 { if yyb21 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -995,21 +977,21 @@ func (x *AdmissionReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decod
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Name = "" x.Name = ""
} else { } else {
yyv31 := &x.Name yyv30 := &x.Name
yym32 := z.DecBinary() yym31 := z.DecBinary()
_ = yym32 _ = yym31
if false { if false {
} else { } else {
*((*string)(yyv31)) = r.DecodeString() *((*string)(yyv30)) = r.DecodeString()
} }
} }
yyj22++ yyj21++
if yyhl22 { if yyhl21 {
yyb22 = yyj22 > l yyb21 = yyj21 > l
} else { } else {
yyb22 = r.CheckBreak() yyb21 = r.CheckBreak()
} }
if yyb22 { if yyb21 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -1017,21 +999,21 @@ func (x *AdmissionReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decod
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Namespace = "" x.Namespace = ""
} else { } else {
yyv33 := &x.Namespace yyv32 := &x.Namespace
yym34 := z.DecBinary() yym33 := z.DecBinary()
_ = yym34 _ = yym33
if false { if false {
} else { } else {
*((*string)(yyv33)) = r.DecodeString() *((*string)(yyv32)) = r.DecodeString()
} }
} }
yyj22++ yyj21++
if yyhl22 { if yyhl21 {
yyb22 = yyj22 > l yyb21 = yyj21 > l
} else { } else {
yyb22 = r.CheckBreak() yyb21 = r.CheckBreak()
} }
if yyb22 { if yyb21 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -1039,22 +1021,22 @@ func (x *AdmissionReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decod
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Resource = pkg1_v1.GroupVersionResource{} x.Resource = pkg1_v1.GroupVersionResource{}
} else { } else {
yyv35 := &x.Resource yyv34 := &x.Resource
yym36 := z.DecBinary() yym35 := z.DecBinary()
_ = yym36 _ = yym35
if false { if false {
} else if z.HasExtensions() && z.DecExt(yyv35) { } else if z.HasExtensions() && z.DecExt(yyv34) {
} else { } else {
z.DecFallback(yyv35, false) z.DecFallback(yyv34, false)
} }
} }
yyj22++ yyj21++
if yyhl22 { if yyhl21 {
yyb22 = yyj22 > l yyb21 = yyj21 > l
} else { } else {
yyb22 = r.CheckBreak() yyb21 = r.CheckBreak()
} }
if yyb22 { if yyb21 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -1062,21 +1044,21 @@ func (x *AdmissionReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decod
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.SubResource = "" x.SubResource = ""
} else { } else {
yyv37 := &x.SubResource yyv36 := &x.SubResource
yym38 := z.DecBinary() yym37 := z.DecBinary()
_ = yym38 _ = yym37
if false { if false {
} else { } else {
*((*string)(yyv37)) = r.DecodeString() *((*string)(yyv36)) = r.DecodeString()
} }
} }
yyj22++ yyj21++
if yyhl22 { if yyhl21 {
yyb22 = yyj22 > l yyb21 = yyj21 > l
} else { } else {
yyb22 = r.CheckBreak() yyb21 = r.CheckBreak()
} }
if yyb22 { if yyb21 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -1084,27 +1066,21 @@ func (x *AdmissionReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decod
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.UserInfo = pkg4_v1.UserInfo{} x.UserInfo = pkg4_v1.UserInfo{}
} else { } else {
yyv39 := &x.UserInfo yyv38 := &x.UserInfo
yym40 := z.DecBinary() yyv38.CodecDecodeSelf(d)
_ = yym40
if false {
} else if z.HasExtensions() && z.DecExt(yyv39) {
} else {
z.DecFallback(yyv39, false)
}
} }
for { for {
yyj22++ yyj21++
if yyhl22 { if yyhl21 {
yyb22 = yyj22 > l yyb21 = yyj21 > l
} else { } else {
yyb22 = r.CheckBreak() yyb21 = r.CheckBreak()
} }
if yyb22 { if yyb21 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj22-1, "") z.DecStructFieldNotFound(yyj21-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }

View File

@ -13,6 +13,7 @@ go_library(
"doc.go", "doc.go",
"generated.pb.go", "generated.pb.go",
"register.go", "register.go",
"types.generated.go",
"types.go", "types.go",
"types_swagger_doc_generated.go", "types_swagger_doc_generated.go",
"zz_generated.deepcopy.go", "zz_generated.deepcopy.go",
@ -21,9 +22,11 @@ go_library(
deps = [ deps = [
"//vendor/github.com/gogo/protobuf/proto:go_default_library", "//vendor/github.com/gogo/protobuf/proto:go_default_library",
"//vendor/github.com/gogo/protobuf/sortkeys:go_default_library", "//vendor/github.com/gogo/protobuf/sortkeys:go_default_library",
"//vendor/github.com/ugorji/go/codec:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library", "//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
], ],
) )

File diff suppressed because it is too large Load Diff

View File

@ -13,6 +13,7 @@ go_library(
"doc.go", "doc.go",
"generated.pb.go", "generated.pb.go",
"register.go", "register.go",
"types.generated.go",
"types.go", "types.go",
"types_swagger_doc_generated.go", "types_swagger_doc_generated.go",
"zz_generated.deepcopy.go", "zz_generated.deepcopy.go",
@ -20,10 +21,13 @@ go_library(
tags = ["automanaged"], tags = ["automanaged"],
deps = [ deps = [
"//vendor/github.com/gogo/protobuf/proto:go_default_library", "//vendor/github.com/gogo/protobuf/proto:go_default_library",
"//vendor/github.com/ugorji/go/codec:go_default_library",
"//vendor/k8s.io/api/core/v1:go_default_library", "//vendor/k8s.io/api/core/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/api/resource:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library", "//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
], ],
) )

File diff suppressed because it is too large Load Diff

View File

@ -13,6 +13,7 @@ go_library(
"doc.go", "doc.go",
"generated.pb.go", "generated.pb.go",
"register.go", "register.go",
"types.generated.go",
"types.go", "types.go",
"types_swagger_doc_generated.go", "types_swagger_doc_generated.go",
"zz_generated.deepcopy.go", "zz_generated.deepcopy.go",
@ -21,9 +22,11 @@ go_library(
deps = [ deps = [
"//vendor/github.com/gogo/protobuf/proto:go_default_library", "//vendor/github.com/gogo/protobuf/proto:go_default_library",
"//vendor/github.com/gogo/protobuf/sortkeys:go_default_library", "//vendor/github.com/gogo/protobuf/sortkeys:go_default_library",
"//vendor/github.com/ugorji/go/codec:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library", "//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
], ],
) )

View File

@ -0,0 +1,985 @@
/*
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 v1
import (
"errors"
"fmt"
codec1978 "github.com/ugorji/go/codec"
pkg1_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
pkg2_types "k8s.io/apimachinery/pkg/types"
"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 pkg1_v1.TypeMeta
var v1 pkg2_types.UID
var v2 time.Time
_, _, _ = v0, v1, v2
}
}
func (x *StorageClass) 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 [5]bool
_, _, _ = yysep2, yyq2, yy2arr2
const yyr2 bool = false
yyq2[0] = x.Kind != ""
yyq2[1] = x.APIVersion != ""
yyq2[2] = true
yyq2[4] = len(x.Parameters) != 0
var yynn2 int
if yyr2 || yy2arr2 {
r.EncodeArrayStart(5)
} else {
yynn2 = 1
for _, b := range yyq2 {
if b {
yynn2++
}
}
r.EncodeMapStart(yynn2)
yynn2 = 0
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[0] {
yym4 := z.EncBinary()
_ = yym4
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym5 := z.EncBinary()
_ = yym5
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[1] {
yym7 := z.EncBinary()
_ = yym7
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym8 := z.EncBinary()
_ = yym8
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[2] {
yy10 := &x.ObjectMeta
yym11 := z.EncBinary()
_ = yym11
if false {
} else if z.HasExtensions() && z.EncExt(yy10) {
} else {
z.EncFallback(yy10)
}
} else {
r.EncodeNil()
}
} else {
if yyq2[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy12 := &x.ObjectMeta
yym13 := z.EncBinary()
_ = yym13
if false {
} else if z.HasExtensions() && z.EncExt(yy12) {
} else {
z.EncFallback(yy12)
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym15 := z.EncBinary()
_ = yym15
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Provisioner))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("provisioner"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym16 := z.EncBinary()
_ = yym16
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Provisioner))
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[4] {
if x.Parameters == nil {
r.EncodeNil()
} else {
yym18 := z.EncBinary()
_ = yym18
if false {
} else {
z.F.EncMapStringStringV(x.Parameters, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("parameters"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Parameters == nil {
r.EncodeNil()
} else {
yym19 := z.EncBinary()
_ = yym19
if false {
} else {
z.F.EncMapStringStringV(x.Parameters, false, e)
}
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *StorageClass) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap1234 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray1234 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *StorageClass) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3Slc = r.DecodeBytes(yys3Slc, true, true)
yys3 := string(yys3Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3 {
case "kind":
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
yyv4 := &x.Kind
yym5 := z.DecBinary()
_ = yym5
if false {
} else {
*((*string)(yyv4)) = r.DecodeString()
}
}
case "apiVersion":
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
yyv6 := &x.APIVersion
yym7 := z.DecBinary()
_ = yym7
if false {
} else {
*((*string)(yyv6)) = r.DecodeString()
}
}
case "metadata":
if r.TryDecodeAsNil() {
x.ObjectMeta = pkg1_v1.ObjectMeta{}
} else {
yyv8 := &x.ObjectMeta
yym9 := z.DecBinary()
_ = yym9
if false {
} else if z.HasExtensions() && z.DecExt(yyv8) {
} else {
z.DecFallback(yyv8, false)
}
}
case "provisioner":
if r.TryDecodeAsNil() {
x.Provisioner = ""
} else {
yyv10 := &x.Provisioner
yym11 := z.DecBinary()
_ = yym11
if false {
} else {
*((*string)(yyv10)) = r.DecodeString()
}
}
case "parameters":
if r.TryDecodeAsNil() {
x.Parameters = nil
} else {
yyv12 := &x.Parameters
yym13 := z.DecBinary()
_ = yym13
if false {
} else {
z.F.DecMapStringStringX(yyv12, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3)
} // end switch yys3
} // end for yyj3
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *StorageClass) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj14 int
var yyb14 bool
var yyhl14 bool = l >= 0
yyj14++
if yyhl14 {
yyb14 = yyj14 > l
} else {
yyb14 = r.CheckBreak()
}
if yyb14 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
yyv15 := &x.Kind
yym16 := z.DecBinary()
_ = yym16
if false {
} else {
*((*string)(yyv15)) = r.DecodeString()
}
}
yyj14++
if yyhl14 {
yyb14 = yyj14 > l
} else {
yyb14 = r.CheckBreak()
}
if yyb14 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
yyv17 := &x.APIVersion
yym18 := z.DecBinary()
_ = yym18
if false {
} else {
*((*string)(yyv17)) = r.DecodeString()
}
}
yyj14++
if yyhl14 {
yyb14 = yyj14 > l
} else {
yyb14 = r.CheckBreak()
}
if yyb14 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = pkg1_v1.ObjectMeta{}
} else {
yyv19 := &x.ObjectMeta
yym20 := z.DecBinary()
_ = yym20
if false {
} else if z.HasExtensions() && z.DecExt(yyv19) {
} else {
z.DecFallback(yyv19, false)
}
}
yyj14++
if yyhl14 {
yyb14 = yyj14 > l
} else {
yyb14 = r.CheckBreak()
}
if yyb14 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Provisioner = ""
} else {
yyv21 := &x.Provisioner
yym22 := z.DecBinary()
_ = yym22
if false {
} else {
*((*string)(yyv21)) = r.DecodeString()
}
}
yyj14++
if yyhl14 {
yyb14 = yyj14 > l
} else {
yyb14 = r.CheckBreak()
}
if yyb14 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Parameters = nil
} else {
yyv23 := &x.Parameters
yym24 := z.DecBinary()
_ = yym24
if false {
} else {
z.F.DecMapStringStringX(yyv23, false, d)
}
}
for {
yyj14++
if yyhl14 {
yyb14 = yyj14 > l
} else {
yyb14 = r.CheckBreak()
}
if yyb14 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj14-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *StorageClassList) 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 [4]bool
_, _, _ = yysep2, yyq2, yy2arr2
const yyr2 bool = false
yyq2[0] = x.Kind != ""
yyq2[1] = x.APIVersion != ""
yyq2[2] = true
var yynn2 int
if yyr2 || yy2arr2 {
r.EncodeArrayStart(4)
} else {
yynn2 = 1
for _, b := range yyq2 {
if b {
yynn2++
}
}
r.EncodeMapStart(yynn2)
yynn2 = 0
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[0] {
yym4 := z.EncBinary()
_ = yym4
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym5 := z.EncBinary()
_ = yym5
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[1] {
yym7 := z.EncBinary()
_ = yym7
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym8 := z.EncBinary()
_ = yym8
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[2] {
yy10 := &x.ListMeta
yym11 := z.EncBinary()
_ = yym11
if false {
} else if z.HasExtensions() && z.EncExt(yy10) {
} else {
z.EncFallback(yy10)
}
} else {
r.EncodeNil()
}
} else {
if yyq2[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy12 := &x.ListMeta
yym13 := z.EncBinary()
_ = yym13
if false {
} else if z.HasExtensions() && z.EncExt(yy12) {
} else {
z.EncFallback(yy12)
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym15 := z.EncBinary()
_ = yym15
if false {
} else {
h.encSliceStorageClass(([]StorageClass)(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 {
yym16 := z.EncBinary()
_ = yym16
if false {
} else {
h.encSliceStorageClass(([]StorageClass)(x.Items), e)
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *StorageClassList) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap1234 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray1234 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *StorageClassList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3Slc = r.DecodeBytes(yys3Slc, true, true)
yys3 := string(yys3Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3 {
case "kind":
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
yyv4 := &x.Kind
yym5 := z.DecBinary()
_ = yym5
if false {
} else {
*((*string)(yyv4)) = r.DecodeString()
}
}
case "apiVersion":
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
yyv6 := &x.APIVersion
yym7 := z.DecBinary()
_ = yym7
if false {
} else {
*((*string)(yyv6)) = r.DecodeString()
}
}
case "metadata":
if r.TryDecodeAsNil() {
x.ListMeta = pkg1_v1.ListMeta{}
} else {
yyv8 := &x.ListMeta
yym9 := z.DecBinary()
_ = yym9
if false {
} else if z.HasExtensions() && z.DecExt(yyv8) {
} else {
z.DecFallback(yyv8, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv10 := &x.Items
yym11 := z.DecBinary()
_ = yym11
if false {
} else {
h.decSliceStorageClass((*[]StorageClass)(yyv10), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3)
} // end switch yys3
} // end for yyj3
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *StorageClassList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj12 int
var yyb12 bool
var yyhl12 bool = l >= 0
yyj12++
if yyhl12 {
yyb12 = yyj12 > l
} else {
yyb12 = r.CheckBreak()
}
if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
yyv13 := &x.Kind
yym14 := z.DecBinary()
_ = yym14
if false {
} else {
*((*string)(yyv13)) = r.DecodeString()
}
}
yyj12++
if yyhl12 {
yyb12 = yyj12 > l
} else {
yyb12 = r.CheckBreak()
}
if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
yyv15 := &x.APIVersion
yym16 := z.DecBinary()
_ = yym16
if false {
} else {
*((*string)(yyv15)) = r.DecodeString()
}
}
yyj12++
if yyhl12 {
yyb12 = yyj12 > l
} else {
yyb12 = r.CheckBreak()
}
if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg1_v1.ListMeta{}
} else {
yyv17 := &x.ListMeta
yym18 := z.DecBinary()
_ = yym18
if false {
} else if z.HasExtensions() && z.DecExt(yyv17) {
} else {
z.DecFallback(yyv17, false)
}
}
yyj12++
if yyhl12 {
yyb12 = yyj12 > l
} else {
yyb12 = r.CheckBreak()
}
if yyb12 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv19 := &x.Items
yym20 := z.DecBinary()
_ = yym20
if false {
} else {
h.decSliceStorageClass((*[]StorageClass)(yyv19), d)
}
}
for {
yyj12++
if yyhl12 {
yyb12 = yyj12 > l
} else {
yyb12 = r.CheckBreak()
}
if yyb12 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj12-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) encSliceStorageClass(v []StorageClass, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv1 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy2 := &yyv1
yy2.CodecEncodeSelf(e)
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceStorageClass(v *[]StorageClass, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv1 := *v
yyh1, yyl1 := z.DecSliceHelperStart()
var yyc1 bool
_ = yyc1
if yyl1 == 0 {
if yyv1 == nil {
yyv1 = []StorageClass{}
yyc1 = true
} else if len(yyv1) != 0 {
yyv1 = yyv1[:0]
yyc1 = true
}
} else if yyl1 > 0 {
var yyrr1, yyrl1 int
var yyrt1 bool
_, _ = yyrl1, yyrt1
yyrr1 = yyl1 // len(yyv1)
if yyl1 > cap(yyv1) {
yyrg1 := len(yyv1) > 0
yyv21 := yyv1
yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 288)
if yyrt1 {
if yyrl1 <= cap(yyv1) {
yyv1 = yyv1[:yyrl1]
} else {
yyv1 = make([]StorageClass, yyrl1)
}
} else {
yyv1 = make([]StorageClass, yyrl1)
}
yyc1 = true
yyrr1 = len(yyv1)
if yyrg1 {
copy(yyv1, yyv21)
}
} else if yyl1 != len(yyv1) {
yyv1 = yyv1[:yyl1]
yyc1 = true
}
yyj1 := 0
for ; yyj1 < yyrr1; yyj1++ {
yyh1.ElemContainerState(yyj1)
if r.TryDecodeAsNil() {
yyv1[yyj1] = StorageClass{}
} else {
yyv2 := &yyv1[yyj1]
yyv2.CodecDecodeSelf(d)
}
}
if yyrt1 {
for ; yyj1 < yyl1; yyj1++ {
yyv1 = append(yyv1, StorageClass{})
yyh1.ElemContainerState(yyj1)
if r.TryDecodeAsNil() {
yyv1[yyj1] = StorageClass{}
} else {
yyv3 := &yyv1[yyj1]
yyv3.CodecDecodeSelf(d)
}
}
}
} else {
yyj1 := 0
for ; !r.CheckBreak(); yyj1++ {
if yyj1 >= len(yyv1) {
yyv1 = append(yyv1, StorageClass{}) // var yyz1 StorageClass
yyc1 = true
}
yyh1.ElemContainerState(yyj1)
if yyj1 < len(yyv1) {
if r.TryDecodeAsNil() {
yyv1[yyj1] = StorageClass{}
} else {
yyv4 := &yyv1[yyj1]
yyv4.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj1 < len(yyv1) {
yyv1 = yyv1[:yyj1]
yyc1 = true
} else if yyj1 == 0 && yyv1 == nil {
yyv1 = []StorageClass{}
yyc1 = true
}
}
yyh1.End()
if yyc1 {
*v = yyv1
}
}

View File

@ -354,25 +354,13 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) {
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy35 := &x.User yy35 := &x.User
yym36 := z.EncBinary() yy35.CodecEncodeSelf(e)
_ = yym36
if false {
} else if z.HasExtensions() && z.EncExt(yy35) {
} else {
z.EncFallback(yy35)
}
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("user")) r.EncodeString(codecSelferC_UTF81234, string("user"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy37 := &x.User yy37 := &x.User
yym38 := z.EncBinary() yy37.CodecEncodeSelf(e)
_ = yym38
if false {
} else if z.HasExtensions() && z.EncExt(yy37) {
} else {
z.EncFallback(yy37)
}
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
@ -380,13 +368,7 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) {
if x.ImpersonatedUser == nil { if x.ImpersonatedUser == nil {
r.EncodeNil() r.EncodeNil()
} else { } else {
yym40 := z.EncBinary() x.ImpersonatedUser.CodecEncodeSelf(e)
_ = yym40
if false {
} else if z.HasExtensions() && z.EncExt(x.ImpersonatedUser) {
} else {
z.EncFallback(x.ImpersonatedUser)
}
} }
} else { } else {
r.EncodeNil() r.EncodeNil()
@ -399,13 +381,7 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) {
if x.ImpersonatedUser == nil { if x.ImpersonatedUser == nil {
r.EncodeNil() r.EncodeNil()
} else { } else {
yym41 := z.EncBinary() x.ImpersonatedUser.CodecEncodeSelf(e)
_ = yym41
if false {
} else if z.HasExtensions() && z.EncExt(x.ImpersonatedUser) {
} else {
z.EncFallback(x.ImpersonatedUser)
}
} }
} }
} }
@ -749,13 +725,7 @@ func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
x.User = pkg3_v1.UserInfo{} x.User = pkg3_v1.UserInfo{}
} else { } else {
yyv20 := &x.User yyv20 := &x.User
yym21 := z.DecBinary() yyv20.CodecDecodeSelf(d)
_ = yym21
if false {
} else if z.HasExtensions() && z.DecExt(yyv20) {
} else {
z.DecFallback(yyv20, false)
}
} }
case "impersonatedUser": case "impersonatedUser":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
@ -766,24 +736,18 @@ func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
if x.ImpersonatedUser == nil { if x.ImpersonatedUser == nil {
x.ImpersonatedUser = new(pkg3_v1.UserInfo) x.ImpersonatedUser = new(pkg3_v1.UserInfo)
} }
yym23 := z.DecBinary() x.ImpersonatedUser.CodecDecodeSelf(d)
_ = yym23
if false {
} else if z.HasExtensions() && z.DecExt(x.ImpersonatedUser) {
} else {
z.DecFallback(x.ImpersonatedUser, false)
}
} }
case "sourceIPs": case "sourceIPs":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.SourceIPs = nil x.SourceIPs = nil
} else { } else {
yyv24 := &x.SourceIPs yyv22 := &x.SourceIPs
yym25 := z.DecBinary() yym23 := z.DecBinary()
_ = yym25 _ = yym23
if false { if false {
} else { } else {
z.F.DecSliceStringX(yyv24, false, d) z.F.DecSliceStringX(yyv22, false, d)
} }
} }
case "objectRef": case "objectRef":
@ -806,8 +770,8 @@ func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
if x.ResponseStatus == nil { if x.ResponseStatus == nil {
x.ResponseStatus = new(pkg1_v1.Status) x.ResponseStatus = new(pkg1_v1.Status)
} }
yym28 := z.DecBinary() yym26 := z.DecBinary()
_ = yym28 _ = yym26
if false { if false {
} else if z.HasExtensions() && z.DecExt(x.ResponseStatus) { } else if z.HasExtensions() && z.DecExt(x.ResponseStatus) {
} else { } else {
@ -823,11 +787,11 @@ func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
if x.RequestObject == nil { if x.RequestObject == nil {
x.RequestObject = new(pkg4_runtime.Unknown) x.RequestObject = new(pkg4_runtime.Unknown)
} }
yym30 := z.DecBinary() yym28 := z.DecBinary()
_ = yym30 _ = yym28
if false { if false {
} else if z.HasExtensions() && z.DecExt(x.RequestObject) { } else if z.HasExtensions() && z.DecExt(x.RequestObject) {
} else if !yym30 && z.IsJSONHandle() { } else if !yym28 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.RequestObject) z.DecJSONUnmarshal(x.RequestObject)
} else { } else {
z.DecFallback(x.RequestObject, false) z.DecFallback(x.RequestObject, false)
@ -842,11 +806,11 @@ func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
if x.ResponseObject == nil { if x.ResponseObject == nil {
x.ResponseObject = new(pkg4_runtime.Unknown) x.ResponseObject = new(pkg4_runtime.Unknown)
} }
yym32 := z.DecBinary() yym30 := z.DecBinary()
_ = yym32 _ = yym30
if false { if false {
} else if z.HasExtensions() && z.DecExt(x.ResponseObject) { } else if z.HasExtensions() && z.DecExt(x.ResponseObject) {
} else if !yym32 && z.IsJSONHandle() { } else if !yym30 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.ResponseObject) z.DecJSONUnmarshal(x.ResponseObject)
} else { } else {
z.DecFallback(x.ResponseObject, false) z.DecFallback(x.ResponseObject, false)
@ -863,16 +827,16 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yyj33 int var yyj31 int
var yyb33 bool var yyb31 bool
var yyhl33 bool = l >= 0 var yyhl31 bool = l >= 0
yyj33++ yyj31++
if yyhl33 { if yyhl31 {
yyb33 = yyj33 > l yyb31 = yyj31 > l
} else { } else {
yyb33 = r.CheckBreak() yyb31 = r.CheckBreak()
} }
if yyb33 { if yyb31 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -880,21 +844,21 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Kind = "" x.Kind = ""
} else { } else {
yyv34 := &x.Kind yyv32 := &x.Kind
yym35 := z.DecBinary() yym33 := z.DecBinary()
_ = yym35 _ = yym33
if false { if false {
} else { } else {
*((*string)(yyv34)) = r.DecodeString() *((*string)(yyv32)) = r.DecodeString()
} }
} }
yyj33++ yyj31++
if yyhl33 { if yyhl31 {
yyb33 = yyj33 > l yyb31 = yyj31 > l
} else { } else {
yyb33 = r.CheckBreak() yyb31 = r.CheckBreak()
} }
if yyb33 { if yyb31 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -902,21 +866,21 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.APIVersion = "" x.APIVersion = ""
} else { } else {
yyv36 := &x.APIVersion yyv34 := &x.APIVersion
yym37 := z.DecBinary() yym35 := z.DecBinary()
_ = yym37 _ = yym35
if false { if false {
} else { } else {
*((*string)(yyv36)) = r.DecodeString() *((*string)(yyv34)) = r.DecodeString()
} }
} }
yyj33++ yyj31++
if yyhl33 { if yyhl31 {
yyb33 = yyj33 > l yyb31 = yyj31 > l
} else { } else {
yyb33 = r.CheckBreak() yyb31 = r.CheckBreak()
} }
if yyb33 { if yyb31 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -924,22 +888,22 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg1_v1.ObjectMeta{} x.ObjectMeta = pkg1_v1.ObjectMeta{}
} else { } else {
yyv38 := &x.ObjectMeta yyv36 := &x.ObjectMeta
yym39 := z.DecBinary() yym37 := z.DecBinary()
_ = yym39 _ = yym37
if false { if false {
} else if z.HasExtensions() && z.DecExt(yyv38) { } else if z.HasExtensions() && z.DecExt(yyv36) {
} else { } else {
z.DecFallback(yyv38, false) z.DecFallback(yyv36, false)
} }
} }
yyj33++ yyj31++
if yyhl33 { if yyhl31 {
yyb33 = yyj33 > l yyb31 = yyj31 > l
} else { } else {
yyb33 = r.CheckBreak() yyb31 = r.CheckBreak()
} }
if yyb33 { if yyb31 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -947,16 +911,16 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Level = "" x.Level = ""
} else { } else {
yyv40 := &x.Level yyv38 := &x.Level
yyv40.CodecDecodeSelf(d) yyv38.CodecDecodeSelf(d)
} }
yyj33++ yyj31++
if yyhl33 { if yyhl31 {
yyb33 = yyj33 > l yyb31 = yyj31 > l
} else { } else {
yyb33 = r.CheckBreak() yyb31 = r.CheckBreak()
} }
if yyb33 { if yyb31 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -964,26 +928,26 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Timestamp = pkg1_v1.Time{} x.Timestamp = pkg1_v1.Time{}
} else { } else {
yyv41 := &x.Timestamp yyv39 := &x.Timestamp
yym42 := z.DecBinary() yym40 := z.DecBinary()
_ = yym42 _ = yym40
if false { if false {
} else if z.HasExtensions() && z.DecExt(yyv41) { } else if z.HasExtensions() && z.DecExt(yyv39) {
} else if yym42 { } else if yym40 {
z.DecBinaryUnmarshal(yyv41) z.DecBinaryUnmarshal(yyv39)
} else if !yym42 && z.IsJSONHandle() { } else if !yym40 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv41) z.DecJSONUnmarshal(yyv39)
} else { } else {
z.DecFallback(yyv41, false) z.DecFallback(yyv39, false)
} }
} }
yyj33++ yyj31++
if yyhl33 { if yyhl31 {
yyb33 = yyj33 > l yyb31 = yyj31 > l
} else { } else {
yyb33 = r.CheckBreak() yyb31 = r.CheckBreak()
} }
if yyb33 { if yyb31 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -991,22 +955,22 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.AuditID = "" x.AuditID = ""
} else { } else {
yyv43 := &x.AuditID yyv41 := &x.AuditID
yym44 := z.DecBinary() yym42 := z.DecBinary()
_ = yym44 _ = yym42
if false { if false {
} else if z.HasExtensions() && z.DecExt(yyv43) { } else if z.HasExtensions() && z.DecExt(yyv41) {
} else { } else {
*((*string)(yyv43)) = r.DecodeString() *((*string)(yyv41)) = r.DecodeString()
} }
} }
yyj33++ yyj31++
if yyhl33 { if yyhl31 {
yyb33 = yyj33 > l yyb31 = yyj31 > l
} else { } else {
yyb33 = r.CheckBreak() yyb31 = r.CheckBreak()
} }
if yyb33 { if yyb31 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -1014,16 +978,16 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Stage = "" x.Stage = ""
} else { } else {
yyv45 := &x.Stage yyv43 := &x.Stage
yyv45.CodecDecodeSelf(d) yyv43.CodecDecodeSelf(d)
} }
yyj33++ yyj31++
if yyhl33 { if yyhl31 {
yyb33 = yyj33 > l yyb31 = yyj31 > l
} else { } else {
yyb33 = r.CheckBreak() yyb31 = r.CheckBreak()
} }
if yyb33 { if yyb31 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -1031,21 +995,21 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.RequestURI = "" x.RequestURI = ""
} else { } else {
yyv46 := &x.RequestURI yyv44 := &x.RequestURI
yym47 := z.DecBinary() yym45 := z.DecBinary()
_ = yym47 _ = yym45
if false { if false {
} else { } else {
*((*string)(yyv46)) = r.DecodeString() *((*string)(yyv44)) = r.DecodeString()
} }
} }
yyj33++ yyj31++
if yyhl33 { if yyhl31 {
yyb33 = yyj33 > l yyb31 = yyj31 > l
} else { } else {
yyb33 = r.CheckBreak() yyb31 = r.CheckBreak()
} }
if yyb33 { if yyb31 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -1053,21 +1017,21 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Verb = "" x.Verb = ""
} else { } else {
yyv48 := &x.Verb yyv46 := &x.Verb
yym49 := z.DecBinary() yym47 := z.DecBinary()
_ = yym49 _ = yym47
if false { if false {
} else { } else {
*((*string)(yyv48)) = r.DecodeString() *((*string)(yyv46)) = r.DecodeString()
} }
} }
yyj33++ yyj31++
if yyhl33 { if yyhl31 {
yyb33 = yyj33 > l yyb31 = yyj31 > l
} else { } else {
yyb33 = r.CheckBreak() yyb31 = r.CheckBreak()
} }
if yyb33 { if yyb31 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -1075,22 +1039,16 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.User = pkg3_v1.UserInfo{} x.User = pkg3_v1.UserInfo{}
} else { } else {
yyv50 := &x.User yyv48 := &x.User
yym51 := z.DecBinary() yyv48.CodecDecodeSelf(d)
_ = yym51
if false {
} else if z.HasExtensions() && z.DecExt(yyv50) {
} else {
z.DecFallback(yyv50, false)
}
} }
yyj33++ yyj31++
if yyhl33 { if yyhl31 {
yyb33 = yyj33 > l yyb31 = yyj31 > l
} else { } else {
yyb33 = r.CheckBreak() yyb31 = r.CheckBreak()
} }
if yyb33 { if yyb31 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -1103,21 +1061,15 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if x.ImpersonatedUser == nil { if x.ImpersonatedUser == nil {
x.ImpersonatedUser = new(pkg3_v1.UserInfo) x.ImpersonatedUser = new(pkg3_v1.UserInfo)
} }
yym53 := z.DecBinary() x.ImpersonatedUser.CodecDecodeSelf(d)
_ = yym53
if false {
} else if z.HasExtensions() && z.DecExt(x.ImpersonatedUser) {
} else {
z.DecFallback(x.ImpersonatedUser, false)
}
} }
yyj33++ yyj31++
if yyhl33 { if yyhl31 {
yyb33 = yyj33 > l yyb31 = yyj31 > l
} else { } else {
yyb33 = r.CheckBreak() yyb31 = r.CheckBreak()
} }
if yyb33 { if yyb31 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -1125,21 +1077,21 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.SourceIPs = nil x.SourceIPs = nil
} else { } else {
yyv54 := &x.SourceIPs yyv50 := &x.SourceIPs
yym55 := z.DecBinary() yym51 := z.DecBinary()
_ = yym55 _ = yym51
if false { if false {
} else { } else {
z.F.DecSliceStringX(yyv54, false, d) z.F.DecSliceStringX(yyv50, false, d)
} }
} }
yyj33++ yyj31++
if yyhl33 { if yyhl31 {
yyb33 = yyj33 > l yyb31 = yyj31 > l
} else { } else {
yyb33 = r.CheckBreak() yyb31 = r.CheckBreak()
} }
if yyb33 { if yyb31 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -1154,13 +1106,13 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
} }
x.ObjectRef.CodecDecodeSelf(d) x.ObjectRef.CodecDecodeSelf(d)
} }
yyj33++ yyj31++
if yyhl33 { if yyhl31 {
yyb33 = yyj33 > l yyb31 = yyj31 > l
} else { } else {
yyb33 = r.CheckBreak() yyb31 = r.CheckBreak()
} }
if yyb33 { if yyb31 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -1173,21 +1125,21 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if x.ResponseStatus == nil { if x.ResponseStatus == nil {
x.ResponseStatus = new(pkg1_v1.Status) x.ResponseStatus = new(pkg1_v1.Status)
} }
yym58 := z.DecBinary() yym54 := z.DecBinary()
_ = yym58 _ = yym54
if false { if false {
} else if z.HasExtensions() && z.DecExt(x.ResponseStatus) { } else if z.HasExtensions() && z.DecExt(x.ResponseStatus) {
} else { } else {
z.DecFallback(x.ResponseStatus, false) z.DecFallback(x.ResponseStatus, false)
} }
} }
yyj33++ yyj31++
if yyhl33 { if yyhl31 {
yyb33 = yyj33 > l yyb31 = yyj31 > l
} else { } else {
yyb33 = r.CheckBreak() yyb31 = r.CheckBreak()
} }
if yyb33 { if yyb31 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -1200,23 +1152,23 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if x.RequestObject == nil { if x.RequestObject == nil {
x.RequestObject = new(pkg4_runtime.Unknown) x.RequestObject = new(pkg4_runtime.Unknown)
} }
yym60 := z.DecBinary() yym56 := z.DecBinary()
_ = yym60 _ = yym56
if false { if false {
} else if z.HasExtensions() && z.DecExt(x.RequestObject) { } else if z.HasExtensions() && z.DecExt(x.RequestObject) {
} else if !yym60 && z.IsJSONHandle() { } else if !yym56 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.RequestObject) z.DecJSONUnmarshal(x.RequestObject)
} else { } else {
z.DecFallback(x.RequestObject, false) z.DecFallback(x.RequestObject, false)
} }
} }
yyj33++ yyj31++
if yyhl33 { if yyhl31 {
yyb33 = yyj33 > l yyb31 = yyj31 > l
} else { } else {
yyb33 = r.CheckBreak() yyb31 = r.CheckBreak()
} }
if yyb33 { if yyb31 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
@ -1229,28 +1181,28 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if x.ResponseObject == nil { if x.ResponseObject == nil {
x.ResponseObject = new(pkg4_runtime.Unknown) x.ResponseObject = new(pkg4_runtime.Unknown)
} }
yym62 := z.DecBinary() yym58 := z.DecBinary()
_ = yym62 _ = yym58
if false { if false {
} else if z.HasExtensions() && z.DecExt(x.ResponseObject) { } else if z.HasExtensions() && z.DecExt(x.ResponseObject) {
} else if !yym62 && z.IsJSONHandle() { } else if !yym58 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.ResponseObject) z.DecJSONUnmarshal(x.ResponseObject)
} else { } else {
z.DecFallback(x.ResponseObject, false) z.DecFallback(x.ResponseObject, false)
} }
} }
for { for {
yyj33++ yyj31++
if yyhl33 { if yyhl31 {
yyb33 = yyj33 > l yyb31 = yyj31 > l
} else { } else {
yyb33 = r.CheckBreak() yyb31 = r.CheckBreak()
} }
if yyb33 { if yyb31 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj33-1, "") z.DecStructFieldNotFound(yyj31-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }