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.

1635 lines
62 KiB

  1. // Code generated by protoc-gen-go.
  2. // source: volume_server.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package volume_server_pb is a generated protocol buffer package.
  6. It is generated from these files:
  7. volume_server.proto
  8. It has these top-level messages:
  9. BatchDeleteRequest
  10. BatchDeleteResponse
  11. DeleteResult
  12. Empty
  13. VacuumVolumeCheckRequest
  14. VacuumVolumeCheckResponse
  15. VacuumVolumeCompactRequest
  16. VacuumVolumeCompactResponse
  17. VacuumVolumeCommitRequest
  18. VacuumVolumeCommitResponse
  19. VacuumVolumeCleanupRequest
  20. VacuumVolumeCleanupResponse
  21. DeleteCollectionRequest
  22. DeleteCollectionResponse
  23. AssignVolumeRequest
  24. AssignVolumeResponse
  25. VolumeSyncStatusRequest
  26. VolumeSyncStatusResponse
  27. VolumeSyncIndexRequest
  28. VolumeSyncIndexResponse
  29. VolumeSyncDataRequest
  30. VolumeSyncDataResponse
  31. VolumeMountRequest
  32. VolumeMountResponse
  33. VolumeUnmountRequest
  34. VolumeUnmountResponse
  35. VolumeDeleteRequest
  36. VolumeDeleteResponse
  37. ReplicateVolumeRequest
  38. ReplicateVolumeResponse
  39. CopyFileRequest
  40. CopyFileResponse
  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 AssignVolumeRequest 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 *AssignVolumeRequest) Reset() { *m = AssignVolumeRequest{} }
  246. func (m *AssignVolumeRequest) String() string { return proto.CompactTextString(m) }
  247. func (*AssignVolumeRequest) ProtoMessage() {}
  248. func (*AssignVolumeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
  249. func (m *AssignVolumeRequest) GetVolumeId() uint32 {
  250. if m != nil {
  251. return m.VolumeId
  252. }
  253. return 0
  254. }
  255. func (m *AssignVolumeRequest) GetCollection() string {
  256. if m != nil {
  257. return m.Collection
  258. }
  259. return ""
  260. }
  261. func (m *AssignVolumeRequest) GetPreallocate() int64 {
  262. if m != nil {
  263. return m.Preallocate
  264. }
  265. return 0
  266. }
  267. func (m *AssignVolumeRequest) GetReplication() string {
  268. if m != nil {
  269. return m.Replication
  270. }
  271. return ""
  272. }
  273. func (m *AssignVolumeRequest) GetTtl() string {
  274. if m != nil {
  275. return m.Ttl
  276. }
  277. return ""
  278. }
  279. type AssignVolumeResponse struct {
  280. }
  281. func (m *AssignVolumeResponse) Reset() { *m = AssignVolumeResponse{} }
  282. func (m *AssignVolumeResponse) String() string { return proto.CompactTextString(m) }
  283. func (*AssignVolumeResponse) ProtoMessage() {}
  284. func (*AssignVolumeResponse) 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 VolumeSyncIndexRequest struct {
  354. VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
  355. }
  356. func (m *VolumeSyncIndexRequest) Reset() { *m = VolumeSyncIndexRequest{} }
  357. func (m *VolumeSyncIndexRequest) String() string { return proto.CompactTextString(m) }
  358. func (*VolumeSyncIndexRequest) ProtoMessage() {}
  359. func (*VolumeSyncIndexRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
  360. func (m *VolumeSyncIndexRequest) GetVolumeId() uint32 {
  361. if m != nil {
  362. return m.VolumeId
  363. }
  364. return 0
  365. }
  366. type VolumeSyncIndexResponse struct {
  367. IndexFileContent []byte `protobuf:"bytes,1,opt,name=index_file_content,json=indexFileContent,proto3" json:"index_file_content,omitempty"`
  368. }
  369. func (m *VolumeSyncIndexResponse) Reset() { *m = VolumeSyncIndexResponse{} }
  370. func (m *VolumeSyncIndexResponse) String() string { return proto.CompactTextString(m) }
  371. func (*VolumeSyncIndexResponse) ProtoMessage() {}
  372. func (*VolumeSyncIndexResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} }
  373. func (m *VolumeSyncIndexResponse) GetIndexFileContent() []byte {
  374. if m != nil {
  375. return m.IndexFileContent
  376. }
  377. return nil
  378. }
  379. type VolumeSyncDataRequest struct {
  380. VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
  381. Revision uint32 `protobuf:"varint,2,opt,name=revision" json:"revision,omitempty"`
  382. Offset uint32 `protobuf:"varint,3,opt,name=offset" json:"offset,omitempty"`
  383. Size uint32 `protobuf:"varint,4,opt,name=size" json:"size,omitempty"`
  384. NeedleId string `protobuf:"bytes,5,opt,name=needle_id,json=needleId" json:"needle_id,omitempty"`
  385. }
  386. func (m *VolumeSyncDataRequest) Reset() { *m = VolumeSyncDataRequest{} }
  387. func (m *VolumeSyncDataRequest) String() string { return proto.CompactTextString(m) }
  388. func (*VolumeSyncDataRequest) ProtoMessage() {}
  389. func (*VolumeSyncDataRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} }
  390. func (m *VolumeSyncDataRequest) GetVolumeId() uint32 {
  391. if m != nil {
  392. return m.VolumeId
  393. }
  394. return 0
  395. }
  396. func (m *VolumeSyncDataRequest) GetRevision() uint32 {
  397. if m != nil {
  398. return m.Revision
  399. }
  400. return 0
  401. }
  402. func (m *VolumeSyncDataRequest) GetOffset() uint32 {
  403. if m != nil {
  404. return m.Offset
  405. }
  406. return 0
  407. }
  408. func (m *VolumeSyncDataRequest) GetSize() uint32 {
  409. if m != nil {
  410. return m.Size
  411. }
  412. return 0
  413. }
  414. func (m *VolumeSyncDataRequest) GetNeedleId() string {
  415. if m != nil {
  416. return m.NeedleId
  417. }
  418. return ""
  419. }
  420. type VolumeSyncDataResponse struct {
  421. FileContent []byte `protobuf:"bytes,1,opt,name=file_content,json=fileContent,proto3" json:"file_content,omitempty"`
  422. }
  423. func (m *VolumeSyncDataResponse) Reset() { *m = VolumeSyncDataResponse{} }
  424. func (m *VolumeSyncDataResponse) String() string { return proto.CompactTextString(m) }
  425. func (*VolumeSyncDataResponse) ProtoMessage() {}
  426. func (*VolumeSyncDataResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} }
  427. func (m *VolumeSyncDataResponse) GetFileContent() []byte {
  428. if m != nil {
  429. return m.FileContent
  430. }
  431. return nil
  432. }
  433. type VolumeMountRequest struct {
  434. VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
  435. }
  436. func (m *VolumeMountRequest) Reset() { *m = VolumeMountRequest{} }
  437. func (m *VolumeMountRequest) String() string { return proto.CompactTextString(m) }
  438. func (*VolumeMountRequest) ProtoMessage() {}
  439. func (*VolumeMountRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{22} }
  440. func (m *VolumeMountRequest) GetVolumeId() uint32 {
  441. if m != nil {
  442. return m.VolumeId
  443. }
  444. return 0
  445. }
  446. type VolumeMountResponse struct {
  447. }
  448. func (m *VolumeMountResponse) Reset() { *m = VolumeMountResponse{} }
  449. func (m *VolumeMountResponse) String() string { return proto.CompactTextString(m) }
  450. func (*VolumeMountResponse) ProtoMessage() {}
  451. func (*VolumeMountResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{23} }
  452. type VolumeUnmountRequest struct {
  453. VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
  454. }
  455. func (m *VolumeUnmountRequest) Reset() { *m = VolumeUnmountRequest{} }
  456. func (m *VolumeUnmountRequest) String() string { return proto.CompactTextString(m) }
  457. func (*VolumeUnmountRequest) ProtoMessage() {}
  458. func (*VolumeUnmountRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{24} }
  459. func (m *VolumeUnmountRequest) GetVolumeId() uint32 {
  460. if m != nil {
  461. return m.VolumeId
  462. }
  463. return 0
  464. }
  465. type VolumeUnmountResponse struct {
  466. }
  467. func (m *VolumeUnmountResponse) Reset() { *m = VolumeUnmountResponse{} }
  468. func (m *VolumeUnmountResponse) String() string { return proto.CompactTextString(m) }
  469. func (*VolumeUnmountResponse) ProtoMessage() {}
  470. func (*VolumeUnmountResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{25} }
  471. type VolumeDeleteRequest struct {
  472. VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
  473. }
  474. func (m *VolumeDeleteRequest) Reset() { *m = VolumeDeleteRequest{} }
  475. func (m *VolumeDeleteRequest) String() string { return proto.CompactTextString(m) }
  476. func (*VolumeDeleteRequest) ProtoMessage() {}
  477. func (*VolumeDeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{26} }
  478. func (m *VolumeDeleteRequest) GetVolumeId() uint32 {
  479. if m != nil {
  480. return m.VolumeId
  481. }
  482. return 0
  483. }
  484. type VolumeDeleteResponse struct {
  485. }
  486. func (m *VolumeDeleteResponse) Reset() { *m = VolumeDeleteResponse{} }
  487. func (m *VolumeDeleteResponse) String() string { return proto.CompactTextString(m) }
  488. func (*VolumeDeleteResponse) ProtoMessage() {}
  489. func (*VolumeDeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{27} }
  490. type ReplicateVolumeRequest struct {
  491. VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
  492. Collection string `protobuf:"bytes,2,opt,name=collection" json:"collection,omitempty"`
  493. Replication string `protobuf:"bytes,3,opt,name=replication" json:"replication,omitempty"`
  494. Ttl string `protobuf:"bytes,4,opt,name=ttl" json:"ttl,omitempty"`
  495. SourceDataNode string `protobuf:"bytes,5,opt,name=source_data_node,json=sourceDataNode" json:"source_data_node,omitempty"`
  496. }
  497. func (m *ReplicateVolumeRequest) Reset() { *m = ReplicateVolumeRequest{} }
  498. func (m *ReplicateVolumeRequest) String() string { return proto.CompactTextString(m) }
  499. func (*ReplicateVolumeRequest) ProtoMessage() {}
  500. func (*ReplicateVolumeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{28} }
  501. func (m *ReplicateVolumeRequest) GetVolumeId() uint32 {
  502. if m != nil {
  503. return m.VolumeId
  504. }
  505. return 0
  506. }
  507. func (m *ReplicateVolumeRequest) GetCollection() string {
  508. if m != nil {
  509. return m.Collection
  510. }
  511. return ""
  512. }
  513. func (m *ReplicateVolumeRequest) GetReplication() string {
  514. if m != nil {
  515. return m.Replication
  516. }
  517. return ""
  518. }
  519. func (m *ReplicateVolumeRequest) GetTtl() string {
  520. if m != nil {
  521. return m.Ttl
  522. }
  523. return ""
  524. }
  525. func (m *ReplicateVolumeRequest) GetSourceDataNode() string {
  526. if m != nil {
  527. return m.SourceDataNode
  528. }
  529. return ""
  530. }
  531. type ReplicateVolumeResponse struct {
  532. }
  533. func (m *ReplicateVolumeResponse) Reset() { *m = ReplicateVolumeResponse{} }
  534. func (m *ReplicateVolumeResponse) String() string { return proto.CompactTextString(m) }
  535. func (*ReplicateVolumeResponse) ProtoMessage() {}
  536. func (*ReplicateVolumeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{29} }
  537. type CopyFileRequest struct {
  538. VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
  539. IsIdxFile bool `protobuf:"varint,2,opt,name=is_idx_file,json=isIdxFile" json:"is_idx_file,omitempty"`
  540. IsDatFile bool `protobuf:"varint,3,opt,name=is_dat_file,json=isDatFile" json:"is_dat_file,omitempty"`
  541. }
  542. func (m *CopyFileRequest) Reset() { *m = CopyFileRequest{} }
  543. func (m *CopyFileRequest) String() string { return proto.CompactTextString(m) }
  544. func (*CopyFileRequest) ProtoMessage() {}
  545. func (*CopyFileRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{30} }
  546. func (m *CopyFileRequest) GetVolumeId() uint32 {
  547. if m != nil {
  548. return m.VolumeId
  549. }
  550. return 0
  551. }
  552. func (m *CopyFileRequest) GetIsIdxFile() bool {
  553. if m != nil {
  554. return m.IsIdxFile
  555. }
  556. return false
  557. }
  558. func (m *CopyFileRequest) GetIsDatFile() bool {
  559. if m != nil {
  560. return m.IsDatFile
  561. }
  562. return false
  563. }
  564. type CopyFileResponse struct {
  565. FileContent []byte `protobuf:"bytes,1,opt,name=file_content,json=fileContent,proto3" json:"file_content,omitempty"`
  566. }
  567. func (m *CopyFileResponse) Reset() { *m = CopyFileResponse{} }
  568. func (m *CopyFileResponse) String() string { return proto.CompactTextString(m) }
  569. func (*CopyFileResponse) ProtoMessage() {}
  570. func (*CopyFileResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{31} }
  571. func (m *CopyFileResponse) GetFileContent() []byte {
  572. if m != nil {
  573. return m.FileContent
  574. }
  575. return nil
  576. }
  577. type ReadVolumeFileStatusRequest struct {
  578. VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
  579. }
  580. func (m *ReadVolumeFileStatusRequest) Reset() { *m = ReadVolumeFileStatusRequest{} }
  581. func (m *ReadVolumeFileStatusRequest) String() string { return proto.CompactTextString(m) }
  582. func (*ReadVolumeFileStatusRequest) ProtoMessage() {}
  583. func (*ReadVolumeFileStatusRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{32} }
  584. func (m *ReadVolumeFileStatusRequest) GetVolumeId() uint32 {
  585. if m != nil {
  586. return m.VolumeId
  587. }
  588. return 0
  589. }
  590. type ReadVolumeFileStatusResponse struct {
  591. VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`
  592. IdxFileTimestamp uint64 `protobuf:"varint,2,opt,name=idx_file_timestamp,json=idxFileTimestamp" json:"idx_file_timestamp,omitempty"`
  593. IdxFileSize uint64 `protobuf:"varint,3,opt,name=idx_file_size,json=idxFileSize" json:"idx_file_size,omitempty"`
  594. DatFileTimestamp uint64 `protobuf:"varint,4,opt,name=dat_file_timestamp,json=datFileTimestamp" json:"dat_file_timestamp,omitempty"`
  595. DatFileSize uint64 `protobuf:"varint,5,opt,name=dat_file_size,json=datFileSize" json:"dat_file_size,omitempty"`
  596. }
  597. func (m *ReadVolumeFileStatusResponse) Reset() { *m = ReadVolumeFileStatusResponse{} }
  598. func (m *ReadVolumeFileStatusResponse) String() string { return proto.CompactTextString(m) }
  599. func (*ReadVolumeFileStatusResponse) ProtoMessage() {}
  600. func (*ReadVolumeFileStatusResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{33} }
  601. func (m *ReadVolumeFileStatusResponse) GetVolumeId() uint32 {
  602. if m != nil {
  603. return m.VolumeId
  604. }
  605. return 0
  606. }
  607. func (m *ReadVolumeFileStatusResponse) GetIdxFileTimestamp() uint64 {
  608. if m != nil {
  609. return m.IdxFileTimestamp
  610. }
  611. return 0
  612. }
  613. func (m *ReadVolumeFileStatusResponse) GetIdxFileSize() uint64 {
  614. if m != nil {
  615. return m.IdxFileSize
  616. }
  617. return 0
  618. }
  619. func (m *ReadVolumeFileStatusResponse) GetDatFileTimestamp() uint64 {
  620. if m != nil {
  621. return m.DatFileTimestamp
  622. }
  623. return 0
  624. }
  625. func (m *ReadVolumeFileStatusResponse) GetDatFileSize() uint64 {
  626. if m != nil {
  627. return m.DatFileSize
  628. }
  629. return 0
  630. }
  631. type DiskStatus struct {
  632. Dir string `protobuf:"bytes,1,opt,name=dir" json:"dir,omitempty"`
  633. All uint64 `protobuf:"varint,2,opt,name=all" json:"all,omitempty"`
  634. Used uint64 `protobuf:"varint,3,opt,name=used" json:"used,omitempty"`
  635. Free uint64 `protobuf:"varint,4,opt,name=free" json:"free,omitempty"`
  636. }
  637. func (m *DiskStatus) Reset() { *m = DiskStatus{} }
  638. func (m *DiskStatus) String() string { return proto.CompactTextString(m) }
  639. func (*DiskStatus) ProtoMessage() {}
  640. func (*DiskStatus) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{34} }
  641. func (m *DiskStatus) GetDir() string {
  642. if m != nil {
  643. return m.Dir
  644. }
  645. return ""
  646. }
  647. func (m *DiskStatus) GetAll() uint64 {
  648. if m != nil {
  649. return m.All
  650. }
  651. return 0
  652. }
  653. func (m *DiskStatus) GetUsed() uint64 {
  654. if m != nil {
  655. return m.Used
  656. }
  657. return 0
  658. }
  659. func (m *DiskStatus) GetFree() uint64 {
  660. if m != nil {
  661. return m.Free
  662. }
  663. return 0
  664. }
  665. type MemStatus struct {
  666. Goroutines int32 `protobuf:"varint,1,opt,name=goroutines" json:"goroutines,omitempty"`
  667. All uint64 `protobuf:"varint,2,opt,name=all" json:"all,omitempty"`
  668. Used uint64 `protobuf:"varint,3,opt,name=used" json:"used,omitempty"`
  669. Free uint64 `protobuf:"varint,4,opt,name=free" json:"free,omitempty"`
  670. Self uint64 `protobuf:"varint,5,opt,name=self" json:"self,omitempty"`
  671. Heap uint64 `protobuf:"varint,6,opt,name=heap" json:"heap,omitempty"`
  672. Stack uint64 `protobuf:"varint,7,opt,name=stack" json:"stack,omitempty"`
  673. }
  674. func (m *MemStatus) Reset() { *m = MemStatus{} }
  675. func (m *MemStatus) String() string { return proto.CompactTextString(m) }
  676. func (*MemStatus) ProtoMessage() {}
  677. func (*MemStatus) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{35} }
  678. func (m *MemStatus) GetGoroutines() int32 {
  679. if m != nil {
  680. return m.Goroutines
  681. }
  682. return 0
  683. }
  684. func (m *MemStatus) GetAll() uint64 {
  685. if m != nil {
  686. return m.All
  687. }
  688. return 0
  689. }
  690. func (m *MemStatus) GetUsed() uint64 {
  691. if m != nil {
  692. return m.Used
  693. }
  694. return 0
  695. }
  696. func (m *MemStatus) GetFree() uint64 {
  697. if m != nil {
  698. return m.Free
  699. }
  700. return 0
  701. }
  702. func (m *MemStatus) GetSelf() uint64 {
  703. if m != nil {
  704. return m.Self
  705. }
  706. return 0
  707. }
  708. func (m *MemStatus) GetHeap() uint64 {
  709. if m != nil {
  710. return m.Heap
  711. }
  712. return 0
  713. }
  714. func (m *MemStatus) GetStack() uint64 {
  715. if m != nil {
  716. return m.Stack
  717. }
  718. return 0
  719. }
  720. func init() {
  721. proto.RegisterType((*BatchDeleteRequest)(nil), "volume_server_pb.BatchDeleteRequest")
  722. proto.RegisterType((*BatchDeleteResponse)(nil), "volume_server_pb.BatchDeleteResponse")
  723. proto.RegisterType((*DeleteResult)(nil), "volume_server_pb.DeleteResult")
  724. proto.RegisterType((*Empty)(nil), "volume_server_pb.Empty")
  725. proto.RegisterType((*VacuumVolumeCheckRequest)(nil), "volume_server_pb.VacuumVolumeCheckRequest")
  726. proto.RegisterType((*VacuumVolumeCheckResponse)(nil), "volume_server_pb.VacuumVolumeCheckResponse")
  727. proto.RegisterType((*VacuumVolumeCompactRequest)(nil), "volume_server_pb.VacuumVolumeCompactRequest")
  728. proto.RegisterType((*VacuumVolumeCompactResponse)(nil), "volume_server_pb.VacuumVolumeCompactResponse")
  729. proto.RegisterType((*VacuumVolumeCommitRequest)(nil), "volume_server_pb.VacuumVolumeCommitRequest")
  730. proto.RegisterType((*VacuumVolumeCommitResponse)(nil), "volume_server_pb.VacuumVolumeCommitResponse")
  731. proto.RegisterType((*VacuumVolumeCleanupRequest)(nil), "volume_server_pb.VacuumVolumeCleanupRequest")
  732. proto.RegisterType((*VacuumVolumeCleanupResponse)(nil), "volume_server_pb.VacuumVolumeCleanupResponse")
  733. proto.RegisterType((*DeleteCollectionRequest)(nil), "volume_server_pb.DeleteCollectionRequest")
  734. proto.RegisterType((*DeleteCollectionResponse)(nil), "volume_server_pb.DeleteCollectionResponse")
  735. proto.RegisterType((*AssignVolumeRequest)(nil), "volume_server_pb.AssignVolumeRequest")
  736. proto.RegisterType((*AssignVolumeResponse)(nil), "volume_server_pb.AssignVolumeResponse")
  737. proto.RegisterType((*VolumeSyncStatusRequest)(nil), "volume_server_pb.VolumeSyncStatusRequest")
  738. proto.RegisterType((*VolumeSyncStatusResponse)(nil), "volume_server_pb.VolumeSyncStatusResponse")
  739. proto.RegisterType((*VolumeSyncIndexRequest)(nil), "volume_server_pb.VolumeSyncIndexRequest")
  740. proto.RegisterType((*VolumeSyncIndexResponse)(nil), "volume_server_pb.VolumeSyncIndexResponse")
  741. proto.RegisterType((*VolumeSyncDataRequest)(nil), "volume_server_pb.VolumeSyncDataRequest")
  742. proto.RegisterType((*VolumeSyncDataResponse)(nil), "volume_server_pb.VolumeSyncDataResponse")
  743. proto.RegisterType((*VolumeMountRequest)(nil), "volume_server_pb.VolumeMountRequest")
  744. proto.RegisterType((*VolumeMountResponse)(nil), "volume_server_pb.VolumeMountResponse")
  745. proto.RegisterType((*VolumeUnmountRequest)(nil), "volume_server_pb.VolumeUnmountRequest")
  746. proto.RegisterType((*VolumeUnmountResponse)(nil), "volume_server_pb.VolumeUnmountResponse")
  747. proto.RegisterType((*VolumeDeleteRequest)(nil), "volume_server_pb.VolumeDeleteRequest")
  748. proto.RegisterType((*VolumeDeleteResponse)(nil), "volume_server_pb.VolumeDeleteResponse")
  749. proto.RegisterType((*ReplicateVolumeRequest)(nil), "volume_server_pb.ReplicateVolumeRequest")
  750. proto.RegisterType((*ReplicateVolumeResponse)(nil), "volume_server_pb.ReplicateVolumeResponse")
  751. proto.RegisterType((*CopyFileRequest)(nil), "volume_server_pb.CopyFileRequest")
  752. proto.RegisterType((*CopyFileResponse)(nil), "volume_server_pb.CopyFileResponse")
  753. proto.RegisterType((*ReadVolumeFileStatusRequest)(nil), "volume_server_pb.ReadVolumeFileStatusRequest")
  754. proto.RegisterType((*ReadVolumeFileStatusResponse)(nil), "volume_server_pb.ReadVolumeFileStatusResponse")
  755. proto.RegisterType((*DiskStatus)(nil), "volume_server_pb.DiskStatus")
  756. proto.RegisterType((*MemStatus)(nil), "volume_server_pb.MemStatus")
  757. }
  758. // Reference imports to suppress errors if they are not otherwise used.
  759. var _ context.Context
  760. var _ grpc.ClientConn
  761. // This is a compile-time assertion to ensure that this generated file
  762. // is compatible with the grpc package it is being compiled against.
  763. const _ = grpc.SupportPackageIsVersion4
  764. // Client API for VolumeServer service
  765. type VolumeServerClient interface {
  766. // Experts only: takes multiple fid parameters. This function does not propagate deletes to replicas.
  767. BatchDelete(ctx context.Context, in *BatchDeleteRequest, opts ...grpc.CallOption) (*BatchDeleteResponse, error)
  768. VacuumVolumeCheck(ctx context.Context, in *VacuumVolumeCheckRequest, opts ...grpc.CallOption) (*VacuumVolumeCheckResponse, error)
  769. VacuumVolumeCompact(ctx context.Context, in *VacuumVolumeCompactRequest, opts ...grpc.CallOption) (*VacuumVolumeCompactResponse, error)
  770. VacuumVolumeCommit(ctx context.Context, in *VacuumVolumeCommitRequest, opts ...grpc.CallOption) (*VacuumVolumeCommitResponse, error)
  771. VacuumVolumeCleanup(ctx context.Context, in *VacuumVolumeCleanupRequest, opts ...grpc.CallOption) (*VacuumVolumeCleanupResponse, error)
  772. DeleteCollection(ctx context.Context, in *DeleteCollectionRequest, opts ...grpc.CallOption) (*DeleteCollectionResponse, error)
  773. AssignVolume(ctx context.Context, in *AssignVolumeRequest, opts ...grpc.CallOption) (*AssignVolumeResponse, error)
  774. VolumeSyncStatus(ctx context.Context, in *VolumeSyncStatusRequest, opts ...grpc.CallOption) (*VolumeSyncStatusResponse, error)
  775. VolumeSyncIndex(ctx context.Context, in *VolumeSyncIndexRequest, opts ...grpc.CallOption) (VolumeServer_VolumeSyncIndexClient, error)
  776. VolumeSyncData(ctx context.Context, in *VolumeSyncDataRequest, opts ...grpc.CallOption) (VolumeServer_VolumeSyncDataClient, error)
  777. VolumeMount(ctx context.Context, in *VolumeMountRequest, opts ...grpc.CallOption) (*VolumeMountResponse, error)
  778. VolumeUnmount(ctx context.Context, in *VolumeUnmountRequest, opts ...grpc.CallOption) (*VolumeUnmountResponse, error)
  779. VolumeDelete(ctx context.Context, in *VolumeDeleteRequest, opts ...grpc.CallOption) (*VolumeDeleteResponse, error)
  780. ReplicateVolume(ctx context.Context, in *ReplicateVolumeRequest, opts ...grpc.CallOption) (*ReplicateVolumeResponse, error)
  781. ReadVolumeFileStatus(ctx context.Context, in *ReadVolumeFileStatusRequest, opts ...grpc.CallOption) (*ReadVolumeFileStatusResponse, error)
  782. CopyFile(ctx context.Context, in *CopyFileRequest, opts ...grpc.CallOption) (VolumeServer_CopyFileClient, error)
  783. }
  784. type volumeServerClient struct {
  785. cc *grpc.ClientConn
  786. }
  787. func NewVolumeServerClient(cc *grpc.ClientConn) VolumeServerClient {
  788. return &volumeServerClient{cc}
  789. }
  790. func (c *volumeServerClient) BatchDelete(ctx context.Context, in *BatchDeleteRequest, opts ...grpc.CallOption) (*BatchDeleteResponse, error) {
  791. out := new(BatchDeleteResponse)
  792. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/BatchDelete", in, out, c.cc, opts...)
  793. if err != nil {
  794. return nil, err
  795. }
  796. return out, nil
  797. }
  798. func (c *volumeServerClient) VacuumVolumeCheck(ctx context.Context, in *VacuumVolumeCheckRequest, opts ...grpc.CallOption) (*VacuumVolumeCheckResponse, error) {
  799. out := new(VacuumVolumeCheckResponse)
  800. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCheck", in, out, c.cc, opts...)
  801. if err != nil {
  802. return nil, err
  803. }
  804. return out, nil
  805. }
  806. func (c *volumeServerClient) VacuumVolumeCompact(ctx context.Context, in *VacuumVolumeCompactRequest, opts ...grpc.CallOption) (*VacuumVolumeCompactResponse, error) {
  807. out := new(VacuumVolumeCompactResponse)
  808. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCompact", in, out, c.cc, opts...)
  809. if err != nil {
  810. return nil, err
  811. }
  812. return out, nil
  813. }
  814. func (c *volumeServerClient) VacuumVolumeCommit(ctx context.Context, in *VacuumVolumeCommitRequest, opts ...grpc.CallOption) (*VacuumVolumeCommitResponse, error) {
  815. out := new(VacuumVolumeCommitResponse)
  816. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCommit", in, out, c.cc, opts...)
  817. if err != nil {
  818. return nil, err
  819. }
  820. return out, nil
  821. }
  822. func (c *volumeServerClient) VacuumVolumeCleanup(ctx context.Context, in *VacuumVolumeCleanupRequest, opts ...grpc.CallOption) (*VacuumVolumeCleanupResponse, error) {
  823. out := new(VacuumVolumeCleanupResponse)
  824. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VacuumVolumeCleanup", in, out, c.cc, opts...)
  825. if err != nil {
  826. return nil, err
  827. }
  828. return out, nil
  829. }
  830. func (c *volumeServerClient) DeleteCollection(ctx context.Context, in *DeleteCollectionRequest, opts ...grpc.CallOption) (*DeleteCollectionResponse, error) {
  831. out := new(DeleteCollectionResponse)
  832. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/DeleteCollection", in, out, c.cc, opts...)
  833. if err != nil {
  834. return nil, err
  835. }
  836. return out, nil
  837. }
  838. func (c *volumeServerClient) AssignVolume(ctx context.Context, in *AssignVolumeRequest, opts ...grpc.CallOption) (*AssignVolumeResponse, error) {
  839. out := new(AssignVolumeResponse)
  840. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/AssignVolume", in, out, c.cc, opts...)
  841. if err != nil {
  842. return nil, err
  843. }
  844. return out, nil
  845. }
  846. func (c *volumeServerClient) VolumeSyncStatus(ctx context.Context, in *VolumeSyncStatusRequest, opts ...grpc.CallOption) (*VolumeSyncStatusResponse, error) {
  847. out := new(VolumeSyncStatusResponse)
  848. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeSyncStatus", in, out, c.cc, opts...)
  849. if err != nil {
  850. return nil, err
  851. }
  852. return out, nil
  853. }
  854. func (c *volumeServerClient) VolumeSyncIndex(ctx context.Context, in *VolumeSyncIndexRequest, opts ...grpc.CallOption) (VolumeServer_VolumeSyncIndexClient, error) {
  855. stream, err := grpc.NewClientStream(ctx, &_VolumeServer_serviceDesc.Streams[0], c.cc, "/volume_server_pb.VolumeServer/VolumeSyncIndex", opts...)
  856. if err != nil {
  857. return nil, err
  858. }
  859. x := &volumeServerVolumeSyncIndexClient{stream}
  860. if err := x.ClientStream.SendMsg(in); err != nil {
  861. return nil, err
  862. }
  863. if err := x.ClientStream.CloseSend(); err != nil {
  864. return nil, err
  865. }
  866. return x, nil
  867. }
  868. type VolumeServer_VolumeSyncIndexClient interface {
  869. Recv() (*VolumeSyncIndexResponse, error)
  870. grpc.ClientStream
  871. }
  872. type volumeServerVolumeSyncIndexClient struct {
  873. grpc.ClientStream
  874. }
  875. func (x *volumeServerVolumeSyncIndexClient) Recv() (*VolumeSyncIndexResponse, error) {
  876. m := new(VolumeSyncIndexResponse)
  877. if err := x.ClientStream.RecvMsg(m); err != nil {
  878. return nil, err
  879. }
  880. return m, nil
  881. }
  882. func (c *volumeServerClient) VolumeSyncData(ctx context.Context, in *VolumeSyncDataRequest, opts ...grpc.CallOption) (VolumeServer_VolumeSyncDataClient, error) {
  883. stream, err := grpc.NewClientStream(ctx, &_VolumeServer_serviceDesc.Streams[1], c.cc, "/volume_server_pb.VolumeServer/VolumeSyncData", opts...)
  884. if err != nil {
  885. return nil, err
  886. }
  887. x := &volumeServerVolumeSyncDataClient{stream}
  888. if err := x.ClientStream.SendMsg(in); err != nil {
  889. return nil, err
  890. }
  891. if err := x.ClientStream.CloseSend(); err != nil {
  892. return nil, err
  893. }
  894. return x, nil
  895. }
  896. type VolumeServer_VolumeSyncDataClient interface {
  897. Recv() (*VolumeSyncDataResponse, error)
  898. grpc.ClientStream
  899. }
  900. type volumeServerVolumeSyncDataClient struct {
  901. grpc.ClientStream
  902. }
  903. func (x *volumeServerVolumeSyncDataClient) Recv() (*VolumeSyncDataResponse, error) {
  904. m := new(VolumeSyncDataResponse)
  905. if err := x.ClientStream.RecvMsg(m); err != nil {
  906. return nil, err
  907. }
  908. return m, nil
  909. }
  910. func (c *volumeServerClient) VolumeMount(ctx context.Context, in *VolumeMountRequest, opts ...grpc.CallOption) (*VolumeMountResponse, error) {
  911. out := new(VolumeMountResponse)
  912. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeMount", in, out, c.cc, opts...)
  913. if err != nil {
  914. return nil, err
  915. }
  916. return out, nil
  917. }
  918. func (c *volumeServerClient) VolumeUnmount(ctx context.Context, in *VolumeUnmountRequest, opts ...grpc.CallOption) (*VolumeUnmountResponse, error) {
  919. out := new(VolumeUnmountResponse)
  920. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeUnmount", in, out, c.cc, opts...)
  921. if err != nil {
  922. return nil, err
  923. }
  924. return out, nil
  925. }
  926. func (c *volumeServerClient) VolumeDelete(ctx context.Context, in *VolumeDeleteRequest, opts ...grpc.CallOption) (*VolumeDeleteResponse, error) {
  927. out := new(VolumeDeleteResponse)
  928. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeDelete", in, out, c.cc, opts...)
  929. if err != nil {
  930. return nil, err
  931. }
  932. return out, nil
  933. }
  934. func (c *volumeServerClient) ReplicateVolume(ctx context.Context, in *ReplicateVolumeRequest, opts ...grpc.CallOption) (*ReplicateVolumeResponse, error) {
  935. out := new(ReplicateVolumeResponse)
  936. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/ReplicateVolume", in, out, c.cc, opts...)
  937. if err != nil {
  938. return nil, err
  939. }
  940. return out, nil
  941. }
  942. func (c *volumeServerClient) ReadVolumeFileStatus(ctx context.Context, in *ReadVolumeFileStatusRequest, opts ...grpc.CallOption) (*ReadVolumeFileStatusResponse, error) {
  943. out := new(ReadVolumeFileStatusResponse)
  944. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/ReadVolumeFileStatus", in, out, c.cc, opts...)
  945. if err != nil {
  946. return nil, err
  947. }
  948. return out, nil
  949. }
  950. func (c *volumeServerClient) CopyFile(ctx context.Context, in *CopyFileRequest, opts ...grpc.CallOption) (VolumeServer_CopyFileClient, error) {
  951. stream, err := grpc.NewClientStream(ctx, &_VolumeServer_serviceDesc.Streams[2], c.cc, "/volume_server_pb.VolumeServer/CopyFile", opts...)
  952. if err != nil {
  953. return nil, err
  954. }
  955. x := &volumeServerCopyFileClient{stream}
  956. if err := x.ClientStream.SendMsg(in); err != nil {
  957. return nil, err
  958. }
  959. if err := x.ClientStream.CloseSend(); err != nil {
  960. return nil, err
  961. }
  962. return x, nil
  963. }
  964. type VolumeServer_CopyFileClient interface {
  965. Recv() (*CopyFileResponse, error)
  966. grpc.ClientStream
  967. }
  968. type volumeServerCopyFileClient struct {
  969. grpc.ClientStream
  970. }
  971. func (x *volumeServerCopyFileClient) Recv() (*CopyFileResponse, error) {
  972. m := new(CopyFileResponse)
  973. if err := x.ClientStream.RecvMsg(m); err != nil {
  974. return nil, err
  975. }
  976. return m, nil
  977. }
  978. // Server API for VolumeServer service
  979. type VolumeServerServer interface {
  980. // Experts only: takes multiple fid parameters. This function does not propagate deletes to replicas.
  981. BatchDelete(context.Context, *BatchDeleteRequest) (*BatchDeleteResponse, error)
  982. VacuumVolumeCheck(context.Context, *VacuumVolumeCheckRequest) (*VacuumVolumeCheckResponse, error)
  983. VacuumVolumeCompact(context.Context, *VacuumVolumeCompactRequest) (*VacuumVolumeCompactResponse, error)
  984. VacuumVolumeCommit(context.Context, *VacuumVolumeCommitRequest) (*VacuumVolumeCommitResponse, error)
  985. VacuumVolumeCleanup(context.Context, *VacuumVolumeCleanupRequest) (*VacuumVolumeCleanupResponse, error)
  986. DeleteCollection(context.Context, *DeleteCollectionRequest) (*DeleteCollectionResponse, error)
  987. AssignVolume(context.Context, *AssignVolumeRequest) (*AssignVolumeResponse, error)
  988. VolumeSyncStatus(context.Context, *VolumeSyncStatusRequest) (*VolumeSyncStatusResponse, error)
  989. VolumeSyncIndex(*VolumeSyncIndexRequest, VolumeServer_VolumeSyncIndexServer) error
  990. VolumeSyncData(*VolumeSyncDataRequest, VolumeServer_VolumeSyncDataServer) error
  991. VolumeMount(context.Context, *VolumeMountRequest) (*VolumeMountResponse, error)
  992. VolumeUnmount(context.Context, *VolumeUnmountRequest) (*VolumeUnmountResponse, error)
  993. VolumeDelete(context.Context, *VolumeDeleteRequest) (*VolumeDeleteResponse, error)
  994. ReplicateVolume(context.Context, *ReplicateVolumeRequest) (*ReplicateVolumeResponse, error)
  995. ReadVolumeFileStatus(context.Context, *ReadVolumeFileStatusRequest) (*ReadVolumeFileStatusResponse, error)
  996. CopyFile(*CopyFileRequest, VolumeServer_CopyFileServer) error
  997. }
  998. func RegisterVolumeServerServer(s *grpc.Server, srv VolumeServerServer) {
  999. s.RegisterService(&_VolumeServer_serviceDesc, srv)
  1000. }
  1001. func _VolumeServer_BatchDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1002. in := new(BatchDeleteRequest)
  1003. if err := dec(in); err != nil {
  1004. return nil, err
  1005. }
  1006. if interceptor == nil {
  1007. return srv.(VolumeServerServer).BatchDelete(ctx, in)
  1008. }
  1009. info := &grpc.UnaryServerInfo{
  1010. Server: srv,
  1011. FullMethod: "/volume_server_pb.VolumeServer/BatchDelete",
  1012. }
  1013. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1014. return srv.(VolumeServerServer).BatchDelete(ctx, req.(*BatchDeleteRequest))
  1015. }
  1016. return interceptor(ctx, in, info, handler)
  1017. }
  1018. func _VolumeServer_VacuumVolumeCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1019. in := new(VacuumVolumeCheckRequest)
  1020. if err := dec(in); err != nil {
  1021. return nil, err
  1022. }
  1023. if interceptor == nil {
  1024. return srv.(VolumeServerServer).VacuumVolumeCheck(ctx, in)
  1025. }
  1026. info := &grpc.UnaryServerInfo{
  1027. Server: srv,
  1028. FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCheck",
  1029. }
  1030. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1031. return srv.(VolumeServerServer).VacuumVolumeCheck(ctx, req.(*VacuumVolumeCheckRequest))
  1032. }
  1033. return interceptor(ctx, in, info, handler)
  1034. }
  1035. func _VolumeServer_VacuumVolumeCompact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1036. in := new(VacuumVolumeCompactRequest)
  1037. if err := dec(in); err != nil {
  1038. return nil, err
  1039. }
  1040. if interceptor == nil {
  1041. return srv.(VolumeServerServer).VacuumVolumeCompact(ctx, in)
  1042. }
  1043. info := &grpc.UnaryServerInfo{
  1044. Server: srv,
  1045. FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCompact",
  1046. }
  1047. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1048. return srv.(VolumeServerServer).VacuumVolumeCompact(ctx, req.(*VacuumVolumeCompactRequest))
  1049. }
  1050. return interceptor(ctx, in, info, handler)
  1051. }
  1052. func _VolumeServer_VacuumVolumeCommit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1053. in := new(VacuumVolumeCommitRequest)
  1054. if err := dec(in); err != nil {
  1055. return nil, err
  1056. }
  1057. if interceptor == nil {
  1058. return srv.(VolumeServerServer).VacuumVolumeCommit(ctx, in)
  1059. }
  1060. info := &grpc.UnaryServerInfo{
  1061. Server: srv,
  1062. FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCommit",
  1063. }
  1064. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1065. return srv.(VolumeServerServer).VacuumVolumeCommit(ctx, req.(*VacuumVolumeCommitRequest))
  1066. }
  1067. return interceptor(ctx, in, info, handler)
  1068. }
  1069. func _VolumeServer_VacuumVolumeCleanup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1070. in := new(VacuumVolumeCleanupRequest)
  1071. if err := dec(in); err != nil {
  1072. return nil, err
  1073. }
  1074. if interceptor == nil {
  1075. return srv.(VolumeServerServer).VacuumVolumeCleanup(ctx, in)
  1076. }
  1077. info := &grpc.UnaryServerInfo{
  1078. Server: srv,
  1079. FullMethod: "/volume_server_pb.VolumeServer/VacuumVolumeCleanup",
  1080. }
  1081. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1082. return srv.(VolumeServerServer).VacuumVolumeCleanup(ctx, req.(*VacuumVolumeCleanupRequest))
  1083. }
  1084. return interceptor(ctx, in, info, handler)
  1085. }
  1086. func _VolumeServer_DeleteCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1087. in := new(DeleteCollectionRequest)
  1088. if err := dec(in); err != nil {
  1089. return nil, err
  1090. }
  1091. if interceptor == nil {
  1092. return srv.(VolumeServerServer).DeleteCollection(ctx, in)
  1093. }
  1094. info := &grpc.UnaryServerInfo{
  1095. Server: srv,
  1096. FullMethod: "/volume_server_pb.VolumeServer/DeleteCollection",
  1097. }
  1098. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1099. return srv.(VolumeServerServer).DeleteCollection(ctx, req.(*DeleteCollectionRequest))
  1100. }
  1101. return interceptor(ctx, in, info, handler)
  1102. }
  1103. func _VolumeServer_AssignVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1104. in := new(AssignVolumeRequest)
  1105. if err := dec(in); err != nil {
  1106. return nil, err
  1107. }
  1108. if interceptor == nil {
  1109. return srv.(VolumeServerServer).AssignVolume(ctx, in)
  1110. }
  1111. info := &grpc.UnaryServerInfo{
  1112. Server: srv,
  1113. FullMethod: "/volume_server_pb.VolumeServer/AssignVolume",
  1114. }
  1115. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1116. return srv.(VolumeServerServer).AssignVolume(ctx, req.(*AssignVolumeRequest))
  1117. }
  1118. return interceptor(ctx, in, info, handler)
  1119. }
  1120. func _VolumeServer_VolumeSyncStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1121. in := new(VolumeSyncStatusRequest)
  1122. if err := dec(in); err != nil {
  1123. return nil, err
  1124. }
  1125. if interceptor == nil {
  1126. return srv.(VolumeServerServer).VolumeSyncStatus(ctx, in)
  1127. }
  1128. info := &grpc.UnaryServerInfo{
  1129. Server: srv,
  1130. FullMethod: "/volume_server_pb.VolumeServer/VolumeSyncStatus",
  1131. }
  1132. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1133. return srv.(VolumeServerServer).VolumeSyncStatus(ctx, req.(*VolumeSyncStatusRequest))
  1134. }
  1135. return interceptor(ctx, in, info, handler)
  1136. }
  1137. func _VolumeServer_VolumeSyncIndex_Handler(srv interface{}, stream grpc.ServerStream) error {
  1138. m := new(VolumeSyncIndexRequest)
  1139. if err := stream.RecvMsg(m); err != nil {
  1140. return err
  1141. }
  1142. return srv.(VolumeServerServer).VolumeSyncIndex(m, &volumeServerVolumeSyncIndexServer{stream})
  1143. }
  1144. type VolumeServer_VolumeSyncIndexServer interface {
  1145. Send(*VolumeSyncIndexResponse) error
  1146. grpc.ServerStream
  1147. }
  1148. type volumeServerVolumeSyncIndexServer struct {
  1149. grpc.ServerStream
  1150. }
  1151. func (x *volumeServerVolumeSyncIndexServer) Send(m *VolumeSyncIndexResponse) error {
  1152. return x.ServerStream.SendMsg(m)
  1153. }
  1154. func _VolumeServer_VolumeSyncData_Handler(srv interface{}, stream grpc.ServerStream) error {
  1155. m := new(VolumeSyncDataRequest)
  1156. if err := stream.RecvMsg(m); err != nil {
  1157. return err
  1158. }
  1159. return srv.(VolumeServerServer).VolumeSyncData(m, &volumeServerVolumeSyncDataServer{stream})
  1160. }
  1161. type VolumeServer_VolumeSyncDataServer interface {
  1162. Send(*VolumeSyncDataResponse) error
  1163. grpc.ServerStream
  1164. }
  1165. type volumeServerVolumeSyncDataServer struct {
  1166. grpc.ServerStream
  1167. }
  1168. func (x *volumeServerVolumeSyncDataServer) Send(m *VolumeSyncDataResponse) error {
  1169. return x.ServerStream.SendMsg(m)
  1170. }
  1171. func _VolumeServer_VolumeMount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1172. in := new(VolumeMountRequest)
  1173. if err := dec(in); err != nil {
  1174. return nil, err
  1175. }
  1176. if interceptor == nil {
  1177. return srv.(VolumeServerServer).VolumeMount(ctx, in)
  1178. }
  1179. info := &grpc.UnaryServerInfo{
  1180. Server: srv,
  1181. FullMethod: "/volume_server_pb.VolumeServer/VolumeMount",
  1182. }
  1183. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1184. return srv.(VolumeServerServer).VolumeMount(ctx, req.(*VolumeMountRequest))
  1185. }
  1186. return interceptor(ctx, in, info, handler)
  1187. }
  1188. func _VolumeServer_VolumeUnmount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1189. in := new(VolumeUnmountRequest)
  1190. if err := dec(in); err != nil {
  1191. return nil, err
  1192. }
  1193. if interceptor == nil {
  1194. return srv.(VolumeServerServer).VolumeUnmount(ctx, in)
  1195. }
  1196. info := &grpc.UnaryServerInfo{
  1197. Server: srv,
  1198. FullMethod: "/volume_server_pb.VolumeServer/VolumeUnmount",
  1199. }
  1200. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1201. return srv.(VolumeServerServer).VolumeUnmount(ctx, req.(*VolumeUnmountRequest))
  1202. }
  1203. return interceptor(ctx, in, info, handler)
  1204. }
  1205. func _VolumeServer_VolumeDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1206. in := new(VolumeDeleteRequest)
  1207. if err := dec(in); err != nil {
  1208. return nil, err
  1209. }
  1210. if interceptor == nil {
  1211. return srv.(VolumeServerServer).VolumeDelete(ctx, in)
  1212. }
  1213. info := &grpc.UnaryServerInfo{
  1214. Server: srv,
  1215. FullMethod: "/volume_server_pb.VolumeServer/VolumeDelete",
  1216. }
  1217. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1218. return srv.(VolumeServerServer).VolumeDelete(ctx, req.(*VolumeDeleteRequest))
  1219. }
  1220. return interceptor(ctx, in, info, handler)
  1221. }
  1222. func _VolumeServer_ReplicateVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1223. in := new(ReplicateVolumeRequest)
  1224. if err := dec(in); err != nil {
  1225. return nil, err
  1226. }
  1227. if interceptor == nil {
  1228. return srv.(VolumeServerServer).ReplicateVolume(ctx, in)
  1229. }
  1230. info := &grpc.UnaryServerInfo{
  1231. Server: srv,
  1232. FullMethod: "/volume_server_pb.VolumeServer/ReplicateVolume",
  1233. }
  1234. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1235. return srv.(VolumeServerServer).ReplicateVolume(ctx, req.(*ReplicateVolumeRequest))
  1236. }
  1237. return interceptor(ctx, in, info, handler)
  1238. }
  1239. func _VolumeServer_ReadVolumeFileStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1240. in := new(ReadVolumeFileStatusRequest)
  1241. if err := dec(in); err != nil {
  1242. return nil, err
  1243. }
  1244. if interceptor == nil {
  1245. return srv.(VolumeServerServer).ReadVolumeFileStatus(ctx, in)
  1246. }
  1247. info := &grpc.UnaryServerInfo{
  1248. Server: srv,
  1249. FullMethod: "/volume_server_pb.VolumeServer/ReadVolumeFileStatus",
  1250. }
  1251. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1252. return srv.(VolumeServerServer).ReadVolumeFileStatus(ctx, req.(*ReadVolumeFileStatusRequest))
  1253. }
  1254. return interceptor(ctx, in, info, handler)
  1255. }
  1256. func _VolumeServer_CopyFile_Handler(srv interface{}, stream grpc.ServerStream) error {
  1257. m := new(CopyFileRequest)
  1258. if err := stream.RecvMsg(m); err != nil {
  1259. return err
  1260. }
  1261. return srv.(VolumeServerServer).CopyFile(m, &volumeServerCopyFileServer{stream})
  1262. }
  1263. type VolumeServer_CopyFileServer interface {
  1264. Send(*CopyFileResponse) error
  1265. grpc.ServerStream
  1266. }
  1267. type volumeServerCopyFileServer struct {
  1268. grpc.ServerStream
  1269. }
  1270. func (x *volumeServerCopyFileServer) Send(m *CopyFileResponse) error {
  1271. return x.ServerStream.SendMsg(m)
  1272. }
  1273. var _VolumeServer_serviceDesc = grpc.ServiceDesc{
  1274. ServiceName: "volume_server_pb.VolumeServer",
  1275. HandlerType: (*VolumeServerServer)(nil),
  1276. Methods: []grpc.MethodDesc{
  1277. {
  1278. MethodName: "BatchDelete",
  1279. Handler: _VolumeServer_BatchDelete_Handler,
  1280. },
  1281. {
  1282. MethodName: "VacuumVolumeCheck",
  1283. Handler: _VolumeServer_VacuumVolumeCheck_Handler,
  1284. },
  1285. {
  1286. MethodName: "VacuumVolumeCompact",
  1287. Handler: _VolumeServer_VacuumVolumeCompact_Handler,
  1288. },
  1289. {
  1290. MethodName: "VacuumVolumeCommit",
  1291. Handler: _VolumeServer_VacuumVolumeCommit_Handler,
  1292. },
  1293. {
  1294. MethodName: "VacuumVolumeCleanup",
  1295. Handler: _VolumeServer_VacuumVolumeCleanup_Handler,
  1296. },
  1297. {
  1298. MethodName: "DeleteCollection",
  1299. Handler: _VolumeServer_DeleteCollection_Handler,
  1300. },
  1301. {
  1302. MethodName: "AssignVolume",
  1303. Handler: _VolumeServer_AssignVolume_Handler,
  1304. },
  1305. {
  1306. MethodName: "VolumeSyncStatus",
  1307. Handler: _VolumeServer_VolumeSyncStatus_Handler,
  1308. },
  1309. {
  1310. MethodName: "VolumeMount",
  1311. Handler: _VolumeServer_VolumeMount_Handler,
  1312. },
  1313. {
  1314. MethodName: "VolumeUnmount",
  1315. Handler: _VolumeServer_VolumeUnmount_Handler,
  1316. },
  1317. {
  1318. MethodName: "VolumeDelete",
  1319. Handler: _VolumeServer_VolumeDelete_Handler,
  1320. },
  1321. {
  1322. MethodName: "ReplicateVolume",
  1323. Handler: _VolumeServer_ReplicateVolume_Handler,
  1324. },
  1325. {
  1326. MethodName: "ReadVolumeFileStatus",
  1327. Handler: _VolumeServer_ReadVolumeFileStatus_Handler,
  1328. },
  1329. },
  1330. Streams: []grpc.StreamDesc{
  1331. {
  1332. StreamName: "VolumeSyncIndex",
  1333. Handler: _VolumeServer_VolumeSyncIndex_Handler,
  1334. ServerStreams: true,
  1335. },
  1336. {
  1337. StreamName: "VolumeSyncData",
  1338. Handler: _VolumeServer_VolumeSyncData_Handler,
  1339. ServerStreams: true,
  1340. },
  1341. {
  1342. StreamName: "CopyFile",
  1343. Handler: _VolumeServer_CopyFile_Handler,
  1344. ServerStreams: true,
  1345. },
  1346. },
  1347. Metadata: "volume_server.proto",
  1348. }
  1349. func init() { proto.RegisterFile("volume_server.proto", fileDescriptor0) }
  1350. var fileDescriptor0 = []byte{
  1351. // 1247 bytes of a gzipped FileDescriptorProto
  1352. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x58, 0x5b, 0x73, 0xdb, 0xc4,
  1353. 0x17, 0x8f, 0x62, 0x3b, 0x71, 0x8e, 0xed, 0xc6, 0xff, 0x4d, 0x9a, 0x38, 0x4a, 0xff, 0xc1, 0x15,
  1354. 0x90, 0x3a, 0x6d, 0x1a, 0x20, 0x9d, 0x42, 0x81, 0x17, 0x20, 0x01, 0x26, 0x0f, 0xa5, 0x33, 0x0a,
  1355. 0xed, 0x30, 0x43, 0x67, 0x34, 0x1b, 0x69, 0x9d, 0x88, 0xc8, 0x92, 0xaa, 0x5d, 0x85, 0x84, 0x6f,
  1356. 0xc2, 0x33, 0x2f, 0x7d, 0xe7, 0x03, 0xf1, 0x41, 0x78, 0x61, 0xf6, 0x22, 0x59, 0x37, 0xc7, 0xe2,
  1357. 0xf2, 0xb6, 0x3a, 0x7b, 0xce, 0xef, 0x5c, 0xf6, 0xec, 0xd9, 0x9f, 0x0d, 0x6b, 0x57, 0x81, 0x17,
  1358. 0x4f, 0x88, 0x45, 0x49, 0x74, 0x45, 0xa2, 0x83, 0x30, 0x0a, 0x58, 0x80, 0xfa, 0x39, 0xa1, 0x15,
  1359. 0x9e, 0x19, 0x1f, 0x00, 0xfa, 0x0a, 0x33, 0xfb, 0xe2, 0x98, 0x78, 0x84, 0x11, 0x93, 0xbc, 0x89,
  1360. 0x09, 0x65, 0x68, 0x0b, 0xda, 0x63, 0xd7, 0x23, 0x96, 0xeb, 0xd0, 0x81, 0x36, 0x6c, 0x8c, 0x56,
  1361. 0xcc, 0x65, 0xfe, 0x7d, 0xe2, 0x50, 0xe3, 0x05, 0xac, 0xe5, 0x0c, 0x68, 0x18, 0xf8, 0x94, 0xa0,
  1362. 0x67, 0xb0, 0x1c, 0x11, 0x1a, 0x7b, 0x4c, 0x1a, 0x74, 0x0e, 0x77, 0x0e, 0x8a, 0xbe, 0x0e, 0x52,
  1363. 0x93, 0xd8, 0x63, 0x66, 0xa2, 0x6e, 0xb8, 0xd0, 0xcd, 0x6e, 0xa0, 0x4d, 0x58, 0x56, 0xbe, 0x07,
  1364. 0xda, 0x50, 0x1b, 0xad, 0x98, 0x4b, 0xd2, 0x35, 0xda, 0x80, 0x25, 0xca, 0x30, 0x8b, 0xe9, 0x60,
  1365. 0x71, 0xa8, 0x8d, 0x5a, 0xa6, 0xfa, 0x42, 0xeb, 0xd0, 0x22, 0x51, 0x14, 0x44, 0x83, 0x86, 0x50,
  1366. 0x97, 0x1f, 0x08, 0x41, 0x93, 0xba, 0xbf, 0x90, 0x41, 0x73, 0xa8, 0x8d, 0x7a, 0xa6, 0x58, 0x1b,
  1367. 0xcb, 0xd0, 0xfa, 0x7a, 0x12, 0xb2, 0x1b, 0xe3, 0x13, 0x18, 0xbc, 0xc2, 0x76, 0x1c, 0x4f, 0x5e,
  1368. 0x89, 0x18, 0x8f, 0x2e, 0x88, 0x7d, 0x99, 0xe4, 0xbe, 0x0d, 0x2b, 0x2a, 0x72, 0x15, 0x41, 0xcf,
  1369. 0x6c, 0x4b, 0xc1, 0x89, 0x63, 0x7c, 0x01, 0x5b, 0x15, 0x86, 0xaa, 0x06, 0xef, 0x42, 0xef, 0x1c,
  1370. 0x47, 0x67, 0xf8, 0x9c, 0x58, 0x11, 0x66, 0x6e, 0x20, 0xac, 0x35, 0xb3, 0xab, 0x84, 0x26, 0x97,
  1371. 0x19, 0x3f, 0x82, 0x9e, 0x43, 0x08, 0x26, 0x21, 0xb6, 0x59, 0x1d, 0xe7, 0x68, 0x08, 0x9d, 0x30,
  1372. 0x22, 0xd8, 0xf3, 0x02, 0x1b, 0x33, 0x22, 0xaa, 0xd0, 0x30, 0xb3, 0x22, 0xe3, 0xff, 0xb0, 0x5d,
  1373. 0x09, 0x2e, 0x03, 0x34, 0x9e, 0x15, 0xa2, 0x0f, 0x26, 0x13, 0xb7, 0x96, 0x6b, 0xe3, 0x5e, 0x29,
  1374. 0x6a, 0x61, 0xa9, 0x70, 0x3f, 0x2d, 0xec, 0x7a, 0x04, 0xfb, 0x71, 0x58, 0x0b, 0xb8, 0x18, 0x71,
  1375. 0x62, 0x9a, 0x22, 0x6f, 0xca, 0xe6, 0x38, 0x0a, 0x3c, 0x8f, 0xd8, 0xcc, 0x0d, 0xfc, 0x04, 0x76,
  1376. 0x07, 0xc0, 0x4e, 0x85, 0xaa, 0x55, 0x32, 0x12, 0x43, 0x87, 0x41, 0xd9, 0x54, 0xc1, 0xbe, 0xd5,
  1377. 0x60, 0xed, 0x4b, 0x4a, 0xdd, 0x73, 0x5f, 0xba, 0xad, 0x55, 0xfe, 0xbc, 0xc3, 0xc5, 0xa2, 0xc3,
  1378. 0xe2, 0xf1, 0x34, 0x4a, 0xc7, 0xc3, 0x35, 0x22, 0x12, 0x7a, 0xae, 0x8d, 0x05, 0x44, 0x53, 0x40,
  1379. 0x64, 0x45, 0xa8, 0x0f, 0x0d, 0xc6, 0xbc, 0x41, 0x4b, 0xec, 0xf0, 0xa5, 0xb1, 0x01, 0xeb, 0xf9,
  1380. 0x48, 0x55, 0x0a, 0x1f, 0xc3, 0xa6, 0x94, 0x9c, 0xde, 0xf8, 0xf6, 0xa9, 0xb8, 0x09, 0xb5, 0x0a,
  1381. 0xfe, 0xa7, 0x06, 0x83, 0xb2, 0xa1, 0xea, 0xe0, 0x7f, 0x9b, 0xff, 0xdf, 0xcd, 0x0e, 0xbd, 0x03,
  1382. 0x1d, 0x86, 0x5d, 0xcf, 0x0a, 0xc6, 0x63, 0x4a, 0xd8, 0x60, 0x69, 0xa8, 0x8d, 0x9a, 0x26, 0x70,
  1383. 0xd1, 0x0b, 0x21, 0x41, 0x7b, 0xd0, 0xb7, 0x65, 0x17, 0x5b, 0x11, 0xb9, 0x72, 0x29, 0x47, 0x5e,
  1384. 0x16, 0x81, 0xad, 0xda, 0x49, 0x77, 0x4b, 0x31, 0x32, 0xa0, 0xe7, 0x3a, 0xd7, 0x96, 0x18, 0x1e,
  1385. 0xe2, 0xea, 0xb7, 0x05, 0x5a, 0xc7, 0x75, 0xae, 0xbf, 0x71, 0x3d, 0x72, 0xca, 0x27, 0xc0, 0x53,
  1386. 0xd8, 0x98, 0x26, 0x7f, 0xe2, 0x3b, 0xe4, 0xba, 0x56, 0xd1, 0xbe, 0xcd, 0x16, 0x5b, 0x99, 0xa9,
  1387. 0x92, 0xed, 0x03, 0x72, 0xb9, 0x40, 0xfa, 0xb5, 0x03, 0x9f, 0x11, 0x9f, 0x09, 0x80, 0xae, 0xd9,
  1388. 0x17, 0x3b, 0xdc, 0xf9, 0x91, 0x94, 0x1b, 0xbf, 0x6a, 0x70, 0x77, 0x8a, 0x74, 0x8c, 0x19, 0xae,
  1389. 0xd5, 0x7a, 0x3a, 0xb4, 0xd3, 0xec, 0x17, 0xe5, 0x5e, 0xf2, 0xcd, 0xc7, 0xa2, 0xaa, 0x5e, 0x43,
  1390. 0xec, 0xa8, 0xaf, 0xaa, 0x01, 0xc8, 0x9d, 0xf8, 0x84, 0x38, 0x72, 0xba, 0xca, 0x63, 0x68, 0x4b,
  1391. 0xc1, 0x89, 0x63, 0x7c, 0x9e, 0xad, 0x8d, 0x0c, 0x4d, 0xe5, 0x78, 0x1f, 0xba, 0x15, 0xd9, 0x75,
  1392. 0xc6, 0x99, 0xc4, 0x3e, 0x02, 0x24, 0x8d, 0x9f, 0x07, 0xb1, 0x5f, 0x6f, 0xa6, 0xdc, 0x85, 0xb5,
  1393. 0x9c, 0x89, 0x6a, 0xec, 0x27, 0xb0, 0x2e, 0xc5, 0x2f, 0xfd, 0x49, 0x6d, 0xac, 0xcd, 0xa4, 0xac,
  1394. 0xa9, 0x91, 0x42, 0x3b, 0x4c, 0x9c, 0xe4, 0x1f, 0xb8, 0x5b, 0xc1, 0x36, 0x92, 0x08, 0xf2, 0x6f,
  1395. 0x9c, 0xf1, 0xbb, 0x06, 0x1b, 0xa6, 0x6a, 0x67, 0xf2, 0xdf, 0x0e, 0x8e, 0xec, 0xc5, 0x69, 0xcc,
  1396. 0xbc, 0x38, 0xcd, 0xe9, 0xc5, 0x19, 0x41, 0x9f, 0x06, 0x71, 0x64, 0x13, 0xcb, 0xc1, 0x0c, 0x5b,
  1397. 0x7e, 0xe0, 0x10, 0x75, 0xa0, 0x77, 0xa4, 0x9c, 0x1f, 0xe0, 0x77, 0x81, 0x43, 0x8c, 0x2d, 0xd8,
  1398. 0x2c, 0x05, 0xad, 0x12, 0xf2, 0x61, 0xf5, 0x28, 0x08, 0x6f, 0x78, 0x83, 0xd6, 0x4c, 0xa4, 0xe3,
  1399. 0x52, 0x2b, 0xb9, 0x64, 0x22, 0x93, 0xb6, 0xb9, 0xe2, 0xd2, 0x13, 0x79, 0xc3, 0xd4, 0xbe, 0x83,
  1400. 0x99, 0xdc, 0x6f, 0x24, 0xfb, 0xc7, 0x98, 0xf1, 0x7d, 0xe3, 0x29, 0xf4, 0xa7, 0xfe, 0xea, 0xf7,
  1401. 0xd6, 0x67, 0xb0, 0x6d, 0x12, 0xec, 0xc8, 0xe0, 0xc5, 0x55, 0xae, 0x3f, 0xee, 0xfe, 0xd0, 0xe0,
  1402. 0x5e, 0xb5, 0x71, 0x9d, 0x91, 0xc7, 0x2f, 0x77, 0x32, 0x52, 0x98, 0x3b, 0x21, 0x94, 0xe1, 0x49,
  1403. 0x28, 0xf2, 0x6e, 0x9a, 0x7d, 0x35, 0x57, 0xbe, 0x4f, 0xe4, 0xe5, 0x01, 0xd4, 0x28, 0x0d, 0x20,
  1404. 0x8e, 0x98, 0xd4, 0x27, 0x83, 0xd8, 0x94, 0x88, 0x8e, 0xac, 0x53, 0x0e, 0x31, 0xd5, 0x16, 0x88,
  1405. 0x2d, 0x89, 0xa8, 0x14, 0xc5, 0x48, 0xfb, 0x01, 0xe0, 0xd8, 0xa5, 0x97, 0x32, 0x2d, 0xde, 0x29,
  1406. 0x8e, 0x1b, 0xa9, 0xe7, 0x90, 0x2f, 0xb9, 0x04, 0x7b, 0x9e, 0x0a, 0x9a, 0x2f, 0xf9, 0x64, 0x88,
  1407. 0x29, 0x71, 0x54, 0x78, 0x62, 0xcd, 0x65, 0xe3, 0x88, 0x10, 0x15, 0x89, 0x58, 0x1b, 0xbf, 0x69,
  1408. 0xb0, 0xf2, 0x9c, 0x4c, 0x14, 0xf2, 0x0e, 0xc0, 0x79, 0x10, 0x05, 0x31, 0x73, 0x7d, 0x42, 0x85,
  1409. 0x83, 0x96, 0x99, 0x91, 0xfc, 0x73, 0x3f, 0x62, 0x52, 0x11, 0x6f, 0xac, 0x92, 0x13, 0x6b, 0x2e,
  1410. 0xbb, 0x20, 0x38, 0x54, 0x2f, 0x82, 0x58, 0x73, 0xa2, 0x47, 0x19, 0xb6, 0x2f, 0xc5, 0x03, 0xd0,
  1411. 0x34, 0xe5, 0xc7, 0xe1, 0xdb, 0x1e, 0x74, 0xd5, 0xdc, 0x12, 0x4c, 0x13, 0xbd, 0x86, 0x4e, 0x86,
  1412. 0xa1, 0xa2, 0xf7, 0xca, 0x44, 0xb4, 0xcc, 0x78, 0xf5, 0xf7, 0xe7, 0x68, 0xa9, 0x1b, 0xb3, 0x80,
  1413. 0x7c, 0xf8, 0x5f, 0x89, 0x01, 0xa2, 0x87, 0x65, 0xeb, 0x59, 0xfc, 0x52, 0x7f, 0x54, 0x4b, 0x37,
  1414. 0xf5, 0xc7, 0x60, 0xad, 0x82, 0xd2, 0xa1, 0xfd, 0x39, 0x28, 0x39, 0x5a, 0xa9, 0x3f, 0xae, 0xa9,
  1415. 0x9d, 0x7a, 0x7d, 0x03, 0xa8, 0xcc, 0xf7, 0xd0, 0xa3, 0xb9, 0x30, 0x53, 0x3e, 0xa9, 0xef, 0xd7,
  1416. 0x53, 0x9e, 0x99, 0xa8, 0x64, 0x82, 0x73, 0x13, 0xcd, 0x71, 0xcd, 0xb9, 0x89, 0x16, 0xe8, 0xe5,
  1417. 0x02, 0xba, 0x84, 0x7e, 0x91, 0x25, 0xa2, 0xbd, 0x59, 0x3f, 0x5d, 0x4a, 0x24, 0x54, 0x7f, 0x58,
  1418. 0x47, 0x35, 0x75, 0x66, 0x41, 0x37, 0xcb, 0xe5, 0x50, 0x45, 0xd3, 0x55, 0xb0, 0x52, 0x7d, 0x77,
  1419. 0x9e, 0x5a, 0x36, 0x9b, 0x22, 0xb7, 0xab, 0xca, 0x66, 0x06, 0x71, 0xac, 0xca, 0x66, 0x16, 0x55,
  1420. 0x34, 0x16, 0xd0, 0x4f, 0xb0, 0x5a, 0x20, 0x45, 0x68, 0x74, 0x1b, 0x40, 0x96, 0x6e, 0xe9, 0x7b,
  1421. 0x35, 0x34, 0x13, 0x4f, 0x1f, 0x6a, 0xe8, 0x1c, 0xee, 0xe4, 0xb9, 0x09, 0x7a, 0x70, 0x1b, 0x40,
  1422. 0x86, 0x58, 0xe9, 0xa3, 0xf9, 0x8a, 0x19, 0x47, 0xaf, 0xa1, 0x93, 0x21, 0x25, 0x55, 0xc3, 0xa3,
  1423. 0x4c, 0x73, 0xaa, 0x86, 0x47, 0x15, 0xb3, 0x59, 0x40, 0x67, 0xd0, 0xcb, 0xd1, 0x14, 0xb4, 0x3b,
  1424. 0xcb, 0x32, 0x4f, 0x7e, 0xf4, 0x07, 0x73, 0xf5, 0xb2, 0x4d, 0x96, 0x65, 0x2f, 0x68, 0x66, 0x70,
  1425. 0xf9, 0x01, 0xb8, 0x3b, 0x4f, 0x2d, 0x75, 0x70, 0x01, 0xab, 0x05, 0x42, 0x51, 0x75, 0xee, 0xd5,
  1426. 0x44, 0xa9, 0xea, 0xdc, 0x67, 0xb1, 0x93, 0x05, 0xf4, 0x33, 0xac, 0x57, 0xbd, 0xdd, 0xe8, 0x71,
  1427. 0x15, 0xc8, 0x4c, 0x82, 0xa0, 0x1f, 0xd4, 0x55, 0x4f, 0x1d, 0xbf, 0x84, 0x76, 0x42, 0x54, 0xd0,
  1428. 0xfd, 0xb2, 0x75, 0x81, 0x34, 0xe9, 0xc6, 0x6d, 0x2a, 0xd3, 0xe6, 0x3a, 0x5b, 0x12, 0xff, 0xc2,
  1429. 0x3c, 0xf9, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x6c, 0x7d, 0x0d, 0xbb, 0x9c, 0x11, 0x00, 0x00,
  1430. }