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.

1211 lines
47 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. VolumeSyncIndexRequest
  28. VolumeSyncIndexResponse
  29. VolumeSyncDataRequest
  30. VolumeSyncDataResponse
  31. VolumeMountRequest
  32. VolumeMountResponse
  33. VolumeUnmountRequest
  34. VolumeUnmountResponse
  35. VolumeUiPageRequest
  36. VolumeUiPageResponse
  37. DiskStatus
  38. MemStatus
  39. */
  40. package volume_server_pb
  41. import proto "github.com/golang/protobuf/proto"
  42. import fmt "fmt"
  43. import math "math"
  44. import (
  45. context "golang.org/x/net/context"
  46. grpc "google.golang.org/grpc"
  47. )
  48. // Reference imports to suppress errors if they are not otherwise used.
  49. var _ = proto.Marshal
  50. var _ = fmt.Errorf
  51. var _ = math.Inf
  52. // This is a compile-time assertion to ensure that this generated file
  53. // is compatible with the proto package it is being compiled against.
  54. // A compilation error at this line likely means your copy of the
  55. // proto package needs to be updated.
  56. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  57. type BatchDeleteRequest struct {
  58. FileIds []string `protobuf:"bytes,1,rep,name=file_ids,json=fileIds" json:"file_ids,omitempty"`
  59. }
  60. func (m *BatchDeleteRequest) Reset() { *m = BatchDeleteRequest{} }
  61. func (m *BatchDeleteRequest) String() string { return proto.CompactTextString(m) }
  62. func (*BatchDeleteRequest) ProtoMessage() {}
  63. func (*BatchDeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  64. func (m *BatchDeleteRequest) GetFileIds() []string {
  65. if m != nil {
  66. return m.FileIds
  67. }
  68. return nil
  69. }
  70. type BatchDeleteResponse struct {
  71. Results []*DeleteResult `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"`
  72. }
  73. func (m *BatchDeleteResponse) Reset() { *m = BatchDeleteResponse{} }
  74. func (m *BatchDeleteResponse) String() string { return proto.CompactTextString(m) }
  75. func (*BatchDeleteResponse) ProtoMessage() {}
  76. func (*BatchDeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  77. func (m *BatchDeleteResponse) GetResults() []*DeleteResult {
  78. if m != nil {
  79. return m.Results
  80. }
  81. return nil
  82. }
  83. type DeleteResult struct {
  84. FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId" json:"file_id,omitempty"`
  85. Status int32 `protobuf:"varint,2,opt,name=status" json:"status,omitempty"`
  86. Error string `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"`
  87. Size uint32 `protobuf:"varint,4,opt,name=size" json:"size,omitempty"`
  88. }
  89. func (m *DeleteResult) Reset() { *m = DeleteResult{} }
  90. func (m *DeleteResult) String() string { return proto.CompactTextString(m) }
  91. func (*DeleteResult) ProtoMessage() {}
  92. func (*DeleteResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  93. func (m *DeleteResult) GetFileId() string {
  94. if m != nil {
  95. return m.FileId
  96. }
  97. return ""
  98. }
  99. func (m *DeleteResult) GetStatus() int32 {
  100. if m != nil {
  101. return m.Status
  102. }
  103. return 0
  104. }
  105. func (m *DeleteResult) GetError() string {
  106. if m != nil {
  107. return m.Error
  108. }
  109. return ""
  110. }
  111. func (m *DeleteResult) GetSize() uint32 {
  112. if m != nil {
  113. return m.Size
  114. }
  115. return 0
  116. }
  117. type Empty struct {
  118. }
  119. func (m *Empty) Reset() { *m = Empty{} }
  120. func (m *Empty) String() string { return proto.CompactTextString(m) }
  121. func (*Empty) ProtoMessage() {}
  122. func (*Empty) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
  123. type VacuumVolumeCheckRequest struct {
  124. VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
  125. }
  126. func (m *VacuumVolumeCheckRequest) Reset() { *m = VacuumVolumeCheckRequest{} }
  127. func (m *VacuumVolumeCheckRequest) String() string { return proto.CompactTextString(m) }
  128. func (*VacuumVolumeCheckRequest) ProtoMessage() {}
  129. func (*VacuumVolumeCheckRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
  130. func (m *VacuumVolumeCheckRequest) GetVolumdId() uint32 {
  131. if m != nil {
  132. return m.VolumdId
  133. }
  134. return 0
  135. }
  136. type VacuumVolumeCheckResponse struct {
  137. GarbageRatio float64 `protobuf:"fixed64,1,opt,name=garbage_ratio,json=garbageRatio" json:"garbage_ratio,omitempty"`
  138. }
  139. func (m *VacuumVolumeCheckResponse) Reset() { *m = VacuumVolumeCheckResponse{} }
  140. func (m *VacuumVolumeCheckResponse) String() string { return proto.CompactTextString(m) }
  141. func (*VacuumVolumeCheckResponse) ProtoMessage() {}
  142. func (*VacuumVolumeCheckResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
  143. func (m *VacuumVolumeCheckResponse) GetGarbageRatio() float64 {
  144. if m != nil {
  145. return m.GarbageRatio
  146. }
  147. return 0
  148. }
  149. type VacuumVolumeCompactRequest struct {
  150. VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
  151. Preallocate int64 `protobuf:"varint,2,opt,name=preallocate" json:"preallocate,omitempty"`
  152. }
  153. func (m *VacuumVolumeCompactRequest) Reset() { *m = VacuumVolumeCompactRequest{} }
  154. func (m *VacuumVolumeCompactRequest) String() string { return proto.CompactTextString(m) }
  155. func (*VacuumVolumeCompactRequest) ProtoMessage() {}
  156. func (*VacuumVolumeCompactRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
  157. func (m *VacuumVolumeCompactRequest) GetVolumdId() uint32 {
  158. if m != nil {
  159. return m.VolumdId
  160. }
  161. return 0
  162. }
  163. func (m *VacuumVolumeCompactRequest) GetPreallocate() int64 {
  164. if m != nil {
  165. return m.Preallocate
  166. }
  167. return 0
  168. }
  169. type VacuumVolumeCompactResponse struct {
  170. }
  171. func (m *VacuumVolumeCompactResponse) Reset() { *m = VacuumVolumeCompactResponse{} }
  172. func (m *VacuumVolumeCompactResponse) String() string { return proto.CompactTextString(m) }
  173. func (*VacuumVolumeCompactResponse) ProtoMessage() {}
  174. func (*VacuumVolumeCompactResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
  175. type VacuumVolumeCommitRequest struct {
  176. VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
  177. }
  178. func (m *VacuumVolumeCommitRequest) Reset() { *m = VacuumVolumeCommitRequest{} }
  179. func (m *VacuumVolumeCommitRequest) String() string { return proto.CompactTextString(m) }
  180. func (*VacuumVolumeCommitRequest) ProtoMessage() {}
  181. func (*VacuumVolumeCommitRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
  182. func (m *VacuumVolumeCommitRequest) GetVolumdId() uint32 {
  183. if m != nil {
  184. return m.VolumdId
  185. }
  186. return 0
  187. }
  188. type VacuumVolumeCommitResponse struct {
  189. }
  190. func (m *VacuumVolumeCommitResponse) Reset() { *m = VacuumVolumeCommitResponse{} }
  191. func (m *VacuumVolumeCommitResponse) String() string { return proto.CompactTextString(m) }
  192. func (*VacuumVolumeCommitResponse) ProtoMessage() {}
  193. func (*VacuumVolumeCommitResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
  194. type VacuumVolumeCleanupRequest struct {
  195. VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
  196. }
  197. func (m *VacuumVolumeCleanupRequest) Reset() { *m = VacuumVolumeCleanupRequest{} }
  198. func (m *VacuumVolumeCleanupRequest) String() string { return proto.CompactTextString(m) }
  199. func (*VacuumVolumeCleanupRequest) ProtoMessage() {}
  200. func (*VacuumVolumeCleanupRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
  201. func (m *VacuumVolumeCleanupRequest) GetVolumdId() uint32 {
  202. if m != nil {
  203. return m.VolumdId
  204. }
  205. return 0
  206. }
  207. type VacuumVolumeCleanupResponse struct {
  208. }
  209. func (m *VacuumVolumeCleanupResponse) Reset() { *m = VacuumVolumeCleanupResponse{} }
  210. func (m *VacuumVolumeCleanupResponse) String() string { return proto.CompactTextString(m) }
  211. func (*VacuumVolumeCleanupResponse) ProtoMessage() {}
  212. func (*VacuumVolumeCleanupResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
  213. type DeleteCollectionRequest struct {
  214. Collection string `protobuf:"bytes,1,opt,name=collection" json:"collection,omitempty"`
  215. }
  216. func (m *DeleteCollectionRequest) Reset() { *m = DeleteCollectionRequest{} }
  217. func (m *DeleteCollectionRequest) String() string { return proto.CompactTextString(m) }
  218. func (*DeleteCollectionRequest) ProtoMessage() {}
  219. func (*DeleteCollectionRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
  220. func (m *DeleteCollectionRequest) GetCollection() string {
  221. if m != nil {
  222. return m.Collection
  223. }
  224. return ""
  225. }
  226. type DeleteCollectionResponse struct {
  227. }
  228. func (m *DeleteCollectionResponse) Reset() { *m = DeleteCollectionResponse{} }
  229. func (m *DeleteCollectionResponse) String() string { return proto.CompactTextString(m) }
  230. func (*DeleteCollectionResponse) ProtoMessage() {}
  231. func (*DeleteCollectionResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
  232. type AssignVolumeRequest struct {
  233. VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
  234. Collection string `protobuf:"bytes,2,opt,name=collection" json:"collection,omitempty"`
  235. Preallocate int64 `protobuf:"varint,3,opt,name=preallocate" json:"preallocate,omitempty"`
  236. Replication string `protobuf:"bytes,4,opt,name=replication" json:"replication,omitempty"`
  237. Ttl string `protobuf:"bytes,5,opt,name=ttl" json:"ttl,omitempty"`
  238. }
  239. func (m *AssignVolumeRequest) Reset() { *m = AssignVolumeRequest{} }
  240. func (m *AssignVolumeRequest) String() string { return proto.CompactTextString(m) }
  241. func (*AssignVolumeRequest) ProtoMessage() {}
  242. func (*AssignVolumeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
  243. func (m *AssignVolumeRequest) GetVolumdId() uint32 {
  244. if m != nil {
  245. return m.VolumdId
  246. }
  247. return 0
  248. }
  249. func (m *AssignVolumeRequest) GetCollection() string {
  250. if m != nil {
  251. return m.Collection
  252. }
  253. return ""
  254. }
  255. func (m *AssignVolumeRequest) GetPreallocate() int64 {
  256. if m != nil {
  257. return m.Preallocate
  258. }
  259. return 0
  260. }
  261. func (m *AssignVolumeRequest) GetReplication() string {
  262. if m != nil {
  263. return m.Replication
  264. }
  265. return ""
  266. }
  267. func (m *AssignVolumeRequest) GetTtl() string {
  268. if m != nil {
  269. return m.Ttl
  270. }
  271. return ""
  272. }
  273. type AssignVolumeResponse struct {
  274. }
  275. func (m *AssignVolumeResponse) Reset() { *m = AssignVolumeResponse{} }
  276. func (m *AssignVolumeResponse) String() string { return proto.CompactTextString(m) }
  277. func (*AssignVolumeResponse) ProtoMessage() {}
  278. func (*AssignVolumeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
  279. type VolumeSyncStatusRequest struct {
  280. VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
  281. }
  282. func (m *VolumeSyncStatusRequest) Reset() { *m = VolumeSyncStatusRequest{} }
  283. func (m *VolumeSyncStatusRequest) String() string { return proto.CompactTextString(m) }
  284. func (*VolumeSyncStatusRequest) ProtoMessage() {}
  285. func (*VolumeSyncStatusRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
  286. func (m *VolumeSyncStatusRequest) GetVolumdId() uint32 {
  287. if m != nil {
  288. return m.VolumdId
  289. }
  290. return 0
  291. }
  292. type VolumeSyncStatusResponse struct {
  293. VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
  294. Replication string `protobuf:"bytes,4,opt,name=replication" json:"replication,omitempty"`
  295. Ttl string `protobuf:"bytes,5,opt,name=ttl" json:"ttl,omitempty"`
  296. TailOffset uint64 `protobuf:"varint,6,opt,name=tail_offset,json=tailOffset" json:"tail_offset,omitempty"`
  297. CompactRevision uint32 `protobuf:"varint,7,opt,name=compact_revision,json=compactRevision" json:"compact_revision,omitempty"`
  298. IdxFileSize uint64 `protobuf:"varint,8,opt,name=idx_file_size,json=idxFileSize" json:"idx_file_size,omitempty"`
  299. }
  300. func (m *VolumeSyncStatusResponse) Reset() { *m = VolumeSyncStatusResponse{} }
  301. func (m *VolumeSyncStatusResponse) String() string { return proto.CompactTextString(m) }
  302. func (*VolumeSyncStatusResponse) ProtoMessage() {}
  303. func (*VolumeSyncStatusResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} }
  304. func (m *VolumeSyncStatusResponse) GetVolumdId() uint32 {
  305. if m != nil {
  306. return m.VolumdId
  307. }
  308. return 0
  309. }
  310. func (m *VolumeSyncStatusResponse) GetReplication() string {
  311. if m != nil {
  312. return m.Replication
  313. }
  314. return ""
  315. }
  316. func (m *VolumeSyncStatusResponse) GetTtl() string {
  317. if m != nil {
  318. return m.Ttl
  319. }
  320. return ""
  321. }
  322. func (m *VolumeSyncStatusResponse) GetTailOffset() uint64 {
  323. if m != nil {
  324. return m.TailOffset
  325. }
  326. return 0
  327. }
  328. func (m *VolumeSyncStatusResponse) GetCompactRevision() uint32 {
  329. if m != nil {
  330. return m.CompactRevision
  331. }
  332. return 0
  333. }
  334. func (m *VolumeSyncStatusResponse) GetIdxFileSize() uint64 {
  335. if m != nil {
  336. return m.IdxFileSize
  337. }
  338. return 0
  339. }
  340. type VolumeSyncIndexRequest struct {
  341. VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
  342. }
  343. func (m *VolumeSyncIndexRequest) Reset() { *m = VolumeSyncIndexRequest{} }
  344. func (m *VolumeSyncIndexRequest) String() string { return proto.CompactTextString(m) }
  345. func (*VolumeSyncIndexRequest) ProtoMessage() {}
  346. func (*VolumeSyncIndexRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
  347. func (m *VolumeSyncIndexRequest) GetVolumdId() uint32 {
  348. if m != nil {
  349. return m.VolumdId
  350. }
  351. return 0
  352. }
  353. type VolumeSyncIndexResponse struct {
  354. IndexFileContent []byte `protobuf:"bytes,1,opt,name=index_file_content,json=indexFileContent,proto3" json:"index_file_content,omitempty"`
  355. }
  356. func (m *VolumeSyncIndexResponse) Reset() { *m = VolumeSyncIndexResponse{} }
  357. func (m *VolumeSyncIndexResponse) String() string { return proto.CompactTextString(m) }
  358. func (*VolumeSyncIndexResponse) ProtoMessage() {}
  359. func (*VolumeSyncIndexResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} }
  360. func (m *VolumeSyncIndexResponse) GetIndexFileContent() []byte {
  361. if m != nil {
  362. return m.IndexFileContent
  363. }
  364. return nil
  365. }
  366. type VolumeSyncDataRequest struct {
  367. VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
  368. Revision uint32 `protobuf:"varint,2,opt,name=revision" json:"revision,omitempty"`
  369. Offset uint32 `protobuf:"varint,3,opt,name=offset" json:"offset,omitempty"`
  370. Size uint32 `protobuf:"varint,4,opt,name=size" json:"size,omitempty"`
  371. NeedleId string `protobuf:"bytes,5,opt,name=needle_id,json=needleId" json:"needle_id,omitempty"`
  372. }
  373. func (m *VolumeSyncDataRequest) Reset() { *m = VolumeSyncDataRequest{} }
  374. func (m *VolumeSyncDataRequest) String() string { return proto.CompactTextString(m) }
  375. func (*VolumeSyncDataRequest) ProtoMessage() {}
  376. func (*VolumeSyncDataRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} }
  377. func (m *VolumeSyncDataRequest) GetVolumdId() uint32 {
  378. if m != nil {
  379. return m.VolumdId
  380. }
  381. return 0
  382. }
  383. func (m *VolumeSyncDataRequest) GetRevision() uint32 {
  384. if m != nil {
  385. return m.Revision
  386. }
  387. return 0
  388. }
  389. func (m *VolumeSyncDataRequest) GetOffset() uint32 {
  390. if m != nil {
  391. return m.Offset
  392. }
  393. return 0
  394. }
  395. func (m *VolumeSyncDataRequest) GetSize() uint32 {
  396. if m != nil {
  397. return m.Size
  398. }
  399. return 0
  400. }
  401. func (m *VolumeSyncDataRequest) GetNeedleId() string {
  402. if m != nil {
  403. return m.NeedleId
  404. }
  405. return ""
  406. }
  407. type VolumeSyncDataResponse struct {
  408. FileContent []byte `protobuf:"bytes,1,opt,name=file_content,json=fileContent,proto3" json:"file_content,omitempty"`
  409. }
  410. func (m *VolumeSyncDataResponse) Reset() { *m = VolumeSyncDataResponse{} }
  411. func (m *VolumeSyncDataResponse) String() string { return proto.CompactTextString(m) }
  412. func (*VolumeSyncDataResponse) ProtoMessage() {}
  413. func (*VolumeSyncDataResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} }
  414. func (m *VolumeSyncDataResponse) GetFileContent() []byte {
  415. if m != nil {
  416. return m.FileContent
  417. }
  418. return nil
  419. }
  420. type VolumeMountRequest struct {
  421. VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
  422. }
  423. func (m *VolumeMountRequest) Reset() { *m = VolumeMountRequest{} }
  424. func (m *VolumeMountRequest) String() string { return proto.CompactTextString(m) }
  425. func (*VolumeMountRequest) ProtoMessage() {}
  426. func (*VolumeMountRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{22} }
  427. func (m *VolumeMountRequest) GetVolumdId() uint32 {
  428. if m != nil {
  429. return m.VolumdId
  430. }
  431. return 0
  432. }
  433. type VolumeMountResponse struct {
  434. }
  435. func (m *VolumeMountResponse) Reset() { *m = VolumeMountResponse{} }
  436. func (m *VolumeMountResponse) String() string { return proto.CompactTextString(m) }
  437. func (*VolumeMountResponse) ProtoMessage() {}
  438. func (*VolumeMountResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{23} }
  439. type VolumeUnmountRequest struct {
  440. VolumdId uint32 `protobuf:"varint,1,opt,name=volumd_id,json=volumdId" json:"volumd_id,omitempty"`
  441. }
  442. func (m *VolumeUnmountRequest) Reset() { *m = VolumeUnmountRequest{} }
  443. func (m *VolumeUnmountRequest) String() string { return proto.CompactTextString(m) }
  444. func (*VolumeUnmountRequest) ProtoMessage() {}
  445. func (*VolumeUnmountRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{24} }
  446. func (m *VolumeUnmountRequest) GetVolumdId() uint32 {
  447. if m != nil {
  448. return m.VolumdId
  449. }
  450. return 0
  451. }
  452. type VolumeUnmountResponse struct {
  453. }
  454. func (m *VolumeUnmountResponse) Reset() { *m = VolumeUnmountResponse{} }
  455. func (m *VolumeUnmountResponse) String() string { return proto.CompactTextString(m) }
  456. func (*VolumeUnmountResponse) ProtoMessage() {}
  457. func (*VolumeUnmountResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{25} }
  458. type VolumeUiPageRequest struct {
  459. }
  460. func (m *VolumeUiPageRequest) Reset() { *m = VolumeUiPageRequest{} }
  461. func (m *VolumeUiPageRequest) String() string { return proto.CompactTextString(m) }
  462. func (*VolumeUiPageRequest) ProtoMessage() {}
  463. func (*VolumeUiPageRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{26} }
  464. type VolumeUiPageResponse struct {
  465. }
  466. func (m *VolumeUiPageResponse) Reset() { *m = VolumeUiPageResponse{} }
  467. func (m *VolumeUiPageResponse) String() string { return proto.CompactTextString(m) }
  468. func (*VolumeUiPageResponse) ProtoMessage() {}
  469. func (*VolumeUiPageResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{27} }
  470. type DiskStatus struct {
  471. Dir string `protobuf:"bytes,1,opt,name=dir" json:"dir,omitempty"`
  472. All uint64 `protobuf:"varint,2,opt,name=all" json:"all,omitempty"`
  473. Used uint64 `protobuf:"varint,3,opt,name=used" json:"used,omitempty"`
  474. Free uint64 `protobuf:"varint,4,opt,name=free" json:"free,omitempty"`
  475. }
  476. func (m *DiskStatus) Reset() { *m = DiskStatus{} }
  477. func (m *DiskStatus) String() string { return proto.CompactTextString(m) }
  478. func (*DiskStatus) ProtoMessage() {}
  479. func (*DiskStatus) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{28} }
  480. func (m *DiskStatus) GetDir() string {
  481. if m != nil {
  482. return m.Dir
  483. }
  484. return ""
  485. }
  486. func (m *DiskStatus) GetAll() uint64 {
  487. if m != nil {
  488. return m.All
  489. }
  490. return 0
  491. }
  492. func (m *DiskStatus) GetUsed() uint64 {
  493. if m != nil {
  494. return m.Used
  495. }
  496. return 0
  497. }
  498. func (m *DiskStatus) GetFree() uint64 {
  499. if m != nil {
  500. return m.Free
  501. }
  502. return 0
  503. }
  504. type MemStatus struct {
  505. Goroutines int32 `protobuf:"varint,1,opt,name=goroutines" json:"goroutines,omitempty"`
  506. All uint64 `protobuf:"varint,2,opt,name=all" json:"all,omitempty"`
  507. Used uint64 `protobuf:"varint,3,opt,name=used" json:"used,omitempty"`
  508. Free uint64 `protobuf:"varint,4,opt,name=free" json:"free,omitempty"`
  509. Self uint64 `protobuf:"varint,5,opt,name=self" json:"self,omitempty"`
  510. Heap uint64 `protobuf:"varint,6,opt,name=heap" json:"heap,omitempty"`
  511. Stack uint64 `protobuf:"varint,7,opt,name=stack" json:"stack,omitempty"`
  512. }
  513. func (m *MemStatus) Reset() { *m = MemStatus{} }
  514. func (m *MemStatus) String() string { return proto.CompactTextString(m) }
  515. func (*MemStatus) ProtoMessage() {}
  516. func (*MemStatus) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{29} }
  517. func (m *MemStatus) GetGoroutines() int32 {
  518. if m != nil {
  519. return m.Goroutines
  520. }
  521. return 0
  522. }
  523. func (m *MemStatus) GetAll() uint64 {
  524. if m != nil {
  525. return m.All
  526. }
  527. return 0
  528. }
  529. func (m *MemStatus) GetUsed() uint64 {
  530. if m != nil {
  531. return m.Used
  532. }
  533. return 0
  534. }
  535. func (m *MemStatus) GetFree() uint64 {
  536. if m != nil {
  537. return m.Free
  538. }
  539. return 0
  540. }
  541. func (m *MemStatus) GetSelf() uint64 {
  542. if m != nil {
  543. return m.Self
  544. }
  545. return 0
  546. }
  547. func (m *MemStatus) GetHeap() uint64 {
  548. if m != nil {
  549. return m.Heap
  550. }
  551. return 0
  552. }
  553. func (m *MemStatus) GetStack() uint64 {
  554. if m != nil {
  555. return m.Stack
  556. }
  557. return 0
  558. }
  559. func init() {
  560. proto.RegisterType((*BatchDeleteRequest)(nil), "volume_server_pb.BatchDeleteRequest")
  561. proto.RegisterType((*BatchDeleteResponse)(nil), "volume_server_pb.BatchDeleteResponse")
  562. proto.RegisterType((*DeleteResult)(nil), "volume_server_pb.DeleteResult")
  563. proto.RegisterType((*Empty)(nil), "volume_server_pb.Empty")
  564. proto.RegisterType((*VacuumVolumeCheckRequest)(nil), "volume_server_pb.VacuumVolumeCheckRequest")
  565. proto.RegisterType((*VacuumVolumeCheckResponse)(nil), "volume_server_pb.VacuumVolumeCheckResponse")
  566. proto.RegisterType((*VacuumVolumeCompactRequest)(nil), "volume_server_pb.VacuumVolumeCompactRequest")
  567. proto.RegisterType((*VacuumVolumeCompactResponse)(nil), "volume_server_pb.VacuumVolumeCompactResponse")
  568. proto.RegisterType((*VacuumVolumeCommitRequest)(nil), "volume_server_pb.VacuumVolumeCommitRequest")
  569. proto.RegisterType((*VacuumVolumeCommitResponse)(nil), "volume_server_pb.VacuumVolumeCommitResponse")
  570. proto.RegisterType((*VacuumVolumeCleanupRequest)(nil), "volume_server_pb.VacuumVolumeCleanupRequest")
  571. proto.RegisterType((*VacuumVolumeCleanupResponse)(nil), "volume_server_pb.VacuumVolumeCleanupResponse")
  572. proto.RegisterType((*DeleteCollectionRequest)(nil), "volume_server_pb.DeleteCollectionRequest")
  573. proto.RegisterType((*DeleteCollectionResponse)(nil), "volume_server_pb.DeleteCollectionResponse")
  574. proto.RegisterType((*AssignVolumeRequest)(nil), "volume_server_pb.AssignVolumeRequest")
  575. proto.RegisterType((*AssignVolumeResponse)(nil), "volume_server_pb.AssignVolumeResponse")
  576. proto.RegisterType((*VolumeSyncStatusRequest)(nil), "volume_server_pb.VolumeSyncStatusRequest")
  577. proto.RegisterType((*VolumeSyncStatusResponse)(nil), "volume_server_pb.VolumeSyncStatusResponse")
  578. proto.RegisterType((*VolumeSyncIndexRequest)(nil), "volume_server_pb.VolumeSyncIndexRequest")
  579. proto.RegisterType((*VolumeSyncIndexResponse)(nil), "volume_server_pb.VolumeSyncIndexResponse")
  580. proto.RegisterType((*VolumeSyncDataRequest)(nil), "volume_server_pb.VolumeSyncDataRequest")
  581. proto.RegisterType((*VolumeSyncDataResponse)(nil), "volume_server_pb.VolumeSyncDataResponse")
  582. proto.RegisterType((*VolumeMountRequest)(nil), "volume_server_pb.VolumeMountRequest")
  583. proto.RegisterType((*VolumeMountResponse)(nil), "volume_server_pb.VolumeMountResponse")
  584. proto.RegisterType((*VolumeUnmountRequest)(nil), "volume_server_pb.VolumeUnmountRequest")
  585. proto.RegisterType((*VolumeUnmountResponse)(nil), "volume_server_pb.VolumeUnmountResponse")
  586. proto.RegisterType((*VolumeUiPageRequest)(nil), "volume_server_pb.VolumeUiPageRequest")
  587. proto.RegisterType((*VolumeUiPageResponse)(nil), "volume_server_pb.VolumeUiPageResponse")
  588. proto.RegisterType((*DiskStatus)(nil), "volume_server_pb.DiskStatus")
  589. proto.RegisterType((*MemStatus)(nil), "volume_server_pb.MemStatus")
  590. }
  591. // Reference imports to suppress errors if they are not otherwise used.
  592. var _ context.Context
  593. var _ grpc.ClientConn
  594. // This is a compile-time assertion to ensure that this generated file
  595. // is compatible with the grpc package it is being compiled against.
  596. const _ = grpc.SupportPackageIsVersion4
  597. // Client API for VolumeServer service
  598. type VolumeServerClient interface {
  599. // Experts only: takes multiple fid parameters. This function does not propagate deletes to replicas.
  600. BatchDelete(ctx context.Context, in *BatchDeleteRequest, opts ...grpc.CallOption) (*BatchDeleteResponse, error)
  601. VacuumVolumeCheck(ctx context.Context, in *VacuumVolumeCheckRequest, opts ...grpc.CallOption) (*VacuumVolumeCheckResponse, error)
  602. VacuumVolumeCompact(ctx context.Context, in *VacuumVolumeCompactRequest, opts ...grpc.CallOption) (*VacuumVolumeCompactResponse, error)
  603. VacuumVolumeCommit(ctx context.Context, in *VacuumVolumeCommitRequest, opts ...grpc.CallOption) (*VacuumVolumeCommitResponse, error)
  604. VacuumVolumeCleanup(ctx context.Context, in *VacuumVolumeCleanupRequest, opts ...grpc.CallOption) (*VacuumVolumeCleanupResponse, error)
  605. DeleteCollection(ctx context.Context, in *DeleteCollectionRequest, opts ...grpc.CallOption) (*DeleteCollectionResponse, error)
  606. AssignVolume(ctx context.Context, in *AssignVolumeRequest, opts ...grpc.CallOption) (*AssignVolumeResponse, error)
  607. VolumeSyncStatus(ctx context.Context, in *VolumeSyncStatusRequest, opts ...grpc.CallOption) (*VolumeSyncStatusResponse, error)
  608. VolumeSyncIndex(ctx context.Context, in *VolumeSyncIndexRequest, opts ...grpc.CallOption) (*VolumeSyncIndexResponse, error)
  609. VolumeSyncData(ctx context.Context, in *VolumeSyncDataRequest, opts ...grpc.CallOption) (*VolumeSyncDataResponse, error)
  610. VolumeMount(ctx context.Context, in *VolumeMountRequest, opts ...grpc.CallOption) (*VolumeMountResponse, error)
  611. VolumeUnmount(ctx context.Context, in *VolumeUnmountRequest, opts ...grpc.CallOption) (*VolumeUnmountResponse, error)
  612. }
  613. type volumeServerClient struct {
  614. cc *grpc.ClientConn
  615. }
  616. func NewVolumeServerClient(cc *grpc.ClientConn) VolumeServerClient {
  617. return &volumeServerClient{cc}
  618. }
  619. func (c *volumeServerClient) BatchDelete(ctx context.Context, in *BatchDeleteRequest, opts ...grpc.CallOption) (*BatchDeleteResponse, error) {
  620. out := new(BatchDeleteResponse)
  621. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/BatchDelete", in, out, c.cc, opts...)
  622. if err != nil {
  623. return nil, err
  624. }
  625. return out, nil
  626. }
  627. func (c *volumeServerClient) VacuumVolumeCheck(ctx context.Context, in *VacuumVolumeCheckRequest, opts ...grpc.CallOption) (*VacuumVolumeCheckResponse, error) {
  628. out := new(VacuumVolumeCheckResponse)
  629. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCheck", in, out, c.cc, opts...)
  630. if err != nil {
  631. return nil, err
  632. }
  633. return out, nil
  634. }
  635. func (c *volumeServerClient) VacuumVolumeCompact(ctx context.Context, in *VacuumVolumeCompactRequest, opts ...grpc.CallOption) (*VacuumVolumeCompactResponse, error) {
  636. out := new(VacuumVolumeCompactResponse)
  637. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCompact", in, out, c.cc, opts...)
  638. if err != nil {
  639. return nil, err
  640. }
  641. return out, nil
  642. }
  643. func (c *volumeServerClient) VacuumVolumeCommit(ctx context.Context, in *VacuumVolumeCommitRequest, opts ...grpc.CallOption) (*VacuumVolumeCommitResponse, error) {
  644. out := new(VacuumVolumeCommitResponse)
  645. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCommit", in, out, c.cc, opts...)
  646. if err != nil {
  647. return nil, err
  648. }
  649. return out, nil
  650. }
  651. func (c *volumeServerClient) VacuumVolumeCleanup(ctx context.Context, in *VacuumVolumeCleanupRequest, opts ...grpc.CallOption) (*VacuumVolumeCleanupResponse, error) {
  652. out := new(VacuumVolumeCleanupResponse)
  653. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCleanup", in, out, c.cc, opts...)
  654. if err != nil {
  655. return nil, err
  656. }
  657. return out, nil
  658. }
  659. func (c *volumeServerClient) DeleteCollection(ctx context.Context, in *DeleteCollectionRequest, opts ...grpc.CallOption) (*DeleteCollectionResponse, error) {
  660. out := new(DeleteCollectionResponse)
  661. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/DeleteCollection", in, out, c.cc, opts...)
  662. if err != nil {
  663. return nil, err
  664. }
  665. return out, nil
  666. }
  667. func (c *volumeServerClient) AssignVolume(ctx context.Context, in *AssignVolumeRequest, opts ...grpc.CallOption) (*AssignVolumeResponse, error) {
  668. out := new(AssignVolumeResponse)
  669. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/AssignVolume", in, out, c.cc, opts...)
  670. if err != nil {
  671. return nil, err
  672. }
  673. return out, nil
  674. }
  675. func (c *volumeServerClient) VolumeSyncStatus(ctx context.Context, in *VolumeSyncStatusRequest, opts ...grpc.CallOption) (*VolumeSyncStatusResponse, error) {
  676. out := new(VolumeSyncStatusResponse)
  677. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeSyncStatus", in, out, c.cc, opts...)
  678. if err != nil {
  679. return nil, err
  680. }
  681. return out, nil
  682. }
  683. func (c *volumeServerClient) VolumeSyncIndex(ctx context.Context, in *VolumeSyncIndexRequest, opts ...grpc.CallOption) (*VolumeSyncIndexResponse, error) {
  684. out := new(VolumeSyncIndexResponse)
  685. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeSyncIndex", in, out, c.cc, opts...)
  686. if err != nil {
  687. return nil, err
  688. }
  689. return out, nil
  690. }
  691. func (c *volumeServerClient) VolumeSyncData(ctx context.Context, in *VolumeSyncDataRequest, opts ...grpc.CallOption) (*VolumeSyncDataResponse, error) {
  692. out := new(VolumeSyncDataResponse)
  693. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeSyncData", in, out, c.cc, opts...)
  694. if err != nil {
  695. return nil, err
  696. }
  697. return out, nil
  698. }
  699. func (c *volumeServerClient) VolumeMount(ctx context.Context, in *VolumeMountRequest, opts ...grpc.CallOption) (*VolumeMountResponse, error) {
  700. out := new(VolumeMountResponse)
  701. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeMount", in, out, c.cc, opts...)
  702. if err != nil {
  703. return nil, err
  704. }
  705. return out, nil
  706. }
  707. func (c *volumeServerClient) VolumeUnmount(ctx context.Context, in *VolumeUnmountRequest, opts ...grpc.CallOption) (*VolumeUnmountResponse, error) {
  708. out := new(VolumeUnmountResponse)
  709. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeUnmount", in, out, c.cc, opts...)
  710. if err != nil {
  711. return nil, err
  712. }
  713. return out, nil
  714. }
  715. // Server API for VolumeServer service
  716. type VolumeServerServer interface {
  717. // Experts only: takes multiple fid parameters. This function does not propagate deletes to replicas.
  718. BatchDelete(context.Context, *BatchDeleteRequest) (*BatchDeleteResponse, error)
  719. VacuumVolumeCheck(context.Context, *VacuumVolumeCheckRequest) (*VacuumVolumeCheckResponse, error)
  720. VacuumVolumeCompact(context.Context, *VacuumVolumeCompactRequest) (*VacuumVolumeCompactResponse, error)
  721. VacuumVolumeCommit(context.Context, *VacuumVolumeCommitRequest) (*VacuumVolumeCommitResponse, error)
  722. VacuumVolumeCleanup(context.Context, *VacuumVolumeCleanupRequest) (*VacuumVolumeCleanupResponse, error)
  723. DeleteCollection(context.Context, *DeleteCollectionRequest) (*DeleteCollectionResponse, error)
  724. AssignVolume(context.Context, *AssignVolumeRequest) (*AssignVolumeResponse, error)
  725. VolumeSyncStatus(context.Context, *VolumeSyncStatusRequest) (*VolumeSyncStatusResponse, error)
  726. VolumeSyncIndex(context.Context, *VolumeSyncIndexRequest) (*VolumeSyncIndexResponse, error)
  727. VolumeSyncData(context.Context, *VolumeSyncDataRequest) (*VolumeSyncDataResponse, error)
  728. VolumeMount(context.Context, *VolumeMountRequest) (*VolumeMountResponse, error)
  729. VolumeUnmount(context.Context, *VolumeUnmountRequest) (*VolumeUnmountResponse, error)
  730. }
  731. func RegisterVolumeServerServer(s *grpc.Server, srv VolumeServerServer) {
  732. s.RegisterService(&_VolumeServer_serviceDesc, srv)
  733. }
  734. func _VolumeServer_BatchDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  735. in := new(BatchDeleteRequest)
  736. if err := dec(in); err != nil {
  737. return nil, err
  738. }
  739. if interceptor == nil {
  740. return srv.(VolumeServerServer).BatchDelete(ctx, in)
  741. }
  742. info := &grpc.UnaryServerInfo{
  743. Server: srv,
  744. FullMethod: "/volume_server_pb.VolumeServer/BatchDelete",
  745. }
  746. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  747. return srv.(VolumeServerServer).BatchDelete(ctx, req.(*BatchDeleteRequest))
  748. }
  749. return interceptor(ctx, in, info, handler)
  750. }
  751. func _VolumeServer_VacuumVolumeCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  752. in := new(VacuumVolumeCheckRequest)
  753. if err := dec(in); err != nil {
  754. return nil, err
  755. }
  756. if interceptor == nil {
  757. return srv.(VolumeServerServer).VacuumVolumeCheck(ctx, in)
  758. }
  759. info := &grpc.UnaryServerInfo{
  760. Server: srv,
  761. FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCheck",
  762. }
  763. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  764. return srv.(VolumeServerServer).VacuumVolumeCheck(ctx, req.(*VacuumVolumeCheckRequest))
  765. }
  766. return interceptor(ctx, in, info, handler)
  767. }
  768. func _VolumeServer_VacuumVolumeCompact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  769. in := new(VacuumVolumeCompactRequest)
  770. if err := dec(in); err != nil {
  771. return nil, err
  772. }
  773. if interceptor == nil {
  774. return srv.(VolumeServerServer).VacuumVolumeCompact(ctx, in)
  775. }
  776. info := &grpc.UnaryServerInfo{
  777. Server: srv,
  778. FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCompact",
  779. }
  780. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  781. return srv.(VolumeServerServer).VacuumVolumeCompact(ctx, req.(*VacuumVolumeCompactRequest))
  782. }
  783. return interceptor(ctx, in, info, handler)
  784. }
  785. func _VolumeServer_VacuumVolumeCommit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  786. in := new(VacuumVolumeCommitRequest)
  787. if err := dec(in); err != nil {
  788. return nil, err
  789. }
  790. if interceptor == nil {
  791. return srv.(VolumeServerServer).VacuumVolumeCommit(ctx, in)
  792. }
  793. info := &grpc.UnaryServerInfo{
  794. Server: srv,
  795. FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCommit",
  796. }
  797. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  798. return srv.(VolumeServerServer).VacuumVolumeCommit(ctx, req.(*VacuumVolumeCommitRequest))
  799. }
  800. return interceptor(ctx, in, info, handler)
  801. }
  802. func _VolumeServer_VacuumVolumeCleanup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  803. in := new(VacuumVolumeCleanupRequest)
  804. if err := dec(in); err != nil {
  805. return nil, err
  806. }
  807. if interceptor == nil {
  808. return srv.(VolumeServerServer).VacuumVolumeCleanup(ctx, in)
  809. }
  810. info := &grpc.UnaryServerInfo{
  811. Server: srv,
  812. FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCleanup",
  813. }
  814. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  815. return srv.(VolumeServerServer).VacuumVolumeCleanup(ctx, req.(*VacuumVolumeCleanupRequest))
  816. }
  817. return interceptor(ctx, in, info, handler)
  818. }
  819. func _VolumeServer_DeleteCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  820. in := new(DeleteCollectionRequest)
  821. if err := dec(in); err != nil {
  822. return nil, err
  823. }
  824. if interceptor == nil {
  825. return srv.(VolumeServerServer).DeleteCollection(ctx, in)
  826. }
  827. info := &grpc.UnaryServerInfo{
  828. Server: srv,
  829. FullMethod: "/volume_server_pb.VolumeServer/DeleteCollection",
  830. }
  831. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  832. return srv.(VolumeServerServer).DeleteCollection(ctx, req.(*DeleteCollectionRequest))
  833. }
  834. return interceptor(ctx, in, info, handler)
  835. }
  836. func _VolumeServer_AssignVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  837. in := new(AssignVolumeRequest)
  838. if err := dec(in); err != nil {
  839. return nil, err
  840. }
  841. if interceptor == nil {
  842. return srv.(VolumeServerServer).AssignVolume(ctx, in)
  843. }
  844. info := &grpc.UnaryServerInfo{
  845. Server: srv,
  846. FullMethod: "/volume_server_pb.VolumeServer/AssignVolume",
  847. }
  848. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  849. return srv.(VolumeServerServer).AssignVolume(ctx, req.(*AssignVolumeRequest))
  850. }
  851. return interceptor(ctx, in, info, handler)
  852. }
  853. func _VolumeServer_VolumeSyncStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  854. in := new(VolumeSyncStatusRequest)
  855. if err := dec(in); err != nil {
  856. return nil, err
  857. }
  858. if interceptor == nil {
  859. return srv.(VolumeServerServer).VolumeSyncStatus(ctx, in)
  860. }
  861. info := &grpc.UnaryServerInfo{
  862. Server: srv,
  863. FullMethod: "/volume_server_pb.VolumeServer/VolumeSyncStatus",
  864. }
  865. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  866. return srv.(VolumeServerServer).VolumeSyncStatus(ctx, req.(*VolumeSyncStatusRequest))
  867. }
  868. return interceptor(ctx, in, info, handler)
  869. }
  870. func _VolumeServer_VolumeSyncIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  871. in := new(VolumeSyncIndexRequest)
  872. if err := dec(in); err != nil {
  873. return nil, err
  874. }
  875. if interceptor == nil {
  876. return srv.(VolumeServerServer).VolumeSyncIndex(ctx, in)
  877. }
  878. info := &grpc.UnaryServerInfo{
  879. Server: srv,
  880. FullMethod: "/volume_server_pb.VolumeServer/VolumeSyncIndex",
  881. }
  882. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  883. return srv.(VolumeServerServer).VolumeSyncIndex(ctx, req.(*VolumeSyncIndexRequest))
  884. }
  885. return interceptor(ctx, in, info, handler)
  886. }
  887. func _VolumeServer_VolumeSyncData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  888. in := new(VolumeSyncDataRequest)
  889. if err := dec(in); err != nil {
  890. return nil, err
  891. }
  892. if interceptor == nil {
  893. return srv.(VolumeServerServer).VolumeSyncData(ctx, in)
  894. }
  895. info := &grpc.UnaryServerInfo{
  896. Server: srv,
  897. FullMethod: "/volume_server_pb.VolumeServer/VolumeSyncData",
  898. }
  899. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  900. return srv.(VolumeServerServer).VolumeSyncData(ctx, req.(*VolumeSyncDataRequest))
  901. }
  902. return interceptor(ctx, in, info, handler)
  903. }
  904. func _VolumeServer_VolumeMount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  905. in := new(VolumeMountRequest)
  906. if err := dec(in); err != nil {
  907. return nil, err
  908. }
  909. if interceptor == nil {
  910. return srv.(VolumeServerServer).VolumeMount(ctx, in)
  911. }
  912. info := &grpc.UnaryServerInfo{
  913. Server: srv,
  914. FullMethod: "/volume_server_pb.VolumeServer/VolumeMount",
  915. }
  916. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  917. return srv.(VolumeServerServer).VolumeMount(ctx, req.(*VolumeMountRequest))
  918. }
  919. return interceptor(ctx, in, info, handler)
  920. }
  921. func _VolumeServer_VolumeUnmount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  922. in := new(VolumeUnmountRequest)
  923. if err := dec(in); err != nil {
  924. return nil, err
  925. }
  926. if interceptor == nil {
  927. return srv.(VolumeServerServer).VolumeUnmount(ctx, in)
  928. }
  929. info := &grpc.UnaryServerInfo{
  930. Server: srv,
  931. FullMethod: "/volume_server_pb.VolumeServer/VolumeUnmount",
  932. }
  933. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  934. return srv.(VolumeServerServer).VolumeUnmount(ctx, req.(*VolumeUnmountRequest))
  935. }
  936. return interceptor(ctx, in, info, handler)
  937. }
  938. var _VolumeServer_serviceDesc = grpc.ServiceDesc{
  939. ServiceName: "volume_server_pb.VolumeServer",
  940. HandlerType: (*VolumeServerServer)(nil),
  941. Methods: []grpc.MethodDesc{
  942. {
  943. MethodName: "BatchDelete",
  944. Handler: _VolumeServer_BatchDelete_Handler,
  945. },
  946. {
  947. MethodName: "VacuumVolumeCheck",
  948. Handler: _VolumeServer_VacuumVolumeCheck_Handler,
  949. },
  950. {
  951. MethodName: "VacuumVolumeCompact",
  952. Handler: _VolumeServer_VacuumVolumeCompact_Handler,
  953. },
  954. {
  955. MethodName: "VacuumVolumeCommit",
  956. Handler: _VolumeServer_VacuumVolumeCommit_Handler,
  957. },
  958. {
  959. MethodName: "VacuumVolumeCleanup",
  960. Handler: _VolumeServer_VacuumVolumeCleanup_Handler,
  961. },
  962. {
  963. MethodName: "DeleteCollection",
  964. Handler: _VolumeServer_DeleteCollection_Handler,
  965. },
  966. {
  967. MethodName: "AssignVolume",
  968. Handler: _VolumeServer_AssignVolume_Handler,
  969. },
  970. {
  971. MethodName: "VolumeSyncStatus",
  972. Handler: _VolumeServer_VolumeSyncStatus_Handler,
  973. },
  974. {
  975. MethodName: "VolumeSyncIndex",
  976. Handler: _VolumeServer_VolumeSyncIndex_Handler,
  977. },
  978. {
  979. MethodName: "VolumeSyncData",
  980. Handler: _VolumeServer_VolumeSyncData_Handler,
  981. },
  982. {
  983. MethodName: "VolumeMount",
  984. Handler: _VolumeServer_VolumeMount_Handler,
  985. },
  986. {
  987. MethodName: "VolumeUnmount",
  988. Handler: _VolumeServer_VolumeUnmount_Handler,
  989. },
  990. },
  991. Streams: []grpc.StreamDesc{},
  992. Metadata: "volume_server.proto",
  993. }
  994. func init() { proto.RegisterFile("volume_server.proto", fileDescriptor0) }
  995. var fileDescriptor0 = []byte{
  996. // 1013 bytes of a gzipped FileDescriptorProto
  997. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x57, 0xdf, 0x72, 0xdb, 0xc4,
  998. 0x17, 0x8e, 0x62, 0x3b, 0x76, 0x8e, 0xed, 0x5f, 0xfd, 0x5b, 0xa7, 0x89, 0xaa, 0x42, 0x30, 0x02,
  999. 0x5a, 0xa7, 0x0d, 0x61, 0x68, 0x07, 0x28, 0xc3, 0x0d, 0x90, 0x00, 0x93, 0x8b, 0x4e, 0x99, 0xcd,
  1000. 0xb4, 0xc3, 0x0c, 0x9d, 0xf1, 0x28, 0xd2, 0x3a, 0xd9, 0x89, 0x2c, 0xa9, 0xda, 0x55, 0x26, 0xe5,
  1001. 0x0d, 0x78, 0x04, 0xae, 0xb9, 0xe1, 0x9d, 0x78, 0x19, 0x66, 0xff, 0x48, 0xd1, 0x3f, 0x57, 0x82,
  1002. 0xbb, 0xd5, 0xb7, 0xe7, 0x9c, 0x6f, 0xcf, 0xd9, 0xb3, 0xe7, 0xb3, 0x61, 0x7a, 0x1d, 0xfa, 0xc9,
  1003. 0x8a, 0x2c, 0x18, 0x89, 0xaf, 0x49, 0x7c, 0x14, 0xc5, 0x21, 0x0f, 0xd1, 0xa4, 0x00, 0x2e, 0xa2,
  1004. 0x73, 0xfb, 0x33, 0x40, 0xdf, 0x3b, 0xdc, 0xbd, 0x3c, 0x21, 0x3e, 0xe1, 0x04, 0x93, 0x37, 0x09,
  1005. 0x61, 0x1c, 0xdd, 0x83, 0xc1, 0x92, 0xfa, 0x64, 0x41, 0x3d, 0x66, 0x1a, 0xb3, 0xce, 0x7c, 0x1b,
  1006. 0xf7, 0xc5, 0xf7, 0xa9, 0xc7, 0xec, 0x17, 0x30, 0x2d, 0x38, 0xb0, 0x28, 0x0c, 0x18, 0x41, 0xcf,
  1007. 0xa0, 0x1f, 0x13, 0x96, 0xf8, 0x5c, 0x39, 0x0c, 0x9f, 0xec, 0x1f, 0x95, 0xb9, 0x8e, 0x32, 0x97,
  1008. 0xc4, 0xe7, 0x38, 0x35, 0xb7, 0x29, 0x8c, 0xf2, 0x1b, 0x68, 0x0f, 0xfa, 0x9a, 0xdb, 0x34, 0x66,
  1009. 0xc6, 0x7c, 0x1b, 0x6f, 0x29, 0x6a, 0xb4, 0x0b, 0x5b, 0x8c, 0x3b, 0x3c, 0x61, 0xe6, 0xe6, 0xcc,
  1010. 0x98, 0xf7, 0xb0, 0xfe, 0x42, 0x3b, 0xd0, 0x23, 0x71, 0x1c, 0xc6, 0x66, 0x47, 0x9a, 0xab, 0x0f,
  1011. 0x84, 0xa0, 0xcb, 0xe8, 0x6f, 0xc4, 0xec, 0xce, 0x8c, 0xf9, 0x18, 0xcb, 0xb5, 0xdd, 0x87, 0xde,
  1012. 0x0f, 0xab, 0x88, 0xbf, 0xb5, 0xbf, 0x02, 0xf3, 0x95, 0xe3, 0x26, 0xc9, 0xea, 0x95, 0x3c, 0xe3,
  1013. 0xf1, 0x25, 0x71, 0xaf, 0xd2, 0xdc, 0xef, 0xc3, 0xb6, 0x3c, 0xb9, 0x97, 0x9e, 0x60, 0x8c, 0x07,
  1014. 0x0a, 0x38, 0xf5, 0xec, 0x6f, 0xe1, 0x5e, 0x8d, 0xa3, 0xae, 0xc1, 0x47, 0x30, 0xbe, 0x70, 0xe2,
  1015. 0x73, 0xe7, 0x82, 0x2c, 0x62, 0x87, 0xd3, 0x50, 0x7a, 0x1b, 0x78, 0xa4, 0x41, 0x2c, 0x30, 0xfb,
  1016. 0x57, 0xb0, 0x0a, 0x11, 0xc2, 0x55, 0xe4, 0xb8, 0xbc, 0x0d, 0x39, 0x9a, 0xc1, 0x30, 0x8a, 0x89,
  1017. 0xe3, 0xfb, 0xa1, 0xeb, 0x70, 0x22, 0xab, 0xd0, 0xc1, 0x79, 0xc8, 0x7e, 0x1f, 0xee, 0xd7, 0x06,
  1018. 0x57, 0x07, 0xb4, 0x9f, 0x95, 0x4e, 0x1f, 0xae, 0x56, 0xb4, 0x15, 0xb5, 0xfd, 0x5e, 0xe5, 0xd4,
  1019. 0xd2, 0x53, 0xc7, 0xfd, 0xba, 0xb4, 0xeb, 0x13, 0x27, 0x48, 0xa2, 0x56, 0x81, 0xcb, 0x27, 0x4e,
  1020. 0x5d, 0xb3, 0xc8, 0x7b, 0xaa, 0x39, 0x8e, 0x43, 0xdf, 0x27, 0x2e, 0xa7, 0x61, 0x90, 0x86, 0xdd,
  1021. 0x07, 0x70, 0x33, 0x50, 0xb7, 0x4a, 0x0e, 0xb1, 0x2d, 0x30, 0xab, 0xae, 0x3a, 0xec, 0x5f, 0x06,
  1022. 0x4c, 0xbf, 0x63, 0x8c, 0x5e, 0x04, 0x8a, 0xb6, 0x55, 0xf9, 0x8b, 0x84, 0x9b, 0x65, 0xc2, 0xf2,
  1023. 0xf5, 0x74, 0x2a, 0xd7, 0x23, 0x2c, 0x62, 0x12, 0xf9, 0xd4, 0x75, 0x64, 0x88, 0xae, 0x0c, 0x91,
  1024. 0x87, 0xd0, 0x04, 0x3a, 0x9c, 0xfb, 0x66, 0x4f, 0xee, 0x88, 0xa5, 0xbd, 0x0b, 0x3b, 0xc5, 0x93,
  1025. 0xea, 0x14, 0xbe, 0x84, 0x3d, 0x85, 0x9c, 0xbd, 0x0d, 0xdc, 0x33, 0xf9, 0x12, 0x5a, 0x15, 0xfc,
  1026. 0x6f, 0x03, 0xcc, 0xaa, 0xa3, 0xee, 0xe0, 0xa6, 0xf6, 0xfb, 0xb7, 0xa7, 0x47, 0x1f, 0xc0, 0x90,
  1027. 0x3b, 0xd4, 0x5f, 0x84, 0xcb, 0x25, 0x23, 0xdc, 0xdc, 0x9a, 0x19, 0xf3, 0x2e, 0x06, 0x01, 0xbd,
  1028. 0x90, 0x08, 0x3a, 0x80, 0x89, 0xab, 0xba, 0x74, 0x11, 0x93, 0x6b, 0xca, 0x44, 0xe4, 0xbe, 0x24,
  1029. 0xbe, 0xe3, 0xa6, 0xdd, 0xab, 0x60, 0x64, 0xc3, 0x98, 0x7a, 0x37, 0x0b, 0x39, 0x1c, 0xe4, 0xd3,
  1030. 0x1e, 0xc8, 0x68, 0x43, 0xea, 0xdd, 0xfc, 0x48, 0x7d, 0x72, 0x26, 0x5e, 0xf8, 0x17, 0xb0, 0x7b,
  1031. 0x9b, 0xdc, 0x69, 0xe0, 0x91, 0x9b, 0x56, 0x45, 0xf9, 0x29, 0x5f, 0x4c, 0xed, 0xa6, 0x4b, 0x72,
  1032. 0x08, 0x88, 0x0a, 0x40, 0xf1, 0xba, 0x61, 0xc0, 0x49, 0xc0, 0x65, 0x80, 0x11, 0x9e, 0xc8, 0x1d,
  1033. 0x41, 0x7e, 0xac, 0x70, 0xfb, 0x0f, 0x03, 0xee, 0xde, 0x46, 0x3a, 0x71, 0xb8, 0xd3, 0xaa, 0xb5,
  1034. 0x2c, 0x18, 0x64, 0xd9, 0x6f, 0xaa, 0xbd, 0xf4, 0x5b, 0x8c, 0x3d, 0x5d, 0xbd, 0x8e, 0xdc, 0xd1,
  1035. 0x5f, 0x75, 0x03, 0x4e, 0x90, 0x04, 0x84, 0x78, 0x6a, 0x7a, 0xaa, 0x6b, 0x18, 0x28, 0xe0, 0xd4,
  1036. 0xb3, 0xbf, 0xc9, 0xd7, 0x46, 0x1d, 0x4d, 0xe7, 0xf8, 0x21, 0x8c, 0x6a, 0xb2, 0x1b, 0x2e, 0x73,
  1037. 0x89, 0x7d, 0x0e, 0x48, 0x39, 0x3f, 0x0f, 0x93, 0xa0, 0xdd, 0xcc, 0xb8, 0x0b, 0xd3, 0x82, 0x8b,
  1038. 0x6e, 0xdc, 0xa7, 0xb0, 0xa3, 0xe0, 0x97, 0xc1, 0xaa, 0x75, 0xac, 0xbd, 0xb4, 0xac, 0x99, 0x93,
  1039. 0x8e, 0x96, 0x91, 0xbc, 0xa4, 0x3f, 0x8b, 0x19, 0xab, 0x82, 0x89, 0x57, 0x53, 0x84, 0xb5, 0xf9,
  1040. 0x2f, 0x00, 0x27, 0x94, 0x5d, 0xa9, 0xb6, 0x17, 0xfd, 0xea, 0xd1, 0x58, 0xcf, 0x0e, 0xb1, 0x14,
  1041. 0x88, 0xe3, 0xfb, 0xf2, 0x0e, 0xba, 0x58, 0x2c, 0x45, 0x99, 0x13, 0x46, 0x3c, 0x59, 0xfc, 0x2e,
  1042. 0x96, 0x6b, 0x81, 0x2d, 0x63, 0xa2, 0x4a, 0xdf, 0xc5, 0x72, 0x6d, 0xff, 0x69, 0xc0, 0xf6, 0x73,
  1043. 0xb2, 0xd2, 0x91, 0xf7, 0x01, 0x2e, 0xc2, 0x38, 0x4c, 0x38, 0x0d, 0x08, 0x93, 0x04, 0x3d, 0x9c,
  1044. 0x43, 0xfe, 0x3b, 0x8f, 0xbc, 0x76, 0xe2, 0x2f, 0xe5, 0xed, 0x76, 0xb1, 0x5c, 0x0b, 0xec, 0x92,
  1045. 0x38, 0x91, 0x7e, 0x5e, 0x72, 0x2d, 0x54, 0x91, 0x71, 0xc7, 0xbd, 0x92, 0xaf, 0xa9, 0x8b, 0xd5,
  1046. 0xc7, 0x93, 0xdf, 0x01, 0x46, 0xba, 0x09, 0xa4, 0x2c, 0xa3, 0xd7, 0x30, 0xcc, 0xc9, 0x39, 0xfa,
  1047. 0xb8, 0xaa, 0xda, 0xd5, 0x9f, 0x07, 0xd6, 0x27, 0x0d, 0x56, 0xba, 0xd8, 0x1b, 0x28, 0x80, 0xff,
  1048. 0x57, 0xe4, 0x12, 0x3d, 0xaa, 0x7a, 0xaf, 0x13, 0x63, 0xeb, 0x71, 0x2b, 0xdb, 0x8c, 0x8f, 0xc3,
  1049. 0xb4, 0x46, 0xff, 0xd0, 0x61, 0x43, 0x94, 0x82, 0x06, 0x5b, 0x9f, 0xb6, 0xb4, 0xce, 0x58, 0xdf,
  1050. 0x00, 0xaa, 0x8a, 0x23, 0x7a, 0xdc, 0x18, 0xe6, 0x56, 0x7c, 0xad, 0xc3, 0x76, 0xc6, 0x6b, 0x13,
  1051. 0x55, 0xb2, 0xd9, 0x98, 0x68, 0x41, 0x98, 0x1b, 0x13, 0x2d, 0x69, 0xf1, 0x06, 0xba, 0x82, 0x49,
  1052. 0x59, 0x52, 0xd1, 0xc1, 0xba, 0xdf, 0x79, 0x15, 0xc5, 0xb6, 0x1e, 0xb5, 0x31, 0xcd, 0xc8, 0x16,
  1053. 0x30, 0xca, 0x0b, 0x1f, 0xaa, 0x69, 0xba, 0x1a, 0x09, 0xb7, 0x1e, 0x34, 0x99, 0xe5, 0xb3, 0x29,
  1054. 0x0b, 0x61, 0x5d, 0x36, 0x6b, 0x54, 0xb6, 0x2e, 0x9b, 0x75, 0xba, 0x6a, 0x6f, 0xa0, 0x4b, 0xb8,
  1055. 0x53, 0x52, 0x18, 0x34, 0x7f, 0x57, 0x80, 0xbc, 0x76, 0x59, 0x07, 0x2d, 0x2c, 0x33, 0x26, 0x02,
  1056. 0xff, 0x2b, 0x8e, 0x79, 0xf4, 0xf0, 0x5d, 0xee, 0x39, 0x8d, 0xb2, 0xe6, 0xcd, 0x86, 0x19, 0xcd,
  1057. 0x6b, 0x18, 0xe6, 0xa6, 0x7b, 0xdd, 0xe0, 0xa8, 0xea, 0x45, 0xdd, 0xe0, 0xa8, 0x93, 0x88, 0x0d,
  1058. 0x74, 0x0e, 0xe3, 0xc2, 0xbc, 0x47, 0x0f, 0xd6, 0x79, 0x16, 0x55, 0xc4, 0x7a, 0xd8, 0x68, 0x97,
  1059. 0x72, 0x9c, 0x6f, 0xc9, 0xff, 0x44, 0x4f, 0xff, 0x09, 0x00, 0x00, 0xff, 0xff, 0x60, 0xe6, 0x57,
  1060. 0xdf, 0x2a, 0x0d, 0x00, 0x00,
  1061. }