// Code generated by mockery; DO NOT EDIT.
// github.com/vektra/mockery
// template: testify

package mocks

import (
	"context"

	"github.com/argoproj/argo-cd/v3/pkg/apiclient/cluster"
	"github.com/argoproj/argo-cd/v3/pkg/apis/application/v1alpha1"
	mock "github.com/stretchr/testify/mock"
	"google.golang.org/grpc"
)

// NewClusterServiceClient creates a new instance of ClusterServiceClient. 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 NewClusterServiceClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClusterServiceClient {
	mock := &ClusterServiceClient{}
	mock.Mock.Test(t)

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

	return mock
}

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

type ClusterServiceClient_Expecter struct {
	mock *mock.Mock
}

func (_m *ClusterServiceClient) EXPECT() *ClusterServiceClient_Expecter {
	return &ClusterServiceClient_Expecter{mock: &_m.Mock}
}

// Create provides a mock function for the type ClusterServiceClient
func (_mock *ClusterServiceClient) Create(ctx context.Context, in *cluster.ClusterCreateRequest, opts ...grpc.CallOption) (*v1alpha1.Cluster, error) {
	// grpc.CallOption
	_va := make([]any, len(opts))
	for _i := range opts {
		_va[_i] = opts[_i]
	}
	var _ca []any
	_ca = append(_ca, ctx, in)
	_ca = append(_ca, _va...)
	ret := _mock.Called(_ca...)

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

	var r0 *v1alpha1.Cluster
	var r1 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, *cluster.ClusterCreateRequest, ...grpc.CallOption) (*v1alpha1.Cluster, error)); ok {
		return returnFunc(ctx, in, opts...)
	}
	if returnFunc, ok := ret.Get(0).(func(context.Context, *cluster.ClusterCreateRequest, ...grpc.CallOption) *v1alpha1.Cluster); ok {
		r0 = returnFunc(ctx, in, opts...)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*v1alpha1.Cluster)
		}
	}
	if returnFunc, ok := ret.Get(1).(func(context.Context, *cluster.ClusterCreateRequest, ...grpc.CallOption) error); ok {
		r1 = returnFunc(ctx, in, opts...)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}

// ClusterServiceClient_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
type ClusterServiceClient_Create_Call struct {
	*mock.Call
}

// Create is a helper method to define mock.On call
//   - ctx context.Context
//   - in *cluster.ClusterCreateRequest
//   - opts ...grpc.CallOption
func (_e *ClusterServiceClient_Expecter) Create(ctx any, in any, opts ...any) *ClusterServiceClient_Create_Call {
	return &ClusterServiceClient_Create_Call{Call: _e.mock.On("Create",
		append([]any{ctx, in}, opts...)...)}
}

func (_c *ClusterServiceClient_Create_Call) Run(run func(ctx context.Context, in *cluster.ClusterCreateRequest, opts ...grpc.CallOption)) *ClusterServiceClient_Create_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 *cluster.ClusterCreateRequest
		if args[1] != nil {
			arg1 = args[1].(*cluster.ClusterCreateRequest)
		}
		var arg2 []grpc.CallOption
		variadicArgs := make([]grpc.CallOption, len(args)-2)
		for i, a := range args[2:] {
			if a != nil {
				variadicArgs[i] = a.(grpc.CallOption)
			}
		}
		arg2 = variadicArgs
		run(
			arg0,
			arg1,
			arg2...,
		)
	})
	return _c
}

func (_c *ClusterServiceClient_Create_Call) Return(cluster1 *v1alpha1.Cluster, err error) *ClusterServiceClient_Create_Call {
	_c.Call.Return(cluster1, err)
	return _c
}

func (_c *ClusterServiceClient_Create_Call) RunAndReturn(run func(ctx context.Context, in *cluster.ClusterCreateRequest, opts ...grpc.CallOption) (*v1alpha1.Cluster, error)) *ClusterServiceClient_Create_Call {
	_c.Call.Return(run)
	return _c
}

