filesystem.pb.go 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: filesystem.proto
  3. package filesystem
  4. import (
  5. context "context"
  6. fmt "fmt"
  7. proto "github.com/golang/protobuf/proto"
  8. grpc "google.golang.org/grpc"
  9. codes "google.golang.org/grpc/codes"
  10. status "google.golang.org/grpc/status"
  11. math "math"
  12. )
  13. // Reference imports to suppress errors if they are not otherwise used.
  14. var _ = proto.Marshal
  15. var _ = fmt.Errorf
  16. var _ = math.Inf
  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. type DomainReq struct {
  23. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  24. MetaFields []string `protobuf:"bytes,2,rep,name=metaFields,proto3" json:"metaFields,omitempty"`
  25. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  26. XXX_unrecognized []byte `json:"-"`
  27. XXX_sizecache int32 `json:"-"`
  28. }
  29. func (m *DomainReq) Reset() { *m = DomainReq{} }
  30. func (m *DomainReq) String() string { return proto.CompactTextString(m) }
  31. func (*DomainReq) ProtoMessage() {}
  32. func (*DomainReq) Descriptor() ([]byte, []int) {
  33. return fileDescriptor_0a9f8093c6c7067e, []int{0}
  34. }
  35. func (m *DomainReq) XXX_Unmarshal(b []byte) error {
  36. return xxx_messageInfo_DomainReq.Unmarshal(m, b)
  37. }
  38. func (m *DomainReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  39. return xxx_messageInfo_DomainReq.Marshal(b, m, deterministic)
  40. }
  41. func (m *DomainReq) XXX_Merge(src proto.Message) {
  42. xxx_messageInfo_DomainReq.Merge(m, src)
  43. }
  44. func (m *DomainReq) XXX_Size() int {
  45. return xxx_messageInfo_DomainReq.Size(m)
  46. }
  47. func (m *DomainReq) XXX_DiscardUnknown() {
  48. xxx_messageInfo_DomainReq.DiscardUnknown(m)
  49. }
  50. var xxx_messageInfo_DomainReq proto.InternalMessageInfo
  51. func (m *DomainReq) GetName() string {
  52. if m != nil {
  53. return m.Name
  54. }
  55. return ""
  56. }
  57. func (m *DomainReq) GetMetaFields() []string {
  58. if m != nil {
  59. return m.MetaFields
  60. }
  61. return nil
  62. }
  63. type DomainResp struct {
  64. State bool `protobuf:"varint,1,opt,name=state,proto3" json:"state,omitempty"`
  65. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  66. XXX_unrecognized []byte `json:"-"`
  67. XXX_sizecache int32 `json:"-"`
  68. }
  69. func (m *DomainResp) Reset() { *m = DomainResp{} }
  70. func (m *DomainResp) String() string { return proto.CompactTextString(m) }
  71. func (*DomainResp) ProtoMessage() {}
  72. func (*DomainResp) Descriptor() ([]byte, []int) {
  73. return fileDescriptor_0a9f8093c6c7067e, []int{1}
  74. }
  75. func (m *DomainResp) XXX_Unmarshal(b []byte) error {
  76. return xxx_messageInfo_DomainResp.Unmarshal(m, b)
  77. }
  78. func (m *DomainResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  79. return xxx_messageInfo_DomainResp.Marshal(b, m, deterministic)
  80. }
  81. func (m *DomainResp) XXX_Merge(src proto.Message) {
  82. xxx_messageInfo_DomainResp.Merge(m, src)
  83. }
  84. func (m *DomainResp) XXX_Size() int {
  85. return xxx_messageInfo_DomainResp.Size(m)
  86. }
  87. func (m *DomainResp) XXX_DiscardUnknown() {
  88. xxx_messageInfo_DomainResp.DiscardUnknown(m)
  89. }
  90. var xxx_messageInfo_DomainResp proto.InternalMessageInfo
  91. func (m *DomainResp) GetState() bool {
  92. if m != nil {
  93. return m.State
  94. }
  95. return false
  96. }
  97. //
  98. type SaveFileReq struct {
  99. Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"`
  100. 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"`
  101. RawFileContent []byte `protobuf:"bytes,3,opt,name=rawFileContent,proto3" json:"rawFileContent,omitempty"`
  102. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  103. XXX_unrecognized []byte `json:"-"`
  104. XXX_sizecache int32 `json:"-"`
  105. }
  106. func (m *SaveFileReq) Reset() { *m = SaveFileReq{} }
  107. func (m *SaveFileReq) String() string { return proto.CompactTextString(m) }
  108. func (*SaveFileReq) ProtoMessage() {}
  109. func (*SaveFileReq) Descriptor() ([]byte, []int) {
  110. return fileDescriptor_0a9f8093c6c7067e, []int{2}
  111. }
  112. func (m *SaveFileReq) XXX_Unmarshal(b []byte) error {
  113. return xxx_messageInfo_SaveFileReq.Unmarshal(m, b)
  114. }
  115. func (m *SaveFileReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  116. return xxx_messageInfo_SaveFileReq.Marshal(b, m, deterministic)
  117. }
  118. func (m *SaveFileReq) XXX_Merge(src proto.Message) {
  119. xxx_messageInfo_SaveFileReq.Merge(m, src)
  120. }
  121. func (m *SaveFileReq) XXX_Size() int {
  122. return xxx_messageInfo_SaveFileReq.Size(m)
  123. }
  124. func (m *SaveFileReq) XXX_DiscardUnknown() {
  125. xxx_messageInfo_SaveFileReq.DiscardUnknown(m)
  126. }
  127. var xxx_messageInfo_SaveFileReq proto.InternalMessageInfo
  128. func (m *SaveFileReq) GetDomain() string {
  129. if m != nil {
  130. return m.Domain
  131. }
  132. return ""
  133. }
  134. func (m *SaveFileReq) GetMeta() map[string]string {
  135. if m != nil {
  136. return m.Meta
  137. }
  138. return nil
  139. }
  140. func (m *SaveFileReq) GetRawFileContent() []byte {
  141. if m != nil {
  142. return m.RawFileContent
  143. }
  144. return nil
  145. }
  146. //
  147. type FileOpResp struct {
  148. State bool `protobuf:"varint,1,opt,name=state,proto3" json:"state,omitempty"`
  149. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
  150. FileId string `protobuf:"bytes,3,opt,name=fileId,proto3" json:"fileId,omitempty"`
  151. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  152. XXX_unrecognized []byte `json:"-"`
  153. XXX_sizecache int32 `json:"-"`
  154. }
  155. func (m *FileOpResp) Reset() { *m = FileOpResp{} }
  156. func (m *FileOpResp) String() string { return proto.CompactTextString(m) }
  157. func (*FileOpResp) ProtoMessage() {}
  158. func (*FileOpResp) Descriptor() ([]byte, []int) {
  159. return fileDescriptor_0a9f8093c6c7067e, []int{3}
  160. }
  161. func (m *FileOpResp) XXX_Unmarshal(b []byte) error {
  162. return xxx_messageInfo_FileOpResp.Unmarshal(m, b)
  163. }
  164. func (m *FileOpResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  165. return xxx_messageInfo_FileOpResp.Marshal(b, m, deterministic)
  166. }
  167. func (m *FileOpResp) XXX_Merge(src proto.Message) {
  168. xxx_messageInfo_FileOpResp.Merge(m, src)
  169. }
  170. func (m *FileOpResp) XXX_Size() int {
  171. return xxx_messageInfo_FileOpResp.Size(m)
  172. }
  173. func (m *FileOpResp) XXX_DiscardUnknown() {
  174. xxx_messageInfo_FileOpResp.DiscardUnknown(m)
  175. }
  176. var xxx_messageInfo_FileOpResp proto.InternalMessageInfo
  177. func (m *FileOpResp) GetState() bool {
  178. if m != nil {
  179. return m.State
  180. }
  181. return false
  182. }
  183. func (m *FileOpResp) GetDomain() string {
  184. if m != nil {
  185. return m.Domain
  186. }
  187. return ""
  188. }
  189. func (m *FileOpResp) GetFileId() string {
  190. if m != nil {
  191. return m.FileId
  192. }
  193. return ""
  194. }
  195. //
  196. type UpdateFileMetaReq struct {
  197. Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"`
  198. FileId string `protobuf:"bytes,2,opt,name=fileId,proto3" json:"fileId,omitempty"`
  199. 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"`
  200. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  201. XXX_unrecognized []byte `json:"-"`
  202. XXX_sizecache int32 `json:"-"`
  203. }
  204. func (m *UpdateFileMetaReq) Reset() { *m = UpdateFileMetaReq{} }
  205. func (m *UpdateFileMetaReq) String() string { return proto.CompactTextString(m) }
  206. func (*UpdateFileMetaReq) ProtoMessage() {}
  207. func (*UpdateFileMetaReq) Descriptor() ([]byte, []int) {
  208. return fileDescriptor_0a9f8093c6c7067e, []int{4}
  209. }
  210. func (m *UpdateFileMetaReq) XXX_Unmarshal(b []byte) error {
  211. return xxx_messageInfo_UpdateFileMetaReq.Unmarshal(m, b)
  212. }
  213. func (m *UpdateFileMetaReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  214. return xxx_messageInfo_UpdateFileMetaReq.Marshal(b, m, deterministic)
  215. }
  216. func (m *UpdateFileMetaReq) XXX_Merge(src proto.Message) {
  217. xxx_messageInfo_UpdateFileMetaReq.Merge(m, src)
  218. }
  219. func (m *UpdateFileMetaReq) XXX_Size() int {
  220. return xxx_messageInfo_UpdateFileMetaReq.Size(m)
  221. }
  222. func (m *UpdateFileMetaReq) XXX_DiscardUnknown() {
  223. xxx_messageInfo_UpdateFileMetaReq.DiscardUnknown(m)
  224. }
  225. var xxx_messageInfo_UpdateFileMetaReq proto.InternalMessageInfo
  226. func (m *UpdateFileMetaReq) GetDomain() string {
  227. if m != nil {
  228. return m.Domain
  229. }
  230. return ""
  231. }
  232. func (m *UpdateFileMetaReq) GetFileId() string {
  233. if m != nil {
  234. return m.FileId
  235. }
  236. return ""
  237. }
  238. func (m *UpdateFileMetaReq) GetMeta() map[string]string {
  239. if m != nil {
  240. return m.Meta
  241. }
  242. return nil
  243. }
  244. //
  245. type LoadFileReq struct {
  246. Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"`
  247. FileId string `protobuf:"bytes,2,opt,name=fileId,proto3" json:"fileId,omitempty"`
  248. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  249. XXX_unrecognized []byte `json:"-"`
  250. XXX_sizecache int32 `json:"-"`
  251. }
  252. func (m *LoadFileReq) Reset() { *m = LoadFileReq{} }
  253. func (m *LoadFileReq) String() string { return proto.CompactTextString(m) }
  254. func (*LoadFileReq) ProtoMessage() {}
  255. func (*LoadFileReq) Descriptor() ([]byte, []int) {
  256. return fileDescriptor_0a9f8093c6c7067e, []int{5}
  257. }
  258. func (m *LoadFileReq) XXX_Unmarshal(b []byte) error {
  259. return xxx_messageInfo_LoadFileReq.Unmarshal(m, b)
  260. }
  261. func (m *LoadFileReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  262. return xxx_messageInfo_LoadFileReq.Marshal(b, m, deterministic)
  263. }
  264. func (m *LoadFileReq) XXX_Merge(src proto.Message) {
  265. xxx_messageInfo_LoadFileReq.Merge(m, src)
  266. }
  267. func (m *LoadFileReq) XXX_Size() int {
  268. return xxx_messageInfo_LoadFileReq.Size(m)
  269. }
  270. func (m *LoadFileReq) XXX_DiscardUnknown() {
  271. xxx_messageInfo_LoadFileReq.DiscardUnknown(m)
  272. }
  273. var xxx_messageInfo_LoadFileReq proto.InternalMessageInfo
  274. func (m *LoadFileReq) GetDomain() string {
  275. if m != nil {
  276. return m.Domain
  277. }
  278. return ""
  279. }
  280. func (m *LoadFileReq) GetFileId() string {
  281. if m != nil {
  282. return m.FileId
  283. }
  284. return ""
  285. }
  286. //
  287. type LoadFileResp struct {
  288. 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"`
  289. RawFileContent []byte `protobuf:"bytes,3,opt,name=rawFileContent,proto3" json:"rawFileContent,omitempty"`
  290. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  291. XXX_unrecognized []byte `json:"-"`
  292. XXX_sizecache int32 `json:"-"`
  293. }
  294. func (m *LoadFileResp) Reset() { *m = LoadFileResp{} }
  295. func (m *LoadFileResp) String() string { return proto.CompactTextString(m) }
  296. func (*LoadFileResp) ProtoMessage() {}
  297. func (*LoadFileResp) Descriptor() ([]byte, []int) {
  298. return fileDescriptor_0a9f8093c6c7067e, []int{6}
  299. }
  300. func (m *LoadFileResp) XXX_Unmarshal(b []byte) error {
  301. return xxx_messageInfo_LoadFileResp.Unmarshal(m, b)
  302. }
  303. func (m *LoadFileResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  304. return xxx_messageInfo_LoadFileResp.Marshal(b, m, deterministic)
  305. }
  306. func (m *LoadFileResp) XXX_Merge(src proto.Message) {
  307. xxx_messageInfo_LoadFileResp.Merge(m, src)
  308. }
  309. func (m *LoadFileResp) XXX_Size() int {
  310. return xxx_messageInfo_LoadFileResp.Size(m)
  311. }
  312. func (m *LoadFileResp) XXX_DiscardUnknown() {
  313. xxx_messageInfo_LoadFileResp.DiscardUnknown(m)
  314. }
  315. var xxx_messageInfo_LoadFileResp proto.InternalMessageInfo
  316. func (m *LoadFileResp) GetMeta() map[string]string {
  317. if m != nil {
  318. return m.Meta
  319. }
  320. return nil
  321. }
  322. func (m *LoadFileResp) GetRawFileContent() []byte {
  323. if m != nil {
  324. return m.RawFileContent
  325. }
  326. return nil
  327. }
  328. //
  329. type LoadFileMetaResp struct {
  330. 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"`
  331. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  332. XXX_unrecognized []byte `json:"-"`
  333. XXX_sizecache int32 `json:"-"`
  334. }
  335. func (m *LoadFileMetaResp) Reset() { *m = LoadFileMetaResp{} }
  336. func (m *LoadFileMetaResp) String() string { return proto.CompactTextString(m) }
  337. func (*LoadFileMetaResp) ProtoMessage() {}
  338. func (*LoadFileMetaResp) Descriptor() ([]byte, []int) {
  339. return fileDescriptor_0a9f8093c6c7067e, []int{7}
  340. }
  341. func (m *LoadFileMetaResp) XXX_Unmarshal(b []byte) error {
  342. return xxx_messageInfo_LoadFileMetaResp.Unmarshal(m, b)
  343. }
  344. func (m *LoadFileMetaResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  345. return xxx_messageInfo_LoadFileMetaResp.Marshal(b, m, deterministic)
  346. }
  347. func (m *LoadFileMetaResp) XXX_Merge(src proto.Message) {
  348. xxx_messageInfo_LoadFileMetaResp.Merge(m, src)
  349. }
  350. func (m *LoadFileMetaResp) XXX_Size() int {
  351. return xxx_messageInfo_LoadFileMetaResp.Size(m)
  352. }
  353. func (m *LoadFileMetaResp) XXX_DiscardUnknown() {
  354. xxx_messageInfo_LoadFileMetaResp.DiscardUnknown(m)
  355. }
  356. var xxx_messageInfo_LoadFileMetaResp proto.InternalMessageInfo
  357. func (m *LoadFileMetaResp) GetMeta() map[string]string {
  358. if m != nil {
  359. return m.Meta
  360. }
  361. return nil
  362. }
  363. func init() {
  364. proto.RegisterType((*DomainReq)(nil), "filesystem.DomainReq")
  365. proto.RegisterType((*DomainResp)(nil), "filesystem.DomainResp")
  366. proto.RegisterType((*SaveFileReq)(nil), "filesystem.SaveFileReq")
  367. proto.RegisterMapType((map[string]string)(nil), "filesystem.SaveFileReq.MetaEntry")
  368. proto.RegisterType((*FileOpResp)(nil), "filesystem.FileOpResp")
  369. proto.RegisterType((*UpdateFileMetaReq)(nil), "filesystem.UpdateFileMetaReq")
  370. proto.RegisterMapType((map[string]string)(nil), "filesystem.UpdateFileMetaReq.MetaEntry")
  371. proto.RegisterType((*LoadFileReq)(nil), "filesystem.LoadFileReq")
  372. proto.RegisterType((*LoadFileResp)(nil), "filesystem.LoadFileResp")
  373. proto.RegisterMapType((map[string]string)(nil), "filesystem.LoadFileResp.MetaEntry")
  374. proto.RegisterType((*LoadFileMetaResp)(nil), "filesystem.LoadFileMetaResp")
  375. proto.RegisterMapType((map[string]string)(nil), "filesystem.LoadFileMetaResp.MetaEntry")
  376. }
  377. func init() {
  378. proto.RegisterFile("filesystem.proto", fileDescriptor_0a9f8093c6c7067e)
  379. }
  380. var fileDescriptor_0a9f8093c6c7067e = []byte{
  381. // 473 bytes of a gzipped FileDescriptorProto
  382. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0xdd, 0x6a, 0x13, 0x41,
  383. 0x14, 0x66, 0x36, 0x31, 0x76, 0x4f, 0x42, 0x89, 0x07, 0x8d, 0x4b, 0x51, 0x89, 0x73, 0x51, 0x73,
  384. 0x95, 0x8b, 0x8a, 0x3f, 0xb4, 0x06, 0x91, 0xc6, 0x16, 0x41, 0x11, 0xa6, 0xf8, 0x00, 0x23, 0x7b,
  385. 0x84, 0xe0, 0xfe, 0xb9, 0x33, 0x56, 0xf2, 0x04, 0xbe, 0x81, 0xaf, 0xe0, 0x33, 0x78, 0xe1, 0xbb,
  386. 0xc9, 0xcc, 0xec, 0x36, 0xb3, 0x6d, 0x77, 0xc5, 0x22, 0xbd, 0xdb, 0x39, 0x99, 0xef, 0x3b, 0xdf,
  387. 0xf7, 0xcd, 0x39, 0x81, 0xf1, 0xa7, 0x55, 0x42, 0x6a, 0xad, 0x34, 0xa5, 0xf3, 0xa2, 0xcc, 0x75,
  388. 0x8e, 0xb0, 0xa9, 0xf0, 0x97, 0x10, 0x2e, 0xf3, 0x54, 0xae, 0x32, 0x41, 0x5f, 0x10, 0xa1, 0x9f,
  389. 0xc9, 0x94, 0x22, 0x36, 0x65, 0xb3, 0x50, 0xd8, 0x6f, 0x7c, 0x00, 0x90, 0x92, 0x96, 0x47, 0x2b,
  390. 0x4a, 0x62, 0x15, 0x05, 0xd3, 0xde, 0x2c, 0x14, 0x5e, 0x85, 0x73, 0x80, 0x9a, 0x40, 0x15, 0x78,
  391. 0x1b, 0x6e, 0x28, 0x2d, 0xb5, 0xa3, 0xd8, 0x12, 0xee, 0xc0, 0x7f, 0x33, 0x18, 0x9e, 0xc8, 0x53,
  392. 0x3a, 0x5a, 0x25, 0x64, 0xfa, 0x4c, 0x60, 0x10, 0x5b, 0x4c, 0xd5, 0xa9, 0x3a, 0xe1, 0x13, 0xe8,
  393. 0x1b, 0x66, 0xdb, 0x65, 0xb8, 0xf7, 0x70, 0xee, 0x29, 0xf7, 0xe0, 0xf3, 0x77, 0xa4, 0xe5, 0xeb,
  394. 0x4c, 0x97, 0x6b, 0x61, 0xaf, 0xe3, 0x2e, 0x6c, 0x97, 0xf2, 0x9b, 0xf9, 0xf5, 0x30, 0xcf, 0x34,
  395. 0x65, 0x3a, 0xea, 0x4d, 0xd9, 0x6c, 0x24, 0xce, 0x55, 0x77, 0x9e, 0x41, 0x78, 0x06, 0xc5, 0x31,
  396. 0xf4, 0x3e, 0xd3, 0xba, 0x12, 0x60, 0x3e, 0x8d, 0xf6, 0x53, 0x99, 0x7c, 0xa5, 0x28, 0xb0, 0x35,
  397. 0x77, 0xd8, 0x0f, 0x9e, 0x33, 0x2e, 0x00, 0x0c, 0xcf, 0xfb, 0xa2, 0xdd, 0xa3, 0xe7, 0x29, 0x68,
  398. 0x78, 0x9a, 0xc0, 0xc0, 0xd8, 0x78, 0x13, 0x5b, 0x51, 0xa1, 0xa8, 0x4e, 0xfc, 0x17, 0x83, 0x5b,
  399. 0x1f, 0x8a, 0x58, 0x6a, 0x6b, 0xcb, 0xe8, 0xea, 0x4a, 0x66, 0xc3, 0x12, 0xf8, 0x2c, 0x78, 0x50,
  400. 0x25, 0xd6, 0xb3, 0x89, 0x3d, 0xf2, 0x13, 0xbb, 0x40, 0x7e, 0x3e, 0xb7, 0xab, 0xe7, 0xb1, 0x80,
  401. 0xe1, 0xdb, 0x5c, 0xc6, 0x7f, 0x7b, 0xce, 0x16, 0xd1, 0xfc, 0x27, 0x83, 0xd1, 0x06, 0xaf, 0x0a,
  402. 0x7c, 0xda, 0x78, 0x77, 0xee, 0xbb, 0xf0, 0xef, 0x5d, 0xff, 0xc3, 0x7f, 0x67, 0x30, 0xae, 0x15,
  403. 0xb8, 0x14, 0x55, 0x81, 0xfb, 0x0d, 0xb5, 0xbb, 0x97, 0xa9, 0xad, 0xef, 0xfe, 0xb7, 0xc8, 0xf7,
  404. 0x7e, 0xf4, 0xdd, 0x0c, 0x9e, 0xd8, 0x46, 0xb8, 0x80, 0xd1, 0x61, 0x49, 0x52, 0x93, 0xdb, 0x3d,
  405. 0xbc, 0xe3, 0xab, 0x38, 0x5b, 0xe8, 0x9d, 0xc9, 0x65, 0x65, 0x55, 0xe0, 0x2b, 0x18, 0xbb, 0xf1,
  406. 0x70, 0x35, 0x23, 0xe9, 0x5f, 0x29, 0x16, 0x30, 0x5a, 0x52, 0x42, 0x57, 0x55, 0x70, 0x00, 0x5b,
  407. 0xf5, 0x4a, 0xe3, 0xdd, 0x96, 0x45, 0x6f, 0x82, 0xbd, 0x0d, 0x3c, 0x86, 0xed, 0xe6, 0x74, 0xe3,
  408. 0xfd, 0xce, 0xc9, 0x6f, 0x25, 0x5a, 0x00, 0x38, 0x13, 0x17, 0x75, 0x78, 0x03, 0xde, 0x0a, 0x7f,
  409. 0x01, 0x37, 0x8f, 0x49, 0x77, 0x63, 0xa3, 0xb6, 0x69, 0xc6, 0x25, 0x0c, 0x2b, 0xb4, 0xb5, 0xd0,
  410. 0xca, 0x70, 0xaf, 0x6b, 0xc2, 0x3e, 0x0e, 0xec, 0x7f, 0xfa, 0xe3, 0x3f, 0x01, 0x00, 0x00, 0xff,
  411. 0xff, 0x2f, 0xd9, 0x28, 0x01, 0xe7, 0x05, 0x00, 0x00,
  412. }
  413. // Reference imports to suppress errors if they are not otherwise used.
  414. var _ context.Context
  415. var _ grpc.ClientConnInterface
  416. // This is a compile-time assertion to ensure that this generated file
  417. // is compatible with the grpc package it is being compiled against.
  418. const _ = grpc.SupportPackageIsVersion6
  419. // FileSystemClient is the client API for FileSystem service.
  420. //
  421. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  422. type FileSystemClient interface {
  423. //创建域
  424. CreateDomain(ctx context.Context, in *DomainReq, opts ...grpc.CallOption) (*DomainResp, error)
  425. //更新域
  426. UpdateDomainMeta(ctx context.Context, in *DomainReq, opts ...grpc.CallOption) (*DomainResp, error)
  427. //删除域
  428. DeleteDomain(ctx context.Context, in *DomainReq, opts ...grpc.CallOption) (*DomainResp, error)
  429. //保存文件
  430. SaveFile(ctx context.Context, in *SaveFileReq, opts ...grpc.CallOption) (*FileOpResp, error)
  431. //更新文件元数据
  432. UpdateFileMeta(ctx context.Context, in *UpdateFileMetaReq, opts ...grpc.CallOption) (*FileOpResp, error)
  433. //删除文件
  434. DeleteFile(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*FileOpResp, error)
  435. //获取文件
  436. GetFile(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*LoadFileResp, error)
  437. //获取文件元数据
  438. GetFileMeta(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*LoadFileMetaResp, error)
  439. }
  440. type fileSystemClient struct {
  441. cc grpc.ClientConnInterface
  442. }
  443. func NewFileSystemClient(cc grpc.ClientConnInterface) FileSystemClient {
  444. return &fileSystemClient{cc}
  445. }
  446. func (c *fileSystemClient) CreateDomain(ctx context.Context, in *DomainReq, opts ...grpc.CallOption) (*DomainResp, error) {
  447. out := new(DomainResp)
  448. err := c.cc.Invoke(ctx, "/filesystem.FileSystem/CreateDomain", in, out, opts...)
  449. if err != nil {
  450. return nil, err
  451. }
  452. return out, nil
  453. }
  454. func (c *fileSystemClient) UpdateDomainMeta(ctx context.Context, in *DomainReq, opts ...grpc.CallOption) (*DomainResp, error) {
  455. out := new(DomainResp)
  456. err := c.cc.Invoke(ctx, "/filesystem.FileSystem/UpdateDomainMeta", in, out, opts...)
  457. if err != nil {
  458. return nil, err
  459. }
  460. return out, nil
  461. }
  462. func (c *fileSystemClient) DeleteDomain(ctx context.Context, in *DomainReq, opts ...grpc.CallOption) (*DomainResp, error) {
  463. out := new(DomainResp)
  464. err := c.cc.Invoke(ctx, "/filesystem.FileSystem/DeleteDomain", in, out, opts...)
  465. if err != nil {
  466. return nil, err
  467. }
  468. return out, nil
  469. }
  470. func (c *fileSystemClient) SaveFile(ctx context.Context, in *SaveFileReq, opts ...grpc.CallOption) (*FileOpResp, error) {
  471. out := new(FileOpResp)
  472. err := c.cc.Invoke(ctx, "/filesystem.FileSystem/SaveFile", in, out, opts...)
  473. if err != nil {
  474. return nil, err
  475. }
  476. return out, nil
  477. }
  478. func (c *fileSystemClient) UpdateFileMeta(ctx context.Context, in *UpdateFileMetaReq, opts ...grpc.CallOption) (*FileOpResp, error) {
  479. out := new(FileOpResp)
  480. err := c.cc.Invoke(ctx, "/filesystem.FileSystem/UpdateFileMeta", in, out, opts...)
  481. if err != nil {
  482. return nil, err
  483. }
  484. return out, nil
  485. }
  486. func (c *fileSystemClient) DeleteFile(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*FileOpResp, error) {
  487. out := new(FileOpResp)
  488. err := c.cc.Invoke(ctx, "/filesystem.FileSystem/DeleteFile", in, out, opts...)
  489. if err != nil {
  490. return nil, err
  491. }
  492. return out, nil
  493. }
  494. func (c *fileSystemClient) GetFile(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*LoadFileResp, error) {
  495. out := new(LoadFileResp)
  496. err := c.cc.Invoke(ctx, "/filesystem.FileSystem/GetFile", in, out, opts...)
  497. if err != nil {
  498. return nil, err
  499. }
  500. return out, nil
  501. }
  502. func (c *fileSystemClient) GetFileMeta(ctx context.Context, in *LoadFileReq, opts ...grpc.CallOption) (*LoadFileMetaResp, error) {
  503. out := new(LoadFileMetaResp)
  504. err := c.cc.Invoke(ctx, "/filesystem.FileSystem/GetFileMeta", in, out, opts...)
  505. if err != nil {
  506. return nil, err
  507. }
  508. return out, nil
  509. }
  510. // FileSystemServer is the server API for FileSystem service.
  511. type FileSystemServer interface {
  512. //创建域
  513. CreateDomain(context.Context, *DomainReq) (*DomainResp, error)
  514. //更新域
  515. UpdateDomainMeta(context.Context, *DomainReq) (*DomainResp, error)
  516. //删除域
  517. DeleteDomain(context.Context, *DomainReq) (*DomainResp, error)
  518. //保存文件
  519. SaveFile(context.Context, *SaveFileReq) (*FileOpResp, error)
  520. //更新文件元数据
  521. UpdateFileMeta(context.Context, *UpdateFileMetaReq) (*FileOpResp, error)
  522. //删除文件
  523. DeleteFile(context.Context, *LoadFileReq) (*FileOpResp, error)
  524. //获取文件
  525. GetFile(context.Context, *LoadFileReq) (*LoadFileResp, error)
  526. //获取文件元数据
  527. GetFileMeta(context.Context, *LoadFileReq) (*LoadFileMetaResp, error)
  528. }
  529. // UnimplementedFileSystemServer can be embedded to have forward compatible implementations.
  530. type UnimplementedFileSystemServer struct {
  531. }
  532. func (*UnimplementedFileSystemServer) CreateDomain(ctx context.Context, req *DomainReq) (*DomainResp, error) {
  533. return nil, status.Errorf(codes.Unimplemented, "method CreateDomain not implemented")
  534. }
  535. func (*UnimplementedFileSystemServer) UpdateDomainMeta(ctx context.Context, req *DomainReq) (*DomainResp, error) {
  536. return nil, status.Errorf(codes.Unimplemented, "method UpdateDomainMeta not implemented")
  537. }
  538. func (*UnimplementedFileSystemServer) DeleteDomain(ctx context.Context, req *DomainReq) (*DomainResp, error) {
  539. return nil, status.Errorf(codes.Unimplemented, "method DeleteDomain not implemented")
  540. }
  541. func (*UnimplementedFileSystemServer) SaveFile(ctx context.Context, req *SaveFileReq) (*FileOpResp, error) {
  542. return nil, status.Errorf(codes.Unimplemented, "method SaveFile not implemented")
  543. }
  544. func (*UnimplementedFileSystemServer) UpdateFileMeta(ctx context.Context, req *UpdateFileMetaReq) (*FileOpResp, error) {
  545. return nil, status.Errorf(codes.Unimplemented, "method UpdateFileMeta not implemented")
  546. }
  547. func (*UnimplementedFileSystemServer) DeleteFile(ctx context.Context, req *LoadFileReq) (*FileOpResp, error) {
  548. return nil, status.Errorf(codes.Unimplemented, "method DeleteFile not implemented")
  549. }
  550. func (*UnimplementedFileSystemServer) GetFile(ctx context.Context, req *LoadFileReq) (*LoadFileResp, error) {
  551. return nil, status.Errorf(codes.Unimplemented, "method GetFile not implemented")
  552. }
  553. func (*UnimplementedFileSystemServer) GetFileMeta(ctx context.Context, req *LoadFileReq) (*LoadFileMetaResp, error) {
  554. return nil, status.Errorf(codes.Unimplemented, "method GetFileMeta not implemented")
  555. }
  556. func RegisterFileSystemServer(s *grpc.Server, srv FileSystemServer) {
  557. s.RegisterService(&_FileSystem_serviceDesc, srv)
  558. }
  559. func _FileSystem_CreateDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  560. in := new(DomainReq)
  561. if err := dec(in); err != nil {
  562. return nil, err
  563. }
  564. if interceptor == nil {
  565. return srv.(FileSystemServer).CreateDomain(ctx, in)
  566. }
  567. info := &grpc.UnaryServerInfo{
  568. Server: srv,
  569. FullMethod: "/filesystem.FileSystem/CreateDomain",
  570. }
  571. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  572. return srv.(FileSystemServer).CreateDomain(ctx, req.(*DomainReq))
  573. }
  574. return interceptor(ctx, in, info, handler)
  575. }
  576. func _FileSystem_UpdateDomainMeta_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  577. in := new(DomainReq)
  578. if err := dec(in); err != nil {
  579. return nil, err
  580. }
  581. if interceptor == nil {
  582. return srv.(FileSystemServer).UpdateDomainMeta(ctx, in)
  583. }
  584. info := &grpc.UnaryServerInfo{
  585. Server: srv,
  586. FullMethod: "/filesystem.FileSystem/UpdateDomainMeta",
  587. }
  588. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  589. return srv.(FileSystemServer).UpdateDomainMeta(ctx, req.(*DomainReq))
  590. }
  591. return interceptor(ctx, in, info, handler)
  592. }
  593. func _FileSystem_DeleteDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  594. in := new(DomainReq)
  595. if err := dec(in); err != nil {
  596. return nil, err
  597. }
  598. if interceptor == nil {
  599. return srv.(FileSystemServer).DeleteDomain(ctx, in)
  600. }
  601. info := &grpc.UnaryServerInfo{
  602. Server: srv,
  603. FullMethod: "/filesystem.FileSystem/DeleteDomain",
  604. }
  605. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  606. return srv.(FileSystemServer).DeleteDomain(ctx, req.(*DomainReq))
  607. }
  608. return interceptor(ctx, in, info, handler)
  609. }
  610. func _FileSystem_SaveFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  611. in := new(SaveFileReq)
  612. if err := dec(in); err != nil {
  613. return nil, err
  614. }
  615. if interceptor == nil {
  616. return srv.(FileSystemServer).SaveFile(ctx, in)
  617. }
  618. info := &grpc.UnaryServerInfo{
  619. Server: srv,
  620. FullMethod: "/filesystem.FileSystem/SaveFile",
  621. }
  622. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  623. return srv.(FileSystemServer).SaveFile(ctx, req.(*SaveFileReq))
  624. }
  625. return interceptor(ctx, in, info, handler)
  626. }
  627. func _FileSystem_UpdateFileMeta_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  628. in := new(UpdateFileMetaReq)
  629. if err := dec(in); err != nil {
  630. return nil, err
  631. }
  632. if interceptor == nil {
  633. return srv.(FileSystemServer).UpdateFileMeta(ctx, in)
  634. }
  635. info := &grpc.UnaryServerInfo{
  636. Server: srv,
  637. FullMethod: "/filesystem.FileSystem/UpdateFileMeta",
  638. }
  639. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  640. return srv.(FileSystemServer).UpdateFileMeta(ctx, req.(*UpdateFileMetaReq))
  641. }
  642. return interceptor(ctx, in, info, handler)
  643. }
  644. func _FileSystem_DeleteFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  645. in := new(LoadFileReq)
  646. if err := dec(in); err != nil {
  647. return nil, err
  648. }
  649. if interceptor == nil {
  650. return srv.(FileSystemServer).DeleteFile(ctx, in)
  651. }
  652. info := &grpc.UnaryServerInfo{
  653. Server: srv,
  654. FullMethod: "/filesystem.FileSystem/DeleteFile",
  655. }
  656. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  657. return srv.(FileSystemServer).DeleteFile(ctx, req.(*LoadFileReq))
  658. }
  659. return interceptor(ctx, in, info, handler)
  660. }
  661. func _FileSystem_GetFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  662. in := new(LoadFileReq)
  663. if err := dec(in); err != nil {
  664. return nil, err
  665. }
  666. if interceptor == nil {
  667. return srv.(FileSystemServer).GetFile(ctx, in)
  668. }
  669. info := &grpc.UnaryServerInfo{
  670. Server: srv,
  671. FullMethod: "/filesystem.FileSystem/GetFile",
  672. }
  673. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  674. return srv.(FileSystemServer).GetFile(ctx, req.(*LoadFileReq))
  675. }
  676. return interceptor(ctx, in, info, handler)
  677. }
  678. func _FileSystem_GetFileMeta_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  679. in := new(LoadFileReq)
  680. if err := dec(in); err != nil {
  681. return nil, err
  682. }
  683. if interceptor == nil {
  684. return srv.(FileSystemServer).GetFileMeta(ctx, in)
  685. }
  686. info := &grpc.UnaryServerInfo{
  687. Server: srv,
  688. FullMethod: "/filesystem.FileSystem/GetFileMeta",
  689. }
  690. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  691. return srv.(FileSystemServer).GetFileMeta(ctx, req.(*LoadFileReq))
  692. }
  693. return interceptor(ctx, in, info, handler)
  694. }
  695. var _FileSystem_serviceDesc = grpc.ServiceDesc{
  696. ServiceName: "filesystem.FileSystem",
  697. HandlerType: (*FileSystemServer)(nil),
  698. Methods: []grpc.MethodDesc{
  699. {
  700. MethodName: "CreateDomain",
  701. Handler: _FileSystem_CreateDomain_Handler,
  702. },
  703. {
  704. MethodName: "UpdateDomainMeta",
  705. Handler: _FileSystem_UpdateDomainMeta_Handler,
  706. },
  707. {
  708. MethodName: "DeleteDomain",
  709. Handler: _FileSystem_DeleteDomain_Handler,
  710. },
  711. {
  712. MethodName: "SaveFile",
  713. Handler: _FileSystem_SaveFile_Handler,
  714. },
  715. {
  716. MethodName: "UpdateFileMeta",
  717. Handler: _FileSystem_UpdateFileMeta_Handler,
  718. },
  719. {
  720. MethodName: "DeleteFile",
  721. Handler: _FileSystem_DeleteFile_Handler,
  722. },
  723. {
  724. MethodName: "GetFile",
  725. Handler: _FileSystem_GetFile_Handler,
  726. },
  727. {
  728. MethodName: "GetFileMeta",
  729. Handler: _FileSystem_GetFileMeta_Handler,
  730. },
  731. },
  732. Streams: []grpc.StreamDesc{},
  733. Metadata: "filesystem.proto",
  734. }