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.

1860 lines
74 KiB

  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. package volume_server_pb
  3. import (
  4. context "context"
  5. grpc "google.golang.org/grpc"
  6. codes "google.golang.org/grpc/codes"
  7. status "google.golang.org/grpc/status"
  8. )
  9. // This is a compile-time assertion to ensure that this generated file
  10. // is compatible with the grpc package it is being compiled against.
  11. // Requires gRPC-Go v1.32.0 or later.
  12. const _ = grpc.SupportPackageIsVersion7
  13. // VolumeServerClient is the client API for VolumeServer service.
  14. //
  15. // 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.
  16. type VolumeServerClient interface {
  17. //Experts only: takes multiple fid parameters. This function does not propagate deletes to replicas.
  18. BatchDelete(ctx context.Context, in *BatchDeleteRequest, opts ...grpc.CallOption) (*BatchDeleteResponse, error)
  19. VacuumVolumeCheck(ctx context.Context, in *VacuumVolumeCheckRequest, opts ...grpc.CallOption) (*VacuumVolumeCheckResponse, error)
  20. VacuumVolumeCompact(ctx context.Context, in *VacuumVolumeCompactRequest, opts ...grpc.CallOption) (VolumeServer_VacuumVolumeCompactClient, error)
  21. VacuumVolumeCommit(ctx context.Context, in *VacuumVolumeCommitRequest, opts ...grpc.CallOption) (*VacuumVolumeCommitResponse, error)
  22. VacuumVolumeCleanup(ctx context.Context, in *VacuumVolumeCleanupRequest, opts ...grpc.CallOption) (*VacuumVolumeCleanupResponse, error)
  23. DeleteCollection(ctx context.Context, in *DeleteCollectionRequest, opts ...grpc.CallOption) (*DeleteCollectionResponse, error)
  24. AllocateVolume(ctx context.Context, in *AllocateVolumeRequest, opts ...grpc.CallOption) (*AllocateVolumeResponse, error)
  25. VolumeSyncStatus(ctx context.Context, in *VolumeSyncStatusRequest, opts ...grpc.CallOption) (*VolumeSyncStatusResponse, error)
  26. VolumeIncrementalCopy(ctx context.Context, in *VolumeIncrementalCopyRequest, opts ...grpc.CallOption) (VolumeServer_VolumeIncrementalCopyClient, error)
  27. VolumeMount(ctx context.Context, in *VolumeMountRequest, opts ...grpc.CallOption) (*VolumeMountResponse, error)
  28. VolumeUnmount(ctx context.Context, in *VolumeUnmountRequest, opts ...grpc.CallOption) (*VolumeUnmountResponse, error)
  29. VolumeDelete(ctx context.Context, in *VolumeDeleteRequest, opts ...grpc.CallOption) (*VolumeDeleteResponse, error)
  30. VolumeMarkReadonly(ctx context.Context, in *VolumeMarkReadonlyRequest, opts ...grpc.CallOption) (*VolumeMarkReadonlyResponse, error)
  31. VolumeMarkWritable(ctx context.Context, in *VolumeMarkWritableRequest, opts ...grpc.CallOption) (*VolumeMarkWritableResponse, error)
  32. VolumeConfigure(ctx context.Context, in *VolumeConfigureRequest, opts ...grpc.CallOption) (*VolumeConfigureResponse, error)
  33. VolumeStatus(ctx context.Context, in *VolumeStatusRequest, opts ...grpc.CallOption) (*VolumeStatusResponse, error)
  34. // copy the .idx .dat files, and mount this volume
  35. VolumeCopy(ctx context.Context, in *VolumeCopyRequest, opts ...grpc.CallOption) (VolumeServer_VolumeCopyClient, error)
  36. ReadVolumeFileStatus(ctx context.Context, in *ReadVolumeFileStatusRequest, opts ...grpc.CallOption) (*ReadVolumeFileStatusResponse, error)
  37. CopyFile(ctx context.Context, in *CopyFileRequest, opts ...grpc.CallOption) (VolumeServer_CopyFileClient, error)
  38. ReadNeedleBlob(ctx context.Context, in *ReadNeedleBlobRequest, opts ...grpc.CallOption) (*ReadNeedleBlobResponse, error)
  39. ReadNeedleMeta(ctx context.Context, in *ReadNeedleMetaRequest, opts ...grpc.CallOption) (*ReadNeedleMetaResponse, error)
  40. WriteNeedleBlob(ctx context.Context, in *WriteNeedleBlobRequest, opts ...grpc.CallOption) (*WriteNeedleBlobResponse, error)
  41. ReadAllNeedles(ctx context.Context, in *ReadAllNeedlesRequest, opts ...grpc.CallOption) (VolumeServer_ReadAllNeedlesClient, error)
  42. VolumeTailSender(ctx context.Context, in *VolumeTailSenderRequest, opts ...grpc.CallOption) (VolumeServer_VolumeTailSenderClient, error)
  43. VolumeTailReceiver(ctx context.Context, in *VolumeTailReceiverRequest, opts ...grpc.CallOption) (*VolumeTailReceiverResponse, error)
  44. // erasure coding
  45. VolumeEcShardsGenerate(ctx context.Context, in *VolumeEcShardsGenerateRequest, opts ...grpc.CallOption) (*VolumeEcShardsGenerateResponse, error)
  46. VolumeEcShardsRebuild(ctx context.Context, in *VolumeEcShardsRebuildRequest, opts ...grpc.CallOption) (*VolumeEcShardsRebuildResponse, error)
  47. VolumeEcShardsCopy(ctx context.Context, in *VolumeEcShardsCopyRequest, opts ...grpc.CallOption) (*VolumeEcShardsCopyResponse, error)
  48. VolumeEcShardsDelete(ctx context.Context, in *VolumeEcShardsDeleteRequest, opts ...grpc.CallOption) (*VolumeEcShardsDeleteResponse, error)
  49. VolumeEcShardsMount(ctx context.Context, in *VolumeEcShardsMountRequest, opts ...grpc.CallOption) (*VolumeEcShardsMountResponse, error)
  50. VolumeEcShardsUnmount(ctx context.Context, in *VolumeEcShardsUnmountRequest, opts ...grpc.CallOption) (*VolumeEcShardsUnmountResponse, error)
  51. VolumeEcShardRead(ctx context.Context, in *VolumeEcShardReadRequest, opts ...grpc.CallOption) (VolumeServer_VolumeEcShardReadClient, error)
  52. VolumeEcBlobDelete(ctx context.Context, in *VolumeEcBlobDeleteRequest, opts ...grpc.CallOption) (*VolumeEcBlobDeleteResponse, error)
  53. VolumeEcShardsToVolume(ctx context.Context, in *VolumeEcShardsToVolumeRequest, opts ...grpc.CallOption) (*VolumeEcShardsToVolumeResponse, error)
  54. // tiered storage
  55. VolumeTierMoveDatToRemote(ctx context.Context, in *VolumeTierMoveDatToRemoteRequest, opts ...grpc.CallOption) (VolumeServer_VolumeTierMoveDatToRemoteClient, error)
  56. VolumeTierMoveDatFromRemote(ctx context.Context, in *VolumeTierMoveDatFromRemoteRequest, opts ...grpc.CallOption) (VolumeServer_VolumeTierMoveDatFromRemoteClient, error)
  57. VolumeServerStatus(ctx context.Context, in *VolumeServerStatusRequest, opts ...grpc.CallOption) (*VolumeServerStatusResponse, error)
  58. VolumeServerLeave(ctx context.Context, in *VolumeServerLeaveRequest, opts ...grpc.CallOption) (*VolumeServerLeaveResponse, error)
  59. // remote storage
  60. FetchAndWriteNeedle(ctx context.Context, in *FetchAndWriteNeedleRequest, opts ...grpc.CallOption) (*FetchAndWriteNeedleResponse, error)
  61. // <experimental> query
  62. Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (VolumeServer_QueryClient, error)
  63. VolumeNeedleStatus(ctx context.Context, in *VolumeNeedleStatusRequest, opts ...grpc.CallOption) (*VolumeNeedleStatusResponse, error)
  64. Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
  65. }
  66. type volumeServerClient struct {
  67. cc grpc.ClientConnInterface
  68. }
  69. func NewVolumeServerClient(cc grpc.ClientConnInterface) VolumeServerClient {
  70. return &volumeServerClient{cc}
  71. }
  72. func (c *volumeServerClient) BatchDelete(ctx context.Context, in *BatchDeleteRequest, opts ...grpc.CallOption) (*BatchDeleteResponse, error) {
  73. out := new(BatchDeleteResponse)
  74. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/BatchDelete", in, out, opts...)
  75. if err != nil {
  76. return nil, err
  77. }
  78. return out, nil
  79. }
  80. func (c *volumeServerClient) VacuumVolumeCheck(ctx context.Context, in *VacuumVolumeCheckRequest, opts ...grpc.CallOption) (*VacuumVolumeCheckResponse, error) {
  81. out := new(VacuumVolumeCheckResponse)
  82. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCheck", in, out, opts...)
  83. if err != nil {
  84. return nil, err
  85. }
  86. return out, nil
  87. }
  88. func (c *volumeServerClient) VacuumVolumeCompact(ctx context.Context, in *VacuumVolumeCompactRequest, opts ...grpc.CallOption) (VolumeServer_VacuumVolumeCompactClient, error) {
  89. stream, err := c.cc.NewStream(ctx, &VolumeServer_ServiceDesc.Streams[0], "/volume_server_pb.VolumeServer/VacuumVolumeCompact", opts...)
  90. if err != nil {
  91. return nil, err
  92. }
  93. x := &volumeServerVacuumVolumeCompactClient{stream}
  94. if err := x.ClientStream.SendMsg(in); err != nil {
  95. return nil, err
  96. }
  97. if err := x.ClientStream.CloseSend(); err != nil {
  98. return nil, err
  99. }
  100. return x, nil
  101. }
  102. type VolumeServer_VacuumVolumeCompactClient interface {
  103. Recv() (*VacuumVolumeCompactResponse, error)
  104. grpc.ClientStream
  105. }
  106. type volumeServerVacuumVolumeCompactClient struct {
  107. grpc.ClientStream
  108. }
  109. func (x *volumeServerVacuumVolumeCompactClient) Recv() (*VacuumVolumeCompactResponse, error) {
  110. m := new(VacuumVolumeCompactResponse)
  111. if err := x.ClientStream.RecvMsg(m); err != nil {
  112. return nil, err
  113. }
  114. return m, nil
  115. }
  116. func (c *volumeServerClient) VacuumVolumeCommit(ctx context.Context, in *VacuumVolumeCommitRequest, opts ...grpc.CallOption) (*VacuumVolumeCommitResponse, error) {
  117. out := new(VacuumVolumeCommitResponse)
  118. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCommit", in, out, opts...)
  119. if err != nil {
  120. return nil, err
  121. }
  122. return out, nil
  123. }
  124. func (c *volumeServerClient) VacuumVolumeCleanup(ctx context.Context, in *VacuumVolumeCleanupRequest, opts ...grpc.CallOption) (*VacuumVolumeCleanupResponse, error) {
  125. out := new(VacuumVolumeCleanupResponse)
  126. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCleanup", in, out, opts...)
  127. if err != nil {
  128. return nil, err
  129. }
  130. return out, nil
  131. }
  132. func (c *volumeServerClient) DeleteCollection(ctx context.Context, in *DeleteCollectionRequest, opts ...grpc.CallOption) (*DeleteCollectionResponse, error) {
  133. out := new(DeleteCollectionResponse)
  134. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/DeleteCollection", in, out, opts...)
  135. if err != nil {
  136. return nil, err
  137. }
  138. return out, nil
  139. }
  140. func (c *volumeServerClient) AllocateVolume(ctx context.Context, in *AllocateVolumeRequest, opts ...grpc.CallOption) (*AllocateVolumeResponse, error) {
  141. out := new(AllocateVolumeResponse)
  142. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/AllocateVolume", in, out, opts...)
  143. if err != nil {
  144. return nil, err
  145. }
  146. return out, nil
  147. }
  148. func (c *volumeServerClient) VolumeSyncStatus(ctx context.Context, in *VolumeSyncStatusRequest, opts ...grpc.CallOption) (*VolumeSyncStatusResponse, error) {
  149. out := new(VolumeSyncStatusResponse)
  150. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeSyncStatus", in, out, opts...)
  151. if err != nil {
  152. return nil, err
  153. }
  154. return out, nil
  155. }
  156. func (c *volumeServerClient) VolumeIncrementalCopy(ctx context.Context, in *VolumeIncrementalCopyRequest, opts ...grpc.CallOption) (VolumeServer_VolumeIncrementalCopyClient, error) {
  157. stream, err := c.cc.NewStream(ctx, &VolumeServer_ServiceDesc.Streams[1], "/volume_server_pb.VolumeServer/VolumeIncrementalCopy", opts...)
  158. if err != nil {
  159. return nil, err
  160. }
  161. x := &volumeServerVolumeIncrementalCopyClient{stream}
  162. if err := x.ClientStream.SendMsg(in); err != nil {
  163. return nil, err
  164. }
  165. if err := x.ClientStream.CloseSend(); err != nil {
  166. return nil, err
  167. }
  168. return x, nil
  169. }
  170. type VolumeServer_VolumeIncrementalCopyClient interface {
  171. Recv() (*VolumeIncrementalCopyResponse, error)
  172. grpc.ClientStream
  173. }
  174. type volumeServerVolumeIncrementalCopyClient struct {
  175. grpc.ClientStream
  176. }
  177. func (x *volumeServerVolumeIncrementalCopyClient) Recv() (*VolumeIncrementalCopyResponse, error) {
  178. m := new(VolumeIncrementalCopyResponse)
  179. if err := x.ClientStream.RecvMsg(m); err != nil {
  180. return nil, err
  181. }
  182. return m, nil
  183. }
  184. func (c *volumeServerClient) VolumeMount(ctx context.Context, in *VolumeMountRequest, opts ...grpc.CallOption) (*VolumeMountResponse, error) {
  185. out := new(VolumeMountResponse)
  186. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeMount", in, out, opts...)
  187. if err != nil {
  188. return nil, err
  189. }
  190. return out, nil
  191. }
  192. func (c *volumeServerClient) VolumeUnmount(ctx context.Context, in *VolumeUnmountRequest, opts ...grpc.CallOption) (*VolumeUnmountResponse, error) {
  193. out := new(VolumeUnmountResponse)
  194. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeUnmount", in, out, opts...)
  195. if err != nil {
  196. return nil, err
  197. }
  198. return out, nil
  199. }
  200. func (c *volumeServerClient) VolumeDelete(ctx context.Context, in *VolumeDeleteRequest, opts ...grpc.CallOption) (*VolumeDeleteResponse, error) {
  201. out := new(VolumeDeleteResponse)
  202. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeDelete", in, out, opts...)
  203. if err != nil {
  204. return nil, err
  205. }
  206. return out, nil
  207. }
  208. func (c *volumeServerClient) VolumeMarkReadonly(ctx context.Context, in *VolumeMarkReadonlyRequest, opts ...grpc.CallOption) (*VolumeMarkReadonlyResponse, error) {
  209. out := new(VolumeMarkReadonlyResponse)
  210. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeMarkReadonly", in, out, opts...)
  211. if err != nil {
  212. return nil, err
  213. }
  214. return out, nil
  215. }
  216. func (c *volumeServerClient) VolumeMarkWritable(ctx context.Context, in *VolumeMarkWritableRequest, opts ...grpc.CallOption) (*VolumeMarkWritableResponse, error) {
  217. out := new(VolumeMarkWritableResponse)
  218. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeMarkWritable", in, out, opts...)
  219. if err != nil {
  220. return nil, err
  221. }
  222. return out, nil
  223. }
  224. func (c *volumeServerClient) VolumeConfigure(ctx context.Context, in *VolumeConfigureRequest, opts ...grpc.CallOption) (*VolumeConfigureResponse, error) {
  225. out := new(VolumeConfigureResponse)
  226. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeConfigure", in, out, opts...)
  227. if err != nil {
  228. return nil, err
  229. }
  230. return out, nil
  231. }
  232. func (c *volumeServerClient) VolumeStatus(ctx context.Context, in *VolumeStatusRequest, opts ...grpc.CallOption) (*VolumeStatusResponse, error) {
  233. out := new(VolumeStatusResponse)
  234. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeStatus", in, out, opts...)
  235. if err != nil {
  236. return nil, err
  237. }
  238. return out, nil
  239. }
  240. func (c *volumeServerClient) VolumeCopy(ctx context.Context, in *VolumeCopyRequest, opts ...grpc.CallOption) (VolumeServer_VolumeCopyClient, error) {
  241. stream, err := c.cc.NewStream(ctx, &VolumeServer_ServiceDesc.Streams[2], "/volume_server_pb.VolumeServer/VolumeCopy", opts...)
  242. if err != nil {
  243. return nil, err
  244. }
  245. x := &volumeServerVolumeCopyClient{stream}
  246. if err := x.ClientStream.SendMsg(in); err != nil {
  247. return nil, err
  248. }
  249. if err := x.ClientStream.CloseSend(); err != nil {
  250. return nil, err
  251. }
  252. return x, nil
  253. }
  254. type VolumeServer_VolumeCopyClient interface {
  255. Recv() (*VolumeCopyResponse, error)
  256. grpc.ClientStream
  257. }
  258. type volumeServerVolumeCopyClient struct {
  259. grpc.ClientStream
  260. }
  261. func (x *volumeServerVolumeCopyClient) Recv() (*VolumeCopyResponse, error) {
  262. m := new(VolumeCopyResponse)
  263. if err := x.ClientStream.RecvMsg(m); err != nil {
  264. return nil, err
  265. }
  266. return m, nil
  267. }
  268. func (c *volumeServerClient) ReadVolumeFileStatus(ctx context.Context, in *ReadVolumeFileStatusRequest, opts ...grpc.CallOption) (*ReadVolumeFileStatusResponse, error) {
  269. out := new(ReadVolumeFileStatusResponse)
  270. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/ReadVolumeFileStatus", in, out, opts...)
  271. if err != nil {
  272. return nil, err
  273. }
  274. return out, nil
  275. }
  276. func (c *volumeServerClient) CopyFile(ctx context.Context, in *CopyFileRequest, opts ...grpc.CallOption) (VolumeServer_CopyFileClient, error) {
  277. stream, err := c.cc.NewStream(ctx, &VolumeServer_ServiceDesc.Streams[3], "/volume_server_pb.VolumeServer/CopyFile", opts...)
  278. if err != nil {
  279. return nil, err
  280. }
  281. x := &volumeServerCopyFileClient{stream}
  282. if err := x.ClientStream.SendMsg(in); err != nil {
  283. return nil, err
  284. }
  285. if err := x.ClientStream.CloseSend(); err != nil {
  286. return nil, err
  287. }
  288. return x, nil
  289. }
  290. type VolumeServer_CopyFileClient interface {
  291. Recv() (*CopyFileResponse, error)
  292. grpc.ClientStream
  293. }
  294. type volumeServerCopyFileClient struct {
  295. grpc.ClientStream
  296. }
  297. func (x *volumeServerCopyFileClient) Recv() (*CopyFileResponse, error) {
  298. m := new(CopyFileResponse)
  299. if err := x.ClientStream.RecvMsg(m); err != nil {
  300. return nil, err
  301. }
  302. return m, nil
  303. }
  304. func (c *volumeServerClient) ReadNeedleBlob(ctx context.Context, in *ReadNeedleBlobRequest, opts ...grpc.CallOption) (*ReadNeedleBlobResponse, error) {
  305. out := new(ReadNeedleBlobResponse)
  306. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/ReadNeedleBlob", in, out, opts...)
  307. if err != nil {
  308. return nil, err
  309. }
  310. return out, nil
  311. }
  312. func (c *volumeServerClient) ReadNeedleMeta(ctx context.Context, in *ReadNeedleMetaRequest, opts ...grpc.CallOption) (*ReadNeedleMetaResponse, error) {
  313. out := new(ReadNeedleMetaResponse)
  314. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/ReadNeedleMeta", in, out, opts...)
  315. if err != nil {
  316. return nil, err
  317. }
  318. return out, nil
  319. }
  320. func (c *volumeServerClient) WriteNeedleBlob(ctx context.Context, in *WriteNeedleBlobRequest, opts ...grpc.CallOption) (*WriteNeedleBlobResponse, error) {
  321. out := new(WriteNeedleBlobResponse)
  322. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/WriteNeedleBlob", in, out, opts...)
  323. if err != nil {
  324. return nil, err
  325. }
  326. return out, nil
  327. }
  328. func (c *volumeServerClient) ReadAllNeedles(ctx context.Context, in *ReadAllNeedlesRequest, opts ...grpc.CallOption) (VolumeServer_ReadAllNeedlesClient, error) {
  329. stream, err := c.cc.NewStream(ctx, &VolumeServer_ServiceDesc.Streams[4], "/volume_server_pb.VolumeServer/ReadAllNeedles", opts...)
  330. if err != nil {
  331. return nil, err
  332. }
  333. x := &volumeServerReadAllNeedlesClient{stream}
  334. if err := x.ClientStream.SendMsg(in); err != nil {
  335. return nil, err
  336. }
  337. if err := x.ClientStream.CloseSend(); err != nil {
  338. return nil, err
  339. }
  340. return x, nil
  341. }
  342. type VolumeServer_ReadAllNeedlesClient interface {
  343. Recv() (*ReadAllNeedlesResponse, error)
  344. grpc.ClientStream
  345. }
  346. type volumeServerReadAllNeedlesClient struct {
  347. grpc.ClientStream
  348. }
  349. func (x *volumeServerReadAllNeedlesClient) Recv() (*ReadAllNeedlesResponse, error) {
  350. m := new(ReadAllNeedlesResponse)
  351. if err := x.ClientStream.RecvMsg(m); err != nil {
  352. return nil, err
  353. }
  354. return m, nil
  355. }
  356. func (c *volumeServerClient) VolumeTailSender(ctx context.Context, in *VolumeTailSenderRequest, opts ...grpc.CallOption) (VolumeServer_VolumeTailSenderClient, error) {
  357. stream, err := c.cc.NewStream(ctx, &VolumeServer_ServiceDesc.Streams[5], "/volume_server_pb.VolumeServer/VolumeTailSender", opts...)
  358. if err != nil {
  359. return nil, err
  360. }
  361. x := &volumeServerVolumeTailSenderClient{stream}
  362. if err := x.ClientStream.SendMsg(in); err != nil {
  363. return nil, err
  364. }
  365. if err := x.ClientStream.CloseSend(); err != nil {
  366. return nil, err
  367. }
  368. return x, nil
  369. }
  370. type VolumeServer_VolumeTailSenderClient interface {
  371. Recv() (*VolumeTailSenderResponse, error)
  372. grpc.ClientStream
  373. }
  374. type volumeServerVolumeTailSenderClient struct {
  375. grpc.ClientStream
  376. }
  377. func (x *volumeServerVolumeTailSenderClient) Recv() (*VolumeTailSenderResponse, error) {
  378. m := new(VolumeTailSenderResponse)
  379. if err := x.ClientStream.RecvMsg(m); err != nil {
  380. return nil, err
  381. }
  382. return m, nil
  383. }
  384. func (c *volumeServerClient) VolumeTailReceiver(ctx context.Context, in *VolumeTailReceiverRequest, opts ...grpc.CallOption) (*VolumeTailReceiverResponse, error) {
  385. out := new(VolumeTailReceiverResponse)
  386. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeTailReceiver", in, out, opts...)
  387. if err != nil {
  388. return nil, err
  389. }
  390. return out, nil
  391. }
  392. func (c *volumeServerClient) VolumeEcShardsGenerate(ctx context.Context, in *VolumeEcShardsGenerateRequest, opts ...grpc.CallOption) (*VolumeEcShardsGenerateResponse, error) {
  393. out := new(VolumeEcShardsGenerateResponse)
  394. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeEcShardsGenerate", in, out, opts...)
  395. if err != nil {
  396. return nil, err
  397. }
  398. return out, nil
  399. }
  400. func (c *volumeServerClient) VolumeEcShardsRebuild(ctx context.Context, in *VolumeEcShardsRebuildRequest, opts ...grpc.CallOption) (*VolumeEcShardsRebuildResponse, error) {
  401. out := new(VolumeEcShardsRebuildResponse)
  402. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeEcShardsRebuild", in, out, opts...)
  403. if err != nil {
  404. return nil, err
  405. }
  406. return out, nil
  407. }
  408. func (c *volumeServerClient) VolumeEcShardsCopy(ctx context.Context, in *VolumeEcShardsCopyRequest, opts ...grpc.CallOption) (*VolumeEcShardsCopyResponse, error) {
  409. out := new(VolumeEcShardsCopyResponse)
  410. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeEcShardsCopy", in, out, opts...)
  411. if err != nil {
  412. return nil, err
  413. }
  414. return out, nil
  415. }
  416. func (c *volumeServerClient) VolumeEcShardsDelete(ctx context.Context, in *VolumeEcShardsDeleteRequest, opts ...grpc.CallOption) (*VolumeEcShardsDeleteResponse, error) {
  417. out := new(VolumeEcShardsDeleteResponse)
  418. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeEcShardsDelete", in, out, opts...)
  419. if err != nil {
  420. return nil, err
  421. }
  422. return out, nil
  423. }
  424. func (c *volumeServerClient) VolumeEcShardsMount(ctx context.Context, in *VolumeEcShardsMountRequest, opts ...grpc.CallOption) (*VolumeEcShardsMountResponse, error) {
  425. out := new(VolumeEcShardsMountResponse)
  426. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeEcShardsMount", in, out, opts...)
  427. if err != nil {
  428. return nil, err
  429. }
  430. return out, nil
  431. }
  432. func (c *volumeServerClient) VolumeEcShardsUnmount(ctx context.Context, in *VolumeEcShardsUnmountRequest, opts ...grpc.CallOption) (*VolumeEcShardsUnmountResponse, error) {
  433. out := new(VolumeEcShardsUnmountResponse)
  434. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeEcShardsUnmount", in, out, opts...)
  435. if err != nil {
  436. return nil, err
  437. }
  438. return out, nil
  439. }
  440. func (c *volumeServerClient) VolumeEcShardRead(ctx context.Context, in *VolumeEcShardReadRequest, opts ...grpc.CallOption) (VolumeServer_VolumeEcShardReadClient, error) {
  441. stream, err := c.cc.NewStream(ctx, &VolumeServer_ServiceDesc.Streams[6], "/volume_server_pb.VolumeServer/VolumeEcShardRead", opts...)
  442. if err != nil {
  443. return nil, err
  444. }
  445. x := &volumeServerVolumeEcShardReadClient{stream}
  446. if err := x.ClientStream.SendMsg(in); err != nil {
  447. return nil, err
  448. }
  449. if err := x.ClientStream.CloseSend(); err != nil {
  450. return nil, err
  451. }
  452. return x, nil
  453. }
  454. type VolumeServer_VolumeEcShardReadClient interface {
  455. Recv() (*VolumeEcShardReadResponse, error)
  456. grpc.ClientStream
  457. }
  458. type volumeServerVolumeEcShardReadClient struct {
  459. grpc.ClientStream
  460. }
  461. func (x *volumeServerVolumeEcShardReadClient) Recv() (*VolumeEcShardReadResponse, error) {
  462. m := new(VolumeEcShardReadResponse)
  463. if err := x.ClientStream.RecvMsg(m); err != nil {
  464. return nil, err
  465. }
  466. return m, nil
  467. }
  468. func (c *volumeServerClient) VolumeEcBlobDelete(ctx context.Context, in *VolumeEcBlobDeleteRequest, opts ...grpc.CallOption) (*VolumeEcBlobDeleteResponse, error) {
  469. out := new(VolumeEcBlobDeleteResponse)
  470. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeEcBlobDelete", in, out, opts...)
  471. if err != nil {
  472. return nil, err
  473. }
  474. return out, nil
  475. }
  476. func (c *volumeServerClient) VolumeEcShardsToVolume(ctx context.Context, in *VolumeEcShardsToVolumeRequest, opts ...grpc.CallOption) (*VolumeEcShardsToVolumeResponse, error) {
  477. out := new(VolumeEcShardsToVolumeResponse)
  478. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeEcShardsToVolume", in, out, opts...)
  479. if err != nil {
  480. return nil, err
  481. }
  482. return out, nil
  483. }
  484. func (c *volumeServerClient) VolumeTierMoveDatToRemote(ctx context.Context, in *VolumeTierMoveDatToRemoteRequest, opts ...grpc.CallOption) (VolumeServer_VolumeTierMoveDatToRemoteClient, error) {
  485. stream, err := c.cc.NewStream(ctx, &VolumeServer_ServiceDesc.Streams[7], "/volume_server_pb.VolumeServer/VolumeTierMoveDatToRemote", opts...)
  486. if err != nil {
  487. return nil, err
  488. }
  489. x := &volumeServerVolumeTierMoveDatToRemoteClient{stream}
  490. if err := x.ClientStream.SendMsg(in); err != nil {
  491. return nil, err
  492. }
  493. if err := x.ClientStream.CloseSend(); err != nil {
  494. return nil, err
  495. }
  496. return x, nil
  497. }
  498. type VolumeServer_VolumeTierMoveDatToRemoteClient interface {
  499. Recv() (*VolumeTierMoveDatToRemoteResponse, error)
  500. grpc.ClientStream
  501. }
  502. type volumeServerVolumeTierMoveDatToRemoteClient struct {
  503. grpc.ClientStream
  504. }
  505. func (x *volumeServerVolumeTierMoveDatToRemoteClient) Recv() (*VolumeTierMoveDatToRemoteResponse, error) {
  506. m := new(VolumeTierMoveDatToRemoteResponse)
  507. if err := x.ClientStream.RecvMsg(m); err != nil {
  508. return nil, err
  509. }
  510. return m, nil
  511. }
  512. func (c *volumeServerClient) VolumeTierMoveDatFromRemote(ctx context.Context, in *VolumeTierMoveDatFromRemoteRequest, opts ...grpc.CallOption) (VolumeServer_VolumeTierMoveDatFromRemoteClient, error) {
  513. stream, err := c.cc.NewStream(ctx, &VolumeServer_ServiceDesc.Streams[8], "/volume_server_pb.VolumeServer/VolumeTierMoveDatFromRemote", opts...)
  514. if err != nil {
  515. return nil, err
  516. }
  517. x := &volumeServerVolumeTierMoveDatFromRemoteClient{stream}
  518. if err := x.ClientStream.SendMsg(in); err != nil {
  519. return nil, err
  520. }
  521. if err := x.ClientStream.CloseSend(); err != nil {
  522. return nil, err
  523. }
  524. return x, nil
  525. }
  526. type VolumeServer_VolumeTierMoveDatFromRemoteClient interface {
  527. Recv() (*VolumeTierMoveDatFromRemoteResponse, error)
  528. grpc.ClientStream
  529. }
  530. type volumeServerVolumeTierMoveDatFromRemoteClient struct {
  531. grpc.ClientStream
  532. }
  533. func (x *volumeServerVolumeTierMoveDatFromRemoteClient) Recv() (*VolumeTierMoveDatFromRemoteResponse, error) {
  534. m := new(VolumeTierMoveDatFromRemoteResponse)
  535. if err := x.ClientStream.RecvMsg(m); err != nil {
  536. return nil, err
  537. }
  538. return m, nil
  539. }
  540. func (c *volumeServerClient) VolumeServerStatus(ctx context.Context, in *VolumeServerStatusRequest, opts ...grpc.CallOption) (*VolumeServerStatusResponse, error) {
  541. out := new(VolumeServerStatusResponse)
  542. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeServerStatus", in, out, opts...)
  543. if err != nil {
  544. return nil, err
  545. }
  546. return out, nil
  547. }
  548. func (c *volumeServerClient) VolumeServerLeave(ctx context.Context, in *VolumeServerLeaveRequest, opts ...grpc.CallOption) (*VolumeServerLeaveResponse, error) {
  549. out := new(VolumeServerLeaveResponse)
  550. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeServerLeave", in, out, opts...)
  551. if err != nil {
  552. return nil, err
  553. }
  554. return out, nil
  555. }
  556. func (c *volumeServerClient) FetchAndWriteNeedle(ctx context.Context, in *FetchAndWriteNeedleRequest, opts ...grpc.CallOption) (*FetchAndWriteNeedleResponse, error) {
  557. out := new(FetchAndWriteNeedleResponse)
  558. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/FetchAndWriteNeedle", in, out, opts...)
  559. if err != nil {
  560. return nil, err
  561. }
  562. return out, nil
  563. }
  564. func (c *volumeServerClient) Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (VolumeServer_QueryClient, error) {
  565. stream, err := c.cc.NewStream(ctx, &VolumeServer_ServiceDesc.Streams[9], "/volume_server_pb.VolumeServer/Query", opts...)
  566. if err != nil {
  567. return nil, err
  568. }
  569. x := &volumeServerQueryClient{stream}
  570. if err := x.ClientStream.SendMsg(in); err != nil {
  571. return nil, err
  572. }
  573. if err := x.ClientStream.CloseSend(); err != nil {
  574. return nil, err
  575. }
  576. return x, nil
  577. }
  578. type VolumeServer_QueryClient interface {
  579. Recv() (*QueriedStripe, error)
  580. grpc.ClientStream
  581. }
  582. type volumeServerQueryClient struct {
  583. grpc.ClientStream
  584. }
  585. func (x *volumeServerQueryClient) Recv() (*QueriedStripe, error) {
  586. m := new(QueriedStripe)
  587. if err := x.ClientStream.RecvMsg(m); err != nil {
  588. return nil, err
  589. }
  590. return m, nil
  591. }
  592. func (c *volumeServerClient) VolumeNeedleStatus(ctx context.Context, in *VolumeNeedleStatusRequest, opts ...grpc.CallOption) (*VolumeNeedleStatusResponse, error) {
  593. out := new(VolumeNeedleStatusResponse)
  594. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeNeedleStatus", in, out, opts...)
  595. if err != nil {
  596. return nil, err
  597. }
  598. return out, nil
  599. }
  600. func (c *volumeServerClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) {
  601. out := new(PingResponse)
  602. err := c.cc.Invoke(ctx, "/volume_server_pb.VolumeServer/Ping", in, out, opts...)
  603. if err != nil {
  604. return nil, err
  605. }
  606. return out, nil
  607. }
  608. // VolumeServerServer is the server API for VolumeServer service.
  609. // All implementations must embed UnimplementedVolumeServerServer
  610. // for forward compatibility
  611. type VolumeServerServer interface {
  612. //Experts only: takes multiple fid parameters. This function does not propagate deletes to replicas.
  613. BatchDelete(context.Context, *BatchDeleteRequest) (*BatchDeleteResponse, error)
  614. VacuumVolumeCheck(context.Context, *VacuumVolumeCheckRequest) (*VacuumVolumeCheckResponse, error)
  615. VacuumVolumeCompact(*VacuumVolumeCompactRequest, VolumeServer_VacuumVolumeCompactServer) error
  616. VacuumVolumeCommit(context.Context, *VacuumVolumeCommitRequest) (*VacuumVolumeCommitResponse, error)
  617. VacuumVolumeCleanup(context.Context, *VacuumVolumeCleanupRequest) (*VacuumVolumeCleanupResponse, error)
  618. DeleteCollection(context.Context, *DeleteCollectionRequest) (*DeleteCollectionResponse, error)
  619. AllocateVolume(context.Context, *AllocateVolumeRequest) (*AllocateVolumeResponse, error)
  620. VolumeSyncStatus(context.Context, *VolumeSyncStatusRequest) (*VolumeSyncStatusResponse, error)
  621. VolumeIncrementalCopy(*VolumeIncrementalCopyRequest, VolumeServer_VolumeIncrementalCopyServer) error
  622. VolumeMount(context.Context, *VolumeMountRequest) (*VolumeMountResponse, error)
  623. VolumeUnmount(context.Context, *VolumeUnmountRequest) (*VolumeUnmountResponse, error)
  624. VolumeDelete(context.Context, *VolumeDeleteRequest) (*VolumeDeleteResponse, error)
  625. VolumeMarkReadonly(context.Context, *VolumeMarkReadonlyRequest) (*VolumeMarkReadonlyResponse, error)
  626. VolumeMarkWritable(context.Context, *VolumeMarkWritableRequest) (*VolumeMarkWritableResponse, error)
  627. VolumeConfigure(context.Context, *VolumeConfigureRequest) (*VolumeConfigureResponse, error)
  628. VolumeStatus(context.Context, *VolumeStatusRequest) (*VolumeStatusResponse, error)
  629. // copy the .idx .dat files, and mount this volume
  630. VolumeCopy(*VolumeCopyRequest, VolumeServer_VolumeCopyServer) error
  631. ReadVolumeFileStatus(context.Context, *ReadVolumeFileStatusRequest) (*ReadVolumeFileStatusResponse, error)
  632. CopyFile(*CopyFileRequest, VolumeServer_CopyFileServer) error
  633. ReadNeedleBlob(context.Context, *ReadNeedleBlobRequest) (*ReadNeedleBlobResponse, error)
  634. ReadNeedleMeta(context.Context, *ReadNeedleMetaRequest) (*ReadNeedleMetaResponse, error)
  635. WriteNeedleBlob(context.Context, *WriteNeedleBlobRequest) (*WriteNeedleBlobResponse, error)
  636. ReadAllNeedles(*ReadAllNeedlesRequest, VolumeServer_ReadAllNeedlesServer) error
  637. VolumeTailSender(*VolumeTailSenderRequest, VolumeServer_VolumeTailSenderServer) error
  638. VolumeTailReceiver(context.Context, *VolumeTailReceiverRequest) (*VolumeTailReceiverResponse, error)
  639. // erasure coding
  640. VolumeEcShardsGenerate(context.Context, *VolumeEcShardsGenerateRequest) (*VolumeEcShardsGenerateResponse, error)
  641. VolumeEcShardsRebuild(context.Context, *VolumeEcShardsRebuildRequest) (*VolumeEcShardsRebuildResponse, error)
  642. VolumeEcShardsCopy(context.Context, *VolumeEcShardsCopyRequest) (*VolumeEcShardsCopyResponse, error)
  643. VolumeEcShardsDelete(context.Context, *VolumeEcShardsDeleteRequest) (*VolumeEcShardsDeleteResponse, error)
  644. VolumeEcShardsMount(context.Context, *VolumeEcShardsMountRequest) (*VolumeEcShardsMountResponse, error)
  645. VolumeEcShardsUnmount(context.Context, *VolumeEcShardsUnmountRequest) (*VolumeEcShardsUnmountResponse, error)
  646. VolumeEcShardRead(*VolumeEcShardReadRequest, VolumeServer_VolumeEcShardReadServer) error
  647. VolumeEcBlobDelete(context.Context, *VolumeEcBlobDeleteRequest) (*VolumeEcBlobDeleteResponse, error)
  648. VolumeEcShardsToVolume(context.Context, *VolumeEcShardsToVolumeRequest) (*VolumeEcShardsToVolumeResponse, error)
  649. // tiered storage
  650. VolumeTierMoveDatToRemote(*VolumeTierMoveDatToRemoteRequest, VolumeServer_VolumeTierMoveDatToRemoteServer) error
  651. VolumeTierMoveDatFromRemote(*VolumeTierMoveDatFromRemoteRequest, VolumeServer_VolumeTierMoveDatFromRemoteServer) error
  652. VolumeServerStatus(context.Context, *VolumeServerStatusRequest) (*VolumeServerStatusResponse, error)
  653. VolumeServerLeave(context.Context, *VolumeServerLeaveRequest) (*VolumeServerLeaveResponse, error)
  654. // remote storage
  655. FetchAndWriteNeedle(context.Context, *FetchAndWriteNeedleRequest) (*FetchAndWriteNeedleResponse, error)
  656. // <experimental> query
  657. Query(*QueryRequest, VolumeServer_QueryServer) error
  658. VolumeNeedleStatus(context.Context, *VolumeNeedleStatusRequest) (*VolumeNeedleStatusResponse, error)
  659. Ping(context.Context, *PingRequest) (*PingResponse, error)
  660. mustEmbedUnimplementedVolumeServerServer()
  661. }
  662. // UnimplementedVolumeServerServer must be embedded to have forward compatible implementations.
  663. type UnimplementedVolumeServerServer struct {
  664. }
  665. func (UnimplementedVolumeServerServer) BatchDelete(context.Context, *BatchDeleteRequest) (*BatchDeleteResponse, error) {
  666. return nil, status.Errorf(codes.Unimplemented, "method BatchDelete not implemented")
  667. }
  668. func (UnimplementedVolumeServerServer) VacuumVolumeCheck(context.Context, *VacuumVolumeCheckRequest) (*VacuumVolumeCheckResponse, error) {
  669. return nil, status.Errorf(codes.Unimplemented, "method VacuumVolumeCheck not implemented")
  670. }
  671. func (UnimplementedVolumeServerServer) VacuumVolumeCompact(*VacuumVolumeCompactRequest, VolumeServer_VacuumVolumeCompactServer) error {
  672. return status.Errorf(codes.Unimplemented, "method VacuumVolumeCompact not implemented")
  673. }
  674. func (UnimplementedVolumeServerServer) VacuumVolumeCommit(context.Context, *VacuumVolumeCommitRequest) (*VacuumVolumeCommitResponse, error) {
  675. return nil, status.Errorf(codes.Unimplemented, "method VacuumVolumeCommit not implemented")
  676. }
  677. func (UnimplementedVolumeServerServer) VacuumVolumeCleanup(context.Context, *VacuumVolumeCleanupRequest) (*VacuumVolumeCleanupResponse, error) {
  678. return nil, status.Errorf(codes.Unimplemented, "method VacuumVolumeCleanup not implemented")
  679. }
  680. func (UnimplementedVolumeServerServer) DeleteCollection(context.Context, *DeleteCollectionRequest) (*DeleteCollectionResponse, error) {
  681. return nil, status.Errorf(codes.Unimplemented, "method DeleteCollection not implemented")
  682. }
  683. func (UnimplementedVolumeServerServer) AllocateVolume(context.Context, *AllocateVolumeRequest) (*AllocateVolumeResponse, error) {
  684. return nil, status.Errorf(codes.Unimplemented, "method AllocateVolume not implemented")
  685. }
  686. func (UnimplementedVolumeServerServer) VolumeSyncStatus(context.Context, *VolumeSyncStatusRequest) (*VolumeSyncStatusResponse, error) {
  687. return nil, status.Errorf(codes.Unimplemented, "method VolumeSyncStatus not implemented")
  688. }
  689. func (UnimplementedVolumeServerServer) VolumeIncrementalCopy(*VolumeIncrementalCopyRequest, VolumeServer_VolumeIncrementalCopyServer) error {
  690. return status.Errorf(codes.Unimplemented, "method VolumeIncrementalCopy not implemented")
  691. }
  692. func (UnimplementedVolumeServerServer) VolumeMount(context.Context, *VolumeMountRequest) (*VolumeMountResponse, error) {
  693. return nil, status.Errorf(codes.Unimplemented, "method VolumeMount not implemented")
  694. }
  695. func (UnimplementedVolumeServerServer) VolumeUnmount(context.Context, *VolumeUnmountRequest) (*VolumeUnmountResponse, error) {
  696. return nil, status.Errorf(codes.Unimplemented, "method VolumeUnmount not implemented")
  697. }
  698. func (UnimplementedVolumeServerServer) VolumeDelete(context.Context, *VolumeDeleteRequest) (*VolumeDeleteResponse, error) {
  699. return nil, status.Errorf(codes.Unimplemented, "method VolumeDelete not implemented")
  700. }
  701. func (UnimplementedVolumeServerServer) VolumeMarkReadonly(context.Context, *VolumeMarkReadonlyRequest) (*VolumeMarkReadonlyResponse, error) {
  702. return nil, status.Errorf(codes.Unimplemented, "method VolumeMarkReadonly not implemented")
  703. }
  704. func (UnimplementedVolumeServerServer) VolumeMarkWritable(context.Context, *VolumeMarkWritableRequest) (*VolumeMarkWritableResponse, error) {
  705. return nil, status.Errorf(codes.Unimplemented, "method VolumeMarkWritable not implemented")
  706. }
  707. func (UnimplementedVolumeServerServer) VolumeConfigure(context.Context, *VolumeConfigureRequest) (*VolumeConfigureResponse, error) {
  708. return nil, status.Errorf(codes.Unimplemented, "method VolumeConfigure not implemented")
  709. }
  710. func (UnimplementedVolumeServerServer) VolumeStatus(context.Context, *VolumeStatusRequest) (*VolumeStatusResponse, error) {
  711. return nil, status.Errorf(codes.Unimplemented, "method VolumeStatus not implemented")
  712. }
  713. func (UnimplementedVolumeServerServer) VolumeCopy(*VolumeCopyRequest, VolumeServer_VolumeCopyServer) error {
  714. return status.Errorf(codes.Unimplemented, "method VolumeCopy not implemented")
  715. }
  716. func (UnimplementedVolumeServerServer) ReadVolumeFileStatus(context.Context, *ReadVolumeFileStatusRequest) (*ReadVolumeFileStatusResponse, error) {
  717. return nil, status.Errorf(codes.Unimplemented, "method ReadVolumeFileStatus not implemented")
  718. }
  719. func (UnimplementedVolumeServerServer) CopyFile(*CopyFileRequest, VolumeServer_CopyFileServer) error {
  720. return status.Errorf(codes.Unimplemented, "method CopyFile not implemented")
  721. }
  722. func (UnimplementedVolumeServerServer) ReadNeedleBlob(context.Context, *ReadNeedleBlobRequest) (*ReadNeedleBlobResponse, error) {
  723. return nil, status.Errorf(codes.Unimplemented, "method ReadNeedleBlob not implemented")
  724. }
  725. func (UnimplementedVolumeServerServer) ReadNeedleMeta(context.Context, *ReadNeedleMetaRequest) (*ReadNeedleMetaResponse, error) {
  726. return nil, status.Errorf(codes.Unimplemented, "method ReadNeedleMeta not implemented")
  727. }
  728. func (UnimplementedVolumeServerServer) WriteNeedleBlob(context.Context, *WriteNeedleBlobRequest) (*WriteNeedleBlobResponse, error) {
  729. return nil, status.Errorf(codes.Unimplemented, "method WriteNeedleBlob not implemented")
  730. }
  731. func (UnimplementedVolumeServerServer) ReadAllNeedles(*ReadAllNeedlesRequest, VolumeServer_ReadAllNeedlesServer) error {
  732. return status.Errorf(codes.Unimplemented, "method ReadAllNeedles not implemented")
  733. }
  734. func (UnimplementedVolumeServerServer) VolumeTailSender(*VolumeTailSenderRequest, VolumeServer_VolumeTailSenderServer) error {
  735. return status.Errorf(codes.Unimplemented, "method VolumeTailSender not implemented")
  736. }
  737. func (UnimplementedVolumeServerServer) VolumeTailReceiver(context.Context, *VolumeTailReceiverRequest) (*VolumeTailReceiverResponse, error) {
  738. return nil, status.Errorf(codes.Unimplemented, "method VolumeTailReceiver not implemented")
  739. }
  740. func (UnimplementedVolumeServerServer) VolumeEcShardsGenerate(context.Context, *VolumeEcShardsGenerateRequest) (*VolumeEcShardsGenerateResponse, error) {
  741. return nil, status.Errorf(codes.Unimplemented, "method VolumeEcShardsGenerate not implemented")
  742. }
  743. func (UnimplementedVolumeServerServer) VolumeEcShardsRebuild(context.Context, *VolumeEcShardsRebuildRequest) (*VolumeEcShardsRebuildResponse, error) {
  744. return nil, status.Errorf(codes.Unimplemented, "method VolumeEcShardsRebuild not implemented")
  745. }
  746. func (UnimplementedVolumeServerServer) VolumeEcShardsCopy(context.Context, *VolumeEcShardsCopyRequest) (*VolumeEcShardsCopyResponse, error) {
  747. return nil, status.Errorf(codes.Unimplemented, "method VolumeEcShardsCopy not implemented")
  748. }
  749. func (UnimplementedVolumeServerServer) VolumeEcShardsDelete(context.Context, *VolumeEcShardsDeleteRequest) (*VolumeEcShardsDeleteResponse, error) {
  750. return nil, status.Errorf(codes.Unimplemented, "method VolumeEcShardsDelete not implemented")
  751. }
  752. func (UnimplementedVolumeServerServer) VolumeEcShardsMount(context.Context, *VolumeEcShardsMountRequest) (*VolumeEcShardsMountResponse, error) {
  753. return nil, status.Errorf(codes.Unimplemented, "method VolumeEcShardsMount not implemented")
  754. }
  755. func (UnimplementedVolumeServerServer) VolumeEcShardsUnmount(context.Context, *VolumeEcShardsUnmountRequest) (*VolumeEcShardsUnmountResponse, error) {
  756. return nil, status.Errorf(codes.Unimplemented, "method VolumeEcShardsUnmount not implemented")
  757. }
  758. func (UnimplementedVolumeServerServer) VolumeEcShardRead(*VolumeEcShardReadRequest, VolumeServer_VolumeEcShardReadServer) error {
  759. return status.Errorf(codes.Unimplemented, "method VolumeEcShardRead not implemented")
  760. }
  761. func (UnimplementedVolumeServerServer) VolumeEcBlobDelete(context.Context, *VolumeEcBlobDeleteRequest) (*VolumeEcBlobDeleteResponse, error) {
  762. return nil, status.Errorf(codes.Unimplemented, "method VolumeEcBlobDelete not implemented")
  763. }
  764. func (UnimplementedVolumeServerServer) VolumeEcShardsToVolume(context.Context, *VolumeEcShardsToVolumeRequest) (*VolumeEcShardsToVolumeResponse, error) {
  765. return nil, status.Errorf(codes.Unimplemented, "method VolumeEcShardsToVolume not implemented")
  766. }
  767. func (UnimplementedVolumeServerServer) VolumeTierMoveDatToRemote(*VolumeTierMoveDatToRemoteRequest, VolumeServer_VolumeTierMoveDatToRemoteServer) error {
  768. return status.Errorf(codes.Unimplemented, "method VolumeTierMoveDatToRemote not implemented")
  769. }
  770. func (UnimplementedVolumeServerServer) VolumeTierMoveDatFromRemote(*VolumeTierMoveDatFromRemoteRequest, VolumeServer_VolumeTierMoveDatFromRemoteServer) error {
  771. return status.Errorf(codes.Unimplemented, "method VolumeTierMoveDatFromRemote not implemented")
  772. }
  773. func (UnimplementedVolumeServerServer) VolumeServerStatus(context.Context, *VolumeServerStatusRequest) (*VolumeServerStatusResponse, error) {
  774. return nil, status.Errorf(codes.Unimplemented, "method VolumeServerStatus not implemented")
  775. }
  776. func (UnimplementedVolumeServerServer) VolumeServerLeave(context.Context, *VolumeServerLeaveRequest) (*VolumeServerLeaveResponse, error) {
  777. return nil, status.Errorf(codes.Unimplemented, "method VolumeServerLeave not implemented")
  778. }
  779. func (UnimplementedVolumeServerServer) FetchAndWriteNeedle(context.Context, *FetchAndWriteNeedleRequest) (*FetchAndWriteNeedleResponse, error) {
  780. return nil, status.Errorf(codes.Unimplemented, "method FetchAndWriteNeedle not implemented")
  781. }
  782. func (UnimplementedVolumeServerServer) Query(*QueryRequest, VolumeServer_QueryServer) error {
  783. return status.Errorf(codes.Unimplemented, "method Query not implemented")
  784. }
  785. func (UnimplementedVolumeServerServer) VolumeNeedleStatus(context.Context, *VolumeNeedleStatusRequest) (*VolumeNeedleStatusResponse, error) {
  786. return nil, status.Errorf(codes.Unimplemented, "method VolumeNeedleStatus not implemented")
  787. }
  788. func (UnimplementedVolumeServerServer) Ping(context.Context, *PingRequest) (*PingResponse, error) {
  789. return nil, status.Errorf(codes.Unimplemented, "method Ping not implemented")
  790. }
  791. func (UnimplementedVolumeServerServer) mustEmbedUnimplementedVolumeServerServer() {}
  792. // UnsafeVolumeServerServer may be embedded to opt out of forward compatibility for this service.
  793. // Use of this interface is not recommended, as added methods to VolumeServerServer will
  794. // result in compilation errors.
  795. type UnsafeVolumeServerServer interface {
  796. mustEmbedUnimplementedVolumeServerServer()
  797. }
  798. func RegisterVolumeServerServer(s grpc.ServiceRegistrar, srv VolumeServerServer) {
  799. s.RegisterService(&VolumeServer_ServiceDesc, srv)
  800. }
  801. func _VolumeServer_BatchDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  802. in := new(BatchDeleteRequest)
  803. if err := dec(in); err != nil {
  804. return nil, err
  805. }
  806. if interceptor == nil {
  807. return srv.(VolumeServerServer).BatchDelete(ctx, in)
  808. }
  809. info := &grpc.UnaryServerInfo{
  810. Server: srv,
  811. FullMethod: "/volume_server_pb.VolumeServer/BatchDelete",
  812. }
  813. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  814. return srv.(VolumeServerServer).BatchDelete(ctx, req.(*BatchDeleteRequest))
  815. }
  816. return interceptor(ctx, in, info, handler)
  817. }
  818. func _VolumeServer_VacuumVolumeCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  819. in := new(VacuumVolumeCheckRequest)
  820. if err := dec(in); err != nil {
  821. return nil, err
  822. }
  823. if interceptor == nil {
  824. return srv.(VolumeServerServer).VacuumVolumeCheck(ctx, in)
  825. }
  826. info := &grpc.UnaryServerInfo{
  827. Server: srv,
  828. FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCheck",
  829. }
  830. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  831. return srv.(VolumeServerServer).VacuumVolumeCheck(ctx, req.(*VacuumVolumeCheckRequest))
  832. }
  833. return interceptor(ctx, in, info, handler)
  834. }
  835. func _VolumeServer_VacuumVolumeCompact_Handler(srv interface{}, stream grpc.ServerStream) error {
  836. m := new(VacuumVolumeCompactRequest)
  837. if err := stream.RecvMsg(m); err != nil {
  838. return err
  839. }
  840. return srv.(VolumeServerServer).VacuumVolumeCompact(m, &volumeServerVacuumVolumeCompactServer{stream})
  841. }
  842. type VolumeServer_VacuumVolumeCompactServer interface {
  843. Send(*VacuumVolumeCompactResponse) error
  844. grpc.ServerStream
  845. }
  846. type volumeServerVacuumVolumeCompactServer struct {
  847. grpc.ServerStream
  848. }
  849. func (x *volumeServerVacuumVolumeCompactServer) Send(m *VacuumVolumeCompactResponse) error {
  850. return x.ServerStream.SendMsg(m)
  851. }
  852. func _VolumeServer_VacuumVolumeCommit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  853. in := new(VacuumVolumeCommitRequest)
  854. if err := dec(in); err != nil {
  855. return nil, err
  856. }
  857. if interceptor == nil {
  858. return srv.(VolumeServerServer).VacuumVolumeCommit(ctx, in)
  859. }
  860. info := &grpc.UnaryServerInfo{
  861. Server: srv,
  862. FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCommit",
  863. }
  864. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  865. return srv.(VolumeServerServer).VacuumVolumeCommit(ctx, req.(*VacuumVolumeCommitRequest))
  866. }
  867. return interceptor(ctx, in, info, handler)
  868. }
  869. func _VolumeServer_VacuumVolumeCleanup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  870. in := new(VacuumVolumeCleanupRequest)
  871. if err := dec(in); err != nil {
  872. return nil, err
  873. }
  874. if interceptor == nil {
  875. return srv.(VolumeServerServer).VacuumVolumeCleanup(ctx, in)
  876. }
  877. info := &grpc.UnaryServerInfo{
  878. Server: srv,
  879. FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCleanup",
  880. }
  881. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  882. return srv.(VolumeServerServer).VacuumVolumeCleanup(ctx, req.(*VacuumVolumeCleanupRequest))
  883. }
  884. return interceptor(ctx, in, info, handler)
  885. }
  886. func _VolumeServer_DeleteCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  887. in := new(DeleteCollectionRequest)
  888. if err := dec(in); err != nil {
  889. return nil, err
  890. }
  891. if interceptor == nil {
  892. return srv.(VolumeServerServer).DeleteCollection(ctx, in)
  893. }
  894. info := &grpc.UnaryServerInfo{
  895. Server: srv,
  896. FullMethod: "/volume_server_pb.VolumeServer/DeleteCollection",
  897. }
  898. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  899. return srv.(VolumeServerServer).DeleteCollection(ctx, req.(*DeleteCollectionRequest))
  900. }
  901. return interceptor(ctx, in, info, handler)
  902. }
  903. func _VolumeServer_AllocateVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  904. in := new(AllocateVolumeRequest)
  905. if err := dec(in); err != nil {
  906. return nil, err
  907. }
  908. if interceptor == nil {
  909. return srv.(VolumeServerServer).AllocateVolume(ctx, in)
  910. }
  911. info := &grpc.UnaryServerInfo{
  912. Server: srv,
  913. FullMethod: "/volume_server_pb.VolumeServer/AllocateVolume",
  914. }
  915. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  916. return srv.(VolumeServerServer).AllocateVolume(ctx, req.(*AllocateVolumeRequest))
  917. }
  918. return interceptor(ctx, in, info, handler)
  919. }
  920. func _VolumeServer_VolumeSyncStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  921. in := new(VolumeSyncStatusRequest)
  922. if err := dec(in); err != nil {
  923. return nil, err
  924. }
  925. if interceptor == nil {
  926. return srv.(VolumeServerServer).VolumeSyncStatus(ctx, in)
  927. }
  928. info := &grpc.UnaryServerInfo{
  929. Server: srv,
  930. FullMethod: "/volume_server_pb.VolumeServer/VolumeSyncStatus",
  931. }
  932. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  933. return srv.(VolumeServerServer).VolumeSyncStatus(ctx, req.(*VolumeSyncStatusRequest))
  934. }
  935. return interceptor(ctx, in, info, handler)
  936. }
  937. func _VolumeServer_VolumeIncrementalCopy_Handler(srv interface{}, stream grpc.ServerStream) error {
  938. m := new(VolumeIncrementalCopyRequest)
  939. if err := stream.RecvMsg(m); err != nil {
  940. return err
  941. }
  942. return srv.(VolumeServerServer).VolumeIncrementalCopy(m, &volumeServerVolumeIncrementalCopyServer{stream})
  943. }
  944. type VolumeServer_VolumeIncrementalCopyServer interface {
  945. Send(*VolumeIncrementalCopyResponse) error
  946. grpc.ServerStream
  947. }
  948. type volumeServerVolumeIncrementalCopyServer struct {
  949. grpc.ServerStream
  950. }
  951. func (x *volumeServerVolumeIncrementalCopyServer) Send(m *VolumeIncrementalCopyResponse) error {
  952. return x.ServerStream.SendMsg(m)
  953. }
  954. func _VolumeServer_VolumeMount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  955. in := new(VolumeMountRequest)
  956. if err := dec(in); err != nil {
  957. return nil, err
  958. }
  959. if interceptor == nil {
  960. return srv.(VolumeServerServer).VolumeMount(ctx, in)
  961. }
  962. info := &grpc.UnaryServerInfo{
  963. Server: srv,
  964. FullMethod: "/volume_server_pb.VolumeServer/VolumeMount",
  965. }
  966. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  967. return srv.(VolumeServerServer).VolumeMount(ctx, req.(*VolumeMountRequest))
  968. }
  969. return interceptor(ctx, in, info, handler)
  970. }
  971. func _VolumeServer_VolumeUnmount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  972. in := new(VolumeUnmountRequest)
  973. if err := dec(in); err != nil {
  974. return nil, err
  975. }
  976. if interceptor == nil {
  977. return srv.(VolumeServerServer).VolumeUnmount(ctx, in)
  978. }
  979. info := &grpc.UnaryServerInfo{
  980. Server: srv,
  981. FullMethod: "/volume_server_pb.VolumeServer/VolumeUnmount",
  982. }
  983. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  984. return srv.(VolumeServerServer).VolumeUnmount(ctx, req.(*VolumeUnmountRequest))
  985. }
  986. return interceptor(ctx, in, info, handler)
  987. }
  988. func _VolumeServer_VolumeDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  989. in := new(VolumeDeleteRequest)
  990. if err := dec(in); err != nil {
  991. return nil, err
  992. }
  993. if interceptor == nil {
  994. return srv.(VolumeServerServer).VolumeDelete(ctx, in)
  995. }
  996. info := &grpc.UnaryServerInfo{
  997. Server: srv,
  998. FullMethod: "/volume_server_pb.VolumeServer/VolumeDelete",
  999. }
  1000. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1001. return srv.(VolumeServerServer).VolumeDelete(ctx, req.(*VolumeDeleteRequest))
  1002. }
  1003. return interceptor(ctx, in, info, handler)
  1004. }
  1005. func _VolumeServer_VolumeMarkReadonly_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1006. in := new(VolumeMarkReadonlyRequest)
  1007. if err := dec(in); err != nil {
  1008. return nil, err
  1009. }
  1010. if interceptor == nil {
  1011. return srv.(VolumeServerServer).VolumeMarkReadonly(ctx, in)
  1012. }
  1013. info := &grpc.UnaryServerInfo{
  1014. Server: srv,
  1015. FullMethod: "/volume_server_pb.VolumeServer/VolumeMarkReadonly",
  1016. }
  1017. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1018. return srv.(VolumeServerServer).VolumeMarkReadonly(ctx, req.(*VolumeMarkReadonlyRequest))
  1019. }
  1020. return interceptor(ctx, in, info, handler)
  1021. }
  1022. func _VolumeServer_VolumeMarkWritable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1023. in := new(VolumeMarkWritableRequest)
  1024. if err := dec(in); err != nil {
  1025. return nil, err
  1026. }
  1027. if interceptor == nil {
  1028. return srv.(VolumeServerServer).VolumeMarkWritable(ctx, in)
  1029. }
  1030. info := &grpc.UnaryServerInfo{
  1031. Server: srv,
  1032. FullMethod: "/volume_server_pb.VolumeServer/VolumeMarkWritable",
  1033. }
  1034. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1035. return srv.(VolumeServerServer).VolumeMarkWritable(ctx, req.(*VolumeMarkWritableRequest))
  1036. }
  1037. return interceptor(ctx, in, info, handler)
  1038. }
  1039. func _VolumeServer_VolumeConfigure_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1040. in := new(VolumeConfigureRequest)
  1041. if err := dec(in); err != nil {
  1042. return nil, err
  1043. }
  1044. if interceptor == nil {
  1045. return srv.(VolumeServerServer).VolumeConfigure(ctx, in)
  1046. }
  1047. info := &grpc.UnaryServerInfo{
  1048. Server: srv,
  1049. FullMethod: "/volume_server_pb.VolumeServer/VolumeConfigure",
  1050. }
  1051. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1052. return srv.(VolumeServerServer).VolumeConfigure(ctx, req.(*VolumeConfigureRequest))
  1053. }
  1054. return interceptor(ctx, in, info, handler)
  1055. }
  1056. func _VolumeServer_VolumeStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1057. in := new(VolumeStatusRequest)
  1058. if err := dec(in); err != nil {
  1059. return nil, err
  1060. }
  1061. if interceptor == nil {
  1062. return srv.(VolumeServerServer).VolumeStatus(ctx, in)
  1063. }
  1064. info := &grpc.UnaryServerInfo{
  1065. Server: srv,
  1066. FullMethod: "/volume_server_pb.VolumeServer/VolumeStatus",
  1067. }
  1068. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1069. return srv.(VolumeServerServer).VolumeStatus(ctx, req.(*VolumeStatusRequest))
  1070. }
  1071. return interceptor(ctx, in, info, handler)
  1072. }
  1073. func _VolumeServer_VolumeCopy_Handler(srv interface{}, stream grpc.ServerStream) error {
  1074. m := new(VolumeCopyRequest)
  1075. if err := stream.RecvMsg(m); err != nil {
  1076. return err
  1077. }
  1078. return srv.(VolumeServerServer).VolumeCopy(m, &volumeServerVolumeCopyServer{stream})
  1079. }
  1080. type VolumeServer_VolumeCopyServer interface {
  1081. Send(*VolumeCopyResponse) error
  1082. grpc.ServerStream
  1083. }
  1084. type volumeServerVolumeCopyServer struct {
  1085. grpc.ServerStream
  1086. }
  1087. func (x *volumeServerVolumeCopyServer) Send(m *VolumeCopyResponse) error {
  1088. return x.ServerStream.SendMsg(m)
  1089. }
  1090. func _VolumeServer_ReadVolumeFileStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1091. in := new(ReadVolumeFileStatusRequest)
  1092. if err := dec(in); err != nil {
  1093. return nil, err
  1094. }
  1095. if interceptor == nil {
  1096. return srv.(VolumeServerServer).ReadVolumeFileStatus(ctx, in)
  1097. }
  1098. info := &grpc.UnaryServerInfo{
  1099. Server: srv,
  1100. FullMethod: "/volume_server_pb.VolumeServer/ReadVolumeFileStatus",
  1101. }
  1102. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1103. return srv.(VolumeServerServer).ReadVolumeFileStatus(ctx, req.(*ReadVolumeFileStatusRequest))
  1104. }
  1105. return interceptor(ctx, in, info, handler)
  1106. }
  1107. func _VolumeServer_CopyFile_Handler(srv interface{}, stream grpc.ServerStream) error {
  1108. m := new(CopyFileRequest)
  1109. if err := stream.RecvMsg(m); err != nil {
  1110. return err
  1111. }
  1112. return srv.(VolumeServerServer).CopyFile(m, &volumeServerCopyFileServer{stream})
  1113. }
  1114. type VolumeServer_CopyFileServer interface {
  1115. Send(*CopyFileResponse) error
  1116. grpc.ServerStream
  1117. }
  1118. type volumeServerCopyFileServer struct {
  1119. grpc.ServerStream
  1120. }
  1121. func (x *volumeServerCopyFileServer) Send(m *CopyFileResponse) error {
  1122. return x.ServerStream.SendMsg(m)
  1123. }
  1124. func _VolumeServer_ReadNeedleBlob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1125. in := new(ReadNeedleBlobRequest)
  1126. if err := dec(in); err != nil {
  1127. return nil, err
  1128. }
  1129. if interceptor == nil {
  1130. return srv.(VolumeServerServer).ReadNeedleBlob(ctx, in)
  1131. }
  1132. info := &grpc.UnaryServerInfo{
  1133. Server: srv,
  1134. FullMethod: "/volume_server_pb.VolumeServer/ReadNeedleBlob",
  1135. }
  1136. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1137. return srv.(VolumeServerServer).ReadNeedleBlob(ctx, req.(*ReadNeedleBlobRequest))
  1138. }
  1139. return interceptor(ctx, in, info, handler)
  1140. }
  1141. func _VolumeServer_ReadNeedleMeta_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1142. in := new(ReadNeedleMetaRequest)
  1143. if err := dec(in); err != nil {
  1144. return nil, err
  1145. }
  1146. if interceptor == nil {
  1147. return srv.(VolumeServerServer).ReadNeedleMeta(ctx, in)
  1148. }
  1149. info := &grpc.UnaryServerInfo{
  1150. Server: srv,
  1151. FullMethod: "/volume_server_pb.VolumeServer/ReadNeedleMeta",
  1152. }
  1153. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1154. return srv.(VolumeServerServer).ReadNeedleMeta(ctx, req.(*ReadNeedleMetaRequest))
  1155. }
  1156. return interceptor(ctx, in, info, handler)
  1157. }
  1158. func _VolumeServer_WriteNeedleBlob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1159. in := new(WriteNeedleBlobRequest)
  1160. if err := dec(in); err != nil {
  1161. return nil, err
  1162. }
  1163. if interceptor == nil {
  1164. return srv.(VolumeServerServer).WriteNeedleBlob(ctx, in)
  1165. }
  1166. info := &grpc.UnaryServerInfo{
  1167. Server: srv,
  1168. FullMethod: "/volume_server_pb.VolumeServer/WriteNeedleBlob",
  1169. }
  1170. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1171. return srv.(VolumeServerServer).WriteNeedleBlob(ctx, req.(*WriteNeedleBlobRequest))
  1172. }
  1173. return interceptor(ctx, in, info, handler)
  1174. }
  1175. func _VolumeServer_ReadAllNeedles_Handler(srv interface{}, stream grpc.ServerStream) error {
  1176. m := new(ReadAllNeedlesRequest)
  1177. if err := stream.RecvMsg(m); err != nil {
  1178. return err
  1179. }
  1180. return srv.(VolumeServerServer).ReadAllNeedles(m, &volumeServerReadAllNeedlesServer{stream})
  1181. }
  1182. type VolumeServer_ReadAllNeedlesServer interface {
  1183. Send(*ReadAllNeedlesResponse) error
  1184. grpc.ServerStream
  1185. }
  1186. type volumeServerReadAllNeedlesServer struct {
  1187. grpc.ServerStream
  1188. }
  1189. func (x *volumeServerReadAllNeedlesServer) Send(m *ReadAllNeedlesResponse) error {
  1190. return x.ServerStream.SendMsg(m)
  1191. }
  1192. func _VolumeServer_VolumeTailSender_Handler(srv interface{}, stream grpc.ServerStream) error {
  1193. m := new(VolumeTailSenderRequest)
  1194. if err := stream.RecvMsg(m); err != nil {
  1195. return err
  1196. }
  1197. return srv.(VolumeServerServer).VolumeTailSender(m, &volumeServerVolumeTailSenderServer{stream})
  1198. }
  1199. type VolumeServer_VolumeTailSenderServer interface {
  1200. Send(*VolumeTailSenderResponse) error
  1201. grpc.ServerStream
  1202. }
  1203. type volumeServerVolumeTailSenderServer struct {
  1204. grpc.ServerStream
  1205. }
  1206. func (x *volumeServerVolumeTailSenderServer) Send(m *VolumeTailSenderResponse) error {
  1207. return x.ServerStream.SendMsg(m)
  1208. }
  1209. func _VolumeServer_VolumeTailReceiver_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1210. in := new(VolumeTailReceiverRequest)
  1211. if err := dec(in); err != nil {
  1212. return nil, err
  1213. }
  1214. if interceptor == nil {
  1215. return srv.(VolumeServerServer).VolumeTailReceiver(ctx, in)
  1216. }
  1217. info := &grpc.UnaryServerInfo{
  1218. Server: srv,
  1219. FullMethod: "/volume_server_pb.VolumeServer/VolumeTailReceiver",
  1220. }
  1221. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1222. return srv.(VolumeServerServer).VolumeTailReceiver(ctx, req.(*VolumeTailReceiverRequest))
  1223. }
  1224. return interceptor(ctx, in, info, handler)
  1225. }
  1226. func _VolumeServer_VolumeEcShardsGenerate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1227. in := new(VolumeEcShardsGenerateRequest)
  1228. if err := dec(in); err != nil {
  1229. return nil, err
  1230. }
  1231. if interceptor == nil {
  1232. return srv.(VolumeServerServer).VolumeEcShardsGenerate(ctx, in)
  1233. }
  1234. info := &grpc.UnaryServerInfo{
  1235. Server: srv,
  1236. FullMethod: "/volume_server_pb.VolumeServer/VolumeEcShardsGenerate",
  1237. }
  1238. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1239. return srv.(VolumeServerServer).VolumeEcShardsGenerate(ctx, req.(*VolumeEcShardsGenerateRequest))
  1240. }
  1241. return interceptor(ctx, in, info, handler)
  1242. }
  1243. func _VolumeServer_VolumeEcShardsRebuild_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1244. in := new(VolumeEcShardsRebuildRequest)
  1245. if err := dec(in); err != nil {
  1246. return nil, err
  1247. }
  1248. if interceptor == nil {
  1249. return srv.(VolumeServerServer).VolumeEcShardsRebuild(ctx, in)
  1250. }
  1251. info := &grpc.UnaryServerInfo{
  1252. Server: srv,
  1253. FullMethod: "/volume_server_pb.VolumeServer/VolumeEcShardsRebuild",
  1254. }
  1255. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1256. return srv.(VolumeServerServer).VolumeEcShardsRebuild(ctx, req.(*VolumeEcShardsRebuildRequest))
  1257. }
  1258. return interceptor(ctx, in, info, handler)
  1259. }
  1260. func _VolumeServer_VolumeEcShardsCopy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1261. in := new(VolumeEcShardsCopyRequest)
  1262. if err := dec(in); err != nil {
  1263. return nil, err
  1264. }
  1265. if interceptor == nil {
  1266. return srv.(VolumeServerServer).VolumeEcShardsCopy(ctx, in)
  1267. }
  1268. info := &grpc.UnaryServerInfo{
  1269. Server: srv,
  1270. FullMethod: "/volume_server_pb.VolumeServer/VolumeEcShardsCopy",
  1271. }
  1272. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1273. return srv.(VolumeServerServer).VolumeEcShardsCopy(ctx, req.(*VolumeEcShardsCopyRequest))
  1274. }
  1275. return interceptor(ctx, in, info, handler)
  1276. }
  1277. func _VolumeServer_VolumeEcShardsDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1278. in := new(VolumeEcShardsDeleteRequest)
  1279. if err := dec(in); err != nil {
  1280. return nil, err
  1281. }
  1282. if interceptor == nil {
  1283. return srv.(VolumeServerServer).VolumeEcShardsDelete(ctx, in)
  1284. }
  1285. info := &grpc.UnaryServerInfo{
  1286. Server: srv,
  1287. FullMethod: "/volume_server_pb.VolumeServer/VolumeEcShardsDelete",
  1288. }
  1289. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1290. return srv.(VolumeServerServer).VolumeEcShardsDelete(ctx, req.(*VolumeEcShardsDeleteRequest))
  1291. }
  1292. return interceptor(ctx, in, info, handler)
  1293. }
  1294. func _VolumeServer_VolumeEcShardsMount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1295. in := new(VolumeEcShardsMountRequest)
  1296. if err := dec(in); err != nil {
  1297. return nil, err
  1298. }
  1299. if interceptor == nil {
  1300. return srv.(VolumeServerServer).VolumeEcShardsMount(ctx, in)
  1301. }
  1302. info := &grpc.UnaryServerInfo{
  1303. Server: srv,
  1304. FullMethod: "/volume_server_pb.VolumeServer/VolumeEcShardsMount",
  1305. }
  1306. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1307. return srv.(VolumeServerServer).VolumeEcShardsMount(ctx, req.(*VolumeEcShardsMountRequest))
  1308. }
  1309. return interceptor(ctx, in, info, handler)
  1310. }
  1311. func _VolumeServer_VolumeEcShardsUnmount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1312. in := new(VolumeEcShardsUnmountRequest)
  1313. if err := dec(in); err != nil {
  1314. return nil, err
  1315. }
  1316. if interceptor == nil {
  1317. return srv.(VolumeServerServer).VolumeEcShardsUnmount(ctx, in)
  1318. }
  1319. info := &grpc.UnaryServerInfo{
  1320. Server: srv,
  1321. FullMethod: "/volume_server_pb.VolumeServer/VolumeEcShardsUnmount",
  1322. }
  1323. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1324. return srv.(VolumeServerServer).VolumeEcShardsUnmount(ctx, req.(*VolumeEcShardsUnmountRequest))
  1325. }
  1326. return interceptor(ctx, in, info, handler)
  1327. }
  1328. func _VolumeServer_VolumeEcShardRead_Handler(srv interface{}, stream grpc.ServerStream) error {
  1329. m := new(VolumeEcShardReadRequest)
  1330. if err := stream.RecvMsg(m); err != nil {
  1331. return err
  1332. }
  1333. return srv.(VolumeServerServer).VolumeEcShardRead(m, &volumeServerVolumeEcShardReadServer{stream})
  1334. }
  1335. type VolumeServer_VolumeEcShardReadServer interface {
  1336. Send(*VolumeEcShardReadResponse) error
  1337. grpc.ServerStream
  1338. }
  1339. type volumeServerVolumeEcShardReadServer struct {
  1340. grpc.ServerStream
  1341. }
  1342. func (x *volumeServerVolumeEcShardReadServer) Send(m *VolumeEcShardReadResponse) error {
  1343. return x.ServerStream.SendMsg(m)
  1344. }
  1345. func _VolumeServer_VolumeEcBlobDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1346. in := new(VolumeEcBlobDeleteRequest)
  1347. if err := dec(in); err != nil {
  1348. return nil, err
  1349. }
  1350. if interceptor == nil {
  1351. return srv.(VolumeServerServer).VolumeEcBlobDelete(ctx, in)
  1352. }
  1353. info := &grpc.UnaryServerInfo{
  1354. Server: srv,
  1355. FullMethod: "/volume_server_pb.VolumeServer/VolumeEcBlobDelete",
  1356. }
  1357. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1358. return srv.(VolumeServerServer).VolumeEcBlobDelete(ctx, req.(*VolumeEcBlobDeleteRequest))
  1359. }
  1360. return interceptor(ctx, in, info, handler)
  1361. }
  1362. func _VolumeServer_VolumeEcShardsToVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1363. in := new(VolumeEcShardsToVolumeRequest)
  1364. if err := dec(in); err != nil {
  1365. return nil, err
  1366. }
  1367. if interceptor == nil {
  1368. return srv.(VolumeServerServer).VolumeEcShardsToVolume(ctx, in)
  1369. }
  1370. info := &grpc.UnaryServerInfo{
  1371. Server: srv,
  1372. FullMethod: "/volume_server_pb.VolumeServer/VolumeEcShardsToVolume",
  1373. }
  1374. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1375. return srv.(VolumeServerServer).VolumeEcShardsToVolume(ctx, req.(*VolumeEcShardsToVolumeRequest))
  1376. }
  1377. return interceptor(ctx, in, info, handler)
  1378. }
  1379. func _VolumeServer_VolumeTierMoveDatToRemote_Handler(srv interface{}, stream grpc.ServerStream) error {
  1380. m := new(VolumeTierMoveDatToRemoteRequest)
  1381. if err := stream.RecvMsg(m); err != nil {
  1382. return err
  1383. }
  1384. return srv.(VolumeServerServer).VolumeTierMoveDatToRemote(m, &volumeServerVolumeTierMoveDatToRemoteServer{stream})
  1385. }
  1386. type VolumeServer_VolumeTierMoveDatToRemoteServer interface {
  1387. Send(*VolumeTierMoveDatToRemoteResponse) error
  1388. grpc.ServerStream
  1389. }
  1390. type volumeServerVolumeTierMoveDatToRemoteServer struct {
  1391. grpc.ServerStream
  1392. }
  1393. func (x *volumeServerVolumeTierMoveDatToRemoteServer) Send(m *VolumeTierMoveDatToRemoteResponse) error {
  1394. return x.ServerStream.SendMsg(m)
  1395. }
  1396. func _VolumeServer_VolumeTierMoveDatFromRemote_Handler(srv interface{}, stream grpc.ServerStream) error {
  1397. m := new(VolumeTierMoveDatFromRemoteRequest)
  1398. if err := stream.RecvMsg(m); err != nil {
  1399. return err
  1400. }
  1401. return srv.(VolumeServerServer).VolumeTierMoveDatFromRemote(m, &volumeServerVolumeTierMoveDatFromRemoteServer{stream})
  1402. }
  1403. type VolumeServer_VolumeTierMoveDatFromRemoteServer interface {
  1404. Send(*VolumeTierMoveDatFromRemoteResponse) error
  1405. grpc.ServerStream
  1406. }
  1407. type volumeServerVolumeTierMoveDatFromRemoteServer struct {
  1408. grpc.ServerStream
  1409. }
  1410. func (x *volumeServerVolumeTierMoveDatFromRemoteServer) Send(m *VolumeTierMoveDatFromRemoteResponse) error {
  1411. return x.ServerStream.SendMsg(m)
  1412. }
  1413. func _VolumeServer_VolumeServerStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1414. in := new(VolumeServerStatusRequest)
  1415. if err := dec(in); err != nil {
  1416. return nil, err
  1417. }
  1418. if interceptor == nil {
  1419. return srv.(VolumeServerServer).VolumeServerStatus(ctx, in)
  1420. }
  1421. info := &grpc.UnaryServerInfo{
  1422. Server: srv,
  1423. FullMethod: "/volume_server_pb.VolumeServer/VolumeServerStatus",
  1424. }
  1425. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1426. return srv.(VolumeServerServer).VolumeServerStatus(ctx, req.(*VolumeServerStatusRequest))
  1427. }
  1428. return interceptor(ctx, in, info, handler)
  1429. }
  1430. func _VolumeServer_VolumeServerLeave_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1431. in := new(VolumeServerLeaveRequest)
  1432. if err := dec(in); err != nil {
  1433. return nil, err
  1434. }
  1435. if interceptor == nil {
  1436. return srv.(VolumeServerServer).VolumeServerLeave(ctx, in)
  1437. }
  1438. info := &grpc.UnaryServerInfo{
  1439. Server: srv,
  1440. FullMethod: "/volume_server_pb.VolumeServer/VolumeServerLeave",
  1441. }
  1442. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1443. return srv.(VolumeServerServer).VolumeServerLeave(ctx, req.(*VolumeServerLeaveRequest))
  1444. }
  1445. return interceptor(ctx, in, info, handler)
  1446. }
  1447. func _VolumeServer_FetchAndWriteNeedle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1448. in := new(FetchAndWriteNeedleRequest)
  1449. if err := dec(in); err != nil {
  1450. return nil, err
  1451. }
  1452. if interceptor == nil {
  1453. return srv.(VolumeServerServer).FetchAndWriteNeedle(ctx, in)
  1454. }
  1455. info := &grpc.UnaryServerInfo{
  1456. Server: srv,
  1457. FullMethod: "/volume_server_pb.VolumeServer/FetchAndWriteNeedle",
  1458. }
  1459. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1460. return srv.(VolumeServerServer).FetchAndWriteNeedle(ctx, req.(*FetchAndWriteNeedleRequest))
  1461. }
  1462. return interceptor(ctx, in, info, handler)
  1463. }
  1464. func _VolumeServer_Query_Handler(srv interface{}, stream grpc.ServerStream) error {
  1465. m := new(QueryRequest)
  1466. if err := stream.RecvMsg(m); err != nil {
  1467. return err
  1468. }
  1469. return srv.(VolumeServerServer).Query(m, &volumeServerQueryServer{stream})
  1470. }
  1471. type VolumeServer_QueryServer interface {
  1472. Send(*QueriedStripe) error
  1473. grpc.ServerStream
  1474. }
  1475. type volumeServerQueryServer struct {
  1476. grpc.ServerStream
  1477. }
  1478. func (x *volumeServerQueryServer) Send(m *QueriedStripe) error {
  1479. return x.ServerStream.SendMsg(m)
  1480. }
  1481. func _VolumeServer_VolumeNeedleStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1482. in := new(VolumeNeedleStatusRequest)
  1483. if err := dec(in); err != nil {
  1484. return nil, err
  1485. }
  1486. if interceptor == nil {
  1487. return srv.(VolumeServerServer).VolumeNeedleStatus(ctx, in)
  1488. }
  1489. info := &grpc.UnaryServerInfo{
  1490. Server: srv,
  1491. FullMethod: "/volume_server_pb.VolumeServer/VolumeNeedleStatus",
  1492. }
  1493. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1494. return srv.(VolumeServerServer).VolumeNeedleStatus(ctx, req.(*VolumeNeedleStatusRequest))
  1495. }
  1496. return interceptor(ctx, in, info, handler)
  1497. }
  1498. func _VolumeServer_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1499. in := new(PingRequest)
  1500. if err := dec(in); err != nil {
  1501. return nil, err
  1502. }
  1503. if interceptor == nil {
  1504. return srv.(VolumeServerServer).Ping(ctx, in)
  1505. }
  1506. info := &grpc.UnaryServerInfo{
  1507. Server: srv,
  1508. FullMethod: "/volume_server_pb.VolumeServer/Ping",
  1509. }
  1510. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1511. return srv.(VolumeServerServer).Ping(ctx, req.(*PingRequest))
  1512. }
  1513. return interceptor(ctx, in, info, handler)
  1514. }
  1515. // VolumeServer_ServiceDesc is the grpc.ServiceDesc for VolumeServer service.
  1516. // It's only intended for direct use with grpc.RegisterService,
  1517. // and not to be introspected or modified (even as a copy)
  1518. var VolumeServer_ServiceDesc = grpc.ServiceDesc{
  1519. ServiceName: "volume_server_pb.VolumeServer",
  1520. HandlerType: (*VolumeServerServer)(nil),
  1521. Methods: []grpc.MethodDesc{
  1522. {
  1523. MethodName: "BatchDelete",
  1524. Handler: _VolumeServer_BatchDelete_Handler,
  1525. },
  1526. {
  1527. MethodName: "VacuumVolumeCheck",
  1528. Handler: _VolumeServer_VacuumVolumeCheck_Handler,
  1529. },
  1530. {
  1531. MethodName: "VacuumVolumeCommit",
  1532. Handler: _VolumeServer_VacuumVolumeCommit_Handler,
  1533. },
  1534. {
  1535. MethodName: "VacuumVolumeCleanup",
  1536. Handler: _VolumeServer_VacuumVolumeCleanup_Handler,
  1537. },
  1538. {
  1539. MethodName: "DeleteCollection",
  1540. Handler: _VolumeServer_DeleteCollection_Handler,
  1541. },
  1542. {
  1543. MethodName: "AllocateVolume",
  1544. Handler: _VolumeServer_AllocateVolume_Handler,
  1545. },
  1546. {
  1547. MethodName: "VolumeSyncStatus",
  1548. Handler: _VolumeServer_VolumeSyncStatus_Handler,
  1549. },
  1550. {
  1551. MethodName: "VolumeMount",
  1552. Handler: _VolumeServer_VolumeMount_Handler,
  1553. },
  1554. {
  1555. MethodName: "VolumeUnmount",
  1556. Handler: _VolumeServer_VolumeUnmount_Handler,
  1557. },
  1558. {
  1559. MethodName: "VolumeDelete",
  1560. Handler: _VolumeServer_VolumeDelete_Handler,
  1561. },
  1562. {
  1563. MethodName: "VolumeMarkReadonly",
  1564. Handler: _VolumeServer_VolumeMarkReadonly_Handler,
  1565. },
  1566. {
  1567. MethodName: "VolumeMarkWritable",
  1568. Handler: _VolumeServer_VolumeMarkWritable_Handler,
  1569. },
  1570. {
  1571. MethodName: "VolumeConfigure",
  1572. Handler: _VolumeServer_VolumeConfigure_Handler,
  1573. },
  1574. {
  1575. MethodName: "VolumeStatus",
  1576. Handler: _VolumeServer_VolumeStatus_Handler,
  1577. },
  1578. {
  1579. MethodName: "ReadVolumeFileStatus",
  1580. Handler: _VolumeServer_ReadVolumeFileStatus_Handler,
  1581. },
  1582. {
  1583. MethodName: "ReadNeedleBlob",
  1584. Handler: _VolumeServer_ReadNeedleBlob_Handler,
  1585. },
  1586. {
  1587. MethodName: "ReadNeedleMeta",
  1588. Handler: _VolumeServer_ReadNeedleMeta_Handler,
  1589. },
  1590. {
  1591. MethodName: "WriteNeedleBlob",
  1592. Handler: _VolumeServer_WriteNeedleBlob_Handler,
  1593. },
  1594. {
  1595. MethodName: "VolumeTailReceiver",
  1596. Handler: _VolumeServer_VolumeTailReceiver_Handler,
  1597. },
  1598. {
  1599. MethodName: "VolumeEcShardsGenerate",
  1600. Handler: _VolumeServer_VolumeEcShardsGenerate_Handler,
  1601. },
  1602. {
  1603. MethodName: "VolumeEcShardsRebuild",
  1604. Handler: _VolumeServer_VolumeEcShardsRebuild_Handler,
  1605. },
  1606. {
  1607. MethodName: "VolumeEcShardsCopy",
  1608. Handler: _VolumeServer_VolumeEcShardsCopy_Handler,
  1609. },
  1610. {
  1611. MethodName: "VolumeEcShardsDelete",
  1612. Handler: _VolumeServer_VolumeEcShardsDelete_Handler,
  1613. },
  1614. {
  1615. MethodName: "VolumeEcShardsMount",
  1616. Handler: _VolumeServer_VolumeEcShardsMount_Handler,
  1617. },
  1618. {
  1619. MethodName: "VolumeEcShardsUnmount",
  1620. Handler: _VolumeServer_VolumeEcShardsUnmount_Handler,
  1621. },
  1622. {
  1623. MethodName: "VolumeEcBlobDelete",
  1624. Handler: _VolumeServer_VolumeEcBlobDelete_Handler,
  1625. },
  1626. {
  1627. MethodName: "VolumeEcShardsToVolume",
  1628. Handler: _VolumeServer_VolumeEcShardsToVolume_Handler,
  1629. },
  1630. {
  1631. MethodName: "VolumeServerStatus",
  1632. Handler: _VolumeServer_VolumeServerStatus_Handler,
  1633. },
  1634. {
  1635. MethodName: "VolumeServerLeave",
  1636. Handler: _VolumeServer_VolumeServerLeave_Handler,
  1637. },
  1638. {
  1639. MethodName: "FetchAndWriteNeedle",
  1640. Handler: _VolumeServer_FetchAndWriteNeedle_Handler,
  1641. },
  1642. {
  1643. MethodName: "VolumeNeedleStatus",
  1644. Handler: _VolumeServer_VolumeNeedleStatus_Handler,
  1645. },
  1646. {
  1647. MethodName: "Ping",
  1648. Handler: _VolumeServer_Ping_Handler,
  1649. },
  1650. },
  1651. Streams: []grpc.StreamDesc{
  1652. {
  1653. StreamName: "VacuumVolumeCompact",
  1654. Handler: _VolumeServer_VacuumVolumeCompact_Handler,
  1655. ServerStreams: true,
  1656. },
  1657. {
  1658. StreamName: "VolumeIncrementalCopy",
  1659. Handler: _VolumeServer_VolumeIncrementalCopy_Handler,
  1660. ServerStreams: true,
  1661. },
  1662. {
  1663. StreamName: "VolumeCopy",
  1664. Handler: _VolumeServer_VolumeCopy_Handler,
  1665. ServerStreams: true,
  1666. },
  1667. {
  1668. StreamName: "CopyFile",
  1669. Handler: _VolumeServer_CopyFile_Handler,
  1670. ServerStreams: true,
  1671. },
  1672. {
  1673. StreamName: "ReadAllNeedles",
  1674. Handler: _VolumeServer_ReadAllNeedles_Handler,
  1675. ServerStreams: true,
  1676. },
  1677. {
  1678. StreamName: "VolumeTailSender",
  1679. Handler: _VolumeServer_VolumeTailSender_Handler,
  1680. ServerStreams: true,
  1681. },
  1682. {
  1683. StreamName: "VolumeEcShardRead",
  1684. Handler: _VolumeServer_VolumeEcShardRead_Handler,
  1685. ServerStreams: true,
  1686. },
  1687. {
  1688. StreamName: "VolumeTierMoveDatToRemote",
  1689. Handler: _VolumeServer_VolumeTierMoveDatToRemote_Handler,
  1690. ServerStreams: true,
  1691. },
  1692. {
  1693. StreamName: "VolumeTierMoveDatFromRemote",
  1694. Handler: _VolumeServer_VolumeTierMoveDatFromRemote_Handler,
  1695. ServerStreams: true,
  1696. },
  1697. {
  1698. StreamName: "Query",
  1699. Handler: _VolumeServer_Query_Handler,
  1700. ServerStreams: true,
  1701. },
  1702. },
  1703. Metadata: "volume_server.proto",
  1704. }