// Delete provides a mock function for the type ClusterServiceClient
func (_mock *ClusterServiceClient) Delete(ctx context.Context, in *cluster.ClusterQuery, opts ...grpc.CallOption) (*cluster.ClusterResponse, error) {
	// grpc.CallOption
	_va := make([]any, len(opts))
	for _i := range opts {
		_va[_i] = opts[_i]
	}
	var _ca []any
	_ca = append(_ca, ctx, in)
	_ca = append(_ca, _va...)
	ret := _mock.Called(_ca...)

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

	var r0 *cluster.ClusterResponse
	var r1 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, *cluster.ClusterQuery, ...grpc.CallOption) (*cluster.ClusterResponse, error)); ok {
		return returnFunc(ctx, in, opts...)
	}
	if returnFunc, ok := ret.Get(0).(func(context.Context, *cluster.ClusterQuery, ...grpc.CallOption) *cluster.ClusterResponse); ok {
		r0 = returnFunc(ctx, in, opts...)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*cluster.ClusterResponse)
		}
	}
	if returnFunc, ok := ret.Get(1).(func(context.Context, *cluster.ClusterQuery, ...grpc.CallOption) error); ok {
		r1 = returnFunc(ctx, in, opts...)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}

// ClusterServiceClient_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
type ClusterServiceClient_Delete_Call struct {
	*mock.Call
}

// Delete is a helper method to define mock.On call
//   - ctx context.Context
//   - in *cluster.ClusterQuery
//   - opts ...grpc.CallOption
func (_e *ClusterServiceClient_Expecter) Delete(ctx any, in any, opts ...any) *ClusterServiceClient_Delete_Call {
	return &ClusterServiceClient_Delete_Call{Call: _e.mock.On("Delete",
		append([]any{ctx, in}, opts...)...)}
}

func (_c *ClusterServiceClient_Delete_Call) Run(run func(ctx context.Context, in *cluster.ClusterQuery, opts ...grpc.CallOption)) *ClusterServiceClient_Delete_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 *cluster.ClusterQuery
		if args[1] != nil {
			arg1 = args[1].(*cluster.ClusterQuery)
		}
		var arg2 []grpc.CallOption
		variadicArgs := make([]grpc.CallOption, len(args)-2)
		for i, a := range args[2:] {
			if a != nil {
				variadicArgs[i] = a.(grpc.CallOption)
			}
		}
		arg2 = variadicArgs
		run(
			arg0,
			arg1,
			arg2...,
		)
	})
	return _c
}

func (_c *ClusterServiceClient_Delete_Call) Return(clusterResponse *cluster.ClusterResponse, err error) *ClusterServiceClient_Delete_Call {
	_c.Call.Return(clusterResponse, err)
	return _c
}

func (_c *ClusterServiceClient_Delete_Call) RunAndReturn(run func(ctx context.Context, in *cluster.ClusterQuery, opts ...grpc.CallOption) (*cluster.ClusterResponse, error)) *ClusterServiceClient_Delete_Call {
	_c.Call.Return(run)
	return _c
}

// Get provides a mock function for the type ClusterServiceClient
func (_mock *ClusterServiceClient) Get(ctx context.Context, in *cluster.ClusterQuery, opts ...grpc.CallOption) (*v1alpha1.Cluster, error) {
	// grpc.CallOption
	_va := make([]any, len(opts))
	for _i := range opts {
		_va[_i] = opts[_i]
	}
	var _ca []any
	_ca = append(_ca, ctx, in)
	_ca = append(_ca, _va...)
	ret := _mock.Called(_ca...)

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

	var r0 *v1alpha1.Cluster
	var r1 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, *cluster.ClusterQuery, ...grpc.CallOption) (*v1alpha1.Cluster, error)); ok {
		return returnFunc(ctx, in, opts...)
	}
	if returnFunc, ok := ret.Get(0).(func(context.Context, *cluster.ClusterQuery, ...grpc.CallOption) *v1alpha1.Cluster); ok {
		r0 = returnFunc(ctx, in, opts...)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*v1alpha1.Cluster)
		}
	}
	if returnFunc, ok := ret.Get(1).(func(context.Context, *cluster.ClusterQuery, ...grpc.CallOption) error); ok {
		r1 = returnFunc(ctx, in, opts...)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}

// ClusterServiceClient_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
type ClusterServiceClient_Get_Call struct {
	*mock.Call
}

// Get is a helper method to define mock.On call
//   - ctx context.Context
//   - in *cluster.ClusterQuery
//   - opts ...grpc.CallOption
func (_e *ClusterServiceClient_Expecter) Get(ctx any, in any, opts ...any) *ClusterServiceClient_Get_Call {
	return &ClusterServiceClient_Get_Call{Call: _e.mock.On("Get",
		append([]any{ctx, in}, opts...)...)}
}

