// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc             (unknown)
// source: txchecker/v1/service.proto

package txcheckerv1

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

// TxCheckerServiceClient is the client API for TxCheckerService 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 TxCheckerServiceClient interface {
	BatchCheckTx(ctx context.Context, in *BatchCheckTxRequest, opts ...grpc.CallOption) (*BatchCheckTxResponse, error)
}

type txCheckerServiceClient struct {
	cc grpc.ClientConnInterface
}

func NewTxCheckerServiceClient(cc grpc.ClientConnInterface) TxCheckerServiceClient {
	return &txCheckerServiceClient{cc}
}

func (c *txCheckerServiceClient) BatchCheckTx(ctx context.Context, in *BatchCheckTxRequest, opts ...grpc.CallOption) (*BatchCheckTxResponse, error) {
	out := new(BatchCheckTxResponse)
	err := c.cc.Invoke(ctx, "/txchecker.v1.TxCheckerService/BatchCheckTx", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// TxCheckerServiceServer is the server API for TxCheckerService service.
// All implementations must embed UnimplementedTxCheckerServiceServer
// for forward compatibility
type TxCheckerServiceServer interface {
	BatchCheckTx(context.Context, *BatchCheckTxRequest) (*BatchCheckTxResponse, error)
	mustEmbedUnimplementedTxCheckerServiceServer()
}

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

func (UnimplementedTxCheckerServiceServer) BatchCheckTx(context.Context, *BatchCheckTxRequest) (*BatchCheckTxResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method BatchCheckTx not implemented")
}
func (UnimplementedTxCheckerServiceServer) mustEmbedUnimplementedTxCheckerServiceServer() {}

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

func RegisterTxCheckerServiceServer(s grpc.ServiceRegistrar, srv TxCheckerServiceServer) {
	s.RegisterService(&TxCheckerService_ServiceDesc, srv)
}

func _TxCheckerService_BatchCheckTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(BatchCheckTxRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(TxCheckerServiceServer).BatchCheckTx(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/txchecker.v1.TxCheckerService/BatchCheckTx",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(TxCheckerServiceServer).BatchCheckTx(ctx, req.(*BatchCheckTxRequest))
	}
	return interceptor(ctx, in, info, handler)
}

// TxCheckerService_ServiceDesc is the grpc.ServiceDesc for TxCheckerService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var TxCheckerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "txchecker.v1.TxCheckerService",
	HandlerType: (*TxCheckerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "BatchCheckTx",
			Handler:    _TxCheckerService_BatchCheckTx_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "txchecker/v1/service.proto",
}
