// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc v3.21.12 // source: notifyer.proto package notifyer 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 // QuizServiceClient is the client API for QuizService 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 QuizServiceClient interface { GetQuizzes(ctx context.Context, in *GetQuizzesRequest, opts ...grpc.CallOption) (*GetQuizzesResponse, error) GetStartedQuizzes(ctx context.Context, in *GetStartedQuizzesRequest, opts ...grpc.CallOption) (*GetStartedQuizzesResponse, error) } type quizServiceClient struct { cc grpc.ClientConnInterface } func NewQuizServiceClient(cc grpc.ClientConnInterface) QuizServiceClient { return &quizServiceClient{cc} } func (c *quizServiceClient) GetQuizzes(ctx context.Context, in *GetQuizzesRequest, opts ...grpc.CallOption) (*GetQuizzesResponse, error) { out := new(GetQuizzesResponse) err := c.cc.Invoke(ctx, "/notifyer.QuizService/GetQuizzes", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *quizServiceClient) GetStartedQuizzes(ctx context.Context, in *GetStartedQuizzesRequest, opts ...grpc.CallOption) (*GetStartedQuizzesResponse, error) { out := new(GetStartedQuizzesResponse) err := c.cc.Invoke(ctx, "/notifyer.QuizService/GetStartedQuizzes", in, out, opts...) if err != nil { return nil, err } return out, nil } // QuizServiceServer is the server API for QuizService service. // All implementations must embed UnimplementedQuizServiceServer // for forward compatibility type QuizServiceServer interface { GetQuizzes(context.Context, *GetQuizzesRequest) (*GetQuizzesResponse, error) GetStartedQuizzes(context.Context, *GetStartedQuizzesRequest) (*GetStartedQuizzesResponse, error) mustEmbedUnimplementedQuizServiceServer() } // UnimplementedQuizServiceServer must be embedded to have forward compatible implementations. type UnimplementedQuizServiceServer struct { } func (UnimplementedQuizServiceServer) GetQuizzes(context.Context, *GetQuizzesRequest) (*GetQuizzesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetQuizzes not implemented") } func (UnimplementedQuizServiceServer) GetStartedQuizzes(context.Context, *GetStartedQuizzesRequest) (*GetStartedQuizzesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetStartedQuizzes not implemented") } func (UnimplementedQuizServiceServer) mustEmbedUnimplementedQuizServiceServer() {} // UnsafeQuizServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to QuizServiceServer will // result in compilation errors. type UnsafeQuizServiceServer interface { mustEmbedUnimplementedQuizServiceServer() } func RegisterQuizServiceServer(s grpc.ServiceRegistrar, srv QuizServiceServer) { s.RegisterService(&QuizService_ServiceDesc, srv) } func _QuizService_GetQuizzes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetQuizzesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(QuizServiceServer).GetQuizzes(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/notifyer.QuizService/GetQuizzes", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QuizServiceServer).GetQuizzes(ctx, req.(*GetQuizzesRequest)) } return interceptor(ctx, in, info, handler) } func _QuizService_GetStartedQuizzes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetStartedQuizzesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(QuizServiceServer).GetStartedQuizzes(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/notifyer.QuizService/GetStartedQuizzes", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QuizServiceServer).GetStartedQuizzes(ctx, req.(*GetStartedQuizzesRequest)) } return interceptor(ctx, in, info, handler) } // QuizService_ServiceDesc is the grpc.ServiceDesc for QuizService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var QuizService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "notifyer.QuizService", HandlerType: (*QuizServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetQuizzes", Handler: _QuizService_GetQuizzes_Handler, }, { MethodName: "GetStartedQuizzes", Handler: _QuizService_GetStartedQuizzes_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "notifyer.proto", }