/
synse.pb.go
2545 lines (2294 loc) · 82.6 KB
/
synse.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
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: synse.proto
package synse
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// 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
// HealthStatus is the status of a health check.
type HealthStatus int32
const (
HealthStatus_UNKNOWN HealthStatus = 0
HealthStatus_OK HealthStatus = 1
HealthStatus_FAILING HealthStatus = 2
)
var HealthStatus_name = map[int32]string{
0: "UNKNOWN",
1: "OK",
2: "FAILING",
}
var HealthStatus_value = map[string]int32{
"UNKNOWN": 0,
"OK": 1,
"FAILING": 2,
}
func (x HealthStatus) String() string {
return proto.EnumName(HealthStatus_name, int32(x))
}
func (HealthStatus) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_synse_3ab2aa2b5579360e, []int{0}
}
// WriteStatus are the statuses of a write as it is processed asynchronously.
type WriteStatus int32
const (
WriteStatus_PENDING WriteStatus = 0
WriteStatus_WRITING WriteStatus = 1
WriteStatus_DONE WriteStatus = 3
WriteStatus_ERROR WriteStatus = 4
)
var WriteStatus_name = map[int32]string{
0: "PENDING",
1: "WRITING",
3: "DONE",
4: "ERROR",
}
var WriteStatus_value = map[string]int32{
"PENDING": 0,
"WRITING": 1,
"DONE": 3,
"ERROR": 4,
}
func (x WriteStatus) String() string {
return proto.EnumName(WriteStatus_name, int32(x))
}
func (WriteStatus) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_synse_3ab2aa2b5579360e, []int{1}
}
// Empty is an empty message (no fields) which is used for RPC routes which
// do not require any input for the request.
type Empty struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Empty) Reset() { *m = Empty{} }
func (m *Empty) String() string { return proto.CompactTextString(m) }
func (*Empty) ProtoMessage() {}
func (*Empty) Descriptor() ([]byte, []int) {
return fileDescriptor_synse_3ab2aa2b5579360e, []int{0}
}
func (m *Empty) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Empty.Unmarshal(m, b)
}
func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Empty.Marshal(b, m, deterministic)
}
func (dst *Empty) XXX_Merge(src proto.Message) {
xxx_messageInfo_Empty.Merge(dst, src)
}
func (m *Empty) XXX_Size() int {
return xxx_messageInfo_Empty.Size(m)
}
func (m *Empty) XXX_DiscardUnknown() {
xxx_messageInfo_Empty.DiscardUnknown(m)
}
var xxx_messageInfo_Empty proto.InternalMessageInfo
// V3Bounds specifies time bounds in RFC3339 format.
type V3Bounds struct {
// RFC3339 formatted timestamp specifying the beginning of the time bound. If
// left unspecified, the start is considered unbound.
Start string `protobuf:"bytes,1,opt,name=start" json:"start,omitempty"`
// RFC3339 formatted timestamp specifying the ending of the time bound. If
// left unspecified, the end is considered unbound.
End string `protobuf:"bytes,2,opt,name=end" json:"end,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *V3Bounds) Reset() { *m = V3Bounds{} }
func (m *V3Bounds) String() string { return proto.CompactTextString(m) }
func (*V3Bounds) ProtoMessage() {}
func (*V3Bounds) Descriptor() ([]byte, []int) {
return fileDescriptor_synse_3ab2aa2b5579360e, []int{1}
}
func (m *V3Bounds) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_V3Bounds.Unmarshal(m, b)
}
func (m *V3Bounds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_V3Bounds.Marshal(b, m, deterministic)
}
func (dst *V3Bounds) XXX_Merge(src proto.Message) {
xxx_messageInfo_V3Bounds.Merge(dst, src)
}
func (m *V3Bounds) XXX_Size() int {
return xxx_messageInfo_V3Bounds.Size(m)
}
func (m *V3Bounds) XXX_DiscardUnknown() {
xxx_messageInfo_V3Bounds.DiscardUnknown(m)
}
var xxx_messageInfo_V3Bounds proto.InternalMessageInfo
func (m *V3Bounds) GetStart() string {
if m != nil {
return m.Start
}
return ""
}
func (m *V3Bounds) GetEnd() string {
if m != nil {
return m.End
}
return ""
}
// V3Device contains all of the pertinent known data associated with a device.
type V3Device struct {
// RFC3339 timestamp for when the device info was gathered.
Timestamp string `protobuf:"bytes,1,opt,name=timestamp" json:"timestamp,omitempty"`
// The globally unique ID for the device.
Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
// The type of device.
Type string `protobuf:"bytes,3,opt,name=type" json:"type,omitempty"`
// The id of the plugin that the device is managed by.
Plugin string `protobuf:"bytes,4,opt,name=plugin" json:"plugin,omitempty"`
// Additional information for the device.
Info string `protobuf:"bytes,5,opt,name=info" json:"info,omitempty"`
// A human-readable alias for the device.
Alias string `protobuf:"bytes,6,opt,name=alias" json:"alias,omitempty"`
// Any arbitrary metadata associated with the device.
Metadata map[string]string `protobuf:"bytes,7,rep,name=metadata" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// The read/write capabilities of the device.
Capabilities *V3DeviceCapability `protobuf:"bytes,8,opt,name=capabilities" json:"capabilities,omitempty"`
// The tags that are associated with the device.
Tags []*V3Tag `protobuf:"bytes,9,rep,name=tags" json:"tags,omitempty"`
// The reading outputs that the device can generate on read.
Outputs []*V3DeviceOutput `protobuf:"bytes,10,rep,name=outputs" json:"outputs,omitempty"`
// A 1-based sort ordinal for the device. This will help determine where
// the device shows up in the scan.
SortIndex int32 `protobuf:"varint,11,opt,name=sortIndex" json:"sortIndex,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *V3Device) Reset() { *m = V3Device{} }
func (m *V3Device) String() string { return proto.CompactTextString(m) }
func (*V3Device) ProtoMessage() {}
func (*V3Device) Descriptor() ([]byte, []int) {
return fileDescriptor_synse_3ab2aa2b5579360e, []int{2}
}
func (m *V3Device) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_V3Device.Unmarshal(m, b)
}
func (m *V3Device) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_V3Device.Marshal(b, m, deterministic)
}
func (dst *V3Device) XXX_Merge(src proto.Message) {
xxx_messageInfo_V3Device.Merge(dst, src)
}
func (m *V3Device) XXX_Size() int {
return xxx_messageInfo_V3Device.Size(m)
}
func (m *V3Device) XXX_DiscardUnknown() {
xxx_messageInfo_V3Device.DiscardUnknown(m)
}
var xxx_messageInfo_V3Device proto.InternalMessageInfo
func (m *V3Device) GetTimestamp() string {
if m != nil {
return m.Timestamp
}
return ""
}
func (m *V3Device) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *V3Device) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *V3Device) GetPlugin() string {
if m != nil {
return m.Plugin
}
return ""
}
func (m *V3Device) GetInfo() string {
if m != nil {
return m.Info
}
return ""
}
func (m *V3Device) GetAlias() string {
if m != nil {
return m.Alias
}
return ""
}
func (m *V3Device) GetMetadata() map[string]string {
if m != nil {
return m.Metadata
}
return nil
}
func (m *V3Device) GetCapabilities() *V3DeviceCapability {
if m != nil {
return m.Capabilities
}
return nil
}
func (m *V3Device) GetTags() []*V3Tag {
if m != nil {
return m.Tags
}
return nil
}
func (m *V3Device) GetOutputs() []*V3DeviceOutput {
if m != nil {
return m.Outputs
}
return nil
}
func (m *V3Device) GetSortIndex() int32 {
if m != nil {
return m.SortIndex
}
return 0
}
// V3DeviceCapability specifies the capabilities that a device exposes via Synse.
type V3DeviceCapability struct {
// The capability mode of the device ("r": read only, "w": write only, "rw": read/write)
Mode string `protobuf:"bytes,1,opt,name=mode" json:"mode,omitempty"`
// The write capabilities of the device.
Write *V3WriteCapability `protobuf:"bytes,2,opt,name=write" json:"write,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *V3DeviceCapability) Reset() { *m = V3DeviceCapability{} }
func (m *V3DeviceCapability) String() string { return proto.CompactTextString(m) }
func (*V3DeviceCapability) ProtoMessage() {}
func (*V3DeviceCapability) Descriptor() ([]byte, []int) {
return fileDescriptor_synse_3ab2aa2b5579360e, []int{3}
}
func (m *V3DeviceCapability) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_V3DeviceCapability.Unmarshal(m, b)
}
func (m *V3DeviceCapability) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_V3DeviceCapability.Marshal(b, m, deterministic)
}
func (dst *V3DeviceCapability) XXX_Merge(src proto.Message) {
xxx_messageInfo_V3DeviceCapability.Merge(dst, src)
}
func (m *V3DeviceCapability) XXX_Size() int {
return xxx_messageInfo_V3DeviceCapability.Size(m)
}
func (m *V3DeviceCapability) XXX_DiscardUnknown() {
xxx_messageInfo_V3DeviceCapability.DiscardUnknown(m)
}
var xxx_messageInfo_V3DeviceCapability proto.InternalMessageInfo
func (m *V3DeviceCapability) GetMode() string {
if m != nil {
return m.Mode
}
return ""
}
func (m *V3DeviceCapability) GetWrite() *V3WriteCapability {
if m != nil {
return m.Write
}
return nil
}
// V3DeviceOutput specifies the output types for a device's reading(s).
type V3DeviceOutput struct {
// The name of the device output.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// The type of the output.
Type string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"`
// The decimal precision of the output. A precision of 0 (default) means no
// precision is applied.
Precision int32 `protobuf:"varint,3,opt,name=precision" json:"precision,omitempty"`
// The factor to multiply the reading result returned from the device. This can be
// positive, negative, whole, or decimal.
ScalingFactor float64 `protobuf:"fixed64,4,opt,name=scalingFactor" json:"scalingFactor,omitempty"`
// The unit of measure for the reading output.
Unit *V3OutputUnit `protobuf:"bytes,5,opt,name=unit" json:"unit,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *V3DeviceOutput) Reset() { *m = V3DeviceOutput{} }
func (m *V3DeviceOutput) String() string { return proto.CompactTextString(m) }
func (*V3DeviceOutput) ProtoMessage() {}
func (*V3DeviceOutput) Descriptor() ([]byte, []int) {
return fileDescriptor_synse_3ab2aa2b5579360e, []int{4}
}
func (m *V3DeviceOutput) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_V3DeviceOutput.Unmarshal(m, b)
}
func (m *V3DeviceOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_V3DeviceOutput.Marshal(b, m, deterministic)
}
func (dst *V3DeviceOutput) XXX_Merge(src proto.Message) {
xxx_messageInfo_V3DeviceOutput.Merge(dst, src)
}
func (m *V3DeviceOutput) XXX_Size() int {
return xxx_messageInfo_V3DeviceOutput.Size(m)
}
func (m *V3DeviceOutput) XXX_DiscardUnknown() {
xxx_messageInfo_V3DeviceOutput.DiscardUnknown(m)
}
var xxx_messageInfo_V3DeviceOutput proto.InternalMessageInfo
func (m *V3DeviceOutput) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *V3DeviceOutput) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *V3DeviceOutput) GetPrecision() int32 {
if m != nil {
return m.Precision
}
return 0
}
func (m *V3DeviceOutput) GetScalingFactor() float64 {
if m != nil {
return m.ScalingFactor
}
return 0
}
func (m *V3DeviceOutput) GetUnit() *V3OutputUnit {
if m != nil {
return m.Unit
}
return nil
}
// V3DeviceSelector specifies a selector to identify devices for various actions.
type V3DeviceSelector struct {
// The tags to use as selectors.
Tags []*V3Tag `protobuf:"bytes,1,rep,name=tags" json:"tags,omitempty"`
// The ID of the device. If this is set, tags will be ignored.
Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *V3DeviceSelector) Reset() { *m = V3DeviceSelector{} }
func (m *V3DeviceSelector) String() string { return proto.CompactTextString(m) }
func (*V3DeviceSelector) ProtoMessage() {}
func (*V3DeviceSelector) Descriptor() ([]byte, []int) {
return fileDescriptor_synse_3ab2aa2b5579360e, []int{5}
}
func (m *V3DeviceSelector) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_V3DeviceSelector.Unmarshal(m, b)
}
func (m *V3DeviceSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_V3DeviceSelector.Marshal(b, m, deterministic)
}
func (dst *V3DeviceSelector) XXX_Merge(src proto.Message) {
xxx_messageInfo_V3DeviceSelector.Merge(dst, src)
}
func (m *V3DeviceSelector) XXX_Size() int {
return xxx_messageInfo_V3DeviceSelector.Size(m)
}
func (m *V3DeviceSelector) XXX_DiscardUnknown() {
xxx_messageInfo_V3DeviceSelector.DiscardUnknown(m)
}
var xxx_messageInfo_V3DeviceSelector proto.InternalMessageInfo
func (m *V3DeviceSelector) GetTags() []*V3Tag {
if m != nil {
return m.Tags
}
return nil
}
func (m *V3DeviceSelector) GetId() string {
if m != nil {
return m.Id
}
return ""
}
// V3Health is the health status for a plugin.
type V3Health struct {
// RFC3339 formatted timestamp of the time when the health was checked.
Timestamp string `protobuf:"bytes,1,opt,name=timestamp" json:"timestamp,omitempty"`
// The overall health status of a plugin.
Status HealthStatus `protobuf:"varint,2,opt,name=status,enum=synse.HealthStatus" json:"status,omitempty"`
// All of the health checks for a plugin.
Checks []*V3HealthCheck `protobuf:"bytes,3,rep,name=checks" json:"checks,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *V3Health) Reset() { *m = V3Health{} }
func (m *V3Health) String() string { return proto.CompactTextString(m) }
func (*V3Health) ProtoMessage() {}
func (*V3Health) Descriptor() ([]byte, []int) {
return fileDescriptor_synse_3ab2aa2b5579360e, []int{6}
}
func (m *V3Health) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_V3Health.Unmarshal(m, b)
}
func (m *V3Health) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_V3Health.Marshal(b, m, deterministic)
}
func (dst *V3Health) XXX_Merge(src proto.Message) {
xxx_messageInfo_V3Health.Merge(dst, src)
}
func (m *V3Health) XXX_Size() int {
return xxx_messageInfo_V3Health.Size(m)
}
func (m *V3Health) XXX_DiscardUnknown() {
xxx_messageInfo_V3Health.DiscardUnknown(m)
}
var xxx_messageInfo_V3Health proto.InternalMessageInfo
func (m *V3Health) GetTimestamp() string {
if m != nil {
return m.Timestamp
}
return ""
}
func (m *V3Health) GetStatus() HealthStatus {
if m != nil {
return m.Status
}
return HealthStatus_UNKNOWN
}
func (m *V3Health) GetChecks() []*V3HealthCheck {
if m != nil {
return m.Checks
}
return nil
}
// V3HealthCheck is the health check status for a plugin.
type V3HealthCheck struct {
// The name of the health check.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// The status of the health check.
Status HealthStatus `protobuf:"varint,2,opt,name=status,enum=synse.HealthStatus" json:"status,omitempty"`
// Any additional information associated with the health check.
Message string `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"`
// RFC3339 formatted timestamp at which the check was last completed.
Timestamp string `protobuf:"bytes,4,opt,name=timestamp" json:"timestamp,omitempty"`
// The type of health check. The different kinds of health check are
// defined in the SDK.
Type string `protobuf:"bytes,5,opt,name=type" json:"type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *V3HealthCheck) Reset() { *m = V3HealthCheck{} }
func (m *V3HealthCheck) String() string { return proto.CompactTextString(m) }
func (*V3HealthCheck) ProtoMessage() {}
func (*V3HealthCheck) Descriptor() ([]byte, []int) {
return fileDescriptor_synse_3ab2aa2b5579360e, []int{7}
}
func (m *V3HealthCheck) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_V3HealthCheck.Unmarshal(m, b)
}
func (m *V3HealthCheck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_V3HealthCheck.Marshal(b, m, deterministic)
}
func (dst *V3HealthCheck) XXX_Merge(src proto.Message) {
xxx_messageInfo_V3HealthCheck.Merge(dst, src)
}
func (m *V3HealthCheck) XXX_Size() int {
return xxx_messageInfo_V3HealthCheck.Size(m)
}
func (m *V3HealthCheck) XXX_DiscardUnknown() {
xxx_messageInfo_V3HealthCheck.DiscardUnknown(m)
}
var xxx_messageInfo_V3HealthCheck proto.InternalMessageInfo
func (m *V3HealthCheck) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *V3HealthCheck) GetStatus() HealthStatus {
if m != nil {
return m.Status
}
return HealthStatus_UNKNOWN
}
func (m *V3HealthCheck) GetMessage() string {
if m != nil {
return m.Message
}
return ""
}
func (m *V3HealthCheck) GetTimestamp() string {
if m != nil {
return m.Timestamp
}
return ""
}
func (m *V3HealthCheck) GetType() string {
if m != nil {
return m.Type
}
return ""
}
// V3Metadata is static metadata about a plugin.
type V3Metadata struct {
// The name of the plugin.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// The maintainer of the plugin.
Maintainer string `protobuf:"bytes,2,opt,name=maintainer" json:"maintainer,omitempty"`
// The normalized tag name for plugin meta-info.
Tag string `protobuf:"bytes,3,opt,name=tag" json:"tag,omitempty"`
// A brief description of the plugin.
Description string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"`
// A link to the plugin's VCS repo.
Vcs string `protobuf:"bytes,5,opt,name=vcs" json:"vcs,omitempty"`
// The generated plugin namespace ID.
Id string `protobuf:"bytes,6,opt,name=id" json:"id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *V3Metadata) Reset() { *m = V3Metadata{} }
func (m *V3Metadata) String() string { return proto.CompactTextString(m) }
func (*V3Metadata) ProtoMessage() {}
func (*V3Metadata) Descriptor() ([]byte, []int) {
return fileDescriptor_synse_3ab2aa2b5579360e, []int{8}
}
func (m *V3Metadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_V3Metadata.Unmarshal(m, b)
}
func (m *V3Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_V3Metadata.Marshal(b, m, deterministic)
}
func (dst *V3Metadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_V3Metadata.Merge(dst, src)
}
func (m *V3Metadata) XXX_Size() int {
return xxx_messageInfo_V3Metadata.Size(m)
}
func (m *V3Metadata) XXX_DiscardUnknown() {
xxx_messageInfo_V3Metadata.DiscardUnknown(m)
}
var xxx_messageInfo_V3Metadata proto.InternalMessageInfo
func (m *V3Metadata) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *V3Metadata) GetMaintainer() string {
if m != nil {
return m.Maintainer
}
return ""
}
func (m *V3Metadata) GetTag() string {
if m != nil {
return m.Tag
}
return ""
}
func (m *V3Metadata) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *V3Metadata) GetVcs() string {
if m != nil {
return m.Vcs
}
return ""
}
func (m *V3Metadata) GetId() string {
if m != nil {
return m.Id
}
return ""
}
// V3OutputUnit the unit of measure for a reading.
type V3OutputUnit struct {
// The full name of the unit.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// The symbolic representation of the unit.
Symbol string `protobuf:"bytes,2,opt,name=symbol" json:"symbol,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *V3OutputUnit) Reset() { *m = V3OutputUnit{} }
func (m *V3OutputUnit) String() string { return proto.CompactTextString(m) }
func (*V3OutputUnit) ProtoMessage() {}
func (*V3OutputUnit) Descriptor() ([]byte, []int) {
return fileDescriptor_synse_3ab2aa2b5579360e, []int{9}
}
func (m *V3OutputUnit) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_V3OutputUnit.Unmarshal(m, b)
}
func (m *V3OutputUnit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_V3OutputUnit.Marshal(b, m, deterministic)
}
func (dst *V3OutputUnit) XXX_Merge(src proto.Message) {
xxx_messageInfo_V3OutputUnit.Merge(dst, src)
}
func (m *V3OutputUnit) XXX_Size() int {
return xxx_messageInfo_V3OutputUnit.Size(m)
}
func (m *V3OutputUnit) XXX_DiscardUnknown() {
xxx_messageInfo_V3OutputUnit.DiscardUnknown(m)
}
var xxx_messageInfo_V3OutputUnit proto.InternalMessageInfo
func (m *V3OutputUnit) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *V3OutputUnit) GetSymbol() string {
if m != nil {
return m.Symbol
}
return ""
}
// V3Reading is a reading response from a device.
type V3Reading struct {
// The GUID of the device being read from.
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
// RFC3339 formatted timestamp for when the reading was taken.
Timestamp string `protobuf:"bytes,2,opt,name=timestamp" json:"timestamp,omitempty"`
// The type of the reading.
Type string `protobuf:"bytes,3,opt,name=type" json:"type,omitempty"`
// The type of the device the reading originated from.
DeviceType string `protobuf:"bytes,4,opt,name=deviceType" json:"deviceType,omitempty"`
// Any additional information associated with a reading.
Context map[string]string `protobuf:"bytes,5,rep,name=context" json:"context,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// The unit of measure for the reading.
Unit *V3OutputUnit `protobuf:"bytes,6,opt,name=unit" json:"unit,omitempty"`
// The value of the reading.
//
// Types that are valid to be assigned to Value:
// *V3Reading_StringValue
// *V3Reading_BoolValue
// *V3Reading_Float32Value
// *V3Reading_Float64Value
// *V3Reading_Int32Value
// *V3Reading_Int64Value
// *V3Reading_BytesValue
// *V3Reading_Uint32Value
// *V3Reading_Uint64Value
Value isV3Reading_Value `protobuf_oneof:"value"`
// Info string associated with the Reading's device. This provides
// additional human-readable context for the reading.
DeviceInfo string `protobuf:"bytes,16,opt,name=deviceInfo" json:"deviceInfo,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *V3Reading) Reset() { *m = V3Reading{} }
func (m *V3Reading) String() string { return proto.CompactTextString(m) }
func (*V3Reading) ProtoMessage() {}
func (*V3Reading) Descriptor() ([]byte, []int) {
return fileDescriptor_synse_3ab2aa2b5579360e, []int{10}
}
func (m *V3Reading) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_V3Reading.Unmarshal(m, b)
}
func (m *V3Reading) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_V3Reading.Marshal(b, m, deterministic)
}
func (dst *V3Reading) XXX_Merge(src proto.Message) {
xxx_messageInfo_V3Reading.Merge(dst, src)
}
func (m *V3Reading) XXX_Size() int {
return xxx_messageInfo_V3Reading.Size(m)
}
func (m *V3Reading) XXX_DiscardUnknown() {
xxx_messageInfo_V3Reading.DiscardUnknown(m)
}
var xxx_messageInfo_V3Reading proto.InternalMessageInfo
type isV3Reading_Value interface {
isV3Reading_Value()
}
type V3Reading_StringValue struct {
StringValue string `protobuf:"bytes,7,opt,name=string_value,json=stringValue,oneof"`
}
type V3Reading_BoolValue struct {
BoolValue bool `protobuf:"varint,8,opt,name=bool_value,json=boolValue,oneof"`
}
type V3Reading_Float32Value struct {
Float32Value float32 `protobuf:"fixed32,9,opt,name=float32_value,json=float32Value,oneof"`
}
type V3Reading_Float64Value struct {
Float64Value float64 `protobuf:"fixed64,10,opt,name=float64_value,json=float64Value,oneof"`
}
type V3Reading_Int32Value struct {
Int32Value int32 `protobuf:"varint,11,opt,name=int32_value,json=int32Value,oneof"`
}
type V3Reading_Int64Value struct {
Int64Value int64 `protobuf:"varint,12,opt,name=int64_value,json=int64Value,oneof"`
}
type V3Reading_BytesValue struct {
BytesValue []byte `protobuf:"bytes,13,opt,name=bytes_value,json=bytesValue,proto3,oneof"`
}
type V3Reading_Uint32Value struct {
Uint32Value uint32 `protobuf:"varint,14,opt,name=uint32_value,json=uint32Value,oneof"`
}
type V3Reading_Uint64Value struct {
Uint64Value uint64 `protobuf:"varint,15,opt,name=uint64_value,json=uint64Value,oneof"`
}
func (*V3Reading_StringValue) isV3Reading_Value() {}
func (*V3Reading_BoolValue) isV3Reading_Value() {}
func (*V3Reading_Float32Value) isV3Reading_Value() {}
func (*V3Reading_Float64Value) isV3Reading_Value() {}
func (*V3Reading_Int32Value) isV3Reading_Value() {}
func (*V3Reading_Int64Value) isV3Reading_Value() {}
func (*V3Reading_BytesValue) isV3Reading_Value() {}
func (*V3Reading_Uint32Value) isV3Reading_Value() {}
func (*V3Reading_Uint64Value) isV3Reading_Value() {}
func (m *V3Reading) GetValue() isV3Reading_Value {
if m != nil {
return m.Value
}
return nil
}
func (m *V3Reading) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *V3Reading) GetTimestamp() string {
if m != nil {
return m.Timestamp
}
return ""
}
func (m *V3Reading) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *V3Reading) GetDeviceType() string {
if m != nil {
return m.DeviceType
}
return ""
}
func (m *V3Reading) GetContext() map[string]string {
if m != nil {
return m.Context
}
return nil
}
func (m *V3Reading) GetUnit() *V3OutputUnit {
if m != nil {
return m.Unit
}
return nil
}
func (m *V3Reading) GetStringValue() string {
if x, ok := m.GetValue().(*V3Reading_StringValue); ok {
return x.StringValue
}
return ""
}
func (m *V3Reading) GetBoolValue() bool {
if x, ok := m.GetValue().(*V3Reading_BoolValue); ok {
return x.BoolValue
}
return false
}
func (m *V3Reading) GetFloat32Value() float32 {
if x, ok := m.GetValue().(*V3Reading_Float32Value); ok {
return x.Float32Value
}
return 0
}
func (m *V3Reading) GetFloat64Value() float64 {
if x, ok := m.GetValue().(*V3Reading_Float64Value); ok {
return x.Float64Value
}
return 0
}
func (m *V3Reading) GetInt32Value() int32 {
if x, ok := m.GetValue().(*V3Reading_Int32Value); ok {
return x.Int32Value
}
return 0
}
func (m *V3Reading) GetInt64Value() int64 {
if x, ok := m.GetValue().(*V3Reading_Int64Value); ok {
return x.Int64Value
}
return 0
}
func (m *V3Reading) GetBytesValue() []byte {
if x, ok := m.GetValue().(*V3Reading_BytesValue); ok {
return x.BytesValue
}
return nil
}
func (m *V3Reading) GetUint32Value() uint32 {
if x, ok := m.GetValue().(*V3Reading_Uint32Value); ok {
return x.Uint32Value
}
return 0
}
func (m *V3Reading) GetUint64Value() uint64 {
if x, ok := m.GetValue().(*V3Reading_Uint64Value); ok {
return x.Uint64Value
}
return 0
}
func (m *V3Reading) GetDeviceInfo() string {
if m != nil {
return m.DeviceInfo
}
return ""
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*V3Reading) 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 _V3Reading_OneofMarshaler, _V3Reading_OneofUnmarshaler, _V3Reading_OneofSizer, []interface{}{
(*V3Reading_StringValue)(nil),
(*V3Reading_BoolValue)(nil),
(*V3Reading_Float32Value)(nil),
(*V3Reading_Float64Value)(nil),
(*V3Reading_Int32Value)(nil),
(*V3Reading_Int64Value)(nil),
(*V3Reading_BytesValue)(nil),
(*V3Reading_Uint32Value)(nil),
(*V3Reading_Uint64Value)(nil),
}
}
func _V3Reading_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*V3Reading)
// value
switch x := m.Value.(type) {
case *V3Reading_StringValue:
b.EncodeVarint(7<<3 | proto.WireBytes)
b.EncodeStringBytes(x.StringValue)
case *V3Reading_BoolValue:
t := uint64(0)
if x.BoolValue {
t = 1
}
b.EncodeVarint(8<<3 | proto.WireVarint)
b.EncodeVarint(t)
case *V3Reading_Float32Value:
b.EncodeVarint(9<<3 | proto.WireFixed32)
b.EncodeFixed32(uint64(math.Float32bits(x.Float32Value)))
case *V3Reading_Float64Value:
b.EncodeVarint(10<<3 | proto.WireFixed64)
b.EncodeFixed64(math.Float64bits(x.Float64Value))
case *V3Reading_Int32Value:
b.EncodeVarint(11<<3 | proto.WireVarint)
b.EncodeVarint(uint64(x.Int32Value))
case *V3Reading_Int64Value: