-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Copy pathmodel.pb.go
5180 lines (4573 loc) · 161 KB
/
model.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: model.proto
package pbx
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)
)
// Authentication level
type AuthLevel int32
const (
AuthLevel_NONE AuthLevel = 0
AuthLevel_ANON AuthLevel = 10
AuthLevel_AUTH AuthLevel = 20
AuthLevel_ROOT AuthLevel = 30
)
// Enum value maps for AuthLevel.
var (
AuthLevel_name = map[int32]string{
0: "NONE",
10: "ANON",
20: "AUTH",
30: "ROOT",
}
AuthLevel_value = map[string]int32{
"NONE": 0,
"ANON": 10,
"AUTH": 20,
"ROOT": 30,
}
)
func (x AuthLevel) Enum() *AuthLevel {
p := new(AuthLevel)
*p = x
return p
}
func (x AuthLevel) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AuthLevel) Descriptor() protoreflect.EnumDescriptor {
return file_model_proto_enumTypes[0].Descriptor()
}
func (AuthLevel) Type() protoreflect.EnumType {
return &file_model_proto_enumTypes[0]
}
func (x AuthLevel) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AuthLevel.Descriptor instead.
func (AuthLevel) EnumDescriptor() ([]byte, []int) {
return file_model_proto_rawDescGZIP(), []int{0}
}
type InfoNote int32
const (
// Invalid value. The name must be globally unique.
InfoNote_X1 InfoNote = 0
InfoNote_READ InfoNote = 1
InfoNote_RECV InfoNote = 2
InfoNote_KP InfoNote = 3
InfoNote_CALL InfoNote = 4
)
// Enum value maps for InfoNote.
var (
InfoNote_name = map[int32]string{
0: "X1",
1: "READ",
2: "RECV",
3: "KP",
4: "CALL",
}
InfoNote_value = map[string]int32{
"X1": 0,
"READ": 1,
"RECV": 2,
"KP": 3,
"CALL": 4,
}
)
func (x InfoNote) Enum() *InfoNote {
p := new(InfoNote)
*p = x
return p
}
func (x InfoNote) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (InfoNote) Descriptor() protoreflect.EnumDescriptor {
return file_model_proto_enumTypes[1].Descriptor()
}
func (InfoNote) Type() protoreflect.EnumType {
return &file_model_proto_enumTypes[1]
}
func (x InfoNote) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use InfoNote.Descriptor instead.
func (InfoNote) EnumDescriptor() ([]byte, []int) {
return file_model_proto_rawDescGZIP(), []int{1}
}
type CallEvent int32
const (
// Invalid value. The name must be globally unique.
CallEvent_X2 CallEvent = 0
CallEvent_ACCEPT CallEvent = 1
CallEvent_ANSWER CallEvent = 2
CallEvent_HANG_UP CallEvent = 3
CallEvent_ICE_CANDIDATE CallEvent = 4
CallEvent_INVITE CallEvent = 5
CallEvent_OFFER CallEvent = 6
CallEvent_RINGING CallEvent = 7
)
// Enum value maps for CallEvent.
var (
CallEvent_name = map[int32]string{
0: "X2",
1: "ACCEPT",
2: "ANSWER",
3: "HANG_UP",
4: "ICE_CANDIDATE",
5: "INVITE",
6: "OFFER",
7: "RINGING",
}
CallEvent_value = map[string]int32{
"X2": 0,
"ACCEPT": 1,
"ANSWER": 2,
"HANG_UP": 3,
"ICE_CANDIDATE": 4,
"INVITE": 5,
"OFFER": 6,
"RINGING": 7,
}
)
func (x CallEvent) Enum() *CallEvent {
p := new(CallEvent)
*p = x
return p
}
func (x CallEvent) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CallEvent) Descriptor() protoreflect.EnumDescriptor {
return file_model_proto_enumTypes[2].Descriptor()
}
func (CallEvent) Type() protoreflect.EnumType {
return &file_model_proto_enumTypes[2]
}
func (x CallEvent) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CallEvent.Descriptor instead.
func (CallEvent) EnumDescriptor() ([]byte, []int) {
return file_model_proto_rawDescGZIP(), []int{2}
}
// Plugin response codes
type RespCode int32
const (
// Instruct Tinode server to continue with default processing of the client request.
RespCode_CONTINUE RespCode = 0
// Drop the request as if the client did not send it
RespCode_DROP RespCode = 1
// Send the the provided response to the client.
RespCode_RESPOND RespCode = 2
// Replace client's original request with the provided request then continue with
// processing.
RespCode_REPLACE RespCode = 3
)
// Enum value maps for RespCode.
var (
RespCode_name = map[int32]string{
0: "CONTINUE",
1: "DROP",
2: "RESPOND",
3: "REPLACE",
}
RespCode_value = map[string]int32{
"CONTINUE": 0,
"DROP": 1,
"RESPOND": 2,
"REPLACE": 3,
}
)
func (x RespCode) Enum() *RespCode {
p := new(RespCode)
*p = x
return p
}
func (x RespCode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (RespCode) Descriptor() protoreflect.EnumDescriptor {
return file_model_proto_enumTypes[3].Descriptor()
}
func (RespCode) Type() protoreflect.EnumType {
return &file_model_proto_enumTypes[3]
}
func (x RespCode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use RespCode.Descriptor instead.
func (RespCode) EnumDescriptor() ([]byte, []int) {
return file_model_proto_rawDescGZIP(), []int{3}
}
type Crud int32
const (
Crud_CREATE Crud = 0
Crud_UPDATE Crud = 1
Crud_DELETE Crud = 2
)
// Enum value maps for Crud.
var (
Crud_name = map[int32]string{
0: "CREATE",
1: "UPDATE",
2: "DELETE",
}
Crud_value = map[string]int32{
"CREATE": 0,
"UPDATE": 1,
"DELETE": 2,
}
)
func (x Crud) Enum() *Crud {
p := new(Crud)
*p = x
return p
}
func (x Crud) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Crud) Descriptor() protoreflect.EnumDescriptor {
return file_model_proto_enumTypes[4].Descriptor()
}
func (Crud) Type() protoreflect.EnumType {
return &file_model_proto_enumTypes[4]
}
func (x Crud) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Crud.Descriptor instead.
func (Crud) EnumDescriptor() ([]byte, []int) {
return file_model_proto_rawDescGZIP(), []int{4}
}
// What to delete, either "msg" to delete messages (default) or "topic" to delete the topic or "sub"
// to delete a subscription to topic.
type ClientDel_What int32
const (
// Invalid value. The name must be globally unique.
ClientDel_X0 ClientDel_What = 0
ClientDel_MSG ClientDel_What = 1
ClientDel_TOPIC ClientDel_What = 2
ClientDel_SUB ClientDel_What = 3
ClientDel_USER ClientDel_What = 4
ClientDel_CRED ClientDel_What = 5
)
// Enum value maps for ClientDel_What.
var (
ClientDel_What_name = map[int32]string{
0: "X0",
1: "MSG",
2: "TOPIC",
3: "SUB",
4: "USER",
5: "CRED",
}
ClientDel_What_value = map[string]int32{
"X0": 0,
"MSG": 1,
"TOPIC": 2,
"SUB": 3,
"USER": 4,
"CRED": 5,
}
)
func (x ClientDel_What) Enum() *ClientDel_What {
p := new(ClientDel_What)
*p = x
return p
}
func (x ClientDel_What) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ClientDel_What) Descriptor() protoreflect.EnumDescriptor {
return file_model_proto_enumTypes[5].Descriptor()
}
func (ClientDel_What) Type() protoreflect.EnumType {
return &file_model_proto_enumTypes[5]
}
func (x ClientDel_What) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ClientDel_What.Descriptor instead.
func (ClientDel_What) EnumDescriptor() ([]byte, []int) {
return file_model_proto_rawDescGZIP(), []int{18, 0}
}
type ServerPres_What int32
const (
// Invalid value. The name must be globally unique.
ServerPres_X3 ServerPres_What = 0
ServerPres_ON ServerPres_What = 1
ServerPres_OFF ServerPres_What = 2
ServerPres_UA ServerPres_What = 3
ServerPres_UPD ServerPres_What = 4
ServerPres_GONE ServerPres_What = 5
ServerPres_ACS ServerPres_What = 6
ServerPres_TERM ServerPres_What = 7
ServerPres_MSG ServerPres_What = 8
ServerPres_READ ServerPres_What = 9
ServerPres_RECV ServerPres_What = 10
ServerPres_DEL ServerPres_What = 11
ServerPres_TAGS ServerPres_What = 12
)
// Enum value maps for ServerPres_What.
var (
ServerPres_What_name = map[int32]string{
0: "X3",
1: "ON",
2: "OFF",
3: "UA",
4: "UPD",
5: "GONE",
6: "ACS",
7: "TERM",
8: "MSG",
9: "READ",
10: "RECV",
11: "DEL",
12: "TAGS",
}
ServerPres_What_value = map[string]int32{
"X3": 0,
"ON": 1,
"OFF": 2,
"UA": 3,
"UPD": 4,
"GONE": 5,
"ACS": 6,
"TERM": 7,
"MSG": 8,
"READ": 9,
"RECV": 10,
"DEL": 11,
"TAGS": 12,
}
)
func (x ServerPres_What) Enum() *ServerPres_What {
p := new(ServerPres_What)
*p = x
return p
}
func (x ServerPres_What) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ServerPres_What) Descriptor() protoreflect.EnumDescriptor {
return file_model_proto_enumTypes[6].Descriptor()
}
func (ServerPres_What) Type() protoreflect.EnumType {
return &file_model_proto_enumTypes[6]
}
func (x ServerPres_What) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ServerPres_What.Descriptor instead.
func (ServerPres_What) EnumDescriptor() ([]byte, []int) {
return file_model_proto_rawDescGZIP(), []int{28, 0}
}
// Dummy placeholder message.
type Unused struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *Unused) Reset() {
*x = Unused{}
if protoimpl.UnsafeEnabled {
mi := &file_model_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Unused) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Unused) ProtoMessage() {}
func (x *Unused) ProtoReflect() protoreflect.Message {
mi := &file_model_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 Unused.ProtoReflect.Descriptor instead.
func (*Unused) Descriptor() ([]byte, []int) {
return file_model_proto_rawDescGZIP(), []int{0}
}
// Topic default access mode
type DefaultAcsMode struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Auth string `protobuf:"bytes,1,opt,name=auth,proto3" json:"auth,omitempty"`
Anon string `protobuf:"bytes,2,opt,name=anon,proto3" json:"anon,omitempty"`
}
func (x *DefaultAcsMode) Reset() {
*x = DefaultAcsMode{}
if protoimpl.UnsafeEnabled {
mi := &file_model_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DefaultAcsMode) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DefaultAcsMode) ProtoMessage() {}
func (x *DefaultAcsMode) ProtoReflect() protoreflect.Message {
mi := &file_model_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 DefaultAcsMode.ProtoReflect.Descriptor instead.
func (*DefaultAcsMode) Descriptor() ([]byte, []int) {
return file_model_proto_rawDescGZIP(), []int{1}
}
func (x *DefaultAcsMode) GetAuth() string {
if x != nil {
return x.Auth
}
return ""
}
func (x *DefaultAcsMode) GetAnon() string {
if x != nil {
return x.Anon
}
return ""
}
// Actual access mode
type AccessMode struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Access mode requested by the user
Want string `protobuf:"bytes,1,opt,name=want,proto3" json:"want,omitempty"`
// Access mode granted to the user by the admin
Given string `protobuf:"bytes,2,opt,name=given,proto3" json:"given,omitempty"`
}
func (x *AccessMode) Reset() {
*x = AccessMode{}
if protoimpl.UnsafeEnabled {
mi := &file_model_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AccessMode) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AccessMode) ProtoMessage() {}
func (x *AccessMode) ProtoReflect() protoreflect.Message {
mi := &file_model_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 AccessMode.ProtoReflect.Descriptor instead.
func (*AccessMode) Descriptor() ([]byte, []int) {
return file_model_proto_rawDescGZIP(), []int{2}
}
func (x *AccessMode) GetWant() string {
if x != nil {
return x.Want
}
return ""
}
func (x *AccessMode) GetGiven() string {
if x != nil {
return x.Given
}
return ""
}
// SetSub: payload in set.sub request to update current subscription or invite another user, {sub.what} == "sub"
type SetSub struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// User affected by this request. Default (empty): current user
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
// Access mode change, either Given or Want depending on context
Mode string `protobuf:"bytes,2,opt,name=mode,proto3" json:"mode,omitempty"`
}
func (x *SetSub) Reset() {
*x = SetSub{}
if protoimpl.UnsafeEnabled {
mi := &file_model_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SetSub) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetSub) ProtoMessage() {}
func (x *SetSub) ProtoReflect() protoreflect.Message {
mi := &file_model_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 SetSub.ProtoReflect.Descriptor instead.
func (*SetSub) Descriptor() ([]byte, []int) {
return file_model_proto_rawDescGZIP(), []int{3}
}
func (x *SetSub) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
func (x *SetSub) GetMode() string {
if x != nil {
return x.Mode
}
return ""
}
// Credentials such as email or phone number
type ClientCred struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Credential type, i.e. `email` or `tel`.
Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
// Value to verify, i.e. `user@example.com` or `+18003287448`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// Verification response
Response string `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"`
// Request parameters, such as preferences or country code.
Params map[string][]byte `protobuf:"bytes,4,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *ClientCred) Reset() {
*x = ClientCred{}
if protoimpl.UnsafeEnabled {
mi := &file_model_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ClientCred) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClientCred) ProtoMessage() {}
func (x *ClientCred) ProtoReflect() protoreflect.Message {
mi := &file_model_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 ClientCred.ProtoReflect.Descriptor instead.
func (*ClientCred) Descriptor() ([]byte, []int) {
return file_model_proto_rawDescGZIP(), []int{4}
}
func (x *ClientCred) GetMethod() string {
if x != nil {
return x.Method
}
return ""
}
func (x *ClientCred) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
func (x *ClientCred) GetResponse() string {
if x != nil {
return x.Response
}
return ""
}
func (x *ClientCred) GetParams() map[string][]byte {
if x != nil {
return x.Params
}
return nil
}
// SetDesc: C2S in set.what == "desc" and sub.init message
type SetDesc struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
DefaultAcs *DefaultAcsMode `protobuf:"bytes,1,opt,name=default_acs,json=defaultAcs,proto3" json:"default_acs,omitempty"`
Public []byte `protobuf:"bytes,2,opt,name=public,proto3" json:"public,omitempty"`
Private []byte `protobuf:"bytes,3,opt,name=private,proto3" json:"private,omitempty"`
Trusted []byte `protobuf:"bytes,4,opt,name=trusted,proto3" json:"trusted,omitempty"`
}
func (x *SetDesc) Reset() {
*x = SetDesc{}
if protoimpl.UnsafeEnabled {
mi := &file_model_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SetDesc) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetDesc) ProtoMessage() {}
func (x *SetDesc) ProtoReflect() protoreflect.Message {
mi := &file_model_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 SetDesc.ProtoReflect.Descriptor instead.
func (*SetDesc) Descriptor() ([]byte, []int) {
return file_model_proto_rawDescGZIP(), []int{5}
}
func (x *SetDesc) GetDefaultAcs() *DefaultAcsMode {
if x != nil {
return x.DefaultAcs
}
return nil
}
func (x *SetDesc) GetPublic() []byte {
if x != nil {
return x.Public
}
return nil
}
func (x *SetDesc) GetPrivate() []byte {
if x != nil {
return x.Private
}
return nil
}
func (x *SetDesc) GetTrusted() []byte {
if x != nil {
return x.Trusted
}
return nil
}
type GetOpts struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Timestamp in milliseconds since epoch 01/01/1970
IfModifiedSince int64 `protobuf:"varint,1,opt,name=if_modified_since,json=ifModifiedSince,proto3" json:"if_modified_since,omitempty"`
// Limit search to this user ID
User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
// Limit search results to one topic;
Topic string `protobuf:"bytes,3,opt,name=topic,proto3" json:"topic,omitempty"`
// Load messages with seq id equal or greater than this
SinceId int32 `protobuf:"varint,4,opt,name=since_id,json=sinceId,proto3" json:"since_id,omitempty"`
// Load messages with seq id lower than this
BeforeId int32 `protobuf:"varint,5,opt,name=before_id,json=beforeId,proto3" json:"before_id,omitempty"`
// Maximum number of results to return
Limit int32 `protobuf:"varint,6,opt,name=limit,proto3" json:"limit,omitempty"`
}
func (x *GetOpts) Reset() {
*x = GetOpts{}
if protoimpl.UnsafeEnabled {
mi := &file_model_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetOpts) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetOpts) ProtoMessage() {}
func (x *GetOpts) ProtoReflect() protoreflect.Message {
mi := &file_model_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 GetOpts.ProtoReflect.Descriptor instead.
func (*GetOpts) Descriptor() ([]byte, []int) {
return file_model_proto_rawDescGZIP(), []int{6}
}
func (x *GetOpts) GetIfModifiedSince() int64 {
if x != nil {
return x.IfModifiedSince
}
return 0
}
func (x *GetOpts) GetUser() string {
if x != nil {
return x.User
}
return ""
}
func (x *GetOpts) GetTopic() string {
if x != nil {
return x.Topic
}
return ""
}
func (x *GetOpts) GetSinceId() int32 {
if x != nil {
return x.SinceId
}
return 0
}
func (x *GetOpts) GetBeforeId() int32 {
if x != nil {
return x.BeforeId
}
return 0
}
func (x *GetOpts) GetLimit() int32 {
if x != nil {
return x.Limit
}
return 0
}
type GetQuery struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
What string `protobuf:"bytes,1,opt,name=what,proto3" json:"what,omitempty"`
// Parameters of "desc" request
Desc *GetOpts `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"`
// Parameters of "sub" request
Sub *GetOpts `protobuf:"bytes,3,opt,name=sub,proto3" json:"sub,omitempty"`
// Parameters of "data" request
Data *GetOpts `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
}
func (x *GetQuery) Reset() {
*x = GetQuery{}
if protoimpl.UnsafeEnabled {
mi := &file_model_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetQuery) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetQuery) ProtoMessage() {}
func (x *GetQuery) ProtoReflect() protoreflect.Message {
mi := &file_model_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 GetQuery.ProtoReflect.Descriptor instead.
func (*GetQuery) Descriptor() ([]byte, []int) {
return file_model_proto_rawDescGZIP(), []int{7}
}
func (x *GetQuery) GetWhat() string {
if x != nil {
return x.What
}
return ""
}
func (x *GetQuery) GetDesc() *GetOpts {
if x != nil {
return x.Desc
}
return nil
}
func (x *GetQuery) GetSub() *GetOpts {
if x != nil {
return x.Sub
}
return nil
}
func (x *GetQuery) GetData() *GetOpts {
if x != nil {
return x.Data
}
return nil
}
type SetQuery struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Topic metadata, new topic & new subscriptions only
Desc *SetDesc `protobuf:"bytes,1,opt,name=desc,proto3" json:"desc,omitempty"`
// Subscription parameters
Sub *SetSub `protobuf:"bytes,2,opt,name=sub,proto3" json:"sub,omitempty"`
// Indexable tags
Tags []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"`
// Credential being updated.
Cred *ClientCred `protobuf:"bytes,4,opt,name=cred,proto3" json:"cred,omitempty"`
}
func (x *SetQuery) Reset() {
*x = SetQuery{}
if protoimpl.UnsafeEnabled {
mi := &file_model_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SetQuery) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetQuery) ProtoMessage() {}