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