// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/erigontech/erigon/node/gointerfaces/remoteproto (interfaces: KV_StateChangesClient)
//
// Generated by this command:
//
//	mockgen -typed=true -destination=./kv_state_changes_client_mock.go -package=remoteproto . KV_StateChangesClient
//

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

import (
	context "context"
	reflect "reflect"

	gomock "go.uber.org/mock/gomock"
	metadata "google.golang.org/grpc/metadata"
)

// MockKV_StateChangesClient is a mock of KV_StateChangesClient interface.
type MockKV_StateChangesClient[Res any] struct {
	ctrl     *gomock.Controller
	recorder *MockKV_StateChangesClientMockRecorder[Res]
	isgomock struct{}
}

// MockKV_StateChangesClientMockRecorder is the mock recorder for MockKV_StateChangesClient.
type MockKV_StateChangesClientMockRecorder[Res any] struct {
	mock *MockKV_StateChangesClient[Res]
}

// NewMockKV_StateChangesClient creates a new mock instance.
func NewMockKV_StateChangesClient[Res any](ctrl *gomock.Controller) *MockKV_StateChangesClient[Res] {
	mock := &MockKV_StateChangesClient[Res]{ctrl: ctrl}
	mock.recorder = &MockKV_StateChangesClientMockRecorder[Res]{mock}
	return mock
}

// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockKV_StateChangesClient[Res]) EXPECT() *MockKV_StateChangesClientMockRecorder[Res] {
	return m.recorder
}

// CloseSend mocks base method.
func (m *MockKV_StateChangesClient[Res]) CloseSend() error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "CloseSend")
	ret0, _ := ret[0].(error)
	return ret0
}

// CloseSend indicates an expected call of CloseSend.
func (mr *MockKV_StateChangesClientMockRecorder[Res]) CloseSend() *MockKV_StateChangesClientCloseSendCall[Res] {
	mr.mock.ctrl.T.Helper()
	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseSend", reflect.TypeOf((*MockKV_StateChangesClient[Res])(nil).CloseSend))
	return &MockKV_StateChangesClientCloseSendCall[Res]{Call: call}
}

// MockKV_StateChangesClientCloseSendCall wrap *gomock.Call
type MockKV_StateChangesClientCloseSendCall[Res any] struct {
	*gomock.Call
}

// Return rewrite *gomock.Call.Return
func (c *MockKV_StateChangesClientCloseSendCall[Res]) Return(arg0 error) *MockKV_StateChangesClientCloseSendCall[Res] {
	c.Call = c.Call.Return(arg0)
	return c
}

// Do rewrite *gomock.Call.Do
func (c *MockKV_StateChangesClientCloseSendCall[Res]) Do(f func() error) *MockKV_StateChangesClientCloseSendCall[Res] {
	c.Call = c.Call.Do(f)
	return c
}

// DoAndReturn rewrite *gomock.Call.DoAndReturn
func (c *MockKV_StateChangesClientCloseSendCall[Res]) DoAndReturn(f func() error) *MockKV_StateChangesClientCloseSendCall[Res] {
	c.Call = c.Call.DoAndReturn(f)
	return c
}

// Context mocks base method.
func (m *MockKV_StateChangesClient[Res]) Context() context.Context {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Context")
	ret0, _ := ret[0].(context.Context)
	return ret0
}

// Context indicates an expected call of Context.
func (mr *MockKV_StateChangesClientMockRecorder[Res]) Context() *MockKV_StateChangesClientContextCall[Res] {
	mr.mock.ctrl.T.Helper()
	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockKV_StateChangesClient[Res])(nil).Context))
	return &MockKV_StateChangesClientContextCall[Res]{Call: call}
}

// MockKV_StateChangesClientContextCall wrap *gomock.Call
type MockKV_StateChangesClientContextCall[Res any] struct {
	*gomock.Call
}

// Return rewrite *gomock.Call.Return
func (c *MockKV_StateChangesClientContextCall[Res]) Return(arg0 context.Context) *MockKV_StateChangesClientContextCall[Res] {
	c.Call = c.Call.Return(arg0)
	return c
}

// Do rewrite *gomock.Call.Do
func (c *MockKV_StateChangesClientContextCall[Res]) Do(f func() context.Context) *MockKV_StateChangesClientContextCall[Res] {
	c.Call = c.Call.Do(f)
	return c
}

