filesystem.pb.go 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.23.0
  4. // protoc v3.11.4
  5. // source: filesystem.proto
  6. package filesystem
  7. import (
  8. context "context"
  9. proto "github.com/golang/protobuf/proto"
  10. grpc "google.golang.org/grpc"
  11. codes "google.golang.org/grpc/codes"
  12. status "google.golang.org/grpc/status"
  13. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  14. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  15. reflect "reflect"
  16. sync "sync"
  17. )
  18. const (
  19. // Verify that this generated code is sufficiently up-to-date.
  20. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  21. // Verify that runtime/protoimpl is sufficiently up-to-date.
  22. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  23. )
  24. // This is a compile-time assertion that a sufficiently up-to-date version
  25. // of the legacy proto package is being used.
  26. const _ = proto.ProtoPackageIsVersion4
  27. type DomainReq struct {
  28. state protoimpl.MessageState
  29. sizeCache protoimpl.SizeCache
  30. unknownFields protoimpl.UnknownFields
  31. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  32. MetaFields []string `protobuf:"bytes,2,rep,name=metaFields,proto3" json:"metaFields,omitempty"` //必须元数据
  33. }
  34. func (x *DomainReq) Reset() {
  35. *x = DomainReq{}
  36. if protoimpl.UnsafeEnabled {
  37. mi := &file_filesystem_proto_msgTypes[0]
  38. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  39. ms.StoreMessageInfo(mi)
  40. }
  41. }
  42. func (x *DomainReq) String() string {
  43. return protoimpl.X.MessageStringOf(x)
  44. }
  45. func (*DomainReq) ProtoMessage() {}
  46. func (x *DomainReq) ProtoReflect() protoreflect.Message {
  47. mi := &file_filesystem_proto_msgTypes[0]
  48. if protoimpl.UnsafeEnabled && x != nil {
  49. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  50. if ms.LoadMessageInfo() == nil {
  51. ms.StoreMessageInfo(mi)
  52. }
  53. return ms
  54. }
  55. return mi.MessageOf(x)
  56. }
  57. // Deprecated: Use DomainReq.ProtoReflect.Descriptor instead.
  58. func (*DomainReq) Descriptor() ([]byte, []int) {
  59. return file_filesystem_proto_rawDescGZIP(), []int{0}
  60. }
  61. func (x *DomainReq) GetName() string {
  62. if x != nil {
  63. return x.Name
  64. }
  65. return ""
  66. }
  67. func (x *DomainReq) GetMetaFields() []string {
  68. if x != nil {
  69. return x.MetaFields
  70. }
  71. return nil
  72. }
  73. type DomainResp struct {
  74. state protoimpl.MessageState
  75. sizeCache protoimpl.SizeCache
  76. unknownFields protoimpl.UnknownFields
  77. State bool `protobuf:"varint,1,opt,name=state,proto3" json:"state,omitempty"`
  78. }
  79. func (x *DomainResp) Reset() {
  80. *x = DomainResp{}
  81. if protoimpl.UnsafeEnabled {
  82. mi := &file_filesystem_proto_msgTypes[1]
  83. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  84. ms.StoreMessageInfo(mi)
  85. }
  86. }
  87. func (x *DomainResp) String() string {
  88. return protoimpl.X.MessageStringOf(x)
  89. }
  90. func (*DomainResp) ProtoMessage() {}
  91. func (x *DomainResp) ProtoReflect() protoreflect.Message {
  92. mi := &file_filesystem_proto_msgTypes[1]
  93. if protoimpl.UnsafeEnabled && x != nil {
  94. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  95. if ms.LoadMessageInfo() == nil {
  96. ms.StoreMessageInfo(mi)
  97. }
  98. return ms
  99. }
  100. return mi.MessageOf(x)
  101. }
  102. // Deprecated: Use DomainResp.ProtoReflect.Descriptor instead.
  103. func (*DomainResp) Descriptor() ([]byte, []int) {
  104. return file_filesystem_proto_rawDescGZIP(), []int{1}
  105. }
  106. func (x *DomainResp) GetState() bool {
  107. if x != nil {
  108. return x.State
  109. }
  110. return false
  111. }
  112. //
  113. type SaveFileReq struct {
  114. state protoimpl.MessageState
  115. sizeCache protoimpl.SizeCache
  116. unknownFields protoimpl.UnknownFields
  117. Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` //存入哪个buckets
  118. FileId string `protobuf:"bytes,2,opt,name=fileId,proto3" json:"fileId,omitempty"`
  119. Meta map[string]string `protobuf:"bytes,3,rep,name=meta,proto3" json:"meta,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` //元数据
  120. RawFileContent []byte `protobuf:"bytes,4,opt,name=rawFileContent,proto3" json:"rawFileContent,omitempty"` //文件内容
  121. }
  122. func (x *SaveFileReq) Reset() {
  123. *x = SaveFileReq{}
  124. if protoimpl.UnsafeEnabled {
  125. mi := &file_filesystem_proto_msgTypes[2]
  126. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  127. ms.StoreMessageInfo(mi)
  128. }
  129. }
  130. func (x *SaveFileReq) String() string {
  131. return protoimpl.X.MessageStringOf(x)
  132. }
  133. func (*SaveFileReq) ProtoMessage() {}
  134. func (x *SaveFileReq) ProtoReflect() protoreflect.Message {
  135. mi := &file_filesystem_proto_msgTypes[2]
  136. if protoimpl.UnsafeEnabled && x != nil {
  137. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  138. if ms.LoadMessageInfo() == nil {
  139. ms.StoreMessageInfo(mi)
  140. }
  141. return ms
  142. }
  143. return mi.MessageOf(x)
  144. }
  145. // Deprecated: Use SaveFileReq.ProtoReflect.Descriptor instead.
  146. func (*SaveFileReq) Descriptor() ([]byte, []int) {
  147. return file_filesystem_proto_rawDescGZIP(), []int{2}
  148. }
  149. func (x *SaveFileReq) GetDomain() string {
  150. if x != nil {
  151. return x.Domain
  152. }
  153. return ""
  154. }
  155. func (x *SaveFileReq) GetFileId() string {
  156. if x != nil {
  157. return x.FileId
  158. }
  159. return ""
  160. }
  161. func (x *SaveFileReq) GetMeta() map[string]string {
  162. if x != nil {
  163. return x.Meta
  164. }
  165. return nil
  166. }
  167. func (x *SaveFileReq) GetRawFileContent() []byte {
  168. if x != nil {
  169. return x.RawFileContent
  170. }
  171. return nil
  172. }
  173. //
  174. type FileOpResp struct {
  175. state protoimpl.MessageState
  176. sizeCache protoimpl.SizeCache
  177. unknownFields protoimpl.UnknownFields
  178. State bool `protobuf:"varint,1,opt,name=state,proto3" json:"state,omitempty"`
  179. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
  180. FileId string `protobuf:"bytes,3,opt,name=fileId,proto3" json:"fileId,omitempty"` //文件ID
  181. }
  182. func (x *FileOpResp) Reset() {
  183. *x = FileOpResp{}
  184. if protoimpl.UnsafeEnabled {
  185. mi := &file_filesystem_proto_msgTypes[3]
  186. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  187. ms.StoreMessageInfo(mi)
  188. }
  189. }
  190. func (x *FileOpResp) String() string {
  191. return protoimpl.X.MessageStringOf(x)
  192. }
  193. func (*FileOpResp) ProtoMessage() {}
  194. func (x *FileOpResp) ProtoReflect() protoreflect.Message {
  195. mi := &file_filesystem_proto_msgTypes[3]
  196. if protoimpl.UnsafeEnabled && x != nil {
  197. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  198. if ms.LoadMessageInfo() == nil {
  199. ms.StoreMessageInfo(mi)
  200. }
  201. return ms
  202. }
  203. return mi.MessageOf(x)
  204. }
  205. // Deprecated: Use FileOpResp.ProtoReflect.Descriptor instead.
  206. func (*FileOpResp) Descriptor() ([]byte, []int) {
  207. return file_filesystem_proto_rawDescGZIP(), []int{3}
  208. }
  209. func (x *FileOpResp) GetState() bool {
  210. if x != nil {
  211. return x.State
  212. }
  213. return false
  214. }
  215. func (x *FileOpResp) GetDomain() string {
  216. if x != nil {
  217. return x.Domain
  218. }
  219. return ""
  220. }
  221. func (x *FileOpResp) GetFileId() string {
  222. if x != nil {
  223. return x.FileId
  224. }
  225. return ""
  226. }
  227. //
  228. type UpdateFileMetaReq struct {
  229. state protoimpl.MessageState
  230. sizeCache protoimpl.SizeCache
  231. unknownFields protoimpl.UnknownFields
  232. Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` //存入哪个buckets
  233. FileId string `protobuf:"bytes,2,opt,name=fileId,proto3" json:"fileId,omitempty"`
  234. Meta map[string]string `protobuf:"bytes,3,rep,name=meta,proto3" json:"meta,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` //元数据
  235. }
  236. func (x *UpdateFileMetaReq) Reset() {
  237. *x = UpdateFileMetaReq{}
  238. if protoimpl.UnsafeEnabled {
  239. mi := &file_filesystem_proto_msgTypes[4]
  240. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  241. ms.StoreMessageInfo(mi)
  242. }
  243. }
  244. func (x *UpdateFileMetaReq) String() string {
  245. return protoimpl.X.MessageStringOf(x)
  246. }
  247. func (*UpdateFileMetaReq) ProtoMessage() {}
  248. func (x *UpdateFileMetaReq) ProtoReflect() protoreflect.Message {
  249. mi := &file_filesystem_proto_msgTypes[4]
  250. if protoimpl.UnsafeEnabled && x != nil {
  251. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  252. if ms.LoadMessageInfo() == nil {
  253. ms.StoreMessageInfo(mi)
  254. }
  255. return ms
  256. }
  257. return mi.MessageOf(x)
  258. }
  259. // Deprecated: Use UpdateFileMetaReq.ProtoReflect.Descriptor instead.
  260. func (*UpdateFileMetaReq) Descriptor() ([]byte, []int) {
  261. return file_filesystem_proto_rawDescGZIP(), []int{4}
  262. }
  263. func (x *UpdateFileMetaReq) GetDomain() string {
  264. if x != nil {
  265. return x.Domain
  266. }
  267. return ""
  268. }
  269. func (x *UpdateFileMetaReq) GetFileId() string {
  270. if x != nil {
  271. return x.FileId
  272. }
  273. return ""
  274. }
  275. func (x *UpdateFileMetaReq) GetMeta() map[string]string {
  276. if x != nil {
  277. return x.Meta
  278. }
  279. return nil
  280. }
  281. //
  282. type LoadFileReq struct {
  283. state protoimpl.MessageState
  284. sizeCache protoimpl.SizeCache
  285. unknownFields protoimpl.UnknownFields
  286. Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` //存入哪个buckets
  287. FileId string `protobuf:"bytes,2,opt,name=fileId,proto3" json:"fileId,omitempty"`
  288. }
  289. func (x *LoadFileReq) Reset() {
  290. *x = LoadFileReq{}
  291. if protoimpl.UnsafeEnabled {
  292. mi := &file_filesystem_proto_msgTypes[5]
  293. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  294. ms.StoreMessageInfo(mi)
  295. }
  296. }
  297. func (x *LoadFileReq) String() string {
  298. return protoimpl.X.MessageStringOf(x)
  299. }
  300. func (*LoadFileReq) ProtoMessage() {}
  301. func (x *LoadFileReq) ProtoReflect() protoreflect.Message {
  302. mi := &file_filesystem_proto_msgTypes[5]
  303. if protoimpl.UnsafeEnabled && x != nil {
  304. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  305. if ms.LoadMessageInfo() == nil {
  306. ms.StoreMessageInfo(mi)
  307. }
  308. return ms
  309. }
  310. return mi.MessageOf(x)
  311. }
  312. // Deprecated: Use LoadFileReq.ProtoReflect.Descriptor instead.
  313. func (*LoadFileReq) Descriptor() ([]byte, []int) {
  314. return file_filesystem_proto_rawDescGZIP(), []int{5}
  315. }
  316. func (x *LoadFileReq) GetDomain() string {
  317. if x != nil {
  318. return x.Domain
  319. }
  320. return ""
  321. }
  322. func (x *LoadFileReq) GetFileId() string {
  323. if x != nil {
  324. return x.FileId
  325. }
  326. return ""
  327. }
  328. //
  329. type LoadFileResp struct {
  330. state protoimpl.MessageState
  331. sizeCache protoimpl.SizeCache
  332. unknownFields protoimpl.UnknownFields
  333. Meta map[string]string `protobuf:"bytes,2,rep,name=meta,proto3" json:"meta,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` //元数据
  334. RawFileContent []byte `protobuf:"bytes,3,opt,name=rawFileContent,proto3" json:"rawFileContent,omitempty"` //文件内容
  335. }
  336. func (x *LoadFileResp) Reset() {
  337. *x = LoadFileResp{}
  338. if protoimpl.UnsafeEnabled {
  339. mi := &file_filesystem_proto_msgTypes[6]
  340. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  341. ms.StoreMessageInfo(mi)
  342. }
  343. }
  344. func (x *LoadFileResp) String() string {
  345. return protoimpl.X.MessageStringOf(x)
  346. }
  347. func (*LoadFileResp) ProtoMessage() {}
  348. func (x *LoadFileResp) ProtoReflect() protoreflect.Message {
  349. mi := &file_filesystem_proto_msgTypes[6]
  350. if protoimpl.UnsafeEnabled && x != nil {
  351. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  352. if ms.LoadMessageInfo() == nil {
  353. ms.StoreMessageInfo(mi)
  354. }
  355. return ms
  356. }
  357. return mi.MessageOf(x)
  358. }
  359. // Deprecated: Use LoadFileResp.ProtoReflect.Descriptor instead.
  360. func (*LoadFileResp) Descriptor() ([]byte, []int) {
  361. return file_filesystem_proto_rawDescGZIP(), []int{6}
  362. }
  363. func (x *LoadFileResp) GetMeta() map[string]string {
  364. if x != nil {
  365. return x.Meta
  366. }
  367. return nil
  368. }
  369. func (x *LoadFileResp) GetRawFileContent() []byte {
  370. if x != nil {
  371. return x.RawFileContent
  372. }
  373. return nil
  374. }
  375. //
  376. type LoadFileMetaResp struct {
  377. state protoimpl.MessageState
  378. sizeCache protoimpl.SizeCache
  379. unknownFields protoimpl.UnknownFields
  380. Meta map[string]string `protobuf:"bytes,2,rep,name=meta,proto3" json:"meta,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` //元数据
  381. }
  382. func (x *LoadFileMetaResp) Reset() {
  383. *x = LoadFileMetaResp{}
  384. if protoimpl.UnsafeEnabled {
  385. mi := &file_filesystem_proto_msgTypes[7]
  386. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  387. ms.StoreMessageInfo(mi)
  388. }
  389. }
  390. func (x *LoadFileMetaResp) String() string {
  391. return protoimpl.X.MessageStringOf(x)
  392. }
  393. func (*LoadFileMetaResp) ProtoMessage() {}
  394. func (x *LoadFileMetaResp) ProtoReflect() protoreflect.Message {
  395. mi := &file_filesystem_proto_msgTypes[7]
  396. if protoimpl.UnsafeEnabled && x != nil {
  397. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  398. if ms.LoadMessageInfo() == nil {
  399. ms.StoreMessageInfo(mi)
  400. }
  401. return ms
  402. }
  403. return mi.MessageOf(x)
  404. }
  405. // Deprecated: Use LoadFileMetaResp.ProtoReflect.Descriptor instead.
  406. func (*LoadFileMetaResp) Descriptor() ([]byte, []int) {
  407. return file_filesystem_proto_rawDescGZIP(), []int{7}
  408. }
  409. func (x *LoadFileMetaResp) GetMeta() map[string]string {
  410. if x != nil {
  411. return x.Meta
  412. }
  413. return nil
  414. }
  415. type OssUrlResp struct {
  416. state protoimpl.MessageState
  417. sizeCache protoimpl.SizeCache
  418. unknownFields protoimpl.UnknownFields
  419. OssUrl string `protobuf:"bytes,1,opt,name=ossUrl,proto3" json:"ossUrl,omitempty"`
  420. }
  421. func (x *OssUrlResp) Reset() {
  422. *x = OssUrlResp{}
  423. if protoimpl.UnsafeEnabled {
  424. mi := &file_filesystem_proto_msgTypes[8]
  425. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  426. ms.StoreMessageInfo(mi)
  427. }
  428. }
  429. func (x *OssUrlResp) String() string {
  430. return protoimpl.X.MessageStringOf(x)
  431. }
  432. func (*OssUrlResp) ProtoMessage() {}
  433. func (x *OssUrlResp) ProtoReflect() protoreflect.Message {
  434. mi := &file_filesystem_proto_msgTypes[8]
  435. if protoimpl.UnsafeEnabled && x != nil {
  436. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  437. if ms.LoadMessageInfo() == nil {
  438. ms.StoreMessageInfo(mi)
  439. }
  440. return ms
  441. }
  442. return mi.MessageOf(x)
  443. }
  444. // Deprecated: Use OssUrlResp.ProtoReflect.Descriptor instead.
  445. func (*OssUrlResp) Descriptor() ([]byte, []int) {
  446. return file_filesystem_proto_rawDescGZIP(), []int{8}
  447. }
  448. func (x *OssUrlResp) GetOssUrl() string {
  449. if x != nil {
  450. return x.OssUrl
  451. }
  452. return ""
  453. }
  454. var File_filesystem_proto protoreflect.FileDescriptor
  455. var file_filesystem_proto_rawDesc = []byte{
  456. 0x0a, 0x10, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x70, 0x72, 0x6f,
  457. 0x74, 0x6f, 0x12, 0x0a, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x22, 0x3f,
  458. 0x0a, 0x09, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x6e,
  459. 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
  460. 0x1e, 0x0a, 0x0a, 0x6d, 0x65, 0x74, 0x61, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x02, 0x20,
  461. 0x03, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x65, 0x74, 0x61, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x22,
  462. 0x22, 0x0a, 0x0a, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14, 0x0a,
  463. 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x73, 0x74,
  464. 0x61, 0x74, 0x65, 0x22, 0xd5, 0x01, 0x0a, 0x0b, 0x53, 0x61, 0x76, 0x65, 0x46, 0x69, 0x6c, 0x65,
  465. 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20,
  466. 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66,
  467. 0x69, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c,
  468. 0x65, 0x49, 0x64, 0x12, 0x35, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28,
  469. 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x53,
  470. 0x61, 0x76, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x45,
  471. 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x12, 0x26, 0x0a, 0x0e, 0x72, 0x61,
  472. 0x77, 0x46, 0x69, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01,
  473. 0x28, 0x0c, 0x52, 0x0e, 0x72, 0x61, 0x77, 0x46, 0x69, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65,
  474. 0x6e, 0x74, 0x1a, 0x37, 0x0a, 0x09, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
  475. 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
  476. 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
  477. 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x52, 0x0a, 0x0a, 0x46,
  478. 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61,
  479. 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12,
  480. 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  481. 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49,
  482. 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x22,
  483. 0xb9, 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x4d, 0x65,
  484. 0x74, 0x61, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18,
  485. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x16, 0x0a,
  486. 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66,
  487. 0x69, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x3b, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x03, 0x20,
  488. 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d,
  489. 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x52,
  490. 0x65, 0x71, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6d, 0x65,
  491. 0x74, 0x61, 0x1a, 0x37, 0x0a, 0x09, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
  492. 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
  493. 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
  494. 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x3d, 0x0a, 0x0b, 0x4c,
  495. 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f,
  496. 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61,
  497. 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01,
  498. 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x22, 0xa7, 0x01, 0x0a, 0x0c, 0x4c,
  499. 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x36, 0x0a, 0x04, 0x6d,
  500. 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x66, 0x69, 0x6c, 0x65,
  501. 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52,
  502. 0x65, 0x73, 0x70, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6d,
  503. 0x65, 0x74, 0x61, 0x12, 0x26, 0x0a, 0x0e, 0x72, 0x61, 0x77, 0x46, 0x69, 0x6c, 0x65, 0x43, 0x6f,
  504. 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x72, 0x61, 0x77,
  505. 0x46, 0x69, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x1a, 0x37, 0x0a, 0x09, 0x4d,
  506. 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
  507. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61,
  508. 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
  509. 0x3a, 0x02, 0x38, 0x01, 0x22, 0x87, 0x01, 0x0a, 0x10, 0x4c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c,
  510. 0x65, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3a, 0x0a, 0x04, 0x6d, 0x65, 0x74,
  511. 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79,
  512. 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x4d, 0x65, 0x74,
  513. 0x61, 0x52, 0x65, 0x73, 0x70, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
  514. 0x04, 0x6d, 0x65, 0x74, 0x61, 0x1a, 0x37, 0x0a, 0x09, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74,
  515. 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  516. 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
  517. 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x24,
  518. 0x0a, 0x0a, 0x4f, 0x73, 0x73, 0x55, 0x72, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06,
  519. 0x6f, 0x73, 0x73, 0x55, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x73,
  520. 0x73, 0x55, 0x72, 0x6c, 0x32, 0xd5, 0x04, 0x0a, 0x0a, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x79, 0x73,
  521. 0x74, 0x65, 0x6d, 0x12, 0x3d, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x6f, 0x6d,
  522. 0x61, 0x69, 0x6e, 0x12, 0x15, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d,
  523. 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x66, 0x69, 0x6c,
  524. 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65,
  525. 0x73, 0x70, 0x12, 0x41, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x6f, 0x6d, 0x61,
  526. 0x69, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x15, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73,
  527. 0x74, 0x65, 0x6d, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e,
  528. 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69,
  529. 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3d, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44,
  530. 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x15, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74,
  531. 0x65, 0x6d, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x66,
  532. 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
  533. 0x52, 0x65, 0x73, 0x70, 0x12, 0x3b, 0x0a, 0x08, 0x53, 0x61, 0x76, 0x65, 0x46, 0x69, 0x6c, 0x65,
  534. 0x12, 0x17, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x53, 0x61,
  535. 0x76, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x66, 0x69, 0x6c, 0x65,
  536. 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x52, 0x65, 0x73,
  537. 0x70, 0x12, 0x47, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x4d,
  538. 0x65, 0x74, 0x61, 0x12, 0x1d, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d,
  539. 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x52,
  540. 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e,
  541. 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3d, 0x0a, 0x0a, 0x44, 0x65,
  542. 0x6c, 0x65, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x17, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73,
  543. 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65,
  544. 0x71, 0x1a, 0x16, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x46,
  545. 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3c, 0x0a, 0x07, 0x47, 0x65, 0x74,
  546. 0x46, 0x69, 0x6c, 0x65, 0x12, 0x17, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65,
  547. 0x6d, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e,
  548. 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x46,
  549. 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x44, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x46, 0x69,
  550. 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x17, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73,
  551. 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a,
  552. 0x1c, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x6f, 0x61,
  553. 0x64, 0x46, 0x69, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3d, 0x0a,
  554. 0x0a, 0x47, 0x65, 0x74, 0x4f, 0x73, 0x73, 0x55, 0x72, 0x69, 0x6c, 0x12, 0x17, 0x2e, 0x66, 0x69,
  555. 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c,
  556. 0x65, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65,
  557. 0x6d, 0x2e, 0x4f, 0x73, 0x73, 0x55, 0x72, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x62, 0x06, 0x70, 0x72,
  558. 0x6f, 0x74, 0x6f, 0x33,
  559. }
  560. var (
  561. file_filesystem_proto_rawDescOnce sync.Once
  562. file_filesystem_proto_rawDescData = file_filesystem_proto_rawDesc
  563. )
  564. func file_filesystem_proto_rawDescGZIP() []byte {
  565. file_filesystem_proto_rawDescOnce.Do(func() {
  566. file_filesystem_proto_rawDescData = protoimpl.X.CompressGZIP(file_filesystem_proto_rawDescData)
  567. })
  568. return file_filesystem_proto_rawDescData
  569. }
  570. var file_filesystem_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
  571. var file_filesystem_proto_goTypes = []interface{}{
  572. (*DomainReq)(nil), // 0: filesystem.DomainReq
  573. (*DomainResp)(nil), // 1: filesystem.DomainResp
  574. (*SaveFileReq)(nil), // 2: filesystem.SaveFileReq
  575. (*FileOpResp)(nil), // 3: filesystem.FileOpResp
  576. (*UpdateFileMetaReq)(nil), // 4: filesystem.UpdateFileMetaReq
  577. (*LoadFileReq)(nil), // 5: filesystem.LoadFileReq
  578. (*LoadFileResp)(nil), // 6: filesystem.LoadFileResp
  579. (*LoadFileMetaResp)(nil), // 7: filesystem.LoadFileMetaResp
  580. (*OssUrlResp)(nil), // 8: filesystem.OssUrlResp
  581. nil, // 9: filesystem.SaveFileReq.MetaEntry
  582. nil, // 10: filesystem.UpdateFileMetaReq.MetaEntry
  583. nil, // 11: filesystem.LoadFileResp.MetaEntry
  584. nil, // 12: filesystem.LoadFileMetaResp.MetaEntry
  585. }
  586. var file_filesystem_proto_depIdxs = []int32{
  587. 9, // 0: filesystem.SaveFileReq.meta:type_name -> filesystem.SaveFileReq.MetaEntry
  588. 10, // 1: filesystem.UpdateFileMetaReq.meta:type_name -> filesystem.UpdateFileMetaReq.MetaEntry
  589. 11, // 2: filesystem.LoadFileResp.meta:type_name -> filesystem.LoadFileResp.MetaEntry
  590. 12, // 3: filesystem.LoadFileMetaResp.meta:type_name -> filesystem.LoadFileMetaResp.MetaEntry
  591. 0, // 4: filesystem.FileSystem.CreateDomain:input_type -> filesystem.DomainReq
  592. 0, // 5: filesystem.FileSystem.UpdateDomainMeta:input_type -> filesystem.DomainReq
  593. 0, // 6: filesystem.FileSystem.DeleteDomain:input_type -> filesystem.DomainReq
  594. 2, // 7: filesystem.FileSystem.SaveFile:input_type -> filesystem.SaveFileReq
  595. 4, // 8: filesystem.FileSystem.UpdateFileMeta:input_type -> filesystem.UpdateFileMetaReq
  596. 5, // 9: filesystem.FileSystem.DeleteFile:input_type -> filesystem.LoadFileReq
  597. 5, // 10: filesystem.FileSystem.GetFile:input_type -> filesystem.LoadFileReq
  598. 5, // 11: filesystem.FileSystem.GetFileMeta:input_type -> filesystem.LoadFileReq
  599. 5, // 12: filesystem.FileSystem.GetOssUril:input_type -> filesystem.LoadFileReq
  600. 1, // 13: filesystem.FileSystem.CreateDomain:output_type -> filesystem.DomainResp
  601. 1, // 14: filesystem.FileSystem.UpdateDomainMeta:output_type -> filesystem.DomainResp
  602. 1, // 15: filesystem.FileSystem.DeleteDomain:output_type -> filesystem.DomainResp
  603. 3, // 16: filesystem.FileSystem.SaveFile:output_type -> filesystem.FileOpResp
  604. 3, // 17: filesystem.FileSystem.UpdateFileMeta:output_type -> filesystem.FileOpResp
  605. 3, // 18: filesystem.FileSystem.DeleteFile:output_type -> filesystem.FileOpResp
  606. 6, // 19: filesystem.FileSystem.GetFile:output_type -> filesystem.LoadFileResp
  607. 7, // 20: filesystem.FileSystem.GetFileMeta:output_type -> filesystem.LoadFileMetaResp
  608. 8, // 21: filesystem.FileSystem.GetOssUril:output_type -> filesystem.OssUrlResp
  609. 13, // [13:22] is the sub-list for method output_type
  610. 4, // [4:13] is the sub-list for method input_type
  611. 4, // [4:4] is the sub-list for extension type_name
  612. 4, // [4:4] is the sub-list for extension extendee
  613. 0, // [0:4] is the sub-list for field type_name
  614. }
  615. func init() { file_filesystem_proto_init() }
  616. func file_filesystem_proto_init() {
  617. if File_filesystem_proto != nil {
  618. return
  619. }
  620. if !protoimpl.UnsafeEnabled {
  621. file_filesystem_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  622. switch v := v.(*DomainReq); i {
  623. case 0:
  624. return &v.state
  625. case 1:
  626. return &v.sizeCache
  627. case 2:
  628. return &v.unknownFields
  629. default:
  630. return nil
  631. }
  632. }
  633. file_filesystem_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  634. switch v := v.(*DomainResp); i {
  635. case 0:
  636. return &v.state
  637. case 1:
  638. return &v.sizeCache
  639. case 2:
  640. return &v.unknownFields
  641. default:
  642. return nil
  643. }
  644. }
  645. file_filesystem_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  646. switch v := v.(*SaveFileReq); i {
  647. case 0:
  648. return &v.state
  649. case 1:
  650. return &v.sizeCache
  651. case 2:
  652. return &v.unknownFields
  653. default:
  654. return nil
  655. }
  656. }
  657. file_filesystem_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  658. switch v := v.(*FileOpResp); i {
  659. case 0:
  660. return &v.state
  661. case 1:
  662. return &v.sizeCache
  663. case 2:
  664. return &v.unknownFields
  665. default:
  666. return nil
  667. }
  668. }
  669. file_filesystem_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  670. switch v := v.(*UpdateFileMetaReq); i {
  671. case 0:
  672. return &v.state
  673. case 1:
  674. return &v.sizeCache
  675. case 2:
  676. return &v.unknownFields
  677. default:
  678. return nil
  679. }
  680. }
  681. file_filesystem_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  682. switch v := v.(*LoadFileReq); i {
  683. case 0:
  684. return &v.state
  685. case 1:
  686. return &v.sizeCache
  687. case 2:
  688. return &v.unknownFields
  689. default:
  690. return nil
  691. }
  692. }
  693. file_filesystem_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  694. switch v := v.(*LoadFileResp); i {
  695. case 0:
  696. return &v.state
  697. case 1:
  698. return &v.sizeCache
  699. case 2:
  700. return &v.unknownFields
  701. default:
  702. return nil
  703. }
  704. }
  705. file_filesystem_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  706. switch v := v.(*LoadFileMetaResp); i {
  707. case 0:
  708. return &v.state
  709. case 1:
  710. return &v.sizeCache
  711. case 2:
  712. return &v.unknownFields
  713. default:
  714. return nil
  715. }
  716. }
  717. file_filesystem_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  718. switch v := v.(*OssUrlResp); i {
  719. case 0:
  720. return &v.state
  721. case 1:
  722. return &v.sizeCache
  723. case 2:
  724. return &v.unknownFields
  725. default:
  726. return nil
  727. }
  728. }
  729. }
  730. type x struct{}
  731. out := protoimpl.TypeBuilder{
  732. File: protoimpl.DescBuilder{
  733. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  734. RawDescriptor: file_filesystem_proto_rawDesc,
  735. NumEnums: 0,
  736. NumMessages: 13,
  737. NumExtensions: 0,
  738. NumServices: 1,
  739. },
  740. GoTypes: file_filesystem_proto_goTypes,
  741. DependencyIndexes: file_filesystem_proto_depIdxs,
  742. MessageInfos: file_filesystem_proto_msgTypes,
  743. }.Build()
  744. File_filesystem_proto = out.File
  745. file_filesystem_proto_rawDesc = nil
  746. file_filesystem_proto_goTypes = nil
  747. file_filesystem_proto_depIdxs = nil
  748. }
  749. // Reference imports to suppress errors if they are not otherwise used.
  750. var _ context.Context
  751. var _ grpc.ClientConnInterface
  752. // This is a compile-time assertion to ensure that this generated file
  753. // is compatible with the grpc package it is being compiled against.
  754. const _ = grpc.SupportPackageIsVersion6
  755. // FileSystemClient is the client API for FileSystem service.
  756. //
  757. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  758. type FileSystemClient interface {
  759. //创建域
  760. CreateDomain(ctx context.Context, in *DomainReq, opts ...grpc.CallOption) (*DomainResp, error)
  761. //更新域
  762. UpdateDomainMeta(ctx context.Context, in *DomainReq, opts ...grpc.CallOption) (*DomainResp, error)
  763. //删除域
  764. DeleteDomain(ctx context.Context, in *DomainReq, opts ...grpc.CallOption) (*DomainResp, error)
  765. //保存文件
  766. SaveFile(ctx context.Context, in *SaveFileReq, opts ...grpc.CallOption) (*FileOpResp, error)
  767. //更新文件元数据
  768. UpdateFileMeta(ctx context.Context, in *UpdateFileMetaReq, opts ...grpc.CallOption) (*FileOpResp, error)
  769. //删除文件
  770. DeleteFile(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*FileOpResp, error)
  771. //获取文件
  772. GetFile(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*LoadFileResp, error)
  773. //获取文件元数据
  774. GetFileMeta(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*LoadFileMetaResp, error)
  775. //获取签名OSSURL
  776. GetOssUril(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*OssUrlResp, error)
  777. }
  778. type fileSystemClient struct {
  779. cc grpc.ClientConnInterface
  780. }
  781. func NewFileSystemClient(cc grpc.ClientConnInterface) FileSystemClient {
  782. return &fileSystemClient{cc}
  783. }
  784. func (c *fileSystemClient) CreateDomain(ctx context.Context, in *DomainReq, opts ...grpc.CallOption) (*DomainResp, error) {
  785. out := new(DomainResp)
  786. err := c.cc.Invoke(ctx, "/filesystem.FileSystem/CreateDomain", in, out, opts...)
  787. if err != nil {
  788. return nil, err
  789. }
  790. return out, nil
  791. }
  792. func (c *fileSystemClient) UpdateDomainMeta(ctx context.Context, in *DomainReq, opts ...grpc.CallOption) (*DomainResp, error) {
  793. out := new(DomainResp)
  794. err := c.cc.Invoke(ctx, "/filesystem.FileSystem/UpdateDomainMeta", in, out, opts...)
  795. if err != nil {
  796. return nil, err
  797. }
  798. return out, nil
  799. }
  800. func (c *fileSystemClient) DeleteDomain(ctx context.Context, in *DomainReq, opts ...grpc.CallOption) (*DomainResp, error) {
  801. out := new(DomainResp)
  802. err := c.cc.Invoke(ctx, "/filesystem.FileSystem/DeleteDomain", in, out, opts...)
  803. if err != nil {
  804. return nil, err
  805. }
  806. return out, nil
  807. }
  808. func (c *fileSystemClient) SaveFile(ctx context.Context, in *SaveFileReq, opts ...grpc.CallOption) (*FileOpResp, error) {
  809. out := new(FileOpResp)
  810. err := c.cc.Invoke(ctx, "/filesystem.FileSystem/SaveFile", in, out, opts...)
  811. if err != nil {
  812. return nil, err
  813. }
  814. return out, nil
  815. }
  816. func (c *fileSystemClient) UpdateFileMeta(ctx context.Context, in *UpdateFileMetaReq, opts ...grpc.CallOption) (*FileOpResp, error) {
  817. out := new(FileOpResp)
  818. err := c.cc.Invoke(ctx, "/filesystem.FileSystem/UpdateFileMeta", in, out, opts...)
  819. if err != nil {
  820. return nil, err
  821. }
  822. return out, nil
  823. }
  824. func (c *fileSystemClient) DeleteFile(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*FileOpResp, error) {
  825. out := new(FileOpResp)
  826. err := c.cc.Invoke(ctx, "/filesystem.FileSystem/DeleteFile", in, out, opts...)
  827. if err != nil {
  828. return nil, err
  829. }
  830. return out, nil
  831. }
  832. func (c *fileSystemClient) GetFile(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*LoadFileResp, error) {
  833. out := new(LoadFileResp)
  834. err := c.cc.Invoke(ctx, "/filesystem.FileSystem/GetFile", in, out, opts...)
  835. if err != nil {
  836. return nil, err
  837. }
  838. return out, nil
  839. }
  840. func (c *fileSystemClient) GetFileMeta(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*LoadFileMetaResp, error) {
  841. out := new(LoadFileMetaResp)
  842. err := c.cc.Invoke(ctx, "/filesystem.FileSystem/GetFileMeta", in, out, opts...)
  843. if err != nil {
  844. return nil, err
  845. }
  846. return out, nil
  847. }
  848. func (c *fileSystemClient) GetOssUril(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*OssUrlResp, error) {
  849. out := new(OssUrlResp)
  850. err := c.cc.Invoke(ctx, "/filesystem.FileSystem/GetOssUril", in, out, opts...)
  851. if err != nil {
  852. return nil, err
  853. }
  854. return out, nil
  855. }
  856. // FileSystemServer is the server API for FileSystem service.
  857. type FileSystemServer interface {
  858. //创建域
  859. CreateDomain(context.Context, *DomainReq) (*DomainResp, error)
  860. //更新域
  861. UpdateDomainMeta(context.Context, *DomainReq) (*DomainResp, error)
  862. //删除域
  863. DeleteDomain(context.Context, *DomainReq) (*DomainResp, error)
  864. //保存文件
  865. SaveFile(context.Context, *SaveFileReq) (*FileOpResp, error)
  866. //更新文件元数据
  867. UpdateFileMeta(context.Context, *UpdateFileMetaReq) (*FileOpResp, error)
  868. //删除文件
  869. DeleteFile(context.Context, *LoadFileReq) (*FileOpResp, error)
  870. //获取文件
  871. GetFile(context.Context, *LoadFileReq) (*LoadFileResp, error)
  872. //获取文件元数据
  873. GetFileMeta(context.Context, *LoadFileReq) (*LoadFileMetaResp, error)
  874. //获取签名OSSURL
  875. GetOssUril(context.Context, *LoadFileReq) (*OssUrlResp, error)
  876. }
  877. // UnimplementedFileSystemServer can be embedded to have forward compatible implementations.
  878. type UnimplementedFileSystemServer struct {
  879. }
  880. func (*UnimplementedFileSystemServer) CreateDomain(context.Context, *DomainReq) (*DomainResp, error) {
  881. return nil, status.Errorf(codes.Unimplemented, "method CreateDomain not implemented")
  882. }
  883. func (*UnimplementedFileSystemServer) UpdateDomainMeta(context.Context, *DomainReq) (*DomainResp, error) {
  884. return nil, status.Errorf(codes.Unimplemented, "method UpdateDomainMeta not implemented")
  885. }
  886. func (*UnimplementedFileSystemServer) DeleteDomain(context.Context, *DomainReq) (*DomainResp, error) {
  887. return nil, status.Errorf(codes.Unimplemented, "method DeleteDomain not implemented")
  888. }
  889. func (*UnimplementedFileSystemServer) SaveFile(context.Context, *SaveFileReq) (*FileOpResp, error) {
  890. return nil, status.Errorf(codes.Unimplemented, "method SaveFile not implemented")
  891. }
  892. func (*UnimplementedFileSystemServer) UpdateFileMeta(context.Context, *UpdateFileMetaReq) (*FileOpResp, error) {
  893. return nil, status.Errorf(codes.Unimplemented, "method UpdateFileMeta not implemented")
  894. }
  895. func (*UnimplementedFileSystemServer) DeleteFile(context.Context, *LoadFileReq) (*FileOpResp, error) {
  896. return nil, status.Errorf(codes.Unimplemented, "method DeleteFile not implemented")
  897. }
  898. func (*UnimplementedFileSystemServer) GetFile(context.Context, *LoadFileReq) (*LoadFileResp, error) {
  899. return nil, status.Errorf(codes.Unimplemented, "method GetFile not implemented")
  900. }
  901. func (*UnimplementedFileSystemServer) GetFileMeta(context.Context, *LoadFileReq) (*LoadFileMetaResp, error) {
  902. return nil, status.Errorf(codes.Unimplemented, "method GetFileMeta not implemented")
  903. }
  904. func (*UnimplementedFileSystemServer) GetOssUril(context.Context, *LoadFileReq) (*OssUrlResp, error) {
  905. return nil, status.Errorf(codes.Unimplemented, "method GetOssUril not implemented")
  906. }
  907. func RegisterFileSystemServer(s *grpc.Server, srv FileSystemServer) {
  908. s.RegisterService(&_FileSystem_serviceDesc, srv)
  909. }
  910. func _FileSystem_CreateDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  911. in := new(DomainReq)
  912. if err := dec(in); err != nil {
  913. return nil, err
  914. }
  915. if interceptor == nil {
  916. return srv.(FileSystemServer).CreateDomain(ctx, in)
  917. }
  918. info := &grpc.UnaryServerInfo{
  919. Server: srv,
  920. FullMethod: "/filesystem.FileSystem/CreateDomain",
  921. }
  922. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  923. return srv.(FileSystemServer).CreateDomain(ctx, req.(*DomainReq))
  924. }
  925. return interceptor(ctx, in, info, handler)
  926. }
  927. func _FileSystem_UpdateDomainMeta_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  928. in := new(DomainReq)
  929. if err := dec(in); err != nil {
  930. return nil, err
  931. }
  932. if interceptor == nil {
  933. return srv.(FileSystemServer).UpdateDomainMeta(ctx, in)
  934. }
  935. info := &grpc.UnaryServerInfo{
  936. Server: srv,
  937. FullMethod: "/filesystem.FileSystem/UpdateDomainMeta",
  938. }
  939. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  940. return srv.(FileSystemServer).UpdateDomainMeta(ctx, req.(*DomainReq))
  941. }
  942. return interceptor(ctx, in, info, handler)
  943. }
  944. func _FileSystem_DeleteDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  945. in := new(DomainReq)
  946. if err := dec(in); err != nil {
  947. return nil, err
  948. }
  949. if interceptor == nil {
  950. return srv.(FileSystemServer).DeleteDomain(ctx, in)
  951. }
  952. info := &grpc.UnaryServerInfo{
  953. Server: srv,
  954. FullMethod: "/filesystem.FileSystem/DeleteDomain",
  955. }
  956. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  957. return srv.(FileSystemServer).DeleteDomain(ctx, req.(*DomainReq))
  958. }
  959. return interceptor(ctx, in, info, handler)
  960. }
  961. func _FileSystem_SaveFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  962. in := new(SaveFileReq)
  963. if err := dec(in); err != nil {
  964. return nil, err
  965. }
  966. if interceptor == nil {
  967. return srv.(FileSystemServer).SaveFile(ctx, in)
  968. }
  969. info := &grpc.UnaryServerInfo{
  970. Server: srv,
  971. FullMethod: "/filesystem.FileSystem/SaveFile",
  972. }
  973. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  974. return srv.(FileSystemServer).SaveFile(ctx, req.(*SaveFileReq))
  975. }
  976. return interceptor(ctx, in, info, handler)
  977. }
  978. func _FileSystem_UpdateFileMeta_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  979. in := new(UpdateFileMetaReq)
  980. if err := dec(in); err != nil {
  981. return nil, err
  982. }
  983. if interceptor == nil {
  984. return srv.(FileSystemServer).UpdateFileMeta(ctx, in)
  985. }
  986. info := &grpc.UnaryServerInfo{
  987. Server: srv,
  988. FullMethod: "/filesystem.FileSystem/UpdateFileMeta",
  989. }
  990. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  991. return srv.(FileSystemServer).UpdateFileMeta(ctx, req.(*UpdateFileMetaReq))
  992. }
  993. return interceptor(ctx, in, info, handler)
  994. }
  995. func _FileSystem_DeleteFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  996. in := new(LoadFileReq)
  997. if err := dec(in); err != nil {
  998. return nil, err
  999. }
  1000. if interceptor == nil {
  1001. return srv.(FileSystemServer).DeleteFile(ctx, in)
  1002. }
  1003. info := &grpc.UnaryServerInfo{
  1004. Server: srv,
  1005. FullMethod: "/filesystem.FileSystem/DeleteFile",
  1006. }
  1007. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1008. return srv.(FileSystemServer).DeleteFile(ctx, req.(*LoadFileReq))
  1009. }
  1010. return interceptor(ctx, in, info, handler)
  1011. }
  1012. func _FileSystem_GetFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1013. in := new(LoadFileReq)
  1014. if err := dec(in); err != nil {
  1015. return nil, err
  1016. }
  1017. if interceptor == nil {
  1018. return srv.(FileSystemServer).GetFile(ctx, in)
  1019. }
  1020. info := &grpc.UnaryServerInfo{
  1021. Server: srv,
  1022. FullMethod: "/filesystem.FileSystem/GetFile",
  1023. }
  1024. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1025. return srv.(FileSystemServer).GetFile(ctx, req.(*LoadFileReq))
  1026. }
  1027. return interceptor(ctx, in, info, handler)
  1028. }
  1029. func _FileSystem_GetFileMeta_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1030. in := new(LoadFileReq)
  1031. if err := dec(in); err != nil {
  1032. return nil, err
  1033. }
  1034. if interceptor == nil {
  1035. return srv.(FileSystemServer).GetFileMeta(ctx, in)
  1036. }
  1037. info := &grpc.UnaryServerInfo{
  1038. Server: srv,
  1039. FullMethod: "/filesystem.FileSystem/GetFileMeta",
  1040. }
  1041. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1042. return srv.(FileSystemServer).GetFileMeta(ctx, req.(*LoadFileReq))
  1043. }
  1044. return interceptor(ctx, in, info, handler)
  1045. }
  1046. func _FileSystem_GetOssUril_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1047. in := new(LoadFileReq)
  1048. if err := dec(in); err != nil {
  1049. return nil, err
  1050. }
  1051. if interceptor == nil {
  1052. return srv.(FileSystemServer).GetOssUril(ctx, in)
  1053. }
  1054. info := &grpc.UnaryServerInfo{
  1055. Server: srv,
  1056. FullMethod: "/filesystem.FileSystem/GetOssUril",
  1057. }
  1058. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1059. return srv.(FileSystemServer).GetOssUril(ctx, req.(*LoadFileReq))
  1060. }
  1061. return interceptor(ctx, in, info, handler)
  1062. }
  1063. var _FileSystem_serviceDesc = grpc.ServiceDesc{
  1064. ServiceName: "filesystem.FileSystem",
  1065. HandlerType: (*FileSystemServer)(nil),
  1066. Methods: []grpc.MethodDesc{
  1067. {
  1068. MethodName: "CreateDomain",
  1069. Handler: _FileSystem_CreateDomain_Handler,
  1070. },
  1071. {
  1072. MethodName: "UpdateDomainMeta",
  1073. Handler: _FileSystem_UpdateDomainMeta_Handler,
  1074. },
  1075. {
  1076. MethodName: "DeleteDomain",
  1077. Handler: _FileSystem_DeleteDomain_Handler,
  1078. },
  1079. {
  1080. MethodName: "SaveFile",
  1081. Handler: _FileSystem_SaveFile_Handler,
  1082. },
  1083. {
  1084. MethodName: "UpdateFileMeta",
  1085. Handler: _FileSystem_UpdateFileMeta_Handler,
  1086. },
  1087. {
  1088. MethodName: "DeleteFile",
  1089. Handler: _FileSystem_DeleteFile_Handler,
  1090. },
  1091. {
  1092. MethodName: "GetFile",
  1093. Handler: _FileSystem_GetFile_Handler,
  1094. },
  1095. {
  1096. MethodName: "GetFileMeta",
  1097. Handler: _FileSystem_GetFileMeta_Handler,
  1098. },
  1099. {
  1100. MethodName: "GetOssUril",
  1101. Handler: _FileSystem_GetOssUril_Handler,
  1102. },
  1103. },
  1104. Streams: []grpc.StreamDesc{},
  1105. Metadata: "filesystem.proto",
  1106. }