Debian Codegraph @

golang/protobuf/collectorpb/collector.pb.go

raw symbols SCIP
1 // Code generated by protoc-gen-go. 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/protobuf/collectorpb"
25
26 import proto "github.com/golang/protobuf/proto"
27 import fmt "fmt"
28 import math "math"
29 import google_protobuf "github.com/golang/protobuf/ptypes/timestamp"
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 // Reference imports to suppress errors if they are not otherwise used.
38 var _ = proto.Marshal
39 var _ = fmt.Errorf
40 var _ = math.Inf
41
42 // This is a compile-time assertion to ensure that this generated file
43 // is compatible with the proto package it is being compiled against.
44 // A compilation error at this line likely means your copy of the
45 // proto package needs to be updated.
46 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
47
48 type Reference_Relationship int32
49
50 const (
51 Reference_CHILD_OF Reference_Relationship = 0
52 Reference_FOLLOWS_FROM Reference_Relationship = 1
53 )
54
55 var Reference_Relationship_name = map[int32]string{
56 0: "CHILD_OF",
57 1: "FOLLOWS_FROM",
58 }
59 var Reference_Relationship_value = map[string]int32{
60 "CHILD_OF": 0,
61 "FOLLOWS_FROM": 1,
62 }
63
64 func (x Reference_Relationship) String() string {
65 return proto.EnumName(Reference_Relationship_name, int32(x))
66 }
67 func (Reference_Relationship) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{3, 0} }
68
69 type SpanContext struct {
70 TraceId uint64 `protobuf:"varint,1,opt,name=trace_id,json=traceId" json:"trace_id,omitempty"`
71 SpanId uint64 `protobuf:"varint,2,opt,name=span_id,json=spanId" json:"span_id,omitempty"`
72 Baggage map[string]string `protobuf:"bytes,3,rep,name=baggage" json:"baggage,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
73 }
74
75 func (m *SpanContext) Reset() { *m = SpanContext{} }
76 func (m *SpanContext) String() string { return proto.CompactTextString(m) }
77 func (*SpanContext) ProtoMessage() {}
78 func (*SpanContext) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
79
80 func (m *SpanContext) GetTraceId() uint64 {
81 if m != nil {
82 return m.TraceId
83 }
84 return 0
85 }
86
87 func (m *SpanContext) GetSpanId() uint64 {
88 if m != nil {
89 return m.SpanId
90 }
91 return 0
92 }
93
94 func (m *SpanContext) GetBaggage() map[string]string {
95 if m != nil {
96 return m.Baggage
97 }
98 return nil
99 }
100
101 // Represent both tags and log fields.
102 type KeyValue struct {
103 Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
104 // Types that are valid to be assigned to Value:
105 // *KeyValue_StringValue
106 // *KeyValue_IntValue
107 // *KeyValue_DoubleValue
108 // *KeyValue_BoolValue
109 // *KeyValue_JsonValue
110 Value isKeyValue_Value `protobuf_oneof:"value"`
111 }
112
113 func (m *KeyValue) Reset() { *m = KeyValue{} }
114 func (m *KeyValue) String() string { return proto.CompactTextString(m) }
115 func (*KeyValue) ProtoMessage() {}
116 func (*KeyValue) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
117
118 type isKeyValue_Value interface {
119 isKeyValue_Value()
120 }
121
122 type KeyValue_StringValue struct {
123 StringValue string `protobuf:"bytes,2,opt,name=string_value,json=stringValue,oneof"`
124 }
125 type KeyValue_IntValue struct {
126 IntValue int64 `protobuf:"varint,3,opt,name=int_value,json=intValue,oneof"`
127 }
128 type KeyValue_DoubleValue struct {
129 DoubleValue float64 `protobuf:"fixed64,4,opt,name=double_value,json=doubleValue,oneof"`
130 }
131 type KeyValue_BoolValue struct {
132 BoolValue bool `protobuf:"varint,5,opt,name=bool_value,json=boolValue,oneof"`
133 }
134 type KeyValue_JsonValue struct {
135 JsonValue string `protobuf:"bytes,6,opt,name=json_value,json=jsonValue,oneof"`
136 }
137
138 func (*KeyValue_StringValue) isKeyValue_Value() {}
139 func (*KeyValue_IntValue) isKeyValue_Value() {}
140 func (*KeyValue_DoubleValue) isKeyValue_Value() {}
141 func (*KeyValue_BoolValue) isKeyValue_Value() {}
142 func (*KeyValue_JsonValue) isKeyValue_Value() {}
143
144 func (m *KeyValue) GetValue() isKeyValue_Value {
145 if m != nil {
146 return m.Value
147 }
148 return nil
149 }
150
151 func (m *KeyValue) GetKey() string {
152 if m != nil {
153 return m.Key
154 }
155 return ""
156 }
157
158 func (m *KeyValue) GetStringValue() string {
159 if x, ok := m.GetValue().(*KeyValue_StringValue); ok {
160 return x.StringValue
161 }
162 return ""
163 }
164
165 func (m *KeyValue) GetIntValue() int64 {
166 if x, ok := m.GetValue().(*KeyValue_IntValue); ok {
167 return x.IntValue
168 }
169 return 0
170 }
171
172 func (m *KeyValue) GetDoubleValue() float64 {
173 if x, ok := m.GetValue().(*KeyValue_DoubleValue); ok {
174 return x.DoubleValue
175 }
176 return 0
177 }
178
179 func (m *KeyValue) GetBoolValue() bool {
180 if x, ok := m.GetValue().(*KeyValue_BoolValue); ok {
181 return x.BoolValue
182 }
183 return false
184 }
185
186 func (m *KeyValue) GetJsonValue() string {
187 if x, ok := m.GetValue().(*KeyValue_JsonValue); ok {
188 return x.JsonValue
189 }
190 return ""
191 }
192
193 // XXX_OneofFuncs is for the internal use of the proto package.
194 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{}) {
195 return _KeyValue_OneofMarshaler, _KeyValue_OneofUnmarshaler, _KeyValue_OneofSizer, []interface{}{
196 (*KeyValue_StringValue)(nil),
197 (*KeyValue_IntValue)(nil),
198 (*KeyValue_DoubleValue)(nil),
199 (*KeyValue_BoolValue)(nil),
200 (*KeyValue_JsonValue)(nil),
201 }
202 }
203
204 func _KeyValue_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
205 m := msg.(*KeyValue)
206 // value
207 switch x := m.Value.(type) {
208 case *KeyValue_StringValue:
209 b.EncodeVarint(2<<3 | proto.WireBytes)
210 b.EncodeStringBytes(x.StringValue)
211 case *KeyValue_IntValue:
212 b.EncodeVarint(3<<3 | proto.WireVarint)
213 b.EncodeVarint(uint64(x.IntValue))
214 case *KeyValue_DoubleValue:
215 b.EncodeVarint(4<<3 | proto.WireFixed64)
216 b.EncodeFixed64(math.Float64bits(x.DoubleValue))
217 case *KeyValue_BoolValue:
218 t := uint64(0)
219 if x.BoolValue {
220 t = 1
221 }
222 b.EncodeVarint(5<<3 | proto.WireVarint)
223 b.EncodeVarint(t)
224 case *KeyValue_JsonValue:
225 b.EncodeVarint(6<<3 | proto.WireBytes)
226 b.EncodeStringBytes(x.JsonValue)
227 case nil:
228 default:
229 return fmt.Errorf("KeyValue.Value has unexpected type %T", x)
230 }
231 return nil
232 }
233
234 func _KeyValue_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
235 m := msg.(*KeyValue)
236 switch tag {
237 case 2: // value.string_value
238 if wire != proto.WireBytes {
239 return true, proto.ErrInternalBadWireType
240 }
241 x, err := b.DecodeStringBytes()
242 m.Value = &KeyValue_StringValue{x}
243 return true, err
244 case 3: // value.int_value
245 if wire != proto.WireVarint {
246 return true, proto.ErrInternalBadWireType
247 }
248 x, err := b.DecodeVarint()
249 m.Value = &KeyValue_IntValue{int64(x)}
250 return true, err
251 case 4: // value.double_value
252 if wire != proto.WireFixed64 {
253 return true, proto.ErrInternalBadWireType
254 }
255 x, err := b.DecodeFixed64()
256 m.Value = &KeyValue_DoubleValue{math.Float64frombits(x)}
257 return true, err
258 case 5: // value.bool_value
259 if wire != proto.WireVarint {
260 return true, proto.ErrInternalBadWireType
261 }
262 x, err := b.DecodeVarint()
263 m.Value = &KeyValue_BoolValue{x != 0}
264 return true, err
265 case 6: // value.json_value
266 if wire != proto.WireBytes {
267 return true, proto.ErrInternalBadWireType
268 }
269 x, err := b.DecodeStringBytes()
270 m.Value = &KeyValue_JsonValue{x}
271 return true, err
272 default:
273 return false, nil
274 }
275 }
276
277 func _KeyValue_OneofSizer(msg proto.Message) (n int) {
278 m := msg.(*KeyValue)
279 // value
280 switch x := m.Value.(type) {
281 case *KeyValue_StringValue:
282 n += proto.SizeVarint(2<<3 | proto.WireBytes)
283 n += proto.SizeVarint(uint64(len(x.StringValue)))
284 n += len(x.StringValue)
285 case *KeyValue_IntValue:
286 n += proto.SizeVarint(3<<3 | proto.WireVarint)
287 n += proto.SizeVarint(uint64(x.IntValue))
288 case *KeyValue_DoubleValue:
289 n += proto.SizeVarint(4<<3 | proto.WireFixed64)
290 n += 8
291 case *KeyValue_BoolValue:
292 n += proto.SizeVarint(5<<3 | proto.WireVarint)
293 n += 1
294 case *KeyValue_JsonValue:
295 n += proto.SizeVarint(6<<3 | proto.WireBytes)
296 n += proto.SizeVarint(uint64(len(x.JsonValue)))
297 n += len(x.JsonValue)
298 case nil:
299 default:
300 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
301 }
302 return n
303 }
304
305 type Log struct {
306 Timestamp *google_protobuf.Timestamp `protobuf:"bytes,1,opt,name=timestamp" json:"timestamp,omitempty"`
307 Fields []*KeyValue `protobuf:"bytes,2,rep,name=fields" json:"fields,omitempty"`
308 }
309
310 func (m *Log) Reset() { *m = Log{} }
311 func (m *Log) String() string { return proto.CompactTextString(m) }
312 func (*Log) ProtoMessage() {}
313 func (*Log) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
314
315 func (m *Log) GetTimestamp() *google_protobuf.Timestamp {
316 if m != nil {
317 return m.Timestamp
318 }
319 return nil
320 }
321
322 func (m *Log) GetFields() []*KeyValue {
323 if m != nil {
324 return m.Fields
325 }
326 return nil
327 }
328
329 type Reference struct {
330 Relationship Reference_Relationship `protobuf:"varint,1,opt,name=relationship,enum=lightstep.collector.Reference_Relationship" json:"relationship,omitempty"`
331 SpanContext *SpanContext `protobuf:"bytes,2,opt,name=span_context,json=spanContext" json:"span_context,omitempty"`
332 }
333
334 func (m *Reference) Reset() { *m = Reference{} }
335 func (m *Reference) String() string { return proto.CompactTextString(m) }
336 func (*Reference) ProtoMessage() {}
337 func (*Reference) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
338
339 func (m *Reference) GetRelationship() Reference_Relationship {
340 if m != nil {
341 return m.Relationship
342 }
343 return Reference_CHILD_OF
344 }
345
346 func (m *Reference) GetSpanContext() *SpanContext {
347 if m != nil {
348 return m.SpanContext
349 }
350 return nil
351 }
352
353 type Span struct {
354 SpanContext *SpanContext `protobuf:"bytes,1,opt,name=span_context,json=spanContext" json:"span_context,omitempty"`
355 OperationName string `protobuf:"bytes,2,opt,name=operation_name,json=operationName" json:"operation_name,omitempty"`
356 References []*Reference `protobuf:"bytes,3,rep,name=references" json:"references,omitempty"`
357 StartTimestamp *google_protobuf.Timestamp `protobuf:"bytes,4,opt,name=start_timestamp,json=startTimestamp" json:"start_timestamp,omitempty"`
358 DurationMicros uint64 `protobuf:"varint,5,opt,name=duration_micros,json=durationMicros" json:"duration_micros,omitempty"`
359 Tags []*KeyValue `protobuf:"bytes,6,rep,name=tags" json:"tags,omitempty"`
360 Logs []*Log `protobuf:"bytes,7,rep,name=logs" json:"logs,omitempty"`
361 }
362
363 func (m *Span) Reset() { *m = Span{} }
364 func (m *Span) String() string { return proto.CompactTextString(m) }
365 func (*Span) ProtoMessage() {}
366 func (*Span) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
367
368 func (m *Span) GetSpanContext() *SpanContext {
369 if m != nil {
370 return m.SpanContext
371 }
372 return nil
373 }
374
375 func (m *Span) GetOperationName() string {
376 if m != nil {
377 return m.OperationName
378 }
379 return ""
380 }
381
382 func (m *Span) GetReferences() []*Reference {
383 if m != nil {
384 return m.References
385 }
386 return nil
387 }
388
389 func (m *Span) GetStartTimestamp() *google_protobuf.Timestamp {
390 if m != nil {
391 return m.StartTimestamp
392 }
393 return nil
394 }
395
396 func (m *Span) GetDurationMicros() uint64 {
397 if m != nil {
398 return m.DurationMicros
399 }
400 return 0
401 }
402
403 func (m *Span) GetTags() []*KeyValue {
404 if m != nil {
405 return m.Tags
406 }
407 return nil
408 }
409
410 func (m *Span) GetLogs() []*Log {
411 if m != nil {
412 return m.Logs
413 }
414 return nil
415 }
416
417 type Reporter struct {
418 ReporterId uint64 `protobuf:"varint,1,opt,name=reporter_id,json=reporterId" json:"reporter_id,omitempty"`
419 Tags []*KeyValue `protobuf:"bytes,4,rep,name=tags" json:"tags,omitempty"`
420 }
421
422 func (m *Reporter) Reset() { *m = Reporter{} }
423 func (m *Reporter) String() string { return proto.CompactTextString(m) }
424 func (*Reporter) ProtoMessage() {}
425 func (*Reporter) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
426
427 func (m *Reporter) GetReporterId() uint64 {
428 if m != nil {
429 return m.ReporterId
430 }
431 return 0
432 }
433
434 func (m *Reporter) GetTags() []*KeyValue {
435 if m != nil {
436 return m.Tags
437 }
438 return nil
439 }
440
441 type MetricsSample struct {
442 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
443 // Types that are valid to be assigned to Value:
444 // *MetricsSample_IntValue
445 // *MetricsSample_DoubleValue
446 Value isMetricsSample_Value `protobuf_oneof:"value"`
447 }
448
449 func (m *MetricsSample) Reset() { *m = MetricsSample{} }
450 func (m *MetricsSample) String() string { return proto.CompactTextString(m) }
451 func (*MetricsSample) ProtoMessage() {}
452 func (*MetricsSample) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
453
454 type isMetricsSample_Value interface {
455 isMetricsSample_Value()
456 }
457
458 type MetricsSample_IntValue struct {
459 IntValue int64 `protobuf:"varint,2,opt,name=int_value,json=intValue,oneof"`
460 }
461 type MetricsSample_DoubleValue struct {
462 DoubleValue float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue,oneof"`
463 }
464
465 func (*MetricsSample_IntValue) isMetricsSample_Value() {}
466 func (*MetricsSample_DoubleValue) isMetricsSample_Value() {}
467
468 func (m *MetricsSample) GetValue() isMetricsSample_Value {
469 if m != nil {
470 return m.Value
471 }
472 return nil
473 }
474
475 func (m *MetricsSample) GetName() string {
476 if m != nil {
477 return m.Name
478 }
479 return ""
480 }
481
482 func (m *MetricsSample) GetIntValue() int64 {
483 if x, ok := m.GetValue().(*MetricsSample_IntValue); ok {
484 return x.IntValue
485 }
486 return 0
487 }
488
489 func (m *MetricsSample) GetDoubleValue() float64 {
490 if x, ok := m.GetValue().(*MetricsSample_DoubleValue); ok {
491 return x.DoubleValue
492 }
493 return 0
494 }
495
496 // XXX_OneofFuncs is for the internal use of the proto package.
497 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{}) {
498 return _MetricsSample_OneofMarshaler, _MetricsSample_OneofUnmarshaler, _MetricsSample_OneofSizer, []interface{}{
499 (*MetricsSample_IntValue)(nil),
500 (*MetricsSample_DoubleValue)(nil),
501 }
502 }
503
504 func _MetricsSample_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
505 m := msg.(*MetricsSample)
506 // value
507 switch x := m.Value.(type) {
508 case *MetricsSample_IntValue:
509 b.EncodeVarint(2<<3 | proto.WireVarint)
510 b.EncodeVarint(uint64(x.IntValue))
511 case *MetricsSample_DoubleValue:
512 b.EncodeVarint(3<<3 | proto.WireFixed64)
513 b.EncodeFixed64(math.Float64bits(x.DoubleValue))
514 case nil:
515 default:
516 return fmt.Errorf("MetricsSample.Value has unexpected type %T", x)
517 }
518 return nil
519 }
520
521 func _MetricsSample_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
522 m := msg.(*MetricsSample)
523 switch tag {
524 case 2: // value.int_value
525 if wire != proto.WireVarint {
526 return true, proto.ErrInternalBadWireType
527 }
528 x, err := b.DecodeVarint()
529 m.Value = &MetricsSample_IntValue{int64(x)}
530 return true, err
531 case 3: // value.double_value
532 if wire != proto.WireFixed64 {
533 return true, proto.ErrInternalBadWireType
534 }
535 x, err := b.DecodeFixed64()
536 m.Value = &MetricsSample_DoubleValue{math.Float64frombits(x)}
537 return true, err
538 default:
539 return false, nil
540 }
541 }
542
543 func _MetricsSample_OneofSizer(msg proto.Message) (n int) {
544 m := msg.(*MetricsSample)
545 // value
546 switch x := m.Value.(type) {
547 case *MetricsSample_IntValue:
548 n += proto.SizeVarint(2<<3 | proto.WireVarint)
549 n += proto.SizeVarint(uint64(x.IntValue))
550 case *MetricsSample_DoubleValue:
551 n += proto.SizeVarint(3<<3 | proto.WireFixed64)
552 n += 8
553 case nil:
554 default:
555 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
556 }
557 return n
558 }
559
560 type InternalMetrics struct {
561 StartTimestamp *google_protobuf.Timestamp `protobuf:"bytes,1,opt,name=start_timestamp,json=startTimestamp" json:"start_timestamp,omitempty"`
562 DurationMicros uint64 `protobuf:"varint,2,opt,name=duration_micros,json=durationMicros" json:"duration_micros,omitempty"`
563 Logs []*Log `protobuf:"bytes,3,rep,name=logs" json:"logs,omitempty"`
564 Counts []*MetricsSample `protobuf:"bytes,4,rep,name=counts" json:"counts,omitempty"`
565 Gauges []*MetricsSample `protobuf:"bytes,5,rep,name=gauges" json:"gauges,omitempty"`
566 }
567
568 func (m *InternalMetrics) Reset() { *m = InternalMetrics{} }
569 func (m *InternalMetrics) String() string { return proto.CompactTextString(m) }
570 func (*InternalMetrics) ProtoMessage() {}
571 func (*InternalMetrics) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
572
573 func (m *InternalMetrics) GetStartTimestamp() *google_protobuf.Timestamp {
574 if m != nil {
575 return m.StartTimestamp
576 }
577 return nil
578 }
579
580 func (m *InternalMetrics) GetDurationMicros() uint64 {
581 if m != nil {
582 return m.DurationMicros
583 }
584 return 0
585 }
586
587 func (m *InternalMetrics) GetLogs() []*Log {
588 if m != nil {
589 return m.Logs
590 }
591 return nil
592 }
593
594 func (m *InternalMetrics) GetCounts() []*MetricsSample {
595 if m != nil {
596 return m.Counts
597 }
598 return nil
599 }
600
601 func (m *InternalMetrics) GetGauges() []*MetricsSample {
602 if m != nil {
603 return m.Gauges
604 }
605 return nil
606 }
607
608 type Auth struct {
609 AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken" json:"access_token,omitempty"`
610 }
611
612 func (m *Auth) Reset() { *m = Auth{} }
613 func (m *Auth) String() string { return proto.CompactTextString(m) }
614 func (*Auth) ProtoMessage() {}
615 func (*Auth) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
616
617 func (m *Auth) GetAccessToken() string {
618 if m != nil {
619 return m.AccessToken
620 }
621 return ""
622 }
623
624 type ReportRequest struct {
625 Reporter *Reporter `protobuf:"bytes,1,opt,name=reporter" json:"reporter,omitempty"`
626 Auth *Auth `protobuf:"bytes,2,opt,name=auth" json:"auth,omitempty"`
627 Spans []*Span `protobuf:"bytes,3,rep,name=spans" json:"spans,omitempty"`
628 TimestampOffsetMicros int64 `protobuf:"varint,5,opt,name=timestamp_offset_micros,json=timestampOffsetMicros" json:"timestamp_offset_micros,omitempty"`
629 InternalMetrics *InternalMetrics `protobuf:"bytes,6,opt,name=internal_metrics,json=internalMetrics" json:"internal_metrics,omitempty"`
630 }
631
632 func (m *ReportRequest) Reset() { *m = ReportRequest{} }
633 func (m *ReportRequest) String() string { return proto.CompactTextString(m) }
634 func (*ReportRequest) ProtoMessage() {}
635 func (*ReportRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
636
637 func (m *ReportRequest) GetReporter() *Reporter {
638 if m != nil {
639 return m.Reporter
640 }
641 return nil
642 }
643
644 func (m *ReportRequest) GetAuth() *Auth {
645 if m != nil {
646 return m.Auth
647 }
648 return nil
649 }
650
651 func (m *ReportRequest) GetSpans() []*Span {
652 if m != nil {
653 return m.Spans
654 }
655 return nil
656 }
657
658 func (m *ReportRequest) GetTimestampOffsetMicros() int64 {
659 if m != nil {
660 return m.TimestampOffsetMicros
661 }
662 return 0
663 }
664
665 func (m *ReportRequest) GetInternalMetrics() *InternalMetrics {
666 if m != nil {
667 return m.InternalMetrics
668 }
669 return nil
670 }
671
672 type Command struct {
673 Disable bool `protobuf:"varint,1,opt,name=disable" json:"disable,omitempty"`
674 DevMode bool `protobuf:"varint,2,opt,name=dev_mode,json=devMode" json:"dev_mode,omitempty"`
675 }
676
677 func (m *Command) Reset() { *m = Command{} }
678 func (m *Command) String() string { return proto.CompactTextString(m) }
679 func (*Command) ProtoMessage() {}
680 func (*Command) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
681
682 func (m *Command) GetDisable() bool {
683 if m != nil {
684 return m.Disable
685 }
686 return false
687 }
688
689 func (m *Command) GetDevMode() bool {
690 if m != nil {
691 return m.DevMode
692 }
693 return false
694 }
695
696 type ReportResponse struct {
697 Commands []*Command `protobuf:"bytes,1,rep,name=commands" json:"commands,omitempty"`
698 ReceiveTimestamp *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=receive_timestamp,json=receiveTimestamp" json:"receive_timestamp,omitempty"`
699 TransmitTimestamp *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=transmit_timestamp,json=transmitTimestamp" json:"transmit_timestamp,omitempty"`
700 Errors []string `protobuf:"bytes,4,rep,name=errors" json:"errors,omitempty"`
701 Warnings []string `protobuf:"bytes,5,rep,name=warnings" json:"warnings,omitempty"`
702 Infos []string `protobuf:"bytes,6,rep,name=infos" json:"infos,omitempty"`
703 }
704
705 func (m *ReportResponse) Reset() { *m = ReportResponse{} }
706 func (m *ReportResponse) String() string { return proto.CompactTextString(m) }
707 func (*ReportResponse) ProtoMessage() {}
708 func (*ReportResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
709
710 func (m *ReportResponse) GetCommands() []*Command {
711 if m != nil {
712 return m.Commands
713 }
714 return nil
715 }
716
717 func (m *ReportResponse) GetReceiveTimestamp() *google_protobuf.Timestamp {
718 if m != nil {
719 return m.ReceiveTimestamp
720 }
721 return nil
722 }
723
724 func (m *ReportResponse) GetTransmitTimestamp() *google_protobuf.Timestamp {
725 if m != nil {
726 return m.TransmitTimestamp
727 }
728 return nil
729 }
730
731 func (m *ReportResponse) GetErrors() []string {
732 if m != nil {
733 return m.Errors
734 }
735 return nil
736 }
737
738 func (m *ReportResponse) GetWarnings() []string {
739 if m != nil {
740 return m.Warnings
741 }
742 return nil
743 }
744
745 func (m *ReportResponse) GetInfos() []string {
746 if m != nil {
747 return m.Infos
748 }
749 return nil
750 }
751
752 func init() {
753 proto.RegisterType((*SpanContext)(nil), "lightstep.collector.SpanContext")
754 proto.RegisterType((*KeyValue)(nil), "lightstep.collector.KeyValue")
755 proto.RegisterType((*Log)(nil), "lightstep.collector.Log")
756 proto.RegisterType((*Reference)(nil), "lightstep.collector.Reference")
757 proto.RegisterType((*Span)(nil), "lightstep.collector.Span")
758 proto.RegisterType((*Reporter)(nil), "lightstep.collector.Reporter")
759 proto.RegisterType((*MetricsSample)(nil), "lightstep.collector.MetricsSample")
760 proto.RegisterType((*InternalMetrics)(nil), "lightstep.collector.InternalMetrics")
761 proto.RegisterType((*Auth)(nil), "lightstep.collector.Auth")
762 proto.RegisterType((*ReportRequest)(nil), "lightstep.collector.ReportRequest")
763 proto.RegisterType((*Command)(nil), "lightstep.collector.Command")
764 proto.RegisterType((*ReportResponse)(nil), "lightstep.collector.ReportResponse")
765 proto.RegisterEnum("lightstep.collector.Reference_Relationship", Reference_Relationship_name, Reference_Relationship_value)
766 }
767
768 // Reference imports to suppress errors if they are not otherwise used.
769 var _ context.Context
770 var _ grpc.ClientConn
771
772 // This is a compile-time assertion to ensure that this generated file
773 // is compatible with the grpc package it is being compiled against.
774 const _ = grpc.SupportPackageIsVersion4
775
776 // Client API for CollectorService service
777
778 type CollectorServiceClient interface {
779 Report(ctx context.Context, in *ReportRequest, opts ...grpc.CallOption) (*ReportResponse, error)
780 }
781
782 type collectorServiceClient struct {
783 cc *grpc.ClientConn
784 }
785
786 func NewCollectorServiceClient(cc *grpc.ClientConn) CollectorServiceClient {
787 return &collectorServiceClient{cc}
788 }
789
790 func (c *collectorServiceClient) Report(ctx context.Context, in *ReportRequest, opts ...grpc.CallOption) (*ReportResponse, error) {
791 out := new(ReportResponse)
792 err := grpc.Invoke(ctx, "/lightstep.collector.CollectorService/Report", in, out, c.cc, opts...)
793 if err != nil {
794 return nil, err
795 }
796 return out, nil
797 }
798
799 // Server API for CollectorService service
800
801 type CollectorServiceServer interface {
802 Report(context.Context, *ReportRequest) (*ReportResponse, error)
803 }
804
805 func RegisterCollectorServiceServer(s *grpc.Server, srv CollectorServiceServer) {
806 s.RegisterService(&_CollectorService_serviceDesc, srv)
807 }
808
809 func _CollectorService_Report_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
810 in := new(ReportRequest)
811 if err := dec(in); err != nil {
812 return nil, err
813 }
814 if interceptor == nil {
815 return srv.(CollectorServiceServer).Report(ctx, in)
816 }
817 info := &grpc.UnaryServerInfo{
818 Server: srv,
819 FullMethod: "/lightstep.collector.CollectorService/Report",
820 }
821 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
822 return srv.(CollectorServiceServer).Report(ctx, req.(*ReportRequest))
823 }
824 return interceptor(ctx, in, info, handler)
825 }
826
827 var _CollectorService_serviceDesc = grpc.ServiceDesc{
828 ServiceName: "lightstep.collector.CollectorService",
829 HandlerType: (*CollectorServiceServer)(nil),
830 Methods: []grpc.MethodDesc{
831 {
832 MethodName: "Report",
833 Handler: _CollectorService_Report_Handler,
834 },
835 },
836 Streams: []grpc.StreamDesc{},
837 Metadata: "github.com/lightstep/lightstep-tracer-common/tmpgen/collector.proto",
838 }
839
840 func init() {
841 proto.RegisterFile("github.com/lightstep/lightstep-tracer-common/tmpgen/collector.proto", fileDescriptor0)
842 }
843
844 var fileDescriptor0 = []byte{
845 // 1116 bytes of a gzipped FileDescriptorProto
846 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xdd, 0x6e, 0x1b, 0x45,
847 0x14, 0xce, 0xae, 0x5d, 0xff, 0x1c, 0xbb, 0x89, 0x3b, 0xfc, 0x39, 0xa6, 0xa5, 0xee, 0x06, 0x44,
848 0xa0, 0x64, 0x4d, 0x8d, 0x90, 0x4a, 0x2e, 0x2a, 0x11, 0x43, 0x1a, 0x0b, 0x07, 0x57, 0x93, 0x0a,
849 0xa4, 0xde, 0x58, 0xe3, 0xdd, 0xf1, 0x66, 0xe9, 0xee, 0xcc, 0x32, 0x33, 0x36, 0xe4, 0x0e, 0x21,
850 0xf1, 0x04, 0x88, 0x17, 0xe0, 0x0a, 0x9e, 0x80, 0xb7, 0x40, 0x42, 0xf0, 0x08, 0x3c, 0x08, 0xda,
851 0x99, 0xdd, 0xb5, 0x53, 0x9c, 0x1f, 0x21, 0xee, 0x76, 0xce, 0x7c, 0xdf, 0x9c, 0x33, 0xe7, 0xfb,
852 0xce, 0xd8, 0x30, 0x08, 0x42, 0x75, 0x3a, 0x9f, 0xba, 0x1e, 0x8f, 0x7b, 0x51, 0x18, 0x9c, 0x2a,
853 0xa9, 0x68, 0xb2, 0xfc, 0xda, 0x53, 0x82, 0x78, 0x54, 0xec, 0x79, 0x3c, 0x8e, 0x39, 0xeb, 0xa9,
854 0x38, 0x09, 0x28, 0xeb, 0x79, 0x3c, 0x8a, 0xa8, 0xa7, 0xb8, 0x70, 0x13, 0xc1, 0x15, 0x47, 0x2f,
855 0x15, 0x78, 0xb7, 0xd8, 0xea, 0xdc, 0x0d, 0x38, 0x0f, 0x22, 0xda, 0xd3, 0x90, 0xe9, 0x7c, 0xd6,
856 0x53, 0x61, 0x4c, 0xa5, 0x22, 0x71, 0x62, 0x58, 0x9d, 0xdb, 0x19, 0x80, 0x24, 0x61, 0x8f, 0x30,
857 0xc6, 0x15, 0x51, 0x21, 0x67, 0xd2, 0xec, 0x3a, 0xbf, 0x5b, 0xd0, 0x38, 0x49, 0x08, 0x1b, 0x70,
858 0xa6, 0xe8, 0xb7, 0x0a, 0xdd, 0x81, 0x9a, 0xae, 0x65, 0x12, 0xfa, 0x6d, 0xab, 0x6b, 0xed, 0x96,
859 0x0f, 0xec, 0xf7, 0x2d, 0x5c, 0xd5, 0xb1, 0xa1, 0x8f, 0x5e, 0x87, 0xaa, 0x4c, 0x08, 0x4b, 0x77,
860 0xed, 0x62, 0xb7, 0x92, 0x86, 0x86, 0x3e, 0x7a, 0x0c, 0xd5, 0x29, 0x09, 0x02, 0x12, 0xd0, 0x76,
861 0xa9, 0x5b, 0xda, 0x6d, 0xf4, 0xf7, 0xdc, 0x35, 0x15, 0xbb, 0x2b, 0xe9, 0xdc, 0x03, 0x83, 0xff,
862 0x94, 0x29, 0x71, 0x86, 0x73, 0x76, 0x67, 0x1f, 0x9a, 0xab, 0x1b, 0xa8, 0x05, 0xa5, 0xe7, 0xf4,
863 0x4c, 0xd7, 0x53, 0xc7, 0xe9, 0x27, 0x7a, 0x19, 0x6e, 0x2c, 0x48, 0x34, 0xa7, 0xba, 0x8a, 0x3a,
864 0x36, 0x8b, 0x7d, 0xfb, 0xa1, 0xe5, 0xfc, 0x65, 0x41, 0xed, 0x33, 0x7a, 0xf6, 0x45, 0x1a, 0x58,
865 0x43, 0xdc, 0x81, 0xa6, 0x54, 0x22, 0x64, 0xc1, 0x64, 0x85, 0x7f, 0xb4, 0x81, 0x1b, 0x26, 0x6a,
866 0x68, 0xf7, 0xa0, 0x1e, 0x32, 0x95, 0x21, 0x4a, 0x5d, 0x6b, 0xb7, 0x94, 0xde, 0xf3, 0x68, 0x03,
867 0xd7, 0x42, 0xa6, 0x0c, 0x64, 0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xca, 0xd2, 0xaf,
890 0x13, 0xd0, 0xfa, 0x3f, 0x04, 0xb4, 0x2f, 0x14, 0x30, 0x57, 0xa3, 0x74, 0x1d, 0x35, 0xd0, 0x3e,
891 0x54, 0x3c, 0x3e, 0x67, 0x2a, 0x6f, 0xaf, 0xb3, 0x16, 0x7f, 0xae, 0x99, 0x38, 0x63, 0xa4, 0xdc,
892 0x80, 0xcc, 0x03, 0x9a, 0xda, 0xe9, 0xda, 0x5c, 0xc3, 0x70, 0xde, 0x81, 0xf2, 0xc7, 0x73, 0x75,
893 0x8a, 0xee, 0x41, 0x93, 0x78, 0x1e, 0x95, 0x72, 0xa2, 0xf8, 0x73, 0xca, 0x32, 0x81, 0x1a, 0x26,
894 0xf6, 0x34, 0x0d, 0x39, 0xbf, 0xd9, 0x70, 0xd3, 0x38, 0x06, 0xd3, 0xaf, 0xe7, 0x54, 0x2a, 0xf4,
895 0x11, 0xd4, 0x72, 0x7f, 0x64, 0xdd, 0xbc, 0x73, 0xc1, 0x4c, 0x19, 0x10, 0x2e, 0xe0, 0x68, 0x0f,
896 0xca, 0x64, 0xae, 0x4e, 0xb3, 0x27, 0x67, 0x7b, 0x2d, 0x2d, 0x2d, 0x0c, 0x6b, 0x18, 0xea, 0xc1,
897 0x8d, 0x74, 0xea, 0xf3, 0x6e, 0x6e, 0x5f, 0xf8, 0x48, 0x60, 0x83, 0x43, 0xfb, 0xf0, 0x5a, 0xa1,
898 0xf4, 0x84, 0xcf, 0x66, 0x92, 0xaa, 0xd5, 0x99, 0xd3, 0x16, 0xc3, 0xaf, 0x14, 0x90, 0xb1, 0x46,
899 0x64, 0xca, 0x8d, 0xa1, 0x15, 0x66, 0xf6, 0x99, 0xc4, 0xa6, 0x6b, 0xfa, 0xd7, 0xa1, 0xd1, 0x7f,
900 0x73, 0x6d, 0xde, 0x17, 0xbc, 0x86, 0xb7, 0xc2, 0xf3, 0x01, 0xe7, 0x11, 0x54, 0x07, 0x3c, 0x8e,
901 0x09, 0xf3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0xdd, 0x67, 0xb7, 0xd0, 0x8b, 0xd1, 0x83, 0x07, 0xb0, 0xed,
913 0xf1, 0x78, 0xe5, 0x60, 0xf3, 0x9f, 0xd3, 0x0d, 0x44, 0xe2, 0x3d, 0xb1, 0x9e, 0x35, 0x8a, 0x3c,
914 0xc9, 0xf4, 0x67, 0xbb, 0x3c, 0x3a, 0x79, 0x72, 0x30, 0xad, 0xe8, 0xde, 0x7d, 0xf0, 0x4f, 0x00,
915 0x00, 0x00, 0xff, 0xff, 0xfb, 0x9f, 0x66, 0xc4, 0xbe, 0x0a, 0x00, 0x00,
916 }