// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.6.1 // - protoc v4.25.9 // source: users/users.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 ( 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. // // 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 UsersServiceClient interface { GetProfile(ctx context.Context, in *GetProfileRequest, opts ...grpc.CallOption) (*GetProfileResponse, error) 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) // --- НОВЫЕ МЕТОДЫ МЕССЕНДЖЕРА --- BlockUser(ctx context.Context, in *BlockUserRequest, opts ...grpc.CallOption) (*BlockUserResponse, error) UnblockUser(ctx context.Context, in *UnblockUserRequest, opts ...grpc.CallOption) (*UnblockUserResponse, error) 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 { cc grpc.ClientConnInterface } func NewUsersServiceClient(cc grpc.ClientConnInterface) UsersServiceClient { return &usersServiceClient{cc} } func (c *usersServiceClient) GetProfile(ctx context.Context, in *GetProfileRequest, opts ...grpc.CallOption) (*GetProfileResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetProfileResponse) err := c.cc.Invoke(ctx, UsersService_GetProfile_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *usersServiceClient) UpdateProfile(ctx context.Context, in *UpdateProfileRequest, opts ...grpc.CallOption) (*UpdateProfileResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateProfileResponse) err := c.cc.Invoke(ctx, UsersService_UpdateProfile_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *usersServiceClient) CreateProfile(ctx context.Context, in *CreateProfileRequest, opts ...grpc.CallOption) (*CreateProfileResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateProfileResponse) err := c.cc.Invoke(ctx, UsersService_CreateProfile_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } 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 } func (c *usersServiceClient) BlockUser(ctx context.Context, in *BlockUserRequest, opts ...grpc.CallOption) (*BlockUserResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BlockUserResponse) err := c.cc.Invoke(ctx, UsersService_BlockUser_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *usersServiceClient) UnblockUser(ctx context.Context, in *UnblockUserRequest, opts ...grpc.CallOption) (*UnblockUserResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UnblockUserResponse) err := c.cc.Invoke(ctx, UsersService_UnblockUser_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *usersServiceClient) GetBlockedUsers(ctx context.Context, in *GetBlockedUsersRequest, opts ...grpc.CallOption) (*GetBlockedUsersResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetBlockedUsersResponse) err := c.cc.Invoke(ctx, UsersService_GetBlockedUsers_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *usersServiceClient) AddContact(ctx context.Context, in *AddContactRequest, opts ...grpc.CallOption) (*AddContactResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AddContactResponse) err := c.cc.Invoke(ctx, UsersService_AddContact_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *usersServiceClient) GetContacts(ctx context.Context, in *GetContactsRequest, opts ...grpc.CallOption) (*GetContactsResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetContactsResponse) err := c.cc.Invoke(ctx, UsersService_GetContacts_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } 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. type UsersServiceServer interface { GetProfile(context.Context, *GetProfileRequest) (*GetProfileResponse, error) UpdateProfile(context.Context, *UpdateProfileRequest) (*UpdateProfileResponse, error) // Для системного использования (вызывается из Auth/Admin) CreateProfile(context.Context, *CreateProfileRequest) (*CreateProfileResponse, error) SoftDeleteProfile(context.Context, *SoftDeleteProfileRequest) (*SoftDeleteProfileResponse, error) // --- НОВЫЕ МЕТОДЫ МЕССЕНДЖЕРА --- BlockUser(context.Context, *BlockUserRequest) (*BlockUserResponse, error) UnblockUser(context.Context, *UnblockUserRequest) (*UnblockUserResponse, error) 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() } // UnimplementedUsersServiceServer 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 UnimplementedUsersServiceServer struct{} func (UnimplementedUsersServiceServer) GetProfile(context.Context, *GetProfileRequest) (*GetProfileResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetProfile not implemented") } func (UnimplementedUsersServiceServer) UpdateProfile(context.Context, *UpdateProfileRequest) (*UpdateProfileResponse, error) { return nil, status.Error(codes.Unimplemented, "method UpdateProfile not implemented") } 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) BlockUser(context.Context, *BlockUserRequest) (*BlockUserResponse, error) { return nil, status.Error(codes.Unimplemented, "method BlockUser not implemented") } func (UnimplementedUsersServiceServer) UnblockUser(context.Context, *UnblockUserRequest) (*UnblockUserResponse, error) { return nil, status.Error(codes.Unimplemented, "method UnblockUser not implemented") } func (UnimplementedUsersServiceServer) GetBlockedUsers(context.Context, *GetBlockedUsersRequest) (*GetBlockedUsersResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetBlockedUsers not implemented") } func (UnimplementedUsersServiceServer) AddContact(context.Context, *AddContactRequest) (*AddContactResponse, error) { return nil, status.Error(codes.Unimplemented, "method AddContact not implemented") } 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() {} // UnsafeUsersServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to UsersServiceServer will // result in compilation errors. type UnsafeUsersServiceServer interface { mustEmbedUnimplementedUsersServiceServer() } func RegisterUsersServiceServer(s grpc.ServiceRegistrar, srv UsersServiceServer) { // If the following call panics, it indicates UnimplementedUsersServiceServer 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(&UsersService_ServiceDesc, srv) } func _UsersService_GetProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetProfileRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UsersServiceServer).GetProfile(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UsersService_GetProfile_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UsersServiceServer).GetProfile(ctx, req.(*GetProfileRequest)) } return interceptor(ctx, in, info, handler) } func _UsersService_UpdateProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdateProfileRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UsersServiceServer).UpdateProfile(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UsersService_UpdateProfile_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UsersServiceServer).UpdateProfile(ctx, req.(*UpdateProfileRequest)) } return interceptor(ctx, in, info, handler) } func _UsersService_CreateProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateProfileRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UsersServiceServer).CreateProfile(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UsersService_CreateProfile_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UsersServiceServer).CreateProfile(ctx, req.(*CreateProfileRequest)) } 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) } func _UsersService_BlockUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(BlockUserRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UsersServiceServer).BlockUser(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UsersService_BlockUser_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UsersServiceServer).BlockUser(ctx, req.(*BlockUserRequest)) } return interceptor(ctx, in, info, handler) } func _UsersService_UnblockUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UnblockUserRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UsersServiceServer).UnblockUser(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UsersService_UnblockUser_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UsersServiceServer).UnblockUser(ctx, req.(*UnblockUserRequest)) } return interceptor(ctx, in, info, handler) } func _UsersService_GetBlockedUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetBlockedUsersRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UsersServiceServer).GetBlockedUsers(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UsersService_GetBlockedUsers_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UsersServiceServer).GetBlockedUsers(ctx, req.(*GetBlockedUsersRequest)) } return interceptor(ctx, in, info, handler) } func _UsersService_AddContact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(AddContactRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UsersServiceServer).AddContact(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UsersService_AddContact_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UsersServiceServer).AddContact(ctx, req.(*AddContactRequest)) } return interceptor(ctx, in, info, handler) } func _UsersService_GetContacts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetContactsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UsersServiceServer).GetContacts(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: UsersService_GetContacts_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UsersServiceServer).GetContacts(ctx, req.(*GetContactsRequest)) } 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) var UsersService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "users.v1.UsersService", HandlerType: (*UsersServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetProfile", Handler: _UsersService_GetProfile_Handler, }, { MethodName: "UpdateProfile", Handler: _UsersService_UpdateProfile_Handler, }, { MethodName: "CreateProfile", Handler: _UsersService_CreateProfile_Handler, }, { MethodName: "SoftDeleteProfile", Handler: _UsersService_SoftDeleteProfile_Handler, }, { MethodName: "BlockUser", Handler: _UsersService_BlockUser_Handler, }, { MethodName: "UnblockUser", Handler: _UsersService_UnblockUser_Handler, }, { MethodName: "GetBlockedUsers", Handler: _UsersService_GetBlockedUsers_Handler, }, { MethodName: "AddContact", Handler: _UsersService_AddContact_Handler, }, { MethodName: "GetContacts", Handler: _UsersService_GetContacts_Handler, }, { MethodName: "SystemGetProfileBatch", Handler: _UsersService_SystemGetProfileBatch_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "users/users.proto", }