You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1002 lines
38 KiB

  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. // versions:
  3. // - protoc-gen-go-grpc v1.2.0
  4. // - protoc v3.17.3
  5. // source: filer.proto
  6. package filer_pb
  7. import (
  8. context "context"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. )
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the grpc package it is being compiled against.
  15. // Requires gRPC-Go v1.32.0 or later.
  16. const _ = grpc.SupportPackageIsVersion7
  17. // SeaweedFilerClient is the client API for SeaweedFiler service.
  18. //
  19. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
  20. type SeaweedFilerClient interface {
  21. LookupDirectoryEntry(ctx context.Context, in *LookupDirectoryEntryRequest, opts ...grpc.CallOption) (*LookupDirectoryEntryResponse, error)
  22. ListEntries(ctx context.Context, in *ListEntriesRequest, opts ...grpc.CallOption) (SeaweedFiler_ListEntriesClient, error)
  23. CreateEntry(ctx context.Context, in *CreateEntryRequest, opts ...grpc.CallOption) (*CreateEntryResponse, error)
  24. UpdateEntry(ctx context.Context, in *UpdateEntryRequest, opts ...grpc.CallOption) (*UpdateEntryResponse, error)
  25. AppendToEntry(ctx context.Context, in *AppendToEntryRequest, opts ...grpc.CallOption) (*AppendToEntryResponse, error)
  26. DeleteEntry(ctx context.Context, in *DeleteEntryRequest, opts ...grpc.CallOption) (*DeleteEntryResponse, error)
  27. AtomicRenameEntry(ctx context.Context, in *AtomicRenameEntryRequest, opts ...grpc.CallOption) (*AtomicRenameEntryResponse, error)
  28. StreamRenameEntry(ctx context.Context, in *StreamRenameEntryRequest, opts ...grpc.CallOption) (SeaweedFiler_StreamRenameEntryClient, error)
  29. AssignVolume(ctx context.Context, in *AssignVolumeRequest, opts ...grpc.CallOption) (*AssignVolumeResponse, error)
  30. LookupVolume(ctx context.Context, in *LookupVolumeRequest, opts ...grpc.CallOption) (*LookupVolumeResponse, error)
  31. CollectionList(ctx context.Context, in *CollectionListRequest, opts ...grpc.CallOption) (*CollectionListResponse, error)
  32. DeleteCollection(ctx context.Context, in *DeleteCollectionRequest, opts ...grpc.CallOption) (*DeleteCollectionResponse, error)
  33. Statistics(ctx context.Context, in *StatisticsRequest, opts ...grpc.CallOption) (*StatisticsResponse, error)
  34. Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
  35. GetFilerConfiguration(ctx context.Context, in *GetFilerConfigurationRequest, opts ...grpc.CallOption) (*GetFilerConfigurationResponse, error)
  36. SubscribeMetadata(ctx context.Context, in *SubscribeMetadataRequest, opts ...grpc.CallOption) (SeaweedFiler_SubscribeMetadataClient, error)
  37. SubscribeLocalMetadata(ctx context.Context, in *SubscribeMetadataRequest, opts ...grpc.CallOption) (SeaweedFiler_SubscribeLocalMetadataClient, error)
  38. KeepConnected(ctx context.Context, opts ...grpc.CallOption) (SeaweedFiler_KeepConnectedClient, error)
  39. LocateBroker(ctx context.Context, in *LocateBrokerRequest, opts ...grpc.CallOption) (*LocateBrokerResponse, error)
  40. KvGet(ctx context.Context, in *KvGetRequest, opts ...grpc.CallOption) (*KvGetResponse, error)
  41. KvPut(ctx context.Context, in *KvPutRequest, opts ...grpc.CallOption) (*KvPutResponse, error)
  42. CacheRemoteObjectToLocalCluster(ctx context.Context, in *CacheRemoteObjectToLocalClusterRequest, opts ...grpc.CallOption) (*CacheRemoteObjectToLocalClusterResponse, error)
  43. }
  44. type seaweedFilerClient struct {
  45. cc grpc.ClientConnInterface
  46. }
  47. func NewSeaweedFilerClient(cc grpc.ClientConnInterface) SeaweedFilerClient {
  48. return &seaweedFilerClient{cc}
  49. }
  50. func (c *seaweedFilerClient) LookupDirectoryEntry(ctx context.Context, in *LookupDirectoryEntryRequest, opts ...grpc.CallOption) (*LookupDirectoryEntryResponse, error) {
  51. out := new(LookupDirectoryEntryResponse)
  52. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/LookupDirectoryEntry", in, out, opts...)
  53. if err != nil {
  54. return nil, err
  55. }
  56. return out, nil
  57. }
  58. func (c *seaweedFilerClient) ListEntries(ctx context.Context, in *ListEntriesRequest, opts ...grpc.CallOption) (SeaweedFiler_ListEntriesClient, error) {
  59. stream, err := c.cc.NewStream(ctx, &SeaweedFiler_ServiceDesc.Streams[0], "/filer_pb.SeaweedFiler/ListEntries", opts...)
  60. if err != nil {
  61. return nil, err
  62. }
  63. x := &seaweedFilerListEntriesClient{stream}
  64. if err := x.ClientStream.SendMsg(in); err != nil {
  65. return nil, err
  66. }
  67. if err := x.ClientStream.CloseSend(); err != nil {
  68. return nil, err
  69. }
  70. return x, nil
  71. }
  72. type SeaweedFiler_ListEntriesClient interface {
  73. Recv() (*ListEntriesResponse, error)
  74. grpc.ClientStream
  75. }
  76. type seaweedFilerListEntriesClient struct {
  77. grpc.ClientStream
  78. }
  79. func (x *seaweedFilerListEntriesClient) Recv() (*ListEntriesResponse, error) {
  80. m := new(ListEntriesResponse)
  81. if err := x.ClientStream.RecvMsg(m); err != nil {
  82. return nil, err
  83. }
  84. return m, nil
  85. }
  86. func (c *seaweedFilerClient) CreateEntry(ctx context.Context, in *CreateEntryRequest, opts ...grpc.CallOption) (*CreateEntryResponse, error) {
  87. out := new(CreateEntryResponse)
  88. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/CreateEntry", in, out, opts...)
  89. if err != nil {
  90. return nil, err
  91. }
  92. return out, nil
  93. }
  94. func (c *seaweedFilerClient) UpdateEntry(ctx context.Context, in *UpdateEntryRequest, opts ...grpc.CallOption) (*UpdateEntryResponse, error) {
  95. out := new(UpdateEntryResponse)
  96. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/UpdateEntry", in, out, opts...)
  97. if err != nil {
  98. return nil, err
  99. }
  100. return out, nil
  101. }
  102. func (c *seaweedFilerClient) AppendToEntry(ctx context.Context, in *AppendToEntryRequest, opts ...grpc.CallOption) (*AppendToEntryResponse, error) {
  103. out := new(AppendToEntryResponse)
  104. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/AppendToEntry", in, out, opts...)
  105. if err != nil {
  106. return nil, err
  107. }
  108. return out, nil
  109. }
  110. func (c *seaweedFilerClient) DeleteEntry(ctx context.Context, in *DeleteEntryRequest, opts ...grpc.CallOption) (*DeleteEntryResponse, error) {
  111. out := new(DeleteEntryResponse)
  112. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/DeleteEntry", in, out, opts...)
  113. if err != nil {
  114. return nil, err
  115. }
  116. return out, nil
  117. }
  118. func (c *seaweedFilerClient) AtomicRenameEntry(ctx context.Context, in *AtomicRenameEntryRequest, opts ...grpc.CallOption) (*AtomicRenameEntryResponse, error) {
  119. out := new(AtomicRenameEntryResponse)
  120. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/AtomicRenameEntry", in, out, opts...)
  121. if err != nil {
  122. return nil, err
  123. }
  124. return out, nil
  125. }
  126. func (c *seaweedFilerClient) StreamRenameEntry(ctx context.Context, in *StreamRenameEntryRequest, opts ...grpc.CallOption) (SeaweedFiler_StreamRenameEntryClient, error) {
  127. stream, err := c.cc.NewStream(ctx, &SeaweedFiler_ServiceDesc.Streams[1], "/filer_pb.SeaweedFiler/StreamRenameEntry", opts...)
  128. if err != nil {
  129. return nil, err
  130. }
  131. x := &seaweedFilerStreamRenameEntryClient{stream}
  132. if err := x.ClientStream.SendMsg(in); err != nil {
  133. return nil, err
  134. }
  135. if err := x.ClientStream.CloseSend(); err != nil {
  136. return nil, err
  137. }
  138. return x, nil
  139. }
  140. type SeaweedFiler_StreamRenameEntryClient interface {
  141. Recv() (*StreamRenameEntryResponse, error)
  142. grpc.ClientStream
  143. }
  144. type seaweedFilerStreamRenameEntryClient struct {
  145. grpc.ClientStream
  146. }
  147. func (x *seaweedFilerStreamRenameEntryClient) Recv() (*StreamRenameEntryResponse, error) {
  148. m := new(StreamRenameEntryResponse)
  149. if err := x.ClientStream.RecvMsg(m); err != nil {
  150. return nil, err
  151. }
  152. return m, nil
  153. }
  154. func (c *seaweedFilerClient) AssignVolume(ctx context.Context, in *AssignVolumeRequest, opts ...grpc.CallOption) (*AssignVolumeResponse, error) {
  155. out := new(AssignVolumeResponse)
  156. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/AssignVolume", in, out, opts...)
  157. if err != nil {
  158. return nil, err
  159. }
  160. return out, nil
  161. }
  162. func (c *seaweedFilerClient) LookupVolume(ctx context.Context, in *LookupVolumeRequest, opts ...grpc.CallOption) (*LookupVolumeResponse, error) {
  163. out := new(LookupVolumeResponse)
  164. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/LookupVolume", in, out, opts...)
  165. if err != nil {
  166. return nil, err
  167. }
  168. return out, nil
  169. }
  170. func (c *seaweedFilerClient) CollectionList(ctx context.Context, in *CollectionListRequest, opts ...grpc.CallOption) (*CollectionListResponse, error) {
  171. out := new(CollectionListResponse)
  172. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/CollectionList", in, out, opts...)
  173. if err != nil {
  174. return nil, err
  175. }
  176. return out, nil
  177. }
  178. func (c *seaweedFilerClient) DeleteCollection(ctx context.Context, in *DeleteCollectionRequest, opts ...grpc.CallOption) (*DeleteCollectionResponse, error) {
  179. out := new(DeleteCollectionResponse)
  180. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/DeleteCollection", in, out, opts...)
  181. if err != nil {
  182. return nil, err
  183. }
  184. return out, nil
  185. }
  186. func (c *seaweedFilerClient) Statistics(ctx context.Context, in *StatisticsRequest, opts ...grpc.CallOption) (*StatisticsResponse, error) {
  187. out := new(StatisticsResponse)
  188. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/Statistics", in, out, opts...)
  189. if err != nil {
  190. return nil, err
  191. }
  192. return out, nil
  193. }
  194. func (c *seaweedFilerClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) {
  195. out := new(PingResponse)
  196. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/Ping", in, out, opts...)
  197. if err != nil {
  198. return nil, err
  199. }
  200. return out, nil
  201. }
  202. func (c *seaweedFilerClient) GetFilerConfiguration(ctx context.Context, in *GetFilerConfigurationRequest, opts ...grpc.CallOption) (*GetFilerConfigurationResponse, error) {
  203. out := new(GetFilerConfigurationResponse)
  204. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/GetFilerConfiguration", in, out, opts...)
  205. if err != nil {
  206. return nil, err
  207. }
  208. return out, nil
  209. }
  210. func (c *seaweedFilerClient) SubscribeMetadata(ctx context.Context, in *SubscribeMetadataRequest, opts ...grpc.CallOption) (SeaweedFiler_SubscribeMetadataClient, error) {
  211. stream, err := c.cc.NewStream(ctx, &SeaweedFiler_ServiceDesc.Streams[2], "/filer_pb.SeaweedFiler/SubscribeMetadata", opts...)
  212. if err != nil {
  213. return nil, err
  214. }
  215. x := &seaweedFilerSubscribeMetadataClient{stream}
  216. if err := x.ClientStream.SendMsg(in); err != nil {
  217. return nil, err
  218. }
  219. if err := x.ClientStream.CloseSend(); err != nil {
  220. return nil, err
  221. }
  222. return x, nil
  223. }
  224. type SeaweedFiler_SubscribeMetadataClient interface {
  225. Recv() (*SubscribeMetadataResponse, error)
  226. grpc.ClientStream
  227. }
  228. type seaweedFilerSubscribeMetadataClient struct {
  229. grpc.ClientStream
  230. }
  231. func (x *seaweedFilerSubscribeMetadataClient) Recv() (*SubscribeMetadataResponse, error) {
  232. m := new(SubscribeMetadataResponse)
  233. if err := x.ClientStream.RecvMsg(m); err != nil {
  234. return nil, err
  235. }
  236. return m, nil
  237. }
  238. func (c *seaweedFilerClient) SubscribeLocalMetadata(ctx context.Context, in *SubscribeMetadataRequest, opts ...grpc.CallOption) (SeaweedFiler_SubscribeLocalMetadataClient, error) {
  239. stream, err := c.cc.NewStream(ctx, &SeaweedFiler_ServiceDesc.Streams[3], "/filer_pb.SeaweedFiler/SubscribeLocalMetadata", opts...)
  240. if err != nil {
  241. return nil, err
  242. }
  243. x := &seaweedFilerSubscribeLocalMetadataClient{stream}
  244. if err := x.ClientStream.SendMsg(in); err != nil {
  245. return nil, err
  246. }
  247. if err := x.ClientStream.CloseSend(); err != nil {
  248. return nil, err
  249. }
  250. return x, nil
  251. }
  252. type SeaweedFiler_SubscribeLocalMetadataClient interface {
  253. Recv() (*SubscribeMetadataResponse, error)
  254. grpc.ClientStream
  255. }
  256. type seaweedFilerSubscribeLocalMetadataClient struct {
  257. grpc.ClientStream
  258. }
  259. func (x *seaweedFilerSubscribeLocalMetadataClient) Recv() (*SubscribeMetadataResponse, error) {
  260. m := new(SubscribeMetadataResponse)
  261. if err := x.ClientStream.RecvMsg(m); err != nil {
  262. return nil, err
  263. }
  264. return m, nil
  265. }
  266. func (c *seaweedFilerClient) KeepConnected(ctx context.Context, opts ...grpc.CallOption) (SeaweedFiler_KeepConnectedClient, error) {
  267. stream, err := c.cc.NewStream(ctx, &SeaweedFiler_ServiceDesc.Streams[4], "/filer_pb.SeaweedFiler/KeepConnected", opts...)
  268. if err != nil {
  269. return nil, err
  270. }
  271. x := &seaweedFilerKeepConnectedClient{stream}
  272. return x, nil
  273. }
  274. type SeaweedFiler_KeepConnectedClient interface {
  275. Send(*KeepConnectedRequest) error
  276. Recv() (*KeepConnectedResponse, error)
  277. grpc.ClientStream
  278. }
  279. type seaweedFilerKeepConnectedClient struct {
  280. grpc.ClientStream
  281. }
  282. func (x *seaweedFilerKeepConnectedClient) Send(m *KeepConnectedRequest) error {
  283. return x.ClientStream.SendMsg(m)
  284. }
  285. func (x *seaweedFilerKeepConnectedClient) Recv() (*KeepConnectedResponse, error) {
  286. m := new(KeepConnectedResponse)
  287. if err := x.ClientStream.RecvMsg(m); err != nil {
  288. return nil, err
  289. }
  290. return m, nil
  291. }
  292. func (c *seaweedFilerClient) LocateBroker(ctx context.Context, in *LocateBrokerRequest, opts ...grpc.CallOption) (*LocateBrokerResponse, error) {
  293. out := new(LocateBrokerResponse)
  294. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/LocateBroker", in, out, opts...)
  295. if err != nil {
  296. return nil, err
  297. }
  298. return out, nil
  299. }
  300. func (c *seaweedFilerClient) KvGet(ctx context.Context, in *KvGetRequest, opts ...grpc.CallOption) (*KvGetResponse, error) {
  301. out := new(KvGetResponse)
  302. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/KvGet", in, out, opts...)
  303. if err != nil {
  304. return nil, err
  305. }
  306. return out, nil
  307. }
  308. func (c *seaweedFilerClient) KvPut(ctx context.Context, in *KvPutRequest, opts ...grpc.CallOption) (*KvPutResponse, error) {
  309. out := new(KvPutResponse)
  310. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/KvPut", in, out, opts...)
  311. if err != nil {
  312. return nil, err
  313. }
  314. return out, nil
  315. }
  316. func (c *seaweedFilerClient) CacheRemoteObjectToLocalCluster(ctx context.Context, in *CacheRemoteObjectToLocalClusterRequest, opts ...grpc.CallOption) (*CacheRemoteObjectToLocalClusterResponse, error) {
  317. out := new(CacheRemoteObjectToLocalClusterResponse)
  318. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/CacheRemoteObjectToLocalCluster", in, out, opts...)
  319. if err != nil {
  320. return nil, err
  321. }
  322. return out, nil
  323. }
  324. // SeaweedFilerServer is the server API for SeaweedFiler service.
  325. // All implementations must embed UnimplementedSeaweedFilerServer
  326. // for forward compatibility
  327. type SeaweedFilerServer interface {
  328. LookupDirectoryEntry(context.Context, *LookupDirectoryEntryRequest) (*LookupDirectoryEntryResponse, error)
  329. ListEntries(*ListEntriesRequest, SeaweedFiler_ListEntriesServer) error
  330. CreateEntry(context.Context, *CreateEntryRequest) (*CreateEntryResponse, error)
  331. UpdateEntry(context.Context, *UpdateEntryRequest) (*UpdateEntryResponse, error)
  332. AppendToEntry(context.Context, *AppendToEntryRequest) (*AppendToEntryResponse, error)
  333. DeleteEntry(context.Context, *DeleteEntryRequest) (*DeleteEntryResponse, error)
  334. AtomicRenameEntry(context.Context, *AtomicRenameEntryRequest) (*AtomicRenameEntryResponse, error)
  335. StreamRenameEntry(*StreamRenameEntryRequest, SeaweedFiler_StreamRenameEntryServer) error
  336. AssignVolume(context.Context, *AssignVolumeRequest) (*AssignVolumeResponse, error)
  337. LookupVolume(context.Context, *LookupVolumeRequest) (*LookupVolumeResponse, error)
  338. CollectionList(context.Context, *CollectionListRequest) (*CollectionListResponse, error)
  339. DeleteCollection(context.Context, *DeleteCollectionRequest) (*DeleteCollectionResponse, error)
  340. Statistics(context.Context, *StatisticsRequest) (*StatisticsResponse, error)
  341. Ping(context.Context, *PingRequest) (*PingResponse, error)
  342. GetFilerConfiguration(context.Context, *GetFilerConfigurationRequest) (*GetFilerConfigurationResponse, error)
  343. SubscribeMetadata(*SubscribeMetadataRequest, SeaweedFiler_SubscribeMetadataServer) error
  344. SubscribeLocalMetadata(*SubscribeMetadataRequest, SeaweedFiler_SubscribeLocalMetadataServer) error
  345. KeepConnected(SeaweedFiler_KeepConnectedServer) error
  346. LocateBroker(context.Context, *LocateBrokerRequest) (*LocateBrokerResponse, error)
  347. KvGet(context.Context, *KvGetRequest) (*KvGetResponse, error)
  348. KvPut(context.Context, *KvPutRequest) (*KvPutResponse, error)
  349. CacheRemoteObjectToLocalCluster(context.Context, *CacheRemoteObjectToLocalClusterRequest) (*CacheRemoteObjectToLocalClusterResponse, error)
  350. mustEmbedUnimplementedSeaweedFilerServer()
  351. }
  352. // UnimplementedSeaweedFilerServer must be embedded to have forward compatible implementations.
  353. type UnimplementedSeaweedFilerServer struct {
  354. }
  355. func (UnimplementedSeaweedFilerServer) LookupDirectoryEntry(context.Context, *LookupDirectoryEntryRequest) (*LookupDirectoryEntryResponse, error) {
  356. return nil, status.Errorf(codes.Unimplemented, "method LookupDirectoryEntry not implemented")
  357. }
  358. func (UnimplementedSeaweedFilerServer) ListEntries(*ListEntriesRequest, SeaweedFiler_ListEntriesServer) error {
  359. return status.Errorf(codes.Unimplemented, "method ListEntries not implemented")
  360. }
  361. func (UnimplementedSeaweedFilerServer) CreateEntry(context.Context, *CreateEntryRequest) (*CreateEntryResponse, error) {
  362. return nil, status.Errorf(codes.Unimplemented, "method CreateEntry not implemented")
  363. }
  364. func (UnimplementedSeaweedFilerServer) UpdateEntry(context.Context, *UpdateEntryRequest) (*UpdateEntryResponse, error) {
  365. return nil, status.Errorf(codes.Unimplemented, "method UpdateEntry not implemented")
  366. }
  367. func (UnimplementedSeaweedFilerServer) AppendToEntry(context.Context, *AppendToEntryRequest) (*AppendToEntryResponse, error) {
  368. return nil, status.Errorf(codes.Unimplemented, "method AppendToEntry not implemented")
  369. }
  370. func (UnimplementedSeaweedFilerServer) DeleteEntry(context.Context, *DeleteEntryRequest) (*DeleteEntryResponse, error) {
  371. return nil, status.Errorf(codes.Unimplemented, "method DeleteEntry not implemented")
  372. }
  373. func (UnimplementedSeaweedFilerServer) AtomicRenameEntry(context.Context, *AtomicRenameEntryRequest) (*AtomicRenameEntryResponse, error) {
  374. return nil, status.Errorf(codes.Unimplemented, "method AtomicRenameEntry not implemented")
  375. }
  376. func (UnimplementedSeaweedFilerServer) StreamRenameEntry(*StreamRenameEntryRequest, SeaweedFiler_StreamRenameEntryServer) error {
  377. return status.Errorf(codes.Unimplemented, "method StreamRenameEntry not implemented")
  378. }
  379. func (UnimplementedSeaweedFilerServer) AssignVolume(context.Context, *AssignVolumeRequest) (*AssignVolumeResponse, error) {
  380. return nil, status.Errorf(codes.Unimplemented, "method AssignVolume not implemented")
  381. }
  382. func (UnimplementedSeaweedFilerServer) LookupVolume(context.Context, *LookupVolumeRequest) (*LookupVolumeResponse, error) {
  383. return nil, status.Errorf(codes.Unimplemented, "method LookupVolume not implemented")
  384. }
  385. func (UnimplementedSeaweedFilerServer) CollectionList(context.Context, *CollectionListRequest) (*CollectionListResponse, error) {
  386. return nil, status.Errorf(codes.Unimplemented, "method CollectionList not implemented")
  387. }
  388. func (UnimplementedSeaweedFilerServer) DeleteCollection(context.Context, *DeleteCollectionRequest) (*DeleteCollectionResponse, error) {
  389. return nil, status.Errorf(codes.Unimplemented, "method DeleteCollection not implemented")
  390. }
  391. func (UnimplementedSeaweedFilerServer) Statistics(context.Context, *StatisticsRequest) (*StatisticsResponse, error) {
  392. return nil, status.Errorf(codes.Unimplemented, "method Statistics not implemented")
  393. }
  394. func (UnimplementedSeaweedFilerServer) Ping(context.Context, *PingRequest) (*PingResponse, error) {
  395. return nil, status.Errorf(codes.Unimplemented, "method Ping not implemented")
  396. }
  397. func (UnimplementedSeaweedFilerServer) GetFilerConfiguration(context.Context, *GetFilerConfigurationRequest) (*GetFilerConfigurationResponse, error) {
  398. return nil, status.Errorf(codes.Unimplemented, "method GetFilerConfiguration not implemented")
  399. }
  400. func (UnimplementedSeaweedFilerServer) SubscribeMetadata(*SubscribeMetadataRequest, SeaweedFiler_SubscribeMetadataServer) error {
  401. return status.Errorf(codes.Unimplemented, "method SubscribeMetadata not implemented")
  402. }
  403. func (UnimplementedSeaweedFilerServer) SubscribeLocalMetadata(*SubscribeMetadataRequest, SeaweedFiler_SubscribeLocalMetadataServer) error {
  404. return status.Errorf(codes.Unimplemented, "method SubscribeLocalMetadata not implemented")
  405. }
  406. func (UnimplementedSeaweedFilerServer) KeepConnected(SeaweedFiler_KeepConnectedServer) error {
  407. return status.Errorf(codes.Unimplemented, "method KeepConnected not implemented")
  408. }
  409. func (UnimplementedSeaweedFilerServer) LocateBroker(context.Context, *LocateBrokerRequest) (*LocateBrokerResponse, error) {
  410. return nil, status.Errorf(codes.Unimplemented, "method LocateBroker not implemented")
  411. }
  412. func (UnimplementedSeaweedFilerServer) KvGet(context.Context, *KvGetRequest) (*KvGetResponse, error) {
  413. return nil, status.Errorf(codes.Unimplemented, "method KvGet not implemented")
  414. }
  415. func (UnimplementedSeaweedFilerServer) KvPut(context.Context, *KvPutRequest) (*KvPutResponse, error) {
  416. return nil, status.Errorf(codes.Unimplemented, "method KvPut not implemented")
  417. }
  418. func (UnimplementedSeaweedFilerServer) CacheRemoteObjectToLocalCluster(context.Context, *CacheRemoteObjectToLocalClusterRequest) (*CacheRemoteObjectToLocalClusterResponse, error) {
  419. return nil, status.Errorf(codes.Unimplemented, "method CacheRemoteObjectToLocalCluster not implemented")
  420. }
  421. func (UnimplementedSeaweedFilerServer) mustEmbedUnimplementedSeaweedFilerServer() {}
  422. // UnsafeSeaweedFilerServer may be embedded to opt out of forward compatibility for this service.
  423. // Use of this interface is not recommended, as added methods to SeaweedFilerServer will
  424. // result in compilation errors.
  425. type UnsafeSeaweedFilerServer interface {
  426. mustEmbedUnimplementedSeaweedFilerServer()
  427. }
  428. func RegisterSeaweedFilerServer(s grpc.ServiceRegistrar, srv SeaweedFilerServer) {
  429. s.RegisterService(&SeaweedFiler_ServiceDesc, srv)
  430. }
  431. func _SeaweedFiler_LookupDirectoryEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  432. in := new(LookupDirectoryEntryRequest)
  433. if err := dec(in); err != nil {
  434. return nil, err
  435. }
  436. if interceptor == nil {
  437. return srv.(SeaweedFilerServer).LookupDirectoryEntry(ctx, in)
  438. }
  439. info := &grpc.UnaryServerInfo{
  440. Server: srv,
  441. FullMethod: "/filer_pb.SeaweedFiler/LookupDirectoryEntry",
  442. }
  443. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  444. return srv.(SeaweedFilerServer).LookupDirectoryEntry(ctx, req.(*LookupDirectoryEntryRequest))
  445. }
  446. return interceptor(ctx, in, info, handler)
  447. }
  448. func _SeaweedFiler_ListEntries_Handler(srv interface{}, stream grpc.ServerStream) error {
  449. m := new(ListEntriesRequest)
  450. if err := stream.RecvMsg(m); err != nil {
  451. return err
  452. }
  453. return srv.(SeaweedFilerServer).ListEntries(m, &seaweedFilerListEntriesServer{stream})
  454. }
  455. type SeaweedFiler_ListEntriesServer interface {
  456. Send(*ListEntriesResponse) error
  457. grpc.ServerStream
  458. }
  459. type seaweedFilerListEntriesServer struct {
  460. grpc.ServerStream
  461. }
  462. func (x *seaweedFilerListEntriesServer) Send(m *ListEntriesResponse) error {
  463. return x.ServerStream.SendMsg(m)
  464. }
  465. func _SeaweedFiler_CreateEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  466. in := new(CreateEntryRequest)
  467. if err := dec(in); err != nil {
  468. return nil, err
  469. }
  470. if interceptor == nil {
  471. return srv.(SeaweedFilerServer).CreateEntry(ctx, in)
  472. }
  473. info := &grpc.UnaryServerInfo{
  474. Server: srv,
  475. FullMethod: "/filer_pb.SeaweedFiler/CreateEntry",
  476. }
  477. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  478. return srv.(SeaweedFilerServer).CreateEntry(ctx, req.(*CreateEntryRequest))
  479. }
  480. return interceptor(ctx, in, info, handler)
  481. }
  482. func _SeaweedFiler_UpdateEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  483. in := new(UpdateEntryRequest)
  484. if err := dec(in); err != nil {
  485. return nil, err
  486. }
  487. if interceptor == nil {
  488. return srv.(SeaweedFilerServer).UpdateEntry(ctx, in)
  489. }
  490. info := &grpc.UnaryServerInfo{
  491. Server: srv,
  492. FullMethod: "/filer_pb.SeaweedFiler/UpdateEntry",
  493. }
  494. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  495. return srv.(SeaweedFilerServer).UpdateEntry(ctx, req.(*UpdateEntryRequest))
  496. }
  497. return interceptor(ctx, in, info, handler)
  498. }
  499. func _SeaweedFiler_AppendToEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  500. in := new(AppendToEntryRequest)
  501. if err := dec(in); err != nil {
  502. return nil, err
  503. }
  504. if interceptor == nil {
  505. return srv.(SeaweedFilerServer).AppendToEntry(ctx, in)
  506. }
  507. info := &grpc.UnaryServerInfo{
  508. Server: srv,
  509. FullMethod: "/filer_pb.SeaweedFiler/AppendToEntry",
  510. }
  511. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  512. return srv.(SeaweedFilerServer).AppendToEntry(ctx, req.(*AppendToEntryRequest))
  513. }
  514. return interceptor(ctx, in, info, handler)
  515. }
  516. func _SeaweedFiler_DeleteEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  517. in := new(DeleteEntryRequest)
  518. if err := dec(in); err != nil {
  519. return nil, err
  520. }
  521. if interceptor == nil {
  522. return srv.(SeaweedFilerServer).DeleteEntry(ctx, in)
  523. }
  524. info := &grpc.UnaryServerInfo{
  525. Server: srv,
  526. FullMethod: "/filer_pb.SeaweedFiler/DeleteEntry",
  527. }
  528. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  529. return srv.(SeaweedFilerServer).DeleteEntry(ctx, req.(*DeleteEntryRequest))
  530. }
  531. return interceptor(ctx, in, info, handler)
  532. }
  533. func _SeaweedFiler_AtomicRenameEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  534. in := new(AtomicRenameEntryRequest)
  535. if err := dec(in); err != nil {
  536. return nil, err
  537. }
  538. if interceptor == nil {
  539. return srv.(SeaweedFilerServer).AtomicRenameEntry(ctx, in)
  540. }
  541. info := &grpc.UnaryServerInfo{
  542. Server: srv,
  543. FullMethod: "/filer_pb.SeaweedFiler/AtomicRenameEntry",
  544. }
  545. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  546. return srv.(SeaweedFilerServer).AtomicRenameEntry(ctx, req.(*AtomicRenameEntryRequest))
  547. }
  548. return interceptor(ctx, in, info, handler)
  549. }
  550. func _SeaweedFiler_StreamRenameEntry_Handler(srv interface{}, stream grpc.ServerStream) error {
  551. m := new(StreamRenameEntryRequest)
  552. if err := stream.RecvMsg(m); err != nil {
  553. return err
  554. }
  555. return srv.(SeaweedFilerServer).StreamRenameEntry(m, &seaweedFilerStreamRenameEntryServer{stream})
  556. }
  557. type SeaweedFiler_StreamRenameEntryServer interface {
  558. Send(*StreamRenameEntryResponse) error
  559. grpc.ServerStream
  560. }
  561. type seaweedFilerStreamRenameEntryServer struct {
  562. grpc.ServerStream
  563. }
  564. func (x *seaweedFilerStreamRenameEntryServer) Send(m *StreamRenameEntryResponse) error {
  565. return x.ServerStream.SendMsg(m)
  566. }
  567. func _SeaweedFiler_AssignVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  568. in := new(AssignVolumeRequest)
  569. if err := dec(in); err != nil {
  570. return nil, err
  571. }
  572. if interceptor == nil {
  573. return srv.(SeaweedFilerServer).AssignVolume(ctx, in)
  574. }
  575. info := &grpc.UnaryServerInfo{
  576. Server: srv,
  577. FullMethod: "/filer_pb.SeaweedFiler/AssignVolume",
  578. }
  579. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  580. return srv.(SeaweedFilerServer).AssignVolume(ctx, req.(*AssignVolumeRequest))
  581. }
  582. return interceptor(ctx, in, info, handler)
  583. }
  584. func _SeaweedFiler_LookupVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  585. in := new(LookupVolumeRequest)
  586. if err := dec(in); err != nil {
  587. return nil, err
  588. }
  589. if interceptor == nil {
  590. return srv.(SeaweedFilerServer).LookupVolume(ctx, in)
  591. }
  592. info := &grpc.UnaryServerInfo{
  593. Server: srv,
  594. FullMethod: "/filer_pb.SeaweedFiler/LookupVolume",
  595. }
  596. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  597. return srv.(SeaweedFilerServer).LookupVolume(ctx, req.(*LookupVolumeRequest))
  598. }
  599. return interceptor(ctx, in, info, handler)
  600. }
  601. func _SeaweedFiler_CollectionList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  602. in := new(CollectionListRequest)
  603. if err := dec(in); err != nil {
  604. return nil, err
  605. }
  606. if interceptor == nil {
  607. return srv.(SeaweedFilerServer).CollectionList(ctx, in)
  608. }
  609. info := &grpc.UnaryServerInfo{
  610. Server: srv,
  611. FullMethod: "/filer_pb.SeaweedFiler/CollectionList",
  612. }
  613. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  614. return srv.(SeaweedFilerServer).CollectionList(ctx, req.(*CollectionListRequest))
  615. }
  616. return interceptor(ctx, in, info, handler)
  617. }
  618. func _SeaweedFiler_DeleteCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  619. in := new(DeleteCollectionRequest)
  620. if err := dec(in); err != nil {
  621. return nil, err
  622. }
  623. if interceptor == nil {
  624. return srv.(SeaweedFilerServer).DeleteCollection(ctx, in)
  625. }
  626. info := &grpc.UnaryServerInfo{
  627. Server: srv,
  628. FullMethod: "/filer_pb.SeaweedFiler/DeleteCollection",
  629. }
  630. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  631. return srv.(SeaweedFilerServer).DeleteCollection(ctx, req.(*DeleteCollectionRequest))
  632. }
  633. return interceptor(ctx, in, info, handler)
  634. }
  635. func _SeaweedFiler_Statistics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  636. in := new(StatisticsRequest)
  637. if err := dec(in); err != nil {
  638. return nil, err
  639. }
  640. if interceptor == nil {
  641. return srv.(SeaweedFilerServer).Statistics(ctx, in)
  642. }
  643. info := &grpc.UnaryServerInfo{
  644. Server: srv,
  645. FullMethod: "/filer_pb.SeaweedFiler/Statistics",
  646. }
  647. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  648. return srv.(SeaweedFilerServer).Statistics(ctx, req.(*StatisticsRequest))
  649. }
  650. return interceptor(ctx, in, info, handler)
  651. }
  652. func _SeaweedFiler_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  653. in := new(PingRequest)
  654. if err := dec(in); err != nil {
  655. return nil, err
  656. }
  657. if interceptor == nil {
  658. return srv.(SeaweedFilerServer).Ping(ctx, in)
  659. }
  660. info := &grpc.UnaryServerInfo{
  661. Server: srv,
  662. FullMethod: "/filer_pb.SeaweedFiler/Ping",
  663. }
  664. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  665. return srv.(SeaweedFilerServer).Ping(ctx, req.(*PingRequest))
  666. }
  667. return interceptor(ctx, in, info, handler)
  668. }
  669. func _SeaweedFiler_GetFilerConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  670. in := new(GetFilerConfigurationRequest)
  671. if err := dec(in); err != nil {
  672. return nil, err
  673. }
  674. if interceptor == nil {
  675. return srv.(SeaweedFilerServer).GetFilerConfiguration(ctx, in)
  676. }
  677. info := &grpc.UnaryServerInfo{
  678. Server: srv,
  679. FullMethod: "/filer_pb.SeaweedFiler/GetFilerConfiguration",
  680. }
  681. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  682. return srv.(SeaweedFilerServer).GetFilerConfiguration(ctx, req.(*GetFilerConfigurationRequest))
  683. }
  684. return interceptor(ctx, in, info, handler)
  685. }
  686. func _SeaweedFiler_SubscribeMetadata_Handler(srv interface{}, stream grpc.ServerStream) error {
  687. m := new(SubscribeMetadataRequest)
  688. if err := stream.RecvMsg(m); err != nil {
  689. return err
  690. }
  691. return srv.(SeaweedFilerServer).SubscribeMetadata(m, &seaweedFilerSubscribeMetadataServer{stream})
  692. }
  693. type SeaweedFiler_SubscribeMetadataServer interface {
  694. Send(*SubscribeMetadataResponse) error
  695. grpc.ServerStream
  696. }
  697. type seaweedFilerSubscribeMetadataServer struct {
  698. grpc.ServerStream
  699. }
  700. func (x *seaweedFilerSubscribeMetadataServer) Send(m *SubscribeMetadataResponse) error {
  701. return x.ServerStream.SendMsg(m)
  702. }
  703. func _SeaweedFiler_SubscribeLocalMetadata_Handler(srv interface{}, stream grpc.ServerStream) error {
  704. m := new(SubscribeMetadataRequest)
  705. if err := stream.RecvMsg(m); err != nil {
  706. return err
  707. }
  708. return srv.(SeaweedFilerServer).SubscribeLocalMetadata(m, &seaweedFilerSubscribeLocalMetadataServer{stream})
  709. }
  710. type SeaweedFiler_SubscribeLocalMetadataServer interface {
  711. Send(*SubscribeMetadataResponse) error
  712. grpc.ServerStream
  713. }
  714. type seaweedFilerSubscribeLocalMetadataServer struct {
  715. grpc.ServerStream
  716. }
  717. func (x *seaweedFilerSubscribeLocalMetadataServer) Send(m *SubscribeMetadataResponse) error {
  718. return x.ServerStream.SendMsg(m)
  719. }
  720. func _SeaweedFiler_KeepConnected_Handler(srv interface{}, stream grpc.ServerStream) error {
  721. return srv.(SeaweedFilerServer).KeepConnected(&seaweedFilerKeepConnectedServer{stream})
  722. }
  723. type SeaweedFiler_KeepConnectedServer interface {
  724. Send(*KeepConnectedResponse) error
  725. Recv() (*KeepConnectedRequest, error)
  726. grpc.ServerStream
  727. }
  728. type seaweedFilerKeepConnectedServer struct {
  729. grpc.ServerStream
  730. }
  731. func (x *seaweedFilerKeepConnectedServer) Send(m *KeepConnectedResponse) error {
  732. return x.ServerStream.SendMsg(m)
  733. }
  734. func (x *seaweedFilerKeepConnectedServer) Recv() (*KeepConnectedRequest, error) {
  735. m := new(KeepConnectedRequest)
  736. if err := x.ServerStream.RecvMsg(m); err != nil {
  737. return nil, err
  738. }
  739. return m, nil
  740. }
  741. func _SeaweedFiler_LocateBroker_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  742. in := new(LocateBrokerRequest)
  743. if err := dec(in); err != nil {
  744. return nil, err
  745. }
  746. if interceptor == nil {
  747. return srv.(SeaweedFilerServer).LocateBroker(ctx, in)
  748. }
  749. info := &grpc.UnaryServerInfo{
  750. Server: srv,
  751. FullMethod: "/filer_pb.SeaweedFiler/LocateBroker",
  752. }
  753. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  754. return srv.(SeaweedFilerServer).LocateBroker(ctx, req.(*LocateBrokerRequest))
  755. }
  756. return interceptor(ctx, in, info, handler)
  757. }
  758. func _SeaweedFiler_KvGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  759. in := new(KvGetRequest)
  760. if err := dec(in); err != nil {
  761. return nil, err
  762. }
  763. if interceptor == nil {
  764. return srv.(SeaweedFilerServer).KvGet(ctx, in)
  765. }
  766. info := &grpc.UnaryServerInfo{
  767. Server: srv,
  768. FullMethod: "/filer_pb.SeaweedFiler/KvGet",
  769. }
  770. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  771. return srv.(SeaweedFilerServer).KvGet(ctx, req.(*KvGetRequest))
  772. }
  773. return interceptor(ctx, in, info, handler)
  774. }
  775. func _SeaweedFiler_KvPut_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  776. in := new(KvPutRequest)
  777. if err := dec(in); err != nil {
  778. return nil, err
  779. }
  780. if interceptor == nil {
  781. return srv.(SeaweedFilerServer).KvPut(ctx, in)
  782. }
  783. info := &grpc.UnaryServerInfo{
  784. Server: srv,
  785. FullMethod: "/filer_pb.SeaweedFiler/KvPut",
  786. }
  787. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  788. return srv.(SeaweedFilerServer).KvPut(ctx, req.(*KvPutRequest))
  789. }
  790. return interceptor(ctx, in, info, handler)
  791. }
  792. func _SeaweedFiler_CacheRemoteObjectToLocalCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  793. in := new(CacheRemoteObjectToLocalClusterRequest)
  794. if err := dec(in); err != nil {
  795. return nil, err
  796. }
  797. if interceptor == nil {
  798. return srv.(SeaweedFilerServer).CacheRemoteObjectToLocalCluster(ctx, in)
  799. }
  800. info := &grpc.UnaryServerInfo{
  801. Server: srv,
  802. FullMethod: "/filer_pb.SeaweedFiler/CacheRemoteObjectToLocalCluster",
  803. }
  804. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  805. return srv.(SeaweedFilerServer).CacheRemoteObjectToLocalCluster(ctx, req.(*CacheRemoteObjectToLocalClusterRequest))
  806. }
  807. return interceptor(ctx, in, info, handler)
  808. }
  809. // SeaweedFiler_ServiceDesc is the grpc.ServiceDesc for SeaweedFiler service.
  810. // It's only intended for direct use with grpc.RegisterService,
  811. // and not to be introspected or modified (even as a copy)
  812. var SeaweedFiler_ServiceDesc = grpc.ServiceDesc{
  813. ServiceName: "filer_pb.SeaweedFiler",
  814. HandlerType: (*SeaweedFilerServer)(nil),
  815. Methods: []grpc.MethodDesc{
  816. {
  817. MethodName: "LookupDirectoryEntry",
  818. Handler: _SeaweedFiler_LookupDirectoryEntry_Handler,
  819. },
  820. {
  821. MethodName: "CreateEntry",
  822. Handler: _SeaweedFiler_CreateEntry_Handler,
  823. },
  824. {
  825. MethodName: "UpdateEntry",
  826. Handler: _SeaweedFiler_UpdateEntry_Handler,
  827. },
  828. {
  829. MethodName: "AppendToEntry",
  830. Handler: _SeaweedFiler_AppendToEntry_Handler,
  831. },
  832. {
  833. MethodName: "DeleteEntry",
  834. Handler: _SeaweedFiler_DeleteEntry_Handler,
  835. },
  836. {
  837. MethodName: "AtomicRenameEntry",
  838. Handler: _SeaweedFiler_AtomicRenameEntry_Handler,
  839. },
  840. {
  841. MethodName: "AssignVolume",
  842. Handler: _SeaweedFiler_AssignVolume_Handler,
  843. },
  844. {
  845. MethodName: "LookupVolume",
  846. Handler: _SeaweedFiler_LookupVolume_Handler,
  847. },
  848. {
  849. MethodName: "CollectionList",
  850. Handler: _SeaweedFiler_CollectionList_Handler,
  851. },
  852. {
  853. MethodName: "DeleteCollection",
  854. Handler: _SeaweedFiler_DeleteCollection_Handler,
  855. },
  856. {
  857. MethodName: "Statistics",
  858. Handler: _SeaweedFiler_Statistics_Handler,
  859. },
  860. {
  861. MethodName: "Ping",
  862. Handler: _SeaweedFiler_Ping_Handler,
  863. },
  864. {
  865. MethodName: "GetFilerConfiguration",
  866. Handler: _SeaweedFiler_GetFilerConfiguration_Handler,
  867. },
  868. {
  869. MethodName: "LocateBroker",
  870. Handler: _SeaweedFiler_LocateBroker_Handler,
  871. },
  872. {
  873. MethodName: "KvGet",
  874. Handler: _SeaweedFiler_KvGet_Handler,
  875. },
  876. {
  877. MethodName: "KvPut",
  878. Handler: _SeaweedFiler_KvPut_Handler,
  879. },
  880. {
  881. MethodName: "CacheRemoteObjectToLocalCluster",
  882. Handler: _SeaweedFiler_CacheRemoteObjectToLocalCluster_Handler,
  883. },
  884. },
  885. Streams: []grpc.StreamDesc{
  886. {
  887. StreamName: "ListEntries",
  888. Handler: _SeaweedFiler_ListEntries_Handler,
  889. ServerStreams: true,
  890. },
  891. {
  892. StreamName: "StreamRenameEntry",
  893. Handler: _SeaweedFiler_StreamRenameEntry_Handler,
  894. ServerStreams: true,
  895. },
  896. {
  897. StreamName: "SubscribeMetadata",
  898. Handler: _SeaweedFiler_SubscribeMetadata_Handler,
  899. ServerStreams: true,
  900. },
  901. {
  902. StreamName: "SubscribeLocalMetadata",
  903. Handler: _SeaweedFiler_SubscribeLocalMetadata_Handler,
  904. ServerStreams: true,
  905. },
  906. {
  907. StreamName: "KeepConnected",
  908. Handler: _SeaweedFiler_KeepConnected_Handler,
  909. ServerStreams: true,
  910. ClientStreams: true,
  911. },
  912. },
  913. Metadata: "filer.proto",
  914. }