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/apimachinery/pkg/runtime/generated.proto |
| 19 | // DO NOT EDIT! |
| 20 | |
| 21 | /* |
| 22 | Package runtime is a generated protocol buffer package. |
| 23 | |
| 24 | It is generated from these files: |
| 25 | k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/runtime/generated.proto |
| 26 | |
| 27 | It has these top-level messages: |
| 28 | RawExtension |
| 29 | TypeMeta |
| 30 | Unknown |
| 31 | */ |
| 32 | package runtime |
| 33 | |
| 34 | import proto "github.com/gogo/protobuf/proto" |
| 35 | import fmt "fmt" |
| 36 | import math "math" |
| 37 | |
| 38 | import strings "strings" |
| 39 | import reflect "reflect" |
| 40 | |
| 41 | import io "io" |
| 42 | |
| 43 | // Reference imports to suppress errors if they are not otherwise used. |
| 44 | var _ = proto.Marshal |
| 45 | var _ = fmt.Errorf |
| 46 | var _ = math.Inf |
| 47 | |
| 48 | // This is a compile-time assertion to ensure that this generated file |
| 49 | // is compatible with the proto package it is being compiled against. |
| 50 | // A compilation error at this line likely means your copy of the |
| 51 | // proto package needs to be updated. |
| 52 | const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package |
| 53 | |
| 54 | func (m *RawExtension) Reset() { *m = RawExtension{} } |
| 55 | func (*RawExtension) ProtoMessage() {} |
| 56 | func (*RawExtension) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } |
| 57 | |
| 58 | func (m *TypeMeta) Reset() { *m = TypeMeta{} } |
| 59 | func (*TypeMeta) ProtoMessage() {} |
| 60 | func (*TypeMeta) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } |
| 61 | |
| 62 | func (m *Unknown) Reset() { *m = Unknown{} } |
| 63 | func (*Unknown) ProtoMessage() {} |
| 64 | func (*Unknown) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } |
| 65 | |
| 66 | func init() { |
| 67 | proto.RegisterType((*RawExtension)(nil), "k8s.io.apimachinery.pkg.runtime.RawExtension") |
| 68 | proto.RegisterType((*TypeMeta)(nil), "k8s.io.apimachinery.pkg.runtime.TypeMeta") |
| 69 | proto.RegisterType((*Unknown)(nil), "k8s.io.apimachinery.pkg.runtime.Unknown") |
| 70 | } |
| 71 | func (m *RawExtension) Marshal() (dAtA []byte, err error) { |
| 72 | size := m.Size() |
| 73 | dAtA = make([]byte, size) |
| 74 | n, err := m.MarshalTo(dAtA) |
| 75 | if err != nil { |
| 76 | return nil, err |
| 77 | } |
| 78 | return dAtA[:n], nil |
| 79 | } |
| 80 | |
| 81 | func (m *RawExtension) MarshalTo(dAtA []byte) (int, error) { |
| 82 | var i int |
| 83 | _ = i |
| 84 | var l int |
| 85 | _ = l |
| 86 | if m.Raw != nil { |
| 87 | dAtA[i] = 0xa |
| 88 | i++ |
| 89 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Raw))) |
| 90 | i += copy(dAtA[i:], m.Raw) |
| 91 | } |
| 92 | return i, nil |
| 93 | } |
| 94 | |
| 95 | func (m *TypeMeta) Marshal() (dAtA []byte, err error) { |
| 96 | size := m.Size() |
| 97 | dAtA = make([]byte, size) |
| 98 | n, err := m.MarshalTo(dAtA) |
| 99 | if err != nil { |
| 100 | return nil, err |
| 101 | } |
| 102 | return dAtA[:n], nil |
| 103 | } |
| 104 | |
| 105 | func (m *TypeMeta) MarshalTo(dAtA []byte) (int, error) { |
| 106 | var i int |
| 107 | _ = i |
| 108 | var l int |
| 109 | _ = l |
| 110 | dAtA[i] = 0xa |
| 111 | i++ |
| 112 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersion))) |
| 113 | i += copy(dAtA[i:], m.APIVersion) |
| 114 | dAtA[i] = 0x12 |
| 115 | i++ |
| 116 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) |
| 117 | i += copy(dAtA[i:], m.Kind) |
| 118 | return i, nil |
| 119 | } |
| 120 | |
| 121 | func (m *Unknown) Marshal() (dAtA []byte, err error) { |
| 122 | size := m.Size() |
| 123 | dAtA = make([]byte, size) |
| 124 | n, err := m.MarshalTo(dAtA) |
| 125 | if err != nil { |
| 126 | return nil, err |
| 127 | } |
| 128 | return dAtA[:n], nil |
| 129 | } |
| 130 | |
| 131 | func (m *Unknown) MarshalTo(dAtA []byte) (int, error) { |
| 132 | var i int |
| 133 | _ = i |
| 134 | var l int |
| 135 | _ = l |
| 136 | dAtA[i] = 0xa |
| 137 | i++ |
| 138 | i = encodeVarintGenerated(dAtA, i, uint64(m.TypeMeta.Size())) |
| 139 | n1, err := m.TypeMeta.MarshalTo(dAtA[i:]) |
| 140 | if err != nil { |
| 141 | return 0, err |
| 142 | } |
| 143 | i += n1 |
| 144 | if m.Raw != nil { |
| 145 | dAtA[i] = 0x12 |
| 146 | i++ |
| 147 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Raw))) |
| 148 | i += copy(dAtA[i:], m.Raw) |
| 149 | } |
| 150 | dAtA[i] = 0x1a |
| 151 | i++ |
| 152 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.ContentEncoding))) |
| 153 | i += copy(dAtA[i:], m.ContentEncoding) |
| 154 | dAtA[i] = 0x22 |
| 155 | i++ |
| 156 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.ContentType))) |
| 157 | i += copy(dAtA[i:], m.ContentType) |
| 158 | return i, nil |
| 159 | } |
| 160 | |
| 161 | func encodeFixed64Generated(dAtA []byte, offset int, v uint64) int { |
| 162 | dAtA[offset] = uint8(v) |
| 163 | dAtA[offset+1] = uint8(v >> 8) |
| 164 | dAtA[offset+2] = uint8(v >> 16) |
| 165 | dAtA[offset+3] = uint8(v >> 24) |
| 166 | dAtA[offset+4] = uint8(v >> 32) |
| 167 | dAtA[offset+5] = uint8(v >> 40) |
| 168 | dAtA[offset+6] = uint8(v >> 48) |
| 169 | dAtA[offset+7] = uint8(v >> 56) |
| 170 | return offset + 8 |
| 171 | } |
| 172 | func encodeFixed32Generated(dAtA []byte, offset int, v uint32) int { |
| 173 | dAtA[offset] = uint8(v) |
| 174 | dAtA[offset+1] = uint8(v >> 8) |
| 175 | dAtA[offset+2] = uint8(v >> 16) |
| 176 | dAtA[offset+3] = uint8(v >> 24) |
| 177 | return offset + 4 |
| 178 | } |
| 179 | func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { |
| 180 | for v >= 1<<7 { |
| 181 | dAtA[offset] = uint8(v&0x7f | 0x80) |
| 182 | v >>= 7 |
| 183 | offset++ |
| 184 | } |
| 185 | dAtA[offset] = uint8(v) |
| 186 | return offset + 1 |
| 187 | } |
| 188 | func (m *RawExtension) Size() (n int) { |
| 189 | var l int |
| 190 | _ = l |
| 191 | if m.Raw != nil { |
| 192 | l = len(m.Raw) |
| 193 | n += 1 + l + sovGenerated(uint64(l)) |
| 194 | } |
| 195 | return n |
| 196 | } |
| 197 | |
| 198 | func (m *TypeMeta) Size() (n int) { |
| 199 | var l int |
| 200 | _ = l |
| 201 | l = len(m.APIVersion) |
| 202 | n += 1 + l + sovGenerated(uint64(l)) |
| 203 | l = len(m.Kind) |
| 204 | n += 1 + l + sovGenerated(uint64(l)) |
| 205 | return n |
| 206 | } |
| 207 | |
| 208 | func (m *Unknown) Size() (n int) { |
| 209 | var l int |
| 210 | _ = l |
| 211 | l = m.TypeMeta.Size() |
| 212 | n += 1 + l + sovGenerated(uint64(l)) |
| 213 | if m.Raw != nil { |
| 214 | l = len(m.Raw) |
| 215 | n += 1 + l + sovGenerated(uint64(l)) |
| 216 | } |
| 217 | l = len(m.ContentEncoding) |
| 218 | n += 1 + l + sovGenerated(uint64(l)) |
| 219 | l = len(m.ContentType) |
| 220 | n += 1 + l + sovGenerated(uint64(l)) |
| 221 | return n |
| 222 | } |
| 223 | |
| 224 | func sovGenerated(x uint64) (n int) { |
| 225 | for { |
| 226 | n++ |
| 227 | x >>= 7 |
| 228 | if x == 0 { |
| 229 | break |
| 230 | } |
| 231 | } |
| 232 | return n |
| 233 | } |
| 234 | func sozGenerated(x uint64) (n int) { |
| 235 | return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| 236 | } |
| 237 | func (this *RawExtension) String() string { |
| 238 | if this == nil { |
| 239 | return "nil" |
| 240 | } |
| 241 | s := strings.Join([]string{`&RawExtension{`, |
| 242 | `Raw:` + valueToStringGenerated(this.Raw) + `,`, |
| 243 | `}`, |
| 244 | }, "") |
| 245 | return s |
| 246 | } |
| 247 | func (this *TypeMeta) String() string { |
| 248 | if this == nil { |
| 249 | return "nil" |
| 250 | } |
| 251 | s := strings.Join([]string{`&TypeMeta{`, |
| 252 | `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, |
| 253 | `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, |
| 254 | `}`, |
| 255 | }, "") |
| 256 | return s |
| 257 | } |
| 258 | func (this *Unknown) String() string { |
| 259 | if this == nil { |
| 260 | return "nil" |
| 261 | } |
| 262 | s := strings.Join([]string{`&Unknown{`, |
| 263 | `TypeMeta:` + strings.Replace(strings.Replace(this.TypeMeta.String(), "TypeMeta", "TypeMeta", 1), `&`, ``, 1) + `,`, |
| 264 | `Raw:` + valueToStringGenerated(this.Raw) + `,`, |
| 265 | `ContentEncoding:` + fmt.Sprintf("%v", this.ContentEncoding) + `,`, |
| 266 | `ContentType:` + fmt.Sprintf("%v", this.ContentType) + `,`, |
| 267 | `}`, |
| 268 | }, "") |
| 269 | return s |
| 270 | } |
| 271 | func valueToStringGenerated(v interface{}) string { |
| 272 | rv := reflect.ValueOf(v) |
| 273 | if rv.IsNil() { |
| 274 | return "nil" |
| 275 | } |
| 276 | pv := reflect.Indirect(rv).Interface() |
| 277 | return fmt.Sprintf("*%v", pv) |
| 278 | } |
| 279 | func (m *RawExtension) Unmarshal(dAtA []byte) error { |
| 280 | l := len(dAtA) |
| 281 | iNdEx := 0 |
| 282 | for iNdEx < l { |
| 283 | preIndex := iNdEx |
| 284 | var wire uint64 |
| 285 | for shift := uint(0); ; shift += 7 { |
| 286 | if shift >= 64 { |
| 287 | return ErrIntOverflowGenerated |
| 288 | } |
| 289 | if iNdEx >= l { |
| 290 | return io.ErrUnexpectedEOF |
| 291 | } |
| 292 | b := dAtA[iNdEx] |
| 293 | iNdEx++ |
| 294 | wire |= (uint64(b) & 0x7F) << shift |
| 295 | if b < 0x80 { |
| 296 | break |
| 297 | } |
| 298 | } |
| 299 | fieldNum := int32(wire >> 3) |
| 300 | wireType := int(wire & 0x7) |
| 301 | if wireType == 4 { |
| 302 | return fmt.Errorf("proto: RawExtension: wiretype end group for non-group") |
| 303 | } |
| 304 | if fieldNum <= 0 { |
| 305 | return fmt.Errorf("proto: RawExtension: illegal tag %d (wire type %d)", fieldNum, wire) |
| 306 | } |
| 307 | switch fieldNum { |
| 308 | case 1: |
| 309 | if wireType != 2 { |
| 310 | return fmt.Errorf("proto: wrong wireType = %d for field Raw", wireType) |
| 311 | } |
| 312 | var byteLen int |
| 313 | for shift := uint(0); ; shift += 7 { |
| 314 | if shift >= 64 { |
| 315 | return ErrIntOverflowGenerated |
| 316 | } |
| 317 | if iNdEx >= l { |
| 318 | return io.ErrUnexpectedEOF |
| 319 | } |
| 320 | b := dAtA[iNdEx] |
| 321 | iNdEx++ |
| 322 | byteLen |= (int(b) & 0x7F) << shift |
| 323 | if b < 0x80 { |
| 324 | break |
| 325 | } |
| 326 | } |
| 327 | if byteLen < 0 { |
| 328 | return ErrInvalidLengthGenerated |
| 329 | } |
| 330 | postIndex := iNdEx + byteLen |
| 331 | if postIndex > l { |
| 332 | return io.ErrUnexpectedEOF |
| 333 | } |
| 334 | m.Raw = append(m.Raw[:0], dAtA[iNdEx:postIndex]...) |
| 335 | if m.Raw == nil { |
| 336 | m.Raw = []byte{} |
| 337 | } |
| 338 | iNdEx = postIndex |
| 339 | default: |
| 340 | iNdEx = preIndex |
| 341 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 342 | if err != nil { |
| 343 | return err |
| 344 | } |
| 345 | if skippy < 0 { |
| 346 | return ErrInvalidLengthGenerated |
| 347 | } |
| 348 | if (iNdEx + skippy) > l { |
| 349 | return io.ErrUnexpectedEOF |
| 350 | } |
| 351 | iNdEx += skippy |
| 352 | } |
| 353 | } |
| 354 | |
| 355 | if iNdEx > l { |
| 356 | return io.ErrUnexpectedEOF |
| 357 | } |
| 358 | return nil |
| 359 | } |
| 360 | func (m *TypeMeta) Unmarshal(dAtA []byte) error { |
| 361 | l := len(dAtA) |
| 362 | iNdEx := 0 |
| 363 | for iNdEx < l { |
| 364 | preIndex := iNdEx |
| 365 | var wire uint64 |
| 366 | for shift := uint(0); ; shift += 7 { |
| 367 | if shift >= 64 { |
| 368 | return ErrIntOverflowGenerated |
| 369 | } |
| 370 | if iNdEx >= l { |
| 371 | return io.ErrUnexpectedEOF |
| 372 | } |
| 373 | b := dAtA[iNdEx] |
| 374 | iNdEx++ |
| 375 | wire |= (uint64(b) & 0x7F) << shift |
| 376 | if b < 0x80 { |
| 377 | break |
| 378 | } |
| 379 | } |
| 380 | fieldNum := int32(wire >> 3) |
| 381 | wireType := int(wire & 0x7) |
| 382 | if wireType == 4 { |
| 383 | return fmt.Errorf("proto: TypeMeta: wiretype end group for non-group") |
| 384 | } |
| 385 | if fieldNum <= 0 { |
| 386 | return fmt.Errorf("proto: TypeMeta: illegal tag %d (wire type %d)", fieldNum, wire) |
| 387 | } |
| 388 | switch fieldNum { |
| 389 | case 1: |
| 390 | if wireType != 2 { |
| 391 | return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", wireType) |
| 392 | } |
| 393 | var stringLen uint64 |
| 394 | for shift := uint(0); ; shift += 7 { |
| 395 | if shift >= 64 { |
| 396 | return ErrIntOverflowGenerated |
| 397 | } |
| 398 | if iNdEx >= l { |
| 399 | return io.ErrUnexpectedEOF |
| 400 | } |
| 401 | b := dAtA[iNdEx] |
| 402 | iNdEx++ |
| 403 | stringLen |= (uint64(b) & 0x7F) << shift |
| 404 | if b < 0x80 { |
| 405 | break |
| 406 | } |
| 407 | } |
| 408 | intStringLen := int(stringLen) |
| 409 | if intStringLen < 0 { |
| 410 | return ErrInvalidLengthGenerated |
| 411 | } |
| 412 | postIndex := iNdEx + intStringLen |
| 413 | if postIndex > l { |
| 414 | return io.ErrUnexpectedEOF |
| 415 | } |
| 416 | m.APIVersion = string(dAtA[iNdEx:postIndex]) |
| 417 | iNdEx = postIndex |
| 418 | case 2: |
| 419 | if wireType != 2 { |
| 420 | return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) |
| 421 | } |
| 422 | var stringLen uint64 |
| 423 | for shift := uint(0); ; shift += 7 { |
| 424 | if shift >= 64 { |
| 425 | return ErrIntOverflowGenerated |
| 426 | } |
| 427 | if iNdEx >= l { |
| 428 | return io.ErrUnexpectedEOF |
| 429 | } |
| 430 | b := dAtA[iNdEx] |
| 431 | iNdEx++ |
| 432 | stringLen |= (uint64(b) & 0x7F) << shift |
| 433 | if b < 0x80 { |
| 434 | break |
| 435 | } |
| 436 | } |
| 437 | intStringLen := int(stringLen) |
| 438 | if intStringLen < 0 { |
| 439 | return ErrInvalidLengthGenerated |
| 440 | } |
| 441 | postIndex := iNdEx + intStringLen |
| 442 | if postIndex > l { |
| 443 | return io.ErrUnexpectedEOF |
| 444 | } |
| 445 | m.Kind = string(dAtA[iNdEx:postIndex]) |
| 446 | iNdEx = postIndex |
| 447 | default: |
| 448 | iNdEx = preIndex |
| 449 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 450 | if err != nil { |
| 451 | return err |
| 452 | } |
| 453 | if skippy < 0 { |
| 454 | return ErrInvalidLengthGenerated |
| 455 | } |
| 456 | if (iNdEx + skippy) > l { |
| 457 | return io.ErrUnexpectedEOF |
| 458 | } |
| 459 | iNdEx += skippy |
| 460 | } |
| 461 | } |
| 462 | |
| 463 | if iNdEx > l { |
| 464 | return io.ErrUnexpectedEOF |
| 465 | } |
| 466 | return nil |
| 467 | } |
| 468 | func (m *Unknown) Unmarshal(dAtA []byte) error { |
| 469 | l := len(dAtA) |
| 470 | iNdEx := 0 |
| 471 | for iNdEx < l { |
| 472 | preIndex := iNdEx |
| 473 | var wire uint64 |
| 474 | for shift := uint(0); ; shift += 7 { |
| 475 | if shift >= 64 { |
| 476 | return ErrIntOverflowGenerated |
| 477 | } |
| 478 | if iNdEx >= l { |
| 479 | return io.ErrUnexpectedEOF |
| 480 | } |
| 481 | b := dAtA[iNdEx] |
| 482 | iNdEx++ |
| 483 | wire |= (uint64(b) & 0x7F) << shift |
| 484 | if b < 0x80 { |
| 485 | break |
| 486 | } |
| 487 | } |
| 488 | fieldNum := int32(wire >> 3) |
| 489 | wireType := int(wire & 0x7) |
| 490 | if wireType == 4 { |
| 491 | return fmt.Errorf("proto: Unknown: wiretype end group for non-group") |
| 492 | } |
| 493 | if fieldNum <= 0 { |
| 494 | return fmt.Errorf("proto: Unknown: illegal tag %d (wire type %d)", fieldNum, wire) |
| 495 | } |
| 496 | switch fieldNum { |
| 497 | case 1: |
| 498 | if wireType != 2 { |
| 499 | return fmt.Errorf("proto: wrong wireType = %d for field TypeMeta", wireType) |
| 500 | } |
| 501 | var msglen int |
| 502 | for shift := uint(0); ; shift += 7 { |
| 503 | if shift >= 64 { |
| 504 | return ErrIntOverflowGenerated |
| 505 | } |
| 506 | if iNdEx >= l { |
| 507 | return io.ErrUnexpectedEOF |
| 508 | } |
| 509 | b := dAtA[iNdEx] |
| 510 | iNdEx++ |
| 511 | msglen |= (int(b) & 0x7F) << shift |
| 512 | if b < 0x80 { |
| 513 | break |
| 514 | } |
| 515 | } |
| 516 | if msglen < 0 { |
| 517 | return ErrInvalidLengthGenerated |
| 518 | } |
| 519 | postIndex := iNdEx + msglen |
| 520 | if postIndex > l { |
| 521 | return io.ErrUnexpectedEOF |
| 522 | } |
| 523 | if err := m.TypeMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 524 | return err |
| 525 | } |
| 526 | iNdEx = postIndex |
| 527 | case 2: |
| 528 | if wireType != 2 { |
| 529 | return fmt.Errorf("proto: wrong wireType = %d for field Raw", wireType) |
| 530 | } |
| 531 | var byteLen int |
| 532 | for shift := uint(0); ; shift += 7 { |
| 533 | if shift >= 64 { |
| 534 | return ErrIntOverflowGenerated |
| 535 | } |
| 536 | if iNdEx >= l { |
| 537 | return io.ErrUnexpectedEOF |
| 538 | } |
| 539 | b := dAtA[iNdEx] |
| 540 | iNdEx++ |
| 541 | byteLen |= (int(b) & 0x7F) << shift |
| 542 | if b < 0x80 { |
| 543 | break |
| 544 | } |
| 545 | } |
| 546 | if byteLen < 0 { |
| 547 | return ErrInvalidLengthGenerated |
| 548 | } |
| 549 | postIndex := iNdEx + byteLen |
| 550 | if postIndex > l { |
| 551 | return io.ErrUnexpectedEOF |
| 552 | } |
| 553 | m.Raw = append(m.Raw[:0], dAtA[iNdEx:postIndex]...) |
| 554 | if m.Raw == nil { |
| 555 | m.Raw = []byte{} |
| 556 | } |
| 557 | iNdEx = postIndex |
| 558 | case 3: |
| 559 | if wireType != 2 { |
| 560 | return fmt.Errorf("proto: wrong wireType = %d for field ContentEncoding", wireType) |
| 561 | } |
| 562 | var stringLen uint64 |
| 563 | for shift := uint(0); ; shift += 7 { |
| 564 | if shift >= 64 { |
| 565 | return ErrIntOverflowGenerated |
| 566 | } |
| 567 | if iNdEx >= l { |
| 568 | return io.ErrUnexpectedEOF |
| 569 | } |
| 570 | b := dAtA[iNdEx] |
| 571 | iNdEx++ |
| 572 | stringLen |= (uint64(b) & 0x7F) << shift |
| 573 | if b < 0x80 { |
| 574 | break |
| 575 | } |
| 576 | } |
| 577 | intStringLen := int(stringLen) |
| 578 | if intStringLen < 0 { |
| 579 | return ErrInvalidLengthGenerated |
| 580 | } |
| 581 | postIndex := iNdEx + intStringLen |
| 582 | if postIndex > l { |
| 583 | return io.ErrUnexpectedEOF |
| 584 | } |
| 585 | m.ContentEncoding = string(dAtA[iNdEx:postIndex]) |
| 586 | iNdEx = postIndex |
| 587 | case 4: |
| 588 | if wireType != 2 { |
| 589 | return fmt.Errorf("proto: wrong wireType = %d for field ContentType", wireType) |
| 590 | } |
| 591 | var stringLen uint64 |
| 592 | for shift := uint(0); ; shift += 7 { |
| 593 | if shift >= 64 { |
| 594 | return ErrIntOverflowGenerated |
| 595 | } |
| 596 | if iNdEx >= l { |
| 597 | return io.ErrUnexpectedEOF |
| 598 | } |
| 599 | b := dAtA[iNdEx] |
| 600 | iNdEx++ |
| 601 | stringLen |= (uint64(b) & 0x7F) << shift |
| 602 | if b < 0x80 { |
| 603 | break |
| 604 | } |
| 605 | } |
| 606 | intStringLen := int(stringLen) |
| 607 | if intStringLen < 0 { |
| 608 | return ErrInvalidLengthGenerated |
| 609 | } |
| 610 | postIndex := iNdEx + intStringLen |
| 611 | if postIndex > l { |
| 612 | return io.ErrUnexpectedEOF |
| 613 | } |
| 614 | m.ContentType = string(dAtA[iNdEx:postIndex]) |
| 615 | iNdEx = postIndex |
| 616 | default: |
| 617 | iNdEx = preIndex |
| 618 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 619 | if err != nil { |
| 620 | return err |
| 621 | } |
| 622 | if skippy < 0 { |
| 623 | return ErrInvalidLengthGenerated |
| 624 | } |
| 625 | if (iNdEx + skippy) > l { |
| 626 | return io.ErrUnexpectedEOF |
| 627 | } |
| 628 | iNdEx += skippy |
| 629 | } |
| 630 | } |
| 631 | |
| 632 | if iNdEx > l { |
| 633 | return io.ErrUnexpectedEOF |
| 634 | } |
| 635 | return nil |
| 636 | } |
| 637 | func skipGenerated(dAtA []byte) (n int, err error) { |
| 638 | l := len(dAtA) |
| 639 | iNdEx := 0 |
| 640 | for iNdEx < l { |
| 641 | var wire uint64 |
| 642 | for shift := uint(0); ; shift += 7 { |
| 643 | if shift >= 64 { |
| 644 | return 0, ErrIntOverflowGenerated |
| 645 | } |
| 646 | if iNdEx >= l { |
| 647 | return 0, io.ErrUnexpectedEOF |
| 648 | } |
| 649 | b := dAtA[iNdEx] |
| 650 | iNdEx++ |
| 651 | wire |= (uint64(b) & 0x7F) << shift |
| 652 | if b < 0x80 { |
| 653 | break |
| 654 | } |
| 655 | } |
| 656 | wireType := int(wire & 0x7) |
| 657 | switch wireType { |
| 658 | case 0: |
| 659 | for shift := uint(0); ; shift += 7 { |
| 660 | if shift >= 64 { |
| 661 | return 0, ErrIntOverflowGenerated |
| 662 | } |
| 663 | if iNdEx >= l { |
| 664 | return 0, io.ErrUnexpectedEOF |
| 665 | } |
| 666 | iNdEx++ |
| 667 | if dAtA[iNdEx-1] < 0x80 { |
| 668 | break |
| 669 | } |
| 670 | } |
| 671 | return iNdEx, nil |
| 672 | case 1: |
| 673 | iNdEx += 8 |
| 674 | return iNdEx, nil |
| 675 | case 2: |
| 676 | var length int |
| 677 | for shift := uint(0); ; shift += 7 { |
| 678 | if shift >= 64 { |
| 679 | return 0, ErrIntOverflowGenerated |
| 680 | } |
| 681 | if iNdEx >= l { |
| 682 | return 0, io.ErrUnexpectedEOF |
| 683 | } |
| 684 | b := dAtA[iNdEx] |
| 685 | iNdEx++ |
| 686 | length |= (int(b) & 0x7F) << shift |
| 687 | if b < 0x80 { |
| 688 | break |
| 689 | } |
| 690 | } |
| 691 | iNdEx += length |
| 692 | if length < 0 { |
| 693 | return 0, ErrInvalidLengthGenerated |
| 694 | } |
| 695 | return iNdEx, nil |
| 696 | case 3: |
| 697 | for { |
| 698 | var innerWire uint64 |
| 699 | var start int = iNdEx |
| 700 | for shift := uint(0); ; shift += 7 { |
| 701 | if shift >= 64 { |
| 702 | return 0, ErrIntOverflowGenerated |
| 703 | } |
| 704 | if iNdEx >= l { |
| 705 | return 0, io.ErrUnexpectedEOF |
| 706 | } |
| 707 | b := dAtA[iNdEx] |
| 708 | iNdEx++ |
| 709 | innerWire |= (uint64(b) & 0x7F) << shift |
| 710 | if b < 0x80 { |
| 711 | break |
| 712 | } |
| 713 | } |
| 714 | innerWireType := int(innerWire & 0x7) |
| 715 | if innerWireType == 4 { |
| 716 | break |
| 717 | } |
| 718 | next, err := skipGenerated(dAtA[start:]) |
| 719 | if err != nil { |
| 720 | return 0, err |
| 721 | } |
| 722 | iNdEx = start + next |
| 723 | } |
| 724 | return iNdEx, nil |
| 725 | case 4: |
| 726 | return iNdEx, nil |
| 727 | case 5: |
| 728 | iNdEx += 4 |
| 729 | return iNdEx, nil |
| 730 | default: |
| 731 | return 0, fmt.Errorf("proto: illegal wireType %d", wireType) |
| 732 | } |
| 733 | } |
| 734 | panic("unreachable") |
| 735 | } |
| 736 | |
| 737 | var ( |
| 738 | ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") |
| 739 | ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") |
| 740 | ) |
| 741 | |
| 742 | func init() { |
| 743 | proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/runtime/generated.proto", fileDescriptorGenerated) |
| 744 | } |
| 745 | |
| 746 | var fileDescriptorGenerated = []byte{ |
| 747 | // 395 bytes of a gzipped FileDescriptorProto |
| 748 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0x4f, 0x6f, 0xd3, 0x30, |
| 749 | 0x18, 0xc6, 0xe3, 0xb5, 0x52, 0x87, 0x5b, 0x69, 0xc8, 0x1c, 0x08, 0x3b, 0x38, 0x53, 0x4f, 0xec, |
| 750 | 0x30, 0x5b, 0x1a, 0x42, 0xe2, 0xba, 0x4c, 0x93, 0x40, 0x08, 0x09, 0x59, 0xfc, 0x91, 0x38, 0xe1, |
| 751 | 0x26, 0x26, 0xb3, 0x42, 0x5f, 0x47, 0x8e, 0x43, 0xd8, 0x8d, 0x8f, 0xc0, 0xc7, 0xea, 0x71, 0xc7, |
| 752 | 0x9e, 0x2a, 0x1a, 0x3e, 0x04, 0x57, 0x54, 0xd7, 0x2d, 0xa5, 0x08, 0xed, 0x16, 0xbf, 0xcf, 0xf3, |
| 753 | 0x7b, 0xde, 0xe7, 0x0d, 0x7e, 0x5e, 0x3e, 0xab, 0x99, 0x36, 0xbc, 0x6c, 0x26, 0xca, 0x82, 0x72, |
| 754 | 0xaa, 0xe6, 0x5f, 0x14, 0xe4, 0xc6, 0xf2, 0x20, 0xc8, 0x4a, 0x4f, 0x65, 0x76, 0xad, 0x41, 0xd9, |
| 755 | 0x1b, 0x5e, 0x95, 0x05, 0xb7, 0x0d, 0x38, 0x3d, 0x55, 0xbc, 0x50, 0xa0, 0xac, 0x74, 0x2a, 0x67, |
| 756 | 0x95, 0x35, 0xce, 0x90, 0x64, 0x0d, 0xb0, 0x5d, 0x80, 0x55, 0x65, 0xc1, 0x02, 0x70, 0x7c, 0x56, |
| 757 | 0x68, 0x77, 0xdd, 0x4c, 0x58, 0x66, 0xa6, 0xbc, 0x30, 0x85, 0xe1, 0x9e, 0x9b, 0x34, 0x9f, 0xfc, |
| 758 | 0xcb, 0x3f, 0xfc, 0xd7, 0x3a, 0xef, 0xf8, 0xc9, 0xff, 0x0a, 0x34, 0x4e, 0x7f, 0xe6, 0x1a, 0x5c, |
| 759 | 0xed, 0xec, 0x7e, 0x89, 0xf1, 0x29, 0x1e, 0x09, 0xd9, 0x5e, 0x7d, 0x75, 0x0a, 0x6a, 0x6d, 0x80, |
| 760 | 0x3c, 0xc2, 0x3d, 0x2b, 0xdb, 0x18, 0x9d, 0xa0, 0xc7, 0xa3, 0x74, 0xd0, 0x2d, 0x92, 0x9e, 0x90, |
| 761 | 0xad, 0x58, 0xcd, 0xc6, 0x1f, 0xf1, 0xe1, 0x9b, 0x9b, 0x4a, 0xbd, 0x52, 0x4e, 0x92, 0x73, 0x8c, |
| 762 | 0x65, 0xa5, 0xdf, 0x29, 0xbb, 0x82, 0xbc, 0xfb, 0x5e, 0x4a, 0x66, 0x8b, 0x24, 0xea, 0x16, 0x09, |
| 763 | 0xbe, 0x78, 0xfd, 0x22, 0x28, 0x62, 0xc7, 0x45, 0x4e, 0x70, 0xbf, 0xd4, 0x90, 0xc7, 0x07, 0xde, |
| 764 | 0x3d, 0x0a, 0xee, 0xfe, 0x4b, 0x0d, 0xb9, 0xf0, 0xca, 0xf8, 0x17, 0xc2, 0x83, 0xb7, 0x50, 0x82, |
| 765 | 0x69, 0x81, 0xbc, 0xc7, 0x87, 0x2e, 0x6c, 0xf3, 0xf9, 0xc3, 0xf3, 0x53, 0x76, 0xc7, 0x0f, 0x63, |
| 766 | 0x9b, 0x7a, 0xe9, 0xfd, 0x10, 0xbe, 0x2d, 0x2c, 0xb6, 0x61, 0x9b, 0x0b, 0x0f, 0xfe, 0xbd, 0x90, |
| 767 | 0x5c, 0xe0, 0xa3, 0xcc, 0x80, 0x53, 0xe0, 0xae, 0x20, 0x33, 0xb9, 0x86, 0x22, 0xee, 0xf9, 0xb2, |
| 768 | 0x0f, 0x43, 0xde, 0xd1, 0xe5, 0xdf, 0xb2, 0xd8, 0xf7, 0x93, 0xa7, 0x78, 0x18, 0x46, 0xab, 0xd5, |
| 769 | 0x71, 0xdf, 0xe3, 0x0f, 0x02, 0x3e, 0xbc, 0xfc, 0x23, 0x89, 0x5d, 0x5f, 0x7a, 0x36, 0x5b, 0xd2, |
| 770 | 0xe8, 0x76, 0x49, 0xa3, 0xf9, 0x92, 0x46, 0xdf, 0x3a, 0x8a, 0x66, 0x1d, 0x45, 0xb7, 0x1d, 0x45, |
| 771 | 0xf3, 0x8e, 0xa2, 0x1f, 0x1d, 0x45, 0xdf, 0x7f, 0xd2, 0xe8, 0xc3, 0x20, 0x1c, 0xfa, 0x3b, 0x00, |
| 772 | 0x00, 0xff, 0xff, 0x3f, 0x1e, 0x24, 0x09, 0x85, 0x02, 0x00, 0x00, |
| 773 | } |