-
Notifications
You must be signed in to change notification settings - Fork 47
/
events.pb.go
12835 lines (12407 loc) · 316 KB
/
events.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: greenfield/storage/events.proto
package types
import (
fmt "fmt"
_ "github.com/bnb-chain/greenfield/types/resource"
_ "github.com/cosmos/cosmos-proto"
_ "github.com/cosmos/gogoproto/gogoproto"
proto "github.com/cosmos/gogoproto/proto"
github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types"
_ "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
// EventCreateBucket is emitted on MsgCreateBucket
type EventCreateBucket struct {
// owner define the account address of bucket owner
Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
// bucket_name is a globally unique name of bucket
BucketName string `protobuf:"bytes,2,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
// visibility defines the highest permissions for bucket. When a bucket is public, everyone can get the object under it.
Visibility VisibilityType `protobuf:"varint,3,opt,name=visibility,proto3,enum=greenfield.storage.VisibilityType" json:"visibility,omitempty"`
// create_at define the block timestamp when the bucket has been created
CreateAt int64 `protobuf:"varint,4,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty"`
// bucket_id is the unique u256 for bucket. Not global, only unique in buckets.
BucketId Uint `protobuf:"bytes,5,opt,name=bucket_id,json=bucketId,proto3,customtype=Uint" json:"bucket_id"`
// source_type define the source of the bucket. CrossChain or Greenfield origin
SourceType SourceType `protobuf:"varint,6,opt,name=source_type,json=sourceType,proto3,enum=greenfield.storage.SourceType" json:"source_type,omitempty"`
// read_quota defines the charged traffic quota for read, not include free quota which provided by each storage provider
ChargedReadQuota uint64 `protobuf:"varint,7,opt,name=charged_read_quota,json=chargedReadQuota,proto3" json:"charged_read_quota,omitempty"`
// payment_address is the address of the payment account
PaymentAddress string `protobuf:"bytes,8,opt,name=payment_address,json=paymentAddress,proto3" json:"payment_address,omitempty"`
// primary_sp_id is the unique id of primary sp.
PrimarySpId uint32 `protobuf:"varint,9,opt,name=primary_sp_id,json=primarySpId,proto3" json:"primary_sp_id,omitempty"`
// global_virtual_group_family_id defines the unique id of gvg family
GlobalVirtualGroupFamilyId uint32 `protobuf:"varint,10,opt,name=global_virtual_group_family_id,json=globalVirtualGroupFamilyId,proto3" json:"global_virtual_group_family_id,omitempty"`
// status define the status of the bucket.
Status BucketStatus `protobuf:"varint,11,opt,name=status,proto3,enum=greenfield.storage.BucketStatus" json:"status,omitempty"`
}
func (m *EventCreateBucket) Reset() { *m = EventCreateBucket{} }
func (m *EventCreateBucket) String() string { return proto.CompactTextString(m) }
func (*EventCreateBucket) ProtoMessage() {}
func (*EventCreateBucket) Descriptor() ([]byte, []int) {
return fileDescriptor_946dcba4f763ddc4, []int{0}
}
func (m *EventCreateBucket) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *EventCreateBucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_EventCreateBucket.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 *EventCreateBucket) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventCreateBucket.Merge(m, src)
}
func (m *EventCreateBucket) XXX_Size() int {
return m.Size()
}
func (m *EventCreateBucket) XXX_DiscardUnknown() {
xxx_messageInfo_EventCreateBucket.DiscardUnknown(m)
}
var xxx_messageInfo_EventCreateBucket proto.InternalMessageInfo
func (m *EventCreateBucket) GetOwner() string {
if m != nil {
return m.Owner
}
return ""
}
func (m *EventCreateBucket) GetBucketName() string {
if m != nil {
return m.BucketName
}
return ""
}
func (m *EventCreateBucket) GetVisibility() VisibilityType {
if m != nil {
return m.Visibility
}
return VISIBILITY_TYPE_UNSPECIFIED
}
func (m *EventCreateBucket) GetCreateAt() int64 {
if m != nil {
return m.CreateAt
}
return 0
}
func (m *EventCreateBucket) GetSourceType() SourceType {
if m != nil {
return m.SourceType
}
return SOURCE_TYPE_ORIGIN
}
func (m *EventCreateBucket) GetChargedReadQuota() uint64 {
if m != nil {
return m.ChargedReadQuota
}
return 0
}
func (m *EventCreateBucket) GetPaymentAddress() string {
if m != nil {
return m.PaymentAddress
}
return ""
}
func (m *EventCreateBucket) GetPrimarySpId() uint32 {
if m != nil {
return m.PrimarySpId
}
return 0
}
func (m *EventCreateBucket) GetGlobalVirtualGroupFamilyId() uint32 {
if m != nil {
return m.GlobalVirtualGroupFamilyId
}
return 0
}
func (m *EventCreateBucket) GetStatus() BucketStatus {
if m != nil {
return m.Status
}
return BUCKET_STATUS_CREATED
}
// EventDeleteBucket is emitted on MsgDeleteBucket
type EventDeleteBucket struct {
// operator define the account address of operator who delete the bucket
Operator string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"`
// owner define the account address of the bucket owner
Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
// bucket_name define the name of the deleted bucket
BucketName string `protobuf:"bytes,3,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
// bucket_id define an u256 id for bucket
BucketId Uint `protobuf:"bytes,4,opt,name=bucket_id,json=bucketId,proto3,customtype=Uint" json:"bucket_id"`
// global_virtual_group_family_id defines the unique id of gvg family
GlobalVirtualGroupFamilyId uint32 `protobuf:"varint,5,opt,name=global_virtual_group_family_id,json=globalVirtualGroupFamilyId,proto3" json:"global_virtual_group_family_id,omitempty"`
}
func (m *EventDeleteBucket) Reset() { *m = EventDeleteBucket{} }
func (m *EventDeleteBucket) String() string { return proto.CompactTextString(m) }
func (*EventDeleteBucket) ProtoMessage() {}
func (*EventDeleteBucket) Descriptor() ([]byte, []int) {
return fileDescriptor_946dcba4f763ddc4, []int{1}
}
func (m *EventDeleteBucket) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *EventDeleteBucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_EventDeleteBucket.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 *EventDeleteBucket) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventDeleteBucket.Merge(m, src)
}
func (m *EventDeleteBucket) XXX_Size() int {
return m.Size()
}
func (m *EventDeleteBucket) XXX_DiscardUnknown() {
xxx_messageInfo_EventDeleteBucket.DiscardUnknown(m)
}
var xxx_messageInfo_EventDeleteBucket proto.InternalMessageInfo
func (m *EventDeleteBucket) GetOperator() string {
if m != nil {
return m.Operator
}
return ""
}
func (m *EventDeleteBucket) GetOwner() string {
if m != nil {
return m.Owner
}
return ""
}
func (m *EventDeleteBucket) GetBucketName() string {
if m != nil {
return m.BucketName
}
return ""
}
func (m *EventDeleteBucket) GetGlobalVirtualGroupFamilyId() uint32 {
if m != nil {
return m.GlobalVirtualGroupFamilyId
}
return 0
}
// EventUpdateBucketInfo is emitted on MsgUpdateBucketInfo
type EventUpdateBucketInfo struct {
// operator define the account address of operator who update the bucket
Operator string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"`
// bucket_name define the name of the bucket
BucketName string `protobuf:"bytes,2,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
// bucket_id define an u256 id for bucket
BucketId Uint `protobuf:"bytes,3,opt,name=bucket_id,json=bucketId,proto3,customtype=Uint" json:"bucket_id"`
// charged_read_quota_after define the read quota after updated
ChargedReadQuota uint64 `protobuf:"varint,4,opt,name=charged_read_quota,json=chargedReadQuota,proto3" json:"charged_read_quota,omitempty"`
// payment_address define the payment address after updated
PaymentAddress string `protobuf:"bytes,5,opt,name=payment_address,json=paymentAddress,proto3" json:"payment_address,omitempty"`
// visibility defines the highest permission of object.
Visibility VisibilityType `protobuf:"varint,6,opt,name=visibility,proto3,enum=greenfield.storage.VisibilityType" json:"visibility,omitempty"`
// global_virtual_group_family_id defines the gvg family id after migrated.
GlobalVirtualGroupFamilyId uint32 `protobuf:"varint,7,opt,name=global_virtual_group_family_id,json=globalVirtualGroupFamilyId,proto3" json:"global_virtual_group_family_id,omitempty"`
}
func (m *EventUpdateBucketInfo) Reset() { *m = EventUpdateBucketInfo{} }
func (m *EventUpdateBucketInfo) String() string { return proto.CompactTextString(m) }
func (*EventUpdateBucketInfo) ProtoMessage() {}
func (*EventUpdateBucketInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_946dcba4f763ddc4, []int{2}
}
func (m *EventUpdateBucketInfo) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *EventUpdateBucketInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_EventUpdateBucketInfo.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 *EventUpdateBucketInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventUpdateBucketInfo.Merge(m, src)
}
func (m *EventUpdateBucketInfo) XXX_Size() int {
return m.Size()
}
func (m *EventUpdateBucketInfo) XXX_DiscardUnknown() {
xxx_messageInfo_EventUpdateBucketInfo.DiscardUnknown(m)
}
var xxx_messageInfo_EventUpdateBucketInfo proto.InternalMessageInfo
func (m *EventUpdateBucketInfo) GetOperator() string {
if m != nil {
return m.Operator
}
return ""
}
func (m *EventUpdateBucketInfo) GetBucketName() string {
if m != nil {
return m.BucketName
}
return ""
}
func (m *EventUpdateBucketInfo) GetChargedReadQuota() uint64 {
if m != nil {
return m.ChargedReadQuota
}
return 0
}
func (m *EventUpdateBucketInfo) GetPaymentAddress() string {
if m != nil {
return m.PaymentAddress
}
return ""
}
func (m *EventUpdateBucketInfo) GetVisibility() VisibilityType {
if m != nil {
return m.Visibility
}
return VISIBILITY_TYPE_UNSPECIFIED
}
func (m *EventUpdateBucketInfo) GetGlobalVirtualGroupFamilyId() uint32 {
if m != nil {
return m.GlobalVirtualGroupFamilyId
}
return 0
}
// EventDiscontinueBucket is emitted on MsgDiscontinueBucket
type EventDiscontinueBucket struct {
// bucket_id define id of the bucket
BucketId Uint `protobuf:"bytes,1,opt,name=bucket_id,json=bucketId,proto3,customtype=Uint" json:"bucket_id"`
// bucket_name define the name of the bucket
BucketName string `protobuf:"bytes,2,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
// the reason
Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
// the timestamp after which the metadata will be deleted
DeleteAt int64 `protobuf:"varint,4,opt,name=delete_at,json=deleteAt,proto3" json:"delete_at,omitempty"`
}
func (m *EventDiscontinueBucket) Reset() { *m = EventDiscontinueBucket{} }
func (m *EventDiscontinueBucket) String() string { return proto.CompactTextString(m) }
func (*EventDiscontinueBucket) ProtoMessage() {}
func (*EventDiscontinueBucket) Descriptor() ([]byte, []int) {
return fileDescriptor_946dcba4f763ddc4, []int{3}
}
func (m *EventDiscontinueBucket) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *EventDiscontinueBucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_EventDiscontinueBucket.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 *EventDiscontinueBucket) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventDiscontinueBucket.Merge(m, src)
}
func (m *EventDiscontinueBucket) XXX_Size() int {
return m.Size()
}
func (m *EventDiscontinueBucket) XXX_DiscardUnknown() {
xxx_messageInfo_EventDiscontinueBucket.DiscardUnknown(m)
}
var xxx_messageInfo_EventDiscontinueBucket proto.InternalMessageInfo
func (m *EventDiscontinueBucket) GetBucketName() string {
if m != nil {
return m.BucketName
}
return ""
}
func (m *EventDiscontinueBucket) GetReason() string {
if m != nil {
return m.Reason
}
return ""
}
func (m *EventDiscontinueBucket) GetDeleteAt() int64 {
if m != nil {
return m.DeleteAt
}
return 0
}
// EventCreateObject is emitted on MsgCreateObject
type EventCreateObject struct {
// creator define the account address of msg creator
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
// owner define the account address of object owner
Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
// bucket_name define the name of bucket
BucketName string `protobuf:"bytes,3,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
// object_name define the name of object
ObjectName string `protobuf:"bytes,4,opt,name=object_name,json=objectName,proto3" json:"object_name,omitempty"`
// bucket_id define an u256 id for bucket
BucketId Uint `protobuf:"bytes,6,opt,name=bucket_id,json=bucketId,proto3,customtype=Uint" json:"bucket_id"`
// object_id define an u256 id for object
ObjectId Uint `protobuf:"bytes,7,opt,name=object_id,json=objectId,proto3,customtype=Uint" json:"object_id"`
// primary_sp_id define the unique id of primary sp
PrimarySpId uint32 `protobuf:"varint,8,opt,name=primary_sp_id,json=primarySpId,proto3" json:"primary_sp_id,omitempty"`
// payload_size define the size of payload data which you want upload
PayloadSize uint64 `protobuf:"varint,9,opt,name=payload_size,json=payloadSize,proto3" json:"payload_size,omitempty"`
// visibility defines the highest permission of object.
Visibility VisibilityType `protobuf:"varint,10,opt,name=visibility,proto3,enum=greenfield.storage.VisibilityType" json:"visibility,omitempty"`
// content_type define the content type of the payload data
ContentType string `protobuf:"bytes,11,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
// create_at define the block timestamp when the object created
CreateAt int64 `protobuf:"varint,12,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty"`
// status define the status of the object. INIT or IN_SERVICE or others
Status ObjectStatus `protobuf:"varint,13,opt,name=status,proto3,enum=greenfield.storage.ObjectStatus" json:"status,omitempty"`
// redundancy_type define the type of redundancy. Replication or EC
RedundancyType RedundancyType `protobuf:"varint,14,opt,name=redundancy_type,json=redundancyType,proto3,enum=greenfield.storage.RedundancyType" json:"redundancy_type,omitempty"`
// source_type define the source of the object. CrossChain or Greenfield origin
SourceType SourceType `protobuf:"varint,15,opt,name=source_type,json=sourceType,proto3,enum=greenfield.storage.SourceType" json:"source_type,omitempty"`
// checksums define the total checksums of the object which generated by redundancy
Checksums [][]byte `protobuf:"bytes,16,rep,name=checksums,proto3" json:"checksums,omitempty"`
// local_virtual_group_id defines the unique id of lvg which the object stored
LocalVirtualGroupId uint32 `protobuf:"varint,17,opt,name=local_virtual_group_id,json=localVirtualGroupId,proto3" json:"local_virtual_group_id,omitempty"`
}
func (m *EventCreateObject) Reset() { *m = EventCreateObject{} }
func (m *EventCreateObject) String() string { return proto.CompactTextString(m) }
func (*EventCreateObject) ProtoMessage() {}
func (*EventCreateObject) Descriptor() ([]byte, []int) {
return fileDescriptor_946dcba4f763ddc4, []int{4}
}
func (m *EventCreateObject) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *EventCreateObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_EventCreateObject.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 *EventCreateObject) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventCreateObject.Merge(m, src)
}
func (m *EventCreateObject) XXX_Size() int {
return m.Size()
}
func (m *EventCreateObject) XXX_DiscardUnknown() {
xxx_messageInfo_EventCreateObject.DiscardUnknown(m)
}
var xxx_messageInfo_EventCreateObject proto.InternalMessageInfo
func (m *EventCreateObject) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func (m *EventCreateObject) GetOwner() string {
if m != nil {
return m.Owner
}
return ""
}
func (m *EventCreateObject) GetBucketName() string {
if m != nil {
return m.BucketName
}
return ""
}
func (m *EventCreateObject) GetObjectName() string {
if m != nil {
return m.ObjectName
}
return ""
}
func (m *EventCreateObject) GetPrimarySpId() uint32 {
if m != nil {
return m.PrimarySpId
}
return 0
}
func (m *EventCreateObject) GetPayloadSize() uint64 {
if m != nil {
return m.PayloadSize
}
return 0
}
func (m *EventCreateObject) GetVisibility() VisibilityType {
if m != nil {
return m.Visibility
}
return VISIBILITY_TYPE_UNSPECIFIED
}
func (m *EventCreateObject) GetContentType() string {
if m != nil {
return m.ContentType
}
return ""
}
func (m *EventCreateObject) GetCreateAt() int64 {
if m != nil {
return m.CreateAt
}
return 0
}
func (m *EventCreateObject) GetStatus() ObjectStatus {
if m != nil {
return m.Status
}
return OBJECT_STATUS_CREATED
}
func (m *EventCreateObject) GetRedundancyType() RedundancyType {
if m != nil {
return m.RedundancyType
}
return REDUNDANCY_EC_TYPE
}
func (m *EventCreateObject) GetSourceType() SourceType {
if m != nil {
return m.SourceType
}
return SOURCE_TYPE_ORIGIN
}
func (m *EventCreateObject) GetChecksums() [][]byte {
if m != nil {
return m.Checksums
}
return nil
}
func (m *EventCreateObject) GetLocalVirtualGroupId() uint32 {
if m != nil {
return m.LocalVirtualGroupId
}
return 0
}
// EventCancelCreateObject is emitted on MsgCancelCreateObject
type EventCancelCreateObject struct {
// operator define the account address of operator who cancel create object
Operator string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"`
// bucket_name define the name of the bucket
BucketName string `protobuf:"bytes,2,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
// object_name define the name of the object
ObjectName string `protobuf:"bytes,3,opt,name=object_name,json=objectName,proto3" json:"object_name,omitempty"`
// primary_sp_id define the unique id of primary sp
PrimarySpId uint32 `protobuf:"varint,4,opt,name=primary_sp_id,json=primarySpId,proto3" json:"primary_sp_id,omitempty"`
// id define an u256 id for object
ObjectId Uint `protobuf:"bytes,6,opt,name=object_id,json=objectId,proto3,customtype=Uint" json:"object_id"`
}
func (m *EventCancelCreateObject) Reset() { *m = EventCancelCreateObject{} }
func (m *EventCancelCreateObject) String() string { return proto.CompactTextString(m) }
func (*EventCancelCreateObject) ProtoMessage() {}
func (*EventCancelCreateObject) Descriptor() ([]byte, []int) {
return fileDescriptor_946dcba4f763ddc4, []int{5}
}
func (m *EventCancelCreateObject) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *EventCancelCreateObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_EventCancelCreateObject.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 *EventCancelCreateObject) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventCancelCreateObject.Merge(m, src)
}
func (m *EventCancelCreateObject) XXX_Size() int {
return m.Size()
}
func (m *EventCancelCreateObject) XXX_DiscardUnknown() {
xxx_messageInfo_EventCancelCreateObject.DiscardUnknown(m)
}
var xxx_messageInfo_EventCancelCreateObject proto.InternalMessageInfo
func (m *EventCancelCreateObject) GetOperator() string {
if m != nil {
return m.Operator
}
return ""
}
func (m *EventCancelCreateObject) GetBucketName() string {
if m != nil {
return m.BucketName
}
return ""
}
func (m *EventCancelCreateObject) GetObjectName() string {
if m != nil {
return m.ObjectName
}
return ""
}
func (m *EventCancelCreateObject) GetPrimarySpId() uint32 {
if m != nil {
return m.PrimarySpId
}
return 0
}
// EventSealObject is emitted on MsgSealObject
type EventSealObject struct {
// operator define the account address of operator who seal object
Operator string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"`
// bucket_name define the name of the bucket
BucketName string `protobuf:"bytes,2,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
// object_name define the name of the object
ObjectName string `protobuf:"bytes,3,opt,name=object_name,json=objectName,proto3" json:"object_name,omitempty"`
// id define an u256 id for object
ObjectId Uint `protobuf:"bytes,5,opt,name=object_id,json=objectId,proto3,customtype=Uint" json:"object_id"`
// status define the status of the object. INIT or IN_SERVICE or others
Status ObjectStatus `protobuf:"varint,6,opt,name=status,proto3,enum=greenfield.storage.ObjectStatus" json:"status,omitempty"`
// global_virtual_group_id defines the unique id of gvg which the object stored
GlobalVirtualGroupId uint32 `protobuf:"varint,7,opt,name=global_virtual_group_id,json=globalVirtualGroupId,proto3" json:"global_virtual_group_id,omitempty"`
// local_virtual_group_id defines the unique id of lvg which the object stored
LocalVirtualGroupId uint32 `protobuf:"varint,8,opt,name=local_virtual_group_id,json=localVirtualGroupId,proto3" json:"local_virtual_group_id,omitempty"`
}
func (m *EventSealObject) Reset() { *m = EventSealObject{} }
func (m *EventSealObject) String() string { return proto.CompactTextString(m) }
func (*EventSealObject) ProtoMessage() {}
func (*EventSealObject) Descriptor() ([]byte, []int) {
return fileDescriptor_946dcba4f763ddc4, []int{6}
}
func (m *EventSealObject) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *EventSealObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_EventSealObject.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 *EventSealObject) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventSealObject.Merge(m, src)
}
func (m *EventSealObject) XXX_Size() int {
return m.Size()
}
func (m *EventSealObject) XXX_DiscardUnknown() {
xxx_messageInfo_EventSealObject.DiscardUnknown(m)
}
var xxx_messageInfo_EventSealObject proto.InternalMessageInfo
func (m *EventSealObject) GetOperator() string {
if m != nil {
return m.Operator
}
return ""
}
func (m *EventSealObject) GetBucketName() string {
if m != nil {
return m.BucketName
}
return ""
}
func (m *EventSealObject) GetObjectName() string {
if m != nil {
return m.ObjectName
}
return ""
}
func (m *EventSealObject) GetStatus() ObjectStatus {
if m != nil {
return m.Status
}
return OBJECT_STATUS_CREATED
}
func (m *EventSealObject) GetGlobalVirtualGroupId() uint32 {
if m != nil {
return m.GlobalVirtualGroupId
}
return 0
}
func (m *EventSealObject) GetLocalVirtualGroupId() uint32 {
if m != nil {
return m.LocalVirtualGroupId
}
return 0
}
// EventCopyObject is emitted on MsgCopyObject
type EventCopyObject struct {
// operator define the account address of operator who copy the object
Operator string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"`
// src_bucket_name define the name of the src bucket
SrcBucketName string `protobuf:"bytes,2,opt,name=src_bucket_name,json=srcBucketName,proto3" json:"src_bucket_name,omitempty"`
// src_object_name define the name of the src object
SrcObjectName string `protobuf:"bytes,3,opt,name=src_object_name,json=srcObjectName,proto3" json:"src_object_name,omitempty"`
// dst_bucket_name define the name of the dst bucket
DstBucketName string `protobuf:"bytes,4,opt,name=dst_bucket_name,json=dstBucketName,proto3" json:"dst_bucket_name,omitempty"`
// dst_object_name define the name of the dst object
DstObjectName string `protobuf:"bytes,5,opt,name=dst_object_name,json=dstObjectName,proto3" json:"dst_object_name,omitempty"`
// src_object_id define the u256 id for src object
SrcObjectId Uint `protobuf:"bytes,6,opt,name=src_object_id,json=srcObjectId,proto3,customtype=Uint" json:"src_object_id"`
// dst_object_id define the u256 id for dst object
DstObjectId Uint `protobuf:"bytes,7,opt,name=dst_object_id,json=dstObjectId,proto3,customtype=Uint" json:"dst_object_id"`
// local_virtual_group_id defines the unique id of lvg which the object stored
LocalVirtualGroupId uint32 `protobuf:"varint,8,opt,name=local_virtual_group_id,json=localVirtualGroupId,proto3" json:"local_virtual_group_id,omitempty"`
}
func (m *EventCopyObject) Reset() { *m = EventCopyObject{} }
func (m *EventCopyObject) String() string { return proto.CompactTextString(m) }
func (*EventCopyObject) ProtoMessage() {}
func (*EventCopyObject) Descriptor() ([]byte, []int) {
return fileDescriptor_946dcba4f763ddc4, []int{7}
}
func (m *EventCopyObject) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *EventCopyObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_EventCopyObject.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 *EventCopyObject) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventCopyObject.Merge(m, src)
}
func (m *EventCopyObject) XXX_Size() int {
return m.Size()
}
func (m *EventCopyObject) XXX_DiscardUnknown() {
xxx_messageInfo_EventCopyObject.DiscardUnknown(m)
}
var xxx_messageInfo_EventCopyObject proto.InternalMessageInfo
func (m *EventCopyObject) GetOperator() string {
if m != nil {
return m.Operator
}
return ""
}
func (m *EventCopyObject) GetSrcBucketName() string {
if m != nil {
return m.SrcBucketName
}
return ""
}
func (m *EventCopyObject) GetSrcObjectName() string {
if m != nil {
return m.SrcObjectName
}
return ""
}
func (m *EventCopyObject) GetDstBucketName() string {
if m != nil {
return m.DstBucketName
}
return ""
}
func (m *EventCopyObject) GetDstObjectName() string {
if m != nil {
return m.DstObjectName
}
return ""
}
func (m *EventCopyObject) GetLocalVirtualGroupId() uint32 {
if m != nil {
return m.LocalVirtualGroupId
}
return 0
}
// EventDeleteObject is emitted on MsgDeleteObject
type EventDeleteObject struct {
// operator define the account address of operator who delete the object
Operator string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"`
// bucket_name define the name of the bucket
BucketName string `protobuf:"bytes,2,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
// object_name define the name of the object
ObjectName string `protobuf:"bytes,3,opt,name=object_name,json=objectName,proto3" json:"object_name,omitempty"`
// id define an u256 id for object
ObjectId Uint `protobuf:"bytes,4,opt,name=object_id,json=objectId,proto3,customtype=Uint" json:"object_id"`
// local_virtual_group_id defines the unique id of lvg which the object stored
LocalVirtualGroupId uint32 `protobuf:"varint,5,opt,name=local_virtual_group_id,json=localVirtualGroupId,proto3" json:"local_virtual_group_id,omitempty"`
}
func (m *EventDeleteObject) Reset() { *m = EventDeleteObject{} }
func (m *EventDeleteObject) String() string { return proto.CompactTextString(m) }
func (*EventDeleteObject) ProtoMessage() {}
func (*EventDeleteObject) Descriptor() ([]byte, []int) {
return fileDescriptor_946dcba4f763ddc4, []int{8}
}
func (m *EventDeleteObject) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *EventDeleteObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_EventDeleteObject.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 *EventDeleteObject) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventDeleteObject.Merge(m, src)
}
func (m *EventDeleteObject) XXX_Size() int {
return m.Size()
}
func (m *EventDeleteObject) XXX_DiscardUnknown() {
xxx_messageInfo_EventDeleteObject.DiscardUnknown(m)
}
var xxx_messageInfo_EventDeleteObject proto.InternalMessageInfo
func (m *EventDeleteObject) GetOperator() string {
if m != nil {
return m.Operator
}
return ""
}
func (m *EventDeleteObject) GetBucketName() string {
if m != nil {
return m.BucketName
}
return ""
}
func (m *EventDeleteObject) GetObjectName() string {
if m != nil {
return m.ObjectName
}
return ""
}
func (m *EventDeleteObject) GetLocalVirtualGroupId() uint32 {
if m != nil {
return m.LocalVirtualGroupId
}
return 0
}
// EventRejectSealObject is emitted on MsgRejectSealObject
type EventRejectSealObject struct {
// operator define the account address of operator who reject seal object
Operator string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"`
// bucket_name define the name of the bucket
BucketName string `protobuf:"bytes,2,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
// object_name define the name of the object
ObjectName string `protobuf:"bytes,3,opt,name=object_name,json=objectName,proto3" json:"object_name,omitempty"`
// id define an u256 id for object
ObjectId Uint `protobuf:"bytes,4,opt,name=object_id,json=objectId,proto3,customtype=Uint" json:"object_id"`
// for_update indicates whether reject sealing on a updating object
ForUpdate bool `protobuf:"varint,5,opt,name=for_update,json=forUpdate,proto3" json:"for_update,omitempty"`
}
func (m *EventRejectSealObject) Reset() { *m = EventRejectSealObject{} }
func (m *EventRejectSealObject) String() string { return proto.CompactTextString(m) }
func (*EventRejectSealObject) ProtoMessage() {}
func (*EventRejectSealObject) Descriptor() ([]byte, []int) {
return fileDescriptor_946dcba4f763ddc4, []int{9}
}
func (m *EventRejectSealObject) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *EventRejectSealObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_EventRejectSealObject.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 *EventRejectSealObject) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventRejectSealObject.Merge(m, src)
}
func (m *EventRejectSealObject) XXX_Size() int {
return m.Size()
}
func (m *EventRejectSealObject) XXX_DiscardUnknown() {
xxx_messageInfo_EventRejectSealObject.DiscardUnknown(m)
}
var xxx_messageInfo_EventRejectSealObject proto.InternalMessageInfo
func (m *EventRejectSealObject) GetOperator() string {
if m != nil {
return m.Operator
}
return ""
}
func (m *EventRejectSealObject) GetBucketName() string {
if m != nil {
return m.BucketName
}
return ""
}
func (m *EventRejectSealObject) GetObjectName() string {
if m != nil {
return m.ObjectName
}
return ""
}
func (m *EventRejectSealObject) GetForUpdate() bool {
if m != nil {
return m.ForUpdate
}
return false
}
// EventDiscontinueObject is emitted on MsgDiscontinueObject
type EventDiscontinueObject struct {
// bucket_name define the name of the bucket
BucketName string `protobuf:"bytes,1,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
// object_id defines id of the object
ObjectId Uint `protobuf:"bytes,2,opt,name=object_id,json=objectId,proto3,customtype=Uint" json:"object_id"`
// the reason
Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
// the timestamp after which the metadata will be deleted
DeleteAt int64 `protobuf:"varint,4,opt,name=delete_at,json=deleteAt,proto3" json:"delete_at,omitempty"`
}
func (m *EventDiscontinueObject) Reset() { *m = EventDiscontinueObject{} }
func (m *EventDiscontinueObject) String() string { return proto.CompactTextString(m) }
func (*EventDiscontinueObject) ProtoMessage() {}
func (*EventDiscontinueObject) Descriptor() ([]byte, []int) {
return fileDescriptor_946dcba4f763ddc4, []int{10}
}
func (m *EventDiscontinueObject) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *EventDiscontinueObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_EventDiscontinueObject.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]