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.

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