diff --git a/pkg/pb/metainfo.pb.go b/pkg/pb/metainfo.pb.go index a6f99442d..dc47c9cab 100644 --- a/pkg/pb/metainfo.pb.go +++ b/pkg/pb/metainfo.pb.go @@ -632,7 +632,7 @@ func (m *AddressedOrderLimit) GetStorageNodeAddress() *NodeAddress { return nil } -type SegmentWriteRequest struct { +type SegmentWriteRequestOld struct { Bucket []byte `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"` Path []byte `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` Segment int64 `protobuf:"varint,3,opt,name=segment,proto3" json:"segment,omitempty"` @@ -644,73 +644,73 @@ type SegmentWriteRequest struct { XXX_sizecache int32 `json:"-"` } -func (m *SegmentWriteRequest) Reset() { *m = SegmentWriteRequest{} } -func (m *SegmentWriteRequest) String() string { return proto.CompactTextString(m) } -func (*SegmentWriteRequest) ProtoMessage() {} -func (*SegmentWriteRequest) Descriptor() ([]byte, []int) { +func (m *SegmentWriteRequestOld) Reset() { *m = SegmentWriteRequestOld{} } +func (m *SegmentWriteRequestOld) String() string { return proto.CompactTextString(m) } +func (*SegmentWriteRequestOld) ProtoMessage() {} +func (*SegmentWriteRequestOld) Descriptor() ([]byte, []int) { return fileDescriptor_631e2f30a93cd64e, []int{13} } -func (m *SegmentWriteRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SegmentWriteRequest.Unmarshal(m, b) +func (m *SegmentWriteRequestOld) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SegmentWriteRequestOld.Unmarshal(m, b) } -func (m *SegmentWriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SegmentWriteRequest.Marshal(b, m, deterministic) +func (m *SegmentWriteRequestOld) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SegmentWriteRequestOld.Marshal(b, m, deterministic) } -func (m *SegmentWriteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SegmentWriteRequest.Merge(m, src) +func (m *SegmentWriteRequestOld) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentWriteRequestOld.Merge(m, src) } -func (m *SegmentWriteRequest) XXX_Size() int { - return xxx_messageInfo_SegmentWriteRequest.Size(m) +func (m *SegmentWriteRequestOld) XXX_Size() int { + return xxx_messageInfo_SegmentWriteRequestOld.Size(m) } -func (m *SegmentWriteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SegmentWriteRequest.DiscardUnknown(m) +func (m *SegmentWriteRequestOld) XXX_DiscardUnknown() { + xxx_messageInfo_SegmentWriteRequestOld.DiscardUnknown(m) } -var xxx_messageInfo_SegmentWriteRequest proto.InternalMessageInfo +var xxx_messageInfo_SegmentWriteRequestOld proto.InternalMessageInfo -func (m *SegmentWriteRequest) GetBucket() []byte { +func (m *SegmentWriteRequestOld) GetBucket() []byte { if m != nil { return m.Bucket } return nil } -func (m *SegmentWriteRequest) GetPath() []byte { +func (m *SegmentWriteRequestOld) GetPath() []byte { if m != nil { return m.Path } return nil } -func (m *SegmentWriteRequest) GetSegment() int64 { +func (m *SegmentWriteRequestOld) GetSegment() int64 { if m != nil { return m.Segment } return 0 } -func (m *SegmentWriteRequest) GetRedundancy() *RedundancyScheme { +func (m *SegmentWriteRequestOld) GetRedundancy() *RedundancyScheme { if m != nil { return m.Redundancy } return nil } -func (m *SegmentWriteRequest) GetMaxEncryptedSegmentSize() int64 { +func (m *SegmentWriteRequestOld) GetMaxEncryptedSegmentSize() int64 { if m != nil { return m.MaxEncryptedSegmentSize } return 0 } -func (m *SegmentWriteRequest) GetExpiration() *timestamp.Timestamp { +func (m *SegmentWriteRequestOld) GetExpiration() *timestamp.Timestamp { if m != nil { return m.Expiration } return nil } -type SegmentWriteResponse struct { +type SegmentWriteResponseOld struct { AddressedLimits []*AddressedOrderLimit `protobuf:"bytes,1,rep,name=addressed_limits,json=addressedLimits,proto3" json:"addressed_limits,omitempty"` RootPieceId PieceID `protobuf:"bytes,2,opt,name=root_piece_id,json=rootPieceId,proto3,customtype=PieceID" json:"root_piece_id"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -718,38 +718,38 @@ type SegmentWriteResponse struct { XXX_sizecache int32 `json:"-"` } -func (m *SegmentWriteResponse) Reset() { *m = SegmentWriteResponse{} } -func (m *SegmentWriteResponse) String() string { return proto.CompactTextString(m) } -func (*SegmentWriteResponse) ProtoMessage() {} -func (*SegmentWriteResponse) Descriptor() ([]byte, []int) { +func (m *SegmentWriteResponseOld) Reset() { *m = SegmentWriteResponseOld{} } +func (m *SegmentWriteResponseOld) String() string { return proto.CompactTextString(m) } +func (*SegmentWriteResponseOld) ProtoMessage() {} +func (*SegmentWriteResponseOld) Descriptor() ([]byte, []int) { return fileDescriptor_631e2f30a93cd64e, []int{14} } -func (m *SegmentWriteResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SegmentWriteResponse.Unmarshal(m, b) +func (m *SegmentWriteResponseOld) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SegmentWriteResponseOld.Unmarshal(m, b) } -func (m *SegmentWriteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SegmentWriteResponse.Marshal(b, m, deterministic) +func (m *SegmentWriteResponseOld) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SegmentWriteResponseOld.Marshal(b, m, deterministic) } -func (m *SegmentWriteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SegmentWriteResponse.Merge(m, src) +func (m *SegmentWriteResponseOld) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentWriteResponseOld.Merge(m, src) } -func (m *SegmentWriteResponse) XXX_Size() int { - return xxx_messageInfo_SegmentWriteResponse.Size(m) +func (m *SegmentWriteResponseOld) XXX_Size() int { + return xxx_messageInfo_SegmentWriteResponseOld.Size(m) } -func (m *SegmentWriteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SegmentWriteResponse.DiscardUnknown(m) +func (m *SegmentWriteResponseOld) XXX_DiscardUnknown() { + xxx_messageInfo_SegmentWriteResponseOld.DiscardUnknown(m) } -var xxx_messageInfo_SegmentWriteResponse proto.InternalMessageInfo +var xxx_messageInfo_SegmentWriteResponseOld proto.InternalMessageInfo -func (m *SegmentWriteResponse) GetAddressedLimits() []*AddressedOrderLimit { +func (m *SegmentWriteResponseOld) GetAddressedLimits() []*AddressedOrderLimit { if m != nil { return m.AddressedLimits } return nil } -type SegmentCommitRequest struct { +type SegmentCommitRequestOld struct { Bucket []byte `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"` Path []byte `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` Segment int64 `protobuf:"varint,3,opt,name=segment,proto3" json:"segment,omitempty"` @@ -760,104 +760,104 @@ type SegmentCommitRequest struct { XXX_sizecache int32 `json:"-"` } -func (m *SegmentCommitRequest) Reset() { *m = SegmentCommitRequest{} } -func (m *SegmentCommitRequest) String() string { return proto.CompactTextString(m) } -func (*SegmentCommitRequest) ProtoMessage() {} -func (*SegmentCommitRequest) Descriptor() ([]byte, []int) { +func (m *SegmentCommitRequestOld) Reset() { *m = SegmentCommitRequestOld{} } +func (m *SegmentCommitRequestOld) String() string { return proto.CompactTextString(m) } +func (*SegmentCommitRequestOld) ProtoMessage() {} +func (*SegmentCommitRequestOld) Descriptor() ([]byte, []int) { return fileDescriptor_631e2f30a93cd64e, []int{15} } -func (m *SegmentCommitRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SegmentCommitRequest.Unmarshal(m, b) +func (m *SegmentCommitRequestOld) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SegmentCommitRequestOld.Unmarshal(m, b) } -func (m *SegmentCommitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SegmentCommitRequest.Marshal(b, m, deterministic) +func (m *SegmentCommitRequestOld) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SegmentCommitRequestOld.Marshal(b, m, deterministic) } -func (m *SegmentCommitRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SegmentCommitRequest.Merge(m, src) +func (m *SegmentCommitRequestOld) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentCommitRequestOld.Merge(m, src) } -func (m *SegmentCommitRequest) XXX_Size() int { - return xxx_messageInfo_SegmentCommitRequest.Size(m) +func (m *SegmentCommitRequestOld) XXX_Size() int { + return xxx_messageInfo_SegmentCommitRequestOld.Size(m) } -func (m *SegmentCommitRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SegmentCommitRequest.DiscardUnknown(m) +func (m *SegmentCommitRequestOld) XXX_DiscardUnknown() { + xxx_messageInfo_SegmentCommitRequestOld.DiscardUnknown(m) } -var xxx_messageInfo_SegmentCommitRequest proto.InternalMessageInfo +var xxx_messageInfo_SegmentCommitRequestOld proto.InternalMessageInfo -func (m *SegmentCommitRequest) GetBucket() []byte { +func (m *SegmentCommitRequestOld) GetBucket() []byte { if m != nil { return m.Bucket } return nil } -func (m *SegmentCommitRequest) GetPath() []byte { +func (m *SegmentCommitRequestOld) GetPath() []byte { if m != nil { return m.Path } return nil } -func (m *SegmentCommitRequest) GetSegment() int64 { +func (m *SegmentCommitRequestOld) GetSegment() int64 { if m != nil { return m.Segment } return 0 } -func (m *SegmentCommitRequest) GetPointer() *Pointer { +func (m *SegmentCommitRequestOld) GetPointer() *Pointer { if m != nil { return m.Pointer } return nil } -func (m *SegmentCommitRequest) GetOriginalLimits() []*OrderLimit { +func (m *SegmentCommitRequestOld) GetOriginalLimits() []*OrderLimit { if m != nil { return m.OriginalLimits } return nil } -type SegmentCommitResponse struct { +type SegmentCommitResponseOld struct { Pointer *Pointer `protobuf:"bytes,1,opt,name=pointer,proto3" json:"pointer,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *SegmentCommitResponse) Reset() { *m = SegmentCommitResponse{} } -func (m *SegmentCommitResponse) String() string { return proto.CompactTextString(m) } -func (*SegmentCommitResponse) ProtoMessage() {} -func (*SegmentCommitResponse) Descriptor() ([]byte, []int) { +func (m *SegmentCommitResponseOld) Reset() { *m = SegmentCommitResponseOld{} } +func (m *SegmentCommitResponseOld) String() string { return proto.CompactTextString(m) } +func (*SegmentCommitResponseOld) ProtoMessage() {} +func (*SegmentCommitResponseOld) Descriptor() ([]byte, []int) { return fileDescriptor_631e2f30a93cd64e, []int{16} } -func (m *SegmentCommitResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SegmentCommitResponse.Unmarshal(m, b) +func (m *SegmentCommitResponseOld) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SegmentCommitResponseOld.Unmarshal(m, b) } -func (m *SegmentCommitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SegmentCommitResponse.Marshal(b, m, deterministic) +func (m *SegmentCommitResponseOld) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SegmentCommitResponseOld.Marshal(b, m, deterministic) } -func (m *SegmentCommitResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SegmentCommitResponse.Merge(m, src) +func (m *SegmentCommitResponseOld) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentCommitResponseOld.Merge(m, src) } -func (m *SegmentCommitResponse) XXX_Size() int { - return xxx_messageInfo_SegmentCommitResponse.Size(m) +func (m *SegmentCommitResponseOld) XXX_Size() int { + return xxx_messageInfo_SegmentCommitResponseOld.Size(m) } -func (m *SegmentCommitResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SegmentCommitResponse.DiscardUnknown(m) +func (m *SegmentCommitResponseOld) XXX_DiscardUnknown() { + xxx_messageInfo_SegmentCommitResponseOld.DiscardUnknown(m) } -var xxx_messageInfo_SegmentCommitResponse proto.InternalMessageInfo +var xxx_messageInfo_SegmentCommitResponseOld proto.InternalMessageInfo -func (m *SegmentCommitResponse) GetPointer() *Pointer { +func (m *SegmentCommitResponseOld) GetPointer() *Pointer { if m != nil { return m.Pointer } return nil } -type SegmentDownloadRequest struct { +type SegmentDownloadRequestOld struct { Bucket []byte `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"` Path []byte `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` Segment int64 `protobuf:"varint,3,opt,name=segment,proto3" json:"segment,omitempty"` @@ -866,52 +866,52 @@ type SegmentDownloadRequest struct { XXX_sizecache int32 `json:"-"` } -func (m *SegmentDownloadRequest) Reset() { *m = SegmentDownloadRequest{} } -func (m *SegmentDownloadRequest) String() string { return proto.CompactTextString(m) } -func (*SegmentDownloadRequest) ProtoMessage() {} -func (*SegmentDownloadRequest) Descriptor() ([]byte, []int) { +func (m *SegmentDownloadRequestOld) Reset() { *m = SegmentDownloadRequestOld{} } +func (m *SegmentDownloadRequestOld) String() string { return proto.CompactTextString(m) } +func (*SegmentDownloadRequestOld) ProtoMessage() {} +func (*SegmentDownloadRequestOld) Descriptor() ([]byte, []int) { return fileDescriptor_631e2f30a93cd64e, []int{17} } -func (m *SegmentDownloadRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SegmentDownloadRequest.Unmarshal(m, b) +func (m *SegmentDownloadRequestOld) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SegmentDownloadRequestOld.Unmarshal(m, b) } -func (m *SegmentDownloadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SegmentDownloadRequest.Marshal(b, m, deterministic) +func (m *SegmentDownloadRequestOld) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SegmentDownloadRequestOld.Marshal(b, m, deterministic) } -func (m *SegmentDownloadRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SegmentDownloadRequest.Merge(m, src) +func (m *SegmentDownloadRequestOld) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentDownloadRequestOld.Merge(m, src) } -func (m *SegmentDownloadRequest) XXX_Size() int { - return xxx_messageInfo_SegmentDownloadRequest.Size(m) +func (m *SegmentDownloadRequestOld) XXX_Size() int { + return xxx_messageInfo_SegmentDownloadRequestOld.Size(m) } -func (m *SegmentDownloadRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SegmentDownloadRequest.DiscardUnknown(m) +func (m *SegmentDownloadRequestOld) XXX_DiscardUnknown() { + xxx_messageInfo_SegmentDownloadRequestOld.DiscardUnknown(m) } -var xxx_messageInfo_SegmentDownloadRequest proto.InternalMessageInfo +var xxx_messageInfo_SegmentDownloadRequestOld proto.InternalMessageInfo -func (m *SegmentDownloadRequest) GetBucket() []byte { +func (m *SegmentDownloadRequestOld) GetBucket() []byte { if m != nil { return m.Bucket } return nil } -func (m *SegmentDownloadRequest) GetPath() []byte { +func (m *SegmentDownloadRequestOld) GetPath() []byte { if m != nil { return m.Path } return nil } -func (m *SegmentDownloadRequest) GetSegment() int64 { +func (m *SegmentDownloadRequestOld) GetSegment() int64 { if m != nil { return m.Segment } return 0 } -type SegmentDownloadResponse struct { +type SegmentDownloadResponseOld struct { AddressedLimits []*AddressedOrderLimit `protobuf:"bytes,1,rep,name=addressed_limits,json=addressedLimits,proto3" json:"addressed_limits,omitempty"` Pointer *Pointer `protobuf:"bytes,2,opt,name=pointer,proto3" json:"pointer,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -919,45 +919,45 @@ type SegmentDownloadResponse struct { XXX_sizecache int32 `json:"-"` } -func (m *SegmentDownloadResponse) Reset() { *m = SegmentDownloadResponse{} } -func (m *SegmentDownloadResponse) String() string { return proto.CompactTextString(m) } -func (*SegmentDownloadResponse) ProtoMessage() {} -func (*SegmentDownloadResponse) Descriptor() ([]byte, []int) { +func (m *SegmentDownloadResponseOld) Reset() { *m = SegmentDownloadResponseOld{} } +func (m *SegmentDownloadResponseOld) String() string { return proto.CompactTextString(m) } +func (*SegmentDownloadResponseOld) ProtoMessage() {} +func (*SegmentDownloadResponseOld) Descriptor() ([]byte, []int) { return fileDescriptor_631e2f30a93cd64e, []int{18} } -func (m *SegmentDownloadResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SegmentDownloadResponse.Unmarshal(m, b) +func (m *SegmentDownloadResponseOld) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SegmentDownloadResponseOld.Unmarshal(m, b) } -func (m *SegmentDownloadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SegmentDownloadResponse.Marshal(b, m, deterministic) +func (m *SegmentDownloadResponseOld) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SegmentDownloadResponseOld.Marshal(b, m, deterministic) } -func (m *SegmentDownloadResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SegmentDownloadResponse.Merge(m, src) +func (m *SegmentDownloadResponseOld) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentDownloadResponseOld.Merge(m, src) } -func (m *SegmentDownloadResponse) XXX_Size() int { - return xxx_messageInfo_SegmentDownloadResponse.Size(m) +func (m *SegmentDownloadResponseOld) XXX_Size() int { + return xxx_messageInfo_SegmentDownloadResponseOld.Size(m) } -func (m *SegmentDownloadResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SegmentDownloadResponse.DiscardUnknown(m) +func (m *SegmentDownloadResponseOld) XXX_DiscardUnknown() { + xxx_messageInfo_SegmentDownloadResponseOld.DiscardUnknown(m) } -var xxx_messageInfo_SegmentDownloadResponse proto.InternalMessageInfo +var xxx_messageInfo_SegmentDownloadResponseOld proto.InternalMessageInfo -func (m *SegmentDownloadResponse) GetAddressedLimits() []*AddressedOrderLimit { +func (m *SegmentDownloadResponseOld) GetAddressedLimits() []*AddressedOrderLimit { if m != nil { return m.AddressedLimits } return nil } -func (m *SegmentDownloadResponse) GetPointer() *Pointer { +func (m *SegmentDownloadResponseOld) GetPointer() *Pointer { if m != nil { return m.Pointer } return nil } -type SegmentInfoRequest struct { +type SegmentInfoRequestOld struct { Bucket []byte `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"` Path []byte `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` Segment int64 `protobuf:"varint,3,opt,name=segment,proto3" json:"segment,omitempty"` @@ -966,90 +966,90 @@ type SegmentInfoRequest struct { XXX_sizecache int32 `json:"-"` } -func (m *SegmentInfoRequest) Reset() { *m = SegmentInfoRequest{} } -func (m *SegmentInfoRequest) String() string { return proto.CompactTextString(m) } -func (*SegmentInfoRequest) ProtoMessage() {} -func (*SegmentInfoRequest) Descriptor() ([]byte, []int) { +func (m *SegmentInfoRequestOld) Reset() { *m = SegmentInfoRequestOld{} } +func (m *SegmentInfoRequestOld) String() string { return proto.CompactTextString(m) } +func (*SegmentInfoRequestOld) ProtoMessage() {} +func (*SegmentInfoRequestOld) Descriptor() ([]byte, []int) { return fileDescriptor_631e2f30a93cd64e, []int{19} } -func (m *SegmentInfoRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SegmentInfoRequest.Unmarshal(m, b) +func (m *SegmentInfoRequestOld) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SegmentInfoRequestOld.Unmarshal(m, b) } -func (m *SegmentInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SegmentInfoRequest.Marshal(b, m, deterministic) +func (m *SegmentInfoRequestOld) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SegmentInfoRequestOld.Marshal(b, m, deterministic) } -func (m *SegmentInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SegmentInfoRequest.Merge(m, src) +func (m *SegmentInfoRequestOld) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentInfoRequestOld.Merge(m, src) } -func (m *SegmentInfoRequest) XXX_Size() int { - return xxx_messageInfo_SegmentInfoRequest.Size(m) +func (m *SegmentInfoRequestOld) XXX_Size() int { + return xxx_messageInfo_SegmentInfoRequestOld.Size(m) } -func (m *SegmentInfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SegmentInfoRequest.DiscardUnknown(m) +func (m *SegmentInfoRequestOld) XXX_DiscardUnknown() { + xxx_messageInfo_SegmentInfoRequestOld.DiscardUnknown(m) } -var xxx_messageInfo_SegmentInfoRequest proto.InternalMessageInfo +var xxx_messageInfo_SegmentInfoRequestOld proto.InternalMessageInfo -func (m *SegmentInfoRequest) GetBucket() []byte { +func (m *SegmentInfoRequestOld) GetBucket() []byte { if m != nil { return m.Bucket } return nil } -func (m *SegmentInfoRequest) GetPath() []byte { +func (m *SegmentInfoRequestOld) GetPath() []byte { if m != nil { return m.Path } return nil } -func (m *SegmentInfoRequest) GetSegment() int64 { +func (m *SegmentInfoRequestOld) GetSegment() int64 { if m != nil { return m.Segment } return 0 } -type SegmentInfoResponse struct { +type SegmentInfoResponseOld struct { Pointer *Pointer `protobuf:"bytes,2,opt,name=pointer,proto3" json:"pointer,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *SegmentInfoResponse) Reset() { *m = SegmentInfoResponse{} } -func (m *SegmentInfoResponse) String() string { return proto.CompactTextString(m) } -func (*SegmentInfoResponse) ProtoMessage() {} -func (*SegmentInfoResponse) Descriptor() ([]byte, []int) { +func (m *SegmentInfoResponseOld) Reset() { *m = SegmentInfoResponseOld{} } +func (m *SegmentInfoResponseOld) String() string { return proto.CompactTextString(m) } +func (*SegmentInfoResponseOld) ProtoMessage() {} +func (*SegmentInfoResponseOld) Descriptor() ([]byte, []int) { return fileDescriptor_631e2f30a93cd64e, []int{20} } -func (m *SegmentInfoResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SegmentInfoResponse.Unmarshal(m, b) +func (m *SegmentInfoResponseOld) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SegmentInfoResponseOld.Unmarshal(m, b) } -func (m *SegmentInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SegmentInfoResponse.Marshal(b, m, deterministic) +func (m *SegmentInfoResponseOld) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SegmentInfoResponseOld.Marshal(b, m, deterministic) } -func (m *SegmentInfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SegmentInfoResponse.Merge(m, src) +func (m *SegmentInfoResponseOld) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentInfoResponseOld.Merge(m, src) } -func (m *SegmentInfoResponse) XXX_Size() int { - return xxx_messageInfo_SegmentInfoResponse.Size(m) +func (m *SegmentInfoResponseOld) XXX_Size() int { + return xxx_messageInfo_SegmentInfoResponseOld.Size(m) } -func (m *SegmentInfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SegmentInfoResponse.DiscardUnknown(m) +func (m *SegmentInfoResponseOld) XXX_DiscardUnknown() { + xxx_messageInfo_SegmentInfoResponseOld.DiscardUnknown(m) } -var xxx_messageInfo_SegmentInfoResponse proto.InternalMessageInfo +var xxx_messageInfo_SegmentInfoResponseOld proto.InternalMessageInfo -func (m *SegmentInfoResponse) GetPointer() *Pointer { +func (m *SegmentInfoResponseOld) GetPointer() *Pointer { if m != nil { return m.Pointer } return nil } -type SegmentDeleteRequest struct { +type SegmentDeleteRequestOld struct { Bucket []byte `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"` Path []byte `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` Segment int64 `protobuf:"varint,3,opt,name=segment,proto3" json:"segment,omitempty"` @@ -1058,90 +1058,90 @@ type SegmentDeleteRequest struct { XXX_sizecache int32 `json:"-"` } -func (m *SegmentDeleteRequest) Reset() { *m = SegmentDeleteRequest{} } -func (m *SegmentDeleteRequest) String() string { return proto.CompactTextString(m) } -func (*SegmentDeleteRequest) ProtoMessage() {} -func (*SegmentDeleteRequest) Descriptor() ([]byte, []int) { +func (m *SegmentDeleteRequestOld) Reset() { *m = SegmentDeleteRequestOld{} } +func (m *SegmentDeleteRequestOld) String() string { return proto.CompactTextString(m) } +func (*SegmentDeleteRequestOld) ProtoMessage() {} +func (*SegmentDeleteRequestOld) Descriptor() ([]byte, []int) { return fileDescriptor_631e2f30a93cd64e, []int{21} } -func (m *SegmentDeleteRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SegmentDeleteRequest.Unmarshal(m, b) +func (m *SegmentDeleteRequestOld) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SegmentDeleteRequestOld.Unmarshal(m, b) } -func (m *SegmentDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SegmentDeleteRequest.Marshal(b, m, deterministic) +func (m *SegmentDeleteRequestOld) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SegmentDeleteRequestOld.Marshal(b, m, deterministic) } -func (m *SegmentDeleteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SegmentDeleteRequest.Merge(m, src) +func (m *SegmentDeleteRequestOld) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentDeleteRequestOld.Merge(m, src) } -func (m *SegmentDeleteRequest) XXX_Size() int { - return xxx_messageInfo_SegmentDeleteRequest.Size(m) +func (m *SegmentDeleteRequestOld) XXX_Size() int { + return xxx_messageInfo_SegmentDeleteRequestOld.Size(m) } -func (m *SegmentDeleteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SegmentDeleteRequest.DiscardUnknown(m) +func (m *SegmentDeleteRequestOld) XXX_DiscardUnknown() { + xxx_messageInfo_SegmentDeleteRequestOld.DiscardUnknown(m) } -var xxx_messageInfo_SegmentDeleteRequest proto.InternalMessageInfo +var xxx_messageInfo_SegmentDeleteRequestOld proto.InternalMessageInfo -func (m *SegmentDeleteRequest) GetBucket() []byte { +func (m *SegmentDeleteRequestOld) GetBucket() []byte { if m != nil { return m.Bucket } return nil } -func (m *SegmentDeleteRequest) GetPath() []byte { +func (m *SegmentDeleteRequestOld) GetPath() []byte { if m != nil { return m.Path } return nil } -func (m *SegmentDeleteRequest) GetSegment() int64 { +func (m *SegmentDeleteRequestOld) GetSegment() int64 { if m != nil { return m.Segment } return 0 } -type SegmentDeleteResponse struct { +type SegmentDeleteResponseOld struct { AddressedLimits []*AddressedOrderLimit `protobuf:"bytes,1,rep,name=addressed_limits,json=addressedLimits,proto3" json:"addressed_limits,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *SegmentDeleteResponse) Reset() { *m = SegmentDeleteResponse{} } -func (m *SegmentDeleteResponse) String() string { return proto.CompactTextString(m) } -func (*SegmentDeleteResponse) ProtoMessage() {} -func (*SegmentDeleteResponse) Descriptor() ([]byte, []int) { +func (m *SegmentDeleteResponseOld) Reset() { *m = SegmentDeleteResponseOld{} } +func (m *SegmentDeleteResponseOld) String() string { return proto.CompactTextString(m) } +func (*SegmentDeleteResponseOld) ProtoMessage() {} +func (*SegmentDeleteResponseOld) Descriptor() ([]byte, []int) { return fileDescriptor_631e2f30a93cd64e, []int{22} } -func (m *SegmentDeleteResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SegmentDeleteResponse.Unmarshal(m, b) +func (m *SegmentDeleteResponseOld) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SegmentDeleteResponseOld.Unmarshal(m, b) } -func (m *SegmentDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SegmentDeleteResponse.Marshal(b, m, deterministic) +func (m *SegmentDeleteResponseOld) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SegmentDeleteResponseOld.Marshal(b, m, deterministic) } -func (m *SegmentDeleteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SegmentDeleteResponse.Merge(m, src) +func (m *SegmentDeleteResponseOld) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentDeleteResponseOld.Merge(m, src) } -func (m *SegmentDeleteResponse) XXX_Size() int { - return xxx_messageInfo_SegmentDeleteResponse.Size(m) +func (m *SegmentDeleteResponseOld) XXX_Size() int { + return xxx_messageInfo_SegmentDeleteResponseOld.Size(m) } -func (m *SegmentDeleteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SegmentDeleteResponse.DiscardUnknown(m) +func (m *SegmentDeleteResponseOld) XXX_DiscardUnknown() { + xxx_messageInfo_SegmentDeleteResponseOld.DiscardUnknown(m) } -var xxx_messageInfo_SegmentDeleteResponse proto.InternalMessageInfo +var xxx_messageInfo_SegmentDeleteResponseOld proto.InternalMessageInfo -func (m *SegmentDeleteResponse) GetAddressedLimits() []*AddressedOrderLimit { +func (m *SegmentDeleteResponseOld) GetAddressedLimits() []*AddressedOrderLimit { if m != nil { return m.AddressedLimits } return nil } -type ListSegmentsRequest struct { +type ListSegmentsRequestOld struct { Bucket []byte `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"` Prefix []byte `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"` StartAfter []byte `protobuf:"bytes,3,opt,name=start_after,json=startAfter,proto3" json:"start_after,omitempty"` @@ -1154,126 +1154,126 @@ type ListSegmentsRequest struct { XXX_sizecache int32 `json:"-"` } -func (m *ListSegmentsRequest) Reset() { *m = ListSegmentsRequest{} } -func (m *ListSegmentsRequest) String() string { return proto.CompactTextString(m) } -func (*ListSegmentsRequest) ProtoMessage() {} -func (*ListSegmentsRequest) Descriptor() ([]byte, []int) { +func (m *ListSegmentsRequestOld) Reset() { *m = ListSegmentsRequestOld{} } +func (m *ListSegmentsRequestOld) String() string { return proto.CompactTextString(m) } +func (*ListSegmentsRequestOld) ProtoMessage() {} +func (*ListSegmentsRequestOld) Descriptor() ([]byte, []int) { return fileDescriptor_631e2f30a93cd64e, []int{23} } -func (m *ListSegmentsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListSegmentsRequest.Unmarshal(m, b) +func (m *ListSegmentsRequestOld) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListSegmentsRequestOld.Unmarshal(m, b) } -func (m *ListSegmentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListSegmentsRequest.Marshal(b, m, deterministic) +func (m *ListSegmentsRequestOld) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListSegmentsRequestOld.Marshal(b, m, deterministic) } -func (m *ListSegmentsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListSegmentsRequest.Merge(m, src) +func (m *ListSegmentsRequestOld) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListSegmentsRequestOld.Merge(m, src) } -func (m *ListSegmentsRequest) XXX_Size() int { - return xxx_messageInfo_ListSegmentsRequest.Size(m) +func (m *ListSegmentsRequestOld) XXX_Size() int { + return xxx_messageInfo_ListSegmentsRequestOld.Size(m) } -func (m *ListSegmentsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListSegmentsRequest.DiscardUnknown(m) +func (m *ListSegmentsRequestOld) XXX_DiscardUnknown() { + xxx_messageInfo_ListSegmentsRequestOld.DiscardUnknown(m) } -var xxx_messageInfo_ListSegmentsRequest proto.InternalMessageInfo +var xxx_messageInfo_ListSegmentsRequestOld proto.InternalMessageInfo -func (m *ListSegmentsRequest) GetBucket() []byte { +func (m *ListSegmentsRequestOld) GetBucket() []byte { if m != nil { return m.Bucket } return nil } -func (m *ListSegmentsRequest) GetPrefix() []byte { +func (m *ListSegmentsRequestOld) GetPrefix() []byte { if m != nil { return m.Prefix } return nil } -func (m *ListSegmentsRequest) GetStartAfter() []byte { +func (m *ListSegmentsRequestOld) GetStartAfter() []byte { if m != nil { return m.StartAfter } return nil } -func (m *ListSegmentsRequest) GetEndBefore() []byte { +func (m *ListSegmentsRequestOld) GetEndBefore() []byte { if m != nil { return m.EndBefore } return nil } -func (m *ListSegmentsRequest) GetRecursive() bool { +func (m *ListSegmentsRequestOld) GetRecursive() bool { if m != nil { return m.Recursive } return false } -func (m *ListSegmentsRequest) GetLimit() int32 { +func (m *ListSegmentsRequestOld) GetLimit() int32 { if m != nil { return m.Limit } return 0 } -func (m *ListSegmentsRequest) GetMetaFlags() uint32 { +func (m *ListSegmentsRequestOld) GetMetaFlags() uint32 { if m != nil { return m.MetaFlags } return 0 } -type ListSegmentsResponse struct { - Items []*ListSegmentsResponse_Item `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` - More bool `protobuf:"varint,2,opt,name=more,proto3" json:"more,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ListSegmentsResponseOld struct { + Items []*ListSegmentsResponseOld_Item `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` + More bool `protobuf:"varint,2,opt,name=more,proto3" json:"more,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ListSegmentsResponse) Reset() { *m = ListSegmentsResponse{} } -func (m *ListSegmentsResponse) String() string { return proto.CompactTextString(m) } -func (*ListSegmentsResponse) ProtoMessage() {} -func (*ListSegmentsResponse) Descriptor() ([]byte, []int) { +func (m *ListSegmentsResponseOld) Reset() { *m = ListSegmentsResponseOld{} } +func (m *ListSegmentsResponseOld) String() string { return proto.CompactTextString(m) } +func (*ListSegmentsResponseOld) ProtoMessage() {} +func (*ListSegmentsResponseOld) Descriptor() ([]byte, []int) { return fileDescriptor_631e2f30a93cd64e, []int{24} } -func (m *ListSegmentsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListSegmentsResponse.Unmarshal(m, b) +func (m *ListSegmentsResponseOld) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListSegmentsResponseOld.Unmarshal(m, b) } -func (m *ListSegmentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListSegmentsResponse.Marshal(b, m, deterministic) +func (m *ListSegmentsResponseOld) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListSegmentsResponseOld.Marshal(b, m, deterministic) } -func (m *ListSegmentsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListSegmentsResponse.Merge(m, src) +func (m *ListSegmentsResponseOld) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListSegmentsResponseOld.Merge(m, src) } -func (m *ListSegmentsResponse) XXX_Size() int { - return xxx_messageInfo_ListSegmentsResponse.Size(m) +func (m *ListSegmentsResponseOld) XXX_Size() int { + return xxx_messageInfo_ListSegmentsResponseOld.Size(m) } -func (m *ListSegmentsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListSegmentsResponse.DiscardUnknown(m) +func (m *ListSegmentsResponseOld) XXX_DiscardUnknown() { + xxx_messageInfo_ListSegmentsResponseOld.DiscardUnknown(m) } -var xxx_messageInfo_ListSegmentsResponse proto.InternalMessageInfo +var xxx_messageInfo_ListSegmentsResponseOld proto.InternalMessageInfo -func (m *ListSegmentsResponse) GetItems() []*ListSegmentsResponse_Item { +func (m *ListSegmentsResponseOld) GetItems() []*ListSegmentsResponseOld_Item { if m != nil { return m.Items } return nil } -func (m *ListSegmentsResponse) GetMore() bool { +func (m *ListSegmentsResponseOld) GetMore() bool { if m != nil { return m.More } return false } -type ListSegmentsResponse_Item struct { +type ListSegmentsResponseOld_Item struct { Path []byte `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Pointer *Pointer `protobuf:"bytes,2,opt,name=pointer,proto3" json:"pointer,omitempty"` IsPrefix bool `protobuf:"varint,3,opt,name=is_prefix,json=isPrefix,proto3" json:"is_prefix,omitempty"` @@ -1282,52 +1282,52 @@ type ListSegmentsResponse_Item struct { XXX_sizecache int32 `json:"-"` } -func (m *ListSegmentsResponse_Item) Reset() { *m = ListSegmentsResponse_Item{} } -func (m *ListSegmentsResponse_Item) String() string { return proto.CompactTextString(m) } -func (*ListSegmentsResponse_Item) ProtoMessage() {} -func (*ListSegmentsResponse_Item) Descriptor() ([]byte, []int) { +func (m *ListSegmentsResponseOld_Item) Reset() { *m = ListSegmentsResponseOld_Item{} } +func (m *ListSegmentsResponseOld_Item) String() string { return proto.CompactTextString(m) } +func (*ListSegmentsResponseOld_Item) ProtoMessage() {} +func (*ListSegmentsResponseOld_Item) Descriptor() ([]byte, []int) { return fileDescriptor_631e2f30a93cd64e, []int{24, 0} } -func (m *ListSegmentsResponse_Item) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListSegmentsResponse_Item.Unmarshal(m, b) +func (m *ListSegmentsResponseOld_Item) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListSegmentsResponseOld_Item.Unmarshal(m, b) } -func (m *ListSegmentsResponse_Item) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListSegmentsResponse_Item.Marshal(b, m, deterministic) +func (m *ListSegmentsResponseOld_Item) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListSegmentsResponseOld_Item.Marshal(b, m, deterministic) } -func (m *ListSegmentsResponse_Item) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListSegmentsResponse_Item.Merge(m, src) +func (m *ListSegmentsResponseOld_Item) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListSegmentsResponseOld_Item.Merge(m, src) } -func (m *ListSegmentsResponse_Item) XXX_Size() int { - return xxx_messageInfo_ListSegmentsResponse_Item.Size(m) +func (m *ListSegmentsResponseOld_Item) XXX_Size() int { + return xxx_messageInfo_ListSegmentsResponseOld_Item.Size(m) } -func (m *ListSegmentsResponse_Item) XXX_DiscardUnknown() { - xxx_messageInfo_ListSegmentsResponse_Item.DiscardUnknown(m) +func (m *ListSegmentsResponseOld_Item) XXX_DiscardUnknown() { + xxx_messageInfo_ListSegmentsResponseOld_Item.DiscardUnknown(m) } -var xxx_messageInfo_ListSegmentsResponse_Item proto.InternalMessageInfo +var xxx_messageInfo_ListSegmentsResponseOld_Item proto.InternalMessageInfo -func (m *ListSegmentsResponse_Item) GetPath() []byte { +func (m *ListSegmentsResponseOld_Item) GetPath() []byte { if m != nil { return m.Path } return nil } -func (m *ListSegmentsResponse_Item) GetPointer() *Pointer { +func (m *ListSegmentsResponseOld_Item) GetPointer() *Pointer { if m != nil { return m.Pointer } return nil } -func (m *ListSegmentsResponse_Item) GetIsPrefix() bool { +func (m *ListSegmentsResponseOld_Item) GetIsPrefix() bool { if m != nil { return m.IsPrefix } return false } -type SetAttributionRequest struct { +type SetAttributionRequestOld struct { BucketName []byte `protobuf:"bytes,1,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"` PartnerId []byte `protobuf:"bytes,2,opt,name=partner_id,json=partnerId,proto3" json:"partner_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -1335,73 +1335,73 @@ type SetAttributionRequest struct { XXX_sizecache int32 `json:"-"` } -func (m *SetAttributionRequest) Reset() { *m = SetAttributionRequest{} } -func (m *SetAttributionRequest) String() string { return proto.CompactTextString(m) } -func (*SetAttributionRequest) ProtoMessage() {} -func (*SetAttributionRequest) Descriptor() ([]byte, []int) { +func (m *SetAttributionRequestOld) Reset() { *m = SetAttributionRequestOld{} } +func (m *SetAttributionRequestOld) String() string { return proto.CompactTextString(m) } +func (*SetAttributionRequestOld) ProtoMessage() {} +func (*SetAttributionRequestOld) Descriptor() ([]byte, []int) { return fileDescriptor_631e2f30a93cd64e, []int{25} } -func (m *SetAttributionRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetAttributionRequest.Unmarshal(m, b) +func (m *SetAttributionRequestOld) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SetAttributionRequestOld.Unmarshal(m, b) } -func (m *SetAttributionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetAttributionRequest.Marshal(b, m, deterministic) +func (m *SetAttributionRequestOld) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SetAttributionRequestOld.Marshal(b, m, deterministic) } -func (m *SetAttributionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetAttributionRequest.Merge(m, src) +func (m *SetAttributionRequestOld) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetAttributionRequestOld.Merge(m, src) } -func (m *SetAttributionRequest) XXX_Size() int { - return xxx_messageInfo_SetAttributionRequest.Size(m) +func (m *SetAttributionRequestOld) XXX_Size() int { + return xxx_messageInfo_SetAttributionRequestOld.Size(m) } -func (m *SetAttributionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SetAttributionRequest.DiscardUnknown(m) +func (m *SetAttributionRequestOld) XXX_DiscardUnknown() { + xxx_messageInfo_SetAttributionRequestOld.DiscardUnknown(m) } -var xxx_messageInfo_SetAttributionRequest proto.InternalMessageInfo +var xxx_messageInfo_SetAttributionRequestOld proto.InternalMessageInfo -func (m *SetAttributionRequest) GetBucketName() []byte { +func (m *SetAttributionRequestOld) GetBucketName() []byte { if m != nil { return m.BucketName } return nil } -func (m *SetAttributionRequest) GetPartnerId() []byte { +func (m *SetAttributionRequestOld) GetPartnerId() []byte { if m != nil { return m.PartnerId } return nil } -type SetAttributionResponse struct { +type SetAttributionResponseOld struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *SetAttributionResponse) Reset() { *m = SetAttributionResponse{} } -func (m *SetAttributionResponse) String() string { return proto.CompactTextString(m) } -func (*SetAttributionResponse) ProtoMessage() {} -func (*SetAttributionResponse) Descriptor() ([]byte, []int) { +func (m *SetAttributionResponseOld) Reset() { *m = SetAttributionResponseOld{} } +func (m *SetAttributionResponseOld) String() string { return proto.CompactTextString(m) } +func (*SetAttributionResponseOld) ProtoMessage() {} +func (*SetAttributionResponseOld) Descriptor() ([]byte, []int) { return fileDescriptor_631e2f30a93cd64e, []int{26} } -func (m *SetAttributionResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetAttributionResponse.Unmarshal(m, b) +func (m *SetAttributionResponseOld) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SetAttributionResponseOld.Unmarshal(m, b) } -func (m *SetAttributionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetAttributionResponse.Marshal(b, m, deterministic) +func (m *SetAttributionResponseOld) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SetAttributionResponseOld.Marshal(b, m, deterministic) } -func (m *SetAttributionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetAttributionResponse.Merge(m, src) +func (m *SetAttributionResponseOld) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetAttributionResponseOld.Merge(m, src) } -func (m *SetAttributionResponse) XXX_Size() int { - return xxx_messageInfo_SetAttributionResponse.Size(m) +func (m *SetAttributionResponseOld) XXX_Size() int { + return xxx_messageInfo_SetAttributionResponseOld.Size(m) } -func (m *SetAttributionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SetAttributionResponse.DiscardUnknown(m) +func (m *SetAttributionResponseOld) XXX_DiscardUnknown() { + xxx_messageInfo_SetAttributionResponseOld.DiscardUnknown(m) } -var xxx_messageInfo_SetAttributionResponse proto.InternalMessageInfo +var xxx_messageInfo_SetAttributionResponseOld proto.InternalMessageInfo type ProjectInfoRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -1485,21 +1485,21 @@ func init() { proto.RegisterType((*BucketSetAttributionRequest)(nil), "metainfo.BucketSetAttributionRequest") proto.RegisterType((*BucketSetAttributionResponse)(nil), "metainfo.BucketSetAttributionResponse") proto.RegisterType((*AddressedOrderLimit)(nil), "metainfo.AddressedOrderLimit") - proto.RegisterType((*SegmentWriteRequest)(nil), "metainfo.SegmentWriteRequest") - proto.RegisterType((*SegmentWriteResponse)(nil), "metainfo.SegmentWriteResponse") - proto.RegisterType((*SegmentCommitRequest)(nil), "metainfo.SegmentCommitRequest") - proto.RegisterType((*SegmentCommitResponse)(nil), "metainfo.SegmentCommitResponse") - proto.RegisterType((*SegmentDownloadRequest)(nil), "metainfo.SegmentDownloadRequest") - proto.RegisterType((*SegmentDownloadResponse)(nil), "metainfo.SegmentDownloadResponse") - proto.RegisterType((*SegmentInfoRequest)(nil), "metainfo.SegmentInfoRequest") - proto.RegisterType((*SegmentInfoResponse)(nil), "metainfo.SegmentInfoResponse") - proto.RegisterType((*SegmentDeleteRequest)(nil), "metainfo.SegmentDeleteRequest") - proto.RegisterType((*SegmentDeleteResponse)(nil), "metainfo.SegmentDeleteResponse") - proto.RegisterType((*ListSegmentsRequest)(nil), "metainfo.ListSegmentsRequest") - proto.RegisterType((*ListSegmentsResponse)(nil), "metainfo.ListSegmentsResponse") - proto.RegisterType((*ListSegmentsResponse_Item)(nil), "metainfo.ListSegmentsResponse.Item") - proto.RegisterType((*SetAttributionRequest)(nil), "metainfo.SetAttributionRequest") - proto.RegisterType((*SetAttributionResponse)(nil), "metainfo.SetAttributionResponse") + proto.RegisterType((*SegmentWriteRequestOld)(nil), "metainfo.SegmentWriteRequestOld") + proto.RegisterType((*SegmentWriteResponseOld)(nil), "metainfo.SegmentWriteResponseOld") + proto.RegisterType((*SegmentCommitRequestOld)(nil), "metainfo.SegmentCommitRequestOld") + proto.RegisterType((*SegmentCommitResponseOld)(nil), "metainfo.SegmentCommitResponseOld") + proto.RegisterType((*SegmentDownloadRequestOld)(nil), "metainfo.SegmentDownloadRequestOld") + proto.RegisterType((*SegmentDownloadResponseOld)(nil), "metainfo.SegmentDownloadResponseOld") + proto.RegisterType((*SegmentInfoRequestOld)(nil), "metainfo.SegmentInfoRequestOld") + proto.RegisterType((*SegmentInfoResponseOld)(nil), "metainfo.SegmentInfoResponseOld") + proto.RegisterType((*SegmentDeleteRequestOld)(nil), "metainfo.SegmentDeleteRequestOld") + proto.RegisterType((*SegmentDeleteResponseOld)(nil), "metainfo.SegmentDeleteResponseOld") + proto.RegisterType((*ListSegmentsRequestOld)(nil), "metainfo.ListSegmentsRequestOld") + proto.RegisterType((*ListSegmentsResponseOld)(nil), "metainfo.ListSegmentsResponseOld") + proto.RegisterType((*ListSegmentsResponseOld_Item)(nil), "metainfo.ListSegmentsResponseOld.Item") + proto.RegisterType((*SetAttributionRequestOld)(nil), "metainfo.SetAttributionRequestOld") + proto.RegisterType((*SetAttributionResponseOld)(nil), "metainfo.SetAttributionResponseOld") proto.RegisterType((*ProjectInfoRequest)(nil), "metainfo.ProjectInfoRequest") proto.RegisterType((*ProjectInfoResponse)(nil), "metainfo.ProjectInfoResponse") } @@ -1507,93 +1507,95 @@ func init() { func init() { proto.RegisterFile("metainfo.proto", fileDescriptor_631e2f30a93cd64e) } var fileDescriptor_631e2f30a93cd64e = []byte{ - // 1370 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0xdd, 0x6e, 0x1b, 0x55, - 0x10, 0x66, 0x9d, 0xc4, 0xb1, 0xc7, 0xf9, 0xeb, 0x89, 0x49, 0xcc, 0x26, 0xa9, 0xdd, 0x45, 0xad, - 0x82, 0x84, 0x5c, 0x94, 0xde, 0x14, 0x2a, 0x24, 0xf2, 0x53, 0x4a, 0x50, 0x5b, 0xa2, 0x35, 0xa2, - 0x55, 0x85, 0x58, 0x1d, 0x7b, 0x8f, 0xdd, 0x05, 0xef, 0x0f, 0x67, 0x8f, 0x21, 0xed, 0x35, 0x0f, - 0x40, 0x2f, 0x78, 0x06, 0x1e, 0x80, 0x87, 0x80, 0x0b, 0x1e, 0x00, 0x71, 0x51, 0x1e, 0x84, 0x1b, - 0x74, 0xfe, 0xbc, 0x67, 0xed, 0x75, 0x42, 0x2b, 0x23, 0xee, 0x7c, 0x66, 0x66, 0xe7, 0xcc, 0xcc, - 0xf7, 0xcd, 0xcc, 0x31, 0xac, 0x85, 0x84, 0x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x49, 0x5d, 0x8a, 0x76, 0x8a, - 0x5e, 0x6d, 0xda, 0xd7, 0x6e, 0xb1, 0x52, 0x79, 0x22, 0x7c, 0xd0, 0x28, 0x47, 0x06, 0x54, 0xe8, - 0xfa, 0xe4, 0x57, 0x85, 0x1c, 0xb1, 0x6f, 0x5c, 0x66, 0xa6, 0xae, 0x79, 0x08, 0xab, 0xb2, 0xae, - 0xaa, 0x0b, 0xcc, 0x02, 0x14, 0xbc, 0x9c, 0xcc, 0x02, 0x14, 0x3e, 0x22, 0xce, 0x60, 0x55, 0x2e, - 0x3d, 0xed, 0x6f, 0xfa, 0x83, 0xdc, 0x76, 0xb7, 0x9b, 0x33, 0xf5, 0xca, 0xe3, 0xa7, 0x50, 0x33, - 0xc6, 0x36, 0xda, 0x9d, 0xb2, 0x37, 0xa8, 0x6a, 0xef, 0xcd, 0xd0, 0x2a, 0x5f, 0x5f, 0xc0, 0xba, - 0x5e, 0x75, 0x3a, 0xbe, 0xd6, 0xd4, 0x17, 0x13, 0xdb, 0xd6, 0xbe, 0x76, 0x81, 0x45, 0x96, 0xb5, - 0x24, 0xc2, 0xec, 0xac, 0xf3, 0x3c, 0x6a, 0xce, 0xd4, 0x67, 0xbc, 0x34, 0x67, 0x93, 0x09, 0x4b, - 0xc1, 0xf4, 0x36, 0x61, 0x29, 0x9c, 0x80, 0x1d, 0x58, 0xcb, 0x13, 0x00, 0xe5, 0x22, 0x28, 0x62, - 0x50, 0x6b, 0xb6, 0x41, 0x86, 0x8c, 0x31, 0x17, 0x4c, 0x64, 0xa6, 0x87, 0x88, 0x89, 0x4c, 0xc1, - 0x30, 0x39, 0x5a, 0x7c, 0x52, 0x4a, 0xba, 0xdd, 0xb2, 0x78, 0xbb, 0xde, 0xfa, 0x27, 0x00, 0x00, - 0xff, 0xff, 0xed, 0x01, 0x50, 0xbb, 0x65, 0x12, 0x00, 0x00, + // 1402 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00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, 0x1b, 0x1d, 0x44, 0x14, 0x85, 0xea, 0x8a, 0x2d, + 0xbe, 0xad, 0xa7, 0xd0, 0x90, 0xe0, 0x36, 0xb2, 0xdd, 0x34, 0x27, 0x67, 0x55, 0xc3, 0x64, 0x4e, + 0x97, 0x0a, 0x72, 0xda, 0xba, 0x0c, 0x97, 0x8a, 0x35, 0x2b, 0x5a, 0x7e, 0x34, 0xe0, 0xc2, 0xae, + 0xe7, 0x51, 0x4c, 0x12, 0xf4, 0x1e, 0xf3, 0xde, 0xfd, 0x80, 0xfb, 0x4a, 0xb6, 0x35, 0x03, 0x32, + 0x34, 0xa4, 0xa5, 0xfa, 0x7a, 0x0a, 0x51, 0xac, 0x90, 0x7d, 0x58, 0x4b, 0x58, 0x44, 0xdd, 0x3e, + 0x3a, 0x7c, 0x30, 0x38, 0xae, 0xd4, 0xa6, 0xea, 0xf3, 0x7c, 0x4b, 0x4c, 0x8b, 0x47, 0x91, 0x87, + 0xea, 0x1a, 0x9b, 0x28, 0x78, 0x46, 0x66, 0xbd, 0x2c, 0xc1, 0xba, 0x2a, 0xac, 0x27, 0xd4, 0x1f, + 0x45, 0xf8, 0xf1, 0xc0, 0xe3, 0x31, 0xca, 0x64, 0xc9, 0x92, 0xce, 0x09, 0x4e, 0x0a, 0x2f, 0x71, + 0xe5, 0xb6, 0xf8, 0x26, 0x75, 0x58, 0x54, 0x95, 0x2b, 0x2a, 0x7c, 0xce, 0xd6, 0x4b, 0x72, 0x1b, + 0x20, 0xad, 0x50, 0x35, 0x09, 0x66, 0x96, 0x66, 0x06, 0x4e, 0x6e, 0x83, 0x19, 0xb8, 0x27, 0xba, + 0x12, 0xd1, 0x2b, 0x9a, 0x03, 0x1b, 0x81, 0x7b, 0x72, 0x47, 0x03, 0xb2, 0x3d, 0xe2, 0x23, 0x00, + 0x3c, 0x89, 0x7d, 0xea, 0x72, 0xde, 0x55, 0xdd, 0xce, 0xe8, 0x93, 0x76, 0x06, 0x6d, 0xfd, 0x6c, + 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0xc1, 0x8b, 0xa2, 0x98, 0x38, 0x95, 0x9f, 0x2c, 0x66, 0x73, 0x0a, 0x20, + 0x55, 0xea, 0x00, 0xd1, 0x33, 0x32, 0x63, 0xf1, 0xd5, 0x89, 0x73, 0x93, 0xc3, 0xda, 0x7c, 0x6f, + 0x06, 0x28, 0x47, 0x88, 0x4c, 0x96, 0x99, 0x84, 0x8c, 0x8f, 0x9a, 0x02, 0x42, 0x26, 0x87, 0xc5, + 0x17, 0xb0, 0x92, 0xed, 0x68, 0x63, 0x31, 0x2c, 0x6e, 0xfe, 0xd9, 0x18, 0x4e, 0x6b, 0xa0, 0x5f, + 0xc1, 0xf9, 0x7c, 0xda, 0x70, 0x61, 0xce, 0xa0, 0xe2, 0x26, 0x65, 0x5e, 0x9d, 0x8e, 0x49, 0xb5, + 0x7f, 0x06, 0xb5, 0x4c, 0x5b, 0x21, 0x99, 0x72, 0x98, 0xec, 0x41, 0xe6, 0xe6, 0x94, 0x5d, 0xa9, + 0x6e, 0x6f, 0xfe, 0x59, 0x29, 0xee, 0x74, 0xca, 0xe2, 0x91, 0x7c, 0xf3, 0xdf, 0x00, 0x00, 0x00, + 0xff, 0xff, 0x7b, 0xfa, 0x2e, 0x7b, 0xd1, 0x12, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1613,13 +1615,13 @@ type MetainfoClient interface { DeleteBucket(ctx context.Context, in *BucketDeleteRequest, opts ...grpc.CallOption) (*BucketDeleteResponse, error) ListBuckets(ctx context.Context, in *BucketListRequest, opts ...grpc.CallOption) (*BucketListResponse, error) SetBucketAttribution(ctx context.Context, in *BucketSetAttributionRequest, opts ...grpc.CallOption) (*BucketSetAttributionResponse, error) - CreateSegment(ctx context.Context, in *SegmentWriteRequest, opts ...grpc.CallOption) (*SegmentWriteResponse, error) - CommitSegment(ctx context.Context, in *SegmentCommitRequest, opts ...grpc.CallOption) (*SegmentCommitResponse, error) - SegmentInfo(ctx context.Context, in *SegmentInfoRequest, opts ...grpc.CallOption) (*SegmentInfoResponse, error) - DownloadSegment(ctx context.Context, in *SegmentDownloadRequest, opts ...grpc.CallOption) (*SegmentDownloadResponse, error) - DeleteSegment(ctx context.Context, in *SegmentDeleteRequest, opts ...grpc.CallOption) (*SegmentDeleteResponse, error) - ListSegments(ctx context.Context, in *ListSegmentsRequest, opts ...grpc.CallOption) (*ListSegmentsResponse, error) - SetAttribution(ctx context.Context, in *SetAttributionRequest, opts ...grpc.CallOption) (*SetAttributionResponse, error) + CreateSegmentOld(ctx context.Context, in *SegmentWriteRequestOld, opts ...grpc.CallOption) (*SegmentWriteResponseOld, error) + CommitSegmentOld(ctx context.Context, in *SegmentCommitRequestOld, opts ...grpc.CallOption) (*SegmentCommitResponseOld, error) + SegmentInfoOld(ctx context.Context, in *SegmentInfoRequestOld, opts ...grpc.CallOption) (*SegmentInfoResponseOld, error) + DownloadSegmentOld(ctx context.Context, in *SegmentDownloadRequestOld, opts ...grpc.CallOption) (*SegmentDownloadResponseOld, error) + DeleteSegmentOld(ctx context.Context, in *SegmentDeleteRequestOld, opts ...grpc.CallOption) (*SegmentDeleteResponseOld, error) + ListSegmentsOld(ctx context.Context, in *ListSegmentsRequestOld, opts ...grpc.CallOption) (*ListSegmentsResponseOld, error) + SetAttributionOld(ctx context.Context, in *SetAttributionRequestOld, opts ...grpc.CallOption) (*SetAttributionResponseOld, error) ProjectInfo(ctx context.Context, in *ProjectInfoRequest, opts ...grpc.CallOption) (*ProjectInfoResponse, error) } @@ -1676,63 +1678,63 @@ func (c *metainfoClient) SetBucketAttribution(ctx context.Context, in *BucketSet return out, nil } -func (c *metainfoClient) CreateSegment(ctx context.Context, in *SegmentWriteRequest, opts ...grpc.CallOption) (*SegmentWriteResponse, error) { - out := new(SegmentWriteResponse) - err := c.cc.Invoke(ctx, "/metainfo.Metainfo/CreateSegment", in, out, opts...) +func (c *metainfoClient) CreateSegmentOld(ctx context.Context, in *SegmentWriteRequestOld, opts ...grpc.CallOption) (*SegmentWriteResponseOld, error) { + out := new(SegmentWriteResponseOld) + err := c.cc.Invoke(ctx, "/metainfo.Metainfo/CreateSegmentOld", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *metainfoClient) CommitSegment(ctx context.Context, in *SegmentCommitRequest, opts ...grpc.CallOption) (*SegmentCommitResponse, error) { - out := new(SegmentCommitResponse) - err := c.cc.Invoke(ctx, "/metainfo.Metainfo/CommitSegment", in, out, opts...) +func (c *metainfoClient) CommitSegmentOld(ctx context.Context, in *SegmentCommitRequestOld, opts ...grpc.CallOption) (*SegmentCommitResponseOld, error) { + out := new(SegmentCommitResponseOld) + err := c.cc.Invoke(ctx, "/metainfo.Metainfo/CommitSegmentOld", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *metainfoClient) SegmentInfo(ctx context.Context, in *SegmentInfoRequest, opts ...grpc.CallOption) (*SegmentInfoResponse, error) { - out := new(SegmentInfoResponse) - err := c.cc.Invoke(ctx, "/metainfo.Metainfo/SegmentInfo", in, out, opts...) +func (c *metainfoClient) SegmentInfoOld(ctx context.Context, in *SegmentInfoRequestOld, opts ...grpc.CallOption) (*SegmentInfoResponseOld, error) { + out := new(SegmentInfoResponseOld) + err := c.cc.Invoke(ctx, "/metainfo.Metainfo/SegmentInfoOld", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *metainfoClient) DownloadSegment(ctx context.Context, in *SegmentDownloadRequest, opts ...grpc.CallOption) (*SegmentDownloadResponse, error) { - out := new(SegmentDownloadResponse) - err := c.cc.Invoke(ctx, "/metainfo.Metainfo/DownloadSegment", in, out, opts...) +func (c *metainfoClient) DownloadSegmentOld(ctx context.Context, in *SegmentDownloadRequestOld, opts ...grpc.CallOption) (*SegmentDownloadResponseOld, error) { + out := new(SegmentDownloadResponseOld) + err := c.cc.Invoke(ctx, "/metainfo.Metainfo/DownloadSegmentOld", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *metainfoClient) DeleteSegment(ctx context.Context, in *SegmentDeleteRequest, opts ...grpc.CallOption) (*SegmentDeleteResponse, error) { - out := new(SegmentDeleteResponse) - err := c.cc.Invoke(ctx, "/metainfo.Metainfo/DeleteSegment", in, out, opts...) +func (c *metainfoClient) DeleteSegmentOld(ctx context.Context, in *SegmentDeleteRequestOld, opts ...grpc.CallOption) (*SegmentDeleteResponseOld, error) { + out := new(SegmentDeleteResponseOld) + err := c.cc.Invoke(ctx, "/metainfo.Metainfo/DeleteSegmentOld", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *metainfoClient) ListSegments(ctx context.Context, in *ListSegmentsRequest, opts ...grpc.CallOption) (*ListSegmentsResponse, error) { - out := new(ListSegmentsResponse) - err := c.cc.Invoke(ctx, "/metainfo.Metainfo/ListSegments", in, out, opts...) +func (c *metainfoClient) ListSegmentsOld(ctx context.Context, in *ListSegmentsRequestOld, opts ...grpc.CallOption) (*ListSegmentsResponseOld, error) { + out := new(ListSegmentsResponseOld) + err := c.cc.Invoke(ctx, "/metainfo.Metainfo/ListSegmentsOld", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *metainfoClient) SetAttribution(ctx context.Context, in *SetAttributionRequest, opts ...grpc.CallOption) (*SetAttributionResponse, error) { - out := new(SetAttributionResponse) - err := c.cc.Invoke(ctx, "/metainfo.Metainfo/SetAttribution", in, out, opts...) +func (c *metainfoClient) SetAttributionOld(ctx context.Context, in *SetAttributionRequestOld, opts ...grpc.CallOption) (*SetAttributionResponseOld, error) { + out := new(SetAttributionResponseOld) + err := c.cc.Invoke(ctx, "/metainfo.Metainfo/SetAttributionOld", in, out, opts...) if err != nil { return nil, err } @@ -1755,13 +1757,13 @@ type MetainfoServer interface { DeleteBucket(context.Context, *BucketDeleteRequest) (*BucketDeleteResponse, error) ListBuckets(context.Context, *BucketListRequest) (*BucketListResponse, error) SetBucketAttribution(context.Context, *BucketSetAttributionRequest) (*BucketSetAttributionResponse, error) - CreateSegment(context.Context, *SegmentWriteRequest) (*SegmentWriteResponse, error) - CommitSegment(context.Context, *SegmentCommitRequest) (*SegmentCommitResponse, error) - SegmentInfo(context.Context, *SegmentInfoRequest) (*SegmentInfoResponse, error) - DownloadSegment(context.Context, *SegmentDownloadRequest) (*SegmentDownloadResponse, error) - DeleteSegment(context.Context, *SegmentDeleteRequest) (*SegmentDeleteResponse, error) - ListSegments(context.Context, *ListSegmentsRequest) (*ListSegmentsResponse, error) - SetAttribution(context.Context, *SetAttributionRequest) (*SetAttributionResponse, error) + CreateSegmentOld(context.Context, *SegmentWriteRequestOld) (*SegmentWriteResponseOld, error) + CommitSegmentOld(context.Context, *SegmentCommitRequestOld) (*SegmentCommitResponseOld, error) + SegmentInfoOld(context.Context, *SegmentInfoRequestOld) (*SegmentInfoResponseOld, error) + DownloadSegmentOld(context.Context, *SegmentDownloadRequestOld) (*SegmentDownloadResponseOld, error) + DeleteSegmentOld(context.Context, *SegmentDeleteRequestOld) (*SegmentDeleteResponseOld, error) + ListSegmentsOld(context.Context, *ListSegmentsRequestOld) (*ListSegmentsResponseOld, error) + SetAttributionOld(context.Context, *SetAttributionRequestOld) (*SetAttributionResponseOld, error) ProjectInfo(context.Context, *ProjectInfoRequest) (*ProjectInfoResponse, error) } @@ -1859,128 +1861,128 @@ func _Metainfo_SetBucketAttribution_Handler(srv interface{}, ctx context.Context return interceptor(ctx, in, info, handler) } -func _Metainfo_CreateSegment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SegmentWriteRequest) +func _Metainfo_CreateSegmentOld_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SegmentWriteRequestOld) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MetainfoServer).CreateSegment(ctx, in) + return srv.(MetainfoServer).CreateSegmentOld(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/metainfo.Metainfo/CreateSegment", + FullMethod: "/metainfo.Metainfo/CreateSegmentOld", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MetainfoServer).CreateSegment(ctx, req.(*SegmentWriteRequest)) + return srv.(MetainfoServer).CreateSegmentOld(ctx, req.(*SegmentWriteRequestOld)) } return interceptor(ctx, in, info, handler) } -func _Metainfo_CommitSegment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SegmentCommitRequest) +func _Metainfo_CommitSegmentOld_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SegmentCommitRequestOld) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MetainfoServer).CommitSegment(ctx, in) + return srv.(MetainfoServer).CommitSegmentOld(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/metainfo.Metainfo/CommitSegment", + FullMethod: "/metainfo.Metainfo/CommitSegmentOld", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MetainfoServer).CommitSegment(ctx, req.(*SegmentCommitRequest)) + return srv.(MetainfoServer).CommitSegmentOld(ctx, req.(*SegmentCommitRequestOld)) } return interceptor(ctx, in, info, handler) } -func _Metainfo_SegmentInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SegmentInfoRequest) +func _Metainfo_SegmentInfoOld_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SegmentInfoRequestOld) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MetainfoServer).SegmentInfo(ctx, in) + return srv.(MetainfoServer).SegmentInfoOld(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/metainfo.Metainfo/SegmentInfo", + FullMethod: "/metainfo.Metainfo/SegmentInfoOld", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MetainfoServer).SegmentInfo(ctx, req.(*SegmentInfoRequest)) + return srv.(MetainfoServer).SegmentInfoOld(ctx, req.(*SegmentInfoRequestOld)) } return interceptor(ctx, in, info, handler) } -func _Metainfo_DownloadSegment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SegmentDownloadRequest) +func _Metainfo_DownloadSegmentOld_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SegmentDownloadRequestOld) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MetainfoServer).DownloadSegment(ctx, in) + return srv.(MetainfoServer).DownloadSegmentOld(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/metainfo.Metainfo/DownloadSegment", + FullMethod: "/metainfo.Metainfo/DownloadSegmentOld", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MetainfoServer).DownloadSegment(ctx, req.(*SegmentDownloadRequest)) + return srv.(MetainfoServer).DownloadSegmentOld(ctx, req.(*SegmentDownloadRequestOld)) } return interceptor(ctx, in, info, handler) } -func _Metainfo_DeleteSegment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SegmentDeleteRequest) +func _Metainfo_DeleteSegmentOld_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SegmentDeleteRequestOld) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MetainfoServer).DeleteSegment(ctx, in) + return srv.(MetainfoServer).DeleteSegmentOld(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/metainfo.Metainfo/DeleteSegment", + FullMethod: "/metainfo.Metainfo/DeleteSegmentOld", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MetainfoServer).DeleteSegment(ctx, req.(*SegmentDeleteRequest)) + return srv.(MetainfoServer).DeleteSegmentOld(ctx, req.(*SegmentDeleteRequestOld)) } return interceptor(ctx, in, info, handler) } -func _Metainfo_ListSegments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListSegmentsRequest) +func _Metainfo_ListSegmentsOld_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListSegmentsRequestOld) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MetainfoServer).ListSegments(ctx, in) + return srv.(MetainfoServer).ListSegmentsOld(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/metainfo.Metainfo/ListSegments", + FullMethod: "/metainfo.Metainfo/ListSegmentsOld", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MetainfoServer).ListSegments(ctx, req.(*ListSegmentsRequest)) + return srv.(MetainfoServer).ListSegmentsOld(ctx, req.(*ListSegmentsRequestOld)) } return interceptor(ctx, in, info, handler) } -func _Metainfo_SetAttribution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetAttributionRequest) +func _Metainfo_SetAttributionOld_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetAttributionRequestOld) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MetainfoServer).SetAttribution(ctx, in) + return srv.(MetainfoServer).SetAttributionOld(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/metainfo.Metainfo/SetAttribution", + FullMethod: "/metainfo.Metainfo/SetAttributionOld", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MetainfoServer).SetAttribution(ctx, req.(*SetAttributionRequest)) + return srv.(MetainfoServer).SetAttributionOld(ctx, req.(*SetAttributionRequestOld)) } return interceptor(ctx, in, info, handler) } @@ -2028,32 +2030,32 @@ var _Metainfo_serviceDesc = grpc.ServiceDesc{ Handler: _Metainfo_SetBucketAttribution_Handler, }, { - MethodName: "CreateSegment", - Handler: _Metainfo_CreateSegment_Handler, + MethodName: "CreateSegmentOld", + Handler: _Metainfo_CreateSegmentOld_Handler, }, { - MethodName: "CommitSegment", - Handler: _Metainfo_CommitSegment_Handler, + MethodName: "CommitSegmentOld", + Handler: _Metainfo_CommitSegmentOld_Handler, }, { - MethodName: "SegmentInfo", - Handler: _Metainfo_SegmentInfo_Handler, + MethodName: "SegmentInfoOld", + Handler: _Metainfo_SegmentInfoOld_Handler, }, { - MethodName: "DownloadSegment", - Handler: _Metainfo_DownloadSegment_Handler, + MethodName: "DownloadSegmentOld", + Handler: _Metainfo_DownloadSegmentOld_Handler, }, { - MethodName: "DeleteSegment", - Handler: _Metainfo_DeleteSegment_Handler, + MethodName: "DeleteSegmentOld", + Handler: _Metainfo_DeleteSegmentOld_Handler, }, { - MethodName: "ListSegments", - Handler: _Metainfo_ListSegments_Handler, + MethodName: "ListSegmentsOld", + Handler: _Metainfo_ListSegmentsOld_Handler, }, { - MethodName: "SetAttribution", - Handler: _Metainfo_SetAttribution_Handler, + MethodName: "SetAttributionOld", + Handler: _Metainfo_SetAttributionOld_Handler, }, { MethodName: "ProjectInfo", diff --git a/pkg/pb/metainfo.proto b/pkg/pb/metainfo.proto index fecd21ed2..78be46c53 100644 --- a/pkg/pb/metainfo.proto +++ b/pkg/pb/metainfo.proto @@ -21,13 +21,14 @@ service Metainfo { rpc ListBuckets(BucketListRequest) returns (BucketListResponse); rpc SetBucketAttribution(BucketSetAttributionRequest) returns (BucketSetAttributionResponse); - rpc CreateSegment(SegmentWriteRequest) returns (SegmentWriteResponse); - rpc CommitSegment(SegmentCommitRequest) returns (SegmentCommitResponse); - rpc SegmentInfo(SegmentInfoRequest) returns (SegmentInfoResponse); - rpc DownloadSegment(SegmentDownloadRequest) returns (SegmentDownloadResponse); - rpc DeleteSegment(SegmentDeleteRequest) returns (SegmentDeleteResponse); - rpc ListSegments(ListSegmentsRequest) returns (ListSegmentsResponse); - rpc SetAttribution(SetAttributionRequest) returns (SetAttributionResponse); + rpc CreateSegmentOld(SegmentWriteRequestOld) returns (SegmentWriteResponseOld); + rpc CommitSegmentOld(SegmentCommitRequestOld) returns (SegmentCommitResponseOld); + rpc SegmentInfoOld(SegmentInfoRequestOld) returns (SegmentInfoResponseOld); + rpc DownloadSegmentOld(SegmentDownloadRequestOld) returns (SegmentDownloadResponseOld); + rpc DeleteSegmentOld(SegmentDeleteRequestOld) returns (SegmentDeleteResponseOld); + rpc ListSegmentsOld(ListSegmentsRequestOld) returns (ListSegmentsResponseOld); + rpc SetAttributionOld(SetAttributionRequestOld) returns (SetAttributionResponseOld); + rpc ProjectInfo(ProjectInfoRequest) returns (ProjectInfoResponse); } @@ -101,7 +102,7 @@ message AddressedOrderLimit { node.NodeAddress storage_node_address = 2; } -message SegmentWriteRequest { +message SegmentWriteRequestOld { bytes bucket = 1; bytes path = 2; int64 segment = 3; @@ -110,12 +111,12 @@ message SegmentWriteRequest { google.protobuf.Timestamp expiration = 6; } -message SegmentWriteResponse { +message SegmentWriteResponseOld { repeated AddressedOrderLimit addressed_limits = 1; bytes root_piece_id = 2 [(gogoproto.customtype) = "PieceID", (gogoproto.nullable) = false]; } -message SegmentCommitRequest { +message SegmentCommitRequestOld { bytes bucket = 1; bytes path = 2; int64 segment = 3; @@ -123,42 +124,42 @@ message SegmentCommitRequest { repeated orders.OrderLimit original_limits = 5; } -message SegmentCommitResponse { +message SegmentCommitResponseOld { pointerdb.Pointer pointer = 1; } -message SegmentDownloadRequest { +message SegmentDownloadRequestOld { bytes bucket = 1; bytes path = 2; int64 segment = 3; } -message SegmentDownloadResponse { +message SegmentDownloadResponseOld { repeated AddressedOrderLimit addressed_limits = 1; pointerdb.Pointer pointer = 2; } -message SegmentInfoRequest { +message SegmentInfoRequestOld { bytes bucket = 1; bytes path = 2; int64 segment = 3; } -message SegmentInfoResponse { +message SegmentInfoResponseOld { pointerdb.Pointer pointer = 2; } -message SegmentDeleteRequest { +message SegmentDeleteRequestOld { bytes bucket = 1; bytes path = 2; int64 segment = 3; } -message SegmentDeleteResponse { +message SegmentDeleteResponseOld { repeated AddressedOrderLimit addressed_limits = 1; } -message ListSegmentsRequest { +message ListSegmentsRequestOld { bytes bucket = 1; bytes prefix = 2; bytes start_after = 3; @@ -168,7 +169,7 @@ message ListSegmentsRequest { fixed32 meta_flags = 7; } -message ListSegmentsResponse { +message ListSegmentsResponseOld { message Item { bytes path = 1; pointerdb.Pointer pointer = 2; @@ -179,12 +180,12 @@ message ListSegmentsResponse { bool more = 2; } -message SetAttributionRequest{ +message SetAttributionRequestOld { bytes bucket_name = 1; bytes partner_id = 2 ; } -message SetAttributionResponse { +message SetAttributionResponseOld { } message ProjectInfoRequest { diff --git a/proto.lock b/proto.lock index f8ceb1263..706d88c97 100644 --- a/proto.lock +++ b/proto.lock @@ -1819,7 +1819,7 @@ ] }, { - "name": "SegmentWriteRequest", + "name": "SegmentWriteRequestOld", "fields": [ { "id": 1, @@ -1854,7 +1854,7 @@ ] }, { - "name": "SegmentWriteResponse", + "name": "SegmentWriteResponseOld", "fields": [ { "id": 1, @@ -1880,7 +1880,7 @@ ] }, { - "name": "SegmentCommitRequest", + "name": "SegmentCommitRequestOld", "fields": [ { "id": 1, @@ -1911,7 +1911,7 @@ ] }, { - "name": "SegmentCommitResponse", + "name": "SegmentCommitResponseOld", "fields": [ { "id": 1, @@ -1921,7 +1921,7 @@ ] }, { - "name": "SegmentDownloadRequest", + "name": "SegmentDownloadRequestOld", "fields": [ { "id": 1, @@ -1941,7 +1941,7 @@ ] }, { - "name": "SegmentDownloadResponse", + "name": "SegmentDownloadResponseOld", "fields": [ { "id": 1, @@ -1957,7 +1957,7 @@ ] }, { - "name": "SegmentInfoRequest", + "name": "SegmentInfoRequestOld", "fields": [ { "id": 1, @@ -1977,7 +1977,7 @@ ] }, { - "name": "SegmentInfoResponse", + "name": "SegmentInfoResponseOld", "fields": [ { "id": 2, @@ -1987,7 +1987,7 @@ ] }, { - "name": "SegmentDeleteRequest", + "name": "SegmentDeleteRequestOld", "fields": [ { "id": 1, @@ -2007,7 +2007,7 @@ ] }, { - "name": "SegmentDeleteResponse", + "name": "SegmentDeleteResponseOld", "fields": [ { "id": 1, @@ -2018,7 +2018,7 @@ ] }, { - "name": "ListSegmentsRequest", + "name": "ListSegmentsRequestOld", "fields": [ { "id": 1, @@ -2058,7 +2058,7 @@ ] }, { - "name": "ListSegmentsResponse", + "name": "ListSegmentsResponseOld", "fields": [ { "id": 1, @@ -2096,7 +2096,7 @@ ] }, { - "name": "SetAttributionRequest", + "name": "SetAttributionRequestOld", "fields": [ { "id": 1, @@ -2111,7 +2111,7 @@ ] }, { - "name": "SetAttributionResponse" + "name": "SetAttributionResponseOld" }, { "name": "ProjectInfoRequest" @@ -2157,39 +2157,39 @@ "out_type": "BucketSetAttributionResponse" }, { - "name": "CreateSegment", - "in_type": "SegmentWriteRequest", - "out_type": "SegmentWriteResponse" + "name": "CreateSegmentOld", + "in_type": "SegmentWriteRequestOld", + "out_type": "SegmentWriteResponseOld" }, { - "name": "CommitSegment", - "in_type": "SegmentCommitRequest", - "out_type": "SegmentCommitResponse" + "name": "CommitSegmentOld", + "in_type": "SegmentCommitRequestOld", + "out_type": "SegmentCommitResponseOld" }, { - "name": "SegmentInfo", - "in_type": "SegmentInfoRequest", - "out_type": "SegmentInfoResponse" + "name": "SegmentInfoOld", + "in_type": "SegmentInfoRequestOld", + "out_type": "SegmentInfoResponseOld" }, { - "name": "DownloadSegment", - "in_type": "SegmentDownloadRequest", - "out_type": "SegmentDownloadResponse" + "name": "DownloadSegmentOld", + "in_type": "SegmentDownloadRequestOld", + "out_type": "SegmentDownloadResponseOld" }, { - "name": "DeleteSegment", - "in_type": "SegmentDeleteRequest", - "out_type": "SegmentDeleteResponse" + "name": "DeleteSegmentOld", + "in_type": "SegmentDeleteRequestOld", + "out_type": "SegmentDeleteResponseOld" }, { - "name": "ListSegments", - "in_type": "ListSegmentsRequest", - "out_type": "ListSegmentsResponse" + "name": "ListSegmentsOld", + "in_type": "ListSegmentsRequestOld", + "out_type": "ListSegmentsResponseOld" }, { - "name": "SetAttribution", - "in_type": "SetAttributionRequest", - "out_type": "SetAttributionResponse" + "name": "SetAttributionOld", + "in_type": "SetAttributionRequestOld", + "out_type": "SetAttributionResponseOld" }, { "name": "ProjectInfo", diff --git a/satellite/metainfo/metainfo.go b/satellite/metainfo/metainfo.go index d2075f551..6cb71c52e 100644 --- a/satellite/metainfo/metainfo.go +++ b/satellite/metainfo/metainfo.go @@ -88,8 +88,8 @@ func NewEndpoint(log *zap.Logger, metainfo *Service, orders *orders.Service, cac // Close closes resources func (endpoint *Endpoint) Close() error { return nil } -// SegmentInfo returns segment metadata info -func (endpoint *Endpoint) SegmentInfo(ctx context.Context, req *pb.SegmentInfoRequest) (resp *pb.SegmentInfoResponse, err error) { +// SegmentInfoOld returns segment metadata info +func (endpoint *Endpoint) SegmentInfoOld(ctx context.Context, req *pb.SegmentInfoRequestOld) (resp *pb.SegmentInfoResponseOld, err error) { defer mon.Task()(&ctx)(&err) keyInfo, err := endpoint.validateAuth(ctx, macaroon.Action{ @@ -121,11 +121,11 @@ func (endpoint *Endpoint) SegmentInfo(ctx context.Context, req *pb.SegmentInfoRe return nil, status.Errorf(codes.Internal, err.Error()) } - return &pb.SegmentInfoResponse{Pointer: pointer}, nil + return &pb.SegmentInfoResponseOld{Pointer: pointer}, nil } -// CreateSegment will generate requested number of OrderLimit with coresponding node addresses for them -func (endpoint *Endpoint) CreateSegment(ctx context.Context, req *pb.SegmentWriteRequest) (resp *pb.SegmentWriteResponse, err error) { +// CreateSegmentOld will generate requested number of OrderLimit with coresponding node addresses for them +func (endpoint *Endpoint) CreateSegmentOld(ctx context.Context, req *pb.SegmentWriteRequestOld) (resp *pb.SegmentWriteResponseOld, err error) { defer mon.Task()(&ctx)(&err) keyInfo, err := endpoint.validateAuth(ctx, macaroon.Action{ @@ -194,7 +194,7 @@ func (endpoint *Endpoint) CreateSegment(ctx context.Context, req *pb.SegmentWrit }) } - return &pb.SegmentWriteResponse{AddressedLimits: addressedLimits, RootPieceId: rootPieceID}, nil + return &pb.SegmentWriteResponseOld{AddressedLimits: addressedLimits, RootPieceId: rootPieceID}, nil } func calculateSpaceUsed(ptr *pb.Pointer) (inlineSpace, remoteSpace int64) { @@ -213,8 +213,8 @@ func calculateSpaceUsed(ptr *pb.Pointer) (inlineSpace, remoteSpace int64) { return 0, pieceSize * int64(len(pieces)) } -// CommitSegment commits segment metadata -func (endpoint *Endpoint) CommitSegment(ctx context.Context, req *pb.SegmentCommitRequest) (resp *pb.SegmentCommitResponse, err error) { +// CommitSegmentOld commits segment metadata +func (endpoint *Endpoint) CommitSegmentOld(ctx context.Context, req *pb.SegmentCommitRequestOld) (resp *pb.SegmentCommitResponseOld, err error) { defer mon.Task()(&ctx)(&err) keyInfo, err := endpoint.validateAuth(ctx, macaroon.Action{ @@ -276,11 +276,11 @@ func (endpoint *Endpoint) CommitSegment(ctx context.Context, req *pb.SegmentComm endpoint.createRequests.Remove(req.OriginalLimits[0].SerialNumber) } - return &pb.SegmentCommitResponse{Pointer: pointer}, nil + return &pb.SegmentCommitResponseOld{Pointer: pointer}, nil } -// DownloadSegment gets Pointer incase of INLINE data or list of OrderLimit necessary to download remote data -func (endpoint *Endpoint) DownloadSegment(ctx context.Context, req *pb.SegmentDownloadRequest) (resp *pb.SegmentDownloadResponse, err error) { +// DownloadSegmentOld gets Pointer incase of INLINE data or list of OrderLimit necessary to download remote data +func (endpoint *Endpoint) DownloadSegmentOld(ctx context.Context, req *pb.SegmentDownloadRequestOld) (resp *pb.SegmentDownloadResponseOld, err error) { defer mon.Task()(&ctx)(&err) keyInfo, err := endpoint.validateAuth(ctx, macaroon.Action{ @@ -331,7 +331,7 @@ func (endpoint *Endpoint) DownloadSegment(ctx context.Context, req *pb.SegmentDo if err != nil { return nil, status.Errorf(codes.Internal, err.Error()) } - return &pb.SegmentDownloadResponse{Pointer: pointer}, nil + return &pb.SegmentDownloadResponseOld{Pointer: pointer}, nil } else if pointer.Type == pb.Pointer_REMOTE && pointer.Remote != nil { uplinkIdentity, err := identity.PeerIdentityFromContext(ctx) if err != nil { @@ -342,14 +342,14 @@ func (endpoint *Endpoint) DownloadSegment(ctx context.Context, req *pb.SegmentDo return nil, status.Errorf(codes.Internal, err.Error()) } - return &pb.SegmentDownloadResponse{Pointer: pointer, AddressedLimits: limits}, nil + return &pb.SegmentDownloadResponseOld{Pointer: pointer, AddressedLimits: limits}, nil } - return &pb.SegmentDownloadResponse{}, nil + return &pb.SegmentDownloadResponseOld{}, nil } -// DeleteSegment deletes segment metadata from satellite and returns OrderLimit array to remove them from storage node -func (endpoint *Endpoint) DeleteSegment(ctx context.Context, req *pb.SegmentDeleteRequest) (resp *pb.SegmentDeleteResponse, err error) { +// DeleteSegmentOld deletes segment metadata from satellite and returns OrderLimit array to remove them from storage node +func (endpoint *Endpoint) DeleteSegmentOld(ctx context.Context, req *pb.SegmentDeleteRequestOld) (resp *pb.SegmentDeleteResponseOld, err error) { defer mon.Task()(&ctx)(&err) keyInfo, err := endpoint.validateAuth(ctx, macaroon.Action{ @@ -406,14 +406,14 @@ func (endpoint *Endpoint) DeleteSegment(ctx context.Context, req *pb.SegmentDele return nil, status.Errorf(codes.Internal, err.Error()) } - return &pb.SegmentDeleteResponse{AddressedLimits: limits}, nil + return &pb.SegmentDeleteResponseOld{AddressedLimits: limits}, nil } - return &pb.SegmentDeleteResponse{}, nil + return &pb.SegmentDeleteResponseOld{}, nil } -// ListSegments returns all Path keys in the Pointers bucket -func (endpoint *Endpoint) ListSegments(ctx context.Context, req *pb.ListSegmentsRequest) (resp *pb.ListSegmentsResponse, err error) { +// ListSegmentsOld returns all Path keys in the Pointers bucket +func (endpoint *Endpoint) ListSegmentsOld(ctx context.Context, req *pb.ListSegmentsRequestOld) (resp *pb.ListSegmentsResponseOld, err error) { defer mon.Task()(&ctx)(&err) keyInfo, err := endpoint.validateAuth(ctx, macaroon.Action{ @@ -436,16 +436,16 @@ func (endpoint *Endpoint) ListSegments(ctx context.Context, req *pb.ListSegments return nil, status.Errorf(codes.Internal, "ListV2: %v", err) } - segmentItems := make([]*pb.ListSegmentsResponse_Item, len(items)) + segmentItems := make([]*pb.ListSegmentsResponseOld_Item, len(items)) for i, item := range items { - segmentItems[i] = &pb.ListSegmentsResponse_Item{ + segmentItems[i] = &pb.ListSegmentsResponseOld_Item{ Path: []byte(item.Path), Pointer: item.Pointer, IsPrefix: item.IsPrefix, } } - return &pb.ListSegmentsResponse{Items: segmentItems, More: more}, nil + return &pb.ListSegmentsResponseOld{Items: segmentItems, More: more}, nil } func createBucketID(projectID uuid.UUID, bucket []byte) []byte { @@ -543,8 +543,8 @@ func CreatePath(ctx context.Context, projectID uuid.UUID, segmentIndex int64, bu return storj.JoinPaths(entries...), nil } -// SetAttribution tries to add attribution to the bucket. -func (endpoint *Endpoint) SetAttribution(ctx context.Context, req *pb.SetAttributionRequest) (_ *pb.SetAttributionResponse, err error) { +// SetAttributionOld tries to add attribution to the bucket. +func (endpoint *Endpoint) SetAttributionOld(ctx context.Context, req *pb.SetAttributionRequestOld) (_ *pb.SetAttributionResponseOld, err error) { defer mon.Task()(&ctx)(&err) // try to add an attribution that doesn't exist @@ -567,7 +567,7 @@ func (endpoint *Endpoint) SetAttribution(ctx context.Context, req *pb.SetAttribu _, err = endpoint.partnerinfo.Get(ctx, keyInfo.ProjectID, req.GetBucketName()) if err == nil { endpoint.log.Sugar().Info("Bucket:", string(req.BucketName), " PartnerID:", partnerID.String(), "already attributed") - return &pb.SetAttributionResponse{}, nil + return &pb.SetAttributionResponseOld{}, nil } if !attribution.ErrBucketNotAttributed.Has(err) { @@ -597,7 +597,7 @@ func (endpoint *Endpoint) SetAttribution(ctx context.Context, req *pb.SetAttribu if err != nil { return nil, Error.Wrap(err) } - return &pb.SetAttributionResponse{}, nil + return &pb.SetAttributionResponseOld{}, nil } // bytesToUUID is used to convert []byte to UUID diff --git a/satellite/metainfo/validation.go b/satellite/metainfo/validation.go index 39d85ac7c..13e62e361 100644 --- a/satellite/metainfo/validation.go +++ b/satellite/metainfo/validation.go @@ -150,7 +150,7 @@ func (endpoint *Endpoint) validateAuth(ctx context.Context, action macaroon.Acti return keyInfo, nil } -func (endpoint *Endpoint) validateCreateSegment(ctx context.Context, req *pb.SegmentWriteRequest) (err error) { +func (endpoint *Endpoint) validateCreateSegment(ctx context.Context, req *pb.SegmentWriteRequestOld) (err error) { defer mon.Task()(&ctx)(&err) err = endpoint.validateBucket(ctx, req.Bucket) @@ -166,7 +166,7 @@ func (endpoint *Endpoint) validateCreateSegment(ctx context.Context, req *pb.Seg return nil } -func (endpoint *Endpoint) validateCommitSegment(ctx context.Context, req *pb.SegmentCommitRequest) (err error) { +func (endpoint *Endpoint) validateCommitSegment(ctx context.Context, req *pb.SegmentCommitRequestOld) (err error) { defer mon.Task()(&ctx)(&err) err = endpoint.validateBucket(ctx, req.Bucket) diff --git a/uplink/metainfo/client.go b/uplink/metainfo/client.go index 8c7966f68..e58985821 100644 --- a/uplink/metainfo/client.go +++ b/uplink/metainfo/client.go @@ -88,7 +88,7 @@ func (client *Client) CreateSegment(ctx context.Context, bucket string, path sto } } - response, err := client.client.CreateSegment(ctx, &pb.SegmentWriteRequest{ + response, err := client.client.CreateSegmentOld(ctx, &pb.SegmentWriteRequestOld{ Bucket: []byte(bucket), Path: []byte(path), Segment: segmentIndex, @@ -107,7 +107,7 @@ func (client *Client) CreateSegment(ctx context.Context, bucket string, path sto func (client *Client) CommitSegment(ctx context.Context, bucket string, path storj.Path, segmentIndex int64, pointer *pb.Pointer, originalLimits []*pb.OrderLimit) (savedPointer *pb.Pointer, err error) { defer mon.Task()(&ctx)(&err) - response, err := client.client.CommitSegment(ctx, &pb.SegmentCommitRequest{ + response, err := client.client.CommitSegmentOld(ctx, &pb.SegmentCommitRequestOld{ Bucket: []byte(bucket), Path: []byte(path), Segment: segmentIndex, @@ -125,7 +125,7 @@ func (client *Client) CommitSegment(ctx context.Context, bucket string, path sto func (client *Client) SegmentInfo(ctx context.Context, bucket string, path storj.Path, segmentIndex int64) (pointer *pb.Pointer, err error) { defer mon.Task()(&ctx)(&err) - response, err := client.client.SegmentInfo(ctx, &pb.SegmentInfoRequest{ + response, err := client.client.SegmentInfoOld(ctx, &pb.SegmentInfoRequestOld{ Bucket: []byte(bucket), Path: []byte(path), Segment: segmentIndex, @@ -144,7 +144,7 @@ func (client *Client) SegmentInfo(ctx context.Context, bucket string, path storj func (client *Client) ReadSegment(ctx context.Context, bucket string, path storj.Path, segmentIndex int64) (pointer *pb.Pointer, limits []*pb.AddressedOrderLimit, err error) { defer mon.Task()(&ctx)(&err) - response, err := client.client.DownloadSegment(ctx, &pb.SegmentDownloadRequest{ + response, err := client.client.DownloadSegmentOld(ctx, &pb.SegmentDownloadRequestOld{ Bucket: []byte(bucket), Path: []byte(path), Segment: segmentIndex, @@ -181,7 +181,7 @@ func getLimitByStorageNodeID(limits []*pb.AddressedOrderLimit, storageNodeID sto func (client *Client) DeleteSegment(ctx context.Context, bucket string, path storj.Path, segmentIndex int64) (limits []*pb.AddressedOrderLimit, err error) { defer mon.Task()(&ctx)(&err) - response, err := client.client.DeleteSegment(ctx, &pb.SegmentDeleteRequest{ + response, err := client.client.DeleteSegmentOld(ctx, &pb.SegmentDeleteRequestOld{ Bucket: []byte(bucket), Path: []byte(path), Segment: segmentIndex, @@ -200,7 +200,7 @@ func (client *Client) DeleteSegment(ctx context.Context, bucket string, path sto func (client *Client) ListSegments(ctx context.Context, bucket string, prefix, startAfter, endBefore storj.Path, recursive bool, limit int32, metaFlags uint32) (items []ListItem, more bool, err error) { defer mon.Task()(&ctx)(&err) - response, err := client.client.ListSegments(ctx, &pb.ListSegmentsRequest{ + response, err := client.client.ListSegmentsOld(ctx, &pb.ListSegmentsRequestOld{ Bucket: []byte(bucket), Prefix: []byte(prefix), StartAfter: []byte(startAfter), @@ -230,7 +230,7 @@ func (client *Client) ListSegments(ctx context.Context, bucket string, prefix, s func (client *Client) SetAttribution(ctx context.Context, bucket string, partnerID uuid.UUID) (err error) { defer mon.Task()(&ctx)(&err) - _, err = client.client.SetAttribution(ctx, &pb.SetAttributionRequest{ + _, err = client.client.SetAttributionOld(ctx, &pb.SetAttributionRequestOld{ PartnerId: partnerID[:], // TODO: implement storj.UUID that can be sent using pb BucketName: []byte(bucket), })