Merge pull request #48 from nspcc-dev/Get-range-response-struct

Get range response struct
This commit is contained in:
Evgeniy Kulikov 2020-02-05 14:45:12 +03:00 committed by GitHub
commit 3bcdbc9864
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 71 additions and 73 deletions

View file

@ -210,7 +210,7 @@ in distributed system.
| Field | Type | Label | Description | | Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- | | ----- | ---- | ----- | ----------- |
| Fragments | [bytes](#bytes) | repeated | Fragments of object's payload | | Fragment | [bytes](#bytes) | | Fragment of object's payload |
<a name="object.GetRequest"></a> <a name="object.GetRequest"></a>

View file

@ -716,8 +716,8 @@ func (m *GetRangeRequest) GetRange() Range {
} }
type GetRangeResponse struct { type GetRangeResponse struct {
// Fragments of object's payload // Fragment of object's payload
Fragments [][]byte `protobuf:"bytes,1,rep,name=Fragments,proto3" json:"Fragments,omitempty"` Fragment []byte `protobuf:"bytes,1,opt,name=Fragment,proto3" json:"Fragment,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
@ -752,9 +752,9 @@ func (m *GetRangeResponse) XXX_DiscardUnknown() {
var xxx_messageInfo_GetRangeResponse proto.InternalMessageInfo var xxx_messageInfo_GetRangeResponse proto.InternalMessageInfo
func (m *GetRangeResponse) GetFragments() [][]byte { func (m *GetRangeResponse) GetFragment() []byte {
if m != nil { if m != nil {
return m.Fragments return m.Fragment
} }
return nil return nil
} }
@ -883,61 +883,61 @@ func init() {
func init() { proto.RegisterFile("object/service.proto", fileDescriptor_dfcdf610ade6a9ce) } func init() { proto.RegisterFile("object/service.proto", fileDescriptor_dfcdf610ade6a9ce) }
var fileDescriptor_dfcdf610ade6a9ce = []byte{ var fileDescriptor_dfcdf610ade6a9ce = []byte{
// 859 bytes of a gzipped FileDescriptorProto // 858 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xcd, 0x6e, 0xeb, 0x44, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xcd, 0x6e, 0xeb, 0x44,
0x14, 0xce, 0xc4, 0x89, 0xdb, 0x9e, 0x38, 0xbd, 0xd1, 0x34, 0x5c, 0x22, 0x53, 0xa5, 0x95, 0x75, 0x14, 0xce, 0xc4, 0x89, 0x9b, 0x7b, 0xe2, 0xf4, 0x46, 0xd3, 0x70, 0x89, 0xcc, 0x55, 0x5a, 0x59,
0x41, 0x41, 0x28, 0x4e, 0xb8, 0x48, 0xa5, 0x88, 0x4a, 0x88, 0x24, 0x6a, 0xd3, 0x05, 0x6a, 0x99, 0x05, 0x05, 0xa1, 0x38, 0xa5, 0x48, 0xa5, 0x88, 0x4a, 0x88, 0x24, 0x6a, 0xd3, 0x05, 0x6a, 0x99,
0x56, 0x95, 0x60, 0xe7, 0x38, 0x93, 0xc4, 0x34, 0xb5, 0x83, 0x7f, 0x5a, 0xf5, 0x01, 0x58, 0xb3, 0x56, 0x95, 0x60, 0xe7, 0x38, 0x93, 0xc4, 0x34, 0xb5, 0x83, 0x7f, 0x5a, 0xf5, 0x01, 0x58, 0xb3,
0x65, 0xc9, 0x83, 0xf0, 0x00, 0xdd, 0x20, 0x75, 0x89, 0x58, 0x54, 0x28, 0x2c, 0x79, 0x01, 0x24, 0x65, 0xc9, 0x83, 0xf0, 0x00, 0xdd, 0x20, 0x75, 0x89, 0x58, 0x54, 0x28, 0x2c, 0x79, 0x01, 0x24,
0x36, 0x68, 0x7e, 0x1c, 0xdb, 0x2d, 0x2d, 0xd0, 0x4d, 0xee, 0x2a, 0x33, 0xdf, 0xf9, 0xce, 0x99, 0x36, 0x68, 0x7e, 0x1c, 0xdb, 0x2d, 0x2d, 0xd0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0x28,
0x14, 0x34, 0xad, 0x99, 0xd3, 0x12, 0x15, 0x07, 0x2a, 0xff, 0x12, 0xfd, 0xe8, 0xef, 0x00, 0x00, 0x68, 0x59, 0x33, 0xa7, 0x2d, 0x2a, 0x0e, 0x54, 0xfe, 0x1d, 0xfa, 0xd1, 0xdf, 0x01, 0x00, 0x00,
0x00, 0xff, 0xff, 0x46, 0xff, 0x20, 0xe9, 0x3d, 0x0b, 0x00, 0x00, 0xff, 0xff, 0xcd, 0x28, 0x29, 0x7f, 0x3b, 0x0b, 0x00, 0x00,
} }
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
@ -2170,14 +2170,12 @@ func (m *GetRangeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i -= len(m.XXX_unrecognized) i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized)
} }
if len(m.Fragments) > 0 { if len(m.Fragment) > 0 {
for iNdEx := len(m.Fragments) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Fragment)
i -= len(m.Fragments[iNdEx]) copy(dAtA[i:], m.Fragment)
copy(dAtA[i:], m.Fragments[iNdEx]) i = encodeVarintService(dAtA, i, uint64(len(m.Fragment)))
i = encodeVarintService(dAtA, i, uint64(len(m.Fragments[iNdEx]))) i--
i-- dAtA[i] = 0xa
dAtA[i] = 0xa
}
} }
return len(dAtA) - i, nil return len(dAtA) - i, nil
} }
@ -2598,11 +2596,9 @@ func (m *GetRangeResponse) Size() (n int) {
} }
var l int var l int
_ = l _ = l
if len(m.Fragments) > 0 { l = len(m.Fragment)
for _, b := range m.Fragments { if l > 0 {
l = len(b) n += 1 + l + sovService(uint64(l))
n += 1 + l + sovService(uint64(l))
}
} }
if m.XXX_unrecognized != nil { if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized) n += len(m.XXX_unrecognized)
@ -4428,7 +4424,7 @@ func (m *GetRangeResponse) Unmarshal(dAtA []byte) error {
switch fieldNum { switch fieldNum {
case 1: case 1:
if wireType != 2 { if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Fragments", wireType) return fmt.Errorf("proto: wrong wireType = %d for field Fragment", wireType)
} }
var byteLen int var byteLen int
for shift := uint(0); ; shift += 7 { for shift := uint(0); ; shift += 7 {
@ -4455,8 +4451,10 @@ func (m *GetRangeResponse) Unmarshal(dAtA []byte) error {
if postIndex > l { if postIndex > l {
return io.ErrUnexpectedEOF return io.ErrUnexpectedEOF
} }
m.Fragments = append(m.Fragments, make([]byte, postIndex-iNdEx)) m.Fragment = append(m.Fragment[:0], dAtA[iNdEx:postIndex]...)
copy(m.Fragments[len(m.Fragments)-1], dAtA[iNdEx:postIndex]) if m.Fragment == nil {
m.Fragment = []byte{}
}
iNdEx = postIndex iNdEx = postIndex
default: default:
iNdEx = preIndex iNdEx = preIndex

View file

@ -163,8 +163,8 @@ message GetRangeRequest {
} }
message GetRangeResponse { message GetRangeResponse {
// Fragments of object's payload // Fragment of object's payload
repeated bytes Fragments = 1; bytes Fragment = 1;
} }
message GetRangeHashRequest { message GetRangeHashRequest {