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.

1648 lines
63 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  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. AllocateVolumeRequest
  24. AllocateVolumeResponse
  25. VolumeSyncStatusRequest
  26. VolumeSyncStatusResponse
  27. VolumeIncrementalCopyRequest
  28. VolumeIncrementalCopyResponse
  29. VolumeMountRequest
  30. VolumeMountResponse
  31. VolumeUnmountRequest
  32. VolumeUnmountResponse
  33. VolumeDeleteRequest
  34. VolumeDeleteResponse
  35. VolumeCopyRequest
  36. VolumeCopyResponse
  37. CopyFileRequest
  38. CopyFileResponse
  39. VolumeStreamFollowRequest
  40. VolumeStreamFollowResponse
  41. ReadVolumeFileStatusRequest
  42. ReadVolumeFileStatusResponse
  43. DiskStatus
  44. MemStatus
  45. */
  46. package volume_server_pb
  47. import proto "github.com/golang/protobuf/proto"
  48. import fmt "fmt"
  49. import math "math"
  50. import (
  51. context "golang.org/x/net/context"
  52. grpc "google.golang.org/grpc"
  53. )
  54. // Reference imports to suppress errors if they are not otherwise used.
  55. var _ = proto.Marshal
  56. var _ = fmt.Errorf
  57. var _ = math.Inf
  58. // This is a compile-time assertion to ensure that this generated file
  59. // is compatible with the proto package it is being compiled against.
  60. // A compilation error at this line likely means your copy of the
  61. // proto package needs to be updated.
  62. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  63. type BatchDeleteRequest struct {
  64. FileIds []string `protobuf:"bytes,1,rep,name=file_ids,json=fileIds" json:"file_ids,omitempty"`
  65. }
  66. func (m *BatchDeleteRequest) Reset() { *m = BatchDeleteRequest{} }
  67. func (m *BatchDeleteRequest) String() string { return proto.CompactTextString(m) }
  68. func (*BatchDeleteRequest) ProtoMessage() {}
  69. func (*BatchDeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  70. func (m *BatchDeleteRequest) GetFileIds() []string {
  71. if m != nil {
  72. return m.FileIds
  73. }
  74. return nil
  75. }
  76. type BatchDeleteResponse struct {
  77. Results []*DeleteResult `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"`
  78. }
  79. func (m *BatchDeleteResponse) Reset() { *m = BatchDeleteResponse{} }
  80. func (m *BatchDeleteResponse) String() string { return proto.CompactTextString(m) }
  81. func (*BatchDeleteResponse) ProtoMessage() {}
  82. func (*BatchDeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  83. func (m *BatchDeleteResponse) GetResults() []*DeleteResult {
  84. if m != nil {
  85. return m.Results
  86. }
  87. return nil
  88. }
  89. type DeleteResult struct {
  90. FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId" json:"file_id,omitempty"`
  91. Status int32 `protobuf:"varint,2,opt,name=status" json:"status,omitempty"`
  92. Error string `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"`
  93. Size uint32 `protobuf:"varint,4,opt,name=size" json:"size,omitempty"`
  94. }
  95. func (m *DeleteResult) Reset() { *m = DeleteResult{} }
  96. func (m *DeleteResult) String() string { return proto.CompactTextString(m) }
  97. func (*DeleteResult) ProtoMessage() {}
  98. func (*DeleteResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  99. func (m *DeleteResult) GetFileId() string {
  100. if m != nil {
  101. return m.FileId
  102. }
  103. return ""
  104. }
  105. func (m *DeleteResult) GetStatus() int32 {
  106. if m != nil {
  107. return m.Status
  108. }
  109. return 0
  110. }
  111. func (m *DeleteResult) GetError() string {
  112. if m != nil {
  113. return m.Error
  114. }
  115. return ""
  116. }
  117. func (m *DeleteResult) GetSize() uint32 {
  118. if m != nil {
  119. return m.Size
  120. }
  121. return 0
  122. }
  123. type Empty struct {
  124. }
  125. func (m *Empty) Reset() { *m = Empty{} }
  126. func (m *Empty) String() string { return proto.CompactTextString(m) }
  127. func (*Empty) ProtoMessage() {}
  128. func (*Empty) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
  129. type VacuumVolumeCheckRequest struct {
  130. VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
  131. }
  132. func (m *VacuumVolumeCheckRequest) Reset() { *m = VacuumVolumeCheckRequest{} }
  133. func (m *VacuumVolumeCheckRequest) String() string { return proto.CompactTextString(m) }
  134. func (*VacuumVolumeCheckRequest) ProtoMessage() {}
  135. func (*VacuumVolumeCheckRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
  136. func (m *VacuumVolumeCheckRequest) GetVolumeId() uint32 {
  137. if m != nil {
  138. return m.VolumeId
  139. }
  140. return 0
  141. }
  142. type VacuumVolumeCheckResponse struct {
  143. GarbageRatio float64 `protobuf:"fixed64,1,opt,name=garbage_ratio,json=garbageRatio" json:"garbage_ratio,omitempty"`
  144. }
  145. func (m *VacuumVolumeCheckResponse) Reset() { *m = VacuumVolumeCheckResponse{} }
  146. func (m *VacuumVolumeCheckResponse) String() string { return proto.CompactTextString(m) }
  147. func (*VacuumVolumeCheckResponse) ProtoMessage() {}
  148. func (*VacuumVolumeCheckResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
  149. func (m *VacuumVolumeCheckResponse) GetGarbageRatio() float64 {
  150. if m != nil {
  151. return m.GarbageRatio
  152. }
  153. return 0
  154. }
  155. type VacuumVolumeCompactRequest struct {
  156. VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
  157. Preallocate int64 `protobuf:"varint,2,opt,name=preallocate" json:"preallocate,omitempty"`
  158. }
  159. func (m *VacuumVolumeCompactRequest) Reset() { *m = VacuumVolumeCompactRequest{} }
  160. func (m *VacuumVolumeCompactRequest) String() string { return proto.CompactTextString(m) }
  161. func (*VacuumVolumeCompactRequest) ProtoMessage() {}
  162. func (*VacuumVolumeCompactRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
  163. func (m *VacuumVolumeCompactRequest) GetVolumeId() uint32 {
  164. if m != nil {
  165. return m.VolumeId
  166. }
  167. return 0
  168. }
  169. func (m *VacuumVolumeCompactRequest) GetPreallocate() int64 {
  170. if m != nil {
  171. return m.Preallocate
  172. }
  173. return 0
  174. }
  175. type VacuumVolumeCompactResponse struct {
  176. }
  177. func (m *VacuumVolumeCompactResponse) Reset() { *m = VacuumVolumeCompactResponse{} }
  178. func (m *VacuumVolumeCompactResponse) String() string { return proto.CompactTextString(m) }
  179. func (*VacuumVolumeCompactResponse) ProtoMessage() {}
  180. func (*VacuumVolumeCompactResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
  181. type VacuumVolumeCommitRequest struct {
  182. VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
  183. }
  184. func (m *VacuumVolumeCommitRequest) Reset() { *m = VacuumVolumeCommitRequest{} }
  185. func (m *VacuumVolumeCommitRequest) String() string { return proto.CompactTextString(m) }
  186. func (*VacuumVolumeCommitRequest) ProtoMessage() {}
  187. func (*VacuumVolumeCommitRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
  188. func (m *VacuumVolumeCommitRequest) GetVolumeId() uint32 {
  189. if m != nil {
  190. return m.VolumeId
  191. }
  192. return 0
  193. }
  194. type VacuumVolumeCommitResponse struct {
  195. }
  196. func (m *VacuumVolumeCommitResponse) Reset() { *m = VacuumVolumeCommitResponse{} }
  197. func (m *VacuumVolumeCommitResponse) String() string { return proto.CompactTextString(m) }
  198. func (*VacuumVolumeCommitResponse) ProtoMessage() {}
  199. func (*VacuumVolumeCommitResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
  200. type VacuumVolumeCleanupRequest struct {
  201. VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
  202. }
  203. func (m *VacuumVolumeCleanupRequest) Reset() { *m = VacuumVolumeCleanupRequest{} }
  204. func (m *VacuumVolumeCleanupRequest) String() string { return proto.CompactTextString(m) }
  205. func (*VacuumVolumeCleanupRequest) ProtoMessage() {}
  206. func (*VacuumVolumeCleanupRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
  207. func (m *VacuumVolumeCleanupRequest) GetVolumeId() uint32 {
  208. if m != nil {
  209. return m.VolumeId
  210. }
  211. return 0
  212. }
  213. type VacuumVolumeCleanupResponse struct {
  214. }
  215. func (m *VacuumVolumeCleanupResponse) Reset() { *m = VacuumVolumeCleanupResponse{} }
  216. func (m *VacuumVolumeCleanupResponse) String() string { return proto.CompactTextString(m) }
  217. func (*VacuumVolumeCleanupResponse) ProtoMessage() {}
  218. func (*VacuumVolumeCleanupResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
  219. type DeleteCollectionRequest struct {
  220. Collection string `protobuf:"bytes,1,opt,name=collection" json:"collection,omitempty"`
  221. }
  222. func (m *DeleteCollectionRequest) Reset() { *m = DeleteCollectionRequest{} }
  223. func (m *DeleteCollectionRequest) String() string { return proto.CompactTextString(m) }
  224. func (*DeleteCollectionRequest) ProtoMessage() {}
  225. func (*DeleteCollectionRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
  226. func (m *DeleteCollectionRequest) GetCollection() string {
  227. if m != nil {
  228. return m.Collection
  229. }
  230. return ""
  231. }
  232. type DeleteCollectionResponse struct {
  233. }
  234. func (m *DeleteCollectionResponse) Reset() { *m = DeleteCollectionResponse{} }
  235. func (m *DeleteCollectionResponse) String() string { return proto.CompactTextString(m) }
  236. func (*DeleteCollectionResponse) ProtoMessage() {}
  237. func (*DeleteCollectionResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
  238. type AllocateVolumeRequest struct {
  239. VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
  240. Collection string `protobuf:"bytes,2,opt,name=collection" json:"collection,omitempty"`
  241. Preallocate int64 `protobuf:"varint,3,opt,name=preallocate" json:"preallocate,omitempty"`
  242. Replication string `protobuf:"bytes,4,opt,name=replication" json:"replication,omitempty"`
  243. Ttl string `protobuf:"bytes,5,opt,name=ttl" json:"ttl,omitempty"`
  244. }
  245. func (m *AllocateVolumeRequest) Reset() { *m = AllocateVolumeRequest{} }
  246. func (m *AllocateVolumeRequest) String() string { return proto.CompactTextString(m) }
  247. func (*AllocateVolumeRequest) ProtoMessage() {}
  248. func (*AllocateVolumeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
  249. func (m *AllocateVolumeRequest) GetVolumeId() uint32 {
  250. if m != nil {
  251. return m.VolumeId
  252. }
  253. return 0
  254. }
  255. func (m *AllocateVolumeRequest) GetCollection() string {
  256. if m != nil {
  257. return m.Collection
  258. }
  259. return ""
  260. }
  261. func (m *AllocateVolumeRequest) GetPreallocate() int64 {
  262. if m != nil {
  263. return m.Preallocate
  264. }
  265. return 0
  266. }
  267. func (m *AllocateVolumeRequest) GetReplication() string {
  268. if m != nil {
  269. return m.Replication
  270. }
  271. return ""
  272. }
  273. func (m *AllocateVolumeRequest) GetTtl() string {
  274. if m != nil {
  275. return m.Ttl
  276. }
  277. return ""
  278. }
  279. type AllocateVolumeResponse struct {
  280. }
  281. func (m *AllocateVolumeResponse) Reset() { *m = AllocateVolumeResponse{} }
  282. func (m *AllocateVolumeResponse) String() string { return proto.CompactTextString(m) }
  283. func (*AllocateVolumeResponse) ProtoMessage() {}
  284. func (*AllocateVolumeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
  285. type VolumeSyncStatusRequest struct {
  286. VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
  287. }
  288. func (m *VolumeSyncStatusRequest) Reset() { *m = VolumeSyncStatusRequest{} }
  289. func (m *VolumeSyncStatusRequest) String() string { return proto.CompactTextString(m) }
  290. func (*VolumeSyncStatusRequest) ProtoMessage() {}
  291. func (*VolumeSyncStatusRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
  292. func (m *VolumeSyncStatusRequest) GetVolumeId() uint32 {
  293. if m != nil {
  294. return m.VolumeId
  295. }
  296. return 0
  297. }
  298. type VolumeSyncStatusResponse struct {
  299. VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
  300. Collection string `protobuf:"bytes,2,opt,name=collection" json:"collection,omitempty"`
  301. Replication string `protobuf:"bytes,4,opt,name=replication" json:"replication,omitempty"`
  302. Ttl string `protobuf:"bytes,5,opt,name=ttl" json:"ttl,omitempty"`
  303. TailOffset uint64 `protobuf:"varint,6,opt,name=tail_offset,json=tailOffset" json:"tail_offset,omitempty"`
  304. CompactRevision uint32 `protobuf:"varint,7,opt,name=compact_revision,json=compactRevision" json:"compact_revision,omitempty"`
  305. IdxFileSize uint64 `protobuf:"varint,8,opt,name=idx_file_size,json=idxFileSize" json:"idx_file_size,omitempty"`
  306. }
  307. func (m *VolumeSyncStatusResponse) Reset() { *m = VolumeSyncStatusResponse{} }
  308. func (m *VolumeSyncStatusResponse) String() string { return proto.CompactTextString(m) }
  309. func (*VolumeSyncStatusResponse) ProtoMessage() {}
  310. func (*VolumeSyncStatusResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} }
  311. func (m *VolumeSyncStatusResponse) GetVolumeId() uint32 {
  312. if m != nil {
  313. return m.VolumeId
  314. }
  315. return 0
  316. }
  317. func (m *VolumeSyncStatusResponse) GetCollection() string {
  318. if m != nil {
  319. return m.Collection
  320. }
  321. return ""
  322. }
  323. func (m *VolumeSyncStatusResponse) GetReplication() string {
  324. if m != nil {
  325. return m.Replication
  326. }
  327. return ""
  328. }
  329. func (m *VolumeSyncStatusResponse) GetTtl() string {
  330. if m != nil {
  331. return m.Ttl
  332. }
  333. return ""
  334. }
  335. func (m *VolumeSyncStatusResponse) GetTailOffset() uint64 {
  336. if m != nil {
  337. return m.TailOffset
  338. }
  339. return 0
  340. }
  341. func (m *VolumeSyncStatusResponse) GetCompactRevision() uint32 {
  342. if m != nil {
  343. return m.CompactRevision
  344. }
  345. return 0
  346. }
  347. func (m *VolumeSyncStatusResponse) GetIdxFileSize() uint64 {
  348. if m != nil {
  349. return m.IdxFileSize
  350. }
  351. return 0
  352. }
  353. type VolumeIncrementalCopyRequest struct {
  354. VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
  355. SinceNs uint64 `protobuf:"varint,2,opt,name=since_ns,json=sinceNs" json:"since_ns,omitempty"`
  356. }
  357. func (m *VolumeIncrementalCopyRequest) Reset() { *m = VolumeIncrementalCopyRequest{} }
  358. func (m *VolumeIncrementalCopyRequest) String() string { return proto.CompactTextString(m) }
  359. func (*VolumeIncrementalCopyRequest) ProtoMessage() {}
  360. func (*VolumeIncrementalCopyRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
  361. func (m *VolumeIncrementalCopyRequest) GetVolumeId() uint32 {
  362. if m != nil {
  363. return m.VolumeId
  364. }
  365. return 0
  366. }
  367. func (m *VolumeIncrementalCopyRequest) GetSinceNs() uint64 {
  368. if m != nil {
  369. return m.SinceNs
  370. }
  371. return 0
  372. }
  373. type VolumeIncrementalCopyResponse struct {
  374. FileContent []byte `protobuf:"bytes,1,opt,name=file_content,json=fileContent,proto3" json:"file_content,omitempty"`
  375. }
  376. func (m *VolumeIncrementalCopyResponse) Reset() { *m = VolumeIncrementalCopyResponse{} }
  377. func (m *VolumeIncrementalCopyResponse) String() string { return proto.CompactTextString(m) }
  378. func (*VolumeIncrementalCopyResponse) ProtoMessage() {}
  379. func (*VolumeIncrementalCopyResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} }
  380. func (m *VolumeIncrementalCopyResponse) GetFileContent() []byte {
  381. if m != nil {
  382. return m.FileContent
  383. }
  384. return nil
  385. }
  386. type VolumeMountRequest struct {
  387. VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
  388. }
  389. func (m *VolumeMountRequest) Reset() { *m = VolumeMountRequest{} }
  390. func (m *VolumeMountRequest) String() string { return proto.CompactTextString(m) }
  391. func (*VolumeMountRequest) ProtoMessage() {}
  392. func (*VolumeMountRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} }
  393. func (m *VolumeMountRequest) GetVolumeId() uint32 {
  394. if m != nil {
  395. return m.VolumeId
  396. }
  397. return 0
  398. }
  399. type VolumeMountResponse struct {
  400. }
  401. func (m *VolumeMountResponse) Reset() { *m = VolumeMountResponse{} }
  402. func (m *VolumeMountResponse) String() string { return proto.CompactTextString(m) }
  403. func (*VolumeMountResponse) ProtoMessage() {}
  404. func (*VolumeMountResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} }
  405. type VolumeUnmountRequest struct {
  406. VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
  407. }
  408. func (m *VolumeUnmountRequest) Reset() { *m = VolumeUnmountRequest{} }
  409. func (m *VolumeUnmountRequest) String() string { return proto.CompactTextString(m) }
  410. func (*VolumeUnmountRequest) ProtoMessage() {}
  411. func (*VolumeUnmountRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{22} }
  412. func (m *VolumeUnmountRequest) GetVolumeId() uint32 {
  413. if m != nil {
  414. return m.VolumeId
  415. }
  416. return 0
  417. }
  418. type VolumeUnmountResponse struct {
  419. }
  420. func (m *VolumeUnmountResponse) Reset() { *m = VolumeUnmountResponse{} }
  421. func (m *VolumeUnmountResponse) String() string { return proto.CompactTextString(m) }
  422. func (*VolumeUnmountResponse) ProtoMessage() {}
  423. func (*VolumeUnmountResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{23} }
  424. type VolumeDeleteRequest struct {
  425. VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
  426. }
  427. func (m *VolumeDeleteRequest) Reset() { *m = VolumeDeleteRequest{} }
  428. func (m *VolumeDeleteRequest) String() string { return proto.CompactTextString(m) }
  429. func (*VolumeDeleteRequest) ProtoMessage() {}
  430. func (*VolumeDeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{24} }
  431. func (m *VolumeDeleteRequest) GetVolumeId() uint32 {
  432. if m != nil {
  433. return m.VolumeId
  434. }
  435. return 0
  436. }
  437. type VolumeDeleteResponse struct {
  438. }
  439. func (m *VolumeDeleteResponse) Reset() { *m = VolumeDeleteResponse{} }
  440. func (m *VolumeDeleteResponse) String() string { return proto.CompactTextString(m) }
  441. func (*VolumeDeleteResponse) ProtoMessage() {}
  442. func (*VolumeDeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{25} }
  443. type VolumeCopyRequest struct {
  444. VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
  445. Collection string `protobuf:"bytes,2,opt,name=collection" json:"collection,omitempty"`
  446. Replication string `protobuf:"bytes,3,opt,name=replication" json:"replication,omitempty"`
  447. Ttl string `protobuf:"bytes,4,opt,name=ttl" json:"ttl,omitempty"`
  448. SourceDataNode string `protobuf:"bytes,5,opt,name=source_data_node,json=sourceDataNode" json:"source_data_node,omitempty"`
  449. }
  450. func (m *VolumeCopyRequest) Reset() { *m = VolumeCopyRequest{} }
  451. func (m *VolumeCopyRequest) String() string { return proto.CompactTextString(m) }
  452. func (*VolumeCopyRequest) ProtoMessage() {}
  453. func (*VolumeCopyRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{26} }
  454. func (m *VolumeCopyRequest) GetVolumeId() uint32 {
  455. if m != nil {
  456. return m.VolumeId
  457. }
  458. return 0
  459. }
  460. func (m *VolumeCopyRequest) GetCollection() string {
  461. if m != nil {
  462. return m.Collection
  463. }
  464. return ""
  465. }
  466. func (m *VolumeCopyRequest) GetReplication() string {
  467. if m != nil {
  468. return m.Replication
  469. }
  470. return ""
  471. }
  472. func (m *VolumeCopyRequest) GetTtl() string {
  473. if m != nil {
  474. return m.Ttl
  475. }
  476. return ""
  477. }
  478. func (m *VolumeCopyRequest) GetSourceDataNode() string {
  479. if m != nil {
  480. return m.SourceDataNode
  481. }
  482. return ""
  483. }
  484. type VolumeCopyResponse struct {
  485. }
  486. func (m *VolumeCopyResponse) Reset() { *m = VolumeCopyResponse{} }
  487. func (m *VolumeCopyResponse) String() string { return proto.CompactTextString(m) }
  488. func (*VolumeCopyResponse) ProtoMessage() {}
  489. func (*VolumeCopyResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{27} }
  490. type CopyFileRequest struct {
  491. VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
  492. IsIdxFile bool `protobuf:"varint,2,opt,name=is_idx_file,json=isIdxFile" json:"is_idx_file,omitempty"`
  493. IsDatFile bool `protobuf:"varint,3,opt,name=is_dat_file,json=isDatFile" json:"is_dat_file,omitempty"`
  494. }
  495. func (m *CopyFileRequest) Reset() { *m = CopyFileRequest{} }
  496. func (m *CopyFileRequest) String() string { return proto.CompactTextString(m) }
  497. func (*CopyFileRequest) ProtoMessage() {}
  498. func (*CopyFileRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{28} }
  499. func (m *CopyFileRequest) GetVolumeId() uint32 {
  500. if m != nil {
  501. return m.VolumeId
  502. }
  503. return 0
  504. }
  505. func (m *CopyFileRequest) GetIsIdxFile() bool {
  506. if m != nil {
  507. return m.IsIdxFile
  508. }
  509. return false
  510. }
  511. func (m *CopyFileRequest) GetIsDatFile() bool {
  512. if m != nil {
  513. return m.IsDatFile
  514. }
  515. return false
  516. }
  517. type CopyFileResponse struct {
  518. FileContent []byte `protobuf:"bytes,1,opt,name=file_content,json=fileContent,proto3" json:"file_content,omitempty"`
  519. }
  520. func (m *CopyFileResponse) Reset() { *m = CopyFileResponse{} }
  521. func (m *CopyFileResponse) String() string { return proto.CompactTextString(m) }
  522. func (*CopyFileResponse) ProtoMessage() {}
  523. func (*CopyFileResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{29} }
  524. func (m *CopyFileResponse) GetFileContent() []byte {
  525. if m != nil {
  526. return m.FileContent
  527. }
  528. return nil
  529. }
  530. type VolumeStreamFollowRequest struct {
  531. VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
  532. SinceNs uint64 `protobuf:"varint,2,opt,name=since_ns,json=sinceNs" json:"since_ns,omitempty"`
  533. DrainingSeconds uint32 `protobuf:"varint,3,opt,name=drainingSeconds" json:"drainingSeconds,omitempty"`
  534. }
  535. func (m *VolumeStreamFollowRequest) Reset() { *m = VolumeStreamFollowRequest{} }
  536. func (m *VolumeStreamFollowRequest) String() string { return proto.CompactTextString(m) }
  537. func (*VolumeStreamFollowRequest) ProtoMessage() {}
  538. func (*VolumeStreamFollowRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{30} }
  539. func (m *VolumeStreamFollowRequest) GetVolumeId() uint32 {
  540. if m != nil {
  541. return m.VolumeId
  542. }
  543. return 0
  544. }
  545. func (m *VolumeStreamFollowRequest) GetSinceNs() uint64 {
  546. if m != nil {
  547. return m.SinceNs
  548. }
  549. return 0
  550. }
  551. func (m *VolumeStreamFollowRequest) GetDrainingSeconds() uint32 {
  552. if m != nil {
  553. return m.DrainingSeconds
  554. }
  555. return 0
  556. }
  557. type VolumeStreamFollowResponse struct {
  558. NeedleHeader []byte `protobuf:"bytes,1,opt,name=needle_header,json=needleHeader,proto3" json:"needle_header,omitempty"`
  559. NeedleBody []byte `protobuf:"bytes,2,opt,name=needle_body,json=needleBody,proto3" json:"needle_body,omitempty"`
  560. }
  561. func (m *VolumeStreamFollowResponse) Reset() { *m = VolumeStreamFollowResponse{} }
  562. func (m *VolumeStreamFollowResponse) String() string { return proto.CompactTextString(m) }
  563. func (*VolumeStreamFollowResponse) ProtoMessage() {}
  564. func (*VolumeStreamFollowResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{31} }
  565. func (m *VolumeStreamFollowResponse) GetNeedleHeader() []byte {
  566. if m != nil {
  567. return m.NeedleHeader
  568. }
  569. return nil
  570. }
  571. func (m *VolumeStreamFollowResponse) GetNeedleBody() []byte {
  572. if m != nil {
  573. return m.NeedleBody
  574. }
  575. return nil
  576. }
  577. type ReadVolumeFileStatusRequest struct {
  578. VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
  579. }
  580. func (m *ReadVolumeFileStatusRequest) Reset() { *m = ReadVolumeFileStatusRequest{} }
  581. func (m *ReadVolumeFileStatusRequest) String() string { return proto.CompactTextString(m) }
  582. func (*ReadVolumeFileStatusRequest) ProtoMessage() {}
  583. func (*ReadVolumeFileStatusRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{32} }
  584. func (m *ReadVolumeFileStatusRequest) GetVolumeId() uint32 {
  585. if m != nil {
  586. return m.VolumeId
  587. }
  588. return 0
  589. }
  590. type ReadVolumeFileStatusResponse struct {
  591. VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
  592. IdxFileTimestamp uint64 `protobuf:"varint,2,opt,name=idx_file_timestamp,json=idxFileTimestamp" json:"idx_file_timestamp,omitempty"`
  593. IdxFileSize uint64 `protobuf:"varint,3,opt,name=idx_file_size,json=idxFileSize" json:"idx_file_size,omitempty"`
  594. DatFileTimestamp uint64 `protobuf:"varint,4,opt,name=dat_file_timestamp,json=datFileTimestamp" json:"dat_file_timestamp,omitempty"`
  595. DatFileSize uint64 `protobuf:"varint,5,opt,name=dat_file_size,json=datFileSize" json:"dat_file_size,omitempty"`
  596. FileCount uint64 `protobuf:"varint,6,opt,name=file_count,json=fileCount" json:"file_count,omitempty"`
  597. }
  598. func (m *ReadVolumeFileStatusResponse) Reset() { *m = ReadVolumeFileStatusResponse{} }
  599. func (m *ReadVolumeFileStatusResponse) String() string { return proto.CompactTextString(m) }
  600. func (*ReadVolumeFileStatusResponse) ProtoMessage() {}
  601. func (*ReadVolumeFileStatusResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{33} }
  602. func (m *ReadVolumeFileStatusResponse) GetVolumeId() uint32 {
  603. if m != nil {
  604. return m.VolumeId
  605. }
  606. return 0
  607. }
  608. func (m *ReadVolumeFileStatusResponse) GetIdxFileTimestamp() uint64 {
  609. if m != nil {
  610. return m.IdxFileTimestamp
  611. }
  612. return 0
  613. }
  614. func (m *ReadVolumeFileStatusResponse) GetIdxFileSize() uint64 {
  615. if m != nil {
  616. return m.IdxFileSize
  617. }
  618. return 0
  619. }
  620. func (m *ReadVolumeFileStatusResponse) GetDatFileTimestamp() uint64 {
  621. if m != nil {
  622. return m.DatFileTimestamp
  623. }
  624. return 0
  625. }
  626. func (m *ReadVolumeFileStatusResponse) GetDatFileSize() uint64 {
  627. if m != nil {
  628. return m.DatFileSize
  629. }
  630. return 0
  631. }
  632. func (m *ReadVolumeFileStatusResponse) GetFileCount() uint64 {
  633. if m != nil {
  634. return m.FileCount
  635. }
  636. return 0
  637. }
  638. type DiskStatus struct {
  639. Dir string `protobuf:"bytes,1,opt,name=dir" json:"dir,omitempty"`
  640. All uint64 `protobuf:"varint,2,opt,name=all" json:"all,omitempty"`
  641. Used uint64 `protobuf:"varint,3,opt,name=used" json:"used,omitempty"`
  642. Free uint64 `protobuf:"varint,4,opt,name=free" json:"free,omitempty"`
  643. }
  644. func (m *DiskStatus) Reset() { *m = DiskStatus{} }
  645. func (m *DiskStatus) String() string { return proto.CompactTextString(m) }
  646. func (*DiskStatus) ProtoMessage() {}
  647. func (*DiskStatus) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{34} }
  648. func (m *DiskStatus) GetDir() string {
  649. if m != nil {
  650. return m.Dir
  651. }
  652. return ""
  653. }
  654. func (m *DiskStatus) GetAll() uint64 {
  655. if m != nil {
  656. return m.All
  657. }
  658. return 0
  659. }
  660. func (m *DiskStatus) GetUsed() uint64 {
  661. if m != nil {
  662. return m.Used
  663. }
  664. return 0
  665. }
  666. func (m *DiskStatus) GetFree() uint64 {
  667. if m != nil {
  668. return m.Free
  669. }
  670. return 0
  671. }
  672. type MemStatus struct {
  673. Goroutines int32 `protobuf:"varint,1,opt,name=goroutines" json:"goroutines,omitempty"`
  674. All uint64 `protobuf:"varint,2,opt,name=all" json:"all,omitempty"`
  675. Used uint64 `protobuf:"varint,3,opt,name=used" json:"used,omitempty"`
  676. Free uint64 `protobuf:"varint,4,opt,name=free" json:"free,omitempty"`
  677. Self uint64 `protobuf:"varint,5,opt,name=self" json:"self,omitempty"`
  678. Heap uint64 `protobuf:"varint,6,opt,name=heap" json:"heap,omitempty"`
  679. Stack uint64 `protobuf:"varint,7,opt,name=stack" json:"stack,omitempty"`
  680. }
  681. func (m *MemStatus) Reset() { *m = MemStatus{} }
  682. func (m *MemStatus) String() string { return proto.CompactTextString(m) }
  683. func (*MemStatus) ProtoMessage() {}
  684. func (*MemStatus) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{35} }
  685. func (m *MemStatus) GetGoroutines() int32 {
  686. if m != nil {
  687. return m.Goroutines
  688. }
  689. return 0
  690. }
  691. func (m *MemStatus) GetAll() uint64 {
  692. if m != nil {
  693. return m.All
  694. }
  695. return 0
  696. }
  697. func (m *MemStatus) GetUsed() uint64 {
  698. if m != nil {
  699. return m.Used
  700. }
  701. return 0
  702. }
  703. func (m *MemStatus) GetFree() uint64 {
  704. if m != nil {
  705. return m.Free
  706. }
  707. return 0
  708. }
  709. func (m *MemStatus) GetSelf() uint64 {
  710. if m != nil {
  711. return m.Self
  712. }
  713. return 0
  714. }
  715. func (m *MemStatus) GetHeap() uint64 {
  716. if m != nil {
  717. return m.Heap
  718. }
  719. return 0
  720. }
  721. func (m *MemStatus) GetStack() uint64 {
  722. if m != nil {
  723. return m.Stack
  724. }
  725. return 0
  726. }
  727. func init() {
  728. proto.RegisterType((*BatchDeleteRequest)(nil), "volume_server_pb.BatchDeleteRequest")
  729. proto.RegisterType((*BatchDeleteResponse)(nil), "volume_server_pb.BatchDeleteResponse")
  730. proto.RegisterType((*DeleteResult)(nil), "volume_server_pb.DeleteResult")
  731. proto.RegisterType((*Empty)(nil), "volume_server_pb.Empty")
  732. proto.RegisterType((*VacuumVolumeCheckRequest)(nil), "volume_server_pb.VacuumVolumeCheckRequest")
  733. proto.RegisterType((*VacuumVolumeCheckResponse)(nil), "volume_server_pb.VacuumVolumeCheckResponse")
  734. proto.RegisterType((*VacuumVolumeCompactRequest)(nil), "volume_server_pb.VacuumVolumeCompactRequest")
  735. proto.RegisterType((*VacuumVolumeCompactResponse)(nil), "volume_server_pb.VacuumVolumeCompactResponse")
  736. proto.RegisterType((*VacuumVolumeCommitRequest)(nil), "volume_server_pb.VacuumVolumeCommitRequest")
  737. proto.RegisterType((*VacuumVolumeCommitResponse)(nil), "volume_server_pb.VacuumVolumeCommitResponse")
  738. proto.RegisterType((*VacuumVolumeCleanupRequest)(nil), "volume_server_pb.VacuumVolumeCleanupRequest")
  739. proto.RegisterType((*VacuumVolumeCleanupResponse)(nil), "volume_server_pb.VacuumVolumeCleanupResponse")
  740. proto.RegisterType((*DeleteCollectionRequest)(nil), "volume_server_pb.DeleteCollectionRequest")
  741. proto.RegisterType((*DeleteCollectionResponse)(nil), "volume_server_pb.DeleteCollectionResponse")
  742. proto.RegisterType((*AllocateVolumeRequest)(nil), "volume_server_pb.AllocateVolumeRequest")
  743. proto.RegisterType((*AllocateVolumeResponse)(nil), "volume_server_pb.AllocateVolumeResponse")
  744. proto.RegisterType((*VolumeSyncStatusRequest)(nil), "volume_server_pb.VolumeSyncStatusRequest")
  745. proto.RegisterType((*VolumeSyncStatusResponse)(nil), "volume_server_pb.VolumeSyncStatusResponse")
  746. proto.RegisterType((*VolumeIncrementalCopyRequest)(nil), "volume_server_pb.VolumeIncrementalCopyRequest")
  747. proto.RegisterType((*VolumeIncrementalCopyResponse)(nil), "volume_server_pb.VolumeIncrementalCopyResponse")
  748. proto.RegisterType((*VolumeMountRequest)(nil), "volume_server_pb.VolumeMountRequest")
  749. proto.RegisterType((*VolumeMountResponse)(nil), "volume_server_pb.VolumeMountResponse")
  750. proto.RegisterType((*VolumeUnmountRequest)(nil), "volume_server_pb.VolumeUnmountRequest")
  751. proto.RegisterType((*VolumeUnmountResponse)(nil), "volume_server_pb.VolumeUnmountResponse")
  752. proto.RegisterType((*VolumeDeleteRequest)(nil), "volume_server_pb.VolumeDeleteRequest")
  753. proto.RegisterType((*VolumeDeleteResponse)(nil), "volume_server_pb.VolumeDeleteResponse")
  754. proto.RegisterType((*VolumeCopyRequest)(nil), "volume_server_pb.VolumeCopyRequest")
  755. proto.RegisterType((*VolumeCopyResponse)(nil), "volume_server_pb.VolumeCopyResponse")
  756. proto.RegisterType((*CopyFileRequest)(nil), "volume_server_pb.CopyFileRequest")
  757. proto.RegisterType((*CopyFileResponse)(nil), "volume_server_pb.CopyFileResponse")
  758. proto.RegisterType((*VolumeStreamFollowRequest)(nil), "volume_server_pb.VolumeStreamFollowRequest")
  759. proto.RegisterType((*VolumeStreamFollowResponse)(nil), "volume_server_pb.VolumeStreamFollowResponse")
  760. proto.RegisterType((*ReadVolumeFileStatusRequest)(nil), "volume_server_pb.ReadVolumeFileStatusRequest")
  761. proto.RegisterType((*ReadVolumeFileStatusResponse)(nil), "volume_server_pb.ReadVolumeFileStatusResponse")
  762. proto.RegisterType((*DiskStatus)(nil), "volume_server_pb.DiskStatus")
  763. proto.RegisterType((*MemStatus)(nil), "volume_server_pb.MemStatus")
  764. }
  765. // Reference imports to suppress errors if they are not otherwise used.
  766. var _ context.Context
  767. var _ grpc.ClientConn
  768. // This is a compile-time assertion to ensure that this generated file
  769. // is compatible with the grpc package it is being compiled against.
  770. const _ = grpc.SupportPackageIsVersion4
  771. // Client API for VolumeServer service
  772. type VolumeServerClient interface {
  773. // Experts only: takes multiple fid parameters. This function does not propagate deletes to replicas.
  774. BatchDelete(ctx context.Context, in *BatchDeleteRequest, opts ...grpc.CallOption) (*BatchDeleteResponse, error)
  775. VacuumVolumeCheck(ctx context.Context, in *VacuumVolumeCheckRequest, opts ...grpc.CallOption) (*VacuumVolumeCheckResponse, error)
  776. VacuumVolumeCompact(ctx context.Context, in *VacuumVolumeCompactRequest, opts ...grpc.CallOption) (*VacuumVolumeCompactResponse, error)
  777. VacuumVolumeCommit(ctx context.Context, in *VacuumVolumeCommitRequest, opts ...grpc.CallOption) (*VacuumVolumeCommitResponse, error)
  778. VacuumVolumeCleanup(ctx context.Context, in *VacuumVolumeCleanupRequest, opts ...grpc.CallOption) (*VacuumVolumeCleanupResponse, error)
  779. DeleteCollection(ctx context.Context, in *DeleteCollectionRequest, opts ...grpc.CallOption) (*DeleteCollectionResponse, error)
  780. AllocateVolume(ctx context.Context, in *AllocateVolumeRequest, opts ...grpc.CallOption) (*AllocateVolumeResponse, error)
  781. VolumeSyncStatus(ctx context.Context, in *VolumeSyncStatusRequest, opts ...grpc.CallOption) (*VolumeSyncStatusResponse, error)
  782. VolumeIncrementalCopy(ctx context.Context, in *VolumeIncrementalCopyRequest, opts ...grpc.CallOption) (VolumeServer_VolumeIncrementalCopyClient, error)
  783. VolumeMount(ctx context.Context, in *VolumeMountRequest, opts ...grpc.CallOption) (*VolumeMountResponse, error)
  784. VolumeUnmount(ctx context.Context, in *VolumeUnmountRequest, opts ...grpc.CallOption) (*VolumeUnmountResponse, error)
  785. VolumeDelete(ctx context.Context, in *VolumeDeleteRequest, opts ...grpc.CallOption) (*VolumeDeleteResponse, error)
  786. // copy the .idx .dat files, and mount this volume
  787. VolumeCopy(ctx context.Context, in *VolumeCopyRequest, opts ...grpc.CallOption) (*VolumeCopyResponse, error)
  788. ReadVolumeFileStatus(ctx context.Context, in *ReadVolumeFileStatusRequest, opts ...grpc.CallOption) (*ReadVolumeFileStatusResponse, error)
  789. CopyFile(ctx context.Context, in *CopyFileRequest, opts ...grpc.CallOption) (VolumeServer_CopyFileClient, error)
  790. VolumeStreamFollow(ctx context.Context, in *VolumeStreamFollowRequest, opts ...grpc.CallOption) (VolumeServer_VolumeStreamFollowClient, error)
  791. }
  792. type volumeServerClient struct {
  793. cc *grpc.ClientConn
  794. }
  795. func NewVolumeServerClient(cc *grpc.ClientConn) VolumeServerClient {
  796. return &volumeServerClient{cc}
  797. }
  798. func (c *volumeServerClient) BatchDelete(ctx context.Context, in *BatchDeleteRequest, opts ...grpc.CallOption) (*BatchDeleteResponse, error) {
  799. out := new(BatchDeleteResponse)
  800. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/BatchDelete", in, out, c.cc, opts...)
  801. if err != nil {
  802. return nil, err
  803. }
  804. return out, nil
  805. }
  806. func (c *volumeServerClient) VacuumVolumeCheck(ctx context.Context, in *VacuumVolumeCheckRequest, opts ...grpc.CallOption) (*VacuumVolumeCheckResponse, error) {
  807. out := new(VacuumVolumeCheckResponse)
  808. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCheck", in, out, c.cc, opts...)
  809. if err != nil {
  810. return nil, err
  811. }
  812. return out, nil
  813. }
  814. func (c *volumeServerClient) VacuumVolumeCompact(ctx context.Context, in *VacuumVolumeCompactRequest, opts ...grpc.CallOption) (*VacuumVolumeCompactResponse, error) {
  815. out := new(VacuumVolumeCompactResponse)
  816. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCompact", in, out, c.cc, opts...)
  817. if err != nil {
  818. return nil, err
  819. }
  820. return out, nil
  821. }
  822. func (c *volumeServerClient) VacuumVolumeCommit(ctx context.Context, in *VacuumVolumeCommitRequest, opts ...grpc.CallOption) (*VacuumVolumeCommitResponse, error) {
  823. out := new(VacuumVolumeCommitResponse)
  824. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCommit", in, out, c.cc, opts...)
  825. if err != nil {
  826. return nil, err
  827. }
  828. return out, nil
  829. }
  830. func (c *volumeServerClient) VacuumVolumeCleanup(ctx context.Context, in *VacuumVolumeCleanupRequest, opts ...grpc.CallOption) (*VacuumVolumeCleanupResponse, error) {
  831. out := new(VacuumVolumeCleanupResponse)
  832. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCleanup", in, out, c.cc, opts...)
  833. if err != nil {
  834. return nil, err
  835. }
  836. return out, nil
  837. }
  838. func (c *volumeServerClient) DeleteCollection(ctx context.Context, in *DeleteCollectionRequest, opts ...grpc.CallOption) (*DeleteCollectionResponse, error) {
  839. out := new(DeleteCollectionResponse)
  840. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/DeleteCollection", in, out, c.cc, opts...)
  841. if err != nil {
  842. return nil, err
  843. }
  844. return out, nil
  845. }
  846. func (c *volumeServerClient) AllocateVolume(ctx context.Context, in *AllocateVolumeRequest, opts ...grpc.CallOption) (*AllocateVolumeResponse, error) {
  847. out := new(AllocateVolumeResponse)
  848. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/AllocateVolume", in, out, c.cc, opts...)
  849. if err != nil {
  850. return nil, err
  851. }
  852. return out, nil
  853. }
  854. func (c *volumeServerClient) VolumeSyncStatus(ctx context.Context, in *VolumeSyncStatusRequest, opts ...grpc.CallOption) (*VolumeSyncStatusResponse, error) {
  855. out := new(VolumeSyncStatusResponse)
  856. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeSyncStatus", in, out, c.cc, opts...)
  857. if err != nil {
  858. return nil, err
  859. }
  860. return out, nil
  861. }
  862. func (c *volumeServerClient) VolumeIncrementalCopy(ctx context.Context, in *VolumeIncrementalCopyRequest, opts ...grpc.CallOption) (VolumeServer_VolumeIncrementalCopyClient, error) {
  863. stream, err := grpc.NewClientStream(ctx, &_VolumeServer_serviceDesc.Streams[0], c.cc, "/volume_server_pb.VolumeServer/VolumeIncrementalCopy", opts...)
  864. if err != nil {
  865. return nil, err
  866. }
  867. x := &volumeServerVolumeIncrementalCopyClient{stream}
  868. if err := x.ClientStream.SendMsg(in); err != nil {
  869. return nil, err
  870. }
  871. if err := x.ClientStream.CloseSend(); err != nil {
  872. return nil, err
  873. }
  874. return x, nil
  875. }
  876. type VolumeServer_VolumeIncrementalCopyClient interface {
  877. Recv() (*VolumeIncrementalCopyResponse, error)
  878. grpc.ClientStream
  879. }
  880. type volumeServerVolumeIncrementalCopyClient struct {
  881. grpc.ClientStream
  882. }
  883. func (x *volumeServerVolumeIncrementalCopyClient) Recv() (*VolumeIncrementalCopyResponse, error) {
  884. m := new(VolumeIncrementalCopyResponse)
  885. if err := x.ClientStream.RecvMsg(m); err != nil {
  886. return nil, err
  887. }
  888. return m, nil
  889. }
  890. func (c *volumeServerClient) VolumeMount(ctx context.Context, in *VolumeMountRequest, opts ...grpc.CallOption) (*VolumeMountResponse, error) {
  891. out := new(VolumeMountResponse)
  892. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeMount", in, out, c.cc, opts...)
  893. if err != nil {
  894. return nil, err
  895. }
  896. return out, nil
  897. }
  898. func (c *volumeServerClient) VolumeUnmount(ctx context.Context, in *VolumeUnmountRequest, opts ...grpc.CallOption) (*VolumeUnmountResponse, error) {
  899. out := new(VolumeUnmountResponse)
  900. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeUnmount", in, out, c.cc, opts...)
  901. if err != nil {
  902. return nil, err
  903. }
  904. return out, nil
  905. }
  906. func (c *volumeServerClient) VolumeDelete(ctx context.Context, in *VolumeDeleteRequest, opts ...grpc.CallOption) (*VolumeDeleteResponse, error) {
  907. out := new(VolumeDeleteResponse)
  908. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeDelete", in, out, c.cc, opts...)
  909. if err != nil {
  910. return nil, err
  911. }
  912. return out, nil
  913. }
  914. func (c *volumeServerClient) VolumeCopy(ctx context.Context, in *VolumeCopyRequest, opts ...grpc.CallOption) (*VolumeCopyResponse, error) {
  915. out := new(VolumeCopyResponse)
  916. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeCopy", in, out, c.cc, opts...)
  917. if err != nil {
  918. return nil, err
  919. }
  920. return out, nil
  921. }
  922. func (c *volumeServerClient) ReadVolumeFileStatus(ctx context.Context, in *ReadVolumeFileStatusRequest, opts ...grpc.CallOption) (*ReadVolumeFileStatusResponse, error) {
  923. out := new(ReadVolumeFileStatusResponse)
  924. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/ReadVolumeFileStatus", in, out, c.cc, opts...)
  925. if err != nil {
  926. return nil, err
  927. }
  928. return out, nil
  929. }
  930. func (c *volumeServerClient) CopyFile(ctx context.Context, in *CopyFileRequest, opts ...grpc.CallOption) (VolumeServer_CopyFileClient, error) {
  931. stream, err := grpc.NewClientStream(ctx, &_VolumeServer_serviceDesc.Streams[1], c.cc, "/volume_server_pb.VolumeServer/CopyFile", opts...)
  932. if err != nil {
  933. return nil, err
  934. }
  935. x := &volumeServerCopyFileClient{stream}
  936. if err := x.ClientStream.SendMsg(in); err != nil {
  937. return nil, err
  938. }
  939. if err := x.ClientStream.CloseSend(); err != nil {
  940. return nil, err
  941. }
  942. return x, nil
  943. }
  944. type VolumeServer_CopyFileClient interface {
  945. Recv() (*CopyFileResponse, error)
  946. grpc.ClientStream
  947. }
  948. type volumeServerCopyFileClient struct {
  949. grpc.ClientStream
  950. }
  951. func (x *volumeServerCopyFileClient) Recv() (*CopyFileResponse, error) {
  952. m := new(CopyFileResponse)
  953. if err := x.ClientStream.RecvMsg(m); err != nil {
  954. return nil, err
  955. }
  956. return m, nil
  957. }
  958. func (c *volumeServerClient) VolumeStreamFollow(ctx context.Context, in *VolumeStreamFollowRequest, opts ...grpc.CallOption) (VolumeServer_VolumeStreamFollowClient, error) {
  959. stream, err := grpc.NewClientStream(ctx, &_VolumeServer_serviceDesc.Streams[2], c.cc, "/volume_server_pb.VolumeServer/VolumeStreamFollow", opts...)
  960. if err != nil {
  961. return nil, err
  962. }
  963. x := &volumeServerVolumeStreamFollowClient{stream}
  964. if err := x.ClientStream.SendMsg(in); err != nil {
  965. return nil, err
  966. }
  967. if err := x.ClientStream.CloseSend(); err != nil {
  968. return nil, err
  969. }
  970. return x, nil
  971. }
  972. type VolumeServer_VolumeStreamFollowClient interface {
  973. Recv() (*VolumeStreamFollowResponse, error)
  974. grpc.ClientStream
  975. }
  976. type volumeServerVolumeStreamFollowClient struct {
  977. grpc.ClientStream
  978. }
  979. func (x *volumeServerVolumeStreamFollowClient) Recv() (*VolumeStreamFollowResponse, error) {
  980. m := new(VolumeStreamFollowResponse)
  981. if err := x.ClientStream.RecvMsg(m); err != nil {
  982. return nil, err
  983. }
  984. return m, nil
  985. }
  986. // Server API for VolumeServer service
  987. type VolumeServerServer interface {
  988. // Experts only: takes multiple fid parameters. This function does not propagate deletes to replicas.
  989. BatchDelete(context.Context, *BatchDeleteRequest) (*BatchDeleteResponse, error)
  990. VacuumVolumeCheck(context.Context, *VacuumVolumeCheckRequest) (*VacuumVolumeCheckResponse, error)
  991. VacuumVolumeCompact(context.Context, *VacuumVolumeCompactRequest) (*VacuumVolumeCompactResponse, error)
  992. VacuumVolumeCommit(context.Context, *VacuumVolumeCommitRequest) (*VacuumVolumeCommitResponse, error)
  993. VacuumVolumeCleanup(context.Context, *VacuumVolumeCleanupRequest) (*VacuumVolumeCleanupResponse, error)
  994. DeleteCollection(context.Context, *DeleteCollectionRequest) (*DeleteCollectionResponse, error)
  995. AllocateVolume(context.Context, *AllocateVolumeRequest) (*AllocateVolumeResponse, error)
  996. VolumeSyncStatus(context.Context, *VolumeSyncStatusRequest) (*VolumeSyncStatusResponse, error)
  997. VolumeIncrementalCopy(*VolumeIncrementalCopyRequest, VolumeServer_VolumeIncrementalCopyServer) error
  998. VolumeMount(context.Context, *VolumeMountRequest) (*VolumeMountResponse, error)
  999. VolumeUnmount(context.Context, *VolumeUnmountRequest) (*VolumeUnmountResponse, error)
  1000. VolumeDelete(context.Context, *VolumeDeleteRequest) (*VolumeDeleteResponse, error)
  1001. // copy the .idx .dat files, and mount this volume
  1002. VolumeCopy(context.Context, *VolumeCopyRequest) (*VolumeCopyResponse, error)
  1003. ReadVolumeFileStatus(context.Context, *ReadVolumeFileStatusRequest) (*ReadVolumeFileStatusResponse, error)
  1004. CopyFile(*CopyFileRequest, VolumeServer_CopyFileServer) error
  1005. VolumeStreamFollow(*VolumeStreamFollowRequest, VolumeServer_VolumeStreamFollowServer) error
  1006. }
  1007. func RegisterVolumeServerServer(s *grpc.Server, srv VolumeServerServer) {
  1008. s.RegisterService(&_VolumeServer_serviceDesc, srv)
  1009. }
  1010. func _VolumeServer_BatchDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1011. in := new(BatchDeleteRequest)
  1012. if err := dec(in); err != nil {
  1013. return nil, err
  1014. }
  1015. if interceptor == nil {
  1016. return srv.(VolumeServerServer).BatchDelete(ctx, in)
  1017. }
  1018. info := &grpc.UnaryServerInfo{
  1019. Server: srv,
  1020. FullMethod: "/volume_server_pb.VolumeServer/BatchDelete",
  1021. }
  1022. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1023. return srv.(VolumeServerServer).BatchDelete(ctx, req.(*BatchDeleteRequest))
  1024. }
  1025. return interceptor(ctx, in, info, handler)
  1026. }
  1027. func _VolumeServer_VacuumVolumeCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1028. in := new(VacuumVolumeCheckRequest)
  1029. if err := dec(in); err != nil {
  1030. return nil, err
  1031. }
  1032. if interceptor == nil {
  1033. return srv.(VolumeServerServer).VacuumVolumeCheck(ctx, in)
  1034. }
  1035. info := &grpc.UnaryServerInfo{
  1036. Server: srv,
  1037. FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCheck",
  1038. }
  1039. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1040. return srv.(VolumeServerServer).VacuumVolumeCheck(ctx, req.(*VacuumVolumeCheckRequest))
  1041. }
  1042. return interceptor(ctx, in, info, handler)
  1043. }
  1044. func _VolumeServer_VacuumVolumeCompact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1045. in := new(VacuumVolumeCompactRequest)
  1046. if err := dec(in); err != nil {
  1047. return nil, err
  1048. }
  1049. if interceptor == nil {
  1050. return srv.(VolumeServerServer).VacuumVolumeCompact(ctx, in)
  1051. }
  1052. info := &grpc.UnaryServerInfo{
  1053. Server: srv,
  1054. FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCompact",
  1055. }
  1056. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1057. return srv.(VolumeServerServer).VacuumVolumeCompact(ctx, req.(*VacuumVolumeCompactRequest))
  1058. }
  1059. return interceptor(ctx, in, info, handler)
  1060. }
  1061. func _VolumeServer_VacuumVolumeCommit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1062. in := new(VacuumVolumeCommitRequest)
  1063. if err := dec(in); err != nil {
  1064. return nil, err
  1065. }
  1066. if interceptor == nil {
  1067. return srv.(VolumeServerServer).VacuumVolumeCommit(ctx, in)
  1068. }
  1069. info := &grpc.UnaryServerInfo{
  1070. Server: srv,
  1071. FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCommit",
  1072. }
  1073. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1074. return srv.(VolumeServerServer).VacuumVolumeCommit(ctx, req.(*VacuumVolumeCommitRequest))
  1075. }
  1076. return interceptor(ctx, in, info, handler)
  1077. }
  1078. func _VolumeServer_VacuumVolumeCleanup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1079. in := new(VacuumVolumeCleanupRequest)
  1080. if err := dec(in); err != nil {
  1081. return nil, err
  1082. }
  1083. if interceptor == nil {
  1084. return srv.(VolumeServerServer).VacuumVolumeCleanup(ctx, in)
  1085. }
  1086. info := &grpc.UnaryServerInfo{
  1087. Server: srv,
  1088. FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCleanup",
  1089. }
  1090. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1091. return srv.(VolumeServerServer).VacuumVolumeCleanup(ctx, req.(*VacuumVolumeCleanupRequest))
  1092. }
  1093. return interceptor(ctx, in, info, handler)
  1094. }
  1095. func _VolumeServer_DeleteCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1096. in := new(DeleteCollectionRequest)
  1097. if err := dec(in); err != nil {
  1098. return nil, err
  1099. }
  1100. if interceptor == nil {
  1101. return srv.(VolumeServerServer).DeleteCollection(ctx, in)
  1102. }
  1103. info := &grpc.UnaryServerInfo{
  1104. Server: srv,
  1105. FullMethod: "/volume_server_pb.VolumeServer/DeleteCollection",
  1106. }
  1107. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1108. return srv.(VolumeServerServer).DeleteCollection(ctx, req.(*DeleteCollectionRequest))
  1109. }
  1110. return interceptor(ctx, in, info, handler)
  1111. }
  1112. func _VolumeServer_AllocateVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1113. in := new(AllocateVolumeRequest)
  1114. if err := dec(in); err != nil {
  1115. return nil, err
  1116. }
  1117. if interceptor == nil {
  1118. return srv.(VolumeServerServer).AllocateVolume(ctx, in)
  1119. }
  1120. info := &grpc.UnaryServerInfo{
  1121. Server: srv,
  1122. FullMethod: "/volume_server_pb.VolumeServer/AllocateVolume",
  1123. }
  1124. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1125. return srv.(VolumeServerServer).AllocateVolume(ctx, req.(*AllocateVolumeRequest))
  1126. }
  1127. return interceptor(ctx, in, info, handler)
  1128. }
  1129. func _VolumeServer_VolumeSyncStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1130. in := new(VolumeSyncStatusRequest)
  1131. if err := dec(in); err != nil {
  1132. return nil, err
  1133. }
  1134. if interceptor == nil {
  1135. return srv.(VolumeServerServer).VolumeSyncStatus(ctx, in)
  1136. }
  1137. info := &grpc.UnaryServerInfo{
  1138. Server: srv,
  1139. FullMethod: "/volume_server_pb.VolumeServer/VolumeSyncStatus",
  1140. }
  1141. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1142. return srv.(VolumeServerServer).VolumeSyncStatus(ctx, req.(*VolumeSyncStatusRequest))
  1143. }
  1144. return interceptor(ctx, in, info, handler)
  1145. }
  1146. func _VolumeServer_VolumeIncrementalCopy_Handler(srv interface{}, stream grpc.ServerStream) error {
  1147. m := new(VolumeIncrementalCopyRequest)
  1148. if err := stream.RecvMsg(m); err != nil {
  1149. return err
  1150. }
  1151. return srv.(VolumeServerServer).VolumeIncrementalCopy(m, &volumeServerVolumeIncrementalCopyServer{stream})
  1152. }
  1153. type VolumeServer_VolumeIncrementalCopyServer interface {
  1154. Send(*VolumeIncrementalCopyResponse) error
  1155. grpc.ServerStream
  1156. }
  1157. type volumeServerVolumeIncrementalCopyServer struct {
  1158. grpc.ServerStream
  1159. }
  1160. func (x *volumeServerVolumeIncrementalCopyServer) Send(m *VolumeIncrementalCopyResponse) error {
  1161. return x.ServerStream.SendMsg(m)
  1162. }
  1163. func _VolumeServer_VolumeMount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1164. in := new(VolumeMountRequest)
  1165. if err := dec(in); err != nil {
  1166. return nil, err
  1167. }
  1168. if interceptor == nil {
  1169. return srv.(VolumeServerServer).VolumeMount(ctx, in)
  1170. }
  1171. info := &grpc.UnaryServerInfo{
  1172. Server: srv,
  1173. FullMethod: "/volume_server_pb.VolumeServer/VolumeMount",
  1174. }
  1175. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1176. return srv.(VolumeServerServer).VolumeMount(ctx, req.(*VolumeMountRequest))
  1177. }
  1178. return interceptor(ctx, in, info, handler)
  1179. }
  1180. func _VolumeServer_VolumeUnmount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1181. in := new(VolumeUnmountRequest)
  1182. if err := dec(in); err != nil {
  1183. return nil, err
  1184. }
  1185. if interceptor == nil {
  1186. return srv.(VolumeServerServer).VolumeUnmount(ctx, in)
  1187. }
  1188. info := &grpc.UnaryServerInfo{
  1189. Server: srv,
  1190. FullMethod: "/volume_server_pb.VolumeServer/VolumeUnmount",
  1191. }
  1192. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1193. return srv.(VolumeServerServer).VolumeUnmount(ctx, req.(*VolumeUnmountRequest))
  1194. }
  1195. return interceptor(ctx, in, info, handler)
  1196. }
  1197. func _VolumeServer_VolumeDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1198. in := new(VolumeDeleteRequest)
  1199. if err := dec(in); err != nil {
  1200. return nil, err
  1201. }
  1202. if interceptor == nil {
  1203. return srv.(VolumeServerServer).VolumeDelete(ctx, in)
  1204. }
  1205. info := &grpc.UnaryServerInfo{
  1206. Server: srv,
  1207. FullMethod: "/volume_server_pb.VolumeServer/VolumeDelete",
  1208. }
  1209. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1210. return srv.(VolumeServerServer).VolumeDelete(ctx, req.(*VolumeDeleteRequest))
  1211. }
  1212. return interceptor(ctx, in, info, handler)
  1213. }
  1214. func _VolumeServer_VolumeCopy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1215. in := new(VolumeCopyRequest)
  1216. if err := dec(in); err != nil {
  1217. return nil, err
  1218. }
  1219. if interceptor == nil {
  1220. return srv.(VolumeServerServer).VolumeCopy(ctx, in)
  1221. }
  1222. info := &grpc.UnaryServerInfo{
  1223. Server: srv,
  1224. FullMethod: "/volume_server_pb.VolumeServer/VolumeCopy",
  1225. }
  1226. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1227. return srv.(VolumeServerServer).VolumeCopy(ctx, req.(*VolumeCopyRequest))
  1228. }
  1229. return interceptor(ctx, in, info, handler)
  1230. }
  1231. func _VolumeServer_ReadVolumeFileStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1232. in := new(ReadVolumeFileStatusRequest)
  1233. if err := dec(in); err != nil {
  1234. return nil, err
  1235. }
  1236. if interceptor == nil {
  1237. return srv.(VolumeServerServer).ReadVolumeFileStatus(ctx, in)
  1238. }
  1239. info := &grpc.UnaryServerInfo{
  1240. Server: srv,
  1241. FullMethod: "/volume_server_pb.VolumeServer/ReadVolumeFileStatus",
  1242. }
  1243. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1244. return srv.(VolumeServerServer).ReadVolumeFileStatus(ctx, req.(*ReadVolumeFileStatusRequest))
  1245. }
  1246. return interceptor(ctx, in, info, handler)
  1247. }
  1248. func _VolumeServer_CopyFile_Handler(srv interface{}, stream grpc.ServerStream) error {
  1249. m := new(CopyFileRequest)
  1250. if err := stream.RecvMsg(m); err != nil {
  1251. return err
  1252. }
  1253. return srv.(VolumeServerServer).CopyFile(m, &volumeServerCopyFileServer{stream})
  1254. }
  1255. type VolumeServer_CopyFileServer interface {
  1256. Send(*CopyFileResponse) error
  1257. grpc.ServerStream
  1258. }
  1259. type volumeServerCopyFileServer struct {
  1260. grpc.ServerStream
  1261. }
  1262. func (x *volumeServerCopyFileServer) Send(m *CopyFileResponse) error {
  1263. return x.ServerStream.SendMsg(m)
  1264. }
  1265. func _VolumeServer_VolumeStreamFollow_Handler(srv interface{}, stream grpc.ServerStream) error {
  1266. m := new(VolumeStreamFollowRequest)
  1267. if err := stream.RecvMsg(m); err != nil {
  1268. return err
  1269. }
  1270. return srv.(VolumeServerServer).VolumeStreamFollow(m, &volumeServerVolumeStreamFollowServer{stream})
  1271. }
  1272. type VolumeServer_VolumeStreamFollowServer interface {
  1273. Send(*VolumeStreamFollowResponse) error
  1274. grpc.ServerStream
  1275. }
  1276. type volumeServerVolumeStreamFollowServer struct {
  1277. grpc.ServerStream
  1278. }
  1279. func (x *volumeServerVolumeStreamFollowServer) Send(m *VolumeStreamFollowResponse) error {
  1280. return x.ServerStream.SendMsg(m)
  1281. }
  1282. var _VolumeServer_serviceDesc = grpc.ServiceDesc{
  1283. ServiceName: "volume_server_pb.VolumeServer",
  1284. HandlerType: (*VolumeServerServer)(nil),
  1285. Methods: []grpc.MethodDesc{
  1286. {
  1287. MethodName: "BatchDelete",
  1288. Handler: _VolumeServer_BatchDelete_Handler,
  1289. },
  1290. {
  1291. MethodName: "VacuumVolumeCheck",
  1292. Handler: _VolumeServer_VacuumVolumeCheck_Handler,
  1293. },
  1294. {
  1295. MethodName: "VacuumVolumeCompact",
  1296. Handler: _VolumeServer_VacuumVolumeCompact_Handler,
  1297. },
  1298. {
  1299. MethodName: "VacuumVolumeCommit",
  1300. Handler: _VolumeServer_VacuumVolumeCommit_Handler,
  1301. },
  1302. {
  1303. MethodName: "VacuumVolumeCleanup",
  1304. Handler: _VolumeServer_VacuumVolumeCleanup_Handler,
  1305. },
  1306. {
  1307. MethodName: "DeleteCollection",
  1308. Handler: _VolumeServer_DeleteCollection_Handler,
  1309. },
  1310. {
  1311. MethodName: "AllocateVolume",
  1312. Handler: _VolumeServer_AllocateVolume_Handler,
  1313. },
  1314. {
  1315. MethodName: "VolumeSyncStatus",
  1316. Handler: _VolumeServer_VolumeSyncStatus_Handler,
  1317. },
  1318. {
  1319. MethodName: "VolumeMount",
  1320. Handler: _VolumeServer_VolumeMount_Handler,
  1321. },
  1322. {
  1323. MethodName: "VolumeUnmount",
  1324. Handler: _VolumeServer_VolumeUnmount_Handler,
  1325. },
  1326. {
  1327. MethodName: "VolumeDelete",
  1328. Handler: _VolumeServer_VolumeDelete_Handler,
  1329. },
  1330. {
  1331. MethodName: "VolumeCopy",
  1332. Handler: _VolumeServer_VolumeCopy_Handler,
  1333. },
  1334. {
  1335. MethodName: "ReadVolumeFileStatus",
  1336. Handler: _VolumeServer_ReadVolumeFileStatus_Handler,
  1337. },
  1338. },
  1339. Streams: []grpc.StreamDesc{
  1340. {
  1341. StreamName: "VolumeIncrementalCopy",
  1342. Handler: _VolumeServer_VolumeIncrementalCopy_Handler,
  1343. ServerStreams: true,
  1344. },
  1345. {
  1346. StreamName: "CopyFile",
  1347. Handler: _VolumeServer_CopyFile_Handler,
  1348. ServerStreams: true,
  1349. },
  1350. {
  1351. StreamName: "VolumeStreamFollow",
  1352. Handler: _VolumeServer_VolumeStreamFollow_Handler,
  1353. ServerStreams: true,
  1354. },
  1355. },
  1356. Metadata: "volume_server.proto",
  1357. }
  1358. func init() { proto.RegisterFile("volume_server.proto", fileDescriptor0) }
  1359. var fileDescriptor0 = []byte{
  1360. // 1291 bytes of a gzipped FileDescriptorProto
  1361. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0x58, 0x5b, 0x6f, 0xdc, 0x44,
  1362. 0x14, 0x8e, 0xbb, 0x9b, 0xdb, 0xd9, 0xdd, 0x76, 0x3b, 0x49, 0x9b, 0x8d, 0x7b, 0x61, 0x3b, 0x2d,
  1363. 0xed, 0xf6, 0x42, 0x0a, 0xad, 0x80, 0xc2, 0x13, 0x34, 0xa1, 0x22, 0x0f, 0x6d, 0x25, 0x87, 0x56,
  1364. 0x20, 0x90, 0xac, 0x59, 0x7b, 0x92, 0x58, 0xb1, 0x3d, 0x5b, 0xcf, 0x38, 0x6d, 0x10, 0xfc, 0x1a,
  1365. 0xde, 0x78, 0xe0, 0x1f, 0xf0, 0xcb, 0x90, 0x10, 0xf2, 0xcc, 0xd8, 0xf1, 0x35, 0xeb, 0xd2, 0xb7,
  1366. 0xf1, 0xe7, 0x73, 0xbe, 0x73, 0xce, 0xf8, 0xcc, 0x99, 0x6f, 0x17, 0xd6, 0x8e, 0x99, 0x1f, 0x07,
  1367. 0xd4, 0xe6, 0x34, 0x3a, 0xa6, 0xd1, 0xd6, 0x2c, 0x62, 0x82, 0xa1, 0x61, 0x01, 0xb4, 0x67, 0x53,
  1368. 0xfc, 0x10, 0xd0, 0x53, 0x22, 0x9c, 0xc3, 0x1d, 0xea, 0x53, 0x41, 0x2d, 0xfa, 0x26, 0xa6, 0x5c,
  1369. 0xa0, 0x4d, 0x58, 0xd9, 0xf7, 0x7c, 0x6a, 0x7b, 0x2e, 0x1f, 0x19, 0xe3, 0xce, 0x64, 0xd5, 0x5a,
  1370. 0x4e, 0x9e, 0x77, 0x5d, 0x8e, 0x5f, 0xc2, 0x5a, 0xc1, 0x81, 0xcf, 0x58, 0xc8, 0x29, 0x7a, 0x02,
  1371. 0xcb, 0x11, 0xe5, 0xb1, 0x2f, 0x94, 0x43, 0xef, 0xd1, 0xf5, 0xad, 0x72, 0xac, 0xad, 0xcc, 0x25,
  1372. 0xf6, 0x85, 0x95, 0x9a, 0x63, 0x0f, 0xfa, 0xf9, 0x17, 0x68, 0x03, 0x96, 0x75, 0xec, 0x91, 0x31,
  1373. 0x36, 0x26, 0xab, 0xd6, 0x92, 0x0a, 0x8d, 0x2e, 0xc3, 0x12, 0x17, 0x44, 0xc4, 0x7c, 0x74, 0x6e,
  1374. 0x6c, 0x4c, 0x16, 0x2d, 0xfd, 0x84, 0xd6, 0x61, 0x91, 0x46, 0x11, 0x8b, 0x46, 0x1d, 0x69, 0xae,
  1375. 0x1e, 0x10, 0x82, 0x2e, 0xf7, 0x7e, 0xa5, 0xa3, 0xee, 0xd8, 0x98, 0x0c, 0x2c, 0xb9, 0xc6, 0xcb,
  1376. 0xb0, 0xf8, 0x5d, 0x30, 0x13, 0x27, 0xf8, 0x4b, 0x18, 0xbd, 0x26, 0x4e, 0x1c, 0x07, 0xaf, 0x65,
  1377. 0x8e, 0xdb, 0x87, 0xd4, 0x39, 0x4a, 0x6b, 0xbf, 0x02, 0xab, 0x3a, 0x73, 0x9d, 0xc1, 0xc0, 0x5a,
  1378. 0x51, 0xc0, 0xae, 0x8b, 0xbf, 0x81, 0xcd, 0x1a, 0x47, 0xbd, 0x07, 0x37, 0x61, 0x70, 0x40, 0xa2,
  1379. 0x29, 0x39, 0xa0, 0x76, 0x44, 0x84, 0xc7, 0xa4, 0xb7, 0x61, 0xf5, 0x35, 0x68, 0x25, 0x18, 0xfe,
  1380. 0x19, 0xcc, 0x02, 0x03, 0x0b, 0x66, 0xc4, 0x11, 0x6d, 0x82, 0xa3, 0x31, 0xf4, 0x66, 0x11, 0x25,
  1381. 0xbe, 0xcf, 0x1c, 0x22, 0xa8, 0xdc, 0x85, 0x8e, 0x95, 0x87, 0xf0, 0x35, 0xb8, 0x52, 0x4b, 0xae,
  1382. 0x12, 0xc4, 0x4f, 0x4a, 0xd9, 0xb3, 0x20, 0xf0, 0x5a, 0x85, 0xc6, 0x57, 0x2b, 0x59, 0x4b, 0x4f,
  1383. 0xcd, 0xfb, 0x55, 0xe9, 0xad, 0x4f, 0x49, 0x18, 0xcf, 0x5a, 0x11, 0x97, 0x33, 0x4e, 0x5d, 0x33,
  1384. 0xe6, 0x0d, 0xd5, 0x1c, 0xdb, 0xcc, 0xf7, 0xa9, 0x23, 0x3c, 0x16, 0xa6, 0xb4, 0xd7, 0x01, 0x9c,
  1385. 0x0c, 0xd4, 0xad, 0x92, 0x43, 0xb0, 0x09, 0xa3, 0xaa, 0xab, 0xa6, 0xfd, 0xd3, 0x80, 0x4b, 0xdf,
  1386. 0xea, 0x4d, 0x53, 0x81, 0x5b, 0x7d, 0x80, 0x62, 0xc8, 0x73, 0xe5, 0x90, 0xe5, 0x0f, 0xd4, 0xa9,
  1387. 0x7c, 0xa0, 0xc4, 0x22, 0xa2, 0x33, 0xdf, 0x73, 0x88, 0xa4, 0xe8, 0x4a, 0x8a, 0x3c, 0x84, 0x86,
  1388. 0xd0, 0x11, 0xc2, 0x1f, 0x2d, 0xca, 0x37, 0xc9, 0x12, 0x8f, 0xe0, 0x72, 0x39, 0x57, 0x5d, 0xc6,
  1389. 0x17, 0xb0, 0xa1, 0x90, 0xbd, 0x93, 0xd0, 0xd9, 0x93, 0xa7, 0xa1, 0xd5, 0xa6, 0xff, 0x63, 0xc0,
  1390. 0xa8, 0xea, 0xa8, 0xbb, 0xf8, 0x43, 0x77, 0xe0, 0x7d, 0xeb, 0x43, 0x1f, 0x41, 0x4f, 0x10, 0xcf,
  1391. 0xb7, 0xd9, 0xfe, 0x3e, 0xa7, 0x62, 0xb4, 0x34, 0x36, 0x26, 0x5d, 0x0b, 0x12, 0xe8, 0xa5, 0x44,
  1392. 0xd0, 0x5d, 0x18, 0x3a, 0xaa, 0x93, 0xed, 0x88, 0x1e, 0x7b, 0x3c, 0x61, 0x5e, 0x96, 0x89, 0x5d,
  1393. 0x70, 0xd2, 0x0e, 0x57, 0x30, 0xc2, 0x30, 0xf0, 0xdc, 0x77, 0xb6, 0x1c, 0x20, 0xf2, 0xf8, 0xaf,
  1394. 0x48, 0xb6, 0x9e, 0xe7, 0xbe, 0x7b, 0xe6, 0xf9, 0x74, 0x2f, 0x99, 0x02, 0xaf, 0xe1, 0xaa, 0x2a,
  1395. 0x7e, 0x37, 0x74, 0x22, 0x1a, 0xd0, 0x50, 0x10, 0x7f, 0x9b, 0xcd, 0x4e, 0x5a, 0xb5, 0xc0, 0x26,
  1396. 0xac, 0x70, 0x2f, 0x74, 0xa8, 0x1d, 0xaa, 0x31, 0xd4, 0xb5, 0x96, 0xe5, 0xf3, 0x0b, 0x8e, 0x9f,
  1397. 0xc2, 0xb5, 0x06, 0x5e, 0xbd, 0xb3, 0x37, 0xa0, 0x2f, 0x13, 0x73, 0x58, 0x28, 0x68, 0x28, 0x24,
  1398. 0x77, 0xdf, 0xea, 0x25, 0xd8, 0xb6, 0x82, 0xf0, 0x67, 0x80, 0x14, 0xc7, 0x73, 0x16, 0x87, 0xed,
  1399. 0x8e, 0xe6, 0x25, 0x58, 0x2b, 0xb8, 0xe8, 0xde, 0x78, 0x0c, 0xeb, 0x0a, 0x7e, 0x15, 0x06, 0xad,
  1400. 0xb9, 0x36, 0xe0, 0x52, 0xc9, 0x49, 0xb3, 0x3d, 0x4a, 0x83, 0x14, 0xef, 0x89, 0x33, 0xc9, 0x2e,
  1401. 0xa7, 0x19, 0x14, 0xaf, 0x0a, 0xfc, 0x97, 0x01, 0x17, 0xd3, 0x31, 0xd2, 0x72, 0xd7, 0xdf, 0xb3,
  1402. 0xed, 0x3a, 0x8d, 0x6d, 0xd7, 0x3d, 0x6d, 0xbb, 0x09, 0x0c, 0x39, 0x8b, 0x23, 0x87, 0xda, 0x2e,
  1403. 0x11, 0xc4, 0x0e, 0x99, 0x4b, 0x75, 0x57, 0x9e, 0x57, 0xf8, 0x0e, 0x11, 0xe4, 0x05, 0x73, 0x29,
  1404. 0x5e, 0x4f, 0x3f, 0x4a, 0xfe, 0x6b, 0xe2, 0x10, 0x2e, 0x24, 0xcf, 0x49, 0x5b, 0xb5, 0xac, 0xa1,
  1405. 0xe7, 0x71, 0x3b, 0xed, 0x4e, 0x59, 0xc4, 0x8a, 0xb5, 0xea, 0xf1, 0x5d, 0xd5, 0x9a, 0xfa, 0xbd,
  1406. 0x4b, 0x84, 0x7a, 0xdf, 0x49, 0xdf, 0xef, 0x10, 0x91, 0xbc, 0xc7, 0x9f, 0xc3, 0xf0, 0x34, 0x5e,
  1407. 0xfb, 0x8e, 0xfa, 0x1d, 0x36, 0xf5, 0x51, 0x17, 0x11, 0x25, 0xc1, 0x33, 0xe6, 0xfb, 0xec, 0xed,
  1408. 0x07, 0xb6, 0x3a, 0x9a, 0xc0, 0x05, 0x37, 0x22, 0x5e, 0xe8, 0x85, 0x07, 0x7b, 0xd4, 0x61, 0xa1,
  1409. 0xcb, 0x65, 0xbe, 0x03, 0xab, 0x0c, 0xe3, 0x29, 0x98, 0x75, 0xe1, 0x4f, 0x6f, 0xcc, 0x90, 0x52,
  1410. 0xd7, 0xa7, 0xf6, 0x21, 0x25, 0x2e, 0x8d, 0x74, 0x01, 0x7d, 0x05, 0x7e, 0x2f, 0xb1, 0x64, 0x3e,
  1411. 0x68, 0xa3, 0x29, 0x73, 0x4f, 0x64, 0x2a, 0x7d, 0x0b, 0x14, 0xf4, 0x94, 0xb9, 0x27, 0xf8, 0x6b,
  1412. 0xb8, 0x62, 0x51, 0xe2, 0xaa, 0x38, 0xf2, 0x98, 0xb7, 0x1f, 0x85, 0xff, 0x1a, 0x70, 0xb5, 0xde,
  1413. 0xb9, 0xcd, 0x38, 0x7c, 0x00, 0x28, 0x1b, 0x37, 0xc2, 0x0b, 0x28, 0x17, 0x24, 0x98, 0xe9, 0xcd,
  1414. 0x1a, 0xea, 0x99, 0xf3, 0x43, 0x8a, 0x57, 0x87, 0x53, 0xa7, 0x32, 0x9c, 0x12, 0xc6, 0xb4, 0x05,
  1415. 0x72, 0x8c, 0x5d, 0xc5, 0xe8, 0xaa, 0x56, 0x28, 0x30, 0x66, 0xd6, 0x92, 0x71, 0x51, 0x31, 0x6a,
  1416. 0x43, 0xc9, 0x78, 0x0d, 0x40, 0xf7, 0x48, 0x1c, 0xa6, 0xd3, 0x75, 0x55, 0x75, 0x48, 0x1c, 0x0a,
  1417. 0xfc, 0x23, 0xc0, 0x8e, 0xc7, 0x8f, 0x54, 0xd5, 0xc9, 0x31, 0x71, 0xbd, 0x48, 0xdf, 0xa6, 0xc9,
  1418. 0x32, 0x41, 0x88, 0xef, 0xeb, 0x9a, 0x92, 0x65, 0xa2, 0xac, 0x62, 0x4e, 0x5d, 0x9d, 0xbd, 0x5c,
  1419. 0x27, 0xd8, 0x7e, 0x44, 0xa9, 0x4e, 0x54, 0xae, 0xf1, 0x1f, 0x06, 0xac, 0x3e, 0xa7, 0x81, 0x66,
  1420. 0xbe, 0x0e, 0x70, 0xc0, 0x22, 0x16, 0x0b, 0x2f, 0xa4, 0x5c, 0x06, 0x58, 0xb4, 0x72, 0xc8, 0xff,
  1421. 0x8f, 0x23, 0x95, 0x1e, 0xf5, 0xf7, 0x75, 0xed, 0x72, 0x9d, 0x60, 0x87, 0x94, 0xcc, 0x74, 0xb9,
  1422. 0x72, 0x9d, 0xe8, 0x44, 0x2e, 0x88, 0x73, 0x24, 0xef, 0x8e, 0xae, 0xa5, 0x1e, 0x1e, 0xfd, 0x3d,
  1423. 0x80, 0xbe, 0xee, 0x50, 0x29, 0x54, 0xd1, 0x2f, 0xd0, 0xcb, 0x09, 0x5c, 0x74, 0xab, 0xaa, 0x63,
  1424. 0xab, 0x82, 0xd9, 0xfc, 0x78, 0x8e, 0x95, 0x9e, 0x19, 0x0b, 0x28, 0x84, 0x8b, 0x15, 0x01, 0x89,
  1425. 0xee, 0x55, 0xbd, 0x9b, 0xe4, 0xa9, 0x79, 0xbf, 0x95, 0x6d, 0x16, 0x4f, 0xc0, 0x5a, 0x8d, 0x22,
  1426. 0x44, 0x0f, 0xe6, 0xb0, 0x14, 0x54, 0xa9, 0xf9, 0x49, 0x4b, 0xeb, 0x2c, 0xea, 0x1b, 0x40, 0x55,
  1427. 0xb9, 0x88, 0xee, 0xcf, 0xa5, 0x39, 0x95, 0xa3, 0xe6, 0x83, 0x76, 0xc6, 0x8d, 0x85, 0x2a, 0x21,
  1428. 0x39, 0xb7, 0xd0, 0x82, 0x54, 0x9d, 0x5b, 0x68, 0x49, 0x9d, 0x2e, 0xa0, 0x23, 0x18, 0x96, 0x45,
  1429. 0x26, 0xba, 0xdb, 0xf4, 0xcb, 0xa7, 0xa2, 0x61, 0xcd, 0x7b, 0x6d, 0x4c, 0xb3, 0x60, 0x14, 0xce,
  1430. 0x17, 0x85, 0x20, 0xba, 0x53, 0xf5, 0xaf, 0x95, 0xb5, 0xe6, 0x64, 0xbe, 0x61, 0xbe, 0xa6, 0xb2,
  1431. 0x38, 0xac, 0xab, 0xa9, 0x41, 0x79, 0xd6, 0xd5, 0xd4, 0xa4, 0x35, 0xf1, 0x02, 0xfa, 0x2d, 0x55,
  1432. 0x1c, 0x25, 0xd1, 0x84, 0xb6, 0x9a, 0x68, 0xea, 0x55, 0x9b, 0xf9, 0xb0, 0xb5, 0x7d, 0x1a, 0xfb,
  1433. 0x53, 0x23, 0x39, 0xeb, 0x39, 0xed, 0x54, 0x77, 0xd6, 0xab, 0x6a, 0xac, 0xee, 0xac, 0xd7, 0x09,
  1434. 0xb0, 0x05, 0x34, 0x85, 0x41, 0x41, 0x4d, 0xa1, 0xdb, 0x4d, 0x9e, 0x45, 0x8d, 0x66, 0xde, 0x99,
  1435. 0x6b, 0x97, 0xc5, 0xb0, 0xd3, 0xe9, 0xa5, 0xc7, 0x55, 0x63, 0x72, 0xc5, 0x79, 0x75, 0x7b, 0x9e,
  1436. 0x59, 0x16, 0xe0, 0x27, 0x80, 0x53, 0xf1, 0x83, 0x6e, 0x36, 0xf9, 0xe5, 0x3f, 0xc5, 0xad, 0xb3,
  1437. 0x8d, 0x32, 0xea, 0xb7, 0xb0, 0x5e, 0x77, 0xf5, 0xa2, 0x9a, 0x53, 0x78, 0xc6, 0xfd, 0x6e, 0x6e,
  1438. 0xb5, 0x35, 0xcf, 0x02, 0xbf, 0x82, 0x95, 0x54, 0x4a, 0xa1, 0x1b, 0x55, 0xef, 0x92, 0xac, 0x33,
  1439. 0xf1, 0x59, 0x26, 0xb9, 0x6e, 0xe2, 0xa9, 0x4e, 0xcc, 0x6b, 0x9d, 0xda, 0xa9, 0xd7, 0x24, 0xc8,
  1440. 0x6a, 0xa7, 0x5e, 0xa3, 0x7c, 0x4a, 0x82, 0x4e, 0x97, 0xe4, 0x3f, 0x3b, 0x8f, 0xff, 0x0b, 0x00,
  1441. 0x00, 0xff, 0xff, 0x9b, 0xf8, 0x72, 0xd3, 0xf0, 0x11, 0x00, 0x00,
  1442. }