// DoAndReturn rewrite *gomock.Call.DoAndReturn
func (c *MockKV_StateChangesClientContextCall[Res]) DoAndReturn(f func() context.Context) *MockKV_StateChangesClientContextCall[Res] {
	c.Call = c.Call.DoAndReturn(f)
	return c
}

// Header mocks base method.
func (m *MockKV_StateChangesClient[Res]) Header() (metadata.MD, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Header")
	ret0, _ := ret[0].(metadata.MD)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// Header indicates an expected call of Header.
func (mr *MockKV_StateChangesClientMockRecorder[Res]) Header() *MockKV_StateChangesClientHeaderCall[Res] {
	mr.mock.ctrl.T.Helper()
	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Header", reflect.TypeOf((*MockKV_StateChangesClient[Res])(nil).Header))
	return &MockKV_StateChangesClientHeaderCall[Res]{Call: call}
}

// MockKV_StateChangesClientHeaderCall wrap *gomock.Call
type MockKV_StateChangesClientHeaderCall[Res any] struct {
	*gomock.Call
}

// Return rewrite *gomock.Call.Return
func (c *MockKV_StateChangesClientHeaderCall[Res]) Return(arg0 metadata.MD, arg1 error) *MockKV_StateChangesClientHeaderCall[Res] {
	c.Call = c.Call.Return(arg0, arg1)
	return c
}

// Do rewrite *gomock.Call.Do
func (c *MockKV_StateChangesClientHeaderCall[Res]) Do(f func() (metadata.MD, error)) *MockKV_StateChangesClientHeaderCall[Res] {
	c.Call = c.Call.Do(f)
	return c
}

// DoAndReturn rewrite *gomock.Call.DoAndReturn
func (c *MockKV_StateChangesClientHeaderCall[Res]) DoAndReturn(f func() (metadata.MD, error)) *MockKV_StateChangesClientHeaderCall[Res] {
	c.Call = c.Call.DoAndReturn(f)
	return c
}

// Recv mocks base method.
func (m *MockKV_StateChangesClient[Res]) Recv() (*StateChangeBatch, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Recv")
	ret0, _ := ret[0].(*StateChangeBatch)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// Recv indicates an expected call of Recv.
func (mr *MockKV_StateChangesClientMockRecorder[Res]) Recv() *MockKV_StateChangesClientRecvCall[Res] {
	mr.mock.ctrl.T.Helper()
	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Recv", reflect.TypeOf((*MockKV_StateChangesClient[Res])(nil).Recv))
	return &MockKV_StateChangesClientRecvCall[Res]{Call: call}
}

// MockKV_StateChangesClientRecvCall wrap *gomock.Call
type MockKV_StateChangesClientRecvCall[Res any] struct {
	*gomock.Call
}

// Return rewrite *gomock.Call.Return
func (c *MockKV_StateChangesClientRecvCall[Res]) Return(arg0 *StateChangeBatch, arg1 error) *MockKV_StateChangesClientRecvCall[Res] {
	c.Call = c.Call.Return(arg0, arg1)
	return c
}

// Do rewrite *gomock.Call.Do
func (c *MockKV_StateChangesClientRecvCall[Res]) Do(f func() (*StateChangeBatch, error)) *MockKV_StateChangesClientRecvCall[Res] {
	c.Call = c.Call.Do(f)
	return c
}

// DoAndReturn rewrite *gomock.Call.DoAndReturn
func (c *MockKV_StateChangesClientRecvCall[Res]) DoAndReturn(f func() (*StateChangeBatch, error)) *MockKV_StateChangesClientRecvCall[Res] {
	c.Call = c.Call.DoAndReturn(f)
	return c
}

// RecvMsg mocks base method.
func (m_2 *MockKV_StateChangesClient[Res]) RecvMsg(m any) error {
	m_2.ctrl.T.Helper()
	ret := m_2.ctrl.Call(m_2, "RecvMsg", m)
	ret0, _ := ret[0].(error)
	return ret0
}

// RecvMsg indicates an expected call of RecvMsg.
func (mr *MockKV_StateChangesClientMockRecorder[Res]) RecvMsg(m any) *MockKV_StateChangesClientRecvMsgCall[Res] {
	mr.mock.ctrl.T.Helper()
	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockKV_StateChangesClient[Res])(nil).RecvMsg), m)
	return &MockKV_StateChangesClientRecvMsgCall[Res]{Call: call}
}

// MockKV_StateChangesClientRecvMsgCall wrap *gomock.Call
type MockKV_StateChangesClientRecvMsgCall[Res any] struct {
	*gomock.Call
}

// Return rewrite *gomock.Call.Return
func (c *MockKV_StateChangesClientRecvMsgCall[Res]) Return(arg0 error) *MockKV_StateChangesClientRecvMsgCall[Res] {
	c.Call = c.Call.Return(arg0)
	return c
}

// Do rewrite *gomock.Call.Do
func (c *MockKV_StateChangesClientRecvMsgCall[Res]) Do(f func(any) error) *MockKV_StateChangesClientRecvMsgCall[Res] {
	c.Call = c.Call.Do(f)
	return c
}

// DoAndReturn rewrite *gomock.Call.DoAndReturn
func (c *MockKV_StateChangesClientRecvMsgCall[Res]) DoAndReturn(f func(any) error) *MockKV_StateChangesClientRecvMsgCall[Res] {
	c.Call = c.Call.DoAndReturn(f)
	return c
}

// SendMsg mocks base method.
func (m_2 *MockKV_StateChangesClient[Res]) SendMsg(m any) error {
	m_2.ctrl.T.Helper()
	ret := m_2.ctrl.Call(m_2, "SendMsg", m)
	ret0, _ := ret[0].(error)
	return ret0
}

// SendMsg indicates an expected call of SendMsg.
func (mr *MockKV_StateChangesClientMockRecorder[Res]) SendMsg(m any) *MockKV_StateChangesClientSendMsgCall[Res] {
	mr.mock.ctrl.T.Helper()
	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockKV_StateChangesClient[Res])(nil).SendMsg), m)
	return &MockKV_StateChangesClientSendMsgCall[Res]{Call: call}
}

// MockKV_StateChangesClientSendMsgCall wrap *gomock.Call
type MockKV_StateChangesClientSendMsgCall[Res any] struct {
	*gomock.Call
}

// Return rewrite *gomock.Call.Return
func (c *MockKV_StateChangesClientSendMsgCall[Res]) Return(arg0 error) *MockKV_StateChangesClientSendMsgCall[Res] {
	c.Call = c.Call.Return(arg0)
	return c
}

// Do rewrite *gomock.Call.Do
func (c *MockKV_StateChangesClientSendMsgCall[Res]) Do(f func(any) error) *MockKV_StateChangesClientSendMsgCall[Res] {
	c.Call = c.Call.Do(f)
	return c
}

// DoAndReturn rewrite *gomock.Call.DoAndReturn
func (c *MockKV_StateChangesClientSendMsgCall[Res]) DoAndReturn(f func(any) error) *MockKV_StateChangesClientSendMsgCall[Res] {
	c.Call = c.Call.DoAndReturn(f)
	return c
}

// Trailer mocks base method.
func (m *MockKV_StateChangesClient[Res]) Trailer() metadata.MD {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Trailer")
	ret0, _ := ret[0].(metadata.MD)
	return ret0
}

// Trailer indicates an expected call of Trailer.
func (mr *MockKV_StateChangesClientMockRecorder[Res]) Trailer() *MockKV_StateChangesClientTrailerCall[Res] {
	mr.mock.ctrl.T.Helper()
	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Trailer", reflect.TypeOf((*MockKV_StateChangesClient[Res])(nil).Trailer))
	return &MockKV_StateChangesClientTrailerCall[Res]{Call: call}
}

// MockKV_StateChangesClientTrailerCall wrap *gomock.Call
type MockKV_StateChangesClientTrailerCall[Res any] struct {
	*gomock.Call
}

// Return rewrite *gomock.Call.Return
func (c *MockKV_StateChangesClientTrailerCall[Res]) Return(arg0 metadata.MD) *MockKV_StateChangesClientTrailerCall[Res] {
	c.Call = c.Call.Return(arg0)
	return c
}

// Do rewrite *gomock.Call.Do
func (c *MockKV_StateChangesClientTrailerCall[Res]) Do(f func() metadata.MD) *MockKV_StateChangesClientTrailerCall[Res] {
	c.Call = c.Call.Do(f)
	return c
}

// DoAndReturn rewrite *gomock.Call.DoAndReturn
func (c *MockKV_StateChangesClientTrailerCall[Res]) DoAndReturn(f func() metadata.MD) *MockKV_StateChangesClientTrailerCall[Res] {
	c.Call = c.Call.DoAndReturn(f)
	return c
}
