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.

1667 lines
64 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. VolumeTailRequest
  40. VolumeTailResponse
  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. LastAppendAtNs uint64 `protobuf:"varint,1,opt,name=last_append_at_ns,json=lastAppendAtNs" json:"last_append_at_ns,omitempty"`
  486. }
  487. func (m *VolumeCopyResponse) Reset() { *m = VolumeCopyResponse{} }
  488. func (m *VolumeCopyResponse) String() string { return proto.CompactTextString(m) }
  489. func (*VolumeCopyResponse) ProtoMessage() {}
  490. func (*VolumeCopyResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{27} }
  491. func (m *VolumeCopyResponse) GetLastAppendAtNs() uint64 {
  492. if m != nil {
  493. return m.LastAppendAtNs
  494. }
  495. return 0
  496. }
  497. type CopyFileRequest struct {
  498. VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
  499. IsIdxFile bool `protobuf:"varint,2,opt,name=is_idx_file,json=isIdxFile" json:"is_idx_file,omitempty"`
  500. IsDatFile bool `protobuf:"varint,3,opt,name=is_dat_file,json=isDatFile" json:"is_dat_file,omitempty"`
  501. }
  502. func (m *CopyFileRequest) Reset() { *m = CopyFileRequest{} }
  503. func (m *CopyFileRequest) String() string { return proto.CompactTextString(m) }
  504. func (*CopyFileRequest) ProtoMessage() {}
  505. func (*CopyFileRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{28} }
  506. func (m *CopyFileRequest) GetVolumeId() uint32 {
  507. if m != nil {
  508. return m.VolumeId
  509. }
  510. return 0
  511. }
  512. func (m *CopyFileRequest) GetIsIdxFile() bool {
  513. if m != nil {
  514. return m.IsIdxFile
  515. }
  516. return false
  517. }
  518. func (m *CopyFileRequest) GetIsDatFile() bool {
  519. if m != nil {
  520. return m.IsDatFile
  521. }
  522. return false
  523. }
  524. type CopyFileResponse struct {
  525. FileContent []byte `protobuf:"bytes,1,opt,name=file_content,json=fileContent,proto3" json:"file_content,omitempty"`
  526. }
  527. func (m *CopyFileResponse) Reset() { *m = CopyFileResponse{} }
  528. func (m *CopyFileResponse) String() string { return proto.CompactTextString(m) }
  529. func (*CopyFileResponse) ProtoMessage() {}
  530. func (*CopyFileResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{29} }
  531. func (m *CopyFileResponse) GetFileContent() []byte {
  532. if m != nil {
  533. return m.FileContent
  534. }
  535. return nil
  536. }
  537. type VolumeTailRequest struct {
  538. VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
  539. SinceNs uint64 `protobuf:"varint,2,opt,name=since_ns,json=sinceNs" json:"since_ns,omitempty"`
  540. DrainingSeconds uint32 `protobuf:"varint,3,opt,name=drainingSeconds" json:"drainingSeconds,omitempty"`
  541. }
  542. func (m *VolumeTailRequest) Reset() { *m = VolumeTailRequest{} }
  543. func (m *VolumeTailRequest) String() string { return proto.CompactTextString(m) }
  544. func (*VolumeTailRequest) ProtoMessage() {}
  545. func (*VolumeTailRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{30} }
  546. func (m *VolumeTailRequest) GetVolumeId() uint32 {
  547. if m != nil {
  548. return m.VolumeId
  549. }
  550. return 0
  551. }
  552. func (m *VolumeTailRequest) GetSinceNs() uint64 {
  553. if m != nil {
  554. return m.SinceNs
  555. }
  556. return 0
  557. }
  558. func (m *VolumeTailRequest) GetDrainingSeconds() uint32 {
  559. if m != nil {
  560. return m.DrainingSeconds
  561. }
  562. return 0
  563. }
  564. type VolumeTailResponse struct {
  565. NeedleHeader []byte `protobuf:"bytes,1,opt,name=needle_header,json=needleHeader,proto3" json:"needle_header,omitempty"`
  566. NeedleBody []byte `protobuf:"bytes,2,opt,name=needle_body,json=needleBody,proto3" json:"needle_body,omitempty"`
  567. IsLastChunk bool `protobuf:"varint,3,opt,name=is_last_chunk,json=isLastChunk" json:"is_last_chunk,omitempty"`
  568. }
  569. func (m *VolumeTailResponse) Reset() { *m = VolumeTailResponse{} }
  570. func (m *VolumeTailResponse) String() string { return proto.CompactTextString(m) }
  571. func (*VolumeTailResponse) ProtoMessage() {}
  572. func (*VolumeTailResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{31} }
  573. func (m *VolumeTailResponse) GetNeedleHeader() []byte {
  574. if m != nil {
  575. return m.NeedleHeader
  576. }
  577. return nil
  578. }
  579. func (m *VolumeTailResponse) GetNeedleBody() []byte {
  580. if m != nil {
  581. return m.NeedleBody
  582. }
  583. return nil
  584. }
  585. func (m *VolumeTailResponse) GetIsLastChunk() bool {
  586. if m != nil {
  587. return m.IsLastChunk
  588. }
  589. return false
  590. }
  591. type ReadVolumeFileStatusRequest struct {
  592. VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
  593. }
  594. func (m *ReadVolumeFileStatusRequest) Reset() { *m = ReadVolumeFileStatusRequest{} }
  595. func (m *ReadVolumeFileStatusRequest) String() string { return proto.CompactTextString(m) }
  596. func (*ReadVolumeFileStatusRequest) ProtoMessage() {}
  597. func (*ReadVolumeFileStatusRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{32} }
  598. func (m *ReadVolumeFileStatusRequest) GetVolumeId() uint32 {
  599. if m != nil {
  600. return m.VolumeId
  601. }
  602. return 0
  603. }
  604. type ReadVolumeFileStatusResponse struct {
  605. VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
  606. IdxFileTimestampSeconds uint64 `protobuf:"varint,2,opt,name=idx_file_timestamp_seconds,json=idxFileTimestampSeconds" json:"idx_file_timestamp_seconds,omitempty"`
  607. IdxFileSize uint64 `protobuf:"varint,3,opt,name=idx_file_size,json=idxFileSize" json:"idx_file_size,omitempty"`
  608. DatFileTimestampSeconds uint64 `protobuf:"varint,4,opt,name=dat_file_timestamp_seconds,json=datFileTimestampSeconds" json:"dat_file_timestamp_seconds,omitempty"`
  609. DatFileSize uint64 `protobuf:"varint,5,opt,name=dat_file_size,json=datFileSize" json:"dat_file_size,omitempty"`
  610. FileCount uint64 `protobuf:"varint,6,opt,name=file_count,json=fileCount" json:"file_count,omitempty"`
  611. }
  612. func (m *ReadVolumeFileStatusResponse) Reset() { *m = ReadVolumeFileStatusResponse{} }
  613. func (m *ReadVolumeFileStatusResponse) String() string { return proto.CompactTextString(m) }
  614. func (*ReadVolumeFileStatusResponse) ProtoMessage() {}
  615. func (*ReadVolumeFileStatusResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{33} }
  616. func (m *ReadVolumeFileStatusResponse) GetVolumeId() uint32 {
  617. if m != nil {
  618. return m.VolumeId
  619. }
  620. return 0
  621. }
  622. func (m *ReadVolumeFileStatusResponse) GetIdxFileTimestampSeconds() uint64 {
  623. if m != nil {
  624. return m.IdxFileTimestampSeconds
  625. }
  626. return 0
  627. }
  628. func (m *ReadVolumeFileStatusResponse) GetIdxFileSize() uint64 {
  629. if m != nil {
  630. return m.IdxFileSize
  631. }
  632. return 0
  633. }
  634. func (m *ReadVolumeFileStatusResponse) GetDatFileTimestampSeconds() uint64 {
  635. if m != nil {
  636. return m.DatFileTimestampSeconds
  637. }
  638. return 0
  639. }
  640. func (m *ReadVolumeFileStatusResponse) GetDatFileSize() uint64 {
  641. if m != nil {
  642. return m.DatFileSize
  643. }
  644. return 0
  645. }
  646. func (m *ReadVolumeFileStatusResponse) GetFileCount() uint64 {
  647. if m != nil {
  648. return m.FileCount
  649. }
  650. return 0
  651. }
  652. type DiskStatus struct {
  653. Dir string `protobuf:"bytes,1,opt,name=dir" json:"dir,omitempty"`
  654. All uint64 `protobuf:"varint,2,opt,name=all" json:"all,omitempty"`
  655. Used uint64 `protobuf:"varint,3,opt,name=used" json:"used,omitempty"`
  656. Free uint64 `protobuf:"varint,4,opt,name=free" json:"free,omitempty"`
  657. }
  658. func (m *DiskStatus) Reset() { *m = DiskStatus{} }
  659. func (m *DiskStatus) String() string { return proto.CompactTextString(m) }
  660. func (*DiskStatus) ProtoMessage() {}
  661. func (*DiskStatus) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{34} }
  662. func (m *DiskStatus) GetDir() string {
  663. if m != nil {
  664. return m.Dir
  665. }
  666. return ""
  667. }
  668. func (m *DiskStatus) GetAll() uint64 {
  669. if m != nil {
  670. return m.All
  671. }
  672. return 0
  673. }
  674. func (m *DiskStatus) GetUsed() uint64 {
  675. if m != nil {
  676. return m.Used
  677. }
  678. return 0
  679. }
  680. func (m *DiskStatus) GetFree() uint64 {
  681. if m != nil {
  682. return m.Free
  683. }
  684. return 0
  685. }
  686. type MemStatus struct {
  687. Goroutines int32 `protobuf:"varint,1,opt,name=goroutines" json:"goroutines,omitempty"`
  688. All uint64 `protobuf:"varint,2,opt,name=all" json:"all,omitempty"`
  689. Used uint64 `protobuf:"varint,3,opt,name=used" json:"used,omitempty"`
  690. Free uint64 `protobuf:"varint,4,opt,name=free" json:"free,omitempty"`
  691. Self uint64 `protobuf:"varint,5,opt,name=self" json:"self,omitempty"`
  692. Heap uint64 `protobuf:"varint,6,opt,name=heap" json:"heap,omitempty"`
  693. Stack uint64 `protobuf:"varint,7,opt,name=stack" json:"stack,omitempty"`
  694. }
  695. func (m *MemStatus) Reset() { *m = MemStatus{} }
  696. func (m *MemStatus) String() string { return proto.CompactTextString(m) }
  697. func (*MemStatus) ProtoMessage() {}
  698. func (*MemStatus) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{35} }
  699. func (m *MemStatus) GetGoroutines() int32 {
  700. if m != nil {
  701. return m.Goroutines
  702. }
  703. return 0
  704. }
  705. func (m *MemStatus) GetAll() uint64 {
  706. if m != nil {
  707. return m.All
  708. }
  709. return 0
  710. }
  711. func (m *MemStatus) GetUsed() uint64 {
  712. if m != nil {
  713. return m.Used
  714. }
  715. return 0
  716. }
  717. func (m *MemStatus) GetFree() uint64 {
  718. if m != nil {
  719. return m.Free
  720. }
  721. return 0
  722. }
  723. func (m *MemStatus) GetSelf() uint64 {
  724. if m != nil {
  725. return m.Self
  726. }
  727. return 0
  728. }
  729. func (m *MemStatus) GetHeap() uint64 {
  730. if m != nil {
  731. return m.Heap
  732. }
  733. return 0
  734. }
  735. func (m *MemStatus) GetStack() uint64 {
  736. if m != nil {
  737. return m.Stack
  738. }
  739. return 0
  740. }
  741. func init() {
  742. proto.RegisterType((*BatchDeleteRequest)(nil), "volume_server_pb.BatchDeleteRequest")
  743. proto.RegisterType((*BatchDeleteResponse)(nil), "volume_server_pb.BatchDeleteResponse")
  744. proto.RegisterType((*DeleteResult)(nil), "volume_server_pb.DeleteResult")
  745. proto.RegisterType((*Empty)(nil), "volume_server_pb.Empty")
  746. proto.RegisterType((*VacuumVolumeCheckRequest)(nil), "volume_server_pb.VacuumVolumeCheckRequest")
  747. proto.RegisterType((*VacuumVolumeCheckResponse)(nil), "volume_server_pb.VacuumVolumeCheckResponse")
  748. proto.RegisterType((*VacuumVolumeCompactRequest)(nil), "volume_server_pb.VacuumVolumeCompactRequest")
  749. proto.RegisterType((*VacuumVolumeCompactResponse)(nil), "volume_server_pb.VacuumVolumeCompactResponse")
  750. proto.RegisterType((*VacuumVolumeCommitRequest)(nil), "volume_server_pb.VacuumVolumeCommitRequest")
  751. proto.RegisterType((*VacuumVolumeCommitResponse)(nil), "volume_server_pb.VacuumVolumeCommitResponse")
  752. proto.RegisterType((*VacuumVolumeCleanupRequest)(nil), "volume_server_pb.VacuumVolumeCleanupRequest")
  753. proto.RegisterType((*VacuumVolumeCleanupResponse)(nil), "volume_server_pb.VacuumVolumeCleanupResponse")
  754. proto.RegisterType((*DeleteCollectionRequest)(nil), "volume_server_pb.DeleteCollectionRequest")
  755. proto.RegisterType((*DeleteCollectionResponse)(nil), "volume_server_pb.DeleteCollectionResponse")
  756. proto.RegisterType((*AllocateVolumeRequest)(nil), "volume_server_pb.AllocateVolumeRequest")
  757. proto.RegisterType((*AllocateVolumeResponse)(nil), "volume_server_pb.AllocateVolumeResponse")
  758. proto.RegisterType((*VolumeSyncStatusRequest)(nil), "volume_server_pb.VolumeSyncStatusRequest")
  759. proto.RegisterType((*VolumeSyncStatusResponse)(nil), "volume_server_pb.VolumeSyncStatusResponse")
  760. proto.RegisterType((*VolumeIncrementalCopyRequest)(nil), "volume_server_pb.VolumeIncrementalCopyRequest")
  761. proto.RegisterType((*VolumeIncrementalCopyResponse)(nil), "volume_server_pb.VolumeIncrementalCopyResponse")
  762. proto.RegisterType((*VolumeMountRequest)(nil), "volume_server_pb.VolumeMountRequest")
  763. proto.RegisterType((*VolumeMountResponse)(nil), "volume_server_pb.VolumeMountResponse")
  764. proto.RegisterType((*VolumeUnmountRequest)(nil), "volume_server_pb.VolumeUnmountRequest")
  765. proto.RegisterType((*VolumeUnmountResponse)(nil), "volume_server_pb.VolumeUnmountResponse")
  766. proto.RegisterType((*VolumeDeleteRequest)(nil), "volume_server_pb.VolumeDeleteRequest")
  767. proto.RegisterType((*VolumeDeleteResponse)(nil), "volume_server_pb.VolumeDeleteResponse")
  768. proto.RegisterType((*VolumeCopyRequest)(nil), "volume_server_pb.VolumeCopyRequest")
  769. proto.RegisterType((*VolumeCopyResponse)(nil), "volume_server_pb.VolumeCopyResponse")
  770. proto.RegisterType((*CopyFileRequest)(nil), "volume_server_pb.CopyFileRequest")
  771. proto.RegisterType((*CopyFileResponse)(nil), "volume_server_pb.CopyFileResponse")
  772. proto.RegisterType((*VolumeTailRequest)(nil), "volume_server_pb.VolumeTailRequest")
  773. proto.RegisterType((*VolumeTailResponse)(nil), "volume_server_pb.VolumeTailResponse")
  774. proto.RegisterType((*ReadVolumeFileStatusRequest)(nil), "volume_server_pb.ReadVolumeFileStatusRequest")
  775. proto.RegisterType((*ReadVolumeFileStatusResponse)(nil), "volume_server_pb.ReadVolumeFileStatusResponse")
  776. proto.RegisterType((*DiskStatus)(nil), "volume_server_pb.DiskStatus")
  777. proto.RegisterType((*MemStatus)(nil), "volume_server_pb.MemStatus")
  778. }
  779. // Reference imports to suppress errors if they are not otherwise used.
  780. var _ context.Context
  781. var _ grpc.ClientConn
  782. // This is a compile-time assertion to ensure that this generated file
  783. // is compatible with the grpc package it is being compiled against.
  784. const _ = grpc.SupportPackageIsVersion4
  785. // Client API for VolumeServer service
  786. type VolumeServerClient interface {
  787. // Experts only: takes multiple fid parameters. This function does not propagate deletes to replicas.
  788. BatchDelete(ctx context.Context, in *BatchDeleteRequest, opts ...grpc.CallOption) (*BatchDeleteResponse, error)
  789. VacuumVolumeCheck(ctx context.Context, in *VacuumVolumeCheckRequest, opts ...grpc.CallOption) (*VacuumVolumeCheckResponse, error)
  790. VacuumVolumeCompact(ctx context.Context, in *VacuumVolumeCompactRequest, opts ...grpc.CallOption) (*VacuumVolumeCompactResponse, error)
  791. VacuumVolumeCommit(ctx context.Context, in *VacuumVolumeCommitRequest, opts ...grpc.CallOption) (*VacuumVolumeCommitResponse, error)
  792. VacuumVolumeCleanup(ctx context.Context, in *VacuumVolumeCleanupRequest, opts ...grpc.CallOption) (*VacuumVolumeCleanupResponse, error)
  793. DeleteCollection(ctx context.Context, in *DeleteCollectionRequest, opts ...grpc.CallOption) (*DeleteCollectionResponse, error)
  794. AllocateVolume(ctx context.Context, in *AllocateVolumeRequest, opts ...grpc.CallOption) (*AllocateVolumeResponse, error)
  795. VolumeSyncStatus(ctx context.Context, in *VolumeSyncStatusRequest, opts ...grpc.CallOption) (*VolumeSyncStatusResponse, error)
  796. VolumeIncrementalCopy(ctx context.Context, in *VolumeIncrementalCopyRequest, opts ...grpc.CallOption) (VolumeServer_VolumeIncrementalCopyClient, error)
  797. VolumeMount(ctx context.Context, in *VolumeMountRequest, opts ...grpc.CallOption) (*VolumeMountResponse, error)
  798. VolumeUnmount(ctx context.Context, in *VolumeUnmountRequest, opts ...grpc.CallOption) (*VolumeUnmountResponse, error)
  799. VolumeDelete(ctx context.Context, in *VolumeDeleteRequest, opts ...grpc.CallOption) (*VolumeDeleteResponse, error)
  800. // copy the .idx .dat files, and mount this volume
  801. VolumeCopy(ctx context.Context, in *VolumeCopyRequest, opts ...grpc.CallOption) (*VolumeCopyResponse, error)
  802. ReadVolumeFileStatus(ctx context.Context, in *ReadVolumeFileStatusRequest, opts ...grpc.CallOption) (*ReadVolumeFileStatusResponse, error)
  803. CopyFile(ctx context.Context, in *CopyFileRequest, opts ...grpc.CallOption) (VolumeServer_CopyFileClient, error)
  804. VolumeTail(ctx context.Context, in *VolumeTailRequest, opts ...grpc.CallOption) (VolumeServer_VolumeTailClient, error)
  805. }
  806. type volumeServerClient struct {
  807. cc *grpc.ClientConn
  808. }
  809. func NewVolumeServerClient(cc *grpc.ClientConn) VolumeServerClient {
  810. return &volumeServerClient{cc}
  811. }
  812. func (c *volumeServerClient) BatchDelete(ctx context.Context, in *BatchDeleteRequest, opts ...grpc.CallOption) (*BatchDeleteResponse, error) {
  813. out := new(BatchDeleteResponse)
  814. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/BatchDelete", in, out, c.cc, opts...)
  815. if err != nil {
  816. return nil, err
  817. }
  818. return out, nil
  819. }
  820. func (c *volumeServerClient) VacuumVolumeCheck(ctx context.Context, in *VacuumVolumeCheckRequest, opts ...grpc.CallOption) (*VacuumVolumeCheckResponse, error) {
  821. out := new(VacuumVolumeCheckResponse)
  822. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCheck", in, out, c.cc, opts...)
  823. if err != nil {
  824. return nil, err
  825. }
  826. return out, nil
  827. }
  828. func (c *volumeServerClient) VacuumVolumeCompact(ctx context.Context, in *VacuumVolumeCompactRequest, opts ...grpc.CallOption) (*VacuumVolumeCompactResponse, error) {
  829. out := new(VacuumVolumeCompactResponse)
  830. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCompact", in, out, c.cc, opts...)
  831. if err != nil {
  832. return nil, err
  833. }
  834. return out, nil
  835. }
  836. func (c *volumeServerClient) VacuumVolumeCommit(ctx context.Context, in *VacuumVolumeCommitRequest, opts ...grpc.CallOption) (*VacuumVolumeCommitResponse, error) {
  837. out := new(VacuumVolumeCommitResponse)
  838. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCommit", in, out, c.cc, opts...)
  839. if err != nil {
  840. return nil, err
  841. }
  842. return out, nil
  843. }
  844. func (c *volumeServerClient) VacuumVolumeCleanup(ctx context.Context, in *VacuumVolumeCleanupRequest, opts ...grpc.CallOption) (*VacuumVolumeCleanupResponse, error) {
  845. out := new(VacuumVolumeCleanupResponse)
  846. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCleanup", in, out, c.cc, opts...)
  847. if err != nil {
  848. return nil, err
  849. }
  850. return out, nil
  851. }
  852. func (c *volumeServerClient) DeleteCollection(ctx context.Context, in *DeleteCollectionRequest, opts ...grpc.CallOption) (*DeleteCollectionResponse, error) {
  853. out := new(DeleteCollectionResponse)
  854. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/DeleteCollection", in, out, c.cc, opts...)
  855. if err != nil {
  856. return nil, err
  857. }
  858. return out, nil
  859. }
  860. func (c *volumeServerClient) AllocateVolume(ctx context.Context, in *AllocateVolumeRequest, opts ...grpc.CallOption) (*AllocateVolumeResponse, error) {
  861. out := new(AllocateVolumeResponse)
  862. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/AllocateVolume", in, out, c.cc, opts...)
  863. if err != nil {
  864. return nil, err
  865. }
  866. return out, nil
  867. }
  868. func (c *volumeServerClient) VolumeSyncStatus(ctx context.Context, in *VolumeSyncStatusRequest, opts ...grpc.CallOption) (*VolumeSyncStatusResponse, error) {
  869. out := new(VolumeSyncStatusResponse)
  870. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeSyncStatus", in, out, c.cc, opts...)
  871. if err != nil {
  872. return nil, err
  873. }
  874. return out, nil
  875. }
  876. func (c *volumeServerClient) VolumeIncrementalCopy(ctx context.Context, in *VolumeIncrementalCopyRequest, opts ...grpc.CallOption) (VolumeServer_VolumeIncrementalCopyClient, error) {
  877. stream, err := grpc.NewClientStream(ctx, &_VolumeServer_serviceDesc.Streams[0], c.cc, "/volume_server_pb.VolumeServer/VolumeIncrementalCopy", opts...)
  878. if err != nil {
  879. return nil, err
  880. }
  881. x := &volumeServerVolumeIncrementalCopyClient{stream}
  882. if err := x.ClientStream.SendMsg(in); err != nil {
  883. return nil, err
  884. }
  885. if err := x.ClientStream.CloseSend(); err != nil {
  886. return nil, err
  887. }
  888. return x, nil
  889. }
  890. type VolumeServer_VolumeIncrementalCopyClient interface {
  891. Recv() (*VolumeIncrementalCopyResponse, error)
  892. grpc.ClientStream
  893. }
  894. type volumeServerVolumeIncrementalCopyClient struct {
  895. grpc.ClientStream
  896. }
  897. func (x *volumeServerVolumeIncrementalCopyClient) Recv() (*VolumeIncrementalCopyResponse, error) {
  898. m := new(VolumeIncrementalCopyResponse)
  899. if err := x.ClientStream.RecvMsg(m); err != nil {
  900. return nil, err
  901. }
  902. return m, nil
  903. }
  904. func (c *volumeServerClient) VolumeMount(ctx context.Context, in *VolumeMountRequest, opts ...grpc.CallOption) (*VolumeMountResponse, error) {
  905. out := new(VolumeMountResponse)
  906. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeMount", in, out, c.cc, opts...)
  907. if err != nil {
  908. return nil, err
  909. }
  910. return out, nil
  911. }
  912. func (c *volumeServerClient) VolumeUnmount(ctx context.Context, in *VolumeUnmountRequest, opts ...grpc.CallOption) (*VolumeUnmountResponse, error) {
  913. out := new(VolumeUnmountResponse)
  914. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeUnmount", in, out, c.cc, opts...)
  915. if err != nil {
  916. return nil, err
  917. }
  918. return out, nil
  919. }
  920. func (c *volumeServerClient) VolumeDelete(ctx context.Context, in *VolumeDeleteRequest, opts ...grpc.CallOption) (*VolumeDeleteResponse, error) {
  921. out := new(VolumeDeleteResponse)
  922. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeDelete", in, out, c.cc, opts...)
  923. if err != nil {
  924. return nil, err
  925. }
  926. return out, nil
  927. }
  928. func (c *volumeServerClient) VolumeCopy(ctx context.Context, in *VolumeCopyRequest, opts ...grpc.CallOption) (*VolumeCopyResponse, error) {
  929. out := new(VolumeCopyResponse)
  930. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeCopy", in, out, c.cc, opts...)
  931. if err != nil {
  932. return nil, err
  933. }
  934. return out, nil
  935. }
  936. func (c *volumeServerClient) ReadVolumeFileStatus(ctx context.Context, in *ReadVolumeFileStatusRequest, opts ...grpc.CallOption) (*ReadVolumeFileStatusResponse, error) {
  937. out := new(ReadVolumeFileStatusResponse)
  938. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/ReadVolumeFileStatus", in, out, c.cc, opts...)
  939. if err != nil {
  940. return nil, err
  941. }
  942. return out, nil
  943. }
  944. func (c *volumeServerClient) CopyFile(ctx context.Context, in *CopyFileRequest, opts ...grpc.CallOption) (VolumeServer_CopyFileClient, error) {
  945. stream, err := grpc.NewClientStream(ctx, &_VolumeServer_serviceDesc.Streams[1], c.cc, "/volume_server_pb.VolumeServer/CopyFile", opts...)
  946. if err != nil {
  947. return nil, err
  948. }
  949. x := &volumeServerCopyFileClient{stream}
  950. if err := x.ClientStream.SendMsg(in); err != nil {
  951. return nil, err
  952. }
  953. if err := x.ClientStream.CloseSend(); err != nil {
  954. return nil, err
  955. }
  956. return x, nil
  957. }
  958. type VolumeServer_CopyFileClient interface {
  959. Recv() (*CopyFileResponse, error)
  960. grpc.ClientStream
  961. }
  962. type volumeServerCopyFileClient struct {
  963. grpc.ClientStream
  964. }
  965. func (x *volumeServerCopyFileClient) Recv() (*CopyFileResponse, error) {
  966. m := new(CopyFileResponse)
  967. if err := x.ClientStream.RecvMsg(m); err != nil {
  968. return nil, err
  969. }
  970. return m, nil
  971. }
  972. func (c *volumeServerClient) VolumeTail(ctx context.Context, in *VolumeTailRequest, opts ...grpc.CallOption) (VolumeServer_VolumeTailClient, error) {
  973. stream, err := grpc.NewClientStream(ctx, &_VolumeServer_serviceDesc.Streams[2], c.cc, "/volume_server_pb.VolumeServer/VolumeTail", opts...)
  974. if err != nil {
  975. return nil, err
  976. }
  977. x := &volumeServerVolumeTailClient{stream}
  978. if err := x.ClientStream.SendMsg(in); err != nil {
  979. return nil, err
  980. }
  981. if err := x.ClientStream.CloseSend(); err != nil {
  982. return nil, err
  983. }
  984. return x, nil
  985. }
  986. type VolumeServer_VolumeTailClient interface {
  987. Recv() (*VolumeTailResponse, error)
  988. grpc.ClientStream
  989. }
  990. type volumeServerVolumeTailClient struct {
  991. grpc.ClientStream
  992. }
  993. func (x *volumeServerVolumeTailClient) Recv() (*VolumeTailResponse, error) {
  994. m := new(VolumeTailResponse)
  995. if err := x.ClientStream.RecvMsg(m); err != nil {
  996. return nil, err
  997. }
  998. return m, nil
  999. }
  1000. // Server API for VolumeServer service
  1001. type VolumeServerServer interface {
  1002. // Experts only: takes multiple fid parameters. This function does not propagate deletes to replicas.
  1003. BatchDelete(context.Context, *BatchDeleteRequest) (*BatchDeleteResponse, error)
  1004. VacuumVolumeCheck(context.Context, *VacuumVolumeCheckRequest) (*VacuumVolumeCheckResponse, error)
  1005. VacuumVolumeCompact(context.Context, *VacuumVolumeCompactRequest) (*VacuumVolumeCompactResponse, error)
  1006. VacuumVolumeCommit(context.Context, *VacuumVolumeCommitRequest) (*VacuumVolumeCommitResponse, error)
  1007. VacuumVolumeCleanup(context.Context, *VacuumVolumeCleanupRequest) (*VacuumVolumeCleanupResponse, error)
  1008. DeleteCollection(context.Context, *DeleteCollectionRequest) (*DeleteCollectionResponse, error)
  1009. AllocateVolume(context.Context, *AllocateVolumeRequest) (*AllocateVolumeResponse, error)
  1010. VolumeSyncStatus(context.Context, *VolumeSyncStatusRequest) (*VolumeSyncStatusResponse, error)
  1011. VolumeIncrementalCopy(*VolumeIncrementalCopyRequest, VolumeServer_VolumeIncrementalCopyServer) error
  1012. VolumeMount(context.Context, *VolumeMountRequest) (*VolumeMountResponse, error)
  1013. VolumeUnmount(context.Context, *VolumeUnmountRequest) (*VolumeUnmountResponse, error)
  1014. VolumeDelete(context.Context, *VolumeDeleteRequest) (*VolumeDeleteResponse, error)
  1015. // copy the .idx .dat files, and mount this volume
  1016. VolumeCopy(context.Context, *VolumeCopyRequest) (*VolumeCopyResponse, error)
  1017. ReadVolumeFileStatus(context.Context, *ReadVolumeFileStatusRequest) (*ReadVolumeFileStatusResponse, error)
  1018. CopyFile(*CopyFileRequest, VolumeServer_CopyFileServer) error
  1019. VolumeTail(*VolumeTailRequest, VolumeServer_VolumeTailServer) error
  1020. }
  1021. func RegisterVolumeServerServer(s *grpc.Server, srv VolumeServerServer) {
  1022. s.RegisterService(&_VolumeServer_serviceDesc, srv)
  1023. }
  1024. func _VolumeServer_BatchDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1025. in := new(BatchDeleteRequest)
  1026. if err := dec(in); err != nil {
  1027. return nil, err
  1028. }
  1029. if interceptor == nil {
  1030. return srv.(VolumeServerServer).BatchDelete(ctx, in)
  1031. }
  1032. info := &grpc.UnaryServerInfo{
  1033. Server: srv,
  1034. FullMethod: "/volume_server_pb.VolumeServer/BatchDelete",
  1035. }
  1036. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1037. return srv.(VolumeServerServer).BatchDelete(ctx, req.(*BatchDeleteRequest))
  1038. }
  1039. return interceptor(ctx, in, info, handler)
  1040. }
  1041. func _VolumeServer_VacuumVolumeCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1042. in := new(VacuumVolumeCheckRequest)
  1043. if err := dec(in); err != nil {
  1044. return nil, err
  1045. }
  1046. if interceptor == nil {
  1047. return srv.(VolumeServerServer).VacuumVolumeCheck(ctx, in)
  1048. }
  1049. info := &grpc.UnaryServerInfo{
  1050. Server: srv,
  1051. FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCheck",
  1052. }
  1053. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1054. return srv.(VolumeServerServer).VacuumVolumeCheck(ctx, req.(*VacuumVolumeCheckRequest))
  1055. }
  1056. return interceptor(ctx, in, info, handler)
  1057. }
  1058. func _VolumeServer_VacuumVolumeCompact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1059. in := new(VacuumVolumeCompactRequest)
  1060. if err := dec(in); err != nil {
  1061. return nil, err
  1062. }
  1063. if interceptor == nil {
  1064. return srv.(VolumeServerServer).VacuumVolumeCompact(ctx, in)
  1065. }
  1066. info := &grpc.UnaryServerInfo{
  1067. Server: srv,
  1068. FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCompact",
  1069. }
  1070. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1071. return srv.(VolumeServerServer).VacuumVolumeCompact(ctx, req.(*VacuumVolumeCompactRequest))
  1072. }
  1073. return interceptor(ctx, in, info, handler)
  1074. }
  1075. func _VolumeServer_VacuumVolumeCommit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1076. in := new(VacuumVolumeCommitRequest)
  1077. if err := dec(in); err != nil {
  1078. return nil, err
  1079. }
  1080. if interceptor == nil {
  1081. return srv.(VolumeServerServer).VacuumVolumeCommit(ctx, in)
  1082. }
  1083. info := &grpc.UnaryServerInfo{
  1084. Server: srv,
  1085. FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCommit",
  1086. }
  1087. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1088. return srv.(VolumeServerServer).VacuumVolumeCommit(ctx, req.(*VacuumVolumeCommitRequest))
  1089. }
  1090. return interceptor(ctx, in, info, handler)
  1091. }
  1092. func _VolumeServer_VacuumVolumeCleanup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1093. in := new(VacuumVolumeCleanupRequest)
  1094. if err := dec(in); err != nil {
  1095. return nil, err
  1096. }
  1097. if interceptor == nil {
  1098. return srv.(VolumeServerServer).VacuumVolumeCleanup(ctx, in)
  1099. }
  1100. info := &grpc.UnaryServerInfo{
  1101. Server: srv,
  1102. FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCleanup",
  1103. }
  1104. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1105. return srv.(VolumeServerServer).VacuumVolumeCleanup(ctx, req.(*VacuumVolumeCleanupRequest))
  1106. }
  1107. return interceptor(ctx, in, info, handler)
  1108. }
  1109. func _VolumeServer_DeleteCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1110. in := new(DeleteCollectionRequest)
  1111. if err := dec(in); err != nil {
  1112. return nil, err
  1113. }
  1114. if interceptor == nil {
  1115. return srv.(VolumeServerServer).DeleteCollection(ctx, in)
  1116. }
  1117. info := &grpc.UnaryServerInfo{
  1118. Server: srv,
  1119. FullMethod: "/volume_server_pb.VolumeServer/DeleteCollection",
  1120. }
  1121. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1122. return srv.(VolumeServerServer).DeleteCollection(ctx, req.(*DeleteCollectionRequest))
  1123. }
  1124. return interceptor(ctx, in, info, handler)
  1125. }
  1126. func _VolumeServer_AllocateVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1127. in := new(AllocateVolumeRequest)
  1128. if err := dec(in); err != nil {
  1129. return nil, err
  1130. }
  1131. if interceptor == nil {
  1132. return srv.(VolumeServerServer).AllocateVolume(ctx, in)
  1133. }
  1134. info := &grpc.UnaryServerInfo{
  1135. Server: srv,
  1136. FullMethod: "/volume_server_pb.VolumeServer/AllocateVolume",
  1137. }
  1138. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1139. return srv.(VolumeServerServer).AllocateVolume(ctx, req.(*AllocateVolumeRequest))
  1140. }
  1141. return interceptor(ctx, in, info, handler)
  1142. }
  1143. func _VolumeServer_VolumeSyncStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1144. in := new(VolumeSyncStatusRequest)
  1145. if err := dec(in); err != nil {
  1146. return nil, err
  1147. }
  1148. if interceptor == nil {
  1149. return srv.(VolumeServerServer).VolumeSyncStatus(ctx, in)
  1150. }
  1151. info := &grpc.UnaryServerInfo{
  1152. Server: srv,
  1153. FullMethod: "/volume_server_pb.VolumeServer/VolumeSyncStatus",
  1154. }
  1155. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1156. return srv.(VolumeServerServer).VolumeSyncStatus(ctx, req.(*VolumeSyncStatusRequest))
  1157. }
  1158. return interceptor(ctx, in, info, handler)
  1159. }
  1160. func _VolumeServer_VolumeIncrementalCopy_Handler(srv interface{}, stream grpc.ServerStream) error {
  1161. m := new(VolumeIncrementalCopyRequest)
  1162. if err := stream.RecvMsg(m); err != nil {
  1163. return err
  1164. }
  1165. return srv.(VolumeServerServer).VolumeIncrementalCopy(m, &volumeServerVolumeIncrementalCopyServer{stream})
  1166. }
  1167. type VolumeServer_VolumeIncrementalCopyServer interface {
  1168. Send(*VolumeIncrementalCopyResponse) error
  1169. grpc.ServerStream
  1170. }
  1171. type volumeServerVolumeIncrementalCopyServer struct {
  1172. grpc.ServerStream
  1173. }
  1174. func (x *volumeServerVolumeIncrementalCopyServer) Send(m *VolumeIncrementalCopyResponse) error {
  1175. return x.ServerStream.SendMsg(m)
  1176. }
  1177. func _VolumeServer_VolumeMount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1178. in := new(VolumeMountRequest)
  1179. if err := dec(in); err != nil {
  1180. return nil, err
  1181. }
  1182. if interceptor == nil {
  1183. return srv.(VolumeServerServer).VolumeMount(ctx, in)
  1184. }
  1185. info := &grpc.UnaryServerInfo{
  1186. Server: srv,
  1187. FullMethod: "/volume_server_pb.VolumeServer/VolumeMount",
  1188. }
  1189. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1190. return srv.(VolumeServerServer).VolumeMount(ctx, req.(*VolumeMountRequest))
  1191. }
  1192. return interceptor(ctx, in, info, handler)
  1193. }
  1194. func _VolumeServer_VolumeUnmount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1195. in := new(VolumeUnmountRequest)
  1196. if err := dec(in); err != nil {
  1197. return nil, err
  1198. }
  1199. if interceptor == nil {
  1200. return srv.(VolumeServerServer).VolumeUnmount(ctx, in)
  1201. }
  1202. info := &grpc.UnaryServerInfo{
  1203. Server: srv,
  1204. FullMethod: "/volume_server_pb.VolumeServer/VolumeUnmount",
  1205. }
  1206. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1207. return srv.(VolumeServerServer).VolumeUnmount(ctx, req.(*VolumeUnmountRequest))
  1208. }
  1209. return interceptor(ctx, in, info, handler)
  1210. }
  1211. func _VolumeServer_VolumeDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1212. in := new(VolumeDeleteRequest)
  1213. if err := dec(in); err != nil {
  1214. return nil, err
  1215. }
  1216. if interceptor == nil {
  1217. return srv.(VolumeServerServer).VolumeDelete(ctx, in)
  1218. }
  1219. info := &grpc.UnaryServerInfo{
  1220. Server: srv,
  1221. FullMethod: "/volume_server_pb.VolumeServer/VolumeDelete",
  1222. }
  1223. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1224. return srv.(VolumeServerServer).VolumeDelete(ctx, req.(*VolumeDeleteRequest))
  1225. }
  1226. return interceptor(ctx, in, info, handler)
  1227. }
  1228. func _VolumeServer_VolumeCopy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1229. in := new(VolumeCopyRequest)
  1230. if err := dec(in); err != nil {
  1231. return nil, err
  1232. }
  1233. if interceptor == nil {
  1234. return srv.(VolumeServerServer).VolumeCopy(ctx, in)
  1235. }
  1236. info := &grpc.UnaryServerInfo{
  1237. Server: srv,
  1238. FullMethod: "/volume_server_pb.VolumeServer/VolumeCopy",
  1239. }
  1240. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1241. return srv.(VolumeServerServer).VolumeCopy(ctx, req.(*VolumeCopyRequest))
  1242. }
  1243. return interceptor(ctx, in, info, handler)
  1244. }
  1245. func _VolumeServer_ReadVolumeFileStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1246. in := new(ReadVolumeFileStatusRequest)
  1247. if err := dec(in); err != nil {
  1248. return nil, err
  1249. }
  1250. if interceptor == nil {
  1251. return srv.(VolumeServerServer).ReadVolumeFileStatus(ctx, in)
  1252. }
  1253. info := &grpc.UnaryServerInfo{
  1254. Server: srv,
  1255. FullMethod: "/volume_server_pb.VolumeServer/ReadVolumeFileStatus",
  1256. }
  1257. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1258. return srv.(VolumeServerServer).ReadVolumeFileStatus(ctx, req.(*ReadVolumeFileStatusRequest))
  1259. }
  1260. return interceptor(ctx, in, info, handler)
  1261. }
  1262. func _VolumeServer_CopyFile_Handler(srv interface{}, stream grpc.ServerStream) error {
  1263. m := new(CopyFileRequest)
  1264. if err := stream.RecvMsg(m); err != nil {
  1265. return err
  1266. }
  1267. return srv.(VolumeServerServer).CopyFile(m, &volumeServerCopyFileServer{stream})
  1268. }
  1269. type VolumeServer_CopyFileServer interface {
  1270. Send(*CopyFileResponse) error
  1271. grpc.ServerStream
  1272. }
  1273. type volumeServerCopyFileServer struct {
  1274. grpc.ServerStream
  1275. }
  1276. func (x *volumeServerCopyFileServer) Send(m *CopyFileResponse) error {
  1277. return x.ServerStream.SendMsg(m)
  1278. }
  1279. func _VolumeServer_VolumeTail_Handler(srv interface{}, stream grpc.ServerStream) error {
  1280. m := new(VolumeTailRequest)
  1281. if err := stream.RecvMsg(m); err != nil {
  1282. return err
  1283. }
  1284. return srv.(VolumeServerServer).VolumeTail(m, &volumeServerVolumeTailServer{stream})
  1285. }
  1286. type VolumeServer_VolumeTailServer interface {
  1287. Send(*VolumeTailResponse) error
  1288. grpc.ServerStream
  1289. }
  1290. type volumeServerVolumeTailServer struct {
  1291. grpc.ServerStream
  1292. }
  1293. func (x *volumeServerVolumeTailServer) Send(m *VolumeTailResponse) error {
  1294. return x.ServerStream.SendMsg(m)
  1295. }
  1296. var _VolumeServer_serviceDesc = grpc.ServiceDesc{
  1297. ServiceName: "volume_server_pb.VolumeServer",
  1298. HandlerType: (*VolumeServerServer)(nil),
  1299. Methods: []grpc.MethodDesc{
  1300. {
  1301. MethodName: "BatchDelete",
  1302. Handler: _VolumeServer_BatchDelete_Handler,
  1303. },
  1304. {
  1305. MethodName: "VacuumVolumeCheck",
  1306. Handler: _VolumeServer_VacuumVolumeCheck_Handler,
  1307. },
  1308. {
  1309. MethodName: "VacuumVolumeCompact",
  1310. Handler: _VolumeServer_VacuumVolumeCompact_Handler,
  1311. },
  1312. {
  1313. MethodName: "VacuumVolumeCommit",
  1314. Handler: _VolumeServer_VacuumVolumeCommit_Handler,
  1315. },
  1316. {
  1317. MethodName: "VacuumVolumeCleanup",
  1318. Handler: _VolumeServer_VacuumVolumeCleanup_Handler,
  1319. },
  1320. {
  1321. MethodName: "DeleteCollection",
  1322. Handler: _VolumeServer_DeleteCollection_Handler,
  1323. },
  1324. {
  1325. MethodName: "AllocateVolume",
  1326. Handler: _VolumeServer_AllocateVolume_Handler,
  1327. },
  1328. {
  1329. MethodName: "VolumeSyncStatus",
  1330. Handler: _VolumeServer_VolumeSyncStatus_Handler,
  1331. },
  1332. {
  1333. MethodName: "VolumeMount",
  1334. Handler: _VolumeServer_VolumeMount_Handler,
  1335. },
  1336. {
  1337. MethodName: "VolumeUnmount",
  1338. Handler: _VolumeServer_VolumeUnmount_Handler,
  1339. },
  1340. {
  1341. MethodName: "VolumeDelete",
  1342. Handler: _VolumeServer_VolumeDelete_Handler,
  1343. },
  1344. {
  1345. MethodName: "VolumeCopy",
  1346. Handler: _VolumeServer_VolumeCopy_Handler,
  1347. },
  1348. {
  1349. MethodName: "ReadVolumeFileStatus",
  1350. Handler: _VolumeServer_ReadVolumeFileStatus_Handler,
  1351. },
  1352. },
  1353. Streams: []grpc.StreamDesc{
  1354. {
  1355. StreamName: "VolumeIncrementalCopy",
  1356. Handler: _VolumeServer_VolumeIncrementalCopy_Handler,
  1357. ServerStreams: true,
  1358. },
  1359. {
  1360. StreamName: "CopyFile",
  1361. Handler: _VolumeServer_CopyFile_Handler,
  1362. ServerStreams: true,
  1363. },
  1364. {
  1365. StreamName: "VolumeTail",
  1366. Handler: _VolumeServer_VolumeTail_Handler,
  1367. ServerStreams: true,
  1368. },
  1369. },
  1370. Metadata: "volume_server.proto",
  1371. }
  1372. func init() { proto.RegisterFile("volume_server.proto", fileDescriptor0) }
  1373. var fileDescriptor0 = []byte{
  1374. // 1339 bytes of a gzipped FileDescriptorProto
  1375. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0x58, 0xdd, 0x73, 0x14, 0x45,
  1376. 0x10, 0xcf, 0x72, 0x97, 0xaf, 0xbe, 0x3b, 0x08, 0x13, 0x20, 0xc7, 0xf2, 0xe1, 0x31, 0x20, 0x1c,
  1377. 0x1f, 0x06, 0x85, 0x52, 0x51, 0x1f, 0x14, 0x12, 0x2d, 0x53, 0x25, 0x50, 0xb5, 0x01, 0x4a, 0x0b,
  1378. 0xab, 0xb6, 0x26, 0xbb, 0x93, 0x64, 0x2b, 0x7b, 0xb3, 0xcb, 0xce, 0x6c, 0x24, 0x96, 0xe5, 0x5f,
  1379. 0xe2, 0x9b, 0xe5, 0x8b, 0x0f, 0xfe, 0x83, 0xbe, 0x58, 0xf3, 0xb1, 0x97, 0xfd, 0xcc, 0x2d, 0xf2,
  1380. 0x36, 0xdb, 0xd3, 0xdd, 0xbf, 0xee, 0x9e, 0x9e, 0x9e, 0xdf, 0x1d, 0xac, 0x1e, 0x46, 0x61, 0x3a,
  1381. 0xa1, 0x2e, 0xa7, 0xc9, 0x21, 0x4d, 0xd6, 0xe3, 0x24, 0x12, 0x11, 0x5a, 0x29, 0x08, 0xdd, 0x78,
  1382. 0x07, 0xdf, 0x07, 0xf4, 0x84, 0x08, 0x6f, 0x7f, 0x93, 0x86, 0x54, 0x50, 0x87, 0xbe, 0x49, 0x29,
  1383. 0x17, 0xe8, 0x22, 0x2c, 0xed, 0x06, 0x21, 0x75, 0x03, 0x9f, 0x0f, 0xad, 0x51, 0x67, 0xbc, 0xec,
  1384. 0x2c, 0xca, 0xef, 0x2d, 0x9f, 0xe3, 0xe7, 0xb0, 0x5a, 0x30, 0xe0, 0x71, 0xc4, 0x38, 0x45, 0x8f,
  1385. 0x60, 0x31, 0xa1, 0x3c, 0x0d, 0x85, 0x36, 0xe8, 0x3d, 0xb8, 0xba, 0x5e, 0xc6, 0x5a, 0x9f, 0x9a,
  1386. 0xa4, 0xa1, 0x70, 0x32, 0x75, 0x1c, 0x40, 0x3f, 0xbf, 0x81, 0xd6, 0x60, 0xd1, 0x60, 0x0f, 0xad,
  1387. 0x91, 0x35, 0x5e, 0x76, 0x16, 0x34, 0x34, 0xba, 0x00, 0x0b, 0x5c, 0x10, 0x91, 0xf2, 0xe1, 0xa9,
  1388. 0x91, 0x35, 0x9e, 0x77, 0xcc, 0x17, 0x3a, 0x07, 0xf3, 0x34, 0x49, 0xa2, 0x64, 0xd8, 0x51, 0xea,
  1389. 0xfa, 0x03, 0x21, 0xe8, 0xf2, 0xe0, 0x57, 0x3a, 0xec, 0x8e, 0xac, 0xf1, 0xc0, 0x51, 0x6b, 0xbc,
  1390. 0x08, 0xf3, 0xdf, 0x4e, 0x62, 0x71, 0x84, 0x3f, 0x87, 0xe1, 0x2b, 0xe2, 0xa5, 0xe9, 0xe4, 0x95,
  1391. 0x8a, 0x71, 0x63, 0x9f, 0x7a, 0x07, 0x59, 0xee, 0x97, 0x60, 0xd9, 0x44, 0x6e, 0x22, 0x18, 0x38,
  1392. 0x4b, 0x5a, 0xb0, 0xe5, 0xe3, 0x6f, 0xe0, 0x62, 0x8d, 0xa1, 0xa9, 0xc1, 0x75, 0x18, 0xec, 0x91,
  1393. 0x64, 0x87, 0xec, 0x51, 0x37, 0x21, 0x22, 0x88, 0x94, 0xb5, 0xe5, 0xf4, 0x8d, 0xd0, 0x91, 0x32,
  1394. 0xfc, 0x1a, 0xec, 0x82, 0x87, 0x68, 0x12, 0x13, 0x4f, 0xb4, 0x01, 0x47, 0x23, 0xe8, 0xc5, 0x09,
  1395. 0x25, 0x61, 0x18, 0x79, 0x44, 0x50, 0x55, 0x85, 0x8e, 0x93, 0x17, 0xe1, 0x2b, 0x70, 0xa9, 0xd6,
  1396. 0xb9, 0x0e, 0x10, 0x3f, 0x2a, 0x45, 0x1f, 0x4d, 0x26, 0x41, 0x2b, 0x68, 0x7c, 0xb9, 0x12, 0xb5,
  1397. 0xb2, 0x34, 0x7e, 0xbf, 0x28, 0xed, 0x86, 0x94, 0xb0, 0x34, 0x6e, 0xe5, 0xb8, 0x1c, 0x71, 0x66,
  1398. 0x3a, 0xf5, 0xbc, 0xa6, 0x9b, 0x63, 0x23, 0x0a, 0x43, 0xea, 0x89, 0x20, 0x62, 0x99, 0xdb, 0xab,
  1399. 0x00, 0xde, 0x54, 0x68, 0x5a, 0x25, 0x27, 0xc1, 0x36, 0x0c, 0xab, 0xa6, 0xc6, 0xed, 0xdf, 0x16,
  1400. 0x9c, 0x7f, 0x6c, 0x8a, 0xa6, 0x81, 0x5b, 0x1d, 0x40, 0x11, 0xf2, 0x54, 0x19, 0xb2, 0x7c, 0x40,
  1401. 0x9d, 0xca, 0x01, 0x49, 0x8d, 0x84, 0xc6, 0x61, 0xe0, 0x11, 0xe5, 0xa2, 0xab, 0x5c, 0xe4, 0x45,
  1402. 0x68, 0x05, 0x3a, 0x42, 0x84, 0xc3, 0x79, 0xb5, 0x23, 0x97, 0x78, 0x08, 0x17, 0xca, 0xb1, 0x9a,
  1403. 0x34, 0x3e, 0x83, 0x35, 0x2d, 0xd9, 0x3e, 0x62, 0xde, 0xb6, 0xba, 0x0d, 0xad, 0x8a, 0xfe, 0xaf,
  1404. 0x05, 0xc3, 0xaa, 0xa1, 0xe9, 0xe2, 0xf7, 0xad, 0xc0, 0xbb, 0xe6, 0x87, 0x3e, 0x80, 0x9e, 0x20,
  1405. 0x41, 0xe8, 0x46, 0xbb, 0xbb, 0x9c, 0x8a, 0xe1, 0xc2, 0xc8, 0x1a, 0x77, 0x1d, 0x90, 0xa2, 0xe7,
  1406. 0x4a, 0x82, 0x6e, 0xc3, 0x8a, 0xa7, 0x3b, 0xd9, 0x4d, 0xe8, 0x61, 0xc0, 0xa5, 0xe7, 0x45, 0x15,
  1407. 0xd8, 0x19, 0x2f, 0xeb, 0x70, 0x2d, 0x46, 0x18, 0x06, 0x81, 0xff, 0xd6, 0x55, 0x03, 0x44, 0x5d,
  1408. 0xff, 0x25, 0xe5, 0xad, 0x17, 0xf8, 0x6f, 0xbf, 0x0b, 0x42, 0xba, 0x2d, 0xa7, 0xc0, 0x2b, 0xb8,
  1409. 0xac, 0x93, 0xdf, 0x62, 0x5e, 0x42, 0x27, 0x94, 0x09, 0x12, 0x6e, 0x44, 0xf1, 0x51, 0xab, 0x16,
  1410. 0xb8, 0x08, 0x4b, 0x3c, 0x60, 0x1e, 0x75, 0x99, 0x1e, 0x43, 0x5d, 0x67, 0x51, 0x7d, 0x3f, 0xe3,
  1411. 0xf8, 0x09, 0x5c, 0x69, 0xf0, 0x6b, 0x2a, 0x7b, 0x0d, 0xfa, 0x2a, 0x30, 0x2f, 0x62, 0x82, 0x32,
  1412. 0xa1, 0x7c, 0xf7, 0x9d, 0x9e, 0x94, 0x6d, 0x68, 0x11, 0xfe, 0x04, 0x90, 0xf6, 0xf1, 0x34, 0x4a,
  1413. 0x59, 0xbb, 0xab, 0x79, 0x1e, 0x56, 0x0b, 0x26, 0xa6, 0x37, 0x1e, 0xc2, 0x39, 0x2d, 0x7e, 0xc9,
  1414. 0x26, 0xad, 0x7d, 0xad, 0xc1, 0xf9, 0x92, 0x91, 0xf1, 0xf6, 0x20, 0x03, 0x29, 0xbe, 0x13, 0x27,
  1415. 0x3a, 0xbb, 0x90, 0x45, 0x50, 0x7c, 0x2a, 0xf0, 0x3f, 0x16, 0x9c, 0xcd, 0xc6, 0x48, 0xcb, 0xaa,
  1416. 0xbf, 0x63, 0xdb, 0x75, 0x1a, 0xdb, 0xae, 0x7b, 0xdc, 0x76, 0x63, 0x58, 0xe1, 0x51, 0x9a, 0x78,
  1417. 0xd4, 0xf5, 0x89, 0x20, 0x2e, 0x8b, 0x7c, 0x6a, 0xba, 0xf2, 0xb4, 0x96, 0x6f, 0x12, 0x41, 0x9e,
  1418. 0x45, 0x3e, 0xc5, 0x5f, 0x67, 0x87, 0x52, 0x38, 0xcd, 0xdb, 0x70, 0x36, 0x24, 0x5c, 0xb8, 0x24,
  1419. 0x8e, 0x29, 0xf3, 0x5d, 0x22, 0x64, 0x4b, 0x58, 0xaa, 0x25, 0x4e, 0xcb, 0x8d, 0xc7, 0x4a, 0xfe,
  1420. 0x58, 0x3c, 0xe3, 0x98, 0xc1, 0x19, 0x69, 0x2a, 0x3b, 0xb0, 0x65, 0xba, 0xbd, 0x80, 0xbb, 0x59,
  1421. 0x23, 0xab, 0x7c, 0x97, 0x9c, 0xe5, 0x80, 0x6f, 0xe9, 0x2e, 0x36, 0xfb, 0x3e, 0x11, 0x7a, 0xbf,
  1422. 0x93, 0xed, 0x6f, 0x12, 0x21, 0xf7, 0xf1, 0xa7, 0xb0, 0x72, 0x8c, 0xd7, 0xbe, 0xf9, 0xd2, 0xec,
  1423. 0x5c, 0x5e, 0x90, 0x20, 0x7c, 0xcf, 0xdb, 0x80, 0xc6, 0x70, 0xc6, 0x4f, 0x48, 0xc0, 0x02, 0xb6,
  1424. 0xb7, 0x4d, 0xbd, 0x88, 0xf9, 0x5c, 0xc5, 0x39, 0x70, 0xca, 0x62, 0xfc, 0x7b, 0x56, 0x5e, 0x0d,
  1425. 0x7b, 0xfc, 0x98, 0x32, 0x4a, 0xfd, 0x90, 0xba, 0xfb, 0x94, 0xf8, 0x34, 0x31, 0x01, 0xf7, 0xb5,
  1426. 0xf0, 0x7b, 0x25, 0x93, 0xa3, 0xc3, 0x28, 0xed, 0x44, 0xfe, 0x91, 0x0a, 0xa1, 0xef, 0x80, 0x16,
  1427. 0x3d, 0x89, 0xfc, 0x23, 0x35, 0x0f, 0xb8, 0xab, 0xce, 0xc9, 0xdb, 0x4f, 0xd9, 0x81, 0xa9, 0x55,
  1428. 0x2f, 0xe0, 0x3f, 0x10, 0x2e, 0x36, 0xa4, 0x08, 0x7f, 0x09, 0x97, 0x1c, 0x4a, 0x7c, 0x1d, 0x83,
  1429. 0x9a, 0x12, 0xed, 0x27, 0xe9, 0x1f, 0xa7, 0xe0, 0x72, 0xbd, 0x71, 0x9b, 0x69, 0xfa, 0x15, 0xd8,
  1430. 0xd3, 0x69, 0x25, 0x82, 0x09, 0xe5, 0x82, 0x4c, 0x62, 0x97, 0x9b, 0x72, 0xe9, 0x82, 0xae, 0x99,
  1431. 0xd1, 0xf5, 0x22, 0xdb, 0x37, 0x65, 0xab, 0x8e, 0xba, 0x4e, 0x65, 0xd4, 0x49, 0x80, 0xac, 0x4b,
  1432. 0x6a, 0x00, 0xba, 0x1a, 0xc0, 0xd7, 0x5d, 0x53, 0x07, 0x30, 0x35, 0x56, 0x00, 0xf3, 0x1a, 0xc0,
  1433. 0xe8, 0x2b, 0x80, 0x2b, 0x00, 0xa6, 0xab, 0x52, 0x96, 0x8d, 0xee, 0x65, 0xdd, 0x53, 0x29, 0x13,
  1434. 0xf8, 0x47, 0x80, 0xcd, 0x80, 0x1f, 0xe8, 0x9a, 0xc8, 0x3b, 0xe8, 0x07, 0x89, 0x79, 0xaa, 0xe5,
  1435. 0x52, 0x4a, 0x48, 0x18, 0x9a, 0x4c, 0xe5, 0x52, 0xd2, 0xb6, 0x94, 0x53, 0xdf, 0x24, 0xa3, 0xd6,
  1436. 0x52, 0xb6, 0x9b, 0x50, 0x6a, 0xe2, 0x55, 0x6b, 0xfc, 0xa7, 0x05, 0xcb, 0x4f, 0xe9, 0xc4, 0x78,
  1437. 0xbe, 0x0a, 0xb0, 0x17, 0x25, 0x51, 0x2a, 0x02, 0x46, 0xf5, 0x25, 0x9c, 0x77, 0x72, 0x92, 0xff,
  1438. 0x8f, 0xa3, 0x68, 0x24, 0x0d, 0x77, 0x4d, 0xee, 0x6a, 0x2d, 0x65, 0xfb, 0x94, 0xc4, 0x26, 0x5d,
  1439. 0xb5, 0x96, 0x24, 0x94, 0x0b, 0xe2, 0x1d, 0xa8, 0x87, 0xa9, 0xeb, 0xe8, 0x8f, 0x07, 0x7f, 0x0d,
  1440. 0xa0, 0x6f, 0x1e, 0x5a, 0xc5, 0x82, 0xd1, 0xcf, 0xd0, 0xcb, 0xb1, 0x67, 0x74, 0xa3, 0x4a, 0x92,
  1441. 0xab, 0x6c, 0xdc, 0xfe, 0x70, 0x86, 0x96, 0x99, 0xab, 0x73, 0x88, 0xc1, 0xd9, 0x0a, 0x3b, 0x45,
  1442. 0x77, 0xaa, 0xd6, 0x4d, 0xdc, 0xd7, 0xbe, 0xdb, 0x4a, 0x77, 0x8a, 0x27, 0x60, 0xb5, 0x86, 0x6e,
  1443. 0xa2, 0x7b, 0x33, 0xbc, 0x14, 0x28, 0xaf, 0xfd, 0x51, 0x4b, 0xed, 0x29, 0xea, 0x1b, 0x40, 0x55,
  1444. 0x2e, 0x8a, 0xee, 0xce, 0x74, 0x73, 0xcc, 0x75, 0xed, 0x7b, 0xed, 0x94, 0x1b, 0x13, 0xd5, 0x2c,
  1445. 0x75, 0x66, 0xa2, 0x05, 0x1e, 0x3c, 0x33, 0xd1, 0x12, 0xf5, 0x9d, 0x43, 0x07, 0xb0, 0x52, 0x66,
  1446. 0xb0, 0xe8, 0x76, 0xd3, 0xcf, 0xaa, 0x0a, 0x41, 0xb6, 0xef, 0xb4, 0x51, 0x9d, 0x82, 0x51, 0x38,
  1447. 0x5d, 0x64, 0x99, 0xe8, 0x56, 0xd5, 0xbe, 0x96, 0x33, 0xdb, 0xe3, 0xd9, 0x8a, 0xf9, 0x9c, 0xca,
  1448. 0xcc, 0xb3, 0x2e, 0xa7, 0x06, 0x5a, 0x5b, 0x97, 0x53, 0x13, 0x91, 0xc5, 0x73, 0xe8, 0xb7, 0x8c,
  1449. 0xce, 0x94, 0x18, 0x19, 0x5a, 0x6f, 0x72, 0x53, 0x4f, 0x09, 0xed, 0xfb, 0xad, 0xf5, 0x33, 0xec,
  1450. 0x8f, 0x2d, 0x79, 0xd7, 0x73, 0xc4, 0xac, 0xee, 0xae, 0x57, 0xa9, 0x5e, 0xdd, 0x5d, 0xaf, 0x63,
  1451. 0x77, 0x73, 0x68, 0x07, 0x06, 0x05, 0xaa, 0x86, 0x6e, 0x36, 0x59, 0x16, 0x09, 0xa0, 0x7d, 0x6b,
  1452. 0xa6, 0xde, 0x14, 0xc3, 0xcd, 0xa6, 0x97, 0x19, 0x57, 0x8d, 0xc1, 0x15, 0xe7, 0xd5, 0xcd, 0x59,
  1453. 0x6a, 0x53, 0x80, 0x9f, 0x00, 0x8e, 0x99, 0x15, 0xba, 0xde, 0x64, 0x97, 0x3f, 0x8a, 0x1b, 0x27,
  1454. 0x2b, 0x4d, 0x5d, 0xff, 0x02, 0xe7, 0xea, 0x1e, 0x66, 0x54, 0x73, 0x0b, 0x4f, 0x78, 0xfd, 0xed,
  1455. 0xf5, 0xb6, 0xea, 0x53, 0xe0, 0x97, 0xb0, 0x94, 0x91, 0x2f, 0x74, 0xad, 0x6a, 0x5d, 0x22, 0x82,
  1456. 0x36, 0x3e, 0x49, 0x25, 0xd7, 0x4d, 0xaf, 0xb3, 0x52, 0x49, 0x96, 0xd4, 0x5c, 0xaa, 0x1c, 0x75,
  1457. 0x6b, 0x2e, 0x55, 0x9e, 0x68, 0x49, 0xe7, 0x3b, 0x0b, 0xea, 0xef, 0xa1, 0x87, 0xff, 0x05, 0x00,
  1458. 0x00, 0xff, 0xff, 0xfc, 0x26, 0x3f, 0x74, 0x35, 0x12, 0x00, 0x00,
  1459. }