func (_c *ClusterServiceClient_Get_Call) Run(run func(ctx context.Context, in *cluster.ClusterQuery, opts ...grpc.CallOption)) *ClusterServiceClient_Get_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 *cluster.ClusterQuery
		if args[1] != nil {
			arg1 = args[1].(*cluster.ClusterQuery)
		}
		var arg2 []grpc.CallOption
		variadicArgs := make([]grpc.CallOption, len(args)-2)
		for i, a := range args[2:] {
			if a != nil {
				variadicArgs[i] = a.(grpc.CallOption)
			}
		}
		arg2 = variadicArgs
		run(
			arg0,
			arg1,
			arg2...,
		)
	})
	return _c
}

func (_c *ClusterServiceClient_Get_Call) Return(cluster1 *v1alpha1.Cluster, err error) *ClusterServiceClient_Get_Call {
	_c.Call.Return(cluster1, err)
	return _c
}

func (_c *ClusterServiceClient_Get_Call) RunAndReturn(run func(ctx context.Context, in *cluster.ClusterQuery, opts ...grpc.CallOption) (*v1alpha1.Cluster, error)) *ClusterServiceClient_Get_Call {
	_c.Call.Return(run)
	return _c
}

// InvalidateCache provides a mock function for the type ClusterServiceClient
func (_mock *ClusterServiceClient) InvalidateCache(ctx context.Context, in *cluster.ClusterQuery, opts ...grpc.CallOption) (*v1alpha1.Cluster, error) {
	// grpc.CallOption
	_va := make([]any, len(opts))
	for _i := range opts {
		_va[_i] = opts[_i]
	}
	var _ca []any
	_ca = append(_ca, ctx, in)
	_ca = append(_ca, _va...)
	ret := _mock.Called(_ca...)

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

	var r0 *v1alpha1.Cluster
	var r1 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, *cluster.ClusterQuery, ...grpc.CallOption) (*v1alpha1.Cluster, error)); ok {
		return returnFunc(ctx, in, opts...)
	}
	if returnFunc, ok := ret.Get(0).(func(context.Context, *cluster.ClusterQuery, ...grpc.CallOption) *v1alpha1.Cluster); ok {
		r0 = returnFunc(ctx, in, opts...)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*v1alpha1.Cluster)
		}
	}
	if returnFunc, ok := ret.Get(1).(func(context.Context, *cluster.ClusterQuery, ...grpc.CallOption) error); ok {
		r1 = returnFunc(ctx, in, opts...)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}

// ClusterServiceClient_InvalidateCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InvalidateCache'
type ClusterServiceClient_InvalidateCache_Call struct {
	*mock.Call
}

// InvalidateCache is a helper method to define mock.On call
//   - ctx context.Context
//   - in *cluster.ClusterQuery
//   - opts ...grpc.CallOption
func (_e *ClusterServiceClient_Expecter) InvalidateCache(ctx any, in any, opts ...any) *ClusterServiceClient_InvalidateCache_Call {
	return &ClusterServiceClient_InvalidateCache_Call{Call: _e.mock.On("InvalidateCache",
		append([]any{ctx, in}, opts...)...)}
}

func (_c *ClusterServiceClient_InvalidateCache_Call) Run(run func(ctx context.Context, in *cluster.ClusterQuery, opts ...grpc.CallOption)) *ClusterServiceClient_InvalidateCache_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 *cluster.ClusterQuery
		if args[1] != nil {
			arg1 = args[1].(*cluster.ClusterQuery)
		}
		var arg2 []grpc.CallOption
		variadicArgs := make([]grpc.CallOption, len(args)-2)
		for i, a := range args[2:] {
			if a != nil {
				variadicArgs[i] = a.(grpc.CallOption)
			}
		}
		arg2 = variadicArgs
		run(
			arg0,
			arg1,
			arg2...,
		)
	})
	return _c
}

func (_c *ClusterServiceClient_InvalidateCache_Call) Return(cluster1 *v1alpha1.Cluster, err error) *ClusterServiceClient_InvalidateCache_Call {
	_c.Call.Return(cluster1, err)
	return _c
}

func (_c *ClusterServiceClient_InvalidateCache_Call) RunAndReturn(run func(ctx context.Context, in *cluster.ClusterQuery, opts ...grpc.CallOption) (*v1alpha1.Cluster, error)) *ClusterServiceClient_InvalidateCache_Call {
	_c.Call.Return(run)
	return _c
}

