//                           _       _
// __      _____  __ ___   ___  __ _| |_ ___
// \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \
//  \ V  V /  __/ (_| |\ V /| | (_| | ||  __/
//   \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___|
//
//  Copyright © 2016 - 2026 Weaviate B.V. All rights reserved.
//
//  CONTACT: hello@weaviate.io
//

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

package mocks

import (
	context "context"

	metadata "google.golang.org/grpc/metadata"

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

	protocol "github.com/weaviate/weaviate/grpc/generated/protocol/v1"
)

// MockWeaviate_BatchStreamServer is an autogenerated mock type for the Weaviate_BatchStreamServer type
type MockWeaviate_BatchStreamServer[Req interface{}, Res interface{}] struct {
	mock.Mock
}

type MockWeaviate_BatchStreamServer_Expecter[Req interface{}, Res interface{}] struct {
	mock *mock.Mock
}

func (_m *MockWeaviate_BatchStreamServer[Req, Res]) EXPECT() *MockWeaviate_BatchStreamServer_Expecter[Req, Res] {
	return &MockWeaviate_BatchStreamServer_Expecter[Req, Res]{mock: &_m.Mock}
}

// Context provides a mock function with no fields
func (_m *MockWeaviate_BatchStreamServer[Req, Res]) Context() context.Context {
	ret := _m.Called()

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

	var r0 context.Context
	if rf, ok := ret.Get(0).(func() context.Context); ok {
		r0 = rf()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(context.Context)
		}
	}

	return r0
}

// MockWeaviate_BatchStreamServer_Context_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Context'
type MockWeaviate_BatchStreamServer_Context_Call[Req interface{}, Res interface{}] struct {
	*mock.Call
}

// Context is a helper method to define mock.On call
func (_e *MockWeaviate_BatchStreamServer_Expecter[Req, Res]) Context() *MockWeaviate_BatchStreamServer_Context_Call[Req, Res] {
	return &MockWeaviate_BatchStreamServer_Context_Call[Req, Res]{Call: _e.mock.On("Context")}
}

func (_c *MockWeaviate_BatchStreamServer_Context_Call[Req, Res]) Run(run func()) *MockWeaviate_BatchStreamServer_Context_Call[Req, Res] {
	_c.Call.Run(func(args mock.Arguments) {
		run()
	})
	return _c
}

func (_c *MockWeaviate_BatchStreamServer_Context_Call[Req, Res]) Return(_a0 context.Context) *MockWeaviate_BatchStreamServer_Context_Call[Req, Res] {
	_c.Call.Return(_a0)
	return _c
}

func (_c *MockWeaviate_BatchStreamServer_Context_Call[Req, Res]) RunAndReturn(run func() context.Context) *MockWeaviate_BatchStreamServer_Context_Call[Req, Res] {
	_c.Call.Return(run)
	return _c
}

// Recv provides a mock function with no fields
func (_m *MockWeaviate_BatchStreamServer[Req, Res]) Recv() (*protocol.BatchStreamRequest, error) {
	ret := _m.Called()

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

	var r0 *protocol.BatchStreamRequest
	var r1 error
	if rf, ok := ret.Get(0).(func() (*protocol.BatchStreamRequest, error)); ok {
		return rf()
	}
	if rf, ok := ret.Get(0).(func() *protocol.BatchStreamRequest); ok {
		r0 = rf()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*protocol.BatchStreamRequest)
		}
	}

	if rf, ok := ret.Get(1).(func() error); ok {
		r1 = rf()
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// MockWeaviate_BatchStreamServer_Recv_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Recv'
type MockWeaviate_BatchStreamServer_Recv_Call[Req interface{}, Res interface{}] struct {
	*mock.Call
}

// Recv is a helper method to define mock.On call
func (_e *MockWeaviate_BatchStreamServer_Expecter[Req, Res]) Recv() *MockWeaviate_BatchStreamServer_Recv_Call[Req, Res] {
	return &MockWeaviate_BatchStreamServer_Recv_Call[Req, Res]{Call: _e.mock.On("Recv")}
}

func (_c *MockWeaviate_BatchStreamServer_Recv_Call[Req, Res]) Run(run func()) *MockWeaviate_BatchStreamServer_Recv_Call[Req, Res] {
	_c.Call.Run(func(args mock.Arguments) {
		run()
	})
	return _c
}

func (_c *MockWeaviate_BatchStreamServer_Recv_Call[Req, Res]) Return(_a0 *protocol.BatchStreamRequest, _a1 error) *MockWeaviate_BatchStreamServer_Recv_Call[Req, Res] {
	_c.Call.Return(_a0, _a1)
	return _c
}

func (_c *MockWeaviate_BatchStreamServer_Recv_Call[Req, Res]) RunAndReturn(run func() (*protocol.BatchStreamRequest, error)) *MockWeaviate_BatchStreamServer_Recv_Call[Req, Res] {
	_c.Call.Return(run)
	return _c
}

// RecvMsg provides a mock function with given fields: m
func (_m *MockWeaviate_BatchStreamServer[Req, Res]) RecvMsg(m interface{}) error {
	ret := _m.Called(m)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(interface{}) error); ok {
		r0 = rf(m)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// MockWeaviate_BatchStreamServer_RecvMsg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RecvMsg'
type MockWeaviate_BatchStreamServer_RecvMsg_Call[Req interface{}, Res interface{}] struct {
	*mock.Call
}

// RecvMsg is a helper method to define mock.On call
//   - m interface{}
func (_e *MockWeaviate_BatchStreamServer_Expecter[Req, Res]) RecvMsg(m interface{}) *MockWeaviate_BatchStreamServer_RecvMsg_Call[Req, Res] {
	return &MockWeaviate_BatchStreamServer_RecvMsg_Call[Req, Res]{Call: _e.mock.On("RecvMsg", m)}
}

func (_c *MockWeaviate_BatchStreamServer_RecvMsg_Call[Req, Res]) Run(run func(m interface{})) *MockWeaviate_BatchStreamServer_RecvMsg_Call[Req, Res] {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(interface{}))
	})
	return _c
}

func (_c *MockWeaviate_BatchStreamServer_RecvMsg_Call[Req, Res]) Return(_a0 error) *MockWeaviate_BatchStreamServer_RecvMsg_Call[Req, Res] {
	_c.Call.Return(_a0)
	return _c
}

func (_c *MockWeaviate_BatchStreamServer_RecvMsg_Call[Req, Res]) RunAndReturn(run func(interface{}) error) *MockWeaviate_BatchStreamServer_RecvMsg_Call[Req, Res] {
	_c.Call.Return(run)
	return _c
}

// Send provides a mock function with given fields: _a0
func (_m *MockWeaviate_BatchStreamServer[Req, Res]) Send(_a0 *protocol.BatchStreamReply) error {
	ret := _m.Called(_a0)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(*protocol.BatchStreamReply) error); ok {
		r0 = rf(_a0)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// MockWeaviate_BatchStreamServer_Send_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Send'
type MockWeaviate_BatchStreamServer_Send_Call[Req interface{}, Res interface{}] struct {
	*mock.Call
}

// Send is a helper method to define mock.On call
//   - _a0 *protocol.BatchStreamReply
func (_e *MockWeaviate_BatchStreamServer_Expecter[Req, Res]) Send(_a0 interface{}) *MockWeaviate_BatchStreamServer_Send_Call[Req, Res] {
	return &MockWeaviate_BatchStreamServer_Send_Call[Req, Res]{Call: _e.mock.On("Send", _a0)}
}

func (_c *MockWeaviate_BatchStreamServer_Send_Call[Req, Res]) Run(run func(_a0 *protocol.BatchStreamReply)) *MockWeaviate_BatchStreamServer_Send_Call[Req, Res] {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(*protocol.BatchStreamReply))
	})
	return _c
}

func (_c *MockWeaviate_BatchStreamServer_Send_Call[Req, Res]) Return(_a0 error) *MockWeaviate_BatchStreamServer_Send_Call[Req, Res] {
	_c.Call.Return(_a0)
	return _c
}

func (_c *MockWeaviate_BatchStreamServer_Send_Call[Req, Res]) RunAndReturn(run func(*protocol.BatchStreamReply) error) *MockWeaviate_BatchStreamServer_Send_Call[Req, Res] {
	_c.Call.Return(run)
	return _c
}

// SendHeader provides a mock function with given fields: _a0
func (_m *MockWeaviate_BatchStreamServer[Req, Res]) SendHeader(_a0 metadata.MD) error {
	ret := _m.Called(_a0)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(metadata.MD) error); ok {
		r0 = rf(_a0)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// MockWeaviate_BatchStreamServer_SendHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendHeader'
type MockWeaviate_BatchStreamServer_SendHeader_Call[Req interface{}, Res interface{}] struct {
	*mock.Call
}

// SendHeader is a helper method to define mock.On call
//   - _a0 metadata.MD
func (_e *MockWeaviate_BatchStreamServer_Expecter[Req, Res]) SendHeader(_a0 interface{}) *MockWeaviate_BatchStreamServer_SendHeader_Call[Req, Res] {
	return &MockWeaviate_BatchStreamServer_SendHeader_Call[Req, Res]{Call: _e.mock.On("SendHeader", _a0)}
}

func (_c *MockWeaviate_BatchStreamServer_SendHeader_Call[Req, Res]) Run(run func(_a0 metadata.MD)) *MockWeaviate_BatchStreamServer_SendHeader_Call[Req, Res] {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(metadata.MD))
	})
	return _c
}

func (_c *MockWeaviate_BatchStreamServer_SendHeader_Call[Req, Res]) Return(_a0 error) *MockWeaviate_BatchStreamServer_SendHeader_Call[Req, Res] {
	_c.Call.Return(_a0)
	return _c
}

func (_c *MockWeaviate_BatchStreamServer_SendHeader_Call[Req, Res]) RunAndReturn(run func(metadata.MD) error) *MockWeaviate_BatchStreamServer_SendHeader_Call[Req, Res] {
	_c.Call.Return(run)
	return _c
}

// SendMsg provides a mock function with given fields: m
func (_m *MockWeaviate_BatchStreamServer[Req, Res]) SendMsg(m interface{}) error {
	ret := _m.Called(m)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(interface{}) error); ok {
		r0 = rf(m)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// MockWeaviate_BatchStreamServer_SendMsg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendMsg'
type MockWeaviate_BatchStreamServer_SendMsg_Call[Req interface{}, Res interface{}] struct {
	*mock.Call
}

// SendMsg is a helper method to define mock.On call
//   - m interface{}
func (_e *MockWeaviate_BatchStreamServer_Expecter[Req, Res]) SendMsg(m interface{}) *MockWeaviate_BatchStreamServer_SendMsg_Call[Req, Res] {
	return &MockWeaviate_BatchStreamServer_SendMsg_Call[Req, Res]{Call: _e.mock.On("SendMsg", m)}
}

func (_c *MockWeaviate_BatchStreamServer_SendMsg_Call[Req, Res]) Run(run func(m interface{})) *MockWeaviate_BatchStreamServer_SendMsg_Call[Req, Res] {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(interface{}))
	})
	return _c
}

func (_c *MockWeaviate_BatchStreamServer_SendMsg_Call[Req, Res]) Return(_a0 error) *MockWeaviate_BatchStreamServer_SendMsg_Call[Req, Res] {
	_c.Call.Return(_a0)
	return _c
}

func (_c *MockWeaviate_BatchStreamServer_SendMsg_Call[Req, Res]) RunAndReturn(run func(interface{}) error) *MockWeaviate_BatchStreamServer_SendMsg_Call[Req, Res] {
	_c.Call.Return(run)
	return _c
}

// SetHeader provides a mock function with given fields: _a0
func (_m *MockWeaviate_BatchStreamServer[Req, Res]) SetHeader(_a0 metadata.MD) error {
	ret := _m.Called(_a0)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(metadata.MD) error); ok {
		r0 = rf(_a0)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// MockWeaviate_BatchStreamServer_SetHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHeader'
type MockWeaviate_BatchStreamServer_SetHeader_Call[Req interface{}, Res interface{}] struct {
	*mock.Call
}

// SetHeader is a helper method to define mock.On call
//   - _a0 metadata.MD
func (_e *MockWeaviate_BatchStreamServer_Expecter[Req, Res]) SetHeader(_a0 interface{}) *MockWeaviate_BatchStreamServer_SetHeader_Call[Req, Res] {
	return &MockWeaviate_BatchStreamServer_SetHeader_Call[Req, Res]{Call: _e.mock.On("SetHeader", _a0)}
}

func (_c *MockWeaviate_BatchStreamServer_SetHeader_Call[Req, Res]) Run(run func(_a0 metadata.MD)) *MockWeaviate_BatchStreamServer_SetHeader_Call[Req, Res] {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(metadata.MD))
	})
	return _c
}

func (_c *MockWeaviate_BatchStreamServer_SetHeader_Call[Req, Res]) Return(_a0 error) *MockWeaviate_BatchStreamServer_SetHeader_Call[Req, Res] {
	_c.Call.Return(_a0)
	return _c
}

func (_c *MockWeaviate_BatchStreamServer_SetHeader_Call[Req, Res]) RunAndReturn(run func(metadata.MD) error) *MockWeaviate_BatchStreamServer_SetHeader_Call[Req, Res] {
	_c.Call.Return(run)
	return _c
}

// SetTrailer provides a mock function with given fields: _a0
func (_m *MockWeaviate_BatchStreamServer[Req, Res]) SetTrailer(_a0 metadata.MD) {
	_m.Called(_a0)
}

// MockWeaviate_BatchStreamServer_SetTrailer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetTrailer'
type MockWeaviate_BatchStreamServer_SetTrailer_Call[Req interface{}, Res interface{}] struct {
	*mock.Call
}

// SetTrailer is a helper method to define mock.On call
//   - _a0 metadata.MD
func (_e *MockWeaviate_BatchStreamServer_Expecter[Req, Res]) SetTrailer(_a0 interface{}) *MockWeaviate_BatchStreamServer_SetTrailer_Call[Req, Res] {
	return &MockWeaviate_BatchStreamServer_SetTrailer_Call[Req, Res]{Call: _e.mock.On("SetTrailer", _a0)}
}

func (_c *MockWeaviate_BatchStreamServer_SetTrailer_Call[Req, Res]) Run(run func(_a0 metadata.MD)) *MockWeaviate_BatchStreamServer_SetTrailer_Call[Req, Res] {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(metadata.MD))
	})
	return _c
}

func (_c *MockWeaviate_BatchStreamServer_SetTrailer_Call[Req, Res]) Return() *MockWeaviate_BatchStreamServer_SetTrailer_Call[Req, Res] {
	_c.Call.Return()
	return _c
}

func (_c *MockWeaviate_BatchStreamServer_SetTrailer_Call[Req, Res]) RunAndReturn(run func(metadata.MD)) *MockWeaviate_BatchStreamServer_SetTrailer_Call[Req, Res] {
	_c.Run(run)
	return _c
}

// NewMockWeaviate_BatchStreamServer creates a new instance of MockWeaviate_BatchStreamServer. 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 NewMockWeaviate_BatchStreamServer[Req interface{}, Res interface{}](t interface {
	mock.TestingT
	Cleanup(func())
}) *MockWeaviate_BatchStreamServer[Req, Res] {
	mock := &MockWeaviate_BatchStreamServer[Req, Res]{}
	mock.Mock.Test(t)

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

	return mock
}
