blob: 40ec7ef7fbf6c94640508ad85a436055e81a47b2 [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/policy/v1beta1/generated.proto
19
20package v1beta1
21
22import (
23 fmt "fmt"
24
25 io "io"
26
27 proto "github.com/gogo/protobuf/proto"
28 github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
29 k8s_io_api_core_v1 "k8s.io/api/core/v1"
30 v11 "k8s.io/api/core/v1"
31 v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
32
33 math "math"
34 math_bits "math/bits"
35 reflect "reflect"
36 strings "strings"
37
38 intstr "k8s.io/apimachinery/pkg/util/intstr"
39)
40
41// Reference imports to suppress errors if they are not otherwise used.
42var _ = proto.Marshal
43var _ = fmt.Errorf
44var _ = math.Inf
45
46// This is a compile-time assertion to ensure that this generated file
47// is compatible with the proto package it is being compiled against.
48// A compilation error at this line likely means your copy of the
49// proto package needs to be updated.
50const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
51
52func (m *AllowedCSIDriver) Reset() { *m = AllowedCSIDriver{} }
53func (*AllowedCSIDriver) ProtoMessage() {}
54func (*AllowedCSIDriver) Descriptor() ([]byte, []int) {
55 return fileDescriptor_014060e454a820dc, []int{0}
56}
57func (m *AllowedCSIDriver) XXX_Unmarshal(b []byte) error {
58 return m.Unmarshal(b)
59}
60func (m *AllowedCSIDriver) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
61 b = b[:cap(b)]
62 n, err := m.MarshalToSizedBuffer(b)
63 if err != nil {
64 return nil, err
65 }
66 return b[:n], nil
67}
68func (m *AllowedCSIDriver) XXX_Merge(src proto.Message) {
69 xxx_messageInfo_AllowedCSIDriver.Merge(m, src)
70}
71func (m *AllowedCSIDriver) XXX_Size() int {
72 return m.Size()
73}
74func (m *AllowedCSIDriver) XXX_DiscardUnknown() {
75 xxx_messageInfo_AllowedCSIDriver.DiscardUnknown(m)
76}
77
78var xxx_messageInfo_AllowedCSIDriver proto.InternalMessageInfo
79
80func (m *AllowedFlexVolume) Reset() { *m = AllowedFlexVolume{} }
81func (*AllowedFlexVolume) ProtoMessage() {}
82func (*AllowedFlexVolume) Descriptor() ([]byte, []int) {
83 return fileDescriptor_014060e454a820dc, []int{1}
84}
85func (m *AllowedFlexVolume) XXX_Unmarshal(b []byte) error {
86 return m.Unmarshal(b)
87}
88func (m *AllowedFlexVolume) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
89 b = b[:cap(b)]
90 n, err := m.MarshalToSizedBuffer(b)
91 if err != nil {
92 return nil, err
93 }
94 return b[:n], nil
95}
96func (m *AllowedFlexVolume) XXX_Merge(src proto.Message) {
97 xxx_messageInfo_AllowedFlexVolume.Merge(m, src)
98}
99func (m *AllowedFlexVolume) XXX_Size() int {
100 return m.Size()
101}
102func (m *AllowedFlexVolume) XXX_DiscardUnknown() {
103 xxx_messageInfo_AllowedFlexVolume.DiscardUnknown(m)
104}
105
106var xxx_messageInfo_AllowedFlexVolume proto.InternalMessageInfo
107
108func (m *AllowedHostPath) Reset() { *m = AllowedHostPath{} }
109func (*AllowedHostPath) ProtoMessage() {}
110func (*AllowedHostPath) Descriptor() ([]byte, []int) {
111 return fileDescriptor_014060e454a820dc, []int{2}
112}
113func (m *AllowedHostPath) XXX_Unmarshal(b []byte) error {
114 return m.Unmarshal(b)
115}
116func (m *AllowedHostPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
117 b = b[:cap(b)]
118 n, err := m.MarshalToSizedBuffer(b)
119 if err != nil {
120 return nil, err
121 }
122 return b[:n], nil
123}
124func (m *AllowedHostPath) XXX_Merge(src proto.Message) {
125 xxx_messageInfo_AllowedHostPath.Merge(m, src)
126}
127func (m *AllowedHostPath) XXX_Size() int {
128 return m.Size()
129}
130func (m *AllowedHostPath) XXX_DiscardUnknown() {
131 xxx_messageInfo_AllowedHostPath.DiscardUnknown(m)
132}
133
134var xxx_messageInfo_AllowedHostPath proto.InternalMessageInfo
135
136func (m *Eviction) Reset() { *m = Eviction{} }
137func (*Eviction) ProtoMessage() {}
138func (*Eviction) Descriptor() ([]byte, []int) {
139 return fileDescriptor_014060e454a820dc, []int{3}
140}
141func (m *Eviction) XXX_Unmarshal(b []byte) error {
142 return m.Unmarshal(b)
143}
144func (m *Eviction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
145 b = b[:cap(b)]
146 n, err := m.MarshalToSizedBuffer(b)
147 if err != nil {
148 return nil, err
149 }
150 return b[:n], nil
151}
152func (m *Eviction) XXX_Merge(src proto.Message) {
153 xxx_messageInfo_Eviction.Merge(m, src)
154}
155func (m *Eviction) XXX_Size() int {
156 return m.Size()
157}
158func (m *Eviction) XXX_DiscardUnknown() {
159 xxx_messageInfo_Eviction.DiscardUnknown(m)
160}
161
162var xxx_messageInfo_Eviction proto.InternalMessageInfo
163
164func (m *FSGroupStrategyOptions) Reset() { *m = FSGroupStrategyOptions{} }
165func (*FSGroupStrategyOptions) ProtoMessage() {}
166func (*FSGroupStrategyOptions) Descriptor() ([]byte, []int) {
167 return fileDescriptor_014060e454a820dc, []int{4}
168}
169func (m *FSGroupStrategyOptions) XXX_Unmarshal(b []byte) error {
170 return m.Unmarshal(b)
171}
172func (m *FSGroupStrategyOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
173 b = b[:cap(b)]
174 n, err := m.MarshalToSizedBuffer(b)
175 if err != nil {
176 return nil, err
177 }
178 return b[:n], nil
179}
180func (m *FSGroupStrategyOptions) XXX_Merge(src proto.Message) {
181 xxx_messageInfo_FSGroupStrategyOptions.Merge(m, src)
182}
183func (m *FSGroupStrategyOptions) XXX_Size() int {
184 return m.Size()
185}
186func (m *FSGroupStrategyOptions) XXX_DiscardUnknown() {
187 xxx_messageInfo_FSGroupStrategyOptions.DiscardUnknown(m)
188}
189
190var xxx_messageInfo_FSGroupStrategyOptions proto.InternalMessageInfo
191
192func (m *HostPortRange) Reset() { *m = HostPortRange{} }
193func (*HostPortRange) ProtoMessage() {}
194func (*HostPortRange) Descriptor() ([]byte, []int) {
195 return fileDescriptor_014060e454a820dc, []int{5}
196}
197func (m *HostPortRange) XXX_Unmarshal(b []byte) error {
198 return m.Unmarshal(b)
199}
200func (m *HostPortRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
201 b = b[:cap(b)]
202 n, err := m.MarshalToSizedBuffer(b)
203 if err != nil {
204 return nil, err
205 }
206 return b[:n], nil
207}
208func (m *HostPortRange) XXX_Merge(src proto.Message) {
209 xxx_messageInfo_HostPortRange.Merge(m, src)
210}
211func (m *HostPortRange) XXX_Size() int {
212 return m.Size()
213}
214func (m *HostPortRange) XXX_DiscardUnknown() {
215 xxx_messageInfo_HostPortRange.DiscardUnknown(m)
216}
217
218var xxx_messageInfo_HostPortRange proto.InternalMessageInfo
219
220func (m *IDRange) Reset() { *m = IDRange{} }
221func (*IDRange) ProtoMessage() {}
222func (*IDRange) Descriptor() ([]byte, []int) {
223 return fileDescriptor_014060e454a820dc, []int{6}
224}
225func (m *IDRange) XXX_Unmarshal(b []byte) error {
226 return m.Unmarshal(b)
227}
228func (m *IDRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
229 b = b[:cap(b)]
230 n, err := m.MarshalToSizedBuffer(b)
231 if err != nil {
232 return nil, err
233 }
234 return b[:n], nil
235}
236func (m *IDRange) XXX_Merge(src proto.Message) {
237 xxx_messageInfo_IDRange.Merge(m, src)
238}
239func (m *IDRange) XXX_Size() int {
240 return m.Size()
241}
242func (m *IDRange) XXX_DiscardUnknown() {
243 xxx_messageInfo_IDRange.DiscardUnknown(m)
244}
245
246var xxx_messageInfo_IDRange proto.InternalMessageInfo
247
248func (m *PodDisruptionBudget) Reset() { *m = PodDisruptionBudget{} }
249func (*PodDisruptionBudget) ProtoMessage() {}
250func (*PodDisruptionBudget) Descriptor() ([]byte, []int) {
251 return fileDescriptor_014060e454a820dc, []int{7}
252}
253func (m *PodDisruptionBudget) XXX_Unmarshal(b []byte) error {
254 return m.Unmarshal(b)
255}
256func (m *PodDisruptionBudget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
257 b = b[:cap(b)]
258 n, err := m.MarshalToSizedBuffer(b)
259 if err != nil {
260 return nil, err
261 }
262 return b[:n], nil
263}
264func (m *PodDisruptionBudget) XXX_Merge(src proto.Message) {
265 xxx_messageInfo_PodDisruptionBudget.Merge(m, src)
266}
267func (m *PodDisruptionBudget) XXX_Size() int {
268 return m.Size()
269}
270func (m *PodDisruptionBudget) XXX_DiscardUnknown() {
271 xxx_messageInfo_PodDisruptionBudget.DiscardUnknown(m)
272}
273
274var xxx_messageInfo_PodDisruptionBudget proto.InternalMessageInfo
275
276func (m *PodDisruptionBudgetList) Reset() { *m = PodDisruptionBudgetList{} }
277func (*PodDisruptionBudgetList) ProtoMessage() {}
278func (*PodDisruptionBudgetList) Descriptor() ([]byte, []int) {
279 return fileDescriptor_014060e454a820dc, []int{8}
280}
281func (m *PodDisruptionBudgetList) XXX_Unmarshal(b []byte) error {
282 return m.Unmarshal(b)
283}
284func (m *PodDisruptionBudgetList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
285 b = b[:cap(b)]
286 n, err := m.MarshalToSizedBuffer(b)
287 if err != nil {
288 return nil, err
289 }
290 return b[:n], nil
291}
292func (m *PodDisruptionBudgetList) XXX_Merge(src proto.Message) {
293 xxx_messageInfo_PodDisruptionBudgetList.Merge(m, src)
294}
295func (m *PodDisruptionBudgetList) XXX_Size() int {
296 return m.Size()
297}
298func (m *PodDisruptionBudgetList) XXX_DiscardUnknown() {
299 xxx_messageInfo_PodDisruptionBudgetList.DiscardUnknown(m)
300}
301
302var xxx_messageInfo_PodDisruptionBudgetList proto.InternalMessageInfo
303
304func (m *PodDisruptionBudgetSpec) Reset() { *m = PodDisruptionBudgetSpec{} }
305func (*PodDisruptionBudgetSpec) ProtoMessage() {}
306func (*PodDisruptionBudgetSpec) Descriptor() ([]byte, []int) {
307 return fileDescriptor_014060e454a820dc, []int{9}
308}
309func (m *PodDisruptionBudgetSpec) XXX_Unmarshal(b []byte) error {
310 return m.Unmarshal(b)
311}
312func (m *PodDisruptionBudgetSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
313 b = b[:cap(b)]
314 n, err := m.MarshalToSizedBuffer(b)
315 if err != nil {
316 return nil, err
317 }
318 return b[:n], nil
319}
320func (m *PodDisruptionBudgetSpec) XXX_Merge(src proto.Message) {
321 xxx_messageInfo_PodDisruptionBudgetSpec.Merge(m, src)
322}
323func (m *PodDisruptionBudgetSpec) XXX_Size() int {
324 return m.Size()
325}
326func (m *PodDisruptionBudgetSpec) XXX_DiscardUnknown() {
327 xxx_messageInfo_PodDisruptionBudgetSpec.DiscardUnknown(m)
328}
329
330var xxx_messageInfo_PodDisruptionBudgetSpec proto.InternalMessageInfo
331
332func (m *PodDisruptionBudgetStatus) Reset() { *m = PodDisruptionBudgetStatus{} }
333func (*PodDisruptionBudgetStatus) ProtoMessage() {}
334func (*PodDisruptionBudgetStatus) Descriptor() ([]byte, []int) {
335 return fileDescriptor_014060e454a820dc, []int{10}
336}
337func (m *PodDisruptionBudgetStatus) XXX_Unmarshal(b []byte) error {
338 return m.Unmarshal(b)
339}
340func (m *PodDisruptionBudgetStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
341 b = b[:cap(b)]
342 n, err := m.MarshalToSizedBuffer(b)
343 if err != nil {
344 return nil, err
345 }
346 return b[:n], nil
347}
348func (m *PodDisruptionBudgetStatus) XXX_Merge(src proto.Message) {
349 xxx_messageInfo_PodDisruptionBudgetStatus.Merge(m, src)
350}
351func (m *PodDisruptionBudgetStatus) XXX_Size() int {
352 return m.Size()
353}
354func (m *PodDisruptionBudgetStatus) XXX_DiscardUnknown() {
355 xxx_messageInfo_PodDisruptionBudgetStatus.DiscardUnknown(m)
356}
357
358var xxx_messageInfo_PodDisruptionBudgetStatus proto.InternalMessageInfo
359
360func (m *PodSecurityPolicy) Reset() { *m = PodSecurityPolicy{} }
361func (*PodSecurityPolicy) ProtoMessage() {}
362func (*PodSecurityPolicy) Descriptor() ([]byte, []int) {
363 return fileDescriptor_014060e454a820dc, []int{11}
364}
365func (m *PodSecurityPolicy) XXX_Unmarshal(b []byte) error {
366 return m.Unmarshal(b)
367}
368func (m *PodSecurityPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
369 b = b[:cap(b)]
370 n, err := m.MarshalToSizedBuffer(b)
371 if err != nil {
372 return nil, err
373 }
374 return b[:n], nil
375}
376func (m *PodSecurityPolicy) XXX_Merge(src proto.Message) {
377 xxx_messageInfo_PodSecurityPolicy.Merge(m, src)
378}
379func (m *PodSecurityPolicy) XXX_Size() int {
380 return m.Size()
381}
382func (m *PodSecurityPolicy) XXX_DiscardUnknown() {
383 xxx_messageInfo_PodSecurityPolicy.DiscardUnknown(m)
384}
385
386var xxx_messageInfo_PodSecurityPolicy proto.InternalMessageInfo
387
388func (m *PodSecurityPolicyList) Reset() { *m = PodSecurityPolicyList{} }
389func (*PodSecurityPolicyList) ProtoMessage() {}
390func (*PodSecurityPolicyList) Descriptor() ([]byte, []int) {
391 return fileDescriptor_014060e454a820dc, []int{12}
392}
393func (m *PodSecurityPolicyList) XXX_Unmarshal(b []byte) error {
394 return m.Unmarshal(b)
395}
396func (m *PodSecurityPolicyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
397 b = b[:cap(b)]
398 n, err := m.MarshalToSizedBuffer(b)
399 if err != nil {
400 return nil, err
401 }
402 return b[:n], nil
403}
404func (m *PodSecurityPolicyList) XXX_Merge(src proto.Message) {
405 xxx_messageInfo_PodSecurityPolicyList.Merge(m, src)
406}
407func (m *PodSecurityPolicyList) XXX_Size() int {
408 return m.Size()
409}
410func (m *PodSecurityPolicyList) XXX_DiscardUnknown() {
411 xxx_messageInfo_PodSecurityPolicyList.DiscardUnknown(m)
412}
413
414var xxx_messageInfo_PodSecurityPolicyList proto.InternalMessageInfo
415
416func (m *PodSecurityPolicySpec) Reset() { *m = PodSecurityPolicySpec{} }
417func (*PodSecurityPolicySpec) ProtoMessage() {}
418func (*PodSecurityPolicySpec) Descriptor() ([]byte, []int) {
419 return fileDescriptor_014060e454a820dc, []int{13}
420}
421func (m *PodSecurityPolicySpec) XXX_Unmarshal(b []byte) error {
422 return m.Unmarshal(b)
423}
424func (m *PodSecurityPolicySpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
425 b = b[:cap(b)]
426 n, err := m.MarshalToSizedBuffer(b)
427 if err != nil {
428 return nil, err
429 }
430 return b[:n], nil
431}
432func (m *PodSecurityPolicySpec) XXX_Merge(src proto.Message) {
433 xxx_messageInfo_PodSecurityPolicySpec.Merge(m, src)
434}
435func (m *PodSecurityPolicySpec) XXX_Size() int {
436 return m.Size()
437}
438func (m *PodSecurityPolicySpec) XXX_DiscardUnknown() {
439 xxx_messageInfo_PodSecurityPolicySpec.DiscardUnknown(m)
440}
441
442var xxx_messageInfo_PodSecurityPolicySpec proto.InternalMessageInfo
443
444func (m *RunAsGroupStrategyOptions) Reset() { *m = RunAsGroupStrategyOptions{} }
445func (*RunAsGroupStrategyOptions) ProtoMessage() {}
446func (*RunAsGroupStrategyOptions) Descriptor() ([]byte, []int) {
447 return fileDescriptor_014060e454a820dc, []int{14}
448}
449func (m *RunAsGroupStrategyOptions) XXX_Unmarshal(b []byte) error {
450 return m.Unmarshal(b)
451}
452func (m *RunAsGroupStrategyOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
453 b = b[:cap(b)]
454 n, err := m.MarshalToSizedBuffer(b)
455 if err != nil {
456 return nil, err
457 }
458 return b[:n], nil
459}
460func (m *RunAsGroupStrategyOptions) XXX_Merge(src proto.Message) {
461 xxx_messageInfo_RunAsGroupStrategyOptions.Merge(m, src)
462}
463func (m *RunAsGroupStrategyOptions) XXX_Size() int {
464 return m.Size()
465}
466func (m *RunAsGroupStrategyOptions) XXX_DiscardUnknown() {
467 xxx_messageInfo_RunAsGroupStrategyOptions.DiscardUnknown(m)
468}
469
470var xxx_messageInfo_RunAsGroupStrategyOptions proto.InternalMessageInfo
471
472func (m *RunAsUserStrategyOptions) Reset() { *m = RunAsUserStrategyOptions{} }
473func (*RunAsUserStrategyOptions) ProtoMessage() {}
474func (*RunAsUserStrategyOptions) Descriptor() ([]byte, []int) {
475 return fileDescriptor_014060e454a820dc, []int{15}
476}
477func (m *RunAsUserStrategyOptions) XXX_Unmarshal(b []byte) error {
478 return m.Unmarshal(b)
479}
480func (m *RunAsUserStrategyOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
481 b = b[:cap(b)]
482 n, err := m.MarshalToSizedBuffer(b)
483 if err != nil {
484 return nil, err
485 }
486 return b[:n], nil
487}
488func (m *RunAsUserStrategyOptions) XXX_Merge(src proto.Message) {
489 xxx_messageInfo_RunAsUserStrategyOptions.Merge(m, src)
490}
491func (m *RunAsUserStrategyOptions) XXX_Size() int {
492 return m.Size()
493}
494func (m *RunAsUserStrategyOptions) XXX_DiscardUnknown() {
495 xxx_messageInfo_RunAsUserStrategyOptions.DiscardUnknown(m)
496}
497
498var xxx_messageInfo_RunAsUserStrategyOptions proto.InternalMessageInfo
499
500func (m *RuntimeClassStrategyOptions) Reset() { *m = RuntimeClassStrategyOptions{} }
501func (*RuntimeClassStrategyOptions) ProtoMessage() {}
502func (*RuntimeClassStrategyOptions) Descriptor() ([]byte, []int) {
503 return fileDescriptor_014060e454a820dc, []int{16}
504}
505func (m *RuntimeClassStrategyOptions) XXX_Unmarshal(b []byte) error {
506 return m.Unmarshal(b)
507}
508func (m *RuntimeClassStrategyOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
509 b = b[:cap(b)]
510 n, err := m.MarshalToSizedBuffer(b)
511 if err != nil {
512 return nil, err
513 }
514 return b[:n], nil
515}
516func (m *RuntimeClassStrategyOptions) XXX_Merge(src proto.Message) {
517 xxx_messageInfo_RuntimeClassStrategyOptions.Merge(m, src)
518}
519func (m *RuntimeClassStrategyOptions) XXX_Size() int {
520 return m.Size()
521}
522func (m *RuntimeClassStrategyOptions) XXX_DiscardUnknown() {
523 xxx_messageInfo_RuntimeClassStrategyOptions.DiscardUnknown(m)
524}
525
526var xxx_messageInfo_RuntimeClassStrategyOptions proto.InternalMessageInfo
527
528func (m *SELinuxStrategyOptions) Reset() { *m = SELinuxStrategyOptions{} }
529func (*SELinuxStrategyOptions) ProtoMessage() {}
530func (*SELinuxStrategyOptions) Descriptor() ([]byte, []int) {
531 return fileDescriptor_014060e454a820dc, []int{17}
532}
533func (m *SELinuxStrategyOptions) XXX_Unmarshal(b []byte) error {
534 return m.Unmarshal(b)
535}
536func (m *SELinuxStrategyOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
537 b = b[:cap(b)]
538 n, err := m.MarshalToSizedBuffer(b)
539 if err != nil {
540 return nil, err
541 }
542 return b[:n], nil
543}
544func (m *SELinuxStrategyOptions) XXX_Merge(src proto.Message) {
545 xxx_messageInfo_SELinuxStrategyOptions.Merge(m, src)
546}
547func (m *SELinuxStrategyOptions) XXX_Size() int {
548 return m.Size()
549}
550func (m *SELinuxStrategyOptions) XXX_DiscardUnknown() {
551 xxx_messageInfo_SELinuxStrategyOptions.DiscardUnknown(m)
552}
553
554var xxx_messageInfo_SELinuxStrategyOptions proto.InternalMessageInfo
555
556func (m *SupplementalGroupsStrategyOptions) Reset() { *m = SupplementalGroupsStrategyOptions{} }
557func (*SupplementalGroupsStrategyOptions) ProtoMessage() {}
558func (*SupplementalGroupsStrategyOptions) Descriptor() ([]byte, []int) {
559 return fileDescriptor_014060e454a820dc, []int{18}
560}
561func (m *SupplementalGroupsStrategyOptions) XXX_Unmarshal(b []byte) error {
562 return m.Unmarshal(b)
563}
564func (m *SupplementalGroupsStrategyOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
565 b = b[:cap(b)]
566 n, err := m.MarshalToSizedBuffer(b)
567 if err != nil {
568 return nil, err
569 }
570 return b[:n], nil
571}
572func (m *SupplementalGroupsStrategyOptions) XXX_Merge(src proto.Message) {
573 xxx_messageInfo_SupplementalGroupsStrategyOptions.Merge(m, src)
574}
575func (m *SupplementalGroupsStrategyOptions) XXX_Size() int {
576 return m.Size()
577}
578func (m *SupplementalGroupsStrategyOptions) XXX_DiscardUnknown() {
579 xxx_messageInfo_SupplementalGroupsStrategyOptions.DiscardUnknown(m)
580}
581
582var xxx_messageInfo_SupplementalGroupsStrategyOptions proto.InternalMessageInfo
583
584func init() {
585 proto.RegisterType((*AllowedCSIDriver)(nil), "k8s.io.api.policy.v1beta1.AllowedCSIDriver")
586 proto.RegisterType((*AllowedFlexVolume)(nil), "k8s.io.api.policy.v1beta1.AllowedFlexVolume")
587 proto.RegisterType((*AllowedHostPath)(nil), "k8s.io.api.policy.v1beta1.AllowedHostPath")
588 proto.RegisterType((*Eviction)(nil), "k8s.io.api.policy.v1beta1.Eviction")
589 proto.RegisterType((*FSGroupStrategyOptions)(nil), "k8s.io.api.policy.v1beta1.FSGroupStrategyOptions")
590 proto.RegisterType((*HostPortRange)(nil), "k8s.io.api.policy.v1beta1.HostPortRange")
591 proto.RegisterType((*IDRange)(nil), "k8s.io.api.policy.v1beta1.IDRange")
592 proto.RegisterType((*PodDisruptionBudget)(nil), "k8s.io.api.policy.v1beta1.PodDisruptionBudget")
593 proto.RegisterType((*PodDisruptionBudgetList)(nil), "k8s.io.api.policy.v1beta1.PodDisruptionBudgetList")
594 proto.RegisterType((*PodDisruptionBudgetSpec)(nil), "k8s.io.api.policy.v1beta1.PodDisruptionBudgetSpec")
595 proto.RegisterType((*PodDisruptionBudgetStatus)(nil), "k8s.io.api.policy.v1beta1.PodDisruptionBudgetStatus")
596 proto.RegisterMapType((map[string]v1.Time)(nil), "k8s.io.api.policy.v1beta1.PodDisruptionBudgetStatus.DisruptedPodsEntry")
597 proto.RegisterType((*PodSecurityPolicy)(nil), "k8s.io.api.policy.v1beta1.PodSecurityPolicy")
598 proto.RegisterType((*PodSecurityPolicyList)(nil), "k8s.io.api.policy.v1beta1.PodSecurityPolicyList")
599 proto.RegisterType((*PodSecurityPolicySpec)(nil), "k8s.io.api.policy.v1beta1.PodSecurityPolicySpec")
600 proto.RegisterType((*RunAsGroupStrategyOptions)(nil), "k8s.io.api.policy.v1beta1.RunAsGroupStrategyOptions")
601 proto.RegisterType((*RunAsUserStrategyOptions)(nil), "k8s.io.api.policy.v1beta1.RunAsUserStrategyOptions")
602 proto.RegisterType((*RuntimeClassStrategyOptions)(nil), "k8s.io.api.policy.v1beta1.RuntimeClassStrategyOptions")
603 proto.RegisterType((*SELinuxStrategyOptions)(nil), "k8s.io.api.policy.v1beta1.SELinuxStrategyOptions")
604 proto.RegisterType((*SupplementalGroupsStrategyOptions)(nil), "k8s.io.api.policy.v1beta1.SupplementalGroupsStrategyOptions")
605}
606
607func init() {
608 proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/policy/v1beta1/generated.proto", fileDescriptor_014060e454a820dc)
609}
610
611var fileDescriptor_014060e454a820dc = []byte{
612 // 1878 bytes of a gzipped FileDescriptorProto
613 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xdd, 0x6e, 0x1b, 0xc7,
614 0x15, 0xd6, 0x9a, 0xfa, 0xa1, 0x46, 0x3f, 0x16, 0x47, 0x3f, 0x5e, 0x2b, 0x0d, 0xd7, 0xd9, 0x00,
615 0x85, 0x9b, 0x26, 0xcb, 0x58, 0x76, 0x5c, 0xa3, 0x69, 0x8b, 0x68, 0x45, 0xc9, 0x56, 0x60, 0x59,
616 0xec, 0xd0, 0x0e, 0xda, 0xc2, 0x2d, 0x3a, 0xe4, 0x8e, 0xa8, 0x8d, 0x96, 0xbb, 0xdb, 0x99, 0x59,
617 0x46, 0xbc, 0xeb, 0x45, 0x2f, 0x7a, 0xd9, 0x17, 0x08, 0xfa, 0x00, 0x45, 0xaf, 0xfa, 0x12, 0x0e,
618 0x50, 0x04, 0xb9, 0x0c, 0x7a, 0x41, 0xd4, 0xec, 0x5b, 0xf8, 0xaa, 0xd8, 0xe1, 0xec, 0x92, 0xfb,
619 0x47, 0x5a, 0x01, 0xec, 0x3b, 0xee, 0x9c, 0xef, 0xfb, 0xce, 0xcc, 0x99, 0x33, 0x67, 0x0e, 0x07,
620 0x98, 0x17, 0x0f, 0x98, 0x61, 0x7b, 0xb5, 0x8b, 0xa0, 0x45, 0xa8, 0x4b, 0x38, 0x61, 0xb5, 0x1e,
621 0x71, 0x2d, 0x8f, 0xd6, 0xa4, 0x01, 0xfb, 0x76, 0xcd, 0xf7, 0x1c, 0xbb, 0xdd, 0xaf, 0xf5, 0xee,
622 0xb4, 0x08, 0xc7, 0x77, 0x6a, 0x1d, 0xe2, 0x12, 0x8a, 0x39, 0xb1, 0x0c, 0x9f, 0x7a, 0xdc, 0x83,
623 0x37, 0x47, 0x50, 0x03, 0xfb, 0xb6, 0x31, 0x82, 0x1a, 0x12, 0xba, 0xfb, 0x51, 0xc7, 0xe6, 0xe7,
624 0x41, 0xcb, 0x68, 0x7b, 0xdd, 0x5a, 0xc7, 0xeb, 0x78, 0x35, 0xc1, 0x68, 0x05, 0x67, 0xe2, 0x4b,
625 0x7c, 0x88, 0x5f, 0x23, 0xa5, 0x5d, 0x7d, 0xc2, 0x69, 0xdb, 0xa3, 0xa4, 0xd6, 0xcb, 0x78, 0xdb,
626 0xbd, 0x37, 0xc6, 0x74, 0x71, 0xfb, 0xdc, 0x76, 0x09, 0xed, 0xd7, 0xfc, 0x8b, 0x4e, 0x38, 0xc0,
627 0x6a, 0x5d, 0xc2, 0x71, 0x1e, 0xab, 0x56, 0xc4, 0xa2, 0x81, 0xcb, 0xed, 0x2e, 0xc9, 0x10, 0xee,
628 0xcf, 0x22, 0xb0, 0xf6, 0x39, 0xe9, 0xe2, 0x0c, 0xef, 0x6e, 0x11, 0x2f, 0xe0, 0xb6, 0x53, 0xb3,
629 0x5d, 0xce, 0x38, 0x4d, 0x93, 0xf4, 0x7b, 0x60, 0x63, 0xdf, 0x71, 0xbc, 0xaf, 0x88, 0x75, 0xd0,
630 0x3c, 0xae, 0x53, 0xbb, 0x47, 0x28, 0xbc, 0x05, 0xe6, 0x5d, 0xdc, 0x25, 0xaa, 0x72, 0x4b, 0xb9,
631 0xbd, 0x6c, 0xae, 0xbe, 0x18, 0x68, 0x73, 0xc3, 0x81, 0x36, 0xff, 0x04, 0x77, 0x09, 0x12, 0x16,
632 0xfd, 0x53, 0x50, 0x91, 0xac, 0x23, 0x87, 0x5c, 0x7e, 0xe1, 0x39, 0x41, 0x97, 0xc0, 0x1f, 0x83,
633 0x45, 0x4b, 0x08, 0x48, 0xe2, 0xba, 0x24, 0x2e, 0x8e, 0x64, 0x91, 0xb4, 0xea, 0x0c, 0x5c, 0x97,
634 0xe4, 0x47, 0x1e, 0xe3, 0x0d, 0xcc, 0xcf, 0xe1, 0x1e, 0x00, 0x3e, 0xe6, 0xe7, 0x0d, 0x4a, 0xce,
635 0xec, 0x4b, 0x49, 0x87, 0x92, 0x0e, 0x1a, 0xb1, 0x05, 0x4d, 0xa0, 0xe0, 0x87, 0xa0, 0x4c, 0x09,
636 0xb6, 0x4e, 0x5d, 0xa7, 0xaf, 0x5e, 0xbb, 0xa5, 0xdc, 0x2e, 0x9b, 0x1b, 0x92, 0x51, 0x46, 0x72,
637 0x1c, 0xc5, 0x08, 0xfd, 0x3f, 0x0a, 0x28, 0x1f, 0xf6, 0xec, 0x36, 0xb7, 0x3d, 0x17, 0xfe, 0x11,
638 0x94, 0xc3, 0xdd, 0xb2, 0x30, 0xc7, 0xc2, 0xd9, 0xca, 0xde, 0xc7, 0xc6, 0x38, 0x93, 0xe2, 0xe0,
639 0x19, 0xfe, 0x45, 0x27, 0x1c, 0x60, 0x46, 0x88, 0x36, 0x7a, 0x77, 0x8c, 0xd3, 0xd6, 0x97, 0xa4,
640 0xcd, 0x4f, 0x08, 0xc7, 0xe3, 0xe9, 0x8d, 0xc7, 0x50, 0xac, 0x0a, 0x1d, 0xb0, 0x66, 0x11, 0x87,
641 0x70, 0x72, 0xea, 0x87, 0x1e, 0x99, 0x98, 0xe1, 0xca, 0xde, 0xdd, 0xd7, 0x73, 0x53, 0x9f, 0xa4,
642 0x9a, 0x95, 0xe1, 0x40, 0x5b, 0x4b, 0x0c, 0xa1, 0xa4, 0xb8, 0xfe, 0xb5, 0x02, 0x76, 0x8e, 0x9a,
643 0x0f, 0xa9, 0x17, 0xf8, 0x4d, 0x1e, 0xee, 0x6e, 0xa7, 0x2f, 0x4d, 0xf0, 0x67, 0x60, 0x9e, 0x06,
644 0x4e, 0xb4, 0x97, 0xef, 0x47, 0x7b, 0x89, 0x02, 0x87, 0xbc, 0x1a, 0x68, 0x9b, 0x29, 0xd6, 0xd3,
645 0xbe, 0x4f, 0x90, 0x20, 0xc0, 0xcf, 0xc1, 0x22, 0xc5, 0x6e, 0x87, 0x84, 0x53, 0x2f, 0xdd, 0x5e,
646 0xd9, 0xd3, 0x8d, 0xc2, 0xb3, 0x66, 0x1c, 0xd7, 0x51, 0x08, 0x1d, 0xef, 0xb8, 0xf8, 0x64, 0x48,
647 0x2a, 0xe8, 0x27, 0x60, 0x4d, 0x6c, 0xb5, 0x47, 0xb9, 0xb0, 0xc0, 0x77, 0x41, 0xa9, 0x6b, 0xbb,
648 0x62, 0x52, 0x0b, 0xe6, 0x8a, 0x64, 0x95, 0x4e, 0x6c, 0x17, 0x85, 0xe3, 0xc2, 0x8c, 0x2f, 0x45,
649 0xcc, 0x26, 0xcd, 0xf8, 0x12, 0x85, 0xe3, 0xfa, 0x43, 0xb0, 0x24, 0x3d, 0x4e, 0x0a, 0x95, 0xa6,
650 0x0b, 0x95, 0x72, 0x84, 0xfe, 0x71, 0x0d, 0x6c, 0x36, 0x3c, 0xab, 0x6e, 0x33, 0x1a, 0x88, 0x78,
651 0x99, 0x81, 0xd5, 0x21, 0xfc, 0x2d, 0xe4, 0xc7, 0x53, 0x30, 0xcf, 0x7c, 0xd2, 0x96, 0x69, 0xb1,
652 0x37, 0x25, 0xb6, 0x39, 0xf3, 0x6b, 0xfa, 0xa4, 0x3d, 0x3e, 0x96, 0xe1, 0x17, 0x12, 0x6a, 0xf0,
653 0x39, 0x58, 0x64, 0x1c, 0xf3, 0x80, 0xa9, 0x25, 0xa1, 0x7b, 0xef, 0x8a, 0xba, 0x82, 0x3b, 0xde,
654 0xc5, 0xd1, 0x37, 0x92, 0x9a, 0xfa, 0xbf, 0x15, 0x70, 0x23, 0x87, 0xf5, 0xd8, 0x66, 0x1c, 0x3e,
655 0xcf, 0x44, 0xcc, 0x78, 0xbd, 0x88, 0x85, 0x6c, 0x11, 0xaf, 0xf8, 0xf0, 0x46, 0x23, 0x13, 0xd1,
656 0x6a, 0x82, 0x05, 0x9b, 0x93, 0x6e, 0x94, 0x8a, 0xc6, 0xd5, 0x96, 0x65, 0xae, 0x49, 0xe9, 0x85,
657 0xe3, 0x50, 0x04, 0x8d, 0xb4, 0xf4, 0x6f, 0xaf, 0xe5, 0x2e, 0x27, 0x0c, 0x27, 0x3c, 0x03, 0xab,
658 0x5d, 0xdb, 0xdd, 0xef, 0x61, 0xdb, 0xc1, 0x2d, 0x79, 0x7a, 0xa6, 0x25, 0x41, 0x58, 0x61, 0x8d,
659 0x51, 0x85, 0x35, 0x8e, 0x5d, 0x7e, 0x4a, 0x9b, 0x9c, 0xda, 0x6e, 0xc7, 0xdc, 0x18, 0x0e, 0xb4,
660 0xd5, 0x93, 0x09, 0x25, 0x94, 0xd0, 0x85, 0xbf, 0x07, 0x65, 0x46, 0x1c, 0xd2, 0xe6, 0x1e, 0xbd,
661 0x5a, 0x85, 0x78, 0x8c, 0x5b, 0xc4, 0x69, 0x4a, 0xaa, 0xb9, 0x1a, 0xc6, 0x2d, 0xfa, 0x42, 0xb1,
662 0x24, 0x74, 0xc0, 0x7a, 0x17, 0x5f, 0x3e, 0x73, 0x71, 0xbc, 0x90, 0xd2, 0x0f, 0x5c, 0x08, 0x1c,
663 0x0e, 0xb4, 0xf5, 0x93, 0x84, 0x16, 0x4a, 0x69, 0xeb, 0xc3, 0x79, 0x70, 0xb3, 0x30, 0xab, 0xe0,
664 0xe7, 0x00, 0x7a, 0x2d, 0x46, 0x68, 0x8f, 0x58, 0x0f, 0x47, 0x77, 0x90, 0xed, 0x45, 0x07, 0x77,
665 0x57, 0x6e, 0x10, 0x3c, 0xcd, 0x20, 0x50, 0x0e, 0x0b, 0xfe, 0x45, 0x01, 0x6b, 0xd6, 0xc8, 0x0d,
666 0xb1, 0x1a, 0x9e, 0x15, 0x25, 0xc6, 0xc3, 0x1f, 0x92, 0xef, 0x46, 0x7d, 0x52, 0xe9, 0xd0, 0xe5,
667 0xb4, 0x6f, 0x6e, 0xcb, 0x09, 0xad, 0x25, 0x6c, 0x28, 0xe9, 0x34, 0x5c, 0x92, 0x15, 0x4b, 0x32,
668 0x79, 0xa7, 0x89, 0x10, 0x2f, 0x8c, 0x97, 0x54, 0xcf, 0x20, 0x50, 0x0e, 0x0b, 0xfe, 0x0a, 0xac,
669 0xb7, 0x03, 0x4a, 0x89, 0xcb, 0x1f, 0x11, 0xec, 0xf0, 0xf3, 0xbe, 0x3a, 0x2f, 0x74, 0x76, 0xa4,
670 0xce, 0xfa, 0x41, 0xc2, 0x8a, 0x52, 0xe8, 0x90, 0x6f, 0x11, 0x66, 0x53, 0x62, 0x45, 0xfc, 0x85,
671 0x24, 0xbf, 0x9e, 0xb0, 0xa2, 0x14, 0x1a, 0x3e, 0x00, 0xab, 0xe4, 0xd2, 0x27, 0xed, 0x28, 0xa0,
672 0x8b, 0x82, 0xbd, 0x25, 0xd9, 0xab, 0x87, 0x13, 0x36, 0x94, 0x40, 0xee, 0x3a, 0x00, 0x66, 0x23,
673 0x08, 0x37, 0x40, 0xe9, 0x82, 0xf4, 0x47, 0xd7, 0x0e, 0x0a, 0x7f, 0xc2, 0xcf, 0xc0, 0x42, 0x0f,
674 0x3b, 0x01, 0x91, 0x89, 0xfe, 0xc1, 0xeb, 0x25, 0xfa, 0x53, 0xbb, 0x4b, 0xd0, 0x88, 0xf8, 0xf3,
675 0x6b, 0x0f, 0x14, 0xfd, 0x1b, 0x05, 0x54, 0x1a, 0x9e, 0xd5, 0x24, 0xed, 0x80, 0xda, 0xbc, 0xdf,
676 0x10, 0x9b, 0xfc, 0x16, 0x0a, 0x36, 0x4a, 0x14, 0xec, 0x8f, 0xa7, 0x27, 0x5a, 0x72, 0x76, 0x45,
677 0xe5, 0x5a, 0x7f, 0xa1, 0x80, 0xed, 0x0c, 0xfa, 0x2d, 0x94, 0xd3, 0x5f, 0x27, 0xcb, 0xe9, 0x87,
678 0x57, 0x59, 0x4c, 0x41, 0x31, 0xfd, 0xa6, 0x92, 0xb3, 0x14, 0x51, 0x4a, 0xc3, 0xd6, 0x8e, 0xda,
679 0x3d, 0xdb, 0x21, 0x1d, 0x62, 0x89, 0xc5, 0x94, 0x27, 0x5a, 0xbb, 0xd8, 0x82, 0x26, 0x50, 0x90,
680 0x81, 0x1d, 0x8b, 0x9c, 0xe1, 0xc0, 0xe1, 0xfb, 0x96, 0x75, 0x80, 0x7d, 0xdc, 0xb2, 0x1d, 0x9b,
681 0xdb, 0xb2, 0x17, 0x59, 0x36, 0x3f, 0x1d, 0x0e, 0xb4, 0x9d, 0x7a, 0x2e, 0xe2, 0xd5, 0x40, 0x7b,
682 0x37, 0xdb, 0xca, 0x1b, 0x31, 0xa4, 0x8f, 0x0a, 0xa4, 0x61, 0x1f, 0xa8, 0x94, 0xfc, 0x29, 0x08,
683 0x0f, 0x45, 0x9d, 0x7a, 0x7e, 0xc2, 0x6d, 0x49, 0xb8, 0xfd, 0xe5, 0x70, 0xa0, 0xa9, 0xa8, 0x00,
684 0x33, 0xdb, 0x71, 0xa1, 0x3c, 0xfc, 0x12, 0x6c, 0x62, 0xd9, 0x84, 0x4f, 0x7a, 0x9d, 0x17, 0x5e,
685 0x1f, 0x0c, 0x07, 0xda, 0xe6, 0x7e, 0xd6, 0x3c, 0xdb, 0x61, 0x9e, 0x28, 0xac, 0x81, 0xa5, 0x9e,
686 0xe8, 0xd7, 0x99, 0xba, 0x20, 0xf4, 0xb7, 0x87, 0x03, 0x6d, 0x69, 0xd4, 0xc2, 0x87, 0x9a, 0x8b,
687 0x47, 0x4d, 0xd1, 0x05, 0x46, 0x28, 0xf8, 0x09, 0x58, 0x39, 0xf7, 0x18, 0x7f, 0x42, 0xf8, 0x57,
688 0x1e, 0xbd, 0x10, 0x85, 0xa1, 0x6c, 0x6e, 0xca, 0x1d, 0x5c, 0x79, 0x34, 0x36, 0xa1, 0x49, 0x1c,
689 0xfc, 0x2d, 0x58, 0x3e, 0x97, 0x3d, 0x1f, 0x53, 0x97, 0x44, 0xa2, 0xdd, 0x9e, 0x92, 0x68, 0x89,
690 0xfe, 0xd0, 0xac, 0x48, 0xf9, 0xe5, 0x68, 0x98, 0xa1, 0xb1, 0x1a, 0xfc, 0x09, 0x58, 0x12, 0x1f,
691 0xc7, 0x75, 0xb5, 0x2c, 0x66, 0x73, 0x5d, 0xc2, 0x97, 0x1e, 0x8d, 0x86, 0x51, 0x64, 0x8f, 0xa0,
692 0xc7, 0x8d, 0x03, 0x75, 0x39, 0x0b, 0x3d, 0x6e, 0x1c, 0xa0, 0xc8, 0x0e, 0x9f, 0x83, 0x25, 0x46,
693 0x1e, 0xdb, 0x6e, 0x70, 0xa9, 0x02, 0x71, 0xe4, 0xee, 0x4c, 0x99, 0x6e, 0xf3, 0x50, 0x20, 0x53,
694 0xdd, 0xf6, 0x58, 0x5d, 0xda, 0x51, 0x24, 0x09, 0x2d, 0xb0, 0x4c, 0x03, 0x77, 0x9f, 0x3d, 0x63,
695 0x84, 0xaa, 0x2b, 0x99, 0xab, 0x3e, 0xad, 0x8f, 0x22, 0x6c, 0xda, 0x43, 0x1c, 0x99, 0x18, 0x81,
696 0xc6, 0xc2, 0xd0, 0x02, 0x40, 0x7c, 0x88, 0xa6, 0x5e, 0xdd, 0x99, 0xd9, 0x04, 0xa2, 0x18, 0x9c,
697 0xf6, 0xb3, 0x1e, 0x1e, 0xcf, 0xb1, 0x19, 0x4d, 0xe8, 0xc2, 0xbf, 0x2a, 0x00, 0xb2, 0xc0, 0xf7,
698 0x1d, 0xd2, 0x25, 0x2e, 0xc7, 0x8e, 0x18, 0x65, 0xea, 0xaa, 0x70, 0xf7, 0x8b, 0x69, 0x51, 0xcb,
699 0x90, 0xd2, 0x6e, 0xe3, 0x6b, 0x33, 0x0b, 0x45, 0x39, 0x3e, 0xc3, 0x4d, 0x3b, 0x93, 0xab, 0x5d,
700 0x9b, 0xb9, 0x69, 0xf9, 0x7f, 0x91, 0xc6, 0x9b, 0x26, 0xed, 0x28, 0x92, 0x84, 0x5f, 0x80, 0x9d,
701 0xe8, 0x0f, 0x24, 0xf2, 0x3c, 0x7e, 0x64, 0x3b, 0x84, 0xf5, 0x19, 0x27, 0x5d, 0x75, 0x5d, 0x24,
702 0x53, 0x55, 0x32, 0x77, 0x50, 0x2e, 0x0a, 0x15, 0xb0, 0x61, 0x17, 0x68, 0x51, 0x11, 0x0a, 0x4f,
703 0x68, 0x5c, 0x05, 0x0f, 0x59, 0x1b, 0x3b, 0xa3, 0xc6, 0xe8, 0xba, 0x70, 0xf0, 0xfe, 0x70, 0xa0,
704 0x69, 0xf5, 0xe9, 0x50, 0x34, 0x4b, 0x0b, 0xfe, 0x06, 0xa8, 0xb8, 0xc8, 0xcf, 0x86, 0xf0, 0xf3,
705 0xa3, 0xb0, 0xb2, 0x15, 0x3a, 0x28, 0x64, 0x43, 0x1f, 0x6c, 0xe0, 0xe4, 0x5f, 0x79, 0xa6, 0x56,
706 0xc4, 0x59, 0xff, 0x60, 0xca, 0x3e, 0xa4, 0xfe, 0xfd, 0x9b, 0xaa, 0x0c, 0xe3, 0x46, 0xca, 0xc0,
707 0x50, 0x46, 0x1d, 0x5e, 0x02, 0x88, 0xd3, 0x2f, 0x0f, 0x4c, 0x85, 0x33, 0x2f, 0xb2, 0xcc, 0x73,
708 0xc5, 0x38, 0xd5, 0x32, 0x26, 0x86, 0x72, 0x7c, 0x40, 0x0e, 0x2a, 0x38, 0xf5, 0x52, 0xc2, 0xd4,
709 0x1b, 0xc2, 0xf1, 0x4f, 0x67, 0x3b, 0x8e, 0x39, 0xe6, 0x4d, 0xe9, 0xb7, 0x92, 0xb6, 0x30, 0x94,
710 0x75, 0x00, 0x1f, 0x83, 0x2d, 0x39, 0xf8, 0xcc, 0x65, 0xf8, 0x8c, 0x34, 0xfb, 0xac, 0xcd, 0x1d,
711 0xa6, 0x6e, 0x8a, 0xda, 0xad, 0x0e, 0x07, 0xda, 0xd6, 0x7e, 0x8e, 0x1d, 0xe5, 0xb2, 0xe0, 0x67,
712 0x60, 0xe3, 0xcc, 0xa3, 0x2d, 0xdb, 0xb2, 0x88, 0x1b, 0x29, 0x6d, 0x09, 0xa5, 0xad, 0x30, 0xfe,
713 0x47, 0x29, 0x1b, 0xca, 0xa0, 0x21, 0x03, 0xdb, 0x52, 0xb9, 0x41, 0xbd, 0xf6, 0x89, 0x17, 0xb8,
714 0x3c, 0xbc, 0x2e, 0x98, 0xba, 0x1d, 0x5f, 0x91, 0xdb, 0xfb, 0x79, 0x80, 0x57, 0x03, 0xed, 0x56,
715 0xce, 0x75, 0x95, 0x00, 0xa1, 0x7c, 0x6d, 0xe8, 0x80, 0x55, 0xf9, 0xf6, 0x75, 0xe0, 0x60, 0xc6,
716 0x54, 0x55, 0x1c, 0xf5, 0xfb, 0xd3, 0x0b, 0x5b, 0x0c, 0x4f, 0x9f, 0x77, 0xf1, 0xa7, 0x6c, 0x12,
717 0x80, 0x12, 0xea, 0xfa, 0xdf, 0x15, 0x70, 0xb3, 0xb0, 0x30, 0xc2, 0xfb, 0x89, 0x07, 0x15, 0x3d,
718 0xf5, 0xa0, 0x02, 0xb3, 0xc4, 0x37, 0xf0, 0x9e, 0xf2, 0xb5, 0x02, 0xd4, 0xa2, 0x1b, 0x02, 0x7e,
719 0x92, 0x98, 0xe0, 0x7b, 0xa9, 0x09, 0x56, 0x32, 0xbc, 0x37, 0x30, 0xbf, 0x6f, 0x15, 0xf0, 0xce,
720 0x94, 0x1d, 0x88, 0x0b, 0x12, 0xb1, 0x26, 0x51, 0x4f, 0x70, 0x78, 0x94, 0x15, 0x91, 0x47, 0xe3,
721 0x82, 0x94, 0x83, 0x41, 0x85, 0x6c, 0xf8, 0x0c, 0xdc, 0x90, 0xd5, 0x30, 0x6d, 0x13, 0x9d, 0xfb,
722 0xb2, 0xf9, 0xce, 0x70, 0xa0, 0xdd, 0xa8, 0xe7, 0x43, 0x50, 0x11, 0x57, 0xff, 0xa7, 0x02, 0x76,
723 0xf2, 0xaf, 0x7c, 0x78, 0x37, 0x11, 0x6e, 0x2d, 0x15, 0xee, 0xeb, 0x29, 0x96, 0x0c, 0xf6, 0x1f,
724 0xc0, 0xba, 0x6c, 0x0c, 0x92, 0xef, 0x83, 0x89, 0xa0, 0x87, 0x47, 0x24, 0xec, 0xe9, 0xa5, 0x44,
725 0x94, 0xbe, 0xe2, 0xaf, 0x78, 0x72, 0x0c, 0xa5, 0xd4, 0xf4, 0x7f, 0x29, 0xe0, 0xbd, 0x99, 0x97,
726 0x2d, 0x34, 0x13, 0x53, 0x37, 0x52, 0x53, 0xaf, 0x16, 0x0b, 0xbc, 0x99, 0x67, 0x42, 0xf3, 0xa3,
727 0x17, 0x2f, 0xab, 0x73, 0xdf, 0xbd, 0xac, 0xce, 0x7d, 0xff, 0xb2, 0x3a, 0xf7, 0xe7, 0x61, 0x55,
728 0x79, 0x31, 0xac, 0x2a, 0xdf, 0x0d, 0xab, 0xca, 0xf7, 0xc3, 0xaa, 0xf2, 0xdf, 0x61, 0x55, 0xf9,
729 0xdb, 0xff, 0xaa, 0x73, 0xbf, 0x5b, 0x92, 0x72, 0xff, 0x0f, 0x00, 0x00, 0xff, 0xff, 0x5d, 0xe0,
730 0x55, 0x1c, 0x41, 0x18, 0x00, 0x00,
731}
732
733func (m *AllowedCSIDriver) Marshal() (dAtA []byte, err error) {
734 size := m.Size()
735 dAtA = make([]byte, size)
736 n, err := m.MarshalToSizedBuffer(dAtA[:size])
737 if err != nil {
738 return nil, err
739 }
740 return dAtA[:n], nil
741}
742
743func (m *AllowedCSIDriver) MarshalTo(dAtA []byte) (int, error) {
744 size := m.Size()
745 return m.MarshalToSizedBuffer(dAtA[:size])
746}
747
748func (m *AllowedCSIDriver) MarshalToSizedBuffer(dAtA []byte) (int, error) {
749 i := len(dAtA)
750 _ = i
751 var l int
752 _ = l
753 i -= len(m.Name)
754 copy(dAtA[i:], m.Name)
755 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
756 i--
757 dAtA[i] = 0xa
758 return len(dAtA) - i, nil
759}
760
761func (m *AllowedFlexVolume) Marshal() (dAtA []byte, err error) {
762 size := m.Size()
763 dAtA = make([]byte, size)
764 n, err := m.MarshalToSizedBuffer(dAtA[:size])
765 if err != nil {
766 return nil, err
767 }
768 return dAtA[:n], nil
769}
770
771func (m *AllowedFlexVolume) MarshalTo(dAtA []byte) (int, error) {
772 size := m.Size()
773 return m.MarshalToSizedBuffer(dAtA[:size])
774}
775
776func (m *AllowedFlexVolume) MarshalToSizedBuffer(dAtA []byte) (int, error) {
777 i := len(dAtA)
778 _ = i
779 var l int
780 _ = l
781 i -= len(m.Driver)
782 copy(dAtA[i:], m.Driver)
783 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Driver)))
784 i--
785 dAtA[i] = 0xa
786 return len(dAtA) - i, nil
787}
788
789func (m *AllowedHostPath) Marshal() (dAtA []byte, err error) {
790 size := m.Size()
791 dAtA = make([]byte, size)
792 n, err := m.MarshalToSizedBuffer(dAtA[:size])
793 if err != nil {
794 return nil, err
795 }
796 return dAtA[:n], nil
797}
798
799func (m *AllowedHostPath) MarshalTo(dAtA []byte) (int, error) {
800 size := m.Size()
801 return m.MarshalToSizedBuffer(dAtA[:size])
802}
803
804func (m *AllowedHostPath) MarshalToSizedBuffer(dAtA []byte) (int, error) {
805 i := len(dAtA)
806 _ = i
807 var l int
808 _ = l
809 i--
810 if m.ReadOnly {
811 dAtA[i] = 1
812 } else {
813 dAtA[i] = 0
814 }
815 i--
816 dAtA[i] = 0x10
817 i -= len(m.PathPrefix)
818 copy(dAtA[i:], m.PathPrefix)
819 i = encodeVarintGenerated(dAtA, i, uint64(len(m.PathPrefix)))
820 i--
821 dAtA[i] = 0xa
822 return len(dAtA) - i, nil
823}
824
825func (m *Eviction) Marshal() (dAtA []byte, err error) {
826 size := m.Size()
827 dAtA = make([]byte, size)
828 n, err := m.MarshalToSizedBuffer(dAtA[:size])
829 if err != nil {
830 return nil, err
831 }
832 return dAtA[:n], nil
833}
834
835func (m *Eviction) MarshalTo(dAtA []byte) (int, error) {
836 size := m.Size()
837 return m.MarshalToSizedBuffer(dAtA[:size])
838}
839
840func (m *Eviction) MarshalToSizedBuffer(dAtA []byte) (int, error) {
841 i := len(dAtA)
842 _ = i
843 var l int
844 _ = l
845 if m.DeleteOptions != nil {
846 {
847 size, err := m.DeleteOptions.MarshalToSizedBuffer(dAtA[:i])
848 if err != nil {
849 return 0, err
850 }
851 i -= size
852 i = encodeVarintGenerated(dAtA, i, uint64(size))
853 }
854 i--
855 dAtA[i] = 0x12
856 }
857 {
858 size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
859 if err != nil {
860 return 0, err
861 }
862 i -= size
863 i = encodeVarintGenerated(dAtA, i, uint64(size))
864 }
865 i--
866 dAtA[i] = 0xa
867 return len(dAtA) - i, nil
868}
869
870func (m *FSGroupStrategyOptions) Marshal() (dAtA []byte, err error) {
871 size := m.Size()
872 dAtA = make([]byte, size)
873 n, err := m.MarshalToSizedBuffer(dAtA[:size])
874 if err != nil {
875 return nil, err
876 }
877 return dAtA[:n], nil
878}
879
880func (m *FSGroupStrategyOptions) MarshalTo(dAtA []byte) (int, error) {
881 size := m.Size()
882 return m.MarshalToSizedBuffer(dAtA[:size])
883}
884
885func (m *FSGroupStrategyOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) {
886 i := len(dAtA)
887 _ = i
888 var l int
889 _ = l
890 if len(m.Ranges) > 0 {
891 for iNdEx := len(m.Ranges) - 1; iNdEx >= 0; iNdEx-- {
892 {
893 size, err := m.Ranges[iNdEx].MarshalToSizedBuffer(dAtA[:i])
894 if err != nil {
895 return 0, err
896 }
897 i -= size
898 i = encodeVarintGenerated(dAtA, i, uint64(size))
899 }
900 i--
901 dAtA[i] = 0x12
902 }
903 }
904 i -= len(m.Rule)
905 copy(dAtA[i:], m.Rule)
906 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Rule)))
907 i--
908 dAtA[i] = 0xa
909 return len(dAtA) - i, nil
910}
911
912func (m *HostPortRange) Marshal() (dAtA []byte, err error) {
913 size := m.Size()
914 dAtA = make([]byte, size)
915 n, err := m.MarshalToSizedBuffer(dAtA[:size])
916 if err != nil {
917 return nil, err
918 }
919 return dAtA[:n], nil
920}
921
922func (m *HostPortRange) MarshalTo(dAtA []byte) (int, error) {
923 size := m.Size()
924 return m.MarshalToSizedBuffer(dAtA[:size])
925}
926
927func (m *HostPortRange) MarshalToSizedBuffer(dAtA []byte) (int, error) {
928 i := len(dAtA)
929 _ = i
930 var l int
931 _ = l
932 i = encodeVarintGenerated(dAtA, i, uint64(m.Max))
933 i--
934 dAtA[i] = 0x10
935 i = encodeVarintGenerated(dAtA, i, uint64(m.Min))
936 i--
937 dAtA[i] = 0x8
938 return len(dAtA) - i, nil
939}
940
941func (m *IDRange) Marshal() (dAtA []byte, err error) {
942 size := m.Size()
943 dAtA = make([]byte, size)
944 n, err := m.MarshalToSizedBuffer(dAtA[:size])
945 if err != nil {
946 return nil, err
947 }
948 return dAtA[:n], nil
949}
950
951func (m *IDRange) MarshalTo(dAtA []byte) (int, error) {
952 size := m.Size()
953 return m.MarshalToSizedBuffer(dAtA[:size])
954}
955
956func (m *IDRange) MarshalToSizedBuffer(dAtA []byte) (int, error) {
957 i := len(dAtA)
958 _ = i
959 var l int
960 _ = l
961 i = encodeVarintGenerated(dAtA, i, uint64(m.Max))
962 i--
963 dAtA[i] = 0x10
964 i = encodeVarintGenerated(dAtA, i, uint64(m.Min))
965 i--
966 dAtA[i] = 0x8
967 return len(dAtA) - i, nil
968}
969
970func (m *PodDisruptionBudget) Marshal() (dAtA []byte, err error) {
971 size := m.Size()
972 dAtA = make([]byte, size)
973 n, err := m.MarshalToSizedBuffer(dAtA[:size])
974 if err != nil {
975 return nil, err
976 }
977 return dAtA[:n], nil
978}
979
980func (m *PodDisruptionBudget) MarshalTo(dAtA []byte) (int, error) {
981 size := m.Size()
982 return m.MarshalToSizedBuffer(dAtA[:size])
983}
984
985func (m *PodDisruptionBudget) MarshalToSizedBuffer(dAtA []byte) (int, error) {
986 i := len(dAtA)
987 _ = i
988 var l int
989 _ = l
990 {
991 size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
992 if err != nil {
993 return 0, err
994 }
995 i -= size
996 i = encodeVarintGenerated(dAtA, i, uint64(size))
997 }
998 i--
999 dAtA[i] = 0x1a
1000 {
1001 size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
1002 if err != nil {
1003 return 0, err
1004 }
1005 i -= size
1006 i = encodeVarintGenerated(dAtA, i, uint64(size))
1007 }
1008 i--
1009 dAtA[i] = 0x12
1010 {
1011 size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
1012 if err != nil {
1013 return 0, err
1014 }
1015 i -= size
1016 i = encodeVarintGenerated(dAtA, i, uint64(size))
1017 }
1018 i--
1019 dAtA[i] = 0xa
1020 return len(dAtA) - i, nil
1021}
1022
1023func (m *PodDisruptionBudgetList) Marshal() (dAtA []byte, err error) {
1024 size := m.Size()
1025 dAtA = make([]byte, size)
1026 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1027 if err != nil {
1028 return nil, err
1029 }
1030 return dAtA[:n], nil
1031}
1032
1033func (m *PodDisruptionBudgetList) MarshalTo(dAtA []byte) (int, error) {
1034 size := m.Size()
1035 return m.MarshalToSizedBuffer(dAtA[:size])
1036}
1037
1038func (m *PodDisruptionBudgetList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1039 i := len(dAtA)
1040 _ = i
1041 var l int
1042 _ = l
1043 if len(m.Items) > 0 {
1044 for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
1045 {
1046 size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
1047 if err != nil {
1048 return 0, err
1049 }
1050 i -= size
1051 i = encodeVarintGenerated(dAtA, i, uint64(size))
1052 }
1053 i--
1054 dAtA[i] = 0x12
1055 }
1056 }
1057 {
1058 size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
1059 if err != nil {
1060 return 0, err
1061 }
1062 i -= size
1063 i = encodeVarintGenerated(dAtA, i, uint64(size))
1064 }
1065 i--
1066 dAtA[i] = 0xa
1067 return len(dAtA) - i, nil
1068}
1069
1070func (m *PodDisruptionBudgetSpec) Marshal() (dAtA []byte, err error) {
1071 size := m.Size()
1072 dAtA = make([]byte, size)
1073 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1074 if err != nil {
1075 return nil, err
1076 }
1077 return dAtA[:n], nil
1078}
1079
1080func (m *PodDisruptionBudgetSpec) MarshalTo(dAtA []byte) (int, error) {
1081 size := m.Size()
1082 return m.MarshalToSizedBuffer(dAtA[:size])
1083}
1084
1085func (m *PodDisruptionBudgetSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1086 i := len(dAtA)
1087 _ = i
1088 var l int
1089 _ = l
1090 if m.MaxUnavailable != nil {
1091 {
1092 size, err := m.MaxUnavailable.MarshalToSizedBuffer(dAtA[:i])
1093 if err != nil {
1094 return 0, err
1095 }
1096 i -= size
1097 i = encodeVarintGenerated(dAtA, i, uint64(size))
1098 }
1099 i--
1100 dAtA[i] = 0x1a
1101 }
1102 if m.Selector != nil {
1103 {
1104 size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i])
1105 if err != nil {
1106 return 0, err
1107 }
1108 i -= size
1109 i = encodeVarintGenerated(dAtA, i, uint64(size))
1110 }
1111 i--
1112 dAtA[i] = 0x12
1113 }
1114 if m.MinAvailable != nil {
1115 {
1116 size, err := m.MinAvailable.MarshalToSizedBuffer(dAtA[:i])
1117 if err != nil {
1118 return 0, err
1119 }
1120 i -= size
1121 i = encodeVarintGenerated(dAtA, i, uint64(size))
1122 }
1123 i--
1124 dAtA[i] = 0xa
1125 }
1126 return len(dAtA) - i, nil
1127}
1128
1129func (m *PodDisruptionBudgetStatus) Marshal() (dAtA []byte, err error) {
1130 size := m.Size()
1131 dAtA = make([]byte, size)
1132 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1133 if err != nil {
1134 return nil, err
1135 }
1136 return dAtA[:n], nil
1137}
1138
1139func (m *PodDisruptionBudgetStatus) MarshalTo(dAtA []byte) (int, error) {
1140 size := m.Size()
1141 return m.MarshalToSizedBuffer(dAtA[:size])
1142}
1143
1144func (m *PodDisruptionBudgetStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1145 i := len(dAtA)
1146 _ = i
1147 var l int
1148 _ = l
1149 i = encodeVarintGenerated(dAtA, i, uint64(m.ExpectedPods))
1150 i--
1151 dAtA[i] = 0x30
1152 i = encodeVarintGenerated(dAtA, i, uint64(m.DesiredHealthy))
1153 i--
1154 dAtA[i] = 0x28
1155 i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentHealthy))
1156 i--
1157 dAtA[i] = 0x20
1158 i = encodeVarintGenerated(dAtA, i, uint64(m.DisruptionsAllowed))
1159 i--
1160 dAtA[i] = 0x18
1161 if len(m.DisruptedPods) > 0 {
1162 keysForDisruptedPods := make([]string, 0, len(m.DisruptedPods))
1163 for k := range m.DisruptedPods {
1164 keysForDisruptedPods = append(keysForDisruptedPods, string(k))
1165 }
1166 github_com_gogo_protobuf_sortkeys.Strings(keysForDisruptedPods)
1167 for iNdEx := len(keysForDisruptedPods) - 1; iNdEx >= 0; iNdEx-- {
1168 v := m.DisruptedPods[string(keysForDisruptedPods[iNdEx])]
1169 baseI := i
1170 {
1171 size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
1172 if err != nil {
1173 return 0, err
1174 }
1175 i -= size
1176 i = encodeVarintGenerated(dAtA, i, uint64(size))
1177 }
1178 i--
1179 dAtA[i] = 0x12
1180 i -= len(keysForDisruptedPods[iNdEx])
1181 copy(dAtA[i:], keysForDisruptedPods[iNdEx])
1182 i = encodeVarintGenerated(dAtA, i, uint64(len(keysForDisruptedPods[iNdEx])))
1183 i--
1184 dAtA[i] = 0xa
1185 i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
1186 i--
1187 dAtA[i] = 0x12
1188 }
1189 }
1190 i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration))
1191 i--
1192 dAtA[i] = 0x8
1193 return len(dAtA) - i, nil
1194}
1195
1196func (m *PodSecurityPolicy) Marshal() (dAtA []byte, err error) {
1197 size := m.Size()
1198 dAtA = make([]byte, size)
1199 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1200 if err != nil {
1201 return nil, err
1202 }
1203 return dAtA[:n], nil
1204}
1205
1206func (m *PodSecurityPolicy) MarshalTo(dAtA []byte) (int, error) {
1207 size := m.Size()
1208 return m.MarshalToSizedBuffer(dAtA[:size])
1209}
1210
1211func (m *PodSecurityPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1212 i := len(dAtA)
1213 _ = i
1214 var l int
1215 _ = l
1216 {
1217 size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
1218 if err != nil {
1219 return 0, err
1220 }
1221 i -= size
1222 i = encodeVarintGenerated(dAtA, i, uint64(size))
1223 }
1224 i--
1225 dAtA[i] = 0x12
1226 {
1227 size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
1228 if err != nil {
1229 return 0, err
1230 }
1231 i -= size
1232 i = encodeVarintGenerated(dAtA, i, uint64(size))
1233 }
1234 i--
1235 dAtA[i] = 0xa
1236 return len(dAtA) - i, nil
1237}
1238
1239func (m *PodSecurityPolicyList) Marshal() (dAtA []byte, err error) {
1240 size := m.Size()
1241 dAtA = make([]byte, size)
1242 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1243 if err != nil {
1244 return nil, err
1245 }
1246 return dAtA[:n], nil
1247}
1248
1249func (m *PodSecurityPolicyList) MarshalTo(dAtA []byte) (int, error) {
1250 size := m.Size()
1251 return m.MarshalToSizedBuffer(dAtA[:size])
1252}
1253
1254func (m *PodSecurityPolicyList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1255 i := len(dAtA)
1256 _ = i
1257 var l int
1258 _ = l
1259 if len(m.Items) > 0 {
1260 for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
1261 {
1262 size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
1263 if err != nil {
1264 return 0, err
1265 }
1266 i -= size
1267 i = encodeVarintGenerated(dAtA, i, uint64(size))
1268 }
1269 i--
1270 dAtA[i] = 0x12
1271 }
1272 }
1273 {
1274 size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
1275 if err != nil {
1276 return 0, err
1277 }
1278 i -= size
1279 i = encodeVarintGenerated(dAtA, i, uint64(size))
1280 }
1281 i--
1282 dAtA[i] = 0xa
1283 return len(dAtA) - i, nil
1284}
1285
1286func (m *PodSecurityPolicySpec) Marshal() (dAtA []byte, err error) {
1287 size := m.Size()
1288 dAtA = make([]byte, size)
1289 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1290 if err != nil {
1291 return nil, err
1292 }
1293 return dAtA[:n], nil
1294}
1295
1296func (m *PodSecurityPolicySpec) MarshalTo(dAtA []byte) (int, error) {
1297 size := m.Size()
1298 return m.MarshalToSizedBuffer(dAtA[:size])
1299}
1300
1301func (m *PodSecurityPolicySpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1302 i := len(dAtA)
1303 _ = i
1304 var l int
1305 _ = l
1306 if m.RuntimeClass != nil {
1307 {
1308 size, err := m.RuntimeClass.MarshalToSizedBuffer(dAtA[:i])
1309 if err != nil {
1310 return 0, err
1311 }
1312 i -= size
1313 i = encodeVarintGenerated(dAtA, i, uint64(size))
1314 }
1315 i--
1316 dAtA[i] = 0x1
1317 i--
1318 dAtA[i] = 0xc2
1319 }
1320 if len(m.AllowedCSIDrivers) > 0 {
1321 for iNdEx := len(m.AllowedCSIDrivers) - 1; iNdEx >= 0; iNdEx-- {
1322 {
1323 size, err := m.AllowedCSIDrivers[iNdEx].MarshalToSizedBuffer(dAtA[:i])
1324 if err != nil {
1325 return 0, err
1326 }
1327 i -= size
1328 i = encodeVarintGenerated(dAtA, i, uint64(size))
1329 }
1330 i--
1331 dAtA[i] = 0x1
1332 i--
1333 dAtA[i] = 0xba
1334 }
1335 }
1336 if m.RunAsGroup != nil {
1337 {
1338 size, err := m.RunAsGroup.MarshalToSizedBuffer(dAtA[:i])
1339 if err != nil {
1340 return 0, err
1341 }
1342 i -= size
1343 i = encodeVarintGenerated(dAtA, i, uint64(size))
1344 }
1345 i--
1346 dAtA[i] = 0x1
1347 i--
1348 dAtA[i] = 0xb2
1349 }
1350 if len(m.AllowedProcMountTypes) > 0 {
1351 for iNdEx := len(m.AllowedProcMountTypes) - 1; iNdEx >= 0; iNdEx-- {
1352 i -= len(m.AllowedProcMountTypes[iNdEx])
1353 copy(dAtA[i:], m.AllowedProcMountTypes[iNdEx])
1354 i = encodeVarintGenerated(dAtA, i, uint64(len(m.AllowedProcMountTypes[iNdEx])))
1355 i--
1356 dAtA[i] = 0x1
1357 i--
1358 dAtA[i] = 0xaa
1359 }
1360 }
1361 if len(m.ForbiddenSysctls) > 0 {
1362 for iNdEx := len(m.ForbiddenSysctls) - 1; iNdEx >= 0; iNdEx-- {
1363 i -= len(m.ForbiddenSysctls[iNdEx])
1364 copy(dAtA[i:], m.ForbiddenSysctls[iNdEx])
1365 i = encodeVarintGenerated(dAtA, i, uint64(len(m.ForbiddenSysctls[iNdEx])))
1366 i--
1367 dAtA[i] = 0x1
1368 i--
1369 dAtA[i] = 0xa2
1370 }
1371 }
1372 if len(m.AllowedUnsafeSysctls) > 0 {
1373 for iNdEx := len(m.AllowedUnsafeSysctls) - 1; iNdEx >= 0; iNdEx-- {
1374 i -= len(m.AllowedUnsafeSysctls[iNdEx])
1375 copy(dAtA[i:], m.AllowedUnsafeSysctls[iNdEx])
1376 i = encodeVarintGenerated(dAtA, i, uint64(len(m.AllowedUnsafeSysctls[iNdEx])))
1377 i--
1378 dAtA[i] = 0x1
1379 i--
1380 dAtA[i] = 0x9a
1381 }
1382 }
1383 if len(m.AllowedFlexVolumes) > 0 {
1384 for iNdEx := len(m.AllowedFlexVolumes) - 1; iNdEx >= 0; iNdEx-- {
1385 {
1386 size, err := m.AllowedFlexVolumes[iNdEx].MarshalToSizedBuffer(dAtA[:i])
1387 if err != nil {
1388 return 0, err
1389 }
1390 i -= size
1391 i = encodeVarintGenerated(dAtA, i, uint64(size))
1392 }
1393 i--
1394 dAtA[i] = 0x1
1395 i--
1396 dAtA[i] = 0x92
1397 }
1398 }
1399 if len(m.AllowedHostPaths) > 0 {
1400 for iNdEx := len(m.AllowedHostPaths) - 1; iNdEx >= 0; iNdEx-- {
1401 {
1402 size, err := m.AllowedHostPaths[iNdEx].MarshalToSizedBuffer(dAtA[:i])
1403 if err != nil {
1404 return 0, err
1405 }
1406 i -= size
1407 i = encodeVarintGenerated(dAtA, i, uint64(size))
1408 }
1409 i--
1410 dAtA[i] = 0x1
1411 i--
1412 dAtA[i] = 0x8a
1413 }
1414 }
1415 if m.AllowPrivilegeEscalation != nil {
1416 i--
1417 if *m.AllowPrivilegeEscalation {
1418 dAtA[i] = 1
1419 } else {
1420 dAtA[i] = 0
1421 }
1422 i--
1423 dAtA[i] = 0x1
1424 i--
1425 dAtA[i] = 0x80
1426 }
1427 if m.DefaultAllowPrivilegeEscalation != nil {
1428 i--
1429 if *m.DefaultAllowPrivilegeEscalation {
1430 dAtA[i] = 1
1431 } else {
1432 dAtA[i] = 0
1433 }
1434 i--
1435 dAtA[i] = 0x78
1436 }
1437 i--
1438 if m.ReadOnlyRootFilesystem {
1439 dAtA[i] = 1
1440 } else {
1441 dAtA[i] = 0
1442 }
1443 i--
1444 dAtA[i] = 0x70
1445 {
1446 size, err := m.FSGroup.MarshalToSizedBuffer(dAtA[:i])
1447 if err != nil {
1448 return 0, err
1449 }
1450 i -= size
1451 i = encodeVarintGenerated(dAtA, i, uint64(size))
1452 }
1453 i--
1454 dAtA[i] = 0x6a
1455 {
1456 size, err := m.SupplementalGroups.MarshalToSizedBuffer(dAtA[:i])
1457 if err != nil {
1458 return 0, err
1459 }
1460 i -= size
1461 i = encodeVarintGenerated(dAtA, i, uint64(size))
1462 }
1463 i--
1464 dAtA[i] = 0x62
1465 {
1466 size, err := m.RunAsUser.MarshalToSizedBuffer(dAtA[:i])
1467 if err != nil {
1468 return 0, err
1469 }
1470 i -= size
1471 i = encodeVarintGenerated(dAtA, i, uint64(size))
1472 }
1473 i--
1474 dAtA[i] = 0x5a
1475 {
1476 size, err := m.SELinux.MarshalToSizedBuffer(dAtA[:i])
1477 if err != nil {
1478 return 0, err
1479 }
1480 i -= size
1481 i = encodeVarintGenerated(dAtA, i, uint64(size))
1482 }
1483 i--
1484 dAtA[i] = 0x52
1485 i--
1486 if m.HostIPC {
1487 dAtA[i] = 1
1488 } else {
1489 dAtA[i] = 0
1490 }
1491 i--
1492 dAtA[i] = 0x48
1493 i--
1494 if m.HostPID {
1495 dAtA[i] = 1
1496 } else {
1497 dAtA[i] = 0
1498 }
1499 i--
1500 dAtA[i] = 0x40
1501 if len(m.HostPorts) > 0 {
1502 for iNdEx := len(m.HostPorts) - 1; iNdEx >= 0; iNdEx-- {
1503 {
1504 size, err := m.HostPorts[iNdEx].MarshalToSizedBuffer(dAtA[:i])
1505 if err != nil {
1506 return 0, err
1507 }
1508 i -= size
1509 i = encodeVarintGenerated(dAtA, i, uint64(size))
1510 }
1511 i--
1512 dAtA[i] = 0x3a
1513 }
1514 }
1515 i--
1516 if m.HostNetwork {
1517 dAtA[i] = 1
1518 } else {
1519 dAtA[i] = 0
1520 }
1521 i--
1522 dAtA[i] = 0x30
1523 if len(m.Volumes) > 0 {
1524 for iNdEx := len(m.Volumes) - 1; iNdEx >= 0; iNdEx-- {
1525 i -= len(m.Volumes[iNdEx])
1526 copy(dAtA[i:], m.Volumes[iNdEx])
1527 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Volumes[iNdEx])))
1528 i--
1529 dAtA[i] = 0x2a
1530 }
1531 }
1532 if len(m.AllowedCapabilities) > 0 {
1533 for iNdEx := len(m.AllowedCapabilities) - 1; iNdEx >= 0; iNdEx-- {
1534 i -= len(m.AllowedCapabilities[iNdEx])
1535 copy(dAtA[i:], m.AllowedCapabilities[iNdEx])
1536 i = encodeVarintGenerated(dAtA, i, uint64(len(m.AllowedCapabilities[iNdEx])))
1537 i--
1538 dAtA[i] = 0x22
1539 }
1540 }
1541 if len(m.RequiredDropCapabilities) > 0 {
1542 for iNdEx := len(m.RequiredDropCapabilities) - 1; iNdEx >= 0; iNdEx-- {
1543 i -= len(m.RequiredDropCapabilities[iNdEx])
1544 copy(dAtA[i:], m.RequiredDropCapabilities[iNdEx])
1545 i = encodeVarintGenerated(dAtA, i, uint64(len(m.RequiredDropCapabilities[iNdEx])))
1546 i--
1547 dAtA[i] = 0x1a
1548 }
1549 }
1550 if len(m.DefaultAddCapabilities) > 0 {
1551 for iNdEx := len(m.DefaultAddCapabilities) - 1; iNdEx >= 0; iNdEx-- {
1552 i -= len(m.DefaultAddCapabilities[iNdEx])
1553 copy(dAtA[i:], m.DefaultAddCapabilities[iNdEx])
1554 i = encodeVarintGenerated(dAtA, i, uint64(len(m.DefaultAddCapabilities[iNdEx])))
1555 i--
1556 dAtA[i] = 0x12
1557 }
1558 }
1559 i--
1560 if m.Privileged {
1561 dAtA[i] = 1
1562 } else {
1563 dAtA[i] = 0
1564 }
1565 i--
1566 dAtA[i] = 0x8
1567 return len(dAtA) - i, nil
1568}
1569
1570func (m *RunAsGroupStrategyOptions) Marshal() (dAtA []byte, err error) {
1571 size := m.Size()
1572 dAtA = make([]byte, size)
1573 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1574 if err != nil {
1575 return nil, err
1576 }
1577 return dAtA[:n], nil
1578}
1579
1580func (m *RunAsGroupStrategyOptions) MarshalTo(dAtA []byte) (int, error) {
1581 size := m.Size()
1582 return m.MarshalToSizedBuffer(dAtA[:size])
1583}
1584
1585func (m *RunAsGroupStrategyOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1586 i := len(dAtA)
1587 _ = i
1588 var l int
1589 _ = l
1590 if len(m.Ranges) > 0 {
1591 for iNdEx := len(m.Ranges) - 1; iNdEx >= 0; iNdEx-- {
1592 {
1593 size, err := m.Ranges[iNdEx].MarshalToSizedBuffer(dAtA[:i])
1594 if err != nil {
1595 return 0, err
1596 }
1597 i -= size
1598 i = encodeVarintGenerated(dAtA, i, uint64(size))
1599 }
1600 i--
1601 dAtA[i] = 0x12
1602 }
1603 }
1604 i -= len(m.Rule)
1605 copy(dAtA[i:], m.Rule)
1606 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Rule)))
1607 i--
1608 dAtA[i] = 0xa
1609 return len(dAtA) - i, nil
1610}
1611
1612func (m *RunAsUserStrategyOptions) Marshal() (dAtA []byte, err error) {
1613 size := m.Size()
1614 dAtA = make([]byte, size)
1615 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1616 if err != nil {
1617 return nil, err
1618 }
1619 return dAtA[:n], nil
1620}
1621
1622func (m *RunAsUserStrategyOptions) MarshalTo(dAtA []byte) (int, error) {
1623 size := m.Size()
1624 return m.MarshalToSizedBuffer(dAtA[:size])
1625}
1626
1627func (m *RunAsUserStrategyOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1628 i := len(dAtA)
1629 _ = i
1630 var l int
1631 _ = l
1632 if len(m.Ranges) > 0 {
1633 for iNdEx := len(m.Ranges) - 1; iNdEx >= 0; iNdEx-- {
1634 {
1635 size, err := m.Ranges[iNdEx].MarshalToSizedBuffer(dAtA[:i])
1636 if err != nil {
1637 return 0, err
1638 }
1639 i -= size
1640 i = encodeVarintGenerated(dAtA, i, uint64(size))
1641 }
1642 i--
1643 dAtA[i] = 0x12
1644 }
1645 }
1646 i -= len(m.Rule)
1647 copy(dAtA[i:], m.Rule)
1648 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Rule)))
1649 i--
1650 dAtA[i] = 0xa
1651 return len(dAtA) - i, nil
1652}
1653
1654func (m *RuntimeClassStrategyOptions) Marshal() (dAtA []byte, err error) {
1655 size := m.Size()
1656 dAtA = make([]byte, size)
1657 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1658 if err != nil {
1659 return nil, err
1660 }
1661 return dAtA[:n], nil
1662}
1663
1664func (m *RuntimeClassStrategyOptions) MarshalTo(dAtA []byte) (int, error) {
1665 size := m.Size()
1666 return m.MarshalToSizedBuffer(dAtA[:size])
1667}
1668
1669func (m *RuntimeClassStrategyOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1670 i := len(dAtA)
1671 _ = i
1672 var l int
1673 _ = l
1674 if m.DefaultRuntimeClassName != nil {
1675 i -= len(*m.DefaultRuntimeClassName)
1676 copy(dAtA[i:], *m.DefaultRuntimeClassName)
1677 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.DefaultRuntimeClassName)))
1678 i--
1679 dAtA[i] = 0x12
1680 }
1681 if len(m.AllowedRuntimeClassNames) > 0 {
1682 for iNdEx := len(m.AllowedRuntimeClassNames) - 1; iNdEx >= 0; iNdEx-- {
1683 i -= len(m.AllowedRuntimeClassNames[iNdEx])
1684 copy(dAtA[i:], m.AllowedRuntimeClassNames[iNdEx])
1685 i = encodeVarintGenerated(dAtA, i, uint64(len(m.AllowedRuntimeClassNames[iNdEx])))
1686 i--
1687 dAtA[i] = 0xa
1688 }
1689 }
1690 return len(dAtA) - i, nil
1691}
1692
1693func (m *SELinuxStrategyOptions) Marshal() (dAtA []byte, err error) {
1694 size := m.Size()
1695 dAtA = make([]byte, size)
1696 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1697 if err != nil {
1698 return nil, err
1699 }
1700 return dAtA[:n], nil
1701}
1702
1703func (m *SELinuxStrategyOptions) MarshalTo(dAtA []byte) (int, error) {
1704 size := m.Size()
1705 return m.MarshalToSizedBuffer(dAtA[:size])
1706}
1707
1708func (m *SELinuxStrategyOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1709 i := len(dAtA)
1710 _ = i
1711 var l int
1712 _ = l
1713 if m.SELinuxOptions != nil {
1714 {
1715 size, err := m.SELinuxOptions.MarshalToSizedBuffer(dAtA[:i])
1716 if err != nil {
1717 return 0, err
1718 }
1719 i -= size
1720 i = encodeVarintGenerated(dAtA, i, uint64(size))
1721 }
1722 i--
1723 dAtA[i] = 0x12
1724 }
1725 i -= len(m.Rule)
1726 copy(dAtA[i:], m.Rule)
1727 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Rule)))
1728 i--
1729 dAtA[i] = 0xa
1730 return len(dAtA) - i, nil
1731}
1732
1733func (m *SupplementalGroupsStrategyOptions) Marshal() (dAtA []byte, err error) {
1734 size := m.Size()
1735 dAtA = make([]byte, size)
1736 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1737 if err != nil {
1738 return nil, err
1739 }
1740 return dAtA[:n], nil
1741}
1742
1743func (m *SupplementalGroupsStrategyOptions) MarshalTo(dAtA []byte) (int, error) {
1744 size := m.Size()
1745 return m.MarshalToSizedBuffer(dAtA[:size])
1746}
1747
1748func (m *SupplementalGroupsStrategyOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1749 i := len(dAtA)
1750 _ = i
1751 var l int
1752 _ = l
1753 if len(m.Ranges) > 0 {
1754 for iNdEx := len(m.Ranges) - 1; iNdEx >= 0; iNdEx-- {
1755 {
1756 size, err := m.Ranges[iNdEx].MarshalToSizedBuffer(dAtA[:i])
1757 if err != nil {
1758 return 0, err
1759 }
1760 i -= size
1761 i = encodeVarintGenerated(dAtA, i, uint64(size))
1762 }
1763 i--
1764 dAtA[i] = 0x12
1765 }
1766 }
1767 i -= len(m.Rule)
1768 copy(dAtA[i:], m.Rule)
1769 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Rule)))
1770 i--
1771 dAtA[i] = 0xa
1772 return len(dAtA) - i, nil
1773}
1774
1775func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
1776 offset -= sovGenerated(v)
1777 base := offset
1778 for v >= 1<<7 {
1779 dAtA[offset] = uint8(v&0x7f | 0x80)
1780 v >>= 7
1781 offset++
1782 }
1783 dAtA[offset] = uint8(v)
1784 return base
1785}
1786func (m *AllowedCSIDriver) Size() (n int) {
1787 if m == nil {
1788 return 0
1789 }
1790 var l int
1791 _ = l
1792 l = len(m.Name)
1793 n += 1 + l + sovGenerated(uint64(l))
1794 return n
1795}
1796
1797func (m *AllowedFlexVolume) Size() (n int) {
1798 if m == nil {
1799 return 0
1800 }
1801 var l int
1802 _ = l
1803 l = len(m.Driver)
1804 n += 1 + l + sovGenerated(uint64(l))
1805 return n
1806}
1807
1808func (m *AllowedHostPath) Size() (n int) {
1809 if m == nil {
1810 return 0
1811 }
1812 var l int
1813 _ = l
1814 l = len(m.PathPrefix)
1815 n += 1 + l + sovGenerated(uint64(l))
1816 n += 2
1817 return n
1818}
1819
1820func (m *Eviction) Size() (n int) {
1821 if m == nil {
1822 return 0
1823 }
1824 var l int
1825 _ = l
1826 l = m.ObjectMeta.Size()
1827 n += 1 + l + sovGenerated(uint64(l))
1828 if m.DeleteOptions != nil {
1829 l = m.DeleteOptions.Size()
1830 n += 1 + l + sovGenerated(uint64(l))
1831 }
1832 return n
1833}
1834
1835func (m *FSGroupStrategyOptions) Size() (n int) {
1836 if m == nil {
1837 return 0
1838 }
1839 var l int
1840 _ = l
1841 l = len(m.Rule)
1842 n += 1 + l + sovGenerated(uint64(l))
1843 if len(m.Ranges) > 0 {
1844 for _, e := range m.Ranges {
1845 l = e.Size()
1846 n += 1 + l + sovGenerated(uint64(l))
1847 }
1848 }
1849 return n
1850}
1851
1852func (m *HostPortRange) Size() (n int) {
1853 if m == nil {
1854 return 0
1855 }
1856 var l int
1857 _ = l
1858 n += 1 + sovGenerated(uint64(m.Min))
1859 n += 1 + sovGenerated(uint64(m.Max))
1860 return n
1861}
1862
1863func (m *IDRange) Size() (n int) {
1864 if m == nil {
1865 return 0
1866 }
1867 var l int
1868 _ = l
1869 n += 1 + sovGenerated(uint64(m.Min))
1870 n += 1 + sovGenerated(uint64(m.Max))
1871 return n
1872}
1873
1874func (m *PodDisruptionBudget) Size() (n int) {
1875 if m == nil {
1876 return 0
1877 }
1878 var l int
1879 _ = l
1880 l = m.ObjectMeta.Size()
1881 n += 1 + l + sovGenerated(uint64(l))
1882 l = m.Spec.Size()
1883 n += 1 + l + sovGenerated(uint64(l))
1884 l = m.Status.Size()
1885 n += 1 + l + sovGenerated(uint64(l))
1886 return n
1887}
1888
1889func (m *PodDisruptionBudgetList) Size() (n int) {
1890 if m == nil {
1891 return 0
1892 }
1893 var l int
1894 _ = l
1895 l = m.ListMeta.Size()
1896 n += 1 + l + sovGenerated(uint64(l))
1897 if len(m.Items) > 0 {
1898 for _, e := range m.Items {
1899 l = e.Size()
1900 n += 1 + l + sovGenerated(uint64(l))
1901 }
1902 }
1903 return n
1904}
1905
1906func (m *PodDisruptionBudgetSpec) Size() (n int) {
1907 if m == nil {
1908 return 0
1909 }
1910 var l int
1911 _ = l
1912 if m.MinAvailable != nil {
1913 l = m.MinAvailable.Size()
1914 n += 1 + l + sovGenerated(uint64(l))
1915 }
1916 if m.Selector != nil {
1917 l = m.Selector.Size()
1918 n += 1 + l + sovGenerated(uint64(l))
1919 }
1920 if m.MaxUnavailable != nil {
1921 l = m.MaxUnavailable.Size()
1922 n += 1 + l + sovGenerated(uint64(l))
1923 }
1924 return n
1925}
1926
1927func (m *PodDisruptionBudgetStatus) Size() (n int) {
1928 if m == nil {
1929 return 0
1930 }
1931 var l int
1932 _ = l
1933 n += 1 + sovGenerated(uint64(m.ObservedGeneration))
1934 if len(m.DisruptedPods) > 0 {
1935 for k, v := range m.DisruptedPods {
1936 _ = k
1937 _ = v
1938 l = v.Size()
1939 mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
1940 n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
1941 }
1942 }
1943 n += 1 + sovGenerated(uint64(m.DisruptionsAllowed))
1944 n += 1 + sovGenerated(uint64(m.CurrentHealthy))
1945 n += 1 + sovGenerated(uint64(m.DesiredHealthy))
1946 n += 1 + sovGenerated(uint64(m.ExpectedPods))
1947 return n
1948}
1949
1950func (m *PodSecurityPolicy) Size() (n int) {
1951 if m == nil {
1952 return 0
1953 }
1954 var l int
1955 _ = l
1956 l = m.ObjectMeta.Size()
1957 n += 1 + l + sovGenerated(uint64(l))
1958 l = m.Spec.Size()
1959 n += 1 + l + sovGenerated(uint64(l))
1960 return n
1961}
1962
1963func (m *PodSecurityPolicyList) Size() (n int) {
1964 if m == nil {
1965 return 0
1966 }
1967 var l int
1968 _ = l
1969 l = m.ListMeta.Size()
1970 n += 1 + l + sovGenerated(uint64(l))
1971 if len(m.Items) > 0 {
1972 for _, e := range m.Items {
1973 l = e.Size()
1974 n += 1 + l + sovGenerated(uint64(l))
1975 }
1976 }
1977 return n
1978}
1979
1980func (m *PodSecurityPolicySpec) Size() (n int) {
1981 if m == nil {
1982 return 0
1983 }
1984 var l int
1985 _ = l
1986 n += 2
1987 if len(m.DefaultAddCapabilities) > 0 {
1988 for _, s := range m.DefaultAddCapabilities {
1989 l = len(s)
1990 n += 1 + l + sovGenerated(uint64(l))
1991 }
1992 }
1993 if len(m.RequiredDropCapabilities) > 0 {
1994 for _, s := range m.RequiredDropCapabilities {
1995 l = len(s)
1996 n += 1 + l + sovGenerated(uint64(l))
1997 }
1998 }
1999 if len(m.AllowedCapabilities) > 0 {
2000 for _, s := range m.AllowedCapabilities {
2001 l = len(s)
2002 n += 1 + l + sovGenerated(uint64(l))
2003 }
2004 }
2005 if len(m.Volumes) > 0 {
2006 for _, s := range m.Volumes {
2007 l = len(s)
2008 n += 1 + l + sovGenerated(uint64(l))
2009 }
2010 }
2011 n += 2
2012 if len(m.HostPorts) > 0 {
2013 for _, e := range m.HostPorts {
2014 l = e.Size()
2015 n += 1 + l + sovGenerated(uint64(l))
2016 }
2017 }
2018 n += 2
2019 n += 2
2020 l = m.SELinux.Size()
2021 n += 1 + l + sovGenerated(uint64(l))
2022 l = m.RunAsUser.Size()
2023 n += 1 + l + sovGenerated(uint64(l))
2024 l = m.SupplementalGroups.Size()
2025 n += 1 + l + sovGenerated(uint64(l))
2026 l = m.FSGroup.Size()
2027 n += 1 + l + sovGenerated(uint64(l))
2028 n += 2
2029 if m.DefaultAllowPrivilegeEscalation != nil {
2030 n += 2
2031 }
2032 if m.AllowPrivilegeEscalation != nil {
2033 n += 3
2034 }
2035 if len(m.AllowedHostPaths) > 0 {
2036 for _, e := range m.AllowedHostPaths {
2037 l = e.Size()
2038 n += 2 + l + sovGenerated(uint64(l))
2039 }
2040 }
2041 if len(m.AllowedFlexVolumes) > 0 {
2042 for _, e := range m.AllowedFlexVolumes {
2043 l = e.Size()
2044 n += 2 + l + sovGenerated(uint64(l))
2045 }
2046 }
2047 if len(m.AllowedUnsafeSysctls) > 0 {
2048 for _, s := range m.AllowedUnsafeSysctls {
2049 l = len(s)
2050 n += 2 + l + sovGenerated(uint64(l))
2051 }
2052 }
2053 if len(m.ForbiddenSysctls) > 0 {
2054 for _, s := range m.ForbiddenSysctls {
2055 l = len(s)
2056 n += 2 + l + sovGenerated(uint64(l))
2057 }
2058 }
2059 if len(m.AllowedProcMountTypes) > 0 {
2060 for _, s := range m.AllowedProcMountTypes {
2061 l = len(s)
2062 n += 2 + l + sovGenerated(uint64(l))
2063 }
2064 }
2065 if m.RunAsGroup != nil {
2066 l = m.RunAsGroup.Size()
2067 n += 2 + l + sovGenerated(uint64(l))
2068 }
2069 if len(m.AllowedCSIDrivers) > 0 {
2070 for _, e := range m.AllowedCSIDrivers {
2071 l = e.Size()
2072 n += 2 + l + sovGenerated(uint64(l))
2073 }
2074 }
2075 if m.RuntimeClass != nil {
2076 l = m.RuntimeClass.Size()
2077 n += 2 + l + sovGenerated(uint64(l))
2078 }
2079 return n
2080}
2081
2082func (m *RunAsGroupStrategyOptions) Size() (n int) {
2083 if m == nil {
2084 return 0
2085 }
2086 var l int
2087 _ = l
2088 l = len(m.Rule)
2089 n += 1 + l + sovGenerated(uint64(l))
2090 if len(m.Ranges) > 0 {
2091 for _, e := range m.Ranges {
2092 l = e.Size()
2093 n += 1 + l + sovGenerated(uint64(l))
2094 }
2095 }
2096 return n
2097}
2098
2099func (m *RunAsUserStrategyOptions) Size() (n int) {
2100 if m == nil {
2101 return 0
2102 }
2103 var l int
2104 _ = l
2105 l = len(m.Rule)
2106 n += 1 + l + sovGenerated(uint64(l))
2107 if len(m.Ranges) > 0 {
2108 for _, e := range m.Ranges {
2109 l = e.Size()
2110 n += 1 + l + sovGenerated(uint64(l))
2111 }
2112 }
2113 return n
2114}
2115
2116func (m *RuntimeClassStrategyOptions) Size() (n int) {
2117 if m == nil {
2118 return 0
2119 }
2120 var l int
2121 _ = l
2122 if len(m.AllowedRuntimeClassNames) > 0 {
2123 for _, s := range m.AllowedRuntimeClassNames {
2124 l = len(s)
2125 n += 1 + l + sovGenerated(uint64(l))
2126 }
2127 }
2128 if m.DefaultRuntimeClassName != nil {
2129 l = len(*m.DefaultRuntimeClassName)
2130 n += 1 + l + sovGenerated(uint64(l))
2131 }
2132 return n
2133}
2134
2135func (m *SELinuxStrategyOptions) Size() (n int) {
2136 if m == nil {
2137 return 0
2138 }
2139 var l int
2140 _ = l
2141 l = len(m.Rule)
2142 n += 1 + l + sovGenerated(uint64(l))
2143 if m.SELinuxOptions != nil {
2144 l = m.SELinuxOptions.Size()
2145 n += 1 + l + sovGenerated(uint64(l))
2146 }
2147 return n
2148}
2149
2150func (m *SupplementalGroupsStrategyOptions) Size() (n int) {
2151 if m == nil {
2152 return 0
2153 }
2154 var l int
2155 _ = l
2156 l = len(m.Rule)
2157 n += 1 + l + sovGenerated(uint64(l))
2158 if len(m.Ranges) > 0 {
2159 for _, e := range m.Ranges {
2160 l = e.Size()
2161 n += 1 + l + sovGenerated(uint64(l))
2162 }
2163 }
2164 return n
2165}
2166
2167func sovGenerated(x uint64) (n int) {
2168 return (math_bits.Len64(x|1) + 6) / 7
2169}
2170func sozGenerated(x uint64) (n int) {
2171 return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
2172}
2173func (this *AllowedCSIDriver) String() string {
2174 if this == nil {
2175 return "nil"
2176 }
2177 s := strings.Join([]string{`&AllowedCSIDriver{`,
2178 `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
2179 `}`,
2180 }, "")
2181 return s
2182}
2183func (this *AllowedFlexVolume) String() string {
2184 if this == nil {
2185 return "nil"
2186 }
2187 s := strings.Join([]string{`&AllowedFlexVolume{`,
2188 `Driver:` + fmt.Sprintf("%v", this.Driver) + `,`,
2189 `}`,
2190 }, "")
2191 return s
2192}
2193func (this *AllowedHostPath) String() string {
2194 if this == nil {
2195 return "nil"
2196 }
2197 s := strings.Join([]string{`&AllowedHostPath{`,
2198 `PathPrefix:` + fmt.Sprintf("%v", this.PathPrefix) + `,`,
2199 `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`,
2200 `}`,
2201 }, "")
2202 return s
2203}
2204func (this *Eviction) String() string {
2205 if this == nil {
2206 return "nil"
2207 }
2208 s := strings.Join([]string{`&Eviction{`,
2209 `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
2210 `DeleteOptions:` + strings.Replace(fmt.Sprintf("%v", this.DeleteOptions), "DeleteOptions", "v1.DeleteOptions", 1) + `,`,
2211 `}`,
2212 }, "")
2213 return s
2214}
2215func (this *FSGroupStrategyOptions) String() string {
2216 if this == nil {
2217 return "nil"
2218 }
2219 repeatedStringForRanges := "[]IDRange{"
2220 for _, f := range this.Ranges {
2221 repeatedStringForRanges += strings.Replace(strings.Replace(f.String(), "IDRange", "IDRange", 1), `&`, ``, 1) + ","
2222 }
2223 repeatedStringForRanges += "}"
2224 s := strings.Join([]string{`&FSGroupStrategyOptions{`,
2225 `Rule:` + fmt.Sprintf("%v", this.Rule) + `,`,
2226 `Ranges:` + repeatedStringForRanges + `,`,
2227 `}`,
2228 }, "")
2229 return s
2230}
2231func (this *HostPortRange) String() string {
2232 if this == nil {
2233 return "nil"
2234 }
2235 s := strings.Join([]string{`&HostPortRange{`,
2236 `Min:` + fmt.Sprintf("%v", this.Min) + `,`,
2237 `Max:` + fmt.Sprintf("%v", this.Max) + `,`,
2238 `}`,
2239 }, "")
2240 return s
2241}
2242func (this *IDRange) String() string {
2243 if this == nil {
2244 return "nil"
2245 }
2246 s := strings.Join([]string{`&IDRange{`,
2247 `Min:` + fmt.Sprintf("%v", this.Min) + `,`,
2248 `Max:` + fmt.Sprintf("%v", this.Max) + `,`,
2249 `}`,
2250 }, "")
2251 return s
2252}
2253func (this *PodDisruptionBudget) String() string {
2254 if this == nil {
2255 return "nil"
2256 }
2257 s := strings.Join([]string{`&PodDisruptionBudget{`,
2258 `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
2259 `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PodDisruptionBudgetSpec", "PodDisruptionBudgetSpec", 1), `&`, ``, 1) + `,`,
2260 `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PodDisruptionBudgetStatus", "PodDisruptionBudgetStatus", 1), `&`, ``, 1) + `,`,
2261 `}`,
2262 }, "")
2263 return s
2264}
2265func (this *PodDisruptionBudgetList) String() string {
2266 if this == nil {
2267 return "nil"
2268 }
2269 repeatedStringForItems := "[]PodDisruptionBudget{"
2270 for _, f := range this.Items {
2271 repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "PodDisruptionBudget", "PodDisruptionBudget", 1), `&`, ``, 1) + ","
2272 }
2273 repeatedStringForItems += "}"
2274 s := strings.Join([]string{`&PodDisruptionBudgetList{`,
2275 `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
2276 `Items:` + repeatedStringForItems + `,`,
2277 `}`,
2278 }, "")
2279 return s
2280}
2281func (this *PodDisruptionBudgetSpec) String() string {
2282 if this == nil {
2283 return "nil"
2284 }
2285 s := strings.Join([]string{`&PodDisruptionBudgetSpec{`,
2286 `MinAvailable:` + strings.Replace(fmt.Sprintf("%v", this.MinAvailable), "IntOrString", "intstr.IntOrString", 1) + `,`,
2287 `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`,
2288 `MaxUnavailable:` + strings.Replace(fmt.Sprintf("%v", this.MaxUnavailable), "IntOrString", "intstr.IntOrString", 1) + `,`,
2289 `}`,
2290 }, "")
2291 return s
2292}
2293func (this *PodDisruptionBudgetStatus) String() string {
2294 if this == nil {
2295 return "nil"
2296 }
2297 keysForDisruptedPods := make([]string, 0, len(this.DisruptedPods))
2298 for k := range this.DisruptedPods {
2299 keysForDisruptedPods = append(keysForDisruptedPods, k)
2300 }
2301 github_com_gogo_protobuf_sortkeys.Strings(keysForDisruptedPods)
2302 mapStringForDisruptedPods := "map[string]v1.Time{"
2303 for _, k := range keysForDisruptedPods {
2304 mapStringForDisruptedPods += fmt.Sprintf("%v: %v,", k, this.DisruptedPods[k])
2305 }
2306 mapStringForDisruptedPods += "}"
2307 s := strings.Join([]string{`&PodDisruptionBudgetStatus{`,
2308 `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`,
2309 `DisruptedPods:` + mapStringForDisruptedPods + `,`,
2310 `DisruptionsAllowed:` + fmt.Sprintf("%v", this.DisruptionsAllowed) + `,`,
2311 `CurrentHealthy:` + fmt.Sprintf("%v", this.CurrentHealthy) + `,`,
2312 `DesiredHealthy:` + fmt.Sprintf("%v", this.DesiredHealthy) + `,`,
2313 `ExpectedPods:` + fmt.Sprintf("%v", this.ExpectedPods) + `,`,
2314 `}`,
2315 }, "")
2316 return s
2317}
2318func (this *PodSecurityPolicy) String() string {
2319 if this == nil {
2320 return "nil"
2321 }
2322 s := strings.Join([]string{`&PodSecurityPolicy{`,
2323 `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
2324 `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PodSecurityPolicySpec", "PodSecurityPolicySpec", 1), `&`, ``, 1) + `,`,
2325 `}`,
2326 }, "")
2327 return s
2328}
2329func (this *PodSecurityPolicyList) String() string {
2330 if this == nil {
2331 return "nil"
2332 }
2333 repeatedStringForItems := "[]PodSecurityPolicy{"
2334 for _, f := range this.Items {
2335 repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "PodSecurityPolicy", "PodSecurityPolicy", 1), `&`, ``, 1) + ","
2336 }
2337 repeatedStringForItems += "}"
2338 s := strings.Join([]string{`&PodSecurityPolicyList{`,
2339 `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
2340 `Items:` + repeatedStringForItems + `,`,
2341 `}`,
2342 }, "")
2343 return s
2344}
2345func (this *PodSecurityPolicySpec) String() string {
2346 if this == nil {
2347 return "nil"
2348 }
2349 repeatedStringForHostPorts := "[]HostPortRange{"
2350 for _, f := range this.HostPorts {
2351 repeatedStringForHostPorts += strings.Replace(strings.Replace(f.String(), "HostPortRange", "HostPortRange", 1), `&`, ``, 1) + ","
2352 }
2353 repeatedStringForHostPorts += "}"
2354 repeatedStringForAllowedHostPaths := "[]AllowedHostPath{"
2355 for _, f := range this.AllowedHostPaths {
2356 repeatedStringForAllowedHostPaths += strings.Replace(strings.Replace(f.String(), "AllowedHostPath", "AllowedHostPath", 1), `&`, ``, 1) + ","
2357 }
2358 repeatedStringForAllowedHostPaths += "}"
2359 repeatedStringForAllowedFlexVolumes := "[]AllowedFlexVolume{"
2360 for _, f := range this.AllowedFlexVolumes {
2361 repeatedStringForAllowedFlexVolumes += strings.Replace(strings.Replace(f.String(), "AllowedFlexVolume", "AllowedFlexVolume", 1), `&`, ``, 1) + ","
2362 }
2363 repeatedStringForAllowedFlexVolumes += "}"
2364 repeatedStringForAllowedCSIDrivers := "[]AllowedCSIDriver{"
2365 for _, f := range this.AllowedCSIDrivers {
2366 repeatedStringForAllowedCSIDrivers += strings.Replace(strings.Replace(f.String(), "AllowedCSIDriver", "AllowedCSIDriver", 1), `&`, ``, 1) + ","
2367 }
2368 repeatedStringForAllowedCSIDrivers += "}"
2369 s := strings.Join([]string{`&PodSecurityPolicySpec{`,
2370 `Privileged:` + fmt.Sprintf("%v", this.Privileged) + `,`,
2371 `DefaultAddCapabilities:` + fmt.Sprintf("%v", this.DefaultAddCapabilities) + `,`,
2372 `RequiredDropCapabilities:` + fmt.Sprintf("%v", this.RequiredDropCapabilities) + `,`,
2373 `AllowedCapabilities:` + fmt.Sprintf("%v", this.AllowedCapabilities) + `,`,
2374 `Volumes:` + fmt.Sprintf("%v", this.Volumes) + `,`,
2375 `HostNetwork:` + fmt.Sprintf("%v", this.HostNetwork) + `,`,
2376 `HostPorts:` + repeatedStringForHostPorts + `,`,
2377 `HostPID:` + fmt.Sprintf("%v", this.HostPID) + `,`,
2378 `HostIPC:` + fmt.Sprintf("%v", this.HostIPC) + `,`,
2379 `SELinux:` + strings.Replace(strings.Replace(this.SELinux.String(), "SELinuxStrategyOptions", "SELinuxStrategyOptions", 1), `&`, ``, 1) + `,`,
2380 `RunAsUser:` + strings.Replace(strings.Replace(this.RunAsUser.String(), "RunAsUserStrategyOptions", "RunAsUserStrategyOptions", 1), `&`, ``, 1) + `,`,
2381 `SupplementalGroups:` + strings.Replace(strings.Replace(this.SupplementalGroups.String(), "SupplementalGroupsStrategyOptions", "SupplementalGroupsStrategyOptions", 1), `&`, ``, 1) + `,`,
2382 `FSGroup:` + strings.Replace(strings.Replace(this.FSGroup.String(), "FSGroupStrategyOptions", "FSGroupStrategyOptions", 1), `&`, ``, 1) + `,`,
2383 `ReadOnlyRootFilesystem:` + fmt.Sprintf("%v", this.ReadOnlyRootFilesystem) + `,`,
2384 `DefaultAllowPrivilegeEscalation:` + valueToStringGenerated(this.DefaultAllowPrivilegeEscalation) + `,`,
2385 `AllowPrivilegeEscalation:` + valueToStringGenerated(this.AllowPrivilegeEscalation) + `,`,
2386 `AllowedHostPaths:` + repeatedStringForAllowedHostPaths + `,`,
2387 `AllowedFlexVolumes:` + repeatedStringForAllowedFlexVolumes + `,`,
2388 `AllowedUnsafeSysctls:` + fmt.Sprintf("%v", this.AllowedUnsafeSysctls) + `,`,
2389 `ForbiddenSysctls:` + fmt.Sprintf("%v", this.ForbiddenSysctls) + `,`,
2390 `AllowedProcMountTypes:` + fmt.Sprintf("%v", this.AllowedProcMountTypes) + `,`,
2391 `RunAsGroup:` + strings.Replace(this.RunAsGroup.String(), "RunAsGroupStrategyOptions", "RunAsGroupStrategyOptions", 1) + `,`,
2392 `AllowedCSIDrivers:` + repeatedStringForAllowedCSIDrivers + `,`,
2393 `RuntimeClass:` + strings.Replace(this.RuntimeClass.String(), "RuntimeClassStrategyOptions", "RuntimeClassStrategyOptions", 1) + `,`,
2394 `}`,
2395 }, "")
2396 return s
2397}
2398func (this *RunAsGroupStrategyOptions) String() string {
2399 if this == nil {
2400 return "nil"
2401 }
2402 repeatedStringForRanges := "[]IDRange{"
2403 for _, f := range this.Ranges {
2404 repeatedStringForRanges += strings.Replace(strings.Replace(f.String(), "IDRange", "IDRange", 1), `&`, ``, 1) + ","
2405 }
2406 repeatedStringForRanges += "}"
2407 s := strings.Join([]string{`&RunAsGroupStrategyOptions{`,
2408 `Rule:` + fmt.Sprintf("%v", this.Rule) + `,`,
2409 `Ranges:` + repeatedStringForRanges + `,`,
2410 `}`,
2411 }, "")
2412 return s
2413}
2414func (this *RunAsUserStrategyOptions) String() string {
2415 if this == nil {
2416 return "nil"
2417 }
2418 repeatedStringForRanges := "[]IDRange{"
2419 for _, f := range this.Ranges {
2420 repeatedStringForRanges += strings.Replace(strings.Replace(f.String(), "IDRange", "IDRange", 1), `&`, ``, 1) + ","
2421 }
2422 repeatedStringForRanges += "}"
2423 s := strings.Join([]string{`&RunAsUserStrategyOptions{`,
2424 `Rule:` + fmt.Sprintf("%v", this.Rule) + `,`,
2425 `Ranges:` + repeatedStringForRanges + `,`,
2426 `}`,
2427 }, "")
2428 return s
2429}
2430func (this *RuntimeClassStrategyOptions) String() string {
2431 if this == nil {
2432 return "nil"
2433 }
2434 s := strings.Join([]string{`&RuntimeClassStrategyOptions{`,
2435 `AllowedRuntimeClassNames:` + fmt.Sprintf("%v", this.AllowedRuntimeClassNames) + `,`,
2436 `DefaultRuntimeClassName:` + valueToStringGenerated(this.DefaultRuntimeClassName) + `,`,
2437 `}`,
2438 }, "")
2439 return s
2440}
2441func (this *SELinuxStrategyOptions) String() string {
2442 if this == nil {
2443 return "nil"
2444 }
2445 s := strings.Join([]string{`&SELinuxStrategyOptions{`,
2446 `Rule:` + fmt.Sprintf("%v", this.Rule) + `,`,
2447 `SELinuxOptions:` + strings.Replace(fmt.Sprintf("%v", this.SELinuxOptions), "SELinuxOptions", "v11.SELinuxOptions", 1) + `,`,
2448 `}`,
2449 }, "")
2450 return s
2451}
2452func (this *SupplementalGroupsStrategyOptions) String() string {
2453 if this == nil {
2454 return "nil"
2455 }
2456 repeatedStringForRanges := "[]IDRange{"
2457 for _, f := range this.Ranges {
2458 repeatedStringForRanges += strings.Replace(strings.Replace(f.String(), "IDRange", "IDRange", 1), `&`, ``, 1) + ","
2459 }
2460 repeatedStringForRanges += "}"
2461 s := strings.Join([]string{`&SupplementalGroupsStrategyOptions{`,
2462 `Rule:` + fmt.Sprintf("%v", this.Rule) + `,`,
2463 `Ranges:` + repeatedStringForRanges + `,`,
2464 `}`,
2465 }, "")
2466 return s
2467}
2468func valueToStringGenerated(v interface{}) string {
2469 rv := reflect.ValueOf(v)
2470 if rv.IsNil() {
2471 return "nil"
2472 }
2473 pv := reflect.Indirect(rv).Interface()
2474 return fmt.Sprintf("*%v", pv)
2475}
2476func (m *AllowedCSIDriver) Unmarshal(dAtA []byte) error {
2477 l := len(dAtA)
2478 iNdEx := 0
2479 for iNdEx < l {
2480 preIndex := iNdEx
2481 var wire uint64
2482 for shift := uint(0); ; shift += 7 {
2483 if shift >= 64 {
2484 return ErrIntOverflowGenerated
2485 }
2486 if iNdEx >= l {
2487 return io.ErrUnexpectedEOF
2488 }
2489 b := dAtA[iNdEx]
2490 iNdEx++
2491 wire |= uint64(b&0x7F) << shift
2492 if b < 0x80 {
2493 break
2494 }
2495 }
2496 fieldNum := int32(wire >> 3)
2497 wireType := int(wire & 0x7)
2498 if wireType == 4 {
2499 return fmt.Errorf("proto: AllowedCSIDriver: wiretype end group for non-group")
2500 }
2501 if fieldNum <= 0 {
2502 return fmt.Errorf("proto: AllowedCSIDriver: illegal tag %d (wire type %d)", fieldNum, wire)
2503 }
2504 switch fieldNum {
2505 case 1:
2506 if wireType != 2 {
2507 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
2508 }
2509 var stringLen uint64
2510 for shift := uint(0); ; shift += 7 {
2511 if shift >= 64 {
2512 return ErrIntOverflowGenerated
2513 }
2514 if iNdEx >= l {
2515 return io.ErrUnexpectedEOF
2516 }
2517 b := dAtA[iNdEx]
2518 iNdEx++
2519 stringLen |= uint64(b&0x7F) << shift
2520 if b < 0x80 {
2521 break
2522 }
2523 }
2524 intStringLen := int(stringLen)
2525 if intStringLen < 0 {
2526 return ErrInvalidLengthGenerated
2527 }
2528 postIndex := iNdEx + intStringLen
2529 if postIndex < 0 {
2530 return ErrInvalidLengthGenerated
2531 }
2532 if postIndex > l {
2533 return io.ErrUnexpectedEOF
2534 }
2535 m.Name = string(dAtA[iNdEx:postIndex])
2536 iNdEx = postIndex
2537 default:
2538 iNdEx = preIndex
2539 skippy, err := skipGenerated(dAtA[iNdEx:])
2540 if err != nil {
2541 return err
2542 }
2543 if skippy < 0 {
2544 return ErrInvalidLengthGenerated
2545 }
2546 if (iNdEx + skippy) < 0 {
2547 return ErrInvalidLengthGenerated
2548 }
2549 if (iNdEx + skippy) > l {
2550 return io.ErrUnexpectedEOF
2551 }
2552 iNdEx += skippy
2553 }
2554 }
2555
2556 if iNdEx > l {
2557 return io.ErrUnexpectedEOF
2558 }
2559 return nil
2560}
2561func (m *AllowedFlexVolume) Unmarshal(dAtA []byte) error {
2562 l := len(dAtA)
2563 iNdEx := 0
2564 for iNdEx < l {
2565 preIndex := iNdEx
2566 var wire uint64
2567 for shift := uint(0); ; shift += 7 {
2568 if shift >= 64 {
2569 return ErrIntOverflowGenerated
2570 }
2571 if iNdEx >= l {
2572 return io.ErrUnexpectedEOF
2573 }
2574 b := dAtA[iNdEx]
2575 iNdEx++
2576 wire |= uint64(b&0x7F) << shift
2577 if b < 0x80 {
2578 break
2579 }
2580 }
2581 fieldNum := int32(wire >> 3)
2582 wireType := int(wire & 0x7)
2583 if wireType == 4 {
2584 return fmt.Errorf("proto: AllowedFlexVolume: wiretype end group for non-group")
2585 }
2586 if fieldNum <= 0 {
2587 return fmt.Errorf("proto: AllowedFlexVolume: illegal tag %d (wire type %d)", fieldNum, wire)
2588 }
2589 switch fieldNum {
2590 case 1:
2591 if wireType != 2 {
2592 return fmt.Errorf("proto: wrong wireType = %d for field Driver", wireType)
2593 }
2594 var stringLen uint64
2595 for shift := uint(0); ; shift += 7 {
2596 if shift >= 64 {
2597 return ErrIntOverflowGenerated
2598 }
2599 if iNdEx >= l {
2600 return io.ErrUnexpectedEOF
2601 }
2602 b := dAtA[iNdEx]
2603 iNdEx++
2604 stringLen |= uint64(b&0x7F) << shift
2605 if b < 0x80 {
2606 break
2607 }
2608 }
2609 intStringLen := int(stringLen)
2610 if intStringLen < 0 {
2611 return ErrInvalidLengthGenerated
2612 }
2613 postIndex := iNdEx + intStringLen
2614 if postIndex < 0 {
2615 return ErrInvalidLengthGenerated
2616 }
2617 if postIndex > l {
2618 return io.ErrUnexpectedEOF
2619 }
2620 m.Driver = string(dAtA[iNdEx:postIndex])
2621 iNdEx = postIndex
2622 default:
2623 iNdEx = preIndex
2624 skippy, err := skipGenerated(dAtA[iNdEx:])
2625 if err != nil {
2626 return err
2627 }
2628 if skippy < 0 {
2629 return ErrInvalidLengthGenerated
2630 }
2631 if (iNdEx + skippy) < 0 {
2632 return ErrInvalidLengthGenerated
2633 }
2634 if (iNdEx + skippy) > l {
2635 return io.ErrUnexpectedEOF
2636 }
2637 iNdEx += skippy
2638 }
2639 }
2640
2641 if iNdEx > l {
2642 return io.ErrUnexpectedEOF
2643 }
2644 return nil
2645}
2646func (m *AllowedHostPath) Unmarshal(dAtA []byte) error {
2647 l := len(dAtA)
2648 iNdEx := 0
2649 for iNdEx < l {
2650 preIndex := iNdEx
2651 var wire uint64
2652 for shift := uint(0); ; shift += 7 {
2653 if shift >= 64 {
2654 return ErrIntOverflowGenerated
2655 }
2656 if iNdEx >= l {
2657 return io.ErrUnexpectedEOF
2658 }
2659 b := dAtA[iNdEx]
2660 iNdEx++
2661 wire |= uint64(b&0x7F) << shift
2662 if b < 0x80 {
2663 break
2664 }
2665 }
2666 fieldNum := int32(wire >> 3)
2667 wireType := int(wire & 0x7)
2668 if wireType == 4 {
2669 return fmt.Errorf("proto: AllowedHostPath: wiretype end group for non-group")
2670 }
2671 if fieldNum <= 0 {
2672 return fmt.Errorf("proto: AllowedHostPath: illegal tag %d (wire type %d)", fieldNum, wire)
2673 }
2674 switch fieldNum {
2675 case 1:
2676 if wireType != 2 {
2677 return fmt.Errorf("proto: wrong wireType = %d for field PathPrefix", wireType)
2678 }
2679 var stringLen uint64
2680 for shift := uint(0); ; shift += 7 {
2681 if shift >= 64 {
2682 return ErrIntOverflowGenerated
2683 }
2684 if iNdEx >= l {
2685 return io.ErrUnexpectedEOF
2686 }
2687 b := dAtA[iNdEx]
2688 iNdEx++
2689 stringLen |= uint64(b&0x7F) << shift
2690 if b < 0x80 {
2691 break
2692 }
2693 }
2694 intStringLen := int(stringLen)
2695 if intStringLen < 0 {
2696 return ErrInvalidLengthGenerated
2697 }
2698 postIndex := iNdEx + intStringLen
2699 if postIndex < 0 {
2700 return ErrInvalidLengthGenerated
2701 }
2702 if postIndex > l {
2703 return io.ErrUnexpectedEOF
2704 }
2705 m.PathPrefix = string(dAtA[iNdEx:postIndex])
2706 iNdEx = postIndex
2707 case 2:
2708 if wireType != 0 {
2709 return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType)
2710 }
2711 var v int
2712 for shift := uint(0); ; shift += 7 {
2713 if shift >= 64 {
2714 return ErrIntOverflowGenerated
2715 }
2716 if iNdEx >= l {
2717 return io.ErrUnexpectedEOF
2718 }
2719 b := dAtA[iNdEx]
2720 iNdEx++
2721 v |= int(b&0x7F) << shift
2722 if b < 0x80 {
2723 break
2724 }
2725 }
2726 m.ReadOnly = bool(v != 0)
2727 default:
2728 iNdEx = preIndex
2729 skippy, err := skipGenerated(dAtA[iNdEx:])
2730 if err != nil {
2731 return err
2732 }
2733 if skippy < 0 {
2734 return ErrInvalidLengthGenerated
2735 }
2736 if (iNdEx + skippy) < 0 {
2737 return ErrInvalidLengthGenerated
2738 }
2739 if (iNdEx + skippy) > l {
2740 return io.ErrUnexpectedEOF
2741 }
2742 iNdEx += skippy
2743 }
2744 }
2745
2746 if iNdEx > l {
2747 return io.ErrUnexpectedEOF
2748 }
2749 return nil
2750}
2751func (m *Eviction) Unmarshal(dAtA []byte) error {
2752 l := len(dAtA)
2753 iNdEx := 0
2754 for iNdEx < l {
2755 preIndex := iNdEx
2756 var wire uint64
2757 for shift := uint(0); ; shift += 7 {
2758 if shift >= 64 {
2759 return ErrIntOverflowGenerated
2760 }
2761 if iNdEx >= l {
2762 return io.ErrUnexpectedEOF
2763 }
2764 b := dAtA[iNdEx]
2765 iNdEx++
2766 wire |= uint64(b&0x7F) << shift
2767 if b < 0x80 {
2768 break
2769 }
2770 }
2771 fieldNum := int32(wire >> 3)
2772 wireType := int(wire & 0x7)
2773 if wireType == 4 {
2774 return fmt.Errorf("proto: Eviction: wiretype end group for non-group")
2775 }
2776 if fieldNum <= 0 {
2777 return fmt.Errorf("proto: Eviction: illegal tag %d (wire type %d)", fieldNum, wire)
2778 }
2779 switch fieldNum {
2780 case 1:
2781 if wireType != 2 {
2782 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
2783 }
2784 var msglen int
2785 for shift := uint(0); ; shift += 7 {
2786 if shift >= 64 {
2787 return ErrIntOverflowGenerated
2788 }
2789 if iNdEx >= l {
2790 return io.ErrUnexpectedEOF
2791 }
2792 b := dAtA[iNdEx]
2793 iNdEx++
2794 msglen |= int(b&0x7F) << shift
2795 if b < 0x80 {
2796 break
2797 }
2798 }
2799 if msglen < 0 {
2800 return ErrInvalidLengthGenerated
2801 }
2802 postIndex := iNdEx + msglen
2803 if postIndex < 0 {
2804 return ErrInvalidLengthGenerated
2805 }
2806 if postIndex > l {
2807 return io.ErrUnexpectedEOF
2808 }
2809 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2810 return err
2811 }
2812 iNdEx = postIndex
2813 case 2:
2814 if wireType != 2 {
2815 return fmt.Errorf("proto: wrong wireType = %d for field DeleteOptions", wireType)
2816 }
2817 var msglen int
2818 for shift := uint(0); ; shift += 7 {
2819 if shift >= 64 {
2820 return ErrIntOverflowGenerated
2821 }
2822 if iNdEx >= l {
2823 return io.ErrUnexpectedEOF
2824 }
2825 b := dAtA[iNdEx]
2826 iNdEx++
2827 msglen |= int(b&0x7F) << shift
2828 if b < 0x80 {
2829 break
2830 }
2831 }
2832 if msglen < 0 {
2833 return ErrInvalidLengthGenerated
2834 }
2835 postIndex := iNdEx + msglen
2836 if postIndex < 0 {
2837 return ErrInvalidLengthGenerated
2838 }
2839 if postIndex > l {
2840 return io.ErrUnexpectedEOF
2841 }
2842 if m.DeleteOptions == nil {
2843 m.DeleteOptions = &v1.DeleteOptions{}
2844 }
2845 if err := m.DeleteOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2846 return err
2847 }
2848 iNdEx = postIndex
2849 default:
2850 iNdEx = preIndex
2851 skippy, err := skipGenerated(dAtA[iNdEx:])
2852 if err != nil {
2853 return err
2854 }
2855 if skippy < 0 {
2856 return ErrInvalidLengthGenerated
2857 }
2858 if (iNdEx + skippy) < 0 {
2859 return ErrInvalidLengthGenerated
2860 }
2861 if (iNdEx + skippy) > l {
2862 return io.ErrUnexpectedEOF
2863 }
2864 iNdEx += skippy
2865 }
2866 }
2867
2868 if iNdEx > l {
2869 return io.ErrUnexpectedEOF
2870 }
2871 return nil
2872}
2873func (m *FSGroupStrategyOptions) Unmarshal(dAtA []byte) error {
2874 l := len(dAtA)
2875 iNdEx := 0
2876 for iNdEx < l {
2877 preIndex := iNdEx
2878 var wire uint64
2879 for shift := uint(0); ; shift += 7 {
2880 if shift >= 64 {
2881 return ErrIntOverflowGenerated
2882 }
2883 if iNdEx >= l {
2884 return io.ErrUnexpectedEOF
2885 }
2886 b := dAtA[iNdEx]
2887 iNdEx++
2888 wire |= uint64(b&0x7F) << shift
2889 if b < 0x80 {
2890 break
2891 }
2892 }
2893 fieldNum := int32(wire >> 3)
2894 wireType := int(wire & 0x7)
2895 if wireType == 4 {
2896 return fmt.Errorf("proto: FSGroupStrategyOptions: wiretype end group for non-group")
2897 }
2898 if fieldNum <= 0 {
2899 return fmt.Errorf("proto: FSGroupStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire)
2900 }
2901 switch fieldNum {
2902 case 1:
2903 if wireType != 2 {
2904 return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType)
2905 }
2906 var stringLen uint64
2907 for shift := uint(0); ; shift += 7 {
2908 if shift >= 64 {
2909 return ErrIntOverflowGenerated
2910 }
2911 if iNdEx >= l {
2912 return io.ErrUnexpectedEOF
2913 }
2914 b := dAtA[iNdEx]
2915 iNdEx++
2916 stringLen |= uint64(b&0x7F) << shift
2917 if b < 0x80 {
2918 break
2919 }
2920 }
2921 intStringLen := int(stringLen)
2922 if intStringLen < 0 {
2923 return ErrInvalidLengthGenerated
2924 }
2925 postIndex := iNdEx + intStringLen
2926 if postIndex < 0 {
2927 return ErrInvalidLengthGenerated
2928 }
2929 if postIndex > l {
2930 return io.ErrUnexpectedEOF
2931 }
2932 m.Rule = FSGroupStrategyType(dAtA[iNdEx:postIndex])
2933 iNdEx = postIndex
2934 case 2:
2935 if wireType != 2 {
2936 return fmt.Errorf("proto: wrong wireType = %d for field Ranges", wireType)
2937 }
2938 var msglen int
2939 for shift := uint(0); ; shift += 7 {
2940 if shift >= 64 {
2941 return ErrIntOverflowGenerated
2942 }
2943 if iNdEx >= l {
2944 return io.ErrUnexpectedEOF
2945 }
2946 b := dAtA[iNdEx]
2947 iNdEx++
2948 msglen |= int(b&0x7F) << shift
2949 if b < 0x80 {
2950 break
2951 }
2952 }
2953 if msglen < 0 {
2954 return ErrInvalidLengthGenerated
2955 }
2956 postIndex := iNdEx + msglen
2957 if postIndex < 0 {
2958 return ErrInvalidLengthGenerated
2959 }
2960 if postIndex > l {
2961 return io.ErrUnexpectedEOF
2962 }
2963 m.Ranges = append(m.Ranges, IDRange{})
2964 if err := m.Ranges[len(m.Ranges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2965 return err
2966 }
2967 iNdEx = postIndex
2968 default:
2969 iNdEx = preIndex
2970 skippy, err := skipGenerated(dAtA[iNdEx:])
2971 if err != nil {
2972 return err
2973 }
2974 if skippy < 0 {
2975 return ErrInvalidLengthGenerated
2976 }
2977 if (iNdEx + skippy) < 0 {
2978 return ErrInvalidLengthGenerated
2979 }
2980 if (iNdEx + skippy) > l {
2981 return io.ErrUnexpectedEOF
2982 }
2983 iNdEx += skippy
2984 }
2985 }
2986
2987 if iNdEx > l {
2988 return io.ErrUnexpectedEOF
2989 }
2990 return nil
2991}
2992func (m *HostPortRange) Unmarshal(dAtA []byte) error {
2993 l := len(dAtA)
2994 iNdEx := 0
2995 for iNdEx < l {
2996 preIndex := iNdEx
2997 var wire uint64
2998 for shift := uint(0); ; shift += 7 {
2999 if shift >= 64 {
3000 return ErrIntOverflowGenerated
3001 }
3002 if iNdEx >= l {
3003 return io.ErrUnexpectedEOF
3004 }
3005 b := dAtA[iNdEx]
3006 iNdEx++
3007 wire |= uint64(b&0x7F) << shift
3008 if b < 0x80 {
3009 break
3010 }
3011 }
3012 fieldNum := int32(wire >> 3)
3013 wireType := int(wire & 0x7)
3014 if wireType == 4 {
3015 return fmt.Errorf("proto: HostPortRange: wiretype end group for non-group")
3016 }
3017 if fieldNum <= 0 {
3018 return fmt.Errorf("proto: HostPortRange: illegal tag %d (wire type %d)", fieldNum, wire)
3019 }
3020 switch fieldNum {
3021 case 1:
3022 if wireType != 0 {
3023 return fmt.Errorf("proto: wrong wireType = %d for field Min", wireType)
3024 }
3025 m.Min = 0
3026 for shift := uint(0); ; shift += 7 {
3027 if shift >= 64 {
3028 return ErrIntOverflowGenerated
3029 }
3030 if iNdEx >= l {
3031 return io.ErrUnexpectedEOF
3032 }
3033 b := dAtA[iNdEx]
3034 iNdEx++
3035 m.Min |= int32(b&0x7F) << shift
3036 if b < 0x80 {
3037 break
3038 }
3039 }
3040 case 2:
3041 if wireType != 0 {
3042 return fmt.Errorf("proto: wrong wireType = %d for field Max", wireType)
3043 }
3044 m.Max = 0
3045 for shift := uint(0); ; shift += 7 {
3046 if shift >= 64 {
3047 return ErrIntOverflowGenerated
3048 }
3049 if iNdEx >= l {
3050 return io.ErrUnexpectedEOF
3051 }
3052 b := dAtA[iNdEx]
3053 iNdEx++
3054 m.Max |= int32(b&0x7F) << shift
3055 if b < 0x80 {
3056 break
3057 }
3058 }
3059 default:
3060 iNdEx = preIndex
3061 skippy, err := skipGenerated(dAtA[iNdEx:])
3062 if err != nil {
3063 return err
3064 }
3065 if skippy < 0 {
3066 return ErrInvalidLengthGenerated
3067 }
3068 if (iNdEx + skippy) < 0 {
3069 return ErrInvalidLengthGenerated
3070 }
3071 if (iNdEx + skippy) > l {
3072 return io.ErrUnexpectedEOF
3073 }
3074 iNdEx += skippy
3075 }
3076 }
3077
3078 if iNdEx > l {
3079 return io.ErrUnexpectedEOF
3080 }
3081 return nil
3082}
3083func (m *IDRange) Unmarshal(dAtA []byte) error {
3084 l := len(dAtA)
3085 iNdEx := 0
3086 for iNdEx < l {
3087 preIndex := iNdEx
3088 var wire uint64
3089 for shift := uint(0); ; shift += 7 {
3090 if shift >= 64 {
3091 return ErrIntOverflowGenerated
3092 }
3093 if iNdEx >= l {
3094 return io.ErrUnexpectedEOF
3095 }
3096 b := dAtA[iNdEx]
3097 iNdEx++
3098 wire |= uint64(b&0x7F) << shift
3099 if b < 0x80 {
3100 break
3101 }
3102 }
3103 fieldNum := int32(wire >> 3)
3104 wireType := int(wire & 0x7)
3105 if wireType == 4 {
3106 return fmt.Errorf("proto: IDRange: wiretype end group for non-group")
3107 }
3108 if fieldNum <= 0 {
3109 return fmt.Errorf("proto: IDRange: illegal tag %d (wire type %d)", fieldNum, wire)
3110 }
3111 switch fieldNum {
3112 case 1:
3113 if wireType != 0 {
3114 return fmt.Errorf("proto: wrong wireType = %d for field Min", wireType)
3115 }
3116 m.Min = 0
3117 for shift := uint(0); ; shift += 7 {
3118 if shift >= 64 {
3119 return ErrIntOverflowGenerated
3120 }
3121 if iNdEx >= l {
3122 return io.ErrUnexpectedEOF
3123 }
3124 b := dAtA[iNdEx]
3125 iNdEx++
3126 m.Min |= int64(b&0x7F) << shift
3127 if b < 0x80 {
3128 break
3129 }
3130 }
3131 case 2:
3132 if wireType != 0 {
3133 return fmt.Errorf("proto: wrong wireType = %d for field Max", wireType)
3134 }
3135 m.Max = 0
3136 for shift := uint(0); ; shift += 7 {
3137 if shift >= 64 {
3138 return ErrIntOverflowGenerated
3139 }
3140 if iNdEx >= l {
3141 return io.ErrUnexpectedEOF
3142 }
3143 b := dAtA[iNdEx]
3144 iNdEx++
3145 m.Max |= int64(b&0x7F) << shift
3146 if b < 0x80 {
3147 break
3148 }
3149 }
3150 default:
3151 iNdEx = preIndex
3152 skippy, err := skipGenerated(dAtA[iNdEx:])
3153 if err != nil {
3154 return err
3155 }
3156 if skippy < 0 {
3157 return ErrInvalidLengthGenerated
3158 }
3159 if (iNdEx + skippy) < 0 {
3160 return ErrInvalidLengthGenerated
3161 }
3162 if (iNdEx + skippy) > l {
3163 return io.ErrUnexpectedEOF
3164 }
3165 iNdEx += skippy
3166 }
3167 }
3168
3169 if iNdEx > l {
3170 return io.ErrUnexpectedEOF
3171 }
3172 return nil
3173}
3174func (m *PodDisruptionBudget) Unmarshal(dAtA []byte) error {
3175 l := len(dAtA)
3176 iNdEx := 0
3177 for iNdEx < l {
3178 preIndex := iNdEx
3179 var wire uint64
3180 for shift := uint(0); ; shift += 7 {
3181 if shift >= 64 {
3182 return ErrIntOverflowGenerated
3183 }
3184 if iNdEx >= l {
3185 return io.ErrUnexpectedEOF
3186 }
3187 b := dAtA[iNdEx]
3188 iNdEx++
3189 wire |= uint64(b&0x7F) << shift
3190 if b < 0x80 {
3191 break
3192 }
3193 }
3194 fieldNum := int32(wire >> 3)
3195 wireType := int(wire & 0x7)
3196 if wireType == 4 {
3197 return fmt.Errorf("proto: PodDisruptionBudget: wiretype end group for non-group")
3198 }
3199 if fieldNum <= 0 {
3200 return fmt.Errorf("proto: PodDisruptionBudget: illegal tag %d (wire type %d)", fieldNum, wire)
3201 }
3202 switch fieldNum {
3203 case 1:
3204 if wireType != 2 {
3205 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
3206 }
3207 var msglen int
3208 for shift := uint(0); ; shift += 7 {
3209 if shift >= 64 {
3210 return ErrIntOverflowGenerated
3211 }
3212 if iNdEx >= l {
3213 return io.ErrUnexpectedEOF
3214 }
3215 b := dAtA[iNdEx]
3216 iNdEx++
3217 msglen |= int(b&0x7F) << shift
3218 if b < 0x80 {
3219 break
3220 }
3221 }
3222 if msglen < 0 {
3223 return ErrInvalidLengthGenerated
3224 }
3225 postIndex := iNdEx + msglen
3226 if postIndex < 0 {
3227 return ErrInvalidLengthGenerated
3228 }
3229 if postIndex > l {
3230 return io.ErrUnexpectedEOF
3231 }
3232 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3233 return err
3234 }
3235 iNdEx = postIndex
3236 case 2:
3237 if wireType != 2 {
3238 return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
3239 }
3240 var msglen int
3241 for shift := uint(0); ; shift += 7 {
3242 if shift >= 64 {
3243 return ErrIntOverflowGenerated
3244 }
3245 if iNdEx >= l {
3246 return io.ErrUnexpectedEOF
3247 }
3248 b := dAtA[iNdEx]
3249 iNdEx++
3250 msglen |= int(b&0x7F) << shift
3251 if b < 0x80 {
3252 break
3253 }
3254 }
3255 if msglen < 0 {
3256 return ErrInvalidLengthGenerated
3257 }
3258 postIndex := iNdEx + msglen
3259 if postIndex < 0 {
3260 return ErrInvalidLengthGenerated
3261 }
3262 if postIndex > l {
3263 return io.ErrUnexpectedEOF
3264 }
3265 if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3266 return err
3267 }
3268 iNdEx = postIndex
3269 case 3:
3270 if wireType != 2 {
3271 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
3272 }
3273 var msglen int
3274 for shift := uint(0); ; shift += 7 {
3275 if shift >= 64 {
3276 return ErrIntOverflowGenerated
3277 }
3278 if iNdEx >= l {
3279 return io.ErrUnexpectedEOF
3280 }
3281 b := dAtA[iNdEx]
3282 iNdEx++
3283 msglen |= int(b&0x7F) << shift
3284 if b < 0x80 {
3285 break
3286 }
3287 }
3288 if msglen < 0 {
3289 return ErrInvalidLengthGenerated
3290 }
3291 postIndex := iNdEx + msglen
3292 if postIndex < 0 {
3293 return ErrInvalidLengthGenerated
3294 }
3295 if postIndex > l {
3296 return io.ErrUnexpectedEOF
3297 }
3298 if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3299 return err
3300 }
3301 iNdEx = postIndex
3302 default:
3303 iNdEx = preIndex
3304 skippy, err := skipGenerated(dAtA[iNdEx:])
3305 if err != nil {
3306 return err
3307 }
3308 if skippy < 0 {
3309 return ErrInvalidLengthGenerated
3310 }
3311 if (iNdEx + skippy) < 0 {
3312 return ErrInvalidLengthGenerated
3313 }
3314 if (iNdEx + skippy) > l {
3315 return io.ErrUnexpectedEOF
3316 }
3317 iNdEx += skippy
3318 }
3319 }
3320
3321 if iNdEx > l {
3322 return io.ErrUnexpectedEOF
3323 }
3324 return nil
3325}
3326func (m *PodDisruptionBudgetList) Unmarshal(dAtA []byte) error {
3327 l := len(dAtA)
3328 iNdEx := 0
3329 for iNdEx < l {
3330 preIndex := iNdEx
3331 var wire uint64
3332 for shift := uint(0); ; shift += 7 {
3333 if shift >= 64 {
3334 return ErrIntOverflowGenerated
3335 }
3336 if iNdEx >= l {
3337 return io.ErrUnexpectedEOF
3338 }
3339 b := dAtA[iNdEx]
3340 iNdEx++
3341 wire |= uint64(b&0x7F) << shift
3342 if b < 0x80 {
3343 break
3344 }
3345 }
3346 fieldNum := int32(wire >> 3)
3347 wireType := int(wire & 0x7)
3348 if wireType == 4 {
3349 return fmt.Errorf("proto: PodDisruptionBudgetList: wiretype end group for non-group")
3350 }
3351 if fieldNum <= 0 {
3352 return fmt.Errorf("proto: PodDisruptionBudgetList: illegal tag %d (wire type %d)", fieldNum, wire)
3353 }
3354 switch fieldNum {
3355 case 1:
3356 if wireType != 2 {
3357 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
3358 }
3359 var msglen int
3360 for shift := uint(0); ; shift += 7 {
3361 if shift >= 64 {
3362 return ErrIntOverflowGenerated
3363 }
3364 if iNdEx >= l {
3365 return io.ErrUnexpectedEOF
3366 }
3367 b := dAtA[iNdEx]
3368 iNdEx++
3369 msglen |= int(b&0x7F) << shift
3370 if b < 0x80 {
3371 break
3372 }
3373 }
3374 if msglen < 0 {
3375 return ErrInvalidLengthGenerated
3376 }
3377 postIndex := iNdEx + msglen
3378 if postIndex < 0 {
3379 return ErrInvalidLengthGenerated
3380 }
3381 if postIndex > l {
3382 return io.ErrUnexpectedEOF
3383 }
3384 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3385 return err
3386 }
3387 iNdEx = postIndex
3388 case 2:
3389 if wireType != 2 {
3390 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
3391 }
3392 var msglen int
3393 for shift := uint(0); ; shift += 7 {
3394 if shift >= 64 {
3395 return ErrIntOverflowGenerated
3396 }
3397 if iNdEx >= l {
3398 return io.ErrUnexpectedEOF
3399 }
3400 b := dAtA[iNdEx]
3401 iNdEx++
3402 msglen |= int(b&0x7F) << shift
3403 if b < 0x80 {
3404 break
3405 }
3406 }
3407 if msglen < 0 {
3408 return ErrInvalidLengthGenerated
3409 }
3410 postIndex := iNdEx + msglen
3411 if postIndex < 0 {
3412 return ErrInvalidLengthGenerated
3413 }
3414 if postIndex > l {
3415 return io.ErrUnexpectedEOF
3416 }
3417 m.Items = append(m.Items, PodDisruptionBudget{})
3418 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3419 return err
3420 }
3421 iNdEx = postIndex
3422 default:
3423 iNdEx = preIndex
3424 skippy, err := skipGenerated(dAtA[iNdEx:])
3425 if err != nil {
3426 return err
3427 }
3428 if skippy < 0 {
3429 return ErrInvalidLengthGenerated
3430 }
3431 if (iNdEx + skippy) < 0 {
3432 return ErrInvalidLengthGenerated
3433 }
3434 if (iNdEx + skippy) > l {
3435 return io.ErrUnexpectedEOF
3436 }
3437 iNdEx += skippy
3438 }
3439 }
3440
3441 if iNdEx > l {
3442 return io.ErrUnexpectedEOF
3443 }
3444 return nil
3445}
3446func (m *PodDisruptionBudgetSpec) Unmarshal(dAtA []byte) error {
3447 l := len(dAtA)
3448 iNdEx := 0
3449 for iNdEx < l {
3450 preIndex := iNdEx
3451 var wire uint64
3452 for shift := uint(0); ; shift += 7 {
3453 if shift >= 64 {
3454 return ErrIntOverflowGenerated
3455 }
3456 if iNdEx >= l {
3457 return io.ErrUnexpectedEOF
3458 }
3459 b := dAtA[iNdEx]
3460 iNdEx++
3461 wire |= uint64(b&0x7F) << shift
3462 if b < 0x80 {
3463 break
3464 }
3465 }
3466 fieldNum := int32(wire >> 3)
3467 wireType := int(wire & 0x7)
3468 if wireType == 4 {
3469 return fmt.Errorf("proto: PodDisruptionBudgetSpec: wiretype end group for non-group")
3470 }
3471 if fieldNum <= 0 {
3472 return fmt.Errorf("proto: PodDisruptionBudgetSpec: illegal tag %d (wire type %d)", fieldNum, wire)
3473 }
3474 switch fieldNum {
3475 case 1:
3476 if wireType != 2 {
3477 return fmt.Errorf("proto: wrong wireType = %d for field MinAvailable", wireType)
3478 }
3479 var msglen int
3480 for shift := uint(0); ; shift += 7 {
3481 if shift >= 64 {
3482 return ErrIntOverflowGenerated
3483 }
3484 if iNdEx >= l {
3485 return io.ErrUnexpectedEOF
3486 }
3487 b := dAtA[iNdEx]
3488 iNdEx++
3489 msglen |= int(b&0x7F) << shift
3490 if b < 0x80 {
3491 break
3492 }
3493 }
3494 if msglen < 0 {
3495 return ErrInvalidLengthGenerated
3496 }
3497 postIndex := iNdEx + msglen
3498 if postIndex < 0 {
3499 return ErrInvalidLengthGenerated
3500 }
3501 if postIndex > l {
3502 return io.ErrUnexpectedEOF
3503 }
3504 if m.MinAvailable == nil {
3505 m.MinAvailable = &intstr.IntOrString{}
3506 }
3507 if err := m.MinAvailable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3508 return err
3509 }
3510 iNdEx = postIndex
3511 case 2:
3512 if wireType != 2 {
3513 return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
3514 }
3515 var msglen int
3516 for shift := uint(0); ; shift += 7 {
3517 if shift >= 64 {
3518 return ErrIntOverflowGenerated
3519 }
3520 if iNdEx >= l {
3521 return io.ErrUnexpectedEOF
3522 }
3523 b := dAtA[iNdEx]
3524 iNdEx++
3525 msglen |= int(b&0x7F) << shift
3526 if b < 0x80 {
3527 break
3528 }
3529 }
3530 if msglen < 0 {
3531 return ErrInvalidLengthGenerated
3532 }
3533 postIndex := iNdEx + msglen
3534 if postIndex < 0 {
3535 return ErrInvalidLengthGenerated
3536 }
3537 if postIndex > l {
3538 return io.ErrUnexpectedEOF
3539 }
3540 if m.Selector == nil {
3541 m.Selector = &v1.LabelSelector{}
3542 }
3543 if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3544 return err
3545 }
3546 iNdEx = postIndex
3547 case 3:
3548 if wireType != 2 {
3549 return fmt.Errorf("proto: wrong wireType = %d for field MaxUnavailable", wireType)
3550 }
3551 var msglen int
3552 for shift := uint(0); ; shift += 7 {
3553 if shift >= 64 {
3554 return ErrIntOverflowGenerated
3555 }
3556 if iNdEx >= l {
3557 return io.ErrUnexpectedEOF
3558 }
3559 b := dAtA[iNdEx]
3560 iNdEx++
3561 msglen |= int(b&0x7F) << shift
3562 if b < 0x80 {
3563 break
3564 }
3565 }
3566 if msglen < 0 {
3567 return ErrInvalidLengthGenerated
3568 }
3569 postIndex := iNdEx + msglen
3570 if postIndex < 0 {
3571 return ErrInvalidLengthGenerated
3572 }
3573 if postIndex > l {
3574 return io.ErrUnexpectedEOF
3575 }
3576 if m.MaxUnavailable == nil {
3577 m.MaxUnavailable = &intstr.IntOrString{}
3578 }
3579 if err := m.MaxUnavailable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3580 return err
3581 }
3582 iNdEx = postIndex
3583 default:
3584 iNdEx = preIndex
3585 skippy, err := skipGenerated(dAtA[iNdEx:])
3586 if err != nil {
3587 return err
3588 }
3589 if skippy < 0 {
3590 return ErrInvalidLengthGenerated
3591 }
3592 if (iNdEx + skippy) < 0 {
3593 return ErrInvalidLengthGenerated
3594 }
3595 if (iNdEx + skippy) > l {
3596 return io.ErrUnexpectedEOF
3597 }
3598 iNdEx += skippy
3599 }
3600 }
3601
3602 if iNdEx > l {
3603 return io.ErrUnexpectedEOF
3604 }
3605 return nil
3606}
3607func (m *PodDisruptionBudgetStatus) Unmarshal(dAtA []byte) error {
3608 l := len(dAtA)
3609 iNdEx := 0
3610 for iNdEx < l {
3611 preIndex := iNdEx
3612 var wire uint64
3613 for shift := uint(0); ; shift += 7 {
3614 if shift >= 64 {
3615 return ErrIntOverflowGenerated
3616 }
3617 if iNdEx >= l {
3618 return io.ErrUnexpectedEOF
3619 }
3620 b := dAtA[iNdEx]
3621 iNdEx++
3622 wire |= uint64(b&0x7F) << shift
3623 if b < 0x80 {
3624 break
3625 }
3626 }
3627 fieldNum := int32(wire >> 3)
3628 wireType := int(wire & 0x7)
3629 if wireType == 4 {
3630 return fmt.Errorf("proto: PodDisruptionBudgetStatus: wiretype end group for non-group")
3631 }
3632 if fieldNum <= 0 {
3633 return fmt.Errorf("proto: PodDisruptionBudgetStatus: illegal tag %d (wire type %d)", fieldNum, wire)
3634 }
3635 switch fieldNum {
3636 case 1:
3637 if wireType != 0 {
3638 return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType)
3639 }
3640 m.ObservedGeneration = 0
3641 for shift := uint(0); ; shift += 7 {
3642 if shift >= 64 {
3643 return ErrIntOverflowGenerated
3644 }
3645 if iNdEx >= l {
3646 return io.ErrUnexpectedEOF
3647 }
3648 b := dAtA[iNdEx]
3649 iNdEx++
3650 m.ObservedGeneration |= int64(b&0x7F) << shift
3651 if b < 0x80 {
3652 break
3653 }
3654 }
3655 case 2:
3656 if wireType != 2 {
3657 return fmt.Errorf("proto: wrong wireType = %d for field DisruptedPods", wireType)
3658 }
3659 var msglen int
3660 for shift := uint(0); ; shift += 7 {
3661 if shift >= 64 {
3662 return ErrIntOverflowGenerated
3663 }
3664 if iNdEx >= l {
3665 return io.ErrUnexpectedEOF
3666 }
3667 b := dAtA[iNdEx]
3668 iNdEx++
3669 msglen |= int(b&0x7F) << shift
3670 if b < 0x80 {
3671 break
3672 }
3673 }
3674 if msglen < 0 {
3675 return ErrInvalidLengthGenerated
3676 }
3677 postIndex := iNdEx + msglen
3678 if postIndex < 0 {
3679 return ErrInvalidLengthGenerated
3680 }
3681 if postIndex > l {
3682 return io.ErrUnexpectedEOF
3683 }
3684 if m.DisruptedPods == nil {
3685 m.DisruptedPods = make(map[string]v1.Time)
3686 }
3687 var mapkey string
3688 mapvalue := &v1.Time{}
3689 for iNdEx < postIndex {
3690 entryPreIndex := iNdEx
3691 var wire uint64
3692 for shift := uint(0); ; shift += 7 {
3693 if shift >= 64 {
3694 return ErrIntOverflowGenerated
3695 }
3696 if iNdEx >= l {
3697 return io.ErrUnexpectedEOF
3698 }
3699 b := dAtA[iNdEx]
3700 iNdEx++
3701 wire |= uint64(b&0x7F) << shift
3702 if b < 0x80 {
3703 break
3704 }
3705 }
3706 fieldNum := int32(wire >> 3)
3707 if fieldNum == 1 {
3708 var stringLenmapkey uint64
3709 for shift := uint(0); ; shift += 7 {
3710 if shift >= 64 {
3711 return ErrIntOverflowGenerated
3712 }
3713 if iNdEx >= l {
3714 return io.ErrUnexpectedEOF
3715 }
3716 b := dAtA[iNdEx]
3717 iNdEx++
3718 stringLenmapkey |= uint64(b&0x7F) << shift
3719 if b < 0x80 {
3720 break
3721 }
3722 }
3723 intStringLenmapkey := int(stringLenmapkey)
3724 if intStringLenmapkey < 0 {
3725 return ErrInvalidLengthGenerated
3726 }
3727 postStringIndexmapkey := iNdEx + intStringLenmapkey
3728 if postStringIndexmapkey < 0 {
3729 return ErrInvalidLengthGenerated
3730 }
3731 if postStringIndexmapkey > l {
3732 return io.ErrUnexpectedEOF
3733 }
3734 mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
3735 iNdEx = postStringIndexmapkey
3736 } else if fieldNum == 2 {
3737 var mapmsglen int
3738 for shift := uint(0); ; shift += 7 {
3739 if shift >= 64 {
3740 return ErrIntOverflowGenerated
3741 }
3742 if iNdEx >= l {
3743 return io.ErrUnexpectedEOF
3744 }
3745 b := dAtA[iNdEx]
3746 iNdEx++
3747 mapmsglen |= int(b&0x7F) << shift
3748 if b < 0x80 {
3749 break
3750 }
3751 }
3752 if mapmsglen < 0 {
3753 return ErrInvalidLengthGenerated
3754 }
3755 postmsgIndex := iNdEx + mapmsglen
3756 if postmsgIndex < 0 {
3757 return ErrInvalidLengthGenerated
3758 }
3759 if postmsgIndex > l {
3760 return io.ErrUnexpectedEOF
3761 }
3762 mapvalue = &v1.Time{}
3763 if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
3764 return err
3765 }
3766 iNdEx = postmsgIndex
3767 } else {
3768 iNdEx = entryPreIndex
3769 skippy, err := skipGenerated(dAtA[iNdEx:])
3770 if err != nil {
3771 return err
3772 }
3773 if skippy < 0 {
3774 return ErrInvalidLengthGenerated
3775 }
3776 if (iNdEx + skippy) > postIndex {
3777 return io.ErrUnexpectedEOF
3778 }
3779 iNdEx += skippy
3780 }
3781 }
3782 m.DisruptedPods[mapkey] = *mapvalue
3783 iNdEx = postIndex
3784 case 3:
3785 if wireType != 0 {
3786 return fmt.Errorf("proto: wrong wireType = %d for field DisruptionsAllowed", wireType)
3787 }
3788 m.DisruptionsAllowed = 0
3789 for shift := uint(0); ; shift += 7 {
3790 if shift >= 64 {
3791 return ErrIntOverflowGenerated
3792 }
3793 if iNdEx >= l {
3794 return io.ErrUnexpectedEOF
3795 }
3796 b := dAtA[iNdEx]
3797 iNdEx++
3798 m.DisruptionsAllowed |= int32(b&0x7F) << shift
3799 if b < 0x80 {
3800 break
3801 }
3802 }
3803 case 4:
3804 if wireType != 0 {
3805 return fmt.Errorf("proto: wrong wireType = %d for field CurrentHealthy", wireType)
3806 }
3807 m.CurrentHealthy = 0
3808 for shift := uint(0); ; shift += 7 {
3809 if shift >= 64 {
3810 return ErrIntOverflowGenerated
3811 }
3812 if iNdEx >= l {
3813 return io.ErrUnexpectedEOF
3814 }
3815 b := dAtA[iNdEx]
3816 iNdEx++
3817 m.CurrentHealthy |= int32(b&0x7F) << shift
3818 if b < 0x80 {
3819 break
3820 }
3821 }
3822 case 5:
3823 if wireType != 0 {
3824 return fmt.Errorf("proto: wrong wireType = %d for field DesiredHealthy", wireType)
3825 }
3826 m.DesiredHealthy = 0
3827 for shift := uint(0); ; shift += 7 {
3828 if shift >= 64 {
3829 return ErrIntOverflowGenerated
3830 }
3831 if iNdEx >= l {
3832 return io.ErrUnexpectedEOF
3833 }
3834 b := dAtA[iNdEx]
3835 iNdEx++
3836 m.DesiredHealthy |= int32(b&0x7F) << shift
3837 if b < 0x80 {
3838 break
3839 }
3840 }
3841 case 6:
3842 if wireType != 0 {
3843 return fmt.Errorf("proto: wrong wireType = %d for field ExpectedPods", wireType)
3844 }
3845 m.ExpectedPods = 0
3846 for shift := uint(0); ; shift += 7 {
3847 if shift >= 64 {
3848 return ErrIntOverflowGenerated
3849 }
3850 if iNdEx >= l {
3851 return io.ErrUnexpectedEOF
3852 }
3853 b := dAtA[iNdEx]
3854 iNdEx++
3855 m.ExpectedPods |= int32(b&0x7F) << shift
3856 if b < 0x80 {
3857 break
3858 }
3859 }
3860 default:
3861 iNdEx = preIndex
3862 skippy, err := skipGenerated(dAtA[iNdEx:])
3863 if err != nil {
3864 return err
3865 }
3866 if skippy < 0 {
3867 return ErrInvalidLengthGenerated
3868 }
3869 if (iNdEx + skippy) < 0 {
3870 return ErrInvalidLengthGenerated
3871 }
3872 if (iNdEx + skippy) > l {
3873 return io.ErrUnexpectedEOF
3874 }
3875 iNdEx += skippy
3876 }
3877 }
3878
3879 if iNdEx > l {
3880 return io.ErrUnexpectedEOF
3881 }
3882 return nil
3883}
3884func (m *PodSecurityPolicy) Unmarshal(dAtA []byte) error {
3885 l := len(dAtA)
3886 iNdEx := 0
3887 for iNdEx < l {
3888 preIndex := iNdEx
3889 var wire uint64
3890 for shift := uint(0); ; shift += 7 {
3891 if shift >= 64 {
3892 return ErrIntOverflowGenerated
3893 }
3894 if iNdEx >= l {
3895 return io.ErrUnexpectedEOF
3896 }
3897 b := dAtA[iNdEx]
3898 iNdEx++
3899 wire |= uint64(b&0x7F) << shift
3900 if b < 0x80 {
3901 break
3902 }
3903 }
3904 fieldNum := int32(wire >> 3)
3905 wireType := int(wire & 0x7)
3906 if wireType == 4 {
3907 return fmt.Errorf("proto: PodSecurityPolicy: wiretype end group for non-group")
3908 }
3909 if fieldNum <= 0 {
3910 return fmt.Errorf("proto: PodSecurityPolicy: illegal tag %d (wire type %d)", fieldNum, wire)
3911 }
3912 switch fieldNum {
3913 case 1:
3914 if wireType != 2 {
3915 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
3916 }
3917 var msglen int
3918 for shift := uint(0); ; shift += 7 {
3919 if shift >= 64 {
3920 return ErrIntOverflowGenerated
3921 }
3922 if iNdEx >= l {
3923 return io.ErrUnexpectedEOF
3924 }
3925 b := dAtA[iNdEx]
3926 iNdEx++
3927 msglen |= int(b&0x7F) << shift
3928 if b < 0x80 {
3929 break
3930 }
3931 }
3932 if msglen < 0 {
3933 return ErrInvalidLengthGenerated
3934 }
3935 postIndex := iNdEx + msglen
3936 if postIndex < 0 {
3937 return ErrInvalidLengthGenerated
3938 }
3939 if postIndex > l {
3940 return io.ErrUnexpectedEOF
3941 }
3942 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3943 return err
3944 }
3945 iNdEx = postIndex
3946 case 2:
3947 if wireType != 2 {
3948 return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
3949 }
3950 var msglen int
3951 for shift := uint(0); ; shift += 7 {
3952 if shift >= 64 {
3953 return ErrIntOverflowGenerated
3954 }
3955 if iNdEx >= l {
3956 return io.ErrUnexpectedEOF
3957 }
3958 b := dAtA[iNdEx]
3959 iNdEx++
3960 msglen |= int(b&0x7F) << shift
3961 if b < 0x80 {
3962 break
3963 }
3964 }
3965 if msglen < 0 {
3966 return ErrInvalidLengthGenerated
3967 }
3968 postIndex := iNdEx + msglen
3969 if postIndex < 0 {
3970 return ErrInvalidLengthGenerated
3971 }
3972 if postIndex > l {
3973 return io.ErrUnexpectedEOF
3974 }
3975 if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3976 return err
3977 }
3978 iNdEx = postIndex
3979 default:
3980 iNdEx = preIndex
3981 skippy, err := skipGenerated(dAtA[iNdEx:])
3982 if err != nil {
3983 return err
3984 }
3985 if skippy < 0 {
3986 return ErrInvalidLengthGenerated
3987 }
3988 if (iNdEx + skippy) < 0 {
3989 return ErrInvalidLengthGenerated
3990 }
3991 if (iNdEx + skippy) > l {
3992 return io.ErrUnexpectedEOF
3993 }
3994 iNdEx += skippy
3995 }
3996 }
3997
3998 if iNdEx > l {
3999 return io.ErrUnexpectedEOF
4000 }
4001 return nil
4002}
4003func (m *PodSecurityPolicyList) Unmarshal(dAtA []byte) error {
4004 l := len(dAtA)
4005 iNdEx := 0
4006 for iNdEx < l {
4007 preIndex := iNdEx
4008 var wire uint64
4009 for shift := uint(0); ; shift += 7 {
4010 if shift >= 64 {
4011 return ErrIntOverflowGenerated
4012 }
4013 if iNdEx >= l {
4014 return io.ErrUnexpectedEOF
4015 }
4016 b := dAtA[iNdEx]
4017 iNdEx++
4018 wire |= uint64(b&0x7F) << shift
4019 if b < 0x80 {
4020 break
4021 }
4022 }
4023 fieldNum := int32(wire >> 3)
4024 wireType := int(wire & 0x7)
4025 if wireType == 4 {
4026 return fmt.Errorf("proto: PodSecurityPolicyList: wiretype end group for non-group")
4027 }
4028 if fieldNum <= 0 {
4029 return fmt.Errorf("proto: PodSecurityPolicyList: illegal tag %d (wire type %d)", fieldNum, wire)
4030 }
4031 switch fieldNum {
4032 case 1:
4033 if wireType != 2 {
4034 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
4035 }
4036 var msglen int
4037 for shift := uint(0); ; shift += 7 {
4038 if shift >= 64 {
4039 return ErrIntOverflowGenerated
4040 }
4041 if iNdEx >= l {
4042 return io.ErrUnexpectedEOF
4043 }
4044 b := dAtA[iNdEx]
4045 iNdEx++
4046 msglen |= int(b&0x7F) << shift
4047 if b < 0x80 {
4048 break
4049 }
4050 }
4051 if msglen < 0 {
4052 return ErrInvalidLengthGenerated
4053 }
4054 postIndex := iNdEx + msglen
4055 if postIndex < 0 {
4056 return ErrInvalidLengthGenerated
4057 }
4058 if postIndex > l {
4059 return io.ErrUnexpectedEOF
4060 }
4061 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
4062 return err
4063 }
4064 iNdEx = postIndex
4065 case 2:
4066 if wireType != 2 {
4067 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
4068 }
4069 var msglen int
4070 for shift := uint(0); ; shift += 7 {
4071 if shift >= 64 {
4072 return ErrIntOverflowGenerated
4073 }
4074 if iNdEx >= l {
4075 return io.ErrUnexpectedEOF
4076 }
4077 b := dAtA[iNdEx]
4078 iNdEx++
4079 msglen |= int(b&0x7F) << shift
4080 if b < 0x80 {
4081 break
4082 }
4083 }
4084 if msglen < 0 {
4085 return ErrInvalidLengthGenerated
4086 }
4087 postIndex := iNdEx + msglen
4088 if postIndex < 0 {
4089 return ErrInvalidLengthGenerated
4090 }
4091 if postIndex > l {
4092 return io.ErrUnexpectedEOF
4093 }
4094 m.Items = append(m.Items, PodSecurityPolicy{})
4095 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
4096 return err
4097 }
4098 iNdEx = postIndex
4099 default:
4100 iNdEx = preIndex
4101 skippy, err := skipGenerated(dAtA[iNdEx:])
4102 if err != nil {
4103 return err
4104 }
4105 if skippy < 0 {
4106 return ErrInvalidLengthGenerated
4107 }
4108 if (iNdEx + skippy) < 0 {
4109 return ErrInvalidLengthGenerated
4110 }
4111 if (iNdEx + skippy) > l {
4112 return io.ErrUnexpectedEOF
4113 }
4114 iNdEx += skippy
4115 }
4116 }
4117
4118 if iNdEx > l {
4119 return io.ErrUnexpectedEOF
4120 }
4121 return nil
4122}
4123func (m *PodSecurityPolicySpec) Unmarshal(dAtA []byte) error {
4124 l := len(dAtA)
4125 iNdEx := 0
4126 for iNdEx < l {
4127 preIndex := iNdEx
4128 var wire uint64
4129 for shift := uint(0); ; shift += 7 {
4130 if shift >= 64 {
4131 return ErrIntOverflowGenerated
4132 }
4133 if iNdEx >= l {
4134 return io.ErrUnexpectedEOF
4135 }
4136 b := dAtA[iNdEx]
4137 iNdEx++
4138 wire |= uint64(b&0x7F) << shift
4139 if b < 0x80 {
4140 break
4141 }
4142 }
4143 fieldNum := int32(wire >> 3)
4144 wireType := int(wire & 0x7)
4145 if wireType == 4 {
4146 return fmt.Errorf("proto: PodSecurityPolicySpec: wiretype end group for non-group")
4147 }
4148 if fieldNum <= 0 {
4149 return fmt.Errorf("proto: PodSecurityPolicySpec: illegal tag %d (wire type %d)", fieldNum, wire)
4150 }
4151 switch fieldNum {
4152 case 1:
4153 if wireType != 0 {
4154 return fmt.Errorf("proto: wrong wireType = %d for field Privileged", wireType)
4155 }
4156 var v int
4157 for shift := uint(0); ; shift += 7 {
4158 if shift >= 64 {
4159 return ErrIntOverflowGenerated
4160 }
4161 if iNdEx >= l {
4162 return io.ErrUnexpectedEOF
4163 }
4164 b := dAtA[iNdEx]
4165 iNdEx++
4166 v |= int(b&0x7F) << shift
4167 if b < 0x80 {
4168 break
4169 }
4170 }
4171 m.Privileged = bool(v != 0)
4172 case 2:
4173 if wireType != 2 {
4174 return fmt.Errorf("proto: wrong wireType = %d for field DefaultAddCapabilities", wireType)
4175 }
4176 var stringLen uint64
4177 for shift := uint(0); ; shift += 7 {
4178 if shift >= 64 {
4179 return ErrIntOverflowGenerated
4180 }
4181 if iNdEx >= l {
4182 return io.ErrUnexpectedEOF
4183 }
4184 b := dAtA[iNdEx]
4185 iNdEx++
4186 stringLen |= uint64(b&0x7F) << shift
4187 if b < 0x80 {
4188 break
4189 }
4190 }
4191 intStringLen := int(stringLen)
4192 if intStringLen < 0 {
4193 return ErrInvalidLengthGenerated
4194 }
4195 postIndex := iNdEx + intStringLen
4196 if postIndex < 0 {
4197 return ErrInvalidLengthGenerated
4198 }
4199 if postIndex > l {
4200 return io.ErrUnexpectedEOF
4201 }
4202 m.DefaultAddCapabilities = append(m.DefaultAddCapabilities, k8s_io_api_core_v1.Capability(dAtA[iNdEx:postIndex]))
4203 iNdEx = postIndex
4204 case 3:
4205 if wireType != 2 {
4206 return fmt.Errorf("proto: wrong wireType = %d for field RequiredDropCapabilities", wireType)
4207 }
4208 var stringLen uint64
4209 for shift := uint(0); ; shift += 7 {
4210 if shift >= 64 {
4211 return ErrIntOverflowGenerated
4212 }
4213 if iNdEx >= l {
4214 return io.ErrUnexpectedEOF
4215 }
4216 b := dAtA[iNdEx]
4217 iNdEx++
4218 stringLen |= uint64(b&0x7F) << shift
4219 if b < 0x80 {
4220 break
4221 }
4222 }
4223 intStringLen := int(stringLen)
4224 if intStringLen < 0 {
4225 return ErrInvalidLengthGenerated
4226 }
4227 postIndex := iNdEx + intStringLen
4228 if postIndex < 0 {
4229 return ErrInvalidLengthGenerated
4230 }
4231 if postIndex > l {
4232 return io.ErrUnexpectedEOF
4233 }
4234 m.RequiredDropCapabilities = append(m.RequiredDropCapabilities, k8s_io_api_core_v1.Capability(dAtA[iNdEx:postIndex]))
4235 iNdEx = postIndex
4236 case 4:
4237 if wireType != 2 {
4238 return fmt.Errorf("proto: wrong wireType = %d for field AllowedCapabilities", wireType)
4239 }
4240 var stringLen uint64
4241 for shift := uint(0); ; shift += 7 {
4242 if shift >= 64 {
4243 return ErrIntOverflowGenerated
4244 }
4245 if iNdEx >= l {
4246 return io.ErrUnexpectedEOF
4247 }
4248 b := dAtA[iNdEx]
4249 iNdEx++
4250 stringLen |= uint64(b&0x7F) << shift
4251 if b < 0x80 {
4252 break
4253 }
4254 }
4255 intStringLen := int(stringLen)
4256 if intStringLen < 0 {
4257 return ErrInvalidLengthGenerated
4258 }
4259 postIndex := iNdEx + intStringLen
4260 if postIndex < 0 {
4261 return ErrInvalidLengthGenerated
4262 }
4263 if postIndex > l {
4264 return io.ErrUnexpectedEOF
4265 }
4266 m.AllowedCapabilities = append(m.AllowedCapabilities, k8s_io_api_core_v1.Capability(dAtA[iNdEx:postIndex]))
4267 iNdEx = postIndex
4268 case 5:
4269 if wireType != 2 {
4270 return fmt.Errorf("proto: wrong wireType = %d for field Volumes", wireType)
4271 }
4272 var stringLen uint64
4273 for shift := uint(0); ; shift += 7 {
4274 if shift >= 64 {
4275 return ErrIntOverflowGenerated
4276 }
4277 if iNdEx >= l {
4278 return io.ErrUnexpectedEOF
4279 }
4280 b := dAtA[iNdEx]
4281 iNdEx++
4282 stringLen |= uint64(b&0x7F) << shift
4283 if b < 0x80 {
4284 break
4285 }
4286 }
4287 intStringLen := int(stringLen)
4288 if intStringLen < 0 {
4289 return ErrInvalidLengthGenerated
4290 }
4291 postIndex := iNdEx + intStringLen
4292 if postIndex < 0 {
4293 return ErrInvalidLengthGenerated
4294 }
4295 if postIndex > l {
4296 return io.ErrUnexpectedEOF
4297 }
4298 m.Volumes = append(m.Volumes, FSType(dAtA[iNdEx:postIndex]))
4299 iNdEx = postIndex
4300 case 6:
4301 if wireType != 0 {
4302 return fmt.Errorf("proto: wrong wireType = %d for field HostNetwork", wireType)
4303 }
4304 var v int
4305 for shift := uint(0); ; shift += 7 {
4306 if shift >= 64 {
4307 return ErrIntOverflowGenerated
4308 }
4309 if iNdEx >= l {
4310 return io.ErrUnexpectedEOF
4311 }
4312 b := dAtA[iNdEx]
4313 iNdEx++
4314 v |= int(b&0x7F) << shift
4315 if b < 0x80 {
4316 break
4317 }
4318 }
4319 m.HostNetwork = bool(v != 0)
4320 case 7:
4321 if wireType != 2 {
4322 return fmt.Errorf("proto: wrong wireType = %d for field HostPorts", wireType)
4323 }
4324 var msglen int
4325 for shift := uint(0); ; shift += 7 {
4326 if shift >= 64 {
4327 return ErrIntOverflowGenerated
4328 }
4329 if iNdEx >= l {
4330 return io.ErrUnexpectedEOF
4331 }
4332 b := dAtA[iNdEx]
4333 iNdEx++
4334 msglen |= int(b&0x7F) << shift
4335 if b < 0x80 {
4336 break
4337 }
4338 }
4339 if msglen < 0 {
4340 return ErrInvalidLengthGenerated
4341 }
4342 postIndex := iNdEx + msglen
4343 if postIndex < 0 {
4344 return ErrInvalidLengthGenerated
4345 }
4346 if postIndex > l {
4347 return io.ErrUnexpectedEOF
4348 }
4349 m.HostPorts = append(m.HostPorts, HostPortRange{})
4350 if err := m.HostPorts[len(m.HostPorts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
4351 return err
4352 }
4353 iNdEx = postIndex
4354 case 8:
4355 if wireType != 0 {
4356 return fmt.Errorf("proto: wrong wireType = %d for field HostPID", wireType)
4357 }
4358 var v int
4359 for shift := uint(0); ; shift += 7 {
4360 if shift >= 64 {
4361 return ErrIntOverflowGenerated
4362 }
4363 if iNdEx >= l {
4364 return io.ErrUnexpectedEOF
4365 }
4366 b := dAtA[iNdEx]
4367 iNdEx++
4368 v |= int(b&0x7F) << shift
4369 if b < 0x80 {
4370 break
4371 }
4372 }
4373 m.HostPID = bool(v != 0)
4374 case 9:
4375 if wireType != 0 {
4376 return fmt.Errorf("proto: wrong wireType = %d for field HostIPC", wireType)
4377 }
4378 var v int
4379 for shift := uint(0); ; shift += 7 {
4380 if shift >= 64 {
4381 return ErrIntOverflowGenerated
4382 }
4383 if iNdEx >= l {
4384 return io.ErrUnexpectedEOF
4385 }
4386 b := dAtA[iNdEx]
4387 iNdEx++
4388 v |= int(b&0x7F) << shift
4389 if b < 0x80 {
4390 break
4391 }
4392 }
4393 m.HostIPC = bool(v != 0)
4394 case 10:
4395 if wireType != 2 {
4396 return fmt.Errorf("proto: wrong wireType = %d for field SELinux", wireType)
4397 }
4398 var msglen int
4399 for shift := uint(0); ; shift += 7 {
4400 if shift >= 64 {
4401 return ErrIntOverflowGenerated
4402 }
4403 if iNdEx >= l {
4404 return io.ErrUnexpectedEOF
4405 }
4406 b := dAtA[iNdEx]
4407 iNdEx++
4408 msglen |= int(b&0x7F) << shift
4409 if b < 0x80 {
4410 break
4411 }
4412 }
4413 if msglen < 0 {
4414 return ErrInvalidLengthGenerated
4415 }
4416 postIndex := iNdEx + msglen
4417 if postIndex < 0 {
4418 return ErrInvalidLengthGenerated
4419 }
4420 if postIndex > l {
4421 return io.ErrUnexpectedEOF
4422 }
4423 if err := m.SELinux.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
4424 return err
4425 }
4426 iNdEx = postIndex
4427 case 11:
4428 if wireType != 2 {
4429 return fmt.Errorf("proto: wrong wireType = %d for field RunAsUser", wireType)
4430 }
4431 var msglen int
4432 for shift := uint(0); ; shift += 7 {
4433 if shift >= 64 {
4434 return ErrIntOverflowGenerated
4435 }
4436 if iNdEx >= l {
4437 return io.ErrUnexpectedEOF
4438 }
4439 b := dAtA[iNdEx]
4440 iNdEx++
4441 msglen |= int(b&0x7F) << shift
4442 if b < 0x80 {
4443 break
4444 }
4445 }
4446 if msglen < 0 {
4447 return ErrInvalidLengthGenerated
4448 }
4449 postIndex := iNdEx + msglen
4450 if postIndex < 0 {
4451 return ErrInvalidLengthGenerated
4452 }
4453 if postIndex > l {
4454 return io.ErrUnexpectedEOF
4455 }
4456 if err := m.RunAsUser.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
4457 return err
4458 }
4459 iNdEx = postIndex
4460 case 12:
4461 if wireType != 2 {
4462 return fmt.Errorf("proto: wrong wireType = %d for field SupplementalGroups", wireType)
4463 }
4464 var msglen int
4465 for shift := uint(0); ; shift += 7 {
4466 if shift >= 64 {
4467 return ErrIntOverflowGenerated
4468 }
4469 if iNdEx >= l {
4470 return io.ErrUnexpectedEOF
4471 }
4472 b := dAtA[iNdEx]
4473 iNdEx++
4474 msglen |= int(b&0x7F) << shift
4475 if b < 0x80 {
4476 break
4477 }
4478 }
4479 if msglen < 0 {
4480 return ErrInvalidLengthGenerated
4481 }
4482 postIndex := iNdEx + msglen
4483 if postIndex < 0 {
4484 return ErrInvalidLengthGenerated
4485 }
4486 if postIndex > l {
4487 return io.ErrUnexpectedEOF
4488 }
4489 if err := m.SupplementalGroups.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
4490 return err
4491 }
4492 iNdEx = postIndex
4493 case 13:
4494 if wireType != 2 {
4495 return fmt.Errorf("proto: wrong wireType = %d for field FSGroup", wireType)
4496 }
4497 var msglen int
4498 for shift := uint(0); ; shift += 7 {
4499 if shift >= 64 {
4500 return ErrIntOverflowGenerated
4501 }
4502 if iNdEx >= l {
4503 return io.ErrUnexpectedEOF
4504 }
4505 b := dAtA[iNdEx]
4506 iNdEx++
4507 msglen |= int(b&0x7F) << shift
4508 if b < 0x80 {
4509 break
4510 }
4511 }
4512 if msglen < 0 {
4513 return ErrInvalidLengthGenerated
4514 }
4515 postIndex := iNdEx + msglen
4516 if postIndex < 0 {
4517 return ErrInvalidLengthGenerated
4518 }
4519 if postIndex > l {
4520 return io.ErrUnexpectedEOF
4521 }
4522 if err := m.FSGroup.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
4523 return err
4524 }
4525 iNdEx = postIndex
4526 case 14:
4527 if wireType != 0 {
4528 return fmt.Errorf("proto: wrong wireType = %d for field ReadOnlyRootFilesystem", wireType)
4529 }
4530 var v int
4531 for shift := uint(0); ; shift += 7 {
4532 if shift >= 64 {
4533 return ErrIntOverflowGenerated
4534 }
4535 if iNdEx >= l {
4536 return io.ErrUnexpectedEOF
4537 }
4538 b := dAtA[iNdEx]
4539 iNdEx++
4540 v |= int(b&0x7F) << shift
4541 if b < 0x80 {
4542 break
4543 }
4544 }
4545 m.ReadOnlyRootFilesystem = bool(v != 0)
4546 case 15:
4547 if wireType != 0 {
4548 return fmt.Errorf("proto: wrong wireType = %d for field DefaultAllowPrivilegeEscalation", wireType)
4549 }
4550 var v int
4551 for shift := uint(0); ; shift += 7 {
4552 if shift >= 64 {
4553 return ErrIntOverflowGenerated
4554 }
4555 if iNdEx >= l {
4556 return io.ErrUnexpectedEOF
4557 }
4558 b := dAtA[iNdEx]
4559 iNdEx++
4560 v |= int(b&0x7F) << shift
4561 if b < 0x80 {
4562 break
4563 }
4564 }
4565 b := bool(v != 0)
4566 m.DefaultAllowPrivilegeEscalation = &b
4567 case 16:
4568 if wireType != 0 {
4569 return fmt.Errorf("proto: wrong wireType = %d for field AllowPrivilegeEscalation", wireType)
4570 }
4571 var v int
4572 for shift := uint(0); ; shift += 7 {
4573 if shift >= 64 {
4574 return ErrIntOverflowGenerated
4575 }
4576 if iNdEx >= l {
4577 return io.ErrUnexpectedEOF
4578 }
4579 b := dAtA[iNdEx]
4580 iNdEx++
4581 v |= int(b&0x7F) << shift
4582 if b < 0x80 {
4583 break
4584 }
4585 }
4586 b := bool(v != 0)
4587 m.AllowPrivilegeEscalation = &b
4588 case 17:
4589 if wireType != 2 {
4590 return fmt.Errorf("proto: wrong wireType = %d for field AllowedHostPaths", wireType)
4591 }
4592 var msglen int
4593 for shift := uint(0); ; shift += 7 {
4594 if shift >= 64 {
4595 return ErrIntOverflowGenerated
4596 }
4597 if iNdEx >= l {
4598 return io.ErrUnexpectedEOF
4599 }
4600 b := dAtA[iNdEx]
4601 iNdEx++
4602 msglen |= int(b&0x7F) << shift
4603 if b < 0x80 {
4604 break
4605 }
4606 }
4607 if msglen < 0 {
4608 return ErrInvalidLengthGenerated
4609 }
4610 postIndex := iNdEx + msglen
4611 if postIndex < 0 {
4612 return ErrInvalidLengthGenerated
4613 }
4614 if postIndex > l {
4615 return io.ErrUnexpectedEOF
4616 }
4617 m.AllowedHostPaths = append(m.AllowedHostPaths, AllowedHostPath{})
4618 if err := m.AllowedHostPaths[len(m.AllowedHostPaths)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
4619 return err
4620 }
4621 iNdEx = postIndex
4622 case 18:
4623 if wireType != 2 {
4624 return fmt.Errorf("proto: wrong wireType = %d for field AllowedFlexVolumes", wireType)
4625 }
4626 var msglen int
4627 for shift := uint(0); ; shift += 7 {
4628 if shift >= 64 {
4629 return ErrIntOverflowGenerated
4630 }
4631 if iNdEx >= l {
4632 return io.ErrUnexpectedEOF
4633 }
4634 b := dAtA[iNdEx]
4635 iNdEx++
4636 msglen |= int(b&0x7F) << shift
4637 if b < 0x80 {
4638 break
4639 }
4640 }
4641 if msglen < 0 {
4642 return ErrInvalidLengthGenerated
4643 }
4644 postIndex := iNdEx + msglen
4645 if postIndex < 0 {
4646 return ErrInvalidLengthGenerated
4647 }
4648 if postIndex > l {
4649 return io.ErrUnexpectedEOF
4650 }
4651 m.AllowedFlexVolumes = append(m.AllowedFlexVolumes, AllowedFlexVolume{})
4652 if err := m.AllowedFlexVolumes[len(m.AllowedFlexVolumes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
4653 return err
4654 }
4655 iNdEx = postIndex
4656 case 19:
4657 if wireType != 2 {
4658 return fmt.Errorf("proto: wrong wireType = %d for field AllowedUnsafeSysctls", wireType)
4659 }
4660 var stringLen uint64
4661 for shift := uint(0); ; shift += 7 {
4662 if shift >= 64 {
4663 return ErrIntOverflowGenerated
4664 }
4665 if iNdEx >= l {
4666 return io.ErrUnexpectedEOF
4667 }
4668 b := dAtA[iNdEx]
4669 iNdEx++
4670 stringLen |= uint64(b&0x7F) << shift
4671 if b < 0x80 {
4672 break
4673 }
4674 }
4675 intStringLen := int(stringLen)
4676 if intStringLen < 0 {
4677 return ErrInvalidLengthGenerated
4678 }
4679 postIndex := iNdEx + intStringLen
4680 if postIndex < 0 {
4681 return ErrInvalidLengthGenerated
4682 }
4683 if postIndex > l {
4684 return io.ErrUnexpectedEOF
4685 }
4686 m.AllowedUnsafeSysctls = append(m.AllowedUnsafeSysctls, string(dAtA[iNdEx:postIndex]))
4687 iNdEx = postIndex
4688 case 20:
4689 if wireType != 2 {
4690 return fmt.Errorf("proto: wrong wireType = %d for field ForbiddenSysctls", wireType)
4691 }
4692 var stringLen uint64
4693 for shift := uint(0); ; shift += 7 {
4694 if shift >= 64 {
4695 return ErrIntOverflowGenerated
4696 }
4697 if iNdEx >= l {
4698 return io.ErrUnexpectedEOF
4699 }
4700 b := dAtA[iNdEx]
4701 iNdEx++
4702 stringLen |= uint64(b&0x7F) << shift
4703 if b < 0x80 {
4704 break
4705 }
4706 }
4707 intStringLen := int(stringLen)
4708 if intStringLen < 0 {
4709 return ErrInvalidLengthGenerated
4710 }
4711 postIndex := iNdEx + intStringLen
4712 if postIndex < 0 {
4713 return ErrInvalidLengthGenerated
4714 }
4715 if postIndex > l {
4716 return io.ErrUnexpectedEOF
4717 }
4718 m.ForbiddenSysctls = append(m.ForbiddenSysctls, string(dAtA[iNdEx:postIndex]))
4719 iNdEx = postIndex
4720 case 21:
4721 if wireType != 2 {
4722 return fmt.Errorf("proto: wrong wireType = %d for field AllowedProcMountTypes", wireType)
4723 }
4724 var stringLen uint64
4725 for shift := uint(0); ; shift += 7 {
4726 if shift >= 64 {
4727 return ErrIntOverflowGenerated
4728 }
4729 if iNdEx >= l {
4730 return io.ErrUnexpectedEOF
4731 }
4732 b := dAtA[iNdEx]
4733 iNdEx++
4734 stringLen |= uint64(b&0x7F) << shift
4735 if b < 0x80 {
4736 break
4737 }
4738 }
4739 intStringLen := int(stringLen)
4740 if intStringLen < 0 {
4741 return ErrInvalidLengthGenerated
4742 }
4743 postIndex := iNdEx + intStringLen
4744 if postIndex < 0 {
4745 return ErrInvalidLengthGenerated
4746 }
4747 if postIndex > l {
4748 return io.ErrUnexpectedEOF
4749 }
4750 m.AllowedProcMountTypes = append(m.AllowedProcMountTypes, k8s_io_api_core_v1.ProcMountType(dAtA[iNdEx:postIndex]))
4751 iNdEx = postIndex
4752 case 22:
4753 if wireType != 2 {
4754 return fmt.Errorf("proto: wrong wireType = %d for field RunAsGroup", wireType)
4755 }
4756 var msglen int
4757 for shift := uint(0); ; shift += 7 {
4758 if shift >= 64 {
4759 return ErrIntOverflowGenerated
4760 }
4761 if iNdEx >= l {
4762 return io.ErrUnexpectedEOF
4763 }
4764 b := dAtA[iNdEx]
4765 iNdEx++
4766 msglen |= int(b&0x7F) << shift
4767 if b < 0x80 {
4768 break
4769 }
4770 }
4771 if msglen < 0 {
4772 return ErrInvalidLengthGenerated
4773 }
4774 postIndex := iNdEx + msglen
4775 if postIndex < 0 {
4776 return ErrInvalidLengthGenerated
4777 }
4778 if postIndex > l {
4779 return io.ErrUnexpectedEOF
4780 }
4781 if m.RunAsGroup == nil {
4782 m.RunAsGroup = &RunAsGroupStrategyOptions{}
4783 }
4784 if err := m.RunAsGroup.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
4785 return err
4786 }
4787 iNdEx = postIndex
4788 case 23:
4789 if wireType != 2 {
4790 return fmt.Errorf("proto: wrong wireType = %d for field AllowedCSIDrivers", wireType)
4791 }
4792 var msglen int
4793 for shift := uint(0); ; shift += 7 {
4794 if shift >= 64 {
4795 return ErrIntOverflowGenerated
4796 }
4797 if iNdEx >= l {
4798 return io.ErrUnexpectedEOF
4799 }
4800 b := dAtA[iNdEx]
4801 iNdEx++
4802 msglen |= int(b&0x7F) << shift
4803 if b < 0x80 {
4804 break
4805 }
4806 }
4807 if msglen < 0 {
4808 return ErrInvalidLengthGenerated
4809 }
4810 postIndex := iNdEx + msglen
4811 if postIndex < 0 {
4812 return ErrInvalidLengthGenerated
4813 }
4814 if postIndex > l {
4815 return io.ErrUnexpectedEOF
4816 }
4817 m.AllowedCSIDrivers = append(m.AllowedCSIDrivers, AllowedCSIDriver{})
4818 if err := m.AllowedCSIDrivers[len(m.AllowedCSIDrivers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
4819 return err
4820 }
4821 iNdEx = postIndex
4822 case 24:
4823 if wireType != 2 {
4824 return fmt.Errorf("proto: wrong wireType = %d for field RuntimeClass", wireType)
4825 }
4826 var msglen int
4827 for shift := uint(0); ; shift += 7 {
4828 if shift >= 64 {
4829 return ErrIntOverflowGenerated
4830 }
4831 if iNdEx >= l {
4832 return io.ErrUnexpectedEOF
4833 }
4834 b := dAtA[iNdEx]
4835 iNdEx++
4836 msglen |= int(b&0x7F) << shift
4837 if b < 0x80 {
4838 break
4839 }
4840 }
4841 if msglen < 0 {
4842 return ErrInvalidLengthGenerated
4843 }
4844 postIndex := iNdEx + msglen
4845 if postIndex < 0 {
4846 return ErrInvalidLengthGenerated
4847 }
4848 if postIndex > l {
4849 return io.ErrUnexpectedEOF
4850 }
4851 if m.RuntimeClass == nil {
4852 m.RuntimeClass = &RuntimeClassStrategyOptions{}
4853 }
4854 if err := m.RuntimeClass.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
4855 return err
4856 }
4857 iNdEx = postIndex
4858 default:
4859 iNdEx = preIndex
4860 skippy, err := skipGenerated(dAtA[iNdEx:])
4861 if err != nil {
4862 return err
4863 }
4864 if skippy < 0 {
4865 return ErrInvalidLengthGenerated
4866 }
4867 if (iNdEx + skippy) < 0 {
4868 return ErrInvalidLengthGenerated
4869 }
4870 if (iNdEx + skippy) > l {
4871 return io.ErrUnexpectedEOF
4872 }
4873 iNdEx += skippy
4874 }
4875 }
4876
4877 if iNdEx > l {
4878 return io.ErrUnexpectedEOF
4879 }
4880 return nil
4881}
4882func (m *RunAsGroupStrategyOptions) Unmarshal(dAtA []byte) error {
4883 l := len(dAtA)
4884 iNdEx := 0
4885 for iNdEx < l {
4886 preIndex := iNdEx
4887 var wire uint64
4888 for shift := uint(0); ; shift += 7 {
4889 if shift >= 64 {
4890 return ErrIntOverflowGenerated
4891 }
4892 if iNdEx >= l {
4893 return io.ErrUnexpectedEOF
4894 }
4895 b := dAtA[iNdEx]
4896 iNdEx++
4897 wire |= uint64(b&0x7F) << shift
4898 if b < 0x80 {
4899 break
4900 }
4901 }
4902 fieldNum := int32(wire >> 3)
4903 wireType := int(wire & 0x7)
4904 if wireType == 4 {
4905 return fmt.Errorf("proto: RunAsGroupStrategyOptions: wiretype end group for non-group")
4906 }
4907 if fieldNum <= 0 {
4908 return fmt.Errorf("proto: RunAsGroupStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire)
4909 }
4910 switch fieldNum {
4911 case 1:
4912 if wireType != 2 {
4913 return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType)
4914 }
4915 var stringLen uint64
4916 for shift := uint(0); ; shift += 7 {
4917 if shift >= 64 {
4918 return ErrIntOverflowGenerated
4919 }
4920 if iNdEx >= l {
4921 return io.ErrUnexpectedEOF
4922 }
4923 b := dAtA[iNdEx]
4924 iNdEx++
4925 stringLen |= uint64(b&0x7F) << shift
4926 if b < 0x80 {
4927 break
4928 }
4929 }
4930 intStringLen := int(stringLen)
4931 if intStringLen < 0 {
4932 return ErrInvalidLengthGenerated
4933 }
4934 postIndex := iNdEx + intStringLen
4935 if postIndex < 0 {
4936 return ErrInvalidLengthGenerated
4937 }
4938 if postIndex > l {
4939 return io.ErrUnexpectedEOF
4940 }
4941 m.Rule = RunAsGroupStrategy(dAtA[iNdEx:postIndex])
4942 iNdEx = postIndex
4943 case 2:
4944 if wireType != 2 {
4945 return fmt.Errorf("proto: wrong wireType = %d for field Ranges", wireType)
4946 }
4947 var msglen int
4948 for shift := uint(0); ; shift += 7 {
4949 if shift >= 64 {
4950 return ErrIntOverflowGenerated
4951 }
4952 if iNdEx >= l {
4953 return io.ErrUnexpectedEOF
4954 }
4955 b := dAtA[iNdEx]
4956 iNdEx++
4957 msglen |= int(b&0x7F) << shift
4958 if b < 0x80 {
4959 break
4960 }
4961 }
4962 if msglen < 0 {
4963 return ErrInvalidLengthGenerated
4964 }
4965 postIndex := iNdEx + msglen
4966 if postIndex < 0 {
4967 return ErrInvalidLengthGenerated
4968 }
4969 if postIndex > l {
4970 return io.ErrUnexpectedEOF
4971 }
4972 m.Ranges = append(m.Ranges, IDRange{})
4973 if err := m.Ranges[len(m.Ranges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
4974 return err
4975 }
4976 iNdEx = postIndex
4977 default:
4978 iNdEx = preIndex
4979 skippy, err := skipGenerated(dAtA[iNdEx:])
4980 if err != nil {
4981 return err
4982 }
4983 if skippy < 0 {
4984 return ErrInvalidLengthGenerated
4985 }
4986 if (iNdEx + skippy) < 0 {
4987 return ErrInvalidLengthGenerated
4988 }
4989 if (iNdEx + skippy) > l {
4990 return io.ErrUnexpectedEOF
4991 }
4992 iNdEx += skippy
4993 }
4994 }
4995
4996 if iNdEx > l {
4997 return io.ErrUnexpectedEOF
4998 }
4999 return nil
5000}
5001func (m *RunAsUserStrategyOptions) Unmarshal(dAtA []byte) error {
5002 l := len(dAtA)
5003 iNdEx := 0
5004 for iNdEx < l {
5005 preIndex := iNdEx
5006 var wire uint64
5007 for shift := uint(0); ; shift += 7 {
5008 if shift >= 64 {
5009 return ErrIntOverflowGenerated
5010 }
5011 if iNdEx >= l {
5012 return io.ErrUnexpectedEOF
5013 }
5014 b := dAtA[iNdEx]
5015 iNdEx++
5016 wire |= uint64(b&0x7F) << shift
5017 if b < 0x80 {
5018 break
5019 }
5020 }
5021 fieldNum := int32(wire >> 3)
5022 wireType := int(wire & 0x7)
5023 if wireType == 4 {
5024 return fmt.Errorf("proto: RunAsUserStrategyOptions: wiretype end group for non-group")
5025 }
5026 if fieldNum <= 0 {
5027 return fmt.Errorf("proto: RunAsUserStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire)
5028 }
5029 switch fieldNum {
5030 case 1:
5031 if wireType != 2 {
5032 return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType)
5033 }
5034 var stringLen uint64
5035 for shift := uint(0); ; shift += 7 {
5036 if shift >= 64 {
5037 return ErrIntOverflowGenerated
5038 }
5039 if iNdEx >= l {
5040 return io.ErrUnexpectedEOF
5041 }
5042 b := dAtA[iNdEx]
5043 iNdEx++
5044 stringLen |= uint64(b&0x7F) << shift
5045 if b < 0x80 {
5046 break
5047 }
5048 }
5049 intStringLen := int(stringLen)
5050 if intStringLen < 0 {
5051 return ErrInvalidLengthGenerated
5052 }
5053 postIndex := iNdEx + intStringLen
5054 if postIndex < 0 {
5055 return ErrInvalidLengthGenerated
5056 }
5057 if postIndex > l {
5058 return io.ErrUnexpectedEOF
5059 }
5060 m.Rule = RunAsUserStrategy(dAtA[iNdEx:postIndex])
5061 iNdEx = postIndex
5062 case 2:
5063 if wireType != 2 {
5064 return fmt.Errorf("proto: wrong wireType = %d for field Ranges", wireType)
5065 }
5066 var msglen int
5067 for shift := uint(0); ; shift += 7 {
5068 if shift >= 64 {
5069 return ErrIntOverflowGenerated
5070 }
5071 if iNdEx >= l {
5072 return io.ErrUnexpectedEOF
5073 }
5074 b := dAtA[iNdEx]
5075 iNdEx++
5076 msglen |= int(b&0x7F) << shift
5077 if b < 0x80 {
5078 break
5079 }
5080 }
5081 if msglen < 0 {
5082 return ErrInvalidLengthGenerated
5083 }
5084 postIndex := iNdEx + msglen
5085 if postIndex < 0 {
5086 return ErrInvalidLengthGenerated
5087 }
5088 if postIndex > l {
5089 return io.ErrUnexpectedEOF
5090 }
5091 m.Ranges = append(m.Ranges, IDRange{})
5092 if err := m.Ranges[len(m.Ranges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
5093 return err
5094 }
5095 iNdEx = postIndex
5096 default:
5097 iNdEx = preIndex
5098 skippy, err := skipGenerated(dAtA[iNdEx:])
5099 if err != nil {
5100 return err
5101 }
5102 if skippy < 0 {
5103 return ErrInvalidLengthGenerated
5104 }
5105 if (iNdEx + skippy) < 0 {
5106 return ErrInvalidLengthGenerated
5107 }
5108 if (iNdEx + skippy) > l {
5109 return io.ErrUnexpectedEOF
5110 }
5111 iNdEx += skippy
5112 }
5113 }
5114
5115 if iNdEx > l {
5116 return io.ErrUnexpectedEOF
5117 }
5118 return nil
5119}
5120func (m *RuntimeClassStrategyOptions) Unmarshal(dAtA []byte) error {
5121 l := len(dAtA)
5122 iNdEx := 0
5123 for iNdEx < l {
5124 preIndex := iNdEx
5125 var wire uint64
5126 for shift := uint(0); ; shift += 7 {
5127 if shift >= 64 {
5128 return ErrIntOverflowGenerated
5129 }
5130 if iNdEx >= l {
5131 return io.ErrUnexpectedEOF
5132 }
5133 b := dAtA[iNdEx]
5134 iNdEx++
5135 wire |= uint64(b&0x7F) << shift
5136 if b < 0x80 {
5137 break
5138 }
5139 }
5140 fieldNum := int32(wire >> 3)
5141 wireType := int(wire & 0x7)
5142 if wireType == 4 {
5143 return fmt.Errorf("proto: RuntimeClassStrategyOptions: wiretype end group for non-group")
5144 }
5145 if fieldNum <= 0 {
5146 return fmt.Errorf("proto: RuntimeClassStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire)
5147 }
5148 switch fieldNum {
5149 case 1:
5150 if wireType != 2 {
5151 return fmt.Errorf("proto: wrong wireType = %d for field AllowedRuntimeClassNames", wireType)
5152 }
5153 var stringLen uint64
5154 for shift := uint(0); ; shift += 7 {
5155 if shift >= 64 {
5156 return ErrIntOverflowGenerated
5157 }
5158 if iNdEx >= l {
5159 return io.ErrUnexpectedEOF
5160 }
5161 b := dAtA[iNdEx]
5162 iNdEx++
5163 stringLen |= uint64(b&0x7F) << shift
5164 if b < 0x80 {
5165 break
5166 }
5167 }
5168 intStringLen := int(stringLen)
5169 if intStringLen < 0 {
5170 return ErrInvalidLengthGenerated
5171 }
5172 postIndex := iNdEx + intStringLen
5173 if postIndex < 0 {
5174 return ErrInvalidLengthGenerated
5175 }
5176 if postIndex > l {
5177 return io.ErrUnexpectedEOF
5178 }
5179 m.AllowedRuntimeClassNames = append(m.AllowedRuntimeClassNames, string(dAtA[iNdEx:postIndex]))
5180 iNdEx = postIndex
5181 case 2:
5182 if wireType != 2 {
5183 return fmt.Errorf("proto: wrong wireType = %d for field DefaultRuntimeClassName", wireType)
5184 }
5185 var stringLen uint64
5186 for shift := uint(0); ; shift += 7 {
5187 if shift >= 64 {
5188 return ErrIntOverflowGenerated
5189 }
5190 if iNdEx >= l {
5191 return io.ErrUnexpectedEOF
5192 }
5193 b := dAtA[iNdEx]
5194 iNdEx++
5195 stringLen |= uint64(b&0x7F) << shift
5196 if b < 0x80 {
5197 break
5198 }
5199 }
5200 intStringLen := int(stringLen)
5201 if intStringLen < 0 {
5202 return ErrInvalidLengthGenerated
5203 }
5204 postIndex := iNdEx + intStringLen
5205 if postIndex < 0 {
5206 return ErrInvalidLengthGenerated
5207 }
5208 if postIndex > l {
5209 return io.ErrUnexpectedEOF
5210 }
5211 s := string(dAtA[iNdEx:postIndex])
5212 m.DefaultRuntimeClassName = &s
5213 iNdEx = postIndex
5214 default:
5215 iNdEx = preIndex
5216 skippy, err := skipGenerated(dAtA[iNdEx:])
5217 if err != nil {
5218 return err
5219 }
5220 if skippy < 0 {
5221 return ErrInvalidLengthGenerated
5222 }
5223 if (iNdEx + skippy) < 0 {
5224 return ErrInvalidLengthGenerated
5225 }
5226 if (iNdEx + skippy) > l {
5227 return io.ErrUnexpectedEOF
5228 }
5229 iNdEx += skippy
5230 }
5231 }
5232
5233 if iNdEx > l {
5234 return io.ErrUnexpectedEOF
5235 }
5236 return nil
5237}
5238func (m *SELinuxStrategyOptions) Unmarshal(dAtA []byte) error {
5239 l := len(dAtA)
5240 iNdEx := 0
5241 for iNdEx < l {
5242 preIndex := iNdEx
5243 var wire uint64
5244 for shift := uint(0); ; shift += 7 {
5245 if shift >= 64 {
5246 return ErrIntOverflowGenerated
5247 }
5248 if iNdEx >= l {
5249 return io.ErrUnexpectedEOF
5250 }
5251 b := dAtA[iNdEx]
5252 iNdEx++
5253 wire |= uint64(b&0x7F) << shift
5254 if b < 0x80 {
5255 break
5256 }
5257 }
5258 fieldNum := int32(wire >> 3)
5259 wireType := int(wire & 0x7)
5260 if wireType == 4 {
5261 return fmt.Errorf("proto: SELinuxStrategyOptions: wiretype end group for non-group")
5262 }
5263 if fieldNum <= 0 {
5264 return fmt.Errorf("proto: SELinuxStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire)
5265 }
5266 switch fieldNum {
5267 case 1:
5268 if wireType != 2 {
5269 return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType)
5270 }
5271 var stringLen uint64
5272 for shift := uint(0); ; shift += 7 {
5273 if shift >= 64 {
5274 return ErrIntOverflowGenerated
5275 }
5276 if iNdEx >= l {
5277 return io.ErrUnexpectedEOF
5278 }
5279 b := dAtA[iNdEx]
5280 iNdEx++
5281 stringLen |= uint64(b&0x7F) << shift
5282 if b < 0x80 {
5283 break
5284 }
5285 }
5286 intStringLen := int(stringLen)
5287 if intStringLen < 0 {
5288 return ErrInvalidLengthGenerated
5289 }
5290 postIndex := iNdEx + intStringLen
5291 if postIndex < 0 {
5292 return ErrInvalidLengthGenerated
5293 }
5294 if postIndex > l {
5295 return io.ErrUnexpectedEOF
5296 }
5297 m.Rule = SELinuxStrategy(dAtA[iNdEx:postIndex])
5298 iNdEx = postIndex
5299 case 2:
5300 if wireType != 2 {
5301 return fmt.Errorf("proto: wrong wireType = %d for field SELinuxOptions", wireType)
5302 }
5303 var msglen int
5304 for shift := uint(0); ; shift += 7 {
5305 if shift >= 64 {
5306 return ErrIntOverflowGenerated
5307 }
5308 if iNdEx >= l {
5309 return io.ErrUnexpectedEOF
5310 }
5311 b := dAtA[iNdEx]
5312 iNdEx++
5313 msglen |= int(b&0x7F) << shift
5314 if b < 0x80 {
5315 break
5316 }
5317 }
5318 if msglen < 0 {
5319 return ErrInvalidLengthGenerated
5320 }
5321 postIndex := iNdEx + msglen
5322 if postIndex < 0 {
5323 return ErrInvalidLengthGenerated
5324 }
5325 if postIndex > l {
5326 return io.ErrUnexpectedEOF
5327 }
5328 if m.SELinuxOptions == nil {
5329 m.SELinuxOptions = &v11.SELinuxOptions{}
5330 }
5331 if err := m.SELinuxOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
5332 return err
5333 }
5334 iNdEx = postIndex
5335 default:
5336 iNdEx = preIndex
5337 skippy, err := skipGenerated(dAtA[iNdEx:])
5338 if err != nil {
5339 return err
5340 }
5341 if skippy < 0 {
5342 return ErrInvalidLengthGenerated
5343 }
5344 if (iNdEx + skippy) < 0 {
5345 return ErrInvalidLengthGenerated
5346 }
5347 if (iNdEx + skippy) > l {
5348 return io.ErrUnexpectedEOF
5349 }
5350 iNdEx += skippy
5351 }
5352 }
5353
5354 if iNdEx > l {
5355 return io.ErrUnexpectedEOF
5356 }
5357 return nil
5358}
5359func (m *SupplementalGroupsStrategyOptions) Unmarshal(dAtA []byte) error {
5360 l := len(dAtA)
5361 iNdEx := 0
5362 for iNdEx < l {
5363 preIndex := iNdEx
5364 var wire uint64
5365 for shift := uint(0); ; shift += 7 {
5366 if shift >= 64 {
5367 return ErrIntOverflowGenerated
5368 }
5369 if iNdEx >= l {
5370 return io.ErrUnexpectedEOF
5371 }
5372 b := dAtA[iNdEx]
5373 iNdEx++
5374 wire |= uint64(b&0x7F) << shift
5375 if b < 0x80 {
5376 break
5377 }
5378 }
5379 fieldNum := int32(wire >> 3)
5380 wireType := int(wire & 0x7)
5381 if wireType == 4 {
5382 return fmt.Errorf("proto: SupplementalGroupsStrategyOptions: wiretype end group for non-group")
5383 }
5384 if fieldNum <= 0 {
5385 return fmt.Errorf("proto: SupplementalGroupsStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire)
5386 }
5387 switch fieldNum {
5388 case 1:
5389 if wireType != 2 {
5390 return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType)
5391 }
5392 var stringLen uint64
5393 for shift := uint(0); ; shift += 7 {
5394 if shift >= 64 {
5395 return ErrIntOverflowGenerated
5396 }
5397 if iNdEx >= l {
5398 return io.ErrUnexpectedEOF
5399 }
5400 b := dAtA[iNdEx]
5401 iNdEx++
5402 stringLen |= uint64(b&0x7F) << shift
5403 if b < 0x80 {
5404 break
5405 }
5406 }
5407 intStringLen := int(stringLen)
5408 if intStringLen < 0 {
5409 return ErrInvalidLengthGenerated
5410 }
5411 postIndex := iNdEx + intStringLen
5412 if postIndex < 0 {
5413 return ErrInvalidLengthGenerated
5414 }
5415 if postIndex > l {
5416 return io.ErrUnexpectedEOF
5417 }
5418 m.Rule = SupplementalGroupsStrategyType(dAtA[iNdEx:postIndex])
5419 iNdEx = postIndex
5420 case 2:
5421 if wireType != 2 {
5422 return fmt.Errorf("proto: wrong wireType = %d for field Ranges", wireType)
5423 }
5424 var msglen int
5425 for shift := uint(0); ; shift += 7 {
5426 if shift >= 64 {
5427 return ErrIntOverflowGenerated
5428 }
5429 if iNdEx >= l {
5430 return io.ErrUnexpectedEOF
5431 }
5432 b := dAtA[iNdEx]
5433 iNdEx++
5434 msglen |= int(b&0x7F) << shift
5435 if b < 0x80 {
5436 break
5437 }
5438 }
5439 if msglen < 0 {
5440 return ErrInvalidLengthGenerated
5441 }
5442 postIndex := iNdEx + msglen
5443 if postIndex < 0 {
5444 return ErrInvalidLengthGenerated
5445 }
5446 if postIndex > l {
5447 return io.ErrUnexpectedEOF
5448 }
5449 m.Ranges = append(m.Ranges, IDRange{})
5450 if err := m.Ranges[len(m.Ranges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
5451 return err
5452 }
5453 iNdEx = postIndex
5454 default:
5455 iNdEx = preIndex
5456 skippy, err := skipGenerated(dAtA[iNdEx:])
5457 if err != nil {
5458 return err
5459 }
5460 if skippy < 0 {
5461 return ErrInvalidLengthGenerated
5462 }
5463 if (iNdEx + skippy) < 0 {
5464 return ErrInvalidLengthGenerated
5465 }
5466 if (iNdEx + skippy) > l {
5467 return io.ErrUnexpectedEOF
5468 }
5469 iNdEx += skippy
5470 }
5471 }
5472
5473 if iNdEx > l {
5474 return io.ErrUnexpectedEOF
5475 }
5476 return nil
5477}
5478func skipGenerated(dAtA []byte) (n int, err error) {
5479 l := len(dAtA)
5480 iNdEx := 0
5481 depth := 0
5482 for iNdEx < l {
5483 var wire uint64
5484 for shift := uint(0); ; shift += 7 {
5485 if shift >= 64 {
5486 return 0, ErrIntOverflowGenerated
5487 }
5488 if iNdEx >= l {
5489 return 0, io.ErrUnexpectedEOF
5490 }
5491 b := dAtA[iNdEx]
5492 iNdEx++
5493 wire |= (uint64(b) & 0x7F) << shift
5494 if b < 0x80 {
5495 break
5496 }
5497 }
5498 wireType := int(wire & 0x7)
5499 switch wireType {
5500 case 0:
5501 for shift := uint(0); ; shift += 7 {
5502 if shift >= 64 {
5503 return 0, ErrIntOverflowGenerated
5504 }
5505 if iNdEx >= l {
5506 return 0, io.ErrUnexpectedEOF
5507 }
5508 iNdEx++
5509 if dAtA[iNdEx-1] < 0x80 {
5510 break
5511 }
5512 }
5513 case 1:
5514 iNdEx += 8
5515 case 2:
5516 var length int
5517 for shift := uint(0); ; shift += 7 {
5518 if shift >= 64 {
5519 return 0, ErrIntOverflowGenerated
5520 }
5521 if iNdEx >= l {
5522 return 0, io.ErrUnexpectedEOF
5523 }
5524 b := dAtA[iNdEx]
5525 iNdEx++
5526 length |= (int(b) & 0x7F) << shift
5527 if b < 0x80 {
5528 break
5529 }
5530 }
5531 if length < 0 {
5532 return 0, ErrInvalidLengthGenerated
5533 }
5534 iNdEx += length
5535 case 3:
5536 depth++
5537 case 4:
5538 if depth == 0 {
5539 return 0, ErrUnexpectedEndOfGroupGenerated
5540 }
5541 depth--
5542 case 5:
5543 iNdEx += 4
5544 default:
5545 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
5546 }
5547 if iNdEx < 0 {
5548 return 0, ErrInvalidLengthGenerated
5549 }
5550 if depth == 0 {
5551 return iNdEx, nil
5552 }
5553 }
5554 return 0, io.ErrUnexpectedEOF
5555}
5556
5557var (
5558 ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
5559 ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
5560 ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
5561)