Debian Codegraph @

golang/gogo/collectorpb/collector.pb.go

raw symbols SCIP
1 // Code generated by protoc-gen-gogo. DO NOT EDIT.
2 // source: github.com/lightstep/lightstep-tracer-common/tmpgen/collector.proto
3
4 /*
5 Package collectorpb is a generated protocol buffer package.
6
7 It is generated from these files:
8 github.com/lightstep/lightstep-tracer-common/tmpgen/collector.proto
9
10 It has these top-level messages:
11 SpanContext
12 KeyValue
13 Log
14 Reference
15 Span
16 Reporter
17 MetricsSample
18 InternalMetrics
19 Auth
20 ReportRequest
21 Command
22 ReportResponse
23 */
24 package collectorpb // import "github.com/lightstep/lightstep-tracer-common/golang/gogo/collectorpb"
25
26 import proto "github.com/gogo/protobuf/proto"
27 import fmt "fmt"
28 import math "math"
29 import google_protobuf "github.com/gogo/protobuf/types"
30 import _ "google.golang.org/genproto/googleapis/api/annotations"
31
32 import (
33 context "golang.org/x/net/context"
34 grpc "google.golang.org/grpc"
35 )
36
37 import encoding_binary "encoding/binary"
38
39 import io "io"
40
41 // Reference imports to suppress errors if they are not otherwise used.
42 var _ = proto.Marshal
43 var _ = fmt.Errorf
44 var _ = math.Inf
45
46 // This is a compile-time assertion to ensure that this generated file
47 // is compatible with the proto package it is being compiled against.
48 // A compilation error at this line likely means your copy of the
49 // proto package needs to be updated.
50 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
51
52 type Reference_Relationship int32
53
54 const (
55 Reference_CHILD_OF Reference_Relationship = 0
56 Reference_FOLLOWS_FROM Reference_Relationship = 1
57 )
58
59 var Reference_Relationship_name = map[int32]string{
60 0: "CHILD_OF",
61 1: "FOLLOWS_FROM",
62 }
63 var Reference_Relationship_value = map[string]int32{
64 "CHILD_OF": 0,
65 "FOLLOWS_FROM": 1,
66 }
67
68 func (x Reference_Relationship) String() string {
69 return proto.EnumName(Reference_Relationship_name, int32(x))
70 }
71 func (Reference_Relationship) EnumDescriptor() ([]byte, []int) {
72 return fileDescriptorCollector, []int{3, 0}
73 }
74
75 type SpanContext struct {
76 TraceId uint64 `protobuf:"varint,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
77 SpanId uint64 `protobuf:"varint,2,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
78 Baggage map[string]string `protobuf:"bytes,3,rep,name=baggage" json:"baggage,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
79 }
80
81 func (m *SpanContext) Reset() { *m = SpanContext{} }
82 func (m *SpanContext) String() string { return proto.CompactTextString(m) }
83 func (*SpanContext) ProtoMessage() {}
84 func (*SpanContext) Descriptor() ([]byte, []int) { return fileDescriptorCollector, []int{0} }
85
86 func (m *SpanContext) GetTraceId() uint64 {
87 if m != nil {
88 return m.TraceId
89 }
90 return 0
91 }
92
93 func (m *SpanContext) GetSpanId() uint64 {
94 if m != nil {
95 return m.SpanId
96 }
97 return 0
98 }
99
100 func (m *SpanContext) GetBaggage() map[string]string {
101 if m != nil {
102 return m.Baggage
103 }
104 return nil
105 }
106
107 // Represent both tags and log fields.
108 type KeyValue struct {
109 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
110 // Types that are valid to be assigned to Value:
111 // *KeyValue_StringValue
112 // *KeyValue_IntValue
113 // *KeyValue_DoubleValue
114 // *KeyValue_BoolValue
115 // *KeyValue_JsonValue
116 Value isKeyValue_Value `protobuf_oneof:"value"`
117 }
118
119 func (m *KeyValue) Reset() { *m = KeyValue{} }
120 func (m *KeyValue) String() string { return proto.CompactTextString(m) }
121 func (*KeyValue) ProtoMessage() {}
122 func (*KeyValue) Descriptor() ([]byte, []int) { return fileDescriptorCollector, []int{1} }
123
124 type isKeyValue_Value interface {
125 isKeyValue_Value()
126 MarshalTo([]byte) (int, error)
127 Size() int
128 }
129
130 type KeyValue_StringValue struct {
131 StringValue string `protobuf:"bytes,2,opt,name=string_value,json=stringValue,proto3,oneof"`
132 }
133 type KeyValue_IntValue struct {
134 IntValue int64 `protobuf:"varint,3,opt,name=int_value,json=intValue,proto3,oneof"`
135 }
136 type KeyValue_DoubleValue struct {
137 DoubleValue float64 `protobuf:"fixed64,4,opt,name=double_value,json=doubleValue,proto3,oneof"`
138 }
139 type KeyValue_BoolValue struct {
140 BoolValue bool `protobuf:"varint,5,opt,name=bool_value,json=boolValue,proto3,oneof"`
141 }
142 type KeyValue_JsonValue struct {
143 JsonValue string `protobuf:"bytes,6,opt,name=json_value,json=jsonValue,proto3,oneof"`
144 }
145
146 func (*KeyValue_StringValue) isKeyValue_Value() {}
147 func (*KeyValue_IntValue) isKeyValue_Value() {}
148 func (*KeyValue_DoubleValue) isKeyValue_Value() {}
149 func (*KeyValue_BoolValue) isKeyValue_Value() {}
150 func (*KeyValue_JsonValue) isKeyValue_Value() {}
151
152 func (m *KeyValue) GetValue() isKeyValue_Value {
153 if m != nil {
154 return m.Value
155 }
156 return nil
157 }
158
159 func (m *KeyValue) GetKey() string {
160 if m != nil {
161 return m.Key
162 }
163 return ""
164 }
165
166 func (m *KeyValue) GetStringValue() string {
167 if x, ok := m.GetValue().(*KeyValue_StringValue); ok {
168 return x.StringValue
169 }
170 return ""
171 }
172
173 func (m *KeyValue) GetIntValue() int64 {
174 if x, ok := m.GetValue().(*KeyValue_IntValue); ok {
175 return x.IntValue
176 }
177 return 0
178 }
179
180 func (m *KeyValue) GetDoubleValue() float64 {
181 if x, ok := m.GetValue().(*KeyValue_DoubleValue); ok {
182 return x.DoubleValue
183 }
184 return 0
185 }
186
187 func (m *KeyValue) GetBoolValue() bool {
188 if x, ok := m.GetValue().(*KeyValue_BoolValue); ok {
189 return x.BoolValue
190 }
191 return false
192 }
193
194 func (m *KeyValue) GetJsonValue() string {
195 if x, ok := m.GetValue().(*KeyValue_JsonValue); ok {
196 return x.JsonValue
197 }
198 return ""
199 }
200
201 // XXX_OneofFuncs is for the internal use of the proto package.
202 func (*KeyValue) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
203 return _KeyValue_OneofMarshaler, _KeyValue_OneofUnmarshaler, _KeyValue_OneofSizer, []interface{}{
204 (*KeyValue_StringValue)(nil),
205 (*KeyValue_IntValue)(nil),
206 (*KeyValue_DoubleValue)(nil),
207 (*KeyValue_BoolValue)(nil),
208 (*KeyValue_JsonValue)(nil),
209 }
210 }
211
212 func _KeyValue_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
213 m := msg.(*KeyValue)
214 // value
215 switch x := m.Value.(type) {
216 case *KeyValue_StringValue:
217 _ = b.EncodeVarint(2<<3 | proto.WireBytes)
218 _ = b.EncodeStringBytes(x.StringValue)
219 case *KeyValue_IntValue:
220 _ = b.EncodeVarint(3<<3 | proto.WireVarint)
221 _ = b.EncodeVarint(uint64(x.IntValue))
222 case *KeyValue_DoubleValue:
223 _ = b.EncodeVarint(4<<3 | proto.WireFixed64)
224 _ = b.EncodeFixed64(math.Float64bits(x.DoubleValue))
225 case *KeyValue_BoolValue:
226 t := uint64(0)
227 if x.BoolValue {
228 t = 1
229 }
230 _ = b.EncodeVarint(5<<3 | proto.WireVarint)
231 _ = b.EncodeVarint(t)
232 case *KeyValue_JsonValue:
233 _ = b.EncodeVarint(6<<3 | proto.WireBytes)
234 _ = b.EncodeStringBytes(x.JsonValue)
235 case nil:
236 default:
237 return fmt.Errorf("KeyValue.Value has unexpected type %T", x)
238 }
239 return nil
240 }
241
242 func _KeyValue_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
243 m := msg.(*KeyValue)
244 switch tag {
245 case 2: // value.string_value
246 if wire != proto.WireBytes {
247 return true, proto.ErrInternalBadWireType
248 }
249 x, err := b.DecodeStringBytes()
250 m.Value = &KeyValue_StringValue{x}
251 return true, err
252 case 3: // value.int_value
253 if wire != proto.WireVarint {
254 return true, proto.ErrInternalBadWireType
255 }
256 x, err := b.DecodeVarint()
257 m.Value = &KeyValue_IntValue{int64(x)}
258 return true, err
259 case 4: // value.double_value
260 if wire != proto.WireFixed64 {
261 return true, proto.ErrInternalBadWireType
262 }
263 x, err := b.DecodeFixed64()
264 m.Value = &KeyValue_DoubleValue{math.Float64frombits(x)}
265 return true, err
266 case 5: // value.bool_value
267 if wire != proto.WireVarint {
268 return true, proto.ErrInternalBadWireType
269 }
270 x, err := b.DecodeVarint()
271 m.Value = &KeyValue_BoolValue{x != 0}
272 return true, err
273 case 6: // value.json_value
274 if wire != proto.WireBytes {
275 return true, proto.ErrInternalBadWireType
276 }
277 x, err := b.DecodeStringBytes()
278 m.Value = &KeyValue_JsonValue{x}
279 return true, err
280 default:
281 return false, nil
282 }
283 }
284
285 func _KeyValue_OneofSizer(msg proto.Message) (n int) {
286 m := msg.(*KeyValue)
287 // value
288 switch x := m.Value.(type) {
289 case *KeyValue_StringValue:
290 n += proto.SizeVarint(2<<3 | proto.WireBytes)
291 n += proto.SizeVarint(uint64(len(x.StringValue)))
292 n += len(x.StringValue)
293 case *KeyValue_IntValue:
294 n += proto.SizeVarint(3<<3 | proto.WireVarint)
295 n += proto.SizeVarint(uint64(x.IntValue))
296 case *KeyValue_DoubleValue:
297 n += proto.SizeVarint(4<<3 | proto.WireFixed64)
298 n += 8
299 case *KeyValue_BoolValue:
300 n += proto.SizeVarint(5<<3 | proto.WireVarint)
301 n += 1
302 case *KeyValue_JsonValue:
303 n += proto.SizeVarint(6<<3 | proto.WireBytes)
304 n += proto.SizeVarint(uint64(len(x.JsonValue)))
305 n += len(x.JsonValue)
306 case nil:
307 default:
308 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
309 }
310 return n
311 }
312
313 type Log struct {
314 Timestamp *google_protobuf.Timestamp `protobuf:"bytes,1,opt,name=timestamp" json:"timestamp,omitempty"`
315 Fields []*KeyValue `protobuf:"bytes,2,rep,name=fields" json:"fields,omitempty"`
316 }
317
318 func (m *Log) Reset() { *m = Log{} }
319 func (m *Log) String() string { return proto.CompactTextString(m) }
320 func (*Log) ProtoMessage() {}
321 func (*Log) Descriptor() ([]byte, []int) { return fileDescriptorCollector, []int{2} }
322
323 func (m *Log) GetTimestamp() *google_protobuf.Timestamp {
324 if m != nil {
325 return m.Timestamp
326 }
327 return nil
328 }
329
330 func (m *Log) GetFields() []*KeyValue {
331 if m != nil {
332 return m.Fields
333 }
334 return nil
335 }
336
337 type Reference struct {
338 Relationship Reference_Relationship `protobuf:"varint,1,opt,name=relationship,proto3,enum=lightstep.collector.Reference_Relationship" json:"relationship,omitempty"`
339 SpanContext *SpanContext `protobuf:"bytes,2,opt,name=span_context,json=spanContext" json:"span_context,omitempty"`
340 }
341
342 func (m *Reference) Reset() { *m = Reference{} }
343 func (m *Reference) String() string { return proto.CompactTextString(m) }
344 func (*Reference) ProtoMessage() {}
345 func (*Reference) Descriptor() ([]byte, []int) { return fileDescriptorCollector, []int{3} }
346
347 func (m *Reference) GetRelationship() Reference_Relationship {
348 if m != nil {
349 return m.Relationship
350 }
351 return Reference_CHILD_OF
352 }
353
354 func (m *Reference) GetSpanContext() *SpanContext {
355 if m != nil {
356 return m.SpanContext
357 }
358 return nil
359 }
360
361 type Span struct {
362 SpanContext *SpanContext `protobuf:"bytes,1,opt,name=span_context,json=spanContext" json:"span_context,omitempty"`
363 OperationName string `protobuf:"bytes,2,opt,name=operation_name,json=operationName,proto3" json:"operation_name,omitempty"`
364 References []*Reference `protobuf:"bytes,3,rep,name=references" json:"references,omitempty"`
365 StartTimestamp *google_protobuf.Timestamp `protobuf:"bytes,4,opt,name=start_timestamp,json=startTimestamp" json:"start_timestamp,omitempty"`
366 DurationMicros uint64 `protobuf:"varint,5,opt,name=duration_micros,json=durationMicros,proto3" json:"duration_micros,omitempty"`
367 Tags []*KeyValue `protobuf:"bytes,6,rep,name=tags" json:"tags,omitempty"`
368 Logs []*Log `protobuf:"bytes,7,rep,name=logs" json:"logs,omitempty"`
369 }
370
371 func (m *Span) Reset() { *m = Span{} }
372 func (m *Span) String() string { return proto.CompactTextString(m) }
373 func (*Span) ProtoMessage() {}
374 func (*Span) Descriptor() ([]byte, []int) { return fileDescriptorCollector, []int{4} }
375
376 func (m *Span) GetSpanContext() *SpanContext {
377 if m != nil {
378 return m.SpanContext
379 }
380 return nil
381 }
382
383 func (m *Span) GetOperationName() string {
384 if m != nil {
385 return m.OperationName
386 }
387 return ""
388 }
389
390 func (m *Span) GetReferences() []*Reference {
391 if m != nil {
392 return m.References
393 }
394 return nil
395 }
396
397 func (m *Span) GetStartTimestamp() *google_protobuf.Timestamp {
398 if m != nil {
399 return m.StartTimestamp
400 }
401 return nil
402 }
403
404 func (m *Span) GetDurationMicros() uint64 {
405 if m != nil {
406 return m.DurationMicros
407 }
408 return 0
409 }
410
411 func (m *Span) GetTags() []*KeyValue {
412 if m != nil {
413 return m.Tags
414 }
415 return nil
416 }
417
418 func (m *Span) GetLogs() []*Log {
419 if m != nil {
420 return m.Logs
421 }
422 return nil
423 }
424
425 type Reporter struct {
426 ReporterId uint64 `protobuf:"varint,1,opt,name=reporter_id,json=reporterId,proto3" json:"reporter_id,omitempty"`
427 Tags []*KeyValue `protobuf:"bytes,4,rep,name=tags" json:"tags,omitempty"`
428 }
429
430 func (m *Reporter) Reset() { *m = Reporter{} }
431 func (m *Reporter) String() string { return proto.CompactTextString(m) }
432 func (*Reporter) ProtoMessage() {}
433 func (*Reporter) Descriptor() ([]byte, []int) { return fileDescriptorCollector, []int{5} }
434
435 func (m *Reporter) GetReporterId() uint64 {
436 if m != nil {
437 return m.ReporterId
438 }
439 return 0
440 }
441
442 func (m *Reporter) GetTags() []*KeyValue {
443 if m != nil {
444 return m.Tags
445 }
446 return nil
447 }
448
449 type MetricsSample struct {
450 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
451 // Types that are valid to be assigned to Value:
452 // *MetricsSample_IntValue
453 // *MetricsSample_DoubleValue
454 Value isMetricsSample_Value `protobuf_oneof:"value"`
455 }
456
457 func (m *MetricsSample) Reset() { *m = MetricsSample{} }
458 func (m *MetricsSample) String() string { return proto.CompactTextString(m) }
459 func (*MetricsSample) ProtoMessage() {}
460 func (*MetricsSample) Descriptor() ([]byte, []int) { return fileDescriptorCollector, []int{6} }
461
462 type isMetricsSample_Value interface {
463 isMetricsSample_Value()
464 MarshalTo([]byte) (int, error)
465 Size() int
466 }
467
468 type MetricsSample_IntValue struct {
469 IntValue int64 `protobuf:"varint,2,opt,name=int_value,json=intValue,proto3,oneof"`
470 }
471 type MetricsSample_DoubleValue struct {
472 DoubleValue float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue,proto3,oneof"`
473 }
474
475 func (*MetricsSample_IntValue) isMetricsSample_Value() {}
476 func (*MetricsSample_DoubleValue) isMetricsSample_Value() {}
477
478 func (m *MetricsSample) GetValue() isMetricsSample_Value {
479 if m != nil {
480 return m.Value
481 }
482 return nil
483 }
484
485 func (m *MetricsSample) GetName() string {
486 if m != nil {
487 return m.Name
488 }
489 return ""
490 }
491
492 func (m *MetricsSample) GetIntValue() int64 {
493 if x, ok := m.GetValue().(*MetricsSample_IntValue); ok {
494 return x.IntValue
495 }
496 return 0
497 }
498
499 func (m *MetricsSample) GetDoubleValue() float64 {
500 if x, ok := m.GetValue().(*MetricsSample_DoubleValue); ok {
501 return x.DoubleValue
502 }
503 return 0
504 }
505
506 // XXX_OneofFuncs is for the internal use of the proto package.
507 func (*MetricsSample) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
508 return _MetricsSample_OneofMarshaler, _MetricsSample_OneofUnmarshaler, _MetricsSample_OneofSizer, []interface{}{
509 (*MetricsSample_IntValue)(nil),
510 (*MetricsSample_DoubleValue)(nil),
511 }
512 }
513
514 func _MetricsSample_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
515 m := msg.(*MetricsSample)
516 // value
517 switch x := m.Value.(type) {
518 case *MetricsSample_IntValue:
519 _ = b.EncodeVarint(2<<3 | proto.WireVarint)
520 _ = b.EncodeVarint(uint64(x.IntValue))
521 case *MetricsSample_DoubleValue:
522 _ = b.EncodeVarint(3<<3 | proto.WireFixed64)
523 _ = b.EncodeFixed64(math.Float64bits(x.DoubleValue))
524 case nil:
525 default:
526 return fmt.Errorf("MetricsSample.Value has unexpected type %T", x)
527 }
528 return nil
529 }
530
531 func _MetricsSample_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
532 m := msg.(*MetricsSample)
533 switch tag {
534 case 2: // value.int_value
535 if wire != proto.WireVarint {
536 return true, proto.ErrInternalBadWireType
537 }
538 x, err := b.DecodeVarint()
539 m.Value = &MetricsSample_IntValue{int64(x)}
540 return true, err
541 case 3: // value.double_value
542 if wire != proto.WireFixed64 {
543 return true, proto.ErrInternalBadWireType
544 }
545 x, err := b.DecodeFixed64()
546 m.Value = &MetricsSample_DoubleValue{math.Float64frombits(x)}
547 return true, err
548 default:
549 return false, nil
550 }
551 }
552
553 func _MetricsSample_OneofSizer(msg proto.Message) (n int) {
554 m := msg.(*MetricsSample)
555 // value
556 switch x := m.Value.(type) {
557 case *MetricsSample_IntValue:
558 n += proto.SizeVarint(2<<3 | proto.WireVarint)
559 n += proto.SizeVarint(uint64(x.IntValue))
560 case *MetricsSample_DoubleValue:
561 n += proto.SizeVarint(3<<3 | proto.WireFixed64)
562 n += 8
563 case nil:
564 default:
565 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
566 }
567 return n
568 }
569
570 type InternalMetrics struct {
571 StartTimestamp *google_protobuf.Timestamp `protobuf:"bytes,1,opt,name=start_timestamp,json=startTimestamp" json:"start_timestamp,omitempty"`
572 DurationMicros uint64 `protobuf:"varint,2,opt,name=duration_micros,json=durationMicros,proto3" json:"duration_micros,omitempty"`
573 Logs []*Log `protobuf:"bytes,3,rep,name=logs" json:"logs,omitempty"`
574 Counts []*MetricsSample `protobuf:"bytes,4,rep,name=counts" json:"counts,omitempty"`
575 Gauges []*MetricsSample `protobuf:"bytes,5,rep,name=gauges" json:"gauges,omitempty"`
576 }
577
578 func (m *InternalMetrics) Reset() { *m = InternalMetrics{} }
579 func (m *InternalMetrics) String() string { return proto.CompactTextString(m) }
580 func (*InternalMetrics) ProtoMessage() {}
581 func (*InternalMetrics) Descriptor() ([]byte, []int) { return fileDescriptorCollector, []int{7} }
582
583 func (m *InternalMetrics) GetStartTimestamp() *google_protobuf.Timestamp {
584 if m != nil {
585 return m.StartTimestamp
586 }
587 return nil
588 }
589
590 func (m *InternalMetrics) GetDurationMicros() uint64 {
591 if m != nil {
592 return m.DurationMicros
593 }
594 return 0
595 }
596
597 func (m *InternalMetrics) GetLogs() []*Log {
598 if m != nil {
599 return m.Logs
600 }
601 return nil
602 }
603
604 func (m *InternalMetrics) GetCounts() []*MetricsSample {
605 if m != nil {
606 return m.Counts
607 }
608 return nil
609 }
610
611 func (m *InternalMetrics) GetGauges() []*MetricsSample {
612 if m != nil {
613 return m.Gauges
614 }
615 return nil
616 }
617
618 type Auth struct {
619 AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
620 }
621
622 func (m *Auth) Reset() { *m = Auth{} }
623 func (m *Auth) String() string { return proto.CompactTextString(m) }
624 func (*Auth) ProtoMessage() {}
625 func (*Auth) Descriptor() ([]byte, []int) { return fileDescriptorCollector, []int{8} }
626
627 func (m *Auth) GetAccessToken() string {
628 if m != nil {
629 return m.AccessToken
630 }
631 return ""
632 }
633
634 type ReportRequest struct {
635 Reporter *Reporter `protobuf:"bytes,1,opt,name=reporter" json:"reporter,omitempty"`
636 Auth *Auth `protobuf:"bytes,2,opt,name=auth" json:"auth,omitempty"`
637 Spans []*Span `protobuf:"bytes,3,rep,name=spans" json:"spans,omitempty"`
638 TimestampOffsetMicros int64 `protobuf:"varint,5,opt,name=timestamp_offset_micros,json=timestampOffsetMicros,proto3" json:"timestamp_offset_micros,omitempty"`
639 InternalMetrics *InternalMetrics `protobuf:"bytes,6,opt,name=internal_metrics,json=internalMetrics" json:"internal_metrics,omitempty"`
640 }
641
642 func (m *ReportRequest) Reset() { *m = ReportRequest{} }
643 func (m *ReportRequest) String() string { return proto.CompactTextString(m) }
644 func (*ReportRequest) ProtoMessage() {}
645 func (*ReportRequest) Descriptor() ([]byte, []int) { return fileDescriptorCollector, []int{9} }
646
647 func (m *ReportRequest) GetReporter() *Reporter {
648 if m != nil {
649 return m.Reporter
650 }
651 return nil
652 }
653
654 func (m *ReportRequest) GetAuth() *Auth {
655 if m != nil {
656 return m.Auth
657 }
658 return nil
659 }
660
661 func (m *ReportRequest) GetSpans() []*Span {
662 if m != nil {
663 return m.Spans
664 }
665 return nil
666 }
667
668 func (m *ReportRequest) GetTimestampOffsetMicros() int64 {
669 if m != nil {
670 return m.TimestampOffsetMicros
671 }
672 return 0
673 }
674
675 func (m *ReportRequest) GetInternalMetrics() *InternalMetrics {
676 if m != nil {
677 return m.InternalMetrics
678 }
679 return nil
680 }
681
682 type Command struct {
683 Disable bool `protobuf:"varint,1,opt,name=disable,proto3" json:"disable,omitempty"`
684 DevMode bool `protobuf:"varint,2,opt,name=dev_mode,json=devMode,proto3" json:"dev_mode,omitempty"`
685 }
686
687 func (m *Command) Reset() { *m = Command{} }
688 func (m *Command) String() string { return proto.CompactTextString(m) }
689 func (*Command) ProtoMessage() {}
690 func (*Command) Descriptor() ([]byte, []int) { return fileDescriptorCollector, []int{10} }
691
692 func (m *Command) GetDisable() bool {
693 if m != nil {
694 return m.Disable
695 }
696 return false
697 }
698
699 func (m *Command) GetDevMode() bool {
700 if m != nil {
701 return m.DevMode
702 }
703 return false
704 }
705
706 type ReportResponse struct {
707 Commands []*Command `protobuf:"bytes,1,rep,name=commands" json:"commands,omitempty"`
708 ReceiveTimestamp *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=receive_timestamp,json=receiveTimestamp" json:"receive_timestamp,omitempty"`
709 TransmitTimestamp *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=transmit_timestamp,json=transmitTimestamp" json:"transmit_timestamp,omitempty"`
710 Errors []string `protobuf:"bytes,4,rep,name=errors" json:"errors,omitempty"`
711 Warnings []string `protobuf:"bytes,5,rep,name=warnings" json:"warnings,omitempty"`
712 Infos []string `protobuf:"bytes,6,rep,name=infos" json:"infos,omitempty"`
713 }
714
715 func (m *ReportResponse) Reset() { *m = ReportResponse{} }
716 func (m *ReportResponse) String() string { return proto.CompactTextString(m) }
717 func (*ReportResponse) ProtoMessage() {}
718 func (*ReportResponse) Descriptor() ([]byte, []int) { return fileDescriptorCollector, []int{11} }
719
720 func (m *ReportResponse) GetCommands() []*Command {
721 if m != nil {
722 return m.Commands
723 }
724 return nil
725 }
726
727 func (m *ReportResponse) GetReceiveTimestamp() *google_protobuf.Timestamp {
728 if m != nil {
729 return m.ReceiveTimestamp
730 }
731 return nil
732 }
733
734 func (m *ReportResponse) GetTransmitTimestamp() *google_protobuf.Timestamp {
735 if m != nil {
736 return m.TransmitTimestamp
737 }
738 return nil
739 }
740
741 func (m *ReportResponse) GetErrors() []string {
742 if m != nil {
743 return m.Errors
744 }
745 return nil
746 }
747
748 func (m *ReportResponse) GetWarnings() []string {
749 if m != nil {
750 return m.Warnings
751 }
752 return nil
753 }
754
755 func (m *ReportResponse) GetInfos() []string {
756 if m != nil {
757 return m.Infos
758 }
759 return nil
760 }
761
762 func init() {
763 proto.RegisterType((*SpanContext)(nil), "lightstep.collector.SpanContext")
764 proto.RegisterType((*KeyValue)(nil), "lightstep.collector.KeyValue")
765 proto.RegisterType((*Log)(nil), "lightstep.collector.Log")
766 proto.RegisterType((*Reference)(nil), "lightstep.collector.Reference")
767 proto.RegisterType((*Span)(nil), "lightstep.collector.Span")
768 proto.RegisterType((*Reporter)(nil), "lightstep.collector.Reporter")
769 proto.RegisterType((*MetricsSample)(nil), "lightstep.collector.MetricsSample")
770 proto.RegisterType((*InternalMetrics)(nil), "lightstep.collector.InternalMetrics")
771 proto.RegisterType((*Auth)(nil), "lightstep.collector.Auth")
772 proto.RegisterType((*ReportRequest)(nil), "lightstep.collector.ReportRequest")
773 proto.RegisterType((*Command)(nil), "lightstep.collector.Command")
774 proto.RegisterType((*ReportResponse)(nil), "lightstep.collector.ReportResponse")
775 proto.RegisterEnum("lightstep.collector.Reference_Relationship", Reference_Relationship_name, Reference_Relationship_value)
776 }
777
778 // Reference imports to suppress errors if they are not otherwise used.
779 var _ context.Context
780 var _ grpc.ClientConn
781
782 // This is a compile-time assertion to ensure that this generated file
783 // is compatible with the grpc package it is being compiled against.
784 const _ = grpc.SupportPackageIsVersion4
785
786 // Client API for CollectorService service
787
788 type CollectorServiceClient interface {
789 Report(ctx context.Context, in *ReportRequest, opts ...grpc.CallOption) (*ReportResponse, error)
790 }
791
792 type collectorServiceClient struct {
793 cc *grpc.ClientConn
794 }
795
796 func NewCollectorServiceClient(cc *grpc.ClientConn) CollectorServiceClient {
797 return &collectorServiceClient{cc}
798 }
799
800 func (c *collectorServiceClient) Report(ctx context.Context, in *ReportRequest, opts ...grpc.CallOption) (*ReportResponse, error) {
801 out := new(ReportResponse)
802 err := grpc.Invoke(ctx, "/lightstep.collector.CollectorService/Report", in, out, c.cc, opts...)
803 if err != nil {
804 return nil, err
805 }
806 return out, nil
807 }
808
809 // Server API for CollectorService service
810
811 type CollectorServiceServer interface {
812 Report(context.Context, *ReportRequest) (*ReportResponse, error)
813 }
814
815 func RegisterCollectorServiceServer(s *grpc.Server, srv CollectorServiceServer) {
816 s.RegisterService(&_CollectorService_serviceDesc, srv)
817 }
818
819 func _CollectorService_Report_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
820 in := new(ReportRequest)
821 if err := dec(in); err != nil {
822 return nil, err
823 }
824 if interceptor == nil {
825 return srv.(CollectorServiceServer).Report(ctx, in)
826 }
827 info := &grpc.UnaryServerInfo{
828 Server: srv,
829 FullMethod: "/lightstep.collector.CollectorService/Report",
830 }
831 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
832 return srv.(CollectorServiceServer).Report(ctx, req.(*ReportRequest))
833 }
834 return interceptor(ctx, in, info, handler)
835 }
836
837 var _CollectorService_serviceDesc = grpc.ServiceDesc{
838 ServiceName: "lightstep.collector.CollectorService",
839 HandlerType: (*CollectorServiceServer)(nil),
840 Methods: []grpc.MethodDesc{
841 {
842 MethodName: "Report",
843 Handler: _CollectorService_Report_Handler,
844 },
845 },
846 Streams: []grpc.StreamDesc{},
847 Metadata: "github.com/lightstep/lightstep-tracer-common/tmpgen/collector.proto",
848 }
849
850 func (m *SpanContext) Marshal() (dAtA []byte, err error) {
851 size := m.Size()
852 dAtA = make([]byte, size)
853 n, err := m.MarshalTo(dAtA)
854 if err != nil {
855 return nil, err
856 }
857 return dAtA[:n], nil
858 }
859
860 func (m *SpanContext) MarshalTo(dAtA []byte) (int, error) {
861 var i int
862 _ = i
863 var l int
864 _ = l
865 if m.TraceId != 0 {
866 dAtA[i] = 0x8
867 i++
868 i = encodeVarintCollector(dAtA, i, uint64(m.TraceId))
869 }
870 if m.SpanId != 0 {
871 dAtA[i] = 0x10
872 i++
873 i = encodeVarintCollector(dAtA, i, uint64(m.SpanId))
874 }
875 if len(m.Baggage) > 0 {
876 for k, _ := range m.Baggage {
877 dAtA[i] = 0x1a
878 i++
879 v := m.Baggage[k]
880 mapSize := 1 + len(k) + sovCollector(uint64(len(k))) + 1 + len(v) + sovCollector(uint64(len(v)))
881 i = encodeVarintCollector(dAtA, i, uint64(mapSize))
882 dAtA[i] = 0xa
883 i++
884 i = encodeVarintCollector(dAtA, i, uint64(len(k)))
885 i += copy(dAtA[i:], k)
886 dAtA[i] = 0x12
887 i++
888 i = encodeVarintCollector(dAtA, i, uint64(len(v)))
889 i += copy(dAtA[i:], v)
890 }
891 }
892 return i, nil
893 }
894
895 func (m *KeyValue) Marshal() (dAtA []byte, err error) {
896 size := m.Size()
897 dAtA = make([]byte, size)
898 n, err := m.MarshalTo(dAtA)
899 if err != nil {
900 return nil, err
901 }
902 return dAtA[:n], nil
903 }
904
905 func (m *KeyValue) MarshalTo(dAtA []byte) (int, error) {
906 var i int
907 _ = i
908 var l int
909 _ = l
910 if len(m.Key) > 0 {
911 dAtA[i] = 0xa
912 i++
913 i = encodeVarintCollector(dAtA, i, uint64(len(m.Key)))
914 i += copy(dAtA[i:], m.Key)
915 }
916 if m.Value != nil {
917 nn1, err := m.Value.MarshalTo(dAtA[i:])
918 if err != nil {
919 return 0, err
920 }
921 i += nn1
922 }
923 return i, nil
924 }
925
926 func (m *KeyValue_StringValue) MarshalTo(dAtA []byte) (int, error) {
927 i := 0
928 dAtA[i] = 0x12
929 i++
930 i = encodeVarintCollector(dAtA, i, uint64(len(m.StringValue)))
931 i += copy(dAtA[i:], m.StringValue)
932 return i, nil
933 }
934 func (m *KeyValue_IntValue) MarshalTo(dAtA []byte) (int, error) {
935 i := 0
936 dAtA[i] = 0x18
937 i++
938 i = encodeVarintCollector(dAtA, i, uint64(m.IntValue))
939 return i, nil
940 }
941 func (m *KeyValue_DoubleValue) MarshalTo(dAtA []byte) (int, error) {
942 i := 0
943 dAtA[i] = 0x21
944 i++
945 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.DoubleValue))))
946 i += 8
947 return i, nil
948 }
949 func (m *KeyValue_BoolValue) MarshalTo(dAtA []byte) (int, error) {
950 i := 0
951 dAtA[i] = 0x28
952 i++
953 if m.BoolValue {
954 dAtA[i] = 1
955 } else {
956 dAtA[i] = 0
957 }
958 i++
959 return i, nil
960 }
961 func (m *KeyValue_JsonValue) MarshalTo(dAtA []byte) (int, error) {
962 i := 0
963 dAtA[i] = 0x32
964 i++
965 i = encodeVarintCollector(dAtA, i, uint64(len(m.JsonValue)))
966 i += copy(dAtA[i:], m.JsonValue)
967 return i, nil
968 }
969 func (m *Log) Marshal() (dAtA []byte, err error) {
970 size := m.Size()
971 dAtA = make([]byte, size)
972 n, err := m.MarshalTo(dAtA)
973 if err != nil {
974 return nil, err
975 }
976 return dAtA[:n], nil
977 }
978
979 func (m *Log) MarshalTo(dAtA []byte) (int, error) {
980 var i int
981 _ = i
982 var l int
983 _ = l
984 if m.Timestamp != nil {
985 dAtA[i] = 0xa
986 i++
987 i = encodeVarintCollector(dAtA, i, uint64(m.Timestamp.Size()))
988 n2, err := m.Timestamp.MarshalTo(dAtA[i:])
989 if err != nil {
990 return 0, err
991 }
992 i += n2
993 }
994 if len(m.Fields) > 0 {
995 for _, msg := range m.Fields {
996 dAtA[i] = 0x12
997 i++
998 i = encodeVarintCollector(dAtA, i, uint64(msg.Size()))
999 n, err := msg.MarshalTo(dAtA[i:])
1000 if err != nil {
1001 return 0, err
1002 }
1003 i += n
1004 }
1005 }
1006 return i, nil
1007 }
1008
1009 func (m *Reference) Marshal() (dAtA []byte, err error) {
1010 size := m.Size()
1011 dAtA = make([]byte, size)
1012 n, err := m.MarshalTo(dAtA)
1013 if err != nil {
1014 return nil, err
1015 }
1016 return dAtA[:n], nil
1017 }
1018
1019 func (m *Reference) MarshalTo(dAtA []byte) (int, error) {
1020 var i int
1021 _ = i
1022 var l int
1023 _ = l
1024 if m.Relationship != 0 {
1025 dAtA[i] = 0x8
1026 i++
1027 i = encodeVarintCollector(dAtA, i, uint64(m.Relationship))
1028 }
1029 if m.SpanContext != nil {
1030 dAtA[i] = 0x12
1031 i++
1032 i = encodeVarintCollector(dAtA, i, uint64(m.SpanContext.Size()))
1033 n3, err := m.SpanContext.MarshalTo(dAtA[i:])
1034 if err != nil {
1035 return 0, err
1036 }
1037 i += n3
1038 }
1039 return i, nil
1040 }
1041
1042 func (m *Span) Marshal() (dAtA []byte, err error) {
1043 size := m.Size()
1044 dAtA = make([]byte, size)
1045 n, err := m.MarshalTo(dAtA)
1046 if err != nil {
1047 return nil, err
1048 }
1049 return dAtA[:n], nil
1050 }
1051
1052 func (m *Span) MarshalTo(dAtA []byte) (int, error) {
1053 var i int
1054 _ = i
1055 var l int
1056 _ = l
1057 if m.SpanContext != nil {
1058 dAtA[i] = 0xa
1059 i++
1060 i = encodeVarintCollector(dAtA, i, uint64(m.SpanContext.Size()))
1061 n4, err := m.SpanContext.MarshalTo(dAtA[i:])
1062 if err != nil {
1063 return 0, err
1064 }
1065 i += n4
1066 }
1067 if len(m.OperationName) > 0 {
1068 dAtA[i] = 0x12
1069 i++
1070 i = encodeVarintCollector(dAtA, i, uint64(len(m.OperationName)))
1071 i += copy(dAtA[i:], m.OperationName)
1072 }
1073 if len(m.References) > 0 {
1074 for _, msg := range m.References {
1075 dAtA[i] = 0x1a
1076 i++
1077 i = encodeVarintCollector(dAtA, i, uint64(msg.Size()))
1078 n, err := msg.MarshalTo(dAtA[i:])
1079 if err != nil {
1080 return 0, err
1081 }
1082 i += n
1083 }
1084 }
1085 if m.StartTimestamp != nil {
1086 dAtA[i] = 0x22
1087 i++
1088 i = encodeVarintCollector(dAtA, i, uint64(m.StartTimestamp.Size()))
1089 n5, err := m.StartTimestamp.MarshalTo(dAtA[i:])
1090 if err != nil {
1091 return 0, err
1092 }
1093 i += n5
1094 }
1095 if m.DurationMicros != 0 {
1096 dAtA[i] = 0x28
1097 i++
1098 i = encodeVarintCollector(dAtA, i, uint64(m.DurationMicros))
1099 }
1100 if len(m.Tags) > 0 {
1101 for _, msg := range m.Tags {
1102 dAtA[i] = 0x32
1103 i++
1104 i = encodeVarintCollector(dAtA, i, uint64(msg.Size()))
1105 n, err := msg.MarshalTo(dAtA[i:])
1106 if err != nil {
1107 return 0, err
1108 }
1109 i += n
1110 }
1111 }
1112 if len(m.Logs) > 0 {
1113 for _, msg := range m.Logs {
1114 dAtA[i] = 0x3a
1115 i++
1116 i = encodeVarintCollector(dAtA, i, uint64(msg.Size()))
1117 n, err := msg.MarshalTo(dAtA[i:])
1118 if err != nil {
1119 return 0, err
1120 }
1121 i += n
1122 }
1123 }
1124 return i, nil
1125 }
1126
1127 func (m *Reporter) Marshal() (dAtA []byte, err error) {
1128 size := m.Size()
1129 dAtA = make([]byte, size)
1130 n, err := m.MarshalTo(dAtA)
1131 if err != nil {
1132 return nil, err
1133 }
1134 return dAtA[:n], nil
1135 }
1136
1137 func (m *Reporter) MarshalTo(dAtA []byte) (int, error) {
1138 var i int
1139 _ = i
1140 var l int
1141 _ = l
1142 if m.ReporterId != 0 {
1143 dAtA[i] = 0x8
1144 i++
1145 i = encodeVarintCollector(dAtA, i, uint64(m.ReporterId))
1146 }
1147 if len(m.Tags) > 0 {
1148 for _, msg := range m.Tags {
1149 dAtA[i] = 0x22
1150 i++
1151 i = encodeVarintCollector(dAtA, i, uint64(msg.Size()))
1152 n, err := msg.MarshalTo(dAtA[i:])
1153 if err != nil {
1154 return 0, err
1155 }
1156 i += n
1157 }
1158 }
1159 return i, nil
1160 }
1161
1162 func (m *MetricsSample) Marshal() (dAtA []byte, err error) {
1163 size := m.Size()
1164 dAtA = make([]byte, size)
1165 n, err := m.MarshalTo(dAtA)
1166 if err != nil {
1167 return nil, err
1168 }
1169 return dAtA[:n], nil
1170 }
1171
1172 func (m *MetricsSample) MarshalTo(dAtA []byte) (int, error) {
1173 var i int
1174 _ = i
1175 var l int
1176 _ = l
1177 if len(m.Name) > 0 {
1178 dAtA[i] = 0xa
1179 i++
1180 i = encodeVarintCollector(dAtA, i, uint64(len(m.Name)))
1181 i += copy(dAtA[i:], m.Name)
1182 }
1183 if m.Value != nil {
1184 nn6, err := m.Value.MarshalTo(dAtA[i:])
1185 if err != nil {
1186 return 0, err
1187 }
1188 i += nn6
1189 }
1190 return i, nil
1191 }
1192
1193 func (m *MetricsSample_IntValue) MarshalTo(dAtA []byte) (int, error) {
1194 i := 0
1195 dAtA[i] = 0x10
1196 i++
1197 i = encodeVarintCollector(dAtA, i, uint64(m.IntValue))
1198 return i, nil
1199 }
1200 func (m *MetricsSample_DoubleValue) MarshalTo(dAtA []byte) (int, error) {
1201 i := 0
1202 dAtA[i] = 0x19
1203 i++
1204 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.DoubleValue))))
1205 i += 8
1206 return i, nil
1207 }
1208 func (m *InternalMetrics) Marshal() (dAtA []byte, err error) {
1209 size := m.Size()
1210 dAtA = make([]byte, size)
1211 n, err := m.MarshalTo(dAtA)
1212 if err != nil {
1213 return nil, err
1214 }
1215 return dAtA[:n], nil
1216 }
1217
1218 func (m *InternalMetrics) MarshalTo(dAtA []byte) (int, error) {
1219 var i int
1220 _ = i
1221 var l int
1222 _ = l
1223 if m.StartTimestamp != nil {
1224 dAtA[i] = 0xa
1225 i++
1226 i = encodeVarintCollector(dAtA, i, uint64(m.StartTimestamp.Size()))
1227 n7, err := m.StartTimestamp.MarshalTo(dAtA[i:])
1228 if err != nil {
1229 return 0, err
1230 }
1231 i += n7
1232 }
1233 if m.DurationMicros != 0 {
1234 dAtA[i] = 0x10
1235 i++
1236 i = encodeVarintCollector(dAtA, i, uint64(m.DurationMicros))
1237 }
1238 if len(m.Logs) > 0 {
1239 for _, msg := range m.Logs {
1240 dAtA[i] = 0x1a
1241 i++
1242 i = encodeVarintCollector(dAtA, i, uint64(msg.Size()))
1243 n, err := msg.MarshalTo(dAtA[i:])
1244 if err != nil {
1245 return 0, err
1246 }
1247 i += n
1248 }
1249 }
1250 if len(m.Counts) > 0 {
1251 for _, msg := range m.Counts {
1252 dAtA[i] = 0x22
1253 i++
1254 i = encodeVarintCollector(dAtA, i, uint64(msg.Size()))
1255 n, err := msg.MarshalTo(dAtA[i:])
1256 if err != nil {
1257 return 0, err
1258 }
1259 i += n
1260 }
1261 }
1262 if len(m.Gauges) > 0 {
1263 for _, msg := range m.Gauges {
1264 dAtA[i] = 0x2a
1265 i++
1266 i = encodeVarintCollector(dAtA, i, uint64(msg.Size()))
1267 n, err := msg.MarshalTo(dAtA[i:])
1268 if err != nil {
1269 return 0, err
1270 }
1271 i += n
1272 }
1273 }
1274 return i, nil
1275 }
1276
1277 func (m *Auth) Marshal() (dAtA []byte, err error) {
1278 size := m.Size()
1279 dAtA = make([]byte, size)
1280 n, err := m.MarshalTo(dAtA)
1281 if err != nil {
1282 return nil, err
1283 }
1284 return dAtA[:n], nil
1285 }
1286
1287 func (m *Auth) MarshalTo(dAtA []byte) (int, error) {
1288 var i int
1289 _ = i
1290 var l int
1291 _ = l
1292 if len(m.AccessToken) > 0 {
1293 dAtA[i] = 0xa
1294 i++
1295 i = encodeVarintCollector(dAtA, i, uint64(len(m.AccessToken)))
1296 i += copy(dAtA[i:], m.AccessToken)
1297 }
1298 return i, nil
1299 }
1300
1301 func (m *ReportRequest) Marshal() (dAtA []byte, err error) {
1302 size := m.Size()
1303 dAtA = make([]byte, size)
1304 n, err := m.MarshalTo(dAtA)
1305 if err != nil {
1306 return nil, err
1307 }
1308 return dAtA[:n], nil
1309 }
1310
1311 func (m *ReportRequest) MarshalTo(dAtA []byte) (int, error) {
1312 var i int
1313 _ = i
1314 var l int
1315 _ = l
1316 if m.Reporter != nil {
1317 dAtA[i] = 0xa
1318 i++
1319 i = encodeVarintCollector(dAtA, i, uint64(m.Reporter.Size()))
1320 n8, err := m.Reporter.MarshalTo(dAtA[i:])
1321 if err != nil {
1322 return 0, err
1323 }
1324 i += n8
1325 }
1326 if m.Auth != nil {
1327 dAtA[i] = 0x12
1328 i++
1329 i = encodeVarintCollector(dAtA, i, uint64(m.Auth.Size()))
1330 n9, err := m.Auth.MarshalTo(dAtA[i:])
1331 if err != nil {
1332 return 0, err
1333 }
1334 i += n9
1335 }
1336 if len(m.Spans) > 0 {
1337 for _, msg := range m.Spans {
1338 dAtA[i] = 0x1a
1339 i++
1340 i = encodeVarintCollector(dAtA, i, uint64(msg.Size()))
1341 n, err := msg.MarshalTo(dAtA[i:])
1342 if err != nil {
1343 return 0, err
1344 }
1345 i += n
1346 }
1347 }
1348 if m.TimestampOffsetMicros != 0 {
1349 dAtA[i] = 0x28
1350 i++
1351 i = encodeVarintCollector(dAtA, i, uint64(m.TimestampOffsetMicros))
1352 }
1353 if m.InternalMetrics != nil {
1354 dAtA[i] = 0x32
1355 i++
1356 i = encodeVarintCollector(dAtA, i, uint64(m.InternalMetrics.Size()))
1357 n10, err := m.InternalMetrics.MarshalTo(dAtA[i:])
1358 if err != nil {
1359 return 0, err
1360 }
1361 i += n10
1362 }
1363 return i, nil
1364 }
1365
1366 func (m *Command) Marshal() (dAtA []byte, err error) {
1367 size := m.Size()
1368 dAtA = make([]byte, size)
1369 n, err := m.MarshalTo(dAtA)
1370 if err != nil {
1371 return nil, err
1372 }
1373 return dAtA[:n], nil
1374 }
1375
1376 func (m *Command) MarshalTo(dAtA []byte) (int, error) {
1377 var i int
1378 _ = i
1379 var l int
1380 _ = l
1381 if m.Disable {
1382 dAtA[i] = 0x8
1383 i++
1384 if m.Disable {
1385 dAtA[i] = 1
1386 } else {
1387 dAtA[i] = 0
1388 }
1389 i++
1390 }
1391 if m.DevMode {
1392 dAtA[i] = 0x10
1393 i++
1394 if m.DevMode {
1395 dAtA[i] = 1
1396 } else {
1397 dAtA[i] = 0
1398 }
1399 i++
1400 }
1401 return i, nil
1402 }
1403
1404 func (m *ReportResponse) Marshal() (dAtA []byte, err error) {
1405 size := m.Size()
1406 dAtA = make([]byte, size)
1407 n, err := m.MarshalTo(dAtA)
1408 if err != nil {
1409 return nil, err
1410 }
1411 return dAtA[:n], nil
1412 }
1413
1414 func (m *ReportResponse) MarshalTo(dAtA []byte) (int, error) {
1415 var i int
1416 _ = i
1417 var l int
1418 _ = l
1419 if len(m.Commands) > 0 {
1420 for _, msg := range m.Commands {
1421 dAtA[i] = 0xa
1422 i++
1423 i = encodeVarintCollector(dAtA, i, uint64(msg.Size()))
1424 n, err := msg.MarshalTo(dAtA[i:])
1425 if err != nil {
1426 return 0, err
1427 }
1428 i += n
1429 }
1430 }
1431 if m.ReceiveTimestamp != nil {
1432 dAtA[i] = 0x12
1433 i++
1434 i = encodeVarintCollector(dAtA, i, uint64(m.ReceiveTimestamp.Size()))
1435 n11, err := m.ReceiveTimestamp.MarshalTo(dAtA[i:])
1436 if err != nil {
1437 return 0, err
1438 }
1439 i += n11
1440 }
1441 if m.TransmitTimestamp != nil {
1442 dAtA[i] = 0x1a
1443 i++
1444 i = encodeVarintCollector(dAtA, i, uint64(m.TransmitTimestamp.Size()))
1445 n12, err := m.TransmitTimestamp.MarshalTo(dAtA[i:])
1446 if err != nil {
1447 return 0, err
1448 }
1449 i += n12
1450 }
1451 if len(m.Errors) > 0 {
1452 for _, s := range m.Errors {
1453 dAtA[i] = 0x22
1454 i++
1455 l = len(s)
1456 for l >= 1<<7 {
1457 dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
1458 l >>= 7
1459 i++
1460 }
1461 dAtA[i] = uint8(l)
1462 i++
1463 i += copy(dAtA[i:], s)
1464 }
1465 }
1466 if len(m.Warnings) > 0 {
1467 for _, s := range m.Warnings {
1468 dAtA[i] = 0x2a
1469 i++
1470 l = len(s)
1471 for l >= 1<<7 {
1472 dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
1473 l >>= 7
1474 i++
1475 }
1476 dAtA[i] = uint8(l)
1477 i++
1478 i += copy(dAtA[i:], s)
1479 }
1480 }
1481 if len(m.Infos) > 0 {
1482 for _, s := range m.Infos {
1483 dAtA[i] = 0x32
1484 i++
1485 l = len(s)
1486 for l >= 1<<7 {
1487 dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
1488 l >>= 7
1489 i++
1490 }
1491 dAtA[i] = uint8(l)
1492 i++
1493 i += copy(dAtA[i:], s)
1494 }
1495 }
1496 return i, nil
1497 }
1498
1499 func encodeVarintCollector(dAtA []byte, offset int, v uint64) int {
1500 for v >= 1<<7 {
1501 dAtA[offset] = uint8(v&0x7f | 0x80)
1502 v >>= 7
1503 offset++
1504 }
1505 dAtA[offset] = uint8(v)
1506 return offset + 1
1507 }
1508 func (m *SpanContext) Size() (n int) {
1509 var l int
1510 _ = l
1511 if m.TraceId != 0 {
1512 n += 1 + sovCollector(uint64(m.TraceId))
1513 }
1514 if m.SpanId != 0 {
1515 n += 1 + sovCollector(uint64(m.SpanId))
1516 }
1517 if len(m.Baggage) > 0 {
1518 for k, v := range m.Baggage {
1519 _ = k
1520 _ = v
1521 mapEntrySize := 1 + len(k) + sovCollector(uint64(len(k))) + 1 + len(v) + sovCollector(uint64(len(v)))
1522 n += mapEntrySize + 1 + sovCollector(uint64(mapEntrySize))
1523 }
1524 }
1525 return n
1526 }
1527
1528 func (m *KeyValue) Size() (n int) {
1529 var l int
1530 _ = l
1531 l = len(m.Key)
1532 if l > 0 {
1533 n += 1 + l + sovCollector(uint64(l))
1534 }
1535 if m.Value != nil {
1536 n += m.Value.Size()
1537 }
1538 return n
1539 }
1540
1541 func (m *KeyValue_StringValue) Size() (n int) {
1542 var l int
1543 _ = l
1544 l = len(m.StringValue)
1545 n += 1 + l + sovCollector(uint64(l))
1546 return n
1547 }
1548 func (m *KeyValue_IntValue) Size() (n int) {
1549 var l int
1550 _ = l
1551 n += 1 + sovCollector(uint64(m.IntValue))
1552 return n
1553 }
1554 func (m *KeyValue_DoubleValue) Size() (n int) {
1555 var l int
1556 _ = l
1557 n += 9
1558 return n
1559 }
1560 func (m *KeyValue_BoolValue) Size() (n int) {
1561 var l int
1562 _ = l
1563 n += 2
1564 return n
1565 }
1566 func (m *KeyValue_JsonValue) Size() (n int) {
1567 var l int
1568 _ = l
1569 l = len(m.JsonValue)
1570 n += 1 + l + sovCollector(uint64(l))
1571 return n
1572 }
1573 func (m *Log) Size() (n int) {
1574 var l int
1575 _ = l
1576 if m.Timestamp != nil {
1577 l = m.Timestamp.Size()
1578 n += 1 + l + sovCollector(uint64(l))
1579 }
1580 if len(m.Fields) > 0 {
1581 for _, e := range m.Fields {
1582 l = e.Size()
1583 n += 1 + l + sovCollector(uint64(l))
1584 }
1585 }
1586 return n
1587 }
1588
1589 func (m *Reference) Size() (n int) {
1590 var l int
1591 _ = l
1592 if m.Relationship != 0 {
1593 n += 1 + sovCollector(uint64(m.Relationship))
1594 }
1595 if m.SpanContext != nil {
1596 l = m.SpanContext.Size()
1597 n += 1 + l + sovCollector(uint64(l))
1598 }
1599 return n
1600 }
1601
1602 func (m *Span) Size() (n int) {
1603 var l int
1604 _ = l
1605 if m.SpanContext != nil {
1606 l = m.SpanContext.Size()
1607 n += 1 + l + sovCollector(uint64(l))
1608 }
1609 l = len(m.OperationName)
1610 if l > 0 {
1611 n += 1 + l + sovCollector(uint64(l))
1612 }
1613 if len(m.References) > 0 {
1614 for _, e := range m.References {
1615 l = e.Size()
1616 n += 1 + l + sovCollector(uint64(l))
1617 }
1618 }
1619 if m.StartTimestamp != nil {
1620 l = m.StartTimestamp.Size()
1621 n += 1 + l + sovCollector(uint64(l))
1622 }
1623 if m.DurationMicros != 0 {
1624 n += 1 + sovCollector(uint64(m.DurationMicros))
1625 }
1626 if len(m.Tags) > 0 {
1627 for _, e := range m.Tags {
1628 l = e.Size()
1629 n += 1 + l + sovCollector(uint64(l))
1630 }
1631 }
1632 if len(m.Logs) > 0 {
1633 for _, e := range m.Logs {
1634 l = e.Size()
1635 n += 1 + l + sovCollector(uint64(l))
1636 }
1637 }
1638 return n
1639 }
1640
1641 func (m *Reporter) Size() (n int) {
1642 var l int
1643 _ = l
1644 if m.ReporterId != 0 {
1645 n += 1 + sovCollector(uint64(m.ReporterId))
1646 }
1647 if len(m.Tags) > 0 {
1648 for _, e := range m.Tags {
1649 l = e.Size()
1650 n += 1 + l + sovCollector(uint64(l))
1651 }
1652 }
1653 return n
1654 }
1655
1656 func (m *MetricsSample) Size() (n int) {
1657 var l int
1658 _ = l
1659 l = len(m.Name)
1660 if l > 0 {
1661 n += 1 + l + sovCollector(uint64(l))
1662 }
1663 if m.Value != nil {
1664 n += m.Value.Size()
1665 }
1666 return n
1667 }
1668
1669 func (m *MetricsSample_IntValue) Size() (n int) {
1670 var l int
1671 _ = l
1672 n += 1 + sovCollector(uint64(m.IntValue))
1673 return n
1674 }
1675 func (m *MetricsSample_DoubleValue) Size() (n int) {
1676 var l int
1677 _ = l
1678 n += 9
1679 return n
1680 }
1681 func (m *InternalMetrics) Size() (n int) {
1682 var l int
1683 _ = l
1684 if m.StartTimestamp != nil {
1685 l = m.StartTimestamp.Size()
1686 n += 1 + l + sovCollector(uint64(l))
1687 }
1688 if m.DurationMicros != 0 {
1689 n += 1 + sovCollector(uint64(m.DurationMicros))
1690 }
1691 if len(m.Logs) > 0 {
1692 for _, e := range m.Logs {
1693 l = e.Size()
1694 n += 1 + l + sovCollector(uint64(l))
1695 }
1696 }
1697 if len(m.Counts) > 0 {
1698 for _, e := range m.Counts {
1699 l = e.Size()
1700 n += 1 + l + sovCollector(uint64(l))
1701 }
1702 }
1703 if len(m.Gauges) > 0 {
1704 for _, e := range m.Gauges {
1705 l = e.Size()
1706 n += 1 + l + sovCollector(uint64(l))
1707 }
1708 }
1709 return n
1710 }
1711
1712 func (m *Auth) Size() (n int) {
1713 var l int
1714 _ = l
1715 l = len(m.AccessToken)
1716 if l > 0 {
1717 n += 1 + l + sovCollector(uint64(l))
1718 }
1719 return n
1720 }
1721
1722 func (m *ReportRequest) Size() (n int) {
1723 var l int
1724 _ = l
1725 if m.Reporter != nil {
1726 l = m.Reporter.Size()
1727 n += 1 + l + sovCollector(uint64(l))
1728 }
1729 if m.Auth != nil {
1730 l = m.Auth.Size()
1731 n += 1 + l + sovCollector(uint64(l))
1732 }
1733 if len(m.Spans) > 0 {
1734 for _, e := range m.Spans {
1735 l = e.Size()
1736 n += 1 + l + sovCollector(uint64(l))
1737 }
1738 }
1739 if m.TimestampOffsetMicros != 0 {
1740 n += 1 + sovCollector(uint64(m.TimestampOffsetMicros))
1741 }
1742 if m.InternalMetrics != nil {
1743 l = m.InternalMetrics.Size()
1744 n += 1 + l + sovCollector(uint64(l))
1745 }
1746 return n
1747 }
1748
1749 func (m *Command) Size() (n int) {
1750 var l int
1751 _ = l
1752 if m.Disable {
1753 n += 2
1754 }
1755 if m.DevMode {
1756 n += 2
1757 }
1758 return n
1759 }
1760
1761 func (m *ReportResponse) Size() (n int) {
1762 var l int
1763 _ = l
1764 if len(m.Commands) > 0 {
1765 for _, e := range m.Commands {
1766 l = e.Size()
1767 n += 1 + l + sovCollector(uint64(l))
1768 }
1769 }
1770 if m.ReceiveTimestamp != nil {
1771 l = m.ReceiveTimestamp.Size()
1772 n += 1 + l + sovCollector(uint64(l))
1773 }
1774 if m.TransmitTimestamp != nil {
1775 l = m.TransmitTimestamp.Size()
1776 n += 1 + l + sovCollector(uint64(l))
1777 }
1778 if len(m.Errors) > 0 {
1779 for _, s := range m.Errors {
1780 l = len(s)
1781 n += 1 + l + sovCollector(uint64(l))
1782 }
1783 }
1784 if len(m.Warnings) > 0 {
1785 for _, s := range m.Warnings {
1786 l = len(s)
1787 n += 1 + l + sovCollector(uint64(l))
1788 }
1789 }
1790 if len(m.Infos) > 0 {
1791 for _, s := range m.Infos {
1792 l = len(s)
1793 n += 1 + l + sovCollector(uint64(l))
1794 }
1795 }
1796 return n
1797 }
1798
1799 func sovCollector(x uint64) (n int) {
1800 for {
1801 n++
1802 x >>= 7
1803 if x == 0 {
1804 break
1805 }
1806 }
1807 return n
1808 }
1809 func sozCollector(x uint64) (n int) {
1810 return sovCollector(uint64((x << 1) ^ uint64((int64(x) >> 63))))
1811 }
1812 func (m *SpanContext) Unmarshal(dAtA []byte) error {
1813 l := len(dAtA)
1814 iNdEx := 0
1815 for iNdEx < l {
1816 preIndex := iNdEx
1817 var wire uint64
1818 for shift := uint(0); ; shift += 7 {
1819 if shift >= 64 {
1820 return ErrIntOverflowCollector
1821 }
1822 if iNdEx >= l {
1823 return io.ErrUnexpectedEOF
1824 }
1825 b := dAtA[iNdEx]
1826 iNdEx++
1827 wire |= (uint64(b) & 0x7F) << shift
1828 if b < 0x80 {
1829 break
1830 }
1831 }
1832 fieldNum := int32(wire >> 3)
1833 wireType := int(wire & 0x7)
1834 if wireType == 4 {
1835 return fmt.Errorf("proto: SpanContext: wiretype end group for non-group")
1836 }
1837 if fieldNum <= 0 {
1838 return fmt.Errorf("proto: SpanContext: illegal tag %d (wire type %d)", fieldNum, wire)
1839 }
1840 switch fieldNum {
1841 case 1:
1842 if wireType != 0 {
1843 return fmt.Errorf("proto: wrong wireType = %d for field TraceId", wireType)
1844 }
1845 m.TraceId = 0
1846 for shift := uint(0); ; shift += 7 {
1847 if shift >= 64 {
1848 return ErrIntOverflowCollector
1849 }
1850 if iNdEx >= l {
1851 return io.ErrUnexpectedEOF
1852 }
1853 b := dAtA[iNdEx]
1854 iNdEx++
1855 m.TraceId |= (uint64(b) & 0x7F) << shift
1856 if b < 0x80 {
1857 break
1858 }
1859 }
1860 case 2:
1861 if wireType != 0 {
1862 return fmt.Errorf("proto: wrong wireType = %d for field SpanId", wireType)
1863 }
1864 m.SpanId = 0
1865 for shift := uint(0); ; shift += 7 {
1866 if shift >= 64 {
1867 return ErrIntOverflowCollector
1868 }
1869 if iNdEx >= l {
1870 return io.ErrUnexpectedEOF
1871 }
1872 b := dAtA[iNdEx]
1873 iNdEx++
1874 m.SpanId |= (uint64(b) & 0x7F) << shift
1875 if b < 0x80 {
1876 break
1877 }
1878 }
1879 case 3:
1880 if wireType != 2 {
1881 return fmt.Errorf("proto: wrong wireType = %d for field Baggage", wireType)
1882 }
1883 var msglen int
1884 for shift := uint(0); ; shift += 7 {
1885 if shift >= 64 {
1886 return ErrIntOverflowCollector
1887 }
1888 if iNdEx >= l {
1889 return io.ErrUnexpectedEOF
1890 }
1891 b := dAtA[iNdEx]
1892 iNdEx++
1893 msglen |= (int(b) & 0x7F) << shift
1894 if b < 0x80 {
1895 break
1896 }
1897 }
1898 if msglen < 0 {
1899 return ErrInvalidLengthCollector
1900 }
1901 postIndex := iNdEx + msglen
1902 if postIndex > l {
1903 return io.ErrUnexpectedEOF
1904 }
1905 if m.Baggage == nil {
1906 m.Baggage = make(map[string]string)
1907 }
1908 var mapkey string
1909 var mapvalue string
1910 for iNdEx < postIndex {
1911 entryPreIndex := iNdEx
1912 var wire uint64
1913 for shift := uint(0); ; shift += 7 {
1914 if shift >= 64 {
1915 return ErrIntOverflowCollector
1916 }
1917 if iNdEx >= l {
1918 return io.ErrUnexpectedEOF
1919 }
1920 b := dAtA[iNdEx]
1921 iNdEx++
1922 wire |= (uint64(b) & 0x7F) << shift
1923 if b < 0x80 {
1924 break
1925 }
1926 }
1927 fieldNum := int32(wire >> 3)
1928 if fieldNum == 1 {
1929 var stringLenmapkey uint64
1930 for shift := uint(0); ; shift += 7 {
1931 if shift >= 64 {
1932 return ErrIntOverflowCollector
1933 }
1934 if iNdEx >= l {
1935 return io.ErrUnexpectedEOF
1936 }
1937 b := dAtA[iNdEx]
1938 iNdEx++
1939 stringLenmapkey |= (uint64(b) & 0x7F) << shift
1940 if b < 0x80 {
1941 break
1942 }
1943 }
1944 intStringLenmapkey := int(stringLenmapkey)
1945 if intStringLenmapkey < 0 {
1946 return ErrInvalidLengthCollector
1947 }
1948 postStringIndexmapkey := iNdEx + intStringLenmapkey
1949 if postStringIndexmapkey > l {
1950 return io.ErrUnexpectedEOF
1951 }
1952 mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
1953 iNdEx = postStringIndexmapkey
1954 } else if fieldNum == 2 {
1955 var stringLenmapvalue uint64
1956 for shift := uint(0); ; shift += 7 {
1957 if shift >= 64 {
1958 return ErrIntOverflowCollector
1959 }
1960 if iNdEx >= l {
1961 return io.ErrUnexpectedEOF
1962 }
1963 b := dAtA[iNdEx]
1964 iNdEx++
1965 stringLenmapvalue |= (uint64(b) & 0x7F) << shift
1966 if b < 0x80 {
1967 break
1968 }
1969 }
1970 intStringLenmapvalue := int(stringLenmapvalue)
1971 if intStringLenmapvalue < 0 {
1972 return ErrInvalidLengthCollector
1973 }
1974 postStringIndexmapvalue := iNdEx + intStringLenmapvalue
1975 if postStringIndexmapvalue > l {
1976 return io.ErrUnexpectedEOF
1977 }
1978 mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
1979 iNdEx = postStringIndexmapvalue
1980 } else {
1981 iNdEx = entryPreIndex
1982 skippy, err := skipCollector(dAtA[iNdEx:])
1983 if err != nil {
1984 return err
1985 }
1986 if skippy < 0 {
1987 return ErrInvalidLengthCollector
1988 }
1989 if (iNdEx + skippy) > postIndex {
1990 return io.ErrUnexpectedEOF
1991 }
1992 iNdEx += skippy
1993 }
1994 }
1995 m.Baggage[mapkey] = mapvalue
1996 iNdEx = postIndex
1997 default:
1998 iNdEx = preIndex
1999 skippy, err := skipCollector(dAtA[iNdEx:])
2000 if err != nil {
2001 return err
2002 }
2003 if skippy < 0 {
2004 return ErrInvalidLengthCollector
2005 }
2006 if (iNdEx + skippy) > l {
2007 return io.ErrUnexpectedEOF
2008 }
2009 iNdEx += skippy
2010 }
2011 }
2012
2013 if iNdEx > l {
2014 return io.ErrUnexpectedEOF
2015 }
2016 return nil
2017 }
2018 func (m *KeyValue) Unmarshal(dAtA []byte) error {
2019 l := len(dAtA)
2020 iNdEx := 0
2021 for iNdEx < l {
2022 preIndex := iNdEx
2023 var wire uint64
2024 for shift := uint(0); ; shift += 7 {
2025 if shift >= 64 {
2026 return ErrIntOverflowCollector
2027 }
2028 if iNdEx >= l {
2029 return io.ErrUnexpectedEOF
2030 }
2031 b := dAtA[iNdEx]
2032 iNdEx++
2033 wire |= (uint64(b) & 0x7F) << shift
2034 if b < 0x80 {
2035 break
2036 }
2037 }
2038 fieldNum := int32(wire >> 3)
2039 wireType := int(wire & 0x7)
2040 if wireType == 4 {
2041 return fmt.Errorf("proto: KeyValue: wiretype end group for non-group")
2042 }
2043 if fieldNum <= 0 {
2044 return fmt.Errorf("proto: KeyValue: illegal tag %d (wire type %d)", fieldNum, wire)
2045 }
2046 switch fieldNum {
2047 case 1:
2048 if wireType != 2 {
2049 return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
2050 }
2051 var stringLen uint64
2052 for shift := uint(0); ; shift += 7 {
2053 if shift >= 64 {
2054 return ErrIntOverflowCollector
2055 }
2056 if iNdEx >= l {
2057 return io.ErrUnexpectedEOF
2058 }
2059 b := dAtA[iNdEx]
2060 iNdEx++
2061 stringLen |= (uint64(b) & 0x7F) << shift
2062 if b < 0x80 {
2063 break
2064 }
2065 }
2066 intStringLen := int(stringLen)
2067 if intStringLen < 0 {
2068 return ErrInvalidLengthCollector
2069 }
2070 postIndex := iNdEx + intStringLen
2071 if postIndex > l {
2072 return io.ErrUnexpectedEOF
2073 }
2074 m.Key = string(dAtA[iNdEx:postIndex])
2075 iNdEx = postIndex
2076 case 2:
2077 if wireType != 2 {
2078 return fmt.Errorf("proto: wrong wireType = %d for field StringValue", wireType)
2079 }
2080 var stringLen uint64
2081 for shift := uint(0); ; shift += 7 {
2082 if shift >= 64 {
2083 return ErrIntOverflowCollector
2084 }
2085 if iNdEx >= l {
2086 return io.ErrUnexpectedEOF
2087 }
2088 b := dAtA[iNdEx]
2089 iNdEx++
2090 stringLen |= (uint64(b) & 0x7F) << shift
2091 if b < 0x80 {
2092 break
2093 }
2094 }
2095 intStringLen := int(stringLen)
2096 if intStringLen < 0 {
2097 return ErrInvalidLengthCollector
2098 }
2099 postIndex := iNdEx + intStringLen
2100 if postIndex > l {
2101 return io.ErrUnexpectedEOF
2102 }
2103 m.Value = &KeyValue_StringValue{string(dAtA[iNdEx:postIndex])}
2104 iNdEx = postIndex
2105 case 3:
2106 if wireType != 0 {
2107 return fmt.Errorf("proto: wrong wireType = %d for field IntValue", wireType)
2108 }
2109 var v int64
2110 for shift := uint(0); ; shift += 7 {
2111 if shift >= 64 {
2112 return ErrIntOverflowCollector
2113 }
2114 if iNdEx >= l {
2115 return io.ErrUnexpectedEOF
2116 }
2117 b := dAtA[iNdEx]
2118 iNdEx++
2119 v |= (int64(b) & 0x7F) << shift
2120 if b < 0x80 {
2121 break
2122 }
2123 }
2124 m.Value = &KeyValue_IntValue{v}
2125 case 4:
2126 if wireType != 1 {
2127 return fmt.Errorf("proto: wrong wireType = %d for field DoubleValue", wireType)
2128 }
2129 var v uint64
2130 if (iNdEx + 8) > l {
2131 return io.ErrUnexpectedEOF
2132 }
2133 v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
2134 iNdEx += 8
2135 m.Value = &KeyValue_DoubleValue{float64(math.Float64frombits(v))}
2136 case 5:
2137 if wireType != 0 {
2138 return fmt.Errorf("proto: wrong wireType = %d for field BoolValue", wireType)
2139 }
2140 var v int
2141 for shift := uint(0); ; shift += 7 {
2142 if shift >= 64 {
2143 return ErrIntOverflowCollector
2144 }
2145 if iNdEx >= l {
2146 return io.ErrUnexpectedEOF
2147 }
2148 b := dAtA[iNdEx]
2149 iNdEx++
2150 v |= (int(b) & 0x7F) << shift
2151 if b < 0x80 {
2152 break
2153 }
2154 }
2155 b := bool(v != 0)
2156 m.Value = &KeyValue_BoolValue{b}
2157 case 6:
2158 if wireType != 2 {
2159 return fmt.Errorf("proto: wrong wireType = %d for field JsonValue", wireType)
2160 }
2161 var stringLen uint64
2162 for shift := uint(0); ; shift += 7 {
2163 if shift >= 64 {
2164 return ErrIntOverflowCollector
2165 }
2166 if iNdEx >= l {
2167 return io.ErrUnexpectedEOF
2168 }
2169 b := dAtA[iNdEx]
2170 iNdEx++
2171 stringLen |= (uint64(b) & 0x7F) << shift
2172 if b < 0x80 {
2173 break
2174 }
2175 }
2176 intStringLen := int(stringLen)
2177 if intStringLen < 0 {
2178 return ErrInvalidLengthCollector
2179 }
2180 postIndex := iNdEx + intStringLen
2181 if postIndex > l {
2182 return io.ErrUnexpectedEOF
2183 }
2184 m.Value = &KeyValue_JsonValue{string(dAtA[iNdEx:postIndex])}
2185 iNdEx = postIndex
2186 default:
2187 iNdEx = preIndex
2188 skippy, err := skipCollector(dAtA[iNdEx:])
2189 if err != nil {
2190 return err
2191 }
2192 if skippy < 0 {
2193 return ErrInvalidLengthCollector
2194 }
2195 if (iNdEx + skippy) > l {
2196 return io.ErrUnexpectedEOF
2197 }
2198 iNdEx += skippy
2199 }
2200 }
2201
2202 if iNdEx > l {
2203 return io.ErrUnexpectedEOF
2204 }
2205 return nil
2206 }
2207 func (m *Log) Unmarshal(dAtA []byte) error {
2208 l := len(dAtA)
2209 iNdEx := 0
2210 for iNdEx < l {
2211 preIndex := iNdEx
2212 var wire uint64
2213 for shift := uint(0); ; shift += 7 {
2214 if shift >= 64 {
2215 return ErrIntOverflowCollector
2216 }
2217 if iNdEx >= l {
2218 return io.ErrUnexpectedEOF
2219 }
2220 b := dAtA[iNdEx]
2221 iNdEx++
2222 wire |= (uint64(b) & 0x7F) << shift
2223 if b < 0x80 {
2224 break
2225 }
2226 }
2227 fieldNum := int32(wire >> 3)
2228 wireType := int(wire & 0x7)
2229 if wireType == 4 {
2230 return fmt.Errorf("proto: Log: wiretype end group for non-group")
2231 }
2232 if fieldNum <= 0 {
2233 return fmt.Errorf("proto: Log: illegal tag %d (wire type %d)", fieldNum, wire)
2234 }
2235 switch fieldNum {
2236 case 1:
2237 if wireType != 2 {
2238 return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
2239 }
2240 var msglen int
2241 for shift := uint(0); ; shift += 7 {
2242 if shift >= 64 {
2243 return ErrIntOverflowCollector
2244 }
2245 if iNdEx >= l {
2246 return io.ErrUnexpectedEOF
2247 }
2248 b := dAtA[iNdEx]
2249 iNdEx++
2250 msglen |= (int(b) & 0x7F) << shift
2251 if b < 0x80 {
2252 break
2253 }
2254 }
2255 if msglen < 0 {
2256 return ErrInvalidLengthCollector
2257 }
2258 postIndex := iNdEx + msglen
2259 if postIndex > l {
2260 return io.ErrUnexpectedEOF
2261 }
2262 if m.Timestamp == nil {
2263 m.Timestamp = &google_protobuf.Timestamp{}
2264 }
2265 if err := m.Timestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2266 return err
2267 }
2268 iNdEx = postIndex
2269 case 2:
2270 if wireType != 2 {
2271 return fmt.Errorf("proto: wrong wireType = %d for field Fields", wireType)
2272 }
2273 var msglen int
2274 for shift := uint(0); ; shift += 7 {
2275 if shift >= 64 {
2276 return ErrIntOverflowCollector
2277 }
2278 if iNdEx >= l {
2279 return io.ErrUnexpectedEOF
2280 }
2281 b := dAtA[iNdEx]
2282 iNdEx++
2283 msglen |= (int(b) & 0x7F) << shift
2284 if b < 0x80 {
2285 break
2286 }
2287 }
2288 if msglen < 0 {
2289 return ErrInvalidLengthCollector
2290 }
2291 postIndex := iNdEx + msglen
2292 if postIndex > l {
2293 return io.ErrUnexpectedEOF
2294 }
2295 m.Fields = append(m.Fields, &KeyValue{})
2296 if err := m.Fields[len(m.Fields)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2297 return err
2298 }
2299 iNdEx = postIndex
2300 default:
2301 iNdEx = preIndex
2302 skippy, err := skipCollector(dAtA[iNdEx:])
2303 if err != nil {
2304 return err
2305 }
2306 if skippy < 0 {
2307 return ErrInvalidLengthCollector
2308 }
2309 if (iNdEx + skippy) > l {
2310 return io.ErrUnexpectedEOF
2311 }
2312 iNdEx += skippy
2313 }
2314 }
2315
2316 if iNdEx > l {
2317 return io.ErrUnexpectedEOF
2318 }
2319 return nil
2320 }
2321 func (m *Reference) Unmarshal(dAtA []byte) error {
2322 l := len(dAtA)
2323 iNdEx := 0
2324 for iNdEx < l {
2325 preIndex := iNdEx
2326 var wire uint64
2327 for shift := uint(0); ; shift += 7 {
2328 if shift >= 64 {
2329 return ErrIntOverflowCollector
2330 }
2331 if iNdEx >= l {
2332 return io.ErrUnexpectedEOF
2333 }
2334 b := dAtA[iNdEx]
2335 iNdEx++
2336 wire |= (uint64(b) & 0x7F) << shift
2337 if b < 0x80 {
2338 break
2339 }
2340 }
2341 fieldNum := int32(wire >> 3)
2342 wireType := int(wire & 0x7)
2343 if wireType == 4 {
2344 return fmt.Errorf("proto: Reference: wiretype end group for non-group")
2345 }
2346 if fieldNum <= 0 {
2347 return fmt.Errorf("proto: Reference: illegal tag %d (wire type %d)", fieldNum, wire)
2348 }
2349 switch fieldNum {
2350 case 1:
2351 if wireType != 0 {
2352 return fmt.Errorf("proto: wrong wireType = %d for field Relationship", wireType)
2353 }
2354 m.Relationship = 0
2355 for shift := uint(0); ; shift += 7 {
2356 if shift >= 64 {
2357 return ErrIntOverflowCollector
2358 }
2359 if iNdEx >= l {
2360 return io.ErrUnexpectedEOF
2361 }
2362 b := dAtA[iNdEx]
2363 iNdEx++
2364 m.Relationship |= (Reference_Relationship(b) & 0x7F) << shift
2365 if b < 0x80 {
2366 break
2367 }
2368 }
2369 case 2:
2370 if wireType != 2 {
2371 return fmt.Errorf("proto: wrong wireType = %d for field SpanContext", wireType)
2372 }
2373 var msglen int
2374 for shift := uint(0); ; shift += 7 {
2375 if shift >= 64 {
2376 return ErrIntOverflowCollector
2377 }
2378 if iNdEx >= l {
2379 return io.ErrUnexpectedEOF
2380 }
2381 b := dAtA[iNdEx]
2382 iNdEx++
2383 msglen |= (int(b) & 0x7F) << shift
2384 if b < 0x80 {
2385 break
2386 }
2387 }
2388 if msglen < 0 {
2389 return ErrInvalidLengthCollector
2390 }
2391 postIndex := iNdEx + msglen
2392 if postIndex > l {
2393 return io.ErrUnexpectedEOF
2394 }
2395 if m.SpanContext == nil {
2396 m.SpanContext = &SpanContext{}
2397 }
2398 if err := m.SpanContext.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2399 return err
2400 }
2401 iNdEx = postIndex
2402 default:
2403 iNdEx = preIndex
2404 skippy, err := skipCollector(dAtA[iNdEx:])
2405 if err != nil {
2406 return err
2407 }
2408 if skippy < 0 {
2409 return ErrInvalidLengthCollector
2410 }
2411 if (iNdEx + skippy) > l {
2412 return io.ErrUnexpectedEOF
2413 }
2414 iNdEx += skippy
2415 }
2416 }
2417
2418 if iNdEx > l {
2419 return io.ErrUnexpectedEOF
2420 }
2421 return nil
2422 }
2423 func (m *Span) Unmarshal(dAtA []byte) error {
2424 l := len(dAtA)
2425 iNdEx := 0
2426 for iNdEx < l {
2427 preIndex := iNdEx
2428 var wire uint64
2429 for shift := uint(0); ; shift += 7 {
2430 if shift >= 64 {
2431 return ErrIntOverflowCollector
2432 }
2433 if iNdEx >= l {
2434 return io.ErrUnexpectedEOF
2435 }
2436 b := dAtA[iNdEx]
2437 iNdEx++
2438 wire |= (uint64(b) & 0x7F) << shift
2439 if b < 0x80 {
2440 break
2441 }
2442 }
2443 fieldNum := int32(wire >> 3)
2444 wireType := int(wire & 0x7)
2445 if wireType == 4 {
2446 return fmt.Errorf("proto: Span: wiretype end group for non-group")
2447 }
2448 if fieldNum <= 0 {
2449 return fmt.Errorf("proto: Span: illegal tag %d (wire type %d)", fieldNum, wire)
2450 }
2451 switch fieldNum {
2452 case 1:
2453 if wireType != 2 {
2454 return fmt.Errorf("proto: wrong wireType = %d for field SpanContext", wireType)
2455 }
2456 var msglen int
2457 for shift := uint(0); ; shift += 7 {
2458 if shift >= 64 {
2459 return ErrIntOverflowCollector
2460 }
2461 if iNdEx >= l {
2462 return io.ErrUnexpectedEOF
2463 }
2464 b := dAtA[iNdEx]
2465 iNdEx++
2466 msglen |= (int(b) & 0x7F) << shift
2467 if b < 0x80 {
2468 break
2469 }
2470 }
2471 if msglen < 0 {
2472 return ErrInvalidLengthCollector
2473 }
2474 postIndex := iNdEx + msglen
2475 if postIndex > l {
2476 return io.ErrUnexpectedEOF
2477 }
2478 if m.SpanContext == nil {
2479 m.SpanContext = &SpanContext{}
2480 }
2481 if err := m.SpanContext.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2482 return err
2483 }
2484 iNdEx = postIndex
2485 case 2:
2486 if wireType != 2 {
2487 return fmt.Errorf("proto: wrong wireType = %d for field OperationName", wireType)
2488 }
2489 var stringLen uint64
2490 for shift := uint(0); ; shift += 7 {
2491 if shift >= 64 {
2492 return ErrIntOverflowCollector
2493 }
2494 if iNdEx >= l {
2495 return io.ErrUnexpectedEOF
2496 }
2497 b := dAtA[iNdEx]
2498 iNdEx++
2499 stringLen |= (uint64(b) & 0x7F) << shift
2500 if b < 0x80 {
2501 break
2502 }
2503 }
2504 intStringLen := int(stringLen)
2505 if intStringLen < 0 {
2506 return ErrInvalidLengthCollector
2507 }
2508 postIndex := iNdEx + intStringLen
2509 if postIndex > l {
2510 return io.ErrUnexpectedEOF
2511 }
2512 m.OperationName = string(dAtA[iNdEx:postIndex])
2513 iNdEx = postIndex
2514 case 3:
2515 if wireType != 2 {
2516 return fmt.Errorf("proto: wrong wireType = %d for field References", wireType)
2517 }
2518 var msglen int
2519 for shift := uint(0); ; shift += 7 {
2520 if shift >= 64 {
2521 return ErrIntOverflowCollector
2522 }
2523 if iNdEx >= l {
2524 return io.ErrUnexpectedEOF
2525 }
2526 b := dAtA[iNdEx]
2527 iNdEx++
2528 msglen |= (int(b) & 0x7F) << shift
2529 if b < 0x80 {
2530 break
2531 }
2532 }
2533 if msglen < 0 {
2534 return ErrInvalidLengthCollector
2535 }
2536 postIndex := iNdEx + msglen
2537 if postIndex > l {
2538 return io.ErrUnexpectedEOF
2539 }
2540 m.References = append(m.References, &Reference{})
2541 if err := m.References[len(m.References)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2542 return err
2543 }
2544 iNdEx = postIndex
2545 case 4:
2546 if wireType != 2 {
2547 return fmt.Errorf("proto: wrong wireType = %d for field StartTimestamp", wireType)
2548 }
2549 var msglen int
2550 for shift := uint(0); ; shift += 7 {
2551 if shift >= 64 {
2552 return ErrIntOverflowCollector
2553 }
2554 if iNdEx >= l {
2555 return io.ErrUnexpectedEOF
2556 }
2557 b := dAtA[iNdEx]
2558 iNdEx++
2559 msglen |= (int(b) & 0x7F) << shift
2560 if b < 0x80 {
2561 break
2562 }
2563 }
2564 if msglen < 0 {
2565 return ErrInvalidLengthCollector
2566 }
2567 postIndex := iNdEx + msglen
2568 if postIndex > l {
2569 return io.ErrUnexpectedEOF
2570 }
2571 if m.StartTimestamp == nil {
2572 m.StartTimestamp = &google_protobuf.Timestamp{}
2573 }
2574 if err := m.StartTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2575 return err
2576 }
2577 iNdEx = postIndex
2578 case 5:
2579 if wireType != 0 {
2580 return fmt.Errorf("proto: wrong wireType = %d for field DurationMicros", wireType)
2581 }
2582 m.DurationMicros = 0
2583 for shift := uint(0); ; shift += 7 {
2584 if shift >= 64 {
2585 return ErrIntOverflowCollector
2586 }
2587 if iNdEx >= l {
2588 return io.ErrUnexpectedEOF
2589 }
2590 b := dAtA[iNdEx]
2591 iNdEx++
2592 m.DurationMicros |= (uint64(b) & 0x7F) << shift
2593 if b < 0x80 {
2594 break
2595 }
2596 }
2597 case 6:
2598 if wireType != 2 {
2599 return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType)
2600 }
2601 var msglen int
2602 for shift := uint(0); ; shift += 7 {
2603 if shift >= 64 {
2604 return ErrIntOverflowCollector
2605 }
2606 if iNdEx >= l {
2607 return io.ErrUnexpectedEOF
2608 }
2609 b := dAtA[iNdEx]
2610 iNdEx++
2611 msglen |= (int(b) & 0x7F) << shift
2612 if b < 0x80 {
2613 break
2614 }
2615 }
2616 if msglen < 0 {
2617 return ErrInvalidLengthCollector
2618 }
2619 postIndex := iNdEx + msglen
2620 if postIndex > l {
2621 return io.ErrUnexpectedEOF
2622 }
2623 m.Tags = append(m.Tags, &KeyValue{})
2624 if err := m.Tags[len(m.Tags)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2625 return err
2626 }
2627 iNdEx = postIndex
2628 case 7:
2629 if wireType != 2 {
2630 return fmt.Errorf("proto: wrong wireType = %d for field Logs", wireType)
2631 }
2632 var msglen int
2633 for shift := uint(0); ; shift += 7 {
2634 if shift >= 64 {
2635 return ErrIntOverflowCollector
2636 }
2637 if iNdEx >= l {
2638 return io.ErrUnexpectedEOF
2639 }
2640 b := dAtA[iNdEx]
2641 iNdEx++
2642 msglen |= (int(b) & 0x7F) << shift
2643 if b < 0x80 {
2644 break
2645 }
2646 }
2647 if msglen < 0 {
2648 return ErrInvalidLengthCollector
2649 }
2650 postIndex := iNdEx + msglen
2651 if postIndex > l {
2652 return io.ErrUnexpectedEOF
2653 }
2654 m.Logs = append(m.Logs, &Log{})
2655 if err := m.Logs[len(m.Logs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2656 return err
2657 }
2658 iNdEx = postIndex
2659 default:
2660 iNdEx = preIndex
2661 skippy, err := skipCollector(dAtA[iNdEx:])
2662 if err != nil {
2663 return err
2664 }
2665 if skippy < 0 {
2666 return ErrInvalidLengthCollector
2667 }
2668 if (iNdEx + skippy) > l {
2669 return io.ErrUnexpectedEOF
2670 }
2671 iNdEx += skippy
2672 }
2673 }
2674
2675 if iNdEx > l {
2676 return io.ErrUnexpectedEOF
2677 }
2678 return nil
2679 }
2680 func (m *Reporter) Unmarshal(dAtA []byte) error {
2681 l := len(dAtA)
2682 iNdEx := 0
2683 for iNdEx < l {
2684 preIndex := iNdEx
2685 var wire uint64
2686 for shift := uint(0); ; shift += 7 {
2687 if shift >= 64 {
2688 return ErrIntOverflowCollector
2689 }
2690 if iNdEx >= l {
2691 return io.ErrUnexpectedEOF
2692 }
2693 b := dAtA[iNdEx]
2694 iNdEx++
2695 wire |= (uint64(b) & 0x7F) << shift
2696 if b < 0x80 {
2697 break
2698 }
2699 }
2700 fieldNum := int32(wire >> 3)
2701 wireType := int(wire & 0x7)
2702 if wireType == 4 {
2703 return fmt.Errorf("proto: Reporter: wiretype end group for non-group")
2704 }
2705 if fieldNum <= 0 {
2706 return fmt.Errorf("proto: Reporter: illegal tag %d (wire type %d)", fieldNum, wire)
2707 }
2708 switch fieldNum {
2709 case 1:
2710 if wireType != 0 {
2711 return fmt.Errorf("proto: wrong wireType = %d for field ReporterId", wireType)
2712 }
2713 m.ReporterId = 0
2714 for shift := uint(0); ; shift += 7 {
2715 if shift >= 64 {
2716 return ErrIntOverflowCollector
2717 }
2718 if iNdEx >= l {
2719 return io.ErrUnexpectedEOF
2720 }
2721 b := dAtA[iNdEx]
2722 iNdEx++
2723 m.ReporterId |= (uint64(b) & 0x7F) << shift
2724 if b < 0x80 {
2725 break
2726 }
2727 }
2728 case 4:
2729 if wireType != 2 {
2730 return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType)
2731 }
2732 var msglen int
2733 for shift := uint(0); ; shift += 7 {
2734 if shift >= 64 {
2735 return ErrIntOverflowCollector
2736 }
2737 if iNdEx >= l {
2738 return io.ErrUnexpectedEOF
2739 }
2740 b := dAtA[iNdEx]
2741 iNdEx++
2742 msglen |= (int(b) & 0x7F) << shift
2743 if b < 0x80 {
2744 break
2745 }
2746 }
2747 if msglen < 0 {
2748 return ErrInvalidLengthCollector
2749 }
2750 postIndex := iNdEx + msglen
2751 if postIndex > l {
2752 return io.ErrUnexpectedEOF
2753 }
2754 m.Tags = append(m.Tags, &KeyValue{})
2755 if err := m.Tags[len(m.Tags)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2756 return err
2757 }
2758 iNdEx = postIndex
2759 default:
2760 iNdEx = preIndex
2761 skippy, err := skipCollector(dAtA[iNdEx:])
2762 if err != nil {
2763 return err
2764 }
2765 if skippy < 0 {
2766 return ErrInvalidLengthCollector
2767 }
2768 if (iNdEx + skippy) > l {
2769 return io.ErrUnexpectedEOF
2770 }
2771 iNdEx += skippy
2772 }
2773 }
2774
2775 if iNdEx > l {
2776 return io.ErrUnexpectedEOF
2777 }
2778 return nil
2779 }
2780 func (m *MetricsSample) Unmarshal(dAtA []byte) error {
2781 l := len(dAtA)
2782 iNdEx := 0
2783 for iNdEx < l {
2784 preIndex := iNdEx
2785 var wire uint64
2786 for shift := uint(0); ; shift += 7 {
2787 if shift >= 64 {
2788 return ErrIntOverflowCollector
2789 }
2790 if iNdEx >= l {
2791 return io.ErrUnexpectedEOF
2792 }
2793 b := dAtA[iNdEx]
2794 iNdEx++
2795 wire |= (uint64(b) & 0x7F) << shift
2796 if b < 0x80 {
2797 break
2798 }
2799 }
2800 fieldNum := int32(wire >> 3)
2801 wireType := int(wire & 0x7)
2802 if wireType == 4 {
2803 return fmt.Errorf("proto: MetricsSample: wiretype end group for non-group")
2804 }
2805 if fieldNum <= 0 {
2806 return fmt.Errorf("proto: MetricsSample: illegal tag %d (wire type %d)", fieldNum, wire)
2807 }
2808 switch fieldNum {
2809 case 1:
2810 if wireType != 2 {
2811 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
2812 }
2813 var stringLen uint64
2814 for shift := uint(0); ; shift += 7 {
2815 if shift >= 64 {
2816 return ErrIntOverflowCollector
2817 }
2818 if iNdEx >= l {
2819 return io.ErrUnexpectedEOF
2820 }
2821 b := dAtA[iNdEx]
2822 iNdEx++
2823 stringLen |= (uint64(b) & 0x7F) << shift
2824 if b < 0x80 {
2825 break
2826 }
2827 }
2828 intStringLen := int(stringLen)
2829 if intStringLen < 0 {
2830 return ErrInvalidLengthCollector
2831 }
2832 postIndex := iNdEx + intStringLen
2833 if postIndex > l {
2834 return io.ErrUnexpectedEOF
2835 }
2836 m.Name = string(dAtA[iNdEx:postIndex])
2837 iNdEx = postIndex
2838 case 2:
2839 if wireType != 0 {
2840 return fmt.Errorf("proto: wrong wireType = %d for field IntValue", wireType)
2841 }
2842 var v int64
2843 for shift := uint(0); ; shift += 7 {
2844 if shift >= 64 {
2845 return ErrIntOverflowCollector
2846 }
2847 if iNdEx >= l {
2848 return io.ErrUnexpectedEOF
2849 }
2850 b := dAtA[iNdEx]
2851 iNdEx++
2852 v |= (int64(b) & 0x7F) << shift
2853 if b < 0x80 {
2854 break
2855 }
2856 }
2857 m.Value = &MetricsSample_IntValue{v}
2858 case 3:
2859 if wireType != 1 {
2860 return fmt.Errorf("proto: wrong wireType = %d for field DoubleValue", wireType)
2861 }
2862 var v uint64
2863 if (iNdEx + 8) > l {
2864 return io.ErrUnexpectedEOF
2865 }
2866 v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
2867 iNdEx += 8
2868 m.Value = &MetricsSample_DoubleValue{float64(math.Float64frombits(v))}
2869 default:
2870 iNdEx = preIndex
2871 skippy, err := skipCollector(dAtA[iNdEx:])
2872 if err != nil {
2873 return err
2874 }
2875 if skippy < 0 {
2876 return ErrInvalidLengthCollector
2877 }
2878 if (iNdEx + skippy) > l {
2879 return io.ErrUnexpectedEOF
2880 }
2881 iNdEx += skippy
2882 }
2883 }
2884
2885 if iNdEx > l {
2886 return io.ErrUnexpectedEOF
2887 }
2888 return nil
2889 }
2890 func (m *InternalMetrics) Unmarshal(dAtA []byte) error {
2891 l := len(dAtA)
2892 iNdEx := 0
2893 for iNdEx < l {
2894 preIndex := iNdEx
2895 var wire uint64
2896 for shift := uint(0); ; shift += 7 {
2897 if shift >= 64 {
2898 return ErrIntOverflowCollector
2899 }
2900 if iNdEx >= l {
2901 return io.ErrUnexpectedEOF
2902 }
2903 b := dAtA[iNdEx]
2904 iNdEx++
2905 wire |= (uint64(b) & 0x7F) << shift
2906 if b < 0x80 {
2907 break
2908 }
2909 }
2910 fieldNum := int32(wire >> 3)
2911 wireType := int(wire & 0x7)
2912 if wireType == 4 {
2913 return fmt.Errorf("proto: InternalMetrics: wiretype end group for non-group")
2914 }
2915 if fieldNum <= 0 {
2916 return fmt.Errorf("proto: InternalMetrics: illegal tag %d (wire type %d)", fieldNum, wire)
2917 }
2918 switch fieldNum {
2919 case 1:
2920 if wireType != 2 {
2921 return fmt.Errorf("proto: wrong wireType = %d for field StartTimestamp", wireType)
2922 }
2923 var msglen int
2924 for shift := uint(0); ; shift += 7 {
2925 if shift >= 64 {
2926 return ErrIntOverflowCollector
2927 }
2928 if iNdEx >= l {
2929 return io.ErrUnexpectedEOF
2930 }
2931 b := dAtA[iNdEx]
2932 iNdEx++
2933 msglen |= (int(b) & 0x7F) << shift
2934 if b < 0x80 {
2935 break
2936 }
2937 }
2938 if msglen < 0 {
2939 return ErrInvalidLengthCollector
2940 }
2941 postIndex := iNdEx + msglen
2942 if postIndex > l {
2943 return io.ErrUnexpectedEOF
2944 }
2945 if m.StartTimestamp == nil {
2946 m.StartTimestamp = &google_protobuf.Timestamp{}
2947 }
2948 if err := m.StartTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2949 return err
2950 }
2951 iNdEx = postIndex
2952 case 2:
2953 if wireType != 0 {
2954 return fmt.Errorf("proto: wrong wireType = %d for field DurationMicros", wireType)
2955 }
2956 m.DurationMicros = 0
2957 for shift := uint(0); ; shift += 7 {
2958 if shift >= 64 {
2959 return ErrIntOverflowCollector
2960 }
2961 if iNdEx >= l {
2962 return io.ErrUnexpectedEOF
2963 }
2964 b := dAtA[iNdEx]
2965 iNdEx++
2966 m.DurationMicros |= (uint64(b) & 0x7F) << shift
2967 if b < 0x80 {
2968 break
2969 }
2970 }
2971 case 3:
2972 if wireType != 2 {
2973 return fmt.Errorf("proto: wrong wireType = %d for field Logs", wireType)
2974 }
2975 var msglen int
2976 for shift := uint(0); ; shift += 7 {
2977 if shift >= 64 {
2978 return ErrIntOverflowCollector
2979 }
2980 if iNdEx >= l {
2981 return io.ErrUnexpectedEOF
2982 }
2983 b := dAtA[iNdEx]
2984 iNdEx++
2985 msglen |= (int(b) & 0x7F) << shift
2986 if b < 0x80 {
2987 break
2988 }
2989 }
2990 if msglen < 0 {
2991 return ErrInvalidLengthCollector
2992 }
2993 postIndex := iNdEx + msglen
2994 if postIndex > l {
2995 return io.ErrUnexpectedEOF
2996 }
2997 m.Logs = append(m.Logs, &Log{})
2998 if err := m.Logs[len(m.Logs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2999 return err
3000 }
3001 iNdEx = postIndex
3002 case 4:
3003 if wireType != 2 {
3004 return fmt.Errorf("proto: wrong wireType = %d for field Counts", wireType)
3005 }
3006 var msglen int
3007 for shift := uint(0); ; shift += 7 {
3008 if shift >= 64 {
3009 return ErrIntOverflowCollector
3010 }
3011 if iNdEx >= l {
3012 return io.ErrUnexpectedEOF
3013 }
3014 b := dAtA[iNdEx]
3015 iNdEx++
3016 msglen |= (int(b) & 0x7F) << shift
3017 if b < 0x80 {
3018 break
3019 }
3020 }
3021 if msglen < 0 {
3022 return ErrInvalidLengthCollector
3023 }
3024 postIndex := iNdEx + msglen
3025 if postIndex > l {
3026 return io.ErrUnexpectedEOF
3027 }
3028 m.Counts = append(m.Counts, &MetricsSample{})
3029 if err := m.Counts[len(m.Counts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3030 return err
3031 }
3032 iNdEx = postIndex
3033 case 5:
3034 if wireType != 2 {
3035 return fmt.Errorf("proto: wrong wireType = %d for field Gauges", wireType)
3036 }
3037 var msglen int
3038 for shift := uint(0); ; shift += 7 {
3039 if shift >= 64 {
3040 return ErrIntOverflowCollector
3041 }
3042 if iNdEx >= l {
3043 return io.ErrUnexpectedEOF
3044 }
3045 b := dAtA[iNdEx]
3046 iNdEx++
3047 msglen |= (int(b) & 0x7F) << shift
3048 if b < 0x80 {
3049 break
3050 }
3051 }
3052 if msglen < 0 {
3053 return ErrInvalidLengthCollector
3054 }
3055 postIndex := iNdEx + msglen
3056 if postIndex > l {
3057 return io.ErrUnexpectedEOF
3058 }
3059 m.Gauges = append(m.Gauges, &MetricsSample{})
3060 if err := m.Gauges[len(m.Gauges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3061 return err
3062 }
3063 iNdEx = postIndex
3064 default:
3065 iNdEx = preIndex
3066 skippy, err := skipCollector(dAtA[iNdEx:])
3067 if err != nil {
3068 return err
3069 }
3070 if skippy < 0 {
3071 return ErrInvalidLengthCollector
3072 }
3073 if (iNdEx + skippy) > l {
3074 return io.ErrUnexpectedEOF
3075 }
3076 iNdEx += skippy
3077 }
3078 }
3079
3080 if iNdEx > l {
3081 return io.ErrUnexpectedEOF
3082 }
3083 return nil
3084 }
3085 func (m *Auth) Unmarshal(dAtA []byte) error {
3086 l := len(dAtA)
3087 iNdEx := 0
3088 for iNdEx < l {
3089 preIndex := iNdEx
3090 var wire uint64
3091 for shift := uint(0); ; shift += 7 {
3092 if shift >= 64 {
3093 return ErrIntOverflowCollector
3094 }
3095 if iNdEx >= l {
3096 return io.ErrUnexpectedEOF
3097 }
3098 b := dAtA[iNdEx]
3099 iNdEx++
3100 wire |= (uint64(b) & 0x7F) << shift
3101 if b < 0x80 {
3102 break
3103 }
3104 }
3105 fieldNum := int32(wire >> 3)
3106 wireType := int(wire & 0x7)
3107 if wireType == 4 {
3108 return fmt.Errorf("proto: Auth: wiretype end group for non-group")
3109 }
3110 if fieldNum <= 0 {
3111 return fmt.Errorf("proto: Auth: illegal tag %d (wire type %d)", fieldNum, wire)
3112 }
3113 switch fieldNum {
3114 case 1:
3115 if wireType != 2 {
3116 return fmt.Errorf("proto: wrong wireType = %d for field AccessToken", wireType)
3117 }
3118 var stringLen uint64
3119 for shift := uint(0); ; shift += 7 {
3120 if shift >= 64 {
3121 return ErrIntOverflowCollector
3122 }
3123 if iNdEx >= l {
3124 return io.ErrUnexpectedEOF
3125 }
3126 b := dAtA[iNdEx]
3127 iNdEx++
3128 stringLen |= (uint64(b) & 0x7F) << shift
3129 if b < 0x80 {
3130 break
3131 }
3132 }
3133 intStringLen := int(stringLen)
3134 if intStringLen < 0 {
3135 return ErrInvalidLengthCollector
3136 }
3137 postIndex := iNdEx + intStringLen
3138 if postIndex > l {
3139 return io.ErrUnexpectedEOF
3140 }
3141 m.AccessToken = string(dAtA[iNdEx:postIndex])
3142 iNdEx = postIndex
3143 default:
3144 iNdEx = preIndex
3145 skippy, err := skipCollector(dAtA[iNdEx:])
3146 if err != nil {
3147 return err
3148 }
3149 if skippy < 0 {
3150 return ErrInvalidLengthCollector
3151 }
3152 if (iNdEx + skippy) > l {
3153 return io.ErrUnexpectedEOF
3154 }
3155 iNdEx += skippy
3156 }
3157 }
3158
3159 if iNdEx > l {
3160 return io.ErrUnexpectedEOF
3161 }
3162 return nil
3163 }
3164 func (m *ReportRequest) Unmarshal(dAtA []byte) error {
3165 l := len(dAtA)
3166 iNdEx := 0
3167 for iNdEx < l {
3168 preIndex := iNdEx
3169 var wire uint64
3170 for shift := uint(0); ; shift += 7 {
3171 if shift >= 64 {
3172 return ErrIntOverflowCollector
3173 }
3174 if iNdEx >= l {
3175 return io.ErrUnexpectedEOF
3176 }
3177 b := dAtA[iNdEx]
3178 iNdEx++
3179 wire |= (uint64(b) & 0x7F) << shift
3180 if b < 0x80 {
3181 break
3182 }
3183 }
3184 fieldNum := int32(wire >> 3)
3185 wireType := int(wire & 0x7)
3186 if wireType == 4 {
3187 return fmt.Errorf("proto: ReportRequest: wiretype end group for non-group")
3188 }
3189 if fieldNum <= 0 {
3190 return fmt.Errorf("proto: ReportRequest: illegal tag %d (wire type %d)", fieldNum, wire)
3191 }
3192 switch fieldNum {
3193 case 1:
3194 if wireType != 2 {
3195 return fmt.Errorf("proto: wrong wireType = %d for field Reporter", wireType)
3196 }
3197 var msglen int
3198 for shift := uint(0); ; shift += 7 {
3199 if shift >= 64 {
3200 return ErrIntOverflowCollector
3201 }
3202 if iNdEx >= l {
3203 return io.ErrUnexpectedEOF
3204 }
3205 b := dAtA[iNdEx]
3206 iNdEx++
3207 msglen |= (int(b) & 0x7F) << shift
3208 if b < 0x80 {
3209 break
3210 }
3211 }
3212 if msglen < 0 {
3213 return ErrInvalidLengthCollector
3214 }
3215 postIndex := iNdEx + msglen
3216 if postIndex > l {
3217 return io.ErrUnexpectedEOF
3218 }
3219 if m.Reporter == nil {
3220 m.Reporter = &Reporter{}
3221 }
3222 if err := m.Reporter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3223 return err
3224 }
3225 iNdEx = postIndex
3226 case 2:
3227 if wireType != 2 {
3228 return fmt.Errorf("proto: wrong wireType = %d for field Auth", wireType)
3229 }
3230 var msglen int
3231 for shift := uint(0); ; shift += 7 {
3232 if shift >= 64 {
3233 return ErrIntOverflowCollector
3234 }
3235 if iNdEx >= l {
3236 return io.ErrUnexpectedEOF
3237 }
3238 b := dAtA[iNdEx]
3239 iNdEx++
3240 msglen |= (int(b) & 0x7F) << shift
3241 if b < 0x80 {
3242 break
3243 }
3244 }
3245 if msglen < 0 {
3246 return ErrInvalidLengthCollector
3247 }
3248 postIndex := iNdEx + msglen
3249 if postIndex > l {
3250 return io.ErrUnexpectedEOF
3251 }
3252 if m.Auth == nil {
3253 m.Auth = &Auth{}
3254 }
3255 if err := m.Auth.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3256 return err
3257 }
3258 iNdEx = postIndex
3259 case 3:
3260 if wireType != 2 {
3261 return fmt.Errorf("proto: wrong wireType = %d for field Spans", wireType)
3262 }
3263 var msglen int
3264 for shift := uint(0); ; shift += 7 {
3265 if shift >= 64 {
3266 return ErrIntOverflowCollector
3267 }
3268 if iNdEx >= l {
3269 return io.ErrUnexpectedEOF
3270 }
3271 b := dAtA[iNdEx]
3272 iNdEx++
3273 msglen |= (int(b) & 0x7F) << shift
3274 if b < 0x80 {
3275 break
3276 }
3277 }
3278 if msglen < 0 {
3279 return ErrInvalidLengthCollector
3280 }
3281 postIndex := iNdEx + msglen
3282 if postIndex > l {
3283 return io.ErrUnexpectedEOF
3284 }
3285 m.Spans = append(m.Spans, &Span{})
3286 if err := m.Spans[len(m.Spans)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3287 return err
3288 }
3289 iNdEx = postIndex
3290 case 5:
3291 if wireType != 0 {
3292 return fmt.Errorf("proto: wrong wireType = %d for field TimestampOffsetMicros", wireType)
3293 }
3294 m.TimestampOffsetMicros = 0
3295 for shift := uint(0); ; shift += 7 {
3296 if shift >= 64 {
3297 return ErrIntOverflowCollector
3298 }
3299 if iNdEx >= l {
3300 return io.ErrUnexpectedEOF
3301 }
3302 b := dAtA[iNdEx]
3303 iNdEx++
3304 m.TimestampOffsetMicros |= (int64(b) & 0x7F) << shift
3305 if b < 0x80 {
3306 break
3307 }
3308 }
3309 case 6:
3310 if wireType != 2 {
3311 return fmt.Errorf("proto: wrong wireType = %d for field InternalMetrics", wireType)
3312 }
3313 var msglen int
3314 for shift := uint(0); ; shift += 7 {
3315 if shift >= 64 {
3316 return ErrIntOverflowCollector
3317 }
3318 if iNdEx >= l {
3319 return io.ErrUnexpectedEOF
3320 }
3321 b := dAtA[iNdEx]
3322 iNdEx++
3323 msglen |= (int(b) & 0x7F) << shift
3324 if b < 0x80 {
3325 break
3326 }
3327 }
3328 if msglen < 0 {
3329 return ErrInvalidLengthCollector
3330 }
3331 postIndex := iNdEx + msglen
3332 if postIndex > l {
3333 return io.ErrUnexpectedEOF
3334 }
3335 if m.InternalMetrics == nil {
3336 m.InternalMetrics = &InternalMetrics{}
3337 }
3338 if err := m.InternalMetrics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3339 return err
3340 }
3341 iNdEx = postIndex
3342 default:
3343 iNdEx = preIndex
3344 skippy, err := skipCollector(dAtA[iNdEx:])
3345 if err != nil {
3346 return err
3347 }
3348 if skippy < 0 {
3349 return ErrInvalidLengthCollector
3350 }
3351 if (iNdEx + skippy) > l {
3352 return io.ErrUnexpectedEOF
3353 }
3354 iNdEx += skippy
3355 }
3356 }
3357
3358 if iNdEx > l {
3359 return io.ErrUnexpectedEOF
3360 }
3361 return nil
3362 }
3363 func (m *Command) Unmarshal(dAtA []byte) error {
3364 l := len(dAtA)
3365 iNdEx := 0
3366 for iNdEx < l {
3367 preIndex := iNdEx
3368 var wire uint64
3369 for shift := uint(0); ; shift += 7 {
3370 if shift >= 64 {
3371 return ErrIntOverflowCollector
3372 }
3373 if iNdEx >= l {
3374 return io.ErrUnexpectedEOF
3375 }
3376 b := dAtA[iNdEx]
3377 iNdEx++
3378 wire |= (uint64(b) & 0x7F) << shift
3379 if b < 0x80 {
3380 break
3381 }
3382 }
3383 fieldNum := int32(wire >> 3)
3384 wireType := int(wire & 0x7)
3385 if wireType == 4 {
3386 return fmt.Errorf("proto: Command: wiretype end group for non-group")
3387 }
3388 if fieldNum <= 0 {
3389 return fmt.Errorf("proto: Command: illegal tag %d (wire type %d)", fieldNum, wire)
3390 }
3391 switch fieldNum {
3392 case 1:
3393 if wireType != 0 {
3394 return fmt.Errorf("proto: wrong wireType = %d for field Disable", wireType)
3395 }
3396 var v int
3397 for shift := uint(0); ; shift += 7 {
3398 if shift >= 64 {
3399 return ErrIntOverflowCollector
3400 }
3401 if iNdEx >= l {
3402 return io.ErrUnexpectedEOF
3403 }
3404 b := dAtA[iNdEx]
3405 iNdEx++
3406 v |= (int(b) & 0x7F) << shift
3407 if b < 0x80 {
3408 break
3409 }
3410 }
3411 m.Disable = bool(v != 0)
3412 case 2:
3413 if wireType != 0 {
3414 return fmt.Errorf("proto: wrong wireType = %d for field DevMode", wireType)
3415 }
3416 var v int
3417 for shift := uint(0); ; shift += 7 {
3418 if shift >= 64 {
3419 return ErrIntOverflowCollector
3420 }
3421 if iNdEx >= l {
3422 return io.ErrUnexpectedEOF
3423 }
3424 b := dAtA[iNdEx]
3425 iNdEx++
3426 v |= (int(b) & 0x7F) << shift
3427 if b < 0x80 {
3428 break
3429 }
3430 }
3431 m.DevMode = bool(v != 0)
3432 default:
3433 iNdEx = preIndex
3434 skippy, err := skipCollector(dAtA[iNdEx:])
3435 if err != nil {
3436 return err
3437 }
3438 if skippy < 0 {
3439 return ErrInvalidLengthCollector
3440 }
3441 if (iNdEx + skippy) > l {
3442 return io.ErrUnexpectedEOF
3443 }
3444 iNdEx += skippy
3445 }
3446 }
3447
3448 if iNdEx > l {
3449 return io.ErrUnexpectedEOF
3450 }
3451 return nil
3452 }
3453 func (m *ReportResponse) Unmarshal(dAtA []byte) error {
3454 l := len(dAtA)
3455 iNdEx := 0
3456 for iNdEx < l {
3457 preIndex := iNdEx
3458 var wire uint64
3459 for shift := uint(0); ; shift += 7 {
3460 if shift >= 64 {
3461 return ErrIntOverflowCollector
3462 }
3463 if iNdEx >= l {
3464 return io.ErrUnexpectedEOF
3465 }
3466 b := dAtA[iNdEx]
3467 iNdEx++
3468 wire |= (uint64(b) & 0x7F) << shift
3469 if b < 0x80 {
3470 break
3471 }
3472 }
3473 fieldNum := int32(wire >> 3)
3474 wireType := int(wire & 0x7)
3475 if wireType == 4 {
3476 return fmt.Errorf("proto: ReportResponse: wiretype end group for non-group")
3477 }
3478 if fieldNum <= 0 {
3479 return fmt.Errorf("proto: ReportResponse: illegal tag %d (wire type %d)", fieldNum, wire)
3480 }
3481 switch fieldNum {
3482 case 1:
3483 if wireType != 2 {
3484 return fmt.Errorf("proto: wrong wireType = %d for field Commands", wireType)
3485 }
3486 var msglen int
3487 for shift := uint(0); ; shift += 7 {
3488 if shift >= 64 {
3489 return ErrIntOverflowCollector
3490 }
3491 if iNdEx >= l {
3492 return io.ErrUnexpectedEOF
3493 }
3494 b := dAtA[iNdEx]
3495 iNdEx++
3496 msglen |= (int(b) & 0x7F) << shift
3497 if b < 0x80 {
3498 break
3499 }
3500 }
3501 if msglen < 0 {
3502 return ErrInvalidLengthCollector
3503 }
3504 postIndex := iNdEx + msglen
3505 if postIndex > l {
3506 return io.ErrUnexpectedEOF
3507 }
3508 m.Commands = append(m.Commands, &Command{})
3509 if err := m.Commands[len(m.Commands)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3510 return err
3511 }
3512 iNdEx = postIndex
3513 case 2:
3514 if wireType != 2 {
3515 return fmt.Errorf("proto: wrong wireType = %d for field ReceiveTimestamp", wireType)
3516 }
3517 var msglen int
3518 for shift := uint(0); ; shift += 7 {
3519 if shift >= 64 {
3520 return ErrIntOverflowCollector
3521 }
3522 if iNdEx >= l {
3523 return io.ErrUnexpectedEOF
3524 }
3525 b := dAtA[iNdEx]
3526 iNdEx++
3527 msglen |= (int(b) & 0x7F) << shift
3528 if b < 0x80 {
3529 break
3530 }
3531 }
3532 if msglen < 0 {
3533 return ErrInvalidLengthCollector
3534 }
3535 postIndex := iNdEx + msglen
3536 if postIndex > l {
3537 return io.ErrUnexpectedEOF
3538 }
3539 if m.ReceiveTimestamp == nil {
3540 m.ReceiveTimestamp = &google_protobuf.Timestamp{}
3541 }
3542 if err := m.ReceiveTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3543 return err
3544 }
3545 iNdEx = postIndex
3546 case 3:
3547 if wireType != 2 {
3548 return fmt.Errorf("proto: wrong wireType = %d for field TransmitTimestamp", wireType)
3549 }
3550 var msglen int
3551 for shift := uint(0); ; shift += 7 {
3552 if shift >= 64 {
3553 return ErrIntOverflowCollector
3554 }
3555 if iNdEx >= l {
3556 return io.ErrUnexpectedEOF
3557 }
3558 b := dAtA[iNdEx]
3559 iNdEx++
3560 msglen |= (int(b) & 0x7F) << shift
3561 if b < 0x80 {
3562 break
3563 }
3564 }
3565 if msglen < 0 {
3566 return ErrInvalidLengthCollector
3567 }
3568 postIndex := iNdEx + msglen
3569 if postIndex > l {
3570 return io.ErrUnexpectedEOF
3571 }
3572 if m.TransmitTimestamp == nil {
3573 m.TransmitTimestamp = &google_protobuf.Timestamp{}
3574 }
3575 if err := m.TransmitTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
3576 return err
3577 }
3578 iNdEx = postIndex
3579 case 4:
3580 if wireType != 2 {
3581 return fmt.Errorf("proto: wrong wireType = %d for field Errors", wireType)
3582 }
3583 var stringLen uint64
3584 for shift := uint(0); ; shift += 7 {
3585 if shift >= 64 {
3586 return ErrIntOverflowCollector
3587 }
3588 if iNdEx >= l {
3589 return io.ErrUnexpectedEOF
3590 }
3591 b := dAtA[iNdEx]
3592 iNdEx++
3593 stringLen |= (uint64(b) & 0x7F) << shift
3594 if b < 0x80 {
3595 break
3596 }
3597 }
3598 intStringLen := int(stringLen)
3599 if intStringLen < 0 {
3600 return ErrInvalidLengthCollector
3601 }
3602 postIndex := iNdEx + intStringLen
3603 if postIndex > l {
3604 return io.ErrUnexpectedEOF
3605 }
3606 m.Errors = append(m.Errors, string(dAtA[iNdEx:postIndex]))
3607 iNdEx = postIndex
3608 case 5:
3609 if wireType != 2 {
3610 return fmt.Errorf("proto: wrong wireType = %d for field Warnings", wireType)
3611 }
3612 var stringLen uint64
3613 for shift := uint(0); ; shift += 7 {
3614 if shift >= 64 {
3615 return ErrIntOverflowCollector
3616 }
3617 if iNdEx >= l {
3618 return io.ErrUnexpectedEOF
3619 }
3620 b := dAtA[iNdEx]
3621 iNdEx++
3622 stringLen |= (uint64(b) & 0x7F) << shift
3623 if b < 0x80 {
3624 break
3625 }
3626 }
3627 intStringLen := int(stringLen)
3628 if intStringLen < 0 {
3629 return ErrInvalidLengthCollector
3630 }
3631 postIndex := iNdEx + intStringLen
3632 if postIndex > l {
3633 return io.ErrUnexpectedEOF
3634 }
3635 m.Warnings = append(m.Warnings, string(dAtA[iNdEx:postIndex]))
3636 iNdEx = postIndex
3637 case 6:
3638 if wireType != 2 {
3639 return fmt.Errorf("proto: wrong wireType = %d for field Infos", wireType)
3640 }
3641 var stringLen uint64
3642 for shift := uint(0); ; shift += 7 {
3643 if shift >= 64 {
3644 return ErrIntOverflowCollector
3645 }
3646 if iNdEx >= l {
3647 return io.ErrUnexpectedEOF
3648 }
3649 b := dAtA[iNdEx]
3650 iNdEx++
3651 stringLen |= (uint64(b) & 0x7F) << shift
3652 if b < 0x80 {
3653 break
3654 }
3655 }
3656 intStringLen := int(stringLen)
3657 if intStringLen < 0 {
3658 return ErrInvalidLengthCollector
3659 }
3660 postIndex := iNdEx + intStringLen
3661 if postIndex > l {
3662 return io.ErrUnexpectedEOF
3663 }
3664 m.Infos = append(m.Infos, string(dAtA[iNdEx:postIndex]))
3665 iNdEx = postIndex
3666 default:
3667 iNdEx = preIndex
3668 skippy, err := skipCollector(dAtA[iNdEx:])
3669 if err != nil {
3670 return err
3671 }
3672 if skippy < 0 {
3673 return ErrInvalidLengthCollector
3674 }
3675 if (iNdEx + skippy) > l {
3676 return io.ErrUnexpectedEOF
3677 }
3678 iNdEx += skippy
3679 }
3680 }
3681
3682 if iNdEx > l {
3683 return io.ErrUnexpectedEOF
3684 }
3685 return nil
3686 }
3687 func skipCollector(dAtA []byte) (n int, err error) {
3688 l := len(dAtA)
3689 iNdEx := 0
3690 for iNdEx < l {
3691 var wire uint64
3692 for shift := uint(0); ; shift += 7 {
3693 if shift >= 64 {
3694 return 0, ErrIntOverflowCollector
3695 }
3696 if iNdEx >= l {
3697 return 0, io.ErrUnexpectedEOF
3698 }
3699 b := dAtA[iNdEx]
3700 iNdEx++
3701 wire |= (uint64(b) & 0x7F) << shift
3702 if b < 0x80 {
3703 break
3704 }
3705 }
3706 wireType := int(wire & 0x7)
3707 switch wireType {
3708 case 0:
3709 for shift := uint(0); ; shift += 7 {
3710 if shift >= 64 {
3711 return 0, ErrIntOverflowCollector
3712 }
3713 if iNdEx >= l {
3714 return 0, io.ErrUnexpectedEOF
3715 }
3716 iNdEx++
3717 if dAtA[iNdEx-1] < 0x80 {
3718 break
3719 }
3720 }
3721 return iNdEx, nil
3722 case 1:
3723 iNdEx += 8
3724 return iNdEx, nil
3725 case 2:
3726 var length int
3727 for shift := uint(0); ; shift += 7 {
3728 if shift >= 64 {
3729 return 0, ErrIntOverflowCollector
3730 }
3731 if iNdEx >= l {
3732 return 0, io.ErrUnexpectedEOF
3733 }
3734 b := dAtA[iNdEx]
3735 iNdEx++
3736 length |= (int(b) & 0x7F) << shift
3737 if b < 0x80 {
3738 break
3739 }
3740 }
3741 iNdEx += length
3742 if length < 0 {
3743 return 0, ErrInvalidLengthCollector
3744 }
3745 return iNdEx, nil
3746 case 3:
3747 for {
3748 var innerWire uint64
3749 var start int = iNdEx
3750 for shift := uint(0); ; shift += 7 {
3751 if shift >= 64 {
3752 return 0, ErrIntOverflowCollector
3753 }
3754 if iNdEx >= l {
3755 return 0, io.ErrUnexpectedEOF
3756 }
3757 b := dAtA[iNdEx]
3758 iNdEx++
3759 innerWire |= (uint64(b) & 0x7F) << shift
3760 if b < 0x80 {
3761 break
3762 }
3763 }
3764 innerWireType := int(innerWire & 0x7)
3765 if innerWireType == 4 {
3766 break
3767 }
3768 next, err := skipCollector(dAtA[start:])
3769 if err != nil {
3770 return 0, err
3771 }
3772 iNdEx = start + next
3773 }
3774 return iNdEx, nil
3775 case 4:
3776 return iNdEx, nil
3777 case 5:
3778 iNdEx += 4
3779 return iNdEx, nil
3780 default:
3781 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
3782 }
3783 }
3784 panic("unreachable")
3785 }
3786
3787 var (
3788 ErrInvalidLengthCollector = fmt.Errorf("proto: negative length found during unmarshaling")
3789 ErrIntOverflowCollector = fmt.Errorf("proto: integer overflow")
3790 )
3791
3792 func init() {
3793 proto.RegisterFile("github.com/lightstep/lightstep-tracer-common/tmpgen/collector.proto", fileDescriptorCollector)
3794 }
3795
3796 var fileDescriptorCollector = []byte{
3797 // 1137 bytes of a gzipped FileDescriptorProto
3798 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xdd, 0x6e, 0xe3, 0x44,
3799 0x14, 0xae, 0x9d, 0x6c, 0x7e, 0x4e, 0xb2, 0x6d, 0x76, 0xf8, 0x4b, 0xc3, 0xb6, 0x9b, 0x75, 0x41,
3800 0x14, 0x96, 0x3a, 0x10, 0x84, 0x54, 0x7a, 0xb1, 0xd2, 0x36, 0xd0, 0x6d, 0x44, 0x4a, 0x56, 0xd3,
3801 0x15, 0x48, 0x7b, 0x13, 0x39, 0xf6, 0xc4, 0x35, 0x6b, 0xcf, 0x98, 0x99, 0x49, 0xa0, 0x77, 0x08,
3802 0x89, 0x7b, 0x24, 0xc4, 0x0b, 0x70, 0x05, 0x4f, 0xc0, 0x2b, 0x70, 0x85, 0x40, 0xf0, 0x00, 0xa8,
3803 0xf0, 0x20, 0xc8, 0x33, 0xb6, 0x93, 0x2e, 0xe9, 0x8f, 0x10, 0x77, 0x9e, 0x33, 0xdf, 0x37, 0xe7,
3804 0xcc, 0xf9, 0xbe, 0x33, 0x09, 0xf4, 0xfc, 0x40, 0x9e, 0x4c, 0xc7, 0xb6, 0xcb, 0xa2, 0x4e, 0x18,
3805 0xf8, 0x27, 0x52, 0x48, 0x12, 0xcf, 0xbf, 0x76, 0x24, 0x77, 0x5c, 0xc2, 0x77, 0x5c, 0x16, 0x45,
3806 0x8c, 0x76, 0x64, 0x14, 0xfb, 0x84, 0x76, 0x5c, 0x16, 0x86, 0xc4, 0x95, 0x8c, 0xdb, 0x31, 0x67,
3807 0x92, 0xa1, 0xe7, 0x72, 0xbc, 0x9d, 0x6f, 0xb5, 0xee, 0xf8, 0x8c, 0xf9, 0x21, 0xe9, 0x28, 0xc8,
3808 0x78, 0x3a, 0xe9, 0xc8, 0x20, 0x22, 0x42, 0x3a, 0x51, 0xac, 0x59, 0xad, 0xdb, 0x29, 0xc0, 0x89,
3809 0x83, 0x8e, 0x43, 0x29, 0x93, 0x8e, 0x0c, 0x18, 0x15, 0x7a, 0xd7, 0xfa, 0xc5, 0x80, 0xda, 0x71,
3810 0xec, 0xd0, 0x1e, 0xa3, 0x92, 0x7c, 0x21, 0xd1, 0x06, 0x54, 0x54, 0x2d, 0xa3, 0xc0, 0x6b, 0x1a,
3811 0x6d, 0x63, 0xbb, 0xb8, 0x6f, 0xbe, 0x65, 0xe0, 0xb2, 0x8a, 0xf5, 0x3d, 0xf4, 0x32, 0x94, 0x45,
3812 0xec, 0xd0, 0x64, 0xd7, 0xcc, 0x77, 0x4b, 0x49, 0xa8, 0xef, 0xa1, 0x87, 0x50, 0x1e, 0x3b, 0xbe,
3813 0xef, 0xf8, 0xa4, 0x59, 0x68, 0x17, 0xb6, 0x6b, 0xdd, 0x1d, 0x7b, 0x49, 0xc5, 0xf6, 0x42, 0x3a,
3814 0x7b, 0x5f, 0xe3, 0x3f, 0xa0, 0x92, 0x9f, 0xe2, 0x8c, 0xdd, 0xda, 0x83, 0xfa, 0xe2, 0x06, 0x6a,
3815 0x40, 0xe1, 0x29, 0x39, 0x55, 0xf5, 0x54, 0x71, 0xf2, 0x89, 0x9e, 0x87, 0x1b, 0x33, 0x27, 0x9c,
3816 0x12, 0x55, 0x45, 0x15, 0xeb, 0xc5, 0x9e, 0xb9, 0x6b, 0x58, 0x7f, 0x18, 0x50, 0xf9, 0x90, 0x9c,
3817 0x7e, 0x9c, 0x04, 0x96, 0x10, 0xb7, 0xa0, 0x2e, 0x24, 0x0f, 0xa8, 0x3f, 0x5a, 0xe0, 0x1f, 0xae,
3818 0xe0, 0x9a, 0x8e, 0x6a, 0xda, 0x5d, 0xa8, 0x06, 0x54, 0xa6, 0x88, 0x42, 0xdb, 0xd8, 0x2e, 0x24,
3819 0xf7, 0x3c, 0x5c, 0xc1, 0x95, 0x80, 0x4a, 0x0d, 0xd9, 0x82, 0xba, 0xc7, 0xa6, 0xe3, 0x90, 0xa4,
3820 0xa8, 0x62, 0xdb, 0xd8, 0x4e, 0x10, 0x35, 0x1d, 0xd5, 0xa0, 0x3b, 0x00, 0x63, 0xc6, 0xc2, 0x14,
3821 0x72, 0xa3, 0x6d, 0x6c, 0x57, 0x0e, 0x57, 0x70, 0x35, 0x89, 0xe5, 0x80, 0x4f, 0x05, 0xa3, 0x29,
3822 0xa0, 0x94, 0xd6, 0x52, 0x4d, 0x62, 0x0a, 0xb0, 0x5f, 0x4e, 0xef, 0x69, 0xcd, 0xa0, 0x30, 0x60,
3823 0x3e, 0xda, 0x85, 0x6a, 0xae, 0xaf, 0xba, 0x56, 0xad, 0xdb, 0xb2, 0xb5, 0xc0, 0x76, 0xe6, 0x00,
3824 0xfb, 0x71, 0x86, 0xc0, 0x73, 0x30, 0x7a, 0x17, 0x4a, 0x93, 0x80, 0x84, 0x9e, 0x68, 0x9a, 0x4a,
3825 0x9b, 0x8d, 0xa5, 0xda, 0x64, 0x9d, 0xc3, 0x29, 0xd8, 0xfa, 0xcd, 0x80, 0x2a, 0x26, 0x13, 0xc2,
3826 0x09, 0x75, 0x09, 0x1a, 0x42, 0x9d, 0x93, 0x50, 0x1b, 0xe8, 0x24, 0xd0, 0x15, 0xac, 0x76, 0xef,
3827 0x2d, 0x3d, 0x2a, 0x67, 0xd9, 0x78, 0x81, 0x82, 0xcf, 0x1d, 0x80, 0x7a, 0x50, 0x57, 0x7e, 0x72,
3828 0xb5, 0x1f, 0x94, 0x1c, 0xb5, 0x6e, 0xfb, 0x2a, 0xdf, 0xe0, 0x9a, 0x98, 0x2f, 0x2c, 0x1b, 0xea,
3829 0x8b, 0x29, 0x50, 0x1d, 0x2a, 0xbd, 0xc3, 0xfe, 0xe0, 0xfd, 0xd1, 0xf0, 0xa0, 0xb1, 0x82, 0x1a,
3830 0x50, 0x3f, 0x18, 0x0e, 0x06, 0xc3, 0x4f, 0x8e, 0x47, 0x07, 0x78, 0x78, 0xd4, 0x30, 0xac, 0xaf,
3831 0x0b, 0x50, 0x4c, 0x0e, 0xfb, 0x57, 0x76, 0xe3, 0x3f, 0x64, 0x47, 0xaf, 0xc2, 0x2a, 0x8b, 0x09,
3832 0x57, 0xe9, 0x47, 0xd4, 0x89, 0x32, 0x4f, 0xde, 0xcc, 0xa3, 0x1f, 0x39, 0x11, 0x41, 0xf7, 0x01,
3833 0x78, 0xd6, 0x11, 0x91, 0xce, 0xc7, 0xe6, 0xe5, 0x8d, 0xc3, 0x0b, 0x0c, 0xd4, 0x83, 0x35, 0x21,
3834 0x1d, 0x2e, 0x47, 0x73, 0xfd, 0x8b, 0x57, 0xea, 0xbf, 0xaa, 0x28, 0xf9, 0x1a, 0xdd, 0x83, 0x35,
3835 0x6f, 0x9a, 0x96, 0x1a, 0x05, 0x2e, 0x67, 0x42, 0xb9, 0x52, 0x8f, 0xf1, 0x6a, 0xb6, 0x75, 0xa4,
3836 0x76, 0xd0, 0xdb, 0x50, 0x94, 0x8e, 0x2f, 0x9a, 0xa5, 0xeb, 0xf8, 0x45, 0x41, 0xd1, 0x9b, 0x50,
3837 0x0c, 0x99, 0x2f, 0x9a, 0x65, 0x45, 0x69, 0x2e, 0xa5, 0x0c, 0x98, 0x8f, 0x15, 0xca, 0x1a, 0x43,
3838 0x05, 0x93, 0x98, 0x71, 0x49, 0x38, 0xda, 0x82, 0x1a, 0x4f, 0xbf, 0xcf, 0x3f, 0x3d, 0x90, 0x85,
3839 0xfb, 0x5e, 0x5e, 0x51, 0xf1, 0xda, 0x15, 0x59, 0x12, 0x6e, 0x1e, 0x11, 0xc9, 0x03, 0x57, 0x1c,
3840 0x3b, 0x51, 0x1c, 0x12, 0x84, 0xa0, 0xa8, 0x44, 0xd2, 0x6f, 0x82, 0xfa, 0x3e, 0x3f, 0xef, 0xe6,
3841 0xb5, 0xe6, 0xbd, 0xb0, 0x64, 0xde, 0xe7, 0xd3, 0xfa, 0xa3, 0x09, 0x6b, 0x7d, 0x2a, 0x09, 0xa7,
3842 0x4e, 0x98, 0xa6, 0x5f, 0x26, 0xa0, 0xf1, 0x7f, 0x08, 0x68, 0x5e, 0x28, 0x60, 0xa6, 0x46, 0xe1,
3843 0x3a, 0x6a, 0xa0, 0x3d, 0x28, 0xb9, 0x6c, 0x4a, 0x65, 0xd6, 0x5e, 0x6b, 0x29, 0xfe, 0x5c, 0x33,
3844 0x71, 0xca, 0x48, 0xb8, 0xbe, 0x33, 0xf5, 0x49, 0x62, 0xa7, 0x6b, 0x73, 0x35, 0xc3, 0x7a, 0x1d,
3845 0x8a, 0x0f, 0xa6, 0xf2, 0x04, 0xdd, 0x85, 0xba, 0xe3, 0xba, 0x44, 0x88, 0x91, 0x64, 0x4f, 0x09,
3846 0x4d, 0x05, 0xaa, 0xe9, 0xd8, 0xe3, 0x24, 0x64, 0xfd, 0x64, 0xc2, 0x4d, 0xed, 0x18, 0x4c, 0x3e,
3847 0x9b, 0x12, 0x21, 0xd1, 0x7b, 0x50, 0xc9, 0xfc, 0x91, 0x76, 0x73, 0xe3, 0x82, 0x99, 0xd2, 0x20,
3848 0x9c, 0xc3, 0xd1, 0x0e, 0x14, 0x9d, 0xa9, 0x3c, 0x49, 0x9f, 0x9c, 0xf5, 0xa5, 0xb4, 0xa4, 0x30,
3849 0xac, 0x60, 0xa8, 0x03, 0x37, 0x92, 0xa9, 0xcf, 0xba, 0xb9, 0x7e, 0xe1, 0x23, 0x81, 0x35, 0x0e,
3850 0xed, 0xc1, 0x4b, 0xb9, 0xd2, 0x23, 0x36, 0x99, 0x08, 0x22, 0x17, 0x67, 0x4e, 0x59, 0x0c, 0xbf,
3851 0x90, 0x43, 0x86, 0x0a, 0x91, 0x2a, 0x37, 0x84, 0x46, 0x90, 0xda, 0x67, 0x14, 0xe9, 0xae, 0xa9,
3852 0x5f, 0x87, 0x5a, 0xf7, 0x95, 0xa5, 0x79, 0x9f, 0xf1, 0x1a, 0x5e, 0x0b, 0xce, 0x07, 0xac, 0xfb,
3853 0x50, 0xee, 0xb1, 0x28, 0x72, 0xa8, 0x87, 0x9a, 0x50, 0xf6, 0x02, 0xe1, 0x8c, 0x43, 0x3d, 0x03,
3854 0x15, 0x9c, 0x2d, 0xd1, 0x3a, 0x54, 0x3c, 0x32, 0x1b, 0x45, 0xcc, 0xd3, 0x53, 0x90, 0x6c, 0x91,
3855 0xd9, 0x11, 0xf3, 0x88, 0xf5, 0x83, 0x09, 0xab, 0x59, 0xe7, 0x45, 0xcc, 0xa8, 0x20, 0x68, 0x17,
3856 0x2a, 0xae, 0x3e, 0x52, 0x34, 0x0d, 0xd5, 0x93, 0xdb, 0x4b, 0x6b, 0x4b, 0xf3, 0xe2, 0x1c, 0x8d,
3857 0x1e, 0xc2, 0x2d, 0x4e, 0x5c, 0x12, 0xcc, 0xc8, 0xc2, 0x2c, 0x98, 0x57, 0xce, 0x42, 0x23, 0x25,
3858 0xcd, 0xa7, 0xa1, 0x0f, 0x48, 0x72, 0x87, 0x8a, 0x28, 0x58, 0x9c, 0xaa, 0xc2, 0x95, 0x27, 0xdd,
3859 0xca, 0x58, 0xf3, 0xa3, 0x5e, 0x84, 0x12, 0xe1, 0x9c, 0x71, 0xed, 0xfe, 0x2a, 0x4e, 0x57, 0xa8,
3860 0x05, 0x95, 0xcf, 0x1d, 0x4e, 0x03, 0xea, 0x6b, 0x6f, 0x57, 0x71, 0xbe, 0x4e, 0xfe, 0x84, 0x04,
3861 0x74, 0xc2, 0xf4, 0x0b, 0x59, 0xc5, 0x7a, 0xd1, 0xfd, 0xce, 0x80, 0x46, 0x2f, 0xbb, 0xfd, 0x31,
3862 0xe1, 0xb3, 0xc0, 0x25, 0xe8, 0x4b, 0x03, 0x4a, 0xba, 0x7f, 0xc8, 0xba, 0xc4, 0xa0, 0xa9, 0xad,
3863 0x5b, 0x5b, 0x97, 0x62, 0xb4, 0x00, 0xd6, 0xce, 0x57, 0xbf, 0xff, 0xfd, 0xad, 0xf9, 0x9a, 0xb5,
3864 0xa6, 0xfe, 0xda, 0xcd, 0xba, 0x1d, 0x6d, 0x6d, 0xb1, 0x67, 0xbc, 0xf1, 0xe4, 0x16, 0x7a, 0x36,
3865 0xba, 0xff, 0xe0, 0xe7, 0xb3, 0x4d, 0xe3, 0xd7, 0xb3, 0x4d, 0xe3, 0xcf, 0xb3, 0x4d, 0xe3, 0x9b,
3866 0xbf, 0x36, 0x57, 0x60, 0xdd, 0x65, 0xd1, 0x42, 0x22, 0xfd, 0x1f, 0xd4, 0xf6, 0x79, 0xec, 0x3e,
3867 0x32, 0x9e, 0xd4, 0xf2, 0xbc, 0xf1, 0xf8, 0x7b, 0xb3, 0x38, 0x38, 0x7e, 0xb4, 0x3f, 0x2e, 0xa9,
3868 0x5e, 0xbe, 0xf3, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe3, 0xdd, 0x4c, 0x6a, 0xce, 0x0a, 0x00,
3869 0x00,
3870 }