-
Notifications
You must be signed in to change notification settings - Fork 347
/
sync.tl.pb.go
3073 lines (2946 loc) · 83.6 KB
/
sync.tl.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-gogo. DO NOT EDIT.
// source: sync.tl.proto
package sync
import (
context "context"
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
types "github.com/gogo/protobuf/types"
mtproto "github.com/teamgram/proto/mtproto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
io "io"
math "math"
math_bits "math/bits"
reflect "reflect"
strings "strings"
)
// 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type TLConstructor int32
const (
CRC32_UNKNOWN TLConstructor = 0
CRC32_sync_updatesMe TLConstructor = 1614568688
CRC32_sync_updatesNotMe TLConstructor = 16458447
CRC32_sync_pushUpdates TLConstructor = -1895114306
CRC32_sync_pushUpdatesIfNot TLConstructor = 1074085860
CRC32_sync_pushBotUpdates TLConstructor = -1379667968
CRC32_sync_pushRpcResult TLConstructor = -1874085983
CRC32_sync_broadcastUpdates TLConstructor = -169648970
)
var TLConstructor_name = map[int32]string{
0: "CRC32_UNKNOWN",
1614568688: "CRC32_sync_updatesMe",
16458447: "CRC32_sync_updatesNotMe",
-1895114306: "CRC32_sync_pushUpdates",
1074085860: "CRC32_sync_pushUpdatesIfNot",
-1379667968: "CRC32_sync_pushBotUpdates",
-1874085983: "CRC32_sync_pushRpcResult",
-169648970: "CRC32_sync_broadcastUpdates",
}
var TLConstructor_value = map[string]int32{
"CRC32_UNKNOWN": 0,
"CRC32_sync_updatesMe": 1614568688,
"CRC32_sync_updatesNotMe": 16458447,
"CRC32_sync_pushUpdates": -1895114306,
"CRC32_sync_pushUpdatesIfNot": 1074085860,
"CRC32_sync_pushBotUpdates": -1379667968,
"CRC32_sync_pushRpcResult": -1874085983,
"CRC32_sync_broadcastUpdates": -169648970,
}
func (x TLConstructor) String() string {
return proto.EnumName(TLConstructor_name, int32(x))
}
func (TLConstructor) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_04d9f5ff30041e30, []int{0}
}
//--------------------------------------------------------------------------------------------
// sync.updatesMe flags:# user_id:long auth_key_id:long server_id:string session_id:flags.0?long updates:Updates = Void;
type TLSyncUpdatesMe struct {
Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=sync.TLConstructor" json:"constructor,omitempty"`
UserId int64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
AuthKeyId int64 `protobuf:"varint,4,opt,name=auth_key_id,json=authKeyId,proto3" json:"auth_key_id,omitempty"`
ServerId string `protobuf:"bytes,5,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
SessionId *types.Int64Value `protobuf:"bytes,6,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
Updates *mtproto.Updates `protobuf:"bytes,7,opt,name=updates,proto3" json:"updates,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TLSyncUpdatesMe) Reset() { *m = TLSyncUpdatesMe{} }
func (m *TLSyncUpdatesMe) String() string { return proto.CompactTextString(m) }
func (*TLSyncUpdatesMe) ProtoMessage() {}
func (*TLSyncUpdatesMe) Descriptor() ([]byte, []int) {
return fileDescriptor_04d9f5ff30041e30, []int{0}
}
func (m *TLSyncUpdatesMe) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *TLSyncUpdatesMe) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_TLSyncUpdatesMe.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *TLSyncUpdatesMe) XXX_Merge(src proto.Message) {
xxx_messageInfo_TLSyncUpdatesMe.Merge(m, src)
}
func (m *TLSyncUpdatesMe) XXX_Size() int {
return m.Size()
}
func (m *TLSyncUpdatesMe) XXX_DiscardUnknown() {
xxx_messageInfo_TLSyncUpdatesMe.DiscardUnknown(m)
}
var xxx_messageInfo_TLSyncUpdatesMe proto.InternalMessageInfo
func (m *TLSyncUpdatesMe) GetConstructor() TLConstructor {
if m != nil {
return m.Constructor
}
return CRC32_UNKNOWN
}
func (m *TLSyncUpdatesMe) GetUserId() int64 {
if m != nil {
return m.UserId
}
return 0
}
func (m *TLSyncUpdatesMe) GetAuthKeyId() int64 {
if m != nil {
return m.AuthKeyId
}
return 0
}
func (m *TLSyncUpdatesMe) GetServerId() string {
if m != nil {
return m.ServerId
}
return ""
}
func (m *TLSyncUpdatesMe) GetSessionId() *types.Int64Value {
if m != nil {
return m.SessionId
}
return nil
}
func (m *TLSyncUpdatesMe) GetUpdates() *mtproto.Updates {
if m != nil {
return m.Updates
}
return nil
}
//--------------------------------------------------------------------------------------------
// sync.updatesNotMe user_id:long auth_key_id:long updates:Updates = Void;
type TLSyncUpdatesNotMe struct {
Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=sync.TLConstructor" json:"constructor,omitempty"`
UserId int64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
AuthKeyId int64 `protobuf:"varint,4,opt,name=auth_key_id,json=authKeyId,proto3" json:"auth_key_id,omitempty"`
Updates *mtproto.Updates `protobuf:"bytes,5,opt,name=updates,proto3" json:"updates,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TLSyncUpdatesNotMe) Reset() { *m = TLSyncUpdatesNotMe{} }
func (m *TLSyncUpdatesNotMe) String() string { return proto.CompactTextString(m) }
func (*TLSyncUpdatesNotMe) ProtoMessage() {}
func (*TLSyncUpdatesNotMe) Descriptor() ([]byte, []int) {
return fileDescriptor_04d9f5ff30041e30, []int{1}
}
func (m *TLSyncUpdatesNotMe) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *TLSyncUpdatesNotMe) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_TLSyncUpdatesNotMe.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *TLSyncUpdatesNotMe) XXX_Merge(src proto.Message) {
xxx_messageInfo_TLSyncUpdatesNotMe.Merge(m, src)
}
func (m *TLSyncUpdatesNotMe) XXX_Size() int {
return m.Size()
}
func (m *TLSyncUpdatesNotMe) XXX_DiscardUnknown() {
xxx_messageInfo_TLSyncUpdatesNotMe.DiscardUnknown(m)
}
var xxx_messageInfo_TLSyncUpdatesNotMe proto.InternalMessageInfo
func (m *TLSyncUpdatesNotMe) GetConstructor() TLConstructor {
if m != nil {
return m.Constructor
}
return CRC32_UNKNOWN
}
func (m *TLSyncUpdatesNotMe) GetUserId() int64 {
if m != nil {
return m.UserId
}
return 0
}
func (m *TLSyncUpdatesNotMe) GetAuthKeyId() int64 {
if m != nil {
return m.AuthKeyId
}
return 0
}
func (m *TLSyncUpdatesNotMe) GetUpdates() *mtproto.Updates {
if m != nil {
return m.Updates
}
return nil
}
//--------------------------------------------------------------------------------------------
// sync.pushUpdates user_id:long updates:Updates = Void;
type TLSyncPushUpdates struct {
Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=sync.TLConstructor" json:"constructor,omitempty"`
UserId int64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
Updates *mtproto.Updates `protobuf:"bytes,4,opt,name=updates,proto3" json:"updates,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TLSyncPushUpdates) Reset() { *m = TLSyncPushUpdates{} }
func (m *TLSyncPushUpdates) String() string { return proto.CompactTextString(m) }
func (*TLSyncPushUpdates) ProtoMessage() {}
func (*TLSyncPushUpdates) Descriptor() ([]byte, []int) {
return fileDescriptor_04d9f5ff30041e30, []int{2}
}
func (m *TLSyncPushUpdates) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *TLSyncPushUpdates) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_TLSyncPushUpdates.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *TLSyncPushUpdates) XXX_Merge(src proto.Message) {
xxx_messageInfo_TLSyncPushUpdates.Merge(m, src)
}
func (m *TLSyncPushUpdates) XXX_Size() int {
return m.Size()
}
func (m *TLSyncPushUpdates) XXX_DiscardUnknown() {
xxx_messageInfo_TLSyncPushUpdates.DiscardUnknown(m)
}
var xxx_messageInfo_TLSyncPushUpdates proto.InternalMessageInfo
func (m *TLSyncPushUpdates) GetConstructor() TLConstructor {
if m != nil {
return m.Constructor
}
return CRC32_UNKNOWN
}
func (m *TLSyncPushUpdates) GetUserId() int64 {
if m != nil {
return m.UserId
}
return 0
}
func (m *TLSyncPushUpdates) GetUpdates() *mtproto.Updates {
if m != nil {
return m.Updates
}
return nil
}
//--------------------------------------------------------------------------------------------
// sync.pushUpdatesIfNot user_id:long excludes:Vector<long> updates:Updates = Void;
type TLSyncPushUpdatesIfNot struct {
Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=sync.TLConstructor" json:"constructor,omitempty"`
UserId int64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
Excludes []int64 `protobuf:"varint,4,rep,packed,name=excludes,proto3" json:"excludes,omitempty"`
Updates *mtproto.Updates `protobuf:"bytes,5,opt,name=updates,proto3" json:"updates,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TLSyncPushUpdatesIfNot) Reset() { *m = TLSyncPushUpdatesIfNot{} }
func (m *TLSyncPushUpdatesIfNot) String() string { return proto.CompactTextString(m) }
func (*TLSyncPushUpdatesIfNot) ProtoMessage() {}
func (*TLSyncPushUpdatesIfNot) Descriptor() ([]byte, []int) {
return fileDescriptor_04d9f5ff30041e30, []int{3}
}
func (m *TLSyncPushUpdatesIfNot) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *TLSyncPushUpdatesIfNot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_TLSyncPushUpdatesIfNot.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *TLSyncPushUpdatesIfNot) XXX_Merge(src proto.Message) {
xxx_messageInfo_TLSyncPushUpdatesIfNot.Merge(m, src)
}
func (m *TLSyncPushUpdatesIfNot) XXX_Size() int {
return m.Size()
}
func (m *TLSyncPushUpdatesIfNot) XXX_DiscardUnknown() {
xxx_messageInfo_TLSyncPushUpdatesIfNot.DiscardUnknown(m)
}
var xxx_messageInfo_TLSyncPushUpdatesIfNot proto.InternalMessageInfo
func (m *TLSyncPushUpdatesIfNot) GetConstructor() TLConstructor {
if m != nil {
return m.Constructor
}
return CRC32_UNKNOWN
}
func (m *TLSyncPushUpdatesIfNot) GetUserId() int64 {
if m != nil {
return m.UserId
}
return 0
}
func (m *TLSyncPushUpdatesIfNot) GetExcludes() []int64 {
if m != nil {
return m.Excludes
}
return nil
}
func (m *TLSyncPushUpdatesIfNot) GetUpdates() *mtproto.Updates {
if m != nil {
return m.Updates
}
return nil
}
//--------------------------------------------------------------------------------------------
// sync.pushBotUpdates user_id:long updates:Updates = Void;
type TLSyncPushBotUpdates struct {
Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=sync.TLConstructor" json:"constructor,omitempty"`
UserId int64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
Updates *mtproto.Updates `protobuf:"bytes,4,opt,name=updates,proto3" json:"updates,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TLSyncPushBotUpdates) Reset() { *m = TLSyncPushBotUpdates{} }
func (m *TLSyncPushBotUpdates) String() string { return proto.CompactTextString(m) }
func (*TLSyncPushBotUpdates) ProtoMessage() {}
func (*TLSyncPushBotUpdates) Descriptor() ([]byte, []int) {
return fileDescriptor_04d9f5ff30041e30, []int{4}
}
func (m *TLSyncPushBotUpdates) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *TLSyncPushBotUpdates) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_TLSyncPushBotUpdates.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *TLSyncPushBotUpdates) XXX_Merge(src proto.Message) {
xxx_messageInfo_TLSyncPushBotUpdates.Merge(m, src)
}
func (m *TLSyncPushBotUpdates) XXX_Size() int {
return m.Size()
}
func (m *TLSyncPushBotUpdates) XXX_DiscardUnknown() {
xxx_messageInfo_TLSyncPushBotUpdates.DiscardUnknown(m)
}
var xxx_messageInfo_TLSyncPushBotUpdates proto.InternalMessageInfo
func (m *TLSyncPushBotUpdates) GetConstructor() TLConstructor {
if m != nil {
return m.Constructor
}
return CRC32_UNKNOWN
}
func (m *TLSyncPushBotUpdates) GetUserId() int64 {
if m != nil {
return m.UserId
}
return 0
}
func (m *TLSyncPushBotUpdates) GetUpdates() *mtproto.Updates {
if m != nil {
return m.Updates
}
return nil
}
//--------------------------------------------------------------------------------------------
// sync.pushRpcResult auth_key_id:long server_id:string session_id:long client_req_msg_id:long rpc_result:bytes = Void;
type TLSyncPushRpcResult struct {
Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=sync.TLConstructor" json:"constructor,omitempty"`
AuthKeyId int64 `protobuf:"varint,3,opt,name=auth_key_id,json=authKeyId,proto3" json:"auth_key_id,omitempty"`
ServerId string `protobuf:"bytes,4,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
SessionId int64 `protobuf:"varint,5,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
ClientReqMsgId int64 `protobuf:"varint,6,opt,name=client_req_msg_id,json=clientReqMsgId,proto3" json:"client_req_msg_id,omitempty"`
RpcResult []byte `protobuf:"bytes,7,opt,name=rpc_result,json=rpcResult,proto3" json:"rpc_result,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TLSyncPushRpcResult) Reset() { *m = TLSyncPushRpcResult{} }
func (m *TLSyncPushRpcResult) String() string { return proto.CompactTextString(m) }
func (*TLSyncPushRpcResult) ProtoMessage() {}
func (*TLSyncPushRpcResult) Descriptor() ([]byte, []int) {
return fileDescriptor_04d9f5ff30041e30, []int{5}
}
func (m *TLSyncPushRpcResult) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *TLSyncPushRpcResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_TLSyncPushRpcResult.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *TLSyncPushRpcResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_TLSyncPushRpcResult.Merge(m, src)
}
func (m *TLSyncPushRpcResult) XXX_Size() int {
return m.Size()
}
func (m *TLSyncPushRpcResult) XXX_DiscardUnknown() {
xxx_messageInfo_TLSyncPushRpcResult.DiscardUnknown(m)
}
var xxx_messageInfo_TLSyncPushRpcResult proto.InternalMessageInfo
func (m *TLSyncPushRpcResult) GetConstructor() TLConstructor {
if m != nil {
return m.Constructor
}
return CRC32_UNKNOWN
}
func (m *TLSyncPushRpcResult) GetAuthKeyId() int64 {
if m != nil {
return m.AuthKeyId
}
return 0
}
func (m *TLSyncPushRpcResult) GetServerId() string {
if m != nil {
return m.ServerId
}
return ""
}
func (m *TLSyncPushRpcResult) GetSessionId() int64 {
if m != nil {
return m.SessionId
}
return 0
}
func (m *TLSyncPushRpcResult) GetClientReqMsgId() int64 {
if m != nil {
return m.ClientReqMsgId
}
return 0
}
func (m *TLSyncPushRpcResult) GetRpcResult() []byte {
if m != nil {
return m.RpcResult
}
return nil
}
//--------------------------------------------------------------------------------------------
// sync.broadcastUpdates broadcast_type:int chat_id:long exclude_id_list:Vector<long> updates:Updates = Void;
type TLSyncBroadcastUpdates struct {
Constructor TLConstructor `protobuf:"varint,1,opt,name=constructor,proto3,enum=sync.TLConstructor" json:"constructor,omitempty"`
BroadcastType int32 `protobuf:"varint,3,opt,name=broadcast_type,json=broadcastType,proto3" json:"broadcast_type,omitempty"`
ChatId int64 `protobuf:"varint,4,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
ExcludeIdList []int64 `protobuf:"varint,5,rep,packed,name=exclude_id_list,json=excludeIdList,proto3" json:"exclude_id_list,omitempty"`
Updates *mtproto.Updates `protobuf:"bytes,6,opt,name=updates,proto3" json:"updates,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TLSyncBroadcastUpdates) Reset() { *m = TLSyncBroadcastUpdates{} }
func (m *TLSyncBroadcastUpdates) String() string { return proto.CompactTextString(m) }
func (*TLSyncBroadcastUpdates) ProtoMessage() {}
func (*TLSyncBroadcastUpdates) Descriptor() ([]byte, []int) {
return fileDescriptor_04d9f5ff30041e30, []int{6}
}
func (m *TLSyncBroadcastUpdates) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *TLSyncBroadcastUpdates) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_TLSyncBroadcastUpdates.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *TLSyncBroadcastUpdates) XXX_Merge(src proto.Message) {
xxx_messageInfo_TLSyncBroadcastUpdates.Merge(m, src)
}
func (m *TLSyncBroadcastUpdates) XXX_Size() int {
return m.Size()
}
func (m *TLSyncBroadcastUpdates) XXX_DiscardUnknown() {
xxx_messageInfo_TLSyncBroadcastUpdates.DiscardUnknown(m)
}
var xxx_messageInfo_TLSyncBroadcastUpdates proto.InternalMessageInfo
func (m *TLSyncBroadcastUpdates) GetConstructor() TLConstructor {
if m != nil {
return m.Constructor
}
return CRC32_UNKNOWN
}
func (m *TLSyncBroadcastUpdates) GetBroadcastType() int32 {
if m != nil {
return m.BroadcastType
}
return 0
}
func (m *TLSyncBroadcastUpdates) GetChatId() int64 {
if m != nil {
return m.ChatId
}
return 0
}
func (m *TLSyncBroadcastUpdates) GetExcludeIdList() []int64 {
if m != nil {
return m.ExcludeIdList
}
return nil
}
func (m *TLSyncBroadcastUpdates) GetUpdates() *mtproto.Updates {
if m != nil {
return m.Updates
}
return nil
}
func init() {
proto.RegisterEnum("sync.TLConstructor", TLConstructor_name, TLConstructor_value)
proto.RegisterType((*TLSyncUpdatesMe)(nil), "sync.TL_sync_updatesMe")
proto.RegisterType((*TLSyncUpdatesNotMe)(nil), "sync.TL_sync_updatesNotMe")
proto.RegisterType((*TLSyncPushUpdates)(nil), "sync.TL_sync_pushUpdates")
proto.RegisterType((*TLSyncPushUpdatesIfNot)(nil), "sync.TL_sync_pushUpdatesIfNot")
proto.RegisterType((*TLSyncPushBotUpdates)(nil), "sync.TL_sync_pushBotUpdates")
proto.RegisterType((*TLSyncPushRpcResult)(nil), "sync.TL_sync_pushRpcResult")
proto.RegisterType((*TLSyncBroadcastUpdates)(nil), "sync.TL_sync_broadcastUpdates")
}
func init() { proto.RegisterFile("sync.tl.proto", fileDescriptor_04d9f5ff30041e30) }
var fileDescriptor_04d9f5ff30041e30 = []byte{
// 863 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x55, 0xcf, 0x8f, 0xdb, 0x44,
0x14, 0x5e, 0x37, 0xbf, 0x9a, 0xb7, 0x64, 0xf1, 0xce, 0x6e, 0xbb, 0xd9, 0xa4, 0x58, 0x51, 0xaa,
0x56, 0xa1, 0x52, 0x1d, 0x29, 0x0b, 0x1c, 0x7a, 0x40, 0x68, 0x03, 0x12, 0x56, 0xb7, 0x01, 0x99,
0x6d, 0x91, 0xb8, 0x58, 0x8e, 0x3d, 0x75, 0x2c, 0x12, 0x8f, 0x3b, 0x33, 0x06, 0x72, 0x2b, 0x9c,
0x7a, 0x41, 0x08, 0xa9, 0xff, 0x00, 0xe2, 0x84, 0x90, 0x40, 0x02, 0x09, 0xa9, 0x17, 0x6e, 0x48,
0xdc, 0xe0, 0x4f, 0x28, 0x2b, 0x7a, 0x43, 0x50, 0x24, 0x0e, 0x85, 0x4b, 0x90, 0xc7, 0x71, 0xec,
0xd8, 0x29, 0xe5, 0xc7, 0x4a, 0xf4, 0x12, 0x79, 0xde, 0xf7, 0xde, 0x37, 0xdf, 0x7b, 0x6f, 0xde,
0x0b, 0xd4, 0xd8, 0xd4, 0xb3, 0x54, 0x3e, 0x56, 0x7d, 0x4a, 0x38, 0x41, 0xc5, 0xf0, 0xd8, 0xb8,
0xe8, 0xb8, 0x7c, 0x14, 0x0c, 0x55, 0x8b, 0x4c, 0xba, 0x0e, 0x71, 0x48, 0x57, 0x80, 0xc3, 0xe0,
0xba, 0x38, 0x89, 0x83, 0xf8, 0x8a, 0x82, 0x1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, 0xf4, 0x57,
0xfb, 0xaf, 0x4d, 0x3d, 0x0b, 0x5d, 0x82, 0x8d, 0xcc, 0x5f, 0xd6, 0x4e, 0xdc, 0xff, 0x4c, 0x95,
0x1a, 0xb5, 0x45, 0xf5, 0xaf, 0x11, 0xd7, 0x6e, 0xaf, 0xa1, 0x17, 0x60, 0x33, 0xbf, 0xe3, 0x1b,
0x2b, 0xc3, 0x05, 0x96, 0x67, 0x78, 0x1e, 0xe4, 0xdc, 0xc2, 0xdd, 0x5d, 0x26, 0x48, 0x41, 0xf9,
0xf8, 0x97, 0xe1, 0xd4, 0xea, 0xe5, 0xa8, 0x3c, 0x94, 0x44, 0xe0, 0x79, 0xa6, 0x17, 0x61, 0x6b,
0xd5, 0xc6, 0x3a, 0x93, 0xe7, 0x49, 0xd0, 0x3c, 0xcb, 0x3e, 0xa0, 0x15, 0x0b, 0xa6, 0x99, 0x27,
0x59, 0x80, 0x0f, 0xcf, 0x29, 0x37, 0xad, 0x99, 0x9c, 0xb2, 0x78, 0x8e, 0x69, 0xff, 0xa5, 0xfb,
0x3f, 0x28, 0xd2, 0xb7, 0x47, 0x8a, 0xf4, 0xfd, 0x91, 0x22, 0xdd, 0x3d, 0x52, 0xa4, 0x37, 0xf6,
0x38, 0x36, 0x27, 0x0e, 0x35, 0x27, 0xaa, 0x4b, 0xba, 0xf1, 0xf7, 0xc5, 0x68, 0x2b, 0x75, 0x4d,
0xdf, 0xef, 0x4e, 0x30, 0x63, 0xd8, 0x73, 0x30, 0xed, 0x86, 0x77, 0x88, 0x9f, 0x61, 0x59, 0x90,
0xee, 0xfd, 0x19, 0x00, 0x00, 0xff, 0xff, 0xe1, 0x62, 0x51, 0x6f, 0x93, 0x09, 0x00, 0x00,
}
func (this *TLSyncUpdatesMe) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 10)
s = append(s, "&sync.TLSyncUpdatesMe{")
s = append(s, "Constructor: "+fmt.Sprintf("%#v", this.Constructor)+",\n")
s = append(s, "UserId: "+fmt.Sprintf("%#v", this.UserId)+",\n")
s = append(s, "AuthKeyId: "+fmt.Sprintf("%#v", this.AuthKeyId)+",\n")
s = append(s, "ServerId: "+fmt.Sprintf("%#v", this.ServerId)+",\n")
if this.SessionId != nil {
s = append(s, "SessionId: "+fmt.Sprintf("%#v", this.SessionId)+",\n")
}
if this.Updates != nil {
s = append(s, "Updates: "+fmt.Sprintf("%#v", this.Updates)+",\n")
}
if this.XXX_unrecognized != nil {
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func (this *TLSyncUpdatesNotMe) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 8)
s = append(s, "&sync.TLSyncUpdatesNotMe{")
s = append(s, "Constructor: "+fmt.Sprintf("%#v", this.Constructor)+",\n")
s = append(s, "UserId: "+fmt.Sprintf("%#v", this.UserId)+",\n")
s = append(s, "AuthKeyId: "+fmt.Sprintf("%#v", this.AuthKeyId)+",\n")
if this.Updates != nil {
s = append(s, "Updates: "+fmt.Sprintf("%#v", this.Updates)+",\n")
}
if this.XXX_unrecognized != nil {
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func (this *TLSyncPushUpdates) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 7)
s = append(s, "&sync.TLSyncPushUpdates{")
s = append(s, "Constructor: "+fmt.Sprintf("%#v", this.Constructor)+",\n")
s = append(s, "UserId: "+fmt.Sprintf("%#v", this.UserId)+",\n")
if this.Updates != nil {
s = append(s, "Updates: "+fmt.Sprintf("%#v", this.Updates)+",\n")
}
if this.XXX_unrecognized != nil {
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func (this *TLSyncPushUpdatesIfNot) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 8)
s = append(s, "&sync.TLSyncPushUpdatesIfNot{")
s = append(s, "Constructor: "+fmt.Sprintf("%#v", this.Constructor)+",\n")
s = append(s, "UserId: "+fmt.Sprintf("%#v", this.UserId)+",\n")
s = append(s, "Excludes: "+fmt.Sprintf("%#v", this.Excludes)+",\n")
if this.Updates != nil {
s = append(s, "Updates: "+fmt.Sprintf("%#v", this.Updates)+",\n")
}
if this.XXX_unrecognized != nil {
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func (this *TLSyncPushBotUpdates) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 7)
s = append(s, "&sync.TLSyncPushBotUpdates{")
s = append(s, "Constructor: "+fmt.Sprintf("%#v", this.Constructor)+",\n")
s = append(s, "UserId: "+fmt.Sprintf("%#v", this.UserId)+",\n")
if this.Updates != nil {
s = append(s, "Updates: "+fmt.Sprintf("%#v", this.Updates)+",\n")
}
if this.XXX_unrecognized != nil {
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func (this *TLSyncPushRpcResult) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 10)
s = append(s, "&sync.TLSyncPushRpcResult{")
s = append(s, "Constructor: "+fmt.Sprintf("%#v", this.Constructor)+",\n")
s = append(s, "AuthKeyId: "+fmt.Sprintf("%#v", this.AuthKeyId)+",\n")
s = append(s, "ServerId: "+fmt.Sprintf("%#v", this.ServerId)+",\n")
s = append(s, "SessionId: "+fmt.Sprintf("%#v", this.SessionId)+",\n")
s = append(s, "ClientReqMsgId: "+fmt.Sprintf("%#v", this.ClientReqMsgId)+",\n")
s = append(s, "RpcResult: "+fmt.Sprintf("%#v", this.RpcResult)+",\n")
if this.XXX_unrecognized != nil {
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func (this *TLSyncBroadcastUpdates) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 9)
s = append(s, "&sync.TLSyncBroadcastUpdates{")
s = append(s, "Constructor: "+fmt.Sprintf("%#v", this.Constructor)+",\n")
s = append(s, "BroadcastType: "+fmt.Sprintf("%#v", this.BroadcastType)+",\n")
s = append(s, "ChatId: "+fmt.Sprintf("%#v", this.ChatId)+",\n")
s = append(s, "ExcludeIdList: "+fmt.Sprintf("%#v", this.ExcludeIdList)+",\n")
if this.Updates != nil {
s = append(s, "Updates: "+fmt.Sprintf("%#v", this.Updates)+",\n")
}
if this.XXX_unrecognized != nil {
s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func valueToGoStringSyncTl(v interface{}, typ string) string {
rv := reflect.ValueOf(v)
if rv.IsNil() {
return "nil"
}
pv := reflect.Indirect(rv).Interface()
return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// RPCSyncClient is the client API for RPCSync service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type RPCSyncClient interface {
// sync.updatesMe flags:# user_id:long auth_key_id:long server_id:string session_id:flags.0?long updates:Updates = Void;
SyncUpdatesMe(ctx context.Context, in *TLSyncUpdatesMe, opts ...grpc.CallOption) (*mtproto.Void, error)
// sync.updatesNotMe user_id:long auth_key_id:long updates:Updates = Void;
SyncUpdatesNotMe(ctx context.Context, in *TLSyncUpdatesNotMe, opts ...grpc.CallOption) (*mtproto.Void, error)
// sync.pushUpdates user_id:long updates:Updates = Void;
SyncPushUpdates(ctx context.Context, in *TLSyncPushUpdates, opts ...grpc.CallOption) (*mtproto.Void, error)
// sync.pushUpdatesIfNot user_id:long excludes:Vector<long> updates:Updates = Void;
SyncPushUpdatesIfNot(ctx context.Context, in *TLSyncPushUpdatesIfNot, opts ...grpc.CallOption) (*mtproto.Void, error)
// sync.pushBotUpdates user_id:long updates:Updates = Void;
SyncPushBotUpdates(ctx context.Context, in *TLSyncPushBotUpdates, opts ...grpc.CallOption) (*mtproto.Void, error)
// sync.pushRpcResult auth_key_id:long server_id:string session_id:long client_req_msg_id:long rpc_result:bytes = Void;
SyncPushRpcResult(ctx context.Context, in *TLSyncPushRpcResult, opts ...grpc.CallOption) (*mtproto.Void, error)
// sync.broadcastUpdates broadcast_type:int chat_id:long exclude_id_list:Vector<long> updates:Updates = Void;
SyncBroadcastUpdates(ctx context.Context, in *TLSyncBroadcastUpdates, opts ...grpc.CallOption) (*mtproto.Void, error)
}
type rPCSyncClient struct {
cc *grpc.ClientConn
}
func NewRPCSyncClient(cc *grpc.ClientConn) RPCSyncClient {
return &rPCSyncClient{cc}
}
func (c *rPCSyncClient) SyncUpdatesMe(ctx context.Context, in *TLSyncUpdatesMe, opts ...grpc.CallOption) (*mtproto.Void, error) {
out := new(mtproto.Void)
err := c.cc.Invoke(ctx, "/sync.RPCSync/sync_updatesMe", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *rPCSyncClient) SyncUpdatesNotMe(ctx context.Context, in *TLSyncUpdatesNotMe, opts ...grpc.CallOption) (*mtproto.Void, error) {
out := new(mtproto.Void)
err := c.cc.Invoke(ctx, "/sync.RPCSync/sync_updatesNotMe", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *rPCSyncClient) SyncPushUpdates(ctx context.Context, in *TLSyncPushUpdates, opts ...grpc.CallOption) (*mtproto.Void, error) {
out := new(mtproto.Void)
err := c.cc.Invoke(ctx, "/sync.RPCSync/sync_pushUpdates", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *rPCSyncClient) SyncPushUpdatesIfNot(ctx context.Context, in *TLSyncPushUpdatesIfNot, opts ...grpc.CallOption) (*mtproto.Void, error) {
out := new(mtproto.Void)
err := c.cc.Invoke(ctx, "/sync.RPCSync/sync_pushUpdatesIfNot", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *rPCSyncClient) SyncPushBotUpdates(ctx context.Context, in *TLSyncPushBotUpdates, opts ...grpc.CallOption) (*mtproto.Void, error) {
out := new(mtproto.Void)
err := c.cc.Invoke(ctx, "/sync.RPCSync/sync_pushBotUpdates", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *rPCSyncClient) SyncPushRpcResult(ctx context.Context, in *TLSyncPushRpcResult, opts ...grpc.CallOption) (*mtproto.Void, error) {
out := new(mtproto.Void)
err := c.cc.Invoke(ctx, "/sync.RPCSync/sync_pushRpcResult", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *rPCSyncClient) SyncBroadcastUpdates(ctx context.Context, in *TLSyncBroadcastUpdates, opts ...grpc.CallOption) (*mtproto.Void, error) {
out := new(mtproto.Void)
err := c.cc.Invoke(ctx, "/sync.RPCSync/sync_broadcastUpdates", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// RPCSyncServer is the server API for RPCSync service.
type RPCSyncServer interface {
// sync.updatesMe flags:# user_id:long auth_key_id:long server_id:string session_id:flags.0?long updates:Updates = Void;
SyncUpdatesMe(context.Context, *TLSyncUpdatesMe) (*mtproto.Void, error)
// sync.updatesNotMe user_id:long auth_key_id:long updates:Updates = Void;
SyncUpdatesNotMe(context.Context, *TLSyncUpdatesNotMe) (*mtproto.Void, error)
// sync.pushUpdates user_id:long updates:Updates = Void;
SyncPushUpdates(context.Context, *TLSyncPushUpdates) (*mtproto.Void, error)
// sync.pushUpdatesIfNot user_id:long excludes:Vector<long> updates:Updates = Void;
SyncPushUpdatesIfNot(context.Context, *TLSyncPushUpdatesIfNot) (*mtproto.Void, error)
// sync.pushBotUpdates user_id:long updates:Updates = Void;
SyncPushBotUpdates(context.Context, *TLSyncPushBotUpdates) (*mtproto.Void, error)
// sync.pushRpcResult auth_key_id:long server_id:string session_id:long client_req_msg_id:long rpc_result:bytes = Void;
SyncPushRpcResult(context.Context, *TLSyncPushRpcResult) (*mtproto.Void, error)
// sync.broadcastUpdates broadcast_type:int chat_id:long exclude_id_list:Vector<long> updates:Updates = Void;
SyncBroadcastUpdates(context.Context, *TLSyncBroadcastUpdates) (*mtproto.Void, error)
}
// UnimplementedRPCSyncServer can be embedded to have forward compatible implementations.
type UnimplementedRPCSyncServer struct {
}
func (*UnimplementedRPCSyncServer) SyncUpdatesMe(ctx context.Context, req *TLSyncUpdatesMe) (*mtproto.Void, error) {
return nil, status.Errorf(codes.Unimplemented, "method SyncUpdatesMe not implemented")
}
func (*UnimplementedRPCSyncServer) SyncUpdatesNotMe(ctx context.Context, req *TLSyncUpdatesNotMe) (*mtproto.Void, error) {
return nil, status.Errorf(codes.Unimplemented, "method SyncUpdatesNotMe not implemented")
}
func (*UnimplementedRPCSyncServer) SyncPushUpdates(ctx context.Context, req *TLSyncPushUpdates) (*mtproto.Void, error) {
return nil, status.Errorf(codes.Unimplemented, "method SyncPushUpdates not implemented")
}
func (*UnimplementedRPCSyncServer) SyncPushUpdatesIfNot(ctx context.Context, req *TLSyncPushUpdatesIfNot) (*mtproto.Void, error) {
return nil, status.Errorf(codes.Unimplemented, "method SyncPushUpdatesIfNot not implemented")
}
func (*UnimplementedRPCSyncServer) SyncPushBotUpdates(ctx context.Context, req *TLSyncPushBotUpdates) (*mtproto.Void, error) {
return nil, status.Errorf(codes.Unimplemented, "method SyncPushBotUpdates not implemented")
}
func (*UnimplementedRPCSyncServer) SyncPushRpcResult(ctx context.Context, req *TLSyncPushRpcResult) (*mtproto.Void, error) {
return nil, status.Errorf(codes.Unimplemented, "method SyncPushRpcResult not implemented")
}
func (*UnimplementedRPCSyncServer) SyncBroadcastUpdates(ctx context.Context, req *TLSyncBroadcastUpdates) (*mtproto.Void, error) {
return nil, status.Errorf(codes.Unimplemented, "method SyncBroadcastUpdates not implemented")
}
func RegisterRPCSyncServer(s *grpc.Server, srv RPCSyncServer) {
s.RegisterService(&_RPCSync_serviceDesc, srv)
}
func _RPCSync_SyncUpdatesMe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(TLSyncUpdatesMe)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RPCSyncServer).SyncUpdatesMe(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/sync.RPCSync/SyncUpdatesMe",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RPCSyncServer).SyncUpdatesMe(ctx, req.(*TLSyncUpdatesMe))
}
return interceptor(ctx, in, info, handler)
}
func _RPCSync_SyncUpdatesNotMe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(TLSyncUpdatesNotMe)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RPCSyncServer).SyncUpdatesNotMe(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/sync.RPCSync/SyncUpdatesNotMe",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RPCSyncServer).SyncUpdatesNotMe(ctx, req.(*TLSyncUpdatesNotMe))
}