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