service.pb.go 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: service.proto
  3. //声明 包名
  4. package proto
  5. import (
  6. context "context"
  7. fmt "fmt"
  8. proto "github.com/golang/protobuf/proto"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. math "math"
  13. )
  14. // Reference imports to suppress errors if they are not otherwise used.
  15. var _ = proto.Marshal
  16. var _ = fmt.Errorf
  17. var _ = math.Inf
  18. // This is a compile-time assertion to ensure that this generated file
  19. // is compatible with the proto package it is being compiled against.
  20. // A compilation error at this line likely means your copy of the
  21. // proto package needs to be updated.
  22. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  23. //服务参数
  24. type ServiceMeta struct {
  25. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  26. Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"`
  27. Port int32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
  28. Workers int32 `protobuf:"varint,4,opt,name=workers,proto3" json:"workers,omitempty"`
  29. Balance int32 `protobuf:"varint,5,opt,name=balance,proto3" json:"balance,omitempty"`
  30. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  31. XXX_unrecognized []byte `json:"-"`
  32. XXX_sizecache int32 `json:"-"`
  33. }
  34. func (m *ServiceMeta) Reset() { *m = ServiceMeta{} }
  35. func (m *ServiceMeta) String() string { return proto.CompactTextString(m) }
  36. func (*ServiceMeta) ProtoMessage() {}
  37. func (*ServiceMeta) Descriptor() ([]byte, []int) {
  38. return fileDescriptor_a0b84a42fa06f626, []int{0}
  39. }
  40. func (m *ServiceMeta) XXX_Unmarshal(b []byte) error {
  41. return xxx_messageInfo_ServiceMeta.Unmarshal(m, b)
  42. }
  43. func (m *ServiceMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  44. return xxx_messageInfo_ServiceMeta.Marshal(b, m, deterministic)
  45. }
  46. func (m *ServiceMeta) XXX_Merge(src proto.Message) {
  47. xxx_messageInfo_ServiceMeta.Merge(m, src)
  48. }
  49. func (m *ServiceMeta) XXX_Size() int {
  50. return xxx_messageInfo_ServiceMeta.Size(m)
  51. }
  52. func (m *ServiceMeta) XXX_DiscardUnknown() {
  53. xxx_messageInfo_ServiceMeta.DiscardUnknown(m)
  54. }
  55. var xxx_messageInfo_ServiceMeta proto.InternalMessageInfo
  56. func (m *ServiceMeta) GetName() string {
  57. if m != nil {
  58. return m.Name
  59. }
  60. return ""
  61. }
  62. func (m *ServiceMeta) GetIp() string {
  63. if m != nil {
  64. return m.Ip
  65. }
  66. return ""
  67. }
  68. func (m *ServiceMeta) GetPort() int32 {
  69. if m != nil {
  70. return m.Port
  71. }
  72. return 0
  73. }
  74. func (m *ServiceMeta) GetWorkers() int32 {
  75. if m != nil {
  76. return m.Workers
  77. }
  78. return 0
  79. }
  80. func (m *ServiceMeta) GetBalance() int32 {
  81. if m != nil {
  82. return m.Balance
  83. }
  84. return 0
  85. }
  86. //标准字符串返回结果
  87. type StringRepData struct {
  88. Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
  89. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  90. XXX_unrecognized []byte `json:"-"`
  91. XXX_sizecache int32 `json:"-"`
  92. }
  93. func (m *StringRepData) Reset() { *m = StringRepData{} }
  94. func (m *StringRepData) String() string { return proto.CompactTextString(m) }
  95. func (*StringRepData) ProtoMessage() {}
  96. func (*StringRepData) Descriptor() ([]byte, []int) {
  97. return fileDescriptor_a0b84a42fa06f626, []int{1}
  98. }
  99. func (m *StringRepData) XXX_Unmarshal(b []byte) error {
  100. return xxx_messageInfo_StringRepData.Unmarshal(m, b)
  101. }
  102. func (m *StringRepData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  103. return xxx_messageInfo_StringRepData.Marshal(b, m, deterministic)
  104. }
  105. func (m *StringRepData) XXX_Merge(src proto.Message) {
  106. xxx_messageInfo_StringRepData.Merge(m, src)
  107. }
  108. func (m *StringRepData) XXX_Size() int {
  109. return xxx_messageInfo_StringRepData.Size(m)
  110. }
  111. func (m *StringRepData) XXX_DiscardUnknown() {
  112. xxx_messageInfo_StringRepData.DiscardUnknown(m)
  113. }
  114. var xxx_messageInfo_StringRepData proto.InternalMessageInfo
  115. func (m *StringRepData) GetData() string {
  116. if m != nil {
  117. return m.Data
  118. }
  119. return ""
  120. }
  121. //标准字符串请求
  122. type StringReqData struct {
  123. Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
  124. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  125. XXX_unrecognized []byte `json:"-"`
  126. XXX_sizecache int32 `json:"-"`
  127. }
  128. func (m *StringReqData) Reset() { *m = StringReqData{} }
  129. func (m *StringReqData) String() string { return proto.CompactTextString(m) }
  130. func (*StringReqData) ProtoMessage() {}
  131. func (*StringReqData) Descriptor() ([]byte, []int) {
  132. return fileDescriptor_a0b84a42fa06f626, []int{2}
  133. }
  134. func (m *StringReqData) XXX_Unmarshal(b []byte) error {
  135. return xxx_messageInfo_StringReqData.Unmarshal(m, b)
  136. }
  137. func (m *StringReqData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  138. return xxx_messageInfo_StringReqData.Marshal(b, m, deterministic)
  139. }
  140. func (m *StringReqData) XXX_Merge(src proto.Message) {
  141. xxx_messageInfo_StringReqData.Merge(m, src)
  142. }
  143. func (m *StringReqData) XXX_Size() int {
  144. return xxx_messageInfo_StringReqData.Size(m)
  145. }
  146. func (m *StringReqData) XXX_DiscardUnknown() {
  147. xxx_messageInfo_StringReqData.DiscardUnknown(m)
  148. }
  149. var xxx_messageInfo_StringReqData proto.InternalMessageInfo
  150. func (m *StringReqData) GetData() string {
  151. if m != nil {
  152. return m.Data
  153. }
  154. return ""
  155. }
  156. //
  157. type ApplyReqData struct {
  158. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  159. Balance int32 `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"`
  160. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  161. XXX_unrecognized []byte `json:"-"`
  162. XXX_sizecache int32 `json:"-"`
  163. }
  164. func (m *ApplyReqData) Reset() { *m = ApplyReqData{} }
  165. func (m *ApplyReqData) String() string { return proto.CompactTextString(m) }
  166. func (*ApplyReqData) ProtoMessage() {}
  167. func (*ApplyReqData) Descriptor() ([]byte, []int) {
  168. return fileDescriptor_a0b84a42fa06f626, []int{3}
  169. }
  170. func (m *ApplyReqData) XXX_Unmarshal(b []byte) error {
  171. return xxx_messageInfo_ApplyReqData.Unmarshal(m, b)
  172. }
  173. func (m *ApplyReqData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  174. return xxx_messageInfo_ApplyReqData.Marshal(b, m, deterministic)
  175. }
  176. func (m *ApplyReqData) XXX_Merge(src proto.Message) {
  177. xxx_messageInfo_ApplyReqData.Merge(m, src)
  178. }
  179. func (m *ApplyReqData) XXX_Size() int {
  180. return xxx_messageInfo_ApplyReqData.Size(m)
  181. }
  182. func (m *ApplyReqData) XXX_DiscardUnknown() {
  183. xxx_messageInfo_ApplyReqData.DiscardUnknown(m)
  184. }
  185. var xxx_messageInfo_ApplyReqData proto.InternalMessageInfo
  186. func (m *ApplyReqData) GetName() string {
  187. if m != nil {
  188. return m.Name
  189. }
  190. return ""
  191. }
  192. func (m *ApplyReqData) GetBalance() int32 {
  193. if m != nil {
  194. return m.Balance
  195. }
  196. return 0
  197. }
  198. type ApplyRepData struct {
  199. Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
  200. ResourceId string `protobuf:"bytes,2,opt,name=resourceId,proto3" json:"resourceId,omitempty"`
  201. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  202. XXX_unrecognized []byte `json:"-"`
  203. XXX_sizecache int32 `json:"-"`
  204. }
  205. func (m *ApplyRepData) Reset() { *m = ApplyRepData{} }
  206. func (m *ApplyRepData) String() string { return proto.CompactTextString(m) }
  207. func (*ApplyRepData) ProtoMessage() {}
  208. func (*ApplyRepData) Descriptor() ([]byte, []int) {
  209. return fileDescriptor_a0b84a42fa06f626, []int{4}
  210. }
  211. func (m *ApplyRepData) XXX_Unmarshal(b []byte) error {
  212. return xxx_messageInfo_ApplyRepData.Unmarshal(m, b)
  213. }
  214. func (m *ApplyRepData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  215. return xxx_messageInfo_ApplyRepData.Marshal(b, m, deterministic)
  216. }
  217. func (m *ApplyRepData) XXX_Merge(src proto.Message) {
  218. xxx_messageInfo_ApplyRepData.Merge(m, src)
  219. }
  220. func (m *ApplyRepData) XXX_Size() int {
  221. return xxx_messageInfo_ApplyRepData.Size(m)
  222. }
  223. func (m *ApplyRepData) XXX_DiscardUnknown() {
  224. xxx_messageInfo_ApplyRepData.DiscardUnknown(m)
  225. }
  226. var xxx_messageInfo_ApplyRepData proto.InternalMessageInfo
  227. func (m *ApplyRepData) GetAddr() string {
  228. if m != nil {
  229. return m.Addr
  230. }
  231. return ""
  232. }
  233. func (m *ApplyRepData) GetResourceId() string {
  234. if m != nil {
  235. return m.ResourceId
  236. }
  237. return ""
  238. }
  239. func init() {
  240. proto.RegisterType((*ServiceMeta)(nil), "proto.ServiceMeta")
  241. proto.RegisterType((*StringRepData)(nil), "proto.StringRepData")
  242. proto.RegisterType((*StringReqData)(nil), "proto.StringReqData")
  243. proto.RegisterType((*ApplyReqData)(nil), "proto.ApplyReqData")
  244. proto.RegisterType((*ApplyRepData)(nil), "proto.ApplyRepData")
  245. }
  246. func init() {
  247. proto.RegisterFile("service.proto", fileDescriptor_a0b84a42fa06f626)
  248. }
  249. var fileDescriptor_a0b84a42fa06f626 = []byte{
  250. // 282 bytes of a gzipped FileDescriptorProto
  251. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x50, 0xb1, 0x4e, 0xc3, 0x30,
  252. 0x10, 0x25, 0xa1, 0xa1, 0xe2, 0xa0, 0x0c, 0x07, 0x83, 0xd5, 0x01, 0x55, 0x61, 0xe9, 0xd4, 0x81,
  253. 0x0a, 0xb1, 0xb0, 0x80, 0xba, 0x30, 0xb0, 0xa4, 0x5f, 0xe0, 0x26, 0xa7, 0x2a, 0x22, 0xc4, 0xe6,
  254. 0x6c, 0x40, 0xf9, 0x60, 0xfe, 0x03, 0xd9, 0x89, 0x2b, 0x53, 0xd4, 0x81, 0x29, 0xcf, 0xef, 0xde,
  255. 0xcb, 0xbd, 0x7b, 0x30, 0x31, 0xc4, 0x9f, 0x75, 0x49, 0x0b, 0xcd, 0xca, 0x2a, 0xcc, 0xfc, 0x27,
  256. 0xef, 0xe0, 0x6c, 0xdd, 0xf3, 0x2f, 0x64, 0x25, 0x22, 0x8c, 0x5a, 0xf9, 0x46, 0x22, 0x99, 0x25,
  257. 0xf3, 0xd3, 0xc2, 0x63, 0xbc, 0x80, 0xb4, 0xd6, 0x22, 0xf5, 0x4c, 0x5a, 0x6b, 0xa7, 0xd1, 0x8a,
  258. 0xad, 0x38, 0x9e, 0x25, 0xf3, 0xac, 0xf0, 0x18, 0x05, 0x8c, 0xbf, 0x14, 0xbf, 0x12, 0x1b, 0x31,
  259. 0xf2, 0x74, 0x78, 0xba, 0xc9, 0x46, 0x36, 0xb2, 0x2d, 0x49, 0x64, 0xfd, 0x64, 0x78, 0xe6, 0x37,
  260. 0x30, 0x59, 0x5b, 0xae, 0xdb, 0x6d, 0x41, 0x7a, 0x25, 0xfb, 0xe5, 0x95, 0xb4, 0x32, 0x2c, 0x77,
  261. 0x38, 0x16, 0xbd, 0x1f, 0x14, 0x3d, 0xc0, 0xf9, 0xa3, 0xd6, 0x4d, 0x17, 0x69, 0xfe, 0x5c, 0x11,
  262. 0xe5, 0x48, 0x7f, 0xe7, 0x78, 0xda, 0xb9, 0x77, 0x31, 0x64, 0x55, 0x71, 0x70, 0x3b, 0x8c, 0xd7,
  263. 0x00, 0x4c, 0x46, 0x7d, 0x70, 0x49, 0xcf, 0xd5, 0xd0, 0x45, 0xc4, 0xdc, 0x7e, 0x27, 0x30, 0x1e,
  264. 0x7a, 0xc4, 0x3b, 0x18, 0x17, 0xb4, 0xad, 0x8d, 0x25, 0xc4, 0xbe, 0xec, 0x45, 0x54, 0xf1, 0xf4,
  265. 0x2a, 0x70, 0xf1, 0xed, 0xf9, 0x91, 0xb3, 0xad, 0xc8, 0x58, 0xc5, 0xdd, 0xbf, 0x6c, 0x4b, 0xc8,
  266. 0x7c, 0x7a, 0xbc, 0x1c, 0x04, 0x71, 0x13, 0xd3, 0x3d, 0x32, 0x98, 0xee, 0x5d, 0xc4, 0x86, 0xa4,
  267. 0x21, 0xdc, 0xff, 0x6f, 0xef, 0x3b, 0xb0, 0x6d, 0x73, 0xe2, 0xe9, 0xe5, 0x4f, 0x00, 0x00, 0x00,
  268. 0xff, 0xff, 0x80, 0x2d, 0x4a, 0xbc, 0x4d, 0x02, 0x00, 0x00,
  269. }
  270. // Reference imports to suppress errors if they are not otherwise used.
  271. var _ context.Context
  272. var _ grpc.ClientConnInterface
  273. // This is a compile-time assertion to ensure that this generated file
  274. // is compatible with the grpc package it is being compiled against.
  275. const _ = grpc.SupportPackageIsVersion6
  276. // ServiceClient is the client API for Service service.
  277. //
  278. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  279. type ServiceClient interface {
  280. //注册服务
  281. Registe(ctx context.Context, in *ServiceMeta, opts ...grpc.CallOption) (*StringRepData, error)
  282. //注销服务
  283. Destory(ctx context.Context, in *ServiceMeta, opts ...grpc.CallOption) (*StringRepData, error)
  284. //申请服务
  285. Apply(ctx context.Context, in *ApplyReqData, opts ...grpc.CallOption) (*ApplyRepData, error)
  286. //释放服务
  287. Release(ctx context.Context, in *StringReqData, opts ...grpc.CallOption) (*StringRepData, error)
  288. }
  289. type serviceClient struct {
  290. cc grpc.ClientConnInterface
  291. }
  292. func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient {
  293. return &serviceClient{cc}
  294. }
  295. func (c *serviceClient) Registe(ctx context.Context, in *ServiceMeta, opts ...grpc.CallOption) (*StringRepData, error) {
  296. out := new(StringRepData)
  297. err := c.cc.Invoke(ctx, "/proto.Service/Registe", in, out, opts...)
  298. if err != nil {
  299. return nil, err
  300. }
  301. return out, nil
  302. }
  303. func (c *serviceClient) Destory(ctx context.Context, in *ServiceMeta, opts ...grpc.CallOption) (*StringRepData, error) {
  304. out := new(StringRepData)
  305. err := c.cc.Invoke(ctx, "/proto.Service/Destory", in, out, opts...)
  306. if err != nil {
  307. return nil, err
  308. }
  309. return out, nil
  310. }
  311. func (c *serviceClient) Apply(ctx context.Context, in *ApplyReqData, opts ...grpc.CallOption) (*ApplyRepData, error) {
  312. out := new(ApplyRepData)
  313. err := c.cc.Invoke(ctx, "/proto.Service/Apply", in, out, opts...)
  314. if err != nil {
  315. return nil, err
  316. }
  317. return out, nil
  318. }
  319. func (c *serviceClient) Release(ctx context.Context, in *StringReqData, opts ...grpc.CallOption) (*StringRepData, error) {
  320. out := new(StringRepData)
  321. err := c.cc.Invoke(ctx, "/proto.Service/Release", in, out, opts...)
  322. if err != nil {
  323. return nil, err
  324. }
  325. return out, nil
  326. }
  327. // ServiceServer is the server API for Service service.
  328. type ServiceServer interface {
  329. //注册服务
  330. Registe(context.Context, *ServiceMeta) (*StringRepData, error)
  331. //注销服务
  332. Destory(context.Context, *ServiceMeta) (*StringRepData, error)
  333. //申请服务
  334. Apply(context.Context, *ApplyReqData) (*ApplyRepData, error)
  335. //释放服务
  336. Release(context.Context, *StringReqData) (*StringRepData, error)
  337. }
  338. // UnimplementedServiceServer can be embedded to have forward compatible implementations.
  339. type UnimplementedServiceServer struct {
  340. }
  341. func (*UnimplementedServiceServer) Registe(ctx context.Context, req *ServiceMeta) (*StringRepData, error) {
  342. return nil, status.Errorf(codes.Unimplemented, "method Registe not implemented")
  343. }
  344. func (*UnimplementedServiceServer) Destory(ctx context.Context, req *ServiceMeta) (*StringRepData, error) {
  345. return nil, status.Errorf(codes.Unimplemented, "method Destory not implemented")
  346. }
  347. func (*UnimplementedServiceServer) Apply(ctx context.Context, req *ApplyReqData) (*ApplyRepData, error) {
  348. return nil, status.Errorf(codes.Unimplemented, "method Apply not implemented")
  349. }
  350. func (*UnimplementedServiceServer) Release(ctx context.Context, req *StringReqData) (*StringRepData, error) {
  351. return nil, status.Errorf(codes.Unimplemented, "method Release not implemented")
  352. }
  353. func RegisterServiceServer(s *grpc.Server, srv ServiceServer) {
  354. s.RegisterService(&_Service_serviceDesc, srv)
  355. }
  356. func _Service_Registe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  357. in := new(ServiceMeta)
  358. if err := dec(in); err != nil {
  359. return nil, err
  360. }
  361. if interceptor == nil {
  362. return srv.(ServiceServer).Registe(ctx, in)
  363. }
  364. info := &grpc.UnaryServerInfo{
  365. Server: srv,
  366. FullMethod: "/proto.Service/Registe",
  367. }
  368. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  369. return srv.(ServiceServer).Registe(ctx, req.(*ServiceMeta))
  370. }
  371. return interceptor(ctx, in, info, handler)
  372. }
  373. func _Service_Destory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  374. in := new(ServiceMeta)
  375. if err := dec(in); err != nil {
  376. return nil, err
  377. }
  378. if interceptor == nil {
  379. return srv.(ServiceServer).Destory(ctx, in)
  380. }
  381. info := &grpc.UnaryServerInfo{
  382. Server: srv,
  383. FullMethod: "/proto.Service/Destory",
  384. }
  385. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  386. return srv.(ServiceServer).Destory(ctx, req.(*ServiceMeta))
  387. }
  388. return interceptor(ctx, in, info, handler)
  389. }
  390. func _Service_Apply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  391. in := new(ApplyReqData)
  392. if err := dec(in); err != nil {
  393. return nil, err
  394. }
  395. if interceptor == nil {
  396. return srv.(ServiceServer).Apply(ctx, in)
  397. }
  398. info := &grpc.UnaryServerInfo{
  399. Server: srv,
  400. FullMethod: "/proto.Service/Apply",
  401. }
  402. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  403. return srv.(ServiceServer).Apply(ctx, req.(*ApplyReqData))
  404. }
  405. return interceptor(ctx, in, info, handler)
  406. }
  407. func _Service_Release_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  408. in := new(StringReqData)
  409. if err := dec(in); err != nil {
  410. return nil, err
  411. }
  412. if interceptor == nil {
  413. return srv.(ServiceServer).Release(ctx, in)
  414. }
  415. info := &grpc.UnaryServerInfo{
  416. Server: srv,
  417. FullMethod: "/proto.Service/Release",
  418. }
  419. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  420. return srv.(ServiceServer).Release(ctx, req.(*StringReqData))
  421. }
  422. return interceptor(ctx, in, info, handler)
  423. }
  424. var _Service_serviceDesc = grpc.ServiceDesc{
  425. ServiceName: "proto.Service",
  426. HandlerType: (*ServiceServer)(nil),
  427. Methods: []grpc.MethodDesc{
  428. {
  429. MethodName: "Registe",
  430. Handler: _Service_Registe_Handler,
  431. },
  432. {
  433. MethodName: "Destory",
  434. Handler: _Service_Destory_Handler,
  435. },
  436. {
  437. MethodName: "Apply",
  438. Handler: _Service_Apply_Handler,
  439. },
  440. {
  441. MethodName: "Release",
  442. Handler: _Service_Release_Handler,
  443. },
  444. },
  445. Streams: []grpc.StreamDesc{},
  446. Metadata: "service.proto",
  447. }