// Code generated by mockery v2.53.3. DO NOT EDIT.

package mock

import (
	context "context"

	console "github.com/tidbcloud/serverless-service/idl/pbgen/proto/console"

	mock "github.com/stretchr/testify/mock"
)

// ServerlessSvcGrpcClient is an autogenerated mock type for the ServerlessSvcGrpcClient type
type ServerlessSvcGrpcClient struct {
	mock.Mock
}

// CancelImport provides a mock function with given fields: ctx, req
func (_m *ServerlessSvcGrpcClient) CancelImport(ctx context.Context, req *console.ImportIds) error {
	ret := _m.Called(ctx, req)

	if len(ret) == 0 {
		panic("no return value specified for CancelImport")
	}

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, *console.ImportIds) error); ok {
		r0 = rf(ctx, req)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// CreateImport provides a mock function with given fields: ctx, req
func (_m *ServerlessSvcGrpcClient) CreateImport(ctx context.Context, req *console.CreateImportReq) (*console.Import, error) {
	ret := _m.Called(ctx, req)

	if len(ret) == 0 {
		panic("no return value specified for CreateImport")
	}

	var r0 *console.Import
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, *console.CreateImportReq) (*console.Import, error)); ok {
		return rf(ctx, req)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *console.CreateImportReq) *console.Import); ok {
		r0 = rf(ctx, req)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*console.Import)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *console.CreateImportReq) error); ok {
		r1 = rf(ctx, req)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// GetDataIngestionProfile provides a mock function with given fields: ctx, req
func (_m *ServerlessSvcGrpcClient) GetDataIngestionProfile(ctx context.Context, req *console.GetProfileReq) (*console.DataIngestionProfile, error) {
	ret := _m.Called(ctx, req)

	if len(ret) == 0 {
		panic("no return value specified for GetDataIngestionProfile")
	}

	var r0 *console.DataIngestionProfile
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, *console.GetProfileReq) (*console.DataIngestionProfile, error)); ok {
		return rf(ctx, req)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *console.GetProfileReq) *console.DataIngestionProfile); ok {
		r0 = rf(ctx, req)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*console.DataIngestionProfile)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *console.GetProfileReq) error); ok {
		r1 = rf(ctx, req)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// GetImport provides a mock function with given fields: ctx, req
func (_m *ServerlessSvcGrpcClient) GetImport(ctx context.Context, req *console.ImportIds) (*console.Import, error) {
	ret := _m.Called(ctx, req)

	if len(ret) == 0 {
		panic("no return value specified for GetImport")
	}

	var r0 *console.Import
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, *console.ImportIds) (*console.Import, error)); ok {
		return rf(ctx, req)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *console.ImportIds) *console.Import); ok {
		r0 = rf(ctx, req)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*console.Import)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *console.ImportIds) error); ok {
		r1 = rf(ctx, req)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// ListImports provides a mock function with given fields: ctx, req
func (_m *ServerlessSvcGrpcClient) ListImports(ctx context.Context, req *console.ListImportsReq) (*console.ListImportsResp, error) {
	ret := _m.Called(ctx, req)

	if len(ret) == 0 {
		panic("no return value specified for ListImports")
	}

	var r0 *console.ListImportsResp
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, *console.ListImportsReq) (*console.ListImportsResp, error)); ok {
		return rf(ctx, req)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *console.ListImportsReq) *console.ListImportsResp); ok {
		r0 = rf(ctx, req)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*console.ListImportsResp)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *console.ListImportsReq) error); ok {
		r1 = rf(ctx, req)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// PreviewLocal provides a mock function with given fields: ctx, req
func (_m *ServerlessSvcGrpcClient) PreviewLocal(ctx context.Context, req *console.ImportsPreviewLocalReq) (*console.ImportsPreviewLocalResp, error) {
	ret := _m.Called(ctx, req)

	if len(ret) == 0 {
		panic("no return value specified for PreviewLocal")
	}

	var r0 *console.ImportsPreviewLocalResp
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, *console.ImportsPreviewLocalReq) (*console.ImportsPreviewLocalResp, error)); ok {
		return rf(ctx, req)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *console.ImportsPreviewLocalReq) *console.ImportsPreviewLocalResp); ok {
		r0 = rf(ctx, req)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*console.ImportsPreviewLocalResp)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *console.ImportsPreviewLocalReq) error); ok {
		r1 = rf(ctx, req)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// Upload provides a mock function with given fields: ctx, req
func (_m *ServerlessSvcGrpcClient) Upload(ctx context.Context, req *console.UploadRequest) (*console.UploadResponse, error) {
	ret := _m.Called(ctx, req)

	if len(ret) == 0 {
		panic("no return value specified for Upload")
	}

	var r0 *console.UploadResponse
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, *console.UploadRequest) (*console.UploadResponse, error)); ok {
		return rf(ctx, req)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *console.UploadRequest) *console.UploadResponse); ok {
		r0 = rf(ctx, req)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*console.UploadResponse)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *console.UploadRequest) error); ok {
		r1 = rf(ctx, req)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// NewServerlessSvcGrpcClient creates a new instance of ServerlessSvcGrpcClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewServerlessSvcGrpcClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *ServerlessSvcGrpcClient {
	mock := &ServerlessSvcGrpcClient{}
	mock.Mock.Test(t)

	t.Cleanup(func() { mock.AssertExpectations(t) })

	return mock
}
