proto-gorm_grpc.pb.go 20 KB

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