chore: auto-generate protobuf files [skip ci]

This commit is contained in:
github-actions[bot]
2026-04-19 07:52:48 +00:00
parent 4be5b29131
commit 3b2df0aed6
6 changed files with 591 additions and 94 deletions

View File

@@ -19,15 +19,16 @@ 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_SoftDeleteProfile_FullMethodName = "/users.v1.UsersService/SoftDeleteProfile"
UsersService_BlockUser_FullMethodName = "/users.v1.UsersService/BlockUser"
UsersService_UnblockUser_FullMethodName = "/users.v1.UsersService/UnblockUser"
UsersService_GetBlockedUsers_FullMethodName = "/users.v1.UsersService/GetBlockedUsers"
UsersService_AddContact_FullMethodName = "/users.v1.UsersService/AddContact"
UsersService_GetContacts_FullMethodName = "/users.v1.UsersService/GetContacts"
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"
UsersService_BlockUser_FullMethodName = "/users.v1.UsersService/BlockUser"
UsersService_UnblockUser_FullMethodName = "/users.v1.UsersService/UnblockUser"
UsersService_GetBlockedUsers_FullMethodName = "/users.v1.UsersService/GetBlockedUsers"
UsersService_AddContact_FullMethodName = "/users.v1.UsersService/AddContact"
UsersService_GetContacts_FullMethodName = "/users.v1.UsersService/GetContacts"
UsersService_SystemGetProfileBatch_FullMethodName = "/users.v1.UsersService/SystemGetProfileBatch"
)
// UsersServiceClient is the client API for UsersService service.
@@ -45,6 +46,7 @@ type UsersServiceClient interface {
GetBlockedUsers(ctx context.Context, in *GetBlockedUsersRequest, opts ...grpc.CallOption) (*GetBlockedUsersResponse, error)
AddContact(ctx context.Context, in *AddContactRequest, opts ...grpc.CallOption) (*AddContactResponse, error)
GetContacts(ctx context.Context, in *GetContactsRequest, opts ...grpc.CallOption) (*GetContactsResponse, error)
SystemGetProfileBatch(ctx context.Context, in *SystemGetProfileBatchRequest, opts ...grpc.CallOption) (*SystemGetProfileBatchResponse, error)
}
type usersServiceClient struct {
@@ -145,6 +147,16 @@ func (c *usersServiceClient) GetContacts(ctx context.Context, in *GetContactsReq
return out, nil
}
func (c *usersServiceClient) SystemGetProfileBatch(ctx context.Context, in *SystemGetProfileBatchRequest, opts ...grpc.CallOption) (*SystemGetProfileBatchResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(SystemGetProfileBatchResponse)
err := c.cc.Invoke(ctx, UsersService_SystemGetProfileBatch_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.
@@ -160,6 +172,7 @@ type UsersServiceServer interface {
GetBlockedUsers(context.Context, *GetBlockedUsersRequest) (*GetBlockedUsersResponse, error)
AddContact(context.Context, *AddContactRequest) (*AddContactResponse, error)
GetContacts(context.Context, *GetContactsRequest) (*GetContactsResponse, error)
SystemGetProfileBatch(context.Context, *SystemGetProfileBatchRequest) (*SystemGetProfileBatchResponse, error)
mustEmbedUnimplementedUsersServiceServer()
}
@@ -197,6 +210,9 @@ func (UnimplementedUsersServiceServer) AddContact(context.Context, *AddContactRe
func (UnimplementedUsersServiceServer) GetContacts(context.Context, *GetContactsRequest) (*GetContactsResponse, error) {
return nil, status.Error(codes.Unimplemented, "method GetContacts not implemented")
}
func (UnimplementedUsersServiceServer) SystemGetProfileBatch(context.Context, *SystemGetProfileBatchRequest) (*SystemGetProfileBatchResponse, error) {
return nil, status.Error(codes.Unimplemented, "method SystemGetProfileBatch not implemented")
}
func (UnimplementedUsersServiceServer) mustEmbedUnimplementedUsersServiceServer() {}
func (UnimplementedUsersServiceServer) testEmbeddedByValue() {}
@@ -380,6 +396,24 @@ func _UsersService_GetContacts_Handler(srv interface{}, ctx context.Context, dec
return interceptor(ctx, in, info, handler)
}
func _UsersService_SystemGetProfileBatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SystemGetProfileBatchRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UsersServiceServer).SystemGetProfileBatch(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: UsersService_SystemGetProfileBatch_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UsersServiceServer).SystemGetProfileBatch(ctx, req.(*SystemGetProfileBatchRequest))
}
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)
@@ -423,6 +457,10 @@ var UsersService_ServiceDesc = grpc.ServiceDesc{
MethodName: "GetContacts",
Handler: _UsersService_GetContacts_Handler,
},
{
MethodName: "SystemGetProfileBatch",
Handler: _UsersService_SystemGetProfileBatch_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "users/users.proto",