2023-09-06 11:34:43 +00:00
//COOPGO Agenda gRPC service definition
2022-09-05 05:27:52 +00:00
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
2023-09-06 11:34:43 +00:00
// - protoc-gen-go-grpc v1.3.0
2023-02-01 08:58:37 +00:00
// - protoc v3.12.4
2022-09-05 05:27:52 +00:00
// source: agenda.proto
package grpcapi
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
2023-09-06 11:34:43 +00:00
const (
Agenda_CreateEvent_FullMethodName = "/Agenda/CreateEvent"
Agenda_GetEvent_FullMethodName = "/Agenda/GetEvent"
Agenda_GetEvents_FullMethodName = "/Agenda/GetEvents"
Agenda_DeleteEvent_FullMethodName = "/Agenda/DeleteEvent"
Agenda_UpdateEvent_FullMethodName = "/Agenda/UpdateEvent"
Agenda_SubscribeEvent_FullMethodName = "/Agenda/SubscribeEvent"
Agenda_UnsubscribeEvent_FullMethodName = "/Agenda/UnsubscribeEvent"
Agenda_DeleteSubscription_FullMethodName = "/Agenda/DeleteSubscription"
Agenda_GetSubscriptionByUser_FullMethodName = "/Agenda/GetSubscriptionByUser"
)
2022-09-05 05:27:52 +00:00
// AgendaClient is the client API for Agenda 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 AgendaClient interface {
CreateEvent ( ctx context . Context , in * CreateEventRequest , opts ... grpc . CallOption ) ( * CreateEventResponse , error )
GetEvent ( ctx context . Context , in * GetEventRequest , opts ... grpc . CallOption ) ( * GetEventResponse , error )
GetEvents ( ctx context . Context , in * GetEventsRequest , opts ... grpc . CallOption ) ( * GetEventsResponse , error )
DeleteEvent ( ctx context . Context , in * DeleteEventRequest , opts ... grpc . CallOption ) ( * DeleteEventResponse , error )
2023-02-01 08:58:37 +00:00
UpdateEvent ( ctx context . Context , in * UpdateEventRequest , opts ... grpc . CallOption ) ( * UpdateEventResponse , error )
2022-09-05 05:27:52 +00:00
SubscribeEvent ( ctx context . Context , in * SubscribeEventRequest , opts ... grpc . CallOption ) ( * SubscribeEventResponse , error )
UnsubscribeEvent ( ctx context . Context , in * UnsubscribeEventRequest , opts ... grpc . CallOption ) ( * UnsubscribeEventResponse , error )
2023-02-01 15:04:10 +00:00
DeleteSubscription ( ctx context . Context , in * DeleteSubscriptionRequest , opts ... grpc . CallOption ) ( * DeleteSubscriptionResponse , error )
2023-09-06 11:34:43 +00:00
GetSubscriptionByUser ( ctx context . Context , in * GetSubscriptionByUserRequest , opts ... grpc . CallOption ) ( * GetSubscriptionByUserResponse , error )
2022-09-05 05:27:52 +00:00
}
type agendaClient struct {
cc grpc . ClientConnInterface
}
func NewAgendaClient ( cc grpc . ClientConnInterface ) AgendaClient {
return & agendaClient { cc }
}
func ( c * agendaClient ) CreateEvent ( ctx context . Context , in * CreateEventRequest , opts ... grpc . CallOption ) ( * CreateEventResponse , error ) {
out := new ( CreateEventResponse )
2023-09-06 11:34:43 +00:00
err := c . cc . Invoke ( ctx , Agenda_CreateEvent_FullMethodName , in , out , opts ... )
2022-09-05 05:27:52 +00:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * agendaClient ) GetEvent ( ctx context . Context , in * GetEventRequest , opts ... grpc . CallOption ) ( * GetEventResponse , error ) {
out := new ( GetEventResponse )
2023-09-06 11:34:43 +00:00
err := c . cc . Invoke ( ctx , Agenda_GetEvent_FullMethodName , in , out , opts ... )
2022-09-05 05:27:52 +00:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * agendaClient ) GetEvents ( ctx context . Context , in * GetEventsRequest , opts ... grpc . CallOption ) ( * GetEventsResponse , error ) {
out := new ( GetEventsResponse )
2023-09-06 11:34:43 +00:00
err := c . cc . Invoke ( ctx , Agenda_GetEvents_FullMethodName , in , out , opts ... )
2022-09-05 05:27:52 +00:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * agendaClient ) DeleteEvent ( ctx context . Context , in * DeleteEventRequest , opts ... grpc . CallOption ) ( * DeleteEventResponse , error ) {
out := new ( DeleteEventResponse )
2023-09-06 11:34:43 +00:00
err := c . cc . Invoke ( ctx , Agenda_DeleteEvent_FullMethodName , in , out , opts ... )
2022-09-05 05:27:52 +00:00
if err != nil {
return nil , err
}
return out , nil
}
2023-02-01 08:58:37 +00:00
func ( c * agendaClient ) UpdateEvent ( ctx context . Context , in * UpdateEventRequest , opts ... grpc . CallOption ) ( * UpdateEventResponse , error ) {
out := new ( UpdateEventResponse )
2023-09-06 11:34:43 +00:00
err := c . cc . Invoke ( ctx , Agenda_UpdateEvent_FullMethodName , in , out , opts ... )
2023-02-01 08:58:37 +00:00
if err != nil {
return nil , err
}
return out , nil
}
2022-09-05 05:27:52 +00:00
func ( c * agendaClient ) SubscribeEvent ( ctx context . Context , in * SubscribeEventRequest , opts ... grpc . CallOption ) ( * SubscribeEventResponse , error ) {
out := new ( SubscribeEventResponse )
2023-09-06 11:34:43 +00:00
err := c . cc . Invoke ( ctx , Agenda_SubscribeEvent_FullMethodName , in , out , opts ... )
2022-09-05 05:27:52 +00:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * agendaClient ) UnsubscribeEvent ( ctx context . Context , in * UnsubscribeEventRequest , opts ... grpc . CallOption ) ( * UnsubscribeEventResponse , error ) {
out := new ( UnsubscribeEventResponse )
2023-09-06 11:34:43 +00:00
err := c . cc . Invoke ( ctx , Agenda_UnsubscribeEvent_FullMethodName , in , out , opts ... )
2022-09-05 05:27:52 +00:00
if err != nil {
return nil , err
}
return out , nil
}
2023-02-01 15:04:10 +00:00
func ( c * agendaClient ) DeleteSubscription ( ctx context . Context , in * DeleteSubscriptionRequest , opts ... grpc . CallOption ) ( * DeleteSubscriptionResponse , error ) {
out := new ( DeleteSubscriptionResponse )
2023-09-06 11:34:43 +00:00
err := c . cc . Invoke ( ctx , Agenda_DeleteSubscription_FullMethodName , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * agendaClient ) GetSubscriptionByUser ( ctx context . Context , in * GetSubscriptionByUserRequest , opts ... grpc . CallOption ) ( * GetSubscriptionByUserResponse , error ) {
out := new ( GetSubscriptionByUserResponse )
err := c . cc . Invoke ( ctx , Agenda_GetSubscriptionByUser_FullMethodName , in , out , opts ... )
2023-02-01 15:04:10 +00:00
if err != nil {
return nil , err
}
return out , nil
}
2022-09-05 05:27:52 +00:00
// AgendaServer is the server API for Agenda service.
// All implementations must embed UnimplementedAgendaServer
// for forward compatibility
type AgendaServer interface {
CreateEvent ( context . Context , * CreateEventRequest ) ( * CreateEventResponse , error )
GetEvent ( context . Context , * GetEventRequest ) ( * GetEventResponse , error )
GetEvents ( context . Context , * GetEventsRequest ) ( * GetEventsResponse , error )
DeleteEvent ( context . Context , * DeleteEventRequest ) ( * DeleteEventResponse , error )
2023-02-01 08:58:37 +00:00
UpdateEvent ( context . Context , * UpdateEventRequest ) ( * UpdateEventResponse , error )
2022-09-05 05:27:52 +00:00
SubscribeEvent ( context . Context , * SubscribeEventRequest ) ( * SubscribeEventResponse , error )
UnsubscribeEvent ( context . Context , * UnsubscribeEventRequest ) ( * UnsubscribeEventResponse , error )
2023-02-01 15:04:10 +00:00
DeleteSubscription ( context . Context , * DeleteSubscriptionRequest ) ( * DeleteSubscriptionResponse , error )
2023-09-06 11:34:43 +00:00
GetSubscriptionByUser ( context . Context , * GetSubscriptionByUserRequest ) ( * GetSubscriptionByUserResponse , error )
2022-09-05 05:27:52 +00:00
mustEmbedUnimplementedAgendaServer ( )
}
// UnimplementedAgendaServer must be embedded to have forward compatible implementations.
type UnimplementedAgendaServer struct {
}
func ( UnimplementedAgendaServer ) CreateEvent ( context . Context , * CreateEventRequest ) ( * CreateEventResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method CreateEvent not implemented" )
}
func ( UnimplementedAgendaServer ) GetEvent ( context . Context , * GetEventRequest ) ( * GetEventResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetEvent not implemented" )
}
func ( UnimplementedAgendaServer ) GetEvents ( context . Context , * GetEventsRequest ) ( * GetEventsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetEvents not implemented" )
}
func ( UnimplementedAgendaServer ) DeleteEvent ( context . Context , * DeleteEventRequest ) ( * DeleteEventResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method DeleteEvent not implemented" )
}
2023-02-01 08:58:37 +00:00
func ( UnimplementedAgendaServer ) UpdateEvent ( context . Context , * UpdateEventRequest ) ( * UpdateEventResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method UpdateEvent not implemented" )
}
2022-09-05 05:27:52 +00:00
func ( UnimplementedAgendaServer ) SubscribeEvent ( context . Context , * SubscribeEventRequest ) ( * SubscribeEventResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method SubscribeEvent not implemented" )
}
func ( UnimplementedAgendaServer ) UnsubscribeEvent ( context . Context , * UnsubscribeEventRequest ) ( * UnsubscribeEventResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method UnsubscribeEvent not implemented" )
}
2023-02-01 15:04:10 +00:00
func ( UnimplementedAgendaServer ) DeleteSubscription ( context . Context , * DeleteSubscriptionRequest ) ( * DeleteSubscriptionResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method DeleteSubscription not implemented" )
}
2023-09-06 11:34:43 +00:00
func ( UnimplementedAgendaServer ) GetSubscriptionByUser ( context . Context , * GetSubscriptionByUserRequest ) ( * GetSubscriptionByUserResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetSubscriptionByUser not implemented" )
}
2022-09-05 05:27:52 +00:00
func ( UnimplementedAgendaServer ) mustEmbedUnimplementedAgendaServer ( ) { }
// UnsafeAgendaServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to AgendaServer will
// result in compilation errors.
type UnsafeAgendaServer interface {
mustEmbedUnimplementedAgendaServer ( )
}
func RegisterAgendaServer ( s grpc . ServiceRegistrar , srv AgendaServer ) {
s . RegisterService ( & Agenda_ServiceDesc , srv )
}
func _Agenda_CreateEvent_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( CreateEventRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( AgendaServer ) . CreateEvent ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-09-06 11:34:43 +00:00
FullMethod : Agenda_CreateEvent_FullMethodName ,
2022-09-05 05:27:52 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( AgendaServer ) . CreateEvent ( ctx , req . ( * CreateEventRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Agenda_GetEvent_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetEventRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( AgendaServer ) . GetEvent ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-09-06 11:34:43 +00:00
FullMethod : Agenda_GetEvent_FullMethodName ,
2022-09-05 05:27:52 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( AgendaServer ) . GetEvent ( ctx , req . ( * GetEventRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Agenda_GetEvents_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetEventsRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( AgendaServer ) . GetEvents ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-09-06 11:34:43 +00:00
FullMethod : Agenda_GetEvents_FullMethodName ,
2022-09-05 05:27:52 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( AgendaServer ) . GetEvents ( ctx , req . ( * GetEventsRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Agenda_DeleteEvent_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( DeleteEventRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( AgendaServer ) . DeleteEvent ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-09-06 11:34:43 +00:00
FullMethod : Agenda_DeleteEvent_FullMethodName ,
2022-09-05 05:27:52 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( AgendaServer ) . DeleteEvent ( ctx , req . ( * DeleteEventRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2023-02-01 08:58:37 +00:00
func _Agenda_UpdateEvent_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( UpdateEventRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( AgendaServer ) . UpdateEvent ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-09-06 11:34:43 +00:00
FullMethod : Agenda_UpdateEvent_FullMethodName ,
2023-02-01 08:58:37 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( AgendaServer ) . UpdateEvent ( ctx , req . ( * UpdateEventRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2022-09-05 05:27:52 +00:00
func _Agenda_SubscribeEvent_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( SubscribeEventRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( AgendaServer ) . SubscribeEvent ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-09-06 11:34:43 +00:00
FullMethod : Agenda_SubscribeEvent_FullMethodName ,
2022-09-05 05:27:52 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( AgendaServer ) . SubscribeEvent ( ctx , req . ( * SubscribeEventRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Agenda_UnsubscribeEvent_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( UnsubscribeEventRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( AgendaServer ) . UnsubscribeEvent ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-09-06 11:34:43 +00:00
FullMethod : Agenda_UnsubscribeEvent_FullMethodName ,
2022-09-05 05:27:52 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( AgendaServer ) . UnsubscribeEvent ( ctx , req . ( * UnsubscribeEventRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2023-02-01 15:04:10 +00:00
func _Agenda_DeleteSubscription_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( DeleteSubscriptionRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( AgendaServer ) . DeleteSubscription ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-09-06 11:34:43 +00:00
FullMethod : Agenda_DeleteSubscription_FullMethodName ,
2023-02-01 15:04:10 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( AgendaServer ) . DeleteSubscription ( ctx , req . ( * DeleteSubscriptionRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2023-09-06 11:34:43 +00:00
func _Agenda_GetSubscriptionByUser_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetSubscriptionByUserRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( AgendaServer ) . GetSubscriptionByUser ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Agenda_GetSubscriptionByUser_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( AgendaServer ) . GetSubscriptionByUser ( ctx , req . ( * GetSubscriptionByUserRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2022-09-05 05:27:52 +00:00
// Agenda_ServiceDesc is the grpc.ServiceDesc for Agenda service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Agenda_ServiceDesc = grpc . ServiceDesc {
ServiceName : "Agenda" ,
HandlerType : ( * AgendaServer ) ( nil ) ,
Methods : [ ] grpc . MethodDesc {
{
MethodName : "CreateEvent" ,
Handler : _Agenda_CreateEvent_Handler ,
} ,
{
MethodName : "GetEvent" ,
Handler : _Agenda_GetEvent_Handler ,
} ,
{
MethodName : "GetEvents" ,
Handler : _Agenda_GetEvents_Handler ,
} ,
{
MethodName : "DeleteEvent" ,
Handler : _Agenda_DeleteEvent_Handler ,
} ,
2023-02-01 08:58:37 +00:00
{
MethodName : "UpdateEvent" ,
Handler : _Agenda_UpdateEvent_Handler ,
} ,
2022-09-05 05:27:52 +00:00
{
MethodName : "SubscribeEvent" ,
Handler : _Agenda_SubscribeEvent_Handler ,
} ,
{
MethodName : "UnsubscribeEvent" ,
Handler : _Agenda_UnsubscribeEvent_Handler ,
} ,
2023-02-01 15:04:10 +00:00
{
MethodName : "DeleteSubscription" ,
Handler : _Agenda_DeleteSubscription_Handler ,
} ,
2023-09-06 11:34:43 +00:00
{
MethodName : "GetSubscriptionByUser" ,
Handler : _Agenda_GetSubscriptionByUser_Handler ,
} ,
2022-09-05 05:27:52 +00:00
} ,
Streams : [ ] grpc . StreamDesc { } ,
Metadata : "agenda.proto" ,
}