blob: c98aa7477b3512482736956a97dc68b2230289dc [file] [log] [blame]
Matteo Scandoloa4285862020-12-01 18:10:10 -08001/*
2Copyright The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17// Code generated by protoc-gen-gogo. DO NOT EDIT.
18// source: k8s.io/kubernetes/vendor/k8s.io/api/admissionregistration/v1beta1/generated.proto
19
20package v1beta1
21
22import (
23 fmt "fmt"
24
25 io "io"
26
27 proto "github.com/gogo/protobuf/proto"
28 v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
29
30 math "math"
31 math_bits "math/bits"
32 reflect "reflect"
33 strings "strings"
34)
35
36// Reference imports to suppress errors if they are not otherwise used.
37var _ = proto.Marshal
38var _ = fmt.Errorf
39var _ = math.Inf
40
41// This is a compile-time assertion to ensure that this generated file
42// is compatible with the proto package it is being compiled against.
43// A compilation error at this line likely means your copy of the
44// proto package needs to be updated.
45const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
46
47func (m *MutatingWebhook) Reset() { *m = MutatingWebhook{} }
48func (*MutatingWebhook) ProtoMessage() {}
49func (*MutatingWebhook) Descriptor() ([]byte, []int) {
50 return fileDescriptor_abeea74cbc46f55a, []int{0}
51}
52func (m *MutatingWebhook) XXX_Unmarshal(b []byte) error {
53 return m.Unmarshal(b)
54}
55func (m *MutatingWebhook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
56 b = b[:cap(b)]
57 n, err := m.MarshalToSizedBuffer(b)
58 if err != nil {
59 return nil, err
60 }
61 return b[:n], nil
62}
63func (m *MutatingWebhook) XXX_Merge(src proto.Message) {
64 xxx_messageInfo_MutatingWebhook.Merge(m, src)
65}
66func (m *MutatingWebhook) XXX_Size() int {
67 return m.Size()
68}
69func (m *MutatingWebhook) XXX_DiscardUnknown() {
70 xxx_messageInfo_MutatingWebhook.DiscardUnknown(m)
71}
72
73var xxx_messageInfo_MutatingWebhook proto.InternalMessageInfo
74
75func (m *MutatingWebhookConfiguration) Reset() { *m = MutatingWebhookConfiguration{} }
76func (*MutatingWebhookConfiguration) ProtoMessage() {}
77func (*MutatingWebhookConfiguration) Descriptor() ([]byte, []int) {
78 return fileDescriptor_abeea74cbc46f55a, []int{1}
79}
80func (m *MutatingWebhookConfiguration) XXX_Unmarshal(b []byte) error {
81 return m.Unmarshal(b)
82}
83func (m *MutatingWebhookConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
84 b = b[:cap(b)]
85 n, err := m.MarshalToSizedBuffer(b)
86 if err != nil {
87 return nil, err
88 }
89 return b[:n], nil
90}
91func (m *MutatingWebhookConfiguration) XXX_Merge(src proto.Message) {
92 xxx_messageInfo_MutatingWebhookConfiguration.Merge(m, src)
93}
94func (m *MutatingWebhookConfiguration) XXX_Size() int {
95 return m.Size()
96}
97func (m *MutatingWebhookConfiguration) XXX_DiscardUnknown() {
98 xxx_messageInfo_MutatingWebhookConfiguration.DiscardUnknown(m)
99}
100
101var xxx_messageInfo_MutatingWebhookConfiguration proto.InternalMessageInfo
102
103func (m *MutatingWebhookConfigurationList) Reset() { *m = MutatingWebhookConfigurationList{} }
104func (*MutatingWebhookConfigurationList) ProtoMessage() {}
105func (*MutatingWebhookConfigurationList) Descriptor() ([]byte, []int) {
106 return fileDescriptor_abeea74cbc46f55a, []int{2}
107}
108func (m *MutatingWebhookConfigurationList) XXX_Unmarshal(b []byte) error {
109 return m.Unmarshal(b)
110}
111func (m *MutatingWebhookConfigurationList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
112 b = b[:cap(b)]
113 n, err := m.MarshalToSizedBuffer(b)
114 if err != nil {
115 return nil, err
116 }
117 return b[:n], nil
118}
119func (m *MutatingWebhookConfigurationList) XXX_Merge(src proto.Message) {
120 xxx_messageInfo_MutatingWebhookConfigurationList.Merge(m, src)
121}
122func (m *MutatingWebhookConfigurationList) XXX_Size() int {
123 return m.Size()
124}
125func (m *MutatingWebhookConfigurationList) XXX_DiscardUnknown() {
126 xxx_messageInfo_MutatingWebhookConfigurationList.DiscardUnknown(m)
127}
128
129var xxx_messageInfo_MutatingWebhookConfigurationList proto.InternalMessageInfo
130
131func (m *Rule) Reset() { *m = Rule{} }
132func (*Rule) ProtoMessage() {}
133func (*Rule) Descriptor() ([]byte, []int) {
134 return fileDescriptor_abeea74cbc46f55a, []int{3}
135}
136func (m *Rule) XXX_Unmarshal(b []byte) error {
137 return m.Unmarshal(b)
138}
139func (m *Rule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
140 b = b[:cap(b)]
141 n, err := m.MarshalToSizedBuffer(b)
142 if err != nil {
143 return nil, err
144 }
145 return b[:n], nil
146}
147func (m *Rule) XXX_Merge(src proto.Message) {
148 xxx_messageInfo_Rule.Merge(m, src)
149}
150func (m *Rule) XXX_Size() int {
151 return m.Size()
152}
153func (m *Rule) XXX_DiscardUnknown() {
154 xxx_messageInfo_Rule.DiscardUnknown(m)
155}
156
157var xxx_messageInfo_Rule proto.InternalMessageInfo
158
159func (m *RuleWithOperations) Reset() { *m = RuleWithOperations{} }
160func (*RuleWithOperations) ProtoMessage() {}
161func (*RuleWithOperations) Descriptor() ([]byte, []int) {
162 return fileDescriptor_abeea74cbc46f55a, []int{4}
163}
164func (m *RuleWithOperations) XXX_Unmarshal(b []byte) error {
165 return m.Unmarshal(b)
166}
167func (m *RuleWithOperations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
168 b = b[:cap(b)]
169 n, err := m.MarshalToSizedBuffer(b)
170 if err != nil {
171 return nil, err
172 }
173 return b[:n], nil
174}
175func (m *RuleWithOperations) XXX_Merge(src proto.Message) {
176 xxx_messageInfo_RuleWithOperations.Merge(m, src)
177}
178func (m *RuleWithOperations) XXX_Size() int {
179 return m.Size()
180}
181func (m *RuleWithOperations) XXX_DiscardUnknown() {
182 xxx_messageInfo_RuleWithOperations.DiscardUnknown(m)
183}
184
185var xxx_messageInfo_RuleWithOperations proto.InternalMessageInfo
186
187func (m *ServiceReference) Reset() { *m = ServiceReference{} }
188func (*ServiceReference) ProtoMessage() {}
189func (*ServiceReference) Descriptor() ([]byte, []int) {
190 return fileDescriptor_abeea74cbc46f55a, []int{5}
191}
192func (m *ServiceReference) XXX_Unmarshal(b []byte) error {
193 return m.Unmarshal(b)
194}
195func (m *ServiceReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
196 b = b[:cap(b)]
197 n, err := m.MarshalToSizedBuffer(b)
198 if err != nil {
199 return nil, err
200 }
201 return b[:n], nil
202}
203func (m *ServiceReference) XXX_Merge(src proto.Message) {
204 xxx_messageInfo_ServiceReference.Merge(m, src)
205}
206func (m *ServiceReference) XXX_Size() int {
207 return m.Size()
208}
209func (m *ServiceReference) XXX_DiscardUnknown() {
210 xxx_messageInfo_ServiceReference.DiscardUnknown(m)
211}
212
213var xxx_messageInfo_ServiceReference proto.InternalMessageInfo
214
215func (m *ValidatingWebhook) Reset() { *m = ValidatingWebhook{} }
216func (*ValidatingWebhook) ProtoMessage() {}
217func (*ValidatingWebhook) Descriptor() ([]byte, []int) {
218 return fileDescriptor_abeea74cbc46f55a, []int{6}
219}
220func (m *ValidatingWebhook) XXX_Unmarshal(b []byte) error {
221 return m.Unmarshal(b)
222}
223func (m *ValidatingWebhook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
224 b = b[:cap(b)]
225 n, err := m.MarshalToSizedBuffer(b)
226 if err != nil {
227 return nil, err
228 }
229 return b[:n], nil
230}
231func (m *ValidatingWebhook) XXX_Merge(src proto.Message) {
232 xxx_messageInfo_ValidatingWebhook.Merge(m, src)
233}
234func (m *ValidatingWebhook) XXX_Size() int {
235 return m.Size()
236}
237func (m *ValidatingWebhook) XXX_DiscardUnknown() {
238 xxx_messageInfo_ValidatingWebhook.DiscardUnknown(m)
239}
240
241var xxx_messageInfo_ValidatingWebhook proto.InternalMessageInfo
242
243func (m *ValidatingWebhookConfiguration) Reset() { *m = ValidatingWebhookConfiguration{} }
244func (*ValidatingWebhookConfiguration) ProtoMessage() {}
245func (*ValidatingWebhookConfiguration) Descriptor() ([]byte, []int) {
246 return fileDescriptor_abeea74cbc46f55a, []int{7}
247}
248func (m *ValidatingWebhookConfiguration) XXX_Unmarshal(b []byte) error {
249 return m.Unmarshal(b)
250}
251func (m *ValidatingWebhookConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
252 b = b[:cap(b)]
253 n, err := m.MarshalToSizedBuffer(b)
254 if err != nil {
255 return nil, err
256 }
257 return b[:n], nil
258}
259func (m *ValidatingWebhookConfiguration) XXX_Merge(src proto.Message) {
260 xxx_messageInfo_ValidatingWebhookConfiguration.Merge(m, src)
261}
262func (m *ValidatingWebhookConfiguration) XXX_Size() int {
263 return m.Size()
264}
265func (m *ValidatingWebhookConfiguration) XXX_DiscardUnknown() {
266 xxx_messageInfo_ValidatingWebhookConfiguration.DiscardUnknown(m)
267}
268
269var xxx_messageInfo_ValidatingWebhookConfiguration proto.InternalMessageInfo
270
271func (m *ValidatingWebhookConfigurationList) Reset() { *m = ValidatingWebhookConfigurationList{} }
272func (*ValidatingWebhookConfigurationList) ProtoMessage() {}
273func (*ValidatingWebhookConfigurationList) Descriptor() ([]byte, []int) {
274 return fileDescriptor_abeea74cbc46f55a, []int{8}
275}
276func (m *ValidatingWebhookConfigurationList) XXX_Unmarshal(b []byte) error {
277 return m.Unmarshal(b)
278}
279func (m *ValidatingWebhookConfigurationList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
280 b = b[:cap(b)]
281 n, err := m.MarshalToSizedBuffer(b)
282 if err != nil {
283 return nil, err
284 }
285 return b[:n], nil
286}
287func (m *ValidatingWebhookConfigurationList) XXX_Merge(src proto.Message) {
288 xxx_messageInfo_ValidatingWebhookConfigurationList.Merge(m, src)
289}
290func (m *ValidatingWebhookConfigurationList) XXX_Size() int {
291 return m.Size()
292}
293func (m *ValidatingWebhookConfigurationList) XXX_DiscardUnknown() {
294 xxx_messageInfo_ValidatingWebhookConfigurationList.DiscardUnknown(m)
295}
296
297var xxx_messageInfo_ValidatingWebhookConfigurationList proto.InternalMessageInfo
298
299func (m *WebhookClientConfig) Reset() { *m = WebhookClientConfig{} }
300func (*WebhookClientConfig) ProtoMessage() {}
301func (*WebhookClientConfig) Descriptor() ([]byte, []int) {
302 return fileDescriptor_abeea74cbc46f55a, []int{9}
303}
304func (m *WebhookClientConfig) XXX_Unmarshal(b []byte) error {
305 return m.Unmarshal(b)
306}
307func (m *WebhookClientConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
308 b = b[:cap(b)]
309 n, err := m.MarshalToSizedBuffer(b)
310 if err != nil {
311 return nil, err
312 }
313 return b[:n], nil
314}
315func (m *WebhookClientConfig) XXX_Merge(src proto.Message) {
316 xxx_messageInfo_WebhookClientConfig.Merge(m, src)
317}
318func (m *WebhookClientConfig) XXX_Size() int {
319 return m.Size()
320}
321func (m *WebhookClientConfig) XXX_DiscardUnknown() {
322 xxx_messageInfo_WebhookClientConfig.DiscardUnknown(m)
323}
324
325var xxx_messageInfo_WebhookClientConfig proto.InternalMessageInfo
326
327func init() {
328 proto.RegisterType((*MutatingWebhook)(nil), "k8s.io.api.admissionregistration.v1beta1.MutatingWebhook")
329 proto.RegisterType((*MutatingWebhookConfiguration)(nil), "k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration")
330 proto.RegisterType((*MutatingWebhookConfigurationList)(nil), "k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfigurationList")
331 proto.RegisterType((*Rule)(nil), "k8s.io.api.admissionregistration.v1beta1.Rule")
332 proto.RegisterType((*RuleWithOperations)(nil), "k8s.io.api.admissionregistration.v1beta1.RuleWithOperations")
333 proto.RegisterType((*ServiceReference)(nil), "k8s.io.api.admissionregistration.v1beta1.ServiceReference")
334 proto.RegisterType((*ValidatingWebhook)(nil), "k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook")
335 proto.RegisterType((*ValidatingWebhookConfiguration)(nil), "k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration")
336 proto.RegisterType((*ValidatingWebhookConfigurationList)(nil), "k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfigurationList")
337 proto.RegisterType((*WebhookClientConfig)(nil), "k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig")
338}
339
340func init() {
341 proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/admissionregistration/v1beta1/generated.proto", fileDescriptor_abeea74cbc46f55a)
342}
343
344var fileDescriptor_abeea74cbc46f55a = []byte{
345 // 1114 bytes of a gzipped FileDescriptorProto
346 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x55, 0x4d, 0x6f, 0x23, 0x45,
347 0x13, 0xce, 0xc4, 0xf6, 0xda, 0x6e, 0x27, 0xbb, 0x9b, 0x7e, 0x5f, 0x76, 0x4d, 0x58, 0x79, 0x2c,
348 0x1f, 0x90, 0x25, 0xd8, 0x99, 0x4d, 0x40, 0x08, 0x16, 0x10, 0x8a, 0x03, 0x0b, 0x91, 0x92, 0xdd,
349 0xd0, 0xd9, 0x0f, 0x89, 0x0f, 0x69, 0xdb, 0xe3, 0xb2, 0xdd, 0xd8, 0x9e, 0x1e, 0x4d, 0xf7, 0x38,
350 0xe4, 0xc6, 0x4f, 0xe0, 0x2f, 0x70, 0xe2, 0x57, 0x70, 0xe0, 0x16, 0x6e, 0x7b, 0xdc, 0x0b, 0x23,
351 0x32, 0x9c, 0x38, 0x70, 0xe0, 0x9a, 0x13, 0x9a, 0x9e, 0xf6, 0xf8, 0x2b, 0x59, 0x4c, 0x90, 0xf6,
352 0x94, 0xdb, 0xf4, 0x53, 0x5d, 0x4f, 0x75, 0xd5, 0x54, 0xd5, 0x83, 0x3e, 0xef, 0xbd, 0x2b, 0x2c,
353 0xc6, 0xed, 0x5e, 0xd0, 0x04, 0xdf, 0x05, 0x09, 0xc2, 0x1e, 0x82, 0xdb, 0xe2, 0xbe, 0xad, 0x0d,
354 0xd4, 0x63, 0x36, 0x6d, 0x0d, 0x98, 0x10, 0x8c, 0xbb, 0x3e, 0x74, 0x98, 0x90, 0x3e, 0x95, 0x8c,
355 0xbb, 0xf6, 0x70, 0xa3, 0x09, 0x92, 0x6e, 0xd8, 0x1d, 0x70, 0xc1, 0xa7, 0x12, 0x5a, 0x96, 0xe7,
356 0x73, 0xc9, 0x71, 0x3d, 0xf1, 0xb4, 0xa8, 0xc7, 0xac, 0x33, 0x3d, 0x2d, 0xed, 0xb9, 0x7e, 0xbb,
357 0xc3, 0x64, 0x37, 0x68, 0x5a, 0x0e, 0x1f, 0xd8, 0x1d, 0xde, 0xe1, 0xb6, 0x22, 0x68, 0x06, 0x6d,
358 0x75, 0x52, 0x07, 0xf5, 0x95, 0x10, 0xaf, 0xbf, 0x3d, 0x7e, 0xd2, 0x80, 0x3a, 0x5d, 0xe6, 0x82,
359 0x7f, 0x64, 0x7b, 0xbd, 0x4e, 0x0c, 0x08, 0x7b, 0x00, 0x92, 0xda, 0xc3, 0xb9, 0xe7, 0xac, 0xdb,
360 0xe7, 0x79, 0xf9, 0x81, 0x2b, 0xd9, 0x00, 0xe6, 0x1c, 0xde, 0xf9, 0x27, 0x07, 0xe1, 0x74, 0x61,
361 0x40, 0x67, 0xfd, 0x6a, 0xbf, 0xe4, 0xd1, 0xb5, 0xbd, 0x40, 0x52, 0xc9, 0xdc, 0xce, 0x13, 0x68,
362 0x76, 0x39, 0xef, 0xe1, 0x2a, 0xca, 0xba, 0x74, 0x00, 0x65, 0xa3, 0x6a, 0xd4, 0x8b, 0x8d, 0x95,
363 0xe3, 0xd0, 0x5c, 0x8a, 0x42, 0x33, 0x7b, 0x9f, 0x0e, 0x80, 0x28, 0x0b, 0x3e, 0x44, 0x2b, 0x4e,
364 0x9f, 0x81, 0x2b, 0xb7, 0xb9, 0xdb, 0x66, 0x9d, 0xf2, 0x72, 0xd5, 0xa8, 0x97, 0x36, 0x3f, 0xb4,
365 0x16, 0x2d, 0xa2, 0xa5, 0x43, 0x6d, 0x4f, 0x90, 0x34, 0xfe, 0xaf, 0x03, 0xad, 0x4c, 0xa2, 0x64,
366 0x2a, 0x10, 0xa6, 0x28, 0xe7, 0x07, 0x7d, 0x10, 0xe5, 0x4c, 0x35, 0x53, 0x2f, 0x6d, 0x7e, 0xb0,
367 0x78, 0x44, 0x12, 0xf4, 0xe1, 0x09, 0x93, 0xdd, 0x07, 0x1e, 0x24, 0x16, 0xd1, 0x58, 0xd5, 0x01,
368 0x73, 0xb1, 0x4d, 0x90, 0x84, 0x19, 0xef, 0xa2, 0xd5, 0x36, 0x65, 0xfd, 0xc0, 0x87, 0x7d, 0xde,
369 0x67, 0xce, 0x51, 0x39, 0xab, 0xca, 0xf0, 0x7a, 0x14, 0x9a, 0xab, 0xf7, 0x26, 0x0d, 0xa7, 0xa1,
370 0xb9, 0x36, 0x05, 0x3c, 0x3c, 0xf2, 0x80, 0x4c, 0x3b, 0xe3, 0x8f, 0x51, 0x69, 0x40, 0xa5, 0xd3,
371 0xd5, 0x5c, 0x45, 0xc5, 0x55, 0x8b, 0x42, 0xb3, 0xb4, 0x37, 0x86, 0x4f, 0x43, 0xf3, 0xda, 0xc4,
372 0x51, 0xf1, 0x4c, 0xba, 0xe1, 0x6f, 0xd1, 0x5a, 0x5c, 0x77, 0xe1, 0x51, 0x07, 0x0e, 0xa0, 0x0f,
373 0x8e, 0xe4, 0x7e, 0x39, 0xa7, 0x8a, 0xfe, 0xd6, 0x44, 0x09, 0xd2, 0x3f, 0x6f, 0x79, 0xbd, 0x4e,
374 0x0c, 0x08, 0x2b, 0x6e, 0x30, 0x6b, 0xb8, 0x61, 0xed, 0xd2, 0x26, 0xf4, 0x47, 0xae, 0x8d, 0x57,
375 0xa2, 0xd0, 0x5c, 0xbb, 0x3f, 0xcb, 0x48, 0xe6, 0x83, 0x60, 0x8e, 0xae, 0xf2, 0xe6, 0x37, 0xe0,
376 0xc8, 0x34, 0x6c, 0xe9, 0xe2, 0x61, 0x71, 0x14, 0x9a, 0x57, 0x1f, 0x4c, 0xd1, 0x91, 0x19, 0xfa,
377 0xb8, 0x60, 0x82, 0xb5, 0xe0, 0x93, 0x76, 0x1b, 0x1c, 0x29, 0xca, 0x57, 0xc6, 0x05, 0x3b, 0x18,
378 0xc3, 0x71, 0xc1, 0xc6, 0xc7, 0xed, 0x3e, 0x15, 0x82, 0x4c, 0xba, 0xe1, 0xbb, 0xe8, 0x6a, 0xdc,
379 0xf5, 0x3c, 0x90, 0x07, 0xe0, 0x70, 0xb7, 0x25, 0xca, 0xf9, 0xaa, 0x51, 0xcf, 0x25, 0x2f, 0x78,
380 0x38, 0x65, 0x21, 0x33, 0x37, 0xf1, 0x23, 0x74, 0x33, 0x6d, 0x25, 0x02, 0x43, 0x06, 0x87, 0x8f,
381 0xc1, 0x8f, 0x0f, 0xa2, 0x5c, 0xa8, 0x66, 0xea, 0xc5, 0xc6, 0x6b, 0x51, 0x68, 0xde, 0xdc, 0x3a,
382 0xfb, 0x0a, 0x39, 0xcf, 0x17, 0x3f, 0x45, 0xd8, 0x07, 0xe6, 0x0e, 0xb9, 0xa3, 0xda, 0x4f, 0x37,
383 0x04, 0x52, 0xf9, 0xdd, 0x89, 0x42, 0x13, 0x93, 0x39, 0xeb, 0x69, 0x68, 0xde, 0x98, 0x47, 0x55,
384 0x7b, 0x9c, 0xc1, 0x55, 0xfb, 0xd5, 0x40, 0xb7, 0x66, 0x66, 0x39, 0x19, 0x9b, 0x20, 0xe9, 0x78,
385 0xfc, 0x14, 0x15, 0xe2, 0x1f, 0xd3, 0xa2, 0x92, 0xaa, 0xe1, 0x2e, 0x6d, 0xde, 0x59, 0xec, 0x37,
386 0x26, 0xff, 0x6c, 0x0f, 0x24, 0x6d, 0x60, 0x3d, 0x34, 0x68, 0x8c, 0x91, 0x94, 0x15, 0x7f, 0x89,
387 0x0a, 0x3a, 0xb2, 0x28, 0x2f, 0xab, 0x11, 0x7d, 0x6f, 0xf1, 0x11, 0x9d, 0x79, 0x7b, 0x23, 0x1b,
388 0x87, 0x22, 0x85, 0x43, 0x4d, 0x58, 0xfb, 0xd3, 0x40, 0xd5, 0x17, 0xe5, 0xb7, 0xcb, 0x84, 0xc4,
389 0x5f, 0xcd, 0xe5, 0x68, 0x2d, 0xd8, 0xaa, 0x4c, 0x24, 0x19, 0x5e, 0xd7, 0x19, 0x16, 0x46, 0xc8,
390 0x44, 0x7e, 0x3d, 0x94, 0x63, 0x12, 0x06, 0xa3, 0xe4, 0xee, 0x5d, 0x38, 0xb9, 0xa9, 0x87, 0x8f,
391 0x37, 0xd1, 0x4e, 0x4c, 0x4e, 0x92, 0x18, 0xb5, 0x9f, 0x0d, 0x94, 0x8d, 0x57, 0x13, 0x7e, 0x03,
392 0x15, 0xa9, 0xc7, 0x3e, 0xf5, 0x79, 0xe0, 0x89, 0xb2, 0xa1, 0x7a, 0x70, 0x35, 0x0a, 0xcd, 0xe2,
393 0xd6, 0xfe, 0x4e, 0x02, 0x92, 0xb1, 0x1d, 0x6f, 0xa0, 0x12, 0xf5, 0x58, 0xda, 0xb2, 0xcb, 0xea,
394 0xfa, 0xb5, 0x78, 0x80, 0xb6, 0xf6, 0x77, 0xd2, 0x36, 0x9d, 0xbc, 0x13, 0xf3, 0xfb, 0x20, 0x78,
395 0xe0, 0x3b, 0x7a, 0xb3, 0x6a, 0x7e, 0x32, 0x02, 0xc9, 0xd8, 0x8e, 0xdf, 0x44, 0x39, 0xe1, 0x70,
396 0x0f, 0xf4, 0x5e, 0xbc, 0x11, 0x3f, 0xfb, 0x20, 0x06, 0x4e, 0x43, 0xb3, 0xa8, 0x3e, 0x54, 0x83,
397 0x26, 0x97, 0x6a, 0x3f, 0x1a, 0x08, 0xcf, 0xaf, 0x5e, 0xfc, 0x11, 0x42, 0x3c, 0x3d, 0xe9, 0x94,
398 0x4c, 0xd5, 0x55, 0x29, 0x7a, 0x1a, 0x9a, 0xab, 0xe9, 0x49, 0x51, 0x4e, 0xb8, 0xe0, 0x7d, 0x94,
399 0x8d, 0xd7, 0xb5, 0x56, 0x1e, 0xeb, 0xdf, 0xe9, 0xc0, 0x58, 0xd3, 0xe2, 0x13, 0x51, 0x4c, 0xb5,
400 0x1f, 0x0c, 0x74, 0xfd, 0x00, 0xfc, 0x21, 0x73, 0x80, 0x40, 0x1b, 0x7c, 0x70, 0x1d, 0xc0, 0x36,
401 0x2a, 0xa6, 0x3b, 0x51, 0xeb, 0xe1, 0x9a, 0xf6, 0x2d, 0xa6, 0xfb, 0x93, 0x8c, 0xef, 0xa4, 0xda,
402 0xb9, 0x7c, 0xae, 0x76, 0xde, 0x42, 0x59, 0x8f, 0xca, 0x6e, 0x39, 0xa3, 0x6e, 0x14, 0x62, 0xeb,
403 0x3e, 0x95, 0x5d, 0xa2, 0x50, 0x65, 0xe5, 0xbe, 0x54, 0xc5, 0xcd, 0x69, 0x2b, 0xf7, 0x25, 0x51,
404 0x68, 0xed, 0x8f, 0x2b, 0x68, 0xed, 0x31, 0xed, 0xb3, 0xd6, 0xa5, 0x5e, 0x5f, 0xea, 0xf5, 0x82,
405 0x7a, 0x8d, 0x2e, 0xf5, 0xfa, 0x22, 0x7a, 0x5d, 0x3b, 0x31, 0x50, 0x65, 0x6e, 0xd6, 0x5e, 0xb6,
406 0x9e, 0x7e, 0x3d, 0xa7, 0xa7, 0xef, 0x2f, 0x3e, 0x42, 0x73, 0xaf, 0x9f, 0x53, 0xd4, 0xbf, 0x0c,
407 0x54, 0x7b, 0x71, 0x8e, 0x2f, 0x41, 0x53, 0x07, 0xd3, 0x9a, 0xfa, 0xd9, 0x7f, 0x48, 0x70, 0x11,
408 0x55, 0xfd, 0xc9, 0x40, 0xff, 0x3b, 0x63, 0x9d, 0xe1, 0x57, 0x51, 0x26, 0xf0, 0xfb, 0x7a, 0x2d,
409 0xe7, 0xa3, 0xd0, 0xcc, 0x3c, 0x22, 0xbb, 0x24, 0xc6, 0x30, 0x45, 0x79, 0x91, 0x28, 0x83, 0x4e,
410 0xff, 0xee, 0xe2, 0x6f, 0x9c, 0x95, 0x94, 0x46, 0x29, 0x0a, 0xcd, 0xfc, 0x08, 0x1d, 0xf1, 0xe2,
411 0x3a, 0x2a, 0x38, 0xb4, 0x11, 0xb8, 0x2d, 0xad, 0x69, 0x2b, 0x8d, 0x95, 0xb8, 0x5c, 0xdb, 0x5b,
412 0x09, 0x46, 0x52, 0x6b, 0xe3, 0xf6, 0xf1, 0x49, 0x65, 0xe9, 0xd9, 0x49, 0x65, 0xe9, 0xf9, 0x49,
413 0x65, 0xe9, 0xbb, 0xa8, 0x62, 0x1c, 0x47, 0x15, 0xe3, 0x59, 0x54, 0x31, 0x9e, 0x47, 0x15, 0xe3,
414 0xb7, 0xa8, 0x62, 0x7c, 0xff, 0x7b, 0x65, 0xe9, 0x8b, 0xbc, 0x8e, 0xff, 0x77, 0x00, 0x00, 0x00,
415 0xff, 0xff, 0xae, 0x27, 0x2b, 0xcb, 0x2c, 0x0f, 0x00, 0x00,
416}
417
418func (m *MutatingWebhook) Marshal() (dAtA []byte, err error) {
419 size := m.Size()
420 dAtA = make([]byte, size)
421 n, err := m.MarshalToSizedBuffer(dAtA[:size])
422 if err != nil {
423 return nil, err
424 }
425 return dAtA[:n], nil
426}
427
428func (m *MutatingWebhook) MarshalTo(dAtA []byte) (int, error) {
429 size := m.Size()
430 return m.MarshalToSizedBuffer(dAtA[:size])
431}
432
433func (m *MutatingWebhook) MarshalToSizedBuffer(dAtA []byte) (int, error) {
434 i := len(dAtA)
435 _ = i
436 var l int
437 _ = l
438 if m.ObjectSelector != nil {
439 {
440 size, err := m.ObjectSelector.MarshalToSizedBuffer(dAtA[:i])
441 if err != nil {
442 return 0, err
443 }
444 i -= size
445 i = encodeVarintGenerated(dAtA, i, uint64(size))
446 }
447 i--
448 dAtA[i] = 0x5a
449 }
450 if m.ReinvocationPolicy != nil {
451 i -= len(*m.ReinvocationPolicy)
452 copy(dAtA[i:], *m.ReinvocationPolicy)
453 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.ReinvocationPolicy)))
454 i--
455 dAtA[i] = 0x52
456 }
457 if m.MatchPolicy != nil {
458 i -= len(*m.MatchPolicy)
459 copy(dAtA[i:], *m.MatchPolicy)
460 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.MatchPolicy)))
461 i--
462 dAtA[i] = 0x4a
463 }
464 if len(m.AdmissionReviewVersions) > 0 {
465 for iNdEx := len(m.AdmissionReviewVersions) - 1; iNdEx >= 0; iNdEx-- {
466 i -= len(m.AdmissionReviewVersions[iNdEx])
467 copy(dAtA[i:], m.AdmissionReviewVersions[iNdEx])
468 i = encodeVarintGenerated(dAtA, i, uint64(len(m.AdmissionReviewVersions[iNdEx])))
469 i--
470 dAtA[i] = 0x42
471 }
472 }
473 if m.TimeoutSeconds != nil {
474 i = encodeVarintGenerated(dAtA, i, uint64(*m.TimeoutSeconds))
475 i--
476 dAtA[i] = 0x38
477 }
478 if m.SideEffects != nil {
479 i -= len(*m.SideEffects)
480 copy(dAtA[i:], *m.SideEffects)
481 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.SideEffects)))
482 i--
483 dAtA[i] = 0x32
484 }
485 if m.NamespaceSelector != nil {
486 {
487 size, err := m.NamespaceSelector.MarshalToSizedBuffer(dAtA[:i])
488 if err != nil {
489 return 0, err
490 }
491 i -= size
492 i = encodeVarintGenerated(dAtA, i, uint64(size))
493 }
494 i--
495 dAtA[i] = 0x2a
496 }
497 if m.FailurePolicy != nil {
498 i -= len(*m.FailurePolicy)
499 copy(dAtA[i:], *m.FailurePolicy)
500 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.FailurePolicy)))
501 i--
502 dAtA[i] = 0x22
503 }
504 if len(m.Rules) > 0 {
505 for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- {
506 {
507 size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i])
508 if err != nil {
509 return 0, err
510 }
511 i -= size
512 i = encodeVarintGenerated(dAtA, i, uint64(size))
513 }
514 i--
515 dAtA[i] = 0x1a
516 }
517 }
518 {
519 size, err := m.ClientConfig.MarshalToSizedBuffer(dAtA[:i])
520 if err != nil {
521 return 0, err
522 }
523 i -= size
524 i = encodeVarintGenerated(dAtA, i, uint64(size))
525 }
526 i--
527 dAtA[i] = 0x12
528 i -= len(m.Name)
529 copy(dAtA[i:], m.Name)
530 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
531 i--
532 dAtA[i] = 0xa
533 return len(dAtA) - i, nil
534}
535
536func (m *MutatingWebhookConfiguration) Marshal() (dAtA []byte, err error) {
537 size := m.Size()
538 dAtA = make([]byte, size)
539 n, err := m.MarshalToSizedBuffer(dAtA[:size])
540 if err != nil {
541 return nil, err
542 }
543 return dAtA[:n], nil
544}
545
546func (m *MutatingWebhookConfiguration) MarshalTo(dAtA []byte) (int, error) {
547 size := m.Size()
548 return m.MarshalToSizedBuffer(dAtA[:size])
549}
550
551func (m *MutatingWebhookConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) {
552 i := len(dAtA)
553 _ = i
554 var l int
555 _ = l
556 if len(m.Webhooks) > 0 {
557 for iNdEx := len(m.Webhooks) - 1; iNdEx >= 0; iNdEx-- {
558 {
559 size, err := m.Webhooks[iNdEx].MarshalToSizedBuffer(dAtA[:i])
560 if err != nil {
561 return 0, err
562 }
563 i -= size
564 i = encodeVarintGenerated(dAtA, i, uint64(size))
565 }
566 i--
567 dAtA[i] = 0x12
568 }
569 }
570 {
571 size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
572 if err != nil {
573 return 0, err
574 }
575 i -= size
576 i = encodeVarintGenerated(dAtA, i, uint64(size))
577 }
578 i--
579 dAtA[i] = 0xa
580 return len(dAtA) - i, nil
581}
582
583func (m *MutatingWebhookConfigurationList) Marshal() (dAtA []byte, err error) {
584 size := m.Size()
585 dAtA = make([]byte, size)
586 n, err := m.MarshalToSizedBuffer(dAtA[:size])
587 if err != nil {
588 return nil, err
589 }
590 return dAtA[:n], nil
591}
592
593func (m *MutatingWebhookConfigurationList) MarshalTo(dAtA []byte) (int, error) {
594 size := m.Size()
595 return m.MarshalToSizedBuffer(dAtA[:size])
596}
597
598func (m *MutatingWebhookConfigurationList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
599 i := len(dAtA)
600 _ = i
601 var l int
602 _ = l
603 if len(m.Items) > 0 {
604 for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
605 {
606 size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
607 if err != nil {
608 return 0, err
609 }
610 i -= size
611 i = encodeVarintGenerated(dAtA, i, uint64(size))
612 }
613 i--
614 dAtA[i] = 0x12
615 }
616 }
617 {
618 size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
619 if err != nil {
620 return 0, err
621 }
622 i -= size
623 i = encodeVarintGenerated(dAtA, i, uint64(size))
624 }
625 i--
626 dAtA[i] = 0xa
627 return len(dAtA) - i, nil
628}
629
630func (m *Rule) Marshal() (dAtA []byte, err error) {
631 size := m.Size()
632 dAtA = make([]byte, size)
633 n, err := m.MarshalToSizedBuffer(dAtA[:size])
634 if err != nil {
635 return nil, err
636 }
637 return dAtA[:n], nil
638}
639
640func (m *Rule) MarshalTo(dAtA []byte) (int, error) {
641 size := m.Size()
642 return m.MarshalToSizedBuffer(dAtA[:size])
643}
644
645func (m *Rule) MarshalToSizedBuffer(dAtA []byte) (int, error) {
646 i := len(dAtA)
647 _ = i
648 var l int
649 _ = l
650 if m.Scope != nil {
651 i -= len(*m.Scope)
652 copy(dAtA[i:], *m.Scope)
653 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Scope)))
654 i--
655 dAtA[i] = 0x22
656 }
657 if len(m.Resources) > 0 {
658 for iNdEx := len(m.Resources) - 1; iNdEx >= 0; iNdEx-- {
659 i -= len(m.Resources[iNdEx])
660 copy(dAtA[i:], m.Resources[iNdEx])
661 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Resources[iNdEx])))
662 i--
663 dAtA[i] = 0x1a
664 }
665 }
666 if len(m.APIVersions) > 0 {
667 for iNdEx := len(m.APIVersions) - 1; iNdEx >= 0; iNdEx-- {
668 i -= len(m.APIVersions[iNdEx])
669 copy(dAtA[i:], m.APIVersions[iNdEx])
670 i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersions[iNdEx])))
671 i--
672 dAtA[i] = 0x12
673 }
674 }
675 if len(m.APIGroups) > 0 {
676 for iNdEx := len(m.APIGroups) - 1; iNdEx >= 0; iNdEx-- {
677 i -= len(m.APIGroups[iNdEx])
678 copy(dAtA[i:], m.APIGroups[iNdEx])
679 i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIGroups[iNdEx])))
680 i--
681 dAtA[i] = 0xa
682 }
683 }
684 return len(dAtA) - i, nil
685}
686
687func (m *RuleWithOperations) Marshal() (dAtA []byte, err error) {
688 size := m.Size()
689 dAtA = make([]byte, size)
690 n, err := m.MarshalToSizedBuffer(dAtA[:size])
691 if err != nil {
692 return nil, err
693 }
694 return dAtA[:n], nil
695}
696
697func (m *RuleWithOperations) MarshalTo(dAtA []byte) (int, error) {
698 size := m.Size()
699 return m.MarshalToSizedBuffer(dAtA[:size])
700}
701
702func (m *RuleWithOperations) MarshalToSizedBuffer(dAtA []byte) (int, error) {
703 i := len(dAtA)
704 _ = i
705 var l int
706 _ = l
707 {
708 size, err := m.Rule.MarshalToSizedBuffer(dAtA[:i])
709 if err != nil {
710 return 0, err
711 }
712 i -= size
713 i = encodeVarintGenerated(dAtA, i, uint64(size))
714 }
715 i--
716 dAtA[i] = 0x12
717 if len(m.Operations) > 0 {
718 for iNdEx := len(m.Operations) - 1; iNdEx >= 0; iNdEx-- {
719 i -= len(m.Operations[iNdEx])
720 copy(dAtA[i:], m.Operations[iNdEx])
721 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Operations[iNdEx])))
722 i--
723 dAtA[i] = 0xa
724 }
725 }
726 return len(dAtA) - i, nil
727}
728
729func (m *ServiceReference) Marshal() (dAtA []byte, err error) {
730 size := m.Size()
731 dAtA = make([]byte, size)
732 n, err := m.MarshalToSizedBuffer(dAtA[:size])
733 if err != nil {
734 return nil, err
735 }
736 return dAtA[:n], nil
737}
738
739func (m *ServiceReference) MarshalTo(dAtA []byte) (int, error) {
740 size := m.Size()
741 return m.MarshalToSizedBuffer(dAtA[:size])
742}
743
744func (m *ServiceReference) MarshalToSizedBuffer(dAtA []byte) (int, error) {
745 i := len(dAtA)
746 _ = i
747 var l int
748 _ = l
749 if m.Port != nil {
750 i = encodeVarintGenerated(dAtA, i, uint64(*m.Port))
751 i--
752 dAtA[i] = 0x20
753 }
754 if m.Path != nil {
755 i -= len(*m.Path)
756 copy(dAtA[i:], *m.Path)
757 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Path)))
758 i--
759 dAtA[i] = 0x1a
760 }
761 i -= len(m.Name)
762 copy(dAtA[i:], m.Name)
763 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
764 i--
765 dAtA[i] = 0x12
766 i -= len(m.Namespace)
767 copy(dAtA[i:], m.Namespace)
768 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
769 i--
770 dAtA[i] = 0xa
771 return len(dAtA) - i, nil
772}
773
774func (m *ValidatingWebhook) Marshal() (dAtA []byte, err error) {
775 size := m.Size()
776 dAtA = make([]byte, size)
777 n, err := m.MarshalToSizedBuffer(dAtA[:size])
778 if err != nil {
779 return nil, err
780 }
781 return dAtA[:n], nil
782}
783
784func (m *ValidatingWebhook) MarshalTo(dAtA []byte) (int, error) {
785 size := m.Size()
786 return m.MarshalToSizedBuffer(dAtA[:size])
787}
788
789func (m *ValidatingWebhook) MarshalToSizedBuffer(dAtA []byte) (int, error) {
790 i := len(dAtA)
791 _ = i
792 var l int
793 _ = l
794 if m.ObjectSelector != nil {
795 {
796 size, err := m.ObjectSelector.MarshalToSizedBuffer(dAtA[:i])
797 if err != nil {
798 return 0, err
799 }
800 i -= size
801 i = encodeVarintGenerated(dAtA, i, uint64(size))
802 }
803 i--
804 dAtA[i] = 0x52
805 }
806 if m.MatchPolicy != nil {
807 i -= len(*m.MatchPolicy)
808 copy(dAtA[i:], *m.MatchPolicy)
809 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.MatchPolicy)))
810 i--
811 dAtA[i] = 0x4a
812 }
813 if len(m.AdmissionReviewVersions) > 0 {
814 for iNdEx := len(m.AdmissionReviewVersions) - 1; iNdEx >= 0; iNdEx-- {
815 i -= len(m.AdmissionReviewVersions[iNdEx])
816 copy(dAtA[i:], m.AdmissionReviewVersions[iNdEx])
817 i = encodeVarintGenerated(dAtA, i, uint64(len(m.AdmissionReviewVersions[iNdEx])))
818 i--
819 dAtA[i] = 0x42
820 }
821 }
822 if m.TimeoutSeconds != nil {
823 i = encodeVarintGenerated(dAtA, i, uint64(*m.TimeoutSeconds))
824 i--
825 dAtA[i] = 0x38
826 }
827 if m.SideEffects != nil {
828 i -= len(*m.SideEffects)
829 copy(dAtA[i:], *m.SideEffects)
830 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.SideEffects)))
831 i--
832 dAtA[i] = 0x32
833 }
834 if m.NamespaceSelector != nil {
835 {
836 size, err := m.NamespaceSelector.MarshalToSizedBuffer(dAtA[:i])
837 if err != nil {
838 return 0, err
839 }
840 i -= size
841 i = encodeVarintGenerated(dAtA, i, uint64(size))
842 }
843 i--
844 dAtA[i] = 0x2a
845 }
846 if m.FailurePolicy != nil {
847 i -= len(*m.FailurePolicy)
848 copy(dAtA[i:], *m.FailurePolicy)
849 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.FailurePolicy)))
850 i--
851 dAtA[i] = 0x22
852 }
853 if len(m.Rules) > 0 {
854 for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- {
855 {
856 size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i])
857 if err != nil {
858 return 0, err
859 }
860 i -= size
861 i = encodeVarintGenerated(dAtA, i, uint64(size))
862 }
863 i--
864 dAtA[i] = 0x1a
865 }
866 }
867 {
868 size, err := m.ClientConfig.MarshalToSizedBuffer(dAtA[:i])
869 if err != nil {
870 return 0, err
871 }
872 i -= size
873 i = encodeVarintGenerated(dAtA, i, uint64(size))
874 }
875 i--
876 dAtA[i] = 0x12
877 i -= len(m.Name)
878 copy(dAtA[i:], m.Name)
879 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
880 i--
881 dAtA[i] = 0xa
882 return len(dAtA) - i, nil
883}
884
885func (m *ValidatingWebhookConfiguration) Marshal() (dAtA []byte, err error) {
886 size := m.Size()
887 dAtA = make([]byte, size)
888 n, err := m.MarshalToSizedBuffer(dAtA[:size])
889 if err != nil {
890 return nil, err
891 }
892 return dAtA[:n], nil
893}
894
895func (m *ValidatingWebhookConfiguration) MarshalTo(dAtA []byte) (int, error) {
896 size := m.Size()
897 return m.MarshalToSizedBuffer(dAtA[:size])
898}
899
900func (m *ValidatingWebhookConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) {
901 i := len(dAtA)
902 _ = i
903 var l int
904 _ = l
905 if len(m.Webhooks) > 0 {
906 for iNdEx := len(m.Webhooks) - 1; iNdEx >= 0; iNdEx-- {
907 {
908 size, err := m.Webhooks[iNdEx].MarshalToSizedBuffer(dAtA[:i])
909 if err != nil {
910 return 0, err
911 }
912 i -= size
913 i = encodeVarintGenerated(dAtA, i, uint64(size))
914 }
915 i--
916 dAtA[i] = 0x12
917 }
918 }
919 {
920 size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
921 if err != nil {
922 return 0, err
923 }
924 i -= size
925 i = encodeVarintGenerated(dAtA, i, uint64(size))
926 }
927 i--
928 dAtA[i] = 0xa
929 return len(dAtA) - i, nil
930}
931
932func (m *ValidatingWebhookConfigurationList) Marshal() (dAtA []byte, err error) {
933 size := m.Size()
934 dAtA = make([]byte, size)
935 n, err := m.MarshalToSizedBuffer(dAtA[:size])
936 if err != nil {
937 return nil, err
938 }
939 return dAtA[:n], nil
940}
941
942func (m *ValidatingWebhookConfigurationList) MarshalTo(dAtA []byte) (int, error) {
943 size := m.Size()
944 return m.MarshalToSizedBuffer(dAtA[:size])
945}
946
947func (m *ValidatingWebhookConfigurationList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
948 i := len(dAtA)
949 _ = i
950 var l int
951 _ = l
952 if len(m.Items) > 0 {
953 for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
954 {
955 size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
956 if err != nil {
957 return 0, err
958 }
959 i -= size
960 i = encodeVarintGenerated(dAtA, i, uint64(size))
961 }
962 i--
963 dAtA[i] = 0x12
964 }
965 }
966 {
967 size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
968 if err != nil {
969 return 0, err
970 }
971 i -= size
972 i = encodeVarintGenerated(dAtA, i, uint64(size))
973 }
974 i--
975 dAtA[i] = 0xa
976 return len(dAtA) - i, nil
977}
978
979func (m *WebhookClientConfig) Marshal() (dAtA []byte, err error) {
980 size := m.Size()
981 dAtA = make([]byte, size)
982 n, err := m.MarshalToSizedBuffer(dAtA[:size])
983 if err != nil {
984 return nil, err
985 }
986 return dAtA[:n], nil
987}
988
989func (m *WebhookClientConfig) MarshalTo(dAtA []byte) (int, error) {
990 size := m.Size()
991 return m.MarshalToSizedBuffer(dAtA[:size])
992}
993
994func (m *WebhookClientConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) {
995 i := len(dAtA)
996 _ = i
997 var l int
998 _ = l
999 if m.URL != nil {
1000 i -= len(*m.URL)
1001 copy(dAtA[i:], *m.URL)
1002 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.URL)))
1003 i--
1004 dAtA[i] = 0x1a
1005 }
1006 if m.CABundle != nil {
1007 i -= len(m.CABundle)
1008 copy(dAtA[i:], m.CABundle)
1009 i = encodeVarintGenerated(dAtA, i, uint64(len(m.CABundle)))
1010 i--
1011 dAtA[i] = 0x12
1012 }
1013 if m.Service != nil {
1014 {
1015 size, err := m.Service.MarshalToSizedBuffer(dAtA[:i])
1016 if err != nil {
1017 return 0, err
1018 }
1019 i -= size
1020 i = encodeVarintGenerated(dAtA, i, uint64(size))
1021 }
1022 i--
1023 dAtA[i] = 0xa
1024 }
1025 return len(dAtA) - i, nil
1026}
1027
1028func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
1029 offset -= sovGenerated(v)
1030 base := offset
1031 for v >= 1<<7 {
1032 dAtA[offset] = uint8(v&0x7f | 0x80)
1033 v >>= 7
1034 offset++
1035 }
1036 dAtA[offset] = uint8(v)
1037 return base
1038}
1039func (m *MutatingWebhook) Size() (n int) {
1040 if m == nil {
1041 return 0
1042 }
1043 var l int
1044 _ = l
1045 l = len(m.Name)
1046 n += 1 + l + sovGenerated(uint64(l))
1047 l = m.ClientConfig.Size()
1048 n += 1 + l + sovGenerated(uint64(l))
1049 if len(m.Rules) > 0 {
1050 for _, e := range m.Rules {
1051 l = e.Size()
1052 n += 1 + l + sovGenerated(uint64(l))
1053 }
1054 }
1055 if m.FailurePolicy != nil {
1056 l = len(*m.FailurePolicy)
1057 n += 1 + l + sovGenerated(uint64(l))
1058 }
1059 if m.NamespaceSelector != nil {
1060 l = m.NamespaceSelector.Size()
1061 n += 1 + l + sovGenerated(uint64(l))
1062 }
1063 if m.SideEffects != nil {
1064 l = len(*m.SideEffects)
1065 n += 1 + l + sovGenerated(uint64(l))
1066 }
1067 if m.TimeoutSeconds != nil {
1068 n += 1 + sovGenerated(uint64(*m.TimeoutSeconds))
1069 }
1070 if len(m.AdmissionReviewVersions) > 0 {
1071 for _, s := range m.AdmissionReviewVersions {
1072 l = len(s)
1073 n += 1 + l + sovGenerated(uint64(l))
1074 }
1075 }
1076 if m.MatchPolicy != nil {
1077 l = len(*m.MatchPolicy)
1078 n += 1 + l + sovGenerated(uint64(l))
1079 }
1080 if m.ReinvocationPolicy != nil {
1081 l = len(*m.ReinvocationPolicy)
1082 n += 1 + l + sovGenerated(uint64(l))
1083 }
1084 if m.ObjectSelector != nil {
1085 l = m.ObjectSelector.Size()
1086 n += 1 + l + sovGenerated(uint64(l))
1087 }
1088 return n
1089}
1090
1091func (m *MutatingWebhookConfiguration) Size() (n int) {
1092 if m == nil {
1093 return 0
1094 }
1095 var l int
1096 _ = l
1097 l = m.ObjectMeta.Size()
1098 n += 1 + l + sovGenerated(uint64(l))
1099 if len(m.Webhooks) > 0 {
1100 for _, e := range m.Webhooks {
1101 l = e.Size()
1102 n += 1 + l + sovGenerated(uint64(l))
1103 }
1104 }
1105 return n
1106}
1107
1108func (m *MutatingWebhookConfigurationList) Size() (n int) {
1109 if m == nil {
1110 return 0
1111 }
1112 var l int
1113 _ = l
1114 l = m.ListMeta.Size()
1115 n += 1 + l + sovGenerated(uint64(l))
1116 if len(m.Items) > 0 {
1117 for _, e := range m.Items {
1118 l = e.Size()
1119 n += 1 + l + sovGenerated(uint64(l))
1120 }
1121 }
1122 return n
1123}
1124
1125func (m *Rule) Size() (n int) {
1126 if m == nil {
1127 return 0
1128 }
1129 var l int
1130 _ = l
1131 if len(m.APIGroups) > 0 {
1132 for _, s := range m.APIGroups {
1133 l = len(s)
1134 n += 1 + l + sovGenerated(uint64(l))
1135 }
1136 }
1137 if len(m.APIVersions) > 0 {
1138 for _, s := range m.APIVersions {
1139 l = len(s)
1140 n += 1 + l + sovGenerated(uint64(l))
1141 }
1142 }
1143 if len(m.Resources) > 0 {
1144 for _, s := range m.Resources {
1145 l = len(s)
1146 n += 1 + l + sovGenerated(uint64(l))
1147 }
1148 }
1149 if m.Scope != nil {
1150 l = len(*m.Scope)
1151 n += 1 + l + sovGenerated(uint64(l))
1152 }
1153 return n
1154}
1155
1156func (m *RuleWithOperations) Size() (n int) {
1157 if m == nil {
1158 return 0
1159 }
1160 var l int
1161 _ = l
1162 if len(m.Operations) > 0 {
1163 for _, s := range m.Operations {
1164 l = len(s)
1165 n += 1 + l + sovGenerated(uint64(l))
1166 }
1167 }
1168 l = m.Rule.Size()
1169 n += 1 + l + sovGenerated(uint64(l))
1170 return n
1171}
1172
1173func (m *ServiceReference) Size() (n int) {
1174 if m == nil {
1175 return 0
1176 }
1177 var l int
1178 _ = l
1179 l = len(m.Namespace)
1180 n += 1 + l + sovGenerated(uint64(l))
1181 l = len(m.Name)
1182 n += 1 + l + sovGenerated(uint64(l))
1183 if m.Path != nil {
1184 l = len(*m.Path)
1185 n += 1 + l + sovGenerated(uint64(l))
1186 }
1187 if m.Port != nil {
1188 n += 1 + sovGenerated(uint64(*m.Port))
1189 }
1190 return n
1191}
1192
1193func (m *ValidatingWebhook) Size() (n int) {
1194 if m == nil {
1195 return 0
1196 }
1197 var l int
1198 _ = l
1199 l = len(m.Name)
1200 n += 1 + l + sovGenerated(uint64(l))
1201 l = m.ClientConfig.Size()
1202 n += 1 + l + sovGenerated(uint64(l))
1203 if len(m.Rules) > 0 {
1204 for _, e := range m.Rules {
1205 l = e.Size()
1206 n += 1 + l + sovGenerated(uint64(l))
1207 }
1208 }
1209 if m.FailurePolicy != nil {
1210 l = len(*m.FailurePolicy)
1211 n += 1 + l + sovGenerated(uint64(l))
1212 }
1213 if m.NamespaceSelector != nil {
1214 l = m.NamespaceSelector.Size()
1215 n += 1 + l + sovGenerated(uint64(l))
1216 }
1217 if m.SideEffects != nil {
1218 l = len(*m.SideEffects)
1219 n += 1 + l + sovGenerated(uint64(l))
1220 }
1221 if m.TimeoutSeconds != nil {
1222 n += 1 + sovGenerated(uint64(*m.TimeoutSeconds))
1223 }
1224 if len(m.AdmissionReviewVersions) > 0 {
1225 for _, s := range m.AdmissionReviewVersions {
1226 l = len(s)
1227 n += 1 + l + sovGenerated(uint64(l))
1228 }
1229 }
1230 if m.MatchPolicy != nil {
1231 l = len(*m.MatchPolicy)
1232 n += 1 + l + sovGenerated(uint64(l))
1233 }
1234 if m.ObjectSelector != nil {
1235 l = m.ObjectSelector.Size()
1236 n += 1 + l + sovGenerated(uint64(l))
1237 }
1238 return n
1239}
1240
1241func (m *ValidatingWebhookConfiguration) Size() (n int) {
1242 if m == nil {
1243 return 0
1244 }
1245 var l int
1246 _ = l
1247 l = m.ObjectMeta.Size()
1248 n += 1 + l + sovGenerated(uint64(l))
1249 if len(m.Webhooks) > 0 {
1250 for _, e := range m.Webhooks {
1251 l = e.Size()
1252 n += 1 + l + sovGenerated(uint64(l))
1253 }
1254 }
1255 return n
1256}
1257
1258func (m *ValidatingWebhookConfigurationList) Size() (n int) {
1259 if m == nil {
1260 return 0
1261 }
1262 var l int
1263 _ = l
1264 l = m.ListMeta.Size()
1265 n += 1 + l + sovGenerated(uint64(l))
1266 if len(m.Items) > 0 {
1267 for _, e := range m.Items {
1268 l = e.Size()
1269 n += 1 + l + sovGenerated(uint64(l))
1270 }
1271 }
1272 return n
1273}
1274
1275func (m *WebhookClientConfig) Size() (n int) {
1276 if m == nil {
1277 return 0
1278 }
1279 var l int
1280 _ = l
1281 if m.Service != nil {
1282 l = m.Service.Size()
1283 n += 1 + l + sovGenerated(uint64(l))
1284 }
1285 if m.CABundle != nil {
1286 l = len(m.CABundle)
1287 n += 1 + l + sovGenerated(uint64(l))
1288 }
1289 if m.URL != nil {
1290 l = len(*m.URL)
1291 n += 1 + l + sovGenerated(uint64(l))
1292 }
1293 return n
1294}
1295
1296func sovGenerated(x uint64) (n int) {
1297 return (math_bits.Len64(x|1) + 6) / 7
1298}
1299func sozGenerated(x uint64) (n int) {
1300 return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
1301}
1302func (this *MutatingWebhook) String() string {
1303 if this == nil {
1304 return "nil"
1305 }
1306 repeatedStringForRules := "[]RuleWithOperations{"
1307 for _, f := range this.Rules {
1308 repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "RuleWithOperations", "RuleWithOperations", 1), `&`, ``, 1) + ","
1309 }
1310 repeatedStringForRules += "}"
1311 s := strings.Join([]string{`&MutatingWebhook{`,
1312 `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
1313 `ClientConfig:` + strings.Replace(strings.Replace(this.ClientConfig.String(), "WebhookClientConfig", "WebhookClientConfig", 1), `&`, ``, 1) + `,`,
1314 `Rules:` + repeatedStringForRules + `,`,
1315 `FailurePolicy:` + valueToStringGenerated(this.FailurePolicy) + `,`,
1316 `NamespaceSelector:` + strings.Replace(fmt.Sprintf("%v", this.NamespaceSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`,
1317 `SideEffects:` + valueToStringGenerated(this.SideEffects) + `,`,
1318 `TimeoutSeconds:` + valueToStringGenerated(this.TimeoutSeconds) + `,`,
1319 `AdmissionReviewVersions:` + fmt.Sprintf("%v", this.AdmissionReviewVersions) + `,`,
1320 `MatchPolicy:` + valueToStringGenerated(this.MatchPolicy) + `,`,
1321 `ReinvocationPolicy:` + valueToStringGenerated(this.ReinvocationPolicy) + `,`,
1322 `ObjectSelector:` + strings.Replace(fmt.Sprintf("%v", this.ObjectSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`,
1323 `}`,
1324 }, "")
1325 return s
1326}
1327func (this *MutatingWebhookConfiguration) String() string {
1328 if this == nil {
1329 return "nil"
1330 }
1331 repeatedStringForWebhooks := "[]MutatingWebhook{"
1332 for _, f := range this.Webhooks {
1333 repeatedStringForWebhooks += strings.Replace(strings.Replace(f.String(), "MutatingWebhook", "MutatingWebhook", 1), `&`, ``, 1) + ","
1334 }
1335 repeatedStringForWebhooks += "}"
1336 s := strings.Join([]string{`&MutatingWebhookConfiguration{`,
1337 `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
1338 `Webhooks:` + repeatedStringForWebhooks + `,`,
1339 `}`,
1340 }, "")
1341 return s
1342}
1343func (this *MutatingWebhookConfigurationList) String() string {
1344 if this == nil {
1345 return "nil"
1346 }
1347 repeatedStringForItems := "[]MutatingWebhookConfiguration{"
1348 for _, f := range this.Items {
1349 repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "MutatingWebhookConfiguration", "MutatingWebhookConfiguration", 1), `&`, ``, 1) + ","
1350 }
1351 repeatedStringForItems += "}"
1352 s := strings.Join([]string{`&MutatingWebhookConfigurationList{`,
1353 `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
1354 `Items:` + repeatedStringForItems + `,`,
1355 `}`,
1356 }, "")
1357 return s
1358}
1359func (this *Rule) String() string {
1360 if this == nil {
1361 return "nil"
1362 }
1363 s := strings.Join([]string{`&Rule{`,
1364 `APIGroups:` + fmt.Sprintf("%v", this.APIGroups) + `,`,
1365 `APIVersions:` + fmt.Sprintf("%v", this.APIVersions) + `,`,
1366 `Resources:` + fmt.Sprintf("%v", this.Resources) + `,`,
1367 `Scope:` + valueToStringGenerated(this.Scope) + `,`,
1368 `}`,
1369 }, "")
1370 return s
1371}
1372func (this *RuleWithOperations) String() string {
1373 if this == nil {
1374 return "nil"
1375 }
1376 s := strings.Join([]string{`&RuleWithOperations{`,
1377 `Operations:` + fmt.Sprintf("%v", this.Operations) + `,`,
1378 `Rule:` + strings.Replace(strings.Replace(this.Rule.String(), "Rule", "Rule", 1), `&`, ``, 1) + `,`,
1379 `}`,
1380 }, "")
1381 return s
1382}
1383func (this *ServiceReference) String() string {
1384 if this == nil {
1385 return "nil"
1386 }
1387 s := strings.Join([]string{`&ServiceReference{`,
1388 `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
1389 `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
1390 `Path:` + valueToStringGenerated(this.Path) + `,`,
1391 `Port:` + valueToStringGenerated(this.Port) + `,`,
1392 `}`,
1393 }, "")
1394 return s
1395}
1396func (this *ValidatingWebhook) String() string {
1397 if this == nil {
1398 return "nil"
1399 }
1400 repeatedStringForRules := "[]RuleWithOperations{"
1401 for _, f := range this.Rules {
1402 repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "RuleWithOperations", "RuleWithOperations", 1), `&`, ``, 1) + ","
1403 }
1404 repeatedStringForRules += "}"
1405 s := strings.Join([]string{`&ValidatingWebhook{`,
1406 `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
1407 `ClientConfig:` + strings.Replace(strings.Replace(this.ClientConfig.String(), "WebhookClientConfig", "WebhookClientConfig", 1), `&`, ``, 1) + `,`,
1408 `Rules:` + repeatedStringForRules + `,`,
1409 `FailurePolicy:` + valueToStringGenerated(this.FailurePolicy) + `,`,
1410 `NamespaceSelector:` + strings.Replace(fmt.Sprintf("%v", this.NamespaceSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`,
1411 `SideEffects:` + valueToStringGenerated(this.SideEffects) + `,`,
1412 `TimeoutSeconds:` + valueToStringGenerated(this.TimeoutSeconds) + `,`,
1413 `AdmissionReviewVersions:` + fmt.Sprintf("%v", this.AdmissionReviewVersions) + `,`,
1414 `MatchPolicy:` + valueToStringGenerated(this.MatchPolicy) + `,`,
1415 `ObjectSelector:` + strings.Replace(fmt.Sprintf("%v", this.ObjectSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`,
1416 `}`,
1417 }, "")
1418 return s
1419}
1420func (this *ValidatingWebhookConfiguration) String() string {
1421 if this == nil {
1422 return "nil"
1423 }
1424 repeatedStringForWebhooks := "[]ValidatingWebhook{"
1425 for _, f := range this.Webhooks {
1426 repeatedStringForWebhooks += strings.Replace(strings.Replace(f.String(), "ValidatingWebhook", "ValidatingWebhook", 1), `&`, ``, 1) + ","
1427 }
1428 repeatedStringForWebhooks += "}"
1429 s := strings.Join([]string{`&ValidatingWebhookConfiguration{`,
1430 `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
1431 `Webhooks:` + repeatedStringForWebhooks + `,`,
1432 `}`,
1433 }, "")
1434 return s
1435}
1436func (this *ValidatingWebhookConfigurationList) String() string {
1437 if this == nil {
1438 return "nil"
1439 }
1440 repeatedStringForItems := "[]ValidatingWebhookConfiguration{"
1441 for _, f := range this.Items {
1442 repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ValidatingWebhookConfiguration", "ValidatingWebhookConfiguration", 1), `&`, ``, 1) + ","
1443 }
1444 repeatedStringForItems += "}"
1445 s := strings.Join([]string{`&ValidatingWebhookConfigurationList{`,
1446 `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
1447 `Items:` + repeatedStringForItems + `,`,
1448 `}`,
1449 }, "")
1450 return s
1451}
1452func (this *WebhookClientConfig) String() string {
1453 if this == nil {
1454 return "nil"
1455 }
1456 s := strings.Join([]string{`&WebhookClientConfig{`,
1457 `Service:` + strings.Replace(this.Service.String(), "ServiceReference", "ServiceReference", 1) + `,`,
1458 `CABundle:` + valueToStringGenerated(this.CABundle) + `,`,
1459 `URL:` + valueToStringGenerated(this.URL) + `,`,
1460 `}`,
1461 }, "")
1462 return s
1463}
1464func valueToStringGenerated(v interface{}) string {
1465 rv := reflect.ValueOf(v)
1466 if rv.IsNil() {
1467 return "nil"
1468 }
1469 pv := reflect.Indirect(rv).Interface()
1470 return fmt.Sprintf("*%v", pv)
1471}
1472func (m *MutatingWebhook) Unmarshal(dAtA []byte) error {
1473 l := len(dAtA)
1474 iNdEx := 0
1475 for iNdEx < l {
1476 preIndex := iNdEx
1477 var wire uint64
1478 for shift := uint(0); ; shift += 7 {
1479 if shift >= 64 {
1480 return ErrIntOverflowGenerated
1481 }
1482 if iNdEx >= l {
1483 return io.ErrUnexpectedEOF
1484 }
1485 b := dAtA[iNdEx]
1486 iNdEx++
1487 wire |= uint64(b&0x7F) << shift
1488 if b < 0x80 {
1489 break
1490 }
1491 }
1492 fieldNum := int32(wire >> 3)
1493 wireType := int(wire & 0x7)
1494 if wireType == 4 {
1495 return fmt.Errorf("proto: MutatingWebhook: wiretype end group for non-group")
1496 }
1497 if fieldNum <= 0 {
1498 return fmt.Errorf("proto: MutatingWebhook: illegal tag %d (wire type %d)", fieldNum, wire)
1499 }
1500 switch fieldNum {
1501 case 1:
1502 if wireType != 2 {
1503 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
1504 }
1505 var stringLen uint64
1506 for shift := uint(0); ; shift += 7 {
1507 if shift >= 64 {
1508 return ErrIntOverflowGenerated
1509 }
1510 if iNdEx >= l {
1511 return io.ErrUnexpectedEOF
1512 }
1513 b := dAtA[iNdEx]
1514 iNdEx++
1515 stringLen |= uint64(b&0x7F) << shift
1516 if b < 0x80 {
1517 break
1518 }
1519 }
1520 intStringLen := int(stringLen)
1521 if intStringLen < 0 {
1522 return ErrInvalidLengthGenerated
1523 }
1524 postIndex := iNdEx + intStringLen
1525 if postIndex < 0 {
1526 return ErrInvalidLengthGenerated
1527 }
1528 if postIndex > l {
1529 return io.ErrUnexpectedEOF
1530 }
1531 m.Name = string(dAtA[iNdEx:postIndex])
1532 iNdEx = postIndex
1533 case 2:
1534 if wireType != 2 {
1535 return fmt.Errorf("proto: wrong wireType = %d for field ClientConfig", wireType)
1536 }
1537 var msglen int
1538 for shift := uint(0); ; shift += 7 {
1539 if shift >= 64 {
1540 return ErrIntOverflowGenerated
1541 }
1542 if iNdEx >= l {
1543 return io.ErrUnexpectedEOF
1544 }
1545 b := dAtA[iNdEx]
1546 iNdEx++
1547 msglen |= int(b&0x7F) << shift
1548 if b < 0x80 {
1549 break
1550 }
1551 }
1552 if msglen < 0 {
1553 return ErrInvalidLengthGenerated
1554 }
1555 postIndex := iNdEx + msglen
1556 if postIndex < 0 {
1557 return ErrInvalidLengthGenerated
1558 }
1559 if postIndex > l {
1560 return io.ErrUnexpectedEOF
1561 }
1562 if err := m.ClientConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1563 return err
1564 }
1565 iNdEx = postIndex
1566 case 3:
1567 if wireType != 2 {
1568 return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType)
1569 }
1570 var msglen int
1571 for shift := uint(0); ; shift += 7 {
1572 if shift >= 64 {
1573 return ErrIntOverflowGenerated
1574 }
1575 if iNdEx >= l {
1576 return io.ErrUnexpectedEOF
1577 }
1578 b := dAtA[iNdEx]
1579 iNdEx++
1580 msglen |= int(b&0x7F) << shift
1581 if b < 0x80 {
1582 break
1583 }
1584 }
1585 if msglen < 0 {
1586 return ErrInvalidLengthGenerated
1587 }
1588 postIndex := iNdEx + msglen
1589 if postIndex < 0 {
1590 return ErrInvalidLengthGenerated
1591 }
1592 if postIndex > l {
1593 return io.ErrUnexpectedEOF
1594 }
1595 m.Rules = append(m.Rules, RuleWithOperations{})
1596 if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1597 return err
1598 }
1599 iNdEx = postIndex
1600 case 4:
1601 if wireType != 2 {
1602 return fmt.Errorf("proto: wrong wireType = %d for field FailurePolicy", wireType)
1603 }
1604 var stringLen uint64
1605 for shift := uint(0); ; shift += 7 {
1606 if shift >= 64 {
1607 return ErrIntOverflowGenerated
1608 }
1609 if iNdEx >= l {
1610 return io.ErrUnexpectedEOF
1611 }
1612 b := dAtA[iNdEx]
1613 iNdEx++
1614 stringLen |= uint64(b&0x7F) << shift
1615 if b < 0x80 {
1616 break
1617 }
1618 }
1619 intStringLen := int(stringLen)
1620 if intStringLen < 0 {
1621 return ErrInvalidLengthGenerated
1622 }
1623 postIndex := iNdEx + intStringLen
1624 if postIndex < 0 {
1625 return ErrInvalidLengthGenerated
1626 }
1627 if postIndex > l {
1628 return io.ErrUnexpectedEOF
1629 }
1630 s := FailurePolicyType(dAtA[iNdEx:postIndex])
1631 m.FailurePolicy = &s
1632 iNdEx = postIndex
1633 case 5:
1634 if wireType != 2 {
1635 return fmt.Errorf("proto: wrong wireType = %d for field NamespaceSelector", wireType)
1636 }
1637 var msglen int
1638 for shift := uint(0); ; shift += 7 {
1639 if shift >= 64 {
1640 return ErrIntOverflowGenerated
1641 }
1642 if iNdEx >= l {
1643 return io.ErrUnexpectedEOF
1644 }
1645 b := dAtA[iNdEx]
1646 iNdEx++
1647 msglen |= int(b&0x7F) << shift
1648 if b < 0x80 {
1649 break
1650 }
1651 }
1652 if msglen < 0 {
1653 return ErrInvalidLengthGenerated
1654 }
1655 postIndex := iNdEx + msglen
1656 if postIndex < 0 {
1657 return ErrInvalidLengthGenerated
1658 }
1659 if postIndex > l {
1660 return io.ErrUnexpectedEOF
1661 }
1662 if m.NamespaceSelector == nil {
1663 m.NamespaceSelector = &v1.LabelSelector{}
1664 }
1665 if err := m.NamespaceSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1666 return err
1667 }
1668 iNdEx = postIndex
1669 case 6:
1670 if wireType != 2 {
1671 return fmt.Errorf("proto: wrong wireType = %d for field SideEffects", wireType)
1672 }
1673 var stringLen uint64
1674 for shift := uint(0); ; shift += 7 {
1675 if shift >= 64 {
1676 return ErrIntOverflowGenerated
1677 }
1678 if iNdEx >= l {
1679 return io.ErrUnexpectedEOF
1680 }
1681 b := dAtA[iNdEx]
1682 iNdEx++
1683 stringLen |= uint64(b&0x7F) << shift
1684 if b < 0x80 {
1685 break
1686 }
1687 }
1688 intStringLen := int(stringLen)
1689 if intStringLen < 0 {
1690 return ErrInvalidLengthGenerated
1691 }
1692 postIndex := iNdEx + intStringLen
1693 if postIndex < 0 {
1694 return ErrInvalidLengthGenerated
1695 }
1696 if postIndex > l {
1697 return io.ErrUnexpectedEOF
1698 }
1699 s := SideEffectClass(dAtA[iNdEx:postIndex])
1700 m.SideEffects = &s
1701 iNdEx = postIndex
1702 case 7:
1703 if wireType != 0 {
1704 return fmt.Errorf("proto: wrong wireType = %d for field TimeoutSeconds", wireType)
1705 }
1706 var v int32
1707 for shift := uint(0); ; shift += 7 {
1708 if shift >= 64 {
1709 return ErrIntOverflowGenerated
1710 }
1711 if iNdEx >= l {
1712 return io.ErrUnexpectedEOF
1713 }
1714 b := dAtA[iNdEx]
1715 iNdEx++
1716 v |= int32(b&0x7F) << shift
1717 if b < 0x80 {
1718 break
1719 }
1720 }
1721 m.TimeoutSeconds = &v
1722 case 8:
1723 if wireType != 2 {
1724 return fmt.Errorf("proto: wrong wireType = %d for field AdmissionReviewVersions", wireType)
1725 }
1726 var stringLen uint64
1727 for shift := uint(0); ; shift += 7 {
1728 if shift >= 64 {
1729 return ErrIntOverflowGenerated
1730 }
1731 if iNdEx >= l {
1732 return io.ErrUnexpectedEOF
1733 }
1734 b := dAtA[iNdEx]
1735 iNdEx++
1736 stringLen |= uint64(b&0x7F) << shift
1737 if b < 0x80 {
1738 break
1739 }
1740 }
1741 intStringLen := int(stringLen)
1742 if intStringLen < 0 {
1743 return ErrInvalidLengthGenerated
1744 }
1745 postIndex := iNdEx + intStringLen
1746 if postIndex < 0 {
1747 return ErrInvalidLengthGenerated
1748 }
1749 if postIndex > l {
1750 return io.ErrUnexpectedEOF
1751 }
1752 m.AdmissionReviewVersions = append(m.AdmissionReviewVersions, string(dAtA[iNdEx:postIndex]))
1753 iNdEx = postIndex
1754 case 9:
1755 if wireType != 2 {
1756 return fmt.Errorf("proto: wrong wireType = %d for field MatchPolicy", wireType)
1757 }
1758 var stringLen uint64
1759 for shift := uint(0); ; shift += 7 {
1760 if shift >= 64 {
1761 return ErrIntOverflowGenerated
1762 }
1763 if iNdEx >= l {
1764 return io.ErrUnexpectedEOF
1765 }
1766 b := dAtA[iNdEx]
1767 iNdEx++
1768 stringLen |= uint64(b&0x7F) << shift
1769 if b < 0x80 {
1770 break
1771 }
1772 }
1773 intStringLen := int(stringLen)
1774 if intStringLen < 0 {
1775 return ErrInvalidLengthGenerated
1776 }
1777 postIndex := iNdEx + intStringLen
1778 if postIndex < 0 {
1779 return ErrInvalidLengthGenerated
1780 }
1781 if postIndex > l {
1782 return io.ErrUnexpectedEOF
1783 }
1784 s := MatchPolicyType(dAtA[iNdEx:postIndex])
1785 m.MatchPolicy = &s
1786 iNdEx = postIndex
1787 case 10:
1788 if wireType != 2 {
1789 return fmt.Errorf("proto: wrong wireType = %d for field ReinvocationPolicy", wireType)
1790 }
1791 var stringLen uint64
1792 for shift := uint(0); ; shift += 7 {
1793 if shift >= 64 {
1794 return ErrIntOverflowGenerated
1795 }
1796 if iNdEx >= l {
1797 return io.ErrUnexpectedEOF
1798 }
1799 b := dAtA[iNdEx]
1800 iNdEx++
1801 stringLen |= uint64(b&0x7F) << shift
1802 if b < 0x80 {
1803 break
1804 }
1805 }
1806 intStringLen := int(stringLen)
1807 if intStringLen < 0 {
1808 return ErrInvalidLengthGenerated
1809 }
1810 postIndex := iNdEx + intStringLen
1811 if postIndex < 0 {
1812 return ErrInvalidLengthGenerated
1813 }
1814 if postIndex > l {
1815 return io.ErrUnexpectedEOF
1816 }
1817 s := ReinvocationPolicyType(dAtA[iNdEx:postIndex])
1818 m.ReinvocationPolicy = &s
1819 iNdEx = postIndex
1820 case 11:
1821 if wireType != 2 {
1822 return fmt.Errorf("proto: wrong wireType = %d for field ObjectSelector", wireType)
1823 }
1824 var msglen int
1825 for shift := uint(0); ; shift += 7 {
1826 if shift >= 64 {
1827 return ErrIntOverflowGenerated
1828 }
1829 if iNdEx >= l {
1830 return io.ErrUnexpectedEOF
1831 }
1832 b := dAtA[iNdEx]
1833 iNdEx++
1834 msglen |= int(b&0x7F) << shift
1835 if b < 0x80 {
1836 break
1837 }
1838 }
1839 if msglen < 0 {
1840 return ErrInvalidLengthGenerated
1841 }
1842 postIndex := iNdEx + msglen
1843 if postIndex < 0 {
1844 return ErrInvalidLengthGenerated
1845 }
1846 if postIndex > l {
1847 return io.ErrUnexpectedEOF
1848 }
1849 if m.ObjectSelector == nil {
1850 m.ObjectSelector = &v1.LabelSelector{}
1851 }
1852 if err := m.ObjectSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1853 return err
1854 }
1855 iNdEx = postIndex
1856 default:
1857 iNdEx = preIndex
1858 skippy, err := skipGenerated(dAtA[iNdEx:])
1859 if err != nil {
1860 return err
1861 }
1862 if skippy < 0 {
1863 return ErrInvalidLengthGenerated
1864 }
1865 if (iNdEx + skippy) < 0 {
1866 return ErrInvalidLengthGenerated
1867 }
1868 if (iNdEx + skippy) > l {
1869 return io.ErrUnexpectedEOF
1870 }
1871 iNdEx += skippy
1872 }
1873 }
1874
1875 if iNdEx > l {
1876 return io.ErrUnexpectedEOF
1877 }
1878 return nil
1879}
1880func (m *MutatingWebhookConfiguration) Unmarshal(dAtA []byte) error {
1881 l := len(dAtA)
1882 iNdEx := 0
1883 for iNdEx < l {
1884 preIndex := iNdEx
1885 var wire uint64
1886 for shift := uint(0); ; shift += 7 {
1887 if shift >= 64 {
1888 return ErrIntOverflowGenerated
1889 }
1890 if iNdEx >= l {
1891 return io.ErrUnexpectedEOF
1892 }
1893 b := dAtA[iNdEx]
1894 iNdEx++
1895 wire |= uint64(b&0x7F) << shift
1896 if b < 0x80 {
1897 break
1898 }
1899 }
1900 fieldNum := int32(wire >> 3)
1901 wireType := int(wire & 0x7)
1902 if wireType == 4 {
1903 return fmt.Errorf("proto: MutatingWebhookConfiguration: wiretype end group for non-group")
1904 }
1905 if fieldNum <= 0 {
1906 return fmt.Errorf("proto: MutatingWebhookConfiguration: illegal tag %d (wire type %d)", fieldNum, wire)
1907 }
1908 switch fieldNum {
1909 case 1:
1910 if wireType != 2 {
1911 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
1912 }
1913 var msglen int
1914 for shift := uint(0); ; shift += 7 {
1915 if shift >= 64 {
1916 return ErrIntOverflowGenerated
1917 }
1918 if iNdEx >= l {
1919 return io.ErrUnexpectedEOF
1920 }
1921 b := dAtA[iNdEx]
1922 iNdEx++
1923 msglen |= int(b&0x7F) << shift
1924 if b < 0x80 {
1925 break
1926 }
1927 }
1928 if msglen < 0 {
1929 return ErrInvalidLengthGenerated
1930 }
1931 postIndex := iNdEx + msglen
1932 if postIndex < 0 {
1933 return ErrInvalidLengthGenerated
1934 }
1935 if postIndex > l {
1936 return io.ErrUnexpectedEOF
1937 }
1938 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1939 return err
1940 }
1941 iNdEx = postIndex
1942 case 2:
1943 if wireType != 2 {
1944 return fmt.Errorf("proto: wrong wireType = %d for field Webhooks", wireType)
1945 }
1946 var msglen int
1947 for shift := uint(0); ; shift += 7 {
1948 if shift >= 64 {
1949 return ErrIntOverflowGenerated
1950 }
1951 if iNdEx >= l {
1952 return io.ErrUnexpectedEOF
1953 }
1954 b := dAtA[iNdEx]
1955 iNdEx++
1956 msglen |= int(b&0x7F) << shift
1957 if b < 0x80 {
1958 break
1959 }
1960 }
1961 if msglen < 0 {
1962 return ErrInvalidLengthGenerated
1963 }
1964 postIndex := iNdEx + msglen
1965 if postIndex < 0 {
1966 return ErrInvalidLengthGenerated
1967 }
1968 if postIndex > l {
1969 return io.ErrUnexpectedEOF
1970 }
1971 m.Webhooks = append(m.Webhooks, MutatingWebhook{})
1972 if err := m.Webhooks[len(m.Webhooks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1973 return err
1974 }
1975 iNdEx = postIndex
1976 default:
1977 iNdEx = preIndex
1978 skippy, err := skipGenerated(dAtA[iNdEx:])
1979 if err != nil {
1980 return err
1981 }
1982 if skippy < 0 {
1983 return ErrInvalidLengthGenerated
1984 }
1985 if (iNdEx + skippy) < 0 {
1986 return ErrInvalidLengthGenerated
1987 }
1988 if (iNdEx + skippy) > l {
1989 return io.ErrUnexpectedEOF
1990 }
1991 iNdEx += skippy
1992 }
1993 }
1994
1995 if iNdEx > l {
1996 return io.ErrUnexpectedEOF
1997 }
1998 return nil
1999}
2000func (m *MutatingWebhookConfigurationList) Unmarshal(dAtA []byte) error {
2001 l := len(dAtA)
2002 iNdEx := 0
2003 for iNdEx < l {
2004 preIndex := iNdEx
2005 var wire uint64
2006 for shift := uint(0); ; shift += 7 {
2007 if shift >= 64 {
2008 return ErrIntOverflowGenerated
2009 }
2010 if iNdEx >= l {
2011 return io.ErrUnexpectedEOF
2012 }
2013 b := dAtA[iNdEx]
2014 iNdEx++
2015 wire |= uint64(b&0x7F) << shift
2016 if b < 0x80 {
2017 break
2018 }
2019 }
2020 fieldNum := int32(wire >> 3)
2021 wireType := int(wire & 0x7)
2022 if wireType == 4 {
2023 return fmt.Errorf("proto: MutatingWebhookConfigurationList: wiretype end group for non-group")
2024 }
2025 if fieldNum <= 0 {
2026 return fmt.Errorf("proto: MutatingWebhookConfigurationList: illegal tag %d (wire type %d)", fieldNum, wire)
2027 }
2028 switch fieldNum {
2029 case 1:
2030 if wireType != 2 {
2031 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
2032 }
2033 var msglen int
2034 for shift := uint(0); ; shift += 7 {
2035 if shift >= 64 {
2036 return ErrIntOverflowGenerated
2037 }
2038 if iNdEx >= l {
2039 return io.ErrUnexpectedEOF
2040 }
2041 b := dAtA[iNdEx]
2042 iNdEx++
2043 msglen |= int(b&0x7F) << shift
2044 if b < 0x80 {
2045 break
2046 }
2047 }
2048 if msglen < 0 {
2049 return ErrInvalidLengthGenerated
2050 }
2051 postIndex := iNdEx + msglen
2052 if postIndex < 0 {
2053 return ErrInvalidLengthGenerated
2054 }
2055 if postIndex > l {
2056 return io.ErrUnexpectedEOF
2057 }
2058 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2059 return err
2060 }
2061 iNdEx = postIndex
2062 case 2:
2063 if wireType != 2 {
2064 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
2065 }
2066 var msglen int
2067 for shift := uint(0); ; shift += 7 {
2068 if shift >= 64 {
2069 return ErrIntOverflowGenerated
2070 }
2071 if iNdEx >= l {
2072 return io.ErrUnexpectedEOF
2073 }
2074 b := dAtA[iNdEx]
2075 iNdEx++
2076 msglen |= int(b&0x7F) << shift
2077 if b < 0x80 {
2078 break
2079 }
2080 }
2081 if msglen < 0 {
2082 return ErrInvalidLengthGenerated
2083 }
2084 postIndex := iNdEx + msglen
2085 if postIndex < 0 {
2086 return ErrInvalidLengthGenerated
2087 }
2088 if postIndex > l {
2089 return io.ErrUnexpectedEOF
2090 }
2091 m.Items = append(m.Items, MutatingWebhookConfiguration{})
2092 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2093 return err
2094 }
2095 iNdEx = postIndex
2096 default:
2097 iNdEx = preIndex
2098 skippy, err := skipGenerated(dAtA[iNdEx:])
2099 if err != nil {
2100 return err
2101 }
2102 if skippy < 0 {
2103 return ErrInvalidLengthGenerated
2104 }
2105 if (iNdEx + skippy) < 0 {
2106 return ErrInvalidLengthGenerated
2107 }
2108 if (iNdEx + skippy) > l {
2109 return io.ErrUnexpectedEOF
2110 }
2111 iNdEx += skippy
2112 }
2113 }
2114
2115 if iNdEx > l {
2116 return io.ErrUnexpectedEOF
2117 }
2118 return nil
2119}
2120func (m *Rule) Unmarshal(dAtA []byte) error {
2121 l := len(dAtA)
2122 iNdEx := 0
2123 for iNdEx < l {
2124 preIndex := iNdEx
2125 var wire uint64
2126 for shift := uint(0); ; shift += 7 {
2127 if shift >= 64 {
2128 return ErrIntOverflowGenerated
2129 }
2130 if iNdEx >= l {
2131 return io.ErrUnexpectedEOF
2132 }
2133 b := dAtA[iNdEx]
2134 iNdEx++
2135 wire |= uint64(b&0x7F) << shift
2136 if b < 0x80 {
2137 break
2138 }
2139 }
2140 fieldNum := int32(wire >> 3)
2141 wireType := int(wire & 0x7)
2142 if wireType == 4 {
2143 return fmt.Errorf("proto: Rule: wiretype end group for non-group")
2144 }
2145 if fieldNum <= 0 {
2146 return fmt.Errorf("proto: Rule: illegal tag %d (wire type %d)", fieldNum, wire)
2147 }
2148 switch fieldNum {
2149 case 1:
2150 if wireType != 2 {
2151 return fmt.Errorf("proto: wrong wireType = %d for field APIGroups", wireType)
2152 }
2153 var stringLen uint64
2154 for shift := uint(0); ; shift += 7 {
2155 if shift >= 64 {
2156 return ErrIntOverflowGenerated
2157 }
2158 if iNdEx >= l {
2159 return io.ErrUnexpectedEOF
2160 }
2161 b := dAtA[iNdEx]
2162 iNdEx++
2163 stringLen |= uint64(b&0x7F) << shift
2164 if b < 0x80 {
2165 break
2166 }
2167 }
2168 intStringLen := int(stringLen)
2169 if intStringLen < 0 {
2170 return ErrInvalidLengthGenerated
2171 }
2172 postIndex := iNdEx + intStringLen
2173 if postIndex < 0 {
2174 return ErrInvalidLengthGenerated
2175 }
2176 if postIndex > l {
2177 return io.ErrUnexpectedEOF
2178 }
2179 m.APIGroups = append(m.APIGroups, string(dAtA[iNdEx:postIndex]))
2180 iNdEx = postIndex
2181 case 2:
2182 if wireType != 2 {
2183 return fmt.Errorf("proto: wrong wireType = %d for field APIVersions", wireType)
2184 }
2185 var stringLen uint64
2186 for shift := uint(0); ; shift += 7 {
2187 if shift >= 64 {
2188 return ErrIntOverflowGenerated
2189 }
2190 if iNdEx >= l {
2191 return io.ErrUnexpectedEOF
2192 }
2193 b := dAtA[iNdEx]
2194 iNdEx++
2195 stringLen |= uint64(b&0x7F) << shift
2196 if b < 0x80 {
2197 break
2198 }
2199 }
2200 intStringLen := int(stringLen)
2201 if intStringLen < 0 {
2202 return ErrInvalidLengthGenerated
2203 }
2204 postIndex := iNdEx + intStringLen
2205 if postIndex < 0 {
2206 return ErrInvalidLengthGenerated
2207 }
2208 if postIndex > l {
2209 return io.ErrUnexpectedEOF
2210 }
2211 m.APIVersions = append(m.APIVersions, string(dAtA[iNdEx:postIndex]))
2212 iNdEx = postIndex
2213 case 3:
2214 if wireType != 2 {
2215 return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType)
2216 }
2217 var stringLen uint64
2218 for shift := uint(0); ; shift += 7 {
2219 if shift >= 64 {
2220 return ErrIntOverflowGenerated
2221 }
2222 if iNdEx >= l {
2223 return io.ErrUnexpectedEOF
2224 }
2225 b := dAtA[iNdEx]
2226 iNdEx++
2227 stringLen |= uint64(b&0x7F) << shift
2228 if b < 0x80 {
2229 break
2230 }
2231 }
2232 intStringLen := int(stringLen)
2233 if intStringLen < 0 {
2234 return ErrInvalidLengthGenerated
2235 }
2236 postIndex := iNdEx + intStringLen
2237 if postIndex < 0 {
2238 return ErrInvalidLengthGenerated
2239 }
2240 if postIndex > l {
2241 return io.ErrUnexpectedEOF
2242 }
2243 m.Resources = append(m.Resources, string(dAtA[iNdEx:postIndex]))
2244 iNdEx = postIndex
2245 case 4:
2246 if wireType != 2 {
2247 return fmt.Errorf("proto: wrong wireType = %d for field Scope", wireType)
2248 }
2249 var stringLen uint64
2250 for shift := uint(0); ; shift += 7 {
2251 if shift >= 64 {
2252 return ErrIntOverflowGenerated
2253 }
2254 if iNdEx >= l {
2255 return io.ErrUnexpectedEOF
2256 }
2257 b := dAtA[iNdEx]
2258 iNdEx++
2259 stringLen |= uint64(b&0x7F) << shift
2260 if b < 0x80 {
2261 break
2262 }
2263 }
2264 intStringLen := int(stringLen)
2265 if intStringLen < 0 {
2266 return ErrInvalidLengthGenerated
2267 }
2268 postIndex := iNdEx + intStringLen
2269 if postIndex < 0 {
2270 return ErrInvalidLengthGenerated
2271 }
2272 if postIndex > l {
2273 return io.ErrUnexpectedEOF
2274 }
2275 s := ScopeType(dAtA[iNdEx:postIndex])
2276 m.Scope = &s
2277 iNdEx = postIndex
2278 default:
2279 iNdEx = preIndex
2280 skippy, err := skipGenerated(dAtA[iNdEx:])
2281 if err != nil {
2282 return err
2283 }
2284 if skippy < 0 {
2285 return ErrInvalidLengthGenerated
2286 }
2287 if (iNdEx + skippy) < 0 {
2288 return ErrInvalidLengthGenerated
2289 }
2290 if (iNdEx + skippy) > l {
2291 return io.ErrUnexpectedEOF
2292 }
2293 iNdEx += skippy
2294 }
2295 }
2296
2297 if iNdEx > l {
2298 return io.ErrUnexpectedEOF
2299 }
2300 return nil
2301}
2302func (m *RuleWithOperations) Unmarshal(dAtA []byte) error {
2303 l := len(dAtA)
2304 iNdEx := 0
2305 for iNdEx < l {
2306 preIndex := iNdEx
2307 var wire uint64
2308 for shift := uint(0); ; shift += 7 {
2309 if shift >= 64 {
2310 return ErrIntOverflowGenerated
2311 }
2312 if iNdEx >= l {
2313 return io.ErrUnexpectedEOF
2314 }
2315 b := dAtA[iNdEx]
2316 iNdEx++
2317 wire |= uint64(b&0x7F) << shift
2318 if b < 0x80 {
2319 break
2320 }
2321 }
2322 fieldNum := int32(wire >> 3)
2323 wireType := int(wire & 0x7)
2324 if wireType == 4 {
2325 return fmt.Errorf("proto: RuleWithOperations: wiretype end group for non-group")
2326 }
2327 if fieldNum <= 0 {
2328 return fmt.Errorf("proto: RuleWithOperations: illegal tag %d (wire type %d)", fieldNum, wire)
2329 }
2330 switch fieldNum {
2331 case 1:
2332 if wireType != 2 {
2333 return fmt.Errorf("proto: wrong wireType = %d for field Operations", wireType)
2334 }
2335 var stringLen uint64
2336 for shift := uint(0); ; shift += 7 {
2337 if shift >= 64 {
2338 return ErrIntOverflowGenerated
2339 }
2340 if iNdEx >= l {
2341 return io.ErrUnexpectedEOF
2342 }
2343 b := dAtA[iNdEx]
2344 iNdEx++
2345 stringLen |= uint64(b&0x7F) << shift
2346 if b < 0x80 {
2347 break
2348 }
2349 }
2350 intStringLen := int(stringLen)
2351 if intStringLen < 0 {
2352 return ErrInvalidLengthGenerated
2353 }
2354 postIndex := iNdEx + intStringLen
2355 if postIndex < 0 {
2356 return ErrInvalidLengthGenerated
2357 }
2358 if postIndex > l {
2359 return io.ErrUnexpectedEOF
2360 }
2361 m.Operations = append(m.Operations, OperationType(dAtA[iNdEx:postIndex]))
2362 iNdEx = postIndex
2363 case 2:
2364 if wireType != 2 {
2365 return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType)
2366 }
2367 var msglen int
2368 for shift := uint(0); ; shift += 7 {
2369 if shift >= 64 {
2370 return ErrIntOverflowGenerated
2371 }
2372 if iNdEx >= l {
2373 return io.ErrUnexpectedEOF
2374 }
2375 b := dAtA[iNdEx]
2376 iNdEx++
2377 msglen |= int(b&0x7F) << shift
2378 if b < 0x80 {
2379 break
2380 }
2381 }
2382 if msglen < 0 {
2383 return ErrInvalidLengthGenerated
2384 }
2385 postIndex := iNdEx + msglen
2386 if postIndex < 0 {
2387 return ErrInvalidLengthGenerated
2388 }
2389 if postIndex > l {
2390 return io.ErrUnexpectedEOF
2391 }
2392 if err := m.Rule.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2393 return err
2394 }
2395 iNdEx = postIndex
2396 default:
2397 iNdEx = preIndex
2398 skippy, err := skipGenerated(dAtA[iNdEx:])
2399 if err != nil {
2400 return err
2401 }
2402 if skippy < 0 {
2403 return ErrInvalidLengthGenerated
2404 }
2405 if (iNdEx + skippy) < 0 {
2406 return ErrInvalidLengthGenerated
2407 }
2408 if (iNdEx + skippy) > l {
2409 return io.ErrUnexpectedEOF
2410 }
2411 iNdEx += skippy
2412 }
2413 }
2414
2415 if iNdEx > l {
2416 return io.ErrUnexpectedEOF
2417 }
2418 return nil
2419}
2420func (m *ServiceReference) Unmarshal(dAtA []byte) error {
2421 l := len(dAtA)
2422 iNdEx := 0
2423 for iNdEx < l {
2424 preIndex := iNdEx
2425 var wire uint64
2426 for shift := uint(0); ; shift += 7 {
2427 if shift >= 64 {
2428 return ErrIntOverflowGenerated
2429 }
2430 if iNdEx >= l {
2431 return io.ErrUnexpectedEOF
2432 }
2433 b := dAtA[iNdEx]
2434 iNdEx++
2435 wire |= uint64(b&0x7F) << shift
2436 if b < 0x80 {
2437 break
2438 }
2439 }
2440 fieldNum := int32(wire >> 3)
2441 wireType := int(wire & 0x7)
2442 if wireType == 4 {
2443 return fmt.Errorf("proto: ServiceReference: wiretype end group for non-group")
2444 }
2445 if fieldNum <= 0 {
2446 return fmt.Errorf("proto: ServiceReference: illegal tag %d (wire type %d)", fieldNum, wire)
2447 }
2448 switch fieldNum {
2449 case 1:
2450 if wireType != 2 {
2451 return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
2452 }
2453 var stringLen uint64
2454 for shift := uint(0); ; shift += 7 {
2455 if shift >= 64 {
2456 return ErrIntOverflowGenerated
2457 }
2458 if iNdEx >= l {
2459 return io.ErrUnexpectedEOF
2460 }
2461 b := dAtA[iNdEx]
2462 iNdEx++
2463 stringLen |= uint64(b&0x7F) << shift
2464 if b < 0x80 {
2465 break
2466 }
2467 }
2468 intStringLen := int(stringLen)
2469 if intStringLen < 0 {
2470 return ErrInvalidLengthGenerated
2471 }
2472 postIndex := iNdEx + intStringLen
2473 if postIndex < 0 {
2474 return ErrInvalidLengthGenerated
2475 }
2476 if postIndex > l {
2477 return io.ErrUnexpectedEOF
2478 }
2479 m.Namespace = string(dAtA[iNdEx:postIndex])
2480 iNdEx = postIndex
2481 case 2:
2482 if wireType != 2 {
2483 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
2484 }
2485 var stringLen uint64
2486 for shift := uint(0); ; shift += 7 {
2487 if shift >= 64 {
2488 return ErrIntOverflowGenerated
2489 }
2490 if iNdEx >= l {
2491 return io.ErrUnexpectedEOF
2492 }
2493 b := dAtA[iNdEx]
2494 iNdEx++
2495 stringLen |= uint64(b&0x7F) << shift
2496 if b < 0x80 {
2497 break
2498 }
2499 }
2500 intStringLen := int(stringLen)
2501 if intStringLen < 0 {
2502 return ErrInvalidLengthGenerated
2503 }
2504 postIndex := iNdEx + intStringLen
2505 if postIndex < 0 {
2506 return ErrInvalidLengthGenerated
2507 }
2508 if postIndex > l {
2509 return io.ErrUnexpectedEOF
2510 }
2511 m.Name = string(dAtA[iNdEx:postIndex])
2512 iNdEx = postIndex
2513 case 3:
2514 if wireType != 2 {
2515 return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType)
2516 }
2517 var stringLen uint64
2518 for shift := uint(0); ; shift += 7 {
2519 if shift >= 64 {
2520 return ErrIntOverflowGenerated
2521 }
2522 if iNdEx >= l {
2523 return io.ErrUnexpectedEOF
2524 }
2525 b := dAtA[iNdEx]
2526 iNdEx++
2527 stringLen |= uint64(b&0x7F) << shift
2528 if b < 0x80 {
2529 break
2530 }
2531 }
2532 intStringLen := int(stringLen)
2533 if intStringLen < 0 {
2534 return ErrInvalidLengthGenerated
2535 }
2536 postIndex := iNdEx + intStringLen
2537 if postIndex < 0 {
2538 return ErrInvalidLengthGenerated
2539 }
2540 if postIndex > l {
2541 return io.ErrUnexpectedEOF
2542 }
2543 s := string(dAtA[iNdEx:postIndex])
2544 m.Path = &s
2545 iNdEx = postIndex
2546 case 4:
2547 if wireType != 0 {
2548 return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType)
2549 }
2550 var v int32
2551 for shift := uint(0); ; shift += 7 {
2552 if shift >= 64 {
2553 return ErrIntOverflowGenerated
2554 }
2555 if iNdEx >= l {
2556 return io.ErrUnexpectedEOF
2557 }
2558 b := dAtA[iNdEx]
2559 iNdEx++
2560 v |= int32(b&0x7F) << shift
2561 if b < 0x80 {
2562 break
2563 }
2564 }
2565 m.Port = &v
2566 default:
2567 iNdEx = preIndex
2568 skippy, err := skipGenerated(dAtA[iNdEx:])
2569 if err != nil {
2570 return err
2571 }
2572 if skippy < 0 {
2573 return ErrInvalidLengthGenerated
2574 }
2575 if (iNdEx + skippy) < 0 {
2576 return ErrInvalidLengthGenerated
2577 }
2578 if (iNdEx + skippy) > l {
2579 return io.ErrUnexpectedEOF
2580 }
2581 iNdEx += skippy
2582 }
2583 }
2584
2585 if iNdEx > l {
2586 return io.ErrUnexpectedEOF
2587 }
2588 return nil
2589}
2590func (m *ValidatingWebhook) Unmarshal(dAtA []byte) error {
2591 l := len(dAtA)
2592 iNdEx := 0
2593 for iNdEx < l {
2594 preIndex := iNdEx
2595 var wire uint64
2596 for shift := uint(0); ; shift += 7 {
2597 if shift >= 64 {
2598 return ErrIntOverflowGenerated
2599 }
2600 if iNdEx >= l {
2601 return io.ErrUnexpectedEOF
2602 }
2603 b := dAtA[iNdEx]
2604 iNdEx++
2605 wire |= uint64(b&0x7F) << shift
2606 if b < 0x80 {
2607 break
2608 }
2609 }
2610 fieldNum := int32(wire >> 3)
2611 wireType := int(wire & 0x7)
2612 if wireType == 4 {
2613 return fmt.Errorf("proto: ValidatingWebhook: wiretype end group for non-group")
2614 }
2615 if fieldNum <= 0 {
2616 return fmt.Errorf("proto: ValidatingWebhook: illegal tag %d (wire type %d)", fieldNum, wire)
2617 }
2618 switch fieldNum {
2619 case 1:
2620 if wireType != 2 {
2621 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
2622 }
2623 var stringLen uint64
2624 for shift := uint(0); ; shift += 7 {
2625 if shift >= 64 {
2626 return ErrIntOverflowGenerated
2627 }
2628 if iNdEx >= l {
2629 return io.ErrUnexpectedEOF
2630 }
2631 b := dAtA[iNdEx]
2632 iNdEx++
2633 stringLen |= uint64(b&0x7F) << shift
2634 if b < 0x80 {
2635 break
2636 }
2637 }
2638 intStringLen := int(stringLen)
2639 if intStringLen < 0 {
2640 return ErrInvalidLengthGenerated
2641 }
2642 postIndex := iNdEx + intStringLen
2643 if postIndex < 0 {
2644 return ErrInvalidLengthGenerated
2645 }
2646 if postIndex > l {
2647 return io.ErrUnexpectedEOF
2648 }
2649 m.Name = string(dAtA[iNdEx:postIndex])
2650 iNdEx = postIndex
2651 case 2:
2652 if wireType != 2 {
2653 return fmt.Errorf("proto: wrong wireType = %d for field ClientConfig", wireType)
2654 }
2655 var msglen int
2656 for shift := uint(0); ; shift += 7 {
2657 if shift >= 64 {
2658 return ErrIntOverflowGenerated
2659 }
2660 if iNdEx >= l {
2661 return io.ErrUnexpectedEOF
2662 }
2663 b := dAtA[iNdEx]
2664 iNdEx++
2665 msglen |= int(b&0x7F) << shift
2666 if b < 0x80 {
2667 break
2668 }
2669 }
2670 if msglen < 0 {
2671 return ErrInvalidLengthGenerated
2672 }
2673 postIndex := iNdEx + msglen
2674 if postIndex < 0 {
2675 return ErrInvalidLengthGenerated
2676 }
2677 if postIndex > l {
2678 return io.ErrUnexpectedEOF
2679 }
2680 if err := m.ClientConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2681 return err
2682 }
2683 iNdEx = postIndex
2684 case 3:
2685 if wireType != 2 {
2686 return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType)
2687 }
2688 var msglen int
2689 for shift := uint(0); ; shift += 7 {
2690 if shift >= 64 {
2691 return ErrIntOverflowGenerated
2692 }
2693 if iNdEx >= l {
2694 return io.ErrUnexpectedEOF
2695 }
2696 b := dAtA[iNdEx]
2697 iNdEx++
2698 msglen |= int(b&0x7F) << shift
2699 if b < 0x80 {
2700 break
2701 }
2702 }
2703 if msglen < 0 {
2704 return ErrInvalidLengthGenerated
2705 }
2706 postIndex := iNdEx + msglen
2707 if postIndex < 0 {
2708 return ErrInvalidLengthGenerated
2709 }
2710 if postIndex > l {
2711 return io.ErrUnexpectedEOF
2712 }
2713 m.Rules = append(m.Rules, RuleWithOperations{})
2714 if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2715 return err
2716 }
2717 iNdEx = postIndex
2718 case 4:
2719 if wireType != 2 {
2720 return fmt.Errorf("proto: wrong wireType = %d for field FailurePolicy", wireType)
2721 }
2722 var stringLen uint64
2723 for shift := uint(0); ; shift += 7 {
2724 if shift >= 64 {
2725 return ErrIntOverflowGenerated
2726 }
2727 if iNdEx >= l {
2728 return io.ErrUnexpectedEOF
2729 }
2730 b := dAtA[iNdEx]
2731 iNdEx++
2732 stringLen |= uint64(b&0x7F) << shift
2733 if b < 0x80 {
2734 break
2735 }
2736 }
2737 intStringLen := int(stringLen)
2738 if intStringLen < 0 {
2739 return ErrInvalidLengthGenerated
2740 }
2741 postIndex := iNdEx + intStringLen
2742 if postIndex < 0 {
2743 return ErrInvalidLengthGenerated
2744 }
2745 if postIndex > l {
2746 return io.ErrUnexpectedEOF
2747 }
2748 s := FailurePolicyType(dAtA[iNdEx:postIndex])
2749 m.FailurePolicy = &s
2750 iNdEx = postIndex
2751 case 5:
2752 if wireType != 2 {
2753 return fmt.Errorf("proto: wrong wireType = %d for field NamespaceSelector", wireType)
2754 }
2755 var msglen int
2756 for shift := uint(0); ; shift += 7 {
2757 if shift >= 64 {
2758 return ErrIntOverflowGenerated
2759 }
2760 if iNdEx >= l {
2761 return io.ErrUnexpectedEOF
2762 }
2763 b := dAtA[iNdEx]
2764 iNdEx++
2765 msglen |= int(b&0x7F) << shift
2766 if b < 0x80 {
2767 break
2768 }
2769 }
2770 if msglen < 0 {
2771 return ErrInvalidLengthGenerated
2772 }
2773 postIndex := iNdEx + msglen
2774 if postIndex < 0 {
2775 return ErrInvalidLengthGenerated
2776 }
2777 if postIndex > l {
2778 return io.ErrUnexpectedEOF
2779 }
2780 if m.NamespaceSelector == nil {
2781 m.NamespaceSelector = &v1.LabelSelector{}
2782 }
2783 if err := m.NamespaceSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2784 return err
2785 }
2786 iNdEx = postIndex
2787 case 6:
2788 if wireType != 2 {
2789 return fmt.Errorf("proto: wrong wireType = %d for field SideEffects", wireType)
2790 }
2791 var stringLen uint64
2792 for shift := uint(0); ; shift += 7 {
2793 if shift >= 64 {
2794 return ErrIntOverflowGenerated
2795 }
2796 if iNdEx >= l {
2797 return io.ErrUnexpectedEOF
2798 }
2799 b := dAtA[iNdEx]
2800 iNdEx++
2801 stringLen |= uint64(b&0x7F) << shift
2802 if b < 0x80 {
2803 break
2804 }
2805 }
2806 intStringLen := int(stringLen)
2807 if intStringLen < 0 {
2808 return ErrInvalidLengthGenerated
2809 }
2810 postIndex := iNdEx + intStringLen
2811 if postIndex < 0 {
2812 return ErrInvalidLengthGenerated
2813 }
2814 if postIndex > l {
2815 return io.ErrUnexpectedEOF
2816 }
2817 s := SideEffectClass(dAtA[iNdEx:postIndex])
2818 m.SideEffects = &s
2819 iNdEx = postIndex
2820 case 7:
2821 if wireType != 0 {
2822 return fmt.Errorf("proto: wrong wireType = %d for field TimeoutSeconds", wireType)
2823 }
2824 var v int32
2825 for shift := uint(0); ; shift += 7 {
2826 if shift >= 64 {
2827 return ErrIntOverflowGenerated
2828 }
2829 if iNdEx >= l {
2830 return io.ErrUnexpectedEOF
2831 }
2832 b := dAtA[iNdEx]
2833 iNdEx++
2834 v |= int32(b&0x7F) << shift
2835 if b < 0x80 {
2836 break
2837 }
2838 }
2839 m.TimeoutSeconds = &v
2840 case 8:
2841 if wireType != 2 {
2842 return fmt.Errorf("proto: wrong wireType = %d for field AdmissionReviewVersions", wireType)
2843 }
2844 var stringLen uint64
2845 for shift := uint(0); ; shift += 7 {
2846 if shift >= 64 {
2847 return ErrIntOverflowGenerated
2848 }
2849 if iNdEx >= l {
2850 return io.ErrUnexpectedEOF
2851 }
2852 b := dAtA[iNdEx]
2853 iNdEx++
2854 stringLen |= uint64(b&0x7F) << shift
2855 if b < 0x80 {
2856 break
2857 }
2858 }
2859 intStringLen := int(stringLen)
2860 if intStringLen < 0 {
2861 return ErrInvalidLengthGenerated
2862 }
2863 postIndex := iNdEx + intStringLen
2864 if postIndex < 0 {
2865 return ErrInvalidLengthGenerated
2866 }
2867 if postIndex > l {
2868 return io.ErrUnexpectedEOF
2869 }
2870 m.AdmissionReviewVersions = append(m.AdmissionReviewVersions, string(dAtA[iNdEx:postIndex]))
2871 iNdEx = postIndex
2872 case 9:
2873 if wireType != 2 {
2874 return fmt.Errorf("proto: wrong wireType = %d for field MatchPolicy", wireType)
2875 }
2876 var stringLen uint64
2877 for shift := uint(0); ; shift += 7 {
2878 if shift >= 64 {
2879 return ErrIntOverflowGenerated
2880 }
2881 if iNdEx >= l {
2882 return io.ErrUnexpectedEOF
2883 }
2884 b := dAtA[iNdEx]
2885 iNdEx++
2886 stringLen |= uint64(b&0x7F) << shift
2887 if b < 0x80 {
2888 break
2889 }
2890 }
2891 intStringLen := int(stringLen)
2892 if intStringLen < 0 {
2893 return ErrInvalidLengthGenerated
2894 }
2895 postIndex := iNdEx + intStringLen
2896 if postIndex < 0 {
2897 return ErrInvalidLengthGenerated
2898 }
2899 if postIndex > l {
2900 return io.ErrUnexpectedEOF
2901 }
2902 s := MatchPolicyType(dAtA[iNdEx:postIndex])
2903 m.MatchPolicy = &s
2904 iNdEx = postIndex
2905 case 10:
2906 if wireType != 2 {
2907 return fmt.Errorf("proto: wrong wireType = %d for field ObjectSelector", wireType)
2908 }
2909 var msglen int
2910 for shift := uint(0); ; shift += 7 {
2911 if shift >= 64 {
2912 return ErrIntOverflowGenerated
2913 }
2914 if iNdEx >= l {
2915 return io.ErrUnexpectedEOF
2916 }
2917 b := dAtA[iNdEx]
2918 iNdEx++
2919 msglen |= int(b&0x7F) << shift
2920 if b < 0x80 {
2921 break
2922 }
2923 }
2924 if msglen < 0 {
2925 return ErrInvalidLengthGenerated
2926 }
2927 postIndex := iNdEx + msglen
2928 if postIndex < 0 {
2929 return ErrInvalidLengthGenerated
2930 }
2931 if postIndex > l {
2932 return io.ErrUnexpectedEOF
2933 }
2934 if m.ObjectSelector == nil {
2935 m.ObjectSelector = &v1.LabelSelector{}
2936 }
2937 if err := m.ObjectSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2938 return err
2939 }
2940 iNdEx = postIndex
2941 default:
2942 iNdEx = preIndex
2943 skippy, err := skipGenerated(dAtA[iNdEx:])
2944 if err != nil {
2945 return err
2946 }
2947 if skippy < 0 {
2948 return ErrInvalidLengthGenerated
2949 }
2950 if (iNdEx + skippy) < 0 {
2951 return ErrInvalidLengthGenerated
2952 }
2953 if (iNdEx + skippy) > l {
2954 return io.ErrUnexpectedEOF
2955 }
2956 iNdEx += skippy
2957 }
2958 }
2959
2960 if iNdEx > l {
2961 return io.ErrUnexpectedEOF
2962 }
2963 return nil
2964}
2965func (m *ValidatingWebhookConfiguration) Unmarshal(dAtA []byte) error {
2966 l := len(dAtA)
2967 iNdEx := 0
2968 for iNdEx < l {
2969 preIndex := iNdEx
2970 var wire uint64
2971 for shift := uint(0); ; shift += 7 {
2972 if shift >= 64 {
2973 return ErrIntOverflowGenerated
2974 }
2975 if iNdEx >= l {
2976 return io.ErrUnexpectedEOF
2977 }
2978 b := dAtA[iNdEx]
2979 iNdEx++
2980 wire |= uint64(b&0x7F) << shift
2981 if b < 0x80 {
2982 break
2983 }
2984 }
2985 fieldNum := int32(wire >> 3)
2986 wireType := int(wire & 0x7)
2987 if wireType == 4 {
2988 return fmt.Errorf("proto: ValidatingWebhookConfiguration: wiretype end group for non-group")
2989 }
2990 if fieldNum <= 0 {
2991 return fmt.Errorf("proto: ValidatingWebhookConfiguration: illegal tag %d (wire type %d)", fieldNum, wire)
2992 }
2993 switch fieldNum {
2994 case 1:
2995 if wireType != 2 {
2996 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
2997 }
2998 var msglen int
2999 for shift := uint(0); ; shift += 7 {
3000 if shift >= 64 {
3001 return ErrIntOverflowGenerated
3002 }
3003 if iNdEx >= l {
3004 return io.ErrUnexpectedEOF
3005 }
3006 b := dAtA[iNdEx]
3007 iNdEx++
3008 msglen |= int(b&0x7F) << shift
3009 if b < 0x80 {
3010 break
3011 }
3012 }
3013 if msglen < 0 {
3014 return ErrInvalidLengthGenerated
3015 }
3016 postIndex := iNdEx + msglen
3017 if postIndex < 0 {
3018 return ErrInvalidLengthGenerated
3019 }
3020 if postIndex > l {
3021 return io.ErrUnexpectedEOF
3022 }
3023 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3024 return err
3025 }
3026 iNdEx = postIndex
3027 case 2:
3028 if wireType != 2 {
3029 return fmt.Errorf("proto: wrong wireType = %d for field Webhooks", wireType)
3030 }
3031 var msglen int
3032 for shift := uint(0); ; shift += 7 {
3033 if shift >= 64 {
3034 return ErrIntOverflowGenerated
3035 }
3036 if iNdEx >= l {
3037 return io.ErrUnexpectedEOF
3038 }
3039 b := dAtA[iNdEx]
3040 iNdEx++
3041 msglen |= int(b&0x7F) << shift
3042 if b < 0x80 {
3043 break
3044 }
3045 }
3046 if msglen < 0 {
3047 return ErrInvalidLengthGenerated
3048 }
3049 postIndex := iNdEx + msglen
3050 if postIndex < 0 {
3051 return ErrInvalidLengthGenerated
3052 }
3053 if postIndex > l {
3054 return io.ErrUnexpectedEOF
3055 }
3056 m.Webhooks = append(m.Webhooks, ValidatingWebhook{})
3057 if err := m.Webhooks[len(m.Webhooks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3058 return err
3059 }
3060 iNdEx = postIndex
3061 default:
3062 iNdEx = preIndex
3063 skippy, err := skipGenerated(dAtA[iNdEx:])
3064 if err != nil {
3065 return err
3066 }
3067 if skippy < 0 {
3068 return ErrInvalidLengthGenerated
3069 }
3070 if (iNdEx + skippy) < 0 {
3071 return ErrInvalidLengthGenerated
3072 }
3073 if (iNdEx + skippy) > l {
3074 return io.ErrUnexpectedEOF
3075 }
3076 iNdEx += skippy
3077 }
3078 }
3079
3080 if iNdEx > l {
3081 return io.ErrUnexpectedEOF
3082 }
3083 return nil
3084}
3085func (m *ValidatingWebhookConfigurationList) Unmarshal(dAtA []byte) error {
3086 l := len(dAtA)
3087 iNdEx := 0
3088 for iNdEx < l {
3089 preIndex := iNdEx
3090 var wire uint64
3091 for shift := uint(0); ; shift += 7 {
3092 if shift >= 64 {
3093 return ErrIntOverflowGenerated
3094 }
3095 if iNdEx >= l {
3096 return io.ErrUnexpectedEOF
3097 }
3098 b := dAtA[iNdEx]
3099 iNdEx++
3100 wire |= uint64(b&0x7F) << shift
3101 if b < 0x80 {
3102 break
3103 }
3104 }
3105 fieldNum := int32(wire >> 3)
3106 wireType := int(wire & 0x7)
3107 if wireType == 4 {
3108 return fmt.Errorf("proto: ValidatingWebhookConfigurationList: wiretype end group for non-group")
3109 }
3110 if fieldNum <= 0 {
3111 return fmt.Errorf("proto: ValidatingWebhookConfigurationList: illegal tag %d (wire type %d)", fieldNum, wire)
3112 }
3113 switch fieldNum {
3114 case 1:
3115 if wireType != 2 {
3116 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
3117 }
3118 var msglen int
3119 for shift := uint(0); ; shift += 7 {
3120 if shift >= 64 {
3121 return ErrIntOverflowGenerated
3122 }
3123 if iNdEx >= l {
3124 return io.ErrUnexpectedEOF
3125 }
3126 b := dAtA[iNdEx]
3127 iNdEx++
3128 msglen |= int(b&0x7F) << shift
3129 if b < 0x80 {
3130 break
3131 }
3132 }
3133 if msglen < 0 {
3134 return ErrInvalidLengthGenerated
3135 }
3136 postIndex := iNdEx + msglen
3137 if postIndex < 0 {
3138 return ErrInvalidLengthGenerated
3139 }
3140 if postIndex > l {
3141 return io.ErrUnexpectedEOF
3142 }
3143 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3144 return err
3145 }
3146 iNdEx = postIndex
3147 case 2:
3148 if wireType != 2 {
3149 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
3150 }
3151 var msglen int
3152 for shift := uint(0); ; shift += 7 {
3153 if shift >= 64 {
3154 return ErrIntOverflowGenerated
3155 }
3156 if iNdEx >= l {
3157 return io.ErrUnexpectedEOF
3158 }
3159 b := dAtA[iNdEx]
3160 iNdEx++
3161 msglen |= int(b&0x7F) << shift
3162 if b < 0x80 {
3163 break
3164 }
3165 }
3166 if msglen < 0 {
3167 return ErrInvalidLengthGenerated
3168 }
3169 postIndex := iNdEx + msglen
3170 if postIndex < 0 {
3171 return ErrInvalidLengthGenerated
3172 }
3173 if postIndex > l {
3174 return io.ErrUnexpectedEOF
3175 }
3176 m.Items = append(m.Items, ValidatingWebhookConfiguration{})
3177 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3178 return err
3179 }
3180 iNdEx = postIndex
3181 default:
3182 iNdEx = preIndex
3183 skippy, err := skipGenerated(dAtA[iNdEx:])
3184 if err != nil {
3185 return err
3186 }
3187 if skippy < 0 {
3188 return ErrInvalidLengthGenerated
3189 }
3190 if (iNdEx + skippy) < 0 {
3191 return ErrInvalidLengthGenerated
3192 }
3193 if (iNdEx + skippy) > l {
3194 return io.ErrUnexpectedEOF
3195 }
3196 iNdEx += skippy
3197 }
3198 }
3199
3200 if iNdEx > l {
3201 return io.ErrUnexpectedEOF
3202 }
3203 return nil
3204}
3205func (m *WebhookClientConfig) Unmarshal(dAtA []byte) error {
3206 l := len(dAtA)
3207 iNdEx := 0
3208 for iNdEx < l {
3209 preIndex := iNdEx
3210 var wire uint64
3211 for shift := uint(0); ; shift += 7 {
3212 if shift >= 64 {
3213 return ErrIntOverflowGenerated
3214 }
3215 if iNdEx >= l {
3216 return io.ErrUnexpectedEOF
3217 }
3218 b := dAtA[iNdEx]
3219 iNdEx++
3220 wire |= uint64(b&0x7F) << shift
3221 if b < 0x80 {
3222 break
3223 }
3224 }
3225 fieldNum := int32(wire >> 3)
3226 wireType := int(wire & 0x7)
3227 if wireType == 4 {
3228 return fmt.Errorf("proto: WebhookClientConfig: wiretype end group for non-group")
3229 }
3230 if fieldNum <= 0 {
3231 return fmt.Errorf("proto: WebhookClientConfig: illegal tag %d (wire type %d)", fieldNum, wire)
3232 }
3233 switch fieldNum {
3234 case 1:
3235 if wireType != 2 {
3236 return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType)
3237 }
3238 var msglen int
3239 for shift := uint(0); ; shift += 7 {
3240 if shift >= 64 {
3241 return ErrIntOverflowGenerated
3242 }
3243 if iNdEx >= l {
3244 return io.ErrUnexpectedEOF
3245 }
3246 b := dAtA[iNdEx]
3247 iNdEx++
3248 msglen |= int(b&0x7F) << shift
3249 if b < 0x80 {
3250 break
3251 }
3252 }
3253 if msglen < 0 {
3254 return ErrInvalidLengthGenerated
3255 }
3256 postIndex := iNdEx + msglen
3257 if postIndex < 0 {
3258 return ErrInvalidLengthGenerated
3259 }
3260 if postIndex > l {
3261 return io.ErrUnexpectedEOF
3262 }
3263 if m.Service == nil {
3264 m.Service = &ServiceReference{}
3265 }
3266 if err := m.Service.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3267 return err
3268 }
3269 iNdEx = postIndex
3270 case 2:
3271 if wireType != 2 {
3272 return fmt.Errorf("proto: wrong wireType = %d for field CABundle", wireType)
3273 }
3274 var byteLen int
3275 for shift := uint(0); ; shift += 7 {
3276 if shift >= 64 {
3277 return ErrIntOverflowGenerated
3278 }
3279 if iNdEx >= l {
3280 return io.ErrUnexpectedEOF
3281 }
3282 b := dAtA[iNdEx]
3283 iNdEx++
3284 byteLen |= int(b&0x7F) << shift
3285 if b < 0x80 {
3286 break
3287 }
3288 }
3289 if byteLen < 0 {
3290 return ErrInvalidLengthGenerated
3291 }
3292 postIndex := iNdEx + byteLen
3293 if postIndex < 0 {
3294 return ErrInvalidLengthGenerated
3295 }
3296 if postIndex > l {
3297 return io.ErrUnexpectedEOF
3298 }
3299 m.CABundle = append(m.CABundle[:0], dAtA[iNdEx:postIndex]...)
3300 if m.CABundle == nil {
3301 m.CABundle = []byte{}
3302 }
3303 iNdEx = postIndex
3304 case 3:
3305 if wireType != 2 {
3306 return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType)
3307 }
3308 var stringLen uint64
3309 for shift := uint(0); ; shift += 7 {
3310 if shift >= 64 {
3311 return ErrIntOverflowGenerated
3312 }
3313 if iNdEx >= l {
3314 return io.ErrUnexpectedEOF
3315 }
3316 b := dAtA[iNdEx]
3317 iNdEx++
3318 stringLen |= uint64(b&0x7F) << shift
3319 if b < 0x80 {
3320 break
3321 }
3322 }
3323 intStringLen := int(stringLen)
3324 if intStringLen < 0 {
3325 return ErrInvalidLengthGenerated
3326 }
3327 postIndex := iNdEx + intStringLen
3328 if postIndex < 0 {
3329 return ErrInvalidLengthGenerated
3330 }
3331 if postIndex > l {
3332 return io.ErrUnexpectedEOF
3333 }
3334 s := string(dAtA[iNdEx:postIndex])
3335 m.URL = &s
3336 iNdEx = postIndex
3337 default:
3338 iNdEx = preIndex
3339 skippy, err := skipGenerated(dAtA[iNdEx:])
3340 if err != nil {
3341 return err
3342 }
3343 if skippy < 0 {
3344 return ErrInvalidLengthGenerated
3345 }
3346 if (iNdEx + skippy) < 0 {
3347 return ErrInvalidLengthGenerated
3348 }
3349 if (iNdEx + skippy) > l {
3350 return io.ErrUnexpectedEOF
3351 }
3352 iNdEx += skippy
3353 }
3354 }
3355
3356 if iNdEx > l {
3357 return io.ErrUnexpectedEOF
3358 }
3359 return nil
3360}
3361func skipGenerated(dAtA []byte) (n int, err error) {
3362 l := len(dAtA)
3363 iNdEx := 0
3364 depth := 0
3365 for iNdEx < l {
3366 var wire uint64
3367 for shift := uint(0); ; shift += 7 {
3368 if shift >= 64 {
3369 return 0, ErrIntOverflowGenerated
3370 }
3371 if iNdEx >= l {
3372 return 0, io.ErrUnexpectedEOF
3373 }
3374 b := dAtA[iNdEx]
3375 iNdEx++
3376 wire |= (uint64(b) & 0x7F) << shift
3377 if b < 0x80 {
3378 break
3379 }
3380 }
3381 wireType := int(wire & 0x7)
3382 switch wireType {
3383 case 0:
3384 for shift := uint(0); ; shift += 7 {
3385 if shift >= 64 {
3386 return 0, ErrIntOverflowGenerated
3387 }
3388 if iNdEx >= l {
3389 return 0, io.ErrUnexpectedEOF
3390 }
3391 iNdEx++
3392 if dAtA[iNdEx-1] < 0x80 {
3393 break
3394 }
3395 }
3396 case 1:
3397 iNdEx += 8
3398 case 2:
3399 var length int
3400 for shift := uint(0); ; shift += 7 {
3401 if shift >= 64 {
3402 return 0, ErrIntOverflowGenerated
3403 }
3404 if iNdEx >= l {
3405 return 0, io.ErrUnexpectedEOF
3406 }
3407 b := dAtA[iNdEx]
3408 iNdEx++
3409 length |= (int(b) & 0x7F) << shift
3410 if b < 0x80 {
3411 break
3412 }
3413 }
3414 if length < 0 {
3415 return 0, ErrInvalidLengthGenerated
3416 }
3417 iNdEx += length
3418 case 3:
3419 depth++
3420 case 4:
3421 if depth == 0 {
3422 return 0, ErrUnexpectedEndOfGroupGenerated
3423 }
3424 depth--
3425 case 5:
3426 iNdEx += 4
3427 default:
3428 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
3429 }
3430 if iNdEx < 0 {
3431 return 0, ErrInvalidLengthGenerated
3432 }
3433 if depth == 0 {
3434 return iNdEx, nil
3435 }
3436 }
3437 return 0, io.ErrUnexpectedEOF
3438}
3439
3440var (
3441 ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
3442 ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
3443 ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
3444)