// Code generated by mockery v1.0.1. DO NOT EDIT.

package mocks

import (
	context "context"

	admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin"

	grpc "google.golang.org/grpc"

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

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

type AgentServiceClient_CreateTask struct {
	*mock.Call
}

func (_m AgentServiceClient_CreateTask) Return(_a0 *admin.CreateTaskResponse, _a1 error) *AgentServiceClient_CreateTask {
	return &AgentServiceClient_CreateTask{Call: _m.Call.Return(_a0, _a1)}
}

func (_m *AgentServiceClient) OnCreateTask(ctx context.Context, in *admin.CreateTaskRequest, opts ...grpc.CallOption) *AgentServiceClient_CreateTask {
	c_call := _m.On("CreateTask", ctx, in, opts)
	return &AgentServiceClient_CreateTask{Call: c_call}
}

func (_m *AgentServiceClient) OnCreateTaskMatch(matchers ...interface{}) *AgentServiceClient_CreateTask {
	c_call := _m.On("CreateTask", matchers...)
	return &AgentServiceClient_CreateTask{Call: c_call}
}

// CreateTask provides a mock function with given fields: ctx, in, opts
func (_m *AgentServiceClient) CreateTask(ctx context.Context, in *admin.CreateTaskRequest, opts ...grpc.CallOption) (*admin.CreateTaskResponse, 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 *admin.CreateTaskResponse
	if rf, ok := ret.Get(0).(func(context.Context, *admin.CreateTaskRequest, ...grpc.CallOption) *admin.CreateTaskResponse); ok {
		r0 = rf(ctx, in, opts...)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*admin.CreateTaskResponse)
		}
	}

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

	return r0, r1
}

type AgentServiceClient_DeleteTask struct {
	*mock.Call
}

func (_m AgentServiceClient_DeleteTask) Return(_a0 *admin.DeleteTaskResponse, _a1 error) *AgentServiceClient_DeleteTask {
	return &AgentServiceClient_DeleteTask{Call: _m.Call.Return(_a0, _a1)}
}

func (_m *AgentServiceClient) OnDeleteTask(ctx context.Context, in *admin.DeleteTaskRequest, opts ...grpc.CallOption) *AgentServiceClient_DeleteTask {
	c_call := _m.On("DeleteTask", ctx, in, opts)
	return &AgentServiceClient_DeleteTask{Call: c_call}
}

func (_m *AgentServiceClient) OnDeleteTaskMatch(matchers ...interface{}) *AgentServiceClient_DeleteTask {
	c_call := _m.On("DeleteTask", matchers...)
	return &AgentServiceClient_DeleteTask{Call: c_call}
}

// DeleteTask provides a mock function with given fields: ctx, in, opts
func (_m *AgentServiceClient) DeleteTask(ctx context.Context, in *admin.DeleteTaskRequest, opts ...grpc.CallOption) (*admin.DeleteTaskResponse, 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 *admin.DeleteTaskResponse
	if rf, ok := ret.Get(0).(func(context.Context, *admin.DeleteTaskRequest, ...grpc.CallOption) *admin.DeleteTaskResponse); ok {
		r0 = rf(ctx, in, opts...)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*admin.DeleteTaskResponse)
		}
	}

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

	return r0, r1
}

type AgentServiceClient_GetTask struct {
	*mock.Call
}

func (_m AgentServiceClient_GetTask) Return(_a0 *admin.GetTaskResponse, _a1 error) *AgentServiceClient_GetTask {
	return &AgentServiceClient_GetTask{Call: _m.Call.Return(_a0, _a1)}
}

func (_m *AgentServiceClient) OnGetTask(ctx context.Context, in *admin.GetTaskRequest, opts ...grpc.CallOption) *AgentServiceClient_GetTask {
	c_call := _m.On("GetTask", ctx, in, opts)
	return &AgentServiceClient_GetTask{Call: c_call}
}

func (_m *AgentServiceClient) OnGetTaskMatch(matchers ...interface{}) *AgentServiceClient_GetTask {
	c_call := _m.On("GetTask", matchers...)
	return &AgentServiceClient_GetTask{Call: c_call}
}

// GetTask provides a mock function with given fields: ctx, in, opts
func (_m *AgentServiceClient) GetTask(ctx context.Context, in *admin.GetTaskRequest, opts ...grpc.CallOption) (*admin.GetTaskResponse, 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 *admin.GetTaskResponse
	if rf, ok := ret.Get(0).(func(context.Context, *admin.GetTaskRequest, ...grpc.CallOption) *admin.GetTaskResponse); ok {
		r0 = rf(ctx, in, opts...)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*admin.GetTaskResponse)
		}
	}

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

	return r0, r1
}
