// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.6.2 // - protoc v7.35.0 // source: main.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.64.0 or later. const _ = grpc.SupportPackageIsVersion9 const ( EveningDetectiveServer_Ping_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/Ping" EveningDetectiveServer_Echo_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/Echo" EveningDetectiveServer_Signup_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/Signup" EveningDetectiveServer_RefreshPassword_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/RefreshPassword" EveningDetectiveServer_Login_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/Login" ) // EveningDetectiveServerClient is the client API for EveningDetectiveServer 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 EveningDetectiveServerClient interface { Ping(ctx context.Context, in *PingReq, opts ...grpc.CallOption) (*PingRsp, error) Echo(ctx context.Context, in *EchoReq, opts ...grpc.CallOption) (*EchoRsp, error) Signup(ctx context.Context, in *SignupReq, opts ...grpc.CallOption) (*SignupRsp, error) RefreshPassword(ctx context.Context, in *RefreshPasswordReq, opts ...grpc.CallOption) (*RefreshPasswordRsp, error) Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginRsp, error) } type eveningDetectiveServerClient struct { cc grpc.ClientConnInterface } func NewEveningDetectiveServerClient(cc grpc.ClientConnInterface) EveningDetectiveServerClient { return &eveningDetectiveServerClient{cc} } func (c *eveningDetectiveServerClient) Ping(ctx context.Context, in *PingReq, opts ...grpc.CallOption) (*PingRsp, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PingRsp) err := c.cc.Invoke(ctx, EveningDetectiveServer_Ping_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *eveningDetectiveServerClient) Echo(ctx context.Context, in *EchoReq, opts ...grpc.CallOption) (*EchoRsp, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(EchoRsp) err := c.cc.Invoke(ctx, EveningDetectiveServer_Echo_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *eveningDetectiveServerClient) Signup(ctx context.Context, in *SignupReq, opts ...grpc.CallOption) (*SignupRsp, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SignupRsp) err := c.cc.Invoke(ctx, EveningDetectiveServer_Signup_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *eveningDetectiveServerClient) RefreshPassword(ctx context.Context, in *RefreshPasswordReq, opts ...grpc.CallOption) (*RefreshPasswordRsp, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RefreshPasswordRsp) err := c.cc.Invoke(ctx, EveningDetectiveServer_RefreshPassword_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *eveningDetectiveServerClient) Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginRsp, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(LoginRsp) err := c.cc.Invoke(ctx, EveningDetectiveServer_Login_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } // EveningDetectiveServerServer is the server API for EveningDetectiveServer service. // All implementations must embed UnimplementedEveningDetectiveServerServer // for forward compatibility. type EveningDetectiveServerServer interface { Ping(context.Context, *PingReq) (*PingRsp, error) Echo(context.Context, *EchoReq) (*EchoRsp, error) Signup(context.Context, *SignupReq) (*SignupRsp, error) RefreshPassword(context.Context, *RefreshPasswordReq) (*RefreshPasswordRsp, error) Login(context.Context, *LoginReq) (*LoginRsp, error) mustEmbedUnimplementedEveningDetectiveServerServer() } // UnimplementedEveningDetectiveServerServer must be embedded to have // forward compatible implementations. // // NOTE: this should be embedded by value instead of pointer to avoid a nil // pointer dereference when methods are called. type UnimplementedEveningDetectiveServerServer struct{} func (UnimplementedEveningDetectiveServerServer) Ping(context.Context, *PingReq) (*PingRsp, error) { return nil, status.Error(codes.Unimplemented, "method Ping not implemented") } func (UnimplementedEveningDetectiveServerServer) Echo(context.Context, *EchoReq) (*EchoRsp, error) { return nil, status.Error(codes.Unimplemented, "method Echo not implemented") } func (UnimplementedEveningDetectiveServerServer) Signup(context.Context, *SignupReq) (*SignupRsp, error) { return nil, status.Error(codes.Unimplemented, "method Signup not implemented") } func (UnimplementedEveningDetectiveServerServer) RefreshPassword(context.Context, *RefreshPasswordReq) (*RefreshPasswordRsp, error) { return nil, status.Error(codes.Unimplemented, "method RefreshPassword not implemented") } func (UnimplementedEveningDetectiveServerServer) Login(context.Context, *LoginReq) (*LoginRsp, error) { return nil, status.Error(codes.Unimplemented, "method Login not implemented") } func (UnimplementedEveningDetectiveServerServer) mustEmbedUnimplementedEveningDetectiveServerServer() { } func (UnimplementedEveningDetectiveServerServer) testEmbeddedByValue() {} // UnsafeEveningDetectiveServerServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to EveningDetectiveServerServer will // result in compilation errors. type UnsafeEveningDetectiveServerServer interface { mustEmbedUnimplementedEveningDetectiveServerServer() } func RegisterEveningDetectiveServerServer(s grpc.ServiceRegistrar, srv EveningDetectiveServerServer) { // If the following call panics, it indicates UnimplementedEveningDetectiveServerServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { t.testEmbeddedByValue() } s.RegisterService(&EveningDetectiveServer_ServiceDesc, srv) } func _EveningDetectiveServer_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PingReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(EveningDetectiveServerServer).Ping(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: EveningDetectiveServer_Ping_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(EveningDetectiveServerServer).Ping(ctx, req.(*PingReq)) } return interceptor(ctx, in, info, handler) } func _EveningDetectiveServer_Echo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(EchoReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(EveningDetectiveServerServer).Echo(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: EveningDetectiveServer_Echo_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(EveningDetectiveServerServer).Echo(ctx, req.(*EchoReq)) } return interceptor(ctx, in, info, handler) } func _EveningDetectiveServer_Signup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SignupReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(EveningDetectiveServerServer).Signup(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: EveningDetectiveServer_Signup_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(EveningDetectiveServerServer).Signup(ctx, req.(*SignupReq)) } return interceptor(ctx, in, info, handler) } func _EveningDetectiveServer_RefreshPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(RefreshPasswordReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(EveningDetectiveServerServer).RefreshPassword(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: EveningDetectiveServer_RefreshPassword_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(EveningDetectiveServerServer).RefreshPassword(ctx, req.(*RefreshPasswordReq)) } return interceptor(ctx, in, info, handler) } func _EveningDetectiveServer_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(LoginReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(EveningDetectiveServerServer).Login(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: EveningDetectiveServer_Login_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(EveningDetectiveServerServer).Login(ctx, req.(*LoginReq)) } return interceptor(ctx, in, info, handler) } // EveningDetectiveServer_ServiceDesc is the grpc.ServiceDesc for EveningDetectiveServer service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var EveningDetectiveServer_ServiceDesc = grpc.ServiceDesc{ ServiceName: "crabs.evening_detective_server.EveningDetectiveServer", HandlerType: (*EveningDetectiveServerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", Handler: _EveningDetectiveServer_Ping_Handler, }, { MethodName: "Echo", Handler: _EveningDetectiveServer_Echo_Handler, }, { MethodName: "Signup", Handler: _EveningDetectiveServer_Signup_Handler, }, { MethodName: "RefreshPassword", Handler: _EveningDetectiveServer_RefreshPassword_Handler, }, { MethodName: "Login", Handler: _EveningDetectiveServer_Login_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "main.proto", }