From 19798f2295a52c450b0f7ad6cd502bb7c1c01874 Mon Sep 17 00:00:00 2001 From: Sergey Cherepanov Date: Thu, 7 Mar 2024 20:50:12 +0100 Subject: [PATCH] fileproto set account limit identity --- commonfile/fileproto/file.pb.go | 175 +++++++++++------- .../fileproto/fileprotoerr/fileprotoerr.go | 2 +- commonfile/fileproto/protos/file.proto | 3 +- 3 files changed, 116 insertions(+), 64 deletions(-) diff --git a/commonfile/fileproto/file.pb.go b/commonfile/fileproto/file.pb.go index 9b40efe2..e8b87e17 100644 --- a/commonfile/fileproto/file.pb.go +++ b/commonfile/fileproto/file.pb.go @@ -1074,7 +1074,8 @@ func (m *AccountInfoResponse) GetSpaces() []*SpaceInfoResponse { } type AccountLimitSetRequest struct { - Limit uint64 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` + Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` + Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` } func (m *AccountLimitSetRequest) Reset() { *m = AccountLimitSetRequest{} } @@ -1110,6 +1111,13 @@ func (m *AccountLimitSetRequest) XXX_DiscardUnknown() { var xxx_messageInfo_AccountLimitSetRequest proto.InternalMessageInfo +func (m *AccountLimitSetRequest) GetIdentity() string { + if m != nil { + return m.Identity + } + return "" +} + func (m *AccountLimitSetRequest) GetLimit() uint64 { if m != nil { return m.Limit @@ -1200,67 +1208,67 @@ func init() { } var fileDescriptor_fd665a7e11c833d5 = []byte{ - // 947 bytes of a gzipped FileDescriptorProto + // 958 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x41, 0x73, 0xdb, 0x44, - 0x14, 0xb6, 0x6c, 0xd9, 0xb5, 0x5e, 0x62, 0x47, 0xde, 0xa4, 0xc1, 0xb8, 0x41, 0xe3, 0xd1, 0xa1, - 0x93, 0xe9, 0x30, 0x2e, 0x93, 0x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, 0x8f, 0x1b, 0xb3, 0xf2, 0xed, 0xd6, 0xaa, 0x7f, 0x43, 0x67, 0x0d, 0xf9, 0xe7, 0xd1, + 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xc5, 0x21, 0x76, 0x60, 0xa5, 0x0a, 0x00, 0x00, } func (m *Ok) Marshal() (dAtA []byte, err error) { @@ -1994,7 +2002,14 @@ func (m *AccountLimitSetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) if m.Limit != 0 { i = encodeVarintFile(dAtA, i, uint64(m.Limit)) i-- - dAtA[i] = 0x8 + dAtA[i] = 0x10 + } + if len(m.Identity) > 0 { + i -= len(m.Identity) + copy(dAtA[i:], m.Identity) + i = encodeVarintFile(dAtA, i, uint64(len(m.Identity))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } @@ -2374,6 +2389,10 @@ func (m *AccountLimitSetRequest) Size() (n int) { } var l int _ = l + l = len(m.Identity) + if l > 0 { + n += 1 + l + sovFile(uint64(l)) + } if m.Limit != 0 { n += 1 + sovFile(uint64(m.Limit)) } @@ -4429,6 +4448,38 @@ func (m *AccountLimitSetRequest) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFile + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFile + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFile + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Identity = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) } diff --git a/commonfile/fileproto/fileprotoerr/fileprotoerr.go b/commonfile/fileproto/fileprotoerr/fileprotoerr.go index 876be1a9..85f72786 100644 --- a/commonfile/fileproto/fileprotoerr/fileprotoerr.go +++ b/commonfile/fileproto/fileprotoerr/fileprotoerr.go @@ -14,6 +14,6 @@ var ( ErrForbidden = errGroup.Register(fmt.Errorf("forbidden"), uint64(fileproto.ErrCodes_Forbidden)) ErrSpaceLimitExceeded = errGroup.Register(fmt.Errorf("space limit exceeded"), uint64(fileproto.ErrCodes_LimitExceeded)) ErrQuerySizeExceeded = errGroup.Register(fmt.Errorf("query size exceeded"), uint64(fileproto.ErrCodes_QuerySizeExceeded)) - ErrNotEnoughSpace = errGroup.Register(fmt.Errorf("query size exceeded"), uint64(fileproto.ErrCodes_NotEnoughSpace)) + ErrNotEnoughSpace = errGroup.Register(fmt.Errorf("not enough space"), uint64(fileproto.ErrCodes_NotEnoughSpace)) ErrWrongHash = errGroup.Register(fmt.Errorf("wrong block hash"), uint64(fileproto.ErrCodes_WrongHash)) ) diff --git a/commonfile/fileproto/protos/file.proto b/commonfile/fileproto/protos/file.proto index b6bd1373..d2a09392 100644 --- a/commonfile/fileproto/protos/file.proto +++ b/commonfile/fileproto/protos/file.proto @@ -139,7 +139,8 @@ message AccountInfoResponse { message AccountLimitSetRequest { - uint64 limit = 1; + string identity = 1; + uint64 limit = 2; } message SpaceLimitSetRequest {