biService_grpc.pb.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. // versions:
  3. // - protoc-gen-go-grpc v1.3.0
  4. // - protoc v3.19.4
  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. const (
  18. BiService_MyDataAsset_FullMethodName = "/BiService/myDataAsset"
  19. BiService_AddProject_FullMethodName = "/BiService/addProject"
  20. BiService_GetInfoId_FullMethodName = "/BiService/getInfoId"
  21. BiService_DrawClue_FullMethodName = "/BiService/drawClue"
  22. BiService_Call_FullMethodName = "/BiService/Call"
  23. BiService_DistributeClue_FullMethodName = "/BiService/distributeClue"
  24. BiService_ClueImport_FullMethodName = "/BiService/clueImport"
  25. BiService_ClueAdd_FullMethodName = "/BiService/clueAdd"
  26. )
  27. // BiServiceClient is the client API for BiService service.
  28. //
  29. // 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.
  30. type BiServiceClient interface {
  31. MyDataAsset(ctx context.Context, in *MyDataAssetReq, opts ...grpc.CallOption) (*MyDataAssetResp, error)
  32. AddProject(ctx context.Context, in *AddProjectReq, opts ...grpc.CallOption) (*AddProjectResp, error)
  33. GetInfoId(ctx context.Context, in *AddProjectReq, opts ...grpc.CallOption) (*GetInfoIdResp, error)
  34. DrawClue(ctx context.Context, in *DrawClueReq, opts ...grpc.CallOption) (*AddProjectResp, error)
  35. Call(ctx context.Context, in *CallReq, opts ...grpc.CallOption) (*Resp, error)
  36. DistributeClue(ctx context.Context, in *DistributeClueReq, opts ...grpc.CallOption) (*AddProjectResp, error)
  37. ClueImport(ctx context.Context, in *ClueImportReq, opts ...grpc.CallOption) (*ClueImportResp, error)
  38. ClueAdd(ctx context.Context, in *ClueAddReq, opts ...grpc.CallOption) (*AddProjectResp, error)
  39. }
  40. type biServiceClient struct {
  41. cc grpc.ClientConnInterface
  42. }
  43. func NewBiServiceClient(cc grpc.ClientConnInterface) BiServiceClient {
  44. return &biServiceClient{cc}
  45. }
  46. func (c *biServiceClient) MyDataAsset(ctx context.Context, in *MyDataAssetReq, opts ...grpc.CallOption) (*MyDataAssetResp, error) {
  47. out := new(MyDataAssetResp)
  48. err := c.cc.Invoke(ctx, BiService_MyDataAsset_FullMethodName, in, out, opts...)
  49. if err != nil {
  50. return nil, err
  51. }
  52. return out, nil
  53. }
  54. func (c *biServiceClient) AddProject(ctx context.Context, in *AddProjectReq, opts ...grpc.CallOption) (*AddProjectResp, error) {
  55. out := new(AddProjectResp)
  56. err := c.cc.Invoke(ctx, BiService_AddProject_FullMethodName, in, out, opts...)
  57. if err != nil {
  58. return nil, err
  59. }
  60. return out, nil
  61. }
  62. func (c *biServiceClient) GetInfoId(ctx context.Context, in *AddProjectReq, opts ...grpc.CallOption) (*GetInfoIdResp, error) {
  63. out := new(GetInfoIdResp)
  64. err := c.cc.Invoke(ctx, BiService_GetInfoId_FullMethodName, in, out, opts...)
  65. if err != nil {
  66. return nil, err
  67. }
  68. return out, nil
  69. }
  70. func (c *biServiceClient) DrawClue(ctx context.Context, in *DrawClueReq, opts ...grpc.CallOption) (*AddProjectResp, error) {
  71. out := new(AddProjectResp)
  72. err := c.cc.Invoke(ctx, BiService_DrawClue_FullMethodName, in, out, opts...)
  73. if err != nil {
  74. return nil, err
  75. }
  76. return out, nil
  77. }
  78. func (c *biServiceClient) Call(ctx context.Context, in *CallReq, opts ...grpc.CallOption) (*Resp, error) {
  79. out := new(Resp)
  80. err := c.cc.Invoke(ctx, BiService_Call_FullMethodName, in, out, opts...)
  81. if err != nil {
  82. return nil, err
  83. }
  84. return out, nil
  85. }
  86. func (c *biServiceClient) DistributeClue(ctx context.Context, in *DistributeClueReq, opts ...grpc.CallOption) (*AddProjectResp, error) {
  87. out := new(AddProjectResp)
  88. err := c.cc.Invoke(ctx, BiService_DistributeClue_FullMethodName, in, out, opts...)
  89. if err != nil {
  90. return nil, err
  91. }
  92. return out, nil
  93. }
  94. func (c *biServiceClient) ClueImport(ctx context.Context, in *ClueImportReq, opts ...grpc.CallOption) (*ClueImportResp, error) {
  95. out := new(ClueImportResp)
  96. err := c.cc.Invoke(ctx, BiService_ClueImport_FullMethodName, in, out, opts...)
  97. if err != nil {
  98. return nil, err
  99. }
  100. return out, nil
  101. }
  102. func (c *biServiceClient) ClueAdd(ctx context.Context, in *ClueAddReq, opts ...grpc.CallOption) (*AddProjectResp, error) {
  103. out := new(AddProjectResp)
  104. err := c.cc.Invoke(ctx, BiService_ClueAdd_FullMethodName, in, out, opts...)
  105. if err != nil {
  106. return nil, err
  107. }
  108. return out, nil
  109. }
  110. // BiServiceServer is the server API for BiService service.
  111. // All implementations must embed UnimplementedBiServiceServer
  112. // for forward compatibility
  113. type BiServiceServer interface {
  114. MyDataAsset(context.Context, *MyDataAssetReq) (*MyDataAssetResp, error)
  115. AddProject(context.Context, *AddProjectReq) (*AddProjectResp, error)
  116. GetInfoId(context.Context, *AddProjectReq) (*GetInfoIdResp, error)
  117. DrawClue(context.Context, *DrawClueReq) (*AddProjectResp, error)
  118. Call(context.Context, *CallReq) (*Resp, error)
  119. DistributeClue(context.Context, *DistributeClueReq) (*AddProjectResp, error)
  120. ClueImport(context.Context, *ClueImportReq) (*ClueImportResp, error)
  121. ClueAdd(context.Context, *ClueAddReq) (*AddProjectResp, error)
  122. mustEmbedUnimplementedBiServiceServer()
  123. }
  124. // UnimplementedBiServiceServer must be embedded to have forward compatible implementations.
  125. type UnimplementedBiServiceServer struct {
  126. }
  127. func (UnimplementedBiServiceServer) MyDataAsset(context.Context, *MyDataAssetReq) (*MyDataAssetResp, error) {
  128. return nil, status.Errorf(codes.Unimplemented, "method MyDataAsset not implemented")
  129. }
  130. func (UnimplementedBiServiceServer) AddProject(context.Context, *AddProjectReq) (*AddProjectResp, error) {
  131. return nil, status.Errorf(codes.Unimplemented, "method AddProject not implemented")
  132. }
  133. func (UnimplementedBiServiceServer) GetInfoId(context.Context, *AddProjectReq) (*GetInfoIdResp, error) {
  134. return nil, status.Errorf(codes.Unimplemented, "method GetInfoId not implemented")
  135. }
  136. func (UnimplementedBiServiceServer) DrawClue(context.Context, *DrawClueReq) (*AddProjectResp, error) {
  137. return nil, status.Errorf(codes.Unimplemented, "method DrawClue not implemented")
  138. }
  139. func (UnimplementedBiServiceServer) Call(context.Context, *CallReq) (*Resp, error) {
  140. return nil, status.Errorf(codes.Unimplemented, "method Call not implemented")
  141. }
  142. func (UnimplementedBiServiceServer) DistributeClue(context.Context, *DistributeClueReq) (*AddProjectResp, error) {
  143. return nil, status.Errorf(codes.Unimplemented, "method DistributeClue not implemented")
  144. }
  145. func (UnimplementedBiServiceServer) ClueImport(context.Context, *ClueImportReq) (*ClueImportResp, error) {
  146. return nil, status.Errorf(codes.Unimplemented, "method ClueImport not implemented")
  147. }
  148. func (UnimplementedBiServiceServer) ClueAdd(context.Context, *ClueAddReq) (*AddProjectResp, error) {
  149. return nil, status.Errorf(codes.Unimplemented, "method ClueAdd not implemented")
  150. }
  151. func (UnimplementedBiServiceServer) mustEmbedUnimplementedBiServiceServer() {}
  152. // UnsafeBiServiceServer may be embedded to opt out of forward compatibility for this service.
  153. // Use of this interface is not recommended, as added methods to BiServiceServer will
  154. // result in compilation errors.
  155. type UnsafeBiServiceServer interface {
  156. mustEmbedUnimplementedBiServiceServer()
  157. }
  158. func RegisterBiServiceServer(s grpc.ServiceRegistrar, srv BiServiceServer) {
  159. s.RegisterService(&BiService_ServiceDesc, srv)
  160. }
  161. func _BiService_MyDataAsset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  162. in := new(MyDataAssetReq)
  163. if err := dec(in); err != nil {
  164. return nil, err
  165. }
  166. if interceptor == nil {
  167. return srv.(BiServiceServer).MyDataAsset(ctx, in)
  168. }
  169. info := &grpc.UnaryServerInfo{
  170. Server: srv,
  171. FullMethod: BiService_MyDataAsset_FullMethodName,
  172. }
  173. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  174. return srv.(BiServiceServer).MyDataAsset(ctx, req.(*MyDataAssetReq))
  175. }
  176. return interceptor(ctx, in, info, handler)
  177. }
  178. func _BiService_AddProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  179. in := new(AddProjectReq)
  180. if err := dec(in); err != nil {
  181. return nil, err
  182. }
  183. if interceptor == nil {
  184. return srv.(BiServiceServer).AddProject(ctx, in)
  185. }
  186. info := &grpc.UnaryServerInfo{
  187. Server: srv,
  188. FullMethod: BiService_AddProject_FullMethodName,
  189. }
  190. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  191. return srv.(BiServiceServer).AddProject(ctx, req.(*AddProjectReq))
  192. }
  193. return interceptor(ctx, in, info, handler)
  194. }
  195. func _BiService_GetInfoId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  196. in := new(AddProjectReq)
  197. if err := dec(in); err != nil {
  198. return nil, err
  199. }
  200. if interceptor == nil {
  201. return srv.(BiServiceServer).GetInfoId(ctx, in)
  202. }
  203. info := &grpc.UnaryServerInfo{
  204. Server: srv,
  205. FullMethod: BiService_GetInfoId_FullMethodName,
  206. }
  207. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  208. return srv.(BiServiceServer).GetInfoId(ctx, req.(*AddProjectReq))
  209. }
  210. return interceptor(ctx, in, info, handler)
  211. }
  212. func _BiService_DrawClue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  213. in := new(DrawClueReq)
  214. if err := dec(in); err != nil {
  215. return nil, err
  216. }
  217. if interceptor == nil {
  218. return srv.(BiServiceServer).DrawClue(ctx, in)
  219. }
  220. info := &grpc.UnaryServerInfo{
  221. Server: srv,
  222. FullMethod: BiService_DrawClue_FullMethodName,
  223. }
  224. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  225. return srv.(BiServiceServer).DrawClue(ctx, req.(*DrawClueReq))
  226. }
  227. return interceptor(ctx, in, info, handler)
  228. }
  229. func _BiService_Call_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  230. in := new(CallReq)
  231. if err := dec(in); err != nil {
  232. return nil, err
  233. }
  234. if interceptor == nil {
  235. return srv.(BiServiceServer).Call(ctx, in)
  236. }
  237. info := &grpc.UnaryServerInfo{
  238. Server: srv,
  239. FullMethod: BiService_Call_FullMethodName,
  240. }
  241. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  242. return srv.(BiServiceServer).Call(ctx, req.(*CallReq))
  243. }
  244. return interceptor(ctx, in, info, handler)
  245. }
  246. func _BiService_DistributeClue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  247. in := new(DistributeClueReq)
  248. if err := dec(in); err != nil {
  249. return nil, err
  250. }
  251. if interceptor == nil {
  252. return srv.(BiServiceServer).DistributeClue(ctx, in)
  253. }
  254. info := &grpc.UnaryServerInfo{
  255. Server: srv,
  256. FullMethod: BiService_DistributeClue_FullMethodName,
  257. }
  258. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  259. return srv.(BiServiceServer).DistributeClue(ctx, req.(*DistributeClueReq))
  260. }
  261. return interceptor(ctx, in, info, handler)
  262. }
  263. func _BiService_ClueImport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  264. in := new(ClueImportReq)
  265. if err := dec(in); err != nil {
  266. return nil, err
  267. }
  268. if interceptor == nil {
  269. return srv.(BiServiceServer).ClueImport(ctx, in)
  270. }
  271. info := &grpc.UnaryServerInfo{
  272. Server: srv,
  273. FullMethod: BiService_ClueImport_FullMethodName,
  274. }
  275. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  276. return srv.(BiServiceServer).ClueImport(ctx, req.(*ClueImportReq))
  277. }
  278. return interceptor(ctx, in, info, handler)
  279. }
  280. func _BiService_ClueAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  281. in := new(ClueAddReq)
  282. if err := dec(in); err != nil {
  283. return nil, err
  284. }
  285. if interceptor == nil {
  286. return srv.(BiServiceServer).ClueAdd(ctx, in)
  287. }
  288. info := &grpc.UnaryServerInfo{
  289. Server: srv,
  290. FullMethod: BiService_ClueAdd_FullMethodName,
  291. }
  292. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  293. return srv.(BiServiceServer).ClueAdd(ctx, req.(*ClueAddReq))
  294. }
  295. return interceptor(ctx, in, info, handler)
  296. }
  297. // BiService_ServiceDesc is the grpc.ServiceDesc for BiService service.
  298. // It's only intended for direct use with grpc.RegisterService,
  299. // and not to be introspected or modified (even as a copy)
  300. var BiService_ServiceDesc = grpc.ServiceDesc{
  301. ServiceName: "BiService",
  302. HandlerType: (*BiServiceServer)(nil),
  303. Methods: []grpc.MethodDesc{
  304. {
  305. MethodName: "myDataAsset",
  306. Handler: _BiService_MyDataAsset_Handler,
  307. },
  308. {
  309. MethodName: "addProject",
  310. Handler: _BiService_AddProject_Handler,
  311. },
  312. {
  313. MethodName: "getInfoId",
  314. Handler: _BiService_GetInfoId_Handler,
  315. },
  316. {
  317. MethodName: "drawClue",
  318. Handler: _BiService_DrawClue_Handler,
  319. },
  320. {
  321. MethodName: "Call",
  322. Handler: _BiService_Call_Handler,
  323. },
  324. {
  325. MethodName: "distributeClue",
  326. Handler: _BiService_DistributeClue_Handler,
  327. },
  328. {
  329. MethodName: "clueImport",
  330. Handler: _BiService_ClueImport_Handler,
  331. },
  332. {
  333. MethodName: "clueAdd",
  334. Handler: _BiService_ClueAdd_Handler,
  335. },
  336. },
  337. Streams: []grpc.StreamDesc{},
  338. Metadata: "biService.proto",
  339. }