// List provides a mock function for the type ClusterServiceClient
func (_mock *ClusterServiceClient) List(ctx context.Context, in *cluster.ClusterQuery, opts ...grpc.CallOption) (*v1alpha1.ClusterList, error) {
	// grpc.CallOption
	_va := make([]any, len(opts))
	for _i := range opts {
		_va[_i] = opts[_i]
	}
	var _ca []any
	_ca = append(_ca, ctx, in)
	_ca = append(_ca, _va...)
	ret := _mock.Called(_ca...)

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

	var r0 *v1alpha1.ClusterList
	var r1 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, *cluster.ClusterQuery, ...grpc.CallOption) (*v1alpha1.ClusterList, error)); ok {
		return returnFunc(ctx, in, opts...)
	}
	if returnFunc, ok := ret.Get(0).(func(context.Context, *cluster.ClusterQuery, ...grpc.CallOption) *v1alpha1.ClusterList); ok {
		r0 = returnFunc(ctx, in, opts...)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*v1alpha1.ClusterList)
		}
	}
	if returnFunc, ok := ret.Get(1).(func(context.Context, *cluster.ClusterQuery, ...grpc.CallOption) error); ok {
		r1 = returnFunc(ctx, in, opts...)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}

// ClusterServiceClient_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
type ClusterServiceClient_List_Call struct {
	*mock.Call
}

// List is a helper method to define mock.On call
//   - ctx context.Context
//   - in *cluster.ClusterQuery
//   - opts ...grpc.CallOption
func (_e *ClusterServiceClient_Expecter) List(ctx any, in any, opts ...any) *ClusterServiceClient_List_Call {
	return &ClusterServiceClient_List_Call{Call: _e.mock.On("List",
		append([]any{ctx, in}, opts...)...)}
}

func (_c *ClusterServiceClient_List_Call) Run(run func(ctx context.Context, in *cluster.ClusterQuery, opts ...grpc.CallOption)) *ClusterServiceClient_List_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 *cluster.ClusterQuery
		if args[1] != nil {
			arg1 = args[1].(*cluster.ClusterQuery)
		}
		var arg2 []grpc.CallOption
		variadicArgs := make([]grpc.CallOption, len(args)-2)
		for i, a := range args[2:] {
			if a != nil {
				variadicArgs[i] = a.(grpc.CallOption)
			}
		}
		arg2 = variadicArgs
		run(
			arg0,
			arg1,
			arg2...,
		)
	})
	return _c
}

func (_c *ClusterServiceClient_List_Call) Return(clusterList *v1alpha1.ClusterList, err error) *ClusterServiceClient_List_Call {
	_c.Call.Return(clusterList, err)
	return _c
}

func (_c *ClusterServiceClient_List_Call) RunAndReturn(run func(ctx context.Context, in *cluster.ClusterQuery, opts ...grpc.CallOption) (*v1alpha1.ClusterList, error)) *ClusterServiceClient_List_Call {
	_c.Call.Return(run)
	return _c
}

// RotateAuth provides a mock function for the type ClusterServiceClient
func (_mock *ClusterServiceClient) RotateAuth(ctx context.Context, in *cluster.ClusterQuery, opts ...grpc.CallOption) (*cluster.ClusterResponse, error) {
	// grpc.CallOption
	_va := make([]any, len(opts))
	for _i := range opts {
		_va[_i] = opts[_i]
	}
	var _ca []any
	_ca = append(_ca, ctx, in)
	_ca = append(_ca, _va...)
	ret := _mock.Called(_ca...)

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

	var r0 *cluster.ClusterResponse
	var r1 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, *cluster.ClusterQuery, ...grpc.CallOption) (*cluster.ClusterResponse, error)); ok {
		return returnFunc(ctx, in, opts...)
	}
	if returnFunc, ok := ret.Get(0).(func(context.Context, *cluster.ClusterQuery, ...grpc.CallOption) *cluster.ClusterResponse); ok {
		r0 = returnFunc(ctx, in, opts...)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*cluster.ClusterResponse)
		}
	}
	if returnFunc, ok := ret.Get(1).(func(context.Context, *cluster.ClusterQuery, ...grpc.CallOption) error); ok {
		r1 = returnFunc(ctx, in, opts...)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}

// ClusterServiceClient_RotateAuth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RotateAuth'
type ClusterServiceClient_RotateAuth_Call struct {
	*mock.Call
}

// RotateAuth is a helper method to define mock.On call
//   - ctx context.Context
//   - in *cluster.ClusterQuery
//   - opts ...grpc.CallOption
func (_e *ClusterServiceClient_Expecter) RotateAuth(ctx any, in any, opts ...any) *ClusterServiceClient_RotateAuth_Call {
	return &ClusterServiceClient_RotateAuth_Call{Call: _e.mock.On("RotateAuth",
		append([]any{ctx, in}, opts...)...)}
}

