chore: auto-generate protobuf files [skip ci]

This commit is contained in:
github-actions[bot]
2026-04-11 17:05:04 +00:00
parent 8146b671dd
commit bd2ccecd5d
6 changed files with 313 additions and 53 deletions

View File

@@ -19,9 +19,10 @@ import (
const _ = grpc.SupportPackageIsVersion9
const (
UsersService_GetProfile_FullMethodName = "/users.v1.UsersService/GetProfile"
UsersService_UpdateProfile_FullMethodName = "/users.v1.UsersService/UpdateProfile"
UsersService_CreateProfile_FullMethodName = "/users.v1.UsersService/CreateProfile"
UsersService_GetProfile_FullMethodName = "/users.v1.UsersService/GetProfile"
UsersService_UpdateProfile_FullMethodName = "/users.v1.UsersService/UpdateProfile"
UsersService_CreateProfile_FullMethodName = "/users.v1.UsersService/CreateProfile"
UsersService_SoftDeleteProfile_FullMethodName = "/users.v1.UsersService/SoftDeleteProfile"
)
// UsersServiceClient is the client API for UsersService service.
@@ -32,6 +33,7 @@ type UsersServiceClient interface {
UpdateProfile(ctx context.Context, in *UpdateProfileRequest, opts ...grpc.CallOption) (*UpdateProfileResponse, error)
// Для системного использования (вызывается из Auth/Admin)
CreateProfile(ctx context.Context, in *CreateProfileRequest, opts ...grpc.CallOption) (*CreateProfileResponse, error)
SoftDeleteProfile(ctx context.Context, in *SoftDeleteProfileRequest, opts ...grpc.CallOption) (*SoftDeleteProfileResponse, error)
}
type usersServiceClient struct {
@@ -72,6 +74,16 @@ func (c *usersServiceClient) CreateProfile(ctx context.Context, in *CreateProfil
return out, nil
}
func (c *usersServiceClient) SoftDeleteProfile(ctx context.Context, in *SoftDeleteProfileRequest, opts ...grpc.CallOption) (*SoftDeleteProfileResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(SoftDeleteProfileResponse)
err := c.cc.Invoke(ctx, UsersService_SoftDeleteProfile_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
// UsersServiceServer is the server API for UsersService service.
// All implementations must embed UnimplementedUsersServiceServer
// for forward compatibility.
@@ -80,6 +92,7 @@ type UsersServiceServer interface {
UpdateProfile(context.Context, *UpdateProfileRequest) (*UpdateProfileResponse, error)
// Для системного использования (вызывается из Auth/Admin)
CreateProfile(context.Context, *CreateProfileRequest) (*CreateProfileResponse, error)
SoftDeleteProfile(context.Context, *SoftDeleteProfileRequest) (*SoftDeleteProfileResponse, error)
mustEmbedUnimplementedUsersServiceServer()
}
@@ -99,6 +112,9 @@ func (UnimplementedUsersServiceServer) UpdateProfile(context.Context, *UpdatePro
func (UnimplementedUsersServiceServer) CreateProfile(context.Context, *CreateProfileRequest) (*CreateProfileResponse, error) {
return nil, status.Error(codes.Unimplemented, "method CreateProfile not implemented")
}
func (UnimplementedUsersServiceServer) SoftDeleteProfile(context.Context, *SoftDeleteProfileRequest) (*SoftDeleteProfileResponse, error) {
return nil, status.Error(codes.Unimplemented, "method SoftDeleteProfile not implemented")
}
func (UnimplementedUsersServiceServer) mustEmbedUnimplementedUsersServiceServer() {}
func (UnimplementedUsersServiceServer) testEmbeddedByValue() {}
@@ -174,6 +190,24 @@ func _UsersService_CreateProfile_Handler(srv interface{}, ctx context.Context, d
return interceptor(ctx, in, info, handler)
}
func _UsersService_SoftDeleteProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SoftDeleteProfileRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UsersServiceServer).SoftDeleteProfile(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: UsersService_SoftDeleteProfile_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UsersServiceServer).SoftDeleteProfile(ctx, req.(*SoftDeleteProfileRequest))
}
return interceptor(ctx, in, info, handler)
}
// UsersService_ServiceDesc is the grpc.ServiceDesc for UsersService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
@@ -193,6 +227,10 @@ var UsersService_ServiceDesc = grpc.ServiceDesc{
MethodName: "CreateProfile",
Handler: _UsersService_CreateProfile_Handler,
},
{
MethodName: "SoftDeleteProfile",
Handler: _UsersService_SoftDeleteProfile_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "users/users.proto",