chore: auto-generate protobuf files [skip ci]

This commit is contained in:
github-actions[bot]
2026-04-04 20:37:04 +00:00
parent 79b7857855
commit 163ad21392
3 changed files with 607 additions and 0 deletions

159
gen/go/rbax_grpc.pb.go Normal file
View File

@@ -0,0 +1,159 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.6.1
// - protoc v3.21.12
// source: rbax.proto
package pb
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.64.0 or later.
const _ = grpc.SupportPackageIsVersion9
const (
LdapAuthService_GetAllPermissions_FullMethodName = "/rbac.v1.LdapAuthService/GetAllPermissions"
LdapAuthService_GetAllRoles_FullMethodName = "/rbac.v1.LdapAuthService/GetAllRoles"
)
// LdapAuthServiceClient is the client API for LdapAuthService 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 {
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 {
cc grpc.ClientConnInterface
}
func NewLdapAuthServiceClient(cc grpc.ClientConnInterface) LdapAuthServiceClient {
return &ldapAuthServiceClient{cc}
}
func (c *ldapAuthServiceClient) 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...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ldapAuthServiceClient) 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...)
if err != nil {
return nil, err
}
return out, nil
}
// LdapAuthServiceServer is the server API for LdapAuthService service.
// All implementations must embed UnimplementedLdapAuthServiceServer
// for forward compatibility.
type LdapAuthServiceServer interface {
GetAllPermissions(context.Context, *GetAllPermissionsRequest) (*GetAllPermissionsResponse, error)
GetAllRoles(context.Context, *GetAllRolesRequest) (*GetAllRolesResponse, error)
mustEmbedUnimplementedLdapAuthServiceServer()
}
// UnimplementedLdapAuthServiceServer 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{}
func (UnimplementedLdapAuthServiceServer) GetAllPermissions(context.Context, *GetAllPermissionsRequest) (*GetAllPermissionsResponse, error) {
return nil, status.Error(codes.Unimplemented, "method GetAllPermissions not implemented")
}
func (UnimplementedLdapAuthServiceServer) GetAllRoles(context.Context, *GetAllRolesRequest) (*GetAllRolesResponse, error) {
return nil, status.Error(codes.Unimplemented, "method GetAllRoles not implemented")
}
func (UnimplementedLdapAuthServiceServer) mustEmbedUnimplementedLdapAuthServiceServer() {}
func (UnimplementedLdapAuthServiceServer) 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
// result in compilation errors.
type UnsafeLdapAuthServiceServer interface {
mustEmbedUnimplementedLdapAuthServiceServer()
}
func RegisterLdapAuthServiceServer(s grpc.ServiceRegistrar, srv LdapAuthServiceServer) {
// If the following call panics, it indicates UnimplementedLdapAuthServiceServer 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)
}
func _LdapAuthService_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)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: LdapAuthService_GetAllPermissions_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(LdapAuthServiceServer).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) {
in := new(GetAllRolesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(LdapAuthServiceServer).GetAllRoles(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: LdapAuthService_GetAllRoles_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(LdapAuthServiceServer).GetAllRoles(ctx, req.(*GetAllRolesRequest))
}
return interceptor(ctx, in, info, handler)
}
// LdapAuthService_ServiceDesc is the grpc.ServiceDesc for LdapAuthService 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),
Methods: []grpc.MethodDesc{
{
MethodName: "GetAllPermissions",
Handler: _LdapAuthService_GetAllPermissions_Handler,
},
{
MethodName: "GetAllRoles",
Handler: _LdapAuthService_GetAllRoles_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "rbax.proto",
}