// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.4.0
// - protoc             (unknown)
// source: v1beta/import.proto

package v1beta

import (
	context "context"
	grpc "google.golang.org/grpc"
	codes "google.golang.org/grpc/codes"
	status "google.golang.org/grpc/status"
	emptypb "google.golang.org/protobuf/types/known/emptypb"
)

// 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.62.0 or later.
const _ = grpc.SupportPackageIsVersion8

const (
	ImportService_ListImports_FullMethodName       = "/v1beta.ImportService/ListImports"
	ImportService_CreateImport_FullMethodName      = "/v1beta.ImportService/CreateImport"
	ImportService_GetImport_FullMethodName         = "/v1beta.ImportService/GetImport"
	ImportService_CancelImport_FullMethodName      = "/v1beta.ImportService/CancelImport"
	ImportService_GenerateUploadURL_FullMethodName = "/v1beta.ImportService/GenerateUploadURL"
)

// ImportServiceClient is the client API for ImportService 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 ImportServiceClient interface {
	ListImports(ctx context.Context, in *ListImportsReq, opts ...grpc.CallOption) (*ListImportsResp, error)
	CreateImport(ctx context.Context, in *CreateImportReq, opts ...grpc.CallOption) (*CreateImportResp, error)
	GetImport(ctx context.Context, in *ImportIds, opts ...grpc.CallOption) (*GetImportResp, error)
	CancelImport(ctx context.Context, in *ImportIds, opts ...grpc.CallOption) (*emptypb.Empty, error)
	GenerateUploadURL(ctx context.Context, in *GenerateUploadURLReq, opts ...grpc.CallOption) (*GenerateUploadURLResq, error)
}

type importServiceClient struct {
	cc grpc.ClientConnInterface
}

func NewImportServiceClient(cc grpc.ClientConnInterface) ImportServiceClient {
	return &importServiceClient{cc}
}

func (c *importServiceClient) ListImports(ctx context.Context, in *ListImportsReq, opts ...grpc.CallOption) (*ListImportsResp, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(ListImportsResp)
	err := c.cc.Invoke(ctx, ImportService_ListImports_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *importServiceClient) CreateImport(ctx context.Context, in *CreateImportReq, opts ...grpc.CallOption) (*CreateImportResp, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(CreateImportResp)
	err := c.cc.Invoke(ctx, ImportService_CreateImport_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *importServiceClient) GetImport(ctx context.Context, in *ImportIds, opts ...grpc.CallOption) (*GetImportResp, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(GetImportResp)
	err := c.cc.Invoke(ctx, ImportService_GetImport_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *importServiceClient) CancelImport(ctx context.Context, in *ImportIds, opts ...grpc.CallOption) (*emptypb.Empty, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(emptypb.Empty)
	err := c.cc.Invoke(ctx, ImportService_CancelImport_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *importServiceClient) GenerateUploadURL(ctx context.Context, in *GenerateUploadURLReq, opts ...grpc.CallOption) (*GenerateUploadURLResq, error) {
	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
	out := new(GenerateUploadURLResq)
	err := c.cc.Invoke(ctx, ImportService_GenerateUploadURL_FullMethodName, in, out, cOpts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// ImportServiceServer is the server API for ImportService service.
// All implementations must embed UnimplementedImportServiceServer
// for forward compatibility
type ImportServiceServer interface {
	ListImports(context.Context, *ListImportsReq) (*ListImportsResp, error)
	CreateImport(context.Context, *CreateImportReq) (*CreateImportResp, error)
	GetImport(context.Context, *ImportIds) (*GetImportResp, error)
	CancelImport(context.Context, *ImportIds) (*emptypb.Empty, error)
	GenerateUploadURL(context.Context, *GenerateUploadURLReq) (*GenerateUploadURLResq, error)
	mustEmbedUnimplementedImportServiceServer()
}

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

func (UnimplementedImportServiceServer) ListImports(context.Context, *ListImportsReq) (*ListImportsResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ListImports not implemented")
}
func (UnimplementedImportServiceServer) CreateImport(context.Context, *CreateImportReq) (*CreateImportResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method CreateImport not implemented")
}
func (UnimplementedImportServiceServer) GetImport(context.Context, *ImportIds) (*GetImportResp, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetImport not implemented")
}
func (UnimplementedImportServiceServer) CancelImport(context.Context, *ImportIds) (*emptypb.Empty, error) {
	return nil, status.Errorf(codes.Unimplemented, "method CancelImport not implemented")
}
func (UnimplementedImportServiceServer) GenerateUploadURL(context.Context, *GenerateUploadURLReq) (*GenerateUploadURLResq, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GenerateUploadURL not implemented")
}
func (UnimplementedImportServiceServer) mustEmbedUnimplementedImportServiceServer() {}

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

func RegisterImportServiceServer(s grpc.ServiceRegistrar, srv ImportServiceServer) {
	s.RegisterService(&ImportService_ServiceDesc, srv)
}

func _ImportService_ListImports_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ListImportsReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ImportServiceServer).ListImports(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: ImportService_ListImports_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ImportServiceServer).ListImports(ctx, req.(*ListImportsReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _ImportService_CreateImport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(CreateImportReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ImportServiceServer).CreateImport(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: ImportService_CreateImport_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ImportServiceServer).CreateImport(ctx, req.(*CreateImportReq))
	}
	return interceptor(ctx, in, info, handler)
}

func _ImportService_GetImport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ImportIds)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ImportServiceServer).GetImport(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: ImportService_GetImport_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ImportServiceServer).GetImport(ctx, req.(*ImportIds))
	}
	return interceptor(ctx, in, info, handler)
}

func _ImportService_CancelImport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ImportIds)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ImportServiceServer).CancelImport(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: ImportService_CancelImport_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ImportServiceServer).CancelImport(ctx, req.(*ImportIds))
	}
	return interceptor(ctx, in, info, handler)
}

func _ImportService_GenerateUploadURL_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GenerateUploadURLReq)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ImportServiceServer).GenerateUploadURL(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: ImportService_GenerateUploadURL_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ImportServiceServer).GenerateUploadURL(ctx, req.(*GenerateUploadURLReq))
	}
	return interceptor(ctx, in, info, handler)
}

// ImportService_ServiceDesc is the grpc.ServiceDesc for ImportService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var ImportService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "v1beta.ImportService",
	HandlerType: (*ImportServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListImports",
			Handler:    _ImportService_ListImports_Handler,
		},
		{
			MethodName: "CreateImport",
			Handler:    _ImportService_CreateImport_Handler,
		},
		{
			MethodName: "GetImport",
			Handler:    _ImportService_GetImport_Handler,
		},
		{
			MethodName: "CancelImport",
			Handler:    _ImportService_CancelImport_Handler,
		},
		{
			MethodName: "GenerateUploadURL",
			Handler:    _ImportService_GenerateUploadURL_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "v1beta/import.proto",
}
