-
Notifications
You must be signed in to change notification settings - Fork 218
/
Copy pathfederation.pb.go
800 lines (700 loc) · 28 KB
/
federation.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: federation.proto
package federation
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "github.com/golang/protobuf/ptypes/empty"
_ "google.golang.org/genproto/googleapis/api/annotations"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type Status int32
const (
Status_STATUS_UNSPECIFIED Status = 0
Status_STATUS_ALIVE Status = 1
Status_STATUS_LEAVING Status = 2
Status_STATUS_LEFT Status = 3
Status_STATUS_FAILED Status = 4
)
var Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "STATUS_ALIVE",
2: "STATUS_LEAVING",
3: "STATUS_LEFT",
4: "STATUS_FAILED",
}
var Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"STATUS_ALIVE": 1,
"STATUS_LEAVING": 2,
"STATUS_LEFT": 3,
"STATUS_FAILED": 4,
}
func (x Status) String() string {
return proto.EnumName(Status_name, int32(x))
}
func (Status) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_7217fe47f5d68a8f, []int{0}
}
type Event struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// Types that are valid to be assigned to Event:
// *Event_Subscribe
// *Event_Message
// *Event_Unsubscribe
Event isEvent_Event `protobuf_oneof:"Event"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Event) Reset() { *m = Event{} }
func (m *Event) String() string { return proto.CompactTextString(m) }
func (*Event) ProtoMessage() {}
func (*Event) Descriptor() ([]byte, []int) {
return fileDescriptor_7217fe47f5d68a8f, []int{0}
}
func (m *Event) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Event.Unmarshal(m, b)
}
func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Event.Marshal(b, m, deterministic)
}
func (m *Event) XXX_Merge(src proto.Message) {
xxx_messageInfo_Event.Merge(m, src)
}
func (m *Event) XXX_Size() int {
return xxx_messageInfo_Event.Size(m)
}
func (m *Event) XXX_DiscardUnknown() {
xxx_messageInfo_Event.DiscardUnknown(m)
}
var xxx_messageInfo_Event proto.InternalMessageInfo
func (m *Event) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
type isEvent_Event interface {
isEvent_Event()
}
type Event_Subscribe struct {
Subscribe *Subscribe `protobuf:"bytes,2,opt,name=Subscribe,proto3,oneof"`
}
type Event_Message struct {
Message *Message `protobuf:"bytes,3,opt,name=message,proto3,oneof"`
}
type Event_Unsubscribe struct {
Unsubscribe *Unsubscribe `protobuf:"bytes,4,opt,name=unsubscribe,proto3,oneof"`
}
func (*Event_Subscribe) isEvent_Event() {}
func (*Event_Message) isEvent_Event() {}
func (*Event_Unsubscribe) isEvent_Event() {}
func (m *Event) GetEvent() isEvent_Event {
if m != nil {
return m.Event
}
return nil
}
func (m *Event) GetSubscribe() *Subscribe {
if x, ok := m.GetEvent().(*Event_Subscribe); ok {
return x.Subscribe
}
return nil
}
func (m *Event) GetMessage() *Message {
if x, ok := m.GetEvent().(*Event_Message); ok {
return x.Message
}
return nil
}
func (m *Event) GetUnsubscribe() *Unsubscribe {
if x, ok := m.GetEvent().(*Event_Unsubscribe); ok {
return x.Unsubscribe
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*Event) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*Event_Subscribe)(nil),
(*Event_Message)(nil),
(*Event_Unsubscribe)(nil),
}
}
// Subscribe represents the subscription for a node, it is used to route message among nodes,
// so only shared_name and topic_filter is required.
type Subscribe struct {
ShareName string `protobuf:"bytes,1,opt,name=share_name,json=shareName,proto3" json:"share_name,omitempty"`
TopicFilter string `protobuf:"bytes,2,opt,name=topic_filter,json=topicFilter,proto3" json:"topic_filter,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Subscribe) Reset() { *m = Subscribe{} }
func (m *Subscribe) String() string { return proto.CompactTextString(m) }
func (*Subscribe) ProtoMessage() {}
func (*Subscribe) Descriptor() ([]byte, []int) {
return fileDescriptor_7217fe47f5d68a8f, []int{1}
}
func (m *Subscribe) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Subscribe.Unmarshal(m, b)
}
func (m *Subscribe) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Subscribe.Marshal(b, m, deterministic)
}
func (m *Subscribe) XXX_Merge(src proto.Message) {
xxx_messageInfo_Subscribe.Merge(m, src)
}
func (m *Subscribe) XXX_Size() int {
return xxx_messageInfo_Subscribe.Size(m)
}
func (m *Subscribe) XXX_DiscardUnknown() {
xxx_messageInfo_Subscribe.DiscardUnknown(m)
}
var xxx_messageInfo_Subscribe proto.InternalMessageInfo
func (m *Subscribe) GetShareName() string {
if m != nil {
return m.ShareName
}
return ""
}
func (m *Subscribe) GetTopicFilter() string {
if m != nil {
return m.TopicFilter
}
return ""
}
type Message struct {
TopicName string `protobuf:"bytes,1,opt,name=topic_name,json=topicName,proto3" json:"topic_name,omitempty"`
Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
Qos uint32 `protobuf:"varint,3,opt,name=qos,proto3" json:"qos,omitempty"`
Retained bool `protobuf:"varint,4,opt,name=retained,proto3" json:"retained,omitempty"`
// the following fields are using in v5 client.
ContentType string `protobuf:"bytes,5,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
CorrelationData string `protobuf:"bytes,6,opt,name=correlation_data,json=correlationData,proto3" json:"correlation_data,omitempty"`
MessageExpiry uint32 `protobuf:"varint,7,opt,name=message_expiry,json=messageExpiry,proto3" json:"message_expiry,omitempty"`
PayloadFormat uint32 `protobuf:"varint,8,opt,name=payload_format,json=payloadFormat,proto3" json:"payload_format,omitempty"`
ResponseTopic string `protobuf:"bytes,9,opt,name=response_topic,json=responseTopic,proto3" json:"response_topic,omitempty"`
UserProperties []*UserProperty `protobuf:"bytes,10,rep,name=user_properties,json=userProperties,proto3" json:"user_properties,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Message) Reset() { *m = Message{} }
func (m *Message) String() string { return proto.CompactTextString(m) }
func (*Message) ProtoMessage() {}
func (*Message) Descriptor() ([]byte, []int) {
return fileDescriptor_7217fe47f5d68a8f, []int{2}
}
func (m *Message) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Message.Unmarshal(m, b)
}
func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Message.Marshal(b, m, deterministic)
}
func (m *Message) XXX_Merge(src proto.Message) {
xxx_messageInfo_Message.Merge(m, src)
}
func (m *Message) XXX_Size() int {
return xxx_messageInfo_Message.Size(m)
}
func (m *Message) XXX_DiscardUnknown() {
xxx_messageInfo_Message.DiscardUnknown(m)
}
var xxx_messageInfo_Message proto.InternalMessageInfo
func (m *Message) GetTopicName() string {
if m != nil {
return m.TopicName
}
return ""
}
func (m *Message) GetPayload() []byte {
if m != nil {
return m.Payload
}
return nil
}
func (m *Message) GetQos() uint32 {
if m != nil {
return m.Qos
}
return 0
}
func (m *Message) GetRetained() bool {
if m != nil {
return m.Retained
}
return false
}
func (m *Message) GetContentType() string {
if m != nil {
return m.ContentType
}
return ""
}
func (m *Message) GetCorrelationData() string {
if m != nil {
return m.CorrelationData
}
return ""
}
func (m *Message) GetMessageExpiry() uint32 {
if m != nil {
return m.MessageExpiry
}
return 0
}
func (m *Message) GetPayloadFormat() uint32 {
if m != nil {
return m.PayloadFormat
}
return 0
}
func (m *Message) GetResponseTopic() string {
if m != nil {
return m.ResponseTopic
}
return ""
}
func (m *Message) GetUserProperties() []*UserProperty {
if m != nil {
return m.UserProperties
}
return nil
}
type UserProperty struct {
K []byte `protobuf:"bytes,1,opt,name=K,proto3" json:"K,omitempty"`
V []byte `protobuf:"bytes,2,opt,name=V,proto3" json:"V,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UserProperty) Reset() { *m = UserProperty{} }
func (m *UserProperty) String() string { return proto.CompactTextString(m) }
func (*UserProperty) ProtoMessage() {}
func (*UserProperty) Descriptor() ([]byte, []int) {
return fileDescriptor_7217fe47f5d68a8f, []int{3}
}
func (m *UserProperty) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UserProperty.Unmarshal(m, b)
}
func (m *UserProperty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UserProperty.Marshal(b, m, deterministic)
}
func (m *UserProperty) XXX_Merge(src proto.Message) {
xxx_messageInfo_UserProperty.Merge(m, src)
}
func (m *UserProperty) XXX_Size() int {
return xxx_messageInfo_UserProperty.Size(m)
}
func (m *UserProperty) XXX_DiscardUnknown() {
xxx_messageInfo_UserProperty.DiscardUnknown(m)
}
var xxx_messageInfo_UserProperty proto.InternalMessageInfo
func (m *UserProperty) GetK() []byte {
if m != nil {
return m.K
}
return nil
}
func (m *UserProperty) GetV() []byte {
if m != nil {
return m.V
}
return nil
}
type Unsubscribe struct {
TopicName string `protobuf:"bytes,1,opt,name=topic_name,json=topicName,proto3" json:"topic_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Unsubscribe) Reset() { *m = Unsubscribe{} }
func (m *Unsubscribe) String() string { return proto.CompactTextString(m) }
func (*Unsubscribe) ProtoMessage() {}
func (*Unsubscribe) Descriptor() ([]byte, []int) {
return fileDescriptor_7217fe47f5d68a8f, []int{4}
}
func (m *Unsubscribe) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Unsubscribe.Unmarshal(m, b)
}
func (m *Unsubscribe) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Unsubscribe.Marshal(b, m, deterministic)
}
func (m *Unsubscribe) XXX_Merge(src proto.Message) {
xxx_messageInfo_Unsubscribe.Merge(m, src)
}
func (m *Unsubscribe) XXX_Size() int {
return xxx_messageInfo_Unsubscribe.Size(m)
}
func (m *Unsubscribe) XXX_DiscardUnknown() {
xxx_messageInfo_Unsubscribe.DiscardUnknown(m)
}
var xxx_messageInfo_Unsubscribe proto.InternalMessageInfo
func (m *Unsubscribe) GetTopicName() string {
if m != nil {
return m.TopicName
}
return ""
}
type Ack struct {
EventId uint64 `protobuf:"varint,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Ack) Reset() { *m = Ack{} }
func (m *Ack) String() string { return proto.CompactTextString(m) }
func (*Ack) ProtoMessage() {}
func (*Ack) Descriptor() ([]byte, []int) {
return fileDescriptor_7217fe47f5d68a8f, []int{5}
}
func (m *Ack) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Ack.Unmarshal(m, b)
}
func (m *Ack) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Ack.Marshal(b, m, deterministic)
}
func (m *Ack) XXX_Merge(src proto.Message) {
xxx_messageInfo_Ack.Merge(m, src)
}
func (m *Ack) XXX_Size() int {
return xxx_messageInfo_Ack.Size(m)
}
func (m *Ack) XXX_DiscardUnknown() {
xxx_messageInfo_Ack.DiscardUnknown(m)
}
var xxx_messageInfo_Ack proto.InternalMessageInfo
func (m *Ack) GetEventId() uint64 {
if m != nil {
return m.EventId
}
return 0
}
// ClientHello is the request message in handshake process.
type ClientHello struct {
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ClientHello) Reset() { *m = ClientHello{} }
func (m *ClientHello) String() string { return proto.CompactTextString(m) }
func (*ClientHello) ProtoMessage() {}
func (*ClientHello) Descriptor() ([]byte, []int) {
return fileDescriptor_7217fe47f5d68a8f, []int{6}
}
func (m *ClientHello) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ClientHello.Unmarshal(m, b)
}
func (m *ClientHello) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ClientHello.Marshal(b, m, deterministic)
}
func (m *ClientHello) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClientHello.Merge(m, src)
}
func (m *ClientHello) XXX_Size() int {
return xxx_messageInfo_ClientHello.Size(m)
}
func (m *ClientHello) XXX_DiscardUnknown() {
xxx_messageInfo_ClientHello.DiscardUnknown(m)
}
var xxx_messageInfo_ClientHello proto.InternalMessageInfo
func (m *ClientHello) GetSessionId() string {
if m != nil {
return m.SessionId
}
return ""
}
// ServerHello is the response message in handshake process.
type ServerHello struct {
CleanStart bool `protobuf:"varint,1,opt,name=clean_start,json=cleanStart,proto3" json:"clean_start,omitempty"`
NextEventId uint64 `protobuf:"varint,2,opt,name=next_event_id,json=nextEventId,proto3" json:"next_event_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServerHello) Reset() { *m = ServerHello{} }
func (m *ServerHello) String() string { return proto.CompactTextString(m) }
func (*ServerHello) ProtoMessage() {}
func (*ServerHello) Descriptor() ([]byte, []int) {
return fileDescriptor_7217fe47f5d68a8f, []int{7}
}
func (m *ServerHello) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServerHello.Unmarshal(m, b)
}
func (m *ServerHello) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServerHello.Marshal(b, m, deterministic)
}
func (m *ServerHello) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServerHello.Merge(m, src)
}
func (m *ServerHello) XXX_Size() int {
return xxx_messageInfo_ServerHello.Size(m)
}
func (m *ServerHello) XXX_DiscardUnknown() {
xxx_messageInfo_ServerHello.DiscardUnknown(m)
}
var xxx_messageInfo_ServerHello proto.InternalMessageInfo
func (m *ServerHello) GetCleanStart() bool {
if m != nil {
return m.CleanStart
}
return false
}
func (m *ServerHello) GetNextEventId() uint64 {
if m != nil {
return m.NextEventId
}
return 0
}
type JoinRequest struct {
Hosts []string `protobuf:"bytes,1,rep,name=hosts,proto3" json:"hosts,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *JoinRequest) Reset() { *m = JoinRequest{} }
func (m *JoinRequest) String() string { return proto.CompactTextString(m) }
func (*JoinRequest) ProtoMessage() {}
func (*JoinRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_7217fe47f5d68a8f, []int{8}
}
func (m *JoinRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_JoinRequest.Unmarshal(m, b)
}
func (m *JoinRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_JoinRequest.Marshal(b, m, deterministic)
}
func (m *JoinRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_JoinRequest.Merge(m, src)
}
func (m *JoinRequest) XXX_Size() int {
return xxx_messageInfo_JoinRequest.Size(m)
}
func (m *JoinRequest) XXX_DiscardUnknown() {
xxx_messageInfo_JoinRequest.DiscardUnknown(m)
}
var xxx_messageInfo_JoinRequest proto.InternalMessageInfo
func (m *JoinRequest) GetHosts() []string {
if m != nil {
return m.Hosts
}
return nil
}
type Member struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
Tags map[string]string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
Status Status `protobuf:"varint,4,opt,name=status,proto3,enum=gmqtt.federation.api.Status" json:"status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Member) Reset() { *m = Member{} }
func (m *Member) String() string { return proto.CompactTextString(m) }
func (*Member) ProtoMessage() {}
func (*Member) Descriptor() ([]byte, []int) {
return fileDescriptor_7217fe47f5d68a8f, []int{9}
}
func (m *Member) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Member.Unmarshal(m, b)
}
func (m *Member) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Member.Marshal(b, m, deterministic)
}
func (m *Member) XXX_Merge(src proto.Message) {
xxx_messageInfo_Member.Merge(m, src)
}
func (m *Member) XXX_Size() int {
return xxx_messageInfo_Member.Size(m)
}
func (m *Member) XXX_DiscardUnknown() {
xxx_messageInfo_Member.DiscardUnknown(m)
}
var xxx_messageInfo_Member proto.InternalMessageInfo
func (m *Member) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Member) GetAddr() string {
if m != nil {
return m.Addr
}
return ""
}
func (m *Member) GetTags() map[string]string {
if m != nil {
return m.Tags
}
return nil
}
func (m *Member) GetStatus() Status {
if m != nil {
return m.Status
}
return Status_STATUS_UNSPECIFIED
}
type ListMembersResponse struct {
Members []*Member `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListMembersResponse) Reset() { *m = ListMembersResponse{} }
func (m *ListMembersResponse) String() string { return proto.CompactTextString(m) }
func (*ListMembersResponse) ProtoMessage() {}
func (*ListMembersResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_7217fe47f5d68a8f, []int{10}
}
func (m *ListMembersResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListMembersResponse.Unmarshal(m, b)
}
func (m *ListMembersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListMembersResponse.Marshal(b, m, deterministic)
}
func (m *ListMembersResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListMembersResponse.Merge(m, src)
}
func (m *ListMembersResponse) XXX_Size() int {
return xxx_messageInfo_ListMembersResponse.Size(m)
}
func (m *ListMembersResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListMembersResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListMembersResponse proto.InternalMessageInfo
func (m *ListMembersResponse) GetMembers() []*Member {
if m != nil {
return m.Members
}
return nil
}
type ForceLeaveRequest struct {
NodeName string `protobuf:"bytes,1,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ForceLeaveRequest) Reset() { *m = ForceLeaveRequest{} }
func (m *ForceLeaveRequest) String() string { return proto.CompactTextString(m) }
func (*ForceLeaveRequest) ProtoMessage() {}
func (*ForceLeaveRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_7217fe47f5d68a8f, []int{11}
}
func (m *ForceLeaveRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ForceLeaveRequest.Unmarshal(m, b)
}
func (m *ForceLeaveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ForceLeaveRequest.Marshal(b, m, deterministic)
}
func (m *ForceLeaveRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ForceLeaveRequest.Merge(m, src)
}
func (m *ForceLeaveRequest) XXX_Size() int {
return xxx_messageInfo_ForceLeaveRequest.Size(m)
}
func (m *ForceLeaveRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ForceLeaveRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ForceLeaveRequest proto.InternalMessageInfo
func (m *ForceLeaveRequest) GetNodeName() string {
if m != nil {
return m.NodeName
}
return ""
}
func init() {
proto.RegisterEnum("gmqtt.federation.api.Status", Status_name, Status_value)
proto.RegisterType((*Event)(nil), "gmqtt.federation.api.Event")
proto.RegisterType((*Subscribe)(nil), "gmqtt.federation.api.Subscribe")
proto.RegisterType((*Message)(nil), "gmqtt.federation.api.Message")
proto.RegisterType((*UserProperty)(nil), "gmqtt.federation.api.UserProperty")
proto.RegisterType((*Unsubscribe)(nil), "gmqtt.federation.api.Unsubscribe")
proto.RegisterType((*Ack)(nil), "gmqtt.federation.api.Ack")
proto.RegisterType((*ClientHello)(nil), "gmqtt.federation.api.ClientHello")
proto.RegisterType((*ServerHello)(nil), "gmqtt.federation.api.ServerHello")
proto.RegisterType((*JoinRequest)(nil), "gmqtt.federation.api.JoinRequest")
proto.RegisterType((*Member)(nil), "gmqtt.federation.api.Member")
proto.RegisterMapType((map[string]string)(nil), "gmqtt.federation.api.Member.TagsEntry")
proto.RegisterType((*ListMembersResponse)(nil), "gmqtt.federation.api.ListMembersResponse")
proto.RegisterType((*ForceLeaveRequest)(nil), "gmqtt.federation.api.ForceLeaveRequest")
}
func init() { proto.RegisterFile("federation.proto", fileDescriptor_7217fe47f5d68a8f) }
var fileDescriptor_7217fe47f5d68a8f = []byte{
// 1008 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0xdd, 0x6e, 0xe3, 0x44,
0x14, 0x8e, 0x93, 0xb4, 0x49, 0x8e, 0xd3, 0x6c, 0x76, 0xb6, 0xaa, 0xdc, 0x74, 0x97, 0x76, 0x8d,
0x16, 0xba, 0x15, 0x4a, 0x96, 0x82, 0xf8, 0x29, 0x17, 0x28, 0xbb, 0x75, 0x68, 0xe8, 0x0f, 0x2b,
0x27, 0xad, 0x10, 0x37, 0xd6, 0x34, 0x3e, 0x4d, 0xbd, 0x4d, 0x6c, 0x77, 0x66, 0x12, 0x6d, 0xee,
0x10, 0xaf, 0xc0, 0x5b, 0x70, 0xc7, 0xb3, 0x70, 0xc9, 0x25, 0x3c, 0x08, 0x9a, 0xf1, 0x24, 0x31,
0x25, 0x16, 0x77, 0x73, 0xbe, 0xf9, 0xce, 0x77, 0x7e, 0xe6, 0xcc, 0x81, 0xfa, 0x0d, 0xfa, 0xc8,
0xa8, 0x08, 0xa2, 0xb0, 0x19, 0xb3, 0x48, 0x44, 0x64, 0x73, 0x38, 0xbe, 0x17, 0xa2, 0x99, 0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