biService_grpc.pb.go 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. // versions:
  3. // - protoc-gen-go-grpc v1.2.0
  4. // - protoc v3.20.0--rc2
  5. // source: biService.proto
  6. package pb
  7. import (
  8. context "context"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. )
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the grpc package it is being compiled against.
  15. // Requires gRPC-Go v1.32.0 or later.
  16. const _ = grpc.SupportPackageIsVersion7
  17. // BiServiceClient is the client API for BiService service.
  18. //
  19. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
  20. type BiServiceClient interface {
  21. MyDataAsset(ctx context.Context, in *MyDataAssetReq, opts ...grpc.CallOption) (*MyDataAssetResp, error)
  22. AddProject(ctx context.Context, in *AddProjectReq, opts ...grpc.CallOption) (*AddProjectResp, error)
  23. GetInfoId(ctx context.Context, in *AddProjectReq, opts ...grpc.CallOption) (*GetInfoIdResp, error)
  24. DrawClue(ctx context.Context, in *DrawClueReq, opts ...grpc.CallOption) (*AddProjectResp, error)
  25. Call(ctx context.Context, in *CallReq, opts ...grpc.CallOption) (*BiResp, error)
  26. DistributeClue(ctx context.Context, in *DistributeClueReq, opts ...grpc.CallOption) (*AddProjectResp, error)
  27. ClueImport(ctx context.Context, in *ClueImportReq, opts ...grpc.CallOption) (*ClueImportResp, error)
  28. ClueAdd(ctx context.Context, in *ClueAddReq, opts ...grpc.CallOption) (*AddProjectResp, error)
  29. ClueImportTt(ctx context.Context, in *ClueImportReq, opts ...grpc.CallOption) (*ClueImportResp, error)
  30. AutoFollow(ctx context.Context, in *CallReq, opts ...grpc.CallOption) (*ClueImportResp, error)
  31. SqlManage(ctx context.Context, in *SqlManageReq, opts ...grpc.CallOption) (*BiReply, error)
  32. MyInfo(ctx context.Context, in *MyInfoReq, opts ...grpc.CallOption) (*BiReply, error)
  33. }
  34. type biServiceClient struct {
  35. cc grpc.ClientConnInterface
  36. }
  37. func NewBiServiceClient(cc grpc.ClientConnInterface) BiServiceClient {
  38. return &biServiceClient{cc}
  39. }
  40. func (c *biServiceClient) MyDataAsset(ctx context.Context, in *MyDataAssetReq, opts ...grpc.CallOption) (*MyDataAssetResp, error) {
  41. out := new(MyDataAssetResp)
  42. err := c.cc.Invoke(ctx, "/BiService/myDataAsset", in, out, opts...)
  43. if err != nil {
  44. return nil, err
  45. }
  46. return out, nil
  47. }
  48. func (c *biServiceClient) AddProject(ctx context.Context, in *AddProjectReq, opts ...grpc.CallOption) (*AddProjectResp, error) {
  49. out := new(AddProjectResp)
  50. err := c.cc.Invoke(ctx, "/BiService/addProject", in, out, opts...)
  51. if err != nil {
  52. return nil, err
  53. }
  54. return out, nil
  55. }
  56. func (c *biServiceClient) GetInfoId(ctx context.Context, in *AddProjectReq, opts ...grpc.CallOption) (*GetInfoIdResp, error) {
  57. out := new(GetInfoIdResp)
  58. err := c.cc.Invoke(ctx, "/BiService/getInfoId", in, out, opts...)
  59. if err != nil {
  60. return nil, err
  61. }
  62. return out, nil
  63. }
  64. func (c *biServiceClient) DrawClue(ctx context.Context, in *DrawClueReq, opts ...grpc.CallOption) (*AddProjectResp, error) {
  65. out := new(AddProjectResp)
  66. err := c.cc.Invoke(ctx, "/BiService/drawClue", in, out, opts...)
  67. if err != nil {
  68. return nil, err
  69. }
  70. return out, nil
  71. }
  72. func (c *biServiceClient) Call(ctx context.Context, in *CallReq, opts ...grpc.CallOption) (*BiResp, error) {
  73. out := new(BiResp)
  74. err := c.cc.Invoke(ctx, "/BiService/Call", in, out, opts...)
  75. if err != nil {
  76. return nil, err
  77. }
  78. return out, nil
  79. }
  80. func (c *biServiceClient) DistributeClue(ctx context.Context, in *DistributeClueReq, opts ...grpc.CallOption) (*AddProjectResp, error) {
  81. out := new(AddProjectResp)
  82. err := c.cc.Invoke(ctx, "/BiService/distributeClue", in, out, opts...)
  83. if err != nil {
  84. return nil, err
  85. }
  86. return out, nil
  87. }
  88. func (c *biServiceClient) ClueImport(ctx context.Context, in *ClueImportReq, opts ...grpc.CallOption) (*ClueImportResp, error) {
  89. out := new(ClueImportResp)
  90. err := c.cc.Invoke(ctx, "/BiService/clueImport", in, out, opts...)
  91. if err != nil {
  92. return nil, err
  93. }
  94. return out, nil
  95. }
  96. func (c *biServiceClient) ClueAdd(ctx context.Context, in *ClueAddReq, opts ...grpc.CallOption) (*AddProjectResp, error) {
  97. out := new(AddProjectResp)
  98. err := c.cc.Invoke(ctx, "/BiService/clueAdd", in, out, opts...)
  99. if err != nil {
  100. return nil, err
  101. }
  102. return out, nil
  103. }
  104. func (c *biServiceClient) ClueImportTt(ctx context.Context, in *ClueImportReq, opts ...grpc.CallOption) (*ClueImportResp, error) {
  105. out := new(ClueImportResp)
  106. err := c.cc.Invoke(ctx, "/BiService/clueImportTt", in, out, opts...)
  107. if err != nil {
  108. return nil, err
  109. }
  110. return out, nil
  111. }
  112. func (c *biServiceClient) AutoFollow(ctx context.Context, in *CallReq, opts ...grpc.CallOption) (*ClueImportResp, error) {
  113. out := new(ClueImportResp)
  114. err := c.cc.Invoke(ctx, "/BiService/autoFollow", in, out, opts...)
  115. if err != nil {
  116. return nil, err
  117. }
  118. return out, nil
  119. }
  120. func (c *biServiceClient) SqlManage(ctx context.Context, in *SqlManageReq, opts ...grpc.CallOption) (*BiReply, error) {
  121. out := new(BiReply)
  122. err := c.cc.Invoke(ctx, "/BiService/sqlManage", in, out, opts...)
  123. if err != nil {
  124. return nil, err
  125. }
  126. return out, nil
  127. }
  128. func (c *biServiceClient) MyInfo(ctx context.Context, in *MyInfoReq, opts ...grpc.CallOption) (*BiReply, error) {
  129. out := new(BiReply)
  130. err := c.cc.Invoke(ctx, "/BiService/myInfo", in, out, opts...)
  131. if err != nil {
  132. return nil, err
  133. }
  134. return out, nil
  135. }
  136. // BiServiceServer is the server API for BiService service.
  137. // All implementations must embed UnimplementedBiServiceServer
  138. // for forward compatibility
  139. type BiServiceServer interface {
  140. MyDataAsset(context.Context, *MyDataAssetReq) (*MyDataAssetResp, error)
  141. AddProject(context.Context, *AddProjectReq) (*AddProjectResp, error)
  142. GetInfoId(context.Context, *AddProjectReq) (*GetInfoIdResp, error)
  143. DrawClue(context.Context, *DrawClueReq) (*AddProjectResp, error)
  144. Call(context.Context, *CallReq) (*BiResp, error)
  145. DistributeClue(context.Context, *DistributeClueReq) (*AddProjectResp, error)
  146. ClueImport(context.Context, *ClueImportReq) (*ClueImportResp, error)
  147. ClueAdd(context.Context, *ClueAddReq) (*AddProjectResp, error)
  148. ClueImportTt(context.Context, *ClueImportReq) (*ClueImportResp, error)
  149. AutoFollow(context.Context, *CallReq) (*ClueImportResp, error)
  150. SqlManage(context.Context, *SqlManageReq) (*BiReply, error)
  151. MyInfo(context.Context, *MyInfoReq) (*BiReply, error)
  152. mustEmbedUnimplementedBiServiceServer()
  153. }
  154. // UnimplementedBiServiceServer must be embedded to have forward compatible implementations.
  155. type UnimplementedBiServiceServer struct {
  156. }
  157. func (UnimplementedBiServiceServer) MyDataAsset(context.Context, *MyDataAssetReq) (*MyDataAssetResp, error) {
  158. return nil, status.Errorf(codes.Unimplemented, "method MyDataAsset not implemented")
  159. }
  160. func (UnimplementedBiServiceServer) AddProject(context.Context, *AddProjectReq) (*AddProjectResp, error) {
  161. return nil, status.Errorf(codes.Unimplemented, "method AddProject not implemented")
  162. }
  163. func (UnimplementedBiServiceServer) GetInfoId(context.Context, *AddProjectReq) (*GetInfoIdResp, error) {
  164. return nil, status.Errorf(codes.Unimplemented, "method GetInfoId not implemented")
  165. }
  166. func (UnimplementedBiServiceServer) DrawClue(context.Context, *DrawClueReq) (*AddProjectResp, error) {
  167. return nil, status.Errorf(codes.Unimplemented, "method DrawClue not implemented")
  168. }
  169. func (UnimplementedBiServiceServer) Call(context.Context, *CallReq) (*BiResp, error) {
  170. return nil, status.Errorf(codes.Unimplemented, "method Call not implemented")
  171. }
  172. func (UnimplementedBiServiceServer) DistributeClue(context.Context, *DistributeClueReq) (*AddProjectResp, error) {
  173. return nil, status.Errorf(codes.Unimplemented, "method DistributeClue not implemented")
  174. }
  175. func (UnimplementedBiServiceServer) ClueImport(context.Context, *ClueImportReq) (*ClueImportResp, error) {
  176. return nil, status.Errorf(codes.Unimplemented, "method ClueImport not implemented")
  177. }
  178. func (UnimplementedBiServiceServer) ClueAdd(context.Context, *ClueAddReq) (*AddProjectResp, error) {
  179. return nil, status.Errorf(codes.Unimplemented, "method ClueAdd not implemented")
  180. }
  181. func (UnimplementedBiServiceServer) ClueImportTt(context.Context, *ClueImportReq) (*ClueImportResp, error) {
  182. return nil, status.Errorf(codes.Unimplemented, "method ClueImportTt not implemented")
  183. }
  184. func (UnimplementedBiServiceServer) AutoFollow(context.Context, *CallReq) (*ClueImportResp, error) {
  185. return nil, status.Errorf(codes.Unimplemented, "method AutoFollow not implemented")
  186. }
  187. func (UnimplementedBiServiceServer) SqlManage(context.Context, *SqlManageReq) (*BiReply, error) {
  188. return nil, status.Errorf(codes.Unimplemented, "method SqlManage not implemented")
  189. }
  190. func (UnimplementedBiServiceServer) MyInfo(context.Context, *MyInfoReq) (*BiReply, error) {
  191. return nil, status.Errorf(codes.Unimplemented, "method MyInfo not implemented")
  192. }
  193. func (UnimplementedBiServiceServer) mustEmbedUnimplementedBiServiceServer() {}
  194. // UnsafeBiServiceServer may be embedded to opt out of forward compatibility for this service.
  195. // Use of this interface is not recommended, as added methods to BiServiceServer will
  196. // result in compilation errors.
  197. type UnsafeBiServiceServer interface {
  198. mustEmbedUnimplementedBiServiceServer()
  199. }
  200. func RegisterBiServiceServer(s grpc.ServiceRegistrar, srv BiServiceServer) {
  201. s.RegisterService(&BiService_ServiceDesc, srv)
  202. }
  203. func _BiService_MyDataAsset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  204. in := new(MyDataAssetReq)
  205. if err := dec(in); err != nil {
  206. return nil, err
  207. }
  208. if interceptor == nil {
  209. return srv.(BiServiceServer).MyDataAsset(ctx, in)
  210. }
  211. info := &grpc.UnaryServerInfo{
  212. Server: srv,
  213. FullMethod: "/BiService/myDataAsset",
  214. }
  215. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  216. return srv.(BiServiceServer).MyDataAsset(ctx, req.(*MyDataAssetReq))
  217. }
  218. return interceptor(ctx, in, info, handler)
  219. }
  220. func _BiService_AddProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  221. in := new(AddProjectReq)
  222. if err := dec(in); err != nil {
  223. return nil, err
  224. }
  225. if interceptor == nil {
  226. return srv.(BiServiceServer).AddProject(ctx, in)
  227. }
  228. info := &grpc.UnaryServerInfo{
  229. Server: srv,
  230. FullMethod: "/BiService/addProject",
  231. }
  232. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  233. return srv.(BiServiceServer).AddProject(ctx, req.(*AddProjectReq))
  234. }
  235. return interceptor(ctx, in, info, handler)
  236. }
  237. func _BiService_GetInfoId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  238. in := new(AddProjectReq)
  239. if err := dec(in); err != nil {
  240. return nil, err
  241. }
  242. if interceptor == nil {
  243. return srv.(BiServiceServer).GetInfoId(ctx, in)
  244. }
  245. info := &grpc.UnaryServerInfo{
  246. Server: srv,
  247. FullMethod: "/BiService/getInfoId",
  248. }
  249. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  250. return srv.(BiServiceServer).GetInfoId(ctx, req.(*AddProjectReq))
  251. }
  252. return interceptor(ctx, in, info, handler)
  253. }
  254. func _BiService_DrawClue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  255. in := new(DrawClueReq)
  256. if err := dec(in); err != nil {
  257. return nil, err
  258. }
  259. if interceptor == nil {
  260. return srv.(BiServiceServer).DrawClue(ctx, in)
  261. }
  262. info := &grpc.UnaryServerInfo{
  263. Server: srv,
  264. FullMethod: "/BiService/drawClue",
  265. }
  266. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  267. return srv.(BiServiceServer).DrawClue(ctx, req.(*DrawClueReq))
  268. }
  269. return interceptor(ctx, in, info, handler)
  270. }
  271. func _BiService_Call_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  272. in := new(CallReq)
  273. if err := dec(in); err != nil {
  274. return nil, err
  275. }
  276. if interceptor == nil {
  277. return srv.(BiServiceServer).Call(ctx, in)
  278. }
  279. info := &grpc.UnaryServerInfo{
  280. Server: srv,
  281. FullMethod: "/BiService/Call",
  282. }
  283. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  284. return srv.(BiServiceServer).Call(ctx, req.(*CallReq))
  285. }
  286. return interceptor(ctx, in, info, handler)
  287. }
  288. func _BiService_DistributeClue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  289. in := new(DistributeClueReq)
  290. if err := dec(in); err != nil {
  291. return nil, err
  292. }
  293. if interceptor == nil {
  294. return srv.(BiServiceServer).DistributeClue(ctx, in)
  295. }
  296. info := &grpc.UnaryServerInfo{
  297. Server: srv,
  298. FullMethod: "/BiService/distributeClue",
  299. }
  300. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  301. return srv.(BiServiceServer).DistributeClue(ctx, req.(*DistributeClueReq))
  302. }
  303. return interceptor(ctx, in, info, handler)
  304. }
  305. func _BiService_ClueImport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  306. in := new(ClueImportReq)
  307. if err := dec(in); err != nil {
  308. return nil, err
  309. }
  310. if interceptor == nil {
  311. return srv.(BiServiceServer).ClueImport(ctx, in)
  312. }
  313. info := &grpc.UnaryServerInfo{
  314. Server: srv,
  315. FullMethod: "/BiService/clueImport",
  316. }
  317. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  318. return srv.(BiServiceServer).ClueImport(ctx, req.(*ClueImportReq))
  319. }
  320. return interceptor(ctx, in, info, handler)
  321. }
  322. func _BiService_ClueAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  323. in := new(ClueAddReq)
  324. if err := dec(in); err != nil {
  325. return nil, err
  326. }
  327. if interceptor == nil {
  328. return srv.(BiServiceServer).ClueAdd(ctx, in)
  329. }
  330. info := &grpc.UnaryServerInfo{
  331. Server: srv,
  332. FullMethod: "/BiService/clueAdd",
  333. }
  334. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  335. return srv.(BiServiceServer).ClueAdd(ctx, req.(*ClueAddReq))
  336. }
  337. return interceptor(ctx, in, info, handler)
  338. }
  339. func _BiService_ClueImportTt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  340. in := new(ClueImportReq)
  341. if err := dec(in); err != nil {
  342. return nil, err
  343. }
  344. if interceptor == nil {
  345. return srv.(BiServiceServer).ClueImportTt(ctx, in)
  346. }
  347. info := &grpc.UnaryServerInfo{
  348. Server: srv,
  349. FullMethod: "/BiService/clueImportTt",
  350. }
  351. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  352. return srv.(BiServiceServer).ClueImportTt(ctx, req.(*ClueImportReq))
  353. }
  354. return interceptor(ctx, in, info, handler)
  355. }
  356. func _BiService_AutoFollow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  357. in := new(CallReq)
  358. if err := dec(in); err != nil {
  359. return nil, err
  360. }
  361. if interceptor == nil {
  362. return srv.(BiServiceServer).AutoFollow(ctx, in)
  363. }
  364. info := &grpc.UnaryServerInfo{
  365. Server: srv,
  366. FullMethod: "/BiService/autoFollow",
  367. }
  368. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  369. return srv.(BiServiceServer).AutoFollow(ctx, req.(*CallReq))
  370. }
  371. return interceptor(ctx, in, info, handler)
  372. }
  373. func _BiService_SqlManage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  374. in := new(SqlManageReq)
  375. if err := dec(in); err != nil {
  376. return nil, err
  377. }
  378. if interceptor == nil {
  379. return srv.(BiServiceServer).SqlManage(ctx, in)
  380. }
  381. info := &grpc.UnaryServerInfo{
  382. Server: srv,
  383. FullMethod: "/BiService/sqlManage",
  384. }
  385. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  386. return srv.(BiServiceServer).SqlManage(ctx, req.(*SqlManageReq))
  387. }
  388. return interceptor(ctx, in, info, handler)
  389. }
  390. func _BiService_MyInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  391. in := new(MyInfoReq)
  392. if err := dec(in); err != nil {
  393. return nil, err
  394. }
  395. if interceptor == nil {
  396. return srv.(BiServiceServer).MyInfo(ctx, in)
  397. }
  398. info := &grpc.UnaryServerInfo{
  399. Server: srv,
  400. FullMethod: "/BiService/myInfo",
  401. }
  402. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  403. return srv.(BiServiceServer).MyInfo(ctx, req.(*MyInfoReq))
  404. }
  405. return interceptor(ctx, in, info, handler)
  406. }
  407. // BiService_ServiceDesc is the grpc.ServiceDesc for BiService service.
  408. // It's only intended for direct use with grpc.RegisterService,
  409. // and not to be introspected or modified (even as a copy)
  410. var BiService_ServiceDesc = grpc.ServiceDesc{
  411. ServiceName: "BiService",
  412. HandlerType: (*BiServiceServer)(nil),
  413. Methods: []grpc.MethodDesc{
  414. {
  415. MethodName: "myDataAsset",
  416. Handler: _BiService_MyDataAsset_Handler,
  417. },
  418. {
  419. MethodName: "addProject",
  420. Handler: _BiService_AddProject_Handler,
  421. },
  422. {
  423. MethodName: "getInfoId",
  424. Handler: _BiService_GetInfoId_Handler,
  425. },
  426. {
  427. MethodName: "drawClue",
  428. Handler: _BiService_DrawClue_Handler,
  429. },
  430. {
  431. MethodName: "Call",
  432. Handler: _BiService_Call_Handler,
  433. },
  434. {
  435. MethodName: "distributeClue",
  436. Handler: _BiService_DistributeClue_Handler,
  437. },
  438. {
  439. MethodName: "clueImport",
  440. Handler: _BiService_ClueImport_Handler,
  441. },
  442. {
  443. MethodName: "clueAdd",
  444. Handler: _BiService_ClueAdd_Handler,
  445. },
  446. {
  447. MethodName: "clueImportTt",
  448. Handler: _BiService_ClueImportTt_Handler,
  449. },
  450. {
  451. MethodName: "autoFollow",
  452. Handler: _BiService_AutoFollow_Handler,
  453. },
  454. {
  455. MethodName: "sqlManage",
  456. Handler: _BiService_SqlManage_Handler,
  457. },
  458. {
  459. MethodName: "myInfo",
  460. Handler: _BiService_MyInfo_Handler,
  461. },
  462. },
  463. Streams: []grpc.StreamDesc{},
  464. Metadata: "biService.proto",
  465. }