// 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", }