Files
htwkalender/services/common/genproto/modules/room_grpc.pb.go
2024-10-25 00:16:02 +02:00

106 lines
3.6 KiB
Go

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