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