-
Notifications
You must be signed in to change notification settings - Fork 1
/
broker_custom.pb.go
3925 lines (3449 loc) · 143 KB
/
broker_custom.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-goten-go
// File: edgelq/devices/proto/v1alpha/broker_custom.proto
// DO NOT EDIT!!!
package broker_client
import (
"fmt"
"reflect"
"sync"
"google.golang.org/protobuf/encoding/protojson"
"google.golang.org/protobuf/proto"
preflect "google.golang.org/protobuf/reflect/protoreflect"
"google.golang.org/protobuf/runtime/protoimpl"
)
// proto imports
import (
device "github.com/cloudwan/edgelq-sdk/devices/resources/v1alpha/device"
)
// Reference imports to suppress errors if they are not otherwise used.
var (
_ = fmt.Errorf
_ = reflect.Method{}
_ = sync.Once{}
_ = protojson.MarshalOptions{}
_ = proto.MarshalOptions{}
_ = preflect.Value{}
_ = protoimpl.DescBuilder{}
)
// make sure we're using proto imports
var (
_ = &device.Device{}
)
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)
)
// Broker dedicated messages
type BrokerServiceType int32
const (
// Service type not specified
BrokerServiceType_BROKER_SERVICE_UNSPECIFIED BrokerServiceType = 0
// SSH service
BrokerServiceType_BROKER_SERVICE_SSH_LEGACY BrokerServiceType = 1
BrokerServiceType_BROKER_SERVICE_SSH BrokerServiceType = 3
// TCP port forward service
BrokerServiceType_BROKER_SERVICE_TCP_FORWARD_PORT BrokerServiceType = 2
// Reboot service
BrokerServiceType_BROKER_SERVICE_REBOOT BrokerServiceType = 4
// Shutdown service
BrokerServiceType_BROKER_SERVICE_SHUTDOWN BrokerServiceType = 5
// SCP service
BrokerServiceType_BROKER_SERVICE_SCP BrokerServiceType = 6
BrokerServiceType_BROKER_SERVICE_SCP_LEGACY BrokerServiceType = 7
// System Logs service
BrokerServiceType_BROKER_SYS_LOGS BrokerServiceType = 8
// Application (Container) Logs service
BrokerServiceType_BROKER_APP_LOGS BrokerServiceType = 9
// Pod State Management service
BrokerServiceType_BROKER_POD_MANAGEMENT BrokerServiceType = 10
)
var (
BrokerServiceType_name = map[int32]string{
0: "BROKER_SERVICE_UNSPECIFIED",
1: "BROKER_SERVICE_SSH_LEGACY",
3: "BROKER_SERVICE_SSH",
2: "BROKER_SERVICE_TCP_FORWARD_PORT",
4: "BROKER_SERVICE_REBOOT",
5: "BROKER_SERVICE_SHUTDOWN",
6: "BROKER_SERVICE_SCP",
7: "BROKER_SERVICE_SCP_LEGACY",
8: "BROKER_SYS_LOGS",
9: "BROKER_APP_LOGS",
10: "BROKER_POD_MANAGEMENT",
}
BrokerServiceType_value = map[string]int32{
"BROKER_SERVICE_UNSPECIFIED": 0,
"BROKER_SERVICE_SSH_LEGACY": 1,
"BROKER_SERVICE_SSH": 3,
"BROKER_SERVICE_TCP_FORWARD_PORT": 2,
"BROKER_SERVICE_REBOOT": 4,
"BROKER_SERVICE_SHUTDOWN": 5,
"BROKER_SERVICE_SCP": 6,
"BROKER_SERVICE_SCP_LEGACY": 7,
"BROKER_SYS_LOGS": 8,
"BROKER_APP_LOGS": 9,
"BROKER_POD_MANAGEMENT": 10,
}
)
func (x BrokerServiceType) Enum() *BrokerServiceType {
p := new(BrokerServiceType)
*p = x
return p
}
func (x BrokerServiceType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), preflect.EnumNumber(x))
}
func (BrokerServiceType) Descriptor() preflect.EnumDescriptor {
return edgelq_devices_proto_v1alpha_broker_custom_proto_enumTypes[0].Descriptor()
}
func (BrokerServiceType) Type() preflect.EnumType {
return &edgelq_devices_proto_v1alpha_broker_custom_proto_enumTypes[0]
}
func (x BrokerServiceType) Number() preflect.EnumNumber {
return preflect.EnumNumber(x)
}
// Deprecated, Use BrokerServiceType.ProtoReflect.Descriptor instead.
func (BrokerServiceType) EnumDescriptor() ([]byte, []int) {
return edgelq_devices_proto_v1alpha_broker_custom_proto_rawDescGZIP(), []int{0}
}
type SCPService_Configure_Direction int32
const (
SCPService_Configure_DOWNLOAD SCPService_Configure_Direction = 0
SCPService_Configure_UPLOAD SCPService_Configure_Direction = 1
)
var (
SCPService_Configure_Direction_name = map[int32]string{
0: "DOWNLOAD",
1: "UPLOAD",
}
SCPService_Configure_Direction_value = map[string]int32{
"DOWNLOAD": 0,
"UPLOAD": 1,
}
)
func (x SCPService_Configure_Direction) Enum() *SCPService_Configure_Direction {
p := new(SCPService_Configure_Direction)
*p = x
return p
}
func (x SCPService_Configure_Direction) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), preflect.EnumNumber(x))
}
func (SCPService_Configure_Direction) Descriptor() preflect.EnumDescriptor {
return edgelq_devices_proto_v1alpha_broker_custom_proto_enumTypes[1].Descriptor()
}
func (SCPService_Configure_Direction) Type() preflect.EnumType {
return &edgelq_devices_proto_v1alpha_broker_custom_proto_enumTypes[1]
}
func (x SCPService_Configure_Direction) Number() preflect.EnumNumber {
return preflect.EnumNumber(x)
}
// Deprecated, Use SCPService_Configure_Direction.ProtoReflect.Descriptor instead.
func (SCPService_Configure_Direction) EnumDescriptor() ([]byte, []int) {
return edgelq_devices_proto_v1alpha_broker_custom_proto_rawDescGZIP(), []int{8, 0, 0}
}
// Commands for pod state management
type PodManagementService_PodState int32
const (
// Unspecified pod state
PodManagementService_UNSPECIFIED PodManagementService_PodState = 0
// Start the pod
PodManagementService_START PodManagementService_PodState = 1
// Stop the pod
PodManagementService_STOP PodManagementService_PodState = 2
// Restart the pod
PodManagementService_RESTART PodManagementService_PodState = 3
)
var (
PodManagementService_PodState_name = map[int32]string{
0: "UNSPECIFIED",
1: "START",
2: "STOP",
3: "RESTART",
}
PodManagementService_PodState_value = map[string]int32{
"UNSPECIFIED": 0,
"START": 1,
"STOP": 2,
"RESTART": 3,
}
)
func (x PodManagementService_PodState) Enum() *PodManagementService_PodState {
p := new(PodManagementService_PodState)
*p = x
return p
}
func (x PodManagementService_PodState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), preflect.EnumNumber(x))
}
func (PodManagementService_PodState) Descriptor() preflect.EnumDescriptor {
return edgelq_devices_proto_v1alpha_broker_custom_proto_enumTypes[2].Descriptor()
}
func (PodManagementService_PodState) Type() preflect.EnumType {
return &edgelq_devices_proto_v1alpha_broker_custom_proto_enumTypes[2]
}
func (x PodManagementService_PodState) Number() preflect.EnumNumber {
return preflect.EnumNumber(x)
}
// Deprecated, Use PodManagementService_PodState.ProtoReflect.Descriptor instead.
func (PodManagementService_PodState) EnumDescriptor() ([]byte, []int) {
return edgelq_devices_proto_v1alpha_broker_custom_proto_rawDescGZIP(), []int{10, 0}
}
// Commands for system state management
type SystemStateService_SystemState int32
const (
// Unspecified system state
SystemStateService_UNSPECIFIED SystemStateService_SystemState = 0
// Shutdown the system
SystemStateService_SHUTDOWN SystemStateService_SystemState = 1
// Reboot the system
SystemStateService_REBOOT SystemStateService_SystemState = 2
)
var (
SystemStateService_SystemState_name = map[int32]string{
0: "UNSPECIFIED",
1: "SHUTDOWN",
2: "REBOOT",
}
SystemStateService_SystemState_value = map[string]int32{
"UNSPECIFIED": 0,
"SHUTDOWN": 1,
"REBOOT": 2,
}
)
func (x SystemStateService_SystemState) Enum() *SystemStateService_SystemState {
p := new(SystemStateService_SystemState)
*p = x
return p
}
func (x SystemStateService_SystemState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), preflect.EnumNumber(x))
}
func (SystemStateService_SystemState) Descriptor() preflect.EnumDescriptor {
return edgelq_devices_proto_v1alpha_broker_custom_proto_enumTypes[3].Descriptor()
}
func (SystemStateService_SystemState) Type() preflect.EnumType {
return &edgelq_devices_proto_v1alpha_broker_custom_proto_enumTypes[3]
}
func (x SystemStateService_SystemState) Number() preflect.EnumNumber {
return preflect.EnumNumber(x)
}
// Deprecated, Use SystemStateService_SystemState.ProtoReflect.Descriptor instead.
func (SystemStateService_SystemState) EnumDescriptor() ([]byte, []int) {
return edgelq_devices_proto_v1alpha_broker_custom_proto_rawDescGZIP(), []int{11, 0}
}
// Request message for method
// [ListenForConnectionsRequest][ntt.devices.v1alpha.ListenForConnectionsRequest]
// Registers a new session listener (agent) to the endpoint.
// This method is used by agents on the device and not meant for use of users.
type ListenForConnectionsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are valid to be assigned to Msg:
// *ListenForConnectionsRequest_RegisterListener_
// *ListenForConnectionsRequest_ChannelOpenError_
// *ListenForConnectionsRequest_KeepAlive_
Msg isListenForConnectionsRequest_Msg `protobuf_oneof:"msg"`
}
func (m *ListenForConnectionsRequest) Reset() {
*m = ListenForConnectionsRequest{}
if protoimpl.UnsafeEnabled {
mi := &edgelq_devices_proto_v1alpha_broker_custom_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
ms.StoreMessageInfo(mi)
}
}
func (m *ListenForConnectionsRequest) String() string {
return protoimpl.X.MessageStringOf(m)
}
func (*ListenForConnectionsRequest) ProtoMessage() {}
func (m *ListenForConnectionsRequest) ProtoReflect() preflect.Message {
mi := &edgelq_devices_proto_v1alpha_broker_custom_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && m != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(m)
}
func (*ListenForConnectionsRequest) GotenMessage() {}
// Deprecated, Use ListenForConnectionsRequest.ProtoReflect.Descriptor instead.
func (*ListenForConnectionsRequest) Descriptor() ([]byte, []int) {
return edgelq_devices_proto_v1alpha_broker_custom_proto_rawDescGZIP(), []int{0}
}
func (m *ListenForConnectionsRequest) Unmarshal(b []byte) error {
return proto.Unmarshal(b, m)
}
func (m *ListenForConnectionsRequest) Marshal() ([]byte, error) {
return proto.Marshal(m)
}
func (m *ListenForConnectionsRequest) MarshalJSON() ([]byte, error) {
return protojson.MarshalOptions{}.Marshal(m)
}
func (m *ListenForConnectionsRequest) UnmarshalJSON(data []byte) error {
return protojson.Unmarshal(data, m)
}
type isListenForConnectionsRequest_Msg interface {
isListenForConnectionsRequest_Msg()
}
type ListenForConnectionsRequest_RegisterListener_ struct {
// This is a hello message from the agent with its name.
RegisterListener *ListenForConnectionsRequest_RegisterListener `protobuf:"bytes,1,opt,name=register_listener,json=registerListener,proto3,oneof" firestore:"registerListener"`
}
type ListenForConnectionsRequest_ChannelOpenError_ struct {
// When the agent failed to open a requested channel, this message will be
// sent from the agent to the endpoint.
ChannelOpenError *ListenForConnectionsRequest_ChannelOpenError `protobuf:"bytes,2,opt,name=channel_open_error,json=channelOpenError,proto3,oneof" firestore:"channelOpenError"`
}
type ListenForConnectionsRequest_KeepAlive_ struct {
// KeepAlive.
KeepAlive *ListenForConnectionsRequest_KeepAlive `protobuf:"bytes,3,opt,name=keep_alive,json=keepAlive,proto3,oneof" firestore:"keepAlive"`
}
func (*ListenForConnectionsRequest_RegisterListener_) isListenForConnectionsRequest_Msg() {}
func (*ListenForConnectionsRequest_ChannelOpenError_) isListenForConnectionsRequest_Msg() {}
func (*ListenForConnectionsRequest_KeepAlive_) isListenForConnectionsRequest_Msg() {}
func (m *ListenForConnectionsRequest) GetMsg() isListenForConnectionsRequest_Msg {
if m != nil {
return m.Msg
}
return nil
}
func (m *ListenForConnectionsRequest) GetRegisterListener() *ListenForConnectionsRequest_RegisterListener {
if x, ok := m.GetMsg().(*ListenForConnectionsRequest_RegisterListener_); ok {
return x.RegisterListener
}
return nil
}
func (m *ListenForConnectionsRequest) GetChannelOpenError() *ListenForConnectionsRequest_ChannelOpenError {
if x, ok := m.GetMsg().(*ListenForConnectionsRequest_ChannelOpenError_); ok {
return x.ChannelOpenError
}
return nil
}
func (m *ListenForConnectionsRequest) GetKeepAlive() *ListenForConnectionsRequest_KeepAlive {
if x, ok := m.GetMsg().(*ListenForConnectionsRequest_KeepAlive_); ok {
return x.KeepAlive
}
return nil
}
func (m *ListenForConnectionsRequest) SetMsg(ofv isListenForConnectionsRequest_Msg) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "isListenForConnectionsRequest_Msg", "ListenForConnectionsRequest"))
}
m.Msg = ofv
}
func (m *ListenForConnectionsRequest) SetRegisterListener(fv *ListenForConnectionsRequest_RegisterListener) {
m.SetMsg(&ListenForConnectionsRequest_RegisterListener_{RegisterListener: fv})
}
func (m *ListenForConnectionsRequest) SetChannelOpenError(fv *ListenForConnectionsRequest_ChannelOpenError) {
m.SetMsg(&ListenForConnectionsRequest_ChannelOpenError_{ChannelOpenError: fv})
}
func (m *ListenForConnectionsRequest) SetKeepAlive(fv *ListenForConnectionsRequest_KeepAlive) {
m.SetMsg(&ListenForConnectionsRequest_KeepAlive_{KeepAlive: fv})
}
// Request message for method
// [ListenForConnectionsResponse][ntt.devices.v1alpha.ListenForConnectionsResponse]
// Responses from the endpoint to session agents.
type ListenForConnectionsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are valid to be assigned to Msg:
// *ListenForConnectionsResponse_ChannelRequested_
Msg isListenForConnectionsResponse_Msg `protobuf_oneof:"msg"`
}
func (m *ListenForConnectionsResponse) Reset() {
*m = ListenForConnectionsResponse{}
if protoimpl.UnsafeEnabled {
mi := &edgelq_devices_proto_v1alpha_broker_custom_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
ms.StoreMessageInfo(mi)
}
}
func (m *ListenForConnectionsResponse) String() string {
return protoimpl.X.MessageStringOf(m)
}
func (*ListenForConnectionsResponse) ProtoMessage() {}
func (m *ListenForConnectionsResponse) ProtoReflect() preflect.Message {
mi := &edgelq_devices_proto_v1alpha_broker_custom_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && m != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(m)
}
func (*ListenForConnectionsResponse) GotenMessage() {}
// Deprecated, Use ListenForConnectionsResponse.ProtoReflect.Descriptor instead.
func (*ListenForConnectionsResponse) Descriptor() ([]byte, []int) {
return edgelq_devices_proto_v1alpha_broker_custom_proto_rawDescGZIP(), []int{1}
}
func (m *ListenForConnectionsResponse) Unmarshal(b []byte) error {
return proto.Unmarshal(b, m)
}
func (m *ListenForConnectionsResponse) Marshal() ([]byte, error) {
return proto.Marshal(m)
}
func (m *ListenForConnectionsResponse) MarshalJSON() ([]byte, error) {
return protojson.MarshalOptions{}.Marshal(m)
}
func (m *ListenForConnectionsResponse) UnmarshalJSON(data []byte) error {
return protojson.Unmarshal(data, m)
}
type isListenForConnectionsResponse_Msg interface {
isListenForConnectionsResponse_Msg()
}
type ListenForConnectionsResponse_ChannelRequested_ struct {
// Notifies a new channel has been requested by a client.
ChannelRequested *ListenForConnectionsResponse_ChannelRequested `protobuf:"bytes,1,opt,name=channel_requested,json=channelRequested,proto3,oneof" firestore:"channelRequested"`
}
func (*ListenForConnectionsResponse_ChannelRequested_) isListenForConnectionsResponse_Msg() {}
func (m *ListenForConnectionsResponse) GetMsg() isListenForConnectionsResponse_Msg {
if m != nil {
return m.Msg
}
return nil
}
func (m *ListenForConnectionsResponse) GetChannelRequested() *ListenForConnectionsResponse_ChannelRequested {
if x, ok := m.GetMsg().(*ListenForConnectionsResponse_ChannelRequested_); ok {
return x.ChannelRequested
}
return nil
}
func (m *ListenForConnectionsResponse) SetMsg(ofv isListenForConnectionsResponse_Msg) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "isListenForConnectionsResponse_Msg", "ListenForConnectionsResponse"))
}
m.Msg = ofv
}
func (m *ListenForConnectionsResponse) SetChannelRequested(fv *ListenForConnectionsResponse_ChannelRequested) {
m.SetMsg(&ListenForConnectionsResponse_ChannelRequested_{ChannelRequested: fv})
}
// Request message for method
// [OpenConnectionChannelSocketRequest][ntt.devices.v1alpha.OpenConnectionChannelSocketRequest]
// Opens a new socket for a session by agent at an endpoint. This session is
// usually initiated by the agent who received a `ChannelRequested` message on a
// ListenForConnection session. The session is used for data plane to transfer
// data for a channel between the endpoint and the agent.
type OpenConnectionChannelSocketRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are valid to be assigned to Msg:
// *OpenConnectionChannelSocketRequest_RegisterSocket_
// *OpenConnectionChannelSocketRequest_Data
// *OpenConnectionChannelSocketRequest_Error
// *OpenConnectionChannelSocketRequest_Ack
Msg isOpenConnectionChannelSocketRequest_Msg `protobuf_oneof:"msg"`
}
func (m *OpenConnectionChannelSocketRequest) Reset() {
*m = OpenConnectionChannelSocketRequest{}
if protoimpl.UnsafeEnabled {
mi := &edgelq_devices_proto_v1alpha_broker_custom_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
ms.StoreMessageInfo(mi)
}
}
func (m *OpenConnectionChannelSocketRequest) String() string {
return protoimpl.X.MessageStringOf(m)
}
func (*OpenConnectionChannelSocketRequest) ProtoMessage() {}
func (m *OpenConnectionChannelSocketRequest) ProtoReflect() preflect.Message {
mi := &edgelq_devices_proto_v1alpha_broker_custom_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && m != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(m)
}
func (*OpenConnectionChannelSocketRequest) GotenMessage() {}
// Deprecated, Use OpenConnectionChannelSocketRequest.ProtoReflect.Descriptor instead.
func (*OpenConnectionChannelSocketRequest) Descriptor() ([]byte, []int) {
return edgelq_devices_proto_v1alpha_broker_custom_proto_rawDescGZIP(), []int{2}
}
func (m *OpenConnectionChannelSocketRequest) Unmarshal(b []byte) error {
return proto.Unmarshal(b, m)
}
func (m *OpenConnectionChannelSocketRequest) Marshal() ([]byte, error) {
return proto.Marshal(m)
}
func (m *OpenConnectionChannelSocketRequest) MarshalJSON() ([]byte, error) {
return protojson.MarshalOptions{}.Marshal(m)
}
func (m *OpenConnectionChannelSocketRequest) UnmarshalJSON(data []byte) error {
return protojson.Unmarshal(data, m)
}
type isOpenConnectionChannelSocketRequest_Msg interface {
isOpenConnectionChannelSocketRequest_Msg()
}
type OpenConnectionChannelSocketRequest_RegisterSocket_ struct {
// Registers a new socket on the endpoint.
RegisterSocket *OpenConnectionChannelSocketRequest_RegisterSocket `protobuf:"bytes,1,opt,name=register_socket,json=registerSocket,proto3,oneof" firestore:"registerSocket"`
}
type OpenConnectionChannelSocketRequest_Data struct {
// Data from the agent to the endpoint (client).
Data []byte `protobuf:"bytes,3,opt,name=data,proto3,oneof" firestore:"data"`
}
type OpenConnectionChannelSocketRequest_Error struct {
// Error from the agent to the endpoint (client).
Error []byte `protobuf:"bytes,4,opt,name=error,proto3,oneof" firestore:"error"`
}
type OpenConnectionChannelSocketRequest_Ack struct {
// Ack from the agent to the endpoint (client)
Ack *Ack `protobuf:"bytes,5,opt,name=ack,proto3,oneof" firestore:"ack"`
}
func (*OpenConnectionChannelSocketRequest_RegisterSocket_) isOpenConnectionChannelSocketRequest_Msg() {
}
func (*OpenConnectionChannelSocketRequest_Data) isOpenConnectionChannelSocketRequest_Msg() {}
func (*OpenConnectionChannelSocketRequest_Error) isOpenConnectionChannelSocketRequest_Msg() {}
func (*OpenConnectionChannelSocketRequest_Ack) isOpenConnectionChannelSocketRequest_Msg() {}
func (m *OpenConnectionChannelSocketRequest) GetMsg() isOpenConnectionChannelSocketRequest_Msg {
if m != nil {
return m.Msg
}
return nil
}
func (m *OpenConnectionChannelSocketRequest) GetRegisterSocket() *OpenConnectionChannelSocketRequest_RegisterSocket {
if x, ok := m.GetMsg().(*OpenConnectionChannelSocketRequest_RegisterSocket_); ok {
return x.RegisterSocket
}
return nil
}
func (m *OpenConnectionChannelSocketRequest) GetData() []byte {
if x, ok := m.GetMsg().(*OpenConnectionChannelSocketRequest_Data); ok {
return x.Data
}
return nil
}
func (m *OpenConnectionChannelSocketRequest) GetError() []byte {
if x, ok := m.GetMsg().(*OpenConnectionChannelSocketRequest_Error); ok {
return x.Error
}
return nil
}
func (m *OpenConnectionChannelSocketRequest) GetAck() *Ack {
if x, ok := m.GetMsg().(*OpenConnectionChannelSocketRequest_Ack); ok {
return x.Ack
}
return nil
}
func (m *OpenConnectionChannelSocketRequest) SetMsg(ofv isOpenConnectionChannelSocketRequest_Msg) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "isOpenConnectionChannelSocketRequest_Msg", "OpenConnectionChannelSocketRequest"))
}
m.Msg = ofv
}
func (m *OpenConnectionChannelSocketRequest) SetRegisterSocket(fv *OpenConnectionChannelSocketRequest_RegisterSocket) {
m.SetMsg(&OpenConnectionChannelSocketRequest_RegisterSocket_{RegisterSocket: fv})
}
func (m *OpenConnectionChannelSocketRequest) SetData(fv []byte) {
m.SetMsg(&OpenConnectionChannelSocketRequest_Data{Data: fv})
}
func (m *OpenConnectionChannelSocketRequest) SetError(fv []byte) {
m.SetMsg(&OpenConnectionChannelSocketRequest_Error{Error: fv})
}
func (m *OpenConnectionChannelSocketRequest) SetAck(fv *Ack) {
m.SetMsg(&OpenConnectionChannelSocketRequest_Ack{Ack: fv})
}
// Request message for method
// [OpenConnectionChannelSocketResponse][ntt.devices.v1alpha.OpenConnectionChannelSocketResponse]
type OpenConnectionChannelSocketResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are valid to be assigned to Msg:
// *OpenConnectionChannelSocketResponse_Data
// *OpenConnectionChannelSocketResponse_Ack
Msg isOpenConnectionChannelSocketResponse_Msg `protobuf_oneof:"msg"`
}
func (m *OpenConnectionChannelSocketResponse) Reset() {
*m = OpenConnectionChannelSocketResponse{}
if protoimpl.UnsafeEnabled {
mi := &edgelq_devices_proto_v1alpha_broker_custom_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
ms.StoreMessageInfo(mi)
}
}
func (m *OpenConnectionChannelSocketResponse) String() string {
return protoimpl.X.MessageStringOf(m)
}
func (*OpenConnectionChannelSocketResponse) ProtoMessage() {}
func (m *OpenConnectionChannelSocketResponse) ProtoReflect() preflect.Message {
mi := &edgelq_devices_proto_v1alpha_broker_custom_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && m != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(m)
}
func (*OpenConnectionChannelSocketResponse) GotenMessage() {}
// Deprecated, Use OpenConnectionChannelSocketResponse.ProtoReflect.Descriptor instead.
func (*OpenConnectionChannelSocketResponse) Descriptor() ([]byte, []int) {
return edgelq_devices_proto_v1alpha_broker_custom_proto_rawDescGZIP(), []int{3}
}
func (m *OpenConnectionChannelSocketResponse) Unmarshal(b []byte) error {
return proto.Unmarshal(b, m)
}
func (m *OpenConnectionChannelSocketResponse) Marshal() ([]byte, error) {
return proto.Marshal(m)
}
func (m *OpenConnectionChannelSocketResponse) MarshalJSON() ([]byte, error) {
return protojson.MarshalOptions{}.Marshal(m)
}
func (m *OpenConnectionChannelSocketResponse) UnmarshalJSON(data []byte) error {
return protojson.Unmarshal(data, m)
}
type isOpenConnectionChannelSocketResponse_Msg interface {
isOpenConnectionChannelSocketResponse_Msg()
}
type OpenConnectionChannelSocketResponse_Data struct {
// Data from the endpoint (client) to the agent.
Data []byte `protobuf:"bytes,1,opt,name=data,proto3,oneof" firestore:"data"`
}
type OpenConnectionChannelSocketResponse_Ack struct {
// Ack from the client to the endpoint (device)
Ack *Ack `protobuf:"bytes,2,opt,name=ack,proto3,oneof" firestore:"ack"`
}
func (*OpenConnectionChannelSocketResponse_Data) isOpenConnectionChannelSocketResponse_Msg() {}
func (*OpenConnectionChannelSocketResponse_Ack) isOpenConnectionChannelSocketResponse_Msg() {}
func (m *OpenConnectionChannelSocketResponse) GetMsg() isOpenConnectionChannelSocketResponse_Msg {
if m != nil {
return m.Msg
}
return nil
}
func (m *OpenConnectionChannelSocketResponse) GetData() []byte {
if x, ok := m.GetMsg().(*OpenConnectionChannelSocketResponse_Data); ok {
return x.Data
}
return nil
}
func (m *OpenConnectionChannelSocketResponse) GetAck() *Ack {
if x, ok := m.GetMsg().(*OpenConnectionChannelSocketResponse_Ack); ok {
return x.Ack
}
return nil
}
func (m *OpenConnectionChannelSocketResponse) SetMsg(ofv isOpenConnectionChannelSocketResponse_Msg) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "isOpenConnectionChannelSocketResponse_Msg", "OpenConnectionChannelSocketResponse"))
}
m.Msg = ofv
}
func (m *OpenConnectionChannelSocketResponse) SetData(fv []byte) {
m.SetMsg(&OpenConnectionChannelSocketResponse_Data{Data: fv})
}
func (m *OpenConnectionChannelSocketResponse) SetAck(fv *Ack) {
m.SetMsg(&OpenConnectionChannelSocketResponse_Ack{Ack: fv})
}
// Response message for method
// [ConnectToDeviceRequest][ntt.devices.v1alpha.ConnectToDeviceRequest]
// ConnectToDevice connects a local service provided by a Device.
type ConnectToDeviceRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are valid to be assigned to Msg:
// *ConnectToDeviceRequest_OpenRequest_
// *ConnectToDeviceRequest_Data
// *ConnectToDeviceRequest_Ack
// *ConnectToDeviceRequest_KeepAlive_
Msg isConnectToDeviceRequest_Msg `protobuf_oneof:"msg"`
}
func (m *ConnectToDeviceRequest) Reset() {
*m = ConnectToDeviceRequest{}
if protoimpl.UnsafeEnabled {
mi := &edgelq_devices_proto_v1alpha_broker_custom_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
ms.StoreMessageInfo(mi)
}
}
func (m *ConnectToDeviceRequest) String() string {
return protoimpl.X.MessageStringOf(m)
}
func (*ConnectToDeviceRequest) ProtoMessage() {}
func (m *ConnectToDeviceRequest) ProtoReflect() preflect.Message {
mi := &edgelq_devices_proto_v1alpha_broker_custom_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && m != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(m)
}
func (*ConnectToDeviceRequest) GotenMessage() {}
// Deprecated, Use ConnectToDeviceRequest.ProtoReflect.Descriptor instead.
func (*ConnectToDeviceRequest) Descriptor() ([]byte, []int) {
return edgelq_devices_proto_v1alpha_broker_custom_proto_rawDescGZIP(), []int{4}
}
func (m *ConnectToDeviceRequest) Unmarshal(b []byte) error {
return proto.Unmarshal(b, m)
}
func (m *ConnectToDeviceRequest) Marshal() ([]byte, error) {
return proto.Marshal(m)
}
func (m *ConnectToDeviceRequest) MarshalJSON() ([]byte, error) {
return protojson.MarshalOptions{}.Marshal(m)
}
func (m *ConnectToDeviceRequest) UnmarshalJSON(data []byte) error {
return protojson.Unmarshal(data, m)
}
type isConnectToDeviceRequest_Msg interface {
isConnectToDeviceRequest_Msg()
}
type ConnectToDeviceRequest_OpenRequest_ struct {
// The initiation message to open a channel to a device.
OpenRequest *ConnectToDeviceRequest_OpenRequest `protobuf:"bytes,1,opt,name=open_request,json=openRequest,proto3,oneof" firestore:"openRequest"`
}
type ConnectToDeviceRequest_Data struct {
// Any data sent to the device through the endpoint.
Data []byte `protobuf:"bytes,3,opt,name=data,proto3,oneof" firestore:"data"`
}
type ConnectToDeviceRequest_Ack struct {
// Ack from the user to the endpoint (device)
Ack *Ack `protobuf:"bytes,4,opt,name=ack,proto3,oneof" firestore:"ack"`
}
type ConnectToDeviceRequest_KeepAlive_ struct {
KeepAlive *ConnectToDeviceRequest_KeepAlive `protobuf:"bytes,5,opt,name=keep_alive,json=keepAlive,proto3,oneof" firestore:"keepAlive"`
}
func (*ConnectToDeviceRequest_OpenRequest_) isConnectToDeviceRequest_Msg() {}
func (*ConnectToDeviceRequest_Data) isConnectToDeviceRequest_Msg() {}
func (*ConnectToDeviceRequest_Ack) isConnectToDeviceRequest_Msg() {}
func (*ConnectToDeviceRequest_KeepAlive_) isConnectToDeviceRequest_Msg() {}
func (m *ConnectToDeviceRequest) GetMsg() isConnectToDeviceRequest_Msg {
if m != nil {
return m.Msg
}
return nil
}
func (m *ConnectToDeviceRequest) GetOpenRequest() *ConnectToDeviceRequest_OpenRequest {
if x, ok := m.GetMsg().(*ConnectToDeviceRequest_OpenRequest_); ok {
return x.OpenRequest
}
return nil
}
func (m *ConnectToDeviceRequest) GetData() []byte {
if x, ok := m.GetMsg().(*ConnectToDeviceRequest_Data); ok {
return x.Data
}
return nil
}
func (m *ConnectToDeviceRequest) GetAck() *Ack {
if x, ok := m.GetMsg().(*ConnectToDeviceRequest_Ack); ok {
return x.Ack
}
return nil
}
func (m *ConnectToDeviceRequest) GetKeepAlive() *ConnectToDeviceRequest_KeepAlive {
if x, ok := m.GetMsg().(*ConnectToDeviceRequest_KeepAlive_); ok {
return x.KeepAlive
}
return nil
}
func (m *ConnectToDeviceRequest) SetMsg(ofv isConnectToDeviceRequest_Msg) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "isConnectToDeviceRequest_Msg", "ConnectToDeviceRequest"))
}
m.Msg = ofv
}
func (m *ConnectToDeviceRequest) SetOpenRequest(fv *ConnectToDeviceRequest_OpenRequest) {
m.SetMsg(&ConnectToDeviceRequest_OpenRequest_{OpenRequest: fv})
}
func (m *ConnectToDeviceRequest) SetData(fv []byte) {
m.SetMsg(&ConnectToDeviceRequest_Data{Data: fv})
}
func (m *ConnectToDeviceRequest) SetAck(fv *Ack) {
m.SetMsg(&ConnectToDeviceRequest_Ack{Ack: fv})
}
func (m *ConnectToDeviceRequest) SetKeepAlive(fv *ConnectToDeviceRequest_KeepAlive) {
m.SetMsg(&ConnectToDeviceRequest_KeepAlive_{KeepAlive: fv})
}
// Response message for method
// [ConnectToDeviceResponse][ntt.devices.v1alpha.ConnectToDeviceResponse]
type ConnectToDeviceResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are valid to be assigned to Msg:
// *ConnectToDeviceResponse_OpenResponse_
// *ConnectToDeviceResponse_Data
// *ConnectToDeviceResponse_Error
// *ConnectToDeviceResponse_Ack
Msg isConnectToDeviceResponse_Msg `protobuf_oneof:"msg"`
}
func (m *ConnectToDeviceResponse) Reset() {
*m = ConnectToDeviceResponse{}
if protoimpl.UnsafeEnabled {
mi := &edgelq_devices_proto_v1alpha_broker_custom_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
ms.StoreMessageInfo(mi)
}
}
func (m *ConnectToDeviceResponse) String() string {
return protoimpl.X.MessageStringOf(m)
}
func (*ConnectToDeviceResponse) ProtoMessage() {}
func (m *ConnectToDeviceResponse) ProtoReflect() preflect.Message {
mi := &edgelq_devices_proto_v1alpha_broker_custom_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && m != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(m)
}
func (*ConnectToDeviceResponse) GotenMessage() {}
// Deprecated, Use ConnectToDeviceResponse.ProtoReflect.Descriptor instead.
func (*ConnectToDeviceResponse) Descriptor() ([]byte, []int) {
return edgelq_devices_proto_v1alpha_broker_custom_proto_rawDescGZIP(), []int{5}
}
func (m *ConnectToDeviceResponse) Unmarshal(b []byte) error {
return proto.Unmarshal(b, m)
}
func (m *ConnectToDeviceResponse) Marshal() ([]byte, error) {
return proto.Marshal(m)
}
func (m *ConnectToDeviceResponse) MarshalJSON() ([]byte, error) {
return protojson.MarshalOptions{}.Marshal(m)
}
func (m *ConnectToDeviceResponse) UnmarshalJSON(data []byte) error {
return protojson.Unmarshal(data, m)
}
type isConnectToDeviceResponse_Msg interface {
isConnectToDeviceResponse_Msg()
}
type ConnectToDeviceResponse_OpenResponse_ struct {
// Notification from the agent (endpoint) to the channel has been opened.
OpenResponse *ConnectToDeviceResponse_OpenResponse `protobuf:"bytes,1,opt,name=open_response,json=openResponse,proto3,oneof" firestore:"openResponse"`
}
type ConnectToDeviceResponse_Data struct {
// Any data from the device (endpoint) to the client.
Data []byte `protobuf:"bytes,3,opt,name=data,proto3,oneof" firestore:"data"`
}
type ConnectToDeviceResponse_Error struct {
// Any error from the device (endpoint) to the client.
Error []byte `protobuf:"bytes,4,opt,name=error,proto3,oneof" firestore:"error"`
}
type ConnectToDeviceResponse_Ack struct {
// Ack from the device to the endpoint (client)
Ack *Ack `protobuf:"bytes,5,opt,name=ack,proto3,oneof" firestore:"ack"`
}
func (*ConnectToDeviceResponse_OpenResponse_) isConnectToDeviceResponse_Msg() {}
func (*ConnectToDeviceResponse_Data) isConnectToDeviceResponse_Msg() {}
func (*ConnectToDeviceResponse_Error) isConnectToDeviceResponse_Msg() {}
func (*ConnectToDeviceResponse_Ack) isConnectToDeviceResponse_Msg() {}
func (m *ConnectToDeviceResponse) GetMsg() isConnectToDeviceResponse_Msg {
if m != nil {
return m.Msg
}
return nil
}
func (m *ConnectToDeviceResponse) GetOpenResponse() *ConnectToDeviceResponse_OpenResponse {
if x, ok := m.GetMsg().(*ConnectToDeviceResponse_OpenResponse_); ok {
return x.OpenResponse
}
return nil
}
func (m *ConnectToDeviceResponse) GetData() []byte {
if x, ok := m.GetMsg().(*ConnectToDeviceResponse_Data); ok {
return x.Data
}
return nil