2023-10-20 11:41:39 +00:00
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
2024-07-31 11:33:11 +00:00
// - protoc-gen-go-grpc v1.5.1
2023-10-20 11:41:39 +00:00
// - protoc v3.12.4
// source: solidarity-api.proto
package proto
import (
context "context"
2024-09-25 13:16:34 +00:00
empty "github.com/golang/protobuf/ptypes/empty"
2023-10-20 11:41:39 +00:00
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.
2024-07-31 11:33:11 +00:00
// Requires gRPC-Go v1.64.0 or later.
const _ = grpc . SupportPackageIsVersion9
2023-10-20 11:41:39 +00:00
const (
SolidarityService_SetDriverRegularAvailabilities_FullMethodName = "/SolidarityService/SetDriverRegularAvailabilities"
SolidarityService_SetDriverPunctualAvailabilities_FullMethodName = "/SolidarityService/SetDriverPunctualAvailabilities"
2024-08-02 13:11:52 +00:00
SolidarityService_CreateBookingSolidarity_FullMethodName = "/SolidarityService/CreateBookingSolidarity"
SolidarityService_UpdateBookingSolidarity_FullMethodName = "/SolidarityService/UpdateBookingSolidarity"
SolidarityService_GetBookingSolidarity_FullMethodName = "/SolidarityService/GetBookingSolidarity"
2023-10-20 11:41:39 +00:00
SolidarityService_GetBookingsByStatus_FullMethodName = "/SolidarityService/GetBookingsByStatus"
SolidarityService_DriverJourneys_FullMethodName = "/SolidarityService/DriverJourneys"
2024-09-25 13:16:34 +00:00
SolidarityService_GetAllPassengers_FullMethodName = "/SolidarityService/GetAllPassengers"
2023-10-20 11:41:39 +00:00
SolidarityService_SetPassengerTrip_FullMethodName = "/SolidarityService/SetPassengerTrip"
)
// SolidarityServiceClient is the client API for SolidarityService 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 SolidarityServiceClient interface {
SetDriverRegularAvailabilities ( ctx context . Context , in * DriverRegularAvailabilities , opts ... grpc . CallOption ) ( * DriverAvailabilitiesResponse , error )
SetDriverPunctualAvailabilities ( ctx context . Context , in * DriverPunctualAvailabilities , opts ... grpc . CallOption ) ( * DriverAvailabilitiesResponse , error )
2024-08-02 13:11:52 +00:00
CreateBookingSolidarity ( ctx context . Context , in * CreateBookingSolidarityRequest , opts ... grpc . CallOption ) ( * CreateBookingSolidarityResponse , error )
UpdateBookingSolidarity ( ctx context . Context , in * UpdateBookingSolidarityRequest , opts ... grpc . CallOption ) ( * UpdateBookingSolidarityResponse , error )
GetBookingSolidarity ( ctx context . Context , in * GetBookingSolidarityRequest , opts ... grpc . CallOption ) ( * GetBookingSolidarityResponse , error )
2023-10-20 11:41:39 +00:00
GetBookingsByStatus ( ctx context . Context , in * GetBookingsByStatusRequest , opts ... grpc . CallOption ) ( * GetBookingsByStatusResponse , error )
DriverJourneys ( ctx context . Context , in * DriverJourneysRequest , opts ... grpc . CallOption ) ( * DriverJourneysResponse , error )
2024-09-25 13:16:34 +00:00
GetAllPassengers ( ctx context . Context , in * empty . Empty , opts ... grpc . CallOption ) ( * GetAllPassengersResponse , error )
2023-10-20 11:41:39 +00:00
SetPassengerTrip ( ctx context . Context , in * PassengerTripRequest , opts ... grpc . CallOption ) ( * PassengerTripResponse , error )
}
type solidarityServiceClient struct {
cc grpc . ClientConnInterface
}
func NewSolidarityServiceClient ( cc grpc . ClientConnInterface ) SolidarityServiceClient {
return & solidarityServiceClient { cc }
}
func ( c * solidarityServiceClient ) SetDriverRegularAvailabilities ( ctx context . Context , in * DriverRegularAvailabilities , opts ... grpc . CallOption ) ( * DriverAvailabilitiesResponse , error ) {
2024-07-31 11:33:11 +00:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2023-10-20 11:41:39 +00:00
out := new ( DriverAvailabilitiesResponse )
2024-07-31 11:33:11 +00:00
err := c . cc . Invoke ( ctx , SolidarityService_SetDriverRegularAvailabilities_FullMethodName , in , out , cOpts ... )
2023-10-20 11:41:39 +00:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * solidarityServiceClient ) SetDriverPunctualAvailabilities ( ctx context . Context , in * DriverPunctualAvailabilities , opts ... grpc . CallOption ) ( * DriverAvailabilitiesResponse , error ) {
2024-07-31 11:33:11 +00:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2023-10-20 11:41:39 +00:00
out := new ( DriverAvailabilitiesResponse )
2024-07-31 11:33:11 +00:00
err := c . cc . Invoke ( ctx , SolidarityService_SetDriverPunctualAvailabilities_FullMethodName , in , out , cOpts ... )
2023-10-20 11:41:39 +00:00
if err != nil {
return nil , err
}
return out , nil
}
2024-08-02 13:11:52 +00:00
func ( c * solidarityServiceClient ) CreateBookingSolidarity ( ctx context . Context , in * CreateBookingSolidarityRequest , opts ... grpc . CallOption ) ( * CreateBookingSolidarityResponse , error ) {
2024-07-31 11:33:11 +00:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2024-08-02 13:11:52 +00:00
out := new ( CreateBookingSolidarityResponse )
err := c . cc . Invoke ( ctx , SolidarityService_CreateBookingSolidarity_FullMethodName , in , out , cOpts ... )
2023-10-20 11:41:39 +00:00
if err != nil {
return nil , err
}
return out , nil
}
2024-08-02 13:11:52 +00:00
func ( c * solidarityServiceClient ) UpdateBookingSolidarity ( ctx context . Context , in * UpdateBookingSolidarityRequest , opts ... grpc . CallOption ) ( * UpdateBookingSolidarityResponse , error ) {
2024-07-31 11:33:11 +00:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2024-08-02 13:11:52 +00:00
out := new ( UpdateBookingSolidarityResponse )
err := c . cc . Invoke ( ctx , SolidarityService_UpdateBookingSolidarity_FullMethodName , in , out , cOpts ... )
2023-10-20 11:41:39 +00:00
if err != nil {
return nil , err
}
return out , nil
}
2024-08-02 13:11:52 +00:00
func ( c * solidarityServiceClient ) GetBookingSolidarity ( ctx context . Context , in * GetBookingSolidarityRequest , opts ... grpc . CallOption ) ( * GetBookingSolidarityResponse , error ) {
2024-07-31 11:33:11 +00:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2024-08-02 13:11:52 +00:00
out := new ( GetBookingSolidarityResponse )
err := c . cc . Invoke ( ctx , SolidarityService_GetBookingSolidarity_FullMethodName , in , out , cOpts ... )
2023-10-20 11:41:39 +00:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * solidarityServiceClient ) GetBookingsByStatus ( ctx context . Context , in * GetBookingsByStatusRequest , opts ... grpc . CallOption ) ( * GetBookingsByStatusResponse , error ) {
2024-07-31 11:33:11 +00:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2023-10-20 11:41:39 +00:00
out := new ( GetBookingsByStatusResponse )
2024-07-31 11:33:11 +00:00
err := c . cc . Invoke ( ctx , SolidarityService_GetBookingsByStatus_FullMethodName , in , out , cOpts ... )
2023-10-20 11:41:39 +00:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * solidarityServiceClient ) DriverJourneys ( ctx context . Context , in * DriverJourneysRequest , opts ... grpc . CallOption ) ( * DriverJourneysResponse , error ) {
2024-07-31 11:33:11 +00:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2023-10-20 11:41:39 +00:00
out := new ( DriverJourneysResponse )
2024-07-31 11:33:11 +00:00
err := c . cc . Invoke ( ctx , SolidarityService_DriverJourneys_FullMethodName , in , out , cOpts ... )
2023-10-20 11:41:39 +00:00
if err != nil {
return nil , err
}
return out , nil
}
2024-09-25 13:16:34 +00:00
func ( c * solidarityServiceClient ) GetAllPassengers ( ctx context . Context , in * empty . Empty , opts ... grpc . CallOption ) ( * GetAllPassengersResponse , error ) {
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
out := new ( GetAllPassengersResponse )
err := c . cc . Invoke ( ctx , SolidarityService_GetAllPassengers_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2023-10-20 11:41:39 +00:00
func ( c * solidarityServiceClient ) SetPassengerTrip ( ctx context . Context , in * PassengerTripRequest , opts ... grpc . CallOption ) ( * PassengerTripResponse , error ) {
2024-07-31 11:33:11 +00:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2023-10-20 11:41:39 +00:00
out := new ( PassengerTripResponse )
2024-07-31 11:33:11 +00:00
err := c . cc . Invoke ( ctx , SolidarityService_SetPassengerTrip_FullMethodName , in , out , cOpts ... )
2023-10-20 11:41:39 +00:00
if err != nil {
return nil , err
}
return out , nil
}
// SolidarityServiceServer is the server API for SolidarityService service.
// All implementations must embed UnimplementedSolidarityServiceServer
2024-07-31 11:33:11 +00:00
// for forward compatibility.
2023-10-20 11:41:39 +00:00
type SolidarityServiceServer interface {
SetDriverRegularAvailabilities ( context . Context , * DriverRegularAvailabilities ) ( * DriverAvailabilitiesResponse , error )
SetDriverPunctualAvailabilities ( context . Context , * DriverPunctualAvailabilities ) ( * DriverAvailabilitiesResponse , error )
2024-08-02 13:11:52 +00:00
CreateBookingSolidarity ( context . Context , * CreateBookingSolidarityRequest ) ( * CreateBookingSolidarityResponse , error )
UpdateBookingSolidarity ( context . Context , * UpdateBookingSolidarityRequest ) ( * UpdateBookingSolidarityResponse , error )
GetBookingSolidarity ( context . Context , * GetBookingSolidarityRequest ) ( * GetBookingSolidarityResponse , error )
2023-10-20 11:41:39 +00:00
GetBookingsByStatus ( context . Context , * GetBookingsByStatusRequest ) ( * GetBookingsByStatusResponse , error )
DriverJourneys ( context . Context , * DriverJourneysRequest ) ( * DriverJourneysResponse , error )
2024-09-25 13:16:34 +00:00
GetAllPassengers ( context . Context , * empty . Empty ) ( * GetAllPassengersResponse , error )
2023-10-20 11:41:39 +00:00
SetPassengerTrip ( context . Context , * PassengerTripRequest ) ( * PassengerTripResponse , error )
mustEmbedUnimplementedSolidarityServiceServer ( )
}
2024-07-31 11:33:11 +00:00
// UnimplementedSolidarityServiceServer 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 UnimplementedSolidarityServiceServer struct { }
2023-10-20 11:41:39 +00:00
func ( UnimplementedSolidarityServiceServer ) SetDriverRegularAvailabilities ( context . Context , * DriverRegularAvailabilities ) ( * DriverAvailabilitiesResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method SetDriverRegularAvailabilities not implemented" )
}
func ( UnimplementedSolidarityServiceServer ) SetDriverPunctualAvailabilities ( context . Context , * DriverPunctualAvailabilities ) ( * DriverAvailabilitiesResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method SetDriverPunctualAvailabilities not implemented" )
}
2024-08-02 13:11:52 +00:00
func ( UnimplementedSolidarityServiceServer ) CreateBookingSolidarity ( context . Context , * CreateBookingSolidarityRequest ) ( * CreateBookingSolidarityResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method CreateBookingSolidarity not implemented" )
2023-10-20 11:41:39 +00:00
}
2024-08-02 13:11:52 +00:00
func ( UnimplementedSolidarityServiceServer ) UpdateBookingSolidarity ( context . Context , * UpdateBookingSolidarityRequest ) ( * UpdateBookingSolidarityResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method UpdateBookingSolidarity not implemented" )
2023-10-20 11:41:39 +00:00
}
2024-08-02 13:11:52 +00:00
func ( UnimplementedSolidarityServiceServer ) GetBookingSolidarity ( context . Context , * GetBookingSolidarityRequest ) ( * GetBookingSolidarityResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetBookingSolidarity not implemented" )
2023-10-20 11:41:39 +00:00
}
func ( UnimplementedSolidarityServiceServer ) GetBookingsByStatus ( context . Context , * GetBookingsByStatusRequest ) ( * GetBookingsByStatusResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetBookingsByStatus not implemented" )
}
func ( UnimplementedSolidarityServiceServer ) DriverJourneys ( context . Context , * DriverJourneysRequest ) ( * DriverJourneysResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method DriverJourneys not implemented" )
}
2024-09-25 13:16:34 +00:00
func ( UnimplementedSolidarityServiceServer ) GetAllPassengers ( context . Context , * empty . Empty ) ( * GetAllPassengersResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetAllPassengers not implemented" )
}
2023-10-20 11:41:39 +00:00
func ( UnimplementedSolidarityServiceServer ) SetPassengerTrip ( context . Context , * PassengerTripRequest ) ( * PassengerTripResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method SetPassengerTrip not implemented" )
}
func ( UnimplementedSolidarityServiceServer ) mustEmbedUnimplementedSolidarityServiceServer ( ) { }
2024-07-31 11:33:11 +00:00
func ( UnimplementedSolidarityServiceServer ) testEmbeddedByValue ( ) { }
2023-10-20 11:41:39 +00:00
// UnsafeSolidarityServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to SolidarityServiceServer will
// result in compilation errors.
type UnsafeSolidarityServiceServer interface {
mustEmbedUnimplementedSolidarityServiceServer ( )
}
func RegisterSolidarityServiceServer ( s grpc . ServiceRegistrar , srv SolidarityServiceServer ) {
2024-07-31 11:33:11 +00:00
// If the following call pancis, it indicates UnimplementedSolidarityServiceServer 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 ( )
}
2023-10-20 11:41:39 +00:00
s . RegisterService ( & SolidarityService_ServiceDesc , srv )
}
func _SolidarityService_SetDriverRegularAvailabilities_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( DriverRegularAvailabilities )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SolidarityServiceServer ) . SetDriverRegularAvailabilities ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : SolidarityService_SetDriverRegularAvailabilities_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SolidarityServiceServer ) . SetDriverRegularAvailabilities ( ctx , req . ( * DriverRegularAvailabilities ) )
}
return interceptor ( ctx , in , info , handler )
}
func _SolidarityService_SetDriverPunctualAvailabilities_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( DriverPunctualAvailabilities )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SolidarityServiceServer ) . SetDriverPunctualAvailabilities ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : SolidarityService_SetDriverPunctualAvailabilities_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SolidarityServiceServer ) . SetDriverPunctualAvailabilities ( ctx , req . ( * DriverPunctualAvailabilities ) )
}
return interceptor ( ctx , in , info , handler )
}
2024-08-02 13:11:52 +00:00
func _SolidarityService_CreateBookingSolidarity_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( CreateBookingSolidarityRequest )
2023-10-20 11:41:39 +00:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2024-08-02 13:11:52 +00:00
return srv . ( SolidarityServiceServer ) . CreateBookingSolidarity ( ctx , in )
2023-10-20 11:41:39 +00:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-08-02 13:11:52 +00:00
FullMethod : SolidarityService_CreateBookingSolidarity_FullMethodName ,
2023-10-20 11:41:39 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2024-08-02 13:11:52 +00:00
return srv . ( SolidarityServiceServer ) . CreateBookingSolidarity ( ctx , req . ( * CreateBookingSolidarityRequest ) )
2023-10-20 11:41:39 +00:00
}
return interceptor ( ctx , in , info , handler )
}
2024-08-02 13:11:52 +00:00
func _SolidarityService_UpdateBookingSolidarity_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( UpdateBookingSolidarityRequest )
2023-10-20 11:41:39 +00:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2024-08-02 13:11:52 +00:00
return srv . ( SolidarityServiceServer ) . UpdateBookingSolidarity ( ctx , in )
2023-10-20 11:41:39 +00:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-08-02 13:11:52 +00:00
FullMethod : SolidarityService_UpdateBookingSolidarity_FullMethodName ,
2023-10-20 11:41:39 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2024-08-02 13:11:52 +00:00
return srv . ( SolidarityServiceServer ) . UpdateBookingSolidarity ( ctx , req . ( * UpdateBookingSolidarityRequest ) )
2023-10-20 11:41:39 +00:00
}
return interceptor ( ctx , in , info , handler )
}
2024-08-02 13:11:52 +00:00
func _SolidarityService_GetBookingSolidarity_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetBookingSolidarityRequest )
2023-10-20 11:41:39 +00:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2024-08-02 13:11:52 +00:00
return srv . ( SolidarityServiceServer ) . GetBookingSolidarity ( ctx , in )
2023-10-20 11:41:39 +00:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-08-02 13:11:52 +00:00
FullMethod : SolidarityService_GetBookingSolidarity_FullMethodName ,
2023-10-20 11:41:39 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2024-08-02 13:11:52 +00:00
return srv . ( SolidarityServiceServer ) . GetBookingSolidarity ( ctx , req . ( * GetBookingSolidarityRequest ) )
2023-10-20 11:41:39 +00:00
}
return interceptor ( ctx , in , info , handler )
}
func _SolidarityService_GetBookingsByStatus_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetBookingsByStatusRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SolidarityServiceServer ) . GetBookingsByStatus ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : SolidarityService_GetBookingsByStatus_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SolidarityServiceServer ) . GetBookingsByStatus ( ctx , req . ( * GetBookingsByStatusRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _SolidarityService_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 . ( SolidarityServiceServer ) . DriverJourneys ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : SolidarityService_DriverJourneys_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SolidarityServiceServer ) . DriverJourneys ( ctx , req . ( * DriverJourneysRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2024-09-25 13:16:34 +00:00
func _SolidarityService_GetAllPassengers_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( empty . Empty )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SolidarityServiceServer ) . GetAllPassengers ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : SolidarityService_GetAllPassengers_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SolidarityServiceServer ) . GetAllPassengers ( ctx , req . ( * empty . Empty ) )
}
return interceptor ( ctx , in , info , handler )
}
2023-10-20 11:41:39 +00:00
func _SolidarityService_SetPassengerTrip_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( PassengerTripRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SolidarityServiceServer ) . SetPassengerTrip ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : SolidarityService_SetPassengerTrip_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SolidarityServiceServer ) . SetPassengerTrip ( ctx , req . ( * PassengerTripRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
// SolidarityService_ServiceDesc is the grpc.ServiceDesc for SolidarityService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var SolidarityService_ServiceDesc = grpc . ServiceDesc {
ServiceName : "SolidarityService" ,
HandlerType : ( * SolidarityServiceServer ) ( nil ) ,
Methods : [ ] grpc . MethodDesc {
{
MethodName : "SetDriverRegularAvailabilities" ,
Handler : _SolidarityService_SetDriverRegularAvailabilities_Handler ,
} ,
{
MethodName : "SetDriverPunctualAvailabilities" ,
Handler : _SolidarityService_SetDriverPunctualAvailabilities_Handler ,
} ,
{
2024-08-02 13:11:52 +00:00
MethodName : "CreateBookingSolidarity" ,
Handler : _SolidarityService_CreateBookingSolidarity_Handler ,
2023-10-20 11:41:39 +00:00
} ,
{
2024-08-02 13:11:52 +00:00
MethodName : "UpdateBookingSolidarity" ,
Handler : _SolidarityService_UpdateBookingSolidarity_Handler ,
2023-10-20 11:41:39 +00:00
} ,
{
2024-08-02 13:11:52 +00:00
MethodName : "GetBookingSolidarity" ,
Handler : _SolidarityService_GetBookingSolidarity_Handler ,
2023-10-20 11:41:39 +00:00
} ,
{
MethodName : "GetBookingsByStatus" ,
Handler : _SolidarityService_GetBookingsByStatus_Handler ,
} ,
{
MethodName : "DriverJourneys" ,
Handler : _SolidarityService_DriverJourneys_Handler ,
} ,
2024-09-25 13:16:34 +00:00
{
MethodName : "GetAllPassengers" ,
Handler : _SolidarityService_GetAllPassengers_Handler ,
} ,
2023-10-20 11:41:39 +00:00
{
MethodName : "SetPassengerTrip" ,
Handler : _SolidarityService_SetPassengerTrip_Handler ,
} ,
} ,
Streams : [ ] grpc . StreamDesc { } ,
Metadata : "solidarity-api.proto" ,
}