// Code generated by MockGen. DO NOT EDIT.
// Source: git.canopsis.net/canopsis/canopsis-community/community/go-engines-community/lib/canopsis/entity (interfaces: Adapter)
//
// Generated by this command:
//
//	mockgen -destination=../../../mocks/lib/canopsis/entity/adapter.go git.canopsis.net/canopsis/canopsis-community/community/go-engines-community/lib/canopsis/entity Adapter
//

// Package mock_entity is a generated GoMock package.
package mock_entity

import (
	context "context"
	reflect "reflect"

	datetime "git.canopsis.net/canopsis/canopsis-community/community/go-engines-community/lib/canopsis/datetime"
	types "git.canopsis.net/canopsis/canopsis-community/community/go-engines-community/lib/canopsis/types"
	mongo "git.canopsis.net/canopsis/canopsis-community/community/go-engines-community/lib/mongo"
	mongo0 "go.mongodb.org/mongo-driver/v2/mongo"
	gomock "go.uber.org/mock/gomock"
)

// MockAdapter is a mock of Adapter interface.
type MockAdapter struct {
	ctrl     *gomock.Controller
	recorder *MockAdapterMockRecorder
	isgomock struct{}
}

// MockAdapterMockRecorder is the mock recorder for MockAdapter.
type MockAdapterMockRecorder struct {
	mock *MockAdapter
}

// NewMockAdapter creates a new mock instance.
func NewMockAdapter(ctrl *gomock.Controller) *MockAdapter {
	mock := &MockAdapter{ctrl: ctrl}
	mock.recorder = &MockAdapterMockRecorder{mock}
	return mock
}

// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockAdapter) EXPECT() *MockAdapterMockRecorder {
	return m.recorder
}

// AddInfos mocks base method.
func (m *MockAdapter) AddInfos(ctx context.Context, id string, infos map[string]types.Info) (bool, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "AddInfos", ctx, id, infos)
	ret0, _ := ret[0].(bool)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// AddInfos indicates an expected call of AddInfos.
func (mr *MockAdapterMockRecorder) AddInfos(ctx, id, infos any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddInfos", reflect.TypeOf((*MockAdapter)(nil).AddInfos), ctx, id, infos)
}

// Bulk mocks base method.
func (m *MockAdapter) Bulk(ctx context.Context, models []mongo0.WriteModel) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Bulk", ctx, models)
	ret0, _ := ret[0].(error)
	return ret0
}

// Bulk indicates an expected call of Bulk.
func (mr *MockAdapterMockRecorder) Bulk(ctx, models any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bulk", reflect.TypeOf((*MockAdapter)(nil).Bulk), ctx, models)
}

// Count mocks base method.
func (m *MockAdapter) Count(ctx context.Context) (int, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Count", ctx)
	ret0, _ := ret[0].(int)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// Count indicates an expected call of Count.
func (mr *MockAdapterMockRecorder) Count(ctx any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Count", reflect.TypeOf((*MockAdapter)(nil).Count), ctx)
}

// FindByIDs mocks base method.
func (m *MockAdapter) FindByIDs(ctx context.Context, ids []string) ([]types.Entity, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "FindByIDs", ctx, ids)
	ret0, _ := ret[0].([]types.Entity)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// FindByIDs indicates an expected call of FindByIDs.
func (mr *MockAdapterMockRecorder) FindByIDs(ctx, ids any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindByIDs", reflect.TypeOf((*MockAdapter)(nil).FindByIDs), ctx, ids)
}

// FindComponent mocks base method.
func (m *MockAdapter) FindComponent(ctx context.Context, id string) (*types.Entity, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "FindComponent", ctx, id)
	ret0, _ := ret[0].(*types.Entity)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// FindComponent indicates an expected call of FindComponent.
func (mr *MockAdapterMockRecorder) FindComponent(ctx, id any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindComponent", reflect.TypeOf((*MockAdapter)(nil).FindComponent), ctx, id)
}

// FindConnector mocks base method.
func (m *MockAdapter) FindConnector(ctx context.Context, id string) (*types.Entity, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "FindConnector", ctx, id)
	ret0, _ := ret[0].(*types.Entity)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// FindConnector indicates an expected call of FindConnector.
func (mr *MockAdapterMockRecorder) FindConnector(ctx, id any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindConnector", reflect.TypeOf((*MockAdapter)(nil).FindConnector), ctx, id)
}

// FindToCheckPbehaviorInfo mocks base method.
func (m *MockAdapter) FindToCheckPbehaviorInfo(ctx context.Context, idsWithPbehaviors, exceptIds, serviceIDs []string) (mongo.Cursor, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "FindToCheckPbehaviorInfo", ctx, idsWithPbehaviors, exceptIds, serviceIDs)
	ret0, _ := ret[0].(mongo.Cursor)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// FindToCheckPbehaviorInfo indicates an expected call of FindToCheckPbehaviorInfo.
func (mr *MockAdapterMockRecorder) FindToCheckPbehaviorInfo(ctx, idsWithPbehaviors, exceptIds, serviceIDs any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindToCheckPbehaviorInfo", reflect.TypeOf((*MockAdapter)(nil).FindToCheckPbehaviorInfo), ctx, idsWithPbehaviors, exceptIds, serviceIDs)
}

// Get mocks base method.
func (m *MockAdapter) Get(ctx context.Context, id string) (types.Entity, bool) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Get", ctx, id)
	ret0, _ := ret[0].(types.Entity)
	ret1, _ := ret[1].(bool)
	return ret0, ret1
}

// Get indicates an expected call of Get.
func (mr *MockAdapterMockRecorder) Get(ctx, id any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockAdapter)(nil).Get), ctx, id)
}

// GetAllWithLastUpdateDateBefore mocks base method.
func (m *MockAdapter) GetAllWithLastUpdateDateBefore(ctx context.Context, time datetime.CpsTime, exclude []string) (mongo.Cursor, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetAllWithLastUpdateDateBefore", ctx, time, exclude)
	ret0, _ := ret[0].(mongo.Cursor)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetAllWithLastUpdateDateBefore indicates an expected call of GetAllWithLastUpdateDateBefore.
func (mr *MockAdapterMockRecorder) GetAllWithLastUpdateDateBefore(ctx, time, exclude any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllWithLastUpdateDateBefore", reflect.TypeOf((*MockAdapter)(nil).GetAllWithLastUpdateDateBefore), ctx, time, exclude)
}

// GetIDs mocks base method.
func (m *MockAdapter) GetIDs(ctx context.Context, filter map[string]any, ids *[]any) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetIDs", ctx, filter, ids)
	ret0, _ := ret[0].(error)
	return ret0
}

// GetIDs indicates an expected call of GetIDs.
func (mr *MockAdapterMockRecorder) GetIDs(ctx, filter, ids any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetIDs", reflect.TypeOf((*MockAdapter)(nil).GetIDs), ctx, filter, ids)
}

// GetWithIdleSince mocks base method.
func (m *MockAdapter) GetWithIdleSince(ctx context.Context) (mongo.Cursor, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetWithIdleSince", ctx)
	ret0, _ := ret[0].(mongo.Cursor)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetWithIdleSince indicates an expected call of GetWithIdleSince.
func (mr *MockAdapterMockRecorder) GetWithIdleSince(ctx any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWithIdleSince", reflect.TypeOf((*MockAdapter)(nil).GetWithIdleSince), ctx)
}

// Insert mocks base method.
func (m *MockAdapter) Insert(ctx context.Context, entity types.Entity) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Insert", ctx, entity)
	ret0, _ := ret[0].(error)
	return ret0
}

// Insert indicates an expected call of Insert.
func (mr *MockAdapterMockRecorder) Insert(ctx, entity any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Insert", reflect.TypeOf((*MockAdapter)(nil).Insert), ctx, entity)
}

// Update mocks base method.
func (m *MockAdapter) Update(ctx context.Context, entity types.Entity) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Update", ctx, entity)
	ret0, _ := ret[0].(error)
	return ret0
}

// Update indicates an expected call of Update.
func (mr *MockAdapterMockRecorder) Update(ctx, entity any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockAdapter)(nil).Update), ctx, entity)
}

// UpdateComponentInfos mocks base method.
func (m *MockAdapter) UpdateComponentInfos(ctx context.Context, id, componentID string) (map[string]types.Info, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "UpdateComponentInfos", ctx, id, componentID)
	ret0, _ := ret[0].(map[string]types.Info)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// UpdateComponentInfos indicates an expected call of UpdateComponentInfos.
func (mr *MockAdapterMockRecorder) UpdateComponentInfos(ctx, id, componentID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateComponentInfos", reflect.TypeOf((*MockAdapter)(nil).UpdateComponentInfos), ctx, id, componentID)
}

// UpdateComponentInfosByComponent mocks base method.
func (m *MockAdapter) UpdateComponentInfosByComponent(ctx context.Context, componentID string) ([]string, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "UpdateComponentInfosByComponent", ctx, componentID)
	ret0, _ := ret[0].([]string)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// UpdateComponentInfosByComponent indicates an expected call of UpdateComponentInfosByComponent.
func (mr *MockAdapterMockRecorder) UpdateComponentInfosByComponent(ctx, componentID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateComponentInfosByComponent", reflect.TypeOf((*MockAdapter)(nil).UpdateComponentInfosByComponent), ctx, componentID)
}

// UpdateIdleFields mocks base method.
func (m *MockAdapter) UpdateIdleFields(ctx context.Context, id string, idleSince *datetime.CpsTime, lastIdleRuleApply string) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "UpdateIdleFields", ctx, id, idleSince, lastIdleRuleApply)
	ret0, _ := ret[0].(error)
	return ret0
}

// UpdateIdleFields indicates an expected call of UpdateIdleFields.
func (mr *MockAdapterMockRecorder) UpdateIdleFields(ctx, id, idleSince, lastIdleRuleApply any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateIdleFields", reflect.TypeOf((*MockAdapter)(nil).UpdateIdleFields), ctx, id, idleSince, lastIdleRuleApply)
}

// UpdateLastEventDate mocks base method.
func (m *MockAdapter) UpdateLastEventDate(ctx context.Context, ids []string, time datetime.CpsTime) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "UpdateLastEventDate", ctx, ids, time)
	ret0, _ := ret[0].(error)
	return ret0
}

// UpdateLastEventDate indicates an expected call of UpdateLastEventDate.
func (mr *MockAdapterMockRecorder) UpdateLastEventDate(ctx, ids, time any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateLastEventDate", reflect.TypeOf((*MockAdapter)(nil).UpdateLastEventDate), ctx, ids, time)
}

// UpdatePbehaviorInfo mocks base method.
func (m *MockAdapter) UpdatePbehaviorInfo(ctx context.Context, id string, info types.PbehaviorInfo) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "UpdatePbehaviorInfo", ctx, id, info)
	ret0, _ := ret[0].(error)
	return ret0
}

// UpdatePbehaviorInfo indicates an expected call of UpdatePbehaviorInfo.
func (mr *MockAdapterMockRecorder) UpdatePbehaviorInfo(ctx, id, info any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePbehaviorInfo", reflect.TypeOf((*MockAdapter)(nil).UpdatePbehaviorInfo), ctx, id, info)
}

// UpsertMany mocks base method.
func (m *MockAdapter) UpsertMany(ctx context.Context, entities []types.Entity) (map[string]bool, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "UpsertMany", ctx, entities)
	ret0, _ := ret[0].(map[string]bool)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// UpsertMany indicates an expected call of UpsertMany.
func (mr *MockAdapterMockRecorder) UpsertMany(ctx, entities any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertMany", reflect.TypeOf((*MockAdapter)(nil).UpsertMany), ctx, entities)
}
