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