-
Notifications
You must be signed in to change notification settings - Fork 48
/
msgs.pb.go
3074 lines (2921 loc) · 83.1 KB
/
msgs.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: desmos/reactions/v1/msgs.proto
package types
import (
context "context"
fmt "fmt"
types "github.com/cosmos/cosmos-sdk/codec/types"
_ "github.com/gogo/protobuf/gogoproto"
grpc1 "github.com/gogo/protobuf/grpc"
proto "github.com/gogo/protobuf/proto"
_ "github.com/regen-network/cosmos-proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
_ "google.golang.org/protobuf/types/known/timestamppb"
io "io"
math "math"
math_bits "math/bits"
)
// 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
// MsgAddReaction represents the message to be used to add a post reaction
type MsgAddReaction struct {
// Id of the subspace inside which the post to react to is
SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
// Id of the post to react to
PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"`
// Value of the reaction
Value *types.Any `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty" yaml:"value"`
// User reacting to the post
User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty" yaml:"user"`
}
func (m *MsgAddReaction) Reset() { *m = MsgAddReaction{} }
func (m *MsgAddReaction) String() string { return proto.CompactTextString(m) }
func (*MsgAddReaction) ProtoMessage() {}
func (*MsgAddReaction) Descriptor() ([]byte, []int) {
return fileDescriptor_de4e0bd9e58b59f1, []int{0}
}
func (m *MsgAddReaction) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgAddReaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgAddReaction.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 *MsgAddReaction) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgAddReaction.Merge(m, src)
}
func (m *MsgAddReaction) XXX_Size() int {
return m.Size()
}
func (m *MsgAddReaction) XXX_DiscardUnknown() {
xxx_messageInfo_MsgAddReaction.DiscardUnknown(m)
}
var xxx_messageInfo_MsgAddReaction proto.InternalMessageInfo
func (m *MsgAddReaction) GetSubspaceID() uint64 {
if m != nil {
return m.SubspaceID
}
return 0
}
func (m *MsgAddReaction) GetPostID() uint64 {
if m != nil {
return m.PostID
}
return 0
}
func (m *MsgAddReaction) GetValue() *types.Any {
if m != nil {
return m.Value
}
return nil
}
func (m *MsgAddReaction) GetUser() string {
if m != nil {
return m.User
}
return ""
}
// MsgAddReactionResponse represents the Msg/AddReaction response type
type MsgAddReactionResponse struct {
// Id of the newly added reaction
ReactionID uint32 `protobuf:"varint,1,opt,name=reaction_id,json=reactionId,proto3" json:"reaction_id,omitempty" yaml:"reaction_id"`
}
func (m *MsgAddReactionResponse) Reset() { *m = MsgAddReactionResponse{} }
func (m *MsgAddReactionResponse) String() string { return proto.CompactTextString(m) }
func (*MsgAddReactionResponse) ProtoMessage() {}
func (*MsgAddReactionResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_de4e0bd9e58b59f1, []int{1}
}
func (m *MsgAddReactionResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgAddReactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgAddReactionResponse.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 *MsgAddReactionResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgAddReactionResponse.Merge(m, src)
}
func (m *MsgAddReactionResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgAddReactionResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgAddReactionResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgAddReactionResponse proto.InternalMessageInfo
func (m *MsgAddReactionResponse) GetReactionID() uint32 {
if m != nil {
return m.ReactionID
}
return 0
}
// MsgRemoveReaction represents the message to be used to remove an
// existing reaction from a post
type MsgRemoveReaction struct {
// Id of the subspace inside which the reaction to remove is
SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
// Id of the post from which to remove the reaction
PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"`
// Id of the reaction to be removed
ReactionID uint32 `protobuf:"varint,3,opt,name=reaction_id,json=reactionId,proto3" json:"reaction_id,omitempty" yaml:"reaction_id"`
// User removing the reaction
User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty" yaml:"user"`
}
func (m *MsgRemoveReaction) Reset() { *m = MsgRemoveReaction{} }
func (m *MsgRemoveReaction) String() string { return proto.CompactTextString(m) }
func (*MsgRemoveReaction) ProtoMessage() {}
func (*MsgRemoveReaction) Descriptor() ([]byte, []int) {
return fileDescriptor_de4e0bd9e58b59f1, []int{2}
}
func (m *MsgRemoveReaction) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgRemoveReaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgRemoveReaction.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 *MsgRemoveReaction) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgRemoveReaction.Merge(m, src)
}
func (m *MsgRemoveReaction) XXX_Size() int {
return m.Size()
}
func (m *MsgRemoveReaction) XXX_DiscardUnknown() {
xxx_messageInfo_MsgRemoveReaction.DiscardUnknown(m)
}
var xxx_messageInfo_MsgRemoveReaction proto.InternalMessageInfo
func (m *MsgRemoveReaction) GetSubspaceID() uint64 {
if m != nil {
return m.SubspaceID
}
return 0
}
func (m *MsgRemoveReaction) GetPostID() uint64 {
if m != nil {
return m.PostID
}
return 0
}
func (m *MsgRemoveReaction) GetReactionID() uint32 {
if m != nil {
return m.ReactionID
}
return 0
}
func (m *MsgRemoveReaction) GetUser() string {
if m != nil {
return m.User
}
return ""
}
// MsgRemoveReactionResponse represents the Msg/RemoveReaction response type
type MsgRemoveReactionResponse struct {
}
func (m *MsgRemoveReactionResponse) Reset() { *m = MsgRemoveReactionResponse{} }
func (m *MsgRemoveReactionResponse) String() string { return proto.CompactTextString(m) }
func (*MsgRemoveReactionResponse) ProtoMessage() {}
func (*MsgRemoveReactionResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_de4e0bd9e58b59f1, []int{3}
}
func (m *MsgRemoveReactionResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgRemoveReactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgRemoveReactionResponse.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 *MsgRemoveReactionResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgRemoveReactionResponse.Merge(m, src)
}
func (m *MsgRemoveReactionResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgRemoveReactionResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgRemoveReactionResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgRemoveReactionResponse proto.InternalMessageInfo
// MsgAddRegisteredReaction represents the message to be used to
// register a new supported reaction
type MsgAddRegisteredReaction struct {
// Id of the subspace inside which this reaction should be registered
SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
// Shorthand code of the reaction
ShorthandCode string `protobuf:"bytes,2,opt,name=shorthand_code,json=shorthandCode,proto3" json:"shorthand_code,omitempty" yaml:"shorthand_code"`
// Display value of the reaction
DisplayValue string `protobuf:"bytes,3,opt,name=display_value,json=displayValue,proto3" json:"display_value,omitempty" yaml:"display_value"`
// User adding the supported reaction
User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty" yaml:"user"`
}
func (m *MsgAddRegisteredReaction) Reset() { *m = MsgAddRegisteredReaction{} }
func (m *MsgAddRegisteredReaction) String() string { return proto.CompactTextString(m) }
func (*MsgAddRegisteredReaction) ProtoMessage() {}
func (*MsgAddRegisteredReaction) Descriptor() ([]byte, []int) {
return fileDescriptor_de4e0bd9e58b59f1, []int{4}
}
func (m *MsgAddRegisteredReaction) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgAddRegisteredReaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgAddRegisteredReaction.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 *MsgAddRegisteredReaction) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgAddRegisteredReaction.Merge(m, src)
}
func (m *MsgAddRegisteredReaction) XXX_Size() int {
return m.Size()
}
func (m *MsgAddRegisteredReaction) XXX_DiscardUnknown() {
xxx_messageInfo_MsgAddRegisteredReaction.DiscardUnknown(m)
}
var xxx_messageInfo_MsgAddRegisteredReaction proto.InternalMessageInfo
func (m *MsgAddRegisteredReaction) GetSubspaceID() uint64 {
if m != nil {
return m.SubspaceID
}
return 0
}
func (m *MsgAddRegisteredReaction) GetShorthandCode() string {
if m != nil {
return m.ShorthandCode
}
return ""
}
func (m *MsgAddRegisteredReaction) GetDisplayValue() string {
if m != nil {
return m.DisplayValue
}
return ""
}
func (m *MsgAddRegisteredReaction) GetUser() string {
if m != nil {
return m.User
}
return ""
}
// MsgAddRegisteredReactionResponse represents the
// Msg/AddRegisteredReaction response type
type MsgAddRegisteredReactionResponse struct {
// Id of the newly registered reaction
RegisteredReactionID uint32 `protobuf:"varint,1,opt,name=registered_reaction_id,json=registeredReactionId,proto3" json:"registered_reaction_id,omitempty" yaml:"registered_reaction_id"`
}
func (m *MsgAddRegisteredReactionResponse) Reset() { *m = MsgAddRegisteredReactionResponse{} }
func (m *MsgAddRegisteredReactionResponse) String() string { return proto.CompactTextString(m) }
func (*MsgAddRegisteredReactionResponse) ProtoMessage() {}
func (*MsgAddRegisteredReactionResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_de4e0bd9e58b59f1, []int{5}
}
func (m *MsgAddRegisteredReactionResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgAddRegisteredReactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgAddRegisteredReactionResponse.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 *MsgAddRegisteredReactionResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgAddRegisteredReactionResponse.Merge(m, src)
}
func (m *MsgAddRegisteredReactionResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgAddRegisteredReactionResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgAddRegisteredReactionResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgAddRegisteredReactionResponse proto.InternalMessageInfo
func (m *MsgAddRegisteredReactionResponse) GetRegisteredReactionID() uint32 {
if m != nil {
return m.RegisteredReactionID
}
return 0
}
// MsgEditRegisteredReaction represents the message to be used to edit a
// registered reaction
type MsgEditRegisteredReaction struct {
// Id of the subspace inside which the reaction to edit is
SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
// Id of the registered reaction to edit
RegisteredReactionID uint32 `protobuf:"varint,2,opt,name=registered_reaction_id,json=registeredReactionId,proto3" json:"registered_reaction_id,omitempty" yaml:"registered_reaction_id"`
// New shorthand code to be set
ShorthandCode string `protobuf:"bytes,3,opt,name=shorthand_code,json=shorthandCode,proto3" json:"shorthand_code,omitempty" yaml:"shorthand_code"`
// Display value to be set
DisplayValue string `protobuf:"bytes,4,opt,name=display_value,json=displayValue,proto3" json:"display_value,omitempty" yaml:"display_value"`
// User editing the registered reaction
User string `protobuf:"bytes,5,opt,name=user,proto3" json:"user,omitempty" yaml:"user"`
}
func (m *MsgEditRegisteredReaction) Reset() { *m = MsgEditRegisteredReaction{} }
func (m *MsgEditRegisteredReaction) String() string { return proto.CompactTextString(m) }
func (*MsgEditRegisteredReaction) ProtoMessage() {}
func (*MsgEditRegisteredReaction) Descriptor() ([]byte, []int) {
return fileDescriptor_de4e0bd9e58b59f1, []int{6}
}
func (m *MsgEditRegisteredReaction) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgEditRegisteredReaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgEditRegisteredReaction.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 *MsgEditRegisteredReaction) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgEditRegisteredReaction.Merge(m, src)
}
func (m *MsgEditRegisteredReaction) XXX_Size() int {
return m.Size()
}
func (m *MsgEditRegisteredReaction) XXX_DiscardUnknown() {
xxx_messageInfo_MsgEditRegisteredReaction.DiscardUnknown(m)
}
var xxx_messageInfo_MsgEditRegisteredReaction proto.InternalMessageInfo
func (m *MsgEditRegisteredReaction) GetSubspaceID() uint64 {
if m != nil {
return m.SubspaceID
}
return 0
}
func (m *MsgEditRegisteredReaction) GetRegisteredReactionID() uint32 {
if m != nil {
return m.RegisteredReactionID
}
return 0
}
func (m *MsgEditRegisteredReaction) GetShorthandCode() string {
if m != nil {
return m.ShorthandCode
}
return ""
}
func (m *MsgEditRegisteredReaction) GetDisplayValue() string {
if m != nil {
return m.DisplayValue
}
return ""
}
func (m *MsgEditRegisteredReaction) GetUser() string {
if m != nil {
return m.User
}
return ""
}
// MsgEditRegisteredReactionResponse represents the Msg/EditRegisteredReaction
// response type
type MsgEditRegisteredReactionResponse struct {
}
func (m *MsgEditRegisteredReactionResponse) Reset() { *m = MsgEditRegisteredReactionResponse{} }
func (m *MsgEditRegisteredReactionResponse) String() string { return proto.CompactTextString(m) }
func (*MsgEditRegisteredReactionResponse) ProtoMessage() {}
func (*MsgEditRegisteredReactionResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_de4e0bd9e58b59f1, []int{7}
}
func (m *MsgEditRegisteredReactionResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgEditRegisteredReactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgEditRegisteredReactionResponse.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 *MsgEditRegisteredReactionResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgEditRegisteredReactionResponse.Merge(m, src)
}
func (m *MsgEditRegisteredReactionResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgEditRegisteredReactionResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgEditRegisteredReactionResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgEditRegisteredReactionResponse proto.InternalMessageInfo
// MsgRemoveRegisteredReaction represents the message to be used to
// remove an existing registered reaction
type MsgRemoveRegisteredReaction struct {
// Id of the subspace from which to remove the registered reaction
SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
// Id of the registered reaction to be removed
RegisteredReactionID uint32 `protobuf:"varint,2,opt,name=registered_reaction_id,json=registeredReactionId,proto3" json:"registered_reaction_id,omitempty" yaml:"registered_reaction_id"`
// User removing the registered reaction
User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty" yaml:"user"`
}
func (m *MsgRemoveRegisteredReaction) Reset() { *m = MsgRemoveRegisteredReaction{} }
func (m *MsgRemoveRegisteredReaction) String() string { return proto.CompactTextString(m) }
func (*MsgRemoveRegisteredReaction) ProtoMessage() {}
func (*MsgRemoveRegisteredReaction) Descriptor() ([]byte, []int) {
return fileDescriptor_de4e0bd9e58b59f1, []int{8}
}
func (m *MsgRemoveRegisteredReaction) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgRemoveRegisteredReaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgRemoveRegisteredReaction.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 *MsgRemoveRegisteredReaction) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgRemoveRegisteredReaction.Merge(m, src)
}
func (m *MsgRemoveRegisteredReaction) XXX_Size() int {
return m.Size()
}
func (m *MsgRemoveRegisteredReaction) XXX_DiscardUnknown() {
xxx_messageInfo_MsgRemoveRegisteredReaction.DiscardUnknown(m)
}
var xxx_messageInfo_MsgRemoveRegisteredReaction proto.InternalMessageInfo
func (m *MsgRemoveRegisteredReaction) GetSubspaceID() uint64 {
if m != nil {
return m.SubspaceID
}
return 0
}
func (m *MsgRemoveRegisteredReaction) GetRegisteredReactionID() uint32 {
if m != nil {
return m.RegisteredReactionID
}
return 0
}
func (m *MsgRemoveRegisteredReaction) GetUser() string {
if m != nil {
return m.User
}
return ""
}
// MsgRemoveRegisteredReactionResponse represents the
// Msg/RemoveRegisteredReaction response type
type MsgRemoveRegisteredReactionResponse struct {
}
func (m *MsgRemoveRegisteredReactionResponse) Reset() { *m = MsgRemoveRegisteredReactionResponse{} }
func (m *MsgRemoveRegisteredReactionResponse) String() string { return proto.CompactTextString(m) }
func (*MsgRemoveRegisteredReactionResponse) ProtoMessage() {}
func (*MsgRemoveRegisteredReactionResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_de4e0bd9e58b59f1, []int{9}
}
func (m *MsgRemoveRegisteredReactionResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgRemoveRegisteredReactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgRemoveRegisteredReactionResponse.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 *MsgRemoveRegisteredReactionResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgRemoveRegisteredReactionResponse.Merge(m, src)
}
func (m *MsgRemoveRegisteredReactionResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgRemoveRegisteredReactionResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgRemoveRegisteredReactionResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgRemoveRegisteredReactionResponse proto.InternalMessageInfo
// MsgSetReactionsParams represents the message to be used when setting
// a subspace reactions params
type MsgSetReactionsParams struct {
// Id of the subspace for which to set the params
SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
// Params related to RegisteredReactionValue reactions
RegisteredReaction RegisteredReactionValueParams `protobuf:"bytes,2,opt,name=registered_reaction,json=registeredReaction,proto3" json:"registered_reaction" yaml:"registered_reaction"`
// Params related to FreeTextValue reactions
FreeText FreeTextValueParams `protobuf:"bytes,3,opt,name=free_text,json=freeText,proto3" json:"free_text" yaml:"free_text"`
// User setting the params
User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty" yaml:"user"`
}
func (m *MsgSetReactionsParams) Reset() { *m = MsgSetReactionsParams{} }
func (m *MsgSetReactionsParams) String() string { return proto.CompactTextString(m) }
func (*MsgSetReactionsParams) ProtoMessage() {}
func (*MsgSetReactionsParams) Descriptor() ([]byte, []int) {
return fileDescriptor_de4e0bd9e58b59f1, []int{10}
}
func (m *MsgSetReactionsParams) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgSetReactionsParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgSetReactionsParams.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 *MsgSetReactionsParams) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgSetReactionsParams.Merge(m, src)
}
func (m *MsgSetReactionsParams) XXX_Size() int {
return m.Size()
}
func (m *MsgSetReactionsParams) XXX_DiscardUnknown() {
xxx_messageInfo_MsgSetReactionsParams.DiscardUnknown(m)
}
var xxx_messageInfo_MsgSetReactionsParams proto.InternalMessageInfo
func (m *MsgSetReactionsParams) GetSubspaceID() uint64 {
if m != nil {
return m.SubspaceID
}
return 0
}
func (m *MsgSetReactionsParams) GetRegisteredReaction() RegisteredReactionValueParams {
if m != nil {
return m.RegisteredReaction
}
return RegisteredReactionValueParams{}
}
func (m *MsgSetReactionsParams) GetFreeText() FreeTextValueParams {
if m != nil {
return m.FreeText
}
return FreeTextValueParams{}
}
func (m *MsgSetReactionsParams) GetUser() string {
if m != nil {
return m.User
}
return ""
}
// MsgSetReactionsParamsResponse represents the Msg/SetReactionsParams response
// type
type MsgSetReactionsParamsResponse struct {
}
func (m *MsgSetReactionsParamsResponse) Reset() { *m = MsgSetReactionsParamsResponse{} }
func (m *MsgSetReactionsParamsResponse) String() string { return proto.CompactTextString(m) }
func (*MsgSetReactionsParamsResponse) ProtoMessage() {}
func (*MsgSetReactionsParamsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_de4e0bd9e58b59f1, []int{11}
}
func (m *MsgSetReactionsParamsResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgSetReactionsParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgSetReactionsParamsResponse.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 *MsgSetReactionsParamsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgSetReactionsParamsResponse.Merge(m, src)
}
func (m *MsgSetReactionsParamsResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgSetReactionsParamsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgSetReactionsParamsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgSetReactionsParamsResponse proto.InternalMessageInfo
func init() {
proto.RegisterType((*MsgAddReaction)(nil), "desmos.reactions.v1.MsgAddReaction")
proto.RegisterType((*MsgAddReactionResponse)(nil), "desmos.reactions.v1.MsgAddReactionResponse")
proto.RegisterType((*MsgRemoveReaction)(nil), "desmos.reactions.v1.MsgRemoveReaction")
proto.RegisterType((*MsgRemoveReactionResponse)(nil), "desmos.reactions.v1.MsgRemoveReactionResponse")
proto.RegisterType((*MsgAddRegisteredReaction)(nil), "desmos.reactions.v1.MsgAddRegisteredReaction")
proto.RegisterType((*MsgAddRegisteredReactionResponse)(nil), "desmos.reactions.v1.MsgAddRegisteredReactionResponse")
proto.RegisterType((*MsgEditRegisteredReaction)(nil), "desmos.reactions.v1.MsgEditRegisteredReaction")
proto.RegisterType((*MsgEditRegisteredReactionResponse)(nil), "desmos.reactions.v1.MsgEditRegisteredReactionResponse")
proto.RegisterType((*MsgRemoveRegisteredReaction)(nil), "desmos.reactions.v1.MsgRemoveRegisteredReaction")
proto.RegisterType((*MsgRemoveRegisteredReactionResponse)(nil), "desmos.reactions.v1.MsgRemoveRegisteredReactionResponse")
proto.RegisterType((*MsgSetReactionsParams)(nil), "desmos.reactions.v1.MsgSetReactionsParams")
proto.RegisterType((*MsgSetReactionsParamsResponse)(nil), "desmos.reactions.v1.MsgSetReactionsParamsResponse")
}
func init() { proto.RegisterFile("desmos/reactions/v1/msgs.proto", fileDescriptor_de4e0bd9e58b59f1) }
var fileDescriptor_de4e0bd9e58b59f1 = []byte{
// 848 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x56, 0x4d, 0x6b, 0xdb, 0x48,
0x18, 0xb6, 0x6c, 0x27, 0xbb, 0x1e, 0xc7, 0xde, 0x5d, 0xc5, 0x09, 0x8e, 0xb2, 0xb1, 0x9c, 0xf1,
0xee, 0x62, 0x76, 0x89, 0xb4, 0xf1, 0x6e, 0x4a, 0x5b, 0x28, 0x34, 0x6e, 0x53, 0x30, 0xd4, 0x10,
0x94, 0x92, 0x43, 0x2f, 0x42, 0xb6, 0x26, 0xb2, 0xc1, 0xf2, 0x18, 0xcd, 0xd8, 0xc4, 0x87, 0x42,
0xe9, 0xa1, 0xb9, 0x16, 0xfa, 0x57, 0xfa, 0x23, 0x42, 0x4f, 0xe9, 0xad, 0x27, 0x51, 0x9c, 0x7b,
0x0f, 0xbe, 0xb5, 0x50, 0x28, 0xd6, 0x57, 0x6d, 0x4b, 0x72, 0x9d, 0x34, 0x81, 0xd2, 0xdb, 0xcc,
0xbc, 0xcf, 0xfb, 0xf1, 0x3c, 0xf3, 0xce, 0x07, 0xc8, 0xa9, 0x88, 0xe8, 0x98, 0x88, 0x06, 0x52,
0xea, 0xb4, 0x89, 0xdb, 0x44, 0xec, 0x6d, 0x8b, 0x3a, 0xd1, 0x88, 0xd0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, 0x1f, 0x85, 0xc0, 0x52, 0x27, 0x9f, 0x67, 0xee,
0x9f, 0x39, 0x40, 0xde, 0x85, 0xd9, 0x00, 0xe9, 0xa9, 0x87, 0xf7, 0xaf, 0x30, 0xf7, 0x49, 0x1c,
0x27, 0xcc, 0x87, 0xf3, 0x32, 0x3d, 0x01, 0x2b, 0xc1, 0xaf, 0xd8, 0xd6, 0xcc, 0x7a, 0xa7, 0xe1,
0xdc, 0xce, 0x85, 0xe0, 0x5e, 0xfa, 0xa7, 0x0c, 0x58, 0x0d, 0xb9, 0xa5, 0x43, 0x99, 0x04, 0xe3,
0xb9, 0x1b, 0x17, 0xc3, 0x7b, 0x25, 0x3c, 0x67, 0x40, 0x36, 0xf4, 0x1e, 0xfa, 0xf7, 0x6b, 0x72,
0xfa, 0xca, 0xb8, 0x79, 0x51, 0x0f, 0xaf, 0x10, 0x0a, 0xd8, 0x80, 0xb3, 0xfe, 0x77, 0x58, 0x3c,
0x3f, 0x96, 0x2b, 0xcd, 0x8f, 0x75, 0xb3, 0x96, 0x1f, 0x9e, 0x0e, 0x72, 0xcc, 0xd9, 0x20, 0xc7,
0xbc, 0x1b, 0xe4, 0x98, 0x17, 0xe7, 0xb9, 0xc8, 0xd9, 0x79, 0x2e, 0xf2, 0xf6, 0x3c, 0x17, 0x79,
0x5c, 0xd2, 0x9a, 0xb4, 0xd1, 0xad, 0x09, 0x75, 0xac, 0x8b, 0x76, 0xdc, 0xad, 0x96, 0x52, 0x23,
0xce, 0x58, 0xec, 0xfd, 0x2f, 0x1e, 0x8f, 0xfd, 0xd2, 0x69, 0xbf, 0x83, 0x48, 0x6d, 0xd1, 0xfa,
0xf3, 0xfe, 0xf7, 0x39, 0x00, 0x00, 0xff, 0xff, 0x52, 0x4d, 0x97, 0x83, 0x68, 0x0c, 0x00, 0x00,
}
// 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
// MsgClient is the client API for Msg service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type MsgClient interface {
// AddReaction allows to add a post reaction
AddReaction(ctx context.Context, in *MsgAddReaction, opts ...grpc.CallOption) (*MsgAddReactionResponse, error)
// RemoveReaction allows to remove an existing post reaction
RemoveReaction(ctx context.Context, in *MsgRemoveReaction, opts ...grpc.CallOption) (*MsgRemoveReactionResponse, error)
// AddRegisteredReaction allows to registered a new supported reaction
AddRegisteredReaction(ctx context.Context, in *MsgAddRegisteredReaction, opts ...grpc.CallOption) (*MsgAddRegisteredReactionResponse, error)
// EditRegisteredReaction allows to edit a registered reaction
EditRegisteredReaction(ctx context.Context, in *MsgEditRegisteredReaction, opts ...grpc.CallOption) (*MsgEditRegisteredReactionResponse, error)
// RemoveRegisteredReaction allows to remove an existing supported reaction
RemoveRegisteredReaction(ctx context.Context, in *MsgRemoveRegisteredReaction, opts ...grpc.CallOption) (*MsgRemoveRegisteredReactionResponse, error)
// SetReactionsParams allows to set the reactions params
SetReactionsParams(ctx context.Context, in *MsgSetReactionsParams, opts ...grpc.CallOption) (*MsgSetReactionsParamsResponse, error)
}
type msgClient struct {
cc grpc1.ClientConn
}
func NewMsgClient(cc grpc1.ClientConn) MsgClient {
return &msgClient{cc}
}
func (c *msgClient) AddReaction(ctx context.Context, in *MsgAddReaction, opts ...grpc.CallOption) (*MsgAddReactionResponse, error) {
out := new(MsgAddReactionResponse)
err := c.cc.Invoke(ctx, "/desmos.reactions.v1.Msg/AddReaction", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) RemoveReaction(ctx context.Context, in *MsgRemoveReaction, opts ...grpc.CallOption) (*MsgRemoveReactionResponse, error) {
out := new(MsgRemoveReactionResponse)
err := c.cc.Invoke(ctx, "/desmos.reactions.v1.Msg/RemoveReaction", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) AddRegisteredReaction(ctx context.Context, in *MsgAddRegisteredReaction, opts ...grpc.CallOption) (*MsgAddRegisteredReactionResponse, error) {
out := new(MsgAddRegisteredReactionResponse)
err := c.cc.Invoke(ctx, "/desmos.reactions.v1.Msg/AddRegisteredReaction", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) EditRegisteredReaction(ctx context.Context, in *MsgEditRegisteredReaction, opts ...grpc.CallOption) (*MsgEditRegisteredReactionResponse, error) {
out := new(MsgEditRegisteredReactionResponse)
err := c.cc.Invoke(ctx, "/desmos.reactions.v1.Msg/EditRegisteredReaction", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) RemoveRegisteredReaction(ctx context.Context, in *MsgRemoveRegisteredReaction, opts ...grpc.CallOption) (*MsgRemoveRegisteredReactionResponse, error) {
out := new(MsgRemoveRegisteredReactionResponse)
err := c.cc.Invoke(ctx, "/desmos.reactions.v1.Msg/RemoveRegisteredReaction", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) SetReactionsParams(ctx context.Context, in *MsgSetReactionsParams, opts ...grpc.CallOption) (*MsgSetReactionsParamsResponse, error) {
out := new(MsgSetReactionsParamsResponse)
err := c.cc.Invoke(ctx, "/desmos.reactions.v1.Msg/SetReactionsParams", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// MsgServer is the server API for Msg service.
type MsgServer interface {
// AddReaction allows to add a post reaction
AddReaction(context.Context, *MsgAddReaction) (*MsgAddReactionResponse, error)
// RemoveReaction allows to remove an existing post reaction
RemoveReaction(context.Context, *MsgRemoveReaction) (*MsgRemoveReactionResponse, error)
// AddRegisteredReaction allows to registered a new supported reaction
AddRegisteredReaction(context.Context, *MsgAddRegisteredReaction) (*MsgAddRegisteredReactionResponse, error)
// EditRegisteredReaction allows to edit a registered reaction
EditRegisteredReaction(context.Context, *MsgEditRegisteredReaction) (*MsgEditRegisteredReactionResponse, error)
// RemoveRegisteredReaction allows to remove an existing supported reaction
RemoveRegisteredReaction(context.Context, *MsgRemoveRegisteredReaction) (*MsgRemoveRegisteredReactionResponse, error)
// SetReactionsParams allows to set the reactions params
SetReactionsParams(context.Context, *MsgSetReactionsParams) (*MsgSetReactionsParamsResponse, error)
}
// UnimplementedMsgServer can be embedded to have forward compatible implementations.
type UnimplementedMsgServer struct {
}
func (*UnimplementedMsgServer) AddReaction(ctx context.Context, req *MsgAddReaction) (*MsgAddReactionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method AddReaction not implemented")
}
func (*UnimplementedMsgServer) RemoveReaction(ctx context.Context, req *MsgRemoveReaction) (*MsgRemoveReactionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RemoveReaction not implemented")
}
func (*UnimplementedMsgServer) AddRegisteredReaction(ctx context.Context, req *MsgAddRegisteredReaction) (*MsgAddRegisteredReactionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method AddRegisteredReaction not implemented")
}
func (*UnimplementedMsgServer) EditRegisteredReaction(ctx context.Context, req *MsgEditRegisteredReaction) (*MsgEditRegisteredReactionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method EditRegisteredReaction not implemented")
}
func (*UnimplementedMsgServer) RemoveRegisteredReaction(ctx context.Context, req *MsgRemoveRegisteredReaction) (*MsgRemoveRegisteredReactionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RemoveRegisteredReaction not implemented")
}
func (*UnimplementedMsgServer) SetReactionsParams(ctx context.Context, req *MsgSetReactionsParams) (*MsgSetReactionsParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetReactionsParams not implemented")
}
func RegisterMsgServer(s grpc1.Server, srv MsgServer) {
s.RegisterService(&_Msg_serviceDesc, srv)
}
func _Msg_AddReaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgAddReaction)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).AddReaction(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/desmos.reactions.v1.Msg/AddReaction",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).AddReaction(ctx, req.(*MsgAddReaction))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_RemoveReaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgRemoveReaction)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).RemoveReaction(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/desmos.reactions.v1.Msg/RemoveReaction",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).RemoveReaction(ctx, req.(*MsgRemoveReaction))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_AddRegisteredReaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgAddRegisteredReaction)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).AddRegisteredReaction(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/desmos.reactions.v1.Msg/AddRegisteredReaction",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).AddRegisteredReaction(ctx, req.(*MsgAddRegisteredReaction))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_EditRegisteredReaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgEditRegisteredReaction)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).EditRegisteredReaction(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/desmos.reactions.v1.Msg/EditRegisteredReaction",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).EditRegisteredReaction(ctx, req.(*MsgEditRegisteredReaction))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_RemoveRegisteredReaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgRemoveRegisteredReaction)
if err := dec(in); err != nil {