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