// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc v3.19.4 // source: carpool-service.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.32.0 or later. const _ = grpc.SupportPackageIsVersion7 // CarpoolServiceClient is the client API for CarpoolService 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 CarpoolServiceClient interface { // Internal trips and journeys management // rpc XXXX(Request) returns (Response) {} CreateRegularRoutes(ctx context.Context, in *CreateRegularRoutesRequest, opts ...grpc.CallOption) (*CreateRegularRoutesResponse, error) DeleteRegularRoutes(ctx context.Context, in *DeleteRegularRoutesRequest, opts ...grpc.CallOption) (*DeleteRegularRoutesResponse, error) GetUserPlanning(ctx context.Context, in *GetUserPlanningRequest, opts ...grpc.CallOption) (*GetUserPlanningResponse, error) // OCSS-like interaction DriverJourneys(ctx context.Context, in *DriverJourneysRequest, opts ...grpc.CallOption) (*DriverJourneysResponse, error) PassengerJourneys(ctx context.Context, in *PassengerJourneysRequest, opts ...grpc.CallOption) (*PassengerJourneysResponse, error) DriverRegularTrips(ctx context.Context, in *DriverRegularTripsRequest, opts ...grpc.CallOption) (*DriverRegularTripsResponse, error) PassengerRegularTrips(ctx context.Context, in *PassengerRegularTripsRequest, opts ...grpc.CallOption) (*PassengerRegularTripsResponse, error) CreateBooking(ctx context.Context, in *CreateBookingRequest, opts ...grpc.CallOption) (*CreateBookingResponse, error) UpdateBooking(ctx context.Context, in *UpdateBookingRequest, opts ...grpc.CallOption) (*UpdateBookingResponse, error) GetBooking(ctx context.Context, in *GetBookingRequest, opts ...grpc.CallOption) (*GetBookingResponse, error) } type carpoolServiceClient struct { cc grpc.ClientConnInterface } func NewCarpoolServiceClient(cc grpc.ClientConnInterface) CarpoolServiceClient { return &carpoolServiceClient{cc} } func (c *carpoolServiceClient) CreateRegularRoutes(ctx context.Context, in *CreateRegularRoutesRequest, opts ...grpc.CallOption) (*CreateRegularRoutesResponse, error) { out := new(CreateRegularRoutesResponse) err := c.cc.Invoke(ctx, "/CarpoolService/CreateRegularRoutes", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *carpoolServiceClient) DeleteRegularRoutes(ctx context.Context, in *DeleteRegularRoutesRequest, opts ...grpc.CallOption) (*DeleteRegularRoutesResponse, error) { out := new(DeleteRegularRoutesResponse) err := c.cc.Invoke(ctx, "/CarpoolService/DeleteRegularRoutes", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *carpoolServiceClient) GetUserPlanning(ctx context.Context, in *GetUserPlanningRequest, opts ...grpc.CallOption) (*GetUserPlanningResponse, error) { out := new(GetUserPlanningResponse) err := c.cc.Invoke(ctx, "/CarpoolService/GetUserPlanning", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *carpoolServiceClient) DriverJourneys(ctx context.Context, in *DriverJourneysRequest, opts ...grpc.CallOption) (*DriverJourneysResponse, error) { out := new(DriverJourneysResponse) err := c.cc.Invoke(ctx, "/CarpoolService/DriverJourneys", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *carpoolServiceClient) PassengerJourneys(ctx context.Context, in *PassengerJourneysRequest, opts ...grpc.CallOption) (*PassengerJourneysResponse, error) { out := new(PassengerJourneysResponse) err := c.cc.Invoke(ctx, "/CarpoolService/PassengerJourneys", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *carpoolServiceClient) DriverRegularTrips(ctx context.Context, in *DriverRegularTripsRequest, opts ...grpc.CallOption) (*DriverRegularTripsResponse, error) { out := new(DriverRegularTripsResponse) err := c.cc.Invoke(ctx, "/CarpoolService/DriverRegularTrips", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *carpoolServiceClient) PassengerRegularTrips(ctx context.Context, in *PassengerRegularTripsRequest, opts ...grpc.CallOption) (*PassengerRegularTripsResponse, error) { out := new(PassengerRegularTripsResponse) err := c.cc.Invoke(ctx, "/CarpoolService/PassengerRegularTrips", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *carpoolServiceClient) CreateBooking(ctx context.Context, in *CreateBookingRequest, opts ...grpc.CallOption) (*CreateBookingResponse, error) { out := new(CreateBookingResponse) err := c.cc.Invoke(ctx, "/CarpoolService/CreateBooking", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *carpoolServiceClient) UpdateBooking(ctx context.Context, in *UpdateBookingRequest, opts ...grpc.CallOption) (*UpdateBookingResponse, error) { out := new(UpdateBookingResponse) err := c.cc.Invoke(ctx, "/CarpoolService/UpdateBooking", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *carpoolServiceClient) GetBooking(ctx context.Context, in *GetBookingRequest, opts ...grpc.CallOption) (*GetBookingResponse, error) { out := new(GetBookingResponse) err := c.cc.Invoke(ctx, "/CarpoolService/GetBooking", in, out, opts...) if err != nil { return nil, err } return out, nil } // CarpoolServiceServer is the server API for CarpoolService service. // All implementations must embed UnimplementedCarpoolServiceServer // for forward compatibility type CarpoolServiceServer interface { // Internal trips and journeys management // rpc XXXX(Request) returns (Response) {} CreateRegularRoutes(context.Context, *CreateRegularRoutesRequest) (*CreateRegularRoutesResponse, error) DeleteRegularRoutes(context.Context, *DeleteRegularRoutesRequest) (*DeleteRegularRoutesResponse, error) GetUserPlanning(context.Context, *GetUserPlanningRequest) (*GetUserPlanningResponse, error) // OCSS-like interaction DriverJourneys(context.Context, *DriverJourneysRequest) (*DriverJourneysResponse, error) PassengerJourneys(context.Context, *PassengerJourneysRequest) (*PassengerJourneysResponse, error) DriverRegularTrips(context.Context, *DriverRegularTripsRequest) (*DriverRegularTripsResponse, error) PassengerRegularTrips(context.Context, *PassengerRegularTripsRequest) (*PassengerRegularTripsResponse, error) CreateBooking(context.Context, *CreateBookingRequest) (*CreateBookingResponse, error) UpdateBooking(context.Context, *UpdateBookingRequest) (*UpdateBookingResponse, error) GetBooking(context.Context, *GetBookingRequest) (*GetBookingResponse, error) mustEmbedUnimplementedCarpoolServiceServer() } // UnimplementedCarpoolServiceServer must be embedded to have forward compatible implementations. type UnimplementedCarpoolServiceServer struct { } func (UnimplementedCarpoolServiceServer) CreateRegularRoutes(context.Context, *CreateRegularRoutesRequest) (*CreateRegularRoutesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateRegularRoutes not implemented") } func (UnimplementedCarpoolServiceServer) DeleteRegularRoutes(context.Context, *DeleteRegularRoutesRequest) (*DeleteRegularRoutesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteRegularRoutes not implemented") } func (UnimplementedCarpoolServiceServer) GetUserPlanning(context.Context, *GetUserPlanningRequest) (*GetUserPlanningResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetUserPlanning not implemented") } func (UnimplementedCarpoolServiceServer) DriverJourneys(context.Context, *DriverJourneysRequest) (*DriverJourneysResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DriverJourneys not implemented") } func (UnimplementedCarpoolServiceServer) PassengerJourneys(context.Context, *PassengerJourneysRequest) (*PassengerJourneysResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method PassengerJourneys not implemented") } func (UnimplementedCarpoolServiceServer) DriverRegularTrips(context.Context, *DriverRegularTripsRequest) (*DriverRegularTripsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DriverRegularTrips not implemented") } func (UnimplementedCarpoolServiceServer) PassengerRegularTrips(context.Context, *PassengerRegularTripsRequest) (*PassengerRegularTripsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method PassengerRegularTrips not implemented") } func (UnimplementedCarpoolServiceServer) CreateBooking(context.Context, *CreateBookingRequest) (*CreateBookingResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateBooking not implemented") } func (UnimplementedCarpoolServiceServer) UpdateBooking(context.Context, *UpdateBookingRequest) (*UpdateBookingResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateBooking not implemented") } func (UnimplementedCarpoolServiceServer) GetBooking(context.Context, *GetBookingRequest) (*GetBookingResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetBooking not implemented") } func (UnimplementedCarpoolServiceServer) mustEmbedUnimplementedCarpoolServiceServer() {} // UnsafeCarpoolServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to CarpoolServiceServer will // result in compilation errors. type UnsafeCarpoolServiceServer interface { mustEmbedUnimplementedCarpoolServiceServer() } func RegisterCarpoolServiceServer(s grpc.ServiceRegistrar, srv CarpoolServiceServer) { s.RegisterService(&CarpoolService_ServiceDesc, srv) } func _CarpoolService_CreateRegularRoutes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateRegularRoutesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CarpoolServiceServer).CreateRegularRoutes(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/CarpoolService/CreateRegularRoutes", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CarpoolServiceServer).CreateRegularRoutes(ctx, req.(*CreateRegularRoutesRequest)) } return interceptor(ctx, in, info, handler) } func _CarpoolService_DeleteRegularRoutes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteRegularRoutesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CarpoolServiceServer).DeleteRegularRoutes(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/CarpoolService/DeleteRegularRoutes", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CarpoolServiceServer).DeleteRegularRoutes(ctx, req.(*DeleteRegularRoutesRequest)) } return interceptor(ctx, in, info, handler) } func _CarpoolService_GetUserPlanning_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetUserPlanningRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CarpoolServiceServer).GetUserPlanning(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/CarpoolService/GetUserPlanning", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CarpoolServiceServer).GetUserPlanning(ctx, req.(*GetUserPlanningRequest)) } return interceptor(ctx, in, info, handler) } func _CarpoolService_DriverJourneys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DriverJourneysRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CarpoolServiceServer).DriverJourneys(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/CarpoolService/DriverJourneys", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CarpoolServiceServer).DriverJourneys(ctx, req.(*DriverJourneysRequest)) } return interceptor(ctx, in, info, handler) } func _CarpoolService_PassengerJourneys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PassengerJourneysRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CarpoolServiceServer).PassengerJourneys(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/CarpoolService/PassengerJourneys", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CarpoolServiceServer).PassengerJourneys(ctx, req.(*PassengerJourneysRequest)) } return interceptor(ctx, in, info, handler) } func _CarpoolService_DriverRegularTrips_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DriverRegularTripsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CarpoolServiceServer).DriverRegularTrips(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/CarpoolService/DriverRegularTrips", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CarpoolServiceServer).DriverRegularTrips(ctx, req.(*DriverRegularTripsRequest)) } return interceptor(ctx, in, info, handler) } func _CarpoolService_PassengerRegularTrips_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PassengerRegularTripsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CarpoolServiceServer).PassengerRegularTrips(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/CarpoolService/PassengerRegularTrips", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CarpoolServiceServer).PassengerRegularTrips(ctx, req.(*PassengerRegularTripsRequest)) } return interceptor(ctx, in, info, handler) } func _CarpoolService_CreateBooking_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateBookingRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CarpoolServiceServer).CreateBooking(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/CarpoolService/CreateBooking", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CarpoolServiceServer).CreateBooking(ctx, req.(*CreateBookingRequest)) } return interceptor(ctx, in, info, handler) } func _CarpoolService_UpdateBooking_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdateBookingRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CarpoolServiceServer).UpdateBooking(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/CarpoolService/UpdateBooking", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CarpoolServiceServer).UpdateBooking(ctx, req.(*UpdateBookingRequest)) } return interceptor(ctx, in, info, handler) } func _CarpoolService_GetBooking_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetBookingRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CarpoolServiceServer).GetBooking(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/CarpoolService/GetBooking", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CarpoolServiceServer).GetBooking(ctx, req.(*GetBookingRequest)) } return interceptor(ctx, in, info, handler) } // CarpoolService_ServiceDesc is the grpc.ServiceDesc for CarpoolService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var CarpoolService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "CarpoolService", HandlerType: (*CarpoolServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateRegularRoutes", Handler: _CarpoolService_CreateRegularRoutes_Handler, }, { MethodName: "DeleteRegularRoutes", Handler: _CarpoolService_DeleteRegularRoutes_Handler, }, { MethodName: "GetUserPlanning", Handler: _CarpoolService_GetUserPlanning_Handler, }, { MethodName: "DriverJourneys", Handler: _CarpoolService_DriverJourneys_Handler, }, { MethodName: "PassengerJourneys", Handler: _CarpoolService_PassengerJourneys_Handler, }, { MethodName: "DriverRegularTrips", Handler: _CarpoolService_DriverRegularTrips_Handler, }, { MethodName: "PassengerRegularTrips", Handler: _CarpoolService_PassengerRegularTrips_Handler, }, { MethodName: "CreateBooking", Handler: _CarpoolService_CreateBooking_Handler, }, { MethodName: "UpdateBooking", Handler: _CarpoolService_UpdateBooking_Handler, }, { MethodName: "GetBooking", Handler: _CarpoolService_GetBooking_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "carpool-service.proto", }