// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc             v3.19.4
// source: bxbuyer.proto

package bxbuyer

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.32.0 or later.
const _ = grpc.SupportPackageIsVersion7

// BxbuyerClient is the client API for Bxbuyer 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 BxbuyerClient interface {
	//采购单位搜索
	BuyerList(ctx context.Context, in *BuyerListReq, opts ...grpc.CallOption) (*BuyerListResp, error)
	// 采购单位搜索补充信息 招标动态数量 、历史联系人数量、项目数量、采购规模
	BuyerSupplyInfo(ctx context.Context, in *BuyerSupplyInfoReq, opts ...grpc.CallOption) (*BuyerSupplyResp, error)
	//采购单位画像 关联信息
	RelatesInfo(ctx context.Context, in *RelatesInformationReq, opts ...grpc.CallOption) (*RelatesInformationResp, error)
}

type bxbuyerClient struct {
	cc grpc.ClientConnInterface
}

func NewBxbuyerClient(cc grpc.ClientConnInterface) BxbuyerClient {
	return &bxbuyerClient{cc}
}

func (c *bxbuyerClient) BuyerList(ctx context.Context, in *BuyerListReq, opts ...grpc.CallOption) (*BuyerListResp, error) {
	out := new(BuyerListResp)
	err := c.cc.Invoke(ctx, "/bxbuyer.Bxbuyer/BuyerList", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *bxbuyerClient) BuyerSupplyInfo(ctx context.Context, in *BuyerSupplyInfoReq, opts ...grpc.CallOption) (*BuyerSupplyResp, error) {
	out := new(BuyerSupplyResp)
	err := c.cc.Invoke(ctx, "/bxbuyer.Bxbuyer/BuyerSupplyInfo", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *bxbuyerClient) RelatesInfo(ctx context.Context, in *RelatesInformationReq, opts ...grpc.CallOption) (*RelatesInformationResp, error) {
	out := new(RelatesInformationResp)
	err := c.cc.Invoke(ctx, "/bxbuyer.Bxbuyer/RelatesInfo", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// BxbuyerServer is the server API for Bxbuyer service.
// All implementations must embed UnimplementedBxbuyerServer
// for forward compatibility
type BxbuyerServer interface {
	//采购单位搜索
	BuyerList(context.Context, *BuyerListReq) (*BuyerListResp, error)
	// 采购单位搜索补充信息 招标动态数量 、历史联系人数量、项目数量、采购规模
	BuyerSupplyInfo(context.Context, *BuyerSupplyInfoReq) (*BuyerSupplyResp, error)
	//采购单位画像 关联信息
	RelatesInfo(context.Context, *RelatesInformationReq) (*RelatesInformationResp, error)
	mustEmbedUnimplementedBxbuyerServer()
}

// UnimplementedBxbuyerServer must be embedded to have forward compatible implementations.
type UnimplementedBxbuyerServer struct {
}

func (UnimplementedBxbuyerServer) BuyerList(context.Context, *BuyerListReq) (*BuyerListResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method BuyerList not implemented")
}
func (UnimplementedBxbuyerServer) BuyerSupplyInfo(context.Context, *BuyerSupplyInfoReq) (*BuyerSupplyResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method BuyerSupplyInfo not implemented")
}
func (UnimplementedBxbuyerServer) RelatesInfo(context.Context, *RelatesInformationReq) (*RelatesInformationResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method RelatesInfo not implemented")
}
func (UnimplementedBxbuyerServer) mustEmbedUnimplementedBxbuyerServer() {}

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

func RegisterBxbuyerServer(s grpc.ServiceRegistrar, srv BxbuyerServer) {
	s.RegisterService(&Bxbuyer_ServiceDesc, srv)
}

func _Bxbuyer_BuyerList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(BuyerListReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(BxbuyerServer).BuyerList(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/bxbuyer.Bxbuyer/BuyerList",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(BxbuyerServer).BuyerList(ctx, req.(*BuyerListReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Bxbuyer_BuyerSupplyInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(BuyerSupplyInfoReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(BxbuyerServer).BuyerSupplyInfo(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/bxbuyer.Bxbuyer/BuyerSupplyInfo",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(BxbuyerServer).BuyerSupplyInfo(ctx, req.(*BuyerSupplyInfoReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _Bxbuyer_RelatesInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(RelatesInformationReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(BxbuyerServer).RelatesInfo(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/bxbuyer.Bxbuyer/RelatesInfo",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(BxbuyerServer).RelatesInfo(ctx, req.(*RelatesInformationReq))
	}
	return interceptor(ctx, in, info, handler)
}

// Bxbuyer_ServiceDesc is the grpc.ServiceDesc for Bxbuyer service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Bxbuyer_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "bxbuyer.Bxbuyer",
	HandlerType: (*BxbuyerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "BuyerList",
			Handler:    _Bxbuyer_BuyerList_Handler,
		},
		{
			MethodName: "BuyerSupplyInfo",
			Handler:    _Bxbuyer_BuyerSupplyInfo_Handler,
		},
		{
			MethodName: "RelatesInfo",
			Handler:    _Bxbuyer_RelatesInfo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "bxbuyer.proto",
}
