ea38860aab
For object Version in different places we are using different types. Satellite StreamID is using int32 but metabase accepts int64. Metabase type is correct one and we should align other places with it. As a small addition this change is also passing version correctly between requests instead of using hardcoded value. Change-Id: I63634d73c0a48c009e4db5f203ff18b7f3218b02
262 lines
10 KiB
Go
262 lines
10 KiB
Go
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: metainfo_sat.proto
|
|
|
|
package internalpb
|
|
|
|
import (
|
|
fmt "fmt"
|
|
math "math"
|
|
time "time"
|
|
|
|
proto "github.com/gogo/protobuf/proto"
|
|
|
|
pb "storj.io/common/pb"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
var _ = time.Kitchen
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
type StreamID struct {
|
|
Bucket []byte `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"`
|
|
EncryptedObjectKey []byte `protobuf:"bytes,2,opt,name=encrypted_object_key,json=encryptedObjectKey,proto3" json:"encrypted_object_key,omitempty"`
|
|
Version int64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
|
|
EncryptionParameters *pb.EncryptionParameters `protobuf:"bytes,12,opt,name=encryption_parameters,json=encryptionParameters,proto3" json:"encryption_parameters,omitempty"`
|
|
CreationDate time.Time `protobuf:"bytes,5,opt,name=creation_date,json=creationDate,proto3,stdtime" json:"creation_date"`
|
|
ExpirationDate time.Time `protobuf:"bytes,6,opt,name=expiration_date,json=expirationDate,proto3,stdtime" json:"expiration_date"`
|
|
MultipartObject bool `protobuf:"varint,11,opt,name=multipart_object,json=multipartObject,proto3" json:"multipart_object,omitempty"`
|
|
SatelliteSignature []byte `protobuf:"bytes,9,opt,name=satellite_signature,json=satelliteSignature,proto3" json:"satellite_signature,omitempty"`
|
|
StreamId []byte `protobuf:"bytes,10,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"`
|
|
Placement int32 `protobuf:"varint,13,opt,name=placement,proto3" json:"placement,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *StreamID) Reset() { *m = StreamID{} }
|
|
func (m *StreamID) String() string { return proto.CompactTextString(m) }
|
|
func (*StreamID) ProtoMessage() {}
|
|
func (*StreamID) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_47c60bd892d94aaf, []int{0}
|
|
}
|
|
func (m *StreamID) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_StreamID.Unmarshal(m, b)
|
|
}
|
|
func (m *StreamID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_StreamID.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *StreamID) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_StreamID.Merge(m, src)
|
|
}
|
|
func (m *StreamID) XXX_Size() int {
|
|
return xxx_messageInfo_StreamID.Size(m)
|
|
}
|
|
func (m *StreamID) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_StreamID.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_StreamID proto.InternalMessageInfo
|
|
|
|
func (m *StreamID) GetBucket() []byte {
|
|
if m != nil {
|
|
return m.Bucket
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *StreamID) GetEncryptedObjectKey() []byte {
|
|
if m != nil {
|
|
return m.EncryptedObjectKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *StreamID) GetVersion() int64 {
|
|
if m != nil {
|
|
return m.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *StreamID) GetEncryptionParameters() *pb.EncryptionParameters {
|
|
if m != nil {
|
|
return m.EncryptionParameters
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *StreamID) GetCreationDate() time.Time {
|
|
if m != nil {
|
|
return m.CreationDate
|
|
}
|
|
return time.Time{}
|
|
}
|
|
|
|
func (m *StreamID) GetExpirationDate() time.Time {
|
|
if m != nil {
|
|
return m.ExpirationDate
|
|
}
|
|
return time.Time{}
|
|
}
|
|
|
|
func (m *StreamID) GetMultipartObject() bool {
|
|
if m != nil {
|
|
return m.MultipartObject
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *StreamID) GetSatelliteSignature() []byte {
|
|
if m != nil {
|
|
return m.SatelliteSignature
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *StreamID) GetStreamId() []byte {
|
|
if m != nil {
|
|
return m.StreamId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *StreamID) GetPlacement() int32 {
|
|
if m != nil {
|
|
return m.Placement
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SegmentID struct {
|
|
StreamId *StreamID `protobuf:"bytes,1,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"`
|
|
PartNumber int32 `protobuf:"varint,2,opt,name=part_number,json=partNumber,proto3" json:"part_number,omitempty"`
|
|
Index int32 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
|
|
RootPieceId PieceID `protobuf:"bytes,5,opt,name=root_piece_id,json=rootPieceId,proto3,customtype=PieceID" json:"root_piece_id"`
|
|
OriginalOrderLimits []*pb.AddressedOrderLimit `protobuf:"bytes,6,rep,name=original_order_limits,json=originalOrderLimits,proto3" json:"original_order_limits,omitempty"`
|
|
CreationDate time.Time `protobuf:"bytes,7,opt,name=creation_date,json=creationDate,proto3,stdtime" json:"creation_date"`
|
|
SatelliteSignature []byte `protobuf:"bytes,8,opt,name=satellite_signature,json=satelliteSignature,proto3" json:"satellite_signature,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *SegmentID) Reset() { *m = SegmentID{} }
|
|
func (m *SegmentID) String() string { return proto.CompactTextString(m) }
|
|
func (*SegmentID) ProtoMessage() {}
|
|
func (*SegmentID) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_47c60bd892d94aaf, []int{1}
|
|
}
|
|
func (m *SegmentID) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_SegmentID.Unmarshal(m, b)
|
|
}
|
|
func (m *SegmentID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_SegmentID.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *SegmentID) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SegmentID.Merge(m, src)
|
|
}
|
|
func (m *SegmentID) XXX_Size() int {
|
|
return xxx_messageInfo_SegmentID.Size(m)
|
|
}
|
|
func (m *SegmentID) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SegmentID.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SegmentID proto.InternalMessageInfo
|
|
|
|
func (m *SegmentID) GetStreamId() *StreamID {
|
|
if m != nil {
|
|
return m.StreamId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *SegmentID) GetPartNumber() int32 {
|
|
if m != nil {
|
|
return m.PartNumber
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *SegmentID) GetIndex() int32 {
|
|
if m != nil {
|
|
return m.Index
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *SegmentID) GetOriginalOrderLimits() []*pb.AddressedOrderLimit {
|
|
if m != nil {
|
|
return m.OriginalOrderLimits
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *SegmentID) GetCreationDate() time.Time {
|
|
if m != nil {
|
|
return m.CreationDate
|
|
}
|
|
return time.Time{}
|
|
}
|
|
|
|
func (m *SegmentID) GetSatelliteSignature() []byte {
|
|
if m != nil {
|
|
return m.SatelliteSignature
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*StreamID)(nil), "satellite.metainfo.StreamID")
|
|
proto.RegisterType((*SegmentID)(nil), "satellite.metainfo.SegmentID")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("metainfo_sat.proto", fileDescriptor_47c60bd892d94aaf) }
|
|
|
|
var fileDescriptor_47c60bd892d94aaf = []byte{
|
|
// 548 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x52, 0xcf, 0x6e, 0xd3, 0x4e,
|
|
0x10, 0xfe, 0xf9, 0x17, 0xe5, 0xdf, 0x26, 0x69, 0xaa, 0x6d, 0x8a, 0xac, 0x50, 0x14, 0xab, 0x08,
|
|
0xc9, 0x5c, 0x6c, 0xd4, 0x9e, 0x38, 0x12, 0x85, 0x43, 0xc4, 0x9f, 0x16, 0x07, 0x2e, 0x5c, 0xac,
|
|
0xb5, 0x3d, 0xb5, 0xb6, 0xb5, 0x77, 0xad, 0xdd, 0x09, 0x6a, 0x8e, 0xbc, 0x01, 0x8f, 0xc5, 0x33,
|
|
0x70, 0x28, 0x6f, 0xc1, 0x19, 0x79, 0x1d, 0x3b, 0x91, 0x68, 0x0f, 0x70, 0x9b, 0xf9, 0xe6, 0xdb,
|
|
0x6f, 0x76, 0xbe, 0x19, 0x42, 0x73, 0x40, 0xc6, 0xc5, 0x95, 0x0c, 0x35, 0x43, 0xaf, 0x50, 0x12,
|
|
0x25, 0xa5, 0x9a, 0x21, 0x64, 0x19, 0x47, 0xf0, 0xea, 0xea, 0xf4, 0x10, 0x44, 0xac, 0x36, 0x05,
|
|
0x72, 0x29, 0x2a, 0xd6, 0x94, 0xa4, 0x32, 0x95, 0xdb, 0x78, 0x96, 0x4a, 0x99, 0x66, 0xe0, 0x9b,
|
|
0x2c, 0x5a, 0x5f, 0xf9, 0xc8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