-
Notifications
You must be signed in to change notification settings - Fork 46
/
types.pb.go
3853 lines (3717 loc) · 93.6 KB
/
types.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/types.proto
package types
import (
fmt "fmt"
_ "github.com/bnb-chain/greenfield/x/payment/types"
_ "github.com/cosmos/cosmos-proto"
_ "github.com/cosmos/gogoproto/gogoproto"
proto "github.com/gogo/protobuf/proto"
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
type BucketInfo struct {
// owner is the account address of bucket creator, it is also the 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 storage objects in it.
Visibility VisibilityType `protobuf:"varint,3,opt,name=visibility,proto3,enum=bnbchain.greenfield.storage.VisibilityType" json:"visibility,omitempty"`
// id is the unique identification for bucket.
Id Uint `protobuf:"bytes,4,opt,name=id,proto3,customtype=Uint" json:"id"`
// source_type defines which chain the user should send the bucket management transactions to
SourceType SourceType `protobuf:"varint,5,opt,name=source_type,json=sourceType,proto3,enum=bnbchain.greenfield.storage.SourceType" json:"source_type,omitempty"`
// create_at define the block timestamp when the bucket created.
CreateAt int64 `protobuf:"varint,6,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty"`
// payment_address is the address of the payment account
PaymentAddress string `protobuf:"bytes,7,opt,name=payment_address,json=paymentAddress,proto3" json:"payment_address,omitempty"`
// primary_sp_address is the address of the primary sp. Objects belongs to this bucket will never
// leave this SP, unless you explicitly shift them to another SP.
PrimarySpAddress string `protobuf:"bytes,8,opt,name=primary_sp_address,json=primarySpAddress,proto3" json:"primary_sp_address,omitempty"`
// charged_read_quota defines the traffic quota for read in bytes per month.
// The available read data for each user is the sum of the free read data provided by SP and
// the ChargeReadQuota specified here.
ChargedReadQuota uint64 `protobuf:"varint,9,opt,name=charged_read_quota,json=chargedReadQuota,proto3" json:"charged_read_quota,omitempty"`
// billing info of the bucket
BillingInfo BillingInfo `protobuf:"bytes,10,opt,name=billing_info,json=billingInfo,proto3" json:"billing_info"`
// bucket_status define the status of the bucket.
BucketStatus BucketStatus `protobuf:"varint,11,opt,name=bucket_status,json=bucketStatus,proto3,enum=bnbchain.greenfield.storage.BucketStatus" json:"bucket_status,omitempty"`
}
func (m *BucketInfo) Reset() { *m = BucketInfo{} }
func (m *BucketInfo) String() string { return proto.CompactTextString(m) }
func (*BucketInfo) ProtoMessage() {}
func (*BucketInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_bf95fa2efdc74d97, []int{0}
}
func (m *BucketInfo) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *BucketInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_BucketInfo.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 *BucketInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_BucketInfo.Merge(m, src)
}
func (m *BucketInfo) XXX_Size() int {
return m.Size()
}
func (m *BucketInfo) XXX_DiscardUnknown() {
xxx_messageInfo_BucketInfo.DiscardUnknown(m)
}
var xxx_messageInfo_BucketInfo proto.InternalMessageInfo
func (m *BucketInfo) GetOwner() string {
if m != nil {
return m.Owner
}
return ""
}
func (m *BucketInfo) GetBucketName() string {
if m != nil {
return m.BucketName
}
return ""
}
func (m *BucketInfo) GetVisibility() VisibilityType {
if m != nil {
return m.Visibility
}
return VISIBILITY_TYPE_UNSPECIFIED
}
func (m *BucketInfo) GetSourceType() SourceType {
if m != nil {
return m.SourceType
}
return SOURCE_TYPE_ORIGIN
}
func (m *BucketInfo) GetCreateAt() int64 {
if m != nil {
return m.CreateAt
}
return 0
}
func (m *BucketInfo) GetPaymentAddress() string {
if m != nil {
return m.PaymentAddress
}
return ""
}
func (m *BucketInfo) GetPrimarySpAddress() string {
if m != nil {
return m.PrimarySpAddress
}
return ""
}
func (m *BucketInfo) GetChargedReadQuota() uint64 {
if m != nil {
return m.ChargedReadQuota
}
return 0
}
func (m *BucketInfo) GetBillingInfo() BillingInfo {
if m != nil {
return m.BillingInfo
}
return BillingInfo{}
}
func (m *BucketInfo) GetBucketStatus() BucketStatus {
if m != nil {
return m.BucketStatus
}
return BUCKET_STATUS_CREATED
}
// BillingInfo is the billing information of the bucket
type BillingInfo struct {
// the time of the payment price, used to calculate the charge rate of the bucket
PriceTime int64 `protobuf:"varint,1,opt,name=price_time,json=priceTime,proto3" json:"price_time,omitempty"`
// the total size of the objects in the bucket, used to calculate the charge rate of the bucket
TotalChargeSize uint64 `protobuf:"varint,2,opt,name=total_charge_size,json=totalChargeSize,proto3" json:"total_charge_size,omitempty"`
// secondary sp objects size statistics
SecondarySpObjectsSize []SecondarySpObjectsSize `protobuf:"bytes,3,rep,name=secondary_sp_objects_size,json=secondarySpObjectsSize,proto3" json:"secondary_sp_objects_size"`
}
func (m *BillingInfo) Reset() { *m = BillingInfo{} }
func (m *BillingInfo) String() string { return proto.CompactTextString(m) }
func (*BillingInfo) ProtoMessage() {}
func (*BillingInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_bf95fa2efdc74d97, []int{1}
}
func (m *BillingInfo) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *BillingInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_BillingInfo.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 *BillingInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_BillingInfo.Merge(m, src)
}
func (m *BillingInfo) XXX_Size() int {
return m.Size()
}
func (m *BillingInfo) XXX_DiscardUnknown() {
xxx_messageInfo_BillingInfo.DiscardUnknown(m)
}
var xxx_messageInfo_BillingInfo proto.InternalMessageInfo
func (m *BillingInfo) GetPriceTime() int64 {
if m != nil {
return m.PriceTime
}
return 0
}
func (m *BillingInfo) GetTotalChargeSize() uint64 {
if m != nil {
return m.TotalChargeSize
}
return 0
}
func (m *BillingInfo) GetSecondarySpObjectsSize() []SecondarySpObjectsSize {
if m != nil {
return m.SecondarySpObjectsSize
}
return nil
}
// secondary sp objects size statistics
type SecondarySpObjectsSize struct {
// address is the address of the secondary sp
SpAddress string `protobuf:"bytes,1,opt,name=sp_address,json=spAddress,proto3" json:"sp_address,omitempty"`
// size is the total size of the objects in the secondary sp
TotalChargeSize uint64 `protobuf:"varint,2,opt,name=total_charge_size,json=totalChargeSize,proto3" json:"total_charge_size,omitempty"`
}
func (m *SecondarySpObjectsSize) Reset() { *m = SecondarySpObjectsSize{} }
func (m *SecondarySpObjectsSize) String() string { return proto.CompactTextString(m) }
func (*SecondarySpObjectsSize) ProtoMessage() {}
func (*SecondarySpObjectsSize) Descriptor() ([]byte, []int) {
return fileDescriptor_bf95fa2efdc74d97, []int{2}
}
func (m *SecondarySpObjectsSize) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *SecondarySpObjectsSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_SecondarySpObjectsSize.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 *SecondarySpObjectsSize) XXX_Merge(src proto.Message) {
xxx_messageInfo_SecondarySpObjectsSize.Merge(m, src)
}
func (m *SecondarySpObjectsSize) XXX_Size() int {
return m.Size()
}
func (m *SecondarySpObjectsSize) XXX_DiscardUnknown() {
xxx_messageInfo_SecondarySpObjectsSize.DiscardUnknown(m)
}
var xxx_messageInfo_SecondarySpObjectsSize proto.InternalMessageInfo
func (m *SecondarySpObjectsSize) GetSpAddress() string {
if m != nil {
return m.SpAddress
}
return ""
}
func (m *SecondarySpObjectsSize) GetTotalChargeSize() uint64 {
if m != nil {
return m.TotalChargeSize
}
return 0
}
type ObjectInfo struct {
Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
// bucket_name is the name of the bucket
BucketName string `protobuf:"bytes,2,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
// object_name is the name of object
ObjectName string `protobuf:"bytes,3,opt,name=object_name,json=objectName,proto3" json:"object_name,omitempty"`
// id is the unique identifier of object
Id Uint `protobuf:"bytes,4,opt,name=id,proto3,customtype=Uint" json:"id"`
// payloadSize is the total size of the object payload
PayloadSize uint64 `protobuf:"varint,5,opt,name=payload_size,json=payloadSize,proto3" json:"payload_size,omitempty"`
// visibility defines the highest permissions for object. When an object is public, everyone can access it.
Visibility VisibilityType `protobuf:"varint,6,opt,name=visibility,proto3,enum=bnbchain.greenfield.storage.VisibilityType" json:"visibility,omitempty"`
// content_type define the format of the object which should be a standard MIME type.
ContentType string `protobuf:"bytes,7,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
// create_at define the block timestamp when the object is created
CreateAt int64 `protobuf:"varint,8,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty"`
// object_status define the upload status of the object.
ObjectStatus ObjectStatus `protobuf:"varint,9,opt,name=object_status,json=objectStatus,proto3,enum=bnbchain.greenfield.storage.ObjectStatus" json:"object_status,omitempty"`
// redundancy_type define the type of the redundancy which can be multi-replication or EC.
RedundancyType RedundancyType `protobuf:"varint,10,opt,name=redundancy_type,json=redundancyType,proto3,enum=bnbchain.greenfield.storage.RedundancyType" json:"redundancy_type,omitempty"`
// source_type define the source of the object.
SourceType SourceType `protobuf:"varint,11,opt,name=source_type,json=sourceType,proto3,enum=bnbchain.greenfield.storage.SourceType" json:"source_type,omitempty"`
// checksums define the root hash of the pieces which stored in a SP.
// add omit tag to omit the field when converting to NFT metadata
Checksums [][]byte `protobuf:"bytes,12,rep,name=checksums,proto3" json:"checksums,omitempty" traits:"omit"`
// secondary_sp_addresses define the addresses of secondary_sps
SecondarySpAddresses []string `protobuf:"bytes,13,rep,name=secondary_sp_addresses,json=secondarySpAddresses,proto3" json:"secondary_sp_addresses,omitempty"`
}
func (m *ObjectInfo) Reset() { *m = ObjectInfo{} }
func (m *ObjectInfo) String() string { return proto.CompactTextString(m) }
func (*ObjectInfo) ProtoMessage() {}
func (*ObjectInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_bf95fa2efdc74d97, []int{3}
}
func (m *ObjectInfo) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ObjectInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ObjectInfo.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 *ObjectInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_ObjectInfo.Merge(m, src)
}
func (m *ObjectInfo) XXX_Size() int {
return m.Size()
}
func (m *ObjectInfo) XXX_DiscardUnknown() {
xxx_messageInfo_ObjectInfo.DiscardUnknown(m)
}
var xxx_messageInfo_ObjectInfo proto.InternalMessageInfo
func (m *ObjectInfo) GetOwner() string {
if m != nil {
return m.Owner
}
return ""
}
func (m *ObjectInfo) GetBucketName() string {
if m != nil {
return m.BucketName
}
return ""
}
func (m *ObjectInfo) GetObjectName() string {
if m != nil {
return m.ObjectName
}
return ""
}
func (m *ObjectInfo) GetPayloadSize() uint64 {
if m != nil {
return m.PayloadSize
}
return 0
}
func (m *ObjectInfo) GetVisibility() VisibilityType {
if m != nil {
return m.Visibility
}
return VISIBILITY_TYPE_UNSPECIFIED
}
func (m *ObjectInfo) GetContentType() string {
if m != nil {
return m.ContentType
}
return ""
}
func (m *ObjectInfo) GetCreateAt() int64 {
if m != nil {
return m.CreateAt
}
return 0
}
func (m *ObjectInfo) GetObjectStatus() ObjectStatus {
if m != nil {
return m.ObjectStatus
}
return OBJECT_STATUS_CREATED
}
func (m *ObjectInfo) GetRedundancyType() RedundancyType {
if m != nil {
return m.RedundancyType
}
return REDUNDANCY_EC_TYPE
}
func (m *ObjectInfo) GetSourceType() SourceType {
if m != nil {
return m.SourceType
}
return SOURCE_TYPE_ORIGIN
}
func (m *ObjectInfo) GetChecksums() [][]byte {
if m != nil {
return m.Checksums
}
return nil
}
func (m *ObjectInfo) GetSecondarySpAddresses() []string {
if m != nil {
return m.SecondarySpAddresses
}
return nil
}
type GroupInfo struct {
// owner is the owner of the group. It can not changed once it created.
Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
// group_name is the name of group which is unique under an account.
GroupName string `protobuf:"bytes,2,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"`
// source_type
SourceType SourceType `protobuf:"varint,3,opt,name=source_type,json=sourceType,proto3,enum=bnbchain.greenfield.storage.SourceType" json:"source_type,omitempty"`
// id is the unique identifier of group
Id Uint `protobuf:"bytes,4,opt,name=id,proto3,customtype=Uint" json:"id"`
}
func (m *GroupInfo) Reset() { *m = GroupInfo{} }
func (m *GroupInfo) String() string { return proto.CompactTextString(m) }
func (*GroupInfo) ProtoMessage() {}
func (*GroupInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_bf95fa2efdc74d97, []int{4}
}
func (m *GroupInfo) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GroupInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GroupInfo.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 *GroupInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_GroupInfo.Merge(m, src)
}
func (m *GroupInfo) XXX_Size() int {
return m.Size()
}
func (m *GroupInfo) XXX_DiscardUnknown() {
xxx_messageInfo_GroupInfo.DiscardUnknown(m)
}
var xxx_messageInfo_GroupInfo proto.InternalMessageInfo
func (m *GroupInfo) GetOwner() string {
if m != nil {
return m.Owner
}
return ""
}
func (m *GroupInfo) GetGroupName() string {
if m != nil {
return m.GroupName
}
return ""
}
func (m *GroupInfo) GetSourceType() SourceType {
if m != nil {
return m.SourceType
}
return SOURCE_TYPE_ORIGIN
}
type Trait struct {
TraitType string `protobuf:"bytes,1,opt,name=trait_type,json=traitType,proto3" json:"trait_type,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}
func (m *Trait) Reset() { *m = Trait{} }
func (m *Trait) String() string { return proto.CompactTextString(m) }
func (*Trait) ProtoMessage() {}
func (*Trait) Descriptor() ([]byte, []int) {
return fileDescriptor_bf95fa2efdc74d97, []int{5}
}
func (m *Trait) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Trait) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Trait.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 *Trait) XXX_Merge(src proto.Message) {
xxx_messageInfo_Trait.Merge(m, src)
}
func (m *Trait) XXX_Size() int {
return m.Size()
}
func (m *Trait) XXX_DiscardUnknown() {
xxx_messageInfo_Trait.DiscardUnknown(m)
}
var xxx_messageInfo_Trait proto.InternalMessageInfo
func (m *Trait) GetTraitType() string {
if m != nil {
return m.TraitType
}
return ""
}
func (m *Trait) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
type BucketMetaData struct {
// description
Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
// externalUrl a link to external site to view NFT
ExternalUrl string `protobuf:"bytes,2,opt,name=external_url,json=externalUrl,proto3" json:"external_url,omitempty"`
// name of bucket NFT
BucketName string `protobuf:"bytes,3,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
// image is the link to image
Image string `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"`
// attributes
Attributes []Trait `protobuf:"bytes,5,rep,name=attributes,proto3" json:"attributes"`
}
func (m *BucketMetaData) Reset() { *m = BucketMetaData{} }
func (m *BucketMetaData) String() string { return proto.CompactTextString(m) }
func (*BucketMetaData) ProtoMessage() {}
func (*BucketMetaData) Descriptor() ([]byte, []int) {
return fileDescriptor_bf95fa2efdc74d97, []int{6}
}
func (m *BucketMetaData) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *BucketMetaData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_BucketMetaData.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 *BucketMetaData) XXX_Merge(src proto.Message) {
xxx_messageInfo_BucketMetaData.Merge(m, src)
}
func (m *BucketMetaData) XXX_Size() int {
return m.Size()
}
func (m *BucketMetaData) XXX_DiscardUnknown() {
xxx_messageInfo_BucketMetaData.DiscardUnknown(m)
}
var xxx_messageInfo_BucketMetaData proto.InternalMessageInfo
func (m *BucketMetaData) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *BucketMetaData) GetExternalUrl() string {
if m != nil {
return m.ExternalUrl
}
return ""
}
func (m *BucketMetaData) GetBucketName() string {
if m != nil {
return m.BucketName
}
return ""
}
func (m *BucketMetaData) GetImage() string {
if m != nil {
return m.Image
}
return ""
}
func (m *BucketMetaData) GetAttributes() []Trait {
if m != nil {
return m.Attributes
}
return nil
}
type ObjectMetaData struct {
// description
Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
// externalUrl a link to external site to view NFT
ExternalUrl string `protobuf:"bytes,2,opt,name=external_url,json=externalUrl,proto3" json:"external_url,omitempty"`
// name of object NFT
ObjectName string `protobuf:"bytes,3,opt,name=object_name,json=objectName,proto3" json:"object_name,omitempty"`
// image is the link to image
Image string `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"`
// attributes
Attributes []Trait `protobuf:"bytes,5,rep,name=attributes,proto3" json:"attributes"`
}
func (m *ObjectMetaData) Reset() { *m = ObjectMetaData{} }
func (m *ObjectMetaData) String() string { return proto.CompactTextString(m) }
func (*ObjectMetaData) ProtoMessage() {}
func (*ObjectMetaData) Descriptor() ([]byte, []int) {
return fileDescriptor_bf95fa2efdc74d97, []int{7}
}
func (m *ObjectMetaData) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ObjectMetaData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ObjectMetaData.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 *ObjectMetaData) XXX_Merge(src proto.Message) {
xxx_messageInfo_ObjectMetaData.Merge(m, src)
}
func (m *ObjectMetaData) XXX_Size() int {
return m.Size()
}
func (m *ObjectMetaData) XXX_DiscardUnknown() {
xxx_messageInfo_ObjectMetaData.DiscardUnknown(m)
}
var xxx_messageInfo_ObjectMetaData proto.InternalMessageInfo
func (m *ObjectMetaData) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *ObjectMetaData) GetExternalUrl() string {
if m != nil {
return m.ExternalUrl
}
return ""
}
func (m *ObjectMetaData) GetObjectName() string {
if m != nil {
return m.ObjectName
}
return ""
}
func (m *ObjectMetaData) GetImage() string {
if m != nil {
return m.Image
}
return ""
}
func (m *ObjectMetaData) GetAttributes() []Trait {
if m != nil {
return m.Attributes
}
return nil
}
type GroupMetaData struct {
// description
Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
// externalUrl a link to external site to view NFT
ExternalUrl string `protobuf:"bytes,2,opt,name=external_url,json=externalUrl,proto3" json:"external_url,omitempty"`
// name of group NFT
GroupName string `protobuf:"bytes,3,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"`
// image is the link to image
Image string `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"`
// attributes
Attributes []Trait `protobuf:"bytes,5,rep,name=attributes,proto3" json:"attributes"`
}
func (m *GroupMetaData) Reset() { *m = GroupMetaData{} }
func (m *GroupMetaData) String() string { return proto.CompactTextString(m) }
func (*GroupMetaData) ProtoMessage() {}
func (*GroupMetaData) Descriptor() ([]byte, []int) {
return fileDescriptor_bf95fa2efdc74d97, []int{8}
}
func (m *GroupMetaData) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GroupMetaData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GroupMetaData.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 *GroupMetaData) XXX_Merge(src proto.Message) {
xxx_messageInfo_GroupMetaData.Merge(m, src)
}
func (m *GroupMetaData) XXX_Size() int {
return m.Size()
}
func (m *GroupMetaData) XXX_DiscardUnknown() {
xxx_messageInfo_GroupMetaData.DiscardUnknown(m)
}
var xxx_messageInfo_GroupMetaData proto.InternalMessageInfo
func (m *GroupMetaData) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *GroupMetaData) GetExternalUrl() string {
if m != nil {
return m.ExternalUrl
}
return ""
}
func (m *GroupMetaData) GetGroupName() string {
if m != nil {
return m.GroupName
}
return ""
}
func (m *GroupMetaData) GetImage() string {
if m != nil {
return m.Image
}
return ""
}
func (m *GroupMetaData) GetAttributes() []Trait {
if m != nil {
return m.Attributes
}
return nil
}
type Ids struct {
// ids of the objects or buckets
Id []Uint `protobuf:"bytes,1,rep,name=id,proto3,customtype=Uint" json:"id"`
}
func (m *Ids) Reset() { *m = Ids{} }
func (m *Ids) String() string { return proto.CompactTextString(m) }
func (*Ids) ProtoMessage() {}
func (*Ids) Descriptor() ([]byte, []int) {
return fileDescriptor_bf95fa2efdc74d97, []int{9}
}
func (m *Ids) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Ids) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Ids.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 *Ids) XXX_Merge(src proto.Message) {
xxx_messageInfo_Ids.Merge(m, src)
}
func (m *Ids) XXX_Size() int {
return m.Size()
}
func (m *Ids) XXX_DiscardUnknown() {
xxx_messageInfo_Ids.DiscardUnknown(m)
}
var xxx_messageInfo_Ids proto.InternalMessageInfo
func init() {
proto.RegisterType((*BucketInfo)(nil), "bnbchain.greenfield.storage.BucketInfo")
proto.RegisterType((*BillingInfo)(nil), "bnbchain.greenfield.storage.BillingInfo")
proto.RegisterType((*SecondarySpObjectsSize)(nil), "bnbchain.greenfield.storage.SecondarySpObjectsSize")
proto.RegisterType((*ObjectInfo)(nil), "bnbchain.greenfield.storage.ObjectInfo")
proto.RegisterType((*GroupInfo)(nil), "bnbchain.greenfield.storage.GroupInfo")
proto.RegisterType((*Trait)(nil), "bnbchain.greenfield.storage.Trait")
proto.RegisterType((*BucketMetaData)(nil), "bnbchain.greenfield.storage.BucketMetaData")
proto.RegisterType((*ObjectMetaData)(nil), "bnbchain.greenfield.storage.ObjectMetaData")
proto.RegisterType((*GroupMetaData)(nil), "bnbchain.greenfield.storage.GroupMetaData")
proto.RegisterType((*Ids)(nil), "bnbchain.greenfield.storage.Ids")
}
func init() { proto.RegisterFile("greenfield/storage/types.proto", fileDescriptor_bf95fa2efdc74d97) }
var fileDescriptor_bf95fa2efdc74d97 = []byte{
// 994 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x41, 0x6f, 0xdc, 0x44,
0x14, 0x8e, 0xe3, 0x6c, 0xc8, 0x3e, 0x6f, 0x92, 0x76, 0x14, 0x45, 0x6e, 0xa3, 0xec, 0x6e, 0x7d,
0x61, 0xa1, 0x64, 0x57, 0x4a, 0x0f, 0x48, 0x88, 0x4b, 0x16, 0x04, 0x8d, 0x10, 0x41, 0xf5, 0xa6,
0x1c, 0xb8, 0x58, 0x63, 0x7b, 0xe2, 0x0c, 0xb5, 0x3d, 0x66, 0x66, 0x5c, 0xba, 0x95, 0xf8, 0x0f,
0x9c, 0xf9, 0x1d, 0xfd, 0x11, 0x3d, 0x20, 0x54, 0x8a, 0x84, 0x10, 0x87, 0x08, 0x25, 0xff, 0x80,
0x5f, 0x80, 0x3c, 0x33, 0x9b, 0x38, 0xdb, 0x68, 0xd3, 0x84, 0xe6, 0xe6, 0xf9, 0xe6, 0x7d, 0x33,
0xef, 0x7d, 0xf3, 0xbd, 0x27, 0x43, 0x3b, 0xe1, 0x84, 0xe4, 0x07, 0x94, 0xa4, 0xf1, 0x40, 0x48,
0xc6, 0x71, 0x42, 0x06, 0x72, 0x5c, 0x10, 0xd1, 0x2f, 0x38, 0x93, 0x0c, 0x6d, 0x84, 0x79, 0x18,
0x1d, 0x62, 0x9a, 0xf7, 0xcf, 0x02, 0xfb, 0x26, 0xf0, 0xee, 0x9d, 0x88, 0x89, 0x8c, 0x89, 0x40,
0x85, 0x0e, 0xf4, 0x42, 0xf3, 0xee, 0xae, 0x25, 0x2c, 0x61, 0x1a, 0xaf, 0xbe, 0x0c, 0xba, 0x59,
0xbb, 0xad, 0xc0, 0xe3, 0x8c, 0xe4, 0x72, 0x10, 0x62, 0x41, 0xcc, 0x76, 0xe7, 0x82, 0x64, 0x22,
0x96, 0x65, 0x2c, 0xd7, 0x01, 0xde, 0x2f, 0x0d, 0x80, 0x61,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 0xcb, 0x9c, 0x3f, 0xdc, 0x7d,
0x79, 0xdc, 0xb6, 0x5e, 0x1d, 0xb7, 0xad, 0x7f, 0x8e, 0xdb, 0xd6, 0xcf, 0x27, 0xed, 0xb9, 0x57,
0x27, 0xed, 0xb9, 0xbf, 0x4e, 0xda, 0x73, 0xdf, 0x0d, 0x12, 0x2a, 0x0f, 0xcb, 0xb0, 0x1f, 0xb1,
0x6c, 0x10, 0xe6, 0xe1, 0x96, 0x4a, 0x67, 0x50, 0xfb, 0xb3, 0x7d, 0x76, 0xfe, 0x47, 0x3b, 0x5c,
0x54, 0xff, 0xb6, 0x0f, 0xfe, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x58, 0xa4, 0x74, 0x4d, 0x8b, 0x0b,
0x00, 0x00,
}
func (m *BucketInfo) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *BucketInfo) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *BucketInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.BucketStatus != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.BucketStatus))
i--
dAtA[i] = 0x58
}
{
size, err := m.BillingInfo.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintTypes(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x52
if m.ChargedReadQuota != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.ChargedReadQuota))
i--
dAtA[i] = 0x48
}
if len(m.PrimarySpAddress) > 0 {
i -= len(m.PrimarySpAddress)
copy(dAtA[i:], m.PrimarySpAddress)
i = encodeVarintTypes(dAtA, i, uint64(len(m.PrimarySpAddress)))
i--
dAtA[i] = 0x42
}
if len(m.PaymentAddress) > 0 {
i -= len(m.PaymentAddress)
copy(dAtA[i:], m.PaymentAddress)
i = encodeVarintTypes(dAtA, i, uint64(len(m.PaymentAddress)))
i--
dAtA[i] = 0x3a
}
if m.CreateAt != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.CreateAt))
i--
dAtA[i] = 0x30
}
if m.SourceType != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.SourceType))
i--
dAtA[i] = 0x28
}
{
size := m.Id.Size()
i -= size
if _, err := m.Id.MarshalTo(dAtA[i:]); err != nil {
return 0, err
}
i = encodeVarintTypes(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x22
if m.Visibility != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.Visibility))
i--
dAtA[i] = 0x18
}
if len(m.BucketName) > 0 {
i -= len(m.BucketName)
copy(dAtA[i:], m.BucketName)
i = encodeVarintTypes(dAtA, i, uint64(len(m.BucketName)))
i--
dAtA[i] = 0x12
}
if len(m.Owner) > 0 {
i -= len(m.Owner)
copy(dAtA[i:], m.Owner)
i = encodeVarintTypes(dAtA, i, uint64(len(m.Owner)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *BillingInfo) Marshal() (dAtA []byte, err error) {