// Code generated by MockGen. DO NOT EDIT. // Source: ../manager_grpc.pb.go // // Generated by this command: // // mockgen -destination manager_mock.go -source ../manager_grpc.pb.go -package mocks // // Package mocks is a generated GoMock package. package mocks import ( context "context" reflect "reflect" manager "d7y.io/api/v2/pkg/apis/manager/v2" gomock "go.uber.org/mock/gomock" grpc "google.golang.org/grpc" metadata "google.golang.org/grpc/metadata" emptypb "google.golang.org/protobuf/types/known/emptypb" ) // MockManagerClient is a mock of ManagerClient interface. type MockManagerClient struct { ctrl *gomock.Controller recorder *MockManagerClientMockRecorder isgomock struct{} } // MockManagerClientMockRecorder is the mock recorder for MockManagerClient. type MockManagerClientMockRecorder struct { mock *MockManagerClient } // NewMockManagerClient creates a new mock instance. func NewMockManagerClient(ctrl *gomock.Controller) *MockManagerClient { mock := &MockManagerClient{ctrl: ctrl} mock.recorder = &MockManagerClientMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. func (m *MockManagerClient) EXPECT() *MockManagerClientMockRecorder { return m.recorder } // DeleteSeedPeer mocks base method. func (m *MockManagerClient) DeleteSeedPeer(ctx context.Context, in *manager.DeleteSeedPeerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { m.ctrl.T.Helper() varargs := []any{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "DeleteSeedPeer", varargs...) ret0, _ := ret[0].(*emptypb.Empty) ret1, _ := ret[1].(error) return ret0, ret1 } // DeleteSeedPeer indicates an expected call of DeleteSeedPeer. func (mr *MockManagerClientMockRecorder) DeleteSeedPeer(ctx, in any, opts ...any) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]any{ctx, in}, opts...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSeedPeer", reflect.TypeOf((*MockManagerClient)(nil).DeleteSeedPeer), varargs...) } // GetScheduler mocks base method. func (m *MockManagerClient) GetScheduler(ctx context.Context, in *manager.GetSchedulerRequest, opts ...grpc.CallOption) (*manager.Scheduler, error) { m.ctrl.T.Helper() varargs := []any{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetScheduler", varargs...) ret0, _ := ret[0].(*manager.Scheduler) ret1, _ := ret[1].(error) return ret0, ret1 } // GetScheduler indicates an expected call of GetScheduler. func (mr *MockManagerClientMockRecorder) GetScheduler(ctx, in any, opts ...any) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]any{ctx, in}, opts...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetScheduler", reflect.TypeOf((*MockManagerClient)(nil).GetScheduler), varargs...) } // GetSeedPeer mocks base method. func (m *MockManagerClient) GetSeedPeer(ctx context.Context, in *manager.GetSeedPeerRequest, opts ...grpc.CallOption) (*manager.SeedPeer, error) { m.ctrl.T.Helper() varargs := []any{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetSeedPeer", varargs...) ret0, _ := ret[0].(*manager.SeedPeer) ret1, _ := ret[1].(error) return ret0, ret1 } // GetSeedPeer indicates an expected call of GetSeedPeer. func (mr *MockManagerClientMockRecorder) GetSeedPeer(ctx, in any, opts ...any) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]any{ctx, in}, opts...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSeedPeer", reflect.TypeOf((*MockManagerClient)(nil).GetSeedPeer), varargs...) } // KeepAlive mocks base method. func (m *MockManagerClient) KeepAlive(ctx context.Context, opts ...grpc.CallOption) (manager.Manager_KeepAliveClient, error) { m.ctrl.T.Helper() varargs := []any{ctx} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "KeepAlive", varargs...) ret0, _ := ret[0].(manager.Manager_KeepAliveClient) ret1, _ := ret[1].(error) return ret0, ret1 } // KeepAlive indicates an expected call of KeepAlive. func (mr *MockManagerClientMockRecorder) KeepAlive(ctx any, opts ...any) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]any{ctx}, opts...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KeepAlive", reflect.TypeOf((*MockManagerClient)(nil).KeepAlive), varargs...) } // ListApplications mocks base method. func (m *MockManagerClient) ListApplications(ctx context.Context, in *manager.ListApplicationsRequest, opts ...grpc.CallOption) (*manager.ListApplicationsResponse, error) { m.ctrl.T.Helper() varargs := []any{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ListApplications", varargs...) ret0, _ := ret[0].(*manager.ListApplicationsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } // ListApplications indicates an expected call of ListApplications. func (mr *MockManagerClientMockRecorder) ListApplications(ctx, in any, opts ...any) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]any{ctx, in}, opts...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListApplications", reflect.TypeOf((*MockManagerClient)(nil).ListApplications), varargs...) } // ListSchedulers mocks base method. func (m *MockManagerClient) ListSchedulers(ctx context.Context, in *manager.ListSchedulersRequest, opts ...grpc.CallOption) (*manager.ListSchedulersResponse, error) { m.ctrl.T.Helper() varargs := []any{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ListSchedulers", varargs...) ret0, _ := ret[0].(*manager.ListSchedulersResponse) ret1, _ := ret[1].(error) return ret0, ret1 } // ListSchedulers indicates an expected call of ListSchedulers. func (mr *MockManagerClientMockRecorder) ListSchedulers(ctx, in any, opts ...any) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]any{ctx, in}, opts...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSchedulers", reflect.TypeOf((*MockManagerClient)(nil).ListSchedulers), varargs...) } // ListSeedPeers mocks base method. func (m *MockManagerClient) ListSeedPeers(ctx context.Context, in *manager.ListSeedPeersRequest, opts ...grpc.CallOption) (*manager.ListSeedPeersResponse, error) { m.ctrl.T.Helper() varargs := []any{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "ListSeedPeers", varargs...) ret0, _ := ret[0].(*manager.ListSeedPeersResponse) ret1, _ := ret[1].(error) return ret0, ret1 } // ListSeedPeers indicates an expected call of ListSeedPeers. func (mr *MockManagerClientMockRecorder) ListSeedPeers(ctx, in any, opts ...any) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]any{ctx, in}, opts...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSeedPeers", reflect.TypeOf((*MockManagerClient)(nil).ListSeedPeers), varargs...) } // UpdateScheduler mocks base method. func (m *MockManagerClient) UpdateScheduler(ctx context.Context, in *manager.UpdateSchedulerRequest, opts ...grpc.CallOption) (*manager.Scheduler, error) { m.ctrl.T.Helper() varargs := []any{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "UpdateScheduler", varargs...) ret0, _ := ret[0].(*manager.Scheduler) ret1, _ := ret[1].(error) return ret0, ret1 } // UpdateScheduler indicates an expected call of UpdateScheduler. func (mr *MockManagerClientMockRecorder) UpdateScheduler(ctx, in any, opts ...any) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]any{ctx, in}, opts...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateScheduler", reflect.TypeOf((*MockManagerClient)(nil).UpdateScheduler), varargs...) } // UpdateSeedPeer mocks base method. func (m *MockManagerClient) UpdateSeedPeer(ctx context.Context, in *manager.UpdateSeedPeerRequest, opts ...grpc.CallOption) (*manager.SeedPeer, error) { m.ctrl.T.Helper() varargs := []any{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "UpdateSeedPeer", varargs...) ret0, _ := ret[0].(*manager.SeedPeer) ret1, _ := ret[1].(error) return ret0, ret1 } // UpdateSeedPeer indicates an expected call of UpdateSeedPeer. func (mr *MockManagerClientMockRecorder) UpdateSeedPeer(ctx, in any, opts ...any) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]any{ctx, in}, opts...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSeedPeer", reflect.TypeOf((*MockManagerClient)(nil).UpdateSeedPeer), varargs...) } // MockManager_KeepAliveClient is a mock of Manager_KeepAliveClient interface. type MockManager_KeepAliveClient struct { ctrl *gomock.Controller recorder *MockManager_KeepAliveClientMockRecorder isgomock struct{} } // MockManager_KeepAliveClientMockRecorder is the mock recorder for MockManager_KeepAliveClient. type MockManager_KeepAliveClientMockRecorder struct { mock *MockManager_KeepAliveClient } // NewMockManager_KeepAliveClient creates a new mock instance. func NewMockManager_KeepAliveClient(ctrl *gomock.Controller) *MockManager_KeepAliveClient { mock := &MockManager_KeepAliveClient{ctrl: ctrl} mock.recorder = &MockManager_KeepAliveClientMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. func (m *MockManager_KeepAliveClient) EXPECT() *MockManager_KeepAliveClientMockRecorder { return m.recorder } // CloseAndRecv mocks base method. func (m *MockManager_KeepAliveClient) CloseAndRecv() (*emptypb.Empty, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CloseAndRecv") ret0, _ := ret[0].(*emptypb.Empty) ret1, _ := ret[1].(error) return ret0, ret1 } // CloseAndRecv indicates an expected call of CloseAndRecv. func (mr *MockManager_KeepAliveClientMockRecorder) CloseAndRecv() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseAndRecv", reflect.TypeOf((*MockManager_KeepAliveClient)(nil).CloseAndRecv)) } // CloseSend mocks base method. func (m *MockManager_KeepAliveClient) 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 *MockManager_KeepAliveClientMockRecorder) CloseSend() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseSend", reflect.TypeOf((*MockManager_KeepAliveClient)(nil).CloseSend)) } // Context mocks base method. func (m *MockManager_KeepAliveClient) 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 *MockManager_KeepAliveClientMockRecorder) Context() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockManager_KeepAliveClient)(nil).Context)) } // Header mocks base method. func (m *MockManager_KeepAliveClient) 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 *MockManager_KeepAliveClientMockRecorder) Header() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Header", reflect.TypeOf((*MockManager_KeepAliveClient)(nil).Header)) } // RecvMsg mocks base method. func (m_2 *MockManager_KeepAliveClient) 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 *MockManager_KeepAliveClientMockRecorder) RecvMsg(m any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockManager_KeepAliveClient)(nil).RecvMsg), m) } // Send mocks base method. func (m *MockManager_KeepAliveClient) Send(arg0 *manager.KeepAliveRequest) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Send", arg0) ret0, _ := ret[0].(error) return ret0 } // Send indicates an expected call of Send. func (mr *MockManager_KeepAliveClientMockRecorder) Send(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockManager_KeepAliveClient)(nil).Send), arg0) } // SendMsg mocks base method. func (m_2 *MockManager_KeepAliveClient) 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 *MockManager_KeepAliveClientMockRecorder) SendMsg(m any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockManager_KeepAliveClient)(nil).SendMsg), m) } // Trailer mocks base method. func (m *MockManager_KeepAliveClient) 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 *MockManager_KeepAliveClientMockRecorder) Trailer() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Trailer", reflect.TypeOf((*MockManager_KeepAliveClient)(nil).Trailer)) } // MockManagerServer is a mock of ManagerServer interface. type MockManagerServer struct { ctrl *gomock.Controller recorder *MockManagerServerMockRecorder isgomock struct{} } // MockManagerServerMockRecorder is the mock recorder for MockManagerServer. type MockManagerServerMockRecorder struct { mock *MockManagerServer } // NewMockManagerServer creates a new mock instance. func NewMockManagerServer(ctrl *gomock.Controller) *MockManagerServer { mock := &MockManagerServer{ctrl: ctrl} mock.recorder = &MockManagerServerMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. func (m *MockManagerServer) EXPECT() *MockManagerServerMockRecorder { return m.recorder } // DeleteSeedPeer mocks base method. func (m *MockManagerServer) DeleteSeedPeer(arg0 context.Context, arg1 *manager.DeleteSeedPeerRequest) (*emptypb.Empty, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteSeedPeer", arg0, arg1) ret0, _ := ret[0].(*emptypb.Empty) ret1, _ := ret[1].(error) return ret0, ret1 } // DeleteSeedPeer indicates an expected call of DeleteSeedPeer. func (mr *MockManagerServerMockRecorder) DeleteSeedPeer(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSeedPeer", reflect.TypeOf((*MockManagerServer)(nil).DeleteSeedPeer), arg0, arg1) } // GetScheduler mocks base method. func (m *MockManagerServer) GetScheduler(arg0 context.Context, arg1 *manager.GetSchedulerRequest) (*manager.Scheduler, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetScheduler", arg0, arg1) ret0, _ := ret[0].(*manager.Scheduler) ret1, _ := ret[1].(error) return ret0, ret1 } // GetScheduler indicates an expected call of GetScheduler. func (mr *MockManagerServerMockRecorder) GetScheduler(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetScheduler", reflect.TypeOf((*MockManagerServer)(nil).GetScheduler), arg0, arg1) } // GetSeedPeer mocks base method. func (m *MockManagerServer) GetSeedPeer(arg0 context.Context, arg1 *manager.GetSeedPeerRequest) (*manager.SeedPeer, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetSeedPeer", arg0, arg1) ret0, _ := ret[0].(*manager.SeedPeer) ret1, _ := ret[1].(error) return ret0, ret1 } // GetSeedPeer indicates an expected call of GetSeedPeer. func (mr *MockManagerServerMockRecorder) GetSeedPeer(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSeedPeer", reflect.TypeOf((*MockManagerServer)(nil).GetSeedPeer), arg0, arg1) } // KeepAlive mocks base method. func (m *MockManagerServer) KeepAlive(arg0 manager.Manager_KeepAliveServer) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "KeepAlive", arg0) ret0, _ := ret[0].(error) return ret0 } // KeepAlive indicates an expected call of KeepAlive. func (mr *MockManagerServerMockRecorder) KeepAlive(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KeepAlive", reflect.TypeOf((*MockManagerServer)(nil).KeepAlive), arg0) } // ListApplications mocks base method. func (m *MockManagerServer) ListApplications(arg0 context.Context, arg1 *manager.ListApplicationsRequest) (*manager.ListApplicationsResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ListApplications", arg0, arg1) ret0, _ := ret[0].(*manager.ListApplicationsResponse) ret1, _ := ret[1].(error) return ret0, ret1 } // ListApplications indicates an expected call of ListApplications. func (mr *MockManagerServerMockRecorder) ListApplications(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListApplications", reflect.TypeOf((*MockManagerServer)(nil).ListApplications), arg0, arg1) } // ListSchedulers mocks base method. func (m *MockManagerServer) ListSchedulers(arg0 context.Context, arg1 *manager.ListSchedulersRequest) (*manager.ListSchedulersResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ListSchedulers", arg0, arg1) ret0, _ := ret[0].(*manager.ListSchedulersResponse) ret1, _ := ret[1].(error) return ret0, ret1 } // ListSchedulers indicates an expected call of ListSchedulers. func (mr *MockManagerServerMockRecorder) ListSchedulers(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSchedulers", reflect.TypeOf((*MockManagerServer)(nil).ListSchedulers), arg0, arg1) } // ListSeedPeers mocks base method. func (m *MockManagerServer) ListSeedPeers(arg0 context.Context, arg1 *manager.ListSeedPeersRequest) (*manager.ListSeedPeersResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ListSeedPeers", arg0, arg1) ret0, _ := ret[0].(*manager.ListSeedPeersResponse) ret1, _ := ret[1].(error) return ret0, ret1 } // ListSeedPeers indicates an expected call of ListSeedPeers. func (mr *MockManagerServerMockRecorder) ListSeedPeers(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSeedPeers", reflect.TypeOf((*MockManagerServer)(nil).ListSeedPeers), arg0, arg1) } // UpdateScheduler mocks base method. func (m *MockManagerServer) UpdateScheduler(arg0 context.Context, arg1 *manager.UpdateSchedulerRequest) (*manager.Scheduler, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateScheduler", arg0, arg1) ret0, _ := ret[0].(*manager.Scheduler) ret1, _ := ret[1].(error) return ret0, ret1 } // UpdateScheduler indicates an expected call of UpdateScheduler. func (mr *MockManagerServerMockRecorder) UpdateScheduler(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateScheduler", reflect.TypeOf((*MockManagerServer)(nil).UpdateScheduler), arg0, arg1) } // UpdateSeedPeer mocks base method. func (m *MockManagerServer) UpdateSeedPeer(arg0 context.Context, arg1 *manager.UpdateSeedPeerRequest) (*manager.SeedPeer, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateSeedPeer", arg0, arg1) ret0, _ := ret[0].(*manager.SeedPeer) ret1, _ := ret[1].(error) return ret0, ret1 } // UpdateSeedPeer indicates an expected call of UpdateSeedPeer. func (mr *MockManagerServerMockRecorder) UpdateSeedPeer(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSeedPeer", reflect.TypeOf((*MockManagerServer)(nil).UpdateSeedPeer), arg0, arg1) } // MockUnsafeManagerServer is a mock of UnsafeManagerServer interface. type MockUnsafeManagerServer struct { ctrl *gomock.Controller recorder *MockUnsafeManagerServerMockRecorder isgomock struct{} } // MockUnsafeManagerServerMockRecorder is the mock recorder for MockUnsafeManagerServer. type MockUnsafeManagerServerMockRecorder struct { mock *MockUnsafeManagerServer } // NewMockUnsafeManagerServer creates a new mock instance. func NewMockUnsafeManagerServer(ctrl *gomock.Controller) *MockUnsafeManagerServer { mock := &MockUnsafeManagerServer{ctrl: ctrl} mock.recorder = &MockUnsafeManagerServerMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. func (m *MockUnsafeManagerServer) EXPECT() *MockUnsafeManagerServerMockRecorder { return m.recorder } // mustEmbedUnimplementedManagerServer mocks base method. func (m *MockUnsafeManagerServer) mustEmbedUnimplementedManagerServer() { m.ctrl.T.Helper() m.ctrl.Call(m, "mustEmbedUnimplementedManagerServer") } // mustEmbedUnimplementedManagerServer indicates an expected call of mustEmbedUnimplementedManagerServer. func (mr *MockUnsafeManagerServerMockRecorder) mustEmbedUnimplementedManagerServer() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "mustEmbedUnimplementedManagerServer", reflect.TypeOf((*MockUnsafeManagerServer)(nil).mustEmbedUnimplementedManagerServer)) } // MockManager_KeepAliveServer is a mock of Manager_KeepAliveServer interface. type MockManager_KeepAliveServer struct { ctrl *gomock.Controller recorder *MockManager_KeepAliveServerMockRecorder isgomock struct{} } // MockManager_KeepAliveServerMockRecorder is the mock recorder for MockManager_KeepAliveServer. type MockManager_KeepAliveServerMockRecorder struct { mock *MockManager_KeepAliveServer } // NewMockManager_KeepAliveServer creates a new mock instance. func NewMockManager_KeepAliveServer(ctrl *gomock.Controller) *MockManager_KeepAliveServer { mock := &MockManager_KeepAliveServer{ctrl: ctrl} mock.recorder = &MockManager_KeepAliveServerMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. func (m *MockManager_KeepAliveServer) EXPECT() *MockManager_KeepAliveServerMockRecorder { return m.recorder } // Context mocks base method. func (m *MockManager_KeepAliveServer) 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 *MockManager_KeepAliveServerMockRecorder) Context() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockManager_KeepAliveServer)(nil).Context)) } // Recv mocks base method. func (m *MockManager_KeepAliveServer) Recv() (*manager.KeepAliveRequest, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Recv") ret0, _ := ret[0].(*manager.KeepAliveRequest) ret1, _ := ret[1].(error) return ret0, ret1 } // Recv indicates an expected call of Recv. func (mr *MockManager_KeepAliveServerMockRecorder) Recv() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Recv", reflect.TypeOf((*MockManager_KeepAliveServer)(nil).Recv)) } // RecvMsg mocks base method. func (m_2 *MockManager_KeepAliveServer) 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 *MockManager_KeepAliveServerMockRecorder) RecvMsg(m any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockManager_KeepAliveServer)(nil).RecvMsg), m) } // SendAndClose mocks base method. func (m *MockManager_KeepAliveServer) SendAndClose(arg0 *emptypb.Empty) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SendAndClose", arg0) ret0, _ := ret[0].(error) return ret0 } // SendAndClose indicates an expected call of SendAndClose. func (mr *MockManager_KeepAliveServerMockRecorder) SendAndClose(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendAndClose", reflect.TypeOf((*MockManager_KeepAliveServer)(nil).SendAndClose), arg0) } // SendHeader mocks base method. func (m *MockManager_KeepAliveServer) SendHeader(arg0 metadata.MD) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SendHeader", arg0) ret0, _ := ret[0].(error) return ret0 } // SendHeader indicates an expected call of SendHeader. func (mr *MockManager_KeepAliveServerMockRecorder) SendHeader(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendHeader", reflect.TypeOf((*MockManager_KeepAliveServer)(nil).SendHeader), arg0) } // SendMsg mocks base method. func (m_2 *MockManager_KeepAliveServer) 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 *MockManager_KeepAliveServerMockRecorder) SendMsg(m any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockManager_KeepAliveServer)(nil).SendMsg), m) } // SetHeader mocks base method. func (m *MockManager_KeepAliveServer) SetHeader(arg0 metadata.MD) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetHeader", arg0) ret0, _ := ret[0].(error) return ret0 } // SetHeader indicates an expected call of SetHeader. func (mr *MockManager_KeepAliveServerMockRecorder) SetHeader(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHeader", reflect.TypeOf((*MockManager_KeepAliveServer)(nil).SetHeader), arg0) } // SetTrailer mocks base method. func (m *MockManager_KeepAliveServer) SetTrailer(arg0 metadata.MD) { m.ctrl.T.Helper() m.ctrl.Call(m, "SetTrailer", arg0) } // SetTrailer indicates an expected call of SetTrailer. func (mr *MockManager_KeepAliveServerMockRecorder) SetTrailer(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTrailer", reflect.TypeOf((*MockManager_KeepAliveServer)(nil).SetTrailer), arg0) }