func (_c *ClusterServiceClient_RotateAuth_Call) Run(run func(ctx context.Context, in *cluster.ClusterQuery, opts ...grpc.CallOption)) *ClusterServiceClient_RotateAuth_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 *cluster.ClusterQuery
		if args[1] != nil {
			arg1 = args[1].(*cluster.ClusterQuery)
		}
		var arg2 []grpc.CallOption
		variadicArgs := make([]grpc.CallOption, len(args)-2)
		for i, a := range args[2:] {
			if a != nil {
				variadicArgs[i] = a.(grpc.CallOption)
			}
		}
		arg2 = variadicArgs
		run(
			arg0,
			arg1,
			arg2...,
		)
	})
	return _c
}

func (_c *ClusterServiceClient_RotateAuth_Call) Return(clusterResponse *cluster.ClusterResponse, err error) *ClusterServiceClient_RotateAuth_Call {
	_c.Call.Return(clusterResponse, err)
	return _c
}

func (_c *ClusterServiceClient_RotateAuth_Call) RunAndReturn(run func(ctx context.Context, in *cluster.ClusterQuery, opts ...grpc.CallOption) (*cluster.ClusterResponse, error)) *ClusterServiceClient_RotateAuth_Call {
	_c.Call.Return(run)
	return _c
}

// Update provides a mock function for the type ClusterServiceClient
func (_mock *ClusterServiceClient) Update(ctx context.Context, in *cluster.ClusterUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.Cluster, error) {
	// grpc.CallOption
	_va := make([]any, len(opts))
	for _i := range opts {
		_va[_i] = opts[_i]
	}
	var _ca []any
	_ca = append(_ca, ctx, in)
	_ca = append(_ca, _va...)
	ret := _mock.Called(_ca...)

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

	var r0 *v1alpha1.Cluster
	var r1 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, *cluster.ClusterUpdateRequest, ...grpc.CallOption) (*v1alpha1.Cluster, error)); ok {
		return returnFunc(ctx, in, opts...)
	}
	if returnFunc, ok := ret.Get(0).(func(context.Context, *cluster.ClusterUpdateRequest, ...grpc.CallOption) *v1alpha1.Cluster); ok {
		r0 = returnFunc(ctx, in, opts...)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*v1alpha1.Cluster)
		}
	}
	if returnFunc, ok := ret.Get(1).(func(context.Context, *cluster.ClusterUpdateRequest, ...grpc.CallOption) error); ok {
		r1 = returnFunc(ctx, in, opts...)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}

// ClusterServiceClient_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
type ClusterServiceClient_Update_Call struct {
	*mock.Call
}

// Update is a helper method to define mock.On call
//   - ctx context.Context
//   - in *cluster.ClusterUpdateRequest
//   - opts ...grpc.CallOption
func (_e *ClusterServiceClient_Expecter) Update(ctx any, in any, opts ...any) *ClusterServiceClient_Update_Call {
	return &ClusterServiceClient_Update_Call{Call: _e.mock.On("Update",
		append([]any{ctx, in}, opts...)...)}
}

func (_c *ClusterServiceClient_Update_Call) Run(run func(ctx context.Context, in *cluster.ClusterUpdateRequest, opts ...grpc.CallOption)) *ClusterServiceClient_Update_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 *cluster.ClusterUpdateRequest
		if args[1] != nil {
			arg1 = args[1].(*cluster.ClusterUpdateRequest)
		}
		var arg2 []grpc.CallOption
		variadicArgs := make([]grpc.CallOption, len(args)-2)
		for i, a := range args[2:] {
			if a != nil {
				variadicArgs[i] = a.(grpc.CallOption)
			}
		}
		arg2 = variadicArgs
		run(
			arg0,
			arg1,
			arg2...,
		)
	})
	return _c
}

func (_c *ClusterServiceClient_Update_Call) Return(cluster1 *v1alpha1.Cluster, err error) *ClusterServiceClient_Update_Call {
	_c.Call.Return(cluster1, err)
	return _c
}

func (_c *ClusterServiceClient_Update_Call) RunAndReturn(run func(ctx context.Context, in *cluster.ClusterUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.Cluster, error)) *ClusterServiceClient_Update_Call {
	_c.Call.Return(run)
	return _c
}
