-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.pb.go
2579 lines (2261 loc) · 91.8 KB
/
plugin.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.28.1
// protoc v3.20.3
// source: plugin/plugin.proto
package cloud_pyxis_plugin
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
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 Flip int32
const (
Flip_Flip_90 Flip = 0
Flip_Flip_180 Flip = 1
Flip_Flip_270 Flip = 2
Flip_Flip_360 Flip = 3
)
// Enum value maps for Flip.
var (
Flip_name = map[int32]string{
0: "Flip_90",
1: "Flip_180",
2: "Flip_270",
3: "Flip_360",
}
Flip_value = map[string]int32{
"Flip_90": 0,
"Flip_180": 1,
"Flip_270": 2,
"Flip_360": 3,
}
)
func (x Flip) Enum() *Flip {
p := new(Flip)
*p = x
return p
}
func (x Flip) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Flip) Descriptor() protoreflect.EnumDescriptor {
return file_plugin_plugin_proto_enumTypes[0].Descriptor()
}
func (Flip) Type() protoreflect.EnumType {
return &file_plugin_plugin_proto_enumTypes[0]
}
func (x Flip) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Flip.Descriptor instead.
func (Flip) EnumDescriptor() ([]byte, []int) {
return file_plugin_plugin_proto_rawDescGZIP(), []int{0}
}
type Type int32
const (
Type_LightbulbRelay Type = 0
Type_LightbulbDimmer Type = 1
Type_LightbulbRGB Type = 2
Type_Switch Type = 3
Type_Outlet Type = 4
Type_Control Type = 5
Type_TemperatureSensor Type = 6
Type_WindowCovering Type = 7
Type_ContactSensor Type = 8
Type_LeakSensor Type = 9
Type_SmokeSensor Type = 10
Type_LightSensor Type = 11
Type_HumiditySensor Type = 12
Type_MotionSensor Type = 13
Type_Thermostat Type = 14
Type_FloorHeating Type = 15
Type_MusicPlayer Type = 16
Type_IRemitter Type = 17
Type_AV_control Type = 18
Type_GarageDoorOpener Type = 19
Type_LockMechanism Type = 20
Type_PressureSensor Type = 21
Type_AirQuality Type = 22
Type_AirPurifier Type = 23
Type_Humidifier Type = 24
Type_CarbonDioxideSensor Type = 25
Type_BridgedControl Type = 26
Type_Fan Type = 27
Type_Faucets Type = 28
Type_Sprinklers Type = 29
// AirConditioner = 30;
Type_Valve Type = 31
)
// Enum value maps for Type.
var (
Type_name = map[int32]string{
0: "LightbulbRelay",
1: "LightbulbDimmer",
2: "LightbulbRGB",
3: "Switch",
4: "Outlet",
5: "Control",
6: "TemperatureSensor",
7: "WindowCovering",
8: "ContactSensor",
9: "LeakSensor",
10: "SmokeSensor",
11: "LightSensor",
12: "HumiditySensor",
13: "MotionSensor",
14: "Thermostat",
15: "FloorHeating",
16: "MusicPlayer",
17: "IRemitter",
18: "AV_control",
19: "GarageDoorOpener",
20: "LockMechanism",
21: "PressureSensor",
22: "AirQuality",
23: "AirPurifier",
24: "Humidifier",
25: "CarbonDioxideSensor",
26: "BridgedControl",
27: "Fan",
28: "Faucets",
29: "Sprinklers",
31: "Valve",
}
Type_value = map[string]int32{
"LightbulbRelay": 0,
"LightbulbDimmer": 1,
"LightbulbRGB": 2,
"Switch": 3,
"Outlet": 4,
"Control": 5,
"TemperatureSensor": 6,
"WindowCovering": 7,
"ContactSensor": 8,
"LeakSensor": 9,
"SmokeSensor": 10,
"LightSensor": 11,
"HumiditySensor": 12,
"MotionSensor": 13,
"Thermostat": 14,
"FloorHeating": 15,
"MusicPlayer": 16,
"IRemitter": 17,
"AV_control": 18,
"GarageDoorOpener": 19,
"LockMechanism": 20,
"PressureSensor": 21,
"AirQuality": 22,
"AirPurifier": 23,
"Humidifier": 24,
"CarbonDioxideSensor": 25,
"BridgedControl": 26,
"Fan": 27,
"Faucets": 28,
"Sprinklers": 29,
"Valve": 31,
}
)
func (x Type) Enum() *Type {
p := new(Type)
*p = x
return p
}
func (x Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Type) Descriptor() protoreflect.EnumDescriptor {
return file_plugin_plugin_proto_enumTypes[1].Descriptor()
}
func (Type) Type() protoreflect.EnumType {
return &file_plugin_plugin_proto_enumTypes[1]
}
func (x Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Type.Descriptor instead.
func (Type) EnumDescriptor() ([]byte, []int) {
return file_plugin_plugin_proto_rawDescGZIP(), []int{1}
}
type PluginMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Subtype *SubtypeOneOf `protobuf:"bytes,1,opt,name=subtype,proto3" json:"subtype,omitempty"`
Address *PluginAddress `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
}
func (x *PluginMessage) Reset() {
*x = PluginMessage{}
if protoimpl.UnsafeEnabled {
mi := &file_plugin_plugin_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PluginMessage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PluginMessage) ProtoMessage() {}
func (x *PluginMessage) ProtoReflect() protoreflect.Message {
mi := &file_plugin_plugin_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 PluginMessage.ProtoReflect.Descriptor instead.
func (*PluginMessage) Descriptor() ([]byte, []int) {
return file_plugin_plugin_proto_rawDescGZIP(), []int{0}
}
func (x *PluginMessage) GetSubtype() *SubtypeOneOf {
if x != nil {
return x.Subtype
}
return nil
}
func (x *PluginMessage) GetAddress() *PluginAddress {
if x != nil {
return x.Address
}
return nil
}
type Plugin struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
AbleUploadDevices bool `protobuf:"varint,2,opt,name=ableUploadDevices,proto3" json:"ableUploadDevices,omitempty"`
StringValues map[string]string `protobuf:"bytes,3,rep,name=stringValues,proto3" json:"stringValues,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
NumberValues map[string]int32 `protobuf:"bytes,4,rep,name=numberValues,proto3" json:"numberValues,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
FloatValues map[string]float32 `protobuf:"bytes,5,rep,name=floatValues,proto3" json:"floatValues,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"fixed32,2,opt,name=value,proto3"`
}
func (x *Plugin) Reset() {
*x = Plugin{}
if protoimpl.UnsafeEnabled {
mi := &file_plugin_plugin_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Plugin) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Plugin) ProtoMessage() {}
func (x *Plugin) ProtoReflect() protoreflect.Message {
mi := &file_plugin_plugin_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 Plugin.ProtoReflect.Descriptor instead.
func (*Plugin) Descriptor() ([]byte, []int) {
return file_plugin_plugin_proto_rawDescGZIP(), []int{1}
}
func (x *Plugin) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Plugin) GetAbleUploadDevices() bool {
if x != nil {
return x.AbleUploadDevices
}
return false
}
func (x *Plugin) GetStringValues() map[string]string {
if x != nil {
return x.StringValues
}
return nil
}
func (x *Plugin) GetNumberValues() map[string]int32 {
if x != nil {
return x.NumberValues
}
return nil
}
func (x *Plugin) GetFloatValues() map[string]float32 {
if x != nil {
return x.FloatValues
}
return nil
}
type SubtypeOneOf struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Subtype:
// *SubtypeOneOf_Value
// *SubtypeOneOf_On
// *SubtypeOneOf_Dimmer
// *SubtypeOneOf_Hsl
// *SubtypeOneOf_Hue
// *SubtypeOneOf_Saturation
// *SubtypeOneOf_Rgb
// *SubtypeOneOf_Red
// *SubtypeOneOf_Green
// *SubtypeOneOf_Blue
// *SubtypeOneOf_State
// *SubtypeOneOf_Temperature
// *SubtypeOneOf_CurrentTemp
// *SubtypeOneOf_HeatCoolState
// *SubtypeOneOf_TargetTemp
// *SubtypeOneOf_Batterylevel
// *SubtypeOneOf_Batterylow
// *SubtypeOneOf_Rotate
// *SubtypeOneOf_Anytext
// *SubtypeOneOf_PlayStop
// *SubtypeOneOf_Volume
// *SubtypeOneOf_Operation
// *SubtypeOneOf_FanMode
// *SubtypeOneOf_Thermostat
// *SubtypeOneOf_Flip
// *SubtypeOneOf_AirqualityPm
// *SubtypeOneOf_CurrentState
// *SubtypeOneOf_TargetState
// *SubtypeOneOf_LockControls
// *SubtypeOneOf_LimitValue
// *SubtypeOneOf_ChargingState
// *SubtypeOneOf_LinkQuality
// *SubtypeOneOf_ColorTemp
// *SubtypeOneOf_LastStatus
// *SubtypeOneOf_GetListBaseTopics
// *SubtypeOneOf_SetListBaseTopics
// *SubtypeOneOf_ActListBaseTopics
// *SubtypeOneOf_WhiteValue
// *SubtypeOneOf_YellowValue
// *SubtypeOneOf_LastStatusSubtype
// *SubtypeOneOf_CurrentHeatCoolState
// *SubtypeOneOf_TargetPosition
// *SubtypeOneOf_CurrentPosition
// *SubtypeOneOf_Windowcover
Subtype isSubtypeOneOf_Subtype `protobuf_oneof:"subtype"`
}
func (x *SubtypeOneOf) Reset() {
*x = SubtypeOneOf{}
if protoimpl.UnsafeEnabled {
mi := &file_plugin_plugin_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SubtypeOneOf) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SubtypeOneOf) ProtoMessage() {}
func (x *SubtypeOneOf) ProtoReflect() protoreflect.Message {
mi := &file_plugin_plugin_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 SubtypeOneOf.ProtoReflect.Descriptor instead.
func (*SubtypeOneOf) Descriptor() ([]byte, []int) {
return file_plugin_plugin_proto_rawDescGZIP(), []int{2}
}
func (m *SubtypeOneOf) GetSubtype() isSubtypeOneOf_Subtype {
if m != nil {
return m.Subtype
}
return nil
}
func (x *SubtypeOneOf) GetValue() float32 {
if x, ok := x.GetSubtype().(*SubtypeOneOf_Value); ok {
return x.Value
}
return 0
}
func (x *SubtypeOneOf) GetOn() bool {
if x, ok := x.GetSubtype().(*SubtypeOneOf_On); ok {
return x.On
}
return false
}
func (x *SubtypeOneOf) GetDimmer() *DIMMER {
if x, ok := x.GetSubtype().(*SubtypeOneOf_Dimmer); ok {
return x.Dimmer
}
return nil
}
func (x *SubtypeOneOf) GetHsl() *HSL {
if x, ok := x.GetSubtype().(*SubtypeOneOf_Hsl); ok {
return x.Hsl
}
return nil
}
func (x *SubtypeOneOf) GetHue() uint32 {
if x, ok := x.GetSubtype().(*SubtypeOneOf_Hue); ok {
return x.Hue
}
return 0
}
func (x *SubtypeOneOf) GetSaturation() uint32 {
if x, ok := x.GetSubtype().(*SubtypeOneOf_Saturation); ok {
return x.Saturation
}
return 0
}
func (x *SubtypeOneOf) GetRgb() *RGB {
if x, ok := x.GetSubtype().(*SubtypeOneOf_Rgb); ok {
return x.Rgb
}
return nil
}
func (x *SubtypeOneOf) GetRed() uint32 {
if x, ok := x.GetSubtype().(*SubtypeOneOf_Red); ok {
return x.Red
}
return 0
}
func (x *SubtypeOneOf) GetGreen() uint32 {
if x, ok := x.GetSubtype().(*SubtypeOneOf_Green); ok {
return x.Green
}
return 0
}
func (x *SubtypeOneOf) GetBlue() uint32 {
if x, ok := x.GetSubtype().(*SubtypeOneOf_Blue); ok {
return x.Blue
}
return 0
}
func (x *SubtypeOneOf) GetState() string {
if x, ok := x.GetSubtype().(*SubtypeOneOf_State); ok {
return x.State
}
return ""
}
func (x *SubtypeOneOf) GetTemperature() float64 {
if x, ok := x.GetSubtype().(*SubtypeOneOf_Temperature); ok {
return x.Temperature
}
return 0
}
func (x *SubtypeOneOf) GetCurrentTemp() float64 {
if x, ok := x.GetSubtype().(*SubtypeOneOf_CurrentTemp); ok {
return x.CurrentTemp
}
return 0
}
func (x *SubtypeOneOf) GetHeatCoolState() uint32 {
if x, ok := x.GetSubtype().(*SubtypeOneOf_HeatCoolState); ok {
return x.HeatCoolState
}
return 0
}
func (x *SubtypeOneOf) GetTargetTemp() float64 {
if x, ok := x.GetSubtype().(*SubtypeOneOf_TargetTemp); ok {
return x.TargetTemp
}
return 0
}
func (x *SubtypeOneOf) GetBatterylevel() uint32 {
if x, ok := x.GetSubtype().(*SubtypeOneOf_Batterylevel); ok {
return x.Batterylevel
}
return 0
}
func (x *SubtypeOneOf) GetBatterylow() bool {
if x, ok := x.GetSubtype().(*SubtypeOneOf_Batterylow); ok {
return x.Batterylow
}
return false
}
func (x *SubtypeOneOf) GetRotate() float32 {
if x, ok := x.GetSubtype().(*SubtypeOneOf_Rotate); ok {
return x.Rotate
}
return 0
}
func (x *SubtypeOneOf) GetAnytext() string {
if x, ok := x.GetSubtype().(*SubtypeOneOf_Anytext); ok {
return x.Anytext
}
return ""
}
func (x *SubtypeOneOf) GetPlayStop() uint32 {
if x, ok := x.GetSubtype().(*SubtypeOneOf_PlayStop); ok {
return x.PlayStop
}
return 0
}
func (x *SubtypeOneOf) GetVolume() uint32 {
if x, ok := x.GetSubtype().(*SubtypeOneOf_Volume); ok {
return x.Volume
}
return 0
}
func (x *SubtypeOneOf) GetOperation() uint32 {
if x, ok := x.GetSubtype().(*SubtypeOneOf_Operation); ok {
return x.Operation
}
return 0
}
func (x *SubtypeOneOf) GetFanMode() uint32 {
if x, ok := x.GetSubtype().(*SubtypeOneOf_FanMode); ok {
return x.FanMode
}
return 0
}
func (x *SubtypeOneOf) GetThermostat() *THERMOSTAT {
if x, ok := x.GetSubtype().(*SubtypeOneOf_Thermostat); ok {
return x.Thermostat
}
return nil
}
func (x *SubtypeOneOf) GetFlip() Flip {
if x, ok := x.GetSubtype().(*SubtypeOneOf_Flip); ok {
return x.Flip
}
return Flip_Flip_90
}
func (x *SubtypeOneOf) GetAirqualityPm() uint32 {
if x, ok := x.GetSubtype().(*SubtypeOneOf_AirqualityPm); ok {
return x.AirqualityPm
}
return 0
}
func (x *SubtypeOneOf) GetCurrentState() float32 {
if x, ok := x.GetSubtype().(*SubtypeOneOf_CurrentState); ok {
return x.CurrentState
}
return 0
}
func (x *SubtypeOneOf) GetTargetState() float32 {
if x, ok := x.GetSubtype().(*SubtypeOneOf_TargetState); ok {
return x.TargetState
}
return 0
}
func (x *SubtypeOneOf) GetLockControls() bool {
if x, ok := x.GetSubtype().(*SubtypeOneOf_LockControls); ok {
return x.LockControls
}
return false
}
func (x *SubtypeOneOf) GetLimitValue() uint32 {
if x, ok := x.GetSubtype().(*SubtypeOneOf_LimitValue); ok {
return x.LimitValue
}
return 0
}
func (x *SubtypeOneOf) GetChargingState() uint32 {
if x, ok := x.GetSubtype().(*SubtypeOneOf_ChargingState); ok {
return x.ChargingState
}
return 0
}
func (x *SubtypeOneOf) GetLinkQuality() uint32 {
if x, ok := x.GetSubtype().(*SubtypeOneOf_LinkQuality); ok {
return x.LinkQuality
}
return 0
}
func (x *SubtypeOneOf) GetColorTemp() uint32 {
if x, ok := x.GetSubtype().(*SubtypeOneOf_ColorTemp); ok {
return x.ColorTemp
}
return 0
}
func (x *SubtypeOneOf) GetLastStatus() *SubtypeOneOf {
if x, ok := x.GetSubtype().(*SubtypeOneOf_LastStatus); ok {
return x.LastStatus
}
return nil
}
func (x *SubtypeOneOf) GetGetListBaseTopics() bool {
if x, ok := x.GetSubtype().(*SubtypeOneOf_GetListBaseTopics); ok {
return x.GetListBaseTopics
}
return false
}
func (x *SubtypeOneOf) GetSetListBaseTopics() bool {
if x, ok := x.GetSubtype().(*SubtypeOneOf_SetListBaseTopics); ok {
return x.SetListBaseTopics
}
return false
}
func (x *SubtypeOneOf) GetActListBaseTopics() bool {
if x, ok := x.GetSubtype().(*SubtypeOneOf_ActListBaseTopics); ok {
return x.ActListBaseTopics
}
return false
}
func (x *SubtypeOneOf) GetWhiteValue() uint32 {
if x, ok := x.GetSubtype().(*SubtypeOneOf_WhiteValue); ok {
return x.WhiteValue
}
return 0
}
func (x *SubtypeOneOf) GetYellowValue() uint32 {
if x, ok := x.GetSubtype().(*SubtypeOneOf_YellowValue); ok {
return x.YellowValue
}
return 0
}
func (x *SubtypeOneOf) GetLastStatusSubtype() *Subtype {
if x, ok := x.GetSubtype().(*SubtypeOneOf_LastStatusSubtype); ok {
return x.LastStatusSubtype
}
return nil
}
func (x *SubtypeOneOf) GetCurrentHeatCoolState() uint32 {
if x, ok := x.GetSubtype().(*SubtypeOneOf_CurrentHeatCoolState); ok {
return x.CurrentHeatCoolState
}
return 0
}
func (x *SubtypeOneOf) GetTargetPosition() uint32 {
if x, ok := x.GetSubtype().(*SubtypeOneOf_TargetPosition); ok {
return x.TargetPosition
}
return 0
}
func (x *SubtypeOneOf) GetCurrentPosition() uint32 {
if x, ok := x.GetSubtype().(*SubtypeOneOf_CurrentPosition); ok {
return x.CurrentPosition
}
return 0
}
func (x *SubtypeOneOf) GetWindowcover() *WINDOWCOVER {
if x, ok := x.GetSubtype().(*SubtypeOneOf_Windowcover); ok {
return x.Windowcover
}
return nil
}
type isSubtypeOneOf_Subtype interface {
isSubtypeOneOf_Subtype()
}
type SubtypeOneOf_Value struct {
Value float32 `protobuf:"fixed32,1,opt,name=value,proto3,oneof"`
}
type SubtypeOneOf_On struct {
On bool `protobuf:"varint,2,opt,name=on,proto3,oneof"`
}
type SubtypeOneOf_Dimmer struct {
Dimmer *DIMMER `protobuf:"bytes,3,opt,name=dimmer,proto3,oneof"`
}
type SubtypeOneOf_Hsl struct {
Hsl *HSL `protobuf:"bytes,4,opt,name=hsl,proto3,oneof"`
}
type SubtypeOneOf_Hue struct {
Hue uint32 `protobuf:"varint,5,opt,name=hue,proto3,oneof"`
}
type SubtypeOneOf_Saturation struct {
Saturation uint32 `protobuf:"varint,6,opt,name=saturation,proto3,oneof"`
}
type SubtypeOneOf_Rgb struct {
Rgb *RGB `protobuf:"bytes,7,opt,name=rgb,proto3,oneof"`
}
type SubtypeOneOf_Red struct {
Red uint32 `protobuf:"varint,8,opt,name=red,proto3,oneof"`
}
type SubtypeOneOf_Green struct {
Green uint32 `protobuf:"varint,9,opt,name=green,proto3,oneof"`
}
type SubtypeOneOf_Blue struct {
Blue uint32 `protobuf:"varint,10,opt,name=blue,proto3,oneof"`
}
type SubtypeOneOf_State struct {
State string `protobuf:"bytes,11,opt,name=state,proto3,oneof"`
}
type SubtypeOneOf_Temperature struct {
Temperature float64 `protobuf:"fixed64,12,opt,name=temperature,proto3,oneof"`
}
type SubtypeOneOf_CurrentTemp struct {
CurrentTemp float64 `protobuf:"fixed64,13,opt,name=currentTemp,proto3,oneof"`
}
type SubtypeOneOf_HeatCoolState struct {
HeatCoolState uint32 `protobuf:"varint,14,opt,name=heatCoolState,proto3,oneof"`
}
type SubtypeOneOf_TargetTemp struct {
TargetTemp float64 `protobuf:"fixed64,15,opt,name=targetTemp,proto3,oneof"`
}
type SubtypeOneOf_Batterylevel struct {
Batterylevel uint32 `protobuf:"varint,16,opt,name=batterylevel,proto3,oneof"`
}
type SubtypeOneOf_Batterylow struct {
Batterylow bool `protobuf:"varint,17,opt,name=batterylow,proto3,oneof"`
}
type SubtypeOneOf_Rotate struct {
Rotate float32 `protobuf:"fixed32,18,opt,name=rotate,proto3,oneof"`
}
type SubtypeOneOf_Anytext struct {
Anytext string `protobuf:"bytes,19,opt,name=anytext,proto3,oneof"`
}
type SubtypeOneOf_PlayStop struct {
PlayStop uint32 `protobuf:"varint,20,opt,name=playStop,proto3,oneof"`
}
type SubtypeOneOf_Volume struct {
Volume uint32 `protobuf:"varint,21,opt,name=volume,proto3,oneof"`
}
type SubtypeOneOf_Operation struct {
Operation uint32 `protobuf:"varint,22,opt,name=operation,proto3,oneof"`
}
type SubtypeOneOf_FanMode struct {
FanMode uint32 `protobuf:"varint,23,opt,name=fanMode,proto3,oneof"`
}
type SubtypeOneOf_Thermostat struct {
Thermostat *THERMOSTAT `protobuf:"bytes,24,opt,name=thermostat,proto3,oneof"`
}
type SubtypeOneOf_Flip struct {
Flip Flip `protobuf:"varint,25,opt,name=flip,proto3,enum=plugin.Flip,oneof"`
}
type SubtypeOneOf_AirqualityPm struct {
AirqualityPm uint32 `protobuf:"varint,26,opt,name=airqualityPm,proto3,oneof"`
}
type SubtypeOneOf_CurrentState struct {
CurrentState float32 `protobuf:"fixed32,27,opt,name=currentState,proto3,oneof"`
}
type SubtypeOneOf_TargetState struct {
TargetState float32 `protobuf:"fixed32,28,opt,name=targetState,proto3,oneof"`
}
type SubtypeOneOf_LockControls struct {
LockControls bool `protobuf:"varint,29,opt,name=lockControls,proto3,oneof"`
}
type SubtypeOneOf_LimitValue struct {
LimitValue uint32 `protobuf:"varint,30,opt,name=limitValue,proto3,oneof"`
}
type SubtypeOneOf_ChargingState struct {
ChargingState uint32 `protobuf:"varint,31,opt,name=chargingState,proto3,oneof"`
}
type SubtypeOneOf_LinkQuality struct {
LinkQuality uint32 `protobuf:"varint,32,opt,name=linkQuality,proto3,oneof"`
}
type SubtypeOneOf_ColorTemp struct {
ColorTemp uint32 `protobuf:"varint,33,opt,name=colorTemp,proto3,oneof"` //140 - 500
}
type SubtypeOneOf_LastStatus struct {
LastStatus *SubtypeOneOf `protobuf:"bytes,34,opt,name=lastStatus,proto3,oneof"`
}
type SubtypeOneOf_GetListBaseTopics struct {
GetListBaseTopics bool `protobuf:"varint,35,opt,name=getListBaseTopics,proto3,oneof"`
}
type SubtypeOneOf_SetListBaseTopics struct {
SetListBaseTopics bool `protobuf:"varint,36,opt,name=setListBaseTopics,proto3,oneof"`
}
type SubtypeOneOf_ActListBaseTopics struct {
ActListBaseTopics bool `protobuf:"varint,37,opt,name=actListBaseTopics,proto3,oneof"`
}
type SubtypeOneOf_WhiteValue struct {
WhiteValue uint32 `protobuf:"varint,38,opt,name=whiteValue,proto3,oneof"`
}
type SubtypeOneOf_YellowValue struct {
YellowValue uint32 `protobuf:"varint,39,opt,name=yellowValue,proto3,oneof"`
}
type SubtypeOneOf_LastStatusSubtype struct {
LastStatusSubtype *Subtype `protobuf:"bytes,40,opt,name=lastStatusSubtype,proto3,oneof"`
}
type SubtypeOneOf_CurrentHeatCoolState struct {
// double targetTempHeat = 41;
// double targetTempCool = 42;
// double targetTempAuto = 43;
// double targetTempDry = 44;
// double targetTempFan = 45;
CurrentHeatCoolState uint32 `protobuf:"varint,46,opt,name=currentHeatCoolState,proto3,oneof"`
}
type SubtypeOneOf_TargetPosition struct {
TargetPosition uint32 `protobuf:"varint,47,opt,name=targetPosition,proto3,oneof"`
}
type SubtypeOneOf_CurrentPosition struct {
CurrentPosition uint32 `protobuf:"varint,48,opt,name=currentPosition,proto3,oneof"`
}
type SubtypeOneOf_Windowcover struct {
Windowcover *WINDOWCOVER `protobuf:"bytes,49,opt,name=windowcover,proto3,oneof"`
}
func (*SubtypeOneOf_Value) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_On) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_Dimmer) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_Hsl) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_Hue) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_Saturation) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_Rgb) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_Red) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_Green) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_Blue) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_State) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_Temperature) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_CurrentTemp) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_HeatCoolState) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_TargetTemp) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_Batterylevel) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_Batterylow) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_Rotate) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_Anytext) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_PlayStop) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_Volume) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_Operation) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_FanMode) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_Thermostat) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_Flip) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_AirqualityPm) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_CurrentState) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_TargetState) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_LockControls) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_LimitValue) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_ChargingState) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_LinkQuality) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_ColorTemp) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_LastStatus) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_GetListBaseTopics) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_SetListBaseTopics) isSubtypeOneOf_Subtype() {}
func (*SubtypeOneOf_ActListBaseTopics) isSubtypeOneOf_Subtype() {}