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.

770 lines
31 KiB

  1. // Code generated by protoc-gen-go.
  2. // source: volume_server.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package volume_server_pb is a generated protocol buffer package.
  6. It is generated from these files:
  7. volume_server.proto
  8. It has these top-level messages:
  9. BatchDeleteRequest
  10. BatchDeleteResponse
  11. DeleteResult
  12. Empty
  13. VacuumVolumeCheckRequest
  14. VacuumVolumeCheckResponse
  15. VacuumVolumeCompactRequest
  16. VacuumVolumeCompactResponse
  17. VacuumVolumeCommitRequest
  18. VacuumVolumeCommitResponse
  19. VacuumVolumeCleanupRequest
  20. VacuumVolumeCleanupResponse
  21. DeleteCollectionRequest
  22. DeleteCollectionResponse
  23. AssignVolumeRequest
  24. AssignVolumeResponse
  25. VolumeSyncStatusRequest
  26. VolumeSyncStatusResponse
  27. */
  28. package volume_server_pb
  29. import proto "github.com/golang/protobuf/proto"
  30. import fmt "fmt"
  31. import math "math"
  32. import (
  33. context "golang.org/x/net/context"
  34. grpc "google.golang.org/grpc"
  35. )
  36. // Reference imports to suppress errors if they are not otherwise used.
  37. var _ = proto.Marshal
  38. var _ = fmt.Errorf
  39. var _ = math.Inf
  40. // This is a compile-time assertion to ensure that this generated file
  41. // is compatible with the proto package it is being compiled against.
  42. // A compilation error at this line likely means your copy of the
  43. // proto package needs to be updated.
  44. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  45. type BatchDeleteRequest struct {
  46. FileIds []string `protobuf:"bytes,1,rep,name=file_ids,json=fileIds" json:"file_ids,omitempty"`
  47. }
  48. func (m *BatchDeleteRequest) Reset() { *m = BatchDeleteRequest{} }
  49. func (m *BatchDeleteRequest) String() string { return proto.CompactTextString(m) }
  50. func (*BatchDeleteRequest) ProtoMessage() {}
  51. func (*BatchDeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  52. func (m *BatchDeleteRequest) GetFileIds() []string {
  53. if m != nil {
  54. return m.FileIds
  55. }
  56. return nil
  57. }
  58. type BatchDeleteResponse struct {
  59. Results []*DeleteResult `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"`
  60. }
  61. func (m *BatchDeleteResponse) Reset() { *m = BatchDeleteResponse{} }
  62. func (m *BatchDeleteResponse) String() string { return proto.CompactTextString(m) }
  63. func (*BatchDeleteResponse) ProtoMessage() {}
  64. func (*BatchDeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  65. func (m *BatchDeleteResponse) GetResults() []*DeleteResult {
  66. if m != nil {
  67. return m.Results
  68. }
  69. return nil
  70. }
  71. type DeleteResult struct {
  72. FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId" json:"file_id,omitempty"`
  73. Status int32 `protobuf:"varint,2,opt,name=status" json:"status,omitempty"`
  74. Error string `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"`
  75. Size uint32 `protobuf:"varint,4,opt,name=size" json:"size,omitempty"`
  76. }
  77. func (m *DeleteResult) Reset() { *m = DeleteResult{} }
  78. func (m *DeleteResult) String() string { return proto.CompactTextString(m) }
  79. func (*DeleteResult) ProtoMessage() {}
  80. func (*DeleteResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  81. func (m *DeleteResult) GetFileId() string {
  82. if m != nil {
  83. return m.FileId
  84. }
  85. return ""
  86. }
  87. func (m *DeleteResult) GetStatus() int32 {
  88. if m != nil {
  89. return m.Status
  90. }
  91. return 0
  92. }
  93. func (m *DeleteResult) GetError() string {
  94. if m != nil {
  95. return m.Error
  96. }
  97. return ""
  98. }
  99. func (m *DeleteResult) GetSize() uint32 {
  100. if m != nil {
  101. return m.Size
  102. }
  103. return 0
  104. }
  105. type Empty struct {
  106. }
  107. func (m *Empty) Reset() { *m = Empty{} }
  108. func (m *Empty) String() string { return proto.CompactTextString(m) }
  109. func (*Empty) ProtoMessage() {}
  110. func (*Empty) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
  111. type VacuumVolumeCheckRequest struct {
  112. VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
  113. }
  114. func (m *VacuumVolumeCheckRequest) Reset() { *m = VacuumVolumeCheckRequest{} }
  115. func (m *VacuumVolumeCheckRequest) String() string { return proto.CompactTextString(m) }
  116. func (*VacuumVolumeCheckRequest) ProtoMessage() {}
  117. func (*VacuumVolumeCheckRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
  118. func (m *VacuumVolumeCheckRequest) GetVolumdId() uint32 {
  119. if m != nil {
  120. return m.VolumdId
  121. }
  122. return 0
  123. }
  124. type VacuumVolumeCheckResponse struct {
  125. GarbageRatio float64 `protobuf:"fixed64,1,opt,name=garbage_ratio,json=garbageRatio" json:"garbage_ratio,omitempty"`
  126. }
  127. func (m *VacuumVolumeCheckResponse) Reset() { *m = VacuumVolumeCheckResponse{} }
  128. func (m *VacuumVolumeCheckResponse) String() string { return proto.CompactTextString(m) }
  129. func (*VacuumVolumeCheckResponse) ProtoMessage() {}
  130. func (*VacuumVolumeCheckResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
  131. func (m *VacuumVolumeCheckResponse) GetGarbageRatio() float64 {
  132. if m != nil {
  133. return m.GarbageRatio
  134. }
  135. return 0
  136. }
  137. type VacuumVolumeCompactRequest struct {
  138. VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
  139. Preallocate int64 `protobuf:"varint,2,opt,name=preallocate" json:"preallocate,omitempty"`
  140. }
  141. func (m *VacuumVolumeCompactRequest) Reset() { *m = VacuumVolumeCompactRequest{} }
  142. func (m *VacuumVolumeCompactRequest) String() string { return proto.CompactTextString(m) }
  143. func (*VacuumVolumeCompactRequest) ProtoMessage() {}
  144. func (*VacuumVolumeCompactRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
  145. func (m *VacuumVolumeCompactRequest) GetVolumdId() uint32 {
  146. if m != nil {
  147. return m.VolumdId
  148. }
  149. return 0
  150. }
  151. func (m *VacuumVolumeCompactRequest) GetPreallocate() int64 {
  152. if m != nil {
  153. return m.Preallocate
  154. }
  155. return 0
  156. }
  157. type VacuumVolumeCompactResponse struct {
  158. }
  159. func (m *VacuumVolumeCompactResponse) Reset() { *m = VacuumVolumeCompactResponse{} }
  160. func (m *VacuumVolumeCompactResponse) String() string { return proto.CompactTextString(m) }
  161. func (*VacuumVolumeCompactResponse) ProtoMessage() {}
  162. func (*VacuumVolumeCompactResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
  163. type VacuumVolumeCommitRequest struct {
  164. VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
  165. }
  166. func (m *VacuumVolumeCommitRequest) Reset() { *m = VacuumVolumeCommitRequest{} }
  167. func (m *VacuumVolumeCommitRequest) String() string { return proto.CompactTextString(m) }
  168. func (*VacuumVolumeCommitRequest) ProtoMessage() {}
  169. func (*VacuumVolumeCommitRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
  170. func (m *VacuumVolumeCommitRequest) GetVolumdId() uint32 {
  171. if m != nil {
  172. return m.VolumdId
  173. }
  174. return 0
  175. }
  176. type VacuumVolumeCommitResponse struct {
  177. }
  178. func (m *VacuumVolumeCommitResponse) Reset() { *m = VacuumVolumeCommitResponse{} }
  179. func (m *VacuumVolumeCommitResponse) String() string { return proto.CompactTextString(m) }
  180. func (*VacuumVolumeCommitResponse) ProtoMessage() {}
  181. func (*VacuumVolumeCommitResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
  182. type VacuumVolumeCleanupRequest struct {
  183. VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
  184. }
  185. func (m *VacuumVolumeCleanupRequest) Reset() { *m = VacuumVolumeCleanupRequest{} }
  186. func (m *VacuumVolumeCleanupRequest) String() string { return proto.CompactTextString(m) }
  187. func (*VacuumVolumeCleanupRequest) ProtoMessage() {}
  188. func (*VacuumVolumeCleanupRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
  189. func (m *VacuumVolumeCleanupRequest) GetVolumdId() uint32 {
  190. if m != nil {
  191. return m.VolumdId
  192. }
  193. return 0
  194. }
  195. type VacuumVolumeCleanupResponse struct {
  196. }
  197. func (m *VacuumVolumeCleanupResponse) Reset() { *m = VacuumVolumeCleanupResponse{} }
  198. func (m *VacuumVolumeCleanupResponse) String() string { return proto.CompactTextString(m) }
  199. func (*VacuumVolumeCleanupResponse) ProtoMessage() {}
  200. func (*VacuumVolumeCleanupResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
  201. type DeleteCollectionRequest struct {
  202. Collection string `protobuf:"bytes,1,opt,name=collection" json:"collection,omitempty"`
  203. }
  204. func (m *DeleteCollectionRequest) Reset() { *m = DeleteCollectionRequest{} }
  205. func (m *DeleteCollectionRequest) String() string { return proto.CompactTextString(m) }
  206. func (*DeleteCollectionRequest) ProtoMessage() {}
  207. func (*DeleteCollectionRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
  208. func (m *DeleteCollectionRequest) GetCollection() string {
  209. if m != nil {
  210. return m.Collection
  211. }
  212. return ""
  213. }
  214. type DeleteCollectionResponse struct {
  215. }
  216. func (m *DeleteCollectionResponse) Reset() { *m = DeleteCollectionResponse{} }
  217. func (m *DeleteCollectionResponse) String() string { return proto.CompactTextString(m) }
  218. func (*DeleteCollectionResponse) ProtoMessage() {}
  219. func (*DeleteCollectionResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
  220. type AssignVolumeRequest struct {
  221. VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
  222. Collection string `protobuf:"bytes,2,opt,name=collection" json:"collection,omitempty"`
  223. Preallocate int64 `protobuf:"varint,3,opt,name=preallocate" json:"preallocate,omitempty"`
  224. Replication string `protobuf:"bytes,4,opt,name=replication" json:"replication,omitempty"`
  225. Ttl string `protobuf:"bytes,5,opt,name=ttl" json:"ttl,omitempty"`
  226. }
  227. func (m *AssignVolumeRequest) Reset() { *m = AssignVolumeRequest{} }
  228. func (m *AssignVolumeRequest) String() string { return proto.CompactTextString(m) }
  229. func (*AssignVolumeRequest) ProtoMessage() {}
  230. func (*AssignVolumeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
  231. func (m *AssignVolumeRequest) GetVolumdId() uint32 {
  232. if m != nil {
  233. return m.VolumdId
  234. }
  235. return 0
  236. }
  237. func (m *AssignVolumeRequest) GetCollection() string {
  238. if m != nil {
  239. return m.Collection
  240. }
  241. return ""
  242. }
  243. func (m *AssignVolumeRequest) GetPreallocate() int64 {
  244. if m != nil {
  245. return m.Preallocate
  246. }
  247. return 0
  248. }
  249. func (m *AssignVolumeRequest) GetReplication() string {
  250. if m != nil {
  251. return m.Replication
  252. }
  253. return ""
  254. }
  255. func (m *AssignVolumeRequest) GetTtl() string {
  256. if m != nil {
  257. return m.Ttl
  258. }
  259. return ""
  260. }
  261. type AssignVolumeResponse struct {
  262. }
  263. func (m *AssignVolumeResponse) Reset() { *m = AssignVolumeResponse{} }
  264. func (m *AssignVolumeResponse) String() string { return proto.CompactTextString(m) }
  265. func (*AssignVolumeResponse) ProtoMessage() {}
  266. func (*AssignVolumeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
  267. type VolumeSyncStatusRequest struct {
  268. VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
  269. }
  270. func (m *VolumeSyncStatusRequest) Reset() { *m = VolumeSyncStatusRequest{} }
  271. func (m *VolumeSyncStatusRequest) String() string { return proto.CompactTextString(m) }
  272. func (*VolumeSyncStatusRequest) ProtoMessage() {}
  273. func (*VolumeSyncStatusRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
  274. func (m *VolumeSyncStatusRequest) GetVolumdId() uint32 {
  275. if m != nil {
  276. return m.VolumdId
  277. }
  278. return 0
  279. }
  280. type VolumeSyncStatusResponse struct {
  281. VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
  282. Replication string `protobuf:"bytes,4,opt,name=replication" json:"replication,omitempty"`
  283. Ttl string `protobuf:"bytes,5,opt,name=ttl" json:"ttl,omitempty"`
  284. TailOffset uint64 `protobuf:"varint,6,opt,name=tail_offset,json=tailOffset" json:"tail_offset,omitempty"`
  285. CompactRevision uint32 `protobuf:"varint,7,opt,name=compact_revision,json=compactRevision" json:"compact_revision,omitempty"`
  286. IdxFileSize uint64 `protobuf:"varint,8,opt,name=idx_file_size,json=idxFileSize" json:"idx_file_size,omitempty"`
  287. }
  288. func (m *VolumeSyncStatusResponse) Reset() { *m = VolumeSyncStatusResponse{} }
  289. func (m *VolumeSyncStatusResponse) String() string { return proto.CompactTextString(m) }
  290. func (*VolumeSyncStatusResponse) ProtoMessage() {}
  291. func (*VolumeSyncStatusResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} }
  292. func (m *VolumeSyncStatusResponse) GetVolumdId() uint32 {
  293. if m != nil {
  294. return m.VolumdId
  295. }
  296. return 0
  297. }
  298. func (m *VolumeSyncStatusResponse) GetReplication() string {
  299. if m != nil {
  300. return m.Replication
  301. }
  302. return ""
  303. }
  304. func (m *VolumeSyncStatusResponse) GetTtl() string {
  305. if m != nil {
  306. return m.Ttl
  307. }
  308. return ""
  309. }
  310. func (m *VolumeSyncStatusResponse) GetTailOffset() uint64 {
  311. if m != nil {
  312. return m.TailOffset
  313. }
  314. return 0
  315. }
  316. func (m *VolumeSyncStatusResponse) GetCompactRevision() uint32 {
  317. if m != nil {
  318. return m.CompactRevision
  319. }
  320. return 0
  321. }
  322. func (m *VolumeSyncStatusResponse) GetIdxFileSize() uint64 {
  323. if m != nil {
  324. return m.IdxFileSize
  325. }
  326. return 0
  327. }
  328. func init() {
  329. proto.RegisterType((*BatchDeleteRequest)(nil), "volume_server_pb.BatchDeleteRequest")
  330. proto.RegisterType((*BatchDeleteResponse)(nil), "volume_server_pb.BatchDeleteResponse")
  331. proto.RegisterType((*DeleteResult)(nil), "volume_server_pb.DeleteResult")
  332. proto.RegisterType((*Empty)(nil), "volume_server_pb.Empty")
  333. proto.RegisterType((*VacuumVolumeCheckRequest)(nil), "volume_server_pb.VacuumVolumeCheckRequest")
  334. proto.RegisterType((*VacuumVolumeCheckResponse)(nil), "volume_server_pb.VacuumVolumeCheckResponse")
  335. proto.RegisterType((*VacuumVolumeCompactRequest)(nil), "volume_server_pb.VacuumVolumeCompactRequest")
  336. proto.RegisterType((*VacuumVolumeCompactResponse)(nil), "volume_server_pb.VacuumVolumeCompactResponse")
  337. proto.RegisterType((*VacuumVolumeCommitRequest)(nil), "volume_server_pb.VacuumVolumeCommitRequest")
  338. proto.RegisterType((*VacuumVolumeCommitResponse)(nil), "volume_server_pb.VacuumVolumeCommitResponse")
  339. proto.RegisterType((*VacuumVolumeCleanupRequest)(nil), "volume_server_pb.VacuumVolumeCleanupRequest")
  340. proto.RegisterType((*VacuumVolumeCleanupResponse)(nil), "volume_server_pb.VacuumVolumeCleanupResponse")
  341. proto.RegisterType((*DeleteCollectionRequest)(nil), "volume_server_pb.DeleteCollectionRequest")
  342. proto.RegisterType((*DeleteCollectionResponse)(nil), "volume_server_pb.DeleteCollectionResponse")
  343. proto.RegisterType((*AssignVolumeRequest)(nil), "volume_server_pb.AssignVolumeRequest")
  344. proto.RegisterType((*AssignVolumeResponse)(nil), "volume_server_pb.AssignVolumeResponse")
  345. proto.RegisterType((*VolumeSyncStatusRequest)(nil), "volume_server_pb.VolumeSyncStatusRequest")
  346. proto.RegisterType((*VolumeSyncStatusResponse)(nil), "volume_server_pb.VolumeSyncStatusResponse")
  347. }
  348. // Reference imports to suppress errors if they are not otherwise used.
  349. var _ context.Context
  350. var _ grpc.ClientConn
  351. // This is a compile-time assertion to ensure that this generated file
  352. // is compatible with the grpc package it is being compiled against.
  353. const _ = grpc.SupportPackageIsVersion4
  354. // Client API for VolumeServer service
  355. type VolumeServerClient interface {
  356. // Experts only: takes multiple fid parameters. This function does not propagate deletes to replicas.
  357. BatchDelete(ctx context.Context, in *BatchDeleteRequest, opts ...grpc.CallOption) (*BatchDeleteResponse, error)
  358. VacuumVolumeCheck(ctx context.Context, in *VacuumVolumeCheckRequest, opts ...grpc.CallOption) (*VacuumVolumeCheckResponse, error)
  359. VacuumVolumeCompact(ctx context.Context, in *VacuumVolumeCompactRequest, opts ...grpc.CallOption) (*VacuumVolumeCompactResponse, error)
  360. VacuumVolumeCommit(ctx context.Context, in *VacuumVolumeCommitRequest, opts ...grpc.CallOption) (*VacuumVolumeCommitResponse, error)
  361. VacuumVolumeCleanup(ctx context.Context, in *VacuumVolumeCleanupRequest, opts ...grpc.CallOption) (*VacuumVolumeCleanupResponse, error)
  362. DeleteCollection(ctx context.Context, in *DeleteCollectionRequest, opts ...grpc.CallOption) (*DeleteCollectionResponse, error)
  363. AssignVolume(ctx context.Context, in *AssignVolumeRequest, opts ...grpc.CallOption) (*AssignVolumeResponse, error)
  364. VolumeSyncStatus(ctx context.Context, in *VolumeSyncStatusRequest, opts ...grpc.CallOption) (*VolumeSyncStatusResponse, error)
  365. }
  366. type volumeServerClient struct {
  367. cc *grpc.ClientConn
  368. }
  369. func NewVolumeServerClient(cc *grpc.ClientConn) VolumeServerClient {
  370. return &volumeServerClient{cc}
  371. }
  372. func (c *volumeServerClient) BatchDelete(ctx context.Context, in *BatchDeleteRequest, opts ...grpc.CallOption) (*BatchDeleteResponse, error) {
  373. out := new(BatchDeleteResponse)
  374. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/BatchDelete", in, out, c.cc, opts...)
  375. if err != nil {
  376. return nil, err
  377. }
  378. return out, nil
  379. }
  380. func (c *volumeServerClient) VacuumVolumeCheck(ctx context.Context, in *VacuumVolumeCheckRequest, opts ...grpc.CallOption) (*VacuumVolumeCheckResponse, error) {
  381. out := new(VacuumVolumeCheckResponse)
  382. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCheck", in, out, c.cc, opts...)
  383. if err != nil {
  384. return nil, err
  385. }
  386. return out, nil
  387. }
  388. func (c *volumeServerClient) VacuumVolumeCompact(ctx context.Context, in *VacuumVolumeCompactRequest, opts ...grpc.CallOption) (*VacuumVolumeCompactResponse, error) {
  389. out := new(VacuumVolumeCompactResponse)
  390. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCompact", in, out, c.cc, opts...)
  391. if err != nil {
  392. return nil, err
  393. }
  394. return out, nil
  395. }
  396. func (c *volumeServerClient) VacuumVolumeCommit(ctx context.Context, in *VacuumVolumeCommitRequest, opts ...grpc.CallOption) (*VacuumVolumeCommitResponse, error) {
  397. out := new(VacuumVolumeCommitResponse)
  398. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCommit", in, out, c.cc, opts...)
  399. if err != nil {
  400. return nil, err
  401. }
  402. return out, nil
  403. }
  404. func (c *volumeServerClient) VacuumVolumeCleanup(ctx context.Context, in *VacuumVolumeCleanupRequest, opts ...grpc.CallOption) (*VacuumVolumeCleanupResponse, error) {
  405. out := new(VacuumVolumeCleanupResponse)
  406. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCleanup", in, out, c.cc, opts...)
  407. if err != nil {
  408. return nil, err
  409. }
  410. return out, nil
  411. }
  412. func (c *volumeServerClient) DeleteCollection(ctx context.Context, in *DeleteCollectionRequest, opts ...grpc.CallOption) (*DeleteCollectionResponse, error) {
  413. out := new(DeleteCollectionResponse)
  414. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/DeleteCollection", in, out, c.cc, opts...)
  415. if err != nil {
  416. return nil, err
  417. }
  418. return out, nil
  419. }
  420. func (c *volumeServerClient) AssignVolume(ctx context.Context, in *AssignVolumeRequest, opts ...grpc.CallOption) (*AssignVolumeResponse, error) {
  421. out := new(AssignVolumeResponse)
  422. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/AssignVolume", in, out, c.cc, opts...)
  423. if err != nil {
  424. return nil, err
  425. }
  426. return out, nil
  427. }
  428. func (c *volumeServerClient) VolumeSyncStatus(ctx context.Context, in *VolumeSyncStatusRequest, opts ...grpc.CallOption) (*VolumeSyncStatusResponse, error) {
  429. out := new(VolumeSyncStatusResponse)
  430. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeSyncStatus", in, out, c.cc, opts...)
  431. if err != nil {
  432. return nil, err
  433. }
  434. return out, nil
  435. }
  436. // Server API for VolumeServer service
  437. type VolumeServerServer interface {
  438. // Experts only: takes multiple fid parameters. This function does not propagate deletes to replicas.
  439. BatchDelete(context.Context, *BatchDeleteRequest) (*BatchDeleteResponse, error)
  440. VacuumVolumeCheck(context.Context, *VacuumVolumeCheckRequest) (*VacuumVolumeCheckResponse, error)
  441. VacuumVolumeCompact(context.Context, *VacuumVolumeCompactRequest) (*VacuumVolumeCompactResponse, error)
  442. VacuumVolumeCommit(context.Context, *VacuumVolumeCommitRequest) (*VacuumVolumeCommitResponse, error)
  443. VacuumVolumeCleanup(context.Context, *VacuumVolumeCleanupRequest) (*VacuumVolumeCleanupResponse, error)
  444. DeleteCollection(context.Context, *DeleteCollectionRequest) (*DeleteCollectionResponse, error)
  445. AssignVolume(context.Context, *AssignVolumeRequest) (*AssignVolumeResponse, error)
  446. VolumeSyncStatus(context.Context, *VolumeSyncStatusRequest) (*VolumeSyncStatusResponse, error)
  447. }
  448. func RegisterVolumeServerServer(s *grpc.Server, srv VolumeServerServer) {
  449. s.RegisterService(&_VolumeServer_serviceDesc, srv)
  450. }
  451. func _VolumeServer_BatchDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  452. in := new(BatchDeleteRequest)
  453. if err := dec(in); err != nil {
  454. return nil, err
  455. }
  456. if interceptor == nil {
  457. return srv.(VolumeServerServer).BatchDelete(ctx, in)
  458. }
  459. info := &grpc.UnaryServerInfo{
  460. Server: srv,
  461. FullMethod: "/volume_server_pb.VolumeServer/BatchDelete",
  462. }
  463. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  464. return srv.(VolumeServerServer).BatchDelete(ctx, req.(*BatchDeleteRequest))
  465. }
  466. return interceptor(ctx, in, info, handler)
  467. }
  468. func _VolumeServer_VacuumVolumeCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  469. in := new(VacuumVolumeCheckRequest)
  470. if err := dec(in); err != nil {
  471. return nil, err
  472. }
  473. if interceptor == nil {
  474. return srv.(VolumeServerServer).VacuumVolumeCheck(ctx, in)
  475. }
  476. info := &grpc.UnaryServerInfo{
  477. Server: srv,
  478. FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCheck",
  479. }
  480. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  481. return srv.(VolumeServerServer).VacuumVolumeCheck(ctx, req.(*VacuumVolumeCheckRequest))
  482. }
  483. return interceptor(ctx, in, info, handler)
  484. }
  485. func _VolumeServer_VacuumVolumeCompact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  486. in := new(VacuumVolumeCompactRequest)
  487. if err := dec(in); err != nil {
  488. return nil, err
  489. }
  490. if interceptor == nil {
  491. return srv.(VolumeServerServer).VacuumVolumeCompact(ctx, in)
  492. }
  493. info := &grpc.UnaryServerInfo{
  494. Server: srv,
  495. FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCompact",
  496. }
  497. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  498. return srv.(VolumeServerServer).VacuumVolumeCompact(ctx, req.(*VacuumVolumeCompactRequest))
  499. }
  500. return interceptor(ctx, in, info, handler)
  501. }
  502. func _VolumeServer_VacuumVolumeCommit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  503. in := new(VacuumVolumeCommitRequest)
  504. if err := dec(in); err != nil {
  505. return nil, err
  506. }
  507. if interceptor == nil {
  508. return srv.(VolumeServerServer).VacuumVolumeCommit(ctx, in)
  509. }
  510. info := &grpc.UnaryServerInfo{
  511. Server: srv,
  512. FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCommit",
  513. }
  514. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  515. return srv.(VolumeServerServer).VacuumVolumeCommit(ctx, req.(*VacuumVolumeCommitRequest))
  516. }
  517. return interceptor(ctx, in, info, handler)
  518. }
  519. func _VolumeServer_VacuumVolumeCleanup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  520. in := new(VacuumVolumeCleanupRequest)
  521. if err := dec(in); err != nil {
  522. return nil, err
  523. }
  524. if interceptor == nil {
  525. return srv.(VolumeServerServer).VacuumVolumeCleanup(ctx, in)
  526. }
  527. info := &grpc.UnaryServerInfo{
  528. Server: srv,
  529. FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCleanup",
  530. }
  531. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  532. return srv.(VolumeServerServer).VacuumVolumeCleanup(ctx, req.(*VacuumVolumeCleanupRequest))
  533. }
  534. return interceptor(ctx, in, info, handler)
  535. }
  536. func _VolumeServer_DeleteCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  537. in := new(DeleteCollectionRequest)
  538. if err := dec(in); err != nil {
  539. return nil, err
  540. }
  541. if interceptor == nil {
  542. return srv.(VolumeServerServer).DeleteCollection(ctx, in)
  543. }
  544. info := &grpc.UnaryServerInfo{
  545. Server: srv,
  546. FullMethod: "/volume_server_pb.VolumeServer/DeleteCollection",
  547. }
  548. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  549. return srv.(VolumeServerServer).DeleteCollection(ctx, req.(*DeleteCollectionRequest))
  550. }
  551. return interceptor(ctx, in, info, handler)
  552. }
  553. func _VolumeServer_AssignVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  554. in := new(AssignVolumeRequest)
  555. if err := dec(in); err != nil {
  556. return nil, err
  557. }
  558. if interceptor == nil {
  559. return srv.(VolumeServerServer).AssignVolume(ctx, in)
  560. }
  561. info := &grpc.UnaryServerInfo{
  562. Server: srv,
  563. FullMethod: "/volume_server_pb.VolumeServer/AssignVolume",
  564. }
  565. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  566. return srv.(VolumeServerServer).AssignVolume(ctx, req.(*AssignVolumeRequest))
  567. }
  568. return interceptor(ctx, in, info, handler)
  569. }
  570. func _VolumeServer_VolumeSyncStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  571. in := new(VolumeSyncStatusRequest)
  572. if err := dec(in); err != nil {
  573. return nil, err
  574. }
  575. if interceptor == nil {
  576. return srv.(VolumeServerServer).VolumeSyncStatus(ctx, in)
  577. }
  578. info := &grpc.UnaryServerInfo{
  579. Server: srv,
  580. FullMethod: "/volume_server_pb.VolumeServer/VolumeSyncStatus",
  581. }
  582. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  583. return srv.(VolumeServerServer).VolumeSyncStatus(ctx, req.(*VolumeSyncStatusRequest))
  584. }
  585. return interceptor(ctx, in, info, handler)
  586. }
  587. var _VolumeServer_serviceDesc = grpc.ServiceDesc{
  588. ServiceName: "volume_server_pb.VolumeServer",
  589. HandlerType: (*VolumeServerServer)(nil),
  590. Methods: []grpc.MethodDesc{
  591. {
  592. MethodName: "BatchDelete",
  593. Handler: _VolumeServer_BatchDelete_Handler,
  594. },
  595. {
  596. MethodName: "VacuumVolumeCheck",
  597. Handler: _VolumeServer_VacuumVolumeCheck_Handler,
  598. },
  599. {
  600. MethodName: "VacuumVolumeCompact",
  601. Handler: _VolumeServer_VacuumVolumeCompact_Handler,
  602. },
  603. {
  604. MethodName: "VacuumVolumeCommit",
  605. Handler: _VolumeServer_VacuumVolumeCommit_Handler,
  606. },
  607. {
  608. MethodName: "VacuumVolumeCleanup",
  609. Handler: _VolumeServer_VacuumVolumeCleanup_Handler,
  610. },
  611. {
  612. MethodName: "DeleteCollection",
  613. Handler: _VolumeServer_DeleteCollection_Handler,
  614. },
  615. {
  616. MethodName: "AssignVolume",
  617. Handler: _VolumeServer_AssignVolume_Handler,
  618. },
  619. {
  620. MethodName: "VolumeSyncStatus",
  621. Handler: _VolumeServer_VolumeSyncStatus_Handler,
  622. },
  623. },
  624. Streams: []grpc.StreamDesc{},
  625. Metadata: "volume_server.proto",
  626. }
  627. func init() { proto.RegisterFile("volume_server.proto", fileDescriptor0) }
  628. var fileDescriptor0 = []byte{
  629. // 683 bytes of a gzipped FileDescriptorProto
  630. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x56, 0x5b, 0x4f, 0xdb, 0x4c,
  631. 0x10, 0xc5, 0xe4, 0x06, 0x93, 0x44, 0x5f, 0xbe, 0x0d, 0x02, 0x63, 0x5a, 0x1a, 0x6d, 0x2f, 0x0a,
  632. 0x97, 0x52, 0x89, 0x4a, 0x2d, 0x7d, 0x6b, 0x4b, 0x5b, 0x89, 0x27, 0x24, 0x23, 0xf1, 0xd2, 0x4a,
  633. 0x96, 0x71, 0x06, 0x58, 0xb1, 0x89, 0xcd, 0xee, 0x1a, 0x01, 0xbf, 0xa8, 0xff, 0xa9, 0xff, 0xa3,
  634. 0xcf, 0x55, 0xd6, 0x4e, 0xea, 0x5b, 0x64, 0xf7, 0xcd, 0x3e, 0x9e, 0x39, 0x67, 0x66, 0x77, 0xe6,
  635. 0x24, 0xd0, 0xbf, 0xf3, 0x79, 0x38, 0x46, 0x47, 0xa2, 0xb8, 0x43, 0x71, 0x10, 0x08, 0x5f, 0xf9,
  636. 0xa4, 0x97, 0x02, 0x9d, 0xe0, 0x82, 0xbe, 0x01, 0xf2, 0xd9, 0x55, 0xde, 0xf5, 0x17, 0xe4, 0xa8,
  637. 0xd0, 0xc6, 0xdb, 0x10, 0xa5, 0x22, 0x9b, 0xb0, 0x72, 0xc9, 0x38, 0x3a, 0x6c, 0x24, 0x4d, 0x63,
  638. 0x50, 0x1b, 0xae, 0xda, 0xad, 0xe9, 0xfb, 0xc9, 0x48, 0xd2, 0x53, 0xe8, 0xa7, 0x12, 0x64, 0xe0,
  639. 0x4f, 0x24, 0x92, 0x23, 0x68, 0x09, 0x94, 0x21, 0x57, 0x51, 0x42, 0xfb, 0x70, 0xfb, 0x20, 0xab,
  640. 0x75, 0x30, 0x4f, 0x09, 0xb9, 0xb2, 0x67, 0xe1, 0x94, 0x41, 0x27, 0xf9, 0x81, 0x6c, 0x40, 0x2b,
  641. 0xd6, 0x36, 0x8d, 0x81, 0x31, 0x5c, 0xb5, 0x9b, 0x91, 0x34, 0x59, 0x87, 0xa6, 0x54, 0xae, 0x0a,
  642. 0xa5, 0xb9, 0x3c, 0x30, 0x86, 0x0d, 0x3b, 0x7e, 0x23, 0x6b, 0xd0, 0x40, 0x21, 0x7c, 0x61, 0xd6,
  643. 0x74, 0x78, 0xf4, 0x42, 0x08, 0xd4, 0x25, 0x7b, 0x44, 0xb3, 0x3e, 0x30, 0x86, 0x5d, 0x5b, 0x3f,
  644. 0xd3, 0x16, 0x34, 0xbe, 0x8e, 0x03, 0xf5, 0x40, 0xdf, 0x83, 0x79, 0xee, 0x7a, 0x61, 0x38, 0x3e,
  645. 0xd7, 0x35, 0x1e, 0x5f, 0xa3, 0x77, 0x33, 0xeb, 0x7d, 0x0b, 0x56, 0x75, 0xe5, 0xa3, 0x59, 0x05,
  646. 0x5d, 0x7b, 0x25, 0x02, 0x4e, 0x46, 0xf4, 0x23, 0x6c, 0x16, 0x24, 0xc6, 0x67, 0xf0, 0x1c, 0xba,
  647. 0x57, 0xae, 0xb8, 0x70, 0xaf, 0xd0, 0x11, 0xae, 0x62, 0xbe, 0xce, 0x36, 0xec, 0x4e, 0x0c, 0xda,
  648. 0x53, 0x8c, 0x7e, 0x07, 0x2b, 0xc5, 0xe0, 0x8f, 0x03, 0xd7, 0x53, 0x55, 0xc4, 0xc9, 0x00, 0xda,
  649. 0x81, 0x40, 0x97, 0x73, 0xdf, 0x73, 0x15, 0xea, 0x53, 0xa8, 0xd9, 0x49, 0x88, 0x3e, 0x85, 0xad,
  650. 0x42, 0xf2, 0xa8, 0x40, 0x7a, 0x94, 0xa9, 0xde, 0x1f, 0x8f, 0x59, 0x25, 0x69, 0xfa, 0x24, 0x57,
  651. 0xb5, 0xce, 0x8c, 0x79, 0x3f, 0x64, 0xbe, 0x72, 0x74, 0x27, 0x61, 0x50, 0x89, 0x38, 0x5b, 0xf1,
  652. 0x2c, 0x75, 0xce, 0xbc, 0x11, 0x0d, 0xc7, 0xb1, 0xcf, 0x39, 0x7a, 0x8a, 0xf9, 0x93, 0x19, 0xed,
  653. 0x36, 0x80, 0x37, 0x07, 0xe3, 0x51, 0x49, 0x20, 0xd4, 0x02, 0x33, 0x9f, 0x1a, 0xd3, 0xfe, 0x34,
  654. 0xa0, 0xff, 0x49, 0x4a, 0x76, 0x35, 0x89, 0x64, 0x2b, 0x1d, 0x7f, 0x5a, 0x70, 0x39, 0x2b, 0x98,
  655. 0xbd, 0x9e, 0x5a, 0xee, 0x7a, 0xa6, 0x11, 0x02, 0x03, 0xce, 0x3c, 0x57, 0x53, 0xd4, 0x35, 0x45,
  656. 0x12, 0x22, 0x3d, 0xa8, 0x29, 0xc5, 0xcd, 0x86, 0xfe, 0x32, 0x7d, 0xa4, 0xeb, 0xb0, 0x96, 0xae,
  657. 0x34, 0x6e, 0xe1, 0x1d, 0x6c, 0x44, 0xc8, 0xd9, 0xc3, 0xc4, 0x3b, 0xd3, 0x9b, 0x50, 0xe9, 0xc0,
  658. 0x7f, 0x19, 0x60, 0xe6, 0x13, 0xe3, 0x09, 0x2e, 0x1b, 0xbf, 0x7f, 0xad, 0x9e, 0x3c, 0x83, 0xb6,
  659. 0x72, 0x19, 0x77, 0xfc, 0xcb, 0x4b, 0x89, 0xca, 0x6c, 0x0e, 0x8c, 0x61, 0xdd, 0x86, 0x29, 0x74,
  660. 0xaa, 0x11, 0xb2, 0x03, 0x3d, 0x2f, 0x9a, 0x52, 0x47, 0xe0, 0x1d, 0x93, 0x53, 0xe6, 0x96, 0x16,
  661. 0xfe, 0xcf, 0x9b, 0x4d, 0x6f, 0x04, 0x13, 0x0a, 0x5d, 0x36, 0xba, 0x77, 0xb4, 0x39, 0xe8, 0xd5,
  662. 0x5e, 0xd1, 0x6c, 0x6d, 0x36, 0xba, 0xff, 0xc6, 0x38, 0x9e, 0xb1, 0x47, 0x3c, 0xfc, 0xdd, 0x84,
  663. 0x4e, 0xdc, 0x9d, 0xb6, 0x1d, 0xf2, 0x03, 0xda, 0x09, 0xbb, 0x22, 0x2f, 0xf2, 0xae, 0x94, 0xb7,
  664. 0x3f, 0xeb, 0x65, 0x49, 0x54, 0x7c, 0x05, 0x4b, 0x64, 0x02, 0xff, 0xe7, 0xec, 0x80, 0xec, 0xe6,
  665. 0xb3, 0x17, 0x99, 0x8d, 0xb5, 0x57, 0x29, 0x76, 0xae, 0xa7, 0xa0, 0x5f, 0xb0, 0xdf, 0x64, 0xbf,
  666. 0x84, 0x25, 0xe5, 0x31, 0xd6, 0xeb, 0x8a, 0xd1, 0x73, 0xd5, 0x5b, 0x20, 0xf9, 0xe5, 0x27, 0x7b,
  667. 0xa5, 0x34, 0x7f, 0xcd, 0xc5, 0xda, 0xaf, 0x16, 0xbc, 0xb0, 0xd1, 0xc8, 0x16, 0x4a, 0x1b, 0x4d,
  668. 0x19, 0x4f, 0x69, 0xa3, 0x19, 0xaf, 0x59, 0x22, 0x37, 0xd0, 0xcb, 0x5a, 0x06, 0xd9, 0x59, 0xf4,
  669. 0x3b, 0x96, 0x73, 0x24, 0x6b, 0xb7, 0x4a, 0xe8, 0x5c, 0xcc, 0x81, 0x4e, 0x72, 0xb1, 0x49, 0xc1,
  670. 0xd0, 0x15, 0x58, 0x94, 0xf5, 0xaa, 0x2c, 0x2c, 0xd9, 0x4d, 0x76, 0xd1, 0x8b, 0xba, 0x59, 0xe0,
  671. 0x22, 0x45, 0xdd, 0x2c, 0xf2, 0x0d, 0xba, 0x74, 0xd1, 0xd4, 0x7f, 0x30, 0xde, 0xfe, 0x09, 0x00,
  672. 0x00, 0xff, 0xff, 0xf6, 0x2c, 0x4e, 0x35, 0x77, 0x08, 0x00, 0x00,
  673. }