chore: auto-generate protobuf files [skip ci]

This commit is contained in:
github-actions[bot]
2026-04-05 09:39:06 +00:00
parent 74bc65b3e2
commit cadcbb468d
3 changed files with 54 additions and 54 deletions

View File

@@ -19,139 +19,139 @@ import (
const _ = grpc.SupportPackageIsVersion9
const (
LdapAuthService_GetAllPermissions_FullMethodName = "/rbac.v1.LdapAuthService/GetAllPermissions"
LdapAuthService_GetAllRoles_FullMethodName = "/rbac.v1.LdapAuthService/GetAllRoles"
RbacService_GetAllPermissions_FullMethodName = "/rbac.v1.RbacService/GetAllPermissions"
RbacService_GetAllRoles_FullMethodName = "/rbac.v1.RbacService/GetAllRoles"
)
// LdapAuthServiceClient is the client API for LdapAuthService service.
// RbacServiceClient is the client API for RbacService 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 LdapAuthServiceClient interface {
type RbacServiceClient interface {
GetAllPermissions(ctx context.Context, in *GetAllPermissionsRequest, opts ...grpc.CallOption) (*GetAllPermissionsResponse, error)
GetAllRoles(ctx context.Context, in *GetAllRolesRequest, opts ...grpc.CallOption) (*GetAllRolesResponse, error)
}
type ldapAuthServiceClient struct {
type rbacServiceClient struct {
cc grpc.ClientConnInterface
}
func NewLdapAuthServiceClient(cc grpc.ClientConnInterface) LdapAuthServiceClient {
return &ldapAuthServiceClient{cc}
func NewRbacServiceClient(cc grpc.ClientConnInterface) RbacServiceClient {
return &rbacServiceClient{cc}
}
func (c *ldapAuthServiceClient) GetAllPermissions(ctx context.Context, in *GetAllPermissionsRequest, opts ...grpc.CallOption) (*GetAllPermissionsResponse, error) {
func (c *rbacServiceClient) GetAllPermissions(ctx context.Context, in *GetAllPermissionsRequest, opts ...grpc.CallOption) (*GetAllPermissionsResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(GetAllPermissionsResponse)
err := c.cc.Invoke(ctx, LdapAuthService_GetAllPermissions_FullMethodName, in, out, cOpts...)
err := c.cc.Invoke(ctx, RbacService_GetAllPermissions_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ldapAuthServiceClient) GetAllRoles(ctx context.Context, in *GetAllRolesRequest, opts ...grpc.CallOption) (*GetAllRolesResponse, error) {
func (c *rbacServiceClient) GetAllRoles(ctx context.Context, in *GetAllRolesRequest, opts ...grpc.CallOption) (*GetAllRolesResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(GetAllRolesResponse)
err := c.cc.Invoke(ctx, LdapAuthService_GetAllRoles_FullMethodName, in, out, cOpts...)
err := c.cc.Invoke(ctx, RbacService_GetAllRoles_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
// LdapAuthServiceServer is the server API for LdapAuthService service.
// All implementations must embed UnimplementedLdapAuthServiceServer
// RbacServiceServer is the server API for RbacService service.
// All implementations must embed UnimplementedRbacServiceServer
// for forward compatibility.
type LdapAuthServiceServer interface {
type RbacServiceServer interface {
GetAllPermissions(context.Context, *GetAllPermissionsRequest) (*GetAllPermissionsResponse, error)
GetAllRoles(context.Context, *GetAllRolesRequest) (*GetAllRolesResponse, error)
mustEmbedUnimplementedLdapAuthServiceServer()
mustEmbedUnimplementedRbacServiceServer()
}
// UnimplementedLdapAuthServiceServer must be embedded to have
// UnimplementedRbacServiceServer 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 UnimplementedLdapAuthServiceServer struct{}
type UnimplementedRbacServiceServer struct{}
func (UnimplementedLdapAuthServiceServer) GetAllPermissions(context.Context, *GetAllPermissionsRequest) (*GetAllPermissionsResponse, error) {
func (UnimplementedRbacServiceServer) GetAllPermissions(context.Context, *GetAllPermissionsRequest) (*GetAllPermissionsResponse, error) {
return nil, status.Error(codes.Unimplemented, "method GetAllPermissions not implemented")
}
func (UnimplementedLdapAuthServiceServer) GetAllRoles(context.Context, *GetAllRolesRequest) (*GetAllRolesResponse, error) {
func (UnimplementedRbacServiceServer) GetAllRoles(context.Context, *GetAllRolesRequest) (*GetAllRolesResponse, error) {
return nil, status.Error(codes.Unimplemented, "method GetAllRoles not implemented")
}
func (UnimplementedLdapAuthServiceServer) mustEmbedUnimplementedLdapAuthServiceServer() {}
func (UnimplementedLdapAuthServiceServer) testEmbeddedByValue() {}
func (UnimplementedRbacServiceServer) mustEmbedUnimplementedRbacServiceServer() {}
func (UnimplementedRbacServiceServer) testEmbeddedByValue() {}
// UnsafeLdapAuthServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to LdapAuthServiceServer will
// UnsafeRbacServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to RbacServiceServer will
// result in compilation errors.
type UnsafeLdapAuthServiceServer interface {
mustEmbedUnimplementedLdapAuthServiceServer()
type UnsafeRbacServiceServer interface {
mustEmbedUnimplementedRbacServiceServer()
}
func RegisterLdapAuthServiceServer(s grpc.ServiceRegistrar, srv LdapAuthServiceServer) {
// If the following call panics, it indicates UnimplementedLdapAuthServiceServer was
func RegisterRbacServiceServer(s grpc.ServiceRegistrar, srv RbacServiceServer) {
// If the following call panics, it indicates UnimplementedRbacServiceServer 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()
}
s.RegisterService(&LdapAuthService_ServiceDesc, srv)
s.RegisterService(&RbacService_ServiceDesc, srv)
}
func _LdapAuthService_GetAllPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
func _RbacService_GetAllPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetAllPermissionsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(LdapAuthServiceServer).GetAllPermissions(ctx, in)
return srv.(RbacServiceServer).GetAllPermissions(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: LdapAuthService_GetAllPermissions_FullMethodName,
FullMethod: RbacService_GetAllPermissions_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(LdapAuthServiceServer).GetAllPermissions(ctx, req.(*GetAllPermissionsRequest))
return srv.(RbacServiceServer).GetAllPermissions(ctx, req.(*GetAllPermissionsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _LdapAuthService_GetAllRoles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
func _RbacService_GetAllRoles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetAllRolesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(LdapAuthServiceServer).GetAllRoles(ctx, in)
return srv.(RbacServiceServer).GetAllRoles(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: LdapAuthService_GetAllRoles_FullMethodName,
FullMethod: RbacService_GetAllRoles_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(LdapAuthServiceServer).GetAllRoles(ctx, req.(*GetAllRolesRequest))
return srv.(RbacServiceServer).GetAllRoles(ctx, req.(*GetAllRolesRequest))
}
return interceptor(ctx, in, info, handler)
}
// LdapAuthService_ServiceDesc is the grpc.ServiceDesc for LdapAuthService service.
// RbacService_ServiceDesc is the grpc.ServiceDesc for RbacService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var LdapAuthService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "rbac.v1.LdapAuthService",
HandlerType: (*LdapAuthServiceServer)(nil),
var RbacService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "rbac.v1.RbacService",
HandlerType: (*RbacServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetAllPermissions",
Handler: _LdapAuthService_GetAllPermissions_Handler,
Handler: _RbacService_GetAllPermissions_Handler,
},
{
MethodName: "GetAllRoles",
Handler: _LdapAuthService_GetAllRoles_Handler,
Handler: _RbacService_GetAllRoles_Handler,
},
},
Streams: []grpc.StreamDesc{},