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