-
Notifications
You must be signed in to change notification settings - Fork 45
/
msgs.pb.go
6467 lines (6172 loc) · 171 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/posts/v3/msgs.proto
package types
import (
context "context"
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
types "github.com/cosmos/cosmos-sdk/codec/types"
_ "github.com/cosmos/cosmos-sdk/types/msgservice"
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
_ "github.com/cosmos/gogoproto/gogoproto"
grpc1 "github.com/cosmos/gogoproto/grpc"
proto "github.com/cosmos/gogoproto/proto"
github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types"
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"
time "time"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
var _ = time.Kitchen
// 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
// MsgCreatePost represents the message to be used to create a post.
type MsgCreatePost struct {
// Id of the subspace inside which the post must be created
SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
// Id of the section inside which the post must be created
SectionID uint32 `protobuf:"varint,2,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty" yaml:"section_id"`
// (optional) External id for this post
ExternalID string `protobuf:"bytes,3,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty" yaml:"external_id"`
// (optional) Text of the post
Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty" yaml:"text"`
// (optional) Entities connected to this post
Entities *Entities `protobuf:"bytes,5,opt,name=entities,proto3" json:"entities,omitempty" yaml:"entities"`
// Tags connected to this post
Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty" yaml:"tags"`
// Attachments of the post
Attachments []*types.Any `protobuf:"bytes,7,rep,name=attachments,proto3" json:"attachments,omitempty" yaml:"attachments"`
// Author of the post
Author string `protobuf:"bytes,8,opt,name=author,proto3" json:"author,omitempty" yaml:"author"`
// (optional) Id of the original post of the conversation
ConversationID uint64 `protobuf:"varint,9,opt,name=conversation_id,json=conversationId,proto3" json:"conversation_id,omitempty" yaml:"conversation_id"`
// Reply settings of this post
ReplySettings ReplySetting `protobuf:"varint,10,opt,name=reply_settings,json=replySettings,proto3,enum=desmos.posts.v3.ReplySetting" json:"reply_settings,omitempty" yaml:"reply_settings"`
// A list this posts references (either as a reply, repost or quote)
ReferencedPosts []PostReference `protobuf:"bytes,11,rep,name=referenced_posts,json=referencedPosts,proto3" json:"referenced_posts" yaml:"referenced_posts"`
}
func (m *MsgCreatePost) Reset() { *m = MsgCreatePost{} }
func (m *MsgCreatePost) String() string { return proto.CompactTextString(m) }
func (*MsgCreatePost) ProtoMessage() {}
func (*MsgCreatePost) Descriptor() ([]byte, []int) {
return fileDescriptor_c5bb13e2c778488f, []int{0}
}
func (m *MsgCreatePost) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgCreatePost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgCreatePost.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 *MsgCreatePost) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgCreatePost.Merge(m, src)
}
func (m *MsgCreatePost) XXX_Size() int {
return m.Size()
}
func (m *MsgCreatePost) XXX_DiscardUnknown() {
xxx_messageInfo_MsgCreatePost.DiscardUnknown(m)
}
var xxx_messageInfo_MsgCreatePost proto.InternalMessageInfo
func (m *MsgCreatePost) GetSubspaceID() uint64 {
if m != nil {
return m.SubspaceID
}
return 0
}
func (m *MsgCreatePost) GetSectionID() uint32 {
if m != nil {
return m.SectionID
}
return 0
}
func (m *MsgCreatePost) GetExternalID() string {
if m != nil {
return m.ExternalID
}
return ""
}
func (m *MsgCreatePost) GetText() string {
if m != nil {
return m.Text
}
return ""
}
func (m *MsgCreatePost) GetEntities() *Entities {
if m != nil {
return m.Entities
}
return nil
}
func (m *MsgCreatePost) GetTags() []string {
if m != nil {
return m.Tags
}
return nil
}
func (m *MsgCreatePost) GetAttachments() []*types.Any {
if m != nil {
return m.Attachments
}
return nil
}
func (m *MsgCreatePost) GetAuthor() string {
if m != nil {
return m.Author
}
return ""
}
func (m *MsgCreatePost) GetConversationID() uint64 {
if m != nil {
return m.ConversationID
}
return 0
}
func (m *MsgCreatePost) GetReplySettings() ReplySetting {
if m != nil {
return m.ReplySettings
}
return REPLY_SETTING_UNSPECIFIED
}
func (m *MsgCreatePost) GetReferencedPosts() []PostReference {
if m != nil {
return m.ReferencedPosts
}
return nil
}
// MsgCreatePostResponse defines the Msg/CreatePost response type.
type MsgCreatePostResponse struct {
// Id of the newly created post
PostID uint64 `protobuf:"varint,1,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"`
// Creation date of the post
CreationDate time.Time `protobuf:"bytes,2,opt,name=creation_date,json=creationDate,proto3,stdtime" json:"creation_date" yaml:"creation_date"`
}
func (m *MsgCreatePostResponse) Reset() { *m = MsgCreatePostResponse{} }
func (m *MsgCreatePostResponse) String() string { return proto.CompactTextString(m) }
func (*MsgCreatePostResponse) ProtoMessage() {}
func (*MsgCreatePostResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_c5bb13e2c778488f, []int{1}
}
func (m *MsgCreatePostResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgCreatePostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgCreatePostResponse.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 *MsgCreatePostResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgCreatePostResponse.Merge(m, src)
}
func (m *MsgCreatePostResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgCreatePostResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgCreatePostResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgCreatePostResponse proto.InternalMessageInfo
func (m *MsgCreatePostResponse) GetPostID() uint64 {
if m != nil {
return m.PostID
}
return 0
}
func (m *MsgCreatePostResponse) GetCreationDate() time.Time {
if m != nil {
return m.CreationDate
}
return time.Time{}
}
// MsgEditPost represents the message to be used to edit a post.
type MsgEditPost struct {
// Id of the subspace inside which the post 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 edit
PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"`
// New text of the post. If set to [do-not-modify] it will change the current
// post's text.
Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty" yaml:"text"`
// New entities connected to this post. These will always replace the current
// post's entities
Entities *Entities `protobuf:"bytes,4,opt,name=entities,proto3" json:"entities,omitempty" yaml:"entities"`
// New tags connected to this post. These will always replace the current
// post's tags
Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty" yaml:"tags"`
// Editor of the post
Editor string `protobuf:"bytes,6,opt,name=editor,proto3" json:"editor,omitempty" yaml:"editor"`
}
func (m *MsgEditPost) Reset() { *m = MsgEditPost{} }
func (m *MsgEditPost) String() string { return proto.CompactTextString(m) }
func (*MsgEditPost) ProtoMessage() {}
func (*MsgEditPost) Descriptor() ([]byte, []int) {
return fileDescriptor_c5bb13e2c778488f, []int{2}
}
func (m *MsgEditPost) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgEditPost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgEditPost.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 *MsgEditPost) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgEditPost.Merge(m, src)
}
func (m *MsgEditPost) XXX_Size() int {
return m.Size()
}
func (m *MsgEditPost) XXX_DiscardUnknown() {
xxx_messageInfo_MsgEditPost.DiscardUnknown(m)
}
var xxx_messageInfo_MsgEditPost proto.InternalMessageInfo
func (m *MsgEditPost) GetSubspaceID() uint64 {
if m != nil {
return m.SubspaceID
}
return 0
}
func (m *MsgEditPost) GetPostID() uint64 {
if m != nil {
return m.PostID
}
return 0
}
func (m *MsgEditPost) GetText() string {
if m != nil {
return m.Text
}
return ""
}
func (m *MsgEditPost) GetEntities() *Entities {
if m != nil {
return m.Entities
}
return nil
}
func (m *MsgEditPost) GetTags() []string {
if m != nil {
return m.Tags
}
return nil
}
func (m *MsgEditPost) GetEditor() string {
if m != nil {
return m.Editor
}
return ""
}
// MsgCreatePostResponse defines the Msg/EditPost response type.
type MsgEditPostResponse struct {
// Edit date of the post
EditDate time.Time `protobuf:"bytes,1,opt,name=edit_date,json=editDate,proto3,stdtime" json:"edit_date" yaml:"edit_date"`
}
func (m *MsgEditPostResponse) Reset() { *m = MsgEditPostResponse{} }
func (m *MsgEditPostResponse) String() string { return proto.CompactTextString(m) }
func (*MsgEditPostResponse) ProtoMessage() {}
func (*MsgEditPostResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_c5bb13e2c778488f, []int{3}
}
func (m *MsgEditPostResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgEditPostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgEditPostResponse.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 *MsgEditPostResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgEditPostResponse.Merge(m, src)
}
func (m *MsgEditPostResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgEditPostResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgEditPostResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgEditPostResponse proto.InternalMessageInfo
func (m *MsgEditPostResponse) GetEditDate() time.Time {
if m != nil {
return m.EditDate
}
return time.Time{}
}
// MsgDeletePost represents the message used when deleting a post.
type MsgDeletePost struct {
// Id of the subspace containing the post
SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
// Id of the post to be deleted
PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"`
// User that is deleting the post
Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
}
func (m *MsgDeletePost) Reset() { *m = MsgDeletePost{} }
func (m *MsgDeletePost) String() string { return proto.CompactTextString(m) }
func (*MsgDeletePost) ProtoMessage() {}
func (*MsgDeletePost) Descriptor() ([]byte, []int) {
return fileDescriptor_c5bb13e2c778488f, []int{4}
}
func (m *MsgDeletePost) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgDeletePost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgDeletePost.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 *MsgDeletePost) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgDeletePost.Merge(m, src)
}
func (m *MsgDeletePost) XXX_Size() int {
return m.Size()
}
func (m *MsgDeletePost) XXX_DiscardUnknown() {
xxx_messageInfo_MsgDeletePost.DiscardUnknown(m)
}
var xxx_messageInfo_MsgDeletePost proto.InternalMessageInfo
func (m *MsgDeletePost) GetSubspaceID() uint64 {
if m != nil {
return m.SubspaceID
}
return 0
}
func (m *MsgDeletePost) GetPostID() uint64 {
if m != nil {
return m.PostID
}
return 0
}
func (m *MsgDeletePost) GetSigner() string {
if m != nil {
return m.Signer
}
return ""
}
// MsgDeletePostResponse represents the Msg/DeletePost response type
type MsgDeletePostResponse struct {
}
func (m *MsgDeletePostResponse) Reset() { *m = MsgDeletePostResponse{} }
func (m *MsgDeletePostResponse) String() string { return proto.CompactTextString(m) }
func (*MsgDeletePostResponse) ProtoMessage() {}
func (*MsgDeletePostResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_c5bb13e2c778488f, []int{5}
}
func (m *MsgDeletePostResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgDeletePostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgDeletePostResponse.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 *MsgDeletePostResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgDeletePostResponse.Merge(m, src)
}
func (m *MsgDeletePostResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgDeletePostResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgDeletePostResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgDeletePostResponse proto.InternalMessageInfo
// MsgAddPostAttachment represents the message that should be
// used when adding an attachment to post
type MsgAddPostAttachment struct {
// Id of the subspace containing the post
SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
// Id of the post to which to add the attachment
PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"`
// Content of the attachment
Content *types.Any `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty" yaml:"content"`
// Editor of the post
Editor string `protobuf:"bytes,4,opt,name=editor,proto3" json:"editor,omitempty" yaml:"editor"`
}
func (m *MsgAddPostAttachment) Reset() { *m = MsgAddPostAttachment{} }
func (m *MsgAddPostAttachment) String() string { return proto.CompactTextString(m) }
func (*MsgAddPostAttachment) ProtoMessage() {}
func (*MsgAddPostAttachment) Descriptor() ([]byte, []int) {
return fileDescriptor_c5bb13e2c778488f, []int{6}
}
func (m *MsgAddPostAttachment) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgAddPostAttachment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgAddPostAttachment.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 *MsgAddPostAttachment) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgAddPostAttachment.Merge(m, src)
}
func (m *MsgAddPostAttachment) XXX_Size() int {
return m.Size()
}
func (m *MsgAddPostAttachment) XXX_DiscardUnknown() {
xxx_messageInfo_MsgAddPostAttachment.DiscardUnknown(m)
}
var xxx_messageInfo_MsgAddPostAttachment proto.InternalMessageInfo
func (m *MsgAddPostAttachment) GetSubspaceID() uint64 {
if m != nil {
return m.SubspaceID
}
return 0
}
func (m *MsgAddPostAttachment) GetPostID() uint64 {
if m != nil {
return m.PostID
}
return 0
}
func (m *MsgAddPostAttachment) GetContent() *types.Any {
if m != nil {
return m.Content
}
return nil
}
func (m *MsgAddPostAttachment) GetEditor() string {
if m != nil {
return m.Editor
}
return ""
}
// MsgAddPostAttachmentResponse defines the Msg/AddPostAttachment response type.
type MsgAddPostAttachmentResponse struct {
// New id of the uploaded attachment
AttachmentID uint32 `protobuf:"varint,1,opt,name=attachment_id,json=attachmentId,proto3" json:"attachment_id,omitempty" yaml:"attachment_id"`
// Edit date of the post
EditDate time.Time `protobuf:"bytes,2,opt,name=edit_date,json=editDate,proto3,stdtime" json:"edit_date" yaml:"edit_date"`
}
func (m *MsgAddPostAttachmentResponse) Reset() { *m = MsgAddPostAttachmentResponse{} }
func (m *MsgAddPostAttachmentResponse) String() string { return proto.CompactTextString(m) }
func (*MsgAddPostAttachmentResponse) ProtoMessage() {}
func (*MsgAddPostAttachmentResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_c5bb13e2c778488f, []int{7}
}
func (m *MsgAddPostAttachmentResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgAddPostAttachmentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgAddPostAttachmentResponse.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 *MsgAddPostAttachmentResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgAddPostAttachmentResponse.Merge(m, src)
}
func (m *MsgAddPostAttachmentResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgAddPostAttachmentResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgAddPostAttachmentResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgAddPostAttachmentResponse proto.InternalMessageInfo
func (m *MsgAddPostAttachmentResponse) GetAttachmentID() uint32 {
if m != nil {
return m.AttachmentID
}
return 0
}
func (m *MsgAddPostAttachmentResponse) GetEditDate() time.Time {
if m != nil {
return m.EditDate
}
return time.Time{}
}
// MsgRemovePostAttachment represents the message to be used when
// removing an attachment from a post
type MsgRemovePostAttachment struct {
// Id of the subspace containing the post
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 attachment
PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"`
// Id of the attachment to be removed
AttachmentID uint32 `protobuf:"varint,3,opt,name=attachment_id,json=attachmentId,proto3" json:"attachment_id,omitempty" yaml:"attachment_id"`
// User that is removing the attachment
Editor string `protobuf:"bytes,4,opt,name=editor,proto3" json:"editor,omitempty" yaml:"editor"`
}
func (m *MsgRemovePostAttachment) Reset() { *m = MsgRemovePostAttachment{} }
func (m *MsgRemovePostAttachment) String() string { return proto.CompactTextString(m) }
func (*MsgRemovePostAttachment) ProtoMessage() {}
func (*MsgRemovePostAttachment) Descriptor() ([]byte, []int) {
return fileDescriptor_c5bb13e2c778488f, []int{8}
}
func (m *MsgRemovePostAttachment) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgRemovePostAttachment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgRemovePostAttachment.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 *MsgRemovePostAttachment) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgRemovePostAttachment.Merge(m, src)
}
func (m *MsgRemovePostAttachment) XXX_Size() int {
return m.Size()
}
func (m *MsgRemovePostAttachment) XXX_DiscardUnknown() {
xxx_messageInfo_MsgRemovePostAttachment.DiscardUnknown(m)
}
var xxx_messageInfo_MsgRemovePostAttachment proto.InternalMessageInfo
func (m *MsgRemovePostAttachment) GetSubspaceID() uint64 {
if m != nil {
return m.SubspaceID
}
return 0
}
func (m *MsgRemovePostAttachment) GetPostID() uint64 {
if m != nil {
return m.PostID
}
return 0
}
func (m *MsgRemovePostAttachment) GetAttachmentID() uint32 {
if m != nil {
return m.AttachmentID
}
return 0
}
func (m *MsgRemovePostAttachment) GetEditor() string {
if m != nil {
return m.Editor
}
return ""
}
// MsgRemovePostAttachmentResponse defines the
// Msg/RemovePostAttachment response type.
type MsgRemovePostAttachmentResponse struct {
// Edit date of the post
EditDate time.Time `protobuf:"bytes,1,opt,name=edit_date,json=editDate,proto3,stdtime" json:"edit_date" yaml:"edit_date"`
}
func (m *MsgRemovePostAttachmentResponse) Reset() { *m = MsgRemovePostAttachmentResponse{} }
func (m *MsgRemovePostAttachmentResponse) String() string { return proto.CompactTextString(m) }
func (*MsgRemovePostAttachmentResponse) ProtoMessage() {}
func (*MsgRemovePostAttachmentResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_c5bb13e2c778488f, []int{9}
}
func (m *MsgRemovePostAttachmentResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgRemovePostAttachmentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgRemovePostAttachmentResponse.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 *MsgRemovePostAttachmentResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgRemovePostAttachmentResponse.Merge(m, src)
}
func (m *MsgRemovePostAttachmentResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgRemovePostAttachmentResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgRemovePostAttachmentResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgRemovePostAttachmentResponse proto.InternalMessageInfo
func (m *MsgRemovePostAttachmentResponse) GetEditDate() time.Time {
if m != nil {
return m.EditDate
}
return time.Time{}
}
// MsgAnswerPoll represents the message used to answer a poll
type MsgAnswerPoll struct {
// Id of the subspace containing the post
SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
// Id of the post that contains the poll to be answered
PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"`
// Id of the poll to be answered
PollID uint32 `protobuf:"varint,3,opt,name=poll_id,json=pollId,proto3" json:"poll_id,omitempty" yaml:"poll_id"`
// Indexes of the answer inside the ProvidedAnswers array
AnswersIndexes []uint32 `protobuf:"varint,4,rep,packed,name=answers_indexes,json=answersIndexes,proto3" json:"answers_indexes,omitempty" yaml:"answers_indexes"`
// Address of the user answering the poll
Signer string `protobuf:"bytes,5,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
}
func (m *MsgAnswerPoll) Reset() { *m = MsgAnswerPoll{} }
func (m *MsgAnswerPoll) String() string { return proto.CompactTextString(m) }
func (*MsgAnswerPoll) ProtoMessage() {}
func (*MsgAnswerPoll) Descriptor() ([]byte, []int) {
return fileDescriptor_c5bb13e2c778488f, []int{10}
}
func (m *MsgAnswerPoll) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgAnswerPoll) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgAnswerPoll.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 *MsgAnswerPoll) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgAnswerPoll.Merge(m, src)
}
func (m *MsgAnswerPoll) XXX_Size() int {
return m.Size()
}
func (m *MsgAnswerPoll) XXX_DiscardUnknown() {
xxx_messageInfo_MsgAnswerPoll.DiscardUnknown(m)
}
var xxx_messageInfo_MsgAnswerPoll proto.InternalMessageInfo
func (m *MsgAnswerPoll) GetSubspaceID() uint64 {
if m != nil {
return m.SubspaceID
}
return 0
}
func (m *MsgAnswerPoll) GetPostID() uint64 {
if m != nil {
return m.PostID
}
return 0
}
func (m *MsgAnswerPoll) GetPollID() uint32 {
if m != nil {
return m.PollID
}
return 0
}
func (m *MsgAnswerPoll) GetAnswersIndexes() []uint32 {
if m != nil {
return m.AnswersIndexes
}
return nil
}
func (m *MsgAnswerPoll) GetSigner() string {
if m != nil {
return m.Signer
}
return ""
}
// MsgAnswerPollResponse represents the MSg/AnswerPoll response type
type MsgAnswerPollResponse struct {
}
func (m *MsgAnswerPollResponse) Reset() { *m = MsgAnswerPollResponse{} }
func (m *MsgAnswerPollResponse) String() string { return proto.CompactTextString(m) }
func (*MsgAnswerPollResponse) ProtoMessage() {}
func (*MsgAnswerPollResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_c5bb13e2c778488f, []int{11}
}
func (m *MsgAnswerPollResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgAnswerPollResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgAnswerPollResponse.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 *MsgAnswerPollResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgAnswerPollResponse.Merge(m, src)
}
func (m *MsgAnswerPollResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgAnswerPollResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgAnswerPollResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgAnswerPollResponse proto.InternalMessageInfo
// MsgUpdateParams is the Msg/UpdateParams request type.
//
// Since: Desmos 5.0.0
type MsgUpdateParams struct {
// authority is the address that controls the module (defaults to x/gov unless
// overwritten).
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty" yaml:"authority"`
// params defines the parameters to update.
//
// NOTE: All parameters must be supplied.
Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}
func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} }
func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) }
func (*MsgUpdateParams) ProtoMessage() {}
func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
return fileDescriptor_c5bb13e2c778488f, []int{12}
}
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgUpdateParams.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 *MsgUpdateParams) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgUpdateParams.Merge(m, src)
}
func (m *MsgUpdateParams) XXX_Size() int {
return m.Size()
}
func (m *MsgUpdateParams) XXX_DiscardUnknown() {
xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m)
}
var xxx_messageInfo_MsgUpdateParams proto.InternalMessageInfo
func (m *MsgUpdateParams) GetAuthority() string {
if m != nil {
return m.Authority
}
return ""
}
func (m *MsgUpdateParams) GetParams() Params {
if m != nil {
return m.Params
}
return Params{}
}
// MsgUpdateParamsResponse defines the response structure for executing a
// MsgUpdateParams message.
//
// Since: Desmos 5.0.0
type MsgUpdateParamsResponse struct {
}
func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse{} }
func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) }
func (*MsgUpdateParamsResponse) ProtoMessage() {}
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_c5bb13e2c778488f, []int{13}
}
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgUpdateParamsResponse.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 *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgUpdateParamsResponse.Merge(m, src)
}
func (m *MsgUpdateParamsResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgUpdateParamsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo
// MsgMovePost moves a post to another subspace
//
// Since: Desmos 6.0.0
type MsgMovePost struct {
// Id of the subspace where the post is currently located
SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
// Id of the post to be moved
PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"`
// Id of the target subspace to which the post will be moved
TargetSubspaceID uint64 `protobuf:"varint,3,opt,name=target_subspace_id,json=targetSubspaceId,proto3" json:"target_subspace_id,omitempty" yaml:"target_subspace_id"`
// Id of the target section to which the post will be moved
TargetSectionID uint32 `protobuf:"varint,4,opt,name=target_section_id,json=targetSectionId,proto3" json:"target_section_id,omitempty" yaml:"target_section_id"`
// Address of the post owner
Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
}
func (m *MsgMovePost) Reset() { *m = MsgMovePost{} }
func (m *MsgMovePost) String() string { return proto.CompactTextString(m) }
func (*MsgMovePost) ProtoMessage() {}
func (*MsgMovePost) Descriptor() ([]byte, []int) {
return fileDescriptor_c5bb13e2c778488f, []int{14}
}
func (m *MsgMovePost) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgMovePost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgMovePost.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 *MsgMovePost) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgMovePost.Merge(m, src)
}
func (m *MsgMovePost) XXX_Size() int {
return m.Size()
}
func (m *MsgMovePost) XXX_DiscardUnknown() {
xxx_messageInfo_MsgMovePost.DiscardUnknown(m)
}
var xxx_messageInfo_MsgMovePost proto.InternalMessageInfo
func (m *MsgMovePost) GetSubspaceID() uint64 {
if m != nil {
return m.SubspaceID
}
return 0
}
func (m *MsgMovePost) GetPostID() uint64 {
if m != nil {
return m.PostID
}
return 0