123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506 |
- // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
- package proto_gorm
- import (
- context "context"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- )
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- // Requires gRPC-Go v1.32.0 or later.
- const _ = grpc.SupportPackageIsVersion7
- // IntPointServiceClient is the client API for IntPointService service.
- //
- // 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.
- type IntPointServiceClient interface {
- // The convention requires the rpc names have Create/Read/Update/List/Delete
- // as a prefix. The type is inferred from the response (except for delete),
- // so multiple objects can have CURDL handlers in the same service, provided
- // they are given unique suffixes
- Create(ctx context.Context, in *CreateIntPointRequest, opts ...grpc.CallOption) (*CreateIntPointResponse, error)
- Read(ctx context.Context, in *ReadIntPointRequest, opts ...grpc.CallOption) (*ReadIntPointResponse, error)
- Update(ctx context.Context, in *UpdateIntPointRequest, opts ...grpc.CallOption) (*UpdateIntPointResponse, error)
- UpdateSet(ctx context.Context, in *UpdateSetIntPointRequest, opts ...grpc.CallOption) (*UpdateSetIntPointResponse, error)
- //rpc List ( ListIntPointRequest ) returns ( ListIntPointResponse ) {
- // option (google.api.http) = {
- // get: "/v1/point"
- // };
- //}
- //rpc ListSomething( google.protobuf.Empty ) returns ( ListSomethingResponse ) {}
- Delete(ctx context.Context, in *DeleteIntPointRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error)
- }
- type intPointServiceClient struct {
- cc grpc.ClientConnInterface
- }
- func NewIntPointServiceClient(cc grpc.ClientConnInterface) IntPointServiceClient {
- return &intPointServiceClient{cc}
- }
- func (c *intPointServiceClient) Create(ctx context.Context, in *CreateIntPointRequest, opts ...grpc.CallOption) (*CreateIntPointResponse, error) {
- out := new(CreateIntPointResponse)
- err := c.cc.Invoke(ctx, "/proto_gorm.IntPointService/Create", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *intPointServiceClient) Read(ctx context.Context, in *ReadIntPointRequest, opts ...grpc.CallOption) (*ReadIntPointResponse, error) {
- out := new(ReadIntPointResponse)
- err := c.cc.Invoke(ctx, "/proto_gorm.IntPointService/Read", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *intPointServiceClient) Update(ctx context.Context, in *UpdateIntPointRequest, opts ...grpc.CallOption) (*UpdateIntPointResponse, error) {
- out := new(UpdateIntPointResponse)
- err := c.cc.Invoke(ctx, "/proto_gorm.IntPointService/Update", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *intPointServiceClient) UpdateSet(ctx context.Context, in *UpdateSetIntPointRequest, opts ...grpc.CallOption) (*UpdateSetIntPointResponse, error) {
- out := new(UpdateSetIntPointResponse)
- err := c.cc.Invoke(ctx, "/proto_gorm.IntPointService/UpdateSet", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *intPointServiceClient) Delete(ctx context.Context, in *DeleteIntPointRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) {
- out := new(DeleteIntPointResponse)
- err := c.cc.Invoke(ctx, "/proto_gorm.IntPointService/Delete", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // IntPointServiceServer is the server API for IntPointService service.
- // All implementations must embed UnimplementedIntPointServiceServer
- // for forward compatibility
- type IntPointServiceServer interface {
- // The convention requires the rpc names have Create/Read/Update/List/Delete
- // as a prefix. The type is inferred from the response (except for delete),
- // so multiple objects can have CURDL handlers in the same service, provided
- // they are given unique suffixes
- Create(context.Context, *CreateIntPointRequest) (*CreateIntPointResponse, error)
- Read(context.Context, *ReadIntPointRequest) (*ReadIntPointResponse, error)
- Update(context.Context, *UpdateIntPointRequest) (*UpdateIntPointResponse, error)
- UpdateSet(context.Context, *UpdateSetIntPointRequest) (*UpdateSetIntPointResponse, error)
- //rpc List ( ListIntPointRequest ) returns ( ListIntPointResponse ) {
- // option (google.api.http) = {
- // get: "/v1/point"
- // };
- //}
- //rpc ListSomething( google.protobuf.Empty ) returns ( ListSomethingResponse ) {}
- Delete(context.Context, *DeleteIntPointRequest) (*DeleteIntPointResponse, error)
- mustEmbedUnimplementedIntPointServiceServer()
- }
- // UnimplementedIntPointServiceServer must be embedded to have forward compatible implementations.
- type UnimplementedIntPointServiceServer struct {
- }
- func (UnimplementedIntPointServiceServer) Create(context.Context, *CreateIntPointRequest) (*CreateIntPointResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
- }
- func (UnimplementedIntPointServiceServer) Read(context.Context, *ReadIntPointRequest) (*ReadIntPointResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Read not implemented")
- }
- func (UnimplementedIntPointServiceServer) Update(context.Context, *UpdateIntPointRequest) (*UpdateIntPointResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
- }
- func (UnimplementedIntPointServiceServer) UpdateSet(context.Context, *UpdateSetIntPointRequest) (*UpdateSetIntPointResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UpdateSet not implemented")
- }
- func (UnimplementedIntPointServiceServer) Delete(context.Context, *DeleteIntPointRequest) (*DeleteIntPointResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
- }
- func (UnimplementedIntPointServiceServer) mustEmbedUnimplementedIntPointServiceServer() {}
- // UnsafeIntPointServiceServer may be embedded to opt out of forward compatibility for this service.
- // Use of this interface is not recommended, as added methods to IntPointServiceServer will
- // result in compilation errors.
- type UnsafeIntPointServiceServer interface {
- mustEmbedUnimplementedIntPointServiceServer()
- }
- func RegisterIntPointServiceServer(s grpc.ServiceRegistrar, srv IntPointServiceServer) {
- s.RegisterService(&IntPointService_ServiceDesc, srv)
- }
- func _IntPointService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CreateIntPointRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(IntPointServiceServer).Create(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/proto_gorm.IntPointService/Create",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(IntPointServiceServer).Create(ctx, req.(*CreateIntPointRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _IntPointService_Read_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ReadIntPointRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(IntPointServiceServer).Read(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/proto_gorm.IntPointService/Read",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(IntPointServiceServer).Read(ctx, req.(*ReadIntPointRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _IntPointService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UpdateIntPointRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(IntPointServiceServer).Update(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/proto_gorm.IntPointService/Update",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(IntPointServiceServer).Update(ctx, req.(*UpdateIntPointRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _IntPointService_UpdateSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UpdateSetIntPointRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(IntPointServiceServer).UpdateSet(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/proto_gorm.IntPointService/UpdateSet",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(IntPointServiceServer).UpdateSet(ctx, req.(*UpdateSetIntPointRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _IntPointService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DeleteIntPointRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(IntPointServiceServer).Delete(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/proto_gorm.IntPointService/Delete",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(IntPointServiceServer).Delete(ctx, req.(*DeleteIntPointRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- // IntPointService_ServiceDesc is the grpc.ServiceDesc for IntPointService service.
- // It's only intended for direct use with grpc.RegisterService,
- // and not to be introspected or modified (even as a copy)
- var IntPointService_ServiceDesc = grpc.ServiceDesc{
- ServiceName: "proto_gorm.IntPointService",
- HandlerType: (*IntPointServiceServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "Create",
- Handler: _IntPointService_Create_Handler,
- },
- {
- MethodName: "Read",
- Handler: _IntPointService_Read_Handler,
- },
- {
- MethodName: "Update",
- Handler: _IntPointService_Update_Handler,
- },
- {
- MethodName: "UpdateSet",
- Handler: _IntPointService_UpdateSet_Handler,
- },
- {
- MethodName: "Delete",
- Handler: _IntPointService_Delete_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "proto-gorm/api/proto-gorm.proto",
- }
- // IntPointTxnClient is the client API for IntPointTxn service.
- //
- // 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.
- type IntPointTxnClient interface {
- // The convention requires the rpc names have Create/Read/Update/List/Delete
- // as a prefix. The type is inferred from the response (except for delete),
- // so multiple objects can have CURDL handlers in the same service, provided
- // they are given unique suffixes
- Create(ctx context.Context, in *CreateIntPointRequest, opts ...grpc.CallOption) (*CreateIntPointResponse, error)
- Read(ctx context.Context, in *ReadIntPointRequest, opts ...grpc.CallOption) (*ReadIntPointResponse, error)
- Update(ctx context.Context, in *UpdateIntPointRequest, opts ...grpc.CallOption) (*UpdateIntPointResponse, error)
- //rpc List ( ListIntPointRequest ) returns ( ListIntPointResponse ) {}
- Delete(ctx context.Context, in *DeleteIntPointRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error)
- DeleteSet(ctx context.Context, in *DeleteIntPointsRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error)
- }
- type intPointTxnClient struct {
- cc grpc.ClientConnInterface
- }
- func NewIntPointTxnClient(cc grpc.ClientConnInterface) IntPointTxnClient {
- return &intPointTxnClient{cc}
- }
- func (c *intPointTxnClient) Create(ctx context.Context, in *CreateIntPointRequest, opts ...grpc.CallOption) (*CreateIntPointResponse, error) {
- out := new(CreateIntPointResponse)
- err := c.cc.Invoke(ctx, "/proto_gorm.IntPointTxn/Create", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *intPointTxnClient) Read(ctx context.Context, in *ReadIntPointRequest, opts ...grpc.CallOption) (*ReadIntPointResponse, error) {
- out := new(ReadIntPointResponse)
- err := c.cc.Invoke(ctx, "/proto_gorm.IntPointTxn/Read", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *intPointTxnClient) Update(ctx context.Context, in *UpdateIntPointRequest, opts ...grpc.CallOption) (*UpdateIntPointResponse, error) {
- out := new(UpdateIntPointResponse)
- err := c.cc.Invoke(ctx, "/proto_gorm.IntPointTxn/Update", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *intPointTxnClient) Delete(ctx context.Context, in *DeleteIntPointRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) {
- out := new(DeleteIntPointResponse)
- err := c.cc.Invoke(ctx, "/proto_gorm.IntPointTxn/Delete", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *intPointTxnClient) DeleteSet(ctx context.Context, in *DeleteIntPointsRequest, opts ...grpc.CallOption) (*DeleteIntPointResponse, error) {
- out := new(DeleteIntPointResponse)
- err := c.cc.Invoke(ctx, "/proto_gorm.IntPointTxn/DeleteSet", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // IntPointTxnServer is the server API for IntPointTxn service.
- // All implementations must embed UnimplementedIntPointTxnServer
- // for forward compatibility
- type IntPointTxnServer interface {
- // The convention requires the rpc names have Create/Read/Update/List/Delete
- // as a prefix. The type is inferred from the response (except for delete),
- // so multiple objects can have CURDL handlers in the same service, provided
- // they are given unique suffixes
- Create(context.Context, *CreateIntPointRequest) (*CreateIntPointResponse, error)
- Read(context.Context, *ReadIntPointRequest) (*ReadIntPointResponse, error)
- Update(context.Context, *UpdateIntPointRequest) (*UpdateIntPointResponse, error)
- //rpc List ( ListIntPointRequest ) returns ( ListIntPointResponse ) {}
- Delete(context.Context, *DeleteIntPointRequest) (*DeleteIntPointResponse, error)
- DeleteSet(context.Context, *DeleteIntPointsRequest) (*DeleteIntPointResponse, error)
- mustEmbedUnimplementedIntPointTxnServer()
- }
- // UnimplementedIntPointTxnServer must be embedded to have forward compatible implementations.
- type UnimplementedIntPointTxnServer struct {
- }
- func (UnimplementedIntPointTxnServer) Create(context.Context, *CreateIntPointRequest) (*CreateIntPointResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
- }
- func (UnimplementedIntPointTxnServer) Read(context.Context, *ReadIntPointRequest) (*ReadIntPointResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Read not implemented")
- }
- func (UnimplementedIntPointTxnServer) Update(context.Context, *UpdateIntPointRequest) (*UpdateIntPointResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
- }
- func (UnimplementedIntPointTxnServer) Delete(context.Context, *DeleteIntPointRequest) (*DeleteIntPointResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
- }
- func (UnimplementedIntPointTxnServer) DeleteSet(context.Context, *DeleteIntPointsRequest) (*DeleteIntPointResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeleteSet not implemented")
- }
- func (UnimplementedIntPointTxnServer) mustEmbedUnimplementedIntPointTxnServer() {}
- // UnsafeIntPointTxnServer may be embedded to opt out of forward compatibility for this service.
- // Use of this interface is not recommended, as added methods to IntPointTxnServer will
- // result in compilation errors.
- type UnsafeIntPointTxnServer interface {
- mustEmbedUnimplementedIntPointTxnServer()
- }
- func RegisterIntPointTxnServer(s grpc.ServiceRegistrar, srv IntPointTxnServer) {
- s.RegisterService(&IntPointTxn_ServiceDesc, srv)
- }
- func _IntPointTxn_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CreateIntPointRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(IntPointTxnServer).Create(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/proto_gorm.IntPointTxn/Create",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(IntPointTxnServer).Create(ctx, req.(*CreateIntPointRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _IntPointTxn_Read_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ReadIntPointRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(IntPointTxnServer).Read(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/proto_gorm.IntPointTxn/Read",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(IntPointTxnServer).Read(ctx, req.(*ReadIntPointRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _IntPointTxn_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UpdateIntPointRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(IntPointTxnServer).Update(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/proto_gorm.IntPointTxn/Update",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(IntPointTxnServer).Update(ctx, req.(*UpdateIntPointRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _IntPointTxn_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DeleteIntPointRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(IntPointTxnServer).Delete(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/proto_gorm.IntPointTxn/Delete",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(IntPointTxnServer).Delete(ctx, req.(*DeleteIntPointRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _IntPointTxn_DeleteSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DeleteIntPointsRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(IntPointTxnServer).DeleteSet(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/proto_gorm.IntPointTxn/DeleteSet",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(IntPointTxnServer).DeleteSet(ctx, req.(*DeleteIntPointsRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- // IntPointTxn_ServiceDesc is the grpc.ServiceDesc for IntPointTxn service.
- // It's only intended for direct use with grpc.RegisterService,
- // and not to be introspected or modified (even as a copy)
- var IntPointTxn_ServiceDesc = grpc.ServiceDesc{
- ServiceName: "proto_gorm.IntPointTxn",
- HandlerType: (*IntPointTxnServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "Create",
- Handler: _IntPointTxn_Create_Handler,
- },
- {
- MethodName: "Read",
- Handler: _IntPointTxn_Read_Handler,
- },
- {
- MethodName: "Update",
- Handler: _IntPointTxn_Update_Handler,
- },
- {
- MethodName: "Delete",
- Handler: _IntPointTxn_Delete_Handler,
- },
- {
- MethodName: "DeleteSet",
- Handler: _IntPointTxn_DeleteSet_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "proto-gorm/api/proto-gorm.proto",
- }
|