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.

1760 lines
82 KiB

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