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.

220 lines
7.7 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. */
  14. package volume_server_pb
  15. import proto "github.com/golang/protobuf/proto"
  16. import fmt "fmt"
  17. import math "math"
  18. import (
  19. context "golang.org/x/net/context"
  20. grpc "google.golang.org/grpc"
  21. )
  22. // Reference imports to suppress errors if they are not otherwise used.
  23. var _ = proto.Marshal
  24. var _ = fmt.Errorf
  25. var _ = math.Inf
  26. // This is a compile-time assertion to ensure that this generated file
  27. // is compatible with the proto package it is being compiled against.
  28. // A compilation error at this line likely means your copy of the
  29. // proto package needs to be updated.
  30. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  31. type BatchDeleteRequest struct {
  32. FileIds []string `protobuf:"bytes,1,rep,name=file_ids,json=fileIds" json:"file_ids,omitempty"`
  33. }
  34. func (m *BatchDeleteRequest) Reset() { *m = BatchDeleteRequest{} }
  35. func (m *BatchDeleteRequest) String() string { return proto.CompactTextString(m) }
  36. func (*BatchDeleteRequest) ProtoMessage() {}
  37. func (*BatchDeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  38. func (m *BatchDeleteRequest) GetFileIds() []string {
  39. if m != nil {
  40. return m.FileIds
  41. }
  42. return nil
  43. }
  44. type BatchDeleteResponse struct {
  45. Results []*DeleteResult `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"`
  46. }
  47. func (m *BatchDeleteResponse) Reset() { *m = BatchDeleteResponse{} }
  48. func (m *BatchDeleteResponse) String() string { return proto.CompactTextString(m) }
  49. func (*BatchDeleteResponse) ProtoMessage() {}
  50. func (*BatchDeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  51. func (m *BatchDeleteResponse) GetResults() []*DeleteResult {
  52. if m != nil {
  53. return m.Results
  54. }
  55. return nil
  56. }
  57. type DeleteResult struct {
  58. FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId" json:"file_id,omitempty"`
  59. Status int32 `protobuf:"varint,2,opt,name=status" json:"status,omitempty"`
  60. Error string `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"`
  61. Size uint32 `protobuf:"varint,4,opt,name=size" json:"size,omitempty"`
  62. }
  63. func (m *DeleteResult) Reset() { *m = DeleteResult{} }
  64. func (m *DeleteResult) String() string { return proto.CompactTextString(m) }
  65. func (*DeleteResult) ProtoMessage() {}
  66. func (*DeleteResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  67. func (m *DeleteResult) GetFileId() string {
  68. if m != nil {
  69. return m.FileId
  70. }
  71. return ""
  72. }
  73. func (m *DeleteResult) GetStatus() int32 {
  74. if m != nil {
  75. return m.Status
  76. }
  77. return 0
  78. }
  79. func (m *DeleteResult) GetError() string {
  80. if m != nil {
  81. return m.Error
  82. }
  83. return ""
  84. }
  85. func (m *DeleteResult) GetSize() uint32 {
  86. if m != nil {
  87. return m.Size
  88. }
  89. return 0
  90. }
  91. type Empty struct {
  92. }
  93. func (m *Empty) Reset() { *m = Empty{} }
  94. func (m *Empty) String() string { return proto.CompactTextString(m) }
  95. func (*Empty) ProtoMessage() {}
  96. func (*Empty) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
  97. func init() {
  98. proto.RegisterType((*BatchDeleteRequest)(nil), "volume_server_pb.BatchDeleteRequest")
  99. proto.RegisterType((*BatchDeleteResponse)(nil), "volume_server_pb.BatchDeleteResponse")
  100. proto.RegisterType((*DeleteResult)(nil), "volume_server_pb.DeleteResult")
  101. proto.RegisterType((*Empty)(nil), "volume_server_pb.Empty")
  102. }
  103. // Reference imports to suppress errors if they are not otherwise used.
  104. var _ context.Context
  105. var _ grpc.ClientConn
  106. // This is a compile-time assertion to ensure that this generated file
  107. // is compatible with the grpc package it is being compiled against.
  108. const _ = grpc.SupportPackageIsVersion4
  109. // Client API for VolumeServer service
  110. type VolumeServerClient interface {
  111. // Experts only: takes multiple fid parameters. This function does not propagate deletes to replicas.
  112. BatchDelete(ctx context.Context, in *BatchDeleteRequest, opts ...grpc.CallOption) (*BatchDeleteResponse, error)
  113. }
  114. type volumeServerClient struct {
  115. cc *grpc.ClientConn
  116. }
  117. func NewVolumeServerClient(cc *grpc.ClientConn) VolumeServerClient {
  118. return &volumeServerClient{cc}
  119. }
  120. func (c *volumeServerClient) BatchDelete(ctx context.Context, in *BatchDeleteRequest, opts ...grpc.CallOption) (*BatchDeleteResponse, error) {
  121. out := new(BatchDeleteResponse)
  122. err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/BatchDelete", in, out, c.cc, opts...)
  123. if err != nil {
  124. return nil, err
  125. }
  126. return out, nil
  127. }
  128. // Server API for VolumeServer service
  129. type VolumeServerServer interface {
  130. // Experts only: takes multiple fid parameters. This function does not propagate deletes to replicas.
  131. BatchDelete(context.Context, *BatchDeleteRequest) (*BatchDeleteResponse, error)
  132. }
  133. func RegisterVolumeServerServer(s *grpc.Server, srv VolumeServerServer) {
  134. s.RegisterService(&_VolumeServer_serviceDesc, srv)
  135. }
  136. func _VolumeServer_BatchDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  137. in := new(BatchDeleteRequest)
  138. if err := dec(in); err != nil {
  139. return nil, err
  140. }
  141. if interceptor == nil {
  142. return srv.(VolumeServerServer).BatchDelete(ctx, in)
  143. }
  144. info := &grpc.UnaryServerInfo{
  145. Server: srv,
  146. FullMethod: "/volume_server_pb.VolumeServer/BatchDelete",
  147. }
  148. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  149. return srv.(VolumeServerServer).BatchDelete(ctx, req.(*BatchDeleteRequest))
  150. }
  151. return interceptor(ctx, in, info, handler)
  152. }
  153. var _VolumeServer_serviceDesc = grpc.ServiceDesc{
  154. ServiceName: "volume_server_pb.VolumeServer",
  155. HandlerType: (*VolumeServerServer)(nil),
  156. Methods: []grpc.MethodDesc{
  157. {
  158. MethodName: "BatchDelete",
  159. Handler: _VolumeServer_BatchDelete_Handler,
  160. },
  161. },
  162. Streams: []grpc.StreamDesc{},
  163. Metadata: "volume_server.proto",
  164. }
  165. func init() { proto.RegisterFile("volume_server.proto", fileDescriptor0) }
  166. var fileDescriptor0 = []byte{
  167. // 252 bytes of a gzipped FileDescriptorProto
  168. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x84, 0x50, 0xc1, 0x4a, 0xc3, 0x40,
  169. 0x10, 0x75, 0x6d, 0x93, 0xd8, 0x69, 0x05, 0x99, 0x8a, 0xae, 0x1e, 0x24, 0x2c, 0x0a, 0x39, 0x45,
  170. 0xa8, 0x17, 0xcf, 0xa2, 0x07, 0x4f, 0xc2, 0x0a, 0x9e, 0x84, 0xd0, 0xda, 0x11, 0x03, 0x5b, 0x37,
  171. 0xee, 0xec, 0x16, 0xf4, 0xeb, 0xc5, 0x4d, 0x95, 0xd6, 0x1c, 0x7a, 0x9b, 0x37, 0xf3, 0x1e, 0xef,
  172. 0xcd, 0x83, 0xf1, 0xd2, 0x9a, 0xb0, 0xa0, 0x8a, 0xc9, 0x2d, 0xc9, 0x95, 0x8d, 0xb3, 0xde, 0xe2,
  173. 0xc1, 0xc6, 0xb2, 0x6a, 0x66, 0xea, 0x12, 0xf0, 0x66, 0xea, 0x5f, 0xde, 0x6e, 0xc9, 0x90, 0x27,
  174. 0x4d, 0x1f, 0x81, 0xd8, 0xe3, 0x09, 0xec, 0xbd, 0xd6, 0x86, 0xaa, 0x7a, 0xce, 0x52, 0xe4, 0xbd,
  175. 0x62, 0xa0, 0xb3, 0x1f, 0x7c, 0x3f, 0x67, 0xf5, 0x00, 0xe3, 0x0d, 0x01, 0x37, 0xf6, 0x9d, 0x09,
  176. 0xaf, 0x21, 0x73, 0xc4, 0xc1, 0xf8, 0x56, 0x30, 0x9c, 0x9c, 0x95, 0xff, 0xbd, 0xca, 0x3f, 0x49,
  177. 0x30, 0x5e, 0xff, 0xd2, 0x55, 0x0d, 0xa3, 0xf5, 0x03, 0x1e, 0x43, 0xb6, 0xf2, 0x96, 0x22, 0x17,
  178. 0xc5, 0x40, 0xa7, 0xad, 0x35, 0x1e, 0x41, 0xca, 0x7e, 0xea, 0x03, 0xcb, 0xdd, 0x5c, 0x14, 0x89,
  179. 0x5e, 0x21, 0x3c, 0x84, 0x84, 0x9c, 0xb3, 0x4e, 0xf6, 0x22, 0xbd, 0x05, 0x88, 0xd0, 0xe7, 0xfa,
  180. 0x8b, 0x64, 0x3f, 0x17, 0xc5, 0xbe, 0x8e, 0xb3, 0xca, 0x20, 0xb9, 0x5b, 0x34, 0xfe, 0x73, 0x62,
  181. 0x60, 0xf4, 0x14, 0xd3, 0x3d, 0xc6, 0x70, 0xf8, 0x0c, 0xc3, 0xb5, 0xa7, 0xf0, 0xbc, 0x9b, 0xbd,
  182. 0x5b, 0xd2, 0xe9, 0xc5, 0x16, 0x56, 0xdb, 0x8c, 0xda, 0x99, 0xa5, 0xb1, 0xfc, 0xab, 0xef, 0x00,
  183. 0x00, 0x00, 0xff, 0xff, 0xd3, 0x09, 0x3b, 0x59, 0x93, 0x01, 0x00, 0x00,
  184. }