/
di.pb.go
2894 lines (2564 loc) · 97.6 KB
/
di.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.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.19.4
// source: proto/di.proto
package di
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
_ "google.golang.org/protobuf/types/known/wrapperspb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type Response struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *Response) Reset() {
*x = Response{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_di_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Response) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Response) ProtoMessage() {}
func (x *Response) ProtoReflect() protoreflect.Message {
mi := &file_proto_di_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Response.ProtoReflect.Descriptor instead.
func (*Response) Descriptor() ([]byte, []int) {
return file_proto_di_proto_rawDescGZIP(), []int{0}
}
type PageInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
}
func (x *PageInfo) Reset() {
*x = PageInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_di_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PageInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PageInfo) ProtoMessage() {}
func (x *PageInfo) ProtoReflect() protoreflect.Message {
mi := &file_proto_di_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PageInfo.ProtoReflect.Descriptor instead.
func (*PageInfo) Descriptor() ([]byte, []int) {
return file_proto_di_proto_rawDescGZIP(), []int{1}
}
func (x *PageInfo) GetPage() int64 {
if x != nil {
return x.Page
}
return 0
}
func (x *PageInfo) GetSize() int64 {
if x != nil {
return x.Size
}
return 0
}
type ShadowIndexResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
List []*ShadowIndex `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
}
func (x *ShadowIndexResp) Reset() {
*x = ShadowIndexResp{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_di_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ShadowIndexResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ShadowIndexResp) ProtoMessage() {}
func (x *ShadowIndexResp) ProtoReflect() protoreflect.Message {
mi := &file_proto_di_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ShadowIndexResp.ProtoReflect.Descriptor instead.
func (*ShadowIndexResp) Descriptor() ([]byte, []int) {
return file_proto_di_proto_rawDescGZIP(), []int{2}
}
func (x *ShadowIndexResp) GetList() []*ShadowIndex {
if x != nil {
return x.List
}
return nil
}
//设备的日志数据
type ShadowIndex struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
DataID string `protobuf:"bytes,1,opt,name=dataID,proto3" json:"dataID,omitempty"` //属性id
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` //获取到的值
UpdatedDeviceTime int64 `protobuf:"varint,3,opt,name=updatedDeviceTime,proto3" json:"updatedDeviceTime,omitempty"` //更新到设备的时间
}
func (x *ShadowIndex) Reset() {
*x = ShadowIndex{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_di_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ShadowIndex) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ShadowIndex) ProtoMessage() {}
func (x *ShadowIndex) ProtoReflect() protoreflect.Message {
mi := &file_proto_di_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ShadowIndex.ProtoReflect.Descriptor instead.
func (*ShadowIndex) Descriptor() ([]byte, []int) {
return file_proto_di_proto_rawDescGZIP(), []int{3}
}
func (x *ShadowIndex) GetDataID() string {
if x != nil {
return x.DataID
}
return ""
}
func (x *ShadowIndex) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
func (x *ShadowIndex) GetUpdatedDeviceTime() int64 {
if x != nil {
return x.UpdatedDeviceTime
}
return 0
}
type GetPropertyReplyReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ProductID string `protobuf:"bytes,1,opt,name=productID,proto3" json:"productID,omitempty"` //产品id (必填)
DeviceName string `protobuf:"bytes,2,opt,name=deviceName,proto3" json:"deviceName,omitempty"` //设备名(必填)
DataIDs []string `protobuf:"bytes,3,rep,name=dataIDs,proto3" json:"dataIDs,omitempty"` //获取的具体标识符的数据 如果不指定则获取所有属性数据,一个属性一条
}
func (x *GetPropertyReplyReq) Reset() {
*x = GetPropertyReplyReq{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_di_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetPropertyReplyReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetPropertyReplyReq) ProtoMessage() {}
func (x *GetPropertyReplyReq) ProtoReflect() protoreflect.Message {
mi := &file_proto_di_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetPropertyReplyReq.ProtoReflect.Descriptor instead.
func (*GetPropertyReplyReq) Descriptor() ([]byte, []int) {
return file_proto_di_proto_rawDescGZIP(), []int{4}
}
func (x *GetPropertyReplyReq) GetProductID() string {
if x != nil {
return x.ProductID
}
return ""
}
func (x *GetPropertyReplyReq) GetDeviceName() string {
if x != nil {
return x.DeviceName
}
return ""
}
func (x *GetPropertyReplyReq) GetDataIDs() []string {
if x != nil {
return x.DataIDs
}
return nil
}
type GetPropertyReplyResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //设备返回状态码
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` //返回状态
ClientToken string `protobuf:"bytes,3,opt,name=clientToken,proto3" json:"clientToken,omitempty"` //调用id
Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` //上报时间戳(毫秒时间戳)
Params string `protobuf:"bytes,5,opt,name=params,proto3" json:"params,omitempty"` //获取到的值
}
func (x *GetPropertyReplyResp) Reset() {
*x = GetPropertyReplyResp{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_di_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetPropertyReplyResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetPropertyReplyResp) ProtoMessage() {}
func (x *GetPropertyReplyResp) ProtoReflect() protoreflect.Message {
mi := &file_proto_di_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetPropertyReplyResp.ProtoReflect.Descriptor instead.
func (*GetPropertyReplyResp) Descriptor() ([]byte, []int) {
return file_proto_di_proto_rawDescGZIP(), []int{5}
}
func (x *GetPropertyReplyResp) GetCode() int64 {
if x != nil {
return x.Code
}
return 0
}
func (x *GetPropertyReplyResp) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
func (x *GetPropertyReplyResp) GetClientToken() string {
if x != nil {
return x.ClientToken
}
return ""
}
func (x *GetPropertyReplyResp) GetTimestamp() int64 {
if x != nil {
return x.Timestamp
}
return 0
}
func (x *GetPropertyReplyResp) GetParams() string {
if x != nil {
return x.Params
}
return ""
}
//获取对应日志信息
type PropertyLogIndexReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Page *PageInfo `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` //使用了聚合函数及间隔的时候无效
DeviceNames []string `protobuf:"bytes,3,rep,name=deviceNames,proto3" json:"deviceNames,omitempty"` //设备名(不填获取产品下所有设备)
ProductID string `protobuf:"bytes,4,opt,name=productID,proto3" json:"productID,omitempty"` //产品id (必填)
DataID string `protobuf:"bytes,5,opt,name=dataID,proto3" json:"dataID,omitempty"` //获取的具体标识符的数据(必填)
TimeStart int64 `protobuf:"varint,6,opt,name=timeStart,proto3" json:"timeStart,omitempty"` //获取时间的开始(毫秒时间戳)
TimeEnd int64 `protobuf:"varint,7,opt,name=timeEnd,proto3" json:"timeEnd,omitempty"` //时间的结束(毫秒时间戳)
Interval int64 `protobuf:"varint,8,opt,name=interval,proto3" json:"interval,omitempty"` //间隔(单位毫秒) 如果这个值不为零值 则时间的开始和结束必须有效及聚合函数不应该为空
ArgFunc string `protobuf:"bytes,9,opt,name=argFunc,proto3" json:"argFunc,omitempty"` //聚合函数 avg:平均值 first:第一个参数 last:最后一个参数 count:总数 twa: 时间加权平均函数 参考:https://docs.taosdata.com/taos-sql/function
// /*
// FILL 语句指定某一窗口区间数据缺失的情况下的填充模式。填充模式包括以下几种:
// 不进行填充:NONE(默认填充模式)。
// VALUE 填充:固定值填充,此时需要指定填充的数值。例如:FILL(VALUE, 1.23)。
// PREV 填充:使用前一个非 NULL 值填充数据。例如:FILL(PREV)。
// NULL 填充:使用 NULL 填充数据。例如:FILL(NULL)。
// LINEAR 填充:根据前后距离最近的非 NULL 值做线性插值填充。例如:FILL(LINEAR)。
// NEXT 填充:使用下一个非 NULL 值填充数据。例如:FILL(NEXT)。
// */
Fill string `protobuf:"bytes,10,opt,name=fill,proto3" json:"fill,omitempty"` //填充模式 参考:https://docs.taosdata.com/taos-sql/distinguished/
Order int32 `protobuf:"varint,11,opt,name=order,proto3" json:"order,omitempty"` //时间排序 0:aes(默认,从久到近排序) 1:desc(时间从近到久排序)
}
func (x *PropertyLogIndexReq) Reset() {
*x = PropertyLogIndexReq{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_di_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PropertyLogIndexReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PropertyLogIndexReq) ProtoMessage() {}
func (x *PropertyLogIndexReq) ProtoReflect() protoreflect.Message {
mi := &file_proto_di_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PropertyLogIndexReq.ProtoReflect.Descriptor instead.
func (*PropertyLogIndexReq) Descriptor() ([]byte, []int) {
return file_proto_di_proto_rawDescGZIP(), []int{6}
}
func (x *PropertyLogIndexReq) GetPage() *PageInfo {
if x != nil {
return x.Page
}
return nil
}
func (x *PropertyLogIndexReq) GetDeviceNames() []string {
if x != nil {
return x.DeviceNames
}
return nil
}
func (x *PropertyLogIndexReq) GetProductID() string {
if x != nil {
return x.ProductID
}
return ""
}
func (x *PropertyLogIndexReq) GetDataID() string {
if x != nil {
return x.DataID
}
return ""
}
func (x *PropertyLogIndexReq) GetTimeStart() int64 {
if x != nil {
return x.TimeStart
}
return 0
}
func (x *PropertyLogIndexReq) GetTimeEnd() int64 {
if x != nil {
return x.TimeEnd
}
return 0
}
func (x *PropertyLogIndexReq) GetInterval() int64 {
if x != nil {
return x.Interval
}
return 0
}
func (x *PropertyLogIndexReq) GetArgFunc() string {
if x != nil {
return x.ArgFunc
}
return ""
}
func (x *PropertyLogIndexReq) GetFill() string {
if x != nil {
return x.Fill
}
return ""
}
func (x *PropertyLogIndexReq) GetOrder() int32 {
if x != nil {
return x.Order
}
return 0
}
//获取对应日志信息
type PropertyLatestIndexReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ProductID string `protobuf:"bytes,2,opt,name=productID,proto3" json:"productID,omitempty"` //产品id (必填)
DeviceName string `protobuf:"bytes,1,opt,name=deviceName,proto3" json:"deviceName,omitempty"` //设备名(必填)
DataIDs []string `protobuf:"bytes,3,rep,name=dataIDs,proto3" json:"dataIDs,omitempty"` //获取的具体标识符的数据 如果不指定则获取所有属性数据,一个属性一条,如果没有获取到的不会返回值
}
func (x *PropertyLatestIndexReq) Reset() {
*x = PropertyLatestIndexReq{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_di_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PropertyLatestIndexReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PropertyLatestIndexReq) ProtoMessage() {}
func (x *PropertyLatestIndexReq) ProtoReflect() protoreflect.Message {
mi := &file_proto_di_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PropertyLatestIndexReq.ProtoReflect.Descriptor instead.
func (*PropertyLatestIndexReq) Descriptor() ([]byte, []int) {
return file_proto_di_proto_rawDescGZIP(), []int{7}
}
func (x *PropertyLatestIndexReq) GetProductID() string {
if x != nil {
return x.ProductID
}
return ""
}
func (x *PropertyLatestIndexReq) GetDeviceName() string {
if x != nil {
return x.DeviceName
}
return ""
}
func (x *PropertyLatestIndexReq) GetDataIDs() []string {
if x != nil {
return x.DataIDs
}
return nil
}
//设备的日志数据
type PropertyIndex struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` //发生时间戳(毫秒时间戳)
DataID string `protobuf:"bytes,3,opt,name=dataID,proto3" json:"dataID,omitempty"` //属性id
Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` //获取到的值
}
func (x *PropertyIndex) Reset() {
*x = PropertyIndex{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_di_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PropertyIndex) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PropertyIndex) ProtoMessage() {}
func (x *PropertyIndex) ProtoReflect() protoreflect.Message {
mi := &file_proto_di_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PropertyIndex.ProtoReflect.Descriptor instead.
func (*PropertyIndex) Descriptor() ([]byte, []int) {
return file_proto_di_proto_rawDescGZIP(), []int{8}
}
func (x *PropertyIndex) GetTimestamp() int64 {
if x != nil {
return x.Timestamp
}
return 0
}
func (x *PropertyIndex) GetDataID() string {
if x != nil {
return x.DataID
}
return ""
}
func (x *PropertyIndex) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
//获取对应日志信息
type PropertyIndexResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` //总数
List []*PropertyIndex `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
}
func (x *PropertyIndexResp) Reset() {
*x = PropertyIndexResp{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_di_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PropertyIndexResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PropertyIndexResp) ProtoMessage() {}
func (x *PropertyIndexResp) ProtoReflect() protoreflect.Message {
mi := &file_proto_di_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PropertyIndexResp.ProtoReflect.Descriptor instead.
func (*PropertyIndexResp) Descriptor() ([]byte, []int) {
return file_proto_di_proto_rawDescGZIP(), []int{9}
}
func (x *PropertyIndexResp) GetTotal() int64 {
if x != nil {
return x.Total
}
return 0
}
func (x *PropertyIndexResp) GetList() []*PropertyIndex {
if x != nil {
return x.List
}
return nil
}
//获取对应日志信息
type EventLogIndexReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Page *PageInfo `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` //使用了聚合函数及间隔的时候无效
ProductID string `protobuf:"bytes,2,opt,name=productID,proto3" json:"productID,omitempty"` //产品id (必填)
DeviceNames []string `protobuf:"bytes,3,rep,name=deviceNames,proto3" json:"deviceNames,omitempty"` //设备名(不填获取产品下所有设备)
DataID string `protobuf:"bytes,4,opt,name=dataID,proto3" json:"dataID,omitempty"` //获取的具体标识符的数据(必填)
TimeStart int64 `protobuf:"varint,5,opt,name=timeStart,proto3" json:"timeStart,omitempty"` //获取时间的开始(毫秒时间戳)
TimeEnd int64 `protobuf:"varint,6,opt,name=timeEnd,proto3" json:"timeEnd,omitempty"` //时间的结束(毫秒时间戳)
Types []string `protobuf:"bytes,7,rep,name=types,proto3" json:"types,omitempty"` //类型 事件类型: 信息:info 告警alert 故障:fault
}
func (x *EventLogIndexReq) Reset() {
*x = EventLogIndexReq{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_di_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *EventLogIndexReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EventLogIndexReq) ProtoMessage() {}
func (x *EventLogIndexReq) ProtoReflect() protoreflect.Message {
mi := &file_proto_di_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use EventLogIndexReq.ProtoReflect.Descriptor instead.
func (*EventLogIndexReq) Descriptor() ([]byte, []int) {
return file_proto_di_proto_rawDescGZIP(), []int{10}
}
func (x *EventLogIndexReq) GetPage() *PageInfo {
if x != nil {
return x.Page
}
return nil
}
func (x *EventLogIndexReq) GetProductID() string {
if x != nil {
return x.ProductID
}
return ""
}
func (x *EventLogIndexReq) GetDeviceNames() []string {
if x != nil {
return x.DeviceNames
}
return nil
}
func (x *EventLogIndexReq) GetDataID() string {
if x != nil {
return x.DataID
}
return ""
}
func (x *EventLogIndexReq) GetTimeStart() int64 {
if x != nil {
return x.TimeStart
}
return 0
}
func (x *EventLogIndexReq) GetTimeEnd() int64 {
if x != nil {
return x.TimeEnd
}
return 0
}
func (x *EventLogIndexReq) GetTypes() []string {
if x != nil {
return x.Types
}
return nil
}
//设备的日志数据
type EventIndex struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` //发生时间戳(毫秒时间戳)
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // 事件类型: 信息:info 告警alert 故障:fault
DataID string `protobuf:"bytes,3,opt,name=dataID,proto3" json:"dataID,omitempty"` //属性id
Params string `protobuf:"bytes,4,opt,name=params,proto3" json:"params,omitempty"` //获取到的值
}
func (x *EventIndex) Reset() {
*x = EventIndex{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_di_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *EventIndex) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EventIndex) ProtoMessage() {}
func (x *EventIndex) ProtoReflect() protoreflect.Message {
mi := &file_proto_di_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use EventIndex.ProtoReflect.Descriptor instead.
func (*EventIndex) Descriptor() ([]byte, []int) {
return file_proto_di_proto_rawDescGZIP(), []int{11}
}
func (x *EventIndex) GetTimestamp() int64 {
if x != nil {
return x.Timestamp
}
return 0
}
func (x *EventIndex) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *EventIndex) GetDataID() string {
if x != nil {
return x.DataID
}
return ""
}
func (x *EventIndex) GetParams() string {
if x != nil {
return x.Params
}
return ""
}
//获取对应日志信息
type EventIndexResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` //总数
List []*EventIndex `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
}
func (x *EventIndexResp) Reset() {
*x = EventIndexResp{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_di_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *EventIndexResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EventIndexResp) ProtoMessage() {}
func (x *EventIndexResp) ProtoReflect() protoreflect.Message {
mi := &file_proto_di_proto_msgTypes[12]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use EventIndexResp.ProtoReflect.Descriptor instead.
func (*EventIndexResp) Descriptor() ([]byte, []int) {
return file_proto_di_proto_rawDescGZIP(), []int{12}
}
func (x *EventIndexResp) GetTotal() int64 {
if x != nil {
return x.Total
}
return 0
}
func (x *EventIndexResp) GetList() []*EventIndex {
if x != nil {
return x.List
}
return nil
}
//实时获取对应信息
type HubLogIndexReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ProductID string `protobuf:"bytes,1,opt,name=productID,proto3" json:"productID,omitempty"` //产品id
DeviceName string `protobuf:"bytes,2,opt,name=deviceName,proto3" json:"deviceName,omitempty"` //设备名
TimeStart int64 `protobuf:"varint,3,opt,name=timeStart,proto3" json:"timeStart,omitempty"` //获取时间的开始(毫秒时间戳)
TimeEnd int64 `protobuf:"varint,4,opt,name=timeEnd,proto3" json:"timeEnd,omitempty"` //时间的结束(毫秒时间戳)
Page *PageInfo `protobuf:"bytes,5,opt,name=page,proto3" json:"page,omitempty"` //分页信息
Actions []string `protobuf:"bytes,6,rep,name=actions,proto3" json:"actions,omitempty"` //过滤操作类型 connected:上线 disconnected:下线 property:属性 event:事件 action:操作 thing:物模型提交的操作为匹配的日志
Topics []string `protobuf:"bytes,7,rep,name=topics,proto3" json:"topics,omitempty"` //过滤主题
Content string `protobuf:"bytes,8,opt,name=content,proto3" json:"content,omitempty"` //过滤内容
RequestID string `protobuf:"bytes,9,opt,name=requestID,proto3" json:"requestID,omitempty"` //过滤请求ID
}
func (x *HubLogIndexReq) Reset() {
*x = HubLogIndexReq{}
if protoimpl.UnsafeEnabled {
mi := &file_proto_di_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *HubLogIndexReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HubLogIndexReq) ProtoMessage() {}
func (x *HubLogIndexReq) ProtoReflect() protoreflect.Message {
mi := &file_proto_di_proto_msgTypes[13]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use HubLogIndexReq.ProtoReflect.Descriptor instead.
func (*HubLogIndexReq) Descriptor() ([]byte, []int) {
return file_proto_di_proto_rawDescGZIP(), []int{13}
}
func (x *HubLogIndexReq) GetProductID() string {
if x != nil {
return x.ProductID
}
return ""
}
func (x *HubLogIndexReq) GetDeviceName() string {
if x != nil {
return x.DeviceName
}
return ""
}
func (x *HubLogIndexReq) GetTimeStart() int64 {
if x != nil {
return x.TimeStart
}
return 0
}
func (x *HubLogIndexReq) GetTimeEnd() int64 {
if x != nil {
return x.TimeEnd
}
return 0
}
func (x *HubLogIndexReq) GetPage() *PageInfo {
if x != nil {
return x.Page
}
return nil
}
func (x *HubLogIndexReq) GetActions() []string {
if x != nil {
return x.Actions
}
return nil
}
func (x *HubLogIndexReq) GetTopics() []string {
if x != nil {
return x.Topics