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

package mocks

import (
	context "context"

	grpc "google.golang.org/grpc"

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

	plugin_registry "code.fbi.h-da.de/danet/gosdn/api/go/gosdn/plugin-registry"
)

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

// Delete provides a mock function with given fields: ctx, in, opts
func (_m *PluginRegistryServiceClient) Delete(ctx context.Context, in *plugin_registry.DeleteRequest, opts ...grpc.CallOption) (*plugin_registry.DeleteResponse, error) {
	_va := make([]interface{}, len(opts))
	for _i := range opts {
		_va[_i] = opts[_i]
	}
	var _ca []interface{}
	_ca = append(_ca, ctx, in)
	_ca = append(_ca, _va...)
	ret := _m.Called(_ca...)

	var r0 *plugin_registry.DeleteResponse
	if rf, ok := ret.Get(0).(func(context.Context, *plugin_registry.DeleteRequest, ...grpc.CallOption) *plugin_registry.DeleteResponse); ok {
		r0 = rf(ctx, in, opts...)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*plugin_registry.DeleteResponse)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(context.Context, *plugin_registry.DeleteRequest, ...grpc.CallOption) error); ok {
		r1 = rf(ctx, in, opts...)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// Download provides a mock function with given fields: ctx, in, opts
func (_m *PluginRegistryServiceClient) Download(ctx context.Context, in *plugin_registry.GetDownloadRequest, opts ...grpc.CallOption) (plugin_registry.PluginRegistryService_DownloadClient, error) {
	_va := make([]interface{}, len(opts))
	for _i := range opts {
		_va[_i] = opts[_i]
	}
	var _ca []interface{}
	_ca = append(_ca, ctx, in)
	_ca = append(_ca, _va...)
	ret := _m.Called(_ca...)

	var r0 plugin_registry.PluginRegistryService_DownloadClient
	if rf, ok := ret.Get(0).(func(context.Context, *plugin_registry.GetDownloadRequest, ...grpc.CallOption) plugin_registry.PluginRegistryService_DownloadClient); ok {
		r0 = rf(ctx, in, opts...)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(plugin_registry.PluginRegistryService_DownloadClient)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(context.Context, *plugin_registry.GetDownloadRequest, ...grpc.CallOption) error); ok {
		r1 = rf(ctx, in, opts...)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// Get provides a mock function with given fields: ctx, in, opts
func (_m *PluginRegistryServiceClient) Get(ctx context.Context, in *plugin_registry.GetRequest, opts ...grpc.CallOption) (*plugin_registry.GetResponse, error) {
	_va := make([]interface{}, len(opts))
	for _i := range opts {
		_va[_i] = opts[_i]
	}
	var _ca []interface{}
	_ca = append(_ca, ctx, in)
	_ca = append(_ca, _va...)
	ret := _m.Called(_ca...)

	var r0 *plugin_registry.GetResponse
	if rf, ok := ret.Get(0).(func(context.Context, *plugin_registry.GetRequest, ...grpc.CallOption) *plugin_registry.GetResponse); ok {
		r0 = rf(ctx, in, opts...)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*plugin_registry.GetResponse)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(context.Context, *plugin_registry.GetRequest, ...grpc.CallOption) error); ok {
		r1 = rf(ctx, in, opts...)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// GetAll provides a mock function with given fields: ctx, in, opts
func (_m *PluginRegistryServiceClient) GetAll(ctx context.Context, in *plugin_registry.GetAllRequest, opts ...grpc.CallOption) (*plugin_registry.GetResponse, error) {
	_va := make([]interface{}, len(opts))
	for _i := range opts {
		_va[_i] = opts[_i]
	}
	var _ca []interface{}
	_ca = append(_ca, ctx, in)
	_ca = append(_ca, _va...)
	ret := _m.Called(_ca...)

	var r0 *plugin_registry.GetResponse
	if rf, ok := ret.Get(0).(func(context.Context, *plugin_registry.GetAllRequest, ...grpc.CallOption) *plugin_registry.GetResponse); ok {
		r0 = rf(ctx, in, opts...)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*plugin_registry.GetResponse)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(context.Context, *plugin_registry.GetAllRequest, ...grpc.CallOption) error); ok {
		r1 = rf(ctx, in, opts...)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

type mockConstructorTestingTNewPluginRegistryServiceClient interface {
	mock.TestingT
	Cleanup(func())
}

// NewPluginRegistryServiceClient creates a new instance of PluginRegistryServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewPluginRegistryServiceClient(t mockConstructorTestingTNewPluginRegistryServiceClient) *PluginRegistryServiceClient {
	mock := &PluginRegistryServiceClient{}
	mock.Mock.Test(t)

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

	return mock
}
