// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.6.1
// - protoc             v7.34.1
// source: dispute.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 (
	DisputeService_AddDisputes_FullMethodName           = "/pb.disputeService/AddDisputes"
	DisputeService_UpdateDisputes_FullMethodName        = "/pb.disputeService/UpdateDisputes"
	DisputeService_DelDisputes_FullMethodName           = "/pb.disputeService/DelDisputes"
	DisputeService_GetDisputesById_FullMethodName       = "/pb.disputeService/GetDisputesById"
	DisputeService_SearchDisputes_FullMethodName        = "/pb.disputeService/SearchDisputes"
	DisputeService_AddDisputeTimeline_FullMethodName    = "/pb.disputeService/AddDisputeTimeline"
	DisputeService_SearchDisputeTimeline_FullMethodName = "/pb.disputeService/SearchDisputeTimeline"
)

// DisputeServiceClient is the client API for DisputeService 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 DisputeServiceClient interface {
	// -----------------------disputes-----------------------
	AddDisputes(ctx context.Context, in *AddDisputesReq, opts ...grpc.CallOption) (*AddDisputesResp, error)
	UpdateDisputes(ctx context.Context, in *UpdateDisputesReq, opts ...grpc.CallOption) (*UpdateDisputesResp, error)
	DelDisputes(ctx context.Context, in *DelDisputesReq, opts ...grpc.CallOption) (*DelDisputesResp, error)
	GetDisputesById(ctx context.Context, in *GetDisputesByIdReq, opts ...grpc.CallOption) (*GetDisputesByIdResp, error)
	SearchDisputes(ctx context.Context, in *SearchDisputesReq, opts ...grpc.CallOption) (*SearchDisputesResp, error)
	// -----------------------disputeTimeline-----------------------
	AddDisputeTimeline(ctx context.Context, in *AddDisputeTimelineReq, opts ...grpc.CallOption) (*AddDisputeTimelineResp, error)
	SearchDisputeTimeline(ctx context.Context, in *SearchDisputeTimelineReq, opts ...grpc.CallOption) (*SearchDisputeTimelineResp, error)
}

type disputeServiceClient struct {
	cc grpc.ClientConnInterface
}

func NewDisputeServiceClient(cc grpc.ClientConnInterface) DisputeServiceClient {
	return &disputeServiceClient{cc}
}

func (c *disputeServiceClient) AddDisputes(ctx context.Context, in *AddDisputesReq, opts ...grpc.CallOption) (*AddDisputesResp, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(AddDisputesResp)
	err := c.cc.Invoke(ctx, DisputeService_AddDisputes_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *disputeServiceClient) UpdateDisputes(ctx context.Context, in *UpdateDisputesReq, opts ...grpc.CallOption) (*UpdateDisputesResp, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(UpdateDisputesResp)
	err := c.cc.Invoke(ctx, DisputeService_UpdateDisputes_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *disputeServiceClient) DelDisputes(ctx context.Context, in *DelDisputesReq, opts ...grpc.CallOption) (*DelDisputesResp, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(DelDisputesResp)
	err := c.cc.Invoke(ctx, DisputeService_DelDisputes_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *disputeServiceClient) GetDisputesById(ctx context.Context, in *GetDisputesByIdReq, opts ...grpc.CallOption) (*GetDisputesByIdResp, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(GetDisputesByIdResp)
	err := c.cc.Invoke(ctx, DisputeService_GetDisputesById_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *disputeServiceClient) SearchDisputes(ctx context.Context, in *SearchDisputesReq, opts ...grpc.CallOption) (*SearchDisputesResp, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(SearchDisputesResp)
	err := c.cc.Invoke(ctx, DisputeService_SearchDisputes_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *disputeServiceClient) AddDisputeTimeline(ctx context.Context, in *AddDisputeTimelineReq, opts ...grpc.CallOption) (*AddDisputeTimelineResp, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(AddDisputeTimelineResp)
	err := c.cc.Invoke(ctx, DisputeService_AddDisputeTimeline_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *disputeServiceClient) SearchDisputeTimeline(ctx context.Context, in *SearchDisputeTimelineReq, opts ...grpc.CallOption) (*SearchDisputeTimelineResp, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(SearchDisputeTimelineResp)
	err := c.cc.Invoke(ctx, DisputeService_SearchDisputeTimeline_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// DisputeServiceServer is the server API for DisputeService service.
// All implementations must embed UnimplementedDisputeServiceServer
// for forward compatibility.
type DisputeServiceServer interface {
	// -----------------------disputes-----------------------
	AddDisputes(context.Context, *AddDisputesReq) (*AddDisputesResp, error)
	UpdateDisputes(context.Context, *UpdateDisputesReq) (*UpdateDisputesResp, error)
	DelDisputes(context.Context, *DelDisputesReq) (*DelDisputesResp, error)
	GetDisputesById(context.Context, *GetDisputesByIdReq) (*GetDisputesByIdResp, error)
	SearchDisputes(context.Context, *SearchDisputesReq) (*SearchDisputesResp, error)
	// -----------------------disputeTimeline-----------------------
	AddDisputeTimeline(context.Context, *AddDisputeTimelineReq) (*AddDisputeTimelineResp, error)
	SearchDisputeTimeline(context.Context, *SearchDisputeTimelineReq) (*SearchDisputeTimelineResp, error)
	mustEmbedUnimplementedDisputeServiceServer()
}

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

func (UnimplementedDisputeServiceServer) AddDisputes(context.Context, *AddDisputesReq) (*AddDisputesResp, error) {
	return nil, status.Error(codes.Unimplemented, "method AddDisputes not implemented")
}
func (UnimplementedDisputeServiceServer) UpdateDisputes(context.Context, *UpdateDisputesReq) (*UpdateDisputesResp, error) {
	return nil, status.Error(codes.Unimplemented, "method UpdateDisputes not implemented")
}
func (UnimplementedDisputeServiceServer) DelDisputes(context.Context, *DelDisputesReq) (*DelDisputesResp, error) {
	return nil, status.Error(codes.Unimplemented, "method DelDisputes not implemented")
}
func (UnimplementedDisputeServiceServer) GetDisputesById(context.Context, *GetDisputesByIdReq) (*GetDisputesByIdResp, error) {
	return nil, status.Error(codes.Unimplemented, "method GetDisputesById not implemented")
}
func (UnimplementedDisputeServiceServer) SearchDisputes(context.Context, *SearchDisputesReq) (*SearchDisputesResp, error) {
	return nil, status.Error(codes.Unimplemented, "method SearchDisputes not implemented")
}
func (UnimplementedDisputeServiceServer) AddDisputeTimeline(context.Context, *AddDisputeTimelineReq) (*AddDisputeTimelineResp, error) {
	return nil, status.Error(codes.Unimplemented, "method AddDisputeTimeline not implemented")
}
func (UnimplementedDisputeServiceServer) SearchDisputeTimeline(context.Context, *SearchDisputeTimelineReq) (*SearchDisputeTimelineResp, error) {
	return nil, status.Error(codes.Unimplemented, "method SearchDisputeTimeline not implemented")
}
func (UnimplementedDisputeServiceServer) mustEmbedUnimplementedDisputeServiceServer() {}
func (UnimplementedDisputeServiceServer) testEmbeddedByValue()                        {}

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

func RegisterDisputeServiceServer(s grpc.ServiceRegistrar, srv DisputeServiceServer) {
	// If the following call panics, it indicates UnimplementedDisputeServiceServer 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(&DisputeService_ServiceDesc, srv)
}

func _DisputeService_AddDisputes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(AddDisputesReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(DisputeServiceServer).AddDisputes(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: DisputeService_AddDisputes_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(DisputeServiceServer).AddDisputes(ctx, req.(*AddDisputesReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _DisputeService_UpdateDisputes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(UpdateDisputesReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(DisputeServiceServer).UpdateDisputes(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: DisputeService_UpdateDisputes_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(DisputeServiceServer).UpdateDisputes(ctx, req.(*UpdateDisputesReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _DisputeService_DelDisputes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DelDisputesReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(DisputeServiceServer).DelDisputes(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: DisputeService_DelDisputes_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(DisputeServiceServer).DelDisputes(ctx, req.(*DelDisputesReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _DisputeService_GetDisputesById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetDisputesByIdReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(DisputeServiceServer).GetDisputesById(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: DisputeService_GetDisputesById_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(DisputeServiceServer).GetDisputesById(ctx, req.(*GetDisputesByIdReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _DisputeService_SearchDisputes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(SearchDisputesReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(DisputeServiceServer).SearchDisputes(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: DisputeService_SearchDisputes_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(DisputeServiceServer).SearchDisputes(ctx, req.(*SearchDisputesReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _DisputeService_AddDisputeTimeline_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(AddDisputeTimelineReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(DisputeServiceServer).AddDisputeTimeline(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: DisputeService_AddDisputeTimeline_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(DisputeServiceServer).AddDisputeTimeline(ctx, req.(*AddDisputeTimelineReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _DisputeService_SearchDisputeTimeline_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(SearchDisputeTimelineReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(DisputeServiceServer).SearchDisputeTimeline(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: DisputeService_SearchDisputeTimeline_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(DisputeServiceServer).SearchDisputeTimeline(ctx, req.(*SearchDisputeTimelineReq))
	}
	return interceptor(ctx, in, info, handler)
}

// DisputeService_ServiceDesc is the grpc.ServiceDesc for DisputeService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var DisputeService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.disputeService",
	HandlerType: (*DisputeServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddDisputes",
			Handler:    _DisputeService_AddDisputes_Handler,
		},
		{
			MethodName: "UpdateDisputes",
			Handler:    _DisputeService_UpdateDisputes_Handler,
		},
		{
			MethodName: "DelDisputes",
			Handler:    _DisputeService_DelDisputes_Handler,
		},
		{
			MethodName: "GetDisputesById",
			Handler:    _DisputeService_GetDisputesById_Handler,
		},
		{
			MethodName: "SearchDisputes",
			Handler:    _DisputeService_SearchDisputes_Handler,
		},
		{
			MethodName: "AddDisputeTimeline",
			Handler:    _DisputeService_AddDisputeTimeline_Handler,
		},
		{
			MethodName: "SearchDisputeTimeline",
			Handler:    _DisputeService_SearchDisputeTimeline_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "dispute.proto",
}
