2020-10-27 02:54:57 +00:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2022-11-07 21:09:07 +00:00
|
|
|
// Source: cloud.google.com/go/longrunning/autogen/longrunningpb (interfaces: OperationsServer)
|
2020-10-27 02:54:57 +00:00
|
|
|
|
|
|
|
// Package cloudcas is a generated GoMock package.
|
|
|
|
package cloudcas
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
2022-11-07 21:14:23 +00:00
|
|
|
reflect "reflect"
|
|
|
|
|
|
|
|
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
|
2020-10-27 02:54:57 +00:00
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
|
|
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
|
|
|
)
|
|
|
|
|
2022-11-07 21:14:23 +00:00
|
|
|
// MockOperationsServer is a mock of OperationsServer interface.
|
2020-10-27 02:54:57 +00:00
|
|
|
type MockOperationsServer struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockOperationsServerMockRecorder
|
|
|
|
}
|
|
|
|
|
2022-11-07 21:14:23 +00:00
|
|
|
// MockOperationsServerMockRecorder is the mock recorder for MockOperationsServer.
|
2020-10-27 02:54:57 +00:00
|
|
|
type MockOperationsServerMockRecorder struct {
|
|
|
|
mock *MockOperationsServer
|
|
|
|
}
|
|
|
|
|
2022-11-07 21:14:23 +00:00
|
|
|
// NewMockOperationsServer creates a new mock instance.
|
2020-10-27 02:54:57 +00:00
|
|
|
func NewMockOperationsServer(ctrl *gomock.Controller) *MockOperationsServer {
|
|
|
|
mock := &MockOperationsServer{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockOperationsServerMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2022-11-07 21:14:23 +00:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2020-10-27 02:54:57 +00:00
|
|
|
func (m *MockOperationsServer) EXPECT() *MockOperationsServerMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2022-11-07 21:14:23 +00:00
|
|
|
// CancelOperation mocks base method.
|
2022-11-07 21:09:07 +00:00
|
|
|
func (m *MockOperationsServer) CancelOperation(arg0 context.Context, arg1 *longrunningpb.CancelOperationRequest) (*emptypb.Empty, error) {
|
2020-10-27 02:54:57 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-07 22:53:29 +00:00
|
|
|
ret := m.ctrl.Call(m, "CancelOperation", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(*emptypb.Empty)
|
2020-10-27 02:54:57 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2022-11-07 21:14:23 +00:00
|
|
|
// CancelOperation indicates an expected call of CancelOperation.
|
2021-06-07 22:53:29 +00:00
|
|
|
func (mr *MockOperationsServerMockRecorder) CancelOperation(arg0, arg1 interface{}) *gomock.Call {
|
2020-10-27 02:54:57 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-07 22:53:29 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelOperation", reflect.TypeOf((*MockOperationsServer)(nil).CancelOperation), arg0, arg1)
|
2020-10-27 02:54:57 +00:00
|
|
|
}
|
|
|
|
|
2022-11-07 21:14:23 +00:00
|
|
|
// DeleteOperation mocks base method.
|
2022-11-07 21:09:07 +00:00
|
|
|
func (m *MockOperationsServer) DeleteOperation(arg0 context.Context, arg1 *longrunningpb.DeleteOperationRequest) (*emptypb.Empty, error) {
|
2020-10-27 02:54:57 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-07 22:53:29 +00:00
|
|
|
ret := m.ctrl.Call(m, "DeleteOperation", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(*emptypb.Empty)
|
2020-10-27 02:54:57 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2022-11-07 21:14:23 +00:00
|
|
|
// DeleteOperation indicates an expected call of DeleteOperation.
|
2021-06-07 22:53:29 +00:00
|
|
|
func (mr *MockOperationsServerMockRecorder) DeleteOperation(arg0, arg1 interface{}) *gomock.Call {
|
2020-10-27 02:54:57 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-07 22:53:29 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOperation", reflect.TypeOf((*MockOperationsServer)(nil).DeleteOperation), arg0, arg1)
|
2020-10-27 02:54:57 +00:00
|
|
|
}
|
|
|
|
|
2022-11-07 21:14:23 +00:00
|
|
|
// GetOperation mocks base method.
|
2022-11-07 21:09:07 +00:00
|
|
|
func (m *MockOperationsServer) GetOperation(arg0 context.Context, arg1 *longrunningpb.GetOperationRequest) (*longrunningpb.Operation, error) {
|
2020-10-27 02:54:57 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-07 22:53:29 +00:00
|
|
|
ret := m.ctrl.Call(m, "GetOperation", arg0, arg1)
|
2022-11-07 21:09:07 +00:00
|
|
|
ret0, _ := ret[0].(*longrunningpb.Operation)
|
2020-10-27 02:54:57 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2022-11-07 21:14:23 +00:00
|
|
|
// GetOperation indicates an expected call of GetOperation.
|
2021-06-07 22:53:29 +00:00
|
|
|
func (mr *MockOperationsServerMockRecorder) GetOperation(arg0, arg1 interface{}) *gomock.Call {
|
2020-10-27 02:54:57 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-07 22:53:29 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOperation", reflect.TypeOf((*MockOperationsServer)(nil).GetOperation), arg0, arg1)
|
2020-10-27 02:54:57 +00:00
|
|
|
}
|
|
|
|
|
2022-11-07 21:14:23 +00:00
|
|
|
// ListOperations mocks base method.
|
2022-11-07 21:09:07 +00:00
|
|
|
func (m *MockOperationsServer) ListOperations(arg0 context.Context, arg1 *longrunningpb.ListOperationsRequest) (*longrunningpb.ListOperationsResponse, error) {
|
2020-10-27 02:54:57 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-07 22:53:29 +00:00
|
|
|
ret := m.ctrl.Call(m, "ListOperations", arg0, arg1)
|
2022-11-07 21:09:07 +00:00
|
|
|
ret0, _ := ret[0].(*longrunningpb.ListOperationsResponse)
|
2020-10-27 02:54:57 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2022-11-07 21:14:23 +00:00
|
|
|
// ListOperations indicates an expected call of ListOperations.
|
2021-06-07 22:53:29 +00:00
|
|
|
func (mr *MockOperationsServerMockRecorder) ListOperations(arg0, arg1 interface{}) *gomock.Call {
|
2020-10-27 02:54:57 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-07 22:53:29 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOperations", reflect.TypeOf((*MockOperationsServer)(nil).ListOperations), arg0, arg1)
|
2020-10-27 02:54:57 +00:00
|
|
|
}
|
|
|
|
|
2022-11-07 21:14:23 +00:00
|
|
|
// WaitOperation mocks base method.
|
2022-11-07 21:09:07 +00:00
|
|
|
func (m *MockOperationsServer) WaitOperation(arg0 context.Context, arg1 *longrunningpb.WaitOperationRequest) (*longrunningpb.Operation, error) {
|
2020-10-27 02:54:57 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "WaitOperation", arg0, arg1)
|
2022-11-07 21:09:07 +00:00
|
|
|
ret0, _ := ret[0].(*longrunningpb.Operation)
|
2020-10-27 02:54:57 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2022-11-07 21:14:23 +00:00
|
|
|
// WaitOperation indicates an expected call of WaitOperation.
|
2020-10-27 02:54:57 +00:00
|
|
|
func (mr *MockOperationsServerMockRecorder) WaitOperation(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitOperation", reflect.TypeOf((*MockOperationsServer)(nil).WaitOperation), arg0, arg1)
|
|
|
|
}
|