event_query_grpc.pb.go 23 KB

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