// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.4.0 // - protoc v5.27.1 // source: notify.proto package proto 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.62.0 or later. const _ = grpc.SupportPackageIsVersion8 const ( Notify_NotifyUser_FullMethodName = "/proto.Notify/NotifyUser" ) // NotifyClient is the client API for Notify 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 NotifyClient interface { NotifyUser(ctx context.Context, in *NotifyRequest, opts ...grpc.CallOption) (*NotifyReply, error) } type notifyClient struct { cc grpc.ClientConnInterface } func NewNotifyClient(cc grpc.ClientConnInterface) NotifyClient { return ¬ifyClient{cc} } func (c *notifyClient) NotifyUser(ctx context.Context, in *NotifyRequest, opts ...grpc.CallOption) (*NotifyReply, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(NotifyReply) err := c.cc.Invoke(ctx, Notify_NotifyUser_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } // NotifyServer is the server API for Notify service. // All implementations must embed UnimplementedNotifyServer // for forward compatibility type NotifyServer interface { NotifyUser(context.Context, *NotifyRequest) (*NotifyReply, error) mustEmbedUnimplementedNotifyServer() } // UnimplementedNotifyServer must be embedded to have forward compatible implementations. type UnimplementedNotifyServer struct { } func (UnimplementedNotifyServer) NotifyUser(context.Context, *NotifyRequest) (*NotifyReply, error) { return nil, status.Errorf(codes.Unimplemented, "method NotifyUser not implemented") } func (UnimplementedNotifyServer) mustEmbedUnimplementedNotifyServer() {} // UnsafeNotifyServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to NotifyServer will // result in compilation errors. type UnsafeNotifyServer interface { mustEmbedUnimplementedNotifyServer() } func RegisterNotifyServer(s grpc.ServiceRegistrar, srv NotifyServer) { s.RegisterService(&Notify_ServiceDesc, srv) } func _Notify_NotifyUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(NotifyRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(NotifyServer).NotifyUser(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Notify_NotifyUser_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NotifyServer).NotifyUser(ctx, req.(*NotifyRequest)) } return interceptor(ctx, in, info, handler) } // Notify_ServiceDesc is the grpc.ServiceDesc for Notify service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Notify_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.Notify", HandlerType: (*NotifyServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "NotifyUser", Handler: _Notify_NotifyUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "notify.proto", }