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.

1722 lines
80 KiB

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