1
16
17
18
19
20 package v1alpha2
21
22 import (
23 fmt "fmt"
24
25 io "io"
26
27 proto "github.com/gogo/protobuf/proto"
28 v1 "k8s.io/api/core/v1"
29 resource "k8s.io/apimachinery/pkg/api/resource"
30
31 math "math"
32 math_bits "math/bits"
33 reflect "reflect"
34 strings "strings"
35
36 k8s_io_apimachinery_pkg_types "k8s.io/apimachinery/pkg/types"
37 )
38
39
40 var _ = proto.Marshal
41 var _ = fmt.Errorf
42 var _ = math.Inf
43
44
45
46
47
48 const _ = proto.GoGoProtoPackageIsVersion3
49
50 func (m *AllocationResult) Reset() { *m = AllocationResult{} }
51 func (*AllocationResult) ProtoMessage() {}
52 func (*AllocationResult) Descriptor() ([]byte, []int) {
53 return fileDescriptor_4312f5b44a31ec02, []int{0}
54 }
55 func (m *AllocationResult) XXX_Unmarshal(b []byte) error {
56 return m.Unmarshal(b)
57 }
58 func (m *AllocationResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
59 b = b[:cap(b)]
60 n, err := m.MarshalToSizedBuffer(b)
61 if err != nil {
62 return nil, err
63 }
64 return b[:n], nil
65 }
66 func (m *AllocationResult) XXX_Merge(src proto.Message) {
67 xxx_messageInfo_AllocationResult.Merge(m, src)
68 }
69 func (m *AllocationResult) XXX_Size() int {
70 return m.Size()
71 }
72 func (m *AllocationResult) XXX_DiscardUnknown() {
73 xxx_messageInfo_AllocationResult.DiscardUnknown(m)
74 }
75
76 var xxx_messageInfo_AllocationResult proto.InternalMessageInfo
77
78 func (m *AllocationResultModel) Reset() { *m = AllocationResultModel{} }
79 func (*AllocationResultModel) ProtoMessage() {}
80 func (*AllocationResultModel) Descriptor() ([]byte, []int) {
81 return fileDescriptor_4312f5b44a31ec02, []int{1}
82 }
83 func (m *AllocationResultModel) XXX_Unmarshal(b []byte) error {
84 return m.Unmarshal(b)
85 }
86 func (m *AllocationResultModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
87 b = b[:cap(b)]
88 n, err := m.MarshalToSizedBuffer(b)
89 if err != nil {
90 return nil, err
91 }
92 return b[:n], nil
93 }
94 func (m *AllocationResultModel) XXX_Merge(src proto.Message) {
95 xxx_messageInfo_AllocationResultModel.Merge(m, src)
96 }
97 func (m *AllocationResultModel) XXX_Size() int {
98 return m.Size()
99 }
100 func (m *AllocationResultModel) XXX_DiscardUnknown() {
101 xxx_messageInfo_AllocationResultModel.DiscardUnknown(m)
102 }
103
104 var xxx_messageInfo_AllocationResultModel proto.InternalMessageInfo
105
106 func (m *DriverAllocationResult) Reset() { *m = DriverAllocationResult{} }
107 func (*DriverAllocationResult) ProtoMessage() {}
108 func (*DriverAllocationResult) Descriptor() ([]byte, []int) {
109 return fileDescriptor_4312f5b44a31ec02, []int{2}
110 }
111 func (m *DriverAllocationResult) XXX_Unmarshal(b []byte) error {
112 return m.Unmarshal(b)
113 }
114 func (m *DriverAllocationResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
115 b = b[:cap(b)]
116 n, err := m.MarshalToSizedBuffer(b)
117 if err != nil {
118 return nil, err
119 }
120 return b[:n], nil
121 }
122 func (m *DriverAllocationResult) XXX_Merge(src proto.Message) {
123 xxx_messageInfo_DriverAllocationResult.Merge(m, src)
124 }
125 func (m *DriverAllocationResult) XXX_Size() int {
126 return m.Size()
127 }
128 func (m *DriverAllocationResult) XXX_DiscardUnknown() {
129 xxx_messageInfo_DriverAllocationResult.DiscardUnknown(m)
130 }
131
132 var xxx_messageInfo_DriverAllocationResult proto.InternalMessageInfo
133
134 func (m *DriverRequests) Reset() { *m = DriverRequests{} }
135 func (*DriverRequests) ProtoMessage() {}
136 func (*DriverRequests) Descriptor() ([]byte, []int) {
137 return fileDescriptor_4312f5b44a31ec02, []int{3}
138 }
139 func (m *DriverRequests) XXX_Unmarshal(b []byte) error {
140 return m.Unmarshal(b)
141 }
142 func (m *DriverRequests) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
143 b = b[:cap(b)]
144 n, err := m.MarshalToSizedBuffer(b)
145 if err != nil {
146 return nil, err
147 }
148 return b[:n], nil
149 }
150 func (m *DriverRequests) XXX_Merge(src proto.Message) {
151 xxx_messageInfo_DriverRequests.Merge(m, src)
152 }
153 func (m *DriverRequests) XXX_Size() int {
154 return m.Size()
155 }
156 func (m *DriverRequests) XXX_DiscardUnknown() {
157 xxx_messageInfo_DriverRequests.DiscardUnknown(m)
158 }
159
160 var xxx_messageInfo_DriverRequests proto.InternalMessageInfo
161
162 func (m *NamedResourcesAllocationResult) Reset() { *m = NamedResourcesAllocationResult{} }
163 func (*NamedResourcesAllocationResult) ProtoMessage() {}
164 func (*NamedResourcesAllocationResult) Descriptor() ([]byte, []int) {
165 return fileDescriptor_4312f5b44a31ec02, []int{4}
166 }
167 func (m *NamedResourcesAllocationResult) XXX_Unmarshal(b []byte) error {
168 return m.Unmarshal(b)
169 }
170 func (m *NamedResourcesAllocationResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
171 b = b[:cap(b)]
172 n, err := m.MarshalToSizedBuffer(b)
173 if err != nil {
174 return nil, err
175 }
176 return b[:n], nil
177 }
178 func (m *NamedResourcesAllocationResult) XXX_Merge(src proto.Message) {
179 xxx_messageInfo_NamedResourcesAllocationResult.Merge(m, src)
180 }
181 func (m *NamedResourcesAllocationResult) XXX_Size() int {
182 return m.Size()
183 }
184 func (m *NamedResourcesAllocationResult) XXX_DiscardUnknown() {
185 xxx_messageInfo_NamedResourcesAllocationResult.DiscardUnknown(m)
186 }
187
188 var xxx_messageInfo_NamedResourcesAllocationResult proto.InternalMessageInfo
189
190 func (m *NamedResourcesAttribute) Reset() { *m = NamedResourcesAttribute{} }
191 func (*NamedResourcesAttribute) ProtoMessage() {}
192 func (*NamedResourcesAttribute) Descriptor() ([]byte, []int) {
193 return fileDescriptor_4312f5b44a31ec02, []int{5}
194 }
195 func (m *NamedResourcesAttribute) XXX_Unmarshal(b []byte) error {
196 return m.Unmarshal(b)
197 }
198 func (m *NamedResourcesAttribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
199 b = b[:cap(b)]
200 n, err := m.MarshalToSizedBuffer(b)
201 if err != nil {
202 return nil, err
203 }
204 return b[:n], nil
205 }
206 func (m *NamedResourcesAttribute) XXX_Merge(src proto.Message) {
207 xxx_messageInfo_NamedResourcesAttribute.Merge(m, src)
208 }
209 func (m *NamedResourcesAttribute) XXX_Size() int {
210 return m.Size()
211 }
212 func (m *NamedResourcesAttribute) XXX_DiscardUnknown() {
213 xxx_messageInfo_NamedResourcesAttribute.DiscardUnknown(m)
214 }
215
216 var xxx_messageInfo_NamedResourcesAttribute proto.InternalMessageInfo
217
218 func (m *NamedResourcesAttributeValue) Reset() { *m = NamedResourcesAttributeValue{} }
219 func (*NamedResourcesAttributeValue) ProtoMessage() {}
220 func (*NamedResourcesAttributeValue) Descriptor() ([]byte, []int) {
221 return fileDescriptor_4312f5b44a31ec02, []int{6}
222 }
223 func (m *NamedResourcesAttributeValue) XXX_Unmarshal(b []byte) error {
224 return m.Unmarshal(b)
225 }
226 func (m *NamedResourcesAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
227 b = b[:cap(b)]
228 n, err := m.MarshalToSizedBuffer(b)
229 if err != nil {
230 return nil, err
231 }
232 return b[:n], nil
233 }
234 func (m *NamedResourcesAttributeValue) XXX_Merge(src proto.Message) {
235 xxx_messageInfo_NamedResourcesAttributeValue.Merge(m, src)
236 }
237 func (m *NamedResourcesAttributeValue) XXX_Size() int {
238 return m.Size()
239 }
240 func (m *NamedResourcesAttributeValue) XXX_DiscardUnknown() {
241 xxx_messageInfo_NamedResourcesAttributeValue.DiscardUnknown(m)
242 }
243
244 var xxx_messageInfo_NamedResourcesAttributeValue proto.InternalMessageInfo
245
246 func (m *NamedResourcesFilter) Reset() { *m = NamedResourcesFilter{} }
247 func (*NamedResourcesFilter) ProtoMessage() {}
248 func (*NamedResourcesFilter) Descriptor() ([]byte, []int) {
249 return fileDescriptor_4312f5b44a31ec02, []int{7}
250 }
251 func (m *NamedResourcesFilter) XXX_Unmarshal(b []byte) error {
252 return m.Unmarshal(b)
253 }
254 func (m *NamedResourcesFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
255 b = b[:cap(b)]
256 n, err := m.MarshalToSizedBuffer(b)
257 if err != nil {
258 return nil, err
259 }
260 return b[:n], nil
261 }
262 func (m *NamedResourcesFilter) XXX_Merge(src proto.Message) {
263 xxx_messageInfo_NamedResourcesFilter.Merge(m, src)
264 }
265 func (m *NamedResourcesFilter) XXX_Size() int {
266 return m.Size()
267 }
268 func (m *NamedResourcesFilter) XXX_DiscardUnknown() {
269 xxx_messageInfo_NamedResourcesFilter.DiscardUnknown(m)
270 }
271
272 var xxx_messageInfo_NamedResourcesFilter proto.InternalMessageInfo
273
274 func (m *NamedResourcesInstance) Reset() { *m = NamedResourcesInstance{} }
275 func (*NamedResourcesInstance) ProtoMessage() {}
276 func (*NamedResourcesInstance) Descriptor() ([]byte, []int) {
277 return fileDescriptor_4312f5b44a31ec02, []int{8}
278 }
279 func (m *NamedResourcesInstance) XXX_Unmarshal(b []byte) error {
280 return m.Unmarshal(b)
281 }
282 func (m *NamedResourcesInstance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
283 b = b[:cap(b)]
284 n, err := m.MarshalToSizedBuffer(b)
285 if err != nil {
286 return nil, err
287 }
288 return b[:n], nil
289 }
290 func (m *NamedResourcesInstance) XXX_Merge(src proto.Message) {
291 xxx_messageInfo_NamedResourcesInstance.Merge(m, src)
292 }
293 func (m *NamedResourcesInstance) XXX_Size() int {
294 return m.Size()
295 }
296 func (m *NamedResourcesInstance) XXX_DiscardUnknown() {
297 xxx_messageInfo_NamedResourcesInstance.DiscardUnknown(m)
298 }
299
300 var xxx_messageInfo_NamedResourcesInstance proto.InternalMessageInfo
301
302 func (m *NamedResourcesIntSlice) Reset() { *m = NamedResourcesIntSlice{} }
303 func (*NamedResourcesIntSlice) ProtoMessage() {}
304 func (*NamedResourcesIntSlice) Descriptor() ([]byte, []int) {
305 return fileDescriptor_4312f5b44a31ec02, []int{9}
306 }
307 func (m *NamedResourcesIntSlice) XXX_Unmarshal(b []byte) error {
308 return m.Unmarshal(b)
309 }
310 func (m *NamedResourcesIntSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
311 b = b[:cap(b)]
312 n, err := m.MarshalToSizedBuffer(b)
313 if err != nil {
314 return nil, err
315 }
316 return b[:n], nil
317 }
318 func (m *NamedResourcesIntSlice) XXX_Merge(src proto.Message) {
319 xxx_messageInfo_NamedResourcesIntSlice.Merge(m, src)
320 }
321 func (m *NamedResourcesIntSlice) XXX_Size() int {
322 return m.Size()
323 }
324 func (m *NamedResourcesIntSlice) XXX_DiscardUnknown() {
325 xxx_messageInfo_NamedResourcesIntSlice.DiscardUnknown(m)
326 }
327
328 var xxx_messageInfo_NamedResourcesIntSlice proto.InternalMessageInfo
329
330 func (m *NamedResourcesRequest) Reset() { *m = NamedResourcesRequest{} }
331 func (*NamedResourcesRequest) ProtoMessage() {}
332 func (*NamedResourcesRequest) Descriptor() ([]byte, []int) {
333 return fileDescriptor_4312f5b44a31ec02, []int{10}
334 }
335 func (m *NamedResourcesRequest) XXX_Unmarshal(b []byte) error {
336 return m.Unmarshal(b)
337 }
338 func (m *NamedResourcesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
339 b = b[:cap(b)]
340 n, err := m.MarshalToSizedBuffer(b)
341 if err != nil {
342 return nil, err
343 }
344 return b[:n], nil
345 }
346 func (m *NamedResourcesRequest) XXX_Merge(src proto.Message) {
347 xxx_messageInfo_NamedResourcesRequest.Merge(m, src)
348 }
349 func (m *NamedResourcesRequest) XXX_Size() int {
350 return m.Size()
351 }
352 func (m *NamedResourcesRequest) XXX_DiscardUnknown() {
353 xxx_messageInfo_NamedResourcesRequest.DiscardUnknown(m)
354 }
355
356 var xxx_messageInfo_NamedResourcesRequest proto.InternalMessageInfo
357
358 func (m *NamedResourcesResources) Reset() { *m = NamedResourcesResources{} }
359 func (*NamedResourcesResources) ProtoMessage() {}
360 func (*NamedResourcesResources) Descriptor() ([]byte, []int) {
361 return fileDescriptor_4312f5b44a31ec02, []int{11}
362 }
363 func (m *NamedResourcesResources) XXX_Unmarshal(b []byte) error {
364 return m.Unmarshal(b)
365 }
366 func (m *NamedResourcesResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
367 b = b[:cap(b)]
368 n, err := m.MarshalToSizedBuffer(b)
369 if err != nil {
370 return nil, err
371 }
372 return b[:n], nil
373 }
374 func (m *NamedResourcesResources) XXX_Merge(src proto.Message) {
375 xxx_messageInfo_NamedResourcesResources.Merge(m, src)
376 }
377 func (m *NamedResourcesResources) XXX_Size() int {
378 return m.Size()
379 }
380 func (m *NamedResourcesResources) XXX_DiscardUnknown() {
381 xxx_messageInfo_NamedResourcesResources.DiscardUnknown(m)
382 }
383
384 var xxx_messageInfo_NamedResourcesResources proto.InternalMessageInfo
385
386 func (m *NamedResourcesStringSlice) Reset() { *m = NamedResourcesStringSlice{} }
387 func (*NamedResourcesStringSlice) ProtoMessage() {}
388 func (*NamedResourcesStringSlice) Descriptor() ([]byte, []int) {
389 return fileDescriptor_4312f5b44a31ec02, []int{12}
390 }
391 func (m *NamedResourcesStringSlice) XXX_Unmarshal(b []byte) error {
392 return m.Unmarshal(b)
393 }
394 func (m *NamedResourcesStringSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
395 b = b[:cap(b)]
396 n, err := m.MarshalToSizedBuffer(b)
397 if err != nil {
398 return nil, err
399 }
400 return b[:n], nil
401 }
402 func (m *NamedResourcesStringSlice) XXX_Merge(src proto.Message) {
403 xxx_messageInfo_NamedResourcesStringSlice.Merge(m, src)
404 }
405 func (m *NamedResourcesStringSlice) XXX_Size() int {
406 return m.Size()
407 }
408 func (m *NamedResourcesStringSlice) XXX_DiscardUnknown() {
409 xxx_messageInfo_NamedResourcesStringSlice.DiscardUnknown(m)
410 }
411
412 var xxx_messageInfo_NamedResourcesStringSlice proto.InternalMessageInfo
413
414 func (m *PodSchedulingContext) Reset() { *m = PodSchedulingContext{} }
415 func (*PodSchedulingContext) ProtoMessage() {}
416 func (*PodSchedulingContext) Descriptor() ([]byte, []int) {
417 return fileDescriptor_4312f5b44a31ec02, []int{13}
418 }
419 func (m *PodSchedulingContext) XXX_Unmarshal(b []byte) error {
420 return m.Unmarshal(b)
421 }
422 func (m *PodSchedulingContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
423 b = b[:cap(b)]
424 n, err := m.MarshalToSizedBuffer(b)
425 if err != nil {
426 return nil, err
427 }
428 return b[:n], nil
429 }
430 func (m *PodSchedulingContext) XXX_Merge(src proto.Message) {
431 xxx_messageInfo_PodSchedulingContext.Merge(m, src)
432 }
433 func (m *PodSchedulingContext) XXX_Size() int {
434 return m.Size()
435 }
436 func (m *PodSchedulingContext) XXX_DiscardUnknown() {
437 xxx_messageInfo_PodSchedulingContext.DiscardUnknown(m)
438 }
439
440 var xxx_messageInfo_PodSchedulingContext proto.InternalMessageInfo
441
442 func (m *PodSchedulingContextList) Reset() { *m = PodSchedulingContextList{} }
443 func (*PodSchedulingContextList) ProtoMessage() {}
444 func (*PodSchedulingContextList) Descriptor() ([]byte, []int) {
445 return fileDescriptor_4312f5b44a31ec02, []int{14}
446 }
447 func (m *PodSchedulingContextList) XXX_Unmarshal(b []byte) error {
448 return m.Unmarshal(b)
449 }
450 func (m *PodSchedulingContextList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
451 b = b[:cap(b)]
452 n, err := m.MarshalToSizedBuffer(b)
453 if err != nil {
454 return nil, err
455 }
456 return b[:n], nil
457 }
458 func (m *PodSchedulingContextList) XXX_Merge(src proto.Message) {
459 xxx_messageInfo_PodSchedulingContextList.Merge(m, src)
460 }
461 func (m *PodSchedulingContextList) XXX_Size() int {
462 return m.Size()
463 }
464 func (m *PodSchedulingContextList) XXX_DiscardUnknown() {
465 xxx_messageInfo_PodSchedulingContextList.DiscardUnknown(m)
466 }
467
468 var xxx_messageInfo_PodSchedulingContextList proto.InternalMessageInfo
469
470 func (m *PodSchedulingContextSpec) Reset() { *m = PodSchedulingContextSpec{} }
471 func (*PodSchedulingContextSpec) ProtoMessage() {}
472 func (*PodSchedulingContextSpec) Descriptor() ([]byte, []int) {
473 return fileDescriptor_4312f5b44a31ec02, []int{15}
474 }
475 func (m *PodSchedulingContextSpec) XXX_Unmarshal(b []byte) error {
476 return m.Unmarshal(b)
477 }
478 func (m *PodSchedulingContextSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
479 b = b[:cap(b)]
480 n, err := m.MarshalToSizedBuffer(b)
481 if err != nil {
482 return nil, err
483 }
484 return b[:n], nil
485 }
486 func (m *PodSchedulingContextSpec) XXX_Merge(src proto.Message) {
487 xxx_messageInfo_PodSchedulingContextSpec.Merge(m, src)
488 }
489 func (m *PodSchedulingContextSpec) XXX_Size() int {
490 return m.Size()
491 }
492 func (m *PodSchedulingContextSpec) XXX_DiscardUnknown() {
493 xxx_messageInfo_PodSchedulingContextSpec.DiscardUnknown(m)
494 }
495
496 var xxx_messageInfo_PodSchedulingContextSpec proto.InternalMessageInfo
497
498 func (m *PodSchedulingContextStatus) Reset() { *m = PodSchedulingContextStatus{} }
499 func (*PodSchedulingContextStatus) ProtoMessage() {}
500 func (*PodSchedulingContextStatus) Descriptor() ([]byte, []int) {
501 return fileDescriptor_4312f5b44a31ec02, []int{16}
502 }
503 func (m *PodSchedulingContextStatus) XXX_Unmarshal(b []byte) error {
504 return m.Unmarshal(b)
505 }
506 func (m *PodSchedulingContextStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
507 b = b[:cap(b)]
508 n, err := m.MarshalToSizedBuffer(b)
509 if err != nil {
510 return nil, err
511 }
512 return b[:n], nil
513 }
514 func (m *PodSchedulingContextStatus) XXX_Merge(src proto.Message) {
515 xxx_messageInfo_PodSchedulingContextStatus.Merge(m, src)
516 }
517 func (m *PodSchedulingContextStatus) XXX_Size() int {
518 return m.Size()
519 }
520 func (m *PodSchedulingContextStatus) XXX_DiscardUnknown() {
521 xxx_messageInfo_PodSchedulingContextStatus.DiscardUnknown(m)
522 }
523
524 var xxx_messageInfo_PodSchedulingContextStatus proto.InternalMessageInfo
525
526 func (m *ResourceClaim) Reset() { *m = ResourceClaim{} }
527 func (*ResourceClaim) ProtoMessage() {}
528 func (*ResourceClaim) Descriptor() ([]byte, []int) {
529 return fileDescriptor_4312f5b44a31ec02, []int{17}
530 }
531 func (m *ResourceClaim) XXX_Unmarshal(b []byte) error {
532 return m.Unmarshal(b)
533 }
534 func (m *ResourceClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
535 b = b[:cap(b)]
536 n, err := m.MarshalToSizedBuffer(b)
537 if err != nil {
538 return nil, err
539 }
540 return b[:n], nil
541 }
542 func (m *ResourceClaim) XXX_Merge(src proto.Message) {
543 xxx_messageInfo_ResourceClaim.Merge(m, src)
544 }
545 func (m *ResourceClaim) XXX_Size() int {
546 return m.Size()
547 }
548 func (m *ResourceClaim) XXX_DiscardUnknown() {
549 xxx_messageInfo_ResourceClaim.DiscardUnknown(m)
550 }
551
552 var xxx_messageInfo_ResourceClaim proto.InternalMessageInfo
553
554 func (m *ResourceClaimConsumerReference) Reset() { *m = ResourceClaimConsumerReference{} }
555 func (*ResourceClaimConsumerReference) ProtoMessage() {}
556 func (*ResourceClaimConsumerReference) Descriptor() ([]byte, []int) {
557 return fileDescriptor_4312f5b44a31ec02, []int{18}
558 }
559 func (m *ResourceClaimConsumerReference) XXX_Unmarshal(b []byte) error {
560 return m.Unmarshal(b)
561 }
562 func (m *ResourceClaimConsumerReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
563 b = b[:cap(b)]
564 n, err := m.MarshalToSizedBuffer(b)
565 if err != nil {
566 return nil, err
567 }
568 return b[:n], nil
569 }
570 func (m *ResourceClaimConsumerReference) XXX_Merge(src proto.Message) {
571 xxx_messageInfo_ResourceClaimConsumerReference.Merge(m, src)
572 }
573 func (m *ResourceClaimConsumerReference) XXX_Size() int {
574 return m.Size()
575 }
576 func (m *ResourceClaimConsumerReference) XXX_DiscardUnknown() {
577 xxx_messageInfo_ResourceClaimConsumerReference.DiscardUnknown(m)
578 }
579
580 var xxx_messageInfo_ResourceClaimConsumerReference proto.InternalMessageInfo
581
582 func (m *ResourceClaimList) Reset() { *m = ResourceClaimList{} }
583 func (*ResourceClaimList) ProtoMessage() {}
584 func (*ResourceClaimList) Descriptor() ([]byte, []int) {
585 return fileDescriptor_4312f5b44a31ec02, []int{19}
586 }
587 func (m *ResourceClaimList) XXX_Unmarshal(b []byte) error {
588 return m.Unmarshal(b)
589 }
590 func (m *ResourceClaimList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
591 b = b[:cap(b)]
592 n, err := m.MarshalToSizedBuffer(b)
593 if err != nil {
594 return nil, err
595 }
596 return b[:n], nil
597 }
598 func (m *ResourceClaimList) XXX_Merge(src proto.Message) {
599 xxx_messageInfo_ResourceClaimList.Merge(m, src)
600 }
601 func (m *ResourceClaimList) XXX_Size() int {
602 return m.Size()
603 }
604 func (m *ResourceClaimList) XXX_DiscardUnknown() {
605 xxx_messageInfo_ResourceClaimList.DiscardUnknown(m)
606 }
607
608 var xxx_messageInfo_ResourceClaimList proto.InternalMessageInfo
609
610 func (m *ResourceClaimParameters) Reset() { *m = ResourceClaimParameters{} }
611 func (*ResourceClaimParameters) ProtoMessage() {}
612 func (*ResourceClaimParameters) Descriptor() ([]byte, []int) {
613 return fileDescriptor_4312f5b44a31ec02, []int{20}
614 }
615 func (m *ResourceClaimParameters) XXX_Unmarshal(b []byte) error {
616 return m.Unmarshal(b)
617 }
618 func (m *ResourceClaimParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
619 b = b[:cap(b)]
620 n, err := m.MarshalToSizedBuffer(b)
621 if err != nil {
622 return nil, err
623 }
624 return b[:n], nil
625 }
626 func (m *ResourceClaimParameters) XXX_Merge(src proto.Message) {
627 xxx_messageInfo_ResourceClaimParameters.Merge(m, src)
628 }
629 func (m *ResourceClaimParameters) XXX_Size() int {
630 return m.Size()
631 }
632 func (m *ResourceClaimParameters) XXX_DiscardUnknown() {
633 xxx_messageInfo_ResourceClaimParameters.DiscardUnknown(m)
634 }
635
636 var xxx_messageInfo_ResourceClaimParameters proto.InternalMessageInfo
637
638 func (m *ResourceClaimParametersList) Reset() { *m = ResourceClaimParametersList{} }
639 func (*ResourceClaimParametersList) ProtoMessage() {}
640 func (*ResourceClaimParametersList) Descriptor() ([]byte, []int) {
641 return fileDescriptor_4312f5b44a31ec02, []int{21}
642 }
643 func (m *ResourceClaimParametersList) XXX_Unmarshal(b []byte) error {
644 return m.Unmarshal(b)
645 }
646 func (m *ResourceClaimParametersList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
647 b = b[:cap(b)]
648 n, err := m.MarshalToSizedBuffer(b)
649 if err != nil {
650 return nil, err
651 }
652 return b[:n], nil
653 }
654 func (m *ResourceClaimParametersList) XXX_Merge(src proto.Message) {
655 xxx_messageInfo_ResourceClaimParametersList.Merge(m, src)
656 }
657 func (m *ResourceClaimParametersList) XXX_Size() int {
658 return m.Size()
659 }
660 func (m *ResourceClaimParametersList) XXX_DiscardUnknown() {
661 xxx_messageInfo_ResourceClaimParametersList.DiscardUnknown(m)
662 }
663
664 var xxx_messageInfo_ResourceClaimParametersList proto.InternalMessageInfo
665
666 func (m *ResourceClaimParametersReference) Reset() { *m = ResourceClaimParametersReference{} }
667 func (*ResourceClaimParametersReference) ProtoMessage() {}
668 func (*ResourceClaimParametersReference) Descriptor() ([]byte, []int) {
669 return fileDescriptor_4312f5b44a31ec02, []int{22}
670 }
671 func (m *ResourceClaimParametersReference) XXX_Unmarshal(b []byte) error {
672 return m.Unmarshal(b)
673 }
674 func (m *ResourceClaimParametersReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
675 b = b[:cap(b)]
676 n, err := m.MarshalToSizedBuffer(b)
677 if err != nil {
678 return nil, err
679 }
680 return b[:n], nil
681 }
682 func (m *ResourceClaimParametersReference) XXX_Merge(src proto.Message) {
683 xxx_messageInfo_ResourceClaimParametersReference.Merge(m, src)
684 }
685 func (m *ResourceClaimParametersReference) XXX_Size() int {
686 return m.Size()
687 }
688 func (m *ResourceClaimParametersReference) XXX_DiscardUnknown() {
689 xxx_messageInfo_ResourceClaimParametersReference.DiscardUnknown(m)
690 }
691
692 var xxx_messageInfo_ResourceClaimParametersReference proto.InternalMessageInfo
693
694 func (m *ResourceClaimSchedulingStatus) Reset() { *m = ResourceClaimSchedulingStatus{} }
695 func (*ResourceClaimSchedulingStatus) ProtoMessage() {}
696 func (*ResourceClaimSchedulingStatus) Descriptor() ([]byte, []int) {
697 return fileDescriptor_4312f5b44a31ec02, []int{23}
698 }
699 func (m *ResourceClaimSchedulingStatus) XXX_Unmarshal(b []byte) error {
700 return m.Unmarshal(b)
701 }
702 func (m *ResourceClaimSchedulingStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
703 b = b[:cap(b)]
704 n, err := m.MarshalToSizedBuffer(b)
705 if err != nil {
706 return nil, err
707 }
708 return b[:n], nil
709 }
710 func (m *ResourceClaimSchedulingStatus) XXX_Merge(src proto.Message) {
711 xxx_messageInfo_ResourceClaimSchedulingStatus.Merge(m, src)
712 }
713 func (m *ResourceClaimSchedulingStatus) XXX_Size() int {
714 return m.Size()
715 }
716 func (m *ResourceClaimSchedulingStatus) XXX_DiscardUnknown() {
717 xxx_messageInfo_ResourceClaimSchedulingStatus.DiscardUnknown(m)
718 }
719
720 var xxx_messageInfo_ResourceClaimSchedulingStatus proto.InternalMessageInfo
721
722 func (m *ResourceClaimSpec) Reset() { *m = ResourceClaimSpec{} }
723 func (*ResourceClaimSpec) ProtoMessage() {}
724 func (*ResourceClaimSpec) Descriptor() ([]byte, []int) {
725 return fileDescriptor_4312f5b44a31ec02, []int{24}
726 }
727 func (m *ResourceClaimSpec) XXX_Unmarshal(b []byte) error {
728 return m.Unmarshal(b)
729 }
730 func (m *ResourceClaimSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
731 b = b[:cap(b)]
732 n, err := m.MarshalToSizedBuffer(b)
733 if err != nil {
734 return nil, err
735 }
736 return b[:n], nil
737 }
738 func (m *ResourceClaimSpec) XXX_Merge(src proto.Message) {
739 xxx_messageInfo_ResourceClaimSpec.Merge(m, src)
740 }
741 func (m *ResourceClaimSpec) XXX_Size() int {
742 return m.Size()
743 }
744 func (m *ResourceClaimSpec) XXX_DiscardUnknown() {
745 xxx_messageInfo_ResourceClaimSpec.DiscardUnknown(m)
746 }
747
748 var xxx_messageInfo_ResourceClaimSpec proto.InternalMessageInfo
749
750 func (m *ResourceClaimStatus) Reset() { *m = ResourceClaimStatus{} }
751 func (*ResourceClaimStatus) ProtoMessage() {}
752 func (*ResourceClaimStatus) Descriptor() ([]byte, []int) {
753 return fileDescriptor_4312f5b44a31ec02, []int{25}
754 }
755 func (m *ResourceClaimStatus) XXX_Unmarshal(b []byte) error {
756 return m.Unmarshal(b)
757 }
758 func (m *ResourceClaimStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
759 b = b[:cap(b)]
760 n, err := m.MarshalToSizedBuffer(b)
761 if err != nil {
762 return nil, err
763 }
764 return b[:n], nil
765 }
766 func (m *ResourceClaimStatus) XXX_Merge(src proto.Message) {
767 xxx_messageInfo_ResourceClaimStatus.Merge(m, src)
768 }
769 func (m *ResourceClaimStatus) XXX_Size() int {
770 return m.Size()
771 }
772 func (m *ResourceClaimStatus) XXX_DiscardUnknown() {
773 xxx_messageInfo_ResourceClaimStatus.DiscardUnknown(m)
774 }
775
776 var xxx_messageInfo_ResourceClaimStatus proto.InternalMessageInfo
777
778 func (m *ResourceClaimTemplate) Reset() { *m = ResourceClaimTemplate{} }
779 func (*ResourceClaimTemplate) ProtoMessage() {}
780 func (*ResourceClaimTemplate) Descriptor() ([]byte, []int) {
781 return fileDescriptor_4312f5b44a31ec02, []int{26}
782 }
783 func (m *ResourceClaimTemplate) XXX_Unmarshal(b []byte) error {
784 return m.Unmarshal(b)
785 }
786 func (m *ResourceClaimTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
787 b = b[:cap(b)]
788 n, err := m.MarshalToSizedBuffer(b)
789 if err != nil {
790 return nil, err
791 }
792 return b[:n], nil
793 }
794 func (m *ResourceClaimTemplate) XXX_Merge(src proto.Message) {
795 xxx_messageInfo_ResourceClaimTemplate.Merge(m, src)
796 }
797 func (m *ResourceClaimTemplate) XXX_Size() int {
798 return m.Size()
799 }
800 func (m *ResourceClaimTemplate) XXX_DiscardUnknown() {
801 xxx_messageInfo_ResourceClaimTemplate.DiscardUnknown(m)
802 }
803
804 var xxx_messageInfo_ResourceClaimTemplate proto.InternalMessageInfo
805
806 func (m *ResourceClaimTemplateList) Reset() { *m = ResourceClaimTemplateList{} }
807 func (*ResourceClaimTemplateList) ProtoMessage() {}
808 func (*ResourceClaimTemplateList) Descriptor() ([]byte, []int) {
809 return fileDescriptor_4312f5b44a31ec02, []int{27}
810 }
811 func (m *ResourceClaimTemplateList) XXX_Unmarshal(b []byte) error {
812 return m.Unmarshal(b)
813 }
814 func (m *ResourceClaimTemplateList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
815 b = b[:cap(b)]
816 n, err := m.MarshalToSizedBuffer(b)
817 if err != nil {
818 return nil, err
819 }
820 return b[:n], nil
821 }
822 func (m *ResourceClaimTemplateList) XXX_Merge(src proto.Message) {
823 xxx_messageInfo_ResourceClaimTemplateList.Merge(m, src)
824 }
825 func (m *ResourceClaimTemplateList) XXX_Size() int {
826 return m.Size()
827 }
828 func (m *ResourceClaimTemplateList) XXX_DiscardUnknown() {
829 xxx_messageInfo_ResourceClaimTemplateList.DiscardUnknown(m)
830 }
831
832 var xxx_messageInfo_ResourceClaimTemplateList proto.InternalMessageInfo
833
834 func (m *ResourceClaimTemplateSpec) Reset() { *m = ResourceClaimTemplateSpec{} }
835 func (*ResourceClaimTemplateSpec) ProtoMessage() {}
836 func (*ResourceClaimTemplateSpec) Descriptor() ([]byte, []int) {
837 return fileDescriptor_4312f5b44a31ec02, []int{28}
838 }
839 func (m *ResourceClaimTemplateSpec) XXX_Unmarshal(b []byte) error {
840 return m.Unmarshal(b)
841 }
842 func (m *ResourceClaimTemplateSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
843 b = b[:cap(b)]
844 n, err := m.MarshalToSizedBuffer(b)
845 if err != nil {
846 return nil, err
847 }
848 return b[:n], nil
849 }
850 func (m *ResourceClaimTemplateSpec) XXX_Merge(src proto.Message) {
851 xxx_messageInfo_ResourceClaimTemplateSpec.Merge(m, src)
852 }
853 func (m *ResourceClaimTemplateSpec) XXX_Size() int {
854 return m.Size()
855 }
856 func (m *ResourceClaimTemplateSpec) XXX_DiscardUnknown() {
857 xxx_messageInfo_ResourceClaimTemplateSpec.DiscardUnknown(m)
858 }
859
860 var xxx_messageInfo_ResourceClaimTemplateSpec proto.InternalMessageInfo
861
862 func (m *ResourceClass) Reset() { *m = ResourceClass{} }
863 func (*ResourceClass) ProtoMessage() {}
864 func (*ResourceClass) Descriptor() ([]byte, []int) {
865 return fileDescriptor_4312f5b44a31ec02, []int{29}
866 }
867 func (m *ResourceClass) XXX_Unmarshal(b []byte) error {
868 return m.Unmarshal(b)
869 }
870 func (m *ResourceClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
871 b = b[:cap(b)]
872 n, err := m.MarshalToSizedBuffer(b)
873 if err != nil {
874 return nil, err
875 }
876 return b[:n], nil
877 }
878 func (m *ResourceClass) XXX_Merge(src proto.Message) {
879 xxx_messageInfo_ResourceClass.Merge(m, src)
880 }
881 func (m *ResourceClass) XXX_Size() int {
882 return m.Size()
883 }
884 func (m *ResourceClass) XXX_DiscardUnknown() {
885 xxx_messageInfo_ResourceClass.DiscardUnknown(m)
886 }
887
888 var xxx_messageInfo_ResourceClass proto.InternalMessageInfo
889
890 func (m *ResourceClassList) Reset() { *m = ResourceClassList{} }
891 func (*ResourceClassList) ProtoMessage() {}
892 func (*ResourceClassList) Descriptor() ([]byte, []int) {
893 return fileDescriptor_4312f5b44a31ec02, []int{30}
894 }
895 func (m *ResourceClassList) XXX_Unmarshal(b []byte) error {
896 return m.Unmarshal(b)
897 }
898 func (m *ResourceClassList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
899 b = b[:cap(b)]
900 n, err := m.MarshalToSizedBuffer(b)
901 if err != nil {
902 return nil, err
903 }
904 return b[:n], nil
905 }
906 func (m *ResourceClassList) XXX_Merge(src proto.Message) {
907 xxx_messageInfo_ResourceClassList.Merge(m, src)
908 }
909 func (m *ResourceClassList) XXX_Size() int {
910 return m.Size()
911 }
912 func (m *ResourceClassList) XXX_DiscardUnknown() {
913 xxx_messageInfo_ResourceClassList.DiscardUnknown(m)
914 }
915
916 var xxx_messageInfo_ResourceClassList proto.InternalMessageInfo
917
918 func (m *ResourceClassParameters) Reset() { *m = ResourceClassParameters{} }
919 func (*ResourceClassParameters) ProtoMessage() {}
920 func (*ResourceClassParameters) Descriptor() ([]byte, []int) {
921 return fileDescriptor_4312f5b44a31ec02, []int{31}
922 }
923 func (m *ResourceClassParameters) XXX_Unmarshal(b []byte) error {
924 return m.Unmarshal(b)
925 }
926 func (m *ResourceClassParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
927 b = b[:cap(b)]
928 n, err := m.MarshalToSizedBuffer(b)
929 if err != nil {
930 return nil, err
931 }
932 return b[:n], nil
933 }
934 func (m *ResourceClassParameters) XXX_Merge(src proto.Message) {
935 xxx_messageInfo_ResourceClassParameters.Merge(m, src)
936 }
937 func (m *ResourceClassParameters) XXX_Size() int {
938 return m.Size()
939 }
940 func (m *ResourceClassParameters) XXX_DiscardUnknown() {
941 xxx_messageInfo_ResourceClassParameters.DiscardUnknown(m)
942 }
943
944 var xxx_messageInfo_ResourceClassParameters proto.InternalMessageInfo
945
946 func (m *ResourceClassParametersList) Reset() { *m = ResourceClassParametersList{} }
947 func (*ResourceClassParametersList) ProtoMessage() {}
948 func (*ResourceClassParametersList) Descriptor() ([]byte, []int) {
949 return fileDescriptor_4312f5b44a31ec02, []int{32}
950 }
951 func (m *ResourceClassParametersList) XXX_Unmarshal(b []byte) error {
952 return m.Unmarshal(b)
953 }
954 func (m *ResourceClassParametersList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
955 b = b[:cap(b)]
956 n, err := m.MarshalToSizedBuffer(b)
957 if err != nil {
958 return nil, err
959 }
960 return b[:n], nil
961 }
962 func (m *ResourceClassParametersList) XXX_Merge(src proto.Message) {
963 xxx_messageInfo_ResourceClassParametersList.Merge(m, src)
964 }
965 func (m *ResourceClassParametersList) XXX_Size() int {
966 return m.Size()
967 }
968 func (m *ResourceClassParametersList) XXX_DiscardUnknown() {
969 xxx_messageInfo_ResourceClassParametersList.DiscardUnknown(m)
970 }
971
972 var xxx_messageInfo_ResourceClassParametersList proto.InternalMessageInfo
973
974 func (m *ResourceClassParametersReference) Reset() { *m = ResourceClassParametersReference{} }
975 func (*ResourceClassParametersReference) ProtoMessage() {}
976 func (*ResourceClassParametersReference) Descriptor() ([]byte, []int) {
977 return fileDescriptor_4312f5b44a31ec02, []int{33}
978 }
979 func (m *ResourceClassParametersReference) XXX_Unmarshal(b []byte) error {
980 return m.Unmarshal(b)
981 }
982 func (m *ResourceClassParametersReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
983 b = b[:cap(b)]
984 n, err := m.MarshalToSizedBuffer(b)
985 if err != nil {
986 return nil, err
987 }
988 return b[:n], nil
989 }
990 func (m *ResourceClassParametersReference) XXX_Merge(src proto.Message) {
991 xxx_messageInfo_ResourceClassParametersReference.Merge(m, src)
992 }
993 func (m *ResourceClassParametersReference) XXX_Size() int {
994 return m.Size()
995 }
996 func (m *ResourceClassParametersReference) XXX_DiscardUnknown() {
997 xxx_messageInfo_ResourceClassParametersReference.DiscardUnknown(m)
998 }
999
1000 var xxx_messageInfo_ResourceClassParametersReference proto.InternalMessageInfo
1001
1002 func (m *ResourceFilter) Reset() { *m = ResourceFilter{} }
1003 func (*ResourceFilter) ProtoMessage() {}
1004 func (*ResourceFilter) Descriptor() ([]byte, []int) {
1005 return fileDescriptor_4312f5b44a31ec02, []int{34}
1006 }
1007 func (m *ResourceFilter) XXX_Unmarshal(b []byte) error {
1008 return m.Unmarshal(b)
1009 }
1010 func (m *ResourceFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1011 b = b[:cap(b)]
1012 n, err := m.MarshalToSizedBuffer(b)
1013 if err != nil {
1014 return nil, err
1015 }
1016 return b[:n], nil
1017 }
1018 func (m *ResourceFilter) XXX_Merge(src proto.Message) {
1019 xxx_messageInfo_ResourceFilter.Merge(m, src)
1020 }
1021 func (m *ResourceFilter) XXX_Size() int {
1022 return m.Size()
1023 }
1024 func (m *ResourceFilter) XXX_DiscardUnknown() {
1025 xxx_messageInfo_ResourceFilter.DiscardUnknown(m)
1026 }
1027
1028 var xxx_messageInfo_ResourceFilter proto.InternalMessageInfo
1029
1030 func (m *ResourceFilterModel) Reset() { *m = ResourceFilterModel{} }
1031 func (*ResourceFilterModel) ProtoMessage() {}
1032 func (*ResourceFilterModel) Descriptor() ([]byte, []int) {
1033 return fileDescriptor_4312f5b44a31ec02, []int{35}
1034 }
1035 func (m *ResourceFilterModel) XXX_Unmarshal(b []byte) error {
1036 return m.Unmarshal(b)
1037 }
1038 func (m *ResourceFilterModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1039 b = b[:cap(b)]
1040 n, err := m.MarshalToSizedBuffer(b)
1041 if err != nil {
1042 return nil, err
1043 }
1044 return b[:n], nil
1045 }
1046 func (m *ResourceFilterModel) XXX_Merge(src proto.Message) {
1047 xxx_messageInfo_ResourceFilterModel.Merge(m, src)
1048 }
1049 func (m *ResourceFilterModel) XXX_Size() int {
1050 return m.Size()
1051 }
1052 func (m *ResourceFilterModel) XXX_DiscardUnknown() {
1053 xxx_messageInfo_ResourceFilterModel.DiscardUnknown(m)
1054 }
1055
1056 var xxx_messageInfo_ResourceFilterModel proto.InternalMessageInfo
1057
1058 func (m *ResourceHandle) Reset() { *m = ResourceHandle{} }
1059 func (*ResourceHandle) ProtoMessage() {}
1060 func (*ResourceHandle) Descriptor() ([]byte, []int) {
1061 return fileDescriptor_4312f5b44a31ec02, []int{36}
1062 }
1063 func (m *ResourceHandle) XXX_Unmarshal(b []byte) error {
1064 return m.Unmarshal(b)
1065 }
1066 func (m *ResourceHandle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1067 b = b[:cap(b)]
1068 n, err := m.MarshalToSizedBuffer(b)
1069 if err != nil {
1070 return nil, err
1071 }
1072 return b[:n], nil
1073 }
1074 func (m *ResourceHandle) XXX_Merge(src proto.Message) {
1075 xxx_messageInfo_ResourceHandle.Merge(m, src)
1076 }
1077 func (m *ResourceHandle) XXX_Size() int {
1078 return m.Size()
1079 }
1080 func (m *ResourceHandle) XXX_DiscardUnknown() {
1081 xxx_messageInfo_ResourceHandle.DiscardUnknown(m)
1082 }
1083
1084 var xxx_messageInfo_ResourceHandle proto.InternalMessageInfo
1085
1086 func (m *ResourceModel) Reset() { *m = ResourceModel{} }
1087 func (*ResourceModel) ProtoMessage() {}
1088 func (*ResourceModel) Descriptor() ([]byte, []int) {
1089 return fileDescriptor_4312f5b44a31ec02, []int{37}
1090 }
1091 func (m *ResourceModel) XXX_Unmarshal(b []byte) error {
1092 return m.Unmarshal(b)
1093 }
1094 func (m *ResourceModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1095 b = b[:cap(b)]
1096 n, err := m.MarshalToSizedBuffer(b)
1097 if err != nil {
1098 return nil, err
1099 }
1100 return b[:n], nil
1101 }
1102 func (m *ResourceModel) XXX_Merge(src proto.Message) {
1103 xxx_messageInfo_ResourceModel.Merge(m, src)
1104 }
1105 func (m *ResourceModel) XXX_Size() int {
1106 return m.Size()
1107 }
1108 func (m *ResourceModel) XXX_DiscardUnknown() {
1109 xxx_messageInfo_ResourceModel.DiscardUnknown(m)
1110 }
1111
1112 var xxx_messageInfo_ResourceModel proto.InternalMessageInfo
1113
1114 func (m *ResourceRequest) Reset() { *m = ResourceRequest{} }
1115 func (*ResourceRequest) ProtoMessage() {}
1116 func (*ResourceRequest) Descriptor() ([]byte, []int) {
1117 return fileDescriptor_4312f5b44a31ec02, []int{38}
1118 }
1119 func (m *ResourceRequest) XXX_Unmarshal(b []byte) error {
1120 return m.Unmarshal(b)
1121 }
1122 func (m *ResourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1123 b = b[:cap(b)]
1124 n, err := m.MarshalToSizedBuffer(b)
1125 if err != nil {
1126 return nil, err
1127 }
1128 return b[:n], nil
1129 }
1130 func (m *ResourceRequest) XXX_Merge(src proto.Message) {
1131 xxx_messageInfo_ResourceRequest.Merge(m, src)
1132 }
1133 func (m *ResourceRequest) XXX_Size() int {
1134 return m.Size()
1135 }
1136 func (m *ResourceRequest) XXX_DiscardUnknown() {
1137 xxx_messageInfo_ResourceRequest.DiscardUnknown(m)
1138 }
1139
1140 var xxx_messageInfo_ResourceRequest proto.InternalMessageInfo
1141
1142 func (m *ResourceRequestModel) Reset() { *m = ResourceRequestModel{} }
1143 func (*ResourceRequestModel) ProtoMessage() {}
1144 func (*ResourceRequestModel) Descriptor() ([]byte, []int) {
1145 return fileDescriptor_4312f5b44a31ec02, []int{39}
1146 }
1147 func (m *ResourceRequestModel) XXX_Unmarshal(b []byte) error {
1148 return m.Unmarshal(b)
1149 }
1150 func (m *ResourceRequestModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1151 b = b[:cap(b)]
1152 n, err := m.MarshalToSizedBuffer(b)
1153 if err != nil {
1154 return nil, err
1155 }
1156 return b[:n], nil
1157 }
1158 func (m *ResourceRequestModel) XXX_Merge(src proto.Message) {
1159 xxx_messageInfo_ResourceRequestModel.Merge(m, src)
1160 }
1161 func (m *ResourceRequestModel) XXX_Size() int {
1162 return m.Size()
1163 }
1164 func (m *ResourceRequestModel) XXX_DiscardUnknown() {
1165 xxx_messageInfo_ResourceRequestModel.DiscardUnknown(m)
1166 }
1167
1168 var xxx_messageInfo_ResourceRequestModel proto.InternalMessageInfo
1169
1170 func (m *ResourceSlice) Reset() { *m = ResourceSlice{} }
1171 func (*ResourceSlice) ProtoMessage() {}
1172 func (*ResourceSlice) Descriptor() ([]byte, []int) {
1173 return fileDescriptor_4312f5b44a31ec02, []int{40}
1174 }
1175 func (m *ResourceSlice) XXX_Unmarshal(b []byte) error {
1176 return m.Unmarshal(b)
1177 }
1178 func (m *ResourceSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1179 b = b[:cap(b)]
1180 n, err := m.MarshalToSizedBuffer(b)
1181 if err != nil {
1182 return nil, err
1183 }
1184 return b[:n], nil
1185 }
1186 func (m *ResourceSlice) XXX_Merge(src proto.Message) {
1187 xxx_messageInfo_ResourceSlice.Merge(m, src)
1188 }
1189 func (m *ResourceSlice) XXX_Size() int {
1190 return m.Size()
1191 }
1192 func (m *ResourceSlice) XXX_DiscardUnknown() {
1193 xxx_messageInfo_ResourceSlice.DiscardUnknown(m)
1194 }
1195
1196 var xxx_messageInfo_ResourceSlice proto.InternalMessageInfo
1197
1198 func (m *ResourceSliceList) Reset() { *m = ResourceSliceList{} }
1199 func (*ResourceSliceList) ProtoMessage() {}
1200 func (*ResourceSliceList) Descriptor() ([]byte, []int) {
1201 return fileDescriptor_4312f5b44a31ec02, []int{41}
1202 }
1203 func (m *ResourceSliceList) XXX_Unmarshal(b []byte) error {
1204 return m.Unmarshal(b)
1205 }
1206 func (m *ResourceSliceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1207 b = b[:cap(b)]
1208 n, err := m.MarshalToSizedBuffer(b)
1209 if err != nil {
1210 return nil, err
1211 }
1212 return b[:n], nil
1213 }
1214 func (m *ResourceSliceList) XXX_Merge(src proto.Message) {
1215 xxx_messageInfo_ResourceSliceList.Merge(m, src)
1216 }
1217 func (m *ResourceSliceList) XXX_Size() int {
1218 return m.Size()
1219 }
1220 func (m *ResourceSliceList) XXX_DiscardUnknown() {
1221 xxx_messageInfo_ResourceSliceList.DiscardUnknown(m)
1222 }
1223
1224 var xxx_messageInfo_ResourceSliceList proto.InternalMessageInfo
1225
1226 func (m *StructuredResourceHandle) Reset() { *m = StructuredResourceHandle{} }
1227 func (*StructuredResourceHandle) ProtoMessage() {}
1228 func (*StructuredResourceHandle) Descriptor() ([]byte, []int) {
1229 return fileDescriptor_4312f5b44a31ec02, []int{42}
1230 }
1231 func (m *StructuredResourceHandle) XXX_Unmarshal(b []byte) error {
1232 return m.Unmarshal(b)
1233 }
1234 func (m *StructuredResourceHandle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1235 b = b[:cap(b)]
1236 n, err := m.MarshalToSizedBuffer(b)
1237 if err != nil {
1238 return nil, err
1239 }
1240 return b[:n], nil
1241 }
1242 func (m *StructuredResourceHandle) XXX_Merge(src proto.Message) {
1243 xxx_messageInfo_StructuredResourceHandle.Merge(m, src)
1244 }
1245 func (m *StructuredResourceHandle) XXX_Size() int {
1246 return m.Size()
1247 }
1248 func (m *StructuredResourceHandle) XXX_DiscardUnknown() {
1249 xxx_messageInfo_StructuredResourceHandle.DiscardUnknown(m)
1250 }
1251
1252 var xxx_messageInfo_StructuredResourceHandle proto.InternalMessageInfo
1253
1254 func (m *VendorParameters) Reset() { *m = VendorParameters{} }
1255 func (*VendorParameters) ProtoMessage() {}
1256 func (*VendorParameters) Descriptor() ([]byte, []int) {
1257 return fileDescriptor_4312f5b44a31ec02, []int{43}
1258 }
1259 func (m *VendorParameters) XXX_Unmarshal(b []byte) error {
1260 return m.Unmarshal(b)
1261 }
1262 func (m *VendorParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1263 b = b[:cap(b)]
1264 n, err := m.MarshalToSizedBuffer(b)
1265 if err != nil {
1266 return nil, err
1267 }
1268 return b[:n], nil
1269 }
1270 func (m *VendorParameters) XXX_Merge(src proto.Message) {
1271 xxx_messageInfo_VendorParameters.Merge(m, src)
1272 }
1273 func (m *VendorParameters) XXX_Size() int {
1274 return m.Size()
1275 }
1276 func (m *VendorParameters) XXX_DiscardUnknown() {
1277 xxx_messageInfo_VendorParameters.DiscardUnknown(m)
1278 }
1279
1280 var xxx_messageInfo_VendorParameters proto.InternalMessageInfo
1281
1282 func init() {
1283 proto.RegisterType((*AllocationResult)(nil), "k8s.io.api.resource.v1alpha2.AllocationResult")
1284 proto.RegisterType((*AllocationResultModel)(nil), "k8s.io.api.resource.v1alpha2.AllocationResultModel")
1285 proto.RegisterType((*DriverAllocationResult)(nil), "k8s.io.api.resource.v1alpha2.DriverAllocationResult")
1286 proto.RegisterType((*DriverRequests)(nil), "k8s.io.api.resource.v1alpha2.DriverRequests")
1287 proto.RegisterType((*NamedResourcesAllocationResult)(nil), "k8s.io.api.resource.v1alpha2.NamedResourcesAllocationResult")
1288 proto.RegisterType((*NamedResourcesAttribute)(nil), "k8s.io.api.resource.v1alpha2.NamedResourcesAttribute")
1289 proto.RegisterType((*NamedResourcesAttributeValue)(nil), "k8s.io.api.resource.v1alpha2.NamedResourcesAttributeValue")
1290 proto.RegisterType((*NamedResourcesFilter)(nil), "k8s.io.api.resource.v1alpha2.NamedResourcesFilter")
1291 proto.RegisterType((*NamedResourcesInstance)(nil), "k8s.io.api.resource.v1alpha2.NamedResourcesInstance")
1292 proto.RegisterType((*NamedResourcesIntSlice)(nil), "k8s.io.api.resource.v1alpha2.NamedResourcesIntSlice")
1293 proto.RegisterType((*NamedResourcesRequest)(nil), "k8s.io.api.resource.v1alpha2.NamedResourcesRequest")
1294 proto.RegisterType((*NamedResourcesResources)(nil), "k8s.io.api.resource.v1alpha2.NamedResourcesResources")
1295 proto.RegisterType((*NamedResourcesStringSlice)(nil), "k8s.io.api.resource.v1alpha2.NamedResourcesStringSlice")
1296 proto.RegisterType((*PodSchedulingContext)(nil), "k8s.io.api.resource.v1alpha2.PodSchedulingContext")
1297 proto.RegisterType((*PodSchedulingContextList)(nil), "k8s.io.api.resource.v1alpha2.PodSchedulingContextList")
1298 proto.RegisterType((*PodSchedulingContextSpec)(nil), "k8s.io.api.resource.v1alpha2.PodSchedulingContextSpec")
1299 proto.RegisterType((*PodSchedulingContextStatus)(nil), "k8s.io.api.resource.v1alpha2.PodSchedulingContextStatus")
1300 proto.RegisterType((*ResourceClaim)(nil), "k8s.io.api.resource.v1alpha2.ResourceClaim")
1301 proto.RegisterType((*ResourceClaimConsumerReference)(nil), "k8s.io.api.resource.v1alpha2.ResourceClaimConsumerReference")
1302 proto.RegisterType((*ResourceClaimList)(nil), "k8s.io.api.resource.v1alpha2.ResourceClaimList")
1303 proto.RegisterType((*ResourceClaimParameters)(nil), "k8s.io.api.resource.v1alpha2.ResourceClaimParameters")
1304 proto.RegisterType((*ResourceClaimParametersList)(nil), "k8s.io.api.resource.v1alpha2.ResourceClaimParametersList")
1305 proto.RegisterType((*ResourceClaimParametersReference)(nil), "k8s.io.api.resource.v1alpha2.ResourceClaimParametersReference")
1306 proto.RegisterType((*ResourceClaimSchedulingStatus)(nil), "k8s.io.api.resource.v1alpha2.ResourceClaimSchedulingStatus")
1307 proto.RegisterType((*ResourceClaimSpec)(nil), "k8s.io.api.resource.v1alpha2.ResourceClaimSpec")
1308 proto.RegisterType((*ResourceClaimStatus)(nil), "k8s.io.api.resource.v1alpha2.ResourceClaimStatus")
1309 proto.RegisterType((*ResourceClaimTemplate)(nil), "k8s.io.api.resource.v1alpha2.ResourceClaimTemplate")
1310 proto.RegisterType((*ResourceClaimTemplateList)(nil), "k8s.io.api.resource.v1alpha2.ResourceClaimTemplateList")
1311 proto.RegisterType((*ResourceClaimTemplateSpec)(nil), "k8s.io.api.resource.v1alpha2.ResourceClaimTemplateSpec")
1312 proto.RegisterType((*ResourceClass)(nil), "k8s.io.api.resource.v1alpha2.ResourceClass")
1313 proto.RegisterType((*ResourceClassList)(nil), "k8s.io.api.resource.v1alpha2.ResourceClassList")
1314 proto.RegisterType((*ResourceClassParameters)(nil), "k8s.io.api.resource.v1alpha2.ResourceClassParameters")
1315 proto.RegisterType((*ResourceClassParametersList)(nil), "k8s.io.api.resource.v1alpha2.ResourceClassParametersList")
1316 proto.RegisterType((*ResourceClassParametersReference)(nil), "k8s.io.api.resource.v1alpha2.ResourceClassParametersReference")
1317 proto.RegisterType((*ResourceFilter)(nil), "k8s.io.api.resource.v1alpha2.ResourceFilter")
1318 proto.RegisterType((*ResourceFilterModel)(nil), "k8s.io.api.resource.v1alpha2.ResourceFilterModel")
1319 proto.RegisterType((*ResourceHandle)(nil), "k8s.io.api.resource.v1alpha2.ResourceHandle")
1320 proto.RegisterType((*ResourceModel)(nil), "k8s.io.api.resource.v1alpha2.ResourceModel")
1321 proto.RegisterType((*ResourceRequest)(nil), "k8s.io.api.resource.v1alpha2.ResourceRequest")
1322 proto.RegisterType((*ResourceRequestModel)(nil), "k8s.io.api.resource.v1alpha2.ResourceRequestModel")
1323 proto.RegisterType((*ResourceSlice)(nil), "k8s.io.api.resource.v1alpha2.ResourceSlice")
1324 proto.RegisterType((*ResourceSliceList)(nil), "k8s.io.api.resource.v1alpha2.ResourceSliceList")
1325 proto.RegisterType((*StructuredResourceHandle)(nil), "k8s.io.api.resource.v1alpha2.StructuredResourceHandle")
1326 proto.RegisterType((*VendorParameters)(nil), "k8s.io.api.resource.v1alpha2.VendorParameters")
1327 }
1328
1329 func init() {
1330 proto.RegisterFile("k8s.io/api/resource/v1alpha2/generated.proto", fileDescriptor_4312f5b44a31ec02)
1331 }
1332
1333 var fileDescriptor_4312f5b44a31ec02 = []byte{
1334
1335 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x1a, 0x4d, 0x6c, 0x1c, 0x57,
1336 0xd9, 0xb3, 0xbb, 0x89, 0xd7, 0x9f, 0xed, 0xb5, 0x33, 0xb6, 0xe3, 0x4d, 0xea, 0xee, 0x6e, 0x47,
1337 0x20, 0x2c, 0x70, 0x76, 0x1b, 0xa7, 0x4d, 0xa3, 0x52, 0x90, 0x32, 0x71, 0x13, 0x2c, 0x9a, 0xd4,
1338 0x7d, 0x4b, 0xdc, 0xa6, 0xfc, 0x75, 0xbc, 0xf3, 0x62, 0x0f, 0xd9, 0x9d, 0xd9, 0xcc, 0x7b, 0xeb,
1339 0x26, 0xe2, 0x12, 0x55, 0x20, 0xb8, 0x20, 0x15, 0x81, 0x10, 0x9c, 0x38, 0x21, 0xc4, 0x85, 0x0b,
1340 0x5c, 0x39, 0x55, 0xd0, 0x1c, 0x83, 0x40, 0xa2, 0xe2, 0xb0, 0x22, 0xcb, 0x91, 0x23, 0xb7, 0x9e,
1341 0xd0, 0xbc, 0xf7, 0xe6, 0xe7, 0xcd, 0xce, 0xac, 0x77, 0x96, 0xc6, 0x4a, 0x4e, 0xde, 0x79, 0xef,
1342 0xfb, 0x7b, 0xdf, 0xff, 0x7b, 0x9f, 0x61, 0xe3, 0xce, 0x25, 0x52, 0xb7, 0x9c, 0x86, 0xd1, 0xb5,
1343 0x1a, 0x2e, 0x26, 0x4e, 0xcf, 0x6d, 0xe1, 0xc6, 0xe1, 0x79, 0xa3, 0xdd, 0x3d, 0x30, 0x36, 0x1b,
1344 0xfb, 0xd8, 0xc6, 0xae, 0x41, 0xb1, 0x59, 0xef, 0xba, 0x0e, 0x75, 0xd4, 0x35, 0x0e, 0x5d, 0x37,
1345 0xba, 0x56, 0xdd, 0x87, 0xae, 0xfb, 0xd0, 0x67, 0xcf, 0xed, 0x5b, 0xf4, 0xa0, 0xb7, 0x57, 0x6f,
1346 0x39, 0x9d, 0xc6, 0xbe, 0xb3, 0xef, 0x34, 0x18, 0xd2, 0x5e, 0xef, 0x36, 0xfb, 0x62, 0x1f, 0xec,
1347 0x17, 0x27, 0x76, 0x56, 0x8b, 0xb0, 0x6e, 0x39, 0xae, 0xc7, 0x36, 0xce, 0xf0, 0xec, 0x4b, 0x21,
1348 0x4c, 0xc7, 0x68, 0x1d, 0x58, 0x36, 0x76, 0xef, 0x37, 0xba, 0x77, 0xf6, 0x65, 0x79, 0xb3, 0x60,
1349 0x91, 0x46, 0x07, 0x53, 0x23, 0x89, 0x57, 0x23, 0x0d, 0xcb, 0xed, 0xd9, 0xd4, 0xea, 0x0c, 0xb3,
1350 0xb9, 0x78, 0x14, 0x02, 0x69, 0x1d, 0xe0, 0x8e, 0x11, 0xc7, 0xd3, 0x7e, 0x99, 0x83, 0xc5, 0xcb,
1351 0xed, 0xb6, 0xd3, 0x32, 0xa8, 0xe5, 0xd8, 0x08, 0x93, 0x5e, 0x9b, 0xaa, 0x0e, 0x2c, 0xf8, 0xe7,
1352 0xf9, 0x9a, 0x61, 0x9b, 0x6d, 0x4c, 0xca, 0x4a, 0x2d, 0xbf, 0x3e, 0xbb, 0xb9, 0x51, 0x1f, 0xa5,
1353 0xf4, 0x3a, 0x92, 0x90, 0xf4, 0xd5, 0x87, 0xfd, 0xea, 0xd4, 0xa0, 0x5f, 0x5d, 0x90, 0xd7, 0x09,
1354 0x8a, 0x53, 0x57, 0xf7, 0x60, 0xd1, 0x38, 0x34, 0xac, 0xb6, 0xb1, 0xd7, 0xc6, 0x6f, 0xda, 0x37,
1355 0x1c, 0x13, 0x93, 0x72, 0xae, 0xa6, 0xac, 0xcf, 0x6e, 0xd6, 0xa2, 0x1c, 0x3d, 0xcb, 0xd4, 0x0f,
1356 0xcf, 0xd7, 0x3d, 0x80, 0x26, 0x6e, 0xe3, 0x16, 0x75, 0x5c, 0x7d, 0x79, 0xd0, 0xaf, 0x2e, 0x5e,
1357 0x8e, 0x61, 0xa3, 0x21, 0x7a, 0x6a, 0x03, 0x66, 0xc8, 0x81, 0xe1, 0x62, 0x6f, 0xad, 0x9c, 0xaf,
1358 0x29, 0xeb, 0x45, 0xfd, 0x94, 0x10, 0x70, 0xa6, 0xe9, 0x6f, 0xa0, 0x10, 0x46, 0xfb, 0xa9, 0x02,
1359 0x2b, 0x71, 0xd5, 0x5c, 0x77, 0x4c, 0xdc, 0x56, 0xef, 0x41, 0xc9, 0x36, 0x3a, 0xd8, 0xf4, 0xcf,
1360 0xe5, 0xa9, 0xc7, 0x13, 0xf6, 0xb5, 0xd1, 0xea, 0xb9, 0x21, 0xe1, 0xc4, 0x49, 0xeb, 0xea, 0xa0,
1361 0x5f, 0x2d, 0xc9, 0x30, 0x28, 0xc6, 0x47, 0xfb, 0x7d, 0x0e, 0x4e, 0x6f, 0xb9, 0xd6, 0x21, 0x76,
1362 0x87, 0x8c, 0xf6, 0x63, 0x05, 0x56, 0x0f, 0xb1, 0x6d, 0x3a, 0x2e, 0xc2, 0x77, 0x7b, 0x98, 0xd0,
1363 0x1d, 0xc3, 0x35, 0x3a, 0x98, 0x62, 0xd7, 0x17, 0xef, 0x5c, 0x44, 0xbc, 0xc0, 0x49, 0xea, 0xdd,
1364 0x3b, 0xfb, 0x75, 0xe1, 0x24, 0x75, 0x64, 0xbc, 0xff, 0xfa, 0x3d, 0x8a, 0x6d, 0x62, 0x39, 0xb6,
1365 0x5e, 0x15, 0xda, 0x59, 0xdd, 0x4d, 0xa6, 0x8a, 0xd2, 0xd8, 0x79, 0xa2, 0xac, 0x18, 0x49, 0x9a,
1366 0x13, 0x46, 0xbd, 0x30, 0x5a, 0x4f, 0x89, 0x4a, 0xd7, 0x9f, 0x17, 0xe2, 0x24, 0xdb, 0x04, 0x25,
1367 0x33, 0xd4, 0x7e, 0x91, 0x83, 0x12, 0x57, 0x98, 0x10, 0x93, 0xa8, 0x9b, 0x00, 0x26, 0x5b, 0xf1,
1368 0x74, 0xcd, 0x54, 0x33, 0xa3, 0xab, 0x82, 0x38, 0x6c, 0x05, 0x3b, 0x28, 0x02, 0xa5, 0x12, 0x58,
1369 0xe4, 0x87, 0x8d, 0x28, 0x35, 0x37, 0x89, 0x52, 0xcb, 0x82, 0xd1, 0xe2, 0x6e, 0x8c, 0x1c, 0x1a,
1370 0x62, 0xa0, 0x7e, 0x13, 0x8a, 0xae, 0x10, 0xba, 0x9c, 0x67, 0xf1, 0x77, 0x6e, 0xbc, 0xf8, 0x13,
1371 0x47, 0xd5, 0x17, 0x05, 0xb3, 0xa2, 0x7f, 0x76, 0x14, 0x10, 0xd4, 0x74, 0xa8, 0x8c, 0xf6, 0x47,
1372 0xb5, 0x06, 0x05, 0x3b, 0xd4, 0xd0, 0x9c, 0xa0, 0x55, 0x60, 0xba, 0x61, 0x3b, 0xda, 0x5f, 0x14,
1373 0x58, 0x8d, 0x11, 0xa1, 0xd4, 0xb5, 0xf6, 0x7a, 0x14, 0x1f, 0x8d, 0xed, 0x79, 0x49, 0xc9, 0xf0,
1374 0xe1, 0x77, 0x8d, 0x76, 0x0f, 0x0b, 0x95, 0xbe, 0x9a, 0x29, 0x8c, 0x24, 0x0a, 0xfa, 0xe7, 0x04,
1375 0xa3, 0xb5, 0x51, 0x50, 0x28, 0xc6, 0x57, 0xfb, 0x4f, 0x1e, 0x46, 0x22, 0xa8, 0xdf, 0x86, 0xe2,
1376 0xdd, 0x9e, 0x61, 0x53, 0x8b, 0xde, 0x2f, 0x9f, 0x64, 0x42, 0xd6, 0x53, 0xed, 0x2e, 0x49, 0xfd,
1377 0x96, 0xc0, 0xd2, 0x4f, 0x0d, 0xfa, 0xd5, 0x79, 0xff, 0x8b, 0x4b, 0x11, 0x90, 0x54, 0x5f, 0x80,
1378 0xc2, 0x9e, 0xe3, 0xf0, 0xf0, 0x28, 0xea, 0xf3, 0x5e, 0x4a, 0xd2, 0x1d, 0xa7, 0xcd, 0xc1, 0xd8,
1379 0x96, 0x5a, 0x81, 0xbc, 0x65, 0xd3, 0xf2, 0x74, 0x4d, 0x59, 0xcf, 0xeb, 0x73, 0x9e, 0x51, 0xb7,
1380 0x6d, 0xca, 0x01, 0xbc, 0x0d, 0xb5, 0x05, 0x45, 0xcb, 0xa6, 0xcd, 0xb6, 0xd5, 0xc2, 0xe5, 0x22,
1381 0x93, 0xf0, 0xa5, 0x2c, 0x6a, 0xdc, 0x16, 0xb8, 0x5c, 0x4e, 0xff, 0x4b, 0xc8, 0xe9, 0x13, 0x56,
1382 0xbf, 0x00, 0x27, 0x09, 0x75, 0x2d, 0x7b, 0xbf, 0x7c, 0x82, 0x99, 0x75, 0x61, 0xd0, 0xaf, 0xce,
1383 0x36, 0xd9, 0x0a, 0x07, 0x15, 0xdb, 0xaa, 0x03, 0xb3, 0xfc, 0x17, 0x17, 0x68, 0x86, 0x09, 0xf4,
1384 0x4a, 0x16, 0x81, 0x9a, 0x21, 0x3a, 0x4f, 0xf1, 0x91, 0x05, 0xce, 0x2b, 0xca, 0x41, 0xfd, 0x22,
1385 0x4c, 0x1f, 0x62, 0xd7, 0x0b, 0xb1, 0x32, 0x30, 0xd1, 0x16, 0x07, 0xfd, 0xea, 0xdc, 0x2e, 0x5f,
1386 0xe2, 0xf0, 0x3e, 0x80, 0xb6, 0x05, 0xcb, 0x32, 0xaf, 0xab, 0x56, 0x9b, 0x62, 0x57, 0xdd, 0x80,
1387 0x22, 0x11, 0x55, 0x45, 0xb8, 0x6d, 0x10, 0x40, 0x7e, 0xb5, 0x41, 0x01, 0x84, 0xf6, 0x1b, 0x05,
1388 0x4e, 0xc7, 0x75, 0x48, 0xa8, 0x61, 0xb7, 0xc6, 0xf1, 0x7d, 0x0b, 0x20, 0x70, 0x41, 0x2f, 0x93,
1389 0x78, 0xc1, 0xfd, 0xf2, 0x44, 0x6e, 0x1f, 0xa6, 0xae, 0x60, 0x89, 0xa0, 0x08, 0x71, 0xed, 0xe2,
1390 0xb0, 0x98, 0xc2, 0x9a, 0x6b, 0x50, 0xb0, 0x6c, 0xca, 0x6b, 0x7b, 0x5e, 0x2f, 0x7a, 0x22, 0x6e,
1391 0xdb, 0x94, 0x20, 0xb6, 0xaa, 0xbd, 0x0e, 0x2b, 0xb1, 0x62, 0xc4, 0x53, 0x47, 0x46, 0x35, 0x3d,
1392 0x18, 0xca, 0x11, 0xc1, 0x0f, 0x15, 0xc3, 0x8c, 0x25, 0x74, 0xe6, 0x77, 0x18, 0x19, 0x9d, 0x96,
1393 0x23, 0x87, 0x85, 0xdc, 0x5f, 0x21, 0x28, 0xa4, 0xac, 0xe9, 0x70, 0x26, 0xd5, 0xb7, 0xd4, 0xcf,
1394 0xc3, 0x34, 0xf7, 0x23, 0x2e, 0xc1, 0x8c, 0x3e, 0x3b, 0xe8, 0x57, 0xa7, 0x39, 0x04, 0x41, 0xfe,
1395 0x9e, 0xf6, 0xc7, 0x1c, 0x2c, 0xef, 0x38, 0x66, 0xb3, 0x75, 0x80, 0xcd, 0x5e, 0xdb, 0xb2, 0xf7,
1396 0xaf, 0x38, 0x36, 0xc5, 0xf7, 0xa8, 0xfa, 0x1e, 0x14, 0xbd, 0x26, 0xce, 0x34, 0xa8, 0x21, 0xca,
1397 0xec, 0x8b, 0xa3, 0x32, 0x03, 0xa9, 0x7b, 0xd0, 0x5e, 0x13, 0xf3, 0xe6, 0xde, 0xf7, 0x70, 0x8b,
1398 0x5e, 0xc7, 0xd4, 0x08, 0x4d, 0x18, 0xae, 0xa1, 0x80, 0xaa, 0xfa, 0x0e, 0x14, 0x48, 0x17, 0xb7,
1399 0x44, 0x72, 0xbc, 0x38, 0x5a, 0x41, 0x49, 0x32, 0x36, 0xbb, 0xb8, 0x15, 0x7a, 0xa1, 0xf7, 0x85,
1400 0x18, 0x45, 0xf5, 0x3d, 0x2f, 0x9c, 0x0d, 0xda, 0x23, 0xac, 0x1f, 0x9a, 0xdd, 0xbc, 0x34, 0x01,
1401 0x6d, 0x86, 0xaf, 0x97, 0x04, 0xf5, 0x93, 0xfc, 0x1b, 0x09, 0xba, 0xda, 0x5f, 0x15, 0x28, 0x27,
1402 0xa1, 0xbd, 0x61, 0x11, 0xaa, 0x7e, 0x6b, 0x48, 0x75, 0xf5, 0xf1, 0x54, 0xe7, 0x61, 0x33, 0xc5,
1403 0x05, 0x8e, 0xe7, 0xaf, 0x44, 0xd4, 0xf6, 0x36, 0x9c, 0xb0, 0x28, 0xee, 0xf8, 0xd1, 0xb5, 0x99,
1404 0xfd, 0x6c, 0xfa, 0xbc, 0x20, 0x7f, 0x62, 0xdb, 0x23, 0x84, 0x38, 0x3d, 0xed, 0xc3, 0x94, 0x33,
1405 0x79, 0x8a, 0x55, 0x2f, 0xc1, 0x1c, 0x77, 0x7d, 0x6c, 0x7a, 0x6d, 0xa7, 0x08, 0x90, 0x65, 0x41,
1406 0x68, 0xae, 0x19, 0xd9, 0x43, 0x12, 0xa4, 0xfa, 0x2a, 0x94, 0xba, 0x0e, 0xc5, 0x36, 0xb5, 0x8c,
1407 0xb6, 0xdf, 0x01, 0x7b, 0xfe, 0xc8, 0xda, 0xc2, 0x1d, 0x69, 0x07, 0xc5, 0x20, 0xb5, 0x5f, 0x29,
1408 0x70, 0x36, 0xdd, 0x3a, 0xea, 0xf7, 0xa1, 0xe4, 0x9f, 0xf8, 0x4a, 0xdb, 0xb0, 0x3a, 0x7e, 0xb0,
1409 0x7d, 0x79, 0xbc, 0x76, 0x82, 0xe1, 0x84, 0xb4, 0x85, 0xc9, 0x4f, 0x8b, 0x33, 0x95, 0x24, 0x30,
1410 0x82, 0x62, 0xac, 0xb4, 0x5f, 0xe7, 0x60, 0x5e, 0x02, 0x39, 0x86, 0x90, 0x79, 0x4b, 0x0a, 0x99,
1411 0x46, 0x96, 0x63, 0xa6, 0xc5, 0xca, 0xad, 0x58, 0xac, 0x9c, 0xcf, 0x42, 0x74, 0x74, 0x90, 0x0c,
1412 0x14, 0xa8, 0x48, 0xf0, 0x57, 0x1c, 0x9b, 0xf4, 0x3a, 0x5e, 0xcb, 0x7a, 0x1b, 0xbb, 0xd8, 0xab,
1413 0x28, 0x1b, 0x50, 0x34, 0xba, 0xd6, 0x35, 0xd7, 0xe9, 0x75, 0xe3, 0x39, 0xf7, 0xf2, 0xce, 0x36,
1414 0x5b, 0x47, 0x01, 0x84, 0x07, 0xed, 0x4b, 0xc4, 0xa4, 0x9d, 0x89, 0x76, 0x82, 0xa2, 0x45, 0x0c,
1415 0x20, 0x82, 0x6a, 0x55, 0x48, 0xad, 0x56, 0x3a, 0xe4, 0x7b, 0x96, 0x29, 0x6a, 0xfe, 0x8b, 0x02,
1416 0x20, 0x7f, 0x73, 0x7b, 0xeb, 0xd3, 0x7e, 0xf5, 0x85, 0xb4, 0x8b, 0x27, 0xbd, 0xdf, 0xc5, 0xa4,
1417 0x7e, 0x73, 0x7b, 0x0b, 0x79, 0xc8, 0xda, 0x47, 0x0a, 0x9c, 0x92, 0x0e, 0x79, 0x0c, 0x29, 0x60,
1418 0x47, 0x4e, 0x01, 0x5f, 0xca, 0x60, 0xb2, 0x94, 0xd8, 0xff, 0x59, 0x1e, 0x56, 0x25, 0xb8, 0x48,
1419 0xbb, 0xfe, 0xe4, 0xdd, 0xfa, 0x7d, 0x98, 0x0f, 0xee, 0xef, 0x57, 0x5d, 0xa7, 0x23, 0xfc, 0xfb,
1420 0xab, 0x19, 0xce, 0x15, 0xb9, 0x70, 0xf8, 0xce, 0xc5, 0x5b, 0xbe, 0x6b, 0x51, 0xc2, 0x48, 0xe6,
1421 0x93, 0xf9, 0xee, 0xac, 0xb6, 0xa1, 0x64, 0x4a, 0xb7, 0xae, 0x72, 0x61, 0x9c, 0x07, 0x04, 0xf9,
1422 0xa6, 0x16, 0xa6, 0x18, 0x79, 0x1d, 0xc5, 0x68, 0x6b, 0xff, 0x50, 0xe0, 0xb9, 0x94, 0x53, 0x1e,
1423 0x83, 0x97, 0xbd, 0x2b, 0x7b, 0xd9, 0xcb, 0x13, 0x59, 0x23, 0xc5, 0xdf, 0x7e, 0xae, 0x40, 0xed,
1424 0x28, 0xfb, 0x65, 0x4c, 0x0e, 0x35, 0x28, 0xdc, 0xb1, 0x6c, 0x93, 0xf9, 0x4e, 0x24, 0xdc, 0xbf,
1425 0x6e, 0xd9, 0x26, 0x62, 0x3b, 0x41, 0x42, 0xc8, 0xa7, 0x5e, 0xfc, 0x1e, 0x28, 0xf0, 0xfc, 0xc8,
1426 0xea, 0x30, 0x46, 0x0b, 0xfc, 0x15, 0x58, 0xe8, 0xd9, 0xa4, 0x67, 0x51, 0xcf, 0x61, 0xa2, 0x05,
1427 0x6f, 0x69, 0xd0, 0xaf, 0x2e, 0xdc, 0x94, 0xb7, 0x50, 0x1c, 0x56, 0xfb, 0x6d, 0x2e, 0x96, 0x4f,
1428 0x58, 0xf9, 0xbd, 0x06, 0xa7, 0x22, 0xe5, 0x87, 0x90, 0xc8, 0x15, 0xff, 0x8c, 0x90, 0x21, 0x8a,
1429 0xc5, 0x01, 0xd0, 0x30, 0x8e, 0x17, 0x6a, 0xdd, 0xa8, 0xaa, 0x3f, 0xcb, 0x50, 0x93, 0x36, 0x90,
1430 0xcc, 0x47, 0xdd, 0x81, 0x52, 0xf8, 0x92, 0x71, 0xdd, 0x6b, 0x21, 0xb8, 0x19, 0xd6, 0xfd, 0x58,
1431 0xb8, 0x2c, 0xed, 0x7e, 0x3a, 0xb4, 0x82, 0x62, 0xf8, 0xda, 0x7f, 0x73, 0xb0, 0x94, 0x50, 0x8e,
1432 0x26, 0x7a, 0x07, 0xf9, 0x0e, 0x40, 0x48, 0x5d, 0xe8, 0xa4, 0x9e, 0xed, 0x35, 0x47, 0x2f, 0xb1,
1433 0xcb, 0x4a, 0xb8, 0x1a, 0xa1, 0xa8, 0x12, 0x98, 0x75, 0x31, 0xc1, 0xee, 0x21, 0x36, 0xaf, 0x3a,
1434 0xae, 0x78, 0xf5, 0x78, 0x2d, 0x83, 0xd2, 0x87, 0x4a, 0xa7, 0xbe, 0x24, 0x8e, 0x34, 0x8b, 0x42,
1435 0xc2, 0x28, 0xca, 0x45, 0x6d, 0xc2, 0x8a, 0x89, 0xa3, 0xcf, 0x47, 0x2c, 0xad, 0x60, 0x93, 0x55,
1436 0xc4, 0x62, 0xf8, 0xf0, 0xb4, 0x95, 0x04, 0x84, 0x92, 0x71, 0xb5, 0xbf, 0x2b, 0xb0, 0x22, 0x49,
1437 0xf6, 0x0d, 0xdc, 0xe9, 0xb6, 0x0d, 0x8a, 0x8f, 0xa1, 0x4e, 0xdc, 0x92, 0xda, 0x9f, 0x57, 0x32,
1438 0xa8, 0xcf, 0x17, 0x32, 0xad, 0x0d, 0xd2, 0xfe, 0xa6, 0xc0, 0x99, 0x44, 0x8c, 0x63, 0x48, 0xb4,
1439 0xef, 0xc8, 0x89, 0xf6, 0xc2, 0x04, 0xe7, 0x4a, 0x49, 0xb3, 0x8f, 0xd2, 0x4e, 0xd5, 0xe4, 0xd7,
1440 0xa4, 0x67, 0xaf, 0x5f, 0xd5, 0x3e, 0xce, 0x4b, 0x6d, 0x37, 0x39, 0x8e, 0xfe, 0x44, 0xce, 0x28,
1441 0xb9, 0xb1, 0x32, 0xca, 0x50, 0xa2, 0xcd, 0x67, 0x4c, 0xb4, 0x84, 0x4c, 0x96, 0x68, 0x6f, 0xc1,
1442 0xbc, 0x5c, 0x7d, 0x0a, 0x63, 0x0e, 0x1c, 0x18, 0xe9, 0xa6, 0x54, 0x9d, 0x64, 0x4a, 0xea, 0x1b,
1443 0xb0, 0x4c, 0xa8, 0xdb, 0x6b, 0xd1, 0x9e, 0x8b, 0xcd, 0xc8, 0x8b, 0xf1, 0x09, 0x96, 0x4f, 0xca,
1444 0x83, 0x7e, 0x75, 0xb9, 0x99, 0xb0, 0x8f, 0x12, 0xb1, 0xe2, 0x9d, 0x33, 0x21, 0x4f, 0x73, 0xe7,
1445 0x4c, 0xd2, 0x3a, 0x99, 0x8f, 0xe4, 0xce, 0x39, 0x6a, 0xb5, 0x67, 0xa1, 0x73, 0x1e, 0xe1, 0x65,
1446 0x23, 0x3b, 0x67, 0x9a, 0x30, 0x38, 0xe0, 0x55, 0xed, 0x88, 0xb2, 0x19, 0x9f, 0x0f, 0x64, 0x9a,
1447 0x1c, 0xbc, 0x0d, 0xd3, 0xb7, 0xd9, 0x9b, 0xe6, 0x98, 0x7d, 0xb7, 0x7f, 0x50, 0xfe, 0x10, 0xaa,
1448 0x2f, 0x08, 0x56, 0xd3, 0xfc, 0x9b, 0x20, 0x9f, 0x5a, 0xbc, 0xd3, 0x8e, 0x6a, 0xe5, 0x69, 0xee,
1449 0xb4, 0xa3, 0x72, 0xa6, 0xf8, 0xe7, 0x9f, 0xe5, 0x4e, 0x3b, 0xd1, 0xde, 0xc7, 0xdf, 0x69, 0x7b,
1450 0x37, 0x2f, 0xef, 0x2f, 0xe9, 0x1a, 0x2d, 0xff, 0x86, 0x1e, 0xdc, 0xbc, 0x6e, 0xf8, 0x1b, 0x28,
1451 0x84, 0xd1, 0x3e, 0x56, 0xa0, 0x24, 0x9b, 0x73, 0xa2, 0x46, 0xef, 0x81, 0x02, 0x4b, 0xae, 0x44,
1452 0x26, 0x3a, 0xc0, 0x3b, 0x9f, 0xc5, 0x9d, 0xf8, 0xf8, 0xee, 0x39, 0xc1, 0x70, 0x29, 0x61, 0x13,
1453 0x25, 0xb1, 0xd2, 0x7e, 0xa8, 0x40, 0x12, 0xb0, 0x6a, 0xa7, 0x4c, 0x5f, 0x37, 0xb3, 0x3c, 0x1d,
1454 0x0b, 0x4f, 0x1f, 0x67, 0xe6, 0xfa, 0xcf, 0x88, 0x46, 0xf9, 0xc0, 0x7a, 0x22, 0x8d, 0xd6, 0xa0,
1455 0xc0, 0xc2, 0x22, 0xe6, 0x0d, 0x5b, 0x06, 0x35, 0x10, 0xdb, 0x51, 0x5d, 0x28, 0x85, 0x05, 0xc0,
1456 0x5b, 0x67, 0x05, 0xe3, 0xc8, 0x27, 0xdf, 0xb0, 0x94, 0xc4, 0xe6, 0xef, 0xec, 0x70, 0x4d, 0x89,
1457 0x22, 0x8a, 0x71, 0xd0, 0x3e, 0x50, 0xc2, 0x36, 0x81, 0xab, 0xf7, 0x6e, 0x8a, 0x7a, 0x33, 0x8d,
1458 0x27, 0x82, 0x1f, 0x63, 0x69, 0xf8, 0x27, 0x39, 0x58, 0x88, 0xcd, 0x2e, 0x13, 0x27, 0xae, 0xca,
1459 0x93, 0x9e, 0xb8, 0xfe, 0x40, 0x81, 0x65, 0x57, 0x16, 0x24, 0xea, 0xf6, 0x9b, 0x99, 0xc6, 0xaf,
1460 0xdc, 0xef, 0xd7, 0x04, 0xfb, 0xe5, 0xa4, 0x5d, 0x94, 0xc8, 0x4d, 0xfb, 0x91, 0x02, 0x89, 0xe0,
1461 0xaa, 0x93, 0x62, 0x9b, 0x0b, 0xd9, 0x6c, 0xc3, 0xa7, 0xc3, 0xe3, 0x58, 0xe6, 0x4f, 0x91, 0xc7,
1462 0x5b, 0x3e, 0x2f, 0x79, 0xf2, 0xb5, 0x7a, 0x03, 0x8a, 0xb6, 0x63, 0xe2, 0x48, 0x0f, 0x19, 0x24,
1463 0xd9, 0x1b, 0x62, 0x1d, 0x05, 0x10, 0xb1, 0x50, 0xcc, 0x8f, 0x15, 0x8a, 0x07, 0x30, 0xef, 0x46,
1464 0x7d, 0x5e, 0xb4, 0x7e, 0x63, 0x76, 0x39, 0xdc, 0xae, 0x2b, 0x82, 0x87, 0x1c, 0x3d, 0x48, 0x26,
1465 0x2c, 0xf5, 0x6e, 0x4c, 0x7f, 0x4f, 0x6d, 0xef, 0xc6, 0x27, 0xad, 0xc9, 0xb5, 0xf1, 0x0f, 0x79,
1466 0x28, 0xa7, 0x65, 0x19, 0xf5, 0x03, 0x05, 0x56, 0x78, 0x20, 0xc5, 0xca, 0xe6, 0x64, 0xe1, 0x1a,
1467 0xdc, 0xb6, 0x77, 0x93, 0x68, 0xa2, 0x64, 0x56, 0xb2, 0x10, 0xd1, 0xa7, 0x97, 0xc9, 0xfe, 0x4b,
1468 0x63, 0x58, 0x08, 0xe9, 0x39, 0x27, 0x99, 0x95, 0xe4, 0xb8, 0x85, 0x23, 0x1d, 0xf7, 0xbb, 0x30,
1469 0xed, 0xb2, 0x07, 0x11, 0xef, 0x5e, 0x30, 0xc6, 0xe8, 0x33, 0xf9, 0xdf, 0x7e, 0xc2, 0x5e, 0x8d,
1470 0x7f, 0x13, 0xe4, 0x53, 0xd5, 0x7e, 0xa7, 0xc0, 0x50, 0xce, 0x9b, 0xa8, 0x72, 0x19, 0x00, 0xdd,
1471 0xff, 0x53, 0xa1, 0x01, 0x8b, 0x88, 0x16, 0x23, 0x44, 0x75, 0xfd, 0xe1, 0xe3, 0xca, 0xd4, 0xa3,
1472 0xc7, 0x95, 0xa9, 0x4f, 0x1e, 0x57, 0xa6, 0x1e, 0x0c, 0x2a, 0xca, 0xc3, 0x41, 0x45, 0x79, 0x34,
1473 0xa8, 0x28, 0x9f, 0x0c, 0x2a, 0xca, 0xbf, 0x06, 0x15, 0xe5, 0xc3, 0x7f, 0x57, 0xa6, 0xde, 0x5d,
1474 0x1b, 0xf5, 0x0f, 0x82, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x2a, 0x94, 0xb7, 0xe5, 0x3f, 0x28,
1475 0x00, 0x00,
1476 }
1477
1478 func (m *AllocationResult) Marshal() (dAtA []byte, err error) {
1479 size := m.Size()
1480 dAtA = make([]byte, size)
1481 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1482 if err != nil {
1483 return nil, err
1484 }
1485 return dAtA[:n], nil
1486 }
1487
1488 func (m *AllocationResult) MarshalTo(dAtA []byte) (int, error) {
1489 size := m.Size()
1490 return m.MarshalToSizedBuffer(dAtA[:size])
1491 }
1492
1493 func (m *AllocationResult) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1494 i := len(dAtA)
1495 _ = i
1496 var l int
1497 _ = l
1498 i--
1499 if m.Shareable {
1500 dAtA[i] = 1
1501 } else {
1502 dAtA[i] = 0
1503 }
1504 i--
1505 dAtA[i] = 0x18
1506 if m.AvailableOnNodes != nil {
1507 {
1508 size, err := m.AvailableOnNodes.MarshalToSizedBuffer(dAtA[:i])
1509 if err != nil {
1510 return 0, err
1511 }
1512 i -= size
1513 i = encodeVarintGenerated(dAtA, i, uint64(size))
1514 }
1515 i--
1516 dAtA[i] = 0x12
1517 }
1518 if len(m.ResourceHandles) > 0 {
1519 for iNdEx := len(m.ResourceHandles) - 1; iNdEx >= 0; iNdEx-- {
1520 {
1521 size, err := m.ResourceHandles[iNdEx].MarshalToSizedBuffer(dAtA[:i])
1522 if err != nil {
1523 return 0, err
1524 }
1525 i -= size
1526 i = encodeVarintGenerated(dAtA, i, uint64(size))
1527 }
1528 i--
1529 dAtA[i] = 0xa
1530 }
1531 }
1532 return len(dAtA) - i, nil
1533 }
1534
1535 func (m *AllocationResultModel) Marshal() (dAtA []byte, err error) {
1536 size := m.Size()
1537 dAtA = make([]byte, size)
1538 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1539 if err != nil {
1540 return nil, err
1541 }
1542 return dAtA[:n], nil
1543 }
1544
1545 func (m *AllocationResultModel) MarshalTo(dAtA []byte) (int, error) {
1546 size := m.Size()
1547 return m.MarshalToSizedBuffer(dAtA[:size])
1548 }
1549
1550 func (m *AllocationResultModel) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1551 i := len(dAtA)
1552 _ = i
1553 var l int
1554 _ = l
1555 if m.NamedResources != nil {
1556 {
1557 size, err := m.NamedResources.MarshalToSizedBuffer(dAtA[:i])
1558 if err != nil {
1559 return 0, err
1560 }
1561 i -= size
1562 i = encodeVarintGenerated(dAtA, i, uint64(size))
1563 }
1564 i--
1565 dAtA[i] = 0xa
1566 }
1567 return len(dAtA) - i, nil
1568 }
1569
1570 func (m *DriverAllocationResult) Marshal() (dAtA []byte, err error) {
1571 size := m.Size()
1572 dAtA = make([]byte, size)
1573 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1574 if err != nil {
1575 return nil, err
1576 }
1577 return dAtA[:n], nil
1578 }
1579
1580 func (m *DriverAllocationResult) MarshalTo(dAtA []byte) (int, error) {
1581 size := m.Size()
1582 return m.MarshalToSizedBuffer(dAtA[:size])
1583 }
1584
1585 func (m *DriverAllocationResult) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1586 i := len(dAtA)
1587 _ = i
1588 var l int
1589 _ = l
1590 {
1591 size, err := m.AllocationResultModel.MarshalToSizedBuffer(dAtA[:i])
1592 if err != nil {
1593 return 0, err
1594 }
1595 i -= size
1596 i = encodeVarintGenerated(dAtA, i, uint64(size))
1597 }
1598 i--
1599 dAtA[i] = 0x12
1600 {
1601 size, err := m.VendorRequestParameters.MarshalToSizedBuffer(dAtA[:i])
1602 if err != nil {
1603 return 0, err
1604 }
1605 i -= size
1606 i = encodeVarintGenerated(dAtA, i, uint64(size))
1607 }
1608 i--
1609 dAtA[i] = 0xa
1610 return len(dAtA) - i, nil
1611 }
1612
1613 func (m *DriverRequests) Marshal() (dAtA []byte, err error) {
1614 size := m.Size()
1615 dAtA = make([]byte, size)
1616 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1617 if err != nil {
1618 return nil, err
1619 }
1620 return dAtA[:n], nil
1621 }
1622
1623 func (m *DriverRequests) MarshalTo(dAtA []byte) (int, error) {
1624 size := m.Size()
1625 return m.MarshalToSizedBuffer(dAtA[:size])
1626 }
1627
1628 func (m *DriverRequests) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1629 i := len(dAtA)
1630 _ = i
1631 var l int
1632 _ = l
1633 if len(m.Requests) > 0 {
1634 for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- {
1635 {
1636 size, err := m.Requests[iNdEx].MarshalToSizedBuffer(dAtA[:i])
1637 if err != nil {
1638 return 0, err
1639 }
1640 i -= size
1641 i = encodeVarintGenerated(dAtA, i, uint64(size))
1642 }
1643 i--
1644 dAtA[i] = 0x1a
1645 }
1646 }
1647 {
1648 size, err := m.VendorParameters.MarshalToSizedBuffer(dAtA[:i])
1649 if err != nil {
1650 return 0, err
1651 }
1652 i -= size
1653 i = encodeVarintGenerated(dAtA, i, uint64(size))
1654 }
1655 i--
1656 dAtA[i] = 0x12
1657 i -= len(m.DriverName)
1658 copy(dAtA[i:], m.DriverName)
1659 i = encodeVarintGenerated(dAtA, i, uint64(len(m.DriverName)))
1660 i--
1661 dAtA[i] = 0xa
1662 return len(dAtA) - i, nil
1663 }
1664
1665 func (m *NamedResourcesAllocationResult) Marshal() (dAtA []byte, err error) {
1666 size := m.Size()
1667 dAtA = make([]byte, size)
1668 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1669 if err != nil {
1670 return nil, err
1671 }
1672 return dAtA[:n], nil
1673 }
1674
1675 func (m *NamedResourcesAllocationResult) MarshalTo(dAtA []byte) (int, error) {
1676 size := m.Size()
1677 return m.MarshalToSizedBuffer(dAtA[:size])
1678 }
1679
1680 func (m *NamedResourcesAllocationResult) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1681 i := len(dAtA)
1682 _ = i
1683 var l int
1684 _ = l
1685 i -= len(m.Name)
1686 copy(dAtA[i:], m.Name)
1687 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
1688 i--
1689 dAtA[i] = 0xa
1690 return len(dAtA) - i, nil
1691 }
1692
1693 func (m *NamedResourcesAttribute) Marshal() (dAtA []byte, err error) {
1694 size := m.Size()
1695 dAtA = make([]byte, size)
1696 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1697 if err != nil {
1698 return nil, err
1699 }
1700 return dAtA[:n], nil
1701 }
1702
1703 func (m *NamedResourcesAttribute) MarshalTo(dAtA []byte) (int, error) {
1704 size := m.Size()
1705 return m.MarshalToSizedBuffer(dAtA[:size])
1706 }
1707
1708 func (m *NamedResourcesAttribute) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1709 i := len(dAtA)
1710 _ = i
1711 var l int
1712 _ = l
1713 {
1714 size, err := m.NamedResourcesAttributeValue.MarshalToSizedBuffer(dAtA[:i])
1715 if err != nil {
1716 return 0, err
1717 }
1718 i -= size
1719 i = encodeVarintGenerated(dAtA, i, uint64(size))
1720 }
1721 i--
1722 dAtA[i] = 0x12
1723 i -= len(m.Name)
1724 copy(dAtA[i:], m.Name)
1725 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
1726 i--
1727 dAtA[i] = 0xa
1728 return len(dAtA) - i, nil
1729 }
1730
1731 func (m *NamedResourcesAttributeValue) Marshal() (dAtA []byte, err error) {
1732 size := m.Size()
1733 dAtA = make([]byte, size)
1734 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1735 if err != nil {
1736 return nil, err
1737 }
1738 return dAtA[:n], nil
1739 }
1740
1741 func (m *NamedResourcesAttributeValue) MarshalTo(dAtA []byte) (int, error) {
1742 size := m.Size()
1743 return m.MarshalToSizedBuffer(dAtA[:size])
1744 }
1745
1746 func (m *NamedResourcesAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1747 i := len(dAtA)
1748 _ = i
1749 var l int
1750 _ = l
1751 if m.VersionValue != nil {
1752 i -= len(*m.VersionValue)
1753 copy(dAtA[i:], *m.VersionValue)
1754 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.VersionValue)))
1755 i--
1756 dAtA[i] = 0x52
1757 }
1758 if m.StringSliceValue != nil {
1759 {
1760 size, err := m.StringSliceValue.MarshalToSizedBuffer(dAtA[:i])
1761 if err != nil {
1762 return 0, err
1763 }
1764 i -= size
1765 i = encodeVarintGenerated(dAtA, i, uint64(size))
1766 }
1767 i--
1768 dAtA[i] = 0x4a
1769 }
1770 if m.IntSliceValue != nil {
1771 {
1772 size, err := m.IntSliceValue.MarshalToSizedBuffer(dAtA[:i])
1773 if err != nil {
1774 return 0, err
1775 }
1776 i -= size
1777 i = encodeVarintGenerated(dAtA, i, uint64(size))
1778 }
1779 i--
1780 dAtA[i] = 0x42
1781 }
1782 if m.IntValue != nil {
1783 i = encodeVarintGenerated(dAtA, i, uint64(*m.IntValue))
1784 i--
1785 dAtA[i] = 0x38
1786 }
1787 if m.QuantityValue != nil {
1788 {
1789 size, err := m.QuantityValue.MarshalToSizedBuffer(dAtA[:i])
1790 if err != nil {
1791 return 0, err
1792 }
1793 i -= size
1794 i = encodeVarintGenerated(dAtA, i, uint64(size))
1795 }
1796 i--
1797 dAtA[i] = 0x32
1798 }
1799 if m.StringValue != nil {
1800 i -= len(*m.StringValue)
1801 copy(dAtA[i:], *m.StringValue)
1802 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.StringValue)))
1803 i--
1804 dAtA[i] = 0x2a
1805 }
1806 if m.BoolValue != nil {
1807 i--
1808 if *m.BoolValue {
1809 dAtA[i] = 1
1810 } else {
1811 dAtA[i] = 0
1812 }
1813 i--
1814 dAtA[i] = 0x10
1815 }
1816 return len(dAtA) - i, nil
1817 }
1818
1819 func (m *NamedResourcesFilter) Marshal() (dAtA []byte, err error) {
1820 size := m.Size()
1821 dAtA = make([]byte, size)
1822 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1823 if err != nil {
1824 return nil, err
1825 }
1826 return dAtA[:n], nil
1827 }
1828
1829 func (m *NamedResourcesFilter) MarshalTo(dAtA []byte) (int, error) {
1830 size := m.Size()
1831 return m.MarshalToSizedBuffer(dAtA[:size])
1832 }
1833
1834 func (m *NamedResourcesFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1835 i := len(dAtA)
1836 _ = i
1837 var l int
1838 _ = l
1839 i -= len(m.Selector)
1840 copy(dAtA[i:], m.Selector)
1841 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Selector)))
1842 i--
1843 dAtA[i] = 0xa
1844 return len(dAtA) - i, nil
1845 }
1846
1847 func (m *NamedResourcesInstance) Marshal() (dAtA []byte, err error) {
1848 size := m.Size()
1849 dAtA = make([]byte, size)
1850 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1851 if err != nil {
1852 return nil, err
1853 }
1854 return dAtA[:n], nil
1855 }
1856
1857 func (m *NamedResourcesInstance) MarshalTo(dAtA []byte) (int, error) {
1858 size := m.Size()
1859 return m.MarshalToSizedBuffer(dAtA[:size])
1860 }
1861
1862 func (m *NamedResourcesInstance) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1863 i := len(dAtA)
1864 _ = i
1865 var l int
1866 _ = l
1867 if len(m.Attributes) > 0 {
1868 for iNdEx := len(m.Attributes) - 1; iNdEx >= 0; iNdEx-- {
1869 {
1870 size, err := m.Attributes[iNdEx].MarshalToSizedBuffer(dAtA[:i])
1871 if err != nil {
1872 return 0, err
1873 }
1874 i -= size
1875 i = encodeVarintGenerated(dAtA, i, uint64(size))
1876 }
1877 i--
1878 dAtA[i] = 0x12
1879 }
1880 }
1881 i -= len(m.Name)
1882 copy(dAtA[i:], m.Name)
1883 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
1884 i--
1885 dAtA[i] = 0xa
1886 return len(dAtA) - i, nil
1887 }
1888
1889 func (m *NamedResourcesIntSlice) Marshal() (dAtA []byte, err error) {
1890 size := m.Size()
1891 dAtA = make([]byte, size)
1892 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1893 if err != nil {
1894 return nil, err
1895 }
1896 return dAtA[:n], nil
1897 }
1898
1899 func (m *NamedResourcesIntSlice) MarshalTo(dAtA []byte) (int, error) {
1900 size := m.Size()
1901 return m.MarshalToSizedBuffer(dAtA[:size])
1902 }
1903
1904 func (m *NamedResourcesIntSlice) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1905 i := len(dAtA)
1906 _ = i
1907 var l int
1908 _ = l
1909 if len(m.Ints) > 0 {
1910 for iNdEx := len(m.Ints) - 1; iNdEx >= 0; iNdEx-- {
1911 i = encodeVarintGenerated(dAtA, i, uint64(m.Ints[iNdEx]))
1912 i--
1913 dAtA[i] = 0x8
1914 }
1915 }
1916 return len(dAtA) - i, nil
1917 }
1918
1919 func (m *NamedResourcesRequest) Marshal() (dAtA []byte, err error) {
1920 size := m.Size()
1921 dAtA = make([]byte, size)
1922 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1923 if err != nil {
1924 return nil, err
1925 }
1926 return dAtA[:n], nil
1927 }
1928
1929 func (m *NamedResourcesRequest) MarshalTo(dAtA []byte) (int, error) {
1930 size := m.Size()
1931 return m.MarshalToSizedBuffer(dAtA[:size])
1932 }
1933
1934 func (m *NamedResourcesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1935 i := len(dAtA)
1936 _ = i
1937 var l int
1938 _ = l
1939 i -= len(m.Selector)
1940 copy(dAtA[i:], m.Selector)
1941 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Selector)))
1942 i--
1943 dAtA[i] = 0xa
1944 return len(dAtA) - i, nil
1945 }
1946
1947 func (m *NamedResourcesResources) Marshal() (dAtA []byte, err error) {
1948 size := m.Size()
1949 dAtA = make([]byte, size)
1950 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1951 if err != nil {
1952 return nil, err
1953 }
1954 return dAtA[:n], nil
1955 }
1956
1957 func (m *NamedResourcesResources) MarshalTo(dAtA []byte) (int, error) {
1958 size := m.Size()
1959 return m.MarshalToSizedBuffer(dAtA[:size])
1960 }
1961
1962 func (m *NamedResourcesResources) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1963 i := len(dAtA)
1964 _ = i
1965 var l int
1966 _ = l
1967 if len(m.Instances) > 0 {
1968 for iNdEx := len(m.Instances) - 1; iNdEx >= 0; iNdEx-- {
1969 {
1970 size, err := m.Instances[iNdEx].MarshalToSizedBuffer(dAtA[:i])
1971 if err != nil {
1972 return 0, err
1973 }
1974 i -= size
1975 i = encodeVarintGenerated(dAtA, i, uint64(size))
1976 }
1977 i--
1978 dAtA[i] = 0xa
1979 }
1980 }
1981 return len(dAtA) - i, nil
1982 }
1983
1984 func (m *NamedResourcesStringSlice) Marshal() (dAtA []byte, err error) {
1985 size := m.Size()
1986 dAtA = make([]byte, size)
1987 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1988 if err != nil {
1989 return nil, err
1990 }
1991 return dAtA[:n], nil
1992 }
1993
1994 func (m *NamedResourcesStringSlice) MarshalTo(dAtA []byte) (int, error) {
1995 size := m.Size()
1996 return m.MarshalToSizedBuffer(dAtA[:size])
1997 }
1998
1999 func (m *NamedResourcesStringSlice) MarshalToSizedBuffer(dAtA []byte) (int, error) {
2000 i := len(dAtA)
2001 _ = i
2002 var l int
2003 _ = l
2004 if len(m.Strings) > 0 {
2005 for iNdEx := len(m.Strings) - 1; iNdEx >= 0; iNdEx-- {
2006 i -= len(m.Strings[iNdEx])
2007 copy(dAtA[i:], m.Strings[iNdEx])
2008 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Strings[iNdEx])))
2009 i--
2010 dAtA[i] = 0xa
2011 }
2012 }
2013 return len(dAtA) - i, nil
2014 }
2015
2016 func (m *PodSchedulingContext) Marshal() (dAtA []byte, err error) {
2017 size := m.Size()
2018 dAtA = make([]byte, size)
2019 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2020 if err != nil {
2021 return nil, err
2022 }
2023 return dAtA[:n], nil
2024 }
2025
2026 func (m *PodSchedulingContext) MarshalTo(dAtA []byte) (int, error) {
2027 size := m.Size()
2028 return m.MarshalToSizedBuffer(dAtA[:size])
2029 }
2030
2031 func (m *PodSchedulingContext) MarshalToSizedBuffer(dAtA []byte) (int, error) {
2032 i := len(dAtA)
2033 _ = i
2034 var l int
2035 _ = l
2036 {
2037 size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
2038 if err != nil {
2039 return 0, err
2040 }
2041 i -= size
2042 i = encodeVarintGenerated(dAtA, i, uint64(size))
2043 }
2044 i--
2045 dAtA[i] = 0x1a
2046 {
2047 size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
2048 if err != nil {
2049 return 0, err
2050 }
2051 i -= size
2052 i = encodeVarintGenerated(dAtA, i, uint64(size))
2053 }
2054 i--
2055 dAtA[i] = 0x12
2056 {
2057 size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
2058 if err != nil {
2059 return 0, err
2060 }
2061 i -= size
2062 i = encodeVarintGenerated(dAtA, i, uint64(size))
2063 }
2064 i--
2065 dAtA[i] = 0xa
2066 return len(dAtA) - i, nil
2067 }
2068
2069 func (m *PodSchedulingContextList) Marshal() (dAtA []byte, err error) {
2070 size := m.Size()
2071 dAtA = make([]byte, size)
2072 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2073 if err != nil {
2074 return nil, err
2075 }
2076 return dAtA[:n], nil
2077 }
2078
2079 func (m *PodSchedulingContextList) MarshalTo(dAtA []byte) (int, error) {
2080 size := m.Size()
2081 return m.MarshalToSizedBuffer(dAtA[:size])
2082 }
2083
2084 func (m *PodSchedulingContextList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
2085 i := len(dAtA)
2086 _ = i
2087 var l int
2088 _ = l
2089 if len(m.Items) > 0 {
2090 for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
2091 {
2092 size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
2093 if err != nil {
2094 return 0, err
2095 }
2096 i -= size
2097 i = encodeVarintGenerated(dAtA, i, uint64(size))
2098 }
2099 i--
2100 dAtA[i] = 0x12
2101 }
2102 }
2103 {
2104 size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
2105 if err != nil {
2106 return 0, err
2107 }
2108 i -= size
2109 i = encodeVarintGenerated(dAtA, i, uint64(size))
2110 }
2111 i--
2112 dAtA[i] = 0xa
2113 return len(dAtA) - i, nil
2114 }
2115
2116 func (m *PodSchedulingContextSpec) Marshal() (dAtA []byte, err error) {
2117 size := m.Size()
2118 dAtA = make([]byte, size)
2119 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2120 if err != nil {
2121 return nil, err
2122 }
2123 return dAtA[:n], nil
2124 }
2125
2126 func (m *PodSchedulingContextSpec) MarshalTo(dAtA []byte) (int, error) {
2127 size := m.Size()
2128 return m.MarshalToSizedBuffer(dAtA[:size])
2129 }
2130
2131 func (m *PodSchedulingContextSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
2132 i := len(dAtA)
2133 _ = i
2134 var l int
2135 _ = l
2136 if len(m.PotentialNodes) > 0 {
2137 for iNdEx := len(m.PotentialNodes) - 1; iNdEx >= 0; iNdEx-- {
2138 i -= len(m.PotentialNodes[iNdEx])
2139 copy(dAtA[i:], m.PotentialNodes[iNdEx])
2140 i = encodeVarintGenerated(dAtA, i, uint64(len(m.PotentialNodes[iNdEx])))
2141 i--
2142 dAtA[i] = 0x12
2143 }
2144 }
2145 i -= len(m.SelectedNode)
2146 copy(dAtA[i:], m.SelectedNode)
2147 i = encodeVarintGenerated(dAtA, i, uint64(len(m.SelectedNode)))
2148 i--
2149 dAtA[i] = 0xa
2150 return len(dAtA) - i, nil
2151 }
2152
2153 func (m *PodSchedulingContextStatus) Marshal() (dAtA []byte, err error) {
2154 size := m.Size()
2155 dAtA = make([]byte, size)
2156 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2157 if err != nil {
2158 return nil, err
2159 }
2160 return dAtA[:n], nil
2161 }
2162
2163 func (m *PodSchedulingContextStatus) MarshalTo(dAtA []byte) (int, error) {
2164 size := m.Size()
2165 return m.MarshalToSizedBuffer(dAtA[:size])
2166 }
2167
2168 func (m *PodSchedulingContextStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
2169 i := len(dAtA)
2170 _ = i
2171 var l int
2172 _ = l
2173 if len(m.ResourceClaims) > 0 {
2174 for iNdEx := len(m.ResourceClaims) - 1; iNdEx >= 0; iNdEx-- {
2175 {
2176 size, err := m.ResourceClaims[iNdEx].MarshalToSizedBuffer(dAtA[:i])
2177 if err != nil {
2178 return 0, err
2179 }
2180 i -= size
2181 i = encodeVarintGenerated(dAtA, i, uint64(size))
2182 }
2183 i--
2184 dAtA[i] = 0xa
2185 }
2186 }
2187 return len(dAtA) - i, nil
2188 }
2189
2190 func (m *ResourceClaim) Marshal() (dAtA []byte, err error) {
2191 size := m.Size()
2192 dAtA = make([]byte, size)
2193 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2194 if err != nil {
2195 return nil, err
2196 }
2197 return dAtA[:n], nil
2198 }
2199
2200 func (m *ResourceClaim) MarshalTo(dAtA []byte) (int, error) {
2201 size := m.Size()
2202 return m.MarshalToSizedBuffer(dAtA[:size])
2203 }
2204
2205 func (m *ResourceClaim) MarshalToSizedBuffer(dAtA []byte) (int, error) {
2206 i := len(dAtA)
2207 _ = i
2208 var l int
2209 _ = l
2210 {
2211 size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
2212 if err != nil {
2213 return 0, err
2214 }
2215 i -= size
2216 i = encodeVarintGenerated(dAtA, i, uint64(size))
2217 }
2218 i--
2219 dAtA[i] = 0x1a
2220 {
2221 size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
2222 if err != nil {
2223 return 0, err
2224 }
2225 i -= size
2226 i = encodeVarintGenerated(dAtA, i, uint64(size))
2227 }
2228 i--
2229 dAtA[i] = 0x12
2230 {
2231 size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
2232 if err != nil {
2233 return 0, err
2234 }
2235 i -= size
2236 i = encodeVarintGenerated(dAtA, i, uint64(size))
2237 }
2238 i--
2239 dAtA[i] = 0xa
2240 return len(dAtA) - i, nil
2241 }
2242
2243 func (m *ResourceClaimConsumerReference) Marshal() (dAtA []byte, err error) {
2244 size := m.Size()
2245 dAtA = make([]byte, size)
2246 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2247 if err != nil {
2248 return nil, err
2249 }
2250 return dAtA[:n], nil
2251 }
2252
2253 func (m *ResourceClaimConsumerReference) MarshalTo(dAtA []byte) (int, error) {
2254 size := m.Size()
2255 return m.MarshalToSizedBuffer(dAtA[:size])
2256 }
2257
2258 func (m *ResourceClaimConsumerReference) MarshalToSizedBuffer(dAtA []byte) (int, error) {
2259 i := len(dAtA)
2260 _ = i
2261 var l int
2262 _ = l
2263 i -= len(m.UID)
2264 copy(dAtA[i:], m.UID)
2265 i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID)))
2266 i--
2267 dAtA[i] = 0x2a
2268 i -= len(m.Name)
2269 copy(dAtA[i:], m.Name)
2270 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
2271 i--
2272 dAtA[i] = 0x22
2273 i -= len(m.Resource)
2274 copy(dAtA[i:], m.Resource)
2275 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Resource)))
2276 i--
2277 dAtA[i] = 0x1a
2278 i -= len(m.APIGroup)
2279 copy(dAtA[i:], m.APIGroup)
2280 i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIGroup)))
2281 i--
2282 dAtA[i] = 0xa
2283 return len(dAtA) - i, nil
2284 }
2285
2286 func (m *ResourceClaimList) Marshal() (dAtA []byte, err error) {
2287 size := m.Size()
2288 dAtA = make([]byte, size)
2289 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2290 if err != nil {
2291 return nil, err
2292 }
2293 return dAtA[:n], nil
2294 }
2295
2296 func (m *ResourceClaimList) MarshalTo(dAtA []byte) (int, error) {
2297 size := m.Size()
2298 return m.MarshalToSizedBuffer(dAtA[:size])
2299 }
2300
2301 func (m *ResourceClaimList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
2302 i := len(dAtA)
2303 _ = i
2304 var l int
2305 _ = l
2306 if len(m.Items) > 0 {
2307 for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
2308 {
2309 size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
2310 if err != nil {
2311 return 0, err
2312 }
2313 i -= size
2314 i = encodeVarintGenerated(dAtA, i, uint64(size))
2315 }
2316 i--
2317 dAtA[i] = 0x12
2318 }
2319 }
2320 {
2321 size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
2322 if err != nil {
2323 return 0, err
2324 }
2325 i -= size
2326 i = encodeVarintGenerated(dAtA, i, uint64(size))
2327 }
2328 i--
2329 dAtA[i] = 0xa
2330 return len(dAtA) - i, nil
2331 }
2332
2333 func (m *ResourceClaimParameters) Marshal() (dAtA []byte, err error) {
2334 size := m.Size()
2335 dAtA = make([]byte, size)
2336 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2337 if err != nil {
2338 return nil, err
2339 }
2340 return dAtA[:n], nil
2341 }
2342
2343 func (m *ResourceClaimParameters) MarshalTo(dAtA []byte) (int, error) {
2344 size := m.Size()
2345 return m.MarshalToSizedBuffer(dAtA[:size])
2346 }
2347
2348 func (m *ResourceClaimParameters) MarshalToSizedBuffer(dAtA []byte) (int, error) {
2349 i := len(dAtA)
2350 _ = i
2351 var l int
2352 _ = l
2353 if len(m.DriverRequests) > 0 {
2354 for iNdEx := len(m.DriverRequests) - 1; iNdEx >= 0; iNdEx-- {
2355 {
2356 size, err := m.DriverRequests[iNdEx].MarshalToSizedBuffer(dAtA[:i])
2357 if err != nil {
2358 return 0, err
2359 }
2360 i -= size
2361 i = encodeVarintGenerated(dAtA, i, uint64(size))
2362 }
2363 i--
2364 dAtA[i] = 0x22
2365 }
2366 }
2367 i--
2368 if m.Shareable {
2369 dAtA[i] = 1
2370 } else {
2371 dAtA[i] = 0
2372 }
2373 i--
2374 dAtA[i] = 0x18
2375 if m.GeneratedFrom != nil {
2376 {
2377 size, err := m.GeneratedFrom.MarshalToSizedBuffer(dAtA[:i])
2378 if err != nil {
2379 return 0, err
2380 }
2381 i -= size
2382 i = encodeVarintGenerated(dAtA, i, uint64(size))
2383 }
2384 i--
2385 dAtA[i] = 0x12
2386 }
2387 {
2388 size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
2389 if err != nil {
2390 return 0, err
2391 }
2392 i -= size
2393 i = encodeVarintGenerated(dAtA, i, uint64(size))
2394 }
2395 i--
2396 dAtA[i] = 0xa
2397 return len(dAtA) - i, nil
2398 }
2399
2400 func (m *ResourceClaimParametersList) Marshal() (dAtA []byte, err error) {
2401 size := m.Size()
2402 dAtA = make([]byte, size)
2403 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2404 if err != nil {
2405 return nil, err
2406 }
2407 return dAtA[:n], nil
2408 }
2409
2410 func (m *ResourceClaimParametersList) MarshalTo(dAtA []byte) (int, error) {
2411 size := m.Size()
2412 return m.MarshalToSizedBuffer(dAtA[:size])
2413 }
2414
2415 func (m *ResourceClaimParametersList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
2416 i := len(dAtA)
2417 _ = i
2418 var l int
2419 _ = l
2420 if len(m.Items) > 0 {
2421 for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
2422 {
2423 size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
2424 if err != nil {
2425 return 0, err
2426 }
2427 i -= size
2428 i = encodeVarintGenerated(dAtA, i, uint64(size))
2429 }
2430 i--
2431 dAtA[i] = 0x12
2432 }
2433 }
2434 {
2435 size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
2436 if err != nil {
2437 return 0, err
2438 }
2439 i -= size
2440 i = encodeVarintGenerated(dAtA, i, uint64(size))
2441 }
2442 i--
2443 dAtA[i] = 0xa
2444 return len(dAtA) - i, nil
2445 }
2446
2447 func (m *ResourceClaimParametersReference) Marshal() (dAtA []byte, err error) {
2448 size := m.Size()
2449 dAtA = make([]byte, size)
2450 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2451 if err != nil {
2452 return nil, err
2453 }
2454 return dAtA[:n], nil
2455 }
2456
2457 func (m *ResourceClaimParametersReference) MarshalTo(dAtA []byte) (int, error) {
2458 size := m.Size()
2459 return m.MarshalToSizedBuffer(dAtA[:size])
2460 }
2461
2462 func (m *ResourceClaimParametersReference) MarshalToSizedBuffer(dAtA []byte) (int, error) {
2463 i := len(dAtA)
2464 _ = i
2465 var l int
2466 _ = l
2467 i -= len(m.Name)
2468 copy(dAtA[i:], m.Name)
2469 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
2470 i--
2471 dAtA[i] = 0x1a
2472 i -= len(m.Kind)
2473 copy(dAtA[i:], m.Kind)
2474 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind)))
2475 i--
2476 dAtA[i] = 0x12
2477 i -= len(m.APIGroup)
2478 copy(dAtA[i:], m.APIGroup)
2479 i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIGroup)))
2480 i--
2481 dAtA[i] = 0xa
2482 return len(dAtA) - i, nil
2483 }
2484
2485 func (m *ResourceClaimSchedulingStatus) Marshal() (dAtA []byte, err error) {
2486 size := m.Size()
2487 dAtA = make([]byte, size)
2488 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2489 if err != nil {
2490 return nil, err
2491 }
2492 return dAtA[:n], nil
2493 }
2494
2495 func (m *ResourceClaimSchedulingStatus) MarshalTo(dAtA []byte) (int, error) {
2496 size := m.Size()
2497 return m.MarshalToSizedBuffer(dAtA[:size])
2498 }
2499
2500 func (m *ResourceClaimSchedulingStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
2501 i := len(dAtA)
2502 _ = i
2503 var l int
2504 _ = l
2505 if len(m.UnsuitableNodes) > 0 {
2506 for iNdEx := len(m.UnsuitableNodes) - 1; iNdEx >= 0; iNdEx-- {
2507 i -= len(m.UnsuitableNodes[iNdEx])
2508 copy(dAtA[i:], m.UnsuitableNodes[iNdEx])
2509 i = encodeVarintGenerated(dAtA, i, uint64(len(m.UnsuitableNodes[iNdEx])))
2510 i--
2511 dAtA[i] = 0x12
2512 }
2513 }
2514 i -= len(m.Name)
2515 copy(dAtA[i:], m.Name)
2516 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
2517 i--
2518 dAtA[i] = 0xa
2519 return len(dAtA) - i, nil
2520 }
2521
2522 func (m *ResourceClaimSpec) Marshal() (dAtA []byte, err error) {
2523 size := m.Size()
2524 dAtA = make([]byte, size)
2525 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2526 if err != nil {
2527 return nil, err
2528 }
2529 return dAtA[:n], nil
2530 }
2531
2532 func (m *ResourceClaimSpec) MarshalTo(dAtA []byte) (int, error) {
2533 size := m.Size()
2534 return m.MarshalToSizedBuffer(dAtA[:size])
2535 }
2536
2537 func (m *ResourceClaimSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
2538 i := len(dAtA)
2539 _ = i
2540 var l int
2541 _ = l
2542 i -= len(m.AllocationMode)
2543 copy(dAtA[i:], m.AllocationMode)
2544 i = encodeVarintGenerated(dAtA, i, uint64(len(m.AllocationMode)))
2545 i--
2546 dAtA[i] = 0x1a
2547 if m.ParametersRef != nil {
2548 {
2549 size, err := m.ParametersRef.MarshalToSizedBuffer(dAtA[:i])
2550 if err != nil {
2551 return 0, err
2552 }
2553 i -= size
2554 i = encodeVarintGenerated(dAtA, i, uint64(size))
2555 }
2556 i--
2557 dAtA[i] = 0x12
2558 }
2559 i -= len(m.ResourceClassName)
2560 copy(dAtA[i:], m.ResourceClassName)
2561 i = encodeVarintGenerated(dAtA, i, uint64(len(m.ResourceClassName)))
2562 i--
2563 dAtA[i] = 0xa
2564 return len(dAtA) - i, nil
2565 }
2566
2567 func (m *ResourceClaimStatus) Marshal() (dAtA []byte, err error) {
2568 size := m.Size()
2569 dAtA = make([]byte, size)
2570 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2571 if err != nil {
2572 return nil, err
2573 }
2574 return dAtA[:n], nil
2575 }
2576
2577 func (m *ResourceClaimStatus) MarshalTo(dAtA []byte) (int, error) {
2578 size := m.Size()
2579 return m.MarshalToSizedBuffer(dAtA[:size])
2580 }
2581
2582 func (m *ResourceClaimStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
2583 i := len(dAtA)
2584 _ = i
2585 var l int
2586 _ = l
2587 i--
2588 if m.DeallocationRequested {
2589 dAtA[i] = 1
2590 } else {
2591 dAtA[i] = 0
2592 }
2593 i--
2594 dAtA[i] = 0x20
2595 if len(m.ReservedFor) > 0 {
2596 for iNdEx := len(m.ReservedFor) - 1; iNdEx >= 0; iNdEx-- {
2597 {
2598 size, err := m.ReservedFor[iNdEx].MarshalToSizedBuffer(dAtA[:i])
2599 if err != nil {
2600 return 0, err
2601 }
2602 i -= size
2603 i = encodeVarintGenerated(dAtA, i, uint64(size))
2604 }
2605 i--
2606 dAtA[i] = 0x1a
2607 }
2608 }
2609 if m.Allocation != nil {
2610 {
2611 size, err := m.Allocation.MarshalToSizedBuffer(dAtA[:i])
2612 if err != nil {
2613 return 0, err
2614 }
2615 i -= size
2616 i = encodeVarintGenerated(dAtA, i, uint64(size))
2617 }
2618 i--
2619 dAtA[i] = 0x12
2620 }
2621 i -= len(m.DriverName)
2622 copy(dAtA[i:], m.DriverName)
2623 i = encodeVarintGenerated(dAtA, i, uint64(len(m.DriverName)))
2624 i--
2625 dAtA[i] = 0xa
2626 return len(dAtA) - i, nil
2627 }
2628
2629 func (m *ResourceClaimTemplate) Marshal() (dAtA []byte, err error) {
2630 size := m.Size()
2631 dAtA = make([]byte, size)
2632 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2633 if err != nil {
2634 return nil, err
2635 }
2636 return dAtA[:n], nil
2637 }
2638
2639 func (m *ResourceClaimTemplate) MarshalTo(dAtA []byte) (int, error) {
2640 size := m.Size()
2641 return m.MarshalToSizedBuffer(dAtA[:size])
2642 }
2643
2644 func (m *ResourceClaimTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error) {
2645 i := len(dAtA)
2646 _ = i
2647 var l int
2648 _ = l
2649 {
2650 size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
2651 if err != nil {
2652 return 0, err
2653 }
2654 i -= size
2655 i = encodeVarintGenerated(dAtA, i, uint64(size))
2656 }
2657 i--
2658 dAtA[i] = 0x12
2659 {
2660 size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
2661 if err != nil {
2662 return 0, err
2663 }
2664 i -= size
2665 i = encodeVarintGenerated(dAtA, i, uint64(size))
2666 }
2667 i--
2668 dAtA[i] = 0xa
2669 return len(dAtA) - i, nil
2670 }
2671
2672 func (m *ResourceClaimTemplateList) Marshal() (dAtA []byte, err error) {
2673 size := m.Size()
2674 dAtA = make([]byte, size)
2675 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2676 if err != nil {
2677 return nil, err
2678 }
2679 return dAtA[:n], nil
2680 }
2681
2682 func (m *ResourceClaimTemplateList) MarshalTo(dAtA []byte) (int, error) {
2683 size := m.Size()
2684 return m.MarshalToSizedBuffer(dAtA[:size])
2685 }
2686
2687 func (m *ResourceClaimTemplateList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
2688 i := len(dAtA)
2689 _ = i
2690 var l int
2691 _ = l
2692 if len(m.Items) > 0 {
2693 for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
2694 {
2695 size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
2696 if err != nil {
2697 return 0, err
2698 }
2699 i -= size
2700 i = encodeVarintGenerated(dAtA, i, uint64(size))
2701 }
2702 i--
2703 dAtA[i] = 0x12
2704 }
2705 }
2706 {
2707 size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
2708 if err != nil {
2709 return 0, err
2710 }
2711 i -= size
2712 i = encodeVarintGenerated(dAtA, i, uint64(size))
2713 }
2714 i--
2715 dAtA[i] = 0xa
2716 return len(dAtA) - i, nil
2717 }
2718
2719 func (m *ResourceClaimTemplateSpec) Marshal() (dAtA []byte, err error) {
2720 size := m.Size()
2721 dAtA = make([]byte, size)
2722 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2723 if err != nil {
2724 return nil, err
2725 }
2726 return dAtA[:n], nil
2727 }
2728
2729 func (m *ResourceClaimTemplateSpec) MarshalTo(dAtA []byte) (int, error) {
2730 size := m.Size()
2731 return m.MarshalToSizedBuffer(dAtA[:size])
2732 }
2733
2734 func (m *ResourceClaimTemplateSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
2735 i := len(dAtA)
2736 _ = i
2737 var l int
2738 _ = l
2739 {
2740 size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
2741 if err != nil {
2742 return 0, err
2743 }
2744 i -= size
2745 i = encodeVarintGenerated(dAtA, i, uint64(size))
2746 }
2747 i--
2748 dAtA[i] = 0x12
2749 {
2750 size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
2751 if err != nil {
2752 return 0, err
2753 }
2754 i -= size
2755 i = encodeVarintGenerated(dAtA, i, uint64(size))
2756 }
2757 i--
2758 dAtA[i] = 0xa
2759 return len(dAtA) - i, nil
2760 }
2761
2762 func (m *ResourceClass) Marshal() (dAtA []byte, err error) {
2763 size := m.Size()
2764 dAtA = make([]byte, size)
2765 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2766 if err != nil {
2767 return nil, err
2768 }
2769 return dAtA[:n], nil
2770 }
2771
2772 func (m *ResourceClass) MarshalTo(dAtA []byte) (int, error) {
2773 size := m.Size()
2774 return m.MarshalToSizedBuffer(dAtA[:size])
2775 }
2776
2777 func (m *ResourceClass) MarshalToSizedBuffer(dAtA []byte) (int, error) {
2778 i := len(dAtA)
2779 _ = i
2780 var l int
2781 _ = l
2782 if m.StructuredParameters != nil {
2783 i--
2784 if *m.StructuredParameters {
2785 dAtA[i] = 1
2786 } else {
2787 dAtA[i] = 0
2788 }
2789 i--
2790 dAtA[i] = 0x28
2791 }
2792 if m.SuitableNodes != nil {
2793 {
2794 size, err := m.SuitableNodes.MarshalToSizedBuffer(dAtA[:i])
2795 if err != nil {
2796 return 0, err
2797 }
2798 i -= size
2799 i = encodeVarintGenerated(dAtA, i, uint64(size))
2800 }
2801 i--
2802 dAtA[i] = 0x22
2803 }
2804 if m.ParametersRef != nil {
2805 {
2806 size, err := m.ParametersRef.MarshalToSizedBuffer(dAtA[:i])
2807 if err != nil {
2808 return 0, err
2809 }
2810 i -= size
2811 i = encodeVarintGenerated(dAtA, i, uint64(size))
2812 }
2813 i--
2814 dAtA[i] = 0x1a
2815 }
2816 i -= len(m.DriverName)
2817 copy(dAtA[i:], m.DriverName)
2818 i = encodeVarintGenerated(dAtA, i, uint64(len(m.DriverName)))
2819 i--
2820 dAtA[i] = 0x12
2821 {
2822 size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
2823 if err != nil {
2824 return 0, err
2825 }
2826 i -= size
2827 i = encodeVarintGenerated(dAtA, i, uint64(size))
2828 }
2829 i--
2830 dAtA[i] = 0xa
2831 return len(dAtA) - i, nil
2832 }
2833
2834 func (m *ResourceClassList) Marshal() (dAtA []byte, err error) {
2835 size := m.Size()
2836 dAtA = make([]byte, size)
2837 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2838 if err != nil {
2839 return nil, err
2840 }
2841 return dAtA[:n], nil
2842 }
2843
2844 func (m *ResourceClassList) MarshalTo(dAtA []byte) (int, error) {
2845 size := m.Size()
2846 return m.MarshalToSizedBuffer(dAtA[:size])
2847 }
2848
2849 func (m *ResourceClassList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
2850 i := len(dAtA)
2851 _ = i
2852 var l int
2853 _ = l
2854 if len(m.Items) > 0 {
2855 for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
2856 {
2857 size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
2858 if err != nil {
2859 return 0, err
2860 }
2861 i -= size
2862 i = encodeVarintGenerated(dAtA, i, uint64(size))
2863 }
2864 i--
2865 dAtA[i] = 0x12
2866 }
2867 }
2868 {
2869 size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
2870 if err != nil {
2871 return 0, err
2872 }
2873 i -= size
2874 i = encodeVarintGenerated(dAtA, i, uint64(size))
2875 }
2876 i--
2877 dAtA[i] = 0xa
2878 return len(dAtA) - i, nil
2879 }
2880
2881 func (m *ResourceClassParameters) Marshal() (dAtA []byte, err error) {
2882 size := m.Size()
2883 dAtA = make([]byte, size)
2884 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2885 if err != nil {
2886 return nil, err
2887 }
2888 return dAtA[:n], nil
2889 }
2890
2891 func (m *ResourceClassParameters) MarshalTo(dAtA []byte) (int, error) {
2892 size := m.Size()
2893 return m.MarshalToSizedBuffer(dAtA[:size])
2894 }
2895
2896 func (m *ResourceClassParameters) MarshalToSizedBuffer(dAtA []byte) (int, error) {
2897 i := len(dAtA)
2898 _ = i
2899 var l int
2900 _ = l
2901 if len(m.Filters) > 0 {
2902 for iNdEx := len(m.Filters) - 1; iNdEx >= 0; iNdEx-- {
2903 {
2904 size, err := m.Filters[iNdEx].MarshalToSizedBuffer(dAtA[:i])
2905 if err != nil {
2906 return 0, err
2907 }
2908 i -= size
2909 i = encodeVarintGenerated(dAtA, i, uint64(size))
2910 }
2911 i--
2912 dAtA[i] = 0x22
2913 }
2914 }
2915 if len(m.VendorParameters) > 0 {
2916 for iNdEx := len(m.VendorParameters) - 1; iNdEx >= 0; iNdEx-- {
2917 {
2918 size, err := m.VendorParameters[iNdEx].MarshalToSizedBuffer(dAtA[:i])
2919 if err != nil {
2920 return 0, err
2921 }
2922 i -= size
2923 i = encodeVarintGenerated(dAtA, i, uint64(size))
2924 }
2925 i--
2926 dAtA[i] = 0x1a
2927 }
2928 }
2929 if m.GeneratedFrom != nil {
2930 {
2931 size, err := m.GeneratedFrom.MarshalToSizedBuffer(dAtA[:i])
2932 if err != nil {
2933 return 0, err
2934 }
2935 i -= size
2936 i = encodeVarintGenerated(dAtA, i, uint64(size))
2937 }
2938 i--
2939 dAtA[i] = 0x12
2940 }
2941 {
2942 size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
2943 if err != nil {
2944 return 0, err
2945 }
2946 i -= size
2947 i = encodeVarintGenerated(dAtA, i, uint64(size))
2948 }
2949 i--
2950 dAtA[i] = 0xa
2951 return len(dAtA) - i, nil
2952 }
2953
2954 func (m *ResourceClassParametersList) Marshal() (dAtA []byte, err error) {
2955 size := m.Size()
2956 dAtA = make([]byte, size)
2957 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2958 if err != nil {
2959 return nil, err
2960 }
2961 return dAtA[:n], nil
2962 }
2963
2964 func (m *ResourceClassParametersList) MarshalTo(dAtA []byte) (int, error) {
2965 size := m.Size()
2966 return m.MarshalToSizedBuffer(dAtA[:size])
2967 }
2968
2969 func (m *ResourceClassParametersList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
2970 i := len(dAtA)
2971 _ = i
2972 var l int
2973 _ = l
2974 if len(m.Items) > 0 {
2975 for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
2976 {
2977 size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
2978 if err != nil {
2979 return 0, err
2980 }
2981 i -= size
2982 i = encodeVarintGenerated(dAtA, i, uint64(size))
2983 }
2984 i--
2985 dAtA[i] = 0x12
2986 }
2987 }
2988 {
2989 size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
2990 if err != nil {
2991 return 0, err
2992 }
2993 i -= size
2994 i = encodeVarintGenerated(dAtA, i, uint64(size))
2995 }
2996 i--
2997 dAtA[i] = 0xa
2998 return len(dAtA) - i, nil
2999 }
3000
3001 func (m *ResourceClassParametersReference) Marshal() (dAtA []byte, err error) {
3002 size := m.Size()
3003 dAtA = make([]byte, size)
3004 n, err := m.MarshalToSizedBuffer(dAtA[:size])
3005 if err != nil {
3006 return nil, err
3007 }
3008 return dAtA[:n], nil
3009 }
3010
3011 func (m *ResourceClassParametersReference) MarshalTo(dAtA []byte) (int, error) {
3012 size := m.Size()
3013 return m.MarshalToSizedBuffer(dAtA[:size])
3014 }
3015
3016 func (m *ResourceClassParametersReference) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3017 i := len(dAtA)
3018 _ = i
3019 var l int
3020 _ = l
3021 i -= len(m.Namespace)
3022 copy(dAtA[i:], m.Namespace)
3023 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
3024 i--
3025 dAtA[i] = 0x22
3026 i -= len(m.Name)
3027 copy(dAtA[i:], m.Name)
3028 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
3029 i--
3030 dAtA[i] = 0x1a
3031 i -= len(m.Kind)
3032 copy(dAtA[i:], m.Kind)
3033 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind)))
3034 i--
3035 dAtA[i] = 0x12
3036 i -= len(m.APIGroup)
3037 copy(dAtA[i:], m.APIGroup)
3038 i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIGroup)))
3039 i--
3040 dAtA[i] = 0xa
3041 return len(dAtA) - i, nil
3042 }
3043
3044 func (m *ResourceFilter) Marshal() (dAtA []byte, err error) {
3045 size := m.Size()
3046 dAtA = make([]byte, size)
3047 n, err := m.MarshalToSizedBuffer(dAtA[:size])
3048 if err != nil {
3049 return nil, err
3050 }
3051 return dAtA[:n], nil
3052 }
3053
3054 func (m *ResourceFilter) MarshalTo(dAtA []byte) (int, error) {
3055 size := m.Size()
3056 return m.MarshalToSizedBuffer(dAtA[:size])
3057 }
3058
3059 func (m *ResourceFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3060 i := len(dAtA)
3061 _ = i
3062 var l int
3063 _ = l
3064 {
3065 size, err := m.ResourceFilterModel.MarshalToSizedBuffer(dAtA[:i])
3066 if err != nil {
3067 return 0, err
3068 }
3069 i -= size
3070 i = encodeVarintGenerated(dAtA, i, uint64(size))
3071 }
3072 i--
3073 dAtA[i] = 0x12
3074 i -= len(m.DriverName)
3075 copy(dAtA[i:], m.DriverName)
3076 i = encodeVarintGenerated(dAtA, i, uint64(len(m.DriverName)))
3077 i--
3078 dAtA[i] = 0xa
3079 return len(dAtA) - i, nil
3080 }
3081
3082 func (m *ResourceFilterModel) Marshal() (dAtA []byte, err error) {
3083 size := m.Size()
3084 dAtA = make([]byte, size)
3085 n, err := m.MarshalToSizedBuffer(dAtA[:size])
3086 if err != nil {
3087 return nil, err
3088 }
3089 return dAtA[:n], nil
3090 }
3091
3092 func (m *ResourceFilterModel) MarshalTo(dAtA []byte) (int, error) {
3093 size := m.Size()
3094 return m.MarshalToSizedBuffer(dAtA[:size])
3095 }
3096
3097 func (m *ResourceFilterModel) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3098 i := len(dAtA)
3099 _ = i
3100 var l int
3101 _ = l
3102 if m.NamedResources != nil {
3103 {
3104 size, err := m.NamedResources.MarshalToSizedBuffer(dAtA[:i])
3105 if err != nil {
3106 return 0, err
3107 }
3108 i -= size
3109 i = encodeVarintGenerated(dAtA, i, uint64(size))
3110 }
3111 i--
3112 dAtA[i] = 0xa
3113 }
3114 return len(dAtA) - i, nil
3115 }
3116
3117 func (m *ResourceHandle) Marshal() (dAtA []byte, err error) {
3118 size := m.Size()
3119 dAtA = make([]byte, size)
3120 n, err := m.MarshalToSizedBuffer(dAtA[:size])
3121 if err != nil {
3122 return nil, err
3123 }
3124 return dAtA[:n], nil
3125 }
3126
3127 func (m *ResourceHandle) MarshalTo(dAtA []byte) (int, error) {
3128 size := m.Size()
3129 return m.MarshalToSizedBuffer(dAtA[:size])
3130 }
3131
3132 func (m *ResourceHandle) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3133 i := len(dAtA)
3134 _ = i
3135 var l int
3136 _ = l
3137 if m.StructuredData != nil {
3138 {
3139 size, err := m.StructuredData.MarshalToSizedBuffer(dAtA[:i])
3140 if err != nil {
3141 return 0, err
3142 }
3143 i -= size
3144 i = encodeVarintGenerated(dAtA, i, uint64(size))
3145 }
3146 i--
3147 dAtA[i] = 0x2a
3148 }
3149 i -= len(m.Data)
3150 copy(dAtA[i:], m.Data)
3151 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Data)))
3152 i--
3153 dAtA[i] = 0x12
3154 i -= len(m.DriverName)
3155 copy(dAtA[i:], m.DriverName)
3156 i = encodeVarintGenerated(dAtA, i, uint64(len(m.DriverName)))
3157 i--
3158 dAtA[i] = 0xa
3159 return len(dAtA) - i, nil
3160 }
3161
3162 func (m *ResourceModel) Marshal() (dAtA []byte, err error) {
3163 size := m.Size()
3164 dAtA = make([]byte, size)
3165 n, err := m.MarshalToSizedBuffer(dAtA[:size])
3166 if err != nil {
3167 return nil, err
3168 }
3169 return dAtA[:n], nil
3170 }
3171
3172 func (m *ResourceModel) MarshalTo(dAtA []byte) (int, error) {
3173 size := m.Size()
3174 return m.MarshalToSizedBuffer(dAtA[:size])
3175 }
3176
3177 func (m *ResourceModel) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3178 i := len(dAtA)
3179 _ = i
3180 var l int
3181 _ = l
3182 if m.NamedResources != nil {
3183 {
3184 size, err := m.NamedResources.MarshalToSizedBuffer(dAtA[:i])
3185 if err != nil {
3186 return 0, err
3187 }
3188 i -= size
3189 i = encodeVarintGenerated(dAtA, i, uint64(size))
3190 }
3191 i--
3192 dAtA[i] = 0xa
3193 }
3194 return len(dAtA) - i, nil
3195 }
3196
3197 func (m *ResourceRequest) Marshal() (dAtA []byte, err error) {
3198 size := m.Size()
3199 dAtA = make([]byte, size)
3200 n, err := m.MarshalToSizedBuffer(dAtA[:size])
3201 if err != nil {
3202 return nil, err
3203 }
3204 return dAtA[:n], nil
3205 }
3206
3207 func (m *ResourceRequest) MarshalTo(dAtA []byte) (int, error) {
3208 size := m.Size()
3209 return m.MarshalToSizedBuffer(dAtA[:size])
3210 }
3211
3212 func (m *ResourceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3213 i := len(dAtA)
3214 _ = i
3215 var l int
3216 _ = l
3217 {
3218 size, err := m.ResourceRequestModel.MarshalToSizedBuffer(dAtA[:i])
3219 if err != nil {
3220 return 0, err
3221 }
3222 i -= size
3223 i = encodeVarintGenerated(dAtA, i, uint64(size))
3224 }
3225 i--
3226 dAtA[i] = 0x12
3227 {
3228 size, err := m.VendorParameters.MarshalToSizedBuffer(dAtA[:i])
3229 if err != nil {
3230 return 0, err
3231 }
3232 i -= size
3233 i = encodeVarintGenerated(dAtA, i, uint64(size))
3234 }
3235 i--
3236 dAtA[i] = 0xa
3237 return len(dAtA) - i, nil
3238 }
3239
3240 func (m *ResourceRequestModel) Marshal() (dAtA []byte, err error) {
3241 size := m.Size()
3242 dAtA = make([]byte, size)
3243 n, err := m.MarshalToSizedBuffer(dAtA[:size])
3244 if err != nil {
3245 return nil, err
3246 }
3247 return dAtA[:n], nil
3248 }
3249
3250 func (m *ResourceRequestModel) MarshalTo(dAtA []byte) (int, error) {
3251 size := m.Size()
3252 return m.MarshalToSizedBuffer(dAtA[:size])
3253 }
3254
3255 func (m *ResourceRequestModel) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3256 i := len(dAtA)
3257 _ = i
3258 var l int
3259 _ = l
3260 if m.NamedResources != nil {
3261 {
3262 size, err := m.NamedResources.MarshalToSizedBuffer(dAtA[:i])
3263 if err != nil {
3264 return 0, err
3265 }
3266 i -= size
3267 i = encodeVarintGenerated(dAtA, i, uint64(size))
3268 }
3269 i--
3270 dAtA[i] = 0xa
3271 }
3272 return len(dAtA) - i, nil
3273 }
3274
3275 func (m *ResourceSlice) Marshal() (dAtA []byte, err error) {
3276 size := m.Size()
3277 dAtA = make([]byte, size)
3278 n, err := m.MarshalToSizedBuffer(dAtA[:size])
3279 if err != nil {
3280 return nil, err
3281 }
3282 return dAtA[:n], nil
3283 }
3284
3285 func (m *ResourceSlice) MarshalTo(dAtA []byte) (int, error) {
3286 size := m.Size()
3287 return m.MarshalToSizedBuffer(dAtA[:size])
3288 }
3289
3290 func (m *ResourceSlice) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3291 i := len(dAtA)
3292 _ = i
3293 var l int
3294 _ = l
3295 {
3296 size, err := m.ResourceModel.MarshalToSizedBuffer(dAtA[:i])
3297 if err != nil {
3298 return 0, err
3299 }
3300 i -= size
3301 i = encodeVarintGenerated(dAtA, i, uint64(size))
3302 }
3303 i--
3304 dAtA[i] = 0x22
3305 i -= len(m.DriverName)
3306 copy(dAtA[i:], m.DriverName)
3307 i = encodeVarintGenerated(dAtA, i, uint64(len(m.DriverName)))
3308 i--
3309 dAtA[i] = 0x1a
3310 i -= len(m.NodeName)
3311 copy(dAtA[i:], m.NodeName)
3312 i = encodeVarintGenerated(dAtA, i, uint64(len(m.NodeName)))
3313 i--
3314 dAtA[i] = 0x12
3315 {
3316 size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
3317 if err != nil {
3318 return 0, err
3319 }
3320 i -= size
3321 i = encodeVarintGenerated(dAtA, i, uint64(size))
3322 }
3323 i--
3324 dAtA[i] = 0xa
3325 return len(dAtA) - i, nil
3326 }
3327
3328 func (m *ResourceSliceList) Marshal() (dAtA []byte, err error) {
3329 size := m.Size()
3330 dAtA = make([]byte, size)
3331 n, err := m.MarshalToSizedBuffer(dAtA[:size])
3332 if err != nil {
3333 return nil, err
3334 }
3335 return dAtA[:n], nil
3336 }
3337
3338 func (m *ResourceSliceList) MarshalTo(dAtA []byte) (int, error) {
3339 size := m.Size()
3340 return m.MarshalToSizedBuffer(dAtA[:size])
3341 }
3342
3343 func (m *ResourceSliceList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3344 i := len(dAtA)
3345 _ = i
3346 var l int
3347 _ = l
3348 if len(m.Items) > 0 {
3349 for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
3350 {
3351 size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
3352 if err != nil {
3353 return 0, err
3354 }
3355 i -= size
3356 i = encodeVarintGenerated(dAtA, i, uint64(size))
3357 }
3358 i--
3359 dAtA[i] = 0x12
3360 }
3361 }
3362 {
3363 size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
3364 if err != nil {
3365 return 0, err
3366 }
3367 i -= size
3368 i = encodeVarintGenerated(dAtA, i, uint64(size))
3369 }
3370 i--
3371 dAtA[i] = 0xa
3372 return len(dAtA) - i, nil
3373 }
3374
3375 func (m *StructuredResourceHandle) Marshal() (dAtA []byte, err error) {
3376 size := m.Size()
3377 dAtA = make([]byte, size)
3378 n, err := m.MarshalToSizedBuffer(dAtA[:size])
3379 if err != nil {
3380 return nil, err
3381 }
3382 return dAtA[:n], nil
3383 }
3384
3385 func (m *StructuredResourceHandle) MarshalTo(dAtA []byte) (int, error) {
3386 size := m.Size()
3387 return m.MarshalToSizedBuffer(dAtA[:size])
3388 }
3389
3390 func (m *StructuredResourceHandle) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3391 i := len(dAtA)
3392 _ = i
3393 var l int
3394 _ = l
3395 if len(m.Results) > 0 {
3396 for iNdEx := len(m.Results) - 1; iNdEx >= 0; iNdEx-- {
3397 {
3398 size, err := m.Results[iNdEx].MarshalToSizedBuffer(dAtA[:i])
3399 if err != nil {
3400 return 0, err
3401 }
3402 i -= size
3403 i = encodeVarintGenerated(dAtA, i, uint64(size))
3404 }
3405 i--
3406 dAtA[i] = 0x2a
3407 }
3408 }
3409 i -= len(m.NodeName)
3410 copy(dAtA[i:], m.NodeName)
3411 i = encodeVarintGenerated(dAtA, i, uint64(len(m.NodeName)))
3412 i--
3413 dAtA[i] = 0x22
3414 {
3415 size, err := m.VendorClaimParameters.MarshalToSizedBuffer(dAtA[:i])
3416 if err != nil {
3417 return 0, err
3418 }
3419 i -= size
3420 i = encodeVarintGenerated(dAtA, i, uint64(size))
3421 }
3422 i--
3423 dAtA[i] = 0x12
3424 {
3425 size, err := m.VendorClassParameters.MarshalToSizedBuffer(dAtA[:i])
3426 if err != nil {
3427 return 0, err
3428 }
3429 i -= size
3430 i = encodeVarintGenerated(dAtA, i, uint64(size))
3431 }
3432 i--
3433 dAtA[i] = 0xa
3434 return len(dAtA) - i, nil
3435 }
3436
3437 func (m *VendorParameters) Marshal() (dAtA []byte, err error) {
3438 size := m.Size()
3439 dAtA = make([]byte, size)
3440 n, err := m.MarshalToSizedBuffer(dAtA[:size])
3441 if err != nil {
3442 return nil, err
3443 }
3444 return dAtA[:n], nil
3445 }
3446
3447 func (m *VendorParameters) MarshalTo(dAtA []byte) (int, error) {
3448 size := m.Size()
3449 return m.MarshalToSizedBuffer(dAtA[:size])
3450 }
3451
3452 func (m *VendorParameters) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3453 i := len(dAtA)
3454 _ = i
3455 var l int
3456 _ = l
3457 {
3458 size, err := m.Parameters.MarshalToSizedBuffer(dAtA[:i])
3459 if err != nil {
3460 return 0, err
3461 }
3462 i -= size
3463 i = encodeVarintGenerated(dAtA, i, uint64(size))
3464 }
3465 i--
3466 dAtA[i] = 0x12
3467 i -= len(m.DriverName)
3468 copy(dAtA[i:], m.DriverName)
3469 i = encodeVarintGenerated(dAtA, i, uint64(len(m.DriverName)))
3470 i--
3471 dAtA[i] = 0xa
3472 return len(dAtA) - i, nil
3473 }
3474
3475 func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
3476 offset -= sovGenerated(v)
3477 base := offset
3478 for v >= 1<<7 {
3479 dAtA[offset] = uint8(v&0x7f | 0x80)
3480 v >>= 7
3481 offset++
3482 }
3483 dAtA[offset] = uint8(v)
3484 return base
3485 }
3486 func (m *AllocationResult) Size() (n int) {
3487 if m == nil {
3488 return 0
3489 }
3490 var l int
3491 _ = l
3492 if len(m.ResourceHandles) > 0 {
3493 for _, e := range m.ResourceHandles {
3494 l = e.Size()
3495 n += 1 + l + sovGenerated(uint64(l))
3496 }
3497 }
3498 if m.AvailableOnNodes != nil {
3499 l = m.AvailableOnNodes.Size()
3500 n += 1 + l + sovGenerated(uint64(l))
3501 }
3502 n += 2
3503 return n
3504 }
3505
3506 func (m *AllocationResultModel) Size() (n int) {
3507 if m == nil {
3508 return 0
3509 }
3510 var l int
3511 _ = l
3512 if m.NamedResources != nil {
3513 l = m.NamedResources.Size()
3514 n += 1 + l + sovGenerated(uint64(l))
3515 }
3516 return n
3517 }
3518
3519 func (m *DriverAllocationResult) Size() (n int) {
3520 if m == nil {
3521 return 0
3522 }
3523 var l int
3524 _ = l
3525 l = m.VendorRequestParameters.Size()
3526 n += 1 + l + sovGenerated(uint64(l))
3527 l = m.AllocationResultModel.Size()
3528 n += 1 + l + sovGenerated(uint64(l))
3529 return n
3530 }
3531
3532 func (m *DriverRequests) Size() (n int) {
3533 if m == nil {
3534 return 0
3535 }
3536 var l int
3537 _ = l
3538 l = len(m.DriverName)
3539 n += 1 + l + sovGenerated(uint64(l))
3540 l = m.VendorParameters.Size()
3541 n += 1 + l + sovGenerated(uint64(l))
3542 if len(m.Requests) > 0 {
3543 for _, e := range m.Requests {
3544 l = e.Size()
3545 n += 1 + l + sovGenerated(uint64(l))
3546 }
3547 }
3548 return n
3549 }
3550
3551 func (m *NamedResourcesAllocationResult) Size() (n int) {
3552 if m == nil {
3553 return 0
3554 }
3555 var l int
3556 _ = l
3557 l = len(m.Name)
3558 n += 1 + l + sovGenerated(uint64(l))
3559 return n
3560 }
3561
3562 func (m *NamedResourcesAttribute) Size() (n int) {
3563 if m == nil {
3564 return 0
3565 }
3566 var l int
3567 _ = l
3568 l = len(m.Name)
3569 n += 1 + l + sovGenerated(uint64(l))
3570 l = m.NamedResourcesAttributeValue.Size()
3571 n += 1 + l + sovGenerated(uint64(l))
3572 return n
3573 }
3574
3575 func (m *NamedResourcesAttributeValue) Size() (n int) {
3576 if m == nil {
3577 return 0
3578 }
3579 var l int
3580 _ = l
3581 if m.BoolValue != nil {
3582 n += 2
3583 }
3584 if m.StringValue != nil {
3585 l = len(*m.StringValue)
3586 n += 1 + l + sovGenerated(uint64(l))
3587 }
3588 if m.QuantityValue != nil {
3589 l = m.QuantityValue.Size()
3590 n += 1 + l + sovGenerated(uint64(l))
3591 }
3592 if m.IntValue != nil {
3593 n += 1 + sovGenerated(uint64(*m.IntValue))
3594 }
3595 if m.IntSliceValue != nil {
3596 l = m.IntSliceValue.Size()
3597 n += 1 + l + sovGenerated(uint64(l))
3598 }
3599 if m.StringSliceValue != nil {
3600 l = m.StringSliceValue.Size()
3601 n += 1 + l + sovGenerated(uint64(l))
3602 }
3603 if m.VersionValue != nil {
3604 l = len(*m.VersionValue)
3605 n += 1 + l + sovGenerated(uint64(l))
3606 }
3607 return n
3608 }
3609
3610 func (m *NamedResourcesFilter) Size() (n int) {
3611 if m == nil {
3612 return 0
3613 }
3614 var l int
3615 _ = l
3616 l = len(m.Selector)
3617 n += 1 + l + sovGenerated(uint64(l))
3618 return n
3619 }
3620
3621 func (m *NamedResourcesInstance) Size() (n int) {
3622 if m == nil {
3623 return 0
3624 }
3625 var l int
3626 _ = l
3627 l = len(m.Name)
3628 n += 1 + l + sovGenerated(uint64(l))
3629 if len(m.Attributes) > 0 {
3630 for _, e := range m.Attributes {
3631 l = e.Size()
3632 n += 1 + l + sovGenerated(uint64(l))
3633 }
3634 }
3635 return n
3636 }
3637
3638 func (m *NamedResourcesIntSlice) Size() (n int) {
3639 if m == nil {
3640 return 0
3641 }
3642 var l int
3643 _ = l
3644 if len(m.Ints) > 0 {
3645 for _, e := range m.Ints {
3646 n += 1 + sovGenerated(uint64(e))
3647 }
3648 }
3649 return n
3650 }
3651
3652 func (m *NamedResourcesRequest) Size() (n int) {
3653 if m == nil {
3654 return 0
3655 }
3656 var l int
3657 _ = l
3658 l = len(m.Selector)
3659 n += 1 + l + sovGenerated(uint64(l))
3660 return n
3661 }
3662
3663 func (m *NamedResourcesResources) Size() (n int) {
3664 if m == nil {
3665 return 0
3666 }
3667 var l int
3668 _ = l
3669 if len(m.Instances) > 0 {
3670 for _, e := range m.Instances {
3671 l = e.Size()
3672 n += 1 + l + sovGenerated(uint64(l))
3673 }
3674 }
3675 return n
3676 }
3677
3678 func (m *NamedResourcesStringSlice) Size() (n int) {
3679 if m == nil {
3680 return 0
3681 }
3682 var l int
3683 _ = l
3684 if len(m.Strings) > 0 {
3685 for _, s := range m.Strings {
3686 l = len(s)
3687 n += 1 + l + sovGenerated(uint64(l))
3688 }
3689 }
3690 return n
3691 }
3692
3693 func (m *PodSchedulingContext) Size() (n int) {
3694 if m == nil {
3695 return 0
3696 }
3697 var l int
3698 _ = l
3699 l = m.ObjectMeta.Size()
3700 n += 1 + l + sovGenerated(uint64(l))
3701 l = m.Spec.Size()
3702 n += 1 + l + sovGenerated(uint64(l))
3703 l = m.Status.Size()
3704 n += 1 + l + sovGenerated(uint64(l))
3705 return n
3706 }
3707
3708 func (m *PodSchedulingContextList) Size() (n int) {
3709 if m == nil {
3710 return 0
3711 }
3712 var l int
3713 _ = l
3714 l = m.ListMeta.Size()
3715 n += 1 + l + sovGenerated(uint64(l))
3716 if len(m.Items) > 0 {
3717 for _, e := range m.Items {
3718 l = e.Size()
3719 n += 1 + l + sovGenerated(uint64(l))
3720 }
3721 }
3722 return n
3723 }
3724
3725 func (m *PodSchedulingContextSpec) Size() (n int) {
3726 if m == nil {
3727 return 0
3728 }
3729 var l int
3730 _ = l
3731 l = len(m.SelectedNode)
3732 n += 1 + l + sovGenerated(uint64(l))
3733 if len(m.PotentialNodes) > 0 {
3734 for _, s := range m.PotentialNodes {
3735 l = len(s)
3736 n += 1 + l + sovGenerated(uint64(l))
3737 }
3738 }
3739 return n
3740 }
3741
3742 func (m *PodSchedulingContextStatus) Size() (n int) {
3743 if m == nil {
3744 return 0
3745 }
3746 var l int
3747 _ = l
3748 if len(m.ResourceClaims) > 0 {
3749 for _, e := range m.ResourceClaims {
3750 l = e.Size()
3751 n += 1 + l + sovGenerated(uint64(l))
3752 }
3753 }
3754 return n
3755 }
3756
3757 func (m *ResourceClaim) Size() (n int) {
3758 if m == nil {
3759 return 0
3760 }
3761 var l int
3762 _ = l
3763 l = m.ObjectMeta.Size()
3764 n += 1 + l + sovGenerated(uint64(l))
3765 l = m.Spec.Size()
3766 n += 1 + l + sovGenerated(uint64(l))
3767 l = m.Status.Size()
3768 n += 1 + l + sovGenerated(uint64(l))
3769 return n
3770 }
3771
3772 func (m *ResourceClaimConsumerReference) Size() (n int) {
3773 if m == nil {
3774 return 0
3775 }
3776 var l int
3777 _ = l
3778 l = len(m.APIGroup)
3779 n += 1 + l + sovGenerated(uint64(l))
3780 l = len(m.Resource)
3781 n += 1 + l + sovGenerated(uint64(l))
3782 l = len(m.Name)
3783 n += 1 + l + sovGenerated(uint64(l))
3784 l = len(m.UID)
3785 n += 1 + l + sovGenerated(uint64(l))
3786 return n
3787 }
3788
3789 func (m *ResourceClaimList) Size() (n int) {
3790 if m == nil {
3791 return 0
3792 }
3793 var l int
3794 _ = l
3795 l = m.ListMeta.Size()
3796 n += 1 + l + sovGenerated(uint64(l))
3797 if len(m.Items) > 0 {
3798 for _, e := range m.Items {
3799 l = e.Size()
3800 n += 1 + l + sovGenerated(uint64(l))
3801 }
3802 }
3803 return n
3804 }
3805
3806 func (m *ResourceClaimParameters) Size() (n int) {
3807 if m == nil {
3808 return 0
3809 }
3810 var l int
3811 _ = l
3812 l = m.ObjectMeta.Size()
3813 n += 1 + l + sovGenerated(uint64(l))
3814 if m.GeneratedFrom != nil {
3815 l = m.GeneratedFrom.Size()
3816 n += 1 + l + sovGenerated(uint64(l))
3817 }
3818 n += 2
3819 if len(m.DriverRequests) > 0 {
3820 for _, e := range m.DriverRequests {
3821 l = e.Size()
3822 n += 1 + l + sovGenerated(uint64(l))
3823 }
3824 }
3825 return n
3826 }
3827
3828 func (m *ResourceClaimParametersList) Size() (n int) {
3829 if m == nil {
3830 return 0
3831 }
3832 var l int
3833 _ = l
3834 l = m.ListMeta.Size()
3835 n += 1 + l + sovGenerated(uint64(l))
3836 if len(m.Items) > 0 {
3837 for _, e := range m.Items {
3838 l = e.Size()
3839 n += 1 + l + sovGenerated(uint64(l))
3840 }
3841 }
3842 return n
3843 }
3844
3845 func (m *ResourceClaimParametersReference) Size() (n int) {
3846 if m == nil {
3847 return 0
3848 }
3849 var l int
3850 _ = l
3851 l = len(m.APIGroup)
3852 n += 1 + l + sovGenerated(uint64(l))
3853 l = len(m.Kind)
3854 n += 1 + l + sovGenerated(uint64(l))
3855 l = len(m.Name)
3856 n += 1 + l + sovGenerated(uint64(l))
3857 return n
3858 }
3859
3860 func (m *ResourceClaimSchedulingStatus) Size() (n int) {
3861 if m == nil {
3862 return 0
3863 }
3864 var l int
3865 _ = l
3866 l = len(m.Name)
3867 n += 1 + l + sovGenerated(uint64(l))
3868 if len(m.UnsuitableNodes) > 0 {
3869 for _, s := range m.UnsuitableNodes {
3870 l = len(s)
3871 n += 1 + l + sovGenerated(uint64(l))
3872 }
3873 }
3874 return n
3875 }
3876
3877 func (m *ResourceClaimSpec) Size() (n int) {
3878 if m == nil {
3879 return 0
3880 }
3881 var l int
3882 _ = l
3883 l = len(m.ResourceClassName)
3884 n += 1 + l + sovGenerated(uint64(l))
3885 if m.ParametersRef != nil {
3886 l = m.ParametersRef.Size()
3887 n += 1 + l + sovGenerated(uint64(l))
3888 }
3889 l = len(m.AllocationMode)
3890 n += 1 + l + sovGenerated(uint64(l))
3891 return n
3892 }
3893
3894 func (m *ResourceClaimStatus) Size() (n int) {
3895 if m == nil {
3896 return 0
3897 }
3898 var l int
3899 _ = l
3900 l = len(m.DriverName)
3901 n += 1 + l + sovGenerated(uint64(l))
3902 if m.Allocation != nil {
3903 l = m.Allocation.Size()
3904 n += 1 + l + sovGenerated(uint64(l))
3905 }
3906 if len(m.ReservedFor) > 0 {
3907 for _, e := range m.ReservedFor {
3908 l = e.Size()
3909 n += 1 + l + sovGenerated(uint64(l))
3910 }
3911 }
3912 n += 2
3913 return n
3914 }
3915
3916 func (m *ResourceClaimTemplate) Size() (n int) {
3917 if m == nil {
3918 return 0
3919 }
3920 var l int
3921 _ = l
3922 l = m.ObjectMeta.Size()
3923 n += 1 + l + sovGenerated(uint64(l))
3924 l = m.Spec.Size()
3925 n += 1 + l + sovGenerated(uint64(l))
3926 return n
3927 }
3928
3929 func (m *ResourceClaimTemplateList) Size() (n int) {
3930 if m == nil {
3931 return 0
3932 }
3933 var l int
3934 _ = l
3935 l = m.ListMeta.Size()
3936 n += 1 + l + sovGenerated(uint64(l))
3937 if len(m.Items) > 0 {
3938 for _, e := range m.Items {
3939 l = e.Size()
3940 n += 1 + l + sovGenerated(uint64(l))
3941 }
3942 }
3943 return n
3944 }
3945
3946 func (m *ResourceClaimTemplateSpec) Size() (n int) {
3947 if m == nil {
3948 return 0
3949 }
3950 var l int
3951 _ = l
3952 l = m.ObjectMeta.Size()
3953 n += 1 + l + sovGenerated(uint64(l))
3954 l = m.Spec.Size()
3955 n += 1 + l + sovGenerated(uint64(l))
3956 return n
3957 }
3958
3959 func (m *ResourceClass) Size() (n int) {
3960 if m == nil {
3961 return 0
3962 }
3963 var l int
3964 _ = l
3965 l = m.ObjectMeta.Size()
3966 n += 1 + l + sovGenerated(uint64(l))
3967 l = len(m.DriverName)
3968 n += 1 + l + sovGenerated(uint64(l))
3969 if m.ParametersRef != nil {
3970 l = m.ParametersRef.Size()
3971 n += 1 + l + sovGenerated(uint64(l))
3972 }
3973 if m.SuitableNodes != nil {
3974 l = m.SuitableNodes.Size()
3975 n += 1 + l + sovGenerated(uint64(l))
3976 }
3977 if m.StructuredParameters != nil {
3978 n += 2
3979 }
3980 return n
3981 }
3982
3983 func (m *ResourceClassList) Size() (n int) {
3984 if m == nil {
3985 return 0
3986 }
3987 var l int
3988 _ = l
3989 l = m.ListMeta.Size()
3990 n += 1 + l + sovGenerated(uint64(l))
3991 if len(m.Items) > 0 {
3992 for _, e := range m.Items {
3993 l = e.Size()
3994 n += 1 + l + sovGenerated(uint64(l))
3995 }
3996 }
3997 return n
3998 }
3999
4000 func (m *ResourceClassParameters) Size() (n int) {
4001 if m == nil {
4002 return 0
4003 }
4004 var l int
4005 _ = l
4006 l = m.ObjectMeta.Size()
4007 n += 1 + l + sovGenerated(uint64(l))
4008 if m.GeneratedFrom != nil {
4009 l = m.GeneratedFrom.Size()
4010 n += 1 + l + sovGenerated(uint64(l))
4011 }
4012 if len(m.VendorParameters) > 0 {
4013 for _, e := range m.VendorParameters {
4014 l = e.Size()
4015 n += 1 + l + sovGenerated(uint64(l))
4016 }
4017 }
4018 if len(m.Filters) > 0 {
4019 for _, e := range m.Filters {
4020 l = e.Size()
4021 n += 1 + l + sovGenerated(uint64(l))
4022 }
4023 }
4024 return n
4025 }
4026
4027 func (m *ResourceClassParametersList) Size() (n int) {
4028 if m == nil {
4029 return 0
4030 }
4031 var l int
4032 _ = l
4033 l = m.ListMeta.Size()
4034 n += 1 + l + sovGenerated(uint64(l))
4035 if len(m.Items) > 0 {
4036 for _, e := range m.Items {
4037 l = e.Size()
4038 n += 1 + l + sovGenerated(uint64(l))
4039 }
4040 }
4041 return n
4042 }
4043
4044 func (m *ResourceClassParametersReference) Size() (n int) {
4045 if m == nil {
4046 return 0
4047 }
4048 var l int
4049 _ = l
4050 l = len(m.APIGroup)
4051 n += 1 + l + sovGenerated(uint64(l))
4052 l = len(m.Kind)
4053 n += 1 + l + sovGenerated(uint64(l))
4054 l = len(m.Name)
4055 n += 1 + l + sovGenerated(uint64(l))
4056 l = len(m.Namespace)
4057 n += 1 + l + sovGenerated(uint64(l))
4058 return n
4059 }
4060
4061 func (m *ResourceFilter) Size() (n int) {
4062 if m == nil {
4063 return 0
4064 }
4065 var l int
4066 _ = l
4067 l = len(m.DriverName)
4068 n += 1 + l + sovGenerated(uint64(l))
4069 l = m.ResourceFilterModel.Size()
4070 n += 1 + l + sovGenerated(uint64(l))
4071 return n
4072 }
4073
4074 func (m *ResourceFilterModel) Size() (n int) {
4075 if m == nil {
4076 return 0
4077 }
4078 var l int
4079 _ = l
4080 if m.NamedResources != nil {
4081 l = m.NamedResources.Size()
4082 n += 1 + l + sovGenerated(uint64(l))
4083 }
4084 return n
4085 }
4086
4087 func (m *ResourceHandle) Size() (n int) {
4088 if m == nil {
4089 return 0
4090 }
4091 var l int
4092 _ = l
4093 l = len(m.DriverName)
4094 n += 1 + l + sovGenerated(uint64(l))
4095 l = len(m.Data)
4096 n += 1 + l + sovGenerated(uint64(l))
4097 if m.StructuredData != nil {
4098 l = m.StructuredData.Size()
4099 n += 1 + l + sovGenerated(uint64(l))
4100 }
4101 return n
4102 }
4103
4104 func (m *ResourceModel) Size() (n int) {
4105 if m == nil {
4106 return 0
4107 }
4108 var l int
4109 _ = l
4110 if m.NamedResources != nil {
4111 l = m.NamedResources.Size()
4112 n += 1 + l + sovGenerated(uint64(l))
4113 }
4114 return n
4115 }
4116
4117 func (m *ResourceRequest) Size() (n int) {
4118 if m == nil {
4119 return 0
4120 }
4121 var l int
4122 _ = l
4123 l = m.VendorParameters.Size()
4124 n += 1 + l + sovGenerated(uint64(l))
4125 l = m.ResourceRequestModel.Size()
4126 n += 1 + l + sovGenerated(uint64(l))
4127 return n
4128 }
4129
4130 func (m *ResourceRequestModel) Size() (n int) {
4131 if m == nil {
4132 return 0
4133 }
4134 var l int
4135 _ = l
4136 if m.NamedResources != nil {
4137 l = m.NamedResources.Size()
4138 n += 1 + l + sovGenerated(uint64(l))
4139 }
4140 return n
4141 }
4142
4143 func (m *ResourceSlice) Size() (n int) {
4144 if m == nil {
4145 return 0
4146 }
4147 var l int
4148 _ = l
4149 l = m.ObjectMeta.Size()
4150 n += 1 + l + sovGenerated(uint64(l))
4151 l = len(m.NodeName)
4152 n += 1 + l + sovGenerated(uint64(l))
4153 l = len(m.DriverName)
4154 n += 1 + l + sovGenerated(uint64(l))
4155 l = m.ResourceModel.Size()
4156 n += 1 + l + sovGenerated(uint64(l))
4157 return n
4158 }
4159
4160 func (m *ResourceSliceList) Size() (n int) {
4161 if m == nil {
4162 return 0
4163 }
4164 var l int
4165 _ = l
4166 l = m.ListMeta.Size()
4167 n += 1 + l + sovGenerated(uint64(l))
4168 if len(m.Items) > 0 {
4169 for _, e := range m.Items {
4170 l = e.Size()
4171 n += 1 + l + sovGenerated(uint64(l))
4172 }
4173 }
4174 return n
4175 }
4176
4177 func (m *StructuredResourceHandle) Size() (n int) {
4178 if m == nil {
4179 return 0
4180 }
4181 var l int
4182 _ = l
4183 l = m.VendorClassParameters.Size()
4184 n += 1 + l + sovGenerated(uint64(l))
4185 l = m.VendorClaimParameters.Size()
4186 n += 1 + l + sovGenerated(uint64(l))
4187 l = len(m.NodeName)
4188 n += 1 + l + sovGenerated(uint64(l))
4189 if len(m.Results) > 0 {
4190 for _, e := range m.Results {
4191 l = e.Size()
4192 n += 1 + l + sovGenerated(uint64(l))
4193 }
4194 }
4195 return n
4196 }
4197
4198 func (m *VendorParameters) Size() (n int) {
4199 if m == nil {
4200 return 0
4201 }
4202 var l int
4203 _ = l
4204 l = len(m.DriverName)
4205 n += 1 + l + sovGenerated(uint64(l))
4206 l = m.Parameters.Size()
4207 n += 1 + l + sovGenerated(uint64(l))
4208 return n
4209 }
4210
4211 func sovGenerated(x uint64) (n int) {
4212 return (math_bits.Len64(x|1) + 6) / 7
4213 }
4214 func sozGenerated(x uint64) (n int) {
4215 return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
4216 }
4217 func (this *AllocationResult) String() string {
4218 if this == nil {
4219 return "nil"
4220 }
4221 repeatedStringForResourceHandles := "[]ResourceHandle{"
4222 for _, f := range this.ResourceHandles {
4223 repeatedStringForResourceHandles += strings.Replace(strings.Replace(f.String(), "ResourceHandle", "ResourceHandle", 1), `&`, ``, 1) + ","
4224 }
4225 repeatedStringForResourceHandles += "}"
4226 s := strings.Join([]string{`&AllocationResult{`,
4227 `ResourceHandles:` + repeatedStringForResourceHandles + `,`,
4228 `AvailableOnNodes:` + strings.Replace(fmt.Sprintf("%v", this.AvailableOnNodes), "NodeSelector", "v1.NodeSelector", 1) + `,`,
4229 `Shareable:` + fmt.Sprintf("%v", this.Shareable) + `,`,
4230 `}`,
4231 }, "")
4232 return s
4233 }
4234 func (this *AllocationResultModel) String() string {
4235 if this == nil {
4236 return "nil"
4237 }
4238 s := strings.Join([]string{`&AllocationResultModel{`,
4239 `NamedResources:` + strings.Replace(this.NamedResources.String(), "NamedResourcesAllocationResult", "NamedResourcesAllocationResult", 1) + `,`,
4240 `}`,
4241 }, "")
4242 return s
4243 }
4244 func (this *DriverAllocationResult) String() string {
4245 if this == nil {
4246 return "nil"
4247 }
4248 s := strings.Join([]string{`&DriverAllocationResult{`,
4249 `VendorRequestParameters:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.VendorRequestParameters), "RawExtension", "runtime.RawExtension", 1), `&`, ``, 1) + `,`,
4250 `AllocationResultModel:` + strings.Replace(strings.Replace(this.AllocationResultModel.String(), "AllocationResultModel", "AllocationResultModel", 1), `&`, ``, 1) + `,`,
4251 `}`,
4252 }, "")
4253 return s
4254 }
4255 func (this *DriverRequests) String() string {
4256 if this == nil {
4257 return "nil"
4258 }
4259 repeatedStringForRequests := "[]ResourceRequest{"
4260 for _, f := range this.Requests {
4261 repeatedStringForRequests += strings.Replace(strings.Replace(f.String(), "ResourceRequest", "ResourceRequest", 1), `&`, ``, 1) + ","
4262 }
4263 repeatedStringForRequests += "}"
4264 s := strings.Join([]string{`&DriverRequests{`,
4265 `DriverName:` + fmt.Sprintf("%v", this.DriverName) + `,`,
4266 `VendorParameters:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.VendorParameters), "RawExtension", "runtime.RawExtension", 1), `&`, ``, 1) + `,`,
4267 `Requests:` + repeatedStringForRequests + `,`,
4268 `}`,
4269 }, "")
4270 return s
4271 }
4272 func (this *NamedResourcesAllocationResult) String() string {
4273 if this == nil {
4274 return "nil"
4275 }
4276 s := strings.Join([]string{`&NamedResourcesAllocationResult{`,
4277 `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
4278 `}`,
4279 }, "")
4280 return s
4281 }
4282 func (this *NamedResourcesAttribute) String() string {
4283 if this == nil {
4284 return "nil"
4285 }
4286 s := strings.Join([]string{`&NamedResourcesAttribute{`,
4287 `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
4288 `NamedResourcesAttributeValue:` + strings.Replace(strings.Replace(this.NamedResourcesAttributeValue.String(), "NamedResourcesAttributeValue", "NamedResourcesAttributeValue", 1), `&`, ``, 1) + `,`,
4289 `}`,
4290 }, "")
4291 return s
4292 }
4293 func (this *NamedResourcesAttributeValue) String() string {
4294 if this == nil {
4295 return "nil"
4296 }
4297 s := strings.Join([]string{`&NamedResourcesAttributeValue{`,
4298 `BoolValue:` + valueToStringGenerated(this.BoolValue) + `,`,
4299 `StringValue:` + valueToStringGenerated(this.StringValue) + `,`,
4300 `QuantityValue:` + strings.Replace(fmt.Sprintf("%v", this.QuantityValue), "Quantity", "resource.Quantity", 1) + `,`,
4301 `IntValue:` + valueToStringGenerated(this.IntValue) + `,`,
4302 `IntSliceValue:` + strings.Replace(this.IntSliceValue.String(), "NamedResourcesIntSlice", "NamedResourcesIntSlice", 1) + `,`,
4303 `StringSliceValue:` + strings.Replace(this.StringSliceValue.String(), "NamedResourcesStringSlice", "NamedResourcesStringSlice", 1) + `,`,
4304 `VersionValue:` + valueToStringGenerated(this.VersionValue) + `,`,
4305 `}`,
4306 }, "")
4307 return s
4308 }
4309 func (this *NamedResourcesFilter) String() string {
4310 if this == nil {
4311 return "nil"
4312 }
4313 s := strings.Join([]string{`&NamedResourcesFilter{`,
4314 `Selector:` + fmt.Sprintf("%v", this.Selector) + `,`,
4315 `}`,
4316 }, "")
4317 return s
4318 }
4319 func (this *NamedResourcesInstance) String() string {
4320 if this == nil {
4321 return "nil"
4322 }
4323 repeatedStringForAttributes := "[]NamedResourcesAttribute{"
4324 for _, f := range this.Attributes {
4325 repeatedStringForAttributes += strings.Replace(strings.Replace(f.String(), "NamedResourcesAttribute", "NamedResourcesAttribute", 1), `&`, ``, 1) + ","
4326 }
4327 repeatedStringForAttributes += "}"
4328 s := strings.Join([]string{`&NamedResourcesInstance{`,
4329 `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
4330 `Attributes:` + repeatedStringForAttributes + `,`,
4331 `}`,
4332 }, "")
4333 return s
4334 }
4335 func (this *NamedResourcesIntSlice) String() string {
4336 if this == nil {
4337 return "nil"
4338 }
4339 s := strings.Join([]string{`&NamedResourcesIntSlice{`,
4340 `Ints:` + fmt.Sprintf("%v", this.Ints) + `,`,
4341 `}`,
4342 }, "")
4343 return s
4344 }
4345 func (this *NamedResourcesRequest) String() string {
4346 if this == nil {
4347 return "nil"
4348 }
4349 s := strings.Join([]string{`&NamedResourcesRequest{`,
4350 `Selector:` + fmt.Sprintf("%v", this.Selector) + `,`,
4351 `}`,
4352 }, "")
4353 return s
4354 }
4355 func (this *NamedResourcesResources) String() string {
4356 if this == nil {
4357 return "nil"
4358 }
4359 repeatedStringForInstances := "[]NamedResourcesInstance{"
4360 for _, f := range this.Instances {
4361 repeatedStringForInstances += strings.Replace(strings.Replace(f.String(), "NamedResourcesInstance", "NamedResourcesInstance", 1), `&`, ``, 1) + ","
4362 }
4363 repeatedStringForInstances += "}"
4364 s := strings.Join([]string{`&NamedResourcesResources{`,
4365 `Instances:` + repeatedStringForInstances + `,`,
4366 `}`,
4367 }, "")
4368 return s
4369 }
4370 func (this *NamedResourcesStringSlice) String() string {
4371 if this == nil {
4372 return "nil"
4373 }
4374 s := strings.Join([]string{`&NamedResourcesStringSlice{`,
4375 `Strings:` + fmt.Sprintf("%v", this.Strings) + `,`,
4376 `}`,
4377 }, "")
4378 return s
4379 }
4380 func (this *PodSchedulingContext) String() string {
4381 if this == nil {
4382 return "nil"
4383 }
4384 s := strings.Join([]string{`&PodSchedulingContext{`,
4385 `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v11.ObjectMeta", 1), `&`, ``, 1) + `,`,
4386 `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PodSchedulingContextSpec", "PodSchedulingContextSpec", 1), `&`, ``, 1) + `,`,
4387 `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PodSchedulingContextStatus", "PodSchedulingContextStatus", 1), `&`, ``, 1) + `,`,
4388 `}`,
4389 }, "")
4390 return s
4391 }
4392 func (this *PodSchedulingContextList) String() string {
4393 if this == nil {
4394 return "nil"
4395 }
4396 repeatedStringForItems := "[]PodSchedulingContext{"
4397 for _, f := range this.Items {
4398 repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "PodSchedulingContext", "PodSchedulingContext", 1), `&`, ``, 1) + ","
4399 }
4400 repeatedStringForItems += "}"
4401 s := strings.Join([]string{`&PodSchedulingContextList{`,
4402 `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v11.ListMeta", 1), `&`, ``, 1) + `,`,
4403 `Items:` + repeatedStringForItems + `,`,
4404 `}`,
4405 }, "")
4406 return s
4407 }
4408 func (this *PodSchedulingContextSpec) String() string {
4409 if this == nil {
4410 return "nil"
4411 }
4412 s := strings.Join([]string{`&PodSchedulingContextSpec{`,
4413 `SelectedNode:` + fmt.Sprintf("%v", this.SelectedNode) + `,`,
4414 `PotentialNodes:` + fmt.Sprintf("%v", this.PotentialNodes) + `,`,
4415 `}`,
4416 }, "")
4417 return s
4418 }
4419 func (this *PodSchedulingContextStatus) String() string {
4420 if this == nil {
4421 return "nil"
4422 }
4423 repeatedStringForResourceClaims := "[]ResourceClaimSchedulingStatus{"
4424 for _, f := range this.ResourceClaims {
4425 repeatedStringForResourceClaims += strings.Replace(strings.Replace(f.String(), "ResourceClaimSchedulingStatus", "ResourceClaimSchedulingStatus", 1), `&`, ``, 1) + ","
4426 }
4427 repeatedStringForResourceClaims += "}"
4428 s := strings.Join([]string{`&PodSchedulingContextStatus{`,
4429 `ResourceClaims:` + repeatedStringForResourceClaims + `,`,
4430 `}`,
4431 }, "")
4432 return s
4433 }
4434 func (this *ResourceClaim) String() string {
4435 if this == nil {
4436 return "nil"
4437 }
4438 s := strings.Join([]string{`&ResourceClaim{`,
4439 `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v11.ObjectMeta", 1), `&`, ``, 1) + `,`,
4440 `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ResourceClaimSpec", "ResourceClaimSpec", 1), `&`, ``, 1) + `,`,
4441 `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ResourceClaimStatus", "ResourceClaimStatus", 1), `&`, ``, 1) + `,`,
4442 `}`,
4443 }, "")
4444 return s
4445 }
4446 func (this *ResourceClaimConsumerReference) String() string {
4447 if this == nil {
4448 return "nil"
4449 }
4450 s := strings.Join([]string{`&ResourceClaimConsumerReference{`,
4451 `APIGroup:` + fmt.Sprintf("%v", this.APIGroup) + `,`,
4452 `Resource:` + fmt.Sprintf("%v", this.Resource) + `,`,
4453 `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
4454 `UID:` + fmt.Sprintf("%v", this.UID) + `,`,
4455 `}`,
4456 }, "")
4457 return s
4458 }
4459 func (this *ResourceClaimList) String() string {
4460 if this == nil {
4461 return "nil"
4462 }
4463 repeatedStringForItems := "[]ResourceClaim{"
4464 for _, f := range this.Items {
4465 repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ResourceClaim", "ResourceClaim", 1), `&`, ``, 1) + ","
4466 }
4467 repeatedStringForItems += "}"
4468 s := strings.Join([]string{`&ResourceClaimList{`,
4469 `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v11.ListMeta", 1), `&`, ``, 1) + `,`,
4470 `Items:` + repeatedStringForItems + `,`,
4471 `}`,
4472 }, "")
4473 return s
4474 }
4475 func (this *ResourceClaimParameters) String() string {
4476 if this == nil {
4477 return "nil"
4478 }
4479 repeatedStringForDriverRequests := "[]DriverRequests{"
4480 for _, f := range this.DriverRequests {
4481 repeatedStringForDriverRequests += strings.Replace(strings.Replace(f.String(), "DriverRequests", "DriverRequests", 1), `&`, ``, 1) + ","
4482 }
4483 repeatedStringForDriverRequests += "}"
4484 s := strings.Join([]string{`&ResourceClaimParameters{`,
4485 `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v11.ObjectMeta", 1), `&`, ``, 1) + `,`,
4486 `GeneratedFrom:` + strings.Replace(this.GeneratedFrom.String(), "ResourceClaimParametersReference", "ResourceClaimParametersReference", 1) + `,`,
4487 `Shareable:` + fmt.Sprintf("%v", this.Shareable) + `,`,
4488 `DriverRequests:` + repeatedStringForDriverRequests + `,`,
4489 `}`,
4490 }, "")
4491 return s
4492 }
4493 func (this *ResourceClaimParametersList) String() string {
4494 if this == nil {
4495 return "nil"
4496 }
4497 repeatedStringForItems := "[]ResourceClaimParameters{"
4498 for _, f := range this.Items {
4499 repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ResourceClaimParameters", "ResourceClaimParameters", 1), `&`, ``, 1) + ","
4500 }
4501 repeatedStringForItems += "}"
4502 s := strings.Join([]string{`&ResourceClaimParametersList{`,
4503 `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v11.ListMeta", 1), `&`, ``, 1) + `,`,
4504 `Items:` + repeatedStringForItems + `,`,
4505 `}`,
4506 }, "")
4507 return s
4508 }
4509 func (this *ResourceClaimParametersReference) String() string {
4510 if this == nil {
4511 return "nil"
4512 }
4513 s := strings.Join([]string{`&ResourceClaimParametersReference{`,
4514 `APIGroup:` + fmt.Sprintf("%v", this.APIGroup) + `,`,
4515 `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`,
4516 `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
4517 `}`,
4518 }, "")
4519 return s
4520 }
4521 func (this *ResourceClaimSchedulingStatus) String() string {
4522 if this == nil {
4523 return "nil"
4524 }
4525 s := strings.Join([]string{`&ResourceClaimSchedulingStatus{`,
4526 `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
4527 `UnsuitableNodes:` + fmt.Sprintf("%v", this.UnsuitableNodes) + `,`,
4528 `}`,
4529 }, "")
4530 return s
4531 }
4532 func (this *ResourceClaimSpec) String() string {
4533 if this == nil {
4534 return "nil"
4535 }
4536 s := strings.Join([]string{`&ResourceClaimSpec{`,
4537 `ResourceClassName:` + fmt.Sprintf("%v", this.ResourceClassName) + `,`,
4538 `ParametersRef:` + strings.Replace(this.ParametersRef.String(), "ResourceClaimParametersReference", "ResourceClaimParametersReference", 1) + `,`,
4539 `AllocationMode:` + fmt.Sprintf("%v", this.AllocationMode) + `,`,
4540 `}`,
4541 }, "")
4542 return s
4543 }
4544 func (this *ResourceClaimStatus) String() string {
4545 if this == nil {
4546 return "nil"
4547 }
4548 repeatedStringForReservedFor := "[]ResourceClaimConsumerReference{"
4549 for _, f := range this.ReservedFor {
4550 repeatedStringForReservedFor += strings.Replace(strings.Replace(f.String(), "ResourceClaimConsumerReference", "ResourceClaimConsumerReference", 1), `&`, ``, 1) + ","
4551 }
4552 repeatedStringForReservedFor += "}"
4553 s := strings.Join([]string{`&ResourceClaimStatus{`,
4554 `DriverName:` + fmt.Sprintf("%v", this.DriverName) + `,`,
4555 `Allocation:` + strings.Replace(this.Allocation.String(), "AllocationResult", "AllocationResult", 1) + `,`,
4556 `ReservedFor:` + repeatedStringForReservedFor + `,`,
4557 `DeallocationRequested:` + fmt.Sprintf("%v", this.DeallocationRequested) + `,`,
4558 `}`,
4559 }, "")
4560 return s
4561 }
4562 func (this *ResourceClaimTemplate) String() string {
4563 if this == nil {
4564 return "nil"
4565 }
4566 s := strings.Join([]string{`&ResourceClaimTemplate{`,
4567 `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v11.ObjectMeta", 1), `&`, ``, 1) + `,`,
4568 `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ResourceClaimTemplateSpec", "ResourceClaimTemplateSpec", 1), `&`, ``, 1) + `,`,
4569 `}`,
4570 }, "")
4571 return s
4572 }
4573 func (this *ResourceClaimTemplateList) String() string {
4574 if this == nil {
4575 return "nil"
4576 }
4577 repeatedStringForItems := "[]ResourceClaimTemplate{"
4578 for _, f := range this.Items {
4579 repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ResourceClaimTemplate", "ResourceClaimTemplate", 1), `&`, ``, 1) + ","
4580 }
4581 repeatedStringForItems += "}"
4582 s := strings.Join([]string{`&ResourceClaimTemplateList{`,
4583 `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v11.ListMeta", 1), `&`, ``, 1) + `,`,
4584 `Items:` + repeatedStringForItems + `,`,
4585 `}`,
4586 }, "")
4587 return s
4588 }
4589 func (this *ResourceClaimTemplateSpec) String() string {
4590 if this == nil {
4591 return "nil"
4592 }
4593 s := strings.Join([]string{`&ResourceClaimTemplateSpec{`,
4594 `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v11.ObjectMeta", 1), `&`, ``, 1) + `,`,
4595 `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ResourceClaimSpec", "ResourceClaimSpec", 1), `&`, ``, 1) + `,`,
4596 `}`,
4597 }, "")
4598 return s
4599 }
4600 func (this *ResourceClass) String() string {
4601 if this == nil {
4602 return "nil"
4603 }
4604 s := strings.Join([]string{`&ResourceClass{`,
4605 `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v11.ObjectMeta", 1), `&`, ``, 1) + `,`,
4606 `DriverName:` + fmt.Sprintf("%v", this.DriverName) + `,`,
4607 `ParametersRef:` + strings.Replace(this.ParametersRef.String(), "ResourceClassParametersReference", "ResourceClassParametersReference", 1) + `,`,
4608 `SuitableNodes:` + strings.Replace(fmt.Sprintf("%v", this.SuitableNodes), "NodeSelector", "v1.NodeSelector", 1) + `,`,
4609 `StructuredParameters:` + valueToStringGenerated(this.StructuredParameters) + `,`,
4610 `}`,
4611 }, "")
4612 return s
4613 }
4614 func (this *ResourceClassList) String() string {
4615 if this == nil {
4616 return "nil"
4617 }
4618 repeatedStringForItems := "[]ResourceClass{"
4619 for _, f := range this.Items {
4620 repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ResourceClass", "ResourceClass", 1), `&`, ``, 1) + ","
4621 }
4622 repeatedStringForItems += "}"
4623 s := strings.Join([]string{`&ResourceClassList{`,
4624 `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v11.ListMeta", 1), `&`, ``, 1) + `,`,
4625 `Items:` + repeatedStringForItems + `,`,
4626 `}`,
4627 }, "")
4628 return s
4629 }
4630 func (this *ResourceClassParameters) String() string {
4631 if this == nil {
4632 return "nil"
4633 }
4634 repeatedStringForVendorParameters := "[]VendorParameters{"
4635 for _, f := range this.VendorParameters {
4636 repeatedStringForVendorParameters += strings.Replace(strings.Replace(f.String(), "VendorParameters", "VendorParameters", 1), `&`, ``, 1) + ","
4637 }
4638 repeatedStringForVendorParameters += "}"
4639 repeatedStringForFilters := "[]ResourceFilter{"
4640 for _, f := range this.Filters {
4641 repeatedStringForFilters += strings.Replace(strings.Replace(f.String(), "ResourceFilter", "ResourceFilter", 1), `&`, ``, 1) + ","
4642 }
4643 repeatedStringForFilters += "}"
4644 s := strings.Join([]string{`&ResourceClassParameters{`,
4645 `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v11.ObjectMeta", 1), `&`, ``, 1) + `,`,
4646 `GeneratedFrom:` + strings.Replace(this.GeneratedFrom.String(), "ResourceClassParametersReference", "ResourceClassParametersReference", 1) + `,`,
4647 `VendorParameters:` + repeatedStringForVendorParameters + `,`,
4648 `Filters:` + repeatedStringForFilters + `,`,
4649 `}`,
4650 }, "")
4651 return s
4652 }
4653 func (this *ResourceClassParametersList) String() string {
4654 if this == nil {
4655 return "nil"
4656 }
4657 repeatedStringForItems := "[]ResourceClassParameters{"
4658 for _, f := range this.Items {
4659 repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ResourceClassParameters", "ResourceClassParameters", 1), `&`, ``, 1) + ","
4660 }
4661 repeatedStringForItems += "}"
4662 s := strings.Join([]string{`&ResourceClassParametersList{`,
4663 `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v11.ListMeta", 1), `&`, ``, 1) + `,`,
4664 `Items:` + repeatedStringForItems + `,`,
4665 `}`,
4666 }, "")
4667 return s
4668 }
4669 func (this *ResourceClassParametersReference) String() string {
4670 if this == nil {
4671 return "nil"
4672 }
4673 s := strings.Join([]string{`&ResourceClassParametersReference{`,
4674 `APIGroup:` + fmt.Sprintf("%v", this.APIGroup) + `,`,
4675 `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`,
4676 `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
4677 `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
4678 `}`,
4679 }, "")
4680 return s
4681 }
4682 func (this *ResourceFilter) String() string {
4683 if this == nil {
4684 return "nil"
4685 }
4686 s := strings.Join([]string{`&ResourceFilter{`,
4687 `DriverName:` + fmt.Sprintf("%v", this.DriverName) + `,`,
4688 `ResourceFilterModel:` + strings.Replace(strings.Replace(this.ResourceFilterModel.String(), "ResourceFilterModel", "ResourceFilterModel", 1), `&`, ``, 1) + `,`,
4689 `}`,
4690 }, "")
4691 return s
4692 }
4693 func (this *ResourceFilterModel) String() string {
4694 if this == nil {
4695 return "nil"
4696 }
4697 s := strings.Join([]string{`&ResourceFilterModel{`,
4698 `NamedResources:` + strings.Replace(this.NamedResources.String(), "NamedResourcesFilter", "NamedResourcesFilter", 1) + `,`,
4699 `}`,
4700 }, "")
4701 return s
4702 }
4703 func (this *ResourceHandle) String() string {
4704 if this == nil {
4705 return "nil"
4706 }
4707 s := strings.Join([]string{`&ResourceHandle{`,
4708 `DriverName:` + fmt.Sprintf("%v", this.DriverName) + `,`,
4709 `Data:` + fmt.Sprintf("%v", this.Data) + `,`,
4710 `StructuredData:` + strings.Replace(this.StructuredData.String(), "StructuredResourceHandle", "StructuredResourceHandle", 1) + `,`,
4711 `}`,
4712 }, "")
4713 return s
4714 }
4715 func (this *ResourceModel) String() string {
4716 if this == nil {
4717 return "nil"
4718 }
4719 s := strings.Join([]string{`&ResourceModel{`,
4720 `NamedResources:` + strings.Replace(this.NamedResources.String(), "NamedResourcesResources", "NamedResourcesResources", 1) + `,`,
4721 `}`,
4722 }, "")
4723 return s
4724 }
4725 func (this *ResourceRequest) String() string {
4726 if this == nil {
4727 return "nil"
4728 }
4729 s := strings.Join([]string{`&ResourceRequest{`,
4730 `VendorParameters:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.VendorParameters), "RawExtension", "runtime.RawExtension", 1), `&`, ``, 1) + `,`,
4731 `ResourceRequestModel:` + strings.Replace(strings.Replace(this.ResourceRequestModel.String(), "ResourceRequestModel", "ResourceRequestModel", 1), `&`, ``, 1) + `,`,
4732 `}`,
4733 }, "")
4734 return s
4735 }
4736 func (this *ResourceRequestModel) String() string {
4737 if this == nil {
4738 return "nil"
4739 }
4740 s := strings.Join([]string{`&ResourceRequestModel{`,
4741 `NamedResources:` + strings.Replace(this.NamedResources.String(), "NamedResourcesRequest", "NamedResourcesRequest", 1) + `,`,
4742 `}`,
4743 }, "")
4744 return s
4745 }
4746 func (this *ResourceSlice) String() string {
4747 if this == nil {
4748 return "nil"
4749 }
4750 s := strings.Join([]string{`&ResourceSlice{`,
4751 `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v11.ObjectMeta", 1), `&`, ``, 1) + `,`,
4752 `NodeName:` + fmt.Sprintf("%v", this.NodeName) + `,`,
4753 `DriverName:` + fmt.Sprintf("%v", this.DriverName) + `,`,
4754 `ResourceModel:` + strings.Replace(strings.Replace(this.ResourceModel.String(), "ResourceModel", "ResourceModel", 1), `&`, ``, 1) + `,`,
4755 `}`,
4756 }, "")
4757 return s
4758 }
4759 func (this *ResourceSliceList) String() string {
4760 if this == nil {
4761 return "nil"
4762 }
4763 repeatedStringForItems := "[]ResourceSlice{"
4764 for _, f := range this.Items {
4765 repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ResourceSlice", "ResourceSlice", 1), `&`, ``, 1) + ","
4766 }
4767 repeatedStringForItems += "}"
4768 s := strings.Join([]string{`&ResourceSliceList{`,
4769 `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v11.ListMeta", 1), `&`, ``, 1) + `,`,
4770 `Items:` + repeatedStringForItems + `,`,
4771 `}`,
4772 }, "")
4773 return s
4774 }
4775 func (this *StructuredResourceHandle) String() string {
4776 if this == nil {
4777 return "nil"
4778 }
4779 repeatedStringForResults := "[]DriverAllocationResult{"
4780 for _, f := range this.Results {
4781 repeatedStringForResults += strings.Replace(strings.Replace(f.String(), "DriverAllocationResult", "DriverAllocationResult", 1), `&`, ``, 1) + ","
4782 }
4783 repeatedStringForResults += "}"
4784 s := strings.Join([]string{`&StructuredResourceHandle{`,
4785 `VendorClassParameters:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.VendorClassParameters), "RawExtension", "runtime.RawExtension", 1), `&`, ``, 1) + `,`,
4786 `VendorClaimParameters:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.VendorClaimParameters), "RawExtension", "runtime.RawExtension", 1), `&`, ``, 1) + `,`,
4787 `NodeName:` + fmt.Sprintf("%v", this.NodeName) + `,`,
4788 `Results:` + repeatedStringForResults + `,`,
4789 `}`,
4790 }, "")
4791 return s
4792 }
4793 func (this *VendorParameters) String() string {
4794 if this == nil {
4795 return "nil"
4796 }
4797 s := strings.Join([]string{`&VendorParameters{`,
4798 `DriverName:` + fmt.Sprintf("%v", this.DriverName) + `,`,
4799 `Parameters:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Parameters), "RawExtension", "runtime.RawExtension", 1), `&`, ``, 1) + `,`,
4800 `}`,
4801 }, "")
4802 return s
4803 }
4804 func valueToStringGenerated(v interface{}) string {
4805 rv := reflect.ValueOf(v)
4806 if rv.IsNil() {
4807 return "nil"
4808 }
4809 pv := reflect.Indirect(rv).Interface()
4810 return fmt.Sprintf("*%v", pv)
4811 }
4812 func (m *AllocationResult) Unmarshal(dAtA []byte) error {
4813 l := len(dAtA)
4814 iNdEx := 0
4815 for iNdEx < l {
4816 preIndex := iNdEx
4817 var wire uint64
4818 for shift := uint(0); ; shift += 7 {
4819 if shift >= 64 {
4820 return ErrIntOverflowGenerated
4821 }
4822 if iNdEx >= l {
4823 return io.ErrUnexpectedEOF
4824 }
4825 b := dAtA[iNdEx]
4826 iNdEx++
4827 wire |= uint64(b&0x7F) << shift
4828 if b < 0x80 {
4829 break
4830 }
4831 }
4832 fieldNum := int32(wire >> 3)
4833 wireType := int(wire & 0x7)
4834 if wireType == 4 {
4835 return fmt.Errorf("proto: AllocationResult: wiretype end group for non-group")
4836 }
4837 if fieldNum <= 0 {
4838 return fmt.Errorf("proto: AllocationResult: illegal tag %d (wire type %d)", fieldNum, wire)
4839 }
4840 switch fieldNum {
4841 case 1:
4842 if wireType != 2 {
4843 return fmt.Errorf("proto: wrong wireType = %d for field ResourceHandles", wireType)
4844 }
4845 var msglen int
4846 for shift := uint(0); ; shift += 7 {
4847 if shift >= 64 {
4848 return ErrIntOverflowGenerated
4849 }
4850 if iNdEx >= l {
4851 return io.ErrUnexpectedEOF
4852 }
4853 b := dAtA[iNdEx]
4854 iNdEx++
4855 msglen |= int(b&0x7F) << shift
4856 if b < 0x80 {
4857 break
4858 }
4859 }
4860 if msglen < 0 {
4861 return ErrInvalidLengthGenerated
4862 }
4863 postIndex := iNdEx + msglen
4864 if postIndex < 0 {
4865 return ErrInvalidLengthGenerated
4866 }
4867 if postIndex > l {
4868 return io.ErrUnexpectedEOF
4869 }
4870 m.ResourceHandles = append(m.ResourceHandles, ResourceHandle{})
4871 if err := m.ResourceHandles[len(m.ResourceHandles)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
4872 return err
4873 }
4874 iNdEx = postIndex
4875 case 2:
4876 if wireType != 2 {
4877 return fmt.Errorf("proto: wrong wireType = %d for field AvailableOnNodes", wireType)
4878 }
4879 var msglen int
4880 for shift := uint(0); ; shift += 7 {
4881 if shift >= 64 {
4882 return ErrIntOverflowGenerated
4883 }
4884 if iNdEx >= l {
4885 return io.ErrUnexpectedEOF
4886 }
4887 b := dAtA[iNdEx]
4888 iNdEx++
4889 msglen |= int(b&0x7F) << shift
4890 if b < 0x80 {
4891 break
4892 }
4893 }
4894 if msglen < 0 {
4895 return ErrInvalidLengthGenerated
4896 }
4897 postIndex := iNdEx + msglen
4898 if postIndex < 0 {
4899 return ErrInvalidLengthGenerated
4900 }
4901 if postIndex > l {
4902 return io.ErrUnexpectedEOF
4903 }
4904 if m.AvailableOnNodes == nil {
4905 m.AvailableOnNodes = &v1.NodeSelector{}
4906 }
4907 if err := m.AvailableOnNodes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
4908 return err
4909 }
4910 iNdEx = postIndex
4911 case 3:
4912 if wireType != 0 {
4913 return fmt.Errorf("proto: wrong wireType = %d for field Shareable", wireType)
4914 }
4915 var v int
4916 for shift := uint(0); ; shift += 7 {
4917 if shift >= 64 {
4918 return ErrIntOverflowGenerated
4919 }
4920 if iNdEx >= l {
4921 return io.ErrUnexpectedEOF
4922 }
4923 b := dAtA[iNdEx]
4924 iNdEx++
4925 v |= int(b&0x7F) << shift
4926 if b < 0x80 {
4927 break
4928 }
4929 }
4930 m.Shareable = bool(v != 0)
4931 default:
4932 iNdEx = preIndex
4933 skippy, err := skipGenerated(dAtA[iNdEx:])
4934 if err != nil {
4935 return err
4936 }
4937 if (skippy < 0) || (iNdEx+skippy) < 0 {
4938 return ErrInvalidLengthGenerated
4939 }
4940 if (iNdEx + skippy) > l {
4941 return io.ErrUnexpectedEOF
4942 }
4943 iNdEx += skippy
4944 }
4945 }
4946
4947 if iNdEx > l {
4948 return io.ErrUnexpectedEOF
4949 }
4950 return nil
4951 }
4952 func (m *AllocationResultModel) Unmarshal(dAtA []byte) error {
4953 l := len(dAtA)
4954 iNdEx := 0
4955 for iNdEx < l {
4956 preIndex := iNdEx
4957 var wire uint64
4958 for shift := uint(0); ; shift += 7 {
4959 if shift >= 64 {
4960 return ErrIntOverflowGenerated
4961 }
4962 if iNdEx >= l {
4963 return io.ErrUnexpectedEOF
4964 }
4965 b := dAtA[iNdEx]
4966 iNdEx++
4967 wire |= uint64(b&0x7F) << shift
4968 if b < 0x80 {
4969 break
4970 }
4971 }
4972 fieldNum := int32(wire >> 3)
4973 wireType := int(wire & 0x7)
4974 if wireType == 4 {
4975 return fmt.Errorf("proto: AllocationResultModel: wiretype end group for non-group")
4976 }
4977 if fieldNum <= 0 {
4978 return fmt.Errorf("proto: AllocationResultModel: illegal tag %d (wire type %d)", fieldNum, wire)
4979 }
4980 switch fieldNum {
4981 case 1:
4982 if wireType != 2 {
4983 return fmt.Errorf("proto: wrong wireType = %d for field NamedResources", wireType)
4984 }
4985 var msglen int
4986 for shift := uint(0); ; shift += 7 {
4987 if shift >= 64 {
4988 return ErrIntOverflowGenerated
4989 }
4990 if iNdEx >= l {
4991 return io.ErrUnexpectedEOF
4992 }
4993 b := dAtA[iNdEx]
4994 iNdEx++
4995 msglen |= int(b&0x7F) << shift
4996 if b < 0x80 {
4997 break
4998 }
4999 }
5000 if msglen < 0 {
5001 return ErrInvalidLengthGenerated
5002 }
5003 postIndex := iNdEx + msglen
5004 if postIndex < 0 {
5005 return ErrInvalidLengthGenerated
5006 }
5007 if postIndex > l {
5008 return io.ErrUnexpectedEOF
5009 }
5010 if m.NamedResources == nil {
5011 m.NamedResources = &NamedResourcesAllocationResult{}
5012 }
5013 if err := m.NamedResources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
5014 return err
5015 }
5016 iNdEx = postIndex
5017 default:
5018 iNdEx = preIndex
5019 skippy, err := skipGenerated(dAtA[iNdEx:])
5020 if err != nil {
5021 return err
5022 }
5023 if (skippy < 0) || (iNdEx+skippy) < 0 {
5024 return ErrInvalidLengthGenerated
5025 }
5026 if (iNdEx + skippy) > l {
5027 return io.ErrUnexpectedEOF
5028 }
5029 iNdEx += skippy
5030 }
5031 }
5032
5033 if iNdEx > l {
5034 return io.ErrUnexpectedEOF
5035 }
5036 return nil
5037 }
5038 func (m *DriverAllocationResult) Unmarshal(dAtA []byte) error {
5039 l := len(dAtA)
5040 iNdEx := 0
5041 for iNdEx < l {
5042 preIndex := iNdEx
5043 var wire uint64
5044 for shift := uint(0); ; shift += 7 {
5045 if shift >= 64 {
5046 return ErrIntOverflowGenerated
5047 }
5048 if iNdEx >= l {
5049 return io.ErrUnexpectedEOF
5050 }
5051 b := dAtA[iNdEx]
5052 iNdEx++
5053 wire |= uint64(b&0x7F) << shift
5054 if b < 0x80 {
5055 break
5056 }
5057 }
5058 fieldNum := int32(wire >> 3)
5059 wireType := int(wire & 0x7)
5060 if wireType == 4 {
5061 return fmt.Errorf("proto: DriverAllocationResult: wiretype end group for non-group")
5062 }
5063 if fieldNum <= 0 {
5064 return fmt.Errorf("proto: DriverAllocationResult: illegal tag %d (wire type %d)", fieldNum, wire)
5065 }
5066 switch fieldNum {
5067 case 1:
5068 if wireType != 2 {
5069 return fmt.Errorf("proto: wrong wireType = %d for field VendorRequestParameters", wireType)
5070 }
5071 var msglen int
5072 for shift := uint(0); ; shift += 7 {
5073 if shift >= 64 {
5074 return ErrIntOverflowGenerated
5075 }
5076 if iNdEx >= l {
5077 return io.ErrUnexpectedEOF
5078 }
5079 b := dAtA[iNdEx]
5080 iNdEx++
5081 msglen |= int(b&0x7F) << shift
5082 if b < 0x80 {
5083 break
5084 }
5085 }
5086 if msglen < 0 {
5087 return ErrInvalidLengthGenerated
5088 }
5089 postIndex := iNdEx + msglen
5090 if postIndex < 0 {
5091 return ErrInvalidLengthGenerated
5092 }
5093 if postIndex > l {
5094 return io.ErrUnexpectedEOF
5095 }
5096 if err := m.VendorRequestParameters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
5097 return err
5098 }
5099 iNdEx = postIndex
5100 case 2:
5101 if wireType != 2 {
5102 return fmt.Errorf("proto: wrong wireType = %d for field AllocationResultModel", wireType)
5103 }
5104 var msglen int
5105 for shift := uint(0); ; shift += 7 {
5106 if shift >= 64 {
5107 return ErrIntOverflowGenerated
5108 }
5109 if iNdEx >= l {
5110 return io.ErrUnexpectedEOF
5111 }
5112 b := dAtA[iNdEx]
5113 iNdEx++
5114 msglen |= int(b&0x7F) << shift
5115 if b < 0x80 {
5116 break
5117 }
5118 }
5119 if msglen < 0 {
5120 return ErrInvalidLengthGenerated
5121 }
5122 postIndex := iNdEx + msglen
5123 if postIndex < 0 {
5124 return ErrInvalidLengthGenerated
5125 }
5126 if postIndex > l {
5127 return io.ErrUnexpectedEOF
5128 }
5129 if err := m.AllocationResultModel.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
5130 return err
5131 }
5132 iNdEx = postIndex
5133 default:
5134 iNdEx = preIndex
5135 skippy, err := skipGenerated(dAtA[iNdEx:])
5136 if err != nil {
5137 return err
5138 }
5139 if (skippy < 0) || (iNdEx+skippy) < 0 {
5140 return ErrInvalidLengthGenerated
5141 }
5142 if (iNdEx + skippy) > l {
5143 return io.ErrUnexpectedEOF
5144 }
5145 iNdEx += skippy
5146 }
5147 }
5148
5149 if iNdEx > l {
5150 return io.ErrUnexpectedEOF
5151 }
5152 return nil
5153 }
5154 func (m *DriverRequests) Unmarshal(dAtA []byte) error {
5155 l := len(dAtA)
5156 iNdEx := 0
5157 for iNdEx < l {
5158 preIndex := iNdEx
5159 var wire uint64
5160 for shift := uint(0); ; shift += 7 {
5161 if shift >= 64 {
5162 return ErrIntOverflowGenerated
5163 }
5164 if iNdEx >= l {
5165 return io.ErrUnexpectedEOF
5166 }
5167 b := dAtA[iNdEx]
5168 iNdEx++
5169 wire |= uint64(b&0x7F) << shift
5170 if b < 0x80 {
5171 break
5172 }
5173 }
5174 fieldNum := int32(wire >> 3)
5175 wireType := int(wire & 0x7)
5176 if wireType == 4 {
5177 return fmt.Errorf("proto: DriverRequests: wiretype end group for non-group")
5178 }
5179 if fieldNum <= 0 {
5180 return fmt.Errorf("proto: DriverRequests: illegal tag %d (wire type %d)", fieldNum, wire)
5181 }
5182 switch fieldNum {
5183 case 1:
5184 if wireType != 2 {
5185 return fmt.Errorf("proto: wrong wireType = %d for field DriverName", wireType)
5186 }
5187 var stringLen uint64
5188 for shift := uint(0); ; shift += 7 {
5189 if shift >= 64 {
5190 return ErrIntOverflowGenerated
5191 }
5192 if iNdEx >= l {
5193 return io.ErrUnexpectedEOF
5194 }
5195 b := dAtA[iNdEx]
5196 iNdEx++
5197 stringLen |= uint64(b&0x7F) << shift
5198 if b < 0x80 {
5199 break
5200 }
5201 }
5202 intStringLen := int(stringLen)
5203 if intStringLen < 0 {
5204 return ErrInvalidLengthGenerated
5205 }
5206 postIndex := iNdEx + intStringLen
5207 if postIndex < 0 {
5208 return ErrInvalidLengthGenerated
5209 }
5210 if postIndex > l {
5211 return io.ErrUnexpectedEOF
5212 }
5213 m.DriverName = string(dAtA[iNdEx:postIndex])
5214 iNdEx = postIndex
5215 case 2:
5216 if wireType != 2 {
5217 return fmt.Errorf("proto: wrong wireType = %d for field VendorParameters", wireType)
5218 }
5219 var msglen int
5220 for shift := uint(0); ; shift += 7 {
5221 if shift >= 64 {
5222 return ErrIntOverflowGenerated
5223 }
5224 if iNdEx >= l {
5225 return io.ErrUnexpectedEOF
5226 }
5227 b := dAtA[iNdEx]
5228 iNdEx++
5229 msglen |= int(b&0x7F) << shift
5230 if b < 0x80 {
5231 break
5232 }
5233 }
5234 if msglen < 0 {
5235 return ErrInvalidLengthGenerated
5236 }
5237 postIndex := iNdEx + msglen
5238 if postIndex < 0 {
5239 return ErrInvalidLengthGenerated
5240 }
5241 if postIndex > l {
5242 return io.ErrUnexpectedEOF
5243 }
5244 if err := m.VendorParameters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
5245 return err
5246 }
5247 iNdEx = postIndex
5248 case 3:
5249 if wireType != 2 {
5250 return fmt.Errorf("proto: wrong wireType = %d for field Requests", wireType)
5251 }
5252 var msglen int
5253 for shift := uint(0); ; shift += 7 {
5254 if shift >= 64 {
5255 return ErrIntOverflowGenerated
5256 }
5257 if iNdEx >= l {
5258 return io.ErrUnexpectedEOF
5259 }
5260 b := dAtA[iNdEx]
5261 iNdEx++
5262 msglen |= int(b&0x7F) << shift
5263 if b < 0x80 {
5264 break
5265 }
5266 }
5267 if msglen < 0 {
5268 return ErrInvalidLengthGenerated
5269 }
5270 postIndex := iNdEx + msglen
5271 if postIndex < 0 {
5272 return ErrInvalidLengthGenerated
5273 }
5274 if postIndex > l {
5275 return io.ErrUnexpectedEOF
5276 }
5277 m.Requests = append(m.Requests, ResourceRequest{})
5278 if err := m.Requests[len(m.Requests)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
5279 return err
5280 }
5281 iNdEx = postIndex
5282 default:
5283 iNdEx = preIndex
5284 skippy, err := skipGenerated(dAtA[iNdEx:])
5285 if err != nil {
5286 return err
5287 }
5288 if (skippy < 0) || (iNdEx+skippy) < 0 {
5289 return ErrInvalidLengthGenerated
5290 }
5291 if (iNdEx + skippy) > l {
5292 return io.ErrUnexpectedEOF
5293 }
5294 iNdEx += skippy
5295 }
5296 }
5297
5298 if iNdEx > l {
5299 return io.ErrUnexpectedEOF
5300 }
5301 return nil
5302 }
5303 func (m *NamedResourcesAllocationResult) Unmarshal(dAtA []byte) error {
5304 l := len(dAtA)
5305 iNdEx := 0
5306 for iNdEx < l {
5307 preIndex := iNdEx
5308 var wire uint64
5309 for shift := uint(0); ; shift += 7 {
5310 if shift >= 64 {
5311 return ErrIntOverflowGenerated
5312 }
5313 if iNdEx >= l {
5314 return io.ErrUnexpectedEOF
5315 }
5316 b := dAtA[iNdEx]
5317 iNdEx++
5318 wire |= uint64(b&0x7F) << shift
5319 if b < 0x80 {
5320 break
5321 }
5322 }
5323 fieldNum := int32(wire >> 3)
5324 wireType := int(wire & 0x7)
5325 if wireType == 4 {
5326 return fmt.Errorf("proto: NamedResourcesAllocationResult: wiretype end group for non-group")
5327 }
5328 if fieldNum <= 0 {
5329 return fmt.Errorf("proto: NamedResourcesAllocationResult: illegal tag %d (wire type %d)", fieldNum, wire)
5330 }
5331 switch fieldNum {
5332 case 1:
5333 if wireType != 2 {
5334 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
5335 }
5336 var stringLen uint64
5337 for shift := uint(0); ; shift += 7 {
5338 if shift >= 64 {
5339 return ErrIntOverflowGenerated
5340 }
5341 if iNdEx >= l {
5342 return io.ErrUnexpectedEOF
5343 }
5344 b := dAtA[iNdEx]
5345 iNdEx++
5346 stringLen |= uint64(b&0x7F) << shift
5347 if b < 0x80 {
5348 break
5349 }
5350 }
5351 intStringLen := int(stringLen)
5352 if intStringLen < 0 {
5353 return ErrInvalidLengthGenerated
5354 }
5355 postIndex := iNdEx + intStringLen
5356 if postIndex < 0 {
5357 return ErrInvalidLengthGenerated
5358 }
5359 if postIndex > l {
5360 return io.ErrUnexpectedEOF
5361 }
5362 m.Name = string(dAtA[iNdEx:postIndex])
5363 iNdEx = postIndex
5364 default:
5365 iNdEx = preIndex
5366 skippy, err := skipGenerated(dAtA[iNdEx:])
5367 if err != nil {
5368 return err
5369 }
5370 if (skippy < 0) || (iNdEx+skippy) < 0 {
5371 return ErrInvalidLengthGenerated
5372 }
5373 if (iNdEx + skippy) > l {
5374 return io.ErrUnexpectedEOF
5375 }
5376 iNdEx += skippy
5377 }
5378 }
5379
5380 if iNdEx > l {
5381 return io.ErrUnexpectedEOF
5382 }
5383 return nil
5384 }
5385 func (m *NamedResourcesAttribute) Unmarshal(dAtA []byte) error {
5386 l := len(dAtA)
5387 iNdEx := 0
5388 for iNdEx < l {
5389 preIndex := iNdEx
5390 var wire uint64
5391 for shift := uint(0); ; shift += 7 {
5392 if shift >= 64 {
5393 return ErrIntOverflowGenerated
5394 }
5395 if iNdEx >= l {
5396 return io.ErrUnexpectedEOF
5397 }
5398 b := dAtA[iNdEx]
5399 iNdEx++
5400 wire |= uint64(b&0x7F) << shift
5401 if b < 0x80 {
5402 break
5403 }
5404 }
5405 fieldNum := int32(wire >> 3)
5406 wireType := int(wire & 0x7)
5407 if wireType == 4 {
5408 return fmt.Errorf("proto: NamedResourcesAttribute: wiretype end group for non-group")
5409 }
5410 if fieldNum <= 0 {
5411 return fmt.Errorf("proto: NamedResourcesAttribute: illegal tag %d (wire type %d)", fieldNum, wire)
5412 }
5413 switch fieldNum {
5414 case 1:
5415 if wireType != 2 {
5416 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
5417 }
5418 var stringLen uint64
5419 for shift := uint(0); ; shift += 7 {
5420 if shift >= 64 {
5421 return ErrIntOverflowGenerated
5422 }
5423 if iNdEx >= l {
5424 return io.ErrUnexpectedEOF
5425 }
5426 b := dAtA[iNdEx]
5427 iNdEx++
5428 stringLen |= uint64(b&0x7F) << shift
5429 if b < 0x80 {
5430 break
5431 }
5432 }
5433 intStringLen := int(stringLen)
5434 if intStringLen < 0 {
5435 return ErrInvalidLengthGenerated
5436 }
5437 postIndex := iNdEx + intStringLen
5438 if postIndex < 0 {
5439 return ErrInvalidLengthGenerated
5440 }
5441 if postIndex > l {
5442 return io.ErrUnexpectedEOF
5443 }
5444 m.Name = string(dAtA[iNdEx:postIndex])
5445 iNdEx = postIndex
5446 case 2:
5447 if wireType != 2 {
5448 return fmt.Errorf("proto: wrong wireType = %d for field NamedResourcesAttributeValue", wireType)
5449 }
5450 var msglen int
5451 for shift := uint(0); ; shift += 7 {
5452 if shift >= 64 {
5453 return ErrIntOverflowGenerated
5454 }
5455 if iNdEx >= l {
5456 return io.ErrUnexpectedEOF
5457 }
5458 b := dAtA[iNdEx]
5459 iNdEx++
5460 msglen |= int(b&0x7F) << shift
5461 if b < 0x80 {
5462 break
5463 }
5464 }
5465 if msglen < 0 {
5466 return ErrInvalidLengthGenerated
5467 }
5468 postIndex := iNdEx + msglen
5469 if postIndex < 0 {
5470 return ErrInvalidLengthGenerated
5471 }
5472 if postIndex > l {
5473 return io.ErrUnexpectedEOF
5474 }
5475 if err := m.NamedResourcesAttributeValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
5476 return err
5477 }
5478 iNdEx = postIndex
5479 default:
5480 iNdEx = preIndex
5481 skippy, err := skipGenerated(dAtA[iNdEx:])
5482 if err != nil {
5483 return err
5484 }
5485 if (skippy < 0) || (iNdEx+skippy) < 0 {
5486 return ErrInvalidLengthGenerated
5487 }
5488 if (iNdEx + skippy) > l {
5489 return io.ErrUnexpectedEOF
5490 }
5491 iNdEx += skippy
5492 }
5493 }
5494
5495 if iNdEx > l {
5496 return io.ErrUnexpectedEOF
5497 }
5498 return nil
5499 }
5500 func (m *NamedResourcesAttributeValue) Unmarshal(dAtA []byte) error {
5501 l := len(dAtA)
5502 iNdEx := 0
5503 for iNdEx < l {
5504 preIndex := iNdEx
5505 var wire uint64
5506 for shift := uint(0); ; shift += 7 {
5507 if shift >= 64 {
5508 return ErrIntOverflowGenerated
5509 }
5510 if iNdEx >= l {
5511 return io.ErrUnexpectedEOF
5512 }
5513 b := dAtA[iNdEx]
5514 iNdEx++
5515 wire |= uint64(b&0x7F) << shift
5516 if b < 0x80 {
5517 break
5518 }
5519 }
5520 fieldNum := int32(wire >> 3)
5521 wireType := int(wire & 0x7)
5522 if wireType == 4 {
5523 return fmt.Errorf("proto: NamedResourcesAttributeValue: wiretype end group for non-group")
5524 }
5525 if fieldNum <= 0 {
5526 return fmt.Errorf("proto: NamedResourcesAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire)
5527 }
5528 switch fieldNum {
5529 case 2:
5530 if wireType != 0 {
5531 return fmt.Errorf("proto: wrong wireType = %d for field BoolValue", wireType)
5532 }
5533 var v int
5534 for shift := uint(0); ; shift += 7 {
5535 if shift >= 64 {
5536 return ErrIntOverflowGenerated
5537 }
5538 if iNdEx >= l {
5539 return io.ErrUnexpectedEOF
5540 }
5541 b := dAtA[iNdEx]
5542 iNdEx++
5543 v |= int(b&0x7F) << shift
5544 if b < 0x80 {
5545 break
5546 }
5547 }
5548 b := bool(v != 0)
5549 m.BoolValue = &b
5550 case 5:
5551 if wireType != 2 {
5552 return fmt.Errorf("proto: wrong wireType = %d for field StringValue", wireType)
5553 }
5554 var stringLen uint64
5555 for shift := uint(0); ; shift += 7 {
5556 if shift >= 64 {
5557 return ErrIntOverflowGenerated
5558 }
5559 if iNdEx >= l {
5560 return io.ErrUnexpectedEOF
5561 }
5562 b := dAtA[iNdEx]
5563 iNdEx++
5564 stringLen |= uint64(b&0x7F) << shift
5565 if b < 0x80 {
5566 break
5567 }
5568 }
5569 intStringLen := int(stringLen)
5570 if intStringLen < 0 {
5571 return ErrInvalidLengthGenerated
5572 }
5573 postIndex := iNdEx + intStringLen
5574 if postIndex < 0 {
5575 return ErrInvalidLengthGenerated
5576 }
5577 if postIndex > l {
5578 return io.ErrUnexpectedEOF
5579 }
5580 s := string(dAtA[iNdEx:postIndex])
5581 m.StringValue = &s
5582 iNdEx = postIndex
5583 case 6:
5584 if wireType != 2 {
5585 return fmt.Errorf("proto: wrong wireType = %d for field QuantityValue", wireType)
5586 }
5587 var msglen int
5588 for shift := uint(0); ; shift += 7 {
5589 if shift >= 64 {
5590 return ErrIntOverflowGenerated
5591 }
5592 if iNdEx >= l {
5593 return io.ErrUnexpectedEOF
5594 }
5595 b := dAtA[iNdEx]
5596 iNdEx++
5597 msglen |= int(b&0x7F) << shift
5598 if b < 0x80 {
5599 break
5600 }
5601 }
5602 if msglen < 0 {
5603 return ErrInvalidLengthGenerated
5604 }
5605 postIndex := iNdEx + msglen
5606 if postIndex < 0 {
5607 return ErrInvalidLengthGenerated
5608 }
5609 if postIndex > l {
5610 return io.ErrUnexpectedEOF
5611 }
5612 if m.QuantityValue == nil {
5613 m.QuantityValue = &resource.Quantity{}
5614 }
5615 if err := m.QuantityValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
5616 return err
5617 }
5618 iNdEx = postIndex
5619 case 7:
5620 if wireType != 0 {
5621 return fmt.Errorf("proto: wrong wireType = %d for field IntValue", wireType)
5622 }
5623 var v int64
5624 for shift := uint(0); ; shift += 7 {
5625 if shift >= 64 {
5626 return ErrIntOverflowGenerated
5627 }
5628 if iNdEx >= l {
5629 return io.ErrUnexpectedEOF
5630 }
5631 b := dAtA[iNdEx]
5632 iNdEx++
5633 v |= int64(b&0x7F) << shift
5634 if b < 0x80 {
5635 break
5636 }
5637 }
5638 m.IntValue = &v
5639 case 8:
5640 if wireType != 2 {
5641 return fmt.Errorf("proto: wrong wireType = %d for field IntSliceValue", wireType)
5642 }
5643 var msglen int
5644 for shift := uint(0); ; shift += 7 {
5645 if shift >= 64 {
5646 return ErrIntOverflowGenerated
5647 }
5648 if iNdEx >= l {
5649 return io.ErrUnexpectedEOF
5650 }
5651 b := dAtA[iNdEx]
5652 iNdEx++
5653 msglen |= int(b&0x7F) << shift
5654 if b < 0x80 {
5655 break
5656 }
5657 }
5658 if msglen < 0 {
5659 return ErrInvalidLengthGenerated
5660 }
5661 postIndex := iNdEx + msglen
5662 if postIndex < 0 {
5663 return ErrInvalidLengthGenerated
5664 }
5665 if postIndex > l {
5666 return io.ErrUnexpectedEOF
5667 }
5668 if m.IntSliceValue == nil {
5669 m.IntSliceValue = &NamedResourcesIntSlice{}
5670 }
5671 if err := m.IntSliceValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
5672 return err
5673 }
5674 iNdEx = postIndex
5675 case 9:
5676 if wireType != 2 {
5677 return fmt.Errorf("proto: wrong wireType = %d for field StringSliceValue", wireType)
5678 }
5679 var msglen int
5680 for shift := uint(0); ; shift += 7 {
5681 if shift >= 64 {
5682 return ErrIntOverflowGenerated
5683 }
5684 if iNdEx >= l {
5685 return io.ErrUnexpectedEOF
5686 }
5687 b := dAtA[iNdEx]
5688 iNdEx++
5689 msglen |= int(b&0x7F) << shift
5690 if b < 0x80 {
5691 break
5692 }
5693 }
5694 if msglen < 0 {
5695 return ErrInvalidLengthGenerated
5696 }
5697 postIndex := iNdEx + msglen
5698 if postIndex < 0 {
5699 return ErrInvalidLengthGenerated
5700 }
5701 if postIndex > l {
5702 return io.ErrUnexpectedEOF
5703 }
5704 if m.StringSliceValue == nil {
5705 m.StringSliceValue = &NamedResourcesStringSlice{}
5706 }
5707 if err := m.StringSliceValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
5708 return err
5709 }
5710 iNdEx = postIndex
5711 case 10:
5712 if wireType != 2 {
5713 return fmt.Errorf("proto: wrong wireType = %d for field VersionValue", wireType)
5714 }
5715 var stringLen uint64
5716 for shift := uint(0); ; shift += 7 {
5717 if shift >= 64 {
5718 return ErrIntOverflowGenerated
5719 }
5720 if iNdEx >= l {
5721 return io.ErrUnexpectedEOF
5722 }
5723 b := dAtA[iNdEx]
5724 iNdEx++
5725 stringLen |= uint64(b&0x7F) << shift
5726 if b < 0x80 {
5727 break
5728 }
5729 }
5730 intStringLen := int(stringLen)
5731 if intStringLen < 0 {
5732 return ErrInvalidLengthGenerated
5733 }
5734 postIndex := iNdEx + intStringLen
5735 if postIndex < 0 {
5736 return ErrInvalidLengthGenerated
5737 }
5738 if postIndex > l {
5739 return io.ErrUnexpectedEOF
5740 }
5741 s := string(dAtA[iNdEx:postIndex])
5742 m.VersionValue = &s
5743 iNdEx = postIndex
5744 default:
5745 iNdEx = preIndex
5746 skippy, err := skipGenerated(dAtA[iNdEx:])
5747 if err != nil {
5748 return err
5749 }
5750 if (skippy < 0) || (iNdEx+skippy) < 0 {
5751 return ErrInvalidLengthGenerated
5752 }
5753 if (iNdEx + skippy) > l {
5754 return io.ErrUnexpectedEOF
5755 }
5756 iNdEx += skippy
5757 }
5758 }
5759
5760 if iNdEx > l {
5761 return io.ErrUnexpectedEOF
5762 }
5763 return nil
5764 }
5765 func (m *NamedResourcesFilter) Unmarshal(dAtA []byte) error {
5766 l := len(dAtA)
5767 iNdEx := 0
5768 for iNdEx < l {
5769 preIndex := iNdEx
5770 var wire uint64
5771 for shift := uint(0); ; shift += 7 {
5772 if shift >= 64 {
5773 return ErrIntOverflowGenerated
5774 }
5775 if iNdEx >= l {
5776 return io.ErrUnexpectedEOF
5777 }
5778 b := dAtA[iNdEx]
5779 iNdEx++
5780 wire |= uint64(b&0x7F) << shift
5781 if b < 0x80 {
5782 break
5783 }
5784 }
5785 fieldNum := int32(wire >> 3)
5786 wireType := int(wire & 0x7)
5787 if wireType == 4 {
5788 return fmt.Errorf("proto: NamedResourcesFilter: wiretype end group for non-group")
5789 }
5790 if fieldNum <= 0 {
5791 return fmt.Errorf("proto: NamedResourcesFilter: illegal tag %d (wire type %d)", fieldNum, wire)
5792 }
5793 switch fieldNum {
5794 case 1:
5795 if wireType != 2 {
5796 return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
5797 }
5798 var stringLen uint64
5799 for shift := uint(0); ; shift += 7 {
5800 if shift >= 64 {
5801 return ErrIntOverflowGenerated
5802 }
5803 if iNdEx >= l {
5804 return io.ErrUnexpectedEOF
5805 }
5806 b := dAtA[iNdEx]
5807 iNdEx++
5808 stringLen |= uint64(b&0x7F) << shift
5809 if b < 0x80 {
5810 break
5811 }
5812 }
5813 intStringLen := int(stringLen)
5814 if intStringLen < 0 {
5815 return ErrInvalidLengthGenerated
5816 }
5817 postIndex := iNdEx + intStringLen
5818 if postIndex < 0 {
5819 return ErrInvalidLengthGenerated
5820 }
5821 if postIndex > l {
5822 return io.ErrUnexpectedEOF
5823 }
5824 m.Selector = string(dAtA[iNdEx:postIndex])
5825 iNdEx = postIndex
5826 default:
5827 iNdEx = preIndex
5828 skippy, err := skipGenerated(dAtA[iNdEx:])
5829 if err != nil {
5830 return err
5831 }
5832 if (skippy < 0) || (iNdEx+skippy) < 0 {
5833 return ErrInvalidLengthGenerated
5834 }
5835 if (iNdEx + skippy) > l {
5836 return io.ErrUnexpectedEOF
5837 }
5838 iNdEx += skippy
5839 }
5840 }
5841
5842 if iNdEx > l {
5843 return io.ErrUnexpectedEOF
5844 }
5845 return nil
5846 }
5847 func (m *NamedResourcesInstance) Unmarshal(dAtA []byte) error {
5848 l := len(dAtA)
5849 iNdEx := 0
5850 for iNdEx < l {
5851 preIndex := iNdEx
5852 var wire uint64
5853 for shift := uint(0); ; shift += 7 {
5854 if shift >= 64 {
5855 return ErrIntOverflowGenerated
5856 }
5857 if iNdEx >= l {
5858 return io.ErrUnexpectedEOF
5859 }
5860 b := dAtA[iNdEx]
5861 iNdEx++
5862 wire |= uint64(b&0x7F) << shift
5863 if b < 0x80 {
5864 break
5865 }
5866 }
5867 fieldNum := int32(wire >> 3)
5868 wireType := int(wire & 0x7)
5869 if wireType == 4 {
5870 return fmt.Errorf("proto: NamedResourcesInstance: wiretype end group for non-group")
5871 }
5872 if fieldNum <= 0 {
5873 return fmt.Errorf("proto: NamedResourcesInstance: illegal tag %d (wire type %d)", fieldNum, wire)
5874 }
5875 switch fieldNum {
5876 case 1:
5877 if wireType != 2 {
5878 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
5879 }
5880 var stringLen uint64
5881 for shift := uint(0); ; shift += 7 {
5882 if shift >= 64 {
5883 return ErrIntOverflowGenerated
5884 }
5885 if iNdEx >= l {
5886 return io.ErrUnexpectedEOF
5887 }
5888 b := dAtA[iNdEx]
5889 iNdEx++
5890 stringLen |= uint64(b&0x7F) << shift
5891 if b < 0x80 {
5892 break
5893 }
5894 }
5895 intStringLen := int(stringLen)
5896 if intStringLen < 0 {
5897 return ErrInvalidLengthGenerated
5898 }
5899 postIndex := iNdEx + intStringLen
5900 if postIndex < 0 {
5901 return ErrInvalidLengthGenerated
5902 }
5903 if postIndex > l {
5904 return io.ErrUnexpectedEOF
5905 }
5906 m.Name = string(dAtA[iNdEx:postIndex])
5907 iNdEx = postIndex
5908 case 2:
5909 if wireType != 2 {
5910 return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType)
5911 }
5912 var msglen int
5913 for shift := uint(0); ; shift += 7 {
5914 if shift >= 64 {
5915 return ErrIntOverflowGenerated
5916 }
5917 if iNdEx >= l {
5918 return io.ErrUnexpectedEOF
5919 }
5920 b := dAtA[iNdEx]
5921 iNdEx++
5922 msglen |= int(b&0x7F) << shift
5923 if b < 0x80 {
5924 break
5925 }
5926 }
5927 if msglen < 0 {
5928 return ErrInvalidLengthGenerated
5929 }
5930 postIndex := iNdEx + msglen
5931 if postIndex < 0 {
5932 return ErrInvalidLengthGenerated
5933 }
5934 if postIndex > l {
5935 return io.ErrUnexpectedEOF
5936 }
5937 m.Attributes = append(m.Attributes, NamedResourcesAttribute{})
5938 if err := m.Attributes[len(m.Attributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
5939 return err
5940 }
5941 iNdEx = postIndex
5942 default:
5943 iNdEx = preIndex
5944 skippy, err := skipGenerated(dAtA[iNdEx:])
5945 if err != nil {
5946 return err
5947 }
5948 if (skippy < 0) || (iNdEx+skippy) < 0 {
5949 return ErrInvalidLengthGenerated
5950 }
5951 if (iNdEx + skippy) > l {
5952 return io.ErrUnexpectedEOF
5953 }
5954 iNdEx += skippy
5955 }
5956 }
5957
5958 if iNdEx > l {
5959 return io.ErrUnexpectedEOF
5960 }
5961 return nil
5962 }
5963 func (m *NamedResourcesIntSlice) Unmarshal(dAtA []byte) error {
5964 l := len(dAtA)
5965 iNdEx := 0
5966 for iNdEx < l {
5967 preIndex := iNdEx
5968 var wire uint64
5969 for shift := uint(0); ; shift += 7 {
5970 if shift >= 64 {
5971 return ErrIntOverflowGenerated
5972 }
5973 if iNdEx >= l {
5974 return io.ErrUnexpectedEOF
5975 }
5976 b := dAtA[iNdEx]
5977 iNdEx++
5978 wire |= uint64(b&0x7F) << shift
5979 if b < 0x80 {
5980 break
5981 }
5982 }
5983 fieldNum := int32(wire >> 3)
5984 wireType := int(wire & 0x7)
5985 if wireType == 4 {
5986 return fmt.Errorf("proto: NamedResourcesIntSlice: wiretype end group for non-group")
5987 }
5988 if fieldNum <= 0 {
5989 return fmt.Errorf("proto: NamedResourcesIntSlice: illegal tag %d (wire type %d)", fieldNum, wire)
5990 }
5991 switch fieldNum {
5992 case 1:
5993 if wireType == 0 {
5994 var v int64
5995 for shift := uint(0); ; shift += 7 {
5996 if shift >= 64 {
5997 return ErrIntOverflowGenerated
5998 }
5999 if iNdEx >= l {
6000 return io.ErrUnexpectedEOF
6001 }
6002 b := dAtA[iNdEx]
6003 iNdEx++
6004 v |= int64(b&0x7F) << shift
6005 if b < 0x80 {
6006 break
6007 }
6008 }
6009 m.Ints = append(m.Ints, v)
6010 } else if wireType == 2 {
6011 var packedLen int
6012 for shift := uint(0); ; shift += 7 {
6013 if shift >= 64 {
6014 return ErrIntOverflowGenerated
6015 }
6016 if iNdEx >= l {
6017 return io.ErrUnexpectedEOF
6018 }
6019 b := dAtA[iNdEx]
6020 iNdEx++
6021 packedLen |= int(b&0x7F) << shift
6022 if b < 0x80 {
6023 break
6024 }
6025 }
6026 if packedLen < 0 {
6027 return ErrInvalidLengthGenerated
6028 }
6029 postIndex := iNdEx + packedLen
6030 if postIndex < 0 {
6031 return ErrInvalidLengthGenerated
6032 }
6033 if postIndex > l {
6034 return io.ErrUnexpectedEOF
6035 }
6036 var elementCount int
6037 var count int
6038 for _, integer := range dAtA[iNdEx:postIndex] {
6039 if integer < 128 {
6040 count++
6041 }
6042 }
6043 elementCount = count
6044 if elementCount != 0 && len(m.Ints) == 0 {
6045 m.Ints = make([]int64, 0, elementCount)
6046 }
6047 for iNdEx < postIndex {
6048 var v int64
6049 for shift := uint(0); ; shift += 7 {
6050 if shift >= 64 {
6051 return ErrIntOverflowGenerated
6052 }
6053 if iNdEx >= l {
6054 return io.ErrUnexpectedEOF
6055 }
6056 b := dAtA[iNdEx]
6057 iNdEx++
6058 v |= int64(b&0x7F) << shift
6059 if b < 0x80 {
6060 break
6061 }
6062 }
6063 m.Ints = append(m.Ints, v)
6064 }
6065 } else {
6066 return fmt.Errorf("proto: wrong wireType = %d for field Ints", wireType)
6067 }
6068 default:
6069 iNdEx = preIndex
6070 skippy, err := skipGenerated(dAtA[iNdEx:])
6071 if err != nil {
6072 return err
6073 }
6074 if (skippy < 0) || (iNdEx+skippy) < 0 {
6075 return ErrInvalidLengthGenerated
6076 }
6077 if (iNdEx + skippy) > l {
6078 return io.ErrUnexpectedEOF
6079 }
6080 iNdEx += skippy
6081 }
6082 }
6083
6084 if iNdEx > l {
6085 return io.ErrUnexpectedEOF
6086 }
6087 return nil
6088 }
6089 func (m *NamedResourcesRequest) Unmarshal(dAtA []byte) error {
6090 l := len(dAtA)
6091 iNdEx := 0
6092 for iNdEx < l {
6093 preIndex := iNdEx
6094 var wire uint64
6095 for shift := uint(0); ; shift += 7 {
6096 if shift >= 64 {
6097 return ErrIntOverflowGenerated
6098 }
6099 if iNdEx >= l {
6100 return io.ErrUnexpectedEOF
6101 }
6102 b := dAtA[iNdEx]
6103 iNdEx++
6104 wire |= uint64(b&0x7F) << shift
6105 if b < 0x80 {
6106 break
6107 }
6108 }
6109 fieldNum := int32(wire >> 3)
6110 wireType := int(wire & 0x7)
6111 if wireType == 4 {
6112 return fmt.Errorf("proto: NamedResourcesRequest: wiretype end group for non-group")
6113 }
6114 if fieldNum <= 0 {
6115 return fmt.Errorf("proto: NamedResourcesRequest: illegal tag %d (wire type %d)", fieldNum, wire)
6116 }
6117 switch fieldNum {
6118 case 1:
6119 if wireType != 2 {
6120 return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
6121 }
6122 var stringLen uint64
6123 for shift := uint(0); ; shift += 7 {
6124 if shift >= 64 {
6125 return ErrIntOverflowGenerated
6126 }
6127 if iNdEx >= l {
6128 return io.ErrUnexpectedEOF
6129 }
6130 b := dAtA[iNdEx]
6131 iNdEx++
6132 stringLen |= uint64(b&0x7F) << shift
6133 if b < 0x80 {
6134 break
6135 }
6136 }
6137 intStringLen := int(stringLen)
6138 if intStringLen < 0 {
6139 return ErrInvalidLengthGenerated
6140 }
6141 postIndex := iNdEx + intStringLen
6142 if postIndex < 0 {
6143 return ErrInvalidLengthGenerated
6144 }
6145 if postIndex > l {
6146 return io.ErrUnexpectedEOF
6147 }
6148 m.Selector = string(dAtA[iNdEx:postIndex])
6149 iNdEx = postIndex
6150 default:
6151 iNdEx = preIndex
6152 skippy, err := skipGenerated(dAtA[iNdEx:])
6153 if err != nil {
6154 return err
6155 }
6156 if (skippy < 0) || (iNdEx+skippy) < 0 {
6157 return ErrInvalidLengthGenerated
6158 }
6159 if (iNdEx + skippy) > l {
6160 return io.ErrUnexpectedEOF
6161 }
6162 iNdEx += skippy
6163 }
6164 }
6165
6166 if iNdEx > l {
6167 return io.ErrUnexpectedEOF
6168 }
6169 return nil
6170 }
6171 func (m *NamedResourcesResources) Unmarshal(dAtA []byte) error {
6172 l := len(dAtA)
6173 iNdEx := 0
6174 for iNdEx < l {
6175 preIndex := iNdEx
6176 var wire uint64
6177 for shift := uint(0); ; shift += 7 {
6178 if shift >= 64 {
6179 return ErrIntOverflowGenerated
6180 }
6181 if iNdEx >= l {
6182 return io.ErrUnexpectedEOF
6183 }
6184 b := dAtA[iNdEx]
6185 iNdEx++
6186 wire |= uint64(b&0x7F) << shift
6187 if b < 0x80 {
6188 break
6189 }
6190 }
6191 fieldNum := int32(wire >> 3)
6192 wireType := int(wire & 0x7)
6193 if wireType == 4 {
6194 return fmt.Errorf("proto: NamedResourcesResources: wiretype end group for non-group")
6195 }
6196 if fieldNum <= 0 {
6197 return fmt.Errorf("proto: NamedResourcesResources: illegal tag %d (wire type %d)", fieldNum, wire)
6198 }
6199 switch fieldNum {
6200 case 1:
6201 if wireType != 2 {
6202 return fmt.Errorf("proto: wrong wireType = %d for field Instances", wireType)
6203 }
6204 var msglen int
6205 for shift := uint(0); ; shift += 7 {
6206 if shift >= 64 {
6207 return ErrIntOverflowGenerated
6208 }
6209 if iNdEx >= l {
6210 return io.ErrUnexpectedEOF
6211 }
6212 b := dAtA[iNdEx]
6213 iNdEx++
6214 msglen |= int(b&0x7F) << shift
6215 if b < 0x80 {
6216 break
6217 }
6218 }
6219 if msglen < 0 {
6220 return ErrInvalidLengthGenerated
6221 }
6222 postIndex := iNdEx + msglen
6223 if postIndex < 0 {
6224 return ErrInvalidLengthGenerated
6225 }
6226 if postIndex > l {
6227 return io.ErrUnexpectedEOF
6228 }
6229 m.Instances = append(m.Instances, NamedResourcesInstance{})
6230 if err := m.Instances[len(m.Instances)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
6231 return err
6232 }
6233 iNdEx = postIndex
6234 default:
6235 iNdEx = preIndex
6236 skippy, err := skipGenerated(dAtA[iNdEx:])
6237 if err != nil {
6238 return err
6239 }
6240 if (skippy < 0) || (iNdEx+skippy) < 0 {
6241 return ErrInvalidLengthGenerated
6242 }
6243 if (iNdEx + skippy) > l {
6244 return io.ErrUnexpectedEOF
6245 }
6246 iNdEx += skippy
6247 }
6248 }
6249
6250 if iNdEx > l {
6251 return io.ErrUnexpectedEOF
6252 }
6253 return nil
6254 }
6255 func (m *NamedResourcesStringSlice) Unmarshal(dAtA []byte) error {
6256 l := len(dAtA)
6257 iNdEx := 0
6258 for iNdEx < l {
6259 preIndex := iNdEx
6260 var wire uint64
6261 for shift := uint(0); ; shift += 7 {
6262 if shift >= 64 {
6263 return ErrIntOverflowGenerated
6264 }
6265 if iNdEx >= l {
6266 return io.ErrUnexpectedEOF
6267 }
6268 b := dAtA[iNdEx]
6269 iNdEx++
6270 wire |= uint64(b&0x7F) << shift
6271 if b < 0x80 {
6272 break
6273 }
6274 }
6275 fieldNum := int32(wire >> 3)
6276 wireType := int(wire & 0x7)
6277 if wireType == 4 {
6278 return fmt.Errorf("proto: NamedResourcesStringSlice: wiretype end group for non-group")
6279 }
6280 if fieldNum <= 0 {
6281 return fmt.Errorf("proto: NamedResourcesStringSlice: illegal tag %d (wire type %d)", fieldNum, wire)
6282 }
6283 switch fieldNum {
6284 case 1:
6285 if wireType != 2 {
6286 return fmt.Errorf("proto: wrong wireType = %d for field Strings", wireType)
6287 }
6288 var stringLen uint64
6289 for shift := uint(0); ; shift += 7 {
6290 if shift >= 64 {
6291 return ErrIntOverflowGenerated
6292 }
6293 if iNdEx >= l {
6294 return io.ErrUnexpectedEOF
6295 }
6296 b := dAtA[iNdEx]
6297 iNdEx++
6298 stringLen |= uint64(b&0x7F) << shift
6299 if b < 0x80 {
6300 break
6301 }
6302 }
6303 intStringLen := int(stringLen)
6304 if intStringLen < 0 {
6305 return ErrInvalidLengthGenerated
6306 }
6307 postIndex := iNdEx + intStringLen
6308 if postIndex < 0 {
6309 return ErrInvalidLengthGenerated
6310 }
6311 if postIndex > l {
6312 return io.ErrUnexpectedEOF
6313 }
6314 m.Strings = append(m.Strings, string(dAtA[iNdEx:postIndex]))
6315 iNdEx = postIndex
6316 default:
6317 iNdEx = preIndex
6318 skippy, err := skipGenerated(dAtA[iNdEx:])
6319 if err != nil {
6320 return err
6321 }
6322 if (skippy < 0) || (iNdEx+skippy) < 0 {
6323 return ErrInvalidLengthGenerated
6324 }
6325 if (iNdEx + skippy) > l {
6326 return io.ErrUnexpectedEOF
6327 }
6328 iNdEx += skippy
6329 }
6330 }
6331
6332 if iNdEx > l {
6333 return io.ErrUnexpectedEOF
6334 }
6335 return nil
6336 }
6337 func (m *PodSchedulingContext) Unmarshal(dAtA []byte) error {
6338 l := len(dAtA)
6339 iNdEx := 0
6340 for iNdEx < l {
6341 preIndex := iNdEx
6342 var wire uint64
6343 for shift := uint(0); ; shift += 7 {
6344 if shift >= 64 {
6345 return ErrIntOverflowGenerated
6346 }
6347 if iNdEx >= l {
6348 return io.ErrUnexpectedEOF
6349 }
6350 b := dAtA[iNdEx]
6351 iNdEx++
6352 wire |= uint64(b&0x7F) << shift
6353 if b < 0x80 {
6354 break
6355 }
6356 }
6357 fieldNum := int32(wire >> 3)
6358 wireType := int(wire & 0x7)
6359 if wireType == 4 {
6360 return fmt.Errorf("proto: PodSchedulingContext: wiretype end group for non-group")
6361 }
6362 if fieldNum <= 0 {
6363 return fmt.Errorf("proto: PodSchedulingContext: illegal tag %d (wire type %d)", fieldNum, wire)
6364 }
6365 switch fieldNum {
6366 case 1:
6367 if wireType != 2 {
6368 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
6369 }
6370 var msglen int
6371 for shift := uint(0); ; shift += 7 {
6372 if shift >= 64 {
6373 return ErrIntOverflowGenerated
6374 }
6375 if iNdEx >= l {
6376 return io.ErrUnexpectedEOF
6377 }
6378 b := dAtA[iNdEx]
6379 iNdEx++
6380 msglen |= int(b&0x7F) << shift
6381 if b < 0x80 {
6382 break
6383 }
6384 }
6385 if msglen < 0 {
6386 return ErrInvalidLengthGenerated
6387 }
6388 postIndex := iNdEx + msglen
6389 if postIndex < 0 {
6390 return ErrInvalidLengthGenerated
6391 }
6392 if postIndex > l {
6393 return io.ErrUnexpectedEOF
6394 }
6395 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
6396 return err
6397 }
6398 iNdEx = postIndex
6399 case 2:
6400 if wireType != 2 {
6401 return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
6402 }
6403 var msglen int
6404 for shift := uint(0); ; shift += 7 {
6405 if shift >= 64 {
6406 return ErrIntOverflowGenerated
6407 }
6408 if iNdEx >= l {
6409 return io.ErrUnexpectedEOF
6410 }
6411 b := dAtA[iNdEx]
6412 iNdEx++
6413 msglen |= int(b&0x7F) << shift
6414 if b < 0x80 {
6415 break
6416 }
6417 }
6418 if msglen < 0 {
6419 return ErrInvalidLengthGenerated
6420 }
6421 postIndex := iNdEx + msglen
6422 if postIndex < 0 {
6423 return ErrInvalidLengthGenerated
6424 }
6425 if postIndex > l {
6426 return io.ErrUnexpectedEOF
6427 }
6428 if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
6429 return err
6430 }
6431 iNdEx = postIndex
6432 case 3:
6433 if wireType != 2 {
6434 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
6435 }
6436 var msglen int
6437 for shift := uint(0); ; shift += 7 {
6438 if shift >= 64 {
6439 return ErrIntOverflowGenerated
6440 }
6441 if iNdEx >= l {
6442 return io.ErrUnexpectedEOF
6443 }
6444 b := dAtA[iNdEx]
6445 iNdEx++
6446 msglen |= int(b&0x7F) << shift
6447 if b < 0x80 {
6448 break
6449 }
6450 }
6451 if msglen < 0 {
6452 return ErrInvalidLengthGenerated
6453 }
6454 postIndex := iNdEx + msglen
6455 if postIndex < 0 {
6456 return ErrInvalidLengthGenerated
6457 }
6458 if postIndex > l {
6459 return io.ErrUnexpectedEOF
6460 }
6461 if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
6462 return err
6463 }
6464 iNdEx = postIndex
6465 default:
6466 iNdEx = preIndex
6467 skippy, err := skipGenerated(dAtA[iNdEx:])
6468 if err != nil {
6469 return err
6470 }
6471 if (skippy < 0) || (iNdEx+skippy) < 0 {
6472 return ErrInvalidLengthGenerated
6473 }
6474 if (iNdEx + skippy) > l {
6475 return io.ErrUnexpectedEOF
6476 }
6477 iNdEx += skippy
6478 }
6479 }
6480
6481 if iNdEx > l {
6482 return io.ErrUnexpectedEOF
6483 }
6484 return nil
6485 }
6486 func (m *PodSchedulingContextList) Unmarshal(dAtA []byte) error {
6487 l := len(dAtA)
6488 iNdEx := 0
6489 for iNdEx < l {
6490 preIndex := iNdEx
6491 var wire uint64
6492 for shift := uint(0); ; shift += 7 {
6493 if shift >= 64 {
6494 return ErrIntOverflowGenerated
6495 }
6496 if iNdEx >= l {
6497 return io.ErrUnexpectedEOF
6498 }
6499 b := dAtA[iNdEx]
6500 iNdEx++
6501 wire |= uint64(b&0x7F) << shift
6502 if b < 0x80 {
6503 break
6504 }
6505 }
6506 fieldNum := int32(wire >> 3)
6507 wireType := int(wire & 0x7)
6508 if wireType == 4 {
6509 return fmt.Errorf("proto: PodSchedulingContextList: wiretype end group for non-group")
6510 }
6511 if fieldNum <= 0 {
6512 return fmt.Errorf("proto: PodSchedulingContextList: illegal tag %d (wire type %d)", fieldNum, wire)
6513 }
6514 switch fieldNum {
6515 case 1:
6516 if wireType != 2 {
6517 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
6518 }
6519 var msglen int
6520 for shift := uint(0); ; shift += 7 {
6521 if shift >= 64 {
6522 return ErrIntOverflowGenerated
6523 }
6524 if iNdEx >= l {
6525 return io.ErrUnexpectedEOF
6526 }
6527 b := dAtA[iNdEx]
6528 iNdEx++
6529 msglen |= int(b&0x7F) << shift
6530 if b < 0x80 {
6531 break
6532 }
6533 }
6534 if msglen < 0 {
6535 return ErrInvalidLengthGenerated
6536 }
6537 postIndex := iNdEx + msglen
6538 if postIndex < 0 {
6539 return ErrInvalidLengthGenerated
6540 }
6541 if postIndex > l {
6542 return io.ErrUnexpectedEOF
6543 }
6544 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
6545 return err
6546 }
6547 iNdEx = postIndex
6548 case 2:
6549 if wireType != 2 {
6550 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
6551 }
6552 var msglen int
6553 for shift := uint(0); ; shift += 7 {
6554 if shift >= 64 {
6555 return ErrIntOverflowGenerated
6556 }
6557 if iNdEx >= l {
6558 return io.ErrUnexpectedEOF
6559 }
6560 b := dAtA[iNdEx]
6561 iNdEx++
6562 msglen |= int(b&0x7F) << shift
6563 if b < 0x80 {
6564 break
6565 }
6566 }
6567 if msglen < 0 {
6568 return ErrInvalidLengthGenerated
6569 }
6570 postIndex := iNdEx + msglen
6571 if postIndex < 0 {
6572 return ErrInvalidLengthGenerated
6573 }
6574 if postIndex > l {
6575 return io.ErrUnexpectedEOF
6576 }
6577 m.Items = append(m.Items, PodSchedulingContext{})
6578 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
6579 return err
6580 }
6581 iNdEx = postIndex
6582 default:
6583 iNdEx = preIndex
6584 skippy, err := skipGenerated(dAtA[iNdEx:])
6585 if err != nil {
6586 return err
6587 }
6588 if (skippy < 0) || (iNdEx+skippy) < 0 {
6589 return ErrInvalidLengthGenerated
6590 }
6591 if (iNdEx + skippy) > l {
6592 return io.ErrUnexpectedEOF
6593 }
6594 iNdEx += skippy
6595 }
6596 }
6597
6598 if iNdEx > l {
6599 return io.ErrUnexpectedEOF
6600 }
6601 return nil
6602 }
6603 func (m *PodSchedulingContextSpec) Unmarshal(dAtA []byte) error {
6604 l := len(dAtA)
6605 iNdEx := 0
6606 for iNdEx < l {
6607 preIndex := iNdEx
6608 var wire uint64
6609 for shift := uint(0); ; shift += 7 {
6610 if shift >= 64 {
6611 return ErrIntOverflowGenerated
6612 }
6613 if iNdEx >= l {
6614 return io.ErrUnexpectedEOF
6615 }
6616 b := dAtA[iNdEx]
6617 iNdEx++
6618 wire |= uint64(b&0x7F) << shift
6619 if b < 0x80 {
6620 break
6621 }
6622 }
6623 fieldNum := int32(wire >> 3)
6624 wireType := int(wire & 0x7)
6625 if wireType == 4 {
6626 return fmt.Errorf("proto: PodSchedulingContextSpec: wiretype end group for non-group")
6627 }
6628 if fieldNum <= 0 {
6629 return fmt.Errorf("proto: PodSchedulingContextSpec: illegal tag %d (wire type %d)", fieldNum, wire)
6630 }
6631 switch fieldNum {
6632 case 1:
6633 if wireType != 2 {
6634 return fmt.Errorf("proto: wrong wireType = %d for field SelectedNode", wireType)
6635 }
6636 var stringLen uint64
6637 for shift := uint(0); ; shift += 7 {
6638 if shift >= 64 {
6639 return ErrIntOverflowGenerated
6640 }
6641 if iNdEx >= l {
6642 return io.ErrUnexpectedEOF
6643 }
6644 b := dAtA[iNdEx]
6645 iNdEx++
6646 stringLen |= uint64(b&0x7F) << shift
6647 if b < 0x80 {
6648 break
6649 }
6650 }
6651 intStringLen := int(stringLen)
6652 if intStringLen < 0 {
6653 return ErrInvalidLengthGenerated
6654 }
6655 postIndex := iNdEx + intStringLen
6656 if postIndex < 0 {
6657 return ErrInvalidLengthGenerated
6658 }
6659 if postIndex > l {
6660 return io.ErrUnexpectedEOF
6661 }
6662 m.SelectedNode = string(dAtA[iNdEx:postIndex])
6663 iNdEx = postIndex
6664 case 2:
6665 if wireType != 2 {
6666 return fmt.Errorf("proto: wrong wireType = %d for field PotentialNodes", wireType)
6667 }
6668 var stringLen uint64
6669 for shift := uint(0); ; shift += 7 {
6670 if shift >= 64 {
6671 return ErrIntOverflowGenerated
6672 }
6673 if iNdEx >= l {
6674 return io.ErrUnexpectedEOF
6675 }
6676 b := dAtA[iNdEx]
6677 iNdEx++
6678 stringLen |= uint64(b&0x7F) << shift
6679 if b < 0x80 {
6680 break
6681 }
6682 }
6683 intStringLen := int(stringLen)
6684 if intStringLen < 0 {
6685 return ErrInvalidLengthGenerated
6686 }
6687 postIndex := iNdEx + intStringLen
6688 if postIndex < 0 {
6689 return ErrInvalidLengthGenerated
6690 }
6691 if postIndex > l {
6692 return io.ErrUnexpectedEOF
6693 }
6694 m.PotentialNodes = append(m.PotentialNodes, string(dAtA[iNdEx:postIndex]))
6695 iNdEx = postIndex
6696 default:
6697 iNdEx = preIndex
6698 skippy, err := skipGenerated(dAtA[iNdEx:])
6699 if err != nil {
6700 return err
6701 }
6702 if (skippy < 0) || (iNdEx+skippy) < 0 {
6703 return ErrInvalidLengthGenerated
6704 }
6705 if (iNdEx + skippy) > l {
6706 return io.ErrUnexpectedEOF
6707 }
6708 iNdEx += skippy
6709 }
6710 }
6711
6712 if iNdEx > l {
6713 return io.ErrUnexpectedEOF
6714 }
6715 return nil
6716 }
6717 func (m *PodSchedulingContextStatus) Unmarshal(dAtA []byte) error {
6718 l := len(dAtA)
6719 iNdEx := 0
6720 for iNdEx < l {
6721 preIndex := iNdEx
6722 var wire uint64
6723 for shift := uint(0); ; shift += 7 {
6724 if shift >= 64 {
6725 return ErrIntOverflowGenerated
6726 }
6727 if iNdEx >= l {
6728 return io.ErrUnexpectedEOF
6729 }
6730 b := dAtA[iNdEx]
6731 iNdEx++
6732 wire |= uint64(b&0x7F) << shift
6733 if b < 0x80 {
6734 break
6735 }
6736 }
6737 fieldNum := int32(wire >> 3)
6738 wireType := int(wire & 0x7)
6739 if wireType == 4 {
6740 return fmt.Errorf("proto: PodSchedulingContextStatus: wiretype end group for non-group")
6741 }
6742 if fieldNum <= 0 {
6743 return fmt.Errorf("proto: PodSchedulingContextStatus: illegal tag %d (wire type %d)", fieldNum, wire)
6744 }
6745 switch fieldNum {
6746 case 1:
6747 if wireType != 2 {
6748 return fmt.Errorf("proto: wrong wireType = %d for field ResourceClaims", wireType)
6749 }
6750 var msglen int
6751 for shift := uint(0); ; shift += 7 {
6752 if shift >= 64 {
6753 return ErrIntOverflowGenerated
6754 }
6755 if iNdEx >= l {
6756 return io.ErrUnexpectedEOF
6757 }
6758 b := dAtA[iNdEx]
6759 iNdEx++
6760 msglen |= int(b&0x7F) << shift
6761 if b < 0x80 {
6762 break
6763 }
6764 }
6765 if msglen < 0 {
6766 return ErrInvalidLengthGenerated
6767 }
6768 postIndex := iNdEx + msglen
6769 if postIndex < 0 {
6770 return ErrInvalidLengthGenerated
6771 }
6772 if postIndex > l {
6773 return io.ErrUnexpectedEOF
6774 }
6775 m.ResourceClaims = append(m.ResourceClaims, ResourceClaimSchedulingStatus{})
6776 if err := m.ResourceClaims[len(m.ResourceClaims)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
6777 return err
6778 }
6779 iNdEx = postIndex
6780 default:
6781 iNdEx = preIndex
6782 skippy, err := skipGenerated(dAtA[iNdEx:])
6783 if err != nil {
6784 return err
6785 }
6786 if (skippy < 0) || (iNdEx+skippy) < 0 {
6787 return ErrInvalidLengthGenerated
6788 }
6789 if (iNdEx + skippy) > l {
6790 return io.ErrUnexpectedEOF
6791 }
6792 iNdEx += skippy
6793 }
6794 }
6795
6796 if iNdEx > l {
6797 return io.ErrUnexpectedEOF
6798 }
6799 return nil
6800 }
6801 func (m *ResourceClaim) Unmarshal(dAtA []byte) error {
6802 l := len(dAtA)
6803 iNdEx := 0
6804 for iNdEx < l {
6805 preIndex := iNdEx
6806 var wire uint64
6807 for shift := uint(0); ; shift += 7 {
6808 if shift >= 64 {
6809 return ErrIntOverflowGenerated
6810 }
6811 if iNdEx >= l {
6812 return io.ErrUnexpectedEOF
6813 }
6814 b := dAtA[iNdEx]
6815 iNdEx++
6816 wire |= uint64(b&0x7F) << shift
6817 if b < 0x80 {
6818 break
6819 }
6820 }
6821 fieldNum := int32(wire >> 3)
6822 wireType := int(wire & 0x7)
6823 if wireType == 4 {
6824 return fmt.Errorf("proto: ResourceClaim: wiretype end group for non-group")
6825 }
6826 if fieldNum <= 0 {
6827 return fmt.Errorf("proto: ResourceClaim: illegal tag %d (wire type %d)", fieldNum, wire)
6828 }
6829 switch fieldNum {
6830 case 1:
6831 if wireType != 2 {
6832 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
6833 }
6834 var msglen int
6835 for shift := uint(0); ; shift += 7 {
6836 if shift >= 64 {
6837 return ErrIntOverflowGenerated
6838 }
6839 if iNdEx >= l {
6840 return io.ErrUnexpectedEOF
6841 }
6842 b := dAtA[iNdEx]
6843 iNdEx++
6844 msglen |= int(b&0x7F) << shift
6845 if b < 0x80 {
6846 break
6847 }
6848 }
6849 if msglen < 0 {
6850 return ErrInvalidLengthGenerated
6851 }
6852 postIndex := iNdEx + msglen
6853 if postIndex < 0 {
6854 return ErrInvalidLengthGenerated
6855 }
6856 if postIndex > l {
6857 return io.ErrUnexpectedEOF
6858 }
6859 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
6860 return err
6861 }
6862 iNdEx = postIndex
6863 case 2:
6864 if wireType != 2 {
6865 return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
6866 }
6867 var msglen int
6868 for shift := uint(0); ; shift += 7 {
6869 if shift >= 64 {
6870 return ErrIntOverflowGenerated
6871 }
6872 if iNdEx >= l {
6873 return io.ErrUnexpectedEOF
6874 }
6875 b := dAtA[iNdEx]
6876 iNdEx++
6877 msglen |= int(b&0x7F) << shift
6878 if b < 0x80 {
6879 break
6880 }
6881 }
6882 if msglen < 0 {
6883 return ErrInvalidLengthGenerated
6884 }
6885 postIndex := iNdEx + msglen
6886 if postIndex < 0 {
6887 return ErrInvalidLengthGenerated
6888 }
6889 if postIndex > l {
6890 return io.ErrUnexpectedEOF
6891 }
6892 if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
6893 return err
6894 }
6895 iNdEx = postIndex
6896 case 3:
6897 if wireType != 2 {
6898 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
6899 }
6900 var msglen int
6901 for shift := uint(0); ; shift += 7 {
6902 if shift >= 64 {
6903 return ErrIntOverflowGenerated
6904 }
6905 if iNdEx >= l {
6906 return io.ErrUnexpectedEOF
6907 }
6908 b := dAtA[iNdEx]
6909 iNdEx++
6910 msglen |= int(b&0x7F) << shift
6911 if b < 0x80 {
6912 break
6913 }
6914 }
6915 if msglen < 0 {
6916 return ErrInvalidLengthGenerated
6917 }
6918 postIndex := iNdEx + msglen
6919 if postIndex < 0 {
6920 return ErrInvalidLengthGenerated
6921 }
6922 if postIndex > l {
6923 return io.ErrUnexpectedEOF
6924 }
6925 if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
6926 return err
6927 }
6928 iNdEx = postIndex
6929 default:
6930 iNdEx = preIndex
6931 skippy, err := skipGenerated(dAtA[iNdEx:])
6932 if err != nil {
6933 return err
6934 }
6935 if (skippy < 0) || (iNdEx+skippy) < 0 {
6936 return ErrInvalidLengthGenerated
6937 }
6938 if (iNdEx + skippy) > l {
6939 return io.ErrUnexpectedEOF
6940 }
6941 iNdEx += skippy
6942 }
6943 }
6944
6945 if iNdEx > l {
6946 return io.ErrUnexpectedEOF
6947 }
6948 return nil
6949 }
6950 func (m *ResourceClaimConsumerReference) Unmarshal(dAtA []byte) error {
6951 l := len(dAtA)
6952 iNdEx := 0
6953 for iNdEx < l {
6954 preIndex := iNdEx
6955 var wire uint64
6956 for shift := uint(0); ; shift += 7 {
6957 if shift >= 64 {
6958 return ErrIntOverflowGenerated
6959 }
6960 if iNdEx >= l {
6961 return io.ErrUnexpectedEOF
6962 }
6963 b := dAtA[iNdEx]
6964 iNdEx++
6965 wire |= uint64(b&0x7F) << shift
6966 if b < 0x80 {
6967 break
6968 }
6969 }
6970 fieldNum := int32(wire >> 3)
6971 wireType := int(wire & 0x7)
6972 if wireType == 4 {
6973 return fmt.Errorf("proto: ResourceClaimConsumerReference: wiretype end group for non-group")
6974 }
6975 if fieldNum <= 0 {
6976 return fmt.Errorf("proto: ResourceClaimConsumerReference: illegal tag %d (wire type %d)", fieldNum, wire)
6977 }
6978 switch fieldNum {
6979 case 1:
6980 if wireType != 2 {
6981 return fmt.Errorf("proto: wrong wireType = %d for field APIGroup", wireType)
6982 }
6983 var stringLen uint64
6984 for shift := uint(0); ; shift += 7 {
6985 if shift >= 64 {
6986 return ErrIntOverflowGenerated
6987 }
6988 if iNdEx >= l {
6989 return io.ErrUnexpectedEOF
6990 }
6991 b := dAtA[iNdEx]
6992 iNdEx++
6993 stringLen |= uint64(b&0x7F) << shift
6994 if b < 0x80 {
6995 break
6996 }
6997 }
6998 intStringLen := int(stringLen)
6999 if intStringLen < 0 {
7000 return ErrInvalidLengthGenerated
7001 }
7002 postIndex := iNdEx + intStringLen
7003 if postIndex < 0 {
7004 return ErrInvalidLengthGenerated
7005 }
7006 if postIndex > l {
7007 return io.ErrUnexpectedEOF
7008 }
7009 m.APIGroup = string(dAtA[iNdEx:postIndex])
7010 iNdEx = postIndex
7011 case 3:
7012 if wireType != 2 {
7013 return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType)
7014 }
7015 var stringLen uint64
7016 for shift := uint(0); ; shift += 7 {
7017 if shift >= 64 {
7018 return ErrIntOverflowGenerated
7019 }
7020 if iNdEx >= l {
7021 return io.ErrUnexpectedEOF
7022 }
7023 b := dAtA[iNdEx]
7024 iNdEx++
7025 stringLen |= uint64(b&0x7F) << shift
7026 if b < 0x80 {
7027 break
7028 }
7029 }
7030 intStringLen := int(stringLen)
7031 if intStringLen < 0 {
7032 return ErrInvalidLengthGenerated
7033 }
7034 postIndex := iNdEx + intStringLen
7035 if postIndex < 0 {
7036 return ErrInvalidLengthGenerated
7037 }
7038 if postIndex > l {
7039 return io.ErrUnexpectedEOF
7040 }
7041 m.Resource = string(dAtA[iNdEx:postIndex])
7042 iNdEx = postIndex
7043 case 4:
7044 if wireType != 2 {
7045 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
7046 }
7047 var stringLen uint64
7048 for shift := uint(0); ; shift += 7 {
7049 if shift >= 64 {
7050 return ErrIntOverflowGenerated
7051 }
7052 if iNdEx >= l {
7053 return io.ErrUnexpectedEOF
7054 }
7055 b := dAtA[iNdEx]
7056 iNdEx++
7057 stringLen |= uint64(b&0x7F) << shift
7058 if b < 0x80 {
7059 break
7060 }
7061 }
7062 intStringLen := int(stringLen)
7063 if intStringLen < 0 {
7064 return ErrInvalidLengthGenerated
7065 }
7066 postIndex := iNdEx + intStringLen
7067 if postIndex < 0 {
7068 return ErrInvalidLengthGenerated
7069 }
7070 if postIndex > l {
7071 return io.ErrUnexpectedEOF
7072 }
7073 m.Name = string(dAtA[iNdEx:postIndex])
7074 iNdEx = postIndex
7075 case 5:
7076 if wireType != 2 {
7077 return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType)
7078 }
7079 var stringLen uint64
7080 for shift := uint(0); ; shift += 7 {
7081 if shift >= 64 {
7082 return ErrIntOverflowGenerated
7083 }
7084 if iNdEx >= l {
7085 return io.ErrUnexpectedEOF
7086 }
7087 b := dAtA[iNdEx]
7088 iNdEx++
7089 stringLen |= uint64(b&0x7F) << shift
7090 if b < 0x80 {
7091 break
7092 }
7093 }
7094 intStringLen := int(stringLen)
7095 if intStringLen < 0 {
7096 return ErrInvalidLengthGenerated
7097 }
7098 postIndex := iNdEx + intStringLen
7099 if postIndex < 0 {
7100 return ErrInvalidLengthGenerated
7101 }
7102 if postIndex > l {
7103 return io.ErrUnexpectedEOF
7104 }
7105 m.UID = k8s_io_apimachinery_pkg_types.UID(dAtA[iNdEx:postIndex])
7106 iNdEx = postIndex
7107 default:
7108 iNdEx = preIndex
7109 skippy, err := skipGenerated(dAtA[iNdEx:])
7110 if err != nil {
7111 return err
7112 }
7113 if (skippy < 0) || (iNdEx+skippy) < 0 {
7114 return ErrInvalidLengthGenerated
7115 }
7116 if (iNdEx + skippy) > l {
7117 return io.ErrUnexpectedEOF
7118 }
7119 iNdEx += skippy
7120 }
7121 }
7122
7123 if iNdEx > l {
7124 return io.ErrUnexpectedEOF
7125 }
7126 return nil
7127 }
7128 func (m *ResourceClaimList) Unmarshal(dAtA []byte) error {
7129 l := len(dAtA)
7130 iNdEx := 0
7131 for iNdEx < l {
7132 preIndex := iNdEx
7133 var wire uint64
7134 for shift := uint(0); ; shift += 7 {
7135 if shift >= 64 {
7136 return ErrIntOverflowGenerated
7137 }
7138 if iNdEx >= l {
7139 return io.ErrUnexpectedEOF
7140 }
7141 b := dAtA[iNdEx]
7142 iNdEx++
7143 wire |= uint64(b&0x7F) << shift
7144 if b < 0x80 {
7145 break
7146 }
7147 }
7148 fieldNum := int32(wire >> 3)
7149 wireType := int(wire & 0x7)
7150 if wireType == 4 {
7151 return fmt.Errorf("proto: ResourceClaimList: wiretype end group for non-group")
7152 }
7153 if fieldNum <= 0 {
7154 return fmt.Errorf("proto: ResourceClaimList: illegal tag %d (wire type %d)", fieldNum, wire)
7155 }
7156 switch fieldNum {
7157 case 1:
7158 if wireType != 2 {
7159 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
7160 }
7161 var msglen int
7162 for shift := uint(0); ; shift += 7 {
7163 if shift >= 64 {
7164 return ErrIntOverflowGenerated
7165 }
7166 if iNdEx >= l {
7167 return io.ErrUnexpectedEOF
7168 }
7169 b := dAtA[iNdEx]
7170 iNdEx++
7171 msglen |= int(b&0x7F) << shift
7172 if b < 0x80 {
7173 break
7174 }
7175 }
7176 if msglen < 0 {
7177 return ErrInvalidLengthGenerated
7178 }
7179 postIndex := iNdEx + msglen
7180 if postIndex < 0 {
7181 return ErrInvalidLengthGenerated
7182 }
7183 if postIndex > l {
7184 return io.ErrUnexpectedEOF
7185 }
7186 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7187 return err
7188 }
7189 iNdEx = postIndex
7190 case 2:
7191 if wireType != 2 {
7192 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
7193 }
7194 var msglen int
7195 for shift := uint(0); ; shift += 7 {
7196 if shift >= 64 {
7197 return ErrIntOverflowGenerated
7198 }
7199 if iNdEx >= l {
7200 return io.ErrUnexpectedEOF
7201 }
7202 b := dAtA[iNdEx]
7203 iNdEx++
7204 msglen |= int(b&0x7F) << shift
7205 if b < 0x80 {
7206 break
7207 }
7208 }
7209 if msglen < 0 {
7210 return ErrInvalidLengthGenerated
7211 }
7212 postIndex := iNdEx + msglen
7213 if postIndex < 0 {
7214 return ErrInvalidLengthGenerated
7215 }
7216 if postIndex > l {
7217 return io.ErrUnexpectedEOF
7218 }
7219 m.Items = append(m.Items, ResourceClaim{})
7220 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7221 return err
7222 }
7223 iNdEx = postIndex
7224 default:
7225 iNdEx = preIndex
7226 skippy, err := skipGenerated(dAtA[iNdEx:])
7227 if err != nil {
7228 return err
7229 }
7230 if (skippy < 0) || (iNdEx+skippy) < 0 {
7231 return ErrInvalidLengthGenerated
7232 }
7233 if (iNdEx + skippy) > l {
7234 return io.ErrUnexpectedEOF
7235 }
7236 iNdEx += skippy
7237 }
7238 }
7239
7240 if iNdEx > l {
7241 return io.ErrUnexpectedEOF
7242 }
7243 return nil
7244 }
7245 func (m *ResourceClaimParameters) Unmarshal(dAtA []byte) error {
7246 l := len(dAtA)
7247 iNdEx := 0
7248 for iNdEx < l {
7249 preIndex := iNdEx
7250 var wire uint64
7251 for shift := uint(0); ; shift += 7 {
7252 if shift >= 64 {
7253 return ErrIntOverflowGenerated
7254 }
7255 if iNdEx >= l {
7256 return io.ErrUnexpectedEOF
7257 }
7258 b := dAtA[iNdEx]
7259 iNdEx++
7260 wire |= uint64(b&0x7F) << shift
7261 if b < 0x80 {
7262 break
7263 }
7264 }
7265 fieldNum := int32(wire >> 3)
7266 wireType := int(wire & 0x7)
7267 if wireType == 4 {
7268 return fmt.Errorf("proto: ResourceClaimParameters: wiretype end group for non-group")
7269 }
7270 if fieldNum <= 0 {
7271 return fmt.Errorf("proto: ResourceClaimParameters: illegal tag %d (wire type %d)", fieldNum, wire)
7272 }
7273 switch fieldNum {
7274 case 1:
7275 if wireType != 2 {
7276 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
7277 }
7278 var msglen int
7279 for shift := uint(0); ; shift += 7 {
7280 if shift >= 64 {
7281 return ErrIntOverflowGenerated
7282 }
7283 if iNdEx >= l {
7284 return io.ErrUnexpectedEOF
7285 }
7286 b := dAtA[iNdEx]
7287 iNdEx++
7288 msglen |= int(b&0x7F) << shift
7289 if b < 0x80 {
7290 break
7291 }
7292 }
7293 if msglen < 0 {
7294 return ErrInvalidLengthGenerated
7295 }
7296 postIndex := iNdEx + msglen
7297 if postIndex < 0 {
7298 return ErrInvalidLengthGenerated
7299 }
7300 if postIndex > l {
7301 return io.ErrUnexpectedEOF
7302 }
7303 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7304 return err
7305 }
7306 iNdEx = postIndex
7307 case 2:
7308 if wireType != 2 {
7309 return fmt.Errorf("proto: wrong wireType = %d for field GeneratedFrom", wireType)
7310 }
7311 var msglen int
7312 for shift := uint(0); ; shift += 7 {
7313 if shift >= 64 {
7314 return ErrIntOverflowGenerated
7315 }
7316 if iNdEx >= l {
7317 return io.ErrUnexpectedEOF
7318 }
7319 b := dAtA[iNdEx]
7320 iNdEx++
7321 msglen |= int(b&0x7F) << shift
7322 if b < 0x80 {
7323 break
7324 }
7325 }
7326 if msglen < 0 {
7327 return ErrInvalidLengthGenerated
7328 }
7329 postIndex := iNdEx + msglen
7330 if postIndex < 0 {
7331 return ErrInvalidLengthGenerated
7332 }
7333 if postIndex > l {
7334 return io.ErrUnexpectedEOF
7335 }
7336 if m.GeneratedFrom == nil {
7337 m.GeneratedFrom = &ResourceClaimParametersReference{}
7338 }
7339 if err := m.GeneratedFrom.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7340 return err
7341 }
7342 iNdEx = postIndex
7343 case 3:
7344 if wireType != 0 {
7345 return fmt.Errorf("proto: wrong wireType = %d for field Shareable", wireType)
7346 }
7347 var v int
7348 for shift := uint(0); ; shift += 7 {
7349 if shift >= 64 {
7350 return ErrIntOverflowGenerated
7351 }
7352 if iNdEx >= l {
7353 return io.ErrUnexpectedEOF
7354 }
7355 b := dAtA[iNdEx]
7356 iNdEx++
7357 v |= int(b&0x7F) << shift
7358 if b < 0x80 {
7359 break
7360 }
7361 }
7362 m.Shareable = bool(v != 0)
7363 case 4:
7364 if wireType != 2 {
7365 return fmt.Errorf("proto: wrong wireType = %d for field DriverRequests", wireType)
7366 }
7367 var msglen int
7368 for shift := uint(0); ; shift += 7 {
7369 if shift >= 64 {
7370 return ErrIntOverflowGenerated
7371 }
7372 if iNdEx >= l {
7373 return io.ErrUnexpectedEOF
7374 }
7375 b := dAtA[iNdEx]
7376 iNdEx++
7377 msglen |= int(b&0x7F) << shift
7378 if b < 0x80 {
7379 break
7380 }
7381 }
7382 if msglen < 0 {
7383 return ErrInvalidLengthGenerated
7384 }
7385 postIndex := iNdEx + msglen
7386 if postIndex < 0 {
7387 return ErrInvalidLengthGenerated
7388 }
7389 if postIndex > l {
7390 return io.ErrUnexpectedEOF
7391 }
7392 m.DriverRequests = append(m.DriverRequests, DriverRequests{})
7393 if err := m.DriverRequests[len(m.DriverRequests)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7394 return err
7395 }
7396 iNdEx = postIndex
7397 default:
7398 iNdEx = preIndex
7399 skippy, err := skipGenerated(dAtA[iNdEx:])
7400 if err != nil {
7401 return err
7402 }
7403 if (skippy < 0) || (iNdEx+skippy) < 0 {
7404 return ErrInvalidLengthGenerated
7405 }
7406 if (iNdEx + skippy) > l {
7407 return io.ErrUnexpectedEOF
7408 }
7409 iNdEx += skippy
7410 }
7411 }
7412
7413 if iNdEx > l {
7414 return io.ErrUnexpectedEOF
7415 }
7416 return nil
7417 }
7418 func (m *ResourceClaimParametersList) Unmarshal(dAtA []byte) error {
7419 l := len(dAtA)
7420 iNdEx := 0
7421 for iNdEx < l {
7422 preIndex := iNdEx
7423 var wire uint64
7424 for shift := uint(0); ; shift += 7 {
7425 if shift >= 64 {
7426 return ErrIntOverflowGenerated
7427 }
7428 if iNdEx >= l {
7429 return io.ErrUnexpectedEOF
7430 }
7431 b := dAtA[iNdEx]
7432 iNdEx++
7433 wire |= uint64(b&0x7F) << shift
7434 if b < 0x80 {
7435 break
7436 }
7437 }
7438 fieldNum := int32(wire >> 3)
7439 wireType := int(wire & 0x7)
7440 if wireType == 4 {
7441 return fmt.Errorf("proto: ResourceClaimParametersList: wiretype end group for non-group")
7442 }
7443 if fieldNum <= 0 {
7444 return fmt.Errorf("proto: ResourceClaimParametersList: illegal tag %d (wire type %d)", fieldNum, wire)
7445 }
7446 switch fieldNum {
7447 case 1:
7448 if wireType != 2 {
7449 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
7450 }
7451 var msglen int
7452 for shift := uint(0); ; shift += 7 {
7453 if shift >= 64 {
7454 return ErrIntOverflowGenerated
7455 }
7456 if iNdEx >= l {
7457 return io.ErrUnexpectedEOF
7458 }
7459 b := dAtA[iNdEx]
7460 iNdEx++
7461 msglen |= int(b&0x7F) << shift
7462 if b < 0x80 {
7463 break
7464 }
7465 }
7466 if msglen < 0 {
7467 return ErrInvalidLengthGenerated
7468 }
7469 postIndex := iNdEx + msglen
7470 if postIndex < 0 {
7471 return ErrInvalidLengthGenerated
7472 }
7473 if postIndex > l {
7474 return io.ErrUnexpectedEOF
7475 }
7476 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7477 return err
7478 }
7479 iNdEx = postIndex
7480 case 2:
7481 if wireType != 2 {
7482 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
7483 }
7484 var msglen int
7485 for shift := uint(0); ; shift += 7 {
7486 if shift >= 64 {
7487 return ErrIntOverflowGenerated
7488 }
7489 if iNdEx >= l {
7490 return io.ErrUnexpectedEOF
7491 }
7492 b := dAtA[iNdEx]
7493 iNdEx++
7494 msglen |= int(b&0x7F) << shift
7495 if b < 0x80 {
7496 break
7497 }
7498 }
7499 if msglen < 0 {
7500 return ErrInvalidLengthGenerated
7501 }
7502 postIndex := iNdEx + msglen
7503 if postIndex < 0 {
7504 return ErrInvalidLengthGenerated
7505 }
7506 if postIndex > l {
7507 return io.ErrUnexpectedEOF
7508 }
7509 m.Items = append(m.Items, ResourceClaimParameters{})
7510 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7511 return err
7512 }
7513 iNdEx = postIndex
7514 default:
7515 iNdEx = preIndex
7516 skippy, err := skipGenerated(dAtA[iNdEx:])
7517 if err != nil {
7518 return err
7519 }
7520 if (skippy < 0) || (iNdEx+skippy) < 0 {
7521 return ErrInvalidLengthGenerated
7522 }
7523 if (iNdEx + skippy) > l {
7524 return io.ErrUnexpectedEOF
7525 }
7526 iNdEx += skippy
7527 }
7528 }
7529
7530 if iNdEx > l {
7531 return io.ErrUnexpectedEOF
7532 }
7533 return nil
7534 }
7535 func (m *ResourceClaimParametersReference) Unmarshal(dAtA []byte) error {
7536 l := len(dAtA)
7537 iNdEx := 0
7538 for iNdEx < l {
7539 preIndex := iNdEx
7540 var wire uint64
7541 for shift := uint(0); ; shift += 7 {
7542 if shift >= 64 {
7543 return ErrIntOverflowGenerated
7544 }
7545 if iNdEx >= l {
7546 return io.ErrUnexpectedEOF
7547 }
7548 b := dAtA[iNdEx]
7549 iNdEx++
7550 wire |= uint64(b&0x7F) << shift
7551 if b < 0x80 {
7552 break
7553 }
7554 }
7555 fieldNum := int32(wire >> 3)
7556 wireType := int(wire & 0x7)
7557 if wireType == 4 {
7558 return fmt.Errorf("proto: ResourceClaimParametersReference: wiretype end group for non-group")
7559 }
7560 if fieldNum <= 0 {
7561 return fmt.Errorf("proto: ResourceClaimParametersReference: illegal tag %d (wire type %d)", fieldNum, wire)
7562 }
7563 switch fieldNum {
7564 case 1:
7565 if wireType != 2 {
7566 return fmt.Errorf("proto: wrong wireType = %d for field APIGroup", wireType)
7567 }
7568 var stringLen uint64
7569 for shift := uint(0); ; shift += 7 {
7570 if shift >= 64 {
7571 return ErrIntOverflowGenerated
7572 }
7573 if iNdEx >= l {
7574 return io.ErrUnexpectedEOF
7575 }
7576 b := dAtA[iNdEx]
7577 iNdEx++
7578 stringLen |= uint64(b&0x7F) << shift
7579 if b < 0x80 {
7580 break
7581 }
7582 }
7583 intStringLen := int(stringLen)
7584 if intStringLen < 0 {
7585 return ErrInvalidLengthGenerated
7586 }
7587 postIndex := iNdEx + intStringLen
7588 if postIndex < 0 {
7589 return ErrInvalidLengthGenerated
7590 }
7591 if postIndex > l {
7592 return io.ErrUnexpectedEOF
7593 }
7594 m.APIGroup = string(dAtA[iNdEx:postIndex])
7595 iNdEx = postIndex
7596 case 2:
7597 if wireType != 2 {
7598 return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType)
7599 }
7600 var stringLen uint64
7601 for shift := uint(0); ; shift += 7 {
7602 if shift >= 64 {
7603 return ErrIntOverflowGenerated
7604 }
7605 if iNdEx >= l {
7606 return io.ErrUnexpectedEOF
7607 }
7608 b := dAtA[iNdEx]
7609 iNdEx++
7610 stringLen |= uint64(b&0x7F) << shift
7611 if b < 0x80 {
7612 break
7613 }
7614 }
7615 intStringLen := int(stringLen)
7616 if intStringLen < 0 {
7617 return ErrInvalidLengthGenerated
7618 }
7619 postIndex := iNdEx + intStringLen
7620 if postIndex < 0 {
7621 return ErrInvalidLengthGenerated
7622 }
7623 if postIndex > l {
7624 return io.ErrUnexpectedEOF
7625 }
7626 m.Kind = string(dAtA[iNdEx:postIndex])
7627 iNdEx = postIndex
7628 case 3:
7629 if wireType != 2 {
7630 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
7631 }
7632 var stringLen uint64
7633 for shift := uint(0); ; shift += 7 {
7634 if shift >= 64 {
7635 return ErrIntOverflowGenerated
7636 }
7637 if iNdEx >= l {
7638 return io.ErrUnexpectedEOF
7639 }
7640 b := dAtA[iNdEx]
7641 iNdEx++
7642 stringLen |= uint64(b&0x7F) << shift
7643 if b < 0x80 {
7644 break
7645 }
7646 }
7647 intStringLen := int(stringLen)
7648 if intStringLen < 0 {
7649 return ErrInvalidLengthGenerated
7650 }
7651 postIndex := iNdEx + intStringLen
7652 if postIndex < 0 {
7653 return ErrInvalidLengthGenerated
7654 }
7655 if postIndex > l {
7656 return io.ErrUnexpectedEOF
7657 }
7658 m.Name = string(dAtA[iNdEx:postIndex])
7659 iNdEx = postIndex
7660 default:
7661 iNdEx = preIndex
7662 skippy, err := skipGenerated(dAtA[iNdEx:])
7663 if err != nil {
7664 return err
7665 }
7666 if (skippy < 0) || (iNdEx+skippy) < 0 {
7667 return ErrInvalidLengthGenerated
7668 }
7669 if (iNdEx + skippy) > l {
7670 return io.ErrUnexpectedEOF
7671 }
7672 iNdEx += skippy
7673 }
7674 }
7675
7676 if iNdEx > l {
7677 return io.ErrUnexpectedEOF
7678 }
7679 return nil
7680 }
7681 func (m *ResourceClaimSchedulingStatus) Unmarshal(dAtA []byte) error {
7682 l := len(dAtA)
7683 iNdEx := 0
7684 for iNdEx < l {
7685 preIndex := iNdEx
7686 var wire uint64
7687 for shift := uint(0); ; shift += 7 {
7688 if shift >= 64 {
7689 return ErrIntOverflowGenerated
7690 }
7691 if iNdEx >= l {
7692 return io.ErrUnexpectedEOF
7693 }
7694 b := dAtA[iNdEx]
7695 iNdEx++
7696 wire |= uint64(b&0x7F) << shift
7697 if b < 0x80 {
7698 break
7699 }
7700 }
7701 fieldNum := int32(wire >> 3)
7702 wireType := int(wire & 0x7)
7703 if wireType == 4 {
7704 return fmt.Errorf("proto: ResourceClaimSchedulingStatus: wiretype end group for non-group")
7705 }
7706 if fieldNum <= 0 {
7707 return fmt.Errorf("proto: ResourceClaimSchedulingStatus: illegal tag %d (wire type %d)", fieldNum, wire)
7708 }
7709 switch fieldNum {
7710 case 1:
7711 if wireType != 2 {
7712 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
7713 }
7714 var stringLen uint64
7715 for shift := uint(0); ; shift += 7 {
7716 if shift >= 64 {
7717 return ErrIntOverflowGenerated
7718 }
7719 if iNdEx >= l {
7720 return io.ErrUnexpectedEOF
7721 }
7722 b := dAtA[iNdEx]
7723 iNdEx++
7724 stringLen |= uint64(b&0x7F) << shift
7725 if b < 0x80 {
7726 break
7727 }
7728 }
7729 intStringLen := int(stringLen)
7730 if intStringLen < 0 {
7731 return ErrInvalidLengthGenerated
7732 }
7733 postIndex := iNdEx + intStringLen
7734 if postIndex < 0 {
7735 return ErrInvalidLengthGenerated
7736 }
7737 if postIndex > l {
7738 return io.ErrUnexpectedEOF
7739 }
7740 m.Name = string(dAtA[iNdEx:postIndex])
7741 iNdEx = postIndex
7742 case 2:
7743 if wireType != 2 {
7744 return fmt.Errorf("proto: wrong wireType = %d for field UnsuitableNodes", wireType)
7745 }
7746 var stringLen uint64
7747 for shift := uint(0); ; shift += 7 {
7748 if shift >= 64 {
7749 return ErrIntOverflowGenerated
7750 }
7751 if iNdEx >= l {
7752 return io.ErrUnexpectedEOF
7753 }
7754 b := dAtA[iNdEx]
7755 iNdEx++
7756 stringLen |= uint64(b&0x7F) << shift
7757 if b < 0x80 {
7758 break
7759 }
7760 }
7761 intStringLen := int(stringLen)
7762 if intStringLen < 0 {
7763 return ErrInvalidLengthGenerated
7764 }
7765 postIndex := iNdEx + intStringLen
7766 if postIndex < 0 {
7767 return ErrInvalidLengthGenerated
7768 }
7769 if postIndex > l {
7770 return io.ErrUnexpectedEOF
7771 }
7772 m.UnsuitableNodes = append(m.UnsuitableNodes, string(dAtA[iNdEx:postIndex]))
7773 iNdEx = postIndex
7774 default:
7775 iNdEx = preIndex
7776 skippy, err := skipGenerated(dAtA[iNdEx:])
7777 if err != nil {
7778 return err
7779 }
7780 if (skippy < 0) || (iNdEx+skippy) < 0 {
7781 return ErrInvalidLengthGenerated
7782 }
7783 if (iNdEx + skippy) > l {
7784 return io.ErrUnexpectedEOF
7785 }
7786 iNdEx += skippy
7787 }
7788 }
7789
7790 if iNdEx > l {
7791 return io.ErrUnexpectedEOF
7792 }
7793 return nil
7794 }
7795 func (m *ResourceClaimSpec) Unmarshal(dAtA []byte) error {
7796 l := len(dAtA)
7797 iNdEx := 0
7798 for iNdEx < l {
7799 preIndex := iNdEx
7800 var wire uint64
7801 for shift := uint(0); ; shift += 7 {
7802 if shift >= 64 {
7803 return ErrIntOverflowGenerated
7804 }
7805 if iNdEx >= l {
7806 return io.ErrUnexpectedEOF
7807 }
7808 b := dAtA[iNdEx]
7809 iNdEx++
7810 wire |= uint64(b&0x7F) << shift
7811 if b < 0x80 {
7812 break
7813 }
7814 }
7815 fieldNum := int32(wire >> 3)
7816 wireType := int(wire & 0x7)
7817 if wireType == 4 {
7818 return fmt.Errorf("proto: ResourceClaimSpec: wiretype end group for non-group")
7819 }
7820 if fieldNum <= 0 {
7821 return fmt.Errorf("proto: ResourceClaimSpec: illegal tag %d (wire type %d)", fieldNum, wire)
7822 }
7823 switch fieldNum {
7824 case 1:
7825 if wireType != 2 {
7826 return fmt.Errorf("proto: wrong wireType = %d for field ResourceClassName", wireType)
7827 }
7828 var stringLen uint64
7829 for shift := uint(0); ; shift += 7 {
7830 if shift >= 64 {
7831 return ErrIntOverflowGenerated
7832 }
7833 if iNdEx >= l {
7834 return io.ErrUnexpectedEOF
7835 }
7836 b := dAtA[iNdEx]
7837 iNdEx++
7838 stringLen |= uint64(b&0x7F) << shift
7839 if b < 0x80 {
7840 break
7841 }
7842 }
7843 intStringLen := int(stringLen)
7844 if intStringLen < 0 {
7845 return ErrInvalidLengthGenerated
7846 }
7847 postIndex := iNdEx + intStringLen
7848 if postIndex < 0 {
7849 return ErrInvalidLengthGenerated
7850 }
7851 if postIndex > l {
7852 return io.ErrUnexpectedEOF
7853 }
7854 m.ResourceClassName = string(dAtA[iNdEx:postIndex])
7855 iNdEx = postIndex
7856 case 2:
7857 if wireType != 2 {
7858 return fmt.Errorf("proto: wrong wireType = %d for field ParametersRef", wireType)
7859 }
7860 var msglen int
7861 for shift := uint(0); ; shift += 7 {
7862 if shift >= 64 {
7863 return ErrIntOverflowGenerated
7864 }
7865 if iNdEx >= l {
7866 return io.ErrUnexpectedEOF
7867 }
7868 b := dAtA[iNdEx]
7869 iNdEx++
7870 msglen |= int(b&0x7F) << shift
7871 if b < 0x80 {
7872 break
7873 }
7874 }
7875 if msglen < 0 {
7876 return ErrInvalidLengthGenerated
7877 }
7878 postIndex := iNdEx + msglen
7879 if postIndex < 0 {
7880 return ErrInvalidLengthGenerated
7881 }
7882 if postIndex > l {
7883 return io.ErrUnexpectedEOF
7884 }
7885 if m.ParametersRef == nil {
7886 m.ParametersRef = &ResourceClaimParametersReference{}
7887 }
7888 if err := m.ParametersRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7889 return err
7890 }
7891 iNdEx = postIndex
7892 case 3:
7893 if wireType != 2 {
7894 return fmt.Errorf("proto: wrong wireType = %d for field AllocationMode", wireType)
7895 }
7896 var stringLen uint64
7897 for shift := uint(0); ; shift += 7 {
7898 if shift >= 64 {
7899 return ErrIntOverflowGenerated
7900 }
7901 if iNdEx >= l {
7902 return io.ErrUnexpectedEOF
7903 }
7904 b := dAtA[iNdEx]
7905 iNdEx++
7906 stringLen |= uint64(b&0x7F) << shift
7907 if b < 0x80 {
7908 break
7909 }
7910 }
7911 intStringLen := int(stringLen)
7912 if intStringLen < 0 {
7913 return ErrInvalidLengthGenerated
7914 }
7915 postIndex := iNdEx + intStringLen
7916 if postIndex < 0 {
7917 return ErrInvalidLengthGenerated
7918 }
7919 if postIndex > l {
7920 return io.ErrUnexpectedEOF
7921 }
7922 m.AllocationMode = AllocationMode(dAtA[iNdEx:postIndex])
7923 iNdEx = postIndex
7924 default:
7925 iNdEx = preIndex
7926 skippy, err := skipGenerated(dAtA[iNdEx:])
7927 if err != nil {
7928 return err
7929 }
7930 if (skippy < 0) || (iNdEx+skippy) < 0 {
7931 return ErrInvalidLengthGenerated
7932 }
7933 if (iNdEx + skippy) > l {
7934 return io.ErrUnexpectedEOF
7935 }
7936 iNdEx += skippy
7937 }
7938 }
7939
7940 if iNdEx > l {
7941 return io.ErrUnexpectedEOF
7942 }
7943 return nil
7944 }
7945 func (m *ResourceClaimStatus) Unmarshal(dAtA []byte) error {
7946 l := len(dAtA)
7947 iNdEx := 0
7948 for iNdEx < l {
7949 preIndex := iNdEx
7950 var wire uint64
7951 for shift := uint(0); ; shift += 7 {
7952 if shift >= 64 {
7953 return ErrIntOverflowGenerated
7954 }
7955 if iNdEx >= l {
7956 return io.ErrUnexpectedEOF
7957 }
7958 b := dAtA[iNdEx]
7959 iNdEx++
7960 wire |= uint64(b&0x7F) << shift
7961 if b < 0x80 {
7962 break
7963 }
7964 }
7965 fieldNum := int32(wire >> 3)
7966 wireType := int(wire & 0x7)
7967 if wireType == 4 {
7968 return fmt.Errorf("proto: ResourceClaimStatus: wiretype end group for non-group")
7969 }
7970 if fieldNum <= 0 {
7971 return fmt.Errorf("proto: ResourceClaimStatus: illegal tag %d (wire type %d)", fieldNum, wire)
7972 }
7973 switch fieldNum {
7974 case 1:
7975 if wireType != 2 {
7976 return fmt.Errorf("proto: wrong wireType = %d for field DriverName", wireType)
7977 }
7978 var stringLen uint64
7979 for shift := uint(0); ; shift += 7 {
7980 if shift >= 64 {
7981 return ErrIntOverflowGenerated
7982 }
7983 if iNdEx >= l {
7984 return io.ErrUnexpectedEOF
7985 }
7986 b := dAtA[iNdEx]
7987 iNdEx++
7988 stringLen |= uint64(b&0x7F) << shift
7989 if b < 0x80 {
7990 break
7991 }
7992 }
7993 intStringLen := int(stringLen)
7994 if intStringLen < 0 {
7995 return ErrInvalidLengthGenerated
7996 }
7997 postIndex := iNdEx + intStringLen
7998 if postIndex < 0 {
7999 return ErrInvalidLengthGenerated
8000 }
8001 if postIndex > l {
8002 return io.ErrUnexpectedEOF
8003 }
8004 m.DriverName = string(dAtA[iNdEx:postIndex])
8005 iNdEx = postIndex
8006 case 2:
8007 if wireType != 2 {
8008 return fmt.Errorf("proto: wrong wireType = %d for field Allocation", wireType)
8009 }
8010 var msglen int
8011 for shift := uint(0); ; shift += 7 {
8012 if shift >= 64 {
8013 return ErrIntOverflowGenerated
8014 }
8015 if iNdEx >= l {
8016 return io.ErrUnexpectedEOF
8017 }
8018 b := dAtA[iNdEx]
8019 iNdEx++
8020 msglen |= int(b&0x7F) << shift
8021 if b < 0x80 {
8022 break
8023 }
8024 }
8025 if msglen < 0 {
8026 return ErrInvalidLengthGenerated
8027 }
8028 postIndex := iNdEx + msglen
8029 if postIndex < 0 {
8030 return ErrInvalidLengthGenerated
8031 }
8032 if postIndex > l {
8033 return io.ErrUnexpectedEOF
8034 }
8035 if m.Allocation == nil {
8036 m.Allocation = &AllocationResult{}
8037 }
8038 if err := m.Allocation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8039 return err
8040 }
8041 iNdEx = postIndex
8042 case 3:
8043 if wireType != 2 {
8044 return fmt.Errorf("proto: wrong wireType = %d for field ReservedFor", wireType)
8045 }
8046 var msglen int
8047 for shift := uint(0); ; shift += 7 {
8048 if shift >= 64 {
8049 return ErrIntOverflowGenerated
8050 }
8051 if iNdEx >= l {
8052 return io.ErrUnexpectedEOF
8053 }
8054 b := dAtA[iNdEx]
8055 iNdEx++
8056 msglen |= int(b&0x7F) << shift
8057 if b < 0x80 {
8058 break
8059 }
8060 }
8061 if msglen < 0 {
8062 return ErrInvalidLengthGenerated
8063 }
8064 postIndex := iNdEx + msglen
8065 if postIndex < 0 {
8066 return ErrInvalidLengthGenerated
8067 }
8068 if postIndex > l {
8069 return io.ErrUnexpectedEOF
8070 }
8071 m.ReservedFor = append(m.ReservedFor, ResourceClaimConsumerReference{})
8072 if err := m.ReservedFor[len(m.ReservedFor)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8073 return err
8074 }
8075 iNdEx = postIndex
8076 case 4:
8077 if wireType != 0 {
8078 return fmt.Errorf("proto: wrong wireType = %d for field DeallocationRequested", wireType)
8079 }
8080 var v int
8081 for shift := uint(0); ; shift += 7 {
8082 if shift >= 64 {
8083 return ErrIntOverflowGenerated
8084 }
8085 if iNdEx >= l {
8086 return io.ErrUnexpectedEOF
8087 }
8088 b := dAtA[iNdEx]
8089 iNdEx++
8090 v |= int(b&0x7F) << shift
8091 if b < 0x80 {
8092 break
8093 }
8094 }
8095 m.DeallocationRequested = bool(v != 0)
8096 default:
8097 iNdEx = preIndex
8098 skippy, err := skipGenerated(dAtA[iNdEx:])
8099 if err != nil {
8100 return err
8101 }
8102 if (skippy < 0) || (iNdEx+skippy) < 0 {
8103 return ErrInvalidLengthGenerated
8104 }
8105 if (iNdEx + skippy) > l {
8106 return io.ErrUnexpectedEOF
8107 }
8108 iNdEx += skippy
8109 }
8110 }
8111
8112 if iNdEx > l {
8113 return io.ErrUnexpectedEOF
8114 }
8115 return nil
8116 }
8117 func (m *ResourceClaimTemplate) Unmarshal(dAtA []byte) error {
8118 l := len(dAtA)
8119 iNdEx := 0
8120 for iNdEx < l {
8121 preIndex := iNdEx
8122 var wire uint64
8123 for shift := uint(0); ; shift += 7 {
8124 if shift >= 64 {
8125 return ErrIntOverflowGenerated
8126 }
8127 if iNdEx >= l {
8128 return io.ErrUnexpectedEOF
8129 }
8130 b := dAtA[iNdEx]
8131 iNdEx++
8132 wire |= uint64(b&0x7F) << shift
8133 if b < 0x80 {
8134 break
8135 }
8136 }
8137 fieldNum := int32(wire >> 3)
8138 wireType := int(wire & 0x7)
8139 if wireType == 4 {
8140 return fmt.Errorf("proto: ResourceClaimTemplate: wiretype end group for non-group")
8141 }
8142 if fieldNum <= 0 {
8143 return fmt.Errorf("proto: ResourceClaimTemplate: illegal tag %d (wire type %d)", fieldNum, wire)
8144 }
8145 switch fieldNum {
8146 case 1:
8147 if wireType != 2 {
8148 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
8149 }
8150 var msglen int
8151 for shift := uint(0); ; shift += 7 {
8152 if shift >= 64 {
8153 return ErrIntOverflowGenerated
8154 }
8155 if iNdEx >= l {
8156 return io.ErrUnexpectedEOF
8157 }
8158 b := dAtA[iNdEx]
8159 iNdEx++
8160 msglen |= int(b&0x7F) << shift
8161 if b < 0x80 {
8162 break
8163 }
8164 }
8165 if msglen < 0 {
8166 return ErrInvalidLengthGenerated
8167 }
8168 postIndex := iNdEx + msglen
8169 if postIndex < 0 {
8170 return ErrInvalidLengthGenerated
8171 }
8172 if postIndex > l {
8173 return io.ErrUnexpectedEOF
8174 }
8175 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8176 return err
8177 }
8178 iNdEx = postIndex
8179 case 2:
8180 if wireType != 2 {
8181 return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
8182 }
8183 var msglen int
8184 for shift := uint(0); ; shift += 7 {
8185 if shift >= 64 {
8186 return ErrIntOverflowGenerated
8187 }
8188 if iNdEx >= l {
8189 return io.ErrUnexpectedEOF
8190 }
8191 b := dAtA[iNdEx]
8192 iNdEx++
8193 msglen |= int(b&0x7F) << shift
8194 if b < 0x80 {
8195 break
8196 }
8197 }
8198 if msglen < 0 {
8199 return ErrInvalidLengthGenerated
8200 }
8201 postIndex := iNdEx + msglen
8202 if postIndex < 0 {
8203 return ErrInvalidLengthGenerated
8204 }
8205 if postIndex > l {
8206 return io.ErrUnexpectedEOF
8207 }
8208 if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8209 return err
8210 }
8211 iNdEx = postIndex
8212 default:
8213 iNdEx = preIndex
8214 skippy, err := skipGenerated(dAtA[iNdEx:])
8215 if err != nil {
8216 return err
8217 }
8218 if (skippy < 0) || (iNdEx+skippy) < 0 {
8219 return ErrInvalidLengthGenerated
8220 }
8221 if (iNdEx + skippy) > l {
8222 return io.ErrUnexpectedEOF
8223 }
8224 iNdEx += skippy
8225 }
8226 }
8227
8228 if iNdEx > l {
8229 return io.ErrUnexpectedEOF
8230 }
8231 return nil
8232 }
8233 func (m *ResourceClaimTemplateList) Unmarshal(dAtA []byte) error {
8234 l := len(dAtA)
8235 iNdEx := 0
8236 for iNdEx < l {
8237 preIndex := iNdEx
8238 var wire uint64
8239 for shift := uint(0); ; shift += 7 {
8240 if shift >= 64 {
8241 return ErrIntOverflowGenerated
8242 }
8243 if iNdEx >= l {
8244 return io.ErrUnexpectedEOF
8245 }
8246 b := dAtA[iNdEx]
8247 iNdEx++
8248 wire |= uint64(b&0x7F) << shift
8249 if b < 0x80 {
8250 break
8251 }
8252 }
8253 fieldNum := int32(wire >> 3)
8254 wireType := int(wire & 0x7)
8255 if wireType == 4 {
8256 return fmt.Errorf("proto: ResourceClaimTemplateList: wiretype end group for non-group")
8257 }
8258 if fieldNum <= 0 {
8259 return fmt.Errorf("proto: ResourceClaimTemplateList: illegal tag %d (wire type %d)", fieldNum, wire)
8260 }
8261 switch fieldNum {
8262 case 1:
8263 if wireType != 2 {
8264 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
8265 }
8266 var msglen int
8267 for shift := uint(0); ; shift += 7 {
8268 if shift >= 64 {
8269 return ErrIntOverflowGenerated
8270 }
8271 if iNdEx >= l {
8272 return io.ErrUnexpectedEOF
8273 }
8274 b := dAtA[iNdEx]
8275 iNdEx++
8276 msglen |= int(b&0x7F) << shift
8277 if b < 0x80 {
8278 break
8279 }
8280 }
8281 if msglen < 0 {
8282 return ErrInvalidLengthGenerated
8283 }
8284 postIndex := iNdEx + msglen
8285 if postIndex < 0 {
8286 return ErrInvalidLengthGenerated
8287 }
8288 if postIndex > l {
8289 return io.ErrUnexpectedEOF
8290 }
8291 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8292 return err
8293 }
8294 iNdEx = postIndex
8295 case 2:
8296 if wireType != 2 {
8297 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
8298 }
8299 var msglen int
8300 for shift := uint(0); ; shift += 7 {
8301 if shift >= 64 {
8302 return ErrIntOverflowGenerated
8303 }
8304 if iNdEx >= l {
8305 return io.ErrUnexpectedEOF
8306 }
8307 b := dAtA[iNdEx]
8308 iNdEx++
8309 msglen |= int(b&0x7F) << shift
8310 if b < 0x80 {
8311 break
8312 }
8313 }
8314 if msglen < 0 {
8315 return ErrInvalidLengthGenerated
8316 }
8317 postIndex := iNdEx + msglen
8318 if postIndex < 0 {
8319 return ErrInvalidLengthGenerated
8320 }
8321 if postIndex > l {
8322 return io.ErrUnexpectedEOF
8323 }
8324 m.Items = append(m.Items, ResourceClaimTemplate{})
8325 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8326 return err
8327 }
8328 iNdEx = postIndex
8329 default:
8330 iNdEx = preIndex
8331 skippy, err := skipGenerated(dAtA[iNdEx:])
8332 if err != nil {
8333 return err
8334 }
8335 if (skippy < 0) || (iNdEx+skippy) < 0 {
8336 return ErrInvalidLengthGenerated
8337 }
8338 if (iNdEx + skippy) > l {
8339 return io.ErrUnexpectedEOF
8340 }
8341 iNdEx += skippy
8342 }
8343 }
8344
8345 if iNdEx > l {
8346 return io.ErrUnexpectedEOF
8347 }
8348 return nil
8349 }
8350 func (m *ResourceClaimTemplateSpec) Unmarshal(dAtA []byte) error {
8351 l := len(dAtA)
8352 iNdEx := 0
8353 for iNdEx < l {
8354 preIndex := iNdEx
8355 var wire uint64
8356 for shift := uint(0); ; shift += 7 {
8357 if shift >= 64 {
8358 return ErrIntOverflowGenerated
8359 }
8360 if iNdEx >= l {
8361 return io.ErrUnexpectedEOF
8362 }
8363 b := dAtA[iNdEx]
8364 iNdEx++
8365 wire |= uint64(b&0x7F) << shift
8366 if b < 0x80 {
8367 break
8368 }
8369 }
8370 fieldNum := int32(wire >> 3)
8371 wireType := int(wire & 0x7)
8372 if wireType == 4 {
8373 return fmt.Errorf("proto: ResourceClaimTemplateSpec: wiretype end group for non-group")
8374 }
8375 if fieldNum <= 0 {
8376 return fmt.Errorf("proto: ResourceClaimTemplateSpec: illegal tag %d (wire type %d)", fieldNum, wire)
8377 }
8378 switch fieldNum {
8379 case 1:
8380 if wireType != 2 {
8381 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
8382 }
8383 var msglen int
8384 for shift := uint(0); ; shift += 7 {
8385 if shift >= 64 {
8386 return ErrIntOverflowGenerated
8387 }
8388 if iNdEx >= l {
8389 return io.ErrUnexpectedEOF
8390 }
8391 b := dAtA[iNdEx]
8392 iNdEx++
8393 msglen |= int(b&0x7F) << shift
8394 if b < 0x80 {
8395 break
8396 }
8397 }
8398 if msglen < 0 {
8399 return ErrInvalidLengthGenerated
8400 }
8401 postIndex := iNdEx + msglen
8402 if postIndex < 0 {
8403 return ErrInvalidLengthGenerated
8404 }
8405 if postIndex > l {
8406 return io.ErrUnexpectedEOF
8407 }
8408 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8409 return err
8410 }
8411 iNdEx = postIndex
8412 case 2:
8413 if wireType != 2 {
8414 return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
8415 }
8416 var msglen int
8417 for shift := uint(0); ; shift += 7 {
8418 if shift >= 64 {
8419 return ErrIntOverflowGenerated
8420 }
8421 if iNdEx >= l {
8422 return io.ErrUnexpectedEOF
8423 }
8424 b := dAtA[iNdEx]
8425 iNdEx++
8426 msglen |= int(b&0x7F) << shift
8427 if b < 0x80 {
8428 break
8429 }
8430 }
8431 if msglen < 0 {
8432 return ErrInvalidLengthGenerated
8433 }
8434 postIndex := iNdEx + msglen
8435 if postIndex < 0 {
8436 return ErrInvalidLengthGenerated
8437 }
8438 if postIndex > l {
8439 return io.ErrUnexpectedEOF
8440 }
8441 if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8442 return err
8443 }
8444 iNdEx = postIndex
8445 default:
8446 iNdEx = preIndex
8447 skippy, err := skipGenerated(dAtA[iNdEx:])
8448 if err != nil {
8449 return err
8450 }
8451 if (skippy < 0) || (iNdEx+skippy) < 0 {
8452 return ErrInvalidLengthGenerated
8453 }
8454 if (iNdEx + skippy) > l {
8455 return io.ErrUnexpectedEOF
8456 }
8457 iNdEx += skippy
8458 }
8459 }
8460
8461 if iNdEx > l {
8462 return io.ErrUnexpectedEOF
8463 }
8464 return nil
8465 }
8466 func (m *ResourceClass) Unmarshal(dAtA []byte) error {
8467 l := len(dAtA)
8468 iNdEx := 0
8469 for iNdEx < l {
8470 preIndex := iNdEx
8471 var wire uint64
8472 for shift := uint(0); ; shift += 7 {
8473 if shift >= 64 {
8474 return ErrIntOverflowGenerated
8475 }
8476 if iNdEx >= l {
8477 return io.ErrUnexpectedEOF
8478 }
8479 b := dAtA[iNdEx]
8480 iNdEx++
8481 wire |= uint64(b&0x7F) << shift
8482 if b < 0x80 {
8483 break
8484 }
8485 }
8486 fieldNum := int32(wire >> 3)
8487 wireType := int(wire & 0x7)
8488 if wireType == 4 {
8489 return fmt.Errorf("proto: ResourceClass: wiretype end group for non-group")
8490 }
8491 if fieldNum <= 0 {
8492 return fmt.Errorf("proto: ResourceClass: illegal tag %d (wire type %d)", fieldNum, wire)
8493 }
8494 switch fieldNum {
8495 case 1:
8496 if wireType != 2 {
8497 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
8498 }
8499 var msglen int
8500 for shift := uint(0); ; shift += 7 {
8501 if shift >= 64 {
8502 return ErrIntOverflowGenerated
8503 }
8504 if iNdEx >= l {
8505 return io.ErrUnexpectedEOF
8506 }
8507 b := dAtA[iNdEx]
8508 iNdEx++
8509 msglen |= int(b&0x7F) << shift
8510 if b < 0x80 {
8511 break
8512 }
8513 }
8514 if msglen < 0 {
8515 return ErrInvalidLengthGenerated
8516 }
8517 postIndex := iNdEx + msglen
8518 if postIndex < 0 {
8519 return ErrInvalidLengthGenerated
8520 }
8521 if postIndex > l {
8522 return io.ErrUnexpectedEOF
8523 }
8524 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8525 return err
8526 }
8527 iNdEx = postIndex
8528 case 2:
8529 if wireType != 2 {
8530 return fmt.Errorf("proto: wrong wireType = %d for field DriverName", wireType)
8531 }
8532 var stringLen uint64
8533 for shift := uint(0); ; shift += 7 {
8534 if shift >= 64 {
8535 return ErrIntOverflowGenerated
8536 }
8537 if iNdEx >= l {
8538 return io.ErrUnexpectedEOF
8539 }
8540 b := dAtA[iNdEx]
8541 iNdEx++
8542 stringLen |= uint64(b&0x7F) << shift
8543 if b < 0x80 {
8544 break
8545 }
8546 }
8547 intStringLen := int(stringLen)
8548 if intStringLen < 0 {
8549 return ErrInvalidLengthGenerated
8550 }
8551 postIndex := iNdEx + intStringLen
8552 if postIndex < 0 {
8553 return ErrInvalidLengthGenerated
8554 }
8555 if postIndex > l {
8556 return io.ErrUnexpectedEOF
8557 }
8558 m.DriverName = string(dAtA[iNdEx:postIndex])
8559 iNdEx = postIndex
8560 case 3:
8561 if wireType != 2 {
8562 return fmt.Errorf("proto: wrong wireType = %d for field ParametersRef", wireType)
8563 }
8564 var msglen int
8565 for shift := uint(0); ; shift += 7 {
8566 if shift >= 64 {
8567 return ErrIntOverflowGenerated
8568 }
8569 if iNdEx >= l {
8570 return io.ErrUnexpectedEOF
8571 }
8572 b := dAtA[iNdEx]
8573 iNdEx++
8574 msglen |= int(b&0x7F) << shift
8575 if b < 0x80 {
8576 break
8577 }
8578 }
8579 if msglen < 0 {
8580 return ErrInvalidLengthGenerated
8581 }
8582 postIndex := iNdEx + msglen
8583 if postIndex < 0 {
8584 return ErrInvalidLengthGenerated
8585 }
8586 if postIndex > l {
8587 return io.ErrUnexpectedEOF
8588 }
8589 if m.ParametersRef == nil {
8590 m.ParametersRef = &ResourceClassParametersReference{}
8591 }
8592 if err := m.ParametersRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8593 return err
8594 }
8595 iNdEx = postIndex
8596 case 4:
8597 if wireType != 2 {
8598 return fmt.Errorf("proto: wrong wireType = %d for field SuitableNodes", wireType)
8599 }
8600 var msglen int
8601 for shift := uint(0); ; shift += 7 {
8602 if shift >= 64 {
8603 return ErrIntOverflowGenerated
8604 }
8605 if iNdEx >= l {
8606 return io.ErrUnexpectedEOF
8607 }
8608 b := dAtA[iNdEx]
8609 iNdEx++
8610 msglen |= int(b&0x7F) << shift
8611 if b < 0x80 {
8612 break
8613 }
8614 }
8615 if msglen < 0 {
8616 return ErrInvalidLengthGenerated
8617 }
8618 postIndex := iNdEx + msglen
8619 if postIndex < 0 {
8620 return ErrInvalidLengthGenerated
8621 }
8622 if postIndex > l {
8623 return io.ErrUnexpectedEOF
8624 }
8625 if m.SuitableNodes == nil {
8626 m.SuitableNodes = &v1.NodeSelector{}
8627 }
8628 if err := m.SuitableNodes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8629 return err
8630 }
8631 iNdEx = postIndex
8632 case 5:
8633 if wireType != 0 {
8634 return fmt.Errorf("proto: wrong wireType = %d for field StructuredParameters", wireType)
8635 }
8636 var v int
8637 for shift := uint(0); ; shift += 7 {
8638 if shift >= 64 {
8639 return ErrIntOverflowGenerated
8640 }
8641 if iNdEx >= l {
8642 return io.ErrUnexpectedEOF
8643 }
8644 b := dAtA[iNdEx]
8645 iNdEx++
8646 v |= int(b&0x7F) << shift
8647 if b < 0x80 {
8648 break
8649 }
8650 }
8651 b := bool(v != 0)
8652 m.StructuredParameters = &b
8653 default:
8654 iNdEx = preIndex
8655 skippy, err := skipGenerated(dAtA[iNdEx:])
8656 if err != nil {
8657 return err
8658 }
8659 if (skippy < 0) || (iNdEx+skippy) < 0 {
8660 return ErrInvalidLengthGenerated
8661 }
8662 if (iNdEx + skippy) > l {
8663 return io.ErrUnexpectedEOF
8664 }
8665 iNdEx += skippy
8666 }
8667 }
8668
8669 if iNdEx > l {
8670 return io.ErrUnexpectedEOF
8671 }
8672 return nil
8673 }
8674 func (m *ResourceClassList) Unmarshal(dAtA []byte) error {
8675 l := len(dAtA)
8676 iNdEx := 0
8677 for iNdEx < l {
8678 preIndex := iNdEx
8679 var wire uint64
8680 for shift := uint(0); ; shift += 7 {
8681 if shift >= 64 {
8682 return ErrIntOverflowGenerated
8683 }
8684 if iNdEx >= l {
8685 return io.ErrUnexpectedEOF
8686 }
8687 b := dAtA[iNdEx]
8688 iNdEx++
8689 wire |= uint64(b&0x7F) << shift
8690 if b < 0x80 {
8691 break
8692 }
8693 }
8694 fieldNum := int32(wire >> 3)
8695 wireType := int(wire & 0x7)
8696 if wireType == 4 {
8697 return fmt.Errorf("proto: ResourceClassList: wiretype end group for non-group")
8698 }
8699 if fieldNum <= 0 {
8700 return fmt.Errorf("proto: ResourceClassList: illegal tag %d (wire type %d)", fieldNum, wire)
8701 }
8702 switch fieldNum {
8703 case 1:
8704 if wireType != 2 {
8705 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
8706 }
8707 var msglen int
8708 for shift := uint(0); ; shift += 7 {
8709 if shift >= 64 {
8710 return ErrIntOverflowGenerated
8711 }
8712 if iNdEx >= l {
8713 return io.ErrUnexpectedEOF
8714 }
8715 b := dAtA[iNdEx]
8716 iNdEx++
8717 msglen |= int(b&0x7F) << shift
8718 if b < 0x80 {
8719 break
8720 }
8721 }
8722 if msglen < 0 {
8723 return ErrInvalidLengthGenerated
8724 }
8725 postIndex := iNdEx + msglen
8726 if postIndex < 0 {
8727 return ErrInvalidLengthGenerated
8728 }
8729 if postIndex > l {
8730 return io.ErrUnexpectedEOF
8731 }
8732 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8733 return err
8734 }
8735 iNdEx = postIndex
8736 case 2:
8737 if wireType != 2 {
8738 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
8739 }
8740 var msglen int
8741 for shift := uint(0); ; shift += 7 {
8742 if shift >= 64 {
8743 return ErrIntOverflowGenerated
8744 }
8745 if iNdEx >= l {
8746 return io.ErrUnexpectedEOF
8747 }
8748 b := dAtA[iNdEx]
8749 iNdEx++
8750 msglen |= int(b&0x7F) << shift
8751 if b < 0x80 {
8752 break
8753 }
8754 }
8755 if msglen < 0 {
8756 return ErrInvalidLengthGenerated
8757 }
8758 postIndex := iNdEx + msglen
8759 if postIndex < 0 {
8760 return ErrInvalidLengthGenerated
8761 }
8762 if postIndex > l {
8763 return io.ErrUnexpectedEOF
8764 }
8765 m.Items = append(m.Items, ResourceClass{})
8766 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8767 return err
8768 }
8769 iNdEx = postIndex
8770 default:
8771 iNdEx = preIndex
8772 skippy, err := skipGenerated(dAtA[iNdEx:])
8773 if err != nil {
8774 return err
8775 }
8776 if (skippy < 0) || (iNdEx+skippy) < 0 {
8777 return ErrInvalidLengthGenerated
8778 }
8779 if (iNdEx + skippy) > l {
8780 return io.ErrUnexpectedEOF
8781 }
8782 iNdEx += skippy
8783 }
8784 }
8785
8786 if iNdEx > l {
8787 return io.ErrUnexpectedEOF
8788 }
8789 return nil
8790 }
8791 func (m *ResourceClassParameters) Unmarshal(dAtA []byte) error {
8792 l := len(dAtA)
8793 iNdEx := 0
8794 for iNdEx < l {
8795 preIndex := iNdEx
8796 var wire uint64
8797 for shift := uint(0); ; shift += 7 {
8798 if shift >= 64 {
8799 return ErrIntOverflowGenerated
8800 }
8801 if iNdEx >= l {
8802 return io.ErrUnexpectedEOF
8803 }
8804 b := dAtA[iNdEx]
8805 iNdEx++
8806 wire |= uint64(b&0x7F) << shift
8807 if b < 0x80 {
8808 break
8809 }
8810 }
8811 fieldNum := int32(wire >> 3)
8812 wireType := int(wire & 0x7)
8813 if wireType == 4 {
8814 return fmt.Errorf("proto: ResourceClassParameters: wiretype end group for non-group")
8815 }
8816 if fieldNum <= 0 {
8817 return fmt.Errorf("proto: ResourceClassParameters: illegal tag %d (wire type %d)", fieldNum, wire)
8818 }
8819 switch fieldNum {
8820 case 1:
8821 if wireType != 2 {
8822 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
8823 }
8824 var msglen int
8825 for shift := uint(0); ; shift += 7 {
8826 if shift >= 64 {
8827 return ErrIntOverflowGenerated
8828 }
8829 if iNdEx >= l {
8830 return io.ErrUnexpectedEOF
8831 }
8832 b := dAtA[iNdEx]
8833 iNdEx++
8834 msglen |= int(b&0x7F) << shift
8835 if b < 0x80 {
8836 break
8837 }
8838 }
8839 if msglen < 0 {
8840 return ErrInvalidLengthGenerated
8841 }
8842 postIndex := iNdEx + msglen
8843 if postIndex < 0 {
8844 return ErrInvalidLengthGenerated
8845 }
8846 if postIndex > l {
8847 return io.ErrUnexpectedEOF
8848 }
8849 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8850 return err
8851 }
8852 iNdEx = postIndex
8853 case 2:
8854 if wireType != 2 {
8855 return fmt.Errorf("proto: wrong wireType = %d for field GeneratedFrom", wireType)
8856 }
8857 var msglen int
8858 for shift := uint(0); ; shift += 7 {
8859 if shift >= 64 {
8860 return ErrIntOverflowGenerated
8861 }
8862 if iNdEx >= l {
8863 return io.ErrUnexpectedEOF
8864 }
8865 b := dAtA[iNdEx]
8866 iNdEx++
8867 msglen |= int(b&0x7F) << shift
8868 if b < 0x80 {
8869 break
8870 }
8871 }
8872 if msglen < 0 {
8873 return ErrInvalidLengthGenerated
8874 }
8875 postIndex := iNdEx + msglen
8876 if postIndex < 0 {
8877 return ErrInvalidLengthGenerated
8878 }
8879 if postIndex > l {
8880 return io.ErrUnexpectedEOF
8881 }
8882 if m.GeneratedFrom == nil {
8883 m.GeneratedFrom = &ResourceClassParametersReference{}
8884 }
8885 if err := m.GeneratedFrom.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8886 return err
8887 }
8888 iNdEx = postIndex
8889 case 3:
8890 if wireType != 2 {
8891 return fmt.Errorf("proto: wrong wireType = %d for field VendorParameters", wireType)
8892 }
8893 var msglen int
8894 for shift := uint(0); ; shift += 7 {
8895 if shift >= 64 {
8896 return ErrIntOverflowGenerated
8897 }
8898 if iNdEx >= l {
8899 return io.ErrUnexpectedEOF
8900 }
8901 b := dAtA[iNdEx]
8902 iNdEx++
8903 msglen |= int(b&0x7F) << shift
8904 if b < 0x80 {
8905 break
8906 }
8907 }
8908 if msglen < 0 {
8909 return ErrInvalidLengthGenerated
8910 }
8911 postIndex := iNdEx + msglen
8912 if postIndex < 0 {
8913 return ErrInvalidLengthGenerated
8914 }
8915 if postIndex > l {
8916 return io.ErrUnexpectedEOF
8917 }
8918 m.VendorParameters = append(m.VendorParameters, VendorParameters{})
8919 if err := m.VendorParameters[len(m.VendorParameters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8920 return err
8921 }
8922 iNdEx = postIndex
8923 case 4:
8924 if wireType != 2 {
8925 return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType)
8926 }
8927 var msglen int
8928 for shift := uint(0); ; shift += 7 {
8929 if shift >= 64 {
8930 return ErrIntOverflowGenerated
8931 }
8932 if iNdEx >= l {
8933 return io.ErrUnexpectedEOF
8934 }
8935 b := dAtA[iNdEx]
8936 iNdEx++
8937 msglen |= int(b&0x7F) << shift
8938 if b < 0x80 {
8939 break
8940 }
8941 }
8942 if msglen < 0 {
8943 return ErrInvalidLengthGenerated
8944 }
8945 postIndex := iNdEx + msglen
8946 if postIndex < 0 {
8947 return ErrInvalidLengthGenerated
8948 }
8949 if postIndex > l {
8950 return io.ErrUnexpectedEOF
8951 }
8952 m.Filters = append(m.Filters, ResourceFilter{})
8953 if err := m.Filters[len(m.Filters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
8954 return err
8955 }
8956 iNdEx = postIndex
8957 default:
8958 iNdEx = preIndex
8959 skippy, err := skipGenerated(dAtA[iNdEx:])
8960 if err != nil {
8961 return err
8962 }
8963 if (skippy < 0) || (iNdEx+skippy) < 0 {
8964 return ErrInvalidLengthGenerated
8965 }
8966 if (iNdEx + skippy) > l {
8967 return io.ErrUnexpectedEOF
8968 }
8969 iNdEx += skippy
8970 }
8971 }
8972
8973 if iNdEx > l {
8974 return io.ErrUnexpectedEOF
8975 }
8976 return nil
8977 }
8978 func (m *ResourceClassParametersList) Unmarshal(dAtA []byte) error {
8979 l := len(dAtA)
8980 iNdEx := 0
8981 for iNdEx < l {
8982 preIndex := iNdEx
8983 var wire uint64
8984 for shift := uint(0); ; shift += 7 {
8985 if shift >= 64 {
8986 return ErrIntOverflowGenerated
8987 }
8988 if iNdEx >= l {
8989 return io.ErrUnexpectedEOF
8990 }
8991 b := dAtA[iNdEx]
8992 iNdEx++
8993 wire |= uint64(b&0x7F) << shift
8994 if b < 0x80 {
8995 break
8996 }
8997 }
8998 fieldNum := int32(wire >> 3)
8999 wireType := int(wire & 0x7)
9000 if wireType == 4 {
9001 return fmt.Errorf("proto: ResourceClassParametersList: wiretype end group for non-group")
9002 }
9003 if fieldNum <= 0 {
9004 return fmt.Errorf("proto: ResourceClassParametersList: illegal tag %d (wire type %d)", fieldNum, wire)
9005 }
9006 switch fieldNum {
9007 case 1:
9008 if wireType != 2 {
9009 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
9010 }
9011 var msglen int
9012 for shift := uint(0); ; shift += 7 {
9013 if shift >= 64 {
9014 return ErrIntOverflowGenerated
9015 }
9016 if iNdEx >= l {
9017 return io.ErrUnexpectedEOF
9018 }
9019 b := dAtA[iNdEx]
9020 iNdEx++
9021 msglen |= int(b&0x7F) << shift
9022 if b < 0x80 {
9023 break
9024 }
9025 }
9026 if msglen < 0 {
9027 return ErrInvalidLengthGenerated
9028 }
9029 postIndex := iNdEx + msglen
9030 if postIndex < 0 {
9031 return ErrInvalidLengthGenerated
9032 }
9033 if postIndex > l {
9034 return io.ErrUnexpectedEOF
9035 }
9036 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
9037 return err
9038 }
9039 iNdEx = postIndex
9040 case 2:
9041 if wireType != 2 {
9042 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
9043 }
9044 var msglen int
9045 for shift := uint(0); ; shift += 7 {
9046 if shift >= 64 {
9047 return ErrIntOverflowGenerated
9048 }
9049 if iNdEx >= l {
9050 return io.ErrUnexpectedEOF
9051 }
9052 b := dAtA[iNdEx]
9053 iNdEx++
9054 msglen |= int(b&0x7F) << shift
9055 if b < 0x80 {
9056 break
9057 }
9058 }
9059 if msglen < 0 {
9060 return ErrInvalidLengthGenerated
9061 }
9062 postIndex := iNdEx + msglen
9063 if postIndex < 0 {
9064 return ErrInvalidLengthGenerated
9065 }
9066 if postIndex > l {
9067 return io.ErrUnexpectedEOF
9068 }
9069 m.Items = append(m.Items, ResourceClassParameters{})
9070 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
9071 return err
9072 }
9073 iNdEx = postIndex
9074 default:
9075 iNdEx = preIndex
9076 skippy, err := skipGenerated(dAtA[iNdEx:])
9077 if err != nil {
9078 return err
9079 }
9080 if (skippy < 0) || (iNdEx+skippy) < 0 {
9081 return ErrInvalidLengthGenerated
9082 }
9083 if (iNdEx + skippy) > l {
9084 return io.ErrUnexpectedEOF
9085 }
9086 iNdEx += skippy
9087 }
9088 }
9089
9090 if iNdEx > l {
9091 return io.ErrUnexpectedEOF
9092 }
9093 return nil
9094 }
9095 func (m *ResourceClassParametersReference) Unmarshal(dAtA []byte) error {
9096 l := len(dAtA)
9097 iNdEx := 0
9098 for iNdEx < l {
9099 preIndex := iNdEx
9100 var wire uint64
9101 for shift := uint(0); ; shift += 7 {
9102 if shift >= 64 {
9103 return ErrIntOverflowGenerated
9104 }
9105 if iNdEx >= l {
9106 return io.ErrUnexpectedEOF
9107 }
9108 b := dAtA[iNdEx]
9109 iNdEx++
9110 wire |= uint64(b&0x7F) << shift
9111 if b < 0x80 {
9112 break
9113 }
9114 }
9115 fieldNum := int32(wire >> 3)
9116 wireType := int(wire & 0x7)
9117 if wireType == 4 {
9118 return fmt.Errorf("proto: ResourceClassParametersReference: wiretype end group for non-group")
9119 }
9120 if fieldNum <= 0 {
9121 return fmt.Errorf("proto: ResourceClassParametersReference: illegal tag %d (wire type %d)", fieldNum, wire)
9122 }
9123 switch fieldNum {
9124 case 1:
9125 if wireType != 2 {
9126 return fmt.Errorf("proto: wrong wireType = %d for field APIGroup", wireType)
9127 }
9128 var stringLen uint64
9129 for shift := uint(0); ; shift += 7 {
9130 if shift >= 64 {
9131 return ErrIntOverflowGenerated
9132 }
9133 if iNdEx >= l {
9134 return io.ErrUnexpectedEOF
9135 }
9136 b := dAtA[iNdEx]
9137 iNdEx++
9138 stringLen |= uint64(b&0x7F) << shift
9139 if b < 0x80 {
9140 break
9141 }
9142 }
9143 intStringLen := int(stringLen)
9144 if intStringLen < 0 {
9145 return ErrInvalidLengthGenerated
9146 }
9147 postIndex := iNdEx + intStringLen
9148 if postIndex < 0 {
9149 return ErrInvalidLengthGenerated
9150 }
9151 if postIndex > l {
9152 return io.ErrUnexpectedEOF
9153 }
9154 m.APIGroup = string(dAtA[iNdEx:postIndex])
9155 iNdEx = postIndex
9156 case 2:
9157 if wireType != 2 {
9158 return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType)
9159 }
9160 var stringLen uint64
9161 for shift := uint(0); ; shift += 7 {
9162 if shift >= 64 {
9163 return ErrIntOverflowGenerated
9164 }
9165 if iNdEx >= l {
9166 return io.ErrUnexpectedEOF
9167 }
9168 b := dAtA[iNdEx]
9169 iNdEx++
9170 stringLen |= uint64(b&0x7F) << shift
9171 if b < 0x80 {
9172 break
9173 }
9174 }
9175 intStringLen := int(stringLen)
9176 if intStringLen < 0 {
9177 return ErrInvalidLengthGenerated
9178 }
9179 postIndex := iNdEx + intStringLen
9180 if postIndex < 0 {
9181 return ErrInvalidLengthGenerated
9182 }
9183 if postIndex > l {
9184 return io.ErrUnexpectedEOF
9185 }
9186 m.Kind = string(dAtA[iNdEx:postIndex])
9187 iNdEx = postIndex
9188 case 3:
9189 if wireType != 2 {
9190 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
9191 }
9192 var stringLen uint64
9193 for shift := uint(0); ; shift += 7 {
9194 if shift >= 64 {
9195 return ErrIntOverflowGenerated
9196 }
9197 if iNdEx >= l {
9198 return io.ErrUnexpectedEOF
9199 }
9200 b := dAtA[iNdEx]
9201 iNdEx++
9202 stringLen |= uint64(b&0x7F) << shift
9203 if b < 0x80 {
9204 break
9205 }
9206 }
9207 intStringLen := int(stringLen)
9208 if intStringLen < 0 {
9209 return ErrInvalidLengthGenerated
9210 }
9211 postIndex := iNdEx + intStringLen
9212 if postIndex < 0 {
9213 return ErrInvalidLengthGenerated
9214 }
9215 if postIndex > l {
9216 return io.ErrUnexpectedEOF
9217 }
9218 m.Name = string(dAtA[iNdEx:postIndex])
9219 iNdEx = postIndex
9220 case 4:
9221 if wireType != 2 {
9222 return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
9223 }
9224 var stringLen uint64
9225 for shift := uint(0); ; shift += 7 {
9226 if shift >= 64 {
9227 return ErrIntOverflowGenerated
9228 }
9229 if iNdEx >= l {
9230 return io.ErrUnexpectedEOF
9231 }
9232 b := dAtA[iNdEx]
9233 iNdEx++
9234 stringLen |= uint64(b&0x7F) << shift
9235 if b < 0x80 {
9236 break
9237 }
9238 }
9239 intStringLen := int(stringLen)
9240 if intStringLen < 0 {
9241 return ErrInvalidLengthGenerated
9242 }
9243 postIndex := iNdEx + intStringLen
9244 if postIndex < 0 {
9245 return ErrInvalidLengthGenerated
9246 }
9247 if postIndex > l {
9248 return io.ErrUnexpectedEOF
9249 }
9250 m.Namespace = string(dAtA[iNdEx:postIndex])
9251 iNdEx = postIndex
9252 default:
9253 iNdEx = preIndex
9254 skippy, err := skipGenerated(dAtA[iNdEx:])
9255 if err != nil {
9256 return err
9257 }
9258 if (skippy < 0) || (iNdEx+skippy) < 0 {
9259 return ErrInvalidLengthGenerated
9260 }
9261 if (iNdEx + skippy) > l {
9262 return io.ErrUnexpectedEOF
9263 }
9264 iNdEx += skippy
9265 }
9266 }
9267
9268 if iNdEx > l {
9269 return io.ErrUnexpectedEOF
9270 }
9271 return nil
9272 }
9273 func (m *ResourceFilter) Unmarshal(dAtA []byte) error {
9274 l := len(dAtA)
9275 iNdEx := 0
9276 for iNdEx < l {
9277 preIndex := iNdEx
9278 var wire uint64
9279 for shift := uint(0); ; shift += 7 {
9280 if shift >= 64 {
9281 return ErrIntOverflowGenerated
9282 }
9283 if iNdEx >= l {
9284 return io.ErrUnexpectedEOF
9285 }
9286 b := dAtA[iNdEx]
9287 iNdEx++
9288 wire |= uint64(b&0x7F) << shift
9289 if b < 0x80 {
9290 break
9291 }
9292 }
9293 fieldNum := int32(wire >> 3)
9294 wireType := int(wire & 0x7)
9295 if wireType == 4 {
9296 return fmt.Errorf("proto: ResourceFilter: wiretype end group for non-group")
9297 }
9298 if fieldNum <= 0 {
9299 return fmt.Errorf("proto: ResourceFilter: illegal tag %d (wire type %d)", fieldNum, wire)
9300 }
9301 switch fieldNum {
9302 case 1:
9303 if wireType != 2 {
9304 return fmt.Errorf("proto: wrong wireType = %d for field DriverName", wireType)
9305 }
9306 var stringLen uint64
9307 for shift := uint(0); ; shift += 7 {
9308 if shift >= 64 {
9309 return ErrIntOverflowGenerated
9310 }
9311 if iNdEx >= l {
9312 return io.ErrUnexpectedEOF
9313 }
9314 b := dAtA[iNdEx]
9315 iNdEx++
9316 stringLen |= uint64(b&0x7F) << shift
9317 if b < 0x80 {
9318 break
9319 }
9320 }
9321 intStringLen := int(stringLen)
9322 if intStringLen < 0 {
9323 return ErrInvalidLengthGenerated
9324 }
9325 postIndex := iNdEx + intStringLen
9326 if postIndex < 0 {
9327 return ErrInvalidLengthGenerated
9328 }
9329 if postIndex > l {
9330 return io.ErrUnexpectedEOF
9331 }
9332 m.DriverName = string(dAtA[iNdEx:postIndex])
9333 iNdEx = postIndex
9334 case 2:
9335 if wireType != 2 {
9336 return fmt.Errorf("proto: wrong wireType = %d for field ResourceFilterModel", wireType)
9337 }
9338 var msglen int
9339 for shift := uint(0); ; shift += 7 {
9340 if shift >= 64 {
9341 return ErrIntOverflowGenerated
9342 }
9343 if iNdEx >= l {
9344 return io.ErrUnexpectedEOF
9345 }
9346 b := dAtA[iNdEx]
9347 iNdEx++
9348 msglen |= int(b&0x7F) << shift
9349 if b < 0x80 {
9350 break
9351 }
9352 }
9353 if msglen < 0 {
9354 return ErrInvalidLengthGenerated
9355 }
9356 postIndex := iNdEx + msglen
9357 if postIndex < 0 {
9358 return ErrInvalidLengthGenerated
9359 }
9360 if postIndex > l {
9361 return io.ErrUnexpectedEOF
9362 }
9363 if err := m.ResourceFilterModel.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
9364 return err
9365 }
9366 iNdEx = postIndex
9367 default:
9368 iNdEx = preIndex
9369 skippy, err := skipGenerated(dAtA[iNdEx:])
9370 if err != nil {
9371 return err
9372 }
9373 if (skippy < 0) || (iNdEx+skippy) < 0 {
9374 return ErrInvalidLengthGenerated
9375 }
9376 if (iNdEx + skippy) > l {
9377 return io.ErrUnexpectedEOF
9378 }
9379 iNdEx += skippy
9380 }
9381 }
9382
9383 if iNdEx > l {
9384 return io.ErrUnexpectedEOF
9385 }
9386 return nil
9387 }
9388 func (m *ResourceFilterModel) Unmarshal(dAtA []byte) error {
9389 l := len(dAtA)
9390 iNdEx := 0
9391 for iNdEx < l {
9392 preIndex := iNdEx
9393 var wire uint64
9394 for shift := uint(0); ; shift += 7 {
9395 if shift >= 64 {
9396 return ErrIntOverflowGenerated
9397 }
9398 if iNdEx >= l {
9399 return io.ErrUnexpectedEOF
9400 }
9401 b := dAtA[iNdEx]
9402 iNdEx++
9403 wire |= uint64(b&0x7F) << shift
9404 if b < 0x80 {
9405 break
9406 }
9407 }
9408 fieldNum := int32(wire >> 3)
9409 wireType := int(wire & 0x7)
9410 if wireType == 4 {
9411 return fmt.Errorf("proto: ResourceFilterModel: wiretype end group for non-group")
9412 }
9413 if fieldNum <= 0 {
9414 return fmt.Errorf("proto: ResourceFilterModel: illegal tag %d (wire type %d)", fieldNum, wire)
9415 }
9416 switch fieldNum {
9417 case 1:
9418 if wireType != 2 {
9419 return fmt.Errorf("proto: wrong wireType = %d for field NamedResources", wireType)
9420 }
9421 var msglen int
9422 for shift := uint(0); ; shift += 7 {
9423 if shift >= 64 {
9424 return ErrIntOverflowGenerated
9425 }
9426 if iNdEx >= l {
9427 return io.ErrUnexpectedEOF
9428 }
9429 b := dAtA[iNdEx]
9430 iNdEx++
9431 msglen |= int(b&0x7F) << shift
9432 if b < 0x80 {
9433 break
9434 }
9435 }
9436 if msglen < 0 {
9437 return ErrInvalidLengthGenerated
9438 }
9439 postIndex := iNdEx + msglen
9440 if postIndex < 0 {
9441 return ErrInvalidLengthGenerated
9442 }
9443 if postIndex > l {
9444 return io.ErrUnexpectedEOF
9445 }
9446 if m.NamedResources == nil {
9447 m.NamedResources = &NamedResourcesFilter{}
9448 }
9449 if err := m.NamedResources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
9450 return err
9451 }
9452 iNdEx = postIndex
9453 default:
9454 iNdEx = preIndex
9455 skippy, err := skipGenerated(dAtA[iNdEx:])
9456 if err != nil {
9457 return err
9458 }
9459 if (skippy < 0) || (iNdEx+skippy) < 0 {
9460 return ErrInvalidLengthGenerated
9461 }
9462 if (iNdEx + skippy) > l {
9463 return io.ErrUnexpectedEOF
9464 }
9465 iNdEx += skippy
9466 }
9467 }
9468
9469 if iNdEx > l {
9470 return io.ErrUnexpectedEOF
9471 }
9472 return nil
9473 }
9474 func (m *ResourceHandle) Unmarshal(dAtA []byte) error {
9475 l := len(dAtA)
9476 iNdEx := 0
9477 for iNdEx < l {
9478 preIndex := iNdEx
9479 var wire uint64
9480 for shift := uint(0); ; shift += 7 {
9481 if shift >= 64 {
9482 return ErrIntOverflowGenerated
9483 }
9484 if iNdEx >= l {
9485 return io.ErrUnexpectedEOF
9486 }
9487 b := dAtA[iNdEx]
9488 iNdEx++
9489 wire |= uint64(b&0x7F) << shift
9490 if b < 0x80 {
9491 break
9492 }
9493 }
9494 fieldNum := int32(wire >> 3)
9495 wireType := int(wire & 0x7)
9496 if wireType == 4 {
9497 return fmt.Errorf("proto: ResourceHandle: wiretype end group for non-group")
9498 }
9499 if fieldNum <= 0 {
9500 return fmt.Errorf("proto: ResourceHandle: illegal tag %d (wire type %d)", fieldNum, wire)
9501 }
9502 switch fieldNum {
9503 case 1:
9504 if wireType != 2 {
9505 return fmt.Errorf("proto: wrong wireType = %d for field DriverName", wireType)
9506 }
9507 var stringLen uint64
9508 for shift := uint(0); ; shift += 7 {
9509 if shift >= 64 {
9510 return ErrIntOverflowGenerated
9511 }
9512 if iNdEx >= l {
9513 return io.ErrUnexpectedEOF
9514 }
9515 b := dAtA[iNdEx]
9516 iNdEx++
9517 stringLen |= uint64(b&0x7F) << shift
9518 if b < 0x80 {
9519 break
9520 }
9521 }
9522 intStringLen := int(stringLen)
9523 if intStringLen < 0 {
9524 return ErrInvalidLengthGenerated
9525 }
9526 postIndex := iNdEx + intStringLen
9527 if postIndex < 0 {
9528 return ErrInvalidLengthGenerated
9529 }
9530 if postIndex > l {
9531 return io.ErrUnexpectedEOF
9532 }
9533 m.DriverName = string(dAtA[iNdEx:postIndex])
9534 iNdEx = postIndex
9535 case 2:
9536 if wireType != 2 {
9537 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
9538 }
9539 var stringLen uint64
9540 for shift := uint(0); ; shift += 7 {
9541 if shift >= 64 {
9542 return ErrIntOverflowGenerated
9543 }
9544 if iNdEx >= l {
9545 return io.ErrUnexpectedEOF
9546 }
9547 b := dAtA[iNdEx]
9548 iNdEx++
9549 stringLen |= uint64(b&0x7F) << shift
9550 if b < 0x80 {
9551 break
9552 }
9553 }
9554 intStringLen := int(stringLen)
9555 if intStringLen < 0 {
9556 return ErrInvalidLengthGenerated
9557 }
9558 postIndex := iNdEx + intStringLen
9559 if postIndex < 0 {
9560 return ErrInvalidLengthGenerated
9561 }
9562 if postIndex > l {
9563 return io.ErrUnexpectedEOF
9564 }
9565 m.Data = string(dAtA[iNdEx:postIndex])
9566 iNdEx = postIndex
9567 case 5:
9568 if wireType != 2 {
9569 return fmt.Errorf("proto: wrong wireType = %d for field StructuredData", wireType)
9570 }
9571 var msglen int
9572 for shift := uint(0); ; shift += 7 {
9573 if shift >= 64 {
9574 return ErrIntOverflowGenerated
9575 }
9576 if iNdEx >= l {
9577 return io.ErrUnexpectedEOF
9578 }
9579 b := dAtA[iNdEx]
9580 iNdEx++
9581 msglen |= int(b&0x7F) << shift
9582 if b < 0x80 {
9583 break
9584 }
9585 }
9586 if msglen < 0 {
9587 return ErrInvalidLengthGenerated
9588 }
9589 postIndex := iNdEx + msglen
9590 if postIndex < 0 {
9591 return ErrInvalidLengthGenerated
9592 }
9593 if postIndex > l {
9594 return io.ErrUnexpectedEOF
9595 }
9596 if m.StructuredData == nil {
9597 m.StructuredData = &StructuredResourceHandle{}
9598 }
9599 if err := m.StructuredData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
9600 return err
9601 }
9602 iNdEx = postIndex
9603 default:
9604 iNdEx = preIndex
9605 skippy, err := skipGenerated(dAtA[iNdEx:])
9606 if err != nil {
9607 return err
9608 }
9609 if (skippy < 0) || (iNdEx+skippy) < 0 {
9610 return ErrInvalidLengthGenerated
9611 }
9612 if (iNdEx + skippy) > l {
9613 return io.ErrUnexpectedEOF
9614 }
9615 iNdEx += skippy
9616 }
9617 }
9618
9619 if iNdEx > l {
9620 return io.ErrUnexpectedEOF
9621 }
9622 return nil
9623 }
9624 func (m *ResourceModel) Unmarshal(dAtA []byte) error {
9625 l := len(dAtA)
9626 iNdEx := 0
9627 for iNdEx < l {
9628 preIndex := iNdEx
9629 var wire uint64
9630 for shift := uint(0); ; shift += 7 {
9631 if shift >= 64 {
9632 return ErrIntOverflowGenerated
9633 }
9634 if iNdEx >= l {
9635 return io.ErrUnexpectedEOF
9636 }
9637 b := dAtA[iNdEx]
9638 iNdEx++
9639 wire |= uint64(b&0x7F) << shift
9640 if b < 0x80 {
9641 break
9642 }
9643 }
9644 fieldNum := int32(wire >> 3)
9645 wireType := int(wire & 0x7)
9646 if wireType == 4 {
9647 return fmt.Errorf("proto: ResourceModel: wiretype end group for non-group")
9648 }
9649 if fieldNum <= 0 {
9650 return fmt.Errorf("proto: ResourceModel: illegal tag %d (wire type %d)", fieldNum, wire)
9651 }
9652 switch fieldNum {
9653 case 1:
9654 if wireType != 2 {
9655 return fmt.Errorf("proto: wrong wireType = %d for field NamedResources", wireType)
9656 }
9657 var msglen int
9658 for shift := uint(0); ; shift += 7 {
9659 if shift >= 64 {
9660 return ErrIntOverflowGenerated
9661 }
9662 if iNdEx >= l {
9663 return io.ErrUnexpectedEOF
9664 }
9665 b := dAtA[iNdEx]
9666 iNdEx++
9667 msglen |= int(b&0x7F) << shift
9668 if b < 0x80 {
9669 break
9670 }
9671 }
9672 if msglen < 0 {
9673 return ErrInvalidLengthGenerated
9674 }
9675 postIndex := iNdEx + msglen
9676 if postIndex < 0 {
9677 return ErrInvalidLengthGenerated
9678 }
9679 if postIndex > l {
9680 return io.ErrUnexpectedEOF
9681 }
9682 if m.NamedResources == nil {
9683 m.NamedResources = &NamedResourcesResources{}
9684 }
9685 if err := m.NamedResources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
9686 return err
9687 }
9688 iNdEx = postIndex
9689 default:
9690 iNdEx = preIndex
9691 skippy, err := skipGenerated(dAtA[iNdEx:])
9692 if err != nil {
9693 return err
9694 }
9695 if (skippy < 0) || (iNdEx+skippy) < 0 {
9696 return ErrInvalidLengthGenerated
9697 }
9698 if (iNdEx + skippy) > l {
9699 return io.ErrUnexpectedEOF
9700 }
9701 iNdEx += skippy
9702 }
9703 }
9704
9705 if iNdEx > l {
9706 return io.ErrUnexpectedEOF
9707 }
9708 return nil
9709 }
9710 func (m *ResourceRequest) Unmarshal(dAtA []byte) error {
9711 l := len(dAtA)
9712 iNdEx := 0
9713 for iNdEx < l {
9714 preIndex := iNdEx
9715 var wire uint64
9716 for shift := uint(0); ; shift += 7 {
9717 if shift >= 64 {
9718 return ErrIntOverflowGenerated
9719 }
9720 if iNdEx >= l {
9721 return io.ErrUnexpectedEOF
9722 }
9723 b := dAtA[iNdEx]
9724 iNdEx++
9725 wire |= uint64(b&0x7F) << shift
9726 if b < 0x80 {
9727 break
9728 }
9729 }
9730 fieldNum := int32(wire >> 3)
9731 wireType := int(wire & 0x7)
9732 if wireType == 4 {
9733 return fmt.Errorf("proto: ResourceRequest: wiretype end group for non-group")
9734 }
9735 if fieldNum <= 0 {
9736 return fmt.Errorf("proto: ResourceRequest: illegal tag %d (wire type %d)", fieldNum, wire)
9737 }
9738 switch fieldNum {
9739 case 1:
9740 if wireType != 2 {
9741 return fmt.Errorf("proto: wrong wireType = %d for field VendorParameters", wireType)
9742 }
9743 var msglen int
9744 for shift := uint(0); ; shift += 7 {
9745 if shift >= 64 {
9746 return ErrIntOverflowGenerated
9747 }
9748 if iNdEx >= l {
9749 return io.ErrUnexpectedEOF
9750 }
9751 b := dAtA[iNdEx]
9752 iNdEx++
9753 msglen |= int(b&0x7F) << shift
9754 if b < 0x80 {
9755 break
9756 }
9757 }
9758 if msglen < 0 {
9759 return ErrInvalidLengthGenerated
9760 }
9761 postIndex := iNdEx + msglen
9762 if postIndex < 0 {
9763 return ErrInvalidLengthGenerated
9764 }
9765 if postIndex > l {
9766 return io.ErrUnexpectedEOF
9767 }
9768 if err := m.VendorParameters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
9769 return err
9770 }
9771 iNdEx = postIndex
9772 case 2:
9773 if wireType != 2 {
9774 return fmt.Errorf("proto: wrong wireType = %d for field ResourceRequestModel", wireType)
9775 }
9776 var msglen int
9777 for shift := uint(0); ; shift += 7 {
9778 if shift >= 64 {
9779 return ErrIntOverflowGenerated
9780 }
9781 if iNdEx >= l {
9782 return io.ErrUnexpectedEOF
9783 }
9784 b := dAtA[iNdEx]
9785 iNdEx++
9786 msglen |= int(b&0x7F) << shift
9787 if b < 0x80 {
9788 break
9789 }
9790 }
9791 if msglen < 0 {
9792 return ErrInvalidLengthGenerated
9793 }
9794 postIndex := iNdEx + msglen
9795 if postIndex < 0 {
9796 return ErrInvalidLengthGenerated
9797 }
9798 if postIndex > l {
9799 return io.ErrUnexpectedEOF
9800 }
9801 if err := m.ResourceRequestModel.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
9802 return err
9803 }
9804 iNdEx = postIndex
9805 default:
9806 iNdEx = preIndex
9807 skippy, err := skipGenerated(dAtA[iNdEx:])
9808 if err != nil {
9809 return err
9810 }
9811 if (skippy < 0) || (iNdEx+skippy) < 0 {
9812 return ErrInvalidLengthGenerated
9813 }
9814 if (iNdEx + skippy) > l {
9815 return io.ErrUnexpectedEOF
9816 }
9817 iNdEx += skippy
9818 }
9819 }
9820
9821 if iNdEx > l {
9822 return io.ErrUnexpectedEOF
9823 }
9824 return nil
9825 }
9826 func (m *ResourceRequestModel) Unmarshal(dAtA []byte) error {
9827 l := len(dAtA)
9828 iNdEx := 0
9829 for iNdEx < l {
9830 preIndex := iNdEx
9831 var wire uint64
9832 for shift := uint(0); ; shift += 7 {
9833 if shift >= 64 {
9834 return ErrIntOverflowGenerated
9835 }
9836 if iNdEx >= l {
9837 return io.ErrUnexpectedEOF
9838 }
9839 b := dAtA[iNdEx]
9840 iNdEx++
9841 wire |= uint64(b&0x7F) << shift
9842 if b < 0x80 {
9843 break
9844 }
9845 }
9846 fieldNum := int32(wire >> 3)
9847 wireType := int(wire & 0x7)
9848 if wireType == 4 {
9849 return fmt.Errorf("proto: ResourceRequestModel: wiretype end group for non-group")
9850 }
9851 if fieldNum <= 0 {
9852 return fmt.Errorf("proto: ResourceRequestModel: illegal tag %d (wire type %d)", fieldNum, wire)
9853 }
9854 switch fieldNum {
9855 case 1:
9856 if wireType != 2 {
9857 return fmt.Errorf("proto: wrong wireType = %d for field NamedResources", wireType)
9858 }
9859 var msglen int
9860 for shift := uint(0); ; shift += 7 {
9861 if shift >= 64 {
9862 return ErrIntOverflowGenerated
9863 }
9864 if iNdEx >= l {
9865 return io.ErrUnexpectedEOF
9866 }
9867 b := dAtA[iNdEx]
9868 iNdEx++
9869 msglen |= int(b&0x7F) << shift
9870 if b < 0x80 {
9871 break
9872 }
9873 }
9874 if msglen < 0 {
9875 return ErrInvalidLengthGenerated
9876 }
9877 postIndex := iNdEx + msglen
9878 if postIndex < 0 {
9879 return ErrInvalidLengthGenerated
9880 }
9881 if postIndex > l {
9882 return io.ErrUnexpectedEOF
9883 }
9884 if m.NamedResources == nil {
9885 m.NamedResources = &NamedResourcesRequest{}
9886 }
9887 if err := m.NamedResources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
9888 return err
9889 }
9890 iNdEx = postIndex
9891 default:
9892 iNdEx = preIndex
9893 skippy, err := skipGenerated(dAtA[iNdEx:])
9894 if err != nil {
9895 return err
9896 }
9897 if (skippy < 0) || (iNdEx+skippy) < 0 {
9898 return ErrInvalidLengthGenerated
9899 }
9900 if (iNdEx + skippy) > l {
9901 return io.ErrUnexpectedEOF
9902 }
9903 iNdEx += skippy
9904 }
9905 }
9906
9907 if iNdEx > l {
9908 return io.ErrUnexpectedEOF
9909 }
9910 return nil
9911 }
9912 func (m *ResourceSlice) Unmarshal(dAtA []byte) error {
9913 l := len(dAtA)
9914 iNdEx := 0
9915 for iNdEx < l {
9916 preIndex := iNdEx
9917 var wire uint64
9918 for shift := uint(0); ; shift += 7 {
9919 if shift >= 64 {
9920 return ErrIntOverflowGenerated
9921 }
9922 if iNdEx >= l {
9923 return io.ErrUnexpectedEOF
9924 }
9925 b := dAtA[iNdEx]
9926 iNdEx++
9927 wire |= uint64(b&0x7F) << shift
9928 if b < 0x80 {
9929 break
9930 }
9931 }
9932 fieldNum := int32(wire >> 3)
9933 wireType := int(wire & 0x7)
9934 if wireType == 4 {
9935 return fmt.Errorf("proto: ResourceSlice: wiretype end group for non-group")
9936 }
9937 if fieldNum <= 0 {
9938 return fmt.Errorf("proto: ResourceSlice: illegal tag %d (wire type %d)", fieldNum, wire)
9939 }
9940 switch fieldNum {
9941 case 1:
9942 if wireType != 2 {
9943 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
9944 }
9945 var msglen int
9946 for shift := uint(0); ; shift += 7 {
9947 if shift >= 64 {
9948 return ErrIntOverflowGenerated
9949 }
9950 if iNdEx >= l {
9951 return io.ErrUnexpectedEOF
9952 }
9953 b := dAtA[iNdEx]
9954 iNdEx++
9955 msglen |= int(b&0x7F) << shift
9956 if b < 0x80 {
9957 break
9958 }
9959 }
9960 if msglen < 0 {
9961 return ErrInvalidLengthGenerated
9962 }
9963 postIndex := iNdEx + msglen
9964 if postIndex < 0 {
9965 return ErrInvalidLengthGenerated
9966 }
9967 if postIndex > l {
9968 return io.ErrUnexpectedEOF
9969 }
9970 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
9971 return err
9972 }
9973 iNdEx = postIndex
9974 case 2:
9975 if wireType != 2 {
9976 return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType)
9977 }
9978 var stringLen uint64
9979 for shift := uint(0); ; shift += 7 {
9980 if shift >= 64 {
9981 return ErrIntOverflowGenerated
9982 }
9983 if iNdEx >= l {
9984 return io.ErrUnexpectedEOF
9985 }
9986 b := dAtA[iNdEx]
9987 iNdEx++
9988 stringLen |= uint64(b&0x7F) << shift
9989 if b < 0x80 {
9990 break
9991 }
9992 }
9993 intStringLen := int(stringLen)
9994 if intStringLen < 0 {
9995 return ErrInvalidLengthGenerated
9996 }
9997 postIndex := iNdEx + intStringLen
9998 if postIndex < 0 {
9999 return ErrInvalidLengthGenerated
10000 }
10001 if postIndex > l {
10002 return io.ErrUnexpectedEOF
10003 }
10004 m.NodeName = string(dAtA[iNdEx:postIndex])
10005 iNdEx = postIndex
10006 case 3:
10007 if wireType != 2 {
10008 return fmt.Errorf("proto: wrong wireType = %d for field DriverName", wireType)
10009 }
10010 var stringLen uint64
10011 for shift := uint(0); ; shift += 7 {
10012 if shift >= 64 {
10013 return ErrIntOverflowGenerated
10014 }
10015 if iNdEx >= l {
10016 return io.ErrUnexpectedEOF
10017 }
10018 b := dAtA[iNdEx]
10019 iNdEx++
10020 stringLen |= uint64(b&0x7F) << shift
10021 if b < 0x80 {
10022 break
10023 }
10024 }
10025 intStringLen := int(stringLen)
10026 if intStringLen < 0 {
10027 return ErrInvalidLengthGenerated
10028 }
10029 postIndex := iNdEx + intStringLen
10030 if postIndex < 0 {
10031 return ErrInvalidLengthGenerated
10032 }
10033 if postIndex > l {
10034 return io.ErrUnexpectedEOF
10035 }
10036 m.DriverName = string(dAtA[iNdEx:postIndex])
10037 iNdEx = postIndex
10038 case 4:
10039 if wireType != 2 {
10040 return fmt.Errorf("proto: wrong wireType = %d for field ResourceModel", wireType)
10041 }
10042 var msglen int
10043 for shift := uint(0); ; shift += 7 {
10044 if shift >= 64 {
10045 return ErrIntOverflowGenerated
10046 }
10047 if iNdEx >= l {
10048 return io.ErrUnexpectedEOF
10049 }
10050 b := dAtA[iNdEx]
10051 iNdEx++
10052 msglen |= int(b&0x7F) << shift
10053 if b < 0x80 {
10054 break
10055 }
10056 }
10057 if msglen < 0 {
10058 return ErrInvalidLengthGenerated
10059 }
10060 postIndex := iNdEx + msglen
10061 if postIndex < 0 {
10062 return ErrInvalidLengthGenerated
10063 }
10064 if postIndex > l {
10065 return io.ErrUnexpectedEOF
10066 }
10067 if err := m.ResourceModel.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
10068 return err
10069 }
10070 iNdEx = postIndex
10071 default:
10072 iNdEx = preIndex
10073 skippy, err := skipGenerated(dAtA[iNdEx:])
10074 if err != nil {
10075 return err
10076 }
10077 if (skippy < 0) || (iNdEx+skippy) < 0 {
10078 return ErrInvalidLengthGenerated
10079 }
10080 if (iNdEx + skippy) > l {
10081 return io.ErrUnexpectedEOF
10082 }
10083 iNdEx += skippy
10084 }
10085 }
10086
10087 if iNdEx > l {
10088 return io.ErrUnexpectedEOF
10089 }
10090 return nil
10091 }
10092 func (m *ResourceSliceList) Unmarshal(dAtA []byte) error {
10093 l := len(dAtA)
10094 iNdEx := 0
10095 for iNdEx < l {
10096 preIndex := iNdEx
10097 var wire uint64
10098 for shift := uint(0); ; shift += 7 {
10099 if shift >= 64 {
10100 return ErrIntOverflowGenerated
10101 }
10102 if iNdEx >= l {
10103 return io.ErrUnexpectedEOF
10104 }
10105 b := dAtA[iNdEx]
10106 iNdEx++
10107 wire |= uint64(b&0x7F) << shift
10108 if b < 0x80 {
10109 break
10110 }
10111 }
10112 fieldNum := int32(wire >> 3)
10113 wireType := int(wire & 0x7)
10114 if wireType == 4 {
10115 return fmt.Errorf("proto: ResourceSliceList: wiretype end group for non-group")
10116 }
10117 if fieldNum <= 0 {
10118 return fmt.Errorf("proto: ResourceSliceList: illegal tag %d (wire type %d)", fieldNum, wire)
10119 }
10120 switch fieldNum {
10121 case 1:
10122 if wireType != 2 {
10123 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
10124 }
10125 var msglen int
10126 for shift := uint(0); ; shift += 7 {
10127 if shift >= 64 {
10128 return ErrIntOverflowGenerated
10129 }
10130 if iNdEx >= l {
10131 return io.ErrUnexpectedEOF
10132 }
10133 b := dAtA[iNdEx]
10134 iNdEx++
10135 msglen |= int(b&0x7F) << shift
10136 if b < 0x80 {
10137 break
10138 }
10139 }
10140 if msglen < 0 {
10141 return ErrInvalidLengthGenerated
10142 }
10143 postIndex := iNdEx + msglen
10144 if postIndex < 0 {
10145 return ErrInvalidLengthGenerated
10146 }
10147 if postIndex > l {
10148 return io.ErrUnexpectedEOF
10149 }
10150 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
10151 return err
10152 }
10153 iNdEx = postIndex
10154 case 2:
10155 if wireType != 2 {
10156 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
10157 }
10158 var msglen int
10159 for shift := uint(0); ; shift += 7 {
10160 if shift >= 64 {
10161 return ErrIntOverflowGenerated
10162 }
10163 if iNdEx >= l {
10164 return io.ErrUnexpectedEOF
10165 }
10166 b := dAtA[iNdEx]
10167 iNdEx++
10168 msglen |= int(b&0x7F) << shift
10169 if b < 0x80 {
10170 break
10171 }
10172 }
10173 if msglen < 0 {
10174 return ErrInvalidLengthGenerated
10175 }
10176 postIndex := iNdEx + msglen
10177 if postIndex < 0 {
10178 return ErrInvalidLengthGenerated
10179 }
10180 if postIndex > l {
10181 return io.ErrUnexpectedEOF
10182 }
10183 m.Items = append(m.Items, ResourceSlice{})
10184 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
10185 return err
10186 }
10187 iNdEx = postIndex
10188 default:
10189 iNdEx = preIndex
10190 skippy, err := skipGenerated(dAtA[iNdEx:])
10191 if err != nil {
10192 return err
10193 }
10194 if (skippy < 0) || (iNdEx+skippy) < 0 {
10195 return ErrInvalidLengthGenerated
10196 }
10197 if (iNdEx + skippy) > l {
10198 return io.ErrUnexpectedEOF
10199 }
10200 iNdEx += skippy
10201 }
10202 }
10203
10204 if iNdEx > l {
10205 return io.ErrUnexpectedEOF
10206 }
10207 return nil
10208 }
10209 func (m *StructuredResourceHandle) Unmarshal(dAtA []byte) error {
10210 l := len(dAtA)
10211 iNdEx := 0
10212 for iNdEx < l {
10213 preIndex := iNdEx
10214 var wire uint64
10215 for shift := uint(0); ; shift += 7 {
10216 if shift >= 64 {
10217 return ErrIntOverflowGenerated
10218 }
10219 if iNdEx >= l {
10220 return io.ErrUnexpectedEOF
10221 }
10222 b := dAtA[iNdEx]
10223 iNdEx++
10224 wire |= uint64(b&0x7F) << shift
10225 if b < 0x80 {
10226 break
10227 }
10228 }
10229 fieldNum := int32(wire >> 3)
10230 wireType := int(wire & 0x7)
10231 if wireType == 4 {
10232 return fmt.Errorf("proto: StructuredResourceHandle: wiretype end group for non-group")
10233 }
10234 if fieldNum <= 0 {
10235 return fmt.Errorf("proto: StructuredResourceHandle: illegal tag %d (wire type %d)", fieldNum, wire)
10236 }
10237 switch fieldNum {
10238 case 1:
10239 if wireType != 2 {
10240 return fmt.Errorf("proto: wrong wireType = %d for field VendorClassParameters", wireType)
10241 }
10242 var msglen int
10243 for shift := uint(0); ; shift += 7 {
10244 if shift >= 64 {
10245 return ErrIntOverflowGenerated
10246 }
10247 if iNdEx >= l {
10248 return io.ErrUnexpectedEOF
10249 }
10250 b := dAtA[iNdEx]
10251 iNdEx++
10252 msglen |= int(b&0x7F) << shift
10253 if b < 0x80 {
10254 break
10255 }
10256 }
10257 if msglen < 0 {
10258 return ErrInvalidLengthGenerated
10259 }
10260 postIndex := iNdEx + msglen
10261 if postIndex < 0 {
10262 return ErrInvalidLengthGenerated
10263 }
10264 if postIndex > l {
10265 return io.ErrUnexpectedEOF
10266 }
10267 if err := m.VendorClassParameters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
10268 return err
10269 }
10270 iNdEx = postIndex
10271 case 2:
10272 if wireType != 2 {
10273 return fmt.Errorf("proto: wrong wireType = %d for field VendorClaimParameters", wireType)
10274 }
10275 var msglen int
10276 for shift := uint(0); ; shift += 7 {
10277 if shift >= 64 {
10278 return ErrIntOverflowGenerated
10279 }
10280 if iNdEx >= l {
10281 return io.ErrUnexpectedEOF
10282 }
10283 b := dAtA[iNdEx]
10284 iNdEx++
10285 msglen |= int(b&0x7F) << shift
10286 if b < 0x80 {
10287 break
10288 }
10289 }
10290 if msglen < 0 {
10291 return ErrInvalidLengthGenerated
10292 }
10293 postIndex := iNdEx + msglen
10294 if postIndex < 0 {
10295 return ErrInvalidLengthGenerated
10296 }
10297 if postIndex > l {
10298 return io.ErrUnexpectedEOF
10299 }
10300 if err := m.VendorClaimParameters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
10301 return err
10302 }
10303 iNdEx = postIndex
10304 case 4:
10305 if wireType != 2 {
10306 return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType)
10307 }
10308 var stringLen uint64
10309 for shift := uint(0); ; shift += 7 {
10310 if shift >= 64 {
10311 return ErrIntOverflowGenerated
10312 }
10313 if iNdEx >= l {
10314 return io.ErrUnexpectedEOF
10315 }
10316 b := dAtA[iNdEx]
10317 iNdEx++
10318 stringLen |= uint64(b&0x7F) << shift
10319 if b < 0x80 {
10320 break
10321 }
10322 }
10323 intStringLen := int(stringLen)
10324 if intStringLen < 0 {
10325 return ErrInvalidLengthGenerated
10326 }
10327 postIndex := iNdEx + intStringLen
10328 if postIndex < 0 {
10329 return ErrInvalidLengthGenerated
10330 }
10331 if postIndex > l {
10332 return io.ErrUnexpectedEOF
10333 }
10334 m.NodeName = string(dAtA[iNdEx:postIndex])
10335 iNdEx = postIndex
10336 case 5:
10337 if wireType != 2 {
10338 return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType)
10339 }
10340 var msglen int
10341 for shift := uint(0); ; shift += 7 {
10342 if shift >= 64 {
10343 return ErrIntOverflowGenerated
10344 }
10345 if iNdEx >= l {
10346 return io.ErrUnexpectedEOF
10347 }
10348 b := dAtA[iNdEx]
10349 iNdEx++
10350 msglen |= int(b&0x7F) << shift
10351 if b < 0x80 {
10352 break
10353 }
10354 }
10355 if msglen < 0 {
10356 return ErrInvalidLengthGenerated
10357 }
10358 postIndex := iNdEx + msglen
10359 if postIndex < 0 {
10360 return ErrInvalidLengthGenerated
10361 }
10362 if postIndex > l {
10363 return io.ErrUnexpectedEOF
10364 }
10365 m.Results = append(m.Results, DriverAllocationResult{})
10366 if err := m.Results[len(m.Results)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
10367 return err
10368 }
10369 iNdEx = postIndex
10370 default:
10371 iNdEx = preIndex
10372 skippy, err := skipGenerated(dAtA[iNdEx:])
10373 if err != nil {
10374 return err
10375 }
10376 if (skippy < 0) || (iNdEx+skippy) < 0 {
10377 return ErrInvalidLengthGenerated
10378 }
10379 if (iNdEx + skippy) > l {
10380 return io.ErrUnexpectedEOF
10381 }
10382 iNdEx += skippy
10383 }
10384 }
10385
10386 if iNdEx > l {
10387 return io.ErrUnexpectedEOF
10388 }
10389 return nil
10390 }
10391 func (m *VendorParameters) Unmarshal(dAtA []byte) error {
10392 l := len(dAtA)
10393 iNdEx := 0
10394 for iNdEx < l {
10395 preIndex := iNdEx
10396 var wire uint64
10397 for shift := uint(0); ; shift += 7 {
10398 if shift >= 64 {
10399 return ErrIntOverflowGenerated
10400 }
10401 if iNdEx >= l {
10402 return io.ErrUnexpectedEOF
10403 }
10404 b := dAtA[iNdEx]
10405 iNdEx++
10406 wire |= uint64(b&0x7F) << shift
10407 if b < 0x80 {
10408 break
10409 }
10410 }
10411 fieldNum := int32(wire >> 3)
10412 wireType := int(wire & 0x7)
10413 if wireType == 4 {
10414 return fmt.Errorf("proto: VendorParameters: wiretype end group for non-group")
10415 }
10416 if fieldNum <= 0 {
10417 return fmt.Errorf("proto: VendorParameters: illegal tag %d (wire type %d)", fieldNum, wire)
10418 }
10419 switch fieldNum {
10420 case 1:
10421 if wireType != 2 {
10422 return fmt.Errorf("proto: wrong wireType = %d for field DriverName", wireType)
10423 }
10424 var stringLen uint64
10425 for shift := uint(0); ; shift += 7 {
10426 if shift >= 64 {
10427 return ErrIntOverflowGenerated
10428 }
10429 if iNdEx >= l {
10430 return io.ErrUnexpectedEOF
10431 }
10432 b := dAtA[iNdEx]
10433 iNdEx++
10434 stringLen |= uint64(b&0x7F) << shift
10435 if b < 0x80 {
10436 break
10437 }
10438 }
10439 intStringLen := int(stringLen)
10440 if intStringLen < 0 {
10441 return ErrInvalidLengthGenerated
10442 }
10443 postIndex := iNdEx + intStringLen
10444 if postIndex < 0 {
10445 return ErrInvalidLengthGenerated
10446 }
10447 if postIndex > l {
10448 return io.ErrUnexpectedEOF
10449 }
10450 m.DriverName = string(dAtA[iNdEx:postIndex])
10451 iNdEx = postIndex
10452 case 2:
10453 if wireType != 2 {
10454 return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType)
10455 }
10456 var msglen int
10457 for shift := uint(0); ; shift += 7 {
10458 if shift >= 64 {
10459 return ErrIntOverflowGenerated
10460 }
10461 if iNdEx >= l {
10462 return io.ErrUnexpectedEOF
10463 }
10464 b := dAtA[iNdEx]
10465 iNdEx++
10466 msglen |= int(b&0x7F) << shift
10467 if b < 0x80 {
10468 break
10469 }
10470 }
10471 if msglen < 0 {
10472 return ErrInvalidLengthGenerated
10473 }
10474 postIndex := iNdEx + msglen
10475 if postIndex < 0 {
10476 return ErrInvalidLengthGenerated
10477 }
10478 if postIndex > l {
10479 return io.ErrUnexpectedEOF
10480 }
10481 if err := m.Parameters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
10482 return err
10483 }
10484 iNdEx = postIndex
10485 default:
10486 iNdEx = preIndex
10487 skippy, err := skipGenerated(dAtA[iNdEx:])
10488 if err != nil {
10489 return err
10490 }
10491 if (skippy < 0) || (iNdEx+skippy) < 0 {
10492 return ErrInvalidLengthGenerated
10493 }
10494 if (iNdEx + skippy) > l {
10495 return io.ErrUnexpectedEOF
10496 }
10497 iNdEx += skippy
10498 }
10499 }
10500
10501 if iNdEx > l {
10502 return io.ErrUnexpectedEOF
10503 }
10504 return nil
10505 }
10506 func skipGenerated(dAtA []byte) (n int, err error) {
10507 l := len(dAtA)
10508 iNdEx := 0
10509 depth := 0
10510 for iNdEx < l {
10511 var wire uint64
10512 for shift := uint(0); ; shift += 7 {
10513 if shift >= 64 {
10514 return 0, ErrIntOverflowGenerated
10515 }
10516 if iNdEx >= l {
10517 return 0, io.ErrUnexpectedEOF
10518 }
10519 b := dAtA[iNdEx]
10520 iNdEx++
10521 wire |= (uint64(b) & 0x7F) << shift
10522 if b < 0x80 {
10523 break
10524 }
10525 }
10526 wireType := int(wire & 0x7)
10527 switch wireType {
10528 case 0:
10529 for shift := uint(0); ; shift += 7 {
10530 if shift >= 64 {
10531 return 0, ErrIntOverflowGenerated
10532 }
10533 if iNdEx >= l {
10534 return 0, io.ErrUnexpectedEOF
10535 }
10536 iNdEx++
10537 if dAtA[iNdEx-1] < 0x80 {
10538 break
10539 }
10540 }
10541 case 1:
10542 iNdEx += 8
10543 case 2:
10544 var length int
10545 for shift := uint(0); ; shift += 7 {
10546 if shift >= 64 {
10547 return 0, ErrIntOverflowGenerated
10548 }
10549 if iNdEx >= l {
10550 return 0, io.ErrUnexpectedEOF
10551 }
10552 b := dAtA[iNdEx]
10553 iNdEx++
10554 length |= (int(b) & 0x7F) << shift
10555 if b < 0x80 {
10556 break
10557 }
10558 }
10559 if length < 0 {
10560 return 0, ErrInvalidLengthGenerated
10561 }
10562 iNdEx += length
10563 case 3:
10564 depth++
10565 case 4:
10566 if depth == 0 {
10567 return 0, ErrUnexpectedEndOfGroupGenerated
10568 }
10569 depth--
10570 case 5:
10571 iNdEx += 4
10572 default:
10573 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
10574 }
10575 if iNdEx < 0 {
10576 return 0, ErrInvalidLengthGenerated
10577 }
10578 if depth == 0 {
10579 return iNdEx, nil
10580 }
10581 }
10582 return 0, io.ErrUnexpectedEOF
10583 }
10584
10585 var (
10586 ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
10587 ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
10588 ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
10589 )
10590
View as plain text