// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.6.1
// - protoc             v6.33.5
// source: order.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 (
	OrderService_AddOrders_FullMethodName             = "/pb.orderService/AddOrders"
	OrderService_UpdateOrders_FullMethodName          = "/pb.orderService/UpdateOrders"
	OrderService_DelOrders_FullMethodName             = "/pb.orderService/DelOrders"
	OrderService_GetOrdersById_FullMethodName         = "/pb.orderService/GetOrdersById"
	OrderService_SearchOrders_FullMethodName          = "/pb.orderService/SearchOrders"
	OrderService_AddOrderStateLogs_FullMethodName     = "/pb.orderService/AddOrderStateLogs"
	OrderService_UpdateOrderStateLogs_FullMethodName  = "/pb.orderService/UpdateOrderStateLogs"
	OrderService_DelOrderStateLogs_FullMethodName     = "/pb.orderService/DelOrderStateLogs"
	OrderService_GetOrderStateLogsById_FullMethodName = "/pb.orderService/GetOrderStateLogsById"
	OrderService_SearchOrderStateLogs_FullMethodName  = "/pb.orderService/SearchOrderStateLogs"
)

// OrderServiceClient is the client API for OrderService 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 OrderServiceClient interface {
	// -----------------------orders-----------------------
	AddOrders(ctx context.Context, in *AddOrdersReq, opts ...grpc.CallOption) (*AddOrdersResp, error)
	UpdateOrders(ctx context.Context, in *UpdateOrdersReq, opts ...grpc.CallOption) (*UpdateOrdersResp, error)
	DelOrders(ctx context.Context, in *DelOrdersReq, opts ...grpc.CallOption) (*DelOrdersResp, error)
	GetOrdersById(ctx context.Context, in *GetOrdersByIdReq, opts ...grpc.CallOption) (*GetOrdersByIdResp, error)
	SearchOrders(ctx context.Context, in *SearchOrdersReq, opts ...grpc.CallOption) (*SearchOrdersResp, error)
	// -----------------------orderStateLogs-----------------------
	AddOrderStateLogs(ctx context.Context, in *AddOrderStateLogsReq, opts ...grpc.CallOption) (*AddOrderStateLogsResp, error)
	UpdateOrderStateLogs(ctx context.Context, in *UpdateOrderStateLogsReq, opts ...grpc.CallOption) (*UpdateOrderStateLogsResp, error)
	DelOrderStateLogs(ctx context.Context, in *DelOrderStateLogsReq, opts ...grpc.CallOption) (*DelOrderStateLogsResp, error)
	GetOrderStateLogsById(ctx context.Context, in *GetOrderStateLogsByIdReq, opts ...grpc.CallOption) (*GetOrderStateLogsByIdResp, error)
	SearchOrderStateLogs(ctx context.Context, in *SearchOrderStateLogsReq, opts ...grpc.CallOption) (*SearchOrderStateLogsResp, error)
}

type orderServiceClient struct {
	cc grpc.ClientConnInterface
}

func NewOrderServiceClient(cc grpc.ClientConnInterface) OrderServiceClient {
	return &orderServiceClient{cc}
}

func (c *orderServiceClient) AddOrders(ctx context.Context, in *AddOrdersReq, opts ...grpc.CallOption) (*AddOrdersResp, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(AddOrdersResp)
	err := c.cc.Invoke(ctx, OrderService_AddOrders_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *orderServiceClient) UpdateOrders(ctx context.Context, in *UpdateOrdersReq, opts ...grpc.CallOption) (*UpdateOrdersResp, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(UpdateOrdersResp)
	err := c.cc.Invoke(ctx, OrderService_UpdateOrders_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *orderServiceClient) DelOrders(ctx context.Context, in *DelOrdersReq, opts ...grpc.CallOption) (*DelOrdersResp, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(DelOrdersResp)
	err := c.cc.Invoke(ctx, OrderService_DelOrders_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *orderServiceClient) GetOrdersById(ctx context.Context, in *GetOrdersByIdReq, opts ...grpc.CallOption) (*GetOrdersByIdResp, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(GetOrdersByIdResp)
	err := c.cc.Invoke(ctx, OrderService_GetOrdersById_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *orderServiceClient) SearchOrders(ctx context.Context, in *SearchOrdersReq, opts ...grpc.CallOption) (*SearchOrdersResp, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(SearchOrdersResp)
	err := c.cc.Invoke(ctx, OrderService_SearchOrders_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *orderServiceClient) AddOrderStateLogs(ctx context.Context, in *AddOrderStateLogsReq, opts ...grpc.CallOption) (*AddOrderStateLogsResp, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(AddOrderStateLogsResp)
	err := c.cc.Invoke(ctx, OrderService_AddOrderStateLogs_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *orderServiceClient) UpdateOrderStateLogs(ctx context.Context, in *UpdateOrderStateLogsReq, opts ...grpc.CallOption) (*UpdateOrderStateLogsResp, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(UpdateOrderStateLogsResp)
	err := c.cc.Invoke(ctx, OrderService_UpdateOrderStateLogs_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *orderServiceClient) DelOrderStateLogs(ctx context.Context, in *DelOrderStateLogsReq, opts ...grpc.CallOption) (*DelOrderStateLogsResp, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(DelOrderStateLogsResp)
	err := c.cc.Invoke(ctx, OrderService_DelOrderStateLogs_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *orderServiceClient) GetOrderStateLogsById(ctx context.Context, in *GetOrderStateLogsByIdReq, opts ...grpc.CallOption) (*GetOrderStateLogsByIdResp, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(GetOrderStateLogsByIdResp)
	err := c.cc.Invoke(ctx, OrderService_GetOrderStateLogsById_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *orderServiceClient) SearchOrderStateLogs(ctx context.Context, in *SearchOrderStateLogsReq, opts ...grpc.CallOption) (*SearchOrderStateLogsResp, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(SearchOrderStateLogsResp)
	err := c.cc.Invoke(ctx, OrderService_SearchOrderStateLogs_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// OrderServiceServer is the server API for OrderService service.
// All implementations must embed UnimplementedOrderServiceServer
// for forward compatibility.
type OrderServiceServer interface {
	// -----------------------orders-----------------------
	AddOrders(context.Context, *AddOrdersReq) (*AddOrdersResp, error)
	UpdateOrders(context.Context, *UpdateOrdersReq) (*UpdateOrdersResp, error)
	DelOrders(context.Context, *DelOrdersReq) (*DelOrdersResp, error)
	GetOrdersById(context.Context, *GetOrdersByIdReq) (*GetOrdersByIdResp, error)
	SearchOrders(context.Context, *SearchOrdersReq) (*SearchOrdersResp, error)
	// -----------------------orderStateLogs-----------------------
	AddOrderStateLogs(context.Context, *AddOrderStateLogsReq) (*AddOrderStateLogsResp, error)
	UpdateOrderStateLogs(context.Context, *UpdateOrderStateLogsReq) (*UpdateOrderStateLogsResp, error)
	DelOrderStateLogs(context.Context, *DelOrderStateLogsReq) (*DelOrderStateLogsResp, error)
	GetOrderStateLogsById(context.Context, *GetOrderStateLogsByIdReq) (*GetOrderStateLogsByIdResp, error)
	SearchOrderStateLogs(context.Context, *SearchOrderStateLogsReq) (*SearchOrderStateLogsResp, error)
	mustEmbedUnimplementedOrderServiceServer()
}

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

func (UnimplementedOrderServiceServer) AddOrders(context.Context, *AddOrdersReq) (*AddOrdersResp, error) {
	return nil, status.Error(codes.Unimplemented, "method AddOrders not implemented")
}
func (UnimplementedOrderServiceServer) UpdateOrders(context.Context, *UpdateOrdersReq) (*UpdateOrdersResp, error) {
	return nil, status.Error(codes.Unimplemented, "method UpdateOrders not implemented")
}
func (UnimplementedOrderServiceServer) DelOrders(context.Context, *DelOrdersReq) (*DelOrdersResp, error) {
	return nil, status.Error(codes.Unimplemented, "method DelOrders not implemented")
}
func (UnimplementedOrderServiceServer) GetOrdersById(context.Context, *GetOrdersByIdReq) (*GetOrdersByIdResp, error) {
	return nil, status.Error(codes.Unimplemented, "method GetOrdersById not implemented")
}
func (UnimplementedOrderServiceServer) SearchOrders(context.Context, *SearchOrdersReq) (*SearchOrdersResp, error) {
	return nil, status.Error(codes.Unimplemented, "method SearchOrders not implemented")
}
func (UnimplementedOrderServiceServer) AddOrderStateLogs(context.Context, *AddOrderStateLogsReq) (*AddOrderStateLogsResp, error) {
	return nil, status.Error(codes.Unimplemented, "method AddOrderStateLogs not implemented")
}
func (UnimplementedOrderServiceServer) UpdateOrderStateLogs(context.Context, *UpdateOrderStateLogsReq) (*UpdateOrderStateLogsResp, error) {
	return nil, status.Error(codes.Unimplemented, "method UpdateOrderStateLogs not implemented")
}
func (UnimplementedOrderServiceServer) DelOrderStateLogs(context.Context, *DelOrderStateLogsReq) (*DelOrderStateLogsResp, error) {
	return nil, status.Error(codes.Unimplemented, "method DelOrderStateLogs not implemented")
}
func (UnimplementedOrderServiceServer) GetOrderStateLogsById(context.Context, *GetOrderStateLogsByIdReq) (*GetOrderStateLogsByIdResp, error) {
	return nil, status.Error(codes.Unimplemented, "method GetOrderStateLogsById not implemented")
}
func (UnimplementedOrderServiceServer) SearchOrderStateLogs(context.Context, *SearchOrderStateLogsReq) (*SearchOrderStateLogsResp, error) {
	return nil, status.Error(codes.Unimplemented, "method SearchOrderStateLogs not implemented")
}
func (UnimplementedOrderServiceServer) mustEmbedUnimplementedOrderServiceServer() {}
func (UnimplementedOrderServiceServer) testEmbeddedByValue()                      {}

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

func RegisterOrderServiceServer(s grpc.ServiceRegistrar, srv OrderServiceServer) {
	// If the following call panics, it indicates UnimplementedOrderServiceServer 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(&OrderService_ServiceDesc, srv)
}

func _OrderService_AddOrders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(AddOrdersReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(OrderServiceServer).AddOrders(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: OrderService_AddOrders_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(OrderServiceServer).AddOrders(ctx, req.(*AddOrdersReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _OrderService_UpdateOrders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(UpdateOrdersReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(OrderServiceServer).UpdateOrders(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: OrderService_UpdateOrders_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(OrderServiceServer).UpdateOrders(ctx, req.(*UpdateOrdersReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _OrderService_DelOrders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DelOrdersReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(OrderServiceServer).DelOrders(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: OrderService_DelOrders_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(OrderServiceServer).DelOrders(ctx, req.(*DelOrdersReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _OrderService_GetOrdersById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetOrdersByIdReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(OrderServiceServer).GetOrdersById(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: OrderService_GetOrdersById_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(OrderServiceServer).GetOrdersById(ctx, req.(*GetOrdersByIdReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _OrderService_SearchOrders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(SearchOrdersReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(OrderServiceServer).SearchOrders(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: OrderService_SearchOrders_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(OrderServiceServer).SearchOrders(ctx, req.(*SearchOrdersReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _OrderService_AddOrderStateLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(AddOrderStateLogsReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(OrderServiceServer).AddOrderStateLogs(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: OrderService_AddOrderStateLogs_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(OrderServiceServer).AddOrderStateLogs(ctx, req.(*AddOrderStateLogsReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _OrderService_UpdateOrderStateLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(UpdateOrderStateLogsReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(OrderServiceServer).UpdateOrderStateLogs(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: OrderService_UpdateOrderStateLogs_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(OrderServiceServer).UpdateOrderStateLogs(ctx, req.(*UpdateOrderStateLogsReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _OrderService_DelOrderStateLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DelOrderStateLogsReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(OrderServiceServer).DelOrderStateLogs(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: OrderService_DelOrderStateLogs_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(OrderServiceServer).DelOrderStateLogs(ctx, req.(*DelOrderStateLogsReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _OrderService_GetOrderStateLogsById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetOrderStateLogsByIdReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(OrderServiceServer).GetOrderStateLogsById(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: OrderService_GetOrderStateLogsById_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(OrderServiceServer).GetOrderStateLogsById(ctx, req.(*GetOrderStateLogsByIdReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _OrderService_SearchOrderStateLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(SearchOrderStateLogsReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(OrderServiceServer).SearchOrderStateLogs(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: OrderService_SearchOrderStateLogs_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(OrderServiceServer).SearchOrderStateLogs(ctx, req.(*SearchOrderStateLogsReq))
	}
	return interceptor(ctx, in, info, handler)
}

// OrderService_ServiceDesc is the grpc.ServiceDesc for OrderService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var OrderService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.orderService",
	HandlerType: (*OrderServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddOrders",
			Handler:    _OrderService_AddOrders_Handler,
		},
		{
			MethodName: "UpdateOrders",
			Handler:    _OrderService_UpdateOrders_Handler,
		},
		{
			MethodName: "DelOrders",
			Handler:    _OrderService_DelOrders_Handler,
		},
		{
			MethodName: "GetOrdersById",
			Handler:    _OrderService_GetOrdersById_Handler,
		},
		{
			MethodName: "SearchOrders",
			Handler:    _OrderService_SearchOrders_Handler,
		},
		{
			MethodName: "AddOrderStateLogs",
			Handler:    _OrderService_AddOrderStateLogs_Handler,
		},
		{
			MethodName: "UpdateOrderStateLogs",
			Handler:    _OrderService_UpdateOrderStateLogs_Handler,
		},
		{
			MethodName: "DelOrderStateLogs",
			Handler:    _OrderService_DelOrderStateLogs_Handler,
		},
		{
			MethodName: "GetOrderStateLogsById",
			Handler:    _OrderService_GetOrderStateLogsById_Handler,
		},
		{
			MethodName: "SearchOrderStateLogs",
			Handler:    _OrderService_SearchOrderStateLogs_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "order.proto",
}
