// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.6.2
// - protoc             v7.35.0
// source: module/social/relation/proto/friend.proto

package relation

import (
	protobuf "bsm/full/protobuf"
	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 (
	Friend_Search_FullMethodName         = "/relation.Friend/Search"
	Friend_Fetch_FullMethodName          = "/relation.Friend/Fetch"
	Friend_Get_FullMethodName            = "/relation.Friend/Get"
	Friend_ModifyNickname_FullMethodName = "/relation.Friend/ModifyNickname"
	Friend_DoPopular_FullMethodName      = "/relation.Friend/DoPopular"
	Friend_UndoPopular_FullMethodName    = "/relation.Friend/UndoPopular"
	Friend_Delete_FullMethodName         = "/relation.Friend/Delete"
	Friend_ApplyFetch_FullMethodName     = "/relation.Friend/ApplyFetch"
	Friend_ApplyGet_FullMethodName       = "/relation.Friend/ApplyGet"
	Friend_ApplyDo_FullMethodName        = "/relation.Friend/ApplyDo"
	Friend_ApplyDoMessage_FullMethodName = "/relation.Friend/ApplyDoMessage"
	Friend_ApplyDoPass_FullMethodName    = "/relation.Friend/ApplyDoPass"
	Friend_ApplyDoReject_FullMethodName  = "/relation.Friend/ApplyDoReject"
	Friend_TagFetch_FullMethodName       = "/relation.Friend/TagFetch"
	Friend_TagMemberFetch_FullMethodName = "/relation.Friend/TagMemberFetch"
	Friend_TagDoCreate_FullMethodName    = "/relation.Friend/TagDoCreate"
	Friend_TagDoUpdate_FullMethodName    = "/relation.Friend/TagDoUpdate"
)

// FriendClient is the client API for Friend 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.
//
// relation-关系管理:好友
type FriendClient interface {
	// 搜索
	Search(ctx context.Context, in *protobuf.SearchRequest, opts ...grpc.CallOption) (*PartFriendReply, error)
	// 获取好友列表
	Fetch(ctx context.Context, in *protobuf.VersionRequest, opts ...grpc.CallOption) (*FriendsReply, error)
	// 获取用户信息卡片
	Get(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.RelationItem, error)
	// 修改好友备注名称,如果要清除备注,直接nickname传空值
	ModifyNickname(ctx context.Context, in *ModifyNicknameRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error)
	// 受你欢迎的,置顶
	DoPopular(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error)
	// 取消受欢迎的，取消置顶
	UndoPopular(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error)
	// 删除好友
	Delete(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error)
	// 好友申请列表
	ApplyFetch(ctx context.Context, in *protobuf.VersionRequest, opts ...grpc.CallOption) (*ApplyFetchReply, error)
	// 好友申请详情
	ApplyGet(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*FriendApplyGetReply, error)
	// 好友申请
	ApplyDo(ctx context.Context, in *ApplyDoRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error)
	// 好友申请Do:留言
	ApplyDoMessage(ctx context.Context, in *ApplyMessageRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error)
	// 好友申请Do:确认
	ApplyDoPass(ctx context.Context, in *ApplyDoPassRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error)
	// 好友申请Do:拒绝
	ApplyDoReject(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error)
	// 获取标签列表
	TagFetch(ctx context.Context, in *protobuf.Empty, opts ...grpc.CallOption) (*FriendTagsReply, error)
	// 获取标签成员
	TagMemberFetch(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*PartFriendReply, error)
	// 创建标签
	TagDoCreate(ctx context.Context, in *TagDoCreateRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error)
	// 更新标签成员
	TagDoUpdate(ctx context.Context, in *TagDoUpdateRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error)
}

type friendClient struct {
	cc grpc.ClientConnInterface
}

func NewFriendClient(cc grpc.ClientConnInterface) FriendClient {
	return &friendClient{cc}
}

func (c *friendClient) Search(ctx context.Context, in *protobuf.SearchRequest, opts ...grpc.CallOption) (*PartFriendReply, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(PartFriendReply)
	err := c.cc.Invoke(ctx, Friend_Search_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *friendClient) Fetch(ctx context.Context, in *protobuf.VersionRequest, opts ...grpc.CallOption) (*FriendsReply, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(FriendsReply)
	err := c.cc.Invoke(ctx, Friend_Fetch_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *friendClient) Get(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.RelationItem, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(protobuf.RelationItem)
	err := c.cc.Invoke(ctx, Friend_Get_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *friendClient) ModifyNickname(ctx context.Context, in *ModifyNicknameRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(protobuf.DataStatusReply)
	err := c.cc.Invoke(ctx, Friend_ModifyNickname_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *friendClient) DoPopular(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(protobuf.DataStatusReply)
	err := c.cc.Invoke(ctx, Friend_DoPopular_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *friendClient) UndoPopular(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(protobuf.DataStatusReply)
	err := c.cc.Invoke(ctx, Friend_UndoPopular_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *friendClient) Delete(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(protobuf.DataStatusReply)
	err := c.cc.Invoke(ctx, Friend_Delete_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *friendClient) ApplyFetch(ctx context.Context, in *protobuf.VersionRequest, opts ...grpc.CallOption) (*ApplyFetchReply, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(ApplyFetchReply)
	err := c.cc.Invoke(ctx, Friend_ApplyFetch_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *friendClient) ApplyGet(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*FriendApplyGetReply, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(FriendApplyGetReply)
	err := c.cc.Invoke(ctx, Friend_ApplyGet_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *friendClient) ApplyDo(ctx context.Context, in *ApplyDoRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(protobuf.DataStatusReply)
	err := c.cc.Invoke(ctx, Friend_ApplyDo_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *friendClient) ApplyDoMessage(ctx context.Context, in *ApplyMessageRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(protobuf.DataStatusReply)
	err := c.cc.Invoke(ctx, Friend_ApplyDoMessage_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *friendClient) ApplyDoPass(ctx context.Context, in *ApplyDoPassRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(protobuf.DataStatusReply)
	err := c.cc.Invoke(ctx, Friend_ApplyDoPass_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *friendClient) ApplyDoReject(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(protobuf.DataStatusReply)
	err := c.cc.Invoke(ctx, Friend_ApplyDoReject_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *friendClient) TagFetch(ctx context.Context, in *protobuf.Empty, opts ...grpc.CallOption) (*FriendTagsReply, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(FriendTagsReply)
	err := c.cc.Invoke(ctx, Friend_TagFetch_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *friendClient) TagMemberFetch(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*PartFriendReply, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(PartFriendReply)
	err := c.cc.Invoke(ctx, Friend_TagMemberFetch_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *friendClient) TagDoCreate(ctx context.Context, in *TagDoCreateRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(protobuf.DataStatusReply)
	err := c.cc.Invoke(ctx, Friend_TagDoCreate_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *friendClient) TagDoUpdate(ctx context.Context, in *TagDoUpdateRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(protobuf.DataStatusReply)
	err := c.cc.Invoke(ctx, Friend_TagDoUpdate_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// FriendServer is the server API for Friend service.
// All implementations should embed UnimplementedFriendServer
// for forward compatibility.
//
// relation-关系管理:好友
type FriendServer interface {
	// 搜索
	Search(context.Context, *protobuf.SearchRequest) (*PartFriendReply, error)
	// 获取好友列表
	Fetch(context.Context, *protobuf.VersionRequest) (*FriendsReply, error)
	// 获取用户信息卡片
	Get(context.Context, *protobuf.IdentRequest) (*protobuf.RelationItem, error)
	// 修改好友备注名称,如果要清除备注,直接nickname传空值
	ModifyNickname(context.Context, *ModifyNicknameRequest) (*protobuf.DataStatusReply, error)
	// 受你欢迎的,置顶
	DoPopular(context.Context, *protobuf.IdentRequest) (*protobuf.DataStatusReply, error)
	// 取消受欢迎的，取消置顶
	UndoPopular(context.Context, *protobuf.IdentRequest) (*protobuf.DataStatusReply, error)
	// 删除好友
	Delete(context.Context, *protobuf.IdentRequest) (*protobuf.DataStatusReply, error)
	// 好友申请列表
	ApplyFetch(context.Context, *protobuf.VersionRequest) (*ApplyFetchReply, error)
	// 好友申请详情
	ApplyGet(context.Context, *protobuf.IdentRequest) (*FriendApplyGetReply, error)
	// 好友申请
	ApplyDo(context.Context, *ApplyDoRequest) (*protobuf.DataStatusReply, error)
	// 好友申请Do:留言
	ApplyDoMessage(context.Context, *ApplyMessageRequest) (*protobuf.DataStatusReply, error)
	// 好友申请Do:确认
	ApplyDoPass(context.Context, *ApplyDoPassRequest) (*protobuf.DataStatusReply, error)
	// 好友申请Do:拒绝
	ApplyDoReject(context.Context, *protobuf.IdentRequest) (*protobuf.DataStatusReply, error)
	// 获取标签列表
	TagFetch(context.Context, *protobuf.Empty) (*FriendTagsReply, error)
	// 获取标签成员
	TagMemberFetch(context.Context, *protobuf.IdentRequest) (*PartFriendReply, error)
	// 创建标签
	TagDoCreate(context.Context, *TagDoCreateRequest) (*protobuf.DataStatusReply, error)
	// 更新标签成员
	TagDoUpdate(context.Context, *TagDoUpdateRequest) (*protobuf.DataStatusReply, error)
}

// UnimplementedFriendServer should 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 UnimplementedFriendServer struct{}

func (UnimplementedFriendServer) Search(context.Context, *protobuf.SearchRequest) (*PartFriendReply, error) {
	return nil, status.Error(codes.Unimplemented, "method Search not implemented")
}
func (UnimplementedFriendServer) Fetch(context.Context, *protobuf.VersionRequest) (*FriendsReply, error) {
	return nil, status.Error(codes.Unimplemented, "method Fetch not implemented")
}
func (UnimplementedFriendServer) Get(context.Context, *protobuf.IdentRequest) (*protobuf.RelationItem, error) {
	return nil, status.Error(codes.Unimplemented, "method Get not implemented")
}
func (UnimplementedFriendServer) ModifyNickname(context.Context, *ModifyNicknameRequest) (*protobuf.DataStatusReply, error) {
	return nil, status.Error(codes.Unimplemented, "method ModifyNickname not implemented")
}
func (UnimplementedFriendServer) DoPopular(context.Context, *protobuf.IdentRequest) (*protobuf.DataStatusReply, error) {
	return nil, status.Error(codes.Unimplemented, "method DoPopular not implemented")
}
func (UnimplementedFriendServer) UndoPopular(context.Context, *protobuf.IdentRequest) (*protobuf.DataStatusReply, error) {
	return nil, status.Error(codes.Unimplemented, "method UndoPopular not implemented")
}
func (UnimplementedFriendServer) Delete(context.Context, *protobuf.IdentRequest) (*protobuf.DataStatusReply, error) {
	return nil, status.Error(codes.Unimplemented, "method Delete not implemented")
}
func (UnimplementedFriendServer) ApplyFetch(context.Context, *protobuf.VersionRequest) (*ApplyFetchReply, error) {
	return nil, status.Error(codes.Unimplemented, "method ApplyFetch not implemented")
}
func (UnimplementedFriendServer) ApplyGet(context.Context, *protobuf.IdentRequest) (*FriendApplyGetReply, error) {
	return nil, status.Error(codes.Unimplemented, "method ApplyGet not implemented")
}
func (UnimplementedFriendServer) ApplyDo(context.Context, *ApplyDoRequest) (*protobuf.DataStatusReply, error) {
	return nil, status.Error(codes.Unimplemented, "method ApplyDo not implemented")
}
func (UnimplementedFriendServer) ApplyDoMessage(context.Context, *ApplyMessageRequest) (*protobuf.DataStatusReply, error) {
	return nil, status.Error(codes.Unimplemented, "method ApplyDoMessage not implemented")
}
func (UnimplementedFriendServer) ApplyDoPass(context.Context, *ApplyDoPassRequest) (*protobuf.DataStatusReply, error) {
	return nil, status.Error(codes.Unimplemented, "method ApplyDoPass not implemented")
}
func (UnimplementedFriendServer) ApplyDoReject(context.Context, *protobuf.IdentRequest) (*protobuf.DataStatusReply, error) {
	return nil, status.Error(codes.Unimplemented, "method ApplyDoReject not implemented")
}
func (UnimplementedFriendServer) TagFetch(context.Context, *protobuf.Empty) (*FriendTagsReply, error) {
	return nil, status.Error(codes.Unimplemented, "method TagFetch not implemented")
}
func (UnimplementedFriendServer) TagMemberFetch(context.Context, *protobuf.IdentRequest) (*PartFriendReply, error) {
	return nil, status.Error(codes.Unimplemented, "method TagMemberFetch not implemented")
}
func (UnimplementedFriendServer) TagDoCreate(context.Context, *TagDoCreateRequest) (*protobuf.DataStatusReply, error) {
	return nil, status.Error(codes.Unimplemented, "method TagDoCreate not implemented")
}
func (UnimplementedFriendServer) TagDoUpdate(context.Context, *TagDoUpdateRequest) (*protobuf.DataStatusReply, error) {
	return nil, status.Error(codes.Unimplemented, "method TagDoUpdate not implemented")
}
func (UnimplementedFriendServer) testEmbeddedByValue() {}

// UnsafeFriendServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to FriendServer will
// result in compilation errors.
type UnsafeFriendServer interface {
	mustEmbedUnimplementedFriendServer()
}

func RegisterFriendServer(s grpc.ServiceRegistrar, srv FriendServer) {
	// If the following call panics, it indicates UnimplementedFriendServer 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(&Friend_ServiceDesc, srv)
}

func _Friend_Search_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(protobuf.SearchRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(FriendServer).Search(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Friend_Search_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(FriendServer).Search(ctx, req.(*protobuf.SearchRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Friend_Fetch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(protobuf.VersionRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(FriendServer).Fetch(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Friend_Fetch_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(FriendServer).Fetch(ctx, req.(*protobuf.VersionRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Friend_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(protobuf.IdentRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(FriendServer).Get(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Friend_Get_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(FriendServer).Get(ctx, req.(*protobuf.IdentRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Friend_ModifyNickname_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ModifyNicknameRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(FriendServer).ModifyNickname(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Friend_ModifyNickname_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(FriendServer).ModifyNickname(ctx, req.(*ModifyNicknameRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Friend_DoPopular_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(protobuf.IdentRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(FriendServer).DoPopular(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Friend_DoPopular_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(FriendServer).DoPopular(ctx, req.(*protobuf.IdentRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Friend_UndoPopular_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(protobuf.IdentRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(FriendServer).UndoPopular(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Friend_UndoPopular_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(FriendServer).UndoPopular(ctx, req.(*protobuf.IdentRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Friend_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(protobuf.IdentRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(FriendServer).Delete(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Friend_Delete_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(FriendServer).Delete(ctx, req.(*protobuf.IdentRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Friend_ApplyFetch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(protobuf.VersionRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(FriendServer).ApplyFetch(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Friend_ApplyFetch_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(FriendServer).ApplyFetch(ctx, req.(*protobuf.VersionRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Friend_ApplyGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(protobuf.IdentRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(FriendServer).ApplyGet(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Friend_ApplyGet_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(FriendServer).ApplyGet(ctx, req.(*protobuf.IdentRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Friend_ApplyDo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ApplyDoRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(FriendServer).ApplyDo(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Friend_ApplyDo_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(FriendServer).ApplyDo(ctx, req.(*ApplyDoRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Friend_ApplyDoMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ApplyMessageRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(FriendServer).ApplyDoMessage(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Friend_ApplyDoMessage_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(FriendServer).ApplyDoMessage(ctx, req.(*ApplyMessageRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Friend_ApplyDoPass_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ApplyDoPassRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(FriendServer).ApplyDoPass(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Friend_ApplyDoPass_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(FriendServer).ApplyDoPass(ctx, req.(*ApplyDoPassRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Friend_ApplyDoReject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(protobuf.IdentRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(FriendServer).ApplyDoReject(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Friend_ApplyDoReject_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(FriendServer).ApplyDoReject(ctx, req.(*protobuf.IdentRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Friend_TagFetch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(protobuf.Empty)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(FriendServer).TagFetch(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Friend_TagFetch_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(FriendServer).TagFetch(ctx, req.(*protobuf.Empty))
	}
	return interceptor(ctx, in, info, handler)
}

func _Friend_TagMemberFetch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(protobuf.IdentRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(FriendServer).TagMemberFetch(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Friend_TagMemberFetch_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(FriendServer).TagMemberFetch(ctx, req.(*protobuf.IdentRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Friend_TagDoCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(TagDoCreateRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(FriendServer).TagDoCreate(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Friend_TagDoCreate_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(FriendServer).TagDoCreate(ctx, req.(*TagDoCreateRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Friend_TagDoUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(TagDoUpdateRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(FriendServer).TagDoUpdate(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: Friend_TagDoUpdate_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(FriendServer).TagDoUpdate(ctx, req.(*TagDoUpdateRequest))
	}
	return interceptor(ctx, in, info, handler)
}

// Friend_ServiceDesc is the grpc.ServiceDesc for Friend service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Friend_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "relation.Friend",
	HandlerType: (*FriendServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Search",
			Handler:    _Friend_Search_Handler,
		},
		{
			MethodName: "Fetch",
			Handler:    _Friend_Fetch_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _Friend_Get_Handler,
		},
		{
			MethodName: "ModifyNickname",
			Handler:    _Friend_ModifyNickname_Handler,
		},
		{
			MethodName: "DoPopular",
			Handler:    _Friend_DoPopular_Handler,
		},
		{
			MethodName: "UndoPopular",
			Handler:    _Friend_UndoPopular_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _Friend_Delete_Handler,
		},
		{
			MethodName: "ApplyFetch",
			Handler:    _Friend_ApplyFetch_Handler,
		},
		{
			MethodName: "ApplyGet",
			Handler:    _Friend_ApplyGet_Handler,
		},
		{
			MethodName: "ApplyDo",
			Handler:    _Friend_ApplyDo_Handler,
		},
		{
			MethodName: "ApplyDoMessage",
			Handler:    _Friend_ApplyDoMessage_Handler,
		},
		{
			MethodName: "ApplyDoPass",
			Handler:    _Friend_ApplyDoPass_Handler,
		},
		{
			MethodName: "ApplyDoReject",
			Handler:    _Friend_ApplyDoReject_Handler,
		},
		{
			MethodName: "TagFetch",
			Handler:    _Friend_TagFetch_Handler,
		},
		{
			MethodName: "TagMemberFetch",
			Handler:    _Friend_TagMemberFetch_Handler,
		},
		{
			MethodName: "TagDoCreate",
			Handler:    _Friend_TagDoCreate_Handler,
		},
		{
			MethodName: "TagDoUpdate",
			Handler:    _Friend_TagDoUpdate_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "module/social/relation/proto/friend.proto",
}
