blob: 3709ef633a7a0356045dae748654a343f448941b [file] [log] [blame]
Matteo Scandoloa4285862020-12-01 18:10:10 -08001/*
2Copyright The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17// Code generated by protoc-gen-gogo. DO NOT EDIT.
18// source: k8s.io/kubernetes/vendor/k8s.io/api/events/v1beta1/generated.proto
19
20package v1beta1
21
22import (
23 fmt "fmt"
24
25 io "io"
26
27 proto "github.com/gogo/protobuf/proto"
28 v11 "k8s.io/api/core/v1"
29
30 math "math"
31 math_bits "math/bits"
32 reflect "reflect"
33 strings "strings"
34)
35
36// Reference imports to suppress errors if they are not otherwise used.
37var _ = proto.Marshal
38var _ = fmt.Errorf
39var _ = math.Inf
40
41// This is a compile-time assertion to ensure that this generated file
42// is compatible with the proto package it is being compiled against.
43// A compilation error at this line likely means your copy of the
44// proto package needs to be updated.
45const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
46
47func (m *Event) Reset() { *m = Event{} }
48func (*Event) ProtoMessage() {}
49func (*Event) Descriptor() ([]byte, []int) {
50 return fileDescriptor_4f97f691c32a5ac8, []int{0}
51}
52func (m *Event) XXX_Unmarshal(b []byte) error {
53 return m.Unmarshal(b)
54}
55func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
56 b = b[:cap(b)]
57 n, err := m.MarshalToSizedBuffer(b)
58 if err != nil {
59 return nil, err
60 }
61 return b[:n], nil
62}
63func (m *Event) XXX_Merge(src proto.Message) {
64 xxx_messageInfo_Event.Merge(m, src)
65}
66func (m *Event) XXX_Size() int {
67 return m.Size()
68}
69func (m *Event) XXX_DiscardUnknown() {
70 xxx_messageInfo_Event.DiscardUnknown(m)
71}
72
73var xxx_messageInfo_Event proto.InternalMessageInfo
74
75func (m *EventList) Reset() { *m = EventList{} }
76func (*EventList) ProtoMessage() {}
77func (*EventList) Descriptor() ([]byte, []int) {
78 return fileDescriptor_4f97f691c32a5ac8, []int{1}
79}
80func (m *EventList) XXX_Unmarshal(b []byte) error {
81 return m.Unmarshal(b)
82}
83func (m *EventList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
84 b = b[:cap(b)]
85 n, err := m.MarshalToSizedBuffer(b)
86 if err != nil {
87 return nil, err
88 }
89 return b[:n], nil
90}
91func (m *EventList) XXX_Merge(src proto.Message) {
92 xxx_messageInfo_EventList.Merge(m, src)
93}
94func (m *EventList) XXX_Size() int {
95 return m.Size()
96}
97func (m *EventList) XXX_DiscardUnknown() {
98 xxx_messageInfo_EventList.DiscardUnknown(m)
99}
100
101var xxx_messageInfo_EventList proto.InternalMessageInfo
102
103func (m *EventSeries) Reset() { *m = EventSeries{} }
104func (*EventSeries) ProtoMessage() {}
105func (*EventSeries) Descriptor() ([]byte, []int) {
106 return fileDescriptor_4f97f691c32a5ac8, []int{2}
107}
108func (m *EventSeries) XXX_Unmarshal(b []byte) error {
109 return m.Unmarshal(b)
110}
111func (m *EventSeries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
112 b = b[:cap(b)]
113 n, err := m.MarshalToSizedBuffer(b)
114 if err != nil {
115 return nil, err
116 }
117 return b[:n], nil
118}
119func (m *EventSeries) XXX_Merge(src proto.Message) {
120 xxx_messageInfo_EventSeries.Merge(m, src)
121}
122func (m *EventSeries) XXX_Size() int {
123 return m.Size()
124}
125func (m *EventSeries) XXX_DiscardUnknown() {
126 xxx_messageInfo_EventSeries.DiscardUnknown(m)
127}
128
129var xxx_messageInfo_EventSeries proto.InternalMessageInfo
130
131func init() {
132 proto.RegisterType((*Event)(nil), "k8s.io.api.events.v1beta1.Event")
133 proto.RegisterType((*EventList)(nil), "k8s.io.api.events.v1beta1.EventList")
134 proto.RegisterType((*EventSeries)(nil), "k8s.io.api.events.v1beta1.EventSeries")
135}
136
137func init() {
138 proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/events/v1beta1/generated.proto", fileDescriptor_4f97f691c32a5ac8)
139}
140
141var fileDescriptor_4f97f691c32a5ac8 = []byte{
142 // 774 bytes of a gzipped FileDescriptorProto
143 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0xcd, 0x6e, 0xdb, 0x46,
144 0x10, 0x16, 0x13, 0x4b, 0xb2, 0x56, 0x49, 0x2c, 0x6f, 0x0e, 0xde, 0xb8, 0x00, 0x25, 0x28, 0x40,
145 0x20, 0x14, 0x08, 0x59, 0x07, 0x45, 0xd1, 0x6b, 0x18, 0xb9, 0x45, 0x02, 0xbb, 0x01, 0x36, 0x3e,
146 0x15, 0x3d, 0x64, 0x45, 0x4d, 0x68, 0x56, 0xe2, 0x2e, 0xb1, 0xbb, 0x12, 0xe0, 0x5b, 0x2f, 0x05,
147 0x7a, 0xec, 0x33, 0xf4, 0xd6, 0x5b, 0x1f, 0xc3, 0xc7, 0x1c, 0x7d, 0x12, 0x6a, 0xf6, 0x45, 0x0a,
148 0x2e, 0x57, 0xa2, 0xac, 0x1f, 0x58, 0x45, 0x6f, 0xe2, 0xcc, 0xf7, 0x33, 0x33, 0x3b, 0x1a, 0x14,
149 0x8c, 0xbe, 0x55, 0x5e, 0x2c, 0xfc, 0xd1, 0x64, 0x00, 0x92, 0x83, 0x06, 0xe5, 0x4f, 0x81, 0x0f,
150 0x85, 0xf4, 0x6d, 0x82, 0xa5, 0xb1, 0x0f, 0x53, 0xe0, 0x5a, 0xf9, 0xd3, 0x93, 0x01, 0x68, 0x76,
151 0xe2, 0x47, 0xc0, 0x41, 0x32, 0x0d, 0x43, 0x2f, 0x95, 0x42, 0x0b, 0xfc, 0xac, 0x80, 0x7a, 0x2c,
152 0x8d, 0xbd, 0x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x06, 0x3f, 0x47,
186 0xd5, 0xd0, 0xf4, 0xee, 0x98, 0xde, 0x17, 0xa4, 0xa2, 0xe3, 0x22, 0x87, 0x27, 0xa8, 0x35, 0x66,
187 0x4a, 0xbf, 0x1f, 0x28, 0x90, 0x53, 0x18, 0xfe, 0x9f, 0x3b, 0xb9, 0x58, 0xda, 0xb3, 0x15, 0x41,
188 0xba, 0x66, 0x11, 0xbc, 0xbc, 0xbe, 0x75, 0x2b, 0x9f, 0x6f, 0xdd, 0xca, 0xcd, 0xad, 0x5b, 0xf9,
189 0x25, 0x73, 0x9d, 0xeb, 0xcc, 0x75, 0x3e, 0x67, 0xae, 0x73, 0x93, 0xb9, 0xce, 0xdf, 0x99, 0xeb,
190 0xfc, 0xfe, 0x8f, 0x5b, 0xf9, 0xb1, 0x6e, 0xdb, 0xfe, 0x37, 0x00, 0x00, 0xff, 0xff, 0xfc, 0xc9,
191 0x09, 0x14, 0x84, 0x07, 0x00, 0x00,
192}
193
194func (m *Event) Marshal() (dAtA []byte, err error) {
195 size := m.Size()
196 dAtA = make([]byte, size)
197 n, err := m.MarshalToSizedBuffer(dAtA[:size])
198 if err != nil {
199 return nil, err
200 }
201 return dAtA[:n], nil
202}
203
204func (m *Event) MarshalTo(dAtA []byte) (int, error) {
205 size := m.Size()
206 return m.MarshalToSizedBuffer(dAtA[:size])
207}
208
209func (m *Event) MarshalToSizedBuffer(dAtA []byte) (int, error) {
210 i := len(dAtA)
211 _ = i
212 var l int
213 _ = l
214 i = encodeVarintGenerated(dAtA, i, uint64(m.DeprecatedCount))
215 i--
216 dAtA[i] = 0x78
217 {
218 size, err := m.DeprecatedLastTimestamp.MarshalToSizedBuffer(dAtA[:i])
219 if err != nil {
220 return 0, err
221 }
222 i -= size
223 i = encodeVarintGenerated(dAtA, i, uint64(size))
224 }
225 i--
226 dAtA[i] = 0x72
227 {
228 size, err := m.DeprecatedFirstTimestamp.MarshalToSizedBuffer(dAtA[:i])
229 if err != nil {
230 return 0, err
231 }
232 i -= size
233 i = encodeVarintGenerated(dAtA, i, uint64(size))
234 }
235 i--
236 dAtA[i] = 0x6a
237 {
238 size, err := m.DeprecatedSource.MarshalToSizedBuffer(dAtA[:i])
239 if err != nil {
240 return 0, err
241 }
242 i -= size
243 i = encodeVarintGenerated(dAtA, i, uint64(size))
244 }
245 i--
246 dAtA[i] = 0x62
247 i -= len(m.Type)
248 copy(dAtA[i:], m.Type)
249 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
250 i--
251 dAtA[i] = 0x5a
252 i -= len(m.Note)
253 copy(dAtA[i:], m.Note)
254 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Note)))
255 i--
256 dAtA[i] = 0x52
257 if m.Related != nil {
258 {
259 size, err := m.Related.MarshalToSizedBuffer(dAtA[:i])
260 if err != nil {
261 return 0, err
262 }
263 i -= size
264 i = encodeVarintGenerated(dAtA, i, uint64(size))
265 }
266 i--
267 dAtA[i] = 0x4a
268 }
269 {
270 size, err := m.Regarding.MarshalToSizedBuffer(dAtA[:i])
271 if err != nil {
272 return 0, err
273 }
274 i -= size
275 i = encodeVarintGenerated(dAtA, i, uint64(size))
276 }
277 i--
278 dAtA[i] = 0x42
279 i -= len(m.Reason)
280 copy(dAtA[i:], m.Reason)
281 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason)))
282 i--
283 dAtA[i] = 0x3a
284 i -= len(m.Action)
285 copy(dAtA[i:], m.Action)
286 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Action)))
287 i--
288 dAtA[i] = 0x32
289 i -= len(m.ReportingInstance)
290 copy(dAtA[i:], m.ReportingInstance)
291 i = encodeVarintGenerated(dAtA, i, uint64(len(m.ReportingInstance)))
292 i--
293 dAtA[i] = 0x2a
294 i -= len(m.ReportingController)
295 copy(dAtA[i:], m.ReportingController)
296 i = encodeVarintGenerated(dAtA, i, uint64(len(m.ReportingController)))
297 i--
298 dAtA[i] = 0x22
299 if m.Series != nil {
300 {
301 size, err := m.Series.MarshalToSizedBuffer(dAtA[:i])
302 if err != nil {
303 return 0, err
304 }
305 i -= size
306 i = encodeVarintGenerated(dAtA, i, uint64(size))
307 }
308 i--
309 dAtA[i] = 0x1a
310 }
311 {
312 size, err := m.EventTime.MarshalToSizedBuffer(dAtA[:i])
313 if err != nil {
314 return 0, err
315 }
316 i -= size
317 i = encodeVarintGenerated(dAtA, i, uint64(size))
318 }
319 i--
320 dAtA[i] = 0x12
321 {
322 size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
323 if err != nil {
324 return 0, err
325 }
326 i -= size
327 i = encodeVarintGenerated(dAtA, i, uint64(size))
328 }
329 i--
330 dAtA[i] = 0xa
331 return len(dAtA) - i, nil
332}
333
334func (m *EventList) Marshal() (dAtA []byte, err error) {
335 size := m.Size()
336 dAtA = make([]byte, size)
337 n, err := m.MarshalToSizedBuffer(dAtA[:size])
338 if err != nil {
339 return nil, err
340 }
341 return dAtA[:n], nil
342}
343
344func (m *EventList) MarshalTo(dAtA []byte) (int, error) {
345 size := m.Size()
346 return m.MarshalToSizedBuffer(dAtA[:size])
347}
348
349func (m *EventList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
350 i := len(dAtA)
351 _ = i
352 var l int
353 _ = l
354 if len(m.Items) > 0 {
355 for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
356 {
357 size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
358 if err != nil {
359 return 0, err
360 }
361 i -= size
362 i = encodeVarintGenerated(dAtA, i, uint64(size))
363 }
364 i--
365 dAtA[i] = 0x12
366 }
367 }
368 {
369 size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
370 if err != nil {
371 return 0, err
372 }
373 i -= size
374 i = encodeVarintGenerated(dAtA, i, uint64(size))
375 }
376 i--
377 dAtA[i] = 0xa
378 return len(dAtA) - i, nil
379}
380
381func (m *EventSeries) Marshal() (dAtA []byte, err error) {
382 size := m.Size()
383 dAtA = make([]byte, size)
384 n, err := m.MarshalToSizedBuffer(dAtA[:size])
385 if err != nil {
386 return nil, err
387 }
388 return dAtA[:n], nil
389}
390
391func (m *EventSeries) MarshalTo(dAtA []byte) (int, error) {
392 size := m.Size()
393 return m.MarshalToSizedBuffer(dAtA[:size])
394}
395
396func (m *EventSeries) MarshalToSizedBuffer(dAtA []byte) (int, error) {
397 i := len(dAtA)
398 _ = i
399 var l int
400 _ = l
401 {
402 size, err := m.LastObservedTime.MarshalToSizedBuffer(dAtA[:i])
403 if err != nil {
404 return 0, err
405 }
406 i -= size
407 i = encodeVarintGenerated(dAtA, i, uint64(size))
408 }
409 i--
410 dAtA[i] = 0x12
411 i = encodeVarintGenerated(dAtA, i, uint64(m.Count))
412 i--
413 dAtA[i] = 0x8
414 return len(dAtA) - i, nil
415}
416
417func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
418 offset -= sovGenerated(v)
419 base := offset
420 for v >= 1<<7 {
421 dAtA[offset] = uint8(v&0x7f | 0x80)
422 v >>= 7
423 offset++
424 }
425 dAtA[offset] = uint8(v)
426 return base
427}
428func (m *Event) Size() (n int) {
429 if m == nil {
430 return 0
431 }
432 var l int
433 _ = l
434 l = m.ObjectMeta.Size()
435 n += 1 + l + sovGenerated(uint64(l))
436 l = m.EventTime.Size()
437 n += 1 + l + sovGenerated(uint64(l))
438 if m.Series != nil {
439 l = m.Series.Size()
440 n += 1 + l + sovGenerated(uint64(l))
441 }
442 l = len(m.ReportingController)
443 n += 1 + l + sovGenerated(uint64(l))
444 l = len(m.ReportingInstance)
445 n += 1 + l + sovGenerated(uint64(l))
446 l = len(m.Action)
447 n += 1 + l + sovGenerated(uint64(l))
448 l = len(m.Reason)
449 n += 1 + l + sovGenerated(uint64(l))
450 l = m.Regarding.Size()
451 n += 1 + l + sovGenerated(uint64(l))
452 if m.Related != nil {
453 l = m.Related.Size()
454 n += 1 + l + sovGenerated(uint64(l))
455 }
456 l = len(m.Note)
457 n += 1 + l + sovGenerated(uint64(l))
458 l = len(m.Type)
459 n += 1 + l + sovGenerated(uint64(l))
460 l = m.DeprecatedSource.Size()
461 n += 1 + l + sovGenerated(uint64(l))
462 l = m.DeprecatedFirstTimestamp.Size()
463 n += 1 + l + sovGenerated(uint64(l))
464 l = m.DeprecatedLastTimestamp.Size()
465 n += 1 + l + sovGenerated(uint64(l))
466 n += 1 + sovGenerated(uint64(m.DeprecatedCount))
467 return n
468}
469
470func (m *EventList) Size() (n int) {
471 if m == nil {
472 return 0
473 }
474 var l int
475 _ = l
476 l = m.ListMeta.Size()
477 n += 1 + l + sovGenerated(uint64(l))
478 if len(m.Items) > 0 {
479 for _, e := range m.Items {
480 l = e.Size()
481 n += 1 + l + sovGenerated(uint64(l))
482 }
483 }
484 return n
485}
486
487func (m *EventSeries) Size() (n int) {
488 if m == nil {
489 return 0
490 }
491 var l int
492 _ = l
493 n += 1 + sovGenerated(uint64(m.Count))
494 l = m.LastObservedTime.Size()
495 n += 1 + l + sovGenerated(uint64(l))
496 return n
497}
498
499func sovGenerated(x uint64) (n int) {
500 return (math_bits.Len64(x|1) + 6) / 7
501}
502func sozGenerated(x uint64) (n int) {
503 return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
504}
505func (this *Event) String() string {
506 if this == nil {
507 return "nil"
508 }
509 s := strings.Join([]string{`&Event{`,
510 `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
511 `EventTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.EventTime), "MicroTime", "v1.MicroTime", 1), `&`, ``, 1) + `,`,
512 `Series:` + strings.Replace(this.Series.String(), "EventSeries", "EventSeries", 1) + `,`,
513 `ReportingController:` + fmt.Sprintf("%v", this.ReportingController) + `,`,
514 `ReportingInstance:` + fmt.Sprintf("%v", this.ReportingInstance) + `,`,
515 `Action:` + fmt.Sprintf("%v", this.Action) + `,`,
516 `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`,
517 `Regarding:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Regarding), "ObjectReference", "v11.ObjectReference", 1), `&`, ``, 1) + `,`,
518 `Related:` + strings.Replace(fmt.Sprintf("%v", this.Related), "ObjectReference", "v11.ObjectReference", 1) + `,`,
519 `Note:` + fmt.Sprintf("%v", this.Note) + `,`,
520 `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
521 `DeprecatedSource:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.DeprecatedSource), "EventSource", "v11.EventSource", 1), `&`, ``, 1) + `,`,
522 `DeprecatedFirstTimestamp:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.DeprecatedFirstTimestamp), "Time", "v1.Time", 1), `&`, ``, 1) + `,`,
523 `DeprecatedLastTimestamp:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.DeprecatedLastTimestamp), "Time", "v1.Time", 1), `&`, ``, 1) + `,`,
524 `DeprecatedCount:` + fmt.Sprintf("%v", this.DeprecatedCount) + `,`,
525 `}`,
526 }, "")
527 return s
528}
529func (this *EventList) String() string {
530 if this == nil {
531 return "nil"
532 }
533 repeatedStringForItems := "[]Event{"
534 for _, f := range this.Items {
535 repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Event", "Event", 1), `&`, ``, 1) + ","
536 }
537 repeatedStringForItems += "}"
538 s := strings.Join([]string{`&EventList{`,
539 `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
540 `Items:` + repeatedStringForItems + `,`,
541 `}`,
542 }, "")
543 return s
544}
545func (this *EventSeries) String() string {
546 if this == nil {
547 return "nil"
548 }
549 s := strings.Join([]string{`&EventSeries{`,
550 `Count:` + fmt.Sprintf("%v", this.Count) + `,`,
551 `LastObservedTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastObservedTime), "MicroTime", "v1.MicroTime", 1), `&`, ``, 1) + `,`,
552 `}`,
553 }, "")
554 return s
555}
556func valueToStringGenerated(v interface{}) string {
557 rv := reflect.ValueOf(v)
558 if rv.IsNil() {
559 return "nil"
560 }
561 pv := reflect.Indirect(rv).Interface()
562 return fmt.Sprintf("*%v", pv)
563}
564func (m *Event) Unmarshal(dAtA []byte) error {
565 l := len(dAtA)
566 iNdEx := 0
567 for iNdEx < l {
568 preIndex := iNdEx
569 var wire uint64
570 for shift := uint(0); ; shift += 7 {
571 if shift >= 64 {
572 return ErrIntOverflowGenerated
573 }
574 if iNdEx >= l {
575 return io.ErrUnexpectedEOF
576 }
577 b := dAtA[iNdEx]
578 iNdEx++
579 wire |= uint64(b&0x7F) << shift
580 if b < 0x80 {
581 break
582 }
583 }
584 fieldNum := int32(wire >> 3)
585 wireType := int(wire & 0x7)
586 if wireType == 4 {
587 return fmt.Errorf("proto: Event: wiretype end group for non-group")
588 }
589 if fieldNum <= 0 {
590 return fmt.Errorf("proto: Event: illegal tag %d (wire type %d)", fieldNum, wire)
591 }
592 switch fieldNum {
593 case 1:
594 if wireType != 2 {
595 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
596 }
597 var msglen int
598 for shift := uint(0); ; shift += 7 {
599 if shift >= 64 {
600 return ErrIntOverflowGenerated
601 }
602 if iNdEx >= l {
603 return io.ErrUnexpectedEOF
604 }
605 b := dAtA[iNdEx]
606 iNdEx++
607 msglen |= int(b&0x7F) << shift
608 if b < 0x80 {
609 break
610 }
611 }
612 if msglen < 0 {
613 return ErrInvalidLengthGenerated
614 }
615 postIndex := iNdEx + msglen
616 if postIndex < 0 {
617 return ErrInvalidLengthGenerated
618 }
619 if postIndex > l {
620 return io.ErrUnexpectedEOF
621 }
622 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
623 return err
624 }
625 iNdEx = postIndex
626 case 2:
627 if wireType != 2 {
628 return fmt.Errorf("proto: wrong wireType = %d for field EventTime", wireType)
629 }
630 var msglen int
631 for shift := uint(0); ; shift += 7 {
632 if shift >= 64 {
633 return ErrIntOverflowGenerated
634 }
635 if iNdEx >= l {
636 return io.ErrUnexpectedEOF
637 }
638 b := dAtA[iNdEx]
639 iNdEx++
640 msglen |= int(b&0x7F) << shift
641 if b < 0x80 {
642 break
643 }
644 }
645 if msglen < 0 {
646 return ErrInvalidLengthGenerated
647 }
648 postIndex := iNdEx + msglen
649 if postIndex < 0 {
650 return ErrInvalidLengthGenerated
651 }
652 if postIndex > l {
653 return io.ErrUnexpectedEOF
654 }
655 if err := m.EventTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
656 return err
657 }
658 iNdEx = postIndex
659 case 3:
660 if wireType != 2 {
661 return fmt.Errorf("proto: wrong wireType = %d for field Series", wireType)
662 }
663 var msglen int
664 for shift := uint(0); ; shift += 7 {
665 if shift >= 64 {
666 return ErrIntOverflowGenerated
667 }
668 if iNdEx >= l {
669 return io.ErrUnexpectedEOF
670 }
671 b := dAtA[iNdEx]
672 iNdEx++
673 msglen |= int(b&0x7F) << shift
674 if b < 0x80 {
675 break
676 }
677 }
678 if msglen < 0 {
679 return ErrInvalidLengthGenerated
680 }
681 postIndex := iNdEx + msglen
682 if postIndex < 0 {
683 return ErrInvalidLengthGenerated
684 }
685 if postIndex > l {
686 return io.ErrUnexpectedEOF
687 }
688 if m.Series == nil {
689 m.Series = &EventSeries{}
690 }
691 if err := m.Series.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
692 return err
693 }
694 iNdEx = postIndex
695 case 4:
696 if wireType != 2 {
697 return fmt.Errorf("proto: wrong wireType = %d for field ReportingController", wireType)
698 }
699 var stringLen uint64
700 for shift := uint(0); ; shift += 7 {
701 if shift >= 64 {
702 return ErrIntOverflowGenerated
703 }
704 if iNdEx >= l {
705 return io.ErrUnexpectedEOF
706 }
707 b := dAtA[iNdEx]
708 iNdEx++
709 stringLen |= uint64(b&0x7F) << shift
710 if b < 0x80 {
711 break
712 }
713 }
714 intStringLen := int(stringLen)
715 if intStringLen < 0 {
716 return ErrInvalidLengthGenerated
717 }
718 postIndex := iNdEx + intStringLen
719 if postIndex < 0 {
720 return ErrInvalidLengthGenerated
721 }
722 if postIndex > l {
723 return io.ErrUnexpectedEOF
724 }
725 m.ReportingController = string(dAtA[iNdEx:postIndex])
726 iNdEx = postIndex
727 case 5:
728 if wireType != 2 {
729 return fmt.Errorf("proto: wrong wireType = %d for field ReportingInstance", wireType)
730 }
731 var stringLen uint64
732 for shift := uint(0); ; shift += 7 {
733 if shift >= 64 {
734 return ErrIntOverflowGenerated
735 }
736 if iNdEx >= l {
737 return io.ErrUnexpectedEOF
738 }
739 b := dAtA[iNdEx]
740 iNdEx++
741 stringLen |= uint64(b&0x7F) << shift
742 if b < 0x80 {
743 break
744 }
745 }
746 intStringLen := int(stringLen)
747 if intStringLen < 0 {
748 return ErrInvalidLengthGenerated
749 }
750 postIndex := iNdEx + intStringLen
751 if postIndex < 0 {
752 return ErrInvalidLengthGenerated
753 }
754 if postIndex > l {
755 return io.ErrUnexpectedEOF
756 }
757 m.ReportingInstance = string(dAtA[iNdEx:postIndex])
758 iNdEx = postIndex
759 case 6:
760 if wireType != 2 {
761 return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType)
762 }
763 var stringLen uint64
764 for shift := uint(0); ; shift += 7 {
765 if shift >= 64 {
766 return ErrIntOverflowGenerated
767 }
768 if iNdEx >= l {
769 return io.ErrUnexpectedEOF
770 }
771 b := dAtA[iNdEx]
772 iNdEx++
773 stringLen |= uint64(b&0x7F) << shift
774 if b < 0x80 {
775 break
776 }
777 }
778 intStringLen := int(stringLen)
779 if intStringLen < 0 {
780 return ErrInvalidLengthGenerated
781 }
782 postIndex := iNdEx + intStringLen
783 if postIndex < 0 {
784 return ErrInvalidLengthGenerated
785 }
786 if postIndex > l {
787 return io.ErrUnexpectedEOF
788 }
789 m.Action = string(dAtA[iNdEx:postIndex])
790 iNdEx = postIndex
791 case 7:
792 if wireType != 2 {
793 return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType)
794 }
795 var stringLen uint64
796 for shift := uint(0); ; shift += 7 {
797 if shift >= 64 {
798 return ErrIntOverflowGenerated
799 }
800 if iNdEx >= l {
801 return io.ErrUnexpectedEOF
802 }
803 b := dAtA[iNdEx]
804 iNdEx++
805 stringLen |= uint64(b&0x7F) << shift
806 if b < 0x80 {
807 break
808 }
809 }
810 intStringLen := int(stringLen)
811 if intStringLen < 0 {
812 return ErrInvalidLengthGenerated
813 }
814 postIndex := iNdEx + intStringLen
815 if postIndex < 0 {
816 return ErrInvalidLengthGenerated
817 }
818 if postIndex > l {
819 return io.ErrUnexpectedEOF
820 }
821 m.Reason = string(dAtA[iNdEx:postIndex])
822 iNdEx = postIndex
823 case 8:
824 if wireType != 2 {
825 return fmt.Errorf("proto: wrong wireType = %d for field Regarding", wireType)
826 }
827 var msglen int
828 for shift := uint(0); ; shift += 7 {
829 if shift >= 64 {
830 return ErrIntOverflowGenerated
831 }
832 if iNdEx >= l {
833 return io.ErrUnexpectedEOF
834 }
835 b := dAtA[iNdEx]
836 iNdEx++
837 msglen |= int(b&0x7F) << shift
838 if b < 0x80 {
839 break
840 }
841 }
842 if msglen < 0 {
843 return ErrInvalidLengthGenerated
844 }
845 postIndex := iNdEx + msglen
846 if postIndex < 0 {
847 return ErrInvalidLengthGenerated
848 }
849 if postIndex > l {
850 return io.ErrUnexpectedEOF
851 }
852 if err := m.Regarding.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
853 return err
854 }
855 iNdEx = postIndex
856 case 9:
857 if wireType != 2 {
858 return fmt.Errorf("proto: wrong wireType = %d for field Related", wireType)
859 }
860 var msglen int
861 for shift := uint(0); ; shift += 7 {
862 if shift >= 64 {
863 return ErrIntOverflowGenerated
864 }
865 if iNdEx >= l {
866 return io.ErrUnexpectedEOF
867 }
868 b := dAtA[iNdEx]
869 iNdEx++
870 msglen |= int(b&0x7F) << shift
871 if b < 0x80 {
872 break
873 }
874 }
875 if msglen < 0 {
876 return ErrInvalidLengthGenerated
877 }
878 postIndex := iNdEx + msglen
879 if postIndex < 0 {
880 return ErrInvalidLengthGenerated
881 }
882 if postIndex > l {
883 return io.ErrUnexpectedEOF
884 }
885 if m.Related == nil {
886 m.Related = &v11.ObjectReference{}
887 }
888 if err := m.Related.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
889 return err
890 }
891 iNdEx = postIndex
892 case 10:
893 if wireType != 2 {
894 return fmt.Errorf("proto: wrong wireType = %d for field Note", wireType)
895 }
896 var stringLen uint64
897 for shift := uint(0); ; shift += 7 {
898 if shift >= 64 {
899 return ErrIntOverflowGenerated
900 }
901 if iNdEx >= l {
902 return io.ErrUnexpectedEOF
903 }
904 b := dAtA[iNdEx]
905 iNdEx++
906 stringLen |= uint64(b&0x7F) << shift
907 if b < 0x80 {
908 break
909 }
910 }
911 intStringLen := int(stringLen)
912 if intStringLen < 0 {
913 return ErrInvalidLengthGenerated
914 }
915 postIndex := iNdEx + intStringLen
916 if postIndex < 0 {
917 return ErrInvalidLengthGenerated
918 }
919 if postIndex > l {
920 return io.ErrUnexpectedEOF
921 }
922 m.Note = string(dAtA[iNdEx:postIndex])
923 iNdEx = postIndex
924 case 11:
925 if wireType != 2 {
926 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
927 }
928 var stringLen uint64
929 for shift := uint(0); ; shift += 7 {
930 if shift >= 64 {
931 return ErrIntOverflowGenerated
932 }
933 if iNdEx >= l {
934 return io.ErrUnexpectedEOF
935 }
936 b := dAtA[iNdEx]
937 iNdEx++
938 stringLen |= uint64(b&0x7F) << shift
939 if b < 0x80 {
940 break
941 }
942 }
943 intStringLen := int(stringLen)
944 if intStringLen < 0 {
945 return ErrInvalidLengthGenerated
946 }
947 postIndex := iNdEx + intStringLen
948 if postIndex < 0 {
949 return ErrInvalidLengthGenerated
950 }
951 if postIndex > l {
952 return io.ErrUnexpectedEOF
953 }
954 m.Type = string(dAtA[iNdEx:postIndex])
955 iNdEx = postIndex
956 case 12:
957 if wireType != 2 {
958 return fmt.Errorf("proto: wrong wireType = %d for field DeprecatedSource", wireType)
959 }
960 var msglen int
961 for shift := uint(0); ; shift += 7 {
962 if shift >= 64 {
963 return ErrIntOverflowGenerated
964 }
965 if iNdEx >= l {
966 return io.ErrUnexpectedEOF
967 }
968 b := dAtA[iNdEx]
969 iNdEx++
970 msglen |= int(b&0x7F) << shift
971 if b < 0x80 {
972 break
973 }
974 }
975 if msglen < 0 {
976 return ErrInvalidLengthGenerated
977 }
978 postIndex := iNdEx + msglen
979 if postIndex < 0 {
980 return ErrInvalidLengthGenerated
981 }
982 if postIndex > l {
983 return io.ErrUnexpectedEOF
984 }
985 if err := m.DeprecatedSource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
986 return err
987 }
988 iNdEx = postIndex
989 case 13:
990 if wireType != 2 {
991 return fmt.Errorf("proto: wrong wireType = %d for field DeprecatedFirstTimestamp", wireType)
992 }
993 var msglen int
994 for shift := uint(0); ; shift += 7 {
995 if shift >= 64 {
996 return ErrIntOverflowGenerated
997 }
998 if iNdEx >= l {
999 return io.ErrUnexpectedEOF
1000 }
1001 b := dAtA[iNdEx]
1002 iNdEx++
1003 msglen |= int(b&0x7F) << shift
1004 if b < 0x80 {
1005 break
1006 }
1007 }
1008 if msglen < 0 {
1009 return ErrInvalidLengthGenerated
1010 }
1011 postIndex := iNdEx + msglen
1012 if postIndex < 0 {
1013 return ErrInvalidLengthGenerated
1014 }
1015 if postIndex > l {
1016 return io.ErrUnexpectedEOF
1017 }
1018 if err := m.DeprecatedFirstTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1019 return err
1020 }
1021 iNdEx = postIndex
1022 case 14:
1023 if wireType != 2 {
1024 return fmt.Errorf("proto: wrong wireType = %d for field DeprecatedLastTimestamp", wireType)
1025 }
1026 var msglen int
1027 for shift := uint(0); ; shift += 7 {
1028 if shift >= 64 {
1029 return ErrIntOverflowGenerated
1030 }
1031 if iNdEx >= l {
1032 return io.ErrUnexpectedEOF
1033 }
1034 b := dAtA[iNdEx]
1035 iNdEx++
1036 msglen |= int(b&0x7F) << shift
1037 if b < 0x80 {
1038 break
1039 }
1040 }
1041 if msglen < 0 {
1042 return ErrInvalidLengthGenerated
1043 }
1044 postIndex := iNdEx + msglen
1045 if postIndex < 0 {
1046 return ErrInvalidLengthGenerated
1047 }
1048 if postIndex > l {
1049 return io.ErrUnexpectedEOF
1050 }
1051 if err := m.DeprecatedLastTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1052 return err
1053 }
1054 iNdEx = postIndex
1055 case 15:
1056 if wireType != 0 {
1057 return fmt.Errorf("proto: wrong wireType = %d for field DeprecatedCount", wireType)
1058 }
1059 m.DeprecatedCount = 0
1060 for shift := uint(0); ; shift += 7 {
1061 if shift >= 64 {
1062 return ErrIntOverflowGenerated
1063 }
1064 if iNdEx >= l {
1065 return io.ErrUnexpectedEOF
1066 }
1067 b := dAtA[iNdEx]
1068 iNdEx++
1069 m.DeprecatedCount |= int32(b&0x7F) << shift
1070 if b < 0x80 {
1071 break
1072 }
1073 }
1074 default:
1075 iNdEx = preIndex
1076 skippy, err := skipGenerated(dAtA[iNdEx:])
1077 if err != nil {
1078 return err
1079 }
1080 if skippy < 0 {
1081 return ErrInvalidLengthGenerated
1082 }
1083 if (iNdEx + skippy) < 0 {
1084 return ErrInvalidLengthGenerated
1085 }
1086 if (iNdEx + skippy) > l {
1087 return io.ErrUnexpectedEOF
1088 }
1089 iNdEx += skippy
1090 }
1091 }
1092
1093 if iNdEx > l {
1094 return io.ErrUnexpectedEOF
1095 }
1096 return nil
1097}
1098func (m *EventList) Unmarshal(dAtA []byte) error {
1099 l := len(dAtA)
1100 iNdEx := 0
1101 for iNdEx < l {
1102 preIndex := iNdEx
1103 var wire uint64
1104 for shift := uint(0); ; shift += 7 {
1105 if shift >= 64 {
1106 return ErrIntOverflowGenerated
1107 }
1108 if iNdEx >= l {
1109 return io.ErrUnexpectedEOF
1110 }
1111 b := dAtA[iNdEx]
1112 iNdEx++
1113 wire |= uint64(b&0x7F) << shift
1114 if b < 0x80 {
1115 break
1116 }
1117 }
1118 fieldNum := int32(wire >> 3)
1119 wireType := int(wire & 0x7)
1120 if wireType == 4 {
1121 return fmt.Errorf("proto: EventList: wiretype end group for non-group")
1122 }
1123 if fieldNum <= 0 {
1124 return fmt.Errorf("proto: EventList: illegal tag %d (wire type %d)", fieldNum, wire)
1125 }
1126 switch fieldNum {
1127 case 1:
1128 if wireType != 2 {
1129 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
1130 }
1131 var msglen int
1132 for shift := uint(0); ; shift += 7 {
1133 if shift >= 64 {
1134 return ErrIntOverflowGenerated
1135 }
1136 if iNdEx >= l {
1137 return io.ErrUnexpectedEOF
1138 }
1139 b := dAtA[iNdEx]
1140 iNdEx++
1141 msglen |= int(b&0x7F) << shift
1142 if b < 0x80 {
1143 break
1144 }
1145 }
1146 if msglen < 0 {
1147 return ErrInvalidLengthGenerated
1148 }
1149 postIndex := iNdEx + msglen
1150 if postIndex < 0 {
1151 return ErrInvalidLengthGenerated
1152 }
1153 if postIndex > l {
1154 return io.ErrUnexpectedEOF
1155 }
1156 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1157 return err
1158 }
1159 iNdEx = postIndex
1160 case 2:
1161 if wireType != 2 {
1162 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
1163 }
1164 var msglen int
1165 for shift := uint(0); ; shift += 7 {
1166 if shift >= 64 {
1167 return ErrIntOverflowGenerated
1168 }
1169 if iNdEx >= l {
1170 return io.ErrUnexpectedEOF
1171 }
1172 b := dAtA[iNdEx]
1173 iNdEx++
1174 msglen |= int(b&0x7F) << shift
1175 if b < 0x80 {
1176 break
1177 }
1178 }
1179 if msglen < 0 {
1180 return ErrInvalidLengthGenerated
1181 }
1182 postIndex := iNdEx + msglen
1183 if postIndex < 0 {
1184 return ErrInvalidLengthGenerated
1185 }
1186 if postIndex > l {
1187 return io.ErrUnexpectedEOF
1188 }
1189 m.Items = append(m.Items, Event{})
1190 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1191 return err
1192 }
1193 iNdEx = postIndex
1194 default:
1195 iNdEx = preIndex
1196 skippy, err := skipGenerated(dAtA[iNdEx:])
1197 if err != nil {
1198 return err
1199 }
1200 if skippy < 0 {
1201 return ErrInvalidLengthGenerated
1202 }
1203 if (iNdEx + skippy) < 0 {
1204 return ErrInvalidLengthGenerated
1205 }
1206 if (iNdEx + skippy) > l {
1207 return io.ErrUnexpectedEOF
1208 }
1209 iNdEx += skippy
1210 }
1211 }
1212
1213 if iNdEx > l {
1214 return io.ErrUnexpectedEOF
1215 }
1216 return nil
1217}
1218func (m *EventSeries) Unmarshal(dAtA []byte) error {
1219 l := len(dAtA)
1220 iNdEx := 0
1221 for iNdEx < l {
1222 preIndex := iNdEx
1223 var wire uint64
1224 for shift := uint(0); ; shift += 7 {
1225 if shift >= 64 {
1226 return ErrIntOverflowGenerated
1227 }
1228 if iNdEx >= l {
1229 return io.ErrUnexpectedEOF
1230 }
1231 b := dAtA[iNdEx]
1232 iNdEx++
1233 wire |= uint64(b&0x7F) << shift
1234 if b < 0x80 {
1235 break
1236 }
1237 }
1238 fieldNum := int32(wire >> 3)
1239 wireType := int(wire & 0x7)
1240 if wireType == 4 {
1241 return fmt.Errorf("proto: EventSeries: wiretype end group for non-group")
1242 }
1243 if fieldNum <= 0 {
1244 return fmt.Errorf("proto: EventSeries: illegal tag %d (wire type %d)", fieldNum, wire)
1245 }
1246 switch fieldNum {
1247 case 1:
1248 if wireType != 0 {
1249 return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType)
1250 }
1251 m.Count = 0
1252 for shift := uint(0); ; shift += 7 {
1253 if shift >= 64 {
1254 return ErrIntOverflowGenerated
1255 }
1256 if iNdEx >= l {
1257 return io.ErrUnexpectedEOF
1258 }
1259 b := dAtA[iNdEx]
1260 iNdEx++
1261 m.Count |= int32(b&0x7F) << shift
1262 if b < 0x80 {
1263 break
1264 }
1265 }
1266 case 2:
1267 if wireType != 2 {
1268 return fmt.Errorf("proto: wrong wireType = %d for field LastObservedTime", wireType)
1269 }
1270 var msglen int
1271 for shift := uint(0); ; shift += 7 {
1272 if shift >= 64 {
1273 return ErrIntOverflowGenerated
1274 }
1275 if iNdEx >= l {
1276 return io.ErrUnexpectedEOF
1277 }
1278 b := dAtA[iNdEx]
1279 iNdEx++
1280 msglen |= int(b&0x7F) << shift
1281 if b < 0x80 {
1282 break
1283 }
1284 }
1285 if msglen < 0 {
1286 return ErrInvalidLengthGenerated
1287 }
1288 postIndex := iNdEx + msglen
1289 if postIndex < 0 {
1290 return ErrInvalidLengthGenerated
1291 }
1292 if postIndex > l {
1293 return io.ErrUnexpectedEOF
1294 }
1295 if err := m.LastObservedTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1296 return err
1297 }
1298 iNdEx = postIndex
1299 default:
1300 iNdEx = preIndex
1301 skippy, err := skipGenerated(dAtA[iNdEx:])
1302 if err != nil {
1303 return err
1304 }
1305 if skippy < 0 {
1306 return ErrInvalidLengthGenerated
1307 }
1308 if (iNdEx + skippy) < 0 {
1309 return ErrInvalidLengthGenerated
1310 }
1311 if (iNdEx + skippy) > l {
1312 return io.ErrUnexpectedEOF
1313 }
1314 iNdEx += skippy
1315 }
1316 }
1317
1318 if iNdEx > l {
1319 return io.ErrUnexpectedEOF
1320 }
1321 return nil
1322}
1323func skipGenerated(dAtA []byte) (n int, err error) {
1324 l := len(dAtA)
1325 iNdEx := 0
1326 depth := 0
1327 for iNdEx < l {
1328 var wire uint64
1329 for shift := uint(0); ; shift += 7 {
1330 if shift >= 64 {
1331 return 0, ErrIntOverflowGenerated
1332 }
1333 if iNdEx >= l {
1334 return 0, io.ErrUnexpectedEOF
1335 }
1336 b := dAtA[iNdEx]
1337 iNdEx++
1338 wire |= (uint64(b) & 0x7F) << shift
1339 if b < 0x80 {
1340 break
1341 }
1342 }
1343 wireType := int(wire & 0x7)
1344 switch wireType {
1345 case 0:
1346 for shift := uint(0); ; shift += 7 {
1347 if shift >= 64 {
1348 return 0, ErrIntOverflowGenerated
1349 }
1350 if iNdEx >= l {
1351 return 0, io.ErrUnexpectedEOF
1352 }
1353 iNdEx++
1354 if dAtA[iNdEx-1] < 0x80 {
1355 break
1356 }
1357 }
1358 case 1:
1359 iNdEx += 8
1360 case 2:
1361 var length int
1362 for shift := uint(0); ; shift += 7 {
1363 if shift >= 64 {
1364 return 0, ErrIntOverflowGenerated
1365 }
1366 if iNdEx >= l {
1367 return 0, io.ErrUnexpectedEOF
1368 }
1369 b := dAtA[iNdEx]
1370 iNdEx++
1371 length |= (int(b) & 0x7F) << shift
1372 if b < 0x80 {
1373 break
1374 }
1375 }
1376 if length < 0 {
1377 return 0, ErrInvalidLengthGenerated
1378 }
1379 iNdEx += length
1380 case 3:
1381 depth++
1382 case 4:
1383 if depth == 0 {
1384 return 0, ErrUnexpectedEndOfGroupGenerated
1385 }
1386 depth--
1387 case 5:
1388 iNdEx += 4
1389 default:
1390 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
1391 }
1392 if iNdEx < 0 {
1393 return 0, ErrInvalidLengthGenerated
1394 }
1395 if depth == 0 {
1396 return iNdEx, nil
1397 }
1398 }
1399 return 0, io.ErrUnexpectedEOF
1400}
1401
1402var (
1403 ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
1404 ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
1405 ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
1406)