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.

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