github.com/iikira/iikira-go-utils@v0.0.0-20230610031953-f2cb11cde33a/requester/transfer/transfer.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: transfer/transfer.proto 3 4 package transfer 5 6 import ( 7 fmt "fmt" 8 proto "github.com/golang/protobuf/proto" 9 math "math" 10 ) 11 12 // Reference imports to suppress errors if they are not otherwise used. 13 var _ = proto.Marshal 14 var _ = fmt.Errorf 15 var _ = math.Inf 16 17 // This is a compile-time assertion to ensure that this generated file 18 // is compatible with the proto package it is being compiled against. 19 // A compilation error at this line likely means your copy of the 20 // proto package needs to be updated. 21 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 23 // RangeGenMode 线程分配方式 24 type RangeGenMode int32 25 26 const ( 27 // RangeGenMode_Default 根据parallel平均生成 28 RangeGenMode_Default RangeGenMode = 0 29 // RangeGenMode_BlockSize 根据blockSize生成 30 RangeGenMode_BlockSize RangeGenMode = 1 31 ) 32 33 var RangeGenMode_name = map[int32]string{ 34 0: "Default", 35 1: "BlockSize", 36 } 37 38 var RangeGenMode_value = map[string]int32{ 39 "Default": 0, 40 "BlockSize": 1, 41 } 42 43 func (x RangeGenMode) String() string { 44 return proto.EnumName(RangeGenMode_name, int32(x)) 45 } 46 47 func (RangeGenMode) EnumDescriptor() ([]byte, []int) { 48 return fileDescriptor_44038b0c710d7f2f, []int{0} 49 } 50 51 //Range 请求范围 52 type Range struct { 53 Begin int64 `protobuf:"varint,1,opt,name=begin,proto3" json:"begin,omitempty"` 54 End int64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"` 55 XXX_NoUnkeyedLiteral struct{} `json:"-"` 56 XXX_unrecognized []byte `json:"-"` 57 XXX_sizecache int32 `json:"-"` 58 } 59 60 func (m *Range) Reset() { *m = Range{} } 61 func (m *Range) String() string { return proto.CompactTextString(m) } 62 func (*Range) ProtoMessage() {} 63 func (*Range) Descriptor() ([]byte, []int) { 64 return fileDescriptor_44038b0c710d7f2f, []int{0} 65 } 66 67 func (m *Range) XXX_Unmarshal(b []byte) error { 68 return xxx_messageInfo_Range.Unmarshal(m, b) 69 } 70 func (m *Range) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 71 return xxx_messageInfo_Range.Marshal(b, m, deterministic) 72 } 73 func (m *Range) XXX_Merge(src proto.Message) { 74 xxx_messageInfo_Range.Merge(m, src) 75 } 76 func (m *Range) XXX_Size() int { 77 return xxx_messageInfo_Range.Size(m) 78 } 79 func (m *Range) XXX_DiscardUnknown() { 80 xxx_messageInfo_Range.DiscardUnknown(m) 81 } 82 83 var xxx_messageInfo_Range proto.InternalMessageInfo 84 85 func (m *Range) GetBegin() int64 { 86 if m != nil { 87 return m.Begin 88 } 89 return 0 90 } 91 92 func (m *Range) GetEnd() int64 { 93 if m != nil { 94 return m.End 95 } 96 return 0 97 } 98 99 // DownloadInstanceInfoExport 断点续传 100 type DownloadInstanceInfoExport struct { 101 RangeGenMode RangeGenMode `protobuf:"varint,1,opt,name=range_gen_mode,json=rangeGenMode,proto3,enum=transfer.RangeGenMode" json:"range_gen_mode,omitempty"` 102 TotalSize int64 `protobuf:"varint,2,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"` 103 GenBegin int64 `protobuf:"varint,3,opt,name=gen_begin,json=genBegin,proto3" json:"gen_begin,omitempty"` 104 BlockSize int64 `protobuf:"varint,4,opt,name=block_size,json=blockSize,proto3" json:"block_size,omitempty"` 105 Ranges []*Range `protobuf:"bytes,5,rep,name=ranges,proto3" json:"ranges,omitempty"` 106 XXX_NoUnkeyedLiteral struct{} `json:"-"` 107 XXX_unrecognized []byte `json:"-"` 108 XXX_sizecache int32 `json:"-"` 109 } 110 111 func (m *DownloadInstanceInfoExport) Reset() { *m = DownloadInstanceInfoExport{} } 112 func (m *DownloadInstanceInfoExport) String() string { return proto.CompactTextString(m) } 113 func (*DownloadInstanceInfoExport) ProtoMessage() {} 114 func (*DownloadInstanceInfoExport) Descriptor() ([]byte, []int) { 115 return fileDescriptor_44038b0c710d7f2f, []int{1} 116 } 117 118 func (m *DownloadInstanceInfoExport) XXX_Unmarshal(b []byte) error { 119 return xxx_messageInfo_DownloadInstanceInfoExport.Unmarshal(m, b) 120 } 121 func (m *DownloadInstanceInfoExport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 122 return xxx_messageInfo_DownloadInstanceInfoExport.Marshal(b, m, deterministic) 123 } 124 func (m *DownloadInstanceInfoExport) XXX_Merge(src proto.Message) { 125 xxx_messageInfo_DownloadInstanceInfoExport.Merge(m, src) 126 } 127 func (m *DownloadInstanceInfoExport) XXX_Size() int { 128 return xxx_messageInfo_DownloadInstanceInfoExport.Size(m) 129 } 130 func (m *DownloadInstanceInfoExport) XXX_DiscardUnknown() { 131 xxx_messageInfo_DownloadInstanceInfoExport.DiscardUnknown(m) 132 } 133 134 var xxx_messageInfo_DownloadInstanceInfoExport proto.InternalMessageInfo 135 136 func (m *DownloadInstanceInfoExport) GetRangeGenMode() RangeGenMode { 137 if m != nil { 138 return m.RangeGenMode 139 } 140 return RangeGenMode_Default 141 } 142 143 func (m *DownloadInstanceInfoExport) GetTotalSize() int64 { 144 if m != nil { 145 return m.TotalSize 146 } 147 return 0 148 } 149 150 func (m *DownloadInstanceInfoExport) GetGenBegin() int64 { 151 if m != nil { 152 return m.GenBegin 153 } 154 return 0 155 } 156 157 func (m *DownloadInstanceInfoExport) GetBlockSize() int64 { 158 if m != nil { 159 return m.BlockSize 160 } 161 return 0 162 } 163 164 func (m *DownloadInstanceInfoExport) GetRanges() []*Range { 165 if m != nil { 166 return m.Ranges 167 } 168 return nil 169 } 170 171 func init() { 172 proto.RegisterEnum("transfer.RangeGenMode", RangeGenMode_name, RangeGenMode_value) 173 proto.RegisterType((*Range)(nil), "transfer.Range") 174 proto.RegisterType((*DownloadInstanceInfoExport)(nil), "transfer.DownloadInstanceInfoExport") 175 } 176 177 func init() { proto.RegisterFile("transfer/transfer.proto", fileDescriptor_44038b0c710d7f2f) } 178 179 var fileDescriptor_44038b0c710d7f2f = []byte{ 180 // 260 bytes of a gzipped FileDescriptorProto 181 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0x41, 0x4b, 0xc3, 0x40, 182 0x10, 0x85, 0x8d, 0x31, 0xb5, 0x99, 0xd6, 0x1a, 0x16, 0xd1, 0xa0, 0x14, 0x4a, 0x2f, 0x96, 0x1e, 183 0x5a, 0xa8, 0x57, 0x4f, 0xa5, 0x22, 0x3d, 0x78, 0x89, 0x3f, 0x20, 0x6c, 0x9a, 0x49, 0x08, 0xc6, 184 0x99, 0xb2, 0x59, 0x51, 0xfa, 0x63, 0xfd, 0x2d, 0x92, 0x49, 0x23, 0xa1, 0xb7, 0x7d, 0x6f, 0x78, 185 0xef, 0x7d, 0x2c, 0xdc, 0x59, 0xa3, 0xa9, 0xca, 0xd0, 0x2c, 0xdb, 0xc7, 0x62, 0x6f, 0xd8, 0xb2, 186 0xea, 0xb7, 0x7a, 0xba, 0x04, 0x2f, 0xd2, 0x94, 0xa3, 0xba, 0x01, 0x2f, 0xc1, 0xbc, 0xa0, 0xd0, 187 0x99, 0x38, 0x33, 0x37, 0x6a, 0x84, 0x0a, 0xc0, 0x45, 0x4a, 0xc3, 0x73, 0xf1, 0xea, 0xe7, 0xf4, 188 0xd7, 0x81, 0xfb, 0x0d, 0x7f, 0x53, 0xc9, 0x3a, 0xdd, 0x52, 0x65, 0x35, 0xed, 0x70, 0x4b, 0x19, 189 0xbf, 0xfc, 0xec, 0xd9, 0x58, 0xf5, 0x0c, 0x23, 0x53, 0xf7, 0xc5, 0x39, 0x52, 0xfc, 0xc9, 0x29, 190 0x4a, 0xdf, 0x68, 0x75, 0xbb, 0xf8, 0x47, 0x90, 0xbd, 0x57, 0xa4, 0x37, 0x4e, 0x31, 0x1a, 0x9a, 191 0x8e, 0x52, 0x63, 0x00, 0xcb, 0x56, 0x97, 0x71, 0x55, 0x1c, 0xf0, 0xb8, 0xea, 0x8b, 0xf3, 0x5e, 192 0x1c, 0x50, 0x3d, 0x80, 0x5f, 0xd7, 0x36, 0x9c, 0xae, 0x5c, 0xfb, 0x39, 0xd2, 0x5a, 0x50, 0xc7, 193 0x00, 0x49, 0xc9, 0xbb, 0x8f, 0x26, 0x7b, 0xd1, 0x64, 0xc5, 0x91, 0xec, 0x23, 0xf4, 0x64, 0xaa, 194 0x0a, 0xbd, 0x89, 0x3b, 0x1b, 0xac, 0xae, 0x4f, 0x80, 0xa2, 0xe3, 0x79, 0x3e, 0x87, 0x61, 0x97, 195 0x50, 0x0d, 0xe0, 0x72, 0x83, 0x99, 0xfe, 0x2a, 0x6d, 0x70, 0xa6, 0xae, 0xc0, 0x5f, 0xb7, 0x95, 196 0x81, 0x93, 0xf4, 0xe4, 0x3b, 0x9f, 0xfe, 0x02, 0x00, 0x00, 0xff, 0xff, 0xe8, 0x5c, 0x09, 0xcc, 197 0x69, 0x01, 0x00, 0x00, 198 }