/
sensor.pb.go
761 lines (681 loc) · 27.5 KB
/
sensor.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: api/proto/sensor.proto
package lsfn
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// This gives the difference between a control that is boolean, one that's an int, and one that's a float.
type SensorDescription_SensorType int32
const (
// Galactic Coordinates defined as a position in the Galaxy.
SensorDescription_GalacticCoordinates SensorDescription_SensorType = 0
// Radar
SensorDescription_VolumetricRadar SensorDescription_SensorType = 1
// Identify-Friend-Foe Detector
SensorDescription_IFFScanner SensorDescription_SensorType = 2
)
var SensorDescription_SensorType_name = map[int32]string{
0: "GalacticCoordinates",
1: "VolumetricRadar",
2: "IFFScanner",
}
var SensorDescription_SensorType_value = map[string]int32{
"GalacticCoordinates": 0,
"VolumetricRadar": 1,
"IFFScanner": 2,
}
func (x SensorDescription_SensorType) String() string {
return proto.EnumName(SensorDescription_SensorType_name, int32(x))
}
func (SensorDescription_SensorType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_sensor_3da753cdae3df91e, []int{0, 0}
}
// Describe a Sensor. Sensors are things that the ship knows. For example it's galactic position is a sensor, radar is a
// sensor. Sensors aren't changed, only described.
type SensorDescription struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
SensorType SensorDescription_SensorType `protobuf:"varint,3,opt,name=sensorType,proto3,enum=lsfn.SensorDescription_SensorType" json:"sensorType,omitempty"`
// Only provided for Volumetric Radar type
RadarRange *VolumetricRange `protobuf:"bytes,4,opt,name=radarRange,proto3" json:"radarRange,omitempty"`
// Only provided for IFF Detector type
IffDetectorRange *VolumetricRange `protobuf:"bytes,5,opt,name=iffDetectorRange,proto3" json:"iffDetectorRange,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SensorDescription) Reset() { *m = SensorDescription{} }
func (m *SensorDescription) String() string { return proto.CompactTextString(m) }
func (*SensorDescription) ProtoMessage() {}
func (*SensorDescription) Descriptor() ([]byte, []int) {
return fileDescriptor_sensor_3da753cdae3df91e, []int{0}
}
func (m *SensorDescription) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SensorDescription.Unmarshal(m, b)
}
func (m *SensorDescription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SensorDescription.Marshal(b, m, deterministic)
}
func (dst *SensorDescription) XXX_Merge(src proto.Message) {
xxx_messageInfo_SensorDescription.Merge(dst, src)
}
func (m *SensorDescription) XXX_Size() int {
return xxx_messageInfo_SensorDescription.Size(m)
}
func (m *SensorDescription) XXX_DiscardUnknown() {
xxx_messageInfo_SensorDescription.DiscardUnknown(m)
}
var xxx_messageInfo_SensorDescription proto.InternalMessageInfo
func (m *SensorDescription) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *SensorDescription) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *SensorDescription) GetSensorType() SensorDescription_SensorType {
if m != nil {
return m.SensorType
}
return SensorDescription_GalacticCoordinates
}
func (m *SensorDescription) GetRadarRange() *VolumetricRange {
if m != nil {
return m.RadarRange
}
return nil
}
func (m *SensorDescription) GetIffDetectorRange() *VolumetricRange {
if m != nil {
return m.IffDetectorRange
}
return nil
}
type GalacticCoordinate struct {
// Okay we're totally cheating here and using X, Y, and Z. This should be more
// complex. https://en.wikipedia.org/wiki/Galactic_coordinate_system Regardless, these are *global* coordinates and
// are not relative to the ship like the IFF and Radar coordinates are.
X float64 `protobuf:"fixed64,1,opt,name=x,proto3" json:"x,omitempty"`
Y float64 `protobuf:"fixed64,2,opt,name=y,proto3" json:"y,omitempty"`
Z float64 `protobuf:"fixed64,3,opt,name=z,proto3" json:"z,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GalacticCoordinate) Reset() { *m = GalacticCoordinate{} }
func (m *GalacticCoordinate) String() string { return proto.CompactTextString(m) }
func (*GalacticCoordinate) ProtoMessage() {}
func (*GalacticCoordinate) Descriptor() ([]byte, []int) {
return fileDescriptor_sensor_3da753cdae3df91e, []int{1}
}
func (m *GalacticCoordinate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GalacticCoordinate.Unmarshal(m, b)
}
func (m *GalacticCoordinate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GalacticCoordinate.Marshal(b, m, deterministic)
}
func (dst *GalacticCoordinate) XXX_Merge(src proto.Message) {
xxx_messageInfo_GalacticCoordinate.Merge(dst, src)
}
func (m *GalacticCoordinate) XXX_Size() int {
return xxx_messageInfo_GalacticCoordinate.Size(m)
}
func (m *GalacticCoordinate) XXX_DiscardUnknown() {
xxx_messageInfo_GalacticCoordinate.DiscardUnknown(m)
}
var xxx_messageInfo_GalacticCoordinate proto.InternalMessageInfo
func (m *GalacticCoordinate) GetX() float64 {
if m != nil {
return m.X
}
return 0
}
func (m *GalacticCoordinate) GetY() float64 {
if m != nil {
return m.Y
}
return 0
}
func (m *GalacticCoordinate) GetZ() float64 {
if m != nil {
return m.Z
}
return 0
}
type ShipRelativeCoordinate struct {
// XYZ coordinate centered on the ship at `(0, 0, 0)`. Scale the same as volumetric data.
X float64 `protobuf:"fixed64,1,opt,name=x,proto3" json:"x,omitempty"`
Y float64 `protobuf:"fixed64,2,opt,name=y,proto3" json:"y,omitempty"`
Z float64 `protobuf:"fixed64,3,opt,name=z,proto3" json:"z,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ShipRelativeCoordinate) Reset() { *m = ShipRelativeCoordinate{} }
func (m *ShipRelativeCoordinate) String() string { return proto.CompactTextString(m) }
func (*ShipRelativeCoordinate) ProtoMessage() {}
func (*ShipRelativeCoordinate) Descriptor() ([]byte, []int) {
return fileDescriptor_sensor_3da753cdae3df91e, []int{2}
}
func (m *ShipRelativeCoordinate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ShipRelativeCoordinate.Unmarshal(m, b)
}
func (m *ShipRelativeCoordinate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ShipRelativeCoordinate.Marshal(b, m, deterministic)
}
func (dst *ShipRelativeCoordinate) XXX_Merge(src proto.Message) {
xxx_messageInfo_ShipRelativeCoordinate.Merge(dst, src)
}
func (m *ShipRelativeCoordinate) XXX_Size() int {
return xxx_messageInfo_ShipRelativeCoordinate.Size(m)
}
func (m *ShipRelativeCoordinate) XXX_DiscardUnknown() {
xxx_messageInfo_ShipRelativeCoordinate.DiscardUnknown(m)
}
var xxx_messageInfo_ShipRelativeCoordinate proto.InternalMessageInfo
func (m *ShipRelativeCoordinate) GetX() float64 {
if m != nil {
return m.X
}
return 0
}
func (m *ShipRelativeCoordinate) GetY() float64 {
if m != nil {
return m.Y
}
return 0
}
func (m *ShipRelativeCoordinate) GetZ() float64 {
if m != nil {
return m.Z
}
return 0
}
type IFFPing struct {
Location *ShipRelativeCoordinate `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *IFFPing) Reset() { *m = IFFPing{} }
func (m *IFFPing) String() string { return proto.CompactTextString(m) }
func (*IFFPing) ProtoMessage() {}
func (*IFFPing) Descriptor() ([]byte, []int) {
return fileDescriptor_sensor_3da753cdae3df91e, []int{3}
}
func (m *IFFPing) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IFFPing.Unmarshal(m, b)
}
func (m *IFFPing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IFFPing.Marshal(b, m, deterministic)
}
func (dst *IFFPing) XXX_Merge(src proto.Message) {
xxx_messageInfo_IFFPing.Merge(dst, src)
}
func (m *IFFPing) XXX_Size() int {
return xxx_messageInfo_IFFPing.Size(m)
}
func (m *IFFPing) XXX_DiscardUnknown() {
xxx_messageInfo_IFFPing.DiscardUnknown(m)
}
var xxx_messageInfo_IFFPing proto.InternalMessageInfo
func (m *IFFPing) GetLocation() *ShipRelativeCoordinate {
if m != nil {
return m.Location
}
return nil
}
func (m *IFFPing) GetName() string {
if m != nil {
return m.Name
}
return ""
}
type IFFReadout struct {
Pings []*IFFPing `protobuf:"bytes,1,rep,name=pings,proto3" json:"pings,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *IFFReadout) Reset() { *m = IFFReadout{} }
func (m *IFFReadout) String() string { return proto.CompactTextString(m) }
func (*IFFReadout) ProtoMessage() {}
func (*IFFReadout) Descriptor() ([]byte, []int) {
return fileDescriptor_sensor_3da753cdae3df91e, []int{4}
}
func (m *IFFReadout) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IFFReadout.Unmarshal(m, b)
}
func (m *IFFReadout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IFFReadout.Marshal(b, m, deterministic)
}
func (dst *IFFReadout) XXX_Merge(src proto.Message) {
xxx_messageInfo_IFFReadout.Merge(dst, src)
}
func (m *IFFReadout) XXX_Size() int {
return xxx_messageInfo_IFFReadout.Size(m)
}
func (m *IFFReadout) XXX_DiscardUnknown() {
xxx_messageInfo_IFFReadout.DiscardUnknown(m)
}
var xxx_messageInfo_IFFReadout proto.InternalMessageInfo
func (m *IFFReadout) GetPings() []*IFFPing {
if m != nil {
return m.Pings
}
return nil
}
type VolumetricRange struct {
// This is a little complex as the volumentric data is just given as a 3D array. So this gives you the offests to
// figure out where the ship is in that (as it's centered on the ship). So if `upY` is 20 and `downY` is 40 then you
// expect a y dimention in the volumetric data of size 60, where the ship is 20 from the top.
LeftX int32 `protobuf:"varint,1,opt,name=leftX,proto3" json:"leftX,omitempty"`
RightX int32 `protobuf:"varint,2,opt,name=rightX,proto3" json:"rightX,omitempty"`
UpY int32 `protobuf:"varint,3,opt,name=upY,proto3" json:"upY,omitempty"`
DownY int32 `protobuf:"varint,4,opt,name=downY,proto3" json:"downY,omitempty"`
ForwardsZ int32 `protobuf:"varint,5,opt,name=forwardsZ,proto3" json:"forwardsZ,omitempty"`
BackwardsZ int32 `protobuf:"varint,6,opt,name=backwardsZ,proto3" json:"backwardsZ,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VolumetricRange) Reset() { *m = VolumetricRange{} }
func (m *VolumetricRange) String() string { return proto.CompactTextString(m) }
func (*VolumetricRange) ProtoMessage() {}
func (*VolumetricRange) Descriptor() ([]byte, []int) {
return fileDescriptor_sensor_3da753cdae3df91e, []int{5}
}
func (m *VolumetricRange) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VolumetricRange.Unmarshal(m, b)
}
func (m *VolumetricRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VolumetricRange.Marshal(b, m, deterministic)
}
func (dst *VolumetricRange) XXX_Merge(src proto.Message) {
xxx_messageInfo_VolumetricRange.Merge(dst, src)
}
func (m *VolumetricRange) XXX_Size() int {
return xxx_messageInfo_VolumetricRange.Size(m)
}
func (m *VolumetricRange) XXX_DiscardUnknown() {
xxx_messageInfo_VolumetricRange.DiscardUnknown(m)
}
var xxx_messageInfo_VolumetricRange proto.InternalMessageInfo
func (m *VolumetricRange) GetLeftX() int32 {
if m != nil {
return m.LeftX
}
return 0
}
func (m *VolumetricRange) GetRightX() int32 {
if m != nil {
return m.RightX
}
return 0
}
func (m *VolumetricRange) GetUpY() int32 {
if m != nil {
return m.UpY
}
return 0
}
func (m *VolumetricRange) GetDownY() int32 {
if m != nil {
return m.DownY
}
return 0
}
func (m *VolumetricRange) GetForwardsZ() int32 {
if m != nil {
return m.ForwardsZ
}
return 0
}
func (m *VolumetricRange) GetBackwardsZ() int32 {
if m != nil {
return m.BackwardsZ
}
return 0
}
type VolumetricData struct {
Palnes []*VolumetricDataPlane `protobuf:"bytes,1,rep,name=palnes,proto3" json:"palnes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VolumetricData) Reset() { *m = VolumetricData{} }
func (m *VolumetricData) String() string { return proto.CompactTextString(m) }
func (*VolumetricData) ProtoMessage() {}
func (*VolumetricData) Descriptor() ([]byte, []int) {
return fileDescriptor_sensor_3da753cdae3df91e, []int{6}
}
func (m *VolumetricData) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VolumetricData.Unmarshal(m, b)
}
func (m *VolumetricData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VolumetricData.Marshal(b, m, deterministic)
}
func (dst *VolumetricData) XXX_Merge(src proto.Message) {
xxx_messageInfo_VolumetricData.Merge(dst, src)
}
func (m *VolumetricData) XXX_Size() int {
return xxx_messageInfo_VolumetricData.Size(m)
}
func (m *VolumetricData) XXX_DiscardUnknown() {
xxx_messageInfo_VolumetricData.DiscardUnknown(m)
}
var xxx_messageInfo_VolumetricData proto.InternalMessageInfo
func (m *VolumetricData) GetPalnes() []*VolumetricDataPlane {
if m != nil {
return m.Palnes
}
return nil
}
// Okay three dimentional volumetric data is hard okay! Each cell is a float that describes the intensity of the
// thinig in that cell from 0.0f to 1.0f.
type VolumetricDataPlane struct {
Lines []*VolumetricDataPlaneLine `protobuf:"bytes,1,rep,name=lines,proto3" json:"lines,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VolumetricDataPlane) Reset() { *m = VolumetricDataPlane{} }
func (m *VolumetricDataPlane) String() string { return proto.CompactTextString(m) }
func (*VolumetricDataPlane) ProtoMessage() {}
func (*VolumetricDataPlane) Descriptor() ([]byte, []int) {
return fileDescriptor_sensor_3da753cdae3df91e, []int{6, 0}
}
func (m *VolumetricDataPlane) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VolumetricDataPlane.Unmarshal(m, b)
}
func (m *VolumetricDataPlane) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VolumetricDataPlane.Marshal(b, m, deterministic)
}
func (dst *VolumetricDataPlane) XXX_Merge(src proto.Message) {
xxx_messageInfo_VolumetricDataPlane.Merge(dst, src)
}
func (m *VolumetricDataPlane) XXX_Size() int {
return xxx_messageInfo_VolumetricDataPlane.Size(m)
}
func (m *VolumetricDataPlane) XXX_DiscardUnknown() {
xxx_messageInfo_VolumetricDataPlane.DiscardUnknown(m)
}
var xxx_messageInfo_VolumetricDataPlane proto.InternalMessageInfo
func (m *VolumetricDataPlane) GetLines() []*VolumetricDataPlaneLine {
if m != nil {
return m.Lines
}
return nil
}
type VolumetricDataPlaneLine struct {
Cell []float32 `protobuf:"fixed32,1,rep,packed,name=cell,proto3" json:"cell,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VolumetricDataPlaneLine) Reset() { *m = VolumetricDataPlaneLine{} }
func (m *VolumetricDataPlaneLine) String() string { return proto.CompactTextString(m) }
func (*VolumetricDataPlaneLine) ProtoMessage() {}
func (*VolumetricDataPlaneLine) Descriptor() ([]byte, []int) {
return fileDescriptor_sensor_3da753cdae3df91e, []int{6, 0, 0}
}
func (m *VolumetricDataPlaneLine) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VolumetricDataPlaneLine.Unmarshal(m, b)
}
func (m *VolumetricDataPlaneLine) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VolumetricDataPlaneLine.Marshal(b, m, deterministic)
}
func (dst *VolumetricDataPlaneLine) XXX_Merge(src proto.Message) {
xxx_messageInfo_VolumetricDataPlaneLine.Merge(dst, src)
}
func (m *VolumetricDataPlaneLine) XXX_Size() int {
return xxx_messageInfo_VolumetricDataPlaneLine.Size(m)
}
func (m *VolumetricDataPlaneLine) XXX_DiscardUnknown() {
xxx_messageInfo_VolumetricDataPlaneLine.DiscardUnknown(m)
}
var xxx_messageInfo_VolumetricDataPlaneLine proto.InternalMessageInfo
func (m *VolumetricDataPlaneLine) GetCell() []float32 {
if m != nil {
return m.Cell
}
return nil
}
// Describe the state of a Sensor. This is a message sent from the environment to the vessel to describe the current
// state.
type SensorState struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Types that are valid to be assigned to SensorTypeValue:
// *SensorState_GalacticCoordinate
// *SensorState_RadarData
// *SensorState_IffData
SensorTypeValue isSensorState_SensorTypeValue `protobuf_oneof:"SensorTypeValue"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SensorState) Reset() { *m = SensorState{} }
func (m *SensorState) String() string { return proto.CompactTextString(m) }
func (*SensorState) ProtoMessage() {}
func (*SensorState) Descriptor() ([]byte, []int) {
return fileDescriptor_sensor_3da753cdae3df91e, []int{7}
}
func (m *SensorState) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SensorState.Unmarshal(m, b)
}
func (m *SensorState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SensorState.Marshal(b, m, deterministic)
}
func (dst *SensorState) XXX_Merge(src proto.Message) {
xxx_messageInfo_SensorState.Merge(dst, src)
}
func (m *SensorState) XXX_Size() int {
return xxx_messageInfo_SensorState.Size(m)
}
func (m *SensorState) XXX_DiscardUnknown() {
xxx_messageInfo_SensorState.DiscardUnknown(m)
}
var xxx_messageInfo_SensorState proto.InternalMessageInfo
func (m *SensorState) GetId() string {
if m != nil {
return m.Id
}
return ""
}
type isSensorState_SensorTypeValue interface {
isSensorState_SensorTypeValue()
}
type SensorState_GalacticCoordinate struct {
GalacticCoordinate *GalacticCoordinate `protobuf:"bytes,2,opt,name=galacticCoordinate,proto3,oneof"`
}
type SensorState_RadarData struct {
RadarData *VolumetricData `protobuf:"bytes,3,opt,name=radarData,proto3,oneof"`
}
type SensorState_IffData struct {
IffData *IFFReadout `protobuf:"bytes,4,opt,name=iffData,proto3,oneof"`
}
func (*SensorState_GalacticCoordinate) isSensorState_SensorTypeValue() {}
func (*SensorState_RadarData) isSensorState_SensorTypeValue() {}
func (*SensorState_IffData) isSensorState_SensorTypeValue() {}
func (m *SensorState) GetSensorTypeValue() isSensorState_SensorTypeValue {
if m != nil {
return m.SensorTypeValue
}
return nil
}
func (m *SensorState) GetGalacticCoordinate() *GalacticCoordinate {
if x, ok := m.GetSensorTypeValue().(*SensorState_GalacticCoordinate); ok {
return x.GalacticCoordinate
}
return nil
}
func (m *SensorState) GetRadarData() *VolumetricData {
if x, ok := m.GetSensorTypeValue().(*SensorState_RadarData); ok {
return x.RadarData
}
return nil
}
func (m *SensorState) GetIffData() *IFFReadout {
if x, ok := m.GetSensorTypeValue().(*SensorState_IffData); ok {
return x.IffData
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*SensorState) 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{}) {
return _SensorState_OneofMarshaler, _SensorState_OneofUnmarshaler, _SensorState_OneofSizer, []interface{}{
(*SensorState_GalacticCoordinate)(nil),
(*SensorState_RadarData)(nil),
(*SensorState_IffData)(nil),
}
}
func _SensorState_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*SensorState)
// SensorTypeValue
switch x := m.SensorTypeValue.(type) {
case *SensorState_GalacticCoordinate:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.GalacticCoordinate); err != nil {
return err
}
case *SensorState_RadarData:
b.EncodeVarint(3<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.RadarData); err != nil {
return err
}
case *SensorState_IffData:
b.EncodeVarint(4<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.IffData); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("SensorState.SensorTypeValue has unexpected type %T", x)
}
return nil
}
func _SensorState_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*SensorState)
switch tag {
case 2: // SensorTypeValue.galacticCoordinate
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(GalacticCoordinate)
err := b.DecodeMessage(msg)
m.SensorTypeValue = &SensorState_GalacticCoordinate{msg}
return true, err
case 3: // SensorTypeValue.radarData
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(VolumetricData)
err := b.DecodeMessage(msg)
m.SensorTypeValue = &SensorState_RadarData{msg}
return true, err
case 4: // SensorTypeValue.iffData
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(IFFReadout)
err := b.DecodeMessage(msg)
m.SensorTypeValue = &SensorState_IffData{msg}
return true, err
default:
return false, nil
}
}
func _SensorState_OneofSizer(msg proto.Message) (n int) {
m := msg.(*SensorState)
// SensorTypeValue
switch x := m.SensorTypeValue.(type) {
case *SensorState_GalacticCoordinate:
s := proto.Size(x.GalacticCoordinate)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *SensorState_RadarData:
s := proto.Size(x.RadarData)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *SensorState_IffData:
s := proto.Size(x.IffData)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
func init() {
proto.RegisterType((*SensorDescription)(nil), "lsfn.SensorDescription")
proto.RegisterType((*GalacticCoordinate)(nil), "lsfn.GalacticCoordinate")
proto.RegisterType((*ShipRelativeCoordinate)(nil), "lsfn.ShipRelativeCoordinate")
proto.RegisterType((*IFFPing)(nil), "lsfn.IFFPing")
proto.RegisterType((*IFFReadout)(nil), "lsfn.IFFReadout")
proto.RegisterType((*VolumetricRange)(nil), "lsfn.VolumetricRange")
proto.RegisterType((*VolumetricData)(nil), "lsfn.VolumetricData")
proto.RegisterType((*VolumetricDataPlane)(nil), "lsfn.VolumetricData.plane")
proto.RegisterType((*VolumetricDataPlaneLine)(nil), "lsfn.VolumetricData.plane.line")
proto.RegisterType((*SensorState)(nil), "lsfn.SensorState")
proto.RegisterEnum("lsfn.SensorDescription_SensorType", SensorDescription_SensorType_name, SensorDescription_SensorType_value)
}
func init() { proto.RegisterFile("api/proto/sensor.proto", fileDescriptor_sensor_3da753cdae3df91e) }
var fileDescriptor_sensor_3da753cdae3df91e = []byte{
// 588 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xd1, 0x6e, 0xd3, 0x3c,
0x14, 0xae, 0xb3, 0xa6, 0xfb, 0x77, 0xf2, 0xd3, 0x65, 0xde, 0x18, 0x51, 0x35, 0x41, 0x15, 0x6e,
0x7a, 0x81, 0x3a, 0x11, 0x98, 0xc4, 0x15, 0x12, 0xa3, 0x2a, 0xdd, 0xae, 0x90, 0x8b, 0xc6, 0xb6,
0x3b, 0x2f, 0x71, 0x3b, 0x0b, 0xcf, 0x8e, 0x1c, 0x97, 0xad, 0x7b, 0x1a, 0x6e, 0x78, 0x10, 0xde,
0x84, 0x47, 0x41, 0x76, 0xb2, 0xa5, 0xac, 0x85, 0x0b, 0xee, 0x7c, 0x8e, 0xbf, 0xef, 0xf8, 0x9c,
0x2f, 0xdf, 0x09, 0xec, 0xd2, 0x9c, 0xef, 0xe7, 0x5a, 0x19, 0xb5, 0x5f, 0x30, 0x59, 0x28, 0xdd,
0x77, 0x01, 0x6e, 0x8a, 0x62, 0x22, 0xe3, 0x1f, 0x1e, 0x6c, 0x8d, 0x5d, 0x7a, 0xc0, 0x8a, 0x54,
0xf3, 0xdc, 0x70, 0x25, 0x71, 0x1b, 0x3c, 0x9e, 0x45, 0xa8, 0x8b, 0x7a, 0x1b, 0xc4, 0xe3, 0x19,
0xc6, 0xd0, 0x94, 0xf4, 0x8a, 0x45, 0x9e, 0xcb, 0xb8, 0x33, 0x3e, 0x04, 0x28, 0xeb, 0x7d, 0x9a,
0xe7, 0x2c, 0x5a, 0xeb, 0xa2, 0x5e, 0x3b, 0x89, 0xfb, 0xb6, 0x68, 0x7f, 0xa9, 0x60, 0x95, 0xb1,
0x48, 0xb2, 0xc0, 0x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