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/api/authentication/v1beta1/generated.proto |
| 19 | // DO NOT EDIT! |
| 20 | |
| 21 | /* |
| 22 | Package v1beta1 is a generated protocol buffer package. |
| 23 | |
| 24 | It is generated from these files: |
| 25 | k8s.io/kubernetes/vendor/k8s.io/api/authentication/v1beta1/generated.proto |
| 26 | |
| 27 | It has these top-level messages: |
| 28 | ExtraValue |
| 29 | TokenReview |
| 30 | TokenReviewSpec |
| 31 | TokenReviewStatus |
| 32 | UserInfo |
| 33 | */ |
| 34 | package v1beta1 |
| 35 | |
| 36 | import proto "github.com/gogo/protobuf/proto" |
| 37 | import fmt "fmt" |
| 38 | import math "math" |
| 39 | |
| 40 | import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" |
| 41 | |
| 42 | import strings "strings" |
| 43 | import reflect "reflect" |
| 44 | |
| 45 | import io "io" |
| 46 | |
| 47 | // Reference imports to suppress errors if they are not otherwise used. |
| 48 | var _ = proto.Marshal |
| 49 | var _ = fmt.Errorf |
| 50 | var _ = math.Inf |
| 51 | |
| 52 | // This is a compile-time assertion to ensure that this generated file |
| 53 | // is compatible with the proto package it is being compiled against. |
| 54 | // A compilation error at this line likely means your copy of the |
| 55 | // proto package needs to be updated. |
| 56 | const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package |
| 57 | |
| 58 | func (m *ExtraValue) Reset() { *m = ExtraValue{} } |
| 59 | func (*ExtraValue) ProtoMessage() {} |
| 60 | func (*ExtraValue) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } |
| 61 | |
| 62 | func (m *TokenReview) Reset() { *m = TokenReview{} } |
| 63 | func (*TokenReview) ProtoMessage() {} |
| 64 | func (*TokenReview) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } |
| 65 | |
| 66 | func (m *TokenReviewSpec) Reset() { *m = TokenReviewSpec{} } |
| 67 | func (*TokenReviewSpec) ProtoMessage() {} |
| 68 | func (*TokenReviewSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } |
| 69 | |
| 70 | func (m *TokenReviewStatus) Reset() { *m = TokenReviewStatus{} } |
| 71 | func (*TokenReviewStatus) ProtoMessage() {} |
| 72 | func (*TokenReviewStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } |
| 73 | |
| 74 | func (m *UserInfo) Reset() { *m = UserInfo{} } |
| 75 | func (*UserInfo) ProtoMessage() {} |
| 76 | func (*UserInfo) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } |
| 77 | |
| 78 | func init() { |
| 79 | proto.RegisterType((*ExtraValue)(nil), "k8s.io.api.authentication.v1beta1.ExtraValue") |
| 80 | proto.RegisterType((*TokenReview)(nil), "k8s.io.api.authentication.v1beta1.TokenReview") |
| 81 | proto.RegisterType((*TokenReviewSpec)(nil), "k8s.io.api.authentication.v1beta1.TokenReviewSpec") |
| 82 | proto.RegisterType((*TokenReviewStatus)(nil), "k8s.io.api.authentication.v1beta1.TokenReviewStatus") |
| 83 | proto.RegisterType((*UserInfo)(nil), "k8s.io.api.authentication.v1beta1.UserInfo") |
| 84 | } |
| 85 | func (m ExtraValue) Marshal() (dAtA []byte, err error) { |
| 86 | size := m.Size() |
| 87 | dAtA = make([]byte, size) |
| 88 | n, err := m.MarshalTo(dAtA) |
| 89 | if err != nil { |
| 90 | return nil, err |
| 91 | } |
| 92 | return dAtA[:n], nil |
| 93 | } |
| 94 | |
| 95 | func (m ExtraValue) MarshalTo(dAtA []byte) (int, error) { |
| 96 | var i int |
| 97 | _ = i |
| 98 | var l int |
| 99 | _ = l |
| 100 | if len(m) > 0 { |
| 101 | for _, s := range m { |
| 102 | dAtA[i] = 0xa |
| 103 | i++ |
| 104 | l = len(s) |
| 105 | for l >= 1<<7 { |
| 106 | dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| 107 | l >>= 7 |
| 108 | i++ |
| 109 | } |
| 110 | dAtA[i] = uint8(l) |
| 111 | i++ |
| 112 | i += copy(dAtA[i:], s) |
| 113 | } |
| 114 | } |
| 115 | return i, nil |
| 116 | } |
| 117 | |
| 118 | func (m *TokenReview) Marshal() (dAtA []byte, err error) { |
| 119 | size := m.Size() |
| 120 | dAtA = make([]byte, size) |
| 121 | n, err := m.MarshalTo(dAtA) |
| 122 | if err != nil { |
| 123 | return nil, err |
| 124 | } |
| 125 | return dAtA[:n], nil |
| 126 | } |
| 127 | |
| 128 | func (m *TokenReview) MarshalTo(dAtA []byte) (int, error) { |
| 129 | var i int |
| 130 | _ = i |
| 131 | var l int |
| 132 | _ = l |
| 133 | dAtA[i] = 0xa |
| 134 | i++ |
| 135 | i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) |
| 136 | n1, err := m.ObjectMeta.MarshalTo(dAtA[i:]) |
| 137 | if err != nil { |
| 138 | return 0, err |
| 139 | } |
| 140 | i += n1 |
| 141 | dAtA[i] = 0x12 |
| 142 | i++ |
| 143 | i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) |
| 144 | n2, err := m.Spec.MarshalTo(dAtA[i:]) |
| 145 | if err != nil { |
| 146 | return 0, err |
| 147 | } |
| 148 | i += n2 |
| 149 | dAtA[i] = 0x1a |
| 150 | i++ |
| 151 | i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) |
| 152 | n3, err := m.Status.MarshalTo(dAtA[i:]) |
| 153 | if err != nil { |
| 154 | return 0, err |
| 155 | } |
| 156 | i += n3 |
| 157 | return i, nil |
| 158 | } |
| 159 | |
| 160 | func (m *TokenReviewSpec) Marshal() (dAtA []byte, err error) { |
| 161 | size := m.Size() |
| 162 | dAtA = make([]byte, size) |
| 163 | n, err := m.MarshalTo(dAtA) |
| 164 | if err != nil { |
| 165 | return nil, err |
| 166 | } |
| 167 | return dAtA[:n], nil |
| 168 | } |
| 169 | |
| 170 | func (m *TokenReviewSpec) MarshalTo(dAtA []byte) (int, error) { |
| 171 | var i int |
| 172 | _ = i |
| 173 | var l int |
| 174 | _ = l |
| 175 | dAtA[i] = 0xa |
| 176 | i++ |
| 177 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Token))) |
| 178 | i += copy(dAtA[i:], m.Token) |
| 179 | return i, nil |
| 180 | } |
| 181 | |
| 182 | func (m *TokenReviewStatus) Marshal() (dAtA []byte, err error) { |
| 183 | size := m.Size() |
| 184 | dAtA = make([]byte, size) |
| 185 | n, err := m.MarshalTo(dAtA) |
| 186 | if err != nil { |
| 187 | return nil, err |
| 188 | } |
| 189 | return dAtA[:n], nil |
| 190 | } |
| 191 | |
| 192 | func (m *TokenReviewStatus) MarshalTo(dAtA []byte) (int, error) { |
| 193 | var i int |
| 194 | _ = i |
| 195 | var l int |
| 196 | _ = l |
| 197 | dAtA[i] = 0x8 |
| 198 | i++ |
| 199 | if m.Authenticated { |
| 200 | dAtA[i] = 1 |
| 201 | } else { |
| 202 | dAtA[i] = 0 |
| 203 | } |
| 204 | i++ |
| 205 | dAtA[i] = 0x12 |
| 206 | i++ |
| 207 | i = encodeVarintGenerated(dAtA, i, uint64(m.User.Size())) |
| 208 | n4, err := m.User.MarshalTo(dAtA[i:]) |
| 209 | if err != nil { |
| 210 | return 0, err |
| 211 | } |
| 212 | i += n4 |
| 213 | dAtA[i] = 0x1a |
| 214 | i++ |
| 215 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Error))) |
| 216 | i += copy(dAtA[i:], m.Error) |
| 217 | return i, nil |
| 218 | } |
| 219 | |
| 220 | func (m *UserInfo) Marshal() (dAtA []byte, err error) { |
| 221 | size := m.Size() |
| 222 | dAtA = make([]byte, size) |
| 223 | n, err := m.MarshalTo(dAtA) |
| 224 | if err != nil { |
| 225 | return nil, err |
| 226 | } |
| 227 | return dAtA[:n], nil |
| 228 | } |
| 229 | |
| 230 | func (m *UserInfo) MarshalTo(dAtA []byte) (int, error) { |
| 231 | var i int |
| 232 | _ = i |
| 233 | var l int |
| 234 | _ = l |
| 235 | dAtA[i] = 0xa |
| 236 | i++ |
| 237 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Username))) |
| 238 | i += copy(dAtA[i:], m.Username) |
| 239 | dAtA[i] = 0x12 |
| 240 | i++ |
| 241 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID))) |
| 242 | i += copy(dAtA[i:], m.UID) |
| 243 | if len(m.Groups) > 0 { |
| 244 | for _, s := range m.Groups { |
| 245 | dAtA[i] = 0x1a |
| 246 | i++ |
| 247 | l = len(s) |
| 248 | for l >= 1<<7 { |
| 249 | dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| 250 | l >>= 7 |
| 251 | i++ |
| 252 | } |
| 253 | dAtA[i] = uint8(l) |
| 254 | i++ |
| 255 | i += copy(dAtA[i:], s) |
| 256 | } |
| 257 | } |
| 258 | if len(m.Extra) > 0 { |
| 259 | keysForExtra := make([]string, 0, len(m.Extra)) |
| 260 | for k := range m.Extra { |
| 261 | keysForExtra = append(keysForExtra, string(k)) |
| 262 | } |
| 263 | github_com_gogo_protobuf_sortkeys.Strings(keysForExtra) |
| 264 | for _, k := range keysForExtra { |
| 265 | dAtA[i] = 0x22 |
| 266 | i++ |
| 267 | v := m.Extra[string(k)] |
| 268 | msgSize := 0 |
| 269 | if (&v) != nil { |
| 270 | msgSize = (&v).Size() |
| 271 | msgSize += 1 + sovGenerated(uint64(msgSize)) |
| 272 | } |
| 273 | mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + msgSize |
| 274 | i = encodeVarintGenerated(dAtA, i, uint64(mapSize)) |
| 275 | dAtA[i] = 0xa |
| 276 | i++ |
| 277 | i = encodeVarintGenerated(dAtA, i, uint64(len(k))) |
| 278 | i += copy(dAtA[i:], k) |
| 279 | dAtA[i] = 0x12 |
| 280 | i++ |
| 281 | i = encodeVarintGenerated(dAtA, i, uint64((&v).Size())) |
| 282 | n5, err := (&v).MarshalTo(dAtA[i:]) |
| 283 | if err != nil { |
| 284 | return 0, err |
| 285 | } |
| 286 | i += n5 |
| 287 | } |
| 288 | } |
| 289 | return i, nil |
| 290 | } |
| 291 | |
| 292 | func encodeFixed64Generated(dAtA []byte, offset int, v uint64) int { |
| 293 | dAtA[offset] = uint8(v) |
| 294 | dAtA[offset+1] = uint8(v >> 8) |
| 295 | dAtA[offset+2] = uint8(v >> 16) |
| 296 | dAtA[offset+3] = uint8(v >> 24) |
| 297 | dAtA[offset+4] = uint8(v >> 32) |
| 298 | dAtA[offset+5] = uint8(v >> 40) |
| 299 | dAtA[offset+6] = uint8(v >> 48) |
| 300 | dAtA[offset+7] = uint8(v >> 56) |
| 301 | return offset + 8 |
| 302 | } |
| 303 | func encodeFixed32Generated(dAtA []byte, offset int, v uint32) int { |
| 304 | dAtA[offset] = uint8(v) |
| 305 | dAtA[offset+1] = uint8(v >> 8) |
| 306 | dAtA[offset+2] = uint8(v >> 16) |
| 307 | dAtA[offset+3] = uint8(v >> 24) |
| 308 | return offset + 4 |
| 309 | } |
| 310 | func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { |
| 311 | for v >= 1<<7 { |
| 312 | dAtA[offset] = uint8(v&0x7f | 0x80) |
| 313 | v >>= 7 |
| 314 | offset++ |
| 315 | } |
| 316 | dAtA[offset] = uint8(v) |
| 317 | return offset + 1 |
| 318 | } |
| 319 | func (m ExtraValue) Size() (n int) { |
| 320 | var l int |
| 321 | _ = l |
| 322 | if len(m) > 0 { |
| 323 | for _, s := range m { |
| 324 | l = len(s) |
| 325 | n += 1 + l + sovGenerated(uint64(l)) |
| 326 | } |
| 327 | } |
| 328 | return n |
| 329 | } |
| 330 | |
| 331 | func (m *TokenReview) Size() (n int) { |
| 332 | var l int |
| 333 | _ = l |
| 334 | l = m.ObjectMeta.Size() |
| 335 | n += 1 + l + sovGenerated(uint64(l)) |
| 336 | l = m.Spec.Size() |
| 337 | n += 1 + l + sovGenerated(uint64(l)) |
| 338 | l = m.Status.Size() |
| 339 | n += 1 + l + sovGenerated(uint64(l)) |
| 340 | return n |
| 341 | } |
| 342 | |
| 343 | func (m *TokenReviewSpec) Size() (n int) { |
| 344 | var l int |
| 345 | _ = l |
| 346 | l = len(m.Token) |
| 347 | n += 1 + l + sovGenerated(uint64(l)) |
| 348 | return n |
| 349 | } |
| 350 | |
| 351 | func (m *TokenReviewStatus) Size() (n int) { |
| 352 | var l int |
| 353 | _ = l |
| 354 | n += 2 |
| 355 | l = m.User.Size() |
| 356 | n += 1 + l + sovGenerated(uint64(l)) |
| 357 | l = len(m.Error) |
| 358 | n += 1 + l + sovGenerated(uint64(l)) |
| 359 | return n |
| 360 | } |
| 361 | |
| 362 | func (m *UserInfo) Size() (n int) { |
| 363 | var l int |
| 364 | _ = l |
| 365 | l = len(m.Username) |
| 366 | n += 1 + l + sovGenerated(uint64(l)) |
| 367 | l = len(m.UID) |
| 368 | n += 1 + l + sovGenerated(uint64(l)) |
| 369 | if len(m.Groups) > 0 { |
| 370 | for _, s := range m.Groups { |
| 371 | l = len(s) |
| 372 | n += 1 + l + sovGenerated(uint64(l)) |
| 373 | } |
| 374 | } |
| 375 | if len(m.Extra) > 0 { |
| 376 | for k, v := range m.Extra { |
| 377 | _ = k |
| 378 | _ = v |
| 379 | l = v.Size() |
| 380 | mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) |
| 381 | n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) |
| 382 | } |
| 383 | } |
| 384 | return n |
| 385 | } |
| 386 | |
| 387 | func sovGenerated(x uint64) (n int) { |
| 388 | for { |
| 389 | n++ |
| 390 | x >>= 7 |
| 391 | if x == 0 { |
| 392 | break |
| 393 | } |
| 394 | } |
| 395 | return n |
| 396 | } |
| 397 | func sozGenerated(x uint64) (n int) { |
| 398 | return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| 399 | } |
| 400 | func (this *TokenReview) String() string { |
| 401 | if this == nil { |
| 402 | return "nil" |
| 403 | } |
| 404 | s := strings.Join([]string{`&TokenReview{`, |
| 405 | `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, |
| 406 | `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "TokenReviewSpec", "TokenReviewSpec", 1), `&`, ``, 1) + `,`, |
| 407 | `Status:` + strings.Replace(strings.Replace(this.Status.String(), "TokenReviewStatus", "TokenReviewStatus", 1), `&`, ``, 1) + `,`, |
| 408 | `}`, |
| 409 | }, "") |
| 410 | return s |
| 411 | } |
| 412 | func (this *TokenReviewSpec) String() string { |
| 413 | if this == nil { |
| 414 | return "nil" |
| 415 | } |
| 416 | s := strings.Join([]string{`&TokenReviewSpec{`, |
| 417 | `Token:` + fmt.Sprintf("%v", this.Token) + `,`, |
| 418 | `}`, |
| 419 | }, "") |
| 420 | return s |
| 421 | } |
| 422 | func (this *TokenReviewStatus) String() string { |
| 423 | if this == nil { |
| 424 | return "nil" |
| 425 | } |
| 426 | s := strings.Join([]string{`&TokenReviewStatus{`, |
| 427 | `Authenticated:` + fmt.Sprintf("%v", this.Authenticated) + `,`, |
| 428 | `User:` + strings.Replace(strings.Replace(this.User.String(), "UserInfo", "UserInfo", 1), `&`, ``, 1) + `,`, |
| 429 | `Error:` + fmt.Sprintf("%v", this.Error) + `,`, |
| 430 | `}`, |
| 431 | }, "") |
| 432 | return s |
| 433 | } |
| 434 | func (this *UserInfo) String() string { |
| 435 | if this == nil { |
| 436 | return "nil" |
| 437 | } |
| 438 | keysForExtra := make([]string, 0, len(this.Extra)) |
| 439 | for k := range this.Extra { |
| 440 | keysForExtra = append(keysForExtra, k) |
| 441 | } |
| 442 | github_com_gogo_protobuf_sortkeys.Strings(keysForExtra) |
| 443 | mapStringForExtra := "map[string]ExtraValue{" |
| 444 | for _, k := range keysForExtra { |
| 445 | mapStringForExtra += fmt.Sprintf("%v: %v,", k, this.Extra[k]) |
| 446 | } |
| 447 | mapStringForExtra += "}" |
| 448 | s := strings.Join([]string{`&UserInfo{`, |
| 449 | `Username:` + fmt.Sprintf("%v", this.Username) + `,`, |
| 450 | `UID:` + fmt.Sprintf("%v", this.UID) + `,`, |
| 451 | `Groups:` + fmt.Sprintf("%v", this.Groups) + `,`, |
| 452 | `Extra:` + mapStringForExtra + `,`, |
| 453 | `}`, |
| 454 | }, "") |
| 455 | return s |
| 456 | } |
| 457 | func valueToStringGenerated(v interface{}) string { |
| 458 | rv := reflect.ValueOf(v) |
| 459 | if rv.IsNil() { |
| 460 | return "nil" |
| 461 | } |
| 462 | pv := reflect.Indirect(rv).Interface() |
| 463 | return fmt.Sprintf("*%v", pv) |
| 464 | } |
| 465 | func (m *ExtraValue) Unmarshal(dAtA []byte) error { |
| 466 | l := len(dAtA) |
| 467 | iNdEx := 0 |
| 468 | for iNdEx < l { |
| 469 | preIndex := iNdEx |
| 470 | var wire uint64 |
| 471 | for shift := uint(0); ; shift += 7 { |
| 472 | if shift >= 64 { |
| 473 | return ErrIntOverflowGenerated |
| 474 | } |
| 475 | if iNdEx >= l { |
| 476 | return io.ErrUnexpectedEOF |
| 477 | } |
| 478 | b := dAtA[iNdEx] |
| 479 | iNdEx++ |
| 480 | wire |= (uint64(b) & 0x7F) << shift |
| 481 | if b < 0x80 { |
| 482 | break |
| 483 | } |
| 484 | } |
| 485 | fieldNum := int32(wire >> 3) |
| 486 | wireType := int(wire & 0x7) |
| 487 | if wireType == 4 { |
| 488 | return fmt.Errorf("proto: ExtraValue: wiretype end group for non-group") |
| 489 | } |
| 490 | if fieldNum <= 0 { |
| 491 | return fmt.Errorf("proto: ExtraValue: illegal tag %d (wire type %d)", fieldNum, wire) |
| 492 | } |
| 493 | switch fieldNum { |
| 494 | case 1: |
| 495 | if wireType != 2 { |
| 496 | return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) |
| 497 | } |
| 498 | var stringLen uint64 |
| 499 | for shift := uint(0); ; shift += 7 { |
| 500 | if shift >= 64 { |
| 501 | return ErrIntOverflowGenerated |
| 502 | } |
| 503 | if iNdEx >= l { |
| 504 | return io.ErrUnexpectedEOF |
| 505 | } |
| 506 | b := dAtA[iNdEx] |
| 507 | iNdEx++ |
| 508 | stringLen |= (uint64(b) & 0x7F) << shift |
| 509 | if b < 0x80 { |
| 510 | break |
| 511 | } |
| 512 | } |
| 513 | intStringLen := int(stringLen) |
| 514 | if intStringLen < 0 { |
| 515 | return ErrInvalidLengthGenerated |
| 516 | } |
| 517 | postIndex := iNdEx + intStringLen |
| 518 | if postIndex > l { |
| 519 | return io.ErrUnexpectedEOF |
| 520 | } |
| 521 | *m = append(*m, string(dAtA[iNdEx:postIndex])) |
| 522 | iNdEx = postIndex |
| 523 | default: |
| 524 | iNdEx = preIndex |
| 525 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 526 | if err != nil { |
| 527 | return err |
| 528 | } |
| 529 | if skippy < 0 { |
| 530 | return ErrInvalidLengthGenerated |
| 531 | } |
| 532 | if (iNdEx + skippy) > l { |
| 533 | return io.ErrUnexpectedEOF |
| 534 | } |
| 535 | iNdEx += skippy |
| 536 | } |
| 537 | } |
| 538 | |
| 539 | if iNdEx > l { |
| 540 | return io.ErrUnexpectedEOF |
| 541 | } |
| 542 | return nil |
| 543 | } |
| 544 | func (m *TokenReview) Unmarshal(dAtA []byte) error { |
| 545 | l := len(dAtA) |
| 546 | iNdEx := 0 |
| 547 | for iNdEx < l { |
| 548 | preIndex := iNdEx |
| 549 | var wire uint64 |
| 550 | for shift := uint(0); ; shift += 7 { |
| 551 | if shift >= 64 { |
| 552 | return ErrIntOverflowGenerated |
| 553 | } |
| 554 | if iNdEx >= l { |
| 555 | return io.ErrUnexpectedEOF |
| 556 | } |
| 557 | b := dAtA[iNdEx] |
| 558 | iNdEx++ |
| 559 | wire |= (uint64(b) & 0x7F) << shift |
| 560 | if b < 0x80 { |
| 561 | break |
| 562 | } |
| 563 | } |
| 564 | fieldNum := int32(wire >> 3) |
| 565 | wireType := int(wire & 0x7) |
| 566 | if wireType == 4 { |
| 567 | return fmt.Errorf("proto: TokenReview: wiretype end group for non-group") |
| 568 | } |
| 569 | if fieldNum <= 0 { |
| 570 | return fmt.Errorf("proto: TokenReview: illegal tag %d (wire type %d)", fieldNum, wire) |
| 571 | } |
| 572 | switch fieldNum { |
| 573 | case 1: |
| 574 | if wireType != 2 { |
| 575 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) |
| 576 | } |
| 577 | var msglen int |
| 578 | for shift := uint(0); ; shift += 7 { |
| 579 | if shift >= 64 { |
| 580 | return ErrIntOverflowGenerated |
| 581 | } |
| 582 | if iNdEx >= l { |
| 583 | return io.ErrUnexpectedEOF |
| 584 | } |
| 585 | b := dAtA[iNdEx] |
| 586 | iNdEx++ |
| 587 | msglen |= (int(b) & 0x7F) << shift |
| 588 | if b < 0x80 { |
| 589 | break |
| 590 | } |
| 591 | } |
| 592 | if msglen < 0 { |
| 593 | return ErrInvalidLengthGenerated |
| 594 | } |
| 595 | postIndex := iNdEx + msglen |
| 596 | if postIndex > l { |
| 597 | return io.ErrUnexpectedEOF |
| 598 | } |
| 599 | if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 600 | return err |
| 601 | } |
| 602 | iNdEx = postIndex |
| 603 | case 2: |
| 604 | if wireType != 2 { |
| 605 | return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) |
| 606 | } |
| 607 | var msglen int |
| 608 | for shift := uint(0); ; shift += 7 { |
| 609 | if shift >= 64 { |
| 610 | return ErrIntOverflowGenerated |
| 611 | } |
| 612 | if iNdEx >= l { |
| 613 | return io.ErrUnexpectedEOF |
| 614 | } |
| 615 | b := dAtA[iNdEx] |
| 616 | iNdEx++ |
| 617 | msglen |= (int(b) & 0x7F) << shift |
| 618 | if b < 0x80 { |
| 619 | break |
| 620 | } |
| 621 | } |
| 622 | if msglen < 0 { |
| 623 | return ErrInvalidLengthGenerated |
| 624 | } |
| 625 | postIndex := iNdEx + msglen |
| 626 | if postIndex > l { |
| 627 | return io.ErrUnexpectedEOF |
| 628 | } |
| 629 | if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 630 | return err |
| 631 | } |
| 632 | iNdEx = postIndex |
| 633 | case 3: |
| 634 | if wireType != 2 { |
| 635 | return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) |
| 636 | } |
| 637 | var msglen int |
| 638 | for shift := uint(0); ; shift += 7 { |
| 639 | if shift >= 64 { |
| 640 | return ErrIntOverflowGenerated |
| 641 | } |
| 642 | if iNdEx >= l { |
| 643 | return io.ErrUnexpectedEOF |
| 644 | } |
| 645 | b := dAtA[iNdEx] |
| 646 | iNdEx++ |
| 647 | msglen |= (int(b) & 0x7F) << shift |
| 648 | if b < 0x80 { |
| 649 | break |
| 650 | } |
| 651 | } |
| 652 | if msglen < 0 { |
| 653 | return ErrInvalidLengthGenerated |
| 654 | } |
| 655 | postIndex := iNdEx + msglen |
| 656 | if postIndex > l { |
| 657 | return io.ErrUnexpectedEOF |
| 658 | } |
| 659 | if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 660 | return err |
| 661 | } |
| 662 | iNdEx = postIndex |
| 663 | default: |
| 664 | iNdEx = preIndex |
| 665 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 666 | if err != nil { |
| 667 | return err |
| 668 | } |
| 669 | if skippy < 0 { |
| 670 | return ErrInvalidLengthGenerated |
| 671 | } |
| 672 | if (iNdEx + skippy) > l { |
| 673 | return io.ErrUnexpectedEOF |
| 674 | } |
| 675 | iNdEx += skippy |
| 676 | } |
| 677 | } |
| 678 | |
| 679 | if iNdEx > l { |
| 680 | return io.ErrUnexpectedEOF |
| 681 | } |
| 682 | return nil |
| 683 | } |
| 684 | func (m *TokenReviewSpec) Unmarshal(dAtA []byte) error { |
| 685 | l := len(dAtA) |
| 686 | iNdEx := 0 |
| 687 | for iNdEx < l { |
| 688 | preIndex := iNdEx |
| 689 | var wire uint64 |
| 690 | for shift := uint(0); ; shift += 7 { |
| 691 | if shift >= 64 { |
| 692 | return ErrIntOverflowGenerated |
| 693 | } |
| 694 | if iNdEx >= l { |
| 695 | return io.ErrUnexpectedEOF |
| 696 | } |
| 697 | b := dAtA[iNdEx] |
| 698 | iNdEx++ |
| 699 | wire |= (uint64(b) & 0x7F) << shift |
| 700 | if b < 0x80 { |
| 701 | break |
| 702 | } |
| 703 | } |
| 704 | fieldNum := int32(wire >> 3) |
| 705 | wireType := int(wire & 0x7) |
| 706 | if wireType == 4 { |
| 707 | return fmt.Errorf("proto: TokenReviewSpec: wiretype end group for non-group") |
| 708 | } |
| 709 | if fieldNum <= 0 { |
| 710 | return fmt.Errorf("proto: TokenReviewSpec: illegal tag %d (wire type %d)", fieldNum, wire) |
| 711 | } |
| 712 | switch fieldNum { |
| 713 | case 1: |
| 714 | if wireType != 2 { |
| 715 | return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) |
| 716 | } |
| 717 | var stringLen uint64 |
| 718 | for shift := uint(0); ; shift += 7 { |
| 719 | if shift >= 64 { |
| 720 | return ErrIntOverflowGenerated |
| 721 | } |
| 722 | if iNdEx >= l { |
| 723 | return io.ErrUnexpectedEOF |
| 724 | } |
| 725 | b := dAtA[iNdEx] |
| 726 | iNdEx++ |
| 727 | stringLen |= (uint64(b) & 0x7F) << shift |
| 728 | if b < 0x80 { |
| 729 | break |
| 730 | } |
| 731 | } |
| 732 | intStringLen := int(stringLen) |
| 733 | if intStringLen < 0 { |
| 734 | return ErrInvalidLengthGenerated |
| 735 | } |
| 736 | postIndex := iNdEx + intStringLen |
| 737 | if postIndex > l { |
| 738 | return io.ErrUnexpectedEOF |
| 739 | } |
| 740 | m.Token = string(dAtA[iNdEx:postIndex]) |
| 741 | iNdEx = postIndex |
| 742 | default: |
| 743 | iNdEx = preIndex |
| 744 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 745 | if err != nil { |
| 746 | return err |
| 747 | } |
| 748 | if skippy < 0 { |
| 749 | return ErrInvalidLengthGenerated |
| 750 | } |
| 751 | if (iNdEx + skippy) > l { |
| 752 | return io.ErrUnexpectedEOF |
| 753 | } |
| 754 | iNdEx += skippy |
| 755 | } |
| 756 | } |
| 757 | |
| 758 | if iNdEx > l { |
| 759 | return io.ErrUnexpectedEOF |
| 760 | } |
| 761 | return nil |
| 762 | } |
| 763 | func (m *TokenReviewStatus) Unmarshal(dAtA []byte) error { |
| 764 | l := len(dAtA) |
| 765 | iNdEx := 0 |
| 766 | for iNdEx < l { |
| 767 | preIndex := iNdEx |
| 768 | var wire uint64 |
| 769 | for shift := uint(0); ; shift += 7 { |
| 770 | if shift >= 64 { |
| 771 | return ErrIntOverflowGenerated |
| 772 | } |
| 773 | if iNdEx >= l { |
| 774 | return io.ErrUnexpectedEOF |
| 775 | } |
| 776 | b := dAtA[iNdEx] |
| 777 | iNdEx++ |
| 778 | wire |= (uint64(b) & 0x7F) << shift |
| 779 | if b < 0x80 { |
| 780 | break |
| 781 | } |
| 782 | } |
| 783 | fieldNum := int32(wire >> 3) |
| 784 | wireType := int(wire & 0x7) |
| 785 | if wireType == 4 { |
| 786 | return fmt.Errorf("proto: TokenReviewStatus: wiretype end group for non-group") |
| 787 | } |
| 788 | if fieldNum <= 0 { |
| 789 | return fmt.Errorf("proto: TokenReviewStatus: illegal tag %d (wire type %d)", fieldNum, wire) |
| 790 | } |
| 791 | switch fieldNum { |
| 792 | case 1: |
| 793 | if wireType != 0 { |
| 794 | return fmt.Errorf("proto: wrong wireType = %d for field Authenticated", wireType) |
| 795 | } |
| 796 | var v int |
| 797 | for shift := uint(0); ; shift += 7 { |
| 798 | if shift >= 64 { |
| 799 | return ErrIntOverflowGenerated |
| 800 | } |
| 801 | if iNdEx >= l { |
| 802 | return io.ErrUnexpectedEOF |
| 803 | } |
| 804 | b := dAtA[iNdEx] |
| 805 | iNdEx++ |
| 806 | v |= (int(b) & 0x7F) << shift |
| 807 | if b < 0x80 { |
| 808 | break |
| 809 | } |
| 810 | } |
| 811 | m.Authenticated = bool(v != 0) |
| 812 | case 2: |
| 813 | if wireType != 2 { |
| 814 | return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) |
| 815 | } |
| 816 | var msglen int |
| 817 | for shift := uint(0); ; shift += 7 { |
| 818 | if shift >= 64 { |
| 819 | return ErrIntOverflowGenerated |
| 820 | } |
| 821 | if iNdEx >= l { |
| 822 | return io.ErrUnexpectedEOF |
| 823 | } |
| 824 | b := dAtA[iNdEx] |
| 825 | iNdEx++ |
| 826 | msglen |= (int(b) & 0x7F) << shift |
| 827 | if b < 0x80 { |
| 828 | break |
| 829 | } |
| 830 | } |
| 831 | if msglen < 0 { |
| 832 | return ErrInvalidLengthGenerated |
| 833 | } |
| 834 | postIndex := iNdEx + msglen |
| 835 | if postIndex > l { |
| 836 | return io.ErrUnexpectedEOF |
| 837 | } |
| 838 | if err := m.User.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 839 | return err |
| 840 | } |
| 841 | iNdEx = postIndex |
| 842 | case 3: |
| 843 | if wireType != 2 { |
| 844 | return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) |
| 845 | } |
| 846 | var stringLen uint64 |
| 847 | for shift := uint(0); ; shift += 7 { |
| 848 | if shift >= 64 { |
| 849 | return ErrIntOverflowGenerated |
| 850 | } |
| 851 | if iNdEx >= l { |
| 852 | return io.ErrUnexpectedEOF |
| 853 | } |
| 854 | b := dAtA[iNdEx] |
| 855 | iNdEx++ |
| 856 | stringLen |= (uint64(b) & 0x7F) << shift |
| 857 | if b < 0x80 { |
| 858 | break |
| 859 | } |
| 860 | } |
| 861 | intStringLen := int(stringLen) |
| 862 | if intStringLen < 0 { |
| 863 | return ErrInvalidLengthGenerated |
| 864 | } |
| 865 | postIndex := iNdEx + intStringLen |
| 866 | if postIndex > l { |
| 867 | return io.ErrUnexpectedEOF |
| 868 | } |
| 869 | m.Error = string(dAtA[iNdEx:postIndex]) |
| 870 | iNdEx = postIndex |
| 871 | default: |
| 872 | iNdEx = preIndex |
| 873 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 874 | if err != nil { |
| 875 | return err |
| 876 | } |
| 877 | if skippy < 0 { |
| 878 | return ErrInvalidLengthGenerated |
| 879 | } |
| 880 | if (iNdEx + skippy) > l { |
| 881 | return io.ErrUnexpectedEOF |
| 882 | } |
| 883 | iNdEx += skippy |
| 884 | } |
| 885 | } |
| 886 | |
| 887 | if iNdEx > l { |
| 888 | return io.ErrUnexpectedEOF |
| 889 | } |
| 890 | return nil |
| 891 | } |
| 892 | func (m *UserInfo) Unmarshal(dAtA []byte) error { |
| 893 | l := len(dAtA) |
| 894 | iNdEx := 0 |
| 895 | for iNdEx < l { |
| 896 | preIndex := iNdEx |
| 897 | var wire uint64 |
| 898 | for shift := uint(0); ; shift += 7 { |
| 899 | if shift >= 64 { |
| 900 | return ErrIntOverflowGenerated |
| 901 | } |
| 902 | if iNdEx >= l { |
| 903 | return io.ErrUnexpectedEOF |
| 904 | } |
| 905 | b := dAtA[iNdEx] |
| 906 | iNdEx++ |
| 907 | wire |= (uint64(b) & 0x7F) << shift |
| 908 | if b < 0x80 { |
| 909 | break |
| 910 | } |
| 911 | } |
| 912 | fieldNum := int32(wire >> 3) |
| 913 | wireType := int(wire & 0x7) |
| 914 | if wireType == 4 { |
| 915 | return fmt.Errorf("proto: UserInfo: wiretype end group for non-group") |
| 916 | } |
| 917 | if fieldNum <= 0 { |
| 918 | return fmt.Errorf("proto: UserInfo: illegal tag %d (wire type %d)", fieldNum, wire) |
| 919 | } |
| 920 | switch fieldNum { |
| 921 | case 1: |
| 922 | if wireType != 2 { |
| 923 | return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) |
| 924 | } |
| 925 | var stringLen uint64 |
| 926 | for shift := uint(0); ; shift += 7 { |
| 927 | if shift >= 64 { |
| 928 | return ErrIntOverflowGenerated |
| 929 | } |
| 930 | if iNdEx >= l { |
| 931 | return io.ErrUnexpectedEOF |
| 932 | } |
| 933 | b := dAtA[iNdEx] |
| 934 | iNdEx++ |
| 935 | stringLen |= (uint64(b) & 0x7F) << shift |
| 936 | if b < 0x80 { |
| 937 | break |
| 938 | } |
| 939 | } |
| 940 | intStringLen := int(stringLen) |
| 941 | if intStringLen < 0 { |
| 942 | return ErrInvalidLengthGenerated |
| 943 | } |
| 944 | postIndex := iNdEx + intStringLen |
| 945 | if postIndex > l { |
| 946 | return io.ErrUnexpectedEOF |
| 947 | } |
| 948 | m.Username = string(dAtA[iNdEx:postIndex]) |
| 949 | iNdEx = postIndex |
| 950 | case 2: |
| 951 | if wireType != 2 { |
| 952 | return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) |
| 953 | } |
| 954 | var stringLen uint64 |
| 955 | for shift := uint(0); ; shift += 7 { |
| 956 | if shift >= 64 { |
| 957 | return ErrIntOverflowGenerated |
| 958 | } |
| 959 | if iNdEx >= l { |
| 960 | return io.ErrUnexpectedEOF |
| 961 | } |
| 962 | b := dAtA[iNdEx] |
| 963 | iNdEx++ |
| 964 | stringLen |= (uint64(b) & 0x7F) << shift |
| 965 | if b < 0x80 { |
| 966 | break |
| 967 | } |
| 968 | } |
| 969 | intStringLen := int(stringLen) |
| 970 | if intStringLen < 0 { |
| 971 | return ErrInvalidLengthGenerated |
| 972 | } |
| 973 | postIndex := iNdEx + intStringLen |
| 974 | if postIndex > l { |
| 975 | return io.ErrUnexpectedEOF |
| 976 | } |
| 977 | m.UID = string(dAtA[iNdEx:postIndex]) |
| 978 | iNdEx = postIndex |
| 979 | case 3: |
| 980 | if wireType != 2 { |
| 981 | return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) |
| 982 | } |
| 983 | var stringLen uint64 |
| 984 | for shift := uint(0); ; shift += 7 { |
| 985 | if shift >= 64 { |
| 986 | return ErrIntOverflowGenerated |
| 987 | } |
| 988 | if iNdEx >= l { |
| 989 | return io.ErrUnexpectedEOF |
| 990 | } |
| 991 | b := dAtA[iNdEx] |
| 992 | iNdEx++ |
| 993 | stringLen |= (uint64(b) & 0x7F) << shift |
| 994 | if b < 0x80 { |
| 995 | break |
| 996 | } |
| 997 | } |
| 998 | intStringLen := int(stringLen) |
| 999 | if intStringLen < 0 { |
| 1000 | return ErrInvalidLengthGenerated |
| 1001 | } |
| 1002 | postIndex := iNdEx + intStringLen |
| 1003 | if postIndex > l { |
| 1004 | return io.ErrUnexpectedEOF |
| 1005 | } |
| 1006 | m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex])) |
| 1007 | iNdEx = postIndex |
| 1008 | case 4: |
| 1009 | if wireType != 2 { |
| 1010 | return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType) |
| 1011 | } |
| 1012 | var msglen int |
| 1013 | for shift := uint(0); ; shift += 7 { |
| 1014 | if shift >= 64 { |
| 1015 | return ErrIntOverflowGenerated |
| 1016 | } |
| 1017 | if iNdEx >= l { |
| 1018 | return io.ErrUnexpectedEOF |
| 1019 | } |
| 1020 | b := dAtA[iNdEx] |
| 1021 | iNdEx++ |
| 1022 | msglen |= (int(b) & 0x7F) << shift |
| 1023 | if b < 0x80 { |
| 1024 | break |
| 1025 | } |
| 1026 | } |
| 1027 | if msglen < 0 { |
| 1028 | return ErrInvalidLengthGenerated |
| 1029 | } |
| 1030 | postIndex := iNdEx + msglen |
| 1031 | if postIndex > l { |
| 1032 | return io.ErrUnexpectedEOF |
| 1033 | } |
| 1034 | var keykey uint64 |
| 1035 | for shift := uint(0); ; shift += 7 { |
| 1036 | if shift >= 64 { |
| 1037 | return ErrIntOverflowGenerated |
| 1038 | } |
| 1039 | if iNdEx >= l { |
| 1040 | return io.ErrUnexpectedEOF |
| 1041 | } |
| 1042 | b := dAtA[iNdEx] |
| 1043 | iNdEx++ |
| 1044 | keykey |= (uint64(b) & 0x7F) << shift |
| 1045 | if b < 0x80 { |
| 1046 | break |
| 1047 | } |
| 1048 | } |
| 1049 | var stringLenmapkey uint64 |
| 1050 | for shift := uint(0); ; shift += 7 { |
| 1051 | if shift >= 64 { |
| 1052 | return ErrIntOverflowGenerated |
| 1053 | } |
| 1054 | if iNdEx >= l { |
| 1055 | return io.ErrUnexpectedEOF |
| 1056 | } |
| 1057 | b := dAtA[iNdEx] |
| 1058 | iNdEx++ |
| 1059 | stringLenmapkey |= (uint64(b) & 0x7F) << shift |
| 1060 | if b < 0x80 { |
| 1061 | break |
| 1062 | } |
| 1063 | } |
| 1064 | intStringLenmapkey := int(stringLenmapkey) |
| 1065 | if intStringLenmapkey < 0 { |
| 1066 | return ErrInvalidLengthGenerated |
| 1067 | } |
| 1068 | postStringIndexmapkey := iNdEx + intStringLenmapkey |
| 1069 | if postStringIndexmapkey > l { |
| 1070 | return io.ErrUnexpectedEOF |
| 1071 | } |
| 1072 | mapkey := string(dAtA[iNdEx:postStringIndexmapkey]) |
| 1073 | iNdEx = postStringIndexmapkey |
| 1074 | if m.Extra == nil { |
| 1075 | m.Extra = make(map[string]ExtraValue) |
| 1076 | } |
| 1077 | if iNdEx < postIndex { |
| 1078 | var valuekey uint64 |
| 1079 | for shift := uint(0); ; shift += 7 { |
| 1080 | if shift >= 64 { |
| 1081 | return ErrIntOverflowGenerated |
| 1082 | } |
| 1083 | if iNdEx >= l { |
| 1084 | return io.ErrUnexpectedEOF |
| 1085 | } |
| 1086 | b := dAtA[iNdEx] |
| 1087 | iNdEx++ |
| 1088 | valuekey |= (uint64(b) & 0x7F) << shift |
| 1089 | if b < 0x80 { |
| 1090 | break |
| 1091 | } |
| 1092 | } |
| 1093 | var mapmsglen int |
| 1094 | for shift := uint(0); ; shift += 7 { |
| 1095 | if shift >= 64 { |
| 1096 | return ErrIntOverflowGenerated |
| 1097 | } |
| 1098 | if iNdEx >= l { |
| 1099 | return io.ErrUnexpectedEOF |
| 1100 | } |
| 1101 | b := dAtA[iNdEx] |
| 1102 | iNdEx++ |
| 1103 | mapmsglen |= (int(b) & 0x7F) << shift |
| 1104 | if b < 0x80 { |
| 1105 | break |
| 1106 | } |
| 1107 | } |
| 1108 | if mapmsglen < 0 { |
| 1109 | return ErrInvalidLengthGenerated |
| 1110 | } |
| 1111 | postmsgIndex := iNdEx + mapmsglen |
| 1112 | if mapmsglen < 0 { |
| 1113 | return ErrInvalidLengthGenerated |
| 1114 | } |
| 1115 | if postmsgIndex > l { |
| 1116 | return io.ErrUnexpectedEOF |
| 1117 | } |
| 1118 | mapvalue := &ExtraValue{} |
| 1119 | if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { |
| 1120 | return err |
| 1121 | } |
| 1122 | iNdEx = postmsgIndex |
| 1123 | m.Extra[mapkey] = *mapvalue |
| 1124 | } else { |
| 1125 | var mapvalue ExtraValue |
| 1126 | m.Extra[mapkey] = mapvalue |
| 1127 | } |
| 1128 | iNdEx = postIndex |
| 1129 | default: |
| 1130 | iNdEx = preIndex |
| 1131 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 1132 | if err != nil { |
| 1133 | return err |
| 1134 | } |
| 1135 | if skippy < 0 { |
| 1136 | return ErrInvalidLengthGenerated |
| 1137 | } |
| 1138 | if (iNdEx + skippy) > l { |
| 1139 | return io.ErrUnexpectedEOF |
| 1140 | } |
| 1141 | iNdEx += skippy |
| 1142 | } |
| 1143 | } |
| 1144 | |
| 1145 | if iNdEx > l { |
| 1146 | return io.ErrUnexpectedEOF |
| 1147 | } |
| 1148 | return nil |
| 1149 | } |
| 1150 | func skipGenerated(dAtA []byte) (n int, err error) { |
| 1151 | l := len(dAtA) |
| 1152 | iNdEx := 0 |
| 1153 | for iNdEx < l { |
| 1154 | var wire uint64 |
| 1155 | for shift := uint(0); ; shift += 7 { |
| 1156 | if shift >= 64 { |
| 1157 | return 0, ErrIntOverflowGenerated |
| 1158 | } |
| 1159 | if iNdEx >= l { |
| 1160 | return 0, io.ErrUnexpectedEOF |
| 1161 | } |
| 1162 | b := dAtA[iNdEx] |
| 1163 | iNdEx++ |
| 1164 | wire |= (uint64(b) & 0x7F) << shift |
| 1165 | if b < 0x80 { |
| 1166 | break |
| 1167 | } |
| 1168 | } |
| 1169 | wireType := int(wire & 0x7) |
| 1170 | switch wireType { |
| 1171 | case 0: |
| 1172 | for shift := uint(0); ; shift += 7 { |
| 1173 | if shift >= 64 { |
| 1174 | return 0, ErrIntOverflowGenerated |
| 1175 | } |
| 1176 | if iNdEx >= l { |
| 1177 | return 0, io.ErrUnexpectedEOF |
| 1178 | } |
| 1179 | iNdEx++ |
| 1180 | if dAtA[iNdEx-1] < 0x80 { |
| 1181 | break |
| 1182 | } |
| 1183 | } |
| 1184 | return iNdEx, nil |
| 1185 | case 1: |
| 1186 | iNdEx += 8 |
| 1187 | return iNdEx, nil |
| 1188 | case 2: |
| 1189 | var length int |
| 1190 | for shift := uint(0); ; shift += 7 { |
| 1191 | if shift >= 64 { |
| 1192 | return 0, ErrIntOverflowGenerated |
| 1193 | } |
| 1194 | if iNdEx >= l { |
| 1195 | return 0, io.ErrUnexpectedEOF |
| 1196 | } |
| 1197 | b := dAtA[iNdEx] |
| 1198 | iNdEx++ |
| 1199 | length |= (int(b) & 0x7F) << shift |
| 1200 | if b < 0x80 { |
| 1201 | break |
| 1202 | } |
| 1203 | } |
| 1204 | iNdEx += length |
| 1205 | if length < 0 { |
| 1206 | return 0, ErrInvalidLengthGenerated |
| 1207 | } |
| 1208 | return iNdEx, nil |
| 1209 | case 3: |
| 1210 | for { |
| 1211 | var innerWire uint64 |
| 1212 | var start int = iNdEx |
| 1213 | for shift := uint(0); ; shift += 7 { |
| 1214 | if shift >= 64 { |
| 1215 | return 0, ErrIntOverflowGenerated |
| 1216 | } |
| 1217 | if iNdEx >= l { |
| 1218 | return 0, io.ErrUnexpectedEOF |
| 1219 | } |
| 1220 | b := dAtA[iNdEx] |
| 1221 | iNdEx++ |
| 1222 | innerWire |= (uint64(b) & 0x7F) << shift |
| 1223 | if b < 0x80 { |
| 1224 | break |
| 1225 | } |
| 1226 | } |
| 1227 | innerWireType := int(innerWire & 0x7) |
| 1228 | if innerWireType == 4 { |
| 1229 | break |
| 1230 | } |
| 1231 | next, err := skipGenerated(dAtA[start:]) |
| 1232 | if err != nil { |
| 1233 | return 0, err |
| 1234 | } |
| 1235 | iNdEx = start + next |
| 1236 | } |
| 1237 | return iNdEx, nil |
| 1238 | case 4: |
| 1239 | return iNdEx, nil |
| 1240 | case 5: |
| 1241 | iNdEx += 4 |
| 1242 | return iNdEx, nil |
| 1243 | default: |
| 1244 | return 0, fmt.Errorf("proto: illegal wireType %d", wireType) |
| 1245 | } |
| 1246 | } |
| 1247 | panic("unreachable") |
| 1248 | } |
| 1249 | |
| 1250 | var ( |
| 1251 | ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") |
| 1252 | ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") |
| 1253 | ) |
| 1254 | |
| 1255 | func init() { |
| 1256 | proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/authentication/v1beta1/generated.proto", fileDescriptorGenerated) |
| 1257 | } |
| 1258 | |
| 1259 | var fileDescriptorGenerated = []byte{ |
| 1260 | // 650 bytes of a gzipped FileDescriptorProto |
| 1261 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0x4d, 0x4f, 0x14, 0x4d, |
| 1262 | 0x10, 0xc7, 0x67, 0xf6, 0x85, 0x67, 0xb7, 0xf7, 0x41, 0xb1, 0x13, 0x93, 0xcd, 0x26, 0xce, 0xae, |
| 1263 | 0xeb, 0x85, 0x44, 0xe9, 0x11, 0x24, 0x48, 0xf0, 0xe4, 0x28, 0x31, 0x98, 0x10, 0x93, 0x16, 0x3c, |
| 1264 | 0xa8, 0x07, 0x7b, 0x67, 0x8b, 0xd9, 0x76, 0x99, 0x97, 0xf4, 0xf4, 0xac, 0x72, 0xe3, 0x23, 0x78, |
| 1265 | 0xf4, 0x68, 0xe2, 0x27, 0x31, 0xf1, 0xc0, 0x91, 0x23, 0x07, 0x43, 0x64, 0xfc, 0x22, 0xa6, 0x7b, |
| 1266 | 0x5a, 0x76, 0x61, 0x43, 0x80, 0xdb, 0xf4, 0xbf, 0xea, 0xff, 0x9b, 0xaa, 0xea, 0x2e, 0xf4, 0x72, |
| 1267 | 0xb8, 0x9a, 0x12, 0x1e, 0xbb, 0xc3, 0xac, 0x07, 0x22, 0x02, 0x09, 0xa9, 0x3b, 0x82, 0xa8, 0x1f, |
| 1268 | 0x0b, 0xd7, 0x04, 0x58, 0xc2, 0x5d, 0x96, 0xc9, 0x01, 0x44, 0x92, 0xfb, 0x4c, 0xf2, 0x38, 0x72, |
| 1269 | 0x47, 0x8b, 0x3d, 0x90, 0x6c, 0xd1, 0x0d, 0x20, 0x02, 0xc1, 0x24, 0xf4, 0x49, 0x22, 0x62, 0x19, |
| 1270 | 0xe3, 0xbb, 0x85, 0x85, 0xb0, 0x84, 0x93, 0xb3, 0x16, 0x62, 0x2c, 0xad, 0x85, 0x80, 0xcb, 0x41, |
| 1271 | 0xd6, 0x23, 0x7e, 0x1c, 0xba, 0x41, 0x1c, 0xc4, 0xae, 0x76, 0xf6, 0xb2, 0x1d, 0x7d, 0xd2, 0x07, |
| 1272 | 0xfd, 0x55, 0x10, 0x5b, 0xcb, 0xe3, 0x22, 0x42, 0xe6, 0x0f, 0x78, 0x04, 0x62, 0xcf, 0x4d, 0x86, |
| 1273 | 0x81, 0x12, 0x52, 0x37, 0x04, 0xc9, 0xdc, 0xd1, 0x54, 0x1d, 0x2d, 0xf7, 0x22, 0x97, 0xc8, 0x22, |
| 1274 | 0xc9, 0x43, 0x98, 0x32, 0xac, 0x5c, 0x66, 0x48, 0xfd, 0x01, 0x84, 0x6c, 0xca, 0xf7, 0xe8, 0x22, |
| 1275 | 0x5f, 0x26, 0xf9, 0xae, 0xcb, 0x23, 0x99, 0x4a, 0x71, 0xde, 0xd4, 0x7d, 0x8c, 0xd0, 0xfa, 0x67, |
| 1276 | 0x29, 0xd8, 0x1b, 0xb6, 0x9b, 0x01, 0x6e, 0xa3, 0x2a, 0x97, 0x10, 0xa6, 0x4d, 0xbb, 0x53, 0x9e, |
| 1277 | 0xaf, 0x7b, 0xf5, 0xfc, 0xb8, 0x5d, 0xdd, 0x50, 0x02, 0x2d, 0xf4, 0xb5, 0xda, 0xd7, 0x6f, 0x6d, |
| 1278 | 0x6b, 0xff, 0x57, 0xc7, 0xea, 0x7e, 0x2f, 0xa1, 0xc6, 0x56, 0x3c, 0x84, 0x88, 0xc2, 0x88, 0xc3, |
| 1279 | 0x27, 0xfc, 0x01, 0xd5, 0xd4, 0x04, 0xfa, 0x4c, 0xb2, 0xa6, 0xdd, 0xb1, 0xe7, 0x1b, 0x4b, 0x0f, |
| 1280 | 0xc9, 0xf8, 0x06, 0x4e, 0x0b, 0x22, 0xc9, 0x30, 0x50, 0x42, 0x4a, 0x54, 0x36, 0x19, 0x2d, 0x92, |
| 1281 | 0x57, 0xbd, 0x8f, 0xe0, 0xcb, 0x4d, 0x90, 0xcc, 0xc3, 0x07, 0xc7, 0x6d, 0x2b, 0x3f, 0x6e, 0xa3, |
| 1282 | 0xb1, 0x46, 0x4f, 0xa9, 0x78, 0x0b, 0x55, 0xd2, 0x04, 0xfc, 0x66, 0x49, 0xd3, 0x97, 0xc8, 0xa5, |
| 1283 | 0xf7, 0x4b, 0x26, 0xea, 0x7b, 0x9d, 0x80, 0xef, 0xfd, 0x6f, 0xf8, 0x15, 0x75, 0xa2, 0x9a, 0x86, |
| 1284 | 0xdf, 0xa3, 0x99, 0x54, 0x32, 0x99, 0xa5, 0xcd, 0xb2, 0xe6, 0x2e, 0x5f, 0x93, 0xab, 0xbd, 0xde, |
| 1285 | 0x0d, 0x43, 0x9e, 0x29, 0xce, 0xd4, 0x30, 0xbb, 0x2b, 0xe8, 0xe6, 0xb9, 0x22, 0xf0, 0x3d, 0x54, |
| 1286 | 0x95, 0x4a, 0xd2, 0x53, 0xaa, 0x7b, 0xb3, 0xc6, 0x59, 0x2d, 0xf2, 0x8a, 0x58, 0xf7, 0xa7, 0x8d, |
| 1287 | 0x6e, 0x4d, 0xfd, 0x05, 0x3f, 0x41, 0xb3, 0x13, 0x15, 0x41, 0x5f, 0x23, 0x6a, 0xde, 0x6d, 0x83, |
| 1288 | 0x98, 0x7d, 0x3a, 0x19, 0xa4, 0x67, 0x73, 0xf1, 0x26, 0xaa, 0x64, 0x29, 0x08, 0x33, 0xbe, 0xfb, |
| 1289 | 0x57, 0x68, 0x73, 0x3b, 0x05, 0xb1, 0x11, 0xed, 0xc4, 0xe3, 0xb9, 0x29, 0x85, 0x6a, 0x8c, 0x6a, |
| 1290 | 0x03, 0x84, 0x88, 0x85, 0x1e, 0xdb, 0x44, 0x1b, 0xeb, 0x4a, 0xa4, 0x45, 0xac, 0xfb, 0xa3, 0x84, |
| 1291 | 0x6a, 0xff, 0x28, 0xf8, 0x01, 0xaa, 0x29, 0x67, 0xc4, 0x42, 0x30, 0xbd, 0xcf, 0x19, 0x93, 0xce, |
| 1292 | 0x51, 0x3a, 0x3d, 0xcd, 0xc0, 0x77, 0x50, 0x39, 0xe3, 0x7d, 0x5d, 0x6d, 0xdd, 0x6b, 0x98, 0xc4, |
| 1293 | 0xf2, 0xf6, 0xc6, 0x73, 0xaa, 0x74, 0xdc, 0x45, 0x33, 0x81, 0x88, 0xb3, 0x44, 0x5d, 0x9b, 0x7a, |
| 1294 | 0xaa, 0x48, 0x0d, 0xff, 0x85, 0x56, 0xa8, 0x89, 0xe0, 0x77, 0xa8, 0x0a, 0xea, 0x6d, 0x37, 0x2b, |
| 1295 | 0x9d, 0xf2, 0x7c, 0x63, 0x69, 0xe5, 0x1a, 0x2d, 0x13, 0xbd, 0x14, 0xeb, 0x91, 0x14, 0x7b, 0x13, |
| 1296 | 0xad, 0x29, 0x8d, 0x16, 0xcc, 0x56, 0x60, 0x16, 0x47, 0xe7, 0xe0, 0x39, 0x54, 0x1e, 0xc2, 0x5e, |
| 1297 | 0xd1, 0x16, 0x55, 0x9f, 0xf8, 0x19, 0xaa, 0x8e, 0xd4, 0x4e, 0x99, 0x79, 0x2f, 0x5c, 0xe1, 0xe7, |
| 1298 | 0xe3, 0x45, 0xa4, 0x85, 0x77, 0xad, 0xb4, 0x6a, 0x7b, 0x0b, 0x07, 0x27, 0x8e, 0x75, 0x78, 0xe2, |
| 1299 | 0x58, 0x47, 0x27, 0x8e, 0xb5, 0x9f, 0x3b, 0xf6, 0x41, 0xee, 0xd8, 0x87, 0xb9, 0x63, 0x1f, 0xe5, |
| 1300 | 0x8e, 0xfd, 0x3b, 0x77, 0xec, 0x2f, 0x7f, 0x1c, 0xeb, 0xed, 0x7f, 0x06, 0xf2, 0x37, 0x00, 0x00, |
| 1301 | 0xff, 0xff, 0x36, 0x0e, 0x35, 0x2a, 0x43, 0x05, 0x00, 0x00, |
| 1302 | } |