fileCenter.pb.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.27.1
  4. // protoc v3.19.4
  5. // source: fileCenter.proto
  6. package pb
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. //公共返回 status
  20. type FileResp struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. ErrorMsg string `protobuf:"bytes,1,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"`
  25. ErrorCode int64 `protobuf:"varint,2,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"`
  26. Status int64 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
  27. }
  28. func (x *FileResp) Reset() {
  29. *x = FileResp{}
  30. if protoimpl.UnsafeEnabled {
  31. mi := &file_fileCenter_proto_msgTypes[0]
  32. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  33. ms.StoreMessageInfo(mi)
  34. }
  35. }
  36. func (x *FileResp) String() string {
  37. return protoimpl.X.MessageStringOf(x)
  38. }
  39. func (*FileResp) ProtoMessage() {}
  40. func (x *FileResp) ProtoReflect() protoreflect.Message {
  41. mi := &file_fileCenter_proto_msgTypes[0]
  42. if protoimpl.UnsafeEnabled && x != nil {
  43. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  44. if ms.LoadMessageInfo() == nil {
  45. ms.StoreMessageInfo(mi)
  46. }
  47. return ms
  48. }
  49. return mi.MessageOf(x)
  50. }
  51. // Deprecated: Use FileResp.ProtoReflect.Descriptor instead.
  52. func (*FileResp) Descriptor() ([]byte, []int) {
  53. return file_fileCenter_proto_rawDescGZIP(), []int{0}
  54. }
  55. func (x *FileResp) GetErrorMsg() string {
  56. if x != nil {
  57. return x.ErrorMsg
  58. }
  59. return ""
  60. }
  61. func (x *FileResp) GetErrorCode() int64 {
  62. if x != nil {
  63. return x.ErrorCode
  64. }
  65. return 0
  66. }
  67. func (x *FileResp) GetStatus() int64 {
  68. if x != nil {
  69. return x.Status
  70. }
  71. return 0
  72. }
  73. type UploadReq struct {
  74. state protoimpl.MessageState
  75. sizeCache protoimpl.SizeCache
  76. unknownFields protoimpl.UnknownFields
  77. File []byte `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
  78. OssBucketName string `protobuf:"bytes,2,opt,name=ossBucketName,proto3" json:"ossBucketName,omitempty"`
  79. OssUrl string `protobuf:"bytes,3,opt,name=ossUrl,proto3" json:"ossUrl,omitempty"`
  80. Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
  81. NeedEncryption bool `protobuf:"varint,5,opt,name=needEncryption,proto3" json:"needEncryption,omitempty"`
  82. }
  83. func (x *UploadReq) Reset() {
  84. *x = UploadReq{}
  85. if protoimpl.UnsafeEnabled {
  86. mi := &file_fileCenter_proto_msgTypes[1]
  87. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  88. ms.StoreMessageInfo(mi)
  89. }
  90. }
  91. func (x *UploadReq) String() string {
  92. return protoimpl.X.MessageStringOf(x)
  93. }
  94. func (*UploadReq) ProtoMessage() {}
  95. func (x *UploadReq) ProtoReflect() protoreflect.Message {
  96. mi := &file_fileCenter_proto_msgTypes[1]
  97. if protoimpl.UnsafeEnabled && x != nil {
  98. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  99. if ms.LoadMessageInfo() == nil {
  100. ms.StoreMessageInfo(mi)
  101. }
  102. return ms
  103. }
  104. return mi.MessageOf(x)
  105. }
  106. // Deprecated: Use UploadReq.ProtoReflect.Descriptor instead.
  107. func (*UploadReq) Descriptor() ([]byte, []int) {
  108. return file_fileCenter_proto_rawDescGZIP(), []int{1}
  109. }
  110. func (x *UploadReq) GetFile() []byte {
  111. if x != nil {
  112. return x.File
  113. }
  114. return nil
  115. }
  116. func (x *UploadReq) GetOssBucketName() string {
  117. if x != nil {
  118. return x.OssBucketName
  119. }
  120. return ""
  121. }
  122. func (x *UploadReq) GetOssUrl() string {
  123. if x != nil {
  124. return x.OssUrl
  125. }
  126. return ""
  127. }
  128. func (x *UploadReq) GetName() string {
  129. if x != nil {
  130. return x.Name
  131. }
  132. return ""
  133. }
  134. func (x *UploadReq) GetNeedEncryption() bool {
  135. if x != nil {
  136. return x.NeedEncryption
  137. }
  138. return false
  139. }
  140. //文件上传返回参数
  141. type UploadResp struct {
  142. state protoimpl.MessageState
  143. sizeCache protoimpl.SizeCache
  144. unknownFields protoimpl.UnknownFields
  145. ErrorMsg string `protobuf:"bytes,1,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"`
  146. ErrorCode int64 `protobuf:"varint,2,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"`
  147. Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
  148. Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
  149. }
  150. func (x *UploadResp) Reset() {
  151. *x = UploadResp{}
  152. if protoimpl.UnsafeEnabled {
  153. mi := &file_fileCenter_proto_msgTypes[2]
  154. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  155. ms.StoreMessageInfo(mi)
  156. }
  157. }
  158. func (x *UploadResp) String() string {
  159. return protoimpl.X.MessageStringOf(x)
  160. }
  161. func (*UploadResp) ProtoMessage() {}
  162. func (x *UploadResp) ProtoReflect() protoreflect.Message {
  163. mi := &file_fileCenter_proto_msgTypes[2]
  164. if protoimpl.UnsafeEnabled && x != nil {
  165. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  166. if ms.LoadMessageInfo() == nil {
  167. ms.StoreMessageInfo(mi)
  168. }
  169. return ms
  170. }
  171. return mi.MessageOf(x)
  172. }
  173. // Deprecated: Use UploadResp.ProtoReflect.Descriptor instead.
  174. func (*UploadResp) Descriptor() ([]byte, []int) {
  175. return file_fileCenter_proto_rawDescGZIP(), []int{2}
  176. }
  177. func (x *UploadResp) GetErrorMsg() string {
  178. if x != nil {
  179. return x.ErrorMsg
  180. }
  181. return ""
  182. }
  183. func (x *UploadResp) GetErrorCode() int64 {
  184. if x != nil {
  185. return x.ErrorCode
  186. }
  187. return 0
  188. }
  189. func (x *UploadResp) GetUrl() string {
  190. if x != nil {
  191. return x.Url
  192. }
  193. return ""
  194. }
  195. func (x *UploadResp) GetKey() string {
  196. if x != nil {
  197. return x.Key
  198. }
  199. return ""
  200. }
  201. type DeleteFileReq struct {
  202. state protoimpl.MessageState
  203. sizeCache protoimpl.SizeCache
  204. unknownFields protoimpl.UnknownFields
  205. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  206. OssBucketName string `protobuf:"bytes,2,opt,name=ossBucketName,proto3" json:"ossBucketName,omitempty"`
  207. }
  208. func (x *DeleteFileReq) Reset() {
  209. *x = DeleteFileReq{}
  210. if protoimpl.UnsafeEnabled {
  211. mi := &file_fileCenter_proto_msgTypes[3]
  212. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  213. ms.StoreMessageInfo(mi)
  214. }
  215. }
  216. func (x *DeleteFileReq) String() string {
  217. return protoimpl.X.MessageStringOf(x)
  218. }
  219. func (*DeleteFileReq) ProtoMessage() {}
  220. func (x *DeleteFileReq) ProtoReflect() protoreflect.Message {
  221. mi := &file_fileCenter_proto_msgTypes[3]
  222. if protoimpl.UnsafeEnabled && x != nil {
  223. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  224. if ms.LoadMessageInfo() == nil {
  225. ms.StoreMessageInfo(mi)
  226. }
  227. return ms
  228. }
  229. return mi.MessageOf(x)
  230. }
  231. // Deprecated: Use DeleteFileReq.ProtoReflect.Descriptor instead.
  232. func (*DeleteFileReq) Descriptor() ([]byte, []int) {
  233. return file_fileCenter_proto_rawDescGZIP(), []int{3}
  234. }
  235. func (x *DeleteFileReq) GetName() string {
  236. if x != nil {
  237. return x.Name
  238. }
  239. return ""
  240. }
  241. func (x *DeleteFileReq) GetOssBucketName() string {
  242. if x != nil {
  243. return x.OssBucketName
  244. }
  245. return ""
  246. }
  247. var File_fileCenter_proto protoreflect.FileDescriptor
  248. var file_fileCenter_proto_rawDesc = []byte{
  249. 0x0a, 0x10, 0x66, 0x69, 0x6c, 0x65, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f,
  250. 0x74, 0x6f, 0x22, 0x5e, 0x0a, 0x08, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1b,
  251. 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28,
  252. 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x65,
  253. 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
  254. 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74,
  255. 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74,
  256. 0x75, 0x73, 0x22, 0x99, 0x01, 0x0a, 0x09, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71,
  257. 0x12, 0x12, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04,
  258. 0x66, 0x69, 0x6c, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x6f, 0x73, 0x73, 0x42, 0x75, 0x63, 0x6b, 0x65,
  259. 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6f, 0x73, 0x73,
  260. 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x73,
  261. 0x73, 0x55, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x73, 0x73, 0x55,
  262. 0x72, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
  263. 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0e, 0x6e, 0x65, 0x65, 0x64, 0x45, 0x6e,
  264. 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e,
  265. 0x6e, 0x65, 0x65, 0x64, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x6c,
  266. 0x0a, 0x0a, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1b, 0x0a, 0x09,
  267. 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  268. 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72,
  269. 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65,
  270. 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18,
  271. 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65,
  272. 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x49, 0x0a, 0x0d,
  273. 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a,
  274. 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
  275. 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x6f, 0x73, 0x73, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x4e, 0x61,
  276. 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6f, 0x73, 0x73, 0x42, 0x75, 0x63,
  277. 0x6b, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x32, 0x54, 0x0a, 0x0a, 0x66, 0x69, 0x6c, 0x65, 0x43,
  278. 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x06, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x12,
  279. 0x0a, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x0b, 0x2e, 0x55, 0x70,
  280. 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x23, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65,
  281. 0x74, 0x65, 0x12, 0x0e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x52,
  282. 0x65, 0x71, 0x1a, 0x09, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a,
  283. 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  284. }
  285. var (
  286. file_fileCenter_proto_rawDescOnce sync.Once
  287. file_fileCenter_proto_rawDescData = file_fileCenter_proto_rawDesc
  288. )
  289. func file_fileCenter_proto_rawDescGZIP() []byte {
  290. file_fileCenter_proto_rawDescOnce.Do(func() {
  291. file_fileCenter_proto_rawDescData = protoimpl.X.CompressGZIP(file_fileCenter_proto_rawDescData)
  292. })
  293. return file_fileCenter_proto_rawDescData
  294. }
  295. var file_fileCenter_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  296. var file_fileCenter_proto_goTypes = []interface{}{
  297. (*FileResp)(nil), // 0: FileResp
  298. (*UploadReq)(nil), // 1: UploadReq
  299. (*UploadResp)(nil), // 2: UploadResp
  300. (*DeleteFileReq)(nil), // 3: DeleteFileReq
  301. }
  302. var file_fileCenter_proto_depIdxs = []int32{
  303. 1, // 0: fileCenter.Upload:input_type -> UploadReq
  304. 3, // 1: fileCenter.Delete:input_type -> DeleteFileReq
  305. 2, // 2: fileCenter.Upload:output_type -> UploadResp
  306. 0, // 3: fileCenter.Delete:output_type -> FileResp
  307. 2, // [2:4] is the sub-list for method output_type
  308. 0, // [0:2] is the sub-list for method input_type
  309. 0, // [0:0] is the sub-list for extension type_name
  310. 0, // [0:0] is the sub-list for extension extendee
  311. 0, // [0:0] is the sub-list for field type_name
  312. }
  313. func init() { file_fileCenter_proto_init() }
  314. func file_fileCenter_proto_init() {
  315. if File_fileCenter_proto != nil {
  316. return
  317. }
  318. if !protoimpl.UnsafeEnabled {
  319. file_fileCenter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  320. switch v := v.(*FileResp); i {
  321. case 0:
  322. return &v.state
  323. case 1:
  324. return &v.sizeCache
  325. case 2:
  326. return &v.unknownFields
  327. default:
  328. return nil
  329. }
  330. }
  331. file_fileCenter_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  332. switch v := v.(*UploadReq); i {
  333. case 0:
  334. return &v.state
  335. case 1:
  336. return &v.sizeCache
  337. case 2:
  338. return &v.unknownFields
  339. default:
  340. return nil
  341. }
  342. }
  343. file_fileCenter_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  344. switch v := v.(*UploadResp); i {
  345. case 0:
  346. return &v.state
  347. case 1:
  348. return &v.sizeCache
  349. case 2:
  350. return &v.unknownFields
  351. default:
  352. return nil
  353. }
  354. }
  355. file_fileCenter_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  356. switch v := v.(*DeleteFileReq); i {
  357. case 0:
  358. return &v.state
  359. case 1:
  360. return &v.sizeCache
  361. case 2:
  362. return &v.unknownFields
  363. default:
  364. return nil
  365. }
  366. }
  367. }
  368. type x struct{}
  369. out := protoimpl.TypeBuilder{
  370. File: protoimpl.DescBuilder{
  371. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  372. RawDescriptor: file_fileCenter_proto_rawDesc,
  373. NumEnums: 0,
  374. NumMessages: 4,
  375. NumExtensions: 0,
  376. NumServices: 1,
  377. },
  378. GoTypes: file_fileCenter_proto_goTypes,
  379. DependencyIndexes: file_fileCenter_proto_depIdxs,
  380. MessageInfos: file_fileCenter_proto_msgTypes,
  381. }.Build()
  382. File_fileCenter_proto = out.File
  383. file_fileCenter_proto_rawDesc = nil
  384. file_fileCenter_proto_goTypes = nil
  385. file_fileCenter_proto_depIdxs = nil
  386. }