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 | |
| 17 | // Code generated by protoc-gen-gogo. DO NOT EDIT. |
| 18 | // source: k8s.io/kubernetes/vendor/k8s.io/api/scheduling/v1beta1/generated.proto |
| 19 | |
| 20 | /* |
| 21 | Package v1beta1 is a generated protocol buffer package. |
| 22 | |
| 23 | It is generated from these files: |
| 24 | k8s.io/kubernetes/vendor/k8s.io/api/scheduling/v1beta1/generated.proto |
| 25 | |
| 26 | It has these top-level messages: |
| 27 | PriorityClass |
| 28 | PriorityClassList |
| 29 | */ |
| 30 | package v1beta1 |
| 31 | |
Scott Baker | 4a35a70 | 2019-11-26 08:17:33 -0800 | [diff] [blame] | 32 | import ( |
| 33 | fmt "fmt" |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 34 | |
Scott Baker | 4a35a70 | 2019-11-26 08:17:33 -0800 | [diff] [blame] | 35 | proto "github.com/gogo/protobuf/proto" |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 36 | |
Scott Baker | 4a35a70 | 2019-11-26 08:17:33 -0800 | [diff] [blame] | 37 | math "math" |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 38 | |
Scott Baker | 4a35a70 | 2019-11-26 08:17:33 -0800 | [diff] [blame] | 39 | k8s_io_api_core_v1 "k8s.io/api/core/v1" |
| 40 | |
| 41 | strings "strings" |
| 42 | |
| 43 | reflect "reflect" |
| 44 | |
| 45 | io "io" |
| 46 | ) |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 47 | |
| 48 | // Reference imports to suppress errors if they are not otherwise used. |
| 49 | var _ = proto.Marshal |
| 50 | var _ = fmt.Errorf |
| 51 | var _ = math.Inf |
| 52 | |
| 53 | // This is a compile-time assertion to ensure that this generated file |
| 54 | // is compatible with the proto package it is being compiled against. |
| 55 | // A compilation error at this line likely means your copy of the |
| 56 | // proto package needs to be updated. |
| 57 | const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package |
| 58 | |
| 59 | func (m *PriorityClass) Reset() { *m = PriorityClass{} } |
| 60 | func (*PriorityClass) ProtoMessage() {} |
| 61 | func (*PriorityClass) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } |
| 62 | |
| 63 | func (m *PriorityClassList) Reset() { *m = PriorityClassList{} } |
| 64 | func (*PriorityClassList) ProtoMessage() {} |
| 65 | func (*PriorityClassList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } |
| 66 | |
| 67 | func init() { |
| 68 | proto.RegisterType((*PriorityClass)(nil), "k8s.io.api.scheduling.v1beta1.PriorityClass") |
| 69 | proto.RegisterType((*PriorityClassList)(nil), "k8s.io.api.scheduling.v1beta1.PriorityClassList") |
| 70 | } |
| 71 | func (m *PriorityClass) 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 *PriorityClass) MarshalTo(dAtA []byte) (int, error) { |
| 82 | var i int |
| 83 | _ = i |
| 84 | var l int |
| 85 | _ = l |
| 86 | dAtA[i] = 0xa |
| 87 | i++ |
| 88 | i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) |
| 89 | n1, err := m.ObjectMeta.MarshalTo(dAtA[i:]) |
| 90 | if err != nil { |
| 91 | return 0, err |
| 92 | } |
| 93 | i += n1 |
| 94 | dAtA[i] = 0x10 |
| 95 | i++ |
| 96 | i = encodeVarintGenerated(dAtA, i, uint64(m.Value)) |
| 97 | dAtA[i] = 0x18 |
| 98 | i++ |
| 99 | if m.GlobalDefault { |
| 100 | dAtA[i] = 1 |
| 101 | } else { |
| 102 | dAtA[i] = 0 |
| 103 | } |
| 104 | i++ |
| 105 | dAtA[i] = 0x22 |
| 106 | i++ |
| 107 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Description))) |
| 108 | i += copy(dAtA[i:], m.Description) |
| 109 | if m.PreemptionPolicy != nil { |
| 110 | dAtA[i] = 0x2a |
| 111 | i++ |
| 112 | i = encodeVarintGenerated(dAtA, i, uint64(len(*m.PreemptionPolicy))) |
| 113 | i += copy(dAtA[i:], *m.PreemptionPolicy) |
| 114 | } |
| 115 | return i, nil |
| 116 | } |
| 117 | |
| 118 | func (m *PriorityClassList) 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 *PriorityClassList) 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.ListMeta.Size())) |
| 136 | n2, err := m.ListMeta.MarshalTo(dAtA[i:]) |
| 137 | if err != nil { |
| 138 | return 0, err |
| 139 | } |
| 140 | i += n2 |
| 141 | if len(m.Items) > 0 { |
| 142 | for _, msg := range m.Items { |
| 143 | dAtA[i] = 0x12 |
| 144 | i++ |
| 145 | i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) |
| 146 | n, err := msg.MarshalTo(dAtA[i:]) |
| 147 | if err != nil { |
| 148 | return 0, err |
| 149 | } |
| 150 | i += n |
| 151 | } |
| 152 | } |
| 153 | return i, nil |
| 154 | } |
| 155 | |
| 156 | func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { |
| 157 | for v >= 1<<7 { |
| 158 | dAtA[offset] = uint8(v&0x7f | 0x80) |
| 159 | v >>= 7 |
| 160 | offset++ |
| 161 | } |
| 162 | dAtA[offset] = uint8(v) |
| 163 | return offset + 1 |
| 164 | } |
| 165 | func (m *PriorityClass) Size() (n int) { |
| 166 | var l int |
| 167 | _ = l |
| 168 | l = m.ObjectMeta.Size() |
| 169 | n += 1 + l + sovGenerated(uint64(l)) |
| 170 | n += 1 + sovGenerated(uint64(m.Value)) |
| 171 | n += 2 |
| 172 | l = len(m.Description) |
| 173 | n += 1 + l + sovGenerated(uint64(l)) |
| 174 | if m.PreemptionPolicy != nil { |
| 175 | l = len(*m.PreemptionPolicy) |
| 176 | n += 1 + l + sovGenerated(uint64(l)) |
| 177 | } |
| 178 | return n |
| 179 | } |
| 180 | |
| 181 | func (m *PriorityClassList) Size() (n int) { |
| 182 | var l int |
| 183 | _ = l |
| 184 | l = m.ListMeta.Size() |
| 185 | n += 1 + l + sovGenerated(uint64(l)) |
| 186 | if len(m.Items) > 0 { |
| 187 | for _, e := range m.Items { |
| 188 | l = e.Size() |
| 189 | n += 1 + l + sovGenerated(uint64(l)) |
| 190 | } |
| 191 | } |
| 192 | return n |
| 193 | } |
| 194 | |
| 195 | func sovGenerated(x uint64) (n int) { |
| 196 | for { |
| 197 | n++ |
| 198 | x >>= 7 |
| 199 | if x == 0 { |
| 200 | break |
| 201 | } |
| 202 | } |
| 203 | return n |
| 204 | } |
| 205 | func sozGenerated(x uint64) (n int) { |
| 206 | return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| 207 | } |
| 208 | func (this *PriorityClass) String() string { |
| 209 | if this == nil { |
| 210 | return "nil" |
| 211 | } |
| 212 | s := strings.Join([]string{`&PriorityClass{`, |
| 213 | `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, |
| 214 | `Value:` + fmt.Sprintf("%v", this.Value) + `,`, |
| 215 | `GlobalDefault:` + fmt.Sprintf("%v", this.GlobalDefault) + `,`, |
| 216 | `Description:` + fmt.Sprintf("%v", this.Description) + `,`, |
| 217 | `PreemptionPolicy:` + valueToStringGenerated(this.PreemptionPolicy) + `,`, |
| 218 | `}`, |
| 219 | }, "") |
| 220 | return s |
| 221 | } |
| 222 | func (this *PriorityClassList) String() string { |
| 223 | if this == nil { |
| 224 | return "nil" |
| 225 | } |
| 226 | s := strings.Join([]string{`&PriorityClassList{`, |
| 227 | `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, |
| 228 | `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "PriorityClass", "PriorityClass", 1), `&`, ``, 1) + `,`, |
| 229 | `}`, |
| 230 | }, "") |
| 231 | return s |
| 232 | } |
| 233 | func valueToStringGenerated(v interface{}) string { |
| 234 | rv := reflect.ValueOf(v) |
| 235 | if rv.IsNil() { |
| 236 | return "nil" |
| 237 | } |
| 238 | pv := reflect.Indirect(rv).Interface() |
| 239 | return fmt.Sprintf("*%v", pv) |
| 240 | } |
| 241 | func (m *PriorityClass) Unmarshal(dAtA []byte) error { |
| 242 | l := len(dAtA) |
| 243 | iNdEx := 0 |
| 244 | for iNdEx < l { |
| 245 | preIndex := iNdEx |
| 246 | var wire uint64 |
| 247 | for shift := uint(0); ; shift += 7 { |
| 248 | if shift >= 64 { |
| 249 | return ErrIntOverflowGenerated |
| 250 | } |
| 251 | if iNdEx >= l { |
| 252 | return io.ErrUnexpectedEOF |
| 253 | } |
| 254 | b := dAtA[iNdEx] |
| 255 | iNdEx++ |
| 256 | wire |= (uint64(b) & 0x7F) << shift |
| 257 | if b < 0x80 { |
| 258 | break |
| 259 | } |
| 260 | } |
| 261 | fieldNum := int32(wire >> 3) |
| 262 | wireType := int(wire & 0x7) |
| 263 | if wireType == 4 { |
| 264 | return fmt.Errorf("proto: PriorityClass: wiretype end group for non-group") |
| 265 | } |
| 266 | if fieldNum <= 0 { |
| 267 | return fmt.Errorf("proto: PriorityClass: illegal tag %d (wire type %d)", fieldNum, wire) |
| 268 | } |
| 269 | switch fieldNum { |
| 270 | case 1: |
| 271 | if wireType != 2 { |
| 272 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) |
| 273 | } |
| 274 | var msglen int |
| 275 | for shift := uint(0); ; shift += 7 { |
| 276 | if shift >= 64 { |
| 277 | return ErrIntOverflowGenerated |
| 278 | } |
| 279 | if iNdEx >= l { |
| 280 | return io.ErrUnexpectedEOF |
| 281 | } |
| 282 | b := dAtA[iNdEx] |
| 283 | iNdEx++ |
| 284 | msglen |= (int(b) & 0x7F) << shift |
| 285 | if b < 0x80 { |
| 286 | break |
| 287 | } |
| 288 | } |
| 289 | if msglen < 0 { |
| 290 | return ErrInvalidLengthGenerated |
| 291 | } |
| 292 | postIndex := iNdEx + msglen |
| 293 | if postIndex > l { |
| 294 | return io.ErrUnexpectedEOF |
| 295 | } |
| 296 | if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 297 | return err |
| 298 | } |
| 299 | iNdEx = postIndex |
| 300 | case 2: |
| 301 | if wireType != 0 { |
| 302 | return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) |
| 303 | } |
| 304 | m.Value = 0 |
| 305 | for shift := uint(0); ; shift += 7 { |
| 306 | if shift >= 64 { |
| 307 | return ErrIntOverflowGenerated |
| 308 | } |
| 309 | if iNdEx >= l { |
| 310 | return io.ErrUnexpectedEOF |
| 311 | } |
| 312 | b := dAtA[iNdEx] |
| 313 | iNdEx++ |
| 314 | m.Value |= (int32(b) & 0x7F) << shift |
| 315 | if b < 0x80 { |
| 316 | break |
| 317 | } |
| 318 | } |
| 319 | case 3: |
| 320 | if wireType != 0 { |
| 321 | return fmt.Errorf("proto: wrong wireType = %d for field GlobalDefault", wireType) |
| 322 | } |
| 323 | var v int |
| 324 | for shift := uint(0); ; shift += 7 { |
| 325 | if shift >= 64 { |
| 326 | return ErrIntOverflowGenerated |
| 327 | } |
| 328 | if iNdEx >= l { |
| 329 | return io.ErrUnexpectedEOF |
| 330 | } |
| 331 | b := dAtA[iNdEx] |
| 332 | iNdEx++ |
| 333 | v |= (int(b) & 0x7F) << shift |
| 334 | if b < 0x80 { |
| 335 | break |
| 336 | } |
| 337 | } |
| 338 | m.GlobalDefault = bool(v != 0) |
| 339 | case 4: |
| 340 | if wireType != 2 { |
| 341 | return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) |
| 342 | } |
| 343 | var stringLen uint64 |
| 344 | for shift := uint(0); ; shift += 7 { |
| 345 | if shift >= 64 { |
| 346 | return ErrIntOverflowGenerated |
| 347 | } |
| 348 | if iNdEx >= l { |
| 349 | return io.ErrUnexpectedEOF |
| 350 | } |
| 351 | b := dAtA[iNdEx] |
| 352 | iNdEx++ |
| 353 | stringLen |= (uint64(b) & 0x7F) << shift |
| 354 | if b < 0x80 { |
| 355 | break |
| 356 | } |
| 357 | } |
| 358 | intStringLen := int(stringLen) |
| 359 | if intStringLen < 0 { |
| 360 | return ErrInvalidLengthGenerated |
| 361 | } |
| 362 | postIndex := iNdEx + intStringLen |
| 363 | if postIndex > l { |
| 364 | return io.ErrUnexpectedEOF |
| 365 | } |
| 366 | m.Description = string(dAtA[iNdEx:postIndex]) |
| 367 | iNdEx = postIndex |
| 368 | case 5: |
| 369 | if wireType != 2 { |
| 370 | return fmt.Errorf("proto: wrong wireType = %d for field PreemptionPolicy", wireType) |
| 371 | } |
| 372 | var stringLen uint64 |
| 373 | for shift := uint(0); ; shift += 7 { |
| 374 | if shift >= 64 { |
| 375 | return ErrIntOverflowGenerated |
| 376 | } |
| 377 | if iNdEx >= l { |
| 378 | return io.ErrUnexpectedEOF |
| 379 | } |
| 380 | b := dAtA[iNdEx] |
| 381 | iNdEx++ |
| 382 | stringLen |= (uint64(b) & 0x7F) << shift |
| 383 | if b < 0x80 { |
| 384 | break |
| 385 | } |
| 386 | } |
| 387 | intStringLen := int(stringLen) |
| 388 | if intStringLen < 0 { |
| 389 | return ErrInvalidLengthGenerated |
| 390 | } |
| 391 | postIndex := iNdEx + intStringLen |
| 392 | if postIndex > l { |
| 393 | return io.ErrUnexpectedEOF |
| 394 | } |
| 395 | s := k8s_io_api_core_v1.PreemptionPolicy(dAtA[iNdEx:postIndex]) |
| 396 | m.PreemptionPolicy = &s |
| 397 | iNdEx = postIndex |
| 398 | default: |
| 399 | iNdEx = preIndex |
| 400 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 401 | if err != nil { |
| 402 | return err |
| 403 | } |
| 404 | if skippy < 0 { |
| 405 | return ErrInvalidLengthGenerated |
| 406 | } |
| 407 | if (iNdEx + skippy) > l { |
| 408 | return io.ErrUnexpectedEOF |
| 409 | } |
| 410 | iNdEx += skippy |
| 411 | } |
| 412 | } |
| 413 | |
| 414 | if iNdEx > l { |
| 415 | return io.ErrUnexpectedEOF |
| 416 | } |
| 417 | return nil |
| 418 | } |
| 419 | func (m *PriorityClassList) Unmarshal(dAtA []byte) error { |
| 420 | l := len(dAtA) |
| 421 | iNdEx := 0 |
| 422 | for iNdEx < l { |
| 423 | preIndex := iNdEx |
| 424 | var wire uint64 |
| 425 | for shift := uint(0); ; shift += 7 { |
| 426 | if shift >= 64 { |
| 427 | return ErrIntOverflowGenerated |
| 428 | } |
| 429 | if iNdEx >= l { |
| 430 | return io.ErrUnexpectedEOF |
| 431 | } |
| 432 | b := dAtA[iNdEx] |
| 433 | iNdEx++ |
| 434 | wire |= (uint64(b) & 0x7F) << shift |
| 435 | if b < 0x80 { |
| 436 | break |
| 437 | } |
| 438 | } |
| 439 | fieldNum := int32(wire >> 3) |
| 440 | wireType := int(wire & 0x7) |
| 441 | if wireType == 4 { |
| 442 | return fmt.Errorf("proto: PriorityClassList: wiretype end group for non-group") |
| 443 | } |
| 444 | if fieldNum <= 0 { |
| 445 | return fmt.Errorf("proto: PriorityClassList: illegal tag %d (wire type %d)", fieldNum, wire) |
| 446 | } |
| 447 | switch fieldNum { |
| 448 | case 1: |
| 449 | if wireType != 2 { |
| 450 | return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) |
| 451 | } |
| 452 | var msglen int |
| 453 | for shift := uint(0); ; shift += 7 { |
| 454 | if shift >= 64 { |
| 455 | return ErrIntOverflowGenerated |
| 456 | } |
| 457 | if iNdEx >= l { |
| 458 | return io.ErrUnexpectedEOF |
| 459 | } |
| 460 | b := dAtA[iNdEx] |
| 461 | iNdEx++ |
| 462 | msglen |= (int(b) & 0x7F) << shift |
| 463 | if b < 0x80 { |
| 464 | break |
| 465 | } |
| 466 | } |
| 467 | if msglen < 0 { |
| 468 | return ErrInvalidLengthGenerated |
| 469 | } |
| 470 | postIndex := iNdEx + msglen |
| 471 | if postIndex > l { |
| 472 | return io.ErrUnexpectedEOF |
| 473 | } |
| 474 | if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 475 | return err |
| 476 | } |
| 477 | iNdEx = postIndex |
| 478 | case 2: |
| 479 | if wireType != 2 { |
| 480 | return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) |
| 481 | } |
| 482 | var msglen int |
| 483 | for shift := uint(0); ; shift += 7 { |
| 484 | if shift >= 64 { |
| 485 | return ErrIntOverflowGenerated |
| 486 | } |
| 487 | if iNdEx >= l { |
| 488 | return io.ErrUnexpectedEOF |
| 489 | } |
| 490 | b := dAtA[iNdEx] |
| 491 | iNdEx++ |
| 492 | msglen |= (int(b) & 0x7F) << shift |
| 493 | if b < 0x80 { |
| 494 | break |
| 495 | } |
| 496 | } |
| 497 | if msglen < 0 { |
| 498 | return ErrInvalidLengthGenerated |
| 499 | } |
| 500 | postIndex := iNdEx + msglen |
| 501 | if postIndex > l { |
| 502 | return io.ErrUnexpectedEOF |
| 503 | } |
| 504 | m.Items = append(m.Items, PriorityClass{}) |
| 505 | if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 506 | return err |
| 507 | } |
| 508 | iNdEx = postIndex |
| 509 | default: |
| 510 | iNdEx = preIndex |
| 511 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 512 | if err != nil { |
| 513 | return err |
| 514 | } |
| 515 | if skippy < 0 { |
| 516 | return ErrInvalidLengthGenerated |
| 517 | } |
| 518 | if (iNdEx + skippy) > l { |
| 519 | return io.ErrUnexpectedEOF |
| 520 | } |
| 521 | iNdEx += skippy |
| 522 | } |
| 523 | } |
| 524 | |
| 525 | if iNdEx > l { |
| 526 | return io.ErrUnexpectedEOF |
| 527 | } |
| 528 | return nil |
| 529 | } |
| 530 | func skipGenerated(dAtA []byte) (n int, err error) { |
| 531 | l := len(dAtA) |
| 532 | iNdEx := 0 |
| 533 | for iNdEx < l { |
| 534 | var wire uint64 |
| 535 | for shift := uint(0); ; shift += 7 { |
| 536 | if shift >= 64 { |
| 537 | return 0, ErrIntOverflowGenerated |
| 538 | } |
| 539 | if iNdEx >= l { |
| 540 | return 0, io.ErrUnexpectedEOF |
| 541 | } |
| 542 | b := dAtA[iNdEx] |
| 543 | iNdEx++ |
| 544 | wire |= (uint64(b) & 0x7F) << shift |
| 545 | if b < 0x80 { |
| 546 | break |
| 547 | } |
| 548 | } |
| 549 | wireType := int(wire & 0x7) |
| 550 | switch wireType { |
| 551 | case 0: |
| 552 | for shift := uint(0); ; shift += 7 { |
| 553 | if shift >= 64 { |
| 554 | return 0, ErrIntOverflowGenerated |
| 555 | } |
| 556 | if iNdEx >= l { |
| 557 | return 0, io.ErrUnexpectedEOF |
| 558 | } |
| 559 | iNdEx++ |
| 560 | if dAtA[iNdEx-1] < 0x80 { |
| 561 | break |
| 562 | } |
| 563 | } |
| 564 | return iNdEx, nil |
| 565 | case 1: |
| 566 | iNdEx += 8 |
| 567 | return iNdEx, nil |
| 568 | case 2: |
| 569 | var length int |
| 570 | for shift := uint(0); ; shift += 7 { |
| 571 | if shift >= 64 { |
| 572 | return 0, ErrIntOverflowGenerated |
| 573 | } |
| 574 | if iNdEx >= l { |
| 575 | return 0, io.ErrUnexpectedEOF |
| 576 | } |
| 577 | b := dAtA[iNdEx] |
| 578 | iNdEx++ |
| 579 | length |= (int(b) & 0x7F) << shift |
| 580 | if b < 0x80 { |
| 581 | break |
| 582 | } |
| 583 | } |
| 584 | iNdEx += length |
| 585 | if length < 0 { |
| 586 | return 0, ErrInvalidLengthGenerated |
| 587 | } |
| 588 | return iNdEx, nil |
| 589 | case 3: |
| 590 | for { |
| 591 | var innerWire uint64 |
| 592 | var start int = iNdEx |
| 593 | for shift := uint(0); ; shift += 7 { |
| 594 | if shift >= 64 { |
| 595 | return 0, ErrIntOverflowGenerated |
| 596 | } |
| 597 | if iNdEx >= l { |
| 598 | return 0, io.ErrUnexpectedEOF |
| 599 | } |
| 600 | b := dAtA[iNdEx] |
| 601 | iNdEx++ |
| 602 | innerWire |= (uint64(b) & 0x7F) << shift |
| 603 | if b < 0x80 { |
| 604 | break |
| 605 | } |
| 606 | } |
| 607 | innerWireType := int(innerWire & 0x7) |
| 608 | if innerWireType == 4 { |
| 609 | break |
| 610 | } |
| 611 | next, err := skipGenerated(dAtA[start:]) |
| 612 | if err != nil { |
| 613 | return 0, err |
| 614 | } |
| 615 | iNdEx = start + next |
| 616 | } |
| 617 | return iNdEx, nil |
| 618 | case 4: |
| 619 | return iNdEx, nil |
| 620 | case 5: |
| 621 | iNdEx += 4 |
| 622 | return iNdEx, nil |
| 623 | default: |
| 624 | return 0, fmt.Errorf("proto: illegal wireType %d", wireType) |
| 625 | } |
| 626 | } |
| 627 | panic("unreachable") |
| 628 | } |
| 629 | |
| 630 | var ( |
| 631 | ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") |
| 632 | ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") |
| 633 | ) |
| 634 | |
| 635 | func init() { |
| 636 | proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/scheduling/v1beta1/generated.proto", fileDescriptorGenerated) |
| 637 | } |
| 638 | |
| 639 | var fileDescriptorGenerated = []byte{ |
| 640 | // 494 bytes of a gzipped FileDescriptorProto |
| 641 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x3f, 0x8f, 0xd3, 0x30, |
| 642 | 0x18, 0xc6, 0xeb, 0x1e, 0x15, 0xc5, 0x55, 0xa5, 0x12, 0x84, 0x14, 0x55, 0x22, 0xad, 0x7a, 0x4b, |
| 643 | 0x07, 0xce, 0xa6, 0x27, 0x40, 0x48, 0xb7, 0x95, 0x13, 0x08, 0x09, 0x44, 0xc9, 0xc0, 0x80, 0x18, |
| 644 | 0x70, 0x92, 0xf7, 0x52, 0xd3, 0x24, 0x8e, 0x6c, 0x27, 0x52, 0x37, 0x3e, 0x02, 0x1f, 0x8a, 0xa1, |
| 645 | 0xe3, 0x8d, 0x37, 0x55, 0x34, 0x7c, 0x04, 0x36, 0x26, 0x94, 0x34, 0x5c, 0xda, 0x86, 0x7f, 0x5b, |
| 646 | 0xfc, 0x3e, 0xbf, 0xe7, 0xb1, 0xfd, 0x24, 0xc1, 0xcf, 0x16, 0x4f, 0x14, 0xe1, 0x82, 0x2e, 0x12, |
| 647 | 0x07, 0x64, 0x04, 0x1a, 0x14, 0x4d, 0x21, 0xf2, 0x84, 0xa4, 0xa5, 0xc0, 0x62, 0x4e, 0x95, 0x3b, |
| 648 | 0x07, 0x2f, 0x09, 0x78, 0xe4, 0xd3, 0x74, 0xe2, 0x80, 0x66, 0x13, 0xea, 0x43, 0x04, 0x92, 0x69, |
| 649 | 0xf0, 0x48, 0x2c, 0x85, 0x16, 0xc6, 0xbd, 0x2d, 0x4e, 0x58, 0xcc, 0x49, 0x85, 0x93, 0x12, 0xef, |
| 650 | 0x9f, 0xf8, 0x5c, 0xcf, 0x13, 0x87, 0xb8, 0x22, 0xa4, 0xbe, 0xf0, 0x05, 0x2d, 0x5c, 0x4e, 0x72, |
| 651 | 0x51, 0xac, 0x8a, 0x45, 0xf1, 0xb4, 0x4d, 0xeb, 0x8f, 0x76, 0x36, 0x77, 0x85, 0x04, 0x9a, 0xd6, |
| 652 | 0x76, 0xec, 0x3f, 0xac, 0x98, 0x90, 0xb9, 0x73, 0x1e, 0x81, 0x5c, 0xd2, 0x78, 0xe1, 0xe7, 0x03, |
| 653 | 0x45, 0x43, 0xd0, 0xec, 0x77, 0x2e, 0xfa, 0x27, 0x97, 0x4c, 0x22, 0xcd, 0x43, 0xa8, 0x19, 0x1e, |
| 654 | 0xff, 0xcb, 0x90, 0xdf, 0x36, 0x64, 0x87, 0xbe, 0xd1, 0xf7, 0x26, 0xee, 0xce, 0x24, 0x17, 0x92, |
| 655 | 0xeb, 0xe5, 0xd3, 0x80, 0x29, 0x65, 0x7c, 0xc0, 0xed, 0xfc, 0x54, 0x1e, 0xd3, 0xcc, 0x44, 0x43, |
| 656 | 0x34, 0xee, 0x9c, 0x3e, 0x20, 0x55, 0x6b, 0xd7, 0xe1, 0x24, 0x5e, 0xf8, 0xf9, 0x40, 0x91, 0x9c, |
| 657 | 0x26, 0xe9, 0x84, 0xbc, 0x76, 0x3e, 0x82, 0xab, 0x5f, 0x81, 0x66, 0x53, 0x63, 0xb5, 0x1e, 0x34, |
| 658 | 0xb2, 0xf5, 0x00, 0x57, 0x33, 0xfb, 0x3a, 0xd5, 0x38, 0xc6, 0xad, 0x94, 0x05, 0x09, 0x98, 0xcd, |
| 659 | 0x21, 0x1a, 0xb7, 0xa6, 0xdd, 0x12, 0x6e, 0xbd, 0xcd, 0x87, 0xf6, 0x56, 0x33, 0xce, 0x70, 0xd7, |
| 660 | 0x0f, 0x84, 0xc3, 0x82, 0x73, 0xb8, 0x60, 0x49, 0xa0, 0xcd, 0xa3, 0x21, 0x1a, 0xb7, 0xa7, 0x77, |
| 661 | 0x4b, 0xb8, 0xfb, 0x7c, 0x57, 0xb4, 0xf7, 0x59, 0xe3, 0x11, 0xee, 0x78, 0xa0, 0x5c, 0xc9, 0x63, |
| 662 | 0xcd, 0x45, 0x64, 0xde, 0x18, 0xa2, 0xf1, 0xad, 0xe9, 0x9d, 0xd2, 0xda, 0x39, 0xaf, 0x24, 0x7b, |
| 663 | 0x97, 0x33, 0x7c, 0xdc, 0x8b, 0x25, 0x40, 0x58, 0xac, 0x66, 0x22, 0xe0, 0xee, 0xd2, 0x6c, 0x15, |
| 664 | 0xde, 0xb3, 0x6c, 0x3d, 0xe8, 0xcd, 0x0e, 0xb4, 0x1f, 0xeb, 0xc1, 0x71, 0xfd, 0x0b, 0x20, 0x87, |
| 665 | 0x98, 0x5d, 0x0b, 0x1d, 0x7d, 0x41, 0xf8, 0xf6, 0x5e, 0xeb, 0x2f, 0xb9, 0xd2, 0xc6, 0xfb, 0x5a, |
| 666 | 0xf3, 0xe4, 0xff, 0x9a, 0xcf, 0xdd, 0x45, 0xef, 0xbd, 0xf2, 0x8a, 0xed, 0x5f, 0x93, 0x9d, 0xd6, |
| 667 | 0xdf, 0xe0, 0x16, 0xd7, 0x10, 0x2a, 0xb3, 0x39, 0x3c, 0x1a, 0x77, 0x4e, 0xef, 0x93, 0xbf, 0xfe, |
| 668 | 0x0a, 0x64, 0xef, 0x78, 0xd5, 0x3b, 0x7a, 0x91, 0x47, 0xd8, 0xdb, 0xa4, 0xe9, 0xc9, 0x6a, 0x63, |
| 669 | 0x35, 0x2e, 0x37, 0x56, 0xe3, 0x6a, 0x63, 0x35, 0x3e, 0x65, 0x16, 0x5a, 0x65, 0x16, 0xba, 0xcc, |
| 670 | 0x2c, 0x74, 0x95, 0x59, 0xe8, 0x6b, 0x66, 0xa1, 0xcf, 0xdf, 0xac, 0xc6, 0xbb, 0x9b, 0x65, 0xe4, |
| 671 | 0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1a, 0xc2, 0xc0, 0x1f, 0xc5, 0x03, 0x00, 0x00, |
| 672 | } |