2023-09-04 21:19:48 +08:00
// Code generated by mockery v2.32.4. DO NOT EDIT.
2023-04-23 09:00:32 +08:00
package mocks
import (
context "context"
2023-06-09 01:28:37 +08:00
commonpb "github.com/milvus-io/milvus-proto/go-api/v2/commonpb"
2023-04-23 09:00:32 +08:00
clientv3 "go.etcd.io/etcd/client/v3"
2023-09-26 09:57:25 +08:00
federpb "github.com/milvus-io/milvus-proto/go-api/v2/federpb"
2023-04-23 09:00:32 +08:00
internalpb "github.com/milvus-io/milvus/internal/proto/internalpb"
2023-06-09 01:28:37 +08:00
milvuspb "github.com/milvus-io/milvus-proto/go-api/v2/milvuspb"
2023-04-23 09:00:32 +08:00
mock "github.com/stretchr/testify/mock"
proxypb "github.com/milvus-io/milvus/internal/proto/proxypb"
types "github.com/milvus-io/milvus/internal/types"
)
2023-07-14 10:12:31 +08:00
// MockProxy is an autogenerated mock type for the ProxyComponent type
type MockProxy struct {
2023-04-23 09:00:32 +08:00
mock . Mock
}
2023-07-14 10:12:31 +08:00
type MockProxy_Expecter struct {
2023-04-23 09:00:32 +08:00
mock * mock . Mock
}
2023-07-14 10:12:31 +08:00
func ( _m * MockProxy ) EXPECT ( ) * MockProxy_Expecter {
return & MockProxy_Expecter { mock : & _m . Mock }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
// AllocTimestamp provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) AllocTimestamp ( _a0 context . Context , _a1 * milvuspb . AllocTimestampRequest ) ( * milvuspb . AllocTimestampResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-07-25 10:05:00 +08:00
var r0 * milvuspb . AllocTimestampResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . AllocTimestampRequest ) ( * milvuspb . AllocTimestampResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-07-25 10:05:00 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . AllocTimestampRequest ) * milvuspb . AllocTimestampResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-07-25 10:05:00 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . AllocTimestampResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . AllocTimestampRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-07-25 10:05:00 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockProxy_AllocTimestamp_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllocTimestamp'
type MockProxy_AllocTimestamp_Call struct {
* mock . Call
}
// AllocTimestamp is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.AllocTimestampRequest
func ( _e * MockProxy_Expecter ) AllocTimestamp ( _a0 interface { } , _a1 interface { } ) * MockProxy_AllocTimestamp_Call {
return & MockProxy_AllocTimestamp_Call { Call : _e . mock . On ( "AllocTimestamp" , _a0 , _a1 ) }
2023-07-25 10:05:00 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_AllocTimestamp_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . AllocTimestampRequest ) ) * MockProxy_AllocTimestamp_Call {
2023-07-25 10:05:00 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . AllocTimestampRequest ) )
} )
return _c
}
func ( _c * MockProxy_AllocTimestamp_Call ) Return ( _a0 * milvuspb . AllocTimestampResponse , _a1 error ) * MockProxy_AllocTimestamp_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_AllocTimestamp_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . AllocTimestampRequest ) ( * milvuspb . AllocTimestampResponse , error ) ) * MockProxy_AllocTimestamp_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// AlterAlias provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) AlterAlias ( _a0 context . Context , _a1 * milvuspb . AlterAliasRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . AlterAliasRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . AlterAliasRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . AlterAliasRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_AlterAlias_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AlterAlias'
type MockProxy_AlterAlias_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// AlterAlias is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.AlterAliasRequest
func ( _e * MockProxy_Expecter ) AlterAlias ( _a0 interface { } , _a1 interface { } ) * MockProxy_AlterAlias_Call {
return & MockProxy_AlterAlias_Call { Call : _e . mock . On ( "AlterAlias" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_AlterAlias_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . AlterAliasRequest ) ) * MockProxy_AlterAlias_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . AlterAliasRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_AlterAlias_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_AlterAlias_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_AlterAlias_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . AlterAliasRequest ) ( * commonpb . Status , error ) ) * MockProxy_AlterAlias_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// AlterCollection provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) AlterCollection ( _a0 context . Context , _a1 * milvuspb . AlterCollectionRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . AlterCollectionRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . AlterCollectionRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . AlterCollectionRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_AlterCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AlterCollection'
type MockProxy_AlterCollection_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// AlterCollection is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.AlterCollectionRequest
func ( _e * MockProxy_Expecter ) AlterCollection ( _a0 interface { } , _a1 interface { } ) * MockProxy_AlterCollection_Call {
return & MockProxy_AlterCollection_Call { Call : _e . mock . On ( "AlterCollection" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_AlterCollection_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . AlterCollectionRequest ) ) * MockProxy_AlterCollection_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . AlterCollectionRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_AlterCollection_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_AlterCollection_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_AlterCollection_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . AlterCollectionRequest ) ( * commonpb . Status , error ) ) * MockProxy_AlterCollection_Call {
_c . Call . Return ( run )
return _c
}
2023-12-21 18:07:24 +08:00
// AlterIndex provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) AlterIndex ( _a0 context . Context , _a1 * milvuspb . AlterIndexRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * commonpb . Status
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . AlterIndexRequest ) ( * commonpb . Status , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . AlterIndexRequest ) * commonpb . Status ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . AlterIndexRequest ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockProxy_AlterIndex_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AlterIndex'
type MockProxy_AlterIndex_Call struct {
* mock . Call
}
// AlterIndex is a helper method to define mock.On call
// - _a0 context.Context
// - _a1 *milvuspb.AlterIndexRequest
func ( _e * MockProxy_Expecter ) AlterIndex ( _a0 interface { } , _a1 interface { } ) * MockProxy_AlterIndex_Call {
return & MockProxy_AlterIndex_Call { Call : _e . mock . On ( "AlterIndex" , _a0 , _a1 ) }
}
func ( _c * MockProxy_AlterIndex_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . AlterIndexRequest ) ) * MockProxy_AlterIndex_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . AlterIndexRequest ) )
} )
return _c
}
func ( _c * MockProxy_AlterIndex_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_AlterIndex_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockProxy_AlterIndex_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . AlterIndexRequest ) ( * commonpb . Status , error ) ) * MockProxy_AlterIndex_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// CalcDistance provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) CalcDistance ( _a0 context . Context , _a1 * milvuspb . CalcDistanceRequest ) ( * milvuspb . CalcDistanceResults , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . CalcDistanceResults
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CalcDistanceRequest ) ( * milvuspb . CalcDistanceResults , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CalcDistanceRequest ) * milvuspb . CalcDistanceResults ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . CalcDistanceResults )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . CalcDistanceRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_CalcDistance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CalcDistance'
type MockProxy_CalcDistance_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// CalcDistance is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.CalcDistanceRequest
func ( _e * MockProxy_Expecter ) CalcDistance ( _a0 interface { } , _a1 interface { } ) * MockProxy_CalcDistance_Call {
return & MockProxy_CalcDistance_Call { Call : _e . mock . On ( "CalcDistance" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_CalcDistance_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . CalcDistanceRequest ) ) * MockProxy_CalcDistance_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . CalcDistanceRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_CalcDistance_Call ) Return ( _a0 * milvuspb . CalcDistanceResults , _a1 error ) * MockProxy_CalcDistance_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_CalcDistance_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . CalcDistanceRequest ) ( * milvuspb . CalcDistanceResults , error ) ) * MockProxy_CalcDistance_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// CheckHealth provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) CheckHealth ( _a0 context . Context , _a1 * milvuspb . CheckHealthRequest ) ( * milvuspb . CheckHealthResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . CheckHealthResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CheckHealthRequest ) ( * milvuspb . CheckHealthResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CheckHealthRequest ) * milvuspb . CheckHealthResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . CheckHealthResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . CheckHealthRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_CheckHealth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckHealth'
type MockProxy_CheckHealth_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// CheckHealth is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.CheckHealthRequest
func ( _e * MockProxy_Expecter ) CheckHealth ( _a0 interface { } , _a1 interface { } ) * MockProxy_CheckHealth_Call {
return & MockProxy_CheckHealth_Call { Call : _e . mock . On ( "CheckHealth" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_CheckHealth_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . CheckHealthRequest ) ) * MockProxy_CheckHealth_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . CheckHealthRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_CheckHealth_Call ) Return ( _a0 * milvuspb . CheckHealthResponse , _a1 error ) * MockProxy_CheckHealth_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_CheckHealth_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . CheckHealthRequest ) ( * milvuspb . CheckHealthResponse , error ) ) * MockProxy_CheckHealth_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// Connect provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) Connect ( _a0 context . Context , _a1 * milvuspb . ConnectRequest ) ( * milvuspb . ConnectResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-05-19 12:51:23 +08:00
var r0 * milvuspb . ConnectResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ConnectRequest ) ( * milvuspb . ConnectResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-05-19 12:51:23 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ConnectRequest ) * milvuspb . ConnectResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-05-19 12:51:23 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . ConnectResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . ConnectRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-05-19 12:51:23 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_Connect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Connect'
type MockProxy_Connect_Call struct {
2023-05-19 12:51:23 +08:00
* mock . Call
}
// Connect is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.ConnectRequest
func ( _e * MockProxy_Expecter ) Connect ( _a0 interface { } , _a1 interface { } ) * MockProxy_Connect_Call {
return & MockProxy_Connect_Call { Call : _e . mock . On ( "Connect" , _a0 , _a1 ) }
2023-05-19 12:51:23 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_Connect_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . ConnectRequest ) ) * MockProxy_Connect_Call {
2023-05-19 12:51:23 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . ConnectRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_Connect_Call ) Return ( _a0 * milvuspb . ConnectResponse , _a1 error ) * MockProxy_Connect_Call {
2023-05-19 12:51:23 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_Connect_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . ConnectRequest ) ( * milvuspb . ConnectResponse , error ) ) * MockProxy_Connect_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// CreateAlias provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) CreateAlias ( _a0 context . Context , _a1 * milvuspb . CreateAliasRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CreateAliasRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CreateAliasRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . CreateAliasRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_CreateAlias_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateAlias'
type MockProxy_CreateAlias_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// CreateAlias is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.CreateAliasRequest
func ( _e * MockProxy_Expecter ) CreateAlias ( _a0 interface { } , _a1 interface { } ) * MockProxy_CreateAlias_Call {
return & MockProxy_CreateAlias_Call { Call : _e . mock . On ( "CreateAlias" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_CreateAlias_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . CreateAliasRequest ) ) * MockProxy_CreateAlias_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . CreateAliasRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_CreateAlias_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_CreateAlias_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_CreateAlias_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . CreateAliasRequest ) ( * commonpb . Status , error ) ) * MockProxy_CreateAlias_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// CreateCollection provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) CreateCollection ( _a0 context . Context , _a1 * milvuspb . CreateCollectionRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CreateCollectionRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CreateCollectionRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . CreateCollectionRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_CreateCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateCollection'
type MockProxy_CreateCollection_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// CreateCollection is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.CreateCollectionRequest
func ( _e * MockProxy_Expecter ) CreateCollection ( _a0 interface { } , _a1 interface { } ) * MockProxy_CreateCollection_Call {
return & MockProxy_CreateCollection_Call { Call : _e . mock . On ( "CreateCollection" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_CreateCollection_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . CreateCollectionRequest ) ) * MockProxy_CreateCollection_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . CreateCollectionRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_CreateCollection_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_CreateCollection_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_CreateCollection_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . CreateCollectionRequest ) ( * commonpb . Status , error ) ) * MockProxy_CreateCollection_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// CreateCredential provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) CreateCredential ( _a0 context . Context , _a1 * milvuspb . CreateCredentialRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CreateCredentialRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CreateCredentialRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . CreateCredentialRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_CreateCredential_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateCredential'
type MockProxy_CreateCredential_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// CreateCredential is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.CreateCredentialRequest
func ( _e * MockProxy_Expecter ) CreateCredential ( _a0 interface { } , _a1 interface { } ) * MockProxy_CreateCredential_Call {
return & MockProxy_CreateCredential_Call { Call : _e . mock . On ( "CreateCredential" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_CreateCredential_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . CreateCredentialRequest ) ) * MockProxy_CreateCredential_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . CreateCredentialRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_CreateCredential_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_CreateCredential_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_CreateCredential_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . CreateCredentialRequest ) ( * commonpb . Status , error ) ) * MockProxy_CreateCredential_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// CreateDatabase provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) CreateDatabase ( _a0 context . Context , _a1 * milvuspb . CreateDatabaseRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-06-25 17:20:43 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CreateDatabaseRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-06-25 17:20:43 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CreateDatabaseRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-06-25 17:20:43 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . CreateDatabaseRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-06-25 17:20:43 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_CreateDatabase_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateDatabase'
type MockProxy_CreateDatabase_Call struct {
2023-06-25 17:20:43 +08:00
* mock . Call
}
// CreateDatabase is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.CreateDatabaseRequest
func ( _e * MockProxy_Expecter ) CreateDatabase ( _a0 interface { } , _a1 interface { } ) * MockProxy_CreateDatabase_Call {
return & MockProxy_CreateDatabase_Call { Call : _e . mock . On ( "CreateDatabase" , _a0 , _a1 ) }
2023-06-25 17:20:43 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_CreateDatabase_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . CreateDatabaseRequest ) ) * MockProxy_CreateDatabase_Call {
2023-06-25 17:20:43 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . CreateDatabaseRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_CreateDatabase_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_CreateDatabase_Call {
2023-06-25 17:20:43 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_CreateDatabase_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . CreateDatabaseRequest ) ( * commonpb . Status , error ) ) * MockProxy_CreateDatabase_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// CreateIndex provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) CreateIndex ( _a0 context . Context , _a1 * milvuspb . CreateIndexRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CreateIndexRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CreateIndexRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . CreateIndexRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_CreateIndex_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateIndex'
type MockProxy_CreateIndex_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// CreateIndex is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.CreateIndexRequest
func ( _e * MockProxy_Expecter ) CreateIndex ( _a0 interface { } , _a1 interface { } ) * MockProxy_CreateIndex_Call {
return & MockProxy_CreateIndex_Call { Call : _e . mock . On ( "CreateIndex" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_CreateIndex_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . CreateIndexRequest ) ) * MockProxy_CreateIndex_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . CreateIndexRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_CreateIndex_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_CreateIndex_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_CreateIndex_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . CreateIndexRequest ) ( * commonpb . Status , error ) ) * MockProxy_CreateIndex_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// CreatePartition provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) CreatePartition ( _a0 context . Context , _a1 * milvuspb . CreatePartitionRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CreatePartitionRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CreatePartitionRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . CreatePartitionRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_CreatePartition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreatePartition'
type MockProxy_CreatePartition_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// CreatePartition is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.CreatePartitionRequest
func ( _e * MockProxy_Expecter ) CreatePartition ( _a0 interface { } , _a1 interface { } ) * MockProxy_CreatePartition_Call {
return & MockProxy_CreatePartition_Call { Call : _e . mock . On ( "CreatePartition" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_CreatePartition_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . CreatePartitionRequest ) ) * MockProxy_CreatePartition_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . CreatePartitionRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_CreatePartition_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_CreatePartition_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_CreatePartition_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . CreatePartitionRequest ) ( * commonpb . Status , error ) ) * MockProxy_CreatePartition_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// CreateResourceGroup provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) CreateResourceGroup ( _a0 context . Context , _a1 * milvuspb . CreateResourceGroupRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CreateResourceGroupRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CreateResourceGroupRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . CreateResourceGroupRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_CreateResourceGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateResourceGroup'
type MockProxy_CreateResourceGroup_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// CreateResourceGroup is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.CreateResourceGroupRequest
func ( _e * MockProxy_Expecter ) CreateResourceGroup ( _a0 interface { } , _a1 interface { } ) * MockProxy_CreateResourceGroup_Call {
return & MockProxy_CreateResourceGroup_Call { Call : _e . mock . On ( "CreateResourceGroup" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_CreateResourceGroup_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . CreateResourceGroupRequest ) ) * MockProxy_CreateResourceGroup_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . CreateResourceGroupRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_CreateResourceGroup_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_CreateResourceGroup_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_CreateResourceGroup_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . CreateResourceGroupRequest ) ( * commonpb . Status , error ) ) * MockProxy_CreateResourceGroup_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// CreateRole provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) CreateRole ( _a0 context . Context , _a1 * milvuspb . CreateRoleRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CreateRoleRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CreateRoleRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . CreateRoleRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_CreateRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRole'
type MockProxy_CreateRole_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// CreateRole is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.CreateRoleRequest
func ( _e * MockProxy_Expecter ) CreateRole ( _a0 interface { } , _a1 interface { } ) * MockProxy_CreateRole_Call {
return & MockProxy_CreateRole_Call { Call : _e . mock . On ( "CreateRole" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_CreateRole_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . CreateRoleRequest ) ) * MockProxy_CreateRole_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . CreateRoleRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_CreateRole_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_CreateRole_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_CreateRole_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . CreateRoleRequest ) ( * commonpb . Status , error ) ) * MockProxy_CreateRole_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// Delete provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) Delete ( _a0 context . Context , _a1 * milvuspb . DeleteRequest ) ( * milvuspb . MutationResult , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . MutationResult
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DeleteRequest ) ( * milvuspb . MutationResult , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DeleteRequest ) * milvuspb . MutationResult ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . MutationResult )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . DeleteRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
type MockProxy_Delete_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// Delete is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.DeleteRequest
func ( _e * MockProxy_Expecter ) Delete ( _a0 interface { } , _a1 interface { } ) * MockProxy_Delete_Call {
return & MockProxy_Delete_Call { Call : _e . mock . On ( "Delete" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_Delete_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . DeleteRequest ) ) * MockProxy_Delete_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . DeleteRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_Delete_Call ) Return ( _a0 * milvuspb . MutationResult , _a1 error ) * MockProxy_Delete_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_Delete_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . DeleteRequest ) ( * milvuspb . MutationResult , error ) ) * MockProxy_Delete_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// DeleteCredential provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) DeleteCredential ( _a0 context . Context , _a1 * milvuspb . DeleteCredentialRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DeleteCredentialRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DeleteCredentialRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . DeleteCredentialRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_DeleteCredential_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteCredential'
type MockProxy_DeleteCredential_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// DeleteCredential is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.DeleteCredentialRequest
func ( _e * MockProxy_Expecter ) DeleteCredential ( _a0 interface { } , _a1 interface { } ) * MockProxy_DeleteCredential_Call {
return & MockProxy_DeleteCredential_Call { Call : _e . mock . On ( "DeleteCredential" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_DeleteCredential_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . DeleteCredentialRequest ) ) * MockProxy_DeleteCredential_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . DeleteCredentialRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_DeleteCredential_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_DeleteCredential_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_DeleteCredential_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . DeleteCredentialRequest ) ( * commonpb . Status , error ) ) * MockProxy_DeleteCredential_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// DescribeAlias provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) DescribeAlias ( _a0 context . Context , _a1 * milvuspb . DescribeAliasRequest ) ( * milvuspb . DescribeAliasResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * milvuspb . DescribeAliasResponse
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DescribeAliasRequest ) ( * milvuspb . DescribeAliasResponse , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DescribeAliasRequest ) * milvuspb . DescribeAliasResponse ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . DescribeAliasResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . DescribeAliasRequest ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockProxy_DescribeAlias_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeAlias'
type MockProxy_DescribeAlias_Call struct {
* mock . Call
}
// DescribeAlias is a helper method to define mock.On call
// - _a0 context.Context
// - _a1 *milvuspb.DescribeAliasRequest
func ( _e * MockProxy_Expecter ) DescribeAlias ( _a0 interface { } , _a1 interface { } ) * MockProxy_DescribeAlias_Call {
return & MockProxy_DescribeAlias_Call { Call : _e . mock . On ( "DescribeAlias" , _a0 , _a1 ) }
}
func ( _c * MockProxy_DescribeAlias_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . DescribeAliasRequest ) ) * MockProxy_DescribeAlias_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . DescribeAliasRequest ) )
} )
return _c
}
func ( _c * MockProxy_DescribeAlias_Call ) Return ( _a0 * milvuspb . DescribeAliasResponse , _a1 error ) * MockProxy_DescribeAlias_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockProxy_DescribeAlias_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . DescribeAliasRequest ) ( * milvuspb . DescribeAliasResponse , error ) ) * MockProxy_DescribeAlias_Call {
_c . Call . Return ( run )
return _c
}
// DescribeCollection provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) DescribeCollection ( _a0 context . Context , _a1 * milvuspb . DescribeCollectionRequest ) ( * milvuspb . DescribeCollectionResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . DescribeCollectionResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DescribeCollectionRequest ) ( * milvuspb . DescribeCollectionResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DescribeCollectionRequest ) * milvuspb . DescribeCollectionResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . DescribeCollectionResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . DescribeCollectionRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_DescribeCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeCollection'
type MockProxy_DescribeCollection_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// DescribeCollection is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.DescribeCollectionRequest
func ( _e * MockProxy_Expecter ) DescribeCollection ( _a0 interface { } , _a1 interface { } ) * MockProxy_DescribeCollection_Call {
return & MockProxy_DescribeCollection_Call { Call : _e . mock . On ( "DescribeCollection" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_DescribeCollection_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . DescribeCollectionRequest ) ) * MockProxy_DescribeCollection_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . DescribeCollectionRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_DescribeCollection_Call ) Return ( _a0 * milvuspb . DescribeCollectionResponse , _a1 error ) * MockProxy_DescribeCollection_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_DescribeCollection_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . DescribeCollectionRequest ) ( * milvuspb . DescribeCollectionResponse , error ) ) * MockProxy_DescribeCollection_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// DescribeIndex provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) DescribeIndex ( _a0 context . Context , _a1 * milvuspb . DescribeIndexRequest ) ( * milvuspb . DescribeIndexResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . DescribeIndexResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DescribeIndexRequest ) ( * milvuspb . DescribeIndexResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DescribeIndexRequest ) * milvuspb . DescribeIndexResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . DescribeIndexResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . DescribeIndexRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_DescribeIndex_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeIndex'
type MockProxy_DescribeIndex_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// DescribeIndex is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.DescribeIndexRequest
func ( _e * MockProxy_Expecter ) DescribeIndex ( _a0 interface { } , _a1 interface { } ) * MockProxy_DescribeIndex_Call {
return & MockProxy_DescribeIndex_Call { Call : _e . mock . On ( "DescribeIndex" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_DescribeIndex_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . DescribeIndexRequest ) ) * MockProxy_DescribeIndex_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . DescribeIndexRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_DescribeIndex_Call ) Return ( _a0 * milvuspb . DescribeIndexResponse , _a1 error ) * MockProxy_DescribeIndex_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_DescribeIndex_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . DescribeIndexRequest ) ( * milvuspb . DescribeIndexResponse , error ) ) * MockProxy_DescribeIndex_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// DescribeResourceGroup provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) DescribeResourceGroup ( _a0 context . Context , _a1 * milvuspb . DescribeResourceGroupRequest ) ( * milvuspb . DescribeResourceGroupResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . DescribeResourceGroupResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DescribeResourceGroupRequest ) ( * milvuspb . DescribeResourceGroupResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DescribeResourceGroupRequest ) * milvuspb . DescribeResourceGroupResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . DescribeResourceGroupResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . DescribeResourceGroupRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_DescribeResourceGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeResourceGroup'
type MockProxy_DescribeResourceGroup_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// DescribeResourceGroup is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.DescribeResourceGroupRequest
func ( _e * MockProxy_Expecter ) DescribeResourceGroup ( _a0 interface { } , _a1 interface { } ) * MockProxy_DescribeResourceGroup_Call {
return & MockProxy_DescribeResourceGroup_Call { Call : _e . mock . On ( "DescribeResourceGroup" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_DescribeResourceGroup_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . DescribeResourceGroupRequest ) ) * MockProxy_DescribeResourceGroup_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . DescribeResourceGroupRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_DescribeResourceGroup_Call ) Return ( _a0 * milvuspb . DescribeResourceGroupResponse , _a1 error ) * MockProxy_DescribeResourceGroup_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_DescribeResourceGroup_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . DescribeResourceGroupRequest ) ( * milvuspb . DescribeResourceGroupResponse , error ) ) * MockProxy_DescribeResourceGroup_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// DescribeSegmentIndexData provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) DescribeSegmentIndexData ( _a0 context . Context , _a1 * federpb . DescribeSegmentIndexDataRequest ) ( * federpb . DescribeSegmentIndexDataResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * federpb . DescribeSegmentIndexDataResponse
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * federpb . DescribeSegmentIndexDataRequest ) ( * federpb . DescribeSegmentIndexDataResponse , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * federpb . DescribeSegmentIndexDataRequest ) * federpb . DescribeSegmentIndexDataResponse ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * federpb . DescribeSegmentIndexDataResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * federpb . DescribeSegmentIndexDataRequest ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockProxy_DescribeSegmentIndexData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeSegmentIndexData'
type MockProxy_DescribeSegmentIndexData_Call struct {
* mock . Call
}
// DescribeSegmentIndexData is a helper method to define mock.On call
// - _a0 context.Context
// - _a1 *federpb.DescribeSegmentIndexDataRequest
func ( _e * MockProxy_Expecter ) DescribeSegmentIndexData ( _a0 interface { } , _a1 interface { } ) * MockProxy_DescribeSegmentIndexData_Call {
return & MockProxy_DescribeSegmentIndexData_Call { Call : _e . mock . On ( "DescribeSegmentIndexData" , _a0 , _a1 ) }
}
func ( _c * MockProxy_DescribeSegmentIndexData_Call ) Run ( run func ( _a0 context . Context , _a1 * federpb . DescribeSegmentIndexDataRequest ) ) * MockProxy_DescribeSegmentIndexData_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * federpb . DescribeSegmentIndexDataRequest ) )
} )
return _c
}
func ( _c * MockProxy_DescribeSegmentIndexData_Call ) Return ( _a0 * federpb . DescribeSegmentIndexDataResponse , _a1 error ) * MockProxy_DescribeSegmentIndexData_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockProxy_DescribeSegmentIndexData_Call ) RunAndReturn ( run func ( context . Context , * federpb . DescribeSegmentIndexDataRequest ) ( * federpb . DescribeSegmentIndexDataResponse , error ) ) * MockProxy_DescribeSegmentIndexData_Call {
_c . Call . Return ( run )
return _c
}
// DropAlias provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) DropAlias ( _a0 context . Context , _a1 * milvuspb . DropAliasRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DropAliasRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DropAliasRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . DropAliasRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_DropAlias_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DropAlias'
type MockProxy_DropAlias_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// DropAlias is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.DropAliasRequest
func ( _e * MockProxy_Expecter ) DropAlias ( _a0 interface { } , _a1 interface { } ) * MockProxy_DropAlias_Call {
return & MockProxy_DropAlias_Call { Call : _e . mock . On ( "DropAlias" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_DropAlias_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . DropAliasRequest ) ) * MockProxy_DropAlias_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . DropAliasRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_DropAlias_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_DropAlias_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_DropAlias_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . DropAliasRequest ) ( * commonpb . Status , error ) ) * MockProxy_DropAlias_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// DropCollection provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) DropCollection ( _a0 context . Context , _a1 * milvuspb . DropCollectionRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DropCollectionRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DropCollectionRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . DropCollectionRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_DropCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DropCollection'
type MockProxy_DropCollection_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// DropCollection is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.DropCollectionRequest
func ( _e * MockProxy_Expecter ) DropCollection ( _a0 interface { } , _a1 interface { } ) * MockProxy_DropCollection_Call {
return & MockProxy_DropCollection_Call { Call : _e . mock . On ( "DropCollection" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_DropCollection_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . DropCollectionRequest ) ) * MockProxy_DropCollection_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . DropCollectionRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_DropCollection_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_DropCollection_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_DropCollection_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . DropCollectionRequest ) ( * commonpb . Status , error ) ) * MockProxy_DropCollection_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// DropDatabase provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) DropDatabase ( _a0 context . Context , _a1 * milvuspb . DropDatabaseRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-06-25 17:20:43 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DropDatabaseRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-06-25 17:20:43 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DropDatabaseRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-06-25 17:20:43 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . DropDatabaseRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-06-25 17:20:43 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_DropDatabase_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DropDatabase'
type MockProxy_DropDatabase_Call struct {
2023-06-25 17:20:43 +08:00
* mock . Call
}
// DropDatabase is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.DropDatabaseRequest
func ( _e * MockProxy_Expecter ) DropDatabase ( _a0 interface { } , _a1 interface { } ) * MockProxy_DropDatabase_Call {
return & MockProxy_DropDatabase_Call { Call : _e . mock . On ( "DropDatabase" , _a0 , _a1 ) }
2023-06-25 17:20:43 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_DropDatabase_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . DropDatabaseRequest ) ) * MockProxy_DropDatabase_Call {
2023-06-25 17:20:43 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . DropDatabaseRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_DropDatabase_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_DropDatabase_Call {
2023-06-25 17:20:43 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_DropDatabase_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . DropDatabaseRequest ) ( * commonpb . Status , error ) ) * MockProxy_DropDatabase_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// DropIndex provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) DropIndex ( _a0 context . Context , _a1 * milvuspb . DropIndexRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DropIndexRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DropIndexRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . DropIndexRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_DropIndex_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DropIndex'
type MockProxy_DropIndex_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// DropIndex is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.DropIndexRequest
func ( _e * MockProxy_Expecter ) DropIndex ( _a0 interface { } , _a1 interface { } ) * MockProxy_DropIndex_Call {
return & MockProxy_DropIndex_Call { Call : _e . mock . On ( "DropIndex" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_DropIndex_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . DropIndexRequest ) ) * MockProxy_DropIndex_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . DropIndexRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_DropIndex_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_DropIndex_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_DropIndex_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . DropIndexRequest ) ( * commonpb . Status , error ) ) * MockProxy_DropIndex_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// DropPartition provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) DropPartition ( _a0 context . Context , _a1 * milvuspb . DropPartitionRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DropPartitionRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DropPartitionRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . DropPartitionRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_DropPartition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DropPartition'
type MockProxy_DropPartition_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// DropPartition is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.DropPartitionRequest
func ( _e * MockProxy_Expecter ) DropPartition ( _a0 interface { } , _a1 interface { } ) * MockProxy_DropPartition_Call {
return & MockProxy_DropPartition_Call { Call : _e . mock . On ( "DropPartition" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_DropPartition_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . DropPartitionRequest ) ) * MockProxy_DropPartition_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . DropPartitionRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_DropPartition_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_DropPartition_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_DropPartition_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . DropPartitionRequest ) ( * commonpb . Status , error ) ) * MockProxy_DropPartition_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// DropResourceGroup provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) DropResourceGroup ( _a0 context . Context , _a1 * milvuspb . DropResourceGroupRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DropResourceGroupRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DropResourceGroupRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . DropResourceGroupRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_DropResourceGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DropResourceGroup'
type MockProxy_DropResourceGroup_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// DropResourceGroup is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.DropResourceGroupRequest
func ( _e * MockProxy_Expecter ) DropResourceGroup ( _a0 interface { } , _a1 interface { } ) * MockProxy_DropResourceGroup_Call {
return & MockProxy_DropResourceGroup_Call { Call : _e . mock . On ( "DropResourceGroup" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_DropResourceGroup_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . DropResourceGroupRequest ) ) * MockProxy_DropResourceGroup_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . DropResourceGroupRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_DropResourceGroup_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_DropResourceGroup_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_DropResourceGroup_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . DropResourceGroupRequest ) ( * commonpb . Status , error ) ) * MockProxy_DropResourceGroup_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// DropRole provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) DropRole ( _a0 context . Context , _a1 * milvuspb . DropRoleRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DropRoleRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DropRoleRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . DropRoleRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_DropRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DropRole'
type MockProxy_DropRole_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// DropRole is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.DropRoleRequest
func ( _e * MockProxy_Expecter ) DropRole ( _a0 interface { } , _a1 interface { } ) * MockProxy_DropRole_Call {
return & MockProxy_DropRole_Call { Call : _e . mock . On ( "DropRole" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_DropRole_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . DropRoleRequest ) ) * MockProxy_DropRole_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . DropRoleRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_DropRole_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_DropRole_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_DropRole_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . DropRoleRequest ) ( * commonpb . Status , error ) ) * MockProxy_DropRole_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// Dummy provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) Dummy ( _a0 context . Context , _a1 * milvuspb . DummyRequest ) ( * milvuspb . DummyResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . DummyResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DummyRequest ) ( * milvuspb . DummyResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DummyRequest ) * milvuspb . DummyResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . DummyResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . DummyRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_Dummy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Dummy'
type MockProxy_Dummy_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// Dummy is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.DummyRequest
func ( _e * MockProxy_Expecter ) Dummy ( _a0 interface { } , _a1 interface { } ) * MockProxy_Dummy_Call {
return & MockProxy_Dummy_Call { Call : _e . mock . On ( "Dummy" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_Dummy_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . DummyRequest ) ) * MockProxy_Dummy_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . DummyRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_Dummy_Call ) Return ( _a0 * milvuspb . DummyResponse , _a1 error ) * MockProxy_Dummy_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_Dummy_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . DummyRequest ) ( * milvuspb . DummyResponse , error ) ) * MockProxy_Dummy_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// Flush provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) Flush ( _a0 context . Context , _a1 * milvuspb . FlushRequest ) ( * milvuspb . FlushResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . FlushResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . FlushRequest ) ( * milvuspb . FlushResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . FlushRequest ) * milvuspb . FlushResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . FlushResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . FlushRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_Flush_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Flush'
type MockProxy_Flush_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// Flush is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.FlushRequest
func ( _e * MockProxy_Expecter ) Flush ( _a0 interface { } , _a1 interface { } ) * MockProxy_Flush_Call {
return & MockProxy_Flush_Call { Call : _e . mock . On ( "Flush" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_Flush_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . FlushRequest ) ) * MockProxy_Flush_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . FlushRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_Flush_Call ) Return ( _a0 * milvuspb . FlushResponse , _a1 error ) * MockProxy_Flush_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_Flush_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . FlushRequest ) ( * milvuspb . FlushResponse , error ) ) * MockProxy_Flush_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// FlushAll provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) FlushAll ( _a0 context . Context , _a1 * milvuspb . FlushAllRequest ) ( * milvuspb . FlushAllResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . FlushAllResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . FlushAllRequest ) ( * milvuspb . FlushAllResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . FlushAllRequest ) * milvuspb . FlushAllResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . FlushAllResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . FlushAllRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_FlushAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FlushAll'
type MockProxy_FlushAll_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// FlushAll is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.FlushAllRequest
func ( _e * MockProxy_Expecter ) FlushAll ( _a0 interface { } , _a1 interface { } ) * MockProxy_FlushAll_Call {
return & MockProxy_FlushAll_Call { Call : _e . mock . On ( "FlushAll" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_FlushAll_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . FlushAllRequest ) ) * MockProxy_FlushAll_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . FlushAllRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_FlushAll_Call ) Return ( _a0 * milvuspb . FlushAllResponse , _a1 error ) * MockProxy_FlushAll_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_FlushAll_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . FlushAllRequest ) ( * milvuspb . FlushAllResponse , error ) ) * MockProxy_FlushAll_Call {
_c . Call . Return ( run )
return _c
}
2023-04-23 09:00:32 +08:00
// GetAddress provides a mock function with given fields:
2023-07-14 10:12:31 +08:00
func ( _m * MockProxy ) GetAddress ( ) string {
2023-04-23 09:00:32 +08:00
ret := _m . Called ( )
var r0 string
if rf , ok := ret . Get ( 0 ) . ( func ( ) string ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Get ( 0 ) . ( string )
}
return r0
}
2023-07-14 10:12:31 +08:00
// MockProxy_GetAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAddress'
type MockProxy_GetAddress_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// GetAddress is a helper method to define mock.On call
2023-07-14 10:12:31 +08:00
func ( _e * MockProxy_Expecter ) GetAddress ( ) * MockProxy_GetAddress_Call {
return & MockProxy_GetAddress_Call { Call : _e . mock . On ( "GetAddress" ) }
2023-04-23 09:00:32 +08:00
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_GetAddress_Call ) Run ( run func ( ) ) * MockProxy_GetAddress_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_GetAddress_Call ) Return ( _a0 string ) * MockProxy_GetAddress_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_GetAddress_Call ) RunAndReturn ( run func ( ) string ) * MockProxy_GetAddress_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// GetCollectionStatistics provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) GetCollectionStatistics ( _a0 context . Context , _a1 * milvuspb . GetCollectionStatisticsRequest ) ( * milvuspb . GetCollectionStatisticsResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . GetCollectionStatisticsResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetCollectionStatisticsRequest ) ( * milvuspb . GetCollectionStatisticsResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetCollectionStatisticsRequest ) * milvuspb . GetCollectionStatisticsResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . GetCollectionStatisticsResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . GetCollectionStatisticsRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_GetCollectionStatistics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCollectionStatistics'
type MockProxy_GetCollectionStatistics_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// GetCollectionStatistics is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.GetCollectionStatisticsRequest
func ( _e * MockProxy_Expecter ) GetCollectionStatistics ( _a0 interface { } , _a1 interface { } ) * MockProxy_GetCollectionStatistics_Call {
return & MockProxy_GetCollectionStatistics_Call { Call : _e . mock . On ( "GetCollectionStatistics" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_GetCollectionStatistics_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . GetCollectionStatisticsRequest ) ) * MockProxy_GetCollectionStatistics_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . GetCollectionStatisticsRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_GetCollectionStatistics_Call ) Return ( _a0 * milvuspb . GetCollectionStatisticsResponse , _a1 error ) * MockProxy_GetCollectionStatistics_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_GetCollectionStatistics_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . GetCollectionStatisticsRequest ) ( * milvuspb . GetCollectionStatisticsResponse , error ) ) * MockProxy_GetCollectionStatistics_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// GetCompactionState provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) GetCompactionState ( _a0 context . Context , _a1 * milvuspb . GetCompactionStateRequest ) ( * milvuspb . GetCompactionStateResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . GetCompactionStateResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetCompactionStateRequest ) ( * milvuspb . GetCompactionStateResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetCompactionStateRequest ) * milvuspb . GetCompactionStateResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . GetCompactionStateResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . GetCompactionStateRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_GetCompactionState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCompactionState'
type MockProxy_GetCompactionState_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// GetCompactionState is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.GetCompactionStateRequest
func ( _e * MockProxy_Expecter ) GetCompactionState ( _a0 interface { } , _a1 interface { } ) * MockProxy_GetCompactionState_Call {
return & MockProxy_GetCompactionState_Call { Call : _e . mock . On ( "GetCompactionState" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_GetCompactionState_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . GetCompactionStateRequest ) ) * MockProxy_GetCompactionState_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . GetCompactionStateRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_GetCompactionState_Call ) Return ( _a0 * milvuspb . GetCompactionStateResponse , _a1 error ) * MockProxy_GetCompactionState_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_GetCompactionState_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . GetCompactionStateRequest ) ( * milvuspb . GetCompactionStateResponse , error ) ) * MockProxy_GetCompactionState_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// GetCompactionStateWithPlans provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) GetCompactionStateWithPlans ( _a0 context . Context , _a1 * milvuspb . GetCompactionPlansRequest ) ( * milvuspb . GetCompactionPlansResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . GetCompactionPlansResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetCompactionPlansRequest ) ( * milvuspb . GetCompactionPlansResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetCompactionPlansRequest ) * milvuspb . GetCompactionPlansResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . GetCompactionPlansResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . GetCompactionPlansRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_GetCompactionStateWithPlans_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCompactionStateWithPlans'
type MockProxy_GetCompactionStateWithPlans_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// GetCompactionStateWithPlans is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.GetCompactionPlansRequest
func ( _e * MockProxy_Expecter ) GetCompactionStateWithPlans ( _a0 interface { } , _a1 interface { } ) * MockProxy_GetCompactionStateWithPlans_Call {
return & MockProxy_GetCompactionStateWithPlans_Call { Call : _e . mock . On ( "GetCompactionStateWithPlans" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_GetCompactionStateWithPlans_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . GetCompactionPlansRequest ) ) * MockProxy_GetCompactionStateWithPlans_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . GetCompactionPlansRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_GetCompactionStateWithPlans_Call ) Return ( _a0 * milvuspb . GetCompactionPlansResponse , _a1 error ) * MockProxy_GetCompactionStateWithPlans_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_GetCompactionStateWithPlans_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . GetCompactionPlansRequest ) ( * milvuspb . GetCompactionPlansResponse , error ) ) * MockProxy_GetCompactionStateWithPlans_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// GetComponentStates provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) GetComponentStates ( _a0 context . Context , _a1 * milvuspb . GetComponentStatesRequest ) ( * milvuspb . ComponentStates , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . ComponentStates
2023-08-17 20:20:20 +08:00
var r1 error
2023-09-26 09:57:25 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetComponentStatesRequest ) ( * milvuspb . ComponentStates , error ) ) ; ok {
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-09-26 09:57:25 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetComponentStatesRequest ) * milvuspb . ComponentStates ) ; ok {
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . ComponentStates )
}
}
2023-09-26 09:57:25 +08:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . GetComponentStatesRequest ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_GetComponentStates_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetComponentStates'
type MockProxy_GetComponentStates_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// GetComponentStates is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.GetComponentStatesRequest
func ( _e * MockProxy_Expecter ) GetComponentStates ( _a0 interface { } , _a1 interface { } ) * MockProxy_GetComponentStates_Call {
return & MockProxy_GetComponentStates_Call { Call : _e . mock . On ( "GetComponentStates" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_GetComponentStates_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . GetComponentStatesRequest ) ) * MockProxy_GetComponentStates_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
2023-09-26 09:57:25 +08:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . GetComponentStatesRequest ) )
2023-04-23 09:00:32 +08:00
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_GetComponentStates_Call ) Return ( _a0 * milvuspb . ComponentStates , _a1 error ) * MockProxy_GetComponentStates_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_GetComponentStates_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . GetComponentStatesRequest ) ( * milvuspb . ComponentStates , error ) ) * MockProxy_GetComponentStates_Call {
2023-08-17 20:20:20 +08:00
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// GetDdChannel provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) GetDdChannel ( _a0 context . Context , _a1 * internalpb . GetDdChannelRequest ) ( * milvuspb . StringResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . StringResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * internalpb . GetDdChannelRequest ) ( * milvuspb . StringResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * internalpb . GetDdChannelRequest ) * milvuspb . StringResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . StringResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * internalpb . GetDdChannelRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_GetDdChannel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDdChannel'
type MockProxy_GetDdChannel_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// GetDdChannel is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *internalpb.GetDdChannelRequest
func ( _e * MockProxy_Expecter ) GetDdChannel ( _a0 interface { } , _a1 interface { } ) * MockProxy_GetDdChannel_Call {
return & MockProxy_GetDdChannel_Call { Call : _e . mock . On ( "GetDdChannel" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_GetDdChannel_Call ) Run ( run func ( _a0 context . Context , _a1 * internalpb . GetDdChannelRequest ) ) * MockProxy_GetDdChannel_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * internalpb . GetDdChannelRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_GetDdChannel_Call ) Return ( _a0 * milvuspb . StringResponse , _a1 error ) * MockProxy_GetDdChannel_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_GetDdChannel_Call ) RunAndReturn ( run func ( context . Context , * internalpb . GetDdChannelRequest ) ( * milvuspb . StringResponse , error ) ) * MockProxy_GetDdChannel_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// GetFlushAllState provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) GetFlushAllState ( _a0 context . Context , _a1 * milvuspb . GetFlushAllStateRequest ) ( * milvuspb . GetFlushAllStateResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . GetFlushAllStateResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetFlushAllStateRequest ) ( * milvuspb . GetFlushAllStateResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetFlushAllStateRequest ) * milvuspb . GetFlushAllStateResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . GetFlushAllStateResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . GetFlushAllStateRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_GetFlushAllState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFlushAllState'
type MockProxy_GetFlushAllState_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// GetFlushAllState is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.GetFlushAllStateRequest
func ( _e * MockProxy_Expecter ) GetFlushAllState ( _a0 interface { } , _a1 interface { } ) * MockProxy_GetFlushAllState_Call {
return & MockProxy_GetFlushAllState_Call { Call : _e . mock . On ( "GetFlushAllState" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_GetFlushAllState_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . GetFlushAllStateRequest ) ) * MockProxy_GetFlushAllState_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . GetFlushAllStateRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_GetFlushAllState_Call ) Return ( _a0 * milvuspb . GetFlushAllStateResponse , _a1 error ) * MockProxy_GetFlushAllState_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_GetFlushAllState_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . GetFlushAllStateRequest ) ( * milvuspb . GetFlushAllStateResponse , error ) ) * MockProxy_GetFlushAllState_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// GetFlushState provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) GetFlushState ( _a0 context . Context , _a1 * milvuspb . GetFlushStateRequest ) ( * milvuspb . GetFlushStateResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . GetFlushStateResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetFlushStateRequest ) ( * milvuspb . GetFlushStateResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetFlushStateRequest ) * milvuspb . GetFlushStateResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . GetFlushStateResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . GetFlushStateRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_GetFlushState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFlushState'
type MockProxy_GetFlushState_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// GetFlushState is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.GetFlushStateRequest
func ( _e * MockProxy_Expecter ) GetFlushState ( _a0 interface { } , _a1 interface { } ) * MockProxy_GetFlushState_Call {
return & MockProxy_GetFlushState_Call { Call : _e . mock . On ( "GetFlushState" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_GetFlushState_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . GetFlushStateRequest ) ) * MockProxy_GetFlushState_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . GetFlushStateRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_GetFlushState_Call ) Return ( _a0 * milvuspb . GetFlushStateResponse , _a1 error ) * MockProxy_GetFlushState_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_GetFlushState_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . GetFlushStateRequest ) ( * milvuspb . GetFlushStateResponse , error ) ) * MockProxy_GetFlushState_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// GetImportState provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) GetImportState ( _a0 context . Context , _a1 * milvuspb . GetImportStateRequest ) ( * milvuspb . GetImportStateResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . GetImportStateResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetImportStateRequest ) ( * milvuspb . GetImportStateResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetImportStateRequest ) * milvuspb . GetImportStateResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . GetImportStateResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . GetImportStateRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_GetImportState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetImportState'
type MockProxy_GetImportState_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// GetImportState is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.GetImportStateRequest
func ( _e * MockProxy_Expecter ) GetImportState ( _a0 interface { } , _a1 interface { } ) * MockProxy_GetImportState_Call {
return & MockProxy_GetImportState_Call { Call : _e . mock . On ( "GetImportState" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_GetImportState_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . GetImportStateRequest ) ) * MockProxy_GetImportState_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . GetImportStateRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_GetImportState_Call ) Return ( _a0 * milvuspb . GetImportStateResponse , _a1 error ) * MockProxy_GetImportState_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_GetImportState_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . GetImportStateRequest ) ( * milvuspb . GetImportStateResponse , error ) ) * MockProxy_GetImportState_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// GetIndexBuildProgress provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) GetIndexBuildProgress ( _a0 context . Context , _a1 * milvuspb . GetIndexBuildProgressRequest ) ( * milvuspb . GetIndexBuildProgressResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . GetIndexBuildProgressResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetIndexBuildProgressRequest ) ( * milvuspb . GetIndexBuildProgressResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetIndexBuildProgressRequest ) * milvuspb . GetIndexBuildProgressResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . GetIndexBuildProgressResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . GetIndexBuildProgressRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_GetIndexBuildProgress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIndexBuildProgress'
type MockProxy_GetIndexBuildProgress_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// GetIndexBuildProgress is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.GetIndexBuildProgressRequest
func ( _e * MockProxy_Expecter ) GetIndexBuildProgress ( _a0 interface { } , _a1 interface { } ) * MockProxy_GetIndexBuildProgress_Call {
return & MockProxy_GetIndexBuildProgress_Call { Call : _e . mock . On ( "GetIndexBuildProgress" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_GetIndexBuildProgress_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . GetIndexBuildProgressRequest ) ) * MockProxy_GetIndexBuildProgress_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . GetIndexBuildProgressRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_GetIndexBuildProgress_Call ) Return ( _a0 * milvuspb . GetIndexBuildProgressResponse , _a1 error ) * MockProxy_GetIndexBuildProgress_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_GetIndexBuildProgress_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . GetIndexBuildProgressRequest ) ( * milvuspb . GetIndexBuildProgressResponse , error ) ) * MockProxy_GetIndexBuildProgress_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// GetIndexState provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) GetIndexState ( _a0 context . Context , _a1 * milvuspb . GetIndexStateRequest ) ( * milvuspb . GetIndexStateResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . GetIndexStateResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetIndexStateRequest ) ( * milvuspb . GetIndexStateResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetIndexStateRequest ) * milvuspb . GetIndexStateResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . GetIndexStateResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . GetIndexStateRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_GetIndexState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIndexState'
type MockProxy_GetIndexState_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// GetIndexState is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.GetIndexStateRequest
func ( _e * MockProxy_Expecter ) GetIndexState ( _a0 interface { } , _a1 interface { } ) * MockProxy_GetIndexState_Call {
return & MockProxy_GetIndexState_Call { Call : _e . mock . On ( "GetIndexState" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_GetIndexState_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . GetIndexStateRequest ) ) * MockProxy_GetIndexState_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . GetIndexStateRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_GetIndexState_Call ) Return ( _a0 * milvuspb . GetIndexStateResponse , _a1 error ) * MockProxy_GetIndexState_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_GetIndexState_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . GetIndexStateRequest ) ( * milvuspb . GetIndexStateResponse , error ) ) * MockProxy_GetIndexState_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// GetIndexStatistics provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) GetIndexStatistics ( _a0 context . Context , _a1 * milvuspb . GetIndexStatisticsRequest ) ( * milvuspb . GetIndexStatisticsResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 14:50:32 +08:00
var r0 * milvuspb . GetIndexStatisticsResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetIndexStatisticsRequest ) ( * milvuspb . GetIndexStatisticsResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 14:50:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetIndexStatisticsRequest ) * milvuspb . GetIndexStatisticsResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 14:50:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . GetIndexStatisticsResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . GetIndexStatisticsRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 14:50:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_GetIndexStatistics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIndexStatistics'
type MockProxy_GetIndexStatistics_Call struct {
2023-04-23 14:50:32 +08:00
* mock . Call
}
// GetIndexStatistics is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.GetIndexStatisticsRequest
func ( _e * MockProxy_Expecter ) GetIndexStatistics ( _a0 interface { } , _a1 interface { } ) * MockProxy_GetIndexStatistics_Call {
return & MockProxy_GetIndexStatistics_Call { Call : _e . mock . On ( "GetIndexStatistics" , _a0 , _a1 ) }
2023-04-23 14:50:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_GetIndexStatistics_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . GetIndexStatisticsRequest ) ) * MockProxy_GetIndexStatistics_Call {
2023-04-23 14:50:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . GetIndexStatisticsRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_GetIndexStatistics_Call ) Return ( _a0 * milvuspb . GetIndexStatisticsResponse , _a1 error ) * MockProxy_GetIndexStatistics_Call {
2023-04-23 14:50:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_GetIndexStatistics_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . GetIndexStatisticsRequest ) ( * milvuspb . GetIndexStatisticsResponse , error ) ) * MockProxy_GetIndexStatistics_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// GetLoadState provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) GetLoadState ( _a0 context . Context , _a1 * milvuspb . GetLoadStateRequest ) ( * milvuspb . GetLoadStateResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . GetLoadStateResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetLoadStateRequest ) ( * milvuspb . GetLoadStateResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetLoadStateRequest ) * milvuspb . GetLoadStateResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . GetLoadStateResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . GetLoadStateRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_GetLoadState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLoadState'
type MockProxy_GetLoadState_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// GetLoadState is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.GetLoadStateRequest
func ( _e * MockProxy_Expecter ) GetLoadState ( _a0 interface { } , _a1 interface { } ) * MockProxy_GetLoadState_Call {
return & MockProxy_GetLoadState_Call { Call : _e . mock . On ( "GetLoadState" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_GetLoadState_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . GetLoadStateRequest ) ) * MockProxy_GetLoadState_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . GetLoadStateRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_GetLoadState_Call ) Return ( _a0 * milvuspb . GetLoadStateResponse , _a1 error ) * MockProxy_GetLoadState_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_GetLoadState_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . GetLoadStateRequest ) ( * milvuspb . GetLoadStateResponse , error ) ) * MockProxy_GetLoadState_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// GetLoadingProgress provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) GetLoadingProgress ( _a0 context . Context , _a1 * milvuspb . GetLoadingProgressRequest ) ( * milvuspb . GetLoadingProgressResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . GetLoadingProgressResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetLoadingProgressRequest ) ( * milvuspb . GetLoadingProgressResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetLoadingProgressRequest ) * milvuspb . GetLoadingProgressResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . GetLoadingProgressResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . GetLoadingProgressRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_GetLoadingProgress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLoadingProgress'
type MockProxy_GetLoadingProgress_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// GetLoadingProgress is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.GetLoadingProgressRequest
func ( _e * MockProxy_Expecter ) GetLoadingProgress ( _a0 interface { } , _a1 interface { } ) * MockProxy_GetLoadingProgress_Call {
return & MockProxy_GetLoadingProgress_Call { Call : _e . mock . On ( "GetLoadingProgress" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_GetLoadingProgress_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . GetLoadingProgressRequest ) ) * MockProxy_GetLoadingProgress_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . GetLoadingProgressRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_GetLoadingProgress_Call ) Return ( _a0 * milvuspb . GetLoadingProgressResponse , _a1 error ) * MockProxy_GetLoadingProgress_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_GetLoadingProgress_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . GetLoadingProgressRequest ) ( * milvuspb . GetLoadingProgressResponse , error ) ) * MockProxy_GetLoadingProgress_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// GetMetrics provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) GetMetrics ( _a0 context . Context , _a1 * milvuspb . GetMetricsRequest ) ( * milvuspb . GetMetricsResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . GetMetricsResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetMetricsRequest ) ( * milvuspb . GetMetricsResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetMetricsRequest ) * milvuspb . GetMetricsResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . GetMetricsResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . GetMetricsRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_GetMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMetrics'
type MockProxy_GetMetrics_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// GetMetrics is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.GetMetricsRequest
func ( _e * MockProxy_Expecter ) GetMetrics ( _a0 interface { } , _a1 interface { } ) * MockProxy_GetMetrics_Call {
return & MockProxy_GetMetrics_Call { Call : _e . mock . On ( "GetMetrics" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_GetMetrics_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . GetMetricsRequest ) ) * MockProxy_GetMetrics_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . GetMetricsRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_GetMetrics_Call ) Return ( _a0 * milvuspb . GetMetricsResponse , _a1 error ) * MockProxy_GetMetrics_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_GetMetrics_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . GetMetricsRequest ) ( * milvuspb . GetMetricsResponse , error ) ) * MockProxy_GetMetrics_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// GetPartitionStatistics provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) GetPartitionStatistics ( _a0 context . Context , _a1 * milvuspb . GetPartitionStatisticsRequest ) ( * milvuspb . GetPartitionStatisticsResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . GetPartitionStatisticsResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetPartitionStatisticsRequest ) ( * milvuspb . GetPartitionStatisticsResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetPartitionStatisticsRequest ) * milvuspb . GetPartitionStatisticsResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . GetPartitionStatisticsResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . GetPartitionStatisticsRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_GetPartitionStatistics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPartitionStatistics'
type MockProxy_GetPartitionStatistics_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// GetPartitionStatistics is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.GetPartitionStatisticsRequest
func ( _e * MockProxy_Expecter ) GetPartitionStatistics ( _a0 interface { } , _a1 interface { } ) * MockProxy_GetPartitionStatistics_Call {
return & MockProxy_GetPartitionStatistics_Call { Call : _e . mock . On ( "GetPartitionStatistics" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_GetPartitionStatistics_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . GetPartitionStatisticsRequest ) ) * MockProxy_GetPartitionStatistics_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . GetPartitionStatisticsRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_GetPartitionStatistics_Call ) Return ( _a0 * milvuspb . GetPartitionStatisticsResponse , _a1 error ) * MockProxy_GetPartitionStatistics_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_GetPartitionStatistics_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . GetPartitionStatisticsRequest ) ( * milvuspb . GetPartitionStatisticsResponse , error ) ) * MockProxy_GetPartitionStatistics_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// GetPersistentSegmentInfo provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) GetPersistentSegmentInfo ( _a0 context . Context , _a1 * milvuspb . GetPersistentSegmentInfoRequest ) ( * milvuspb . GetPersistentSegmentInfoResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . GetPersistentSegmentInfoResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetPersistentSegmentInfoRequest ) ( * milvuspb . GetPersistentSegmentInfoResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetPersistentSegmentInfoRequest ) * milvuspb . GetPersistentSegmentInfoResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . GetPersistentSegmentInfoResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . GetPersistentSegmentInfoRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_GetPersistentSegmentInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPersistentSegmentInfo'
type MockProxy_GetPersistentSegmentInfo_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// GetPersistentSegmentInfo is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.GetPersistentSegmentInfoRequest
func ( _e * MockProxy_Expecter ) GetPersistentSegmentInfo ( _a0 interface { } , _a1 interface { } ) * MockProxy_GetPersistentSegmentInfo_Call {
return & MockProxy_GetPersistentSegmentInfo_Call { Call : _e . mock . On ( "GetPersistentSegmentInfo" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_GetPersistentSegmentInfo_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . GetPersistentSegmentInfoRequest ) ) * MockProxy_GetPersistentSegmentInfo_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . GetPersistentSegmentInfoRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_GetPersistentSegmentInfo_Call ) Return ( _a0 * milvuspb . GetPersistentSegmentInfoResponse , _a1 error ) * MockProxy_GetPersistentSegmentInfo_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_GetPersistentSegmentInfo_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . GetPersistentSegmentInfoRequest ) ( * milvuspb . GetPersistentSegmentInfoResponse , error ) ) * MockProxy_GetPersistentSegmentInfo_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// GetProxyMetrics provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) GetProxyMetrics ( _a0 context . Context , _a1 * milvuspb . GetMetricsRequest ) ( * milvuspb . GetMetricsResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . GetMetricsResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetMetricsRequest ) ( * milvuspb . GetMetricsResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetMetricsRequest ) * milvuspb . GetMetricsResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . GetMetricsResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . GetMetricsRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_GetProxyMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProxyMetrics'
type MockProxy_GetProxyMetrics_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// GetProxyMetrics is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.GetMetricsRequest
func ( _e * MockProxy_Expecter ) GetProxyMetrics ( _a0 interface { } , _a1 interface { } ) * MockProxy_GetProxyMetrics_Call {
return & MockProxy_GetProxyMetrics_Call { Call : _e . mock . On ( "GetProxyMetrics" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_GetProxyMetrics_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . GetMetricsRequest ) ) * MockProxy_GetProxyMetrics_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . GetMetricsRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_GetProxyMetrics_Call ) Return ( _a0 * milvuspb . GetMetricsResponse , _a1 error ) * MockProxy_GetProxyMetrics_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_GetProxyMetrics_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . GetMetricsRequest ) ( * milvuspb . GetMetricsResponse , error ) ) * MockProxy_GetProxyMetrics_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// GetQuerySegmentInfo provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) GetQuerySegmentInfo ( _a0 context . Context , _a1 * milvuspb . GetQuerySegmentInfoRequest ) ( * milvuspb . GetQuerySegmentInfoResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . GetQuerySegmentInfoResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetQuerySegmentInfoRequest ) ( * milvuspb . GetQuerySegmentInfoResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetQuerySegmentInfoRequest ) * milvuspb . GetQuerySegmentInfoResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . GetQuerySegmentInfoResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . GetQuerySegmentInfoRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_GetQuerySegmentInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetQuerySegmentInfo'
type MockProxy_GetQuerySegmentInfo_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// GetQuerySegmentInfo is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.GetQuerySegmentInfoRequest
func ( _e * MockProxy_Expecter ) GetQuerySegmentInfo ( _a0 interface { } , _a1 interface { } ) * MockProxy_GetQuerySegmentInfo_Call {
return & MockProxy_GetQuerySegmentInfo_Call { Call : _e . mock . On ( "GetQuerySegmentInfo" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_GetQuerySegmentInfo_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . GetQuerySegmentInfoRequest ) ) * MockProxy_GetQuerySegmentInfo_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . GetQuerySegmentInfoRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_GetQuerySegmentInfo_Call ) Return ( _a0 * milvuspb . GetQuerySegmentInfoResponse , _a1 error ) * MockProxy_GetQuerySegmentInfo_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_GetQuerySegmentInfo_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . GetQuerySegmentInfoRequest ) ( * milvuspb . GetQuerySegmentInfoResponse , error ) ) * MockProxy_GetQuerySegmentInfo_Call {
_c . Call . Return ( run )
return _c
}
2023-04-23 09:00:32 +08:00
// GetRateLimiter provides a mock function with given fields:
2023-07-14 10:12:31 +08:00
func ( _m * MockProxy ) GetRateLimiter ( ) ( types . Limiter , error ) {
2023-04-23 09:00:32 +08:00
ret := _m . Called ( )
var r0 types . Limiter
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) ( types . Limiter , error ) ) ; ok {
return rf ( )
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( ) types . Limiter ) ; ok {
r0 = rf ( )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( types . Limiter )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( ) error ) ; ok {
r1 = rf ( )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_GetRateLimiter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRateLimiter'
type MockProxy_GetRateLimiter_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// GetRateLimiter is a helper method to define mock.On call
2023-07-14 10:12:31 +08:00
func ( _e * MockProxy_Expecter ) GetRateLimiter ( ) * MockProxy_GetRateLimiter_Call {
return & MockProxy_GetRateLimiter_Call { Call : _e . mock . On ( "GetRateLimiter" ) }
2023-04-23 09:00:32 +08:00
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_GetRateLimiter_Call ) Run ( run func ( ) ) * MockProxy_GetRateLimiter_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_GetRateLimiter_Call ) Return ( _a0 types . Limiter , _a1 error ) * MockProxy_GetRateLimiter_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_GetRateLimiter_Call ) RunAndReturn ( run func ( ) ( types . Limiter , error ) ) * MockProxy_GetRateLimiter_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// GetReplicas provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) GetReplicas ( _a0 context . Context , _a1 * milvuspb . GetReplicasRequest ) ( * milvuspb . GetReplicasResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
2023-07-25 10:05:00 +08:00
var r0 * milvuspb . GetReplicasResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetReplicasRequest ) ( * milvuspb . GetReplicasResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetReplicasRequest ) * milvuspb . GetReplicasResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . GetReplicasResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . GetReplicasRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_GetReplicas_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReplicas'
type MockProxy_GetReplicas_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// GetReplicas is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.GetReplicasRequest
func ( _e * MockProxy_Expecter ) GetReplicas ( _a0 interface { } , _a1 interface { } ) * MockProxy_GetReplicas_Call {
return & MockProxy_GetReplicas_Call { Call : _e . mock . On ( "GetReplicas" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_GetReplicas_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . GetReplicasRequest ) ) * MockProxy_GetReplicas_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . GetReplicasRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_GetReplicas_Call ) Return ( _a0 * milvuspb . GetReplicasResponse , _a1 error ) * MockProxy_GetReplicas_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_GetReplicas_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . GetReplicasRequest ) ( * milvuspb . GetReplicasResponse , error ) ) * MockProxy_GetReplicas_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// GetStatisticsChannel provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) GetStatisticsChannel ( _a0 context . Context , _a1 * internalpb . GetStatisticsChannelRequest ) ( * milvuspb . StringResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . StringResponse
2023-08-17 20:20:20 +08:00
var r1 error
2023-09-26 09:57:25 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * internalpb . GetStatisticsChannelRequest ) ( * milvuspb . StringResponse , error ) ) ; ok {
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-09-26 09:57:25 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * internalpb . GetStatisticsChannelRequest ) * milvuspb . StringResponse ) ; ok {
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . StringResponse )
}
}
2023-09-26 09:57:25 +08:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * internalpb . GetStatisticsChannelRequest ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_GetStatisticsChannel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStatisticsChannel'
type MockProxy_GetStatisticsChannel_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// GetStatisticsChannel is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *internalpb.GetStatisticsChannelRequest
func ( _e * MockProxy_Expecter ) GetStatisticsChannel ( _a0 interface { } , _a1 interface { } ) * MockProxy_GetStatisticsChannel_Call {
return & MockProxy_GetStatisticsChannel_Call { Call : _e . mock . On ( "GetStatisticsChannel" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_GetStatisticsChannel_Call ) Run ( run func ( _a0 context . Context , _a1 * internalpb . GetStatisticsChannelRequest ) ) * MockProxy_GetStatisticsChannel_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
2023-09-26 09:57:25 +08:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * internalpb . GetStatisticsChannelRequest ) )
2023-04-23 09:00:32 +08:00
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_GetStatisticsChannel_Call ) Return ( _a0 * milvuspb . StringResponse , _a1 error ) * MockProxy_GetStatisticsChannel_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_GetStatisticsChannel_Call ) RunAndReturn ( run func ( context . Context , * internalpb . GetStatisticsChannelRequest ) ( * milvuspb . StringResponse , error ) ) * MockProxy_GetStatisticsChannel_Call {
_c . Call . Return ( run )
return _c
}
// GetVersion provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) GetVersion ( _a0 context . Context , _a1 * milvuspb . GetVersionRequest ) ( * milvuspb . GetVersionResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * milvuspb . GetVersionResponse
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetVersionRequest ) ( * milvuspb . GetVersionResponse , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetVersionRequest ) * milvuspb . GetVersionResponse ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . GetVersionResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . GetVersionRequest ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockProxy_GetVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVersion'
type MockProxy_GetVersion_Call struct {
* mock . Call
}
// GetVersion is a helper method to define mock.On call
// - _a0 context.Context
// - _a1 *milvuspb.GetVersionRequest
func ( _e * MockProxy_Expecter ) GetVersion ( _a0 interface { } , _a1 interface { } ) * MockProxy_GetVersion_Call {
return & MockProxy_GetVersion_Call { Call : _e . mock . On ( "GetVersion" , _a0 , _a1 ) }
}
func ( _c * MockProxy_GetVersion_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . GetVersionRequest ) ) * MockProxy_GetVersion_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . GetVersionRequest ) )
} )
return _c
}
func ( _c * MockProxy_GetVersion_Call ) Return ( _a0 * milvuspb . GetVersionResponse , _a1 error ) * MockProxy_GetVersion_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockProxy_GetVersion_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . GetVersionRequest ) ( * milvuspb . GetVersionResponse , error ) ) * MockProxy_GetVersion_Call {
2023-08-17 20:20:20 +08:00
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// HasCollection provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) HasCollection ( _a0 context . Context , _a1 * milvuspb . HasCollectionRequest ) ( * milvuspb . BoolResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . BoolResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . HasCollectionRequest ) ( * milvuspb . BoolResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . HasCollectionRequest ) * milvuspb . BoolResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . BoolResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . HasCollectionRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_HasCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasCollection'
type MockProxy_HasCollection_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// HasCollection is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.HasCollectionRequest
func ( _e * MockProxy_Expecter ) HasCollection ( _a0 interface { } , _a1 interface { } ) * MockProxy_HasCollection_Call {
return & MockProxy_HasCollection_Call { Call : _e . mock . On ( "HasCollection" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_HasCollection_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . HasCollectionRequest ) ) * MockProxy_HasCollection_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . HasCollectionRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_HasCollection_Call ) Return ( _a0 * milvuspb . BoolResponse , _a1 error ) * MockProxy_HasCollection_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_HasCollection_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . HasCollectionRequest ) ( * milvuspb . BoolResponse , error ) ) * MockProxy_HasCollection_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// HasPartition provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) HasPartition ( _a0 context . Context , _a1 * milvuspb . HasPartitionRequest ) ( * milvuspb . BoolResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . BoolResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . HasPartitionRequest ) ( * milvuspb . BoolResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . HasPartitionRequest ) * milvuspb . BoolResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . BoolResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . HasPartitionRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_HasPartition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasPartition'
type MockProxy_HasPartition_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// HasPartition is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.HasPartitionRequest
func ( _e * MockProxy_Expecter ) HasPartition ( _a0 interface { } , _a1 interface { } ) * MockProxy_HasPartition_Call {
return & MockProxy_HasPartition_Call { Call : _e . mock . On ( "HasPartition" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_HasPartition_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . HasPartitionRequest ) ) * MockProxy_HasPartition_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . HasPartitionRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_HasPartition_Call ) Return ( _a0 * milvuspb . BoolResponse , _a1 error ) * MockProxy_HasPartition_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_HasPartition_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . HasPartitionRequest ) ( * milvuspb . BoolResponse , error ) ) * MockProxy_HasPartition_Call {
_c . Call . Return ( run )
return _c
}
2024-01-04 19:22:46 +08:00
// HybridSearch provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) HybridSearch ( _a0 context . Context , _a1 * milvuspb . HybridSearchRequest ) ( * milvuspb . SearchResults , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * milvuspb . SearchResults
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . HybridSearchRequest ) ( * milvuspb . SearchResults , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . HybridSearchRequest ) * milvuspb . SearchResults ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . SearchResults )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . HybridSearchRequest ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockProxy_HybridSearch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HybridSearch'
type MockProxy_HybridSearch_Call struct {
* mock . Call
}
// HybridSearch is a helper method to define mock.On call
// - _a0 context.Context
// - _a1 *milvuspb.HybridSearchRequest
func ( _e * MockProxy_Expecter ) HybridSearch ( _a0 interface { } , _a1 interface { } ) * MockProxy_HybridSearch_Call {
return & MockProxy_HybridSearch_Call { Call : _e . mock . On ( "HybridSearch" , _a0 , _a1 ) }
}
func ( _c * MockProxy_HybridSearch_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . HybridSearchRequest ) ) * MockProxy_HybridSearch_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . HybridSearchRequest ) )
} )
return _c
}
func ( _c * MockProxy_HybridSearch_Call ) Return ( _a0 * milvuspb . SearchResults , _a1 error ) * MockProxy_HybridSearch_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockProxy_HybridSearch_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . HybridSearchRequest ) ( * milvuspb . SearchResults , error ) ) * MockProxy_HybridSearch_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// Import provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) Import ( _a0 context . Context , _a1 * milvuspb . ImportRequest ) ( * milvuspb . ImportResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . ImportResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ImportRequest ) ( * milvuspb . ImportResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ImportRequest ) * milvuspb . ImportResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . ImportResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . ImportRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_Import_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Import'
type MockProxy_Import_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// Import is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.ImportRequest
func ( _e * MockProxy_Expecter ) Import ( _a0 interface { } , _a1 interface { } ) * MockProxy_Import_Call {
return & MockProxy_Import_Call { Call : _e . mock . On ( "Import" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_Import_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . ImportRequest ) ) * MockProxy_Import_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . ImportRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_Import_Call ) Return ( _a0 * milvuspb . ImportResponse , _a1 error ) * MockProxy_Import_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_Import_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . ImportRequest ) ( * milvuspb . ImportResponse , error ) ) * MockProxy_Import_Call {
_c . Call . Return ( run )
return _c
}
2023-04-23 09:00:32 +08:00
// Init provides a mock function with given fields:
2023-07-14 10:12:31 +08:00
func ( _m * MockProxy ) Init ( ) error {
2023-04-23 09:00:32 +08:00
ret := _m . Called ( )
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) error ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2023-07-14 10:12:31 +08:00
// MockProxy_Init_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Init'
type MockProxy_Init_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// Init is a helper method to define mock.On call
2023-07-14 10:12:31 +08:00
func ( _e * MockProxy_Expecter ) Init ( ) * MockProxy_Init_Call {
return & MockProxy_Init_Call { Call : _e . mock . On ( "Init" ) }
2023-04-23 09:00:32 +08:00
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_Init_Call ) Run ( run func ( ) ) * MockProxy_Init_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_Init_Call ) Return ( _a0 error ) * MockProxy_Init_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_Init_Call ) RunAndReturn ( run func ( ) error ) * MockProxy_Init_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// Insert provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) Insert ( _a0 context . Context , _a1 * milvuspb . InsertRequest ) ( * milvuspb . MutationResult , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . MutationResult
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . InsertRequest ) ( * milvuspb . MutationResult , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . InsertRequest ) * milvuspb . MutationResult ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . MutationResult )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . InsertRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_Insert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Insert'
type MockProxy_Insert_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// Insert is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.InsertRequest
func ( _e * MockProxy_Expecter ) Insert ( _a0 interface { } , _a1 interface { } ) * MockProxy_Insert_Call {
return & MockProxy_Insert_Call { Call : _e . mock . On ( "Insert" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_Insert_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . InsertRequest ) ) * MockProxy_Insert_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . InsertRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_Insert_Call ) Return ( _a0 * milvuspb . MutationResult , _a1 error ) * MockProxy_Insert_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_Insert_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . InsertRequest ) ( * milvuspb . MutationResult , error ) ) * MockProxy_Insert_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// InvalidateCollectionMetaCache provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) InvalidateCollectionMetaCache ( _a0 context . Context , _a1 * proxypb . InvalidateCollMetaCacheRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * proxypb . InvalidateCollMetaCacheRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * proxypb . InvalidateCollMetaCacheRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * proxypb . InvalidateCollMetaCacheRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_InvalidateCollectionMetaCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InvalidateCollectionMetaCache'
type MockProxy_InvalidateCollectionMetaCache_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// InvalidateCollectionMetaCache is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *proxypb.InvalidateCollMetaCacheRequest
func ( _e * MockProxy_Expecter ) InvalidateCollectionMetaCache ( _a0 interface { } , _a1 interface { } ) * MockProxy_InvalidateCollectionMetaCache_Call {
return & MockProxy_InvalidateCollectionMetaCache_Call { Call : _e . mock . On ( "InvalidateCollectionMetaCache" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_InvalidateCollectionMetaCache_Call ) Run ( run func ( _a0 context . Context , _a1 * proxypb . InvalidateCollMetaCacheRequest ) ) * MockProxy_InvalidateCollectionMetaCache_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * proxypb . InvalidateCollMetaCacheRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_InvalidateCollectionMetaCache_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_InvalidateCollectionMetaCache_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_InvalidateCollectionMetaCache_Call ) RunAndReturn ( run func ( context . Context , * proxypb . InvalidateCollMetaCacheRequest ) ( * commonpb . Status , error ) ) * MockProxy_InvalidateCollectionMetaCache_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// InvalidateCredentialCache provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) InvalidateCredentialCache ( _a0 context . Context , _a1 * proxypb . InvalidateCredCacheRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * proxypb . InvalidateCredCacheRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * proxypb . InvalidateCredCacheRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * proxypb . InvalidateCredCacheRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_InvalidateCredentialCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InvalidateCredentialCache'
type MockProxy_InvalidateCredentialCache_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// InvalidateCredentialCache is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *proxypb.InvalidateCredCacheRequest
func ( _e * MockProxy_Expecter ) InvalidateCredentialCache ( _a0 interface { } , _a1 interface { } ) * MockProxy_InvalidateCredentialCache_Call {
return & MockProxy_InvalidateCredentialCache_Call { Call : _e . mock . On ( "InvalidateCredentialCache" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_InvalidateCredentialCache_Call ) Run ( run func ( _a0 context . Context , _a1 * proxypb . InvalidateCredCacheRequest ) ) * MockProxy_InvalidateCredentialCache_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * proxypb . InvalidateCredCacheRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_InvalidateCredentialCache_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_InvalidateCredentialCache_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_InvalidateCredentialCache_Call ) RunAndReturn ( run func ( context . Context , * proxypb . InvalidateCredCacheRequest ) ( * commonpb . Status , error ) ) * MockProxy_InvalidateCredentialCache_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// ListAliases provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) ListAliases ( _a0 context . Context , _a1 * milvuspb . ListAliasesRequest ) ( * milvuspb . ListAliasesResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * milvuspb . ListAliasesResponse
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ListAliasesRequest ) ( * milvuspb . ListAliasesResponse , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ListAliasesRequest ) * milvuspb . ListAliasesResponse ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . ListAliasesResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . ListAliasesRequest ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockProxy_ListAliases_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAliases'
type MockProxy_ListAliases_Call struct {
* mock . Call
}
// ListAliases is a helper method to define mock.On call
// - _a0 context.Context
// - _a1 *milvuspb.ListAliasesRequest
func ( _e * MockProxy_Expecter ) ListAliases ( _a0 interface { } , _a1 interface { } ) * MockProxy_ListAliases_Call {
return & MockProxy_ListAliases_Call { Call : _e . mock . On ( "ListAliases" , _a0 , _a1 ) }
}
func ( _c * MockProxy_ListAliases_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . ListAliasesRequest ) ) * MockProxy_ListAliases_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . ListAliasesRequest ) )
} )
return _c
}
func ( _c * MockProxy_ListAliases_Call ) Return ( _a0 * milvuspb . ListAliasesResponse , _a1 error ) * MockProxy_ListAliases_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockProxy_ListAliases_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . ListAliasesRequest ) ( * milvuspb . ListAliasesResponse , error ) ) * MockProxy_ListAliases_Call {
_c . Call . Return ( run )
return _c
}
// ListClientInfos provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) ListClientInfos ( _a0 context . Context , _a1 * proxypb . ListClientInfosRequest ) ( * proxypb . ListClientInfosResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-05-19 12:51:23 +08:00
var r0 * proxypb . ListClientInfosResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * proxypb . ListClientInfosRequest ) ( * proxypb . ListClientInfosResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-05-19 12:51:23 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * proxypb . ListClientInfosRequest ) * proxypb . ListClientInfosResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-05-19 12:51:23 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * proxypb . ListClientInfosResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * proxypb . ListClientInfosRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-05-19 12:51:23 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_ListClientInfos_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListClientInfos'
type MockProxy_ListClientInfos_Call struct {
2023-05-19 12:51:23 +08:00
* mock . Call
}
// ListClientInfos is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *proxypb.ListClientInfosRequest
func ( _e * MockProxy_Expecter ) ListClientInfos ( _a0 interface { } , _a1 interface { } ) * MockProxy_ListClientInfos_Call {
return & MockProxy_ListClientInfos_Call { Call : _e . mock . On ( "ListClientInfos" , _a0 , _a1 ) }
2023-05-19 12:51:23 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_ListClientInfos_Call ) Run ( run func ( _a0 context . Context , _a1 * proxypb . ListClientInfosRequest ) ) * MockProxy_ListClientInfos_Call {
2023-05-19 12:51:23 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * proxypb . ListClientInfosRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_ListClientInfos_Call ) Return ( _a0 * proxypb . ListClientInfosResponse , _a1 error ) * MockProxy_ListClientInfos_Call {
2023-05-19 12:51:23 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_ListClientInfos_Call ) RunAndReturn ( run func ( context . Context , * proxypb . ListClientInfosRequest ) ( * proxypb . ListClientInfosResponse , error ) ) * MockProxy_ListClientInfos_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// ListCredUsers provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) ListCredUsers ( _a0 context . Context , _a1 * milvuspb . ListCredUsersRequest ) ( * milvuspb . ListCredUsersResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . ListCredUsersResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ListCredUsersRequest ) ( * milvuspb . ListCredUsersResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ListCredUsersRequest ) * milvuspb . ListCredUsersResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . ListCredUsersResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . ListCredUsersRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_ListCredUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListCredUsers'
type MockProxy_ListCredUsers_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// ListCredUsers is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.ListCredUsersRequest
func ( _e * MockProxy_Expecter ) ListCredUsers ( _a0 interface { } , _a1 interface { } ) * MockProxy_ListCredUsers_Call {
return & MockProxy_ListCredUsers_Call { Call : _e . mock . On ( "ListCredUsers" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_ListCredUsers_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . ListCredUsersRequest ) ) * MockProxy_ListCredUsers_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . ListCredUsersRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_ListCredUsers_Call ) Return ( _a0 * milvuspb . ListCredUsersResponse , _a1 error ) * MockProxy_ListCredUsers_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_ListCredUsers_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . ListCredUsersRequest ) ( * milvuspb . ListCredUsersResponse , error ) ) * MockProxy_ListCredUsers_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// ListDatabases provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) ListDatabases ( _a0 context . Context , _a1 * milvuspb . ListDatabasesRequest ) ( * milvuspb . ListDatabasesResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-06-25 17:20:43 +08:00
var r0 * milvuspb . ListDatabasesResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ListDatabasesRequest ) ( * milvuspb . ListDatabasesResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-06-25 17:20:43 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ListDatabasesRequest ) * milvuspb . ListDatabasesResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-06-25 17:20:43 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . ListDatabasesResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . ListDatabasesRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-06-25 17:20:43 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_ListDatabases_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListDatabases'
type MockProxy_ListDatabases_Call struct {
2023-06-25 17:20:43 +08:00
* mock . Call
}
// ListDatabases is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.ListDatabasesRequest
func ( _e * MockProxy_Expecter ) ListDatabases ( _a0 interface { } , _a1 interface { } ) * MockProxy_ListDatabases_Call {
return & MockProxy_ListDatabases_Call { Call : _e . mock . On ( "ListDatabases" , _a0 , _a1 ) }
2023-06-25 17:20:43 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_ListDatabases_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . ListDatabasesRequest ) ) * MockProxy_ListDatabases_Call {
2023-06-25 17:20:43 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . ListDatabasesRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_ListDatabases_Call ) Return ( _a0 * milvuspb . ListDatabasesResponse , _a1 error ) * MockProxy_ListDatabases_Call {
2023-06-25 17:20:43 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_ListDatabases_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . ListDatabasesRequest ) ( * milvuspb . ListDatabasesResponse , error ) ) * MockProxy_ListDatabases_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// ListImportTasks provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) ListImportTasks ( _a0 context . Context , _a1 * milvuspb . ListImportTasksRequest ) ( * milvuspb . ListImportTasksResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . ListImportTasksResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ListImportTasksRequest ) ( * milvuspb . ListImportTasksResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ListImportTasksRequest ) * milvuspb . ListImportTasksResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . ListImportTasksResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . ListImportTasksRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_ListImportTasks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListImportTasks'
type MockProxy_ListImportTasks_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// ListImportTasks is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.ListImportTasksRequest
func ( _e * MockProxy_Expecter ) ListImportTasks ( _a0 interface { } , _a1 interface { } ) * MockProxy_ListImportTasks_Call {
return & MockProxy_ListImportTasks_Call { Call : _e . mock . On ( "ListImportTasks" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_ListImportTasks_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . ListImportTasksRequest ) ) * MockProxy_ListImportTasks_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . ListImportTasksRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_ListImportTasks_Call ) Return ( _a0 * milvuspb . ListImportTasksResponse , _a1 error ) * MockProxy_ListImportTasks_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_ListImportTasks_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . ListImportTasksRequest ) ( * milvuspb . ListImportTasksResponse , error ) ) * MockProxy_ListImportTasks_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// ListIndexedSegment provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) ListIndexedSegment ( _a0 context . Context , _a1 * federpb . ListIndexedSegmentRequest ) ( * federpb . ListIndexedSegmentResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * federpb . ListIndexedSegmentResponse
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * federpb . ListIndexedSegmentRequest ) ( * federpb . ListIndexedSegmentResponse , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * federpb . ListIndexedSegmentRequest ) * federpb . ListIndexedSegmentResponse ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * federpb . ListIndexedSegmentResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * federpb . ListIndexedSegmentRequest ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockProxy_ListIndexedSegment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListIndexedSegment'
type MockProxy_ListIndexedSegment_Call struct {
* mock . Call
}
// ListIndexedSegment is a helper method to define mock.On call
// - _a0 context.Context
// - _a1 *federpb.ListIndexedSegmentRequest
func ( _e * MockProxy_Expecter ) ListIndexedSegment ( _a0 interface { } , _a1 interface { } ) * MockProxy_ListIndexedSegment_Call {
return & MockProxy_ListIndexedSegment_Call { Call : _e . mock . On ( "ListIndexedSegment" , _a0 , _a1 ) }
}
func ( _c * MockProxy_ListIndexedSegment_Call ) Run ( run func ( _a0 context . Context , _a1 * federpb . ListIndexedSegmentRequest ) ) * MockProxy_ListIndexedSegment_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * federpb . ListIndexedSegmentRequest ) )
} )
return _c
}
func ( _c * MockProxy_ListIndexedSegment_Call ) Return ( _a0 * federpb . ListIndexedSegmentResponse , _a1 error ) * MockProxy_ListIndexedSegment_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockProxy_ListIndexedSegment_Call ) RunAndReturn ( run func ( context . Context , * federpb . ListIndexedSegmentRequest ) ( * federpb . ListIndexedSegmentResponse , error ) ) * MockProxy_ListIndexedSegment_Call {
_c . Call . Return ( run )
return _c
}
// ListResourceGroups provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) ListResourceGroups ( _a0 context . Context , _a1 * milvuspb . ListResourceGroupsRequest ) ( * milvuspb . ListResourceGroupsResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . ListResourceGroupsResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ListResourceGroupsRequest ) ( * milvuspb . ListResourceGroupsResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ListResourceGroupsRequest ) * milvuspb . ListResourceGroupsResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . ListResourceGroupsResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . ListResourceGroupsRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_ListResourceGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListResourceGroups'
type MockProxy_ListResourceGroups_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// ListResourceGroups is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.ListResourceGroupsRequest
func ( _e * MockProxy_Expecter ) ListResourceGroups ( _a0 interface { } , _a1 interface { } ) * MockProxy_ListResourceGroups_Call {
return & MockProxy_ListResourceGroups_Call { Call : _e . mock . On ( "ListResourceGroups" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_ListResourceGroups_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . ListResourceGroupsRequest ) ) * MockProxy_ListResourceGroups_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . ListResourceGroupsRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_ListResourceGroups_Call ) Return ( _a0 * milvuspb . ListResourceGroupsResponse , _a1 error ) * MockProxy_ListResourceGroups_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_ListResourceGroups_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . ListResourceGroupsRequest ) ( * milvuspb . ListResourceGroupsResponse , error ) ) * MockProxy_ListResourceGroups_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// LoadBalance provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) LoadBalance ( _a0 context . Context , _a1 * milvuspb . LoadBalanceRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . LoadBalanceRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . LoadBalanceRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . LoadBalanceRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_LoadBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadBalance'
type MockProxy_LoadBalance_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// LoadBalance is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.LoadBalanceRequest
func ( _e * MockProxy_Expecter ) LoadBalance ( _a0 interface { } , _a1 interface { } ) * MockProxy_LoadBalance_Call {
return & MockProxy_LoadBalance_Call { Call : _e . mock . On ( "LoadBalance" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_LoadBalance_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . LoadBalanceRequest ) ) * MockProxy_LoadBalance_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . LoadBalanceRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_LoadBalance_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_LoadBalance_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_LoadBalance_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . LoadBalanceRequest ) ( * commonpb . Status , error ) ) * MockProxy_LoadBalance_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// LoadCollection provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) LoadCollection ( _a0 context . Context , _a1 * milvuspb . LoadCollectionRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . LoadCollectionRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . LoadCollectionRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . LoadCollectionRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_LoadCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadCollection'
type MockProxy_LoadCollection_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// LoadCollection is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.LoadCollectionRequest
func ( _e * MockProxy_Expecter ) LoadCollection ( _a0 interface { } , _a1 interface { } ) * MockProxy_LoadCollection_Call {
return & MockProxy_LoadCollection_Call { Call : _e . mock . On ( "LoadCollection" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_LoadCollection_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . LoadCollectionRequest ) ) * MockProxy_LoadCollection_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . LoadCollectionRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_LoadCollection_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_LoadCollection_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_LoadCollection_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . LoadCollectionRequest ) ( * commonpb . Status , error ) ) * MockProxy_LoadCollection_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// LoadPartitions provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) LoadPartitions ( _a0 context . Context , _a1 * milvuspb . LoadPartitionsRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . LoadPartitionsRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . LoadPartitionsRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . LoadPartitionsRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_LoadPartitions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadPartitions'
type MockProxy_LoadPartitions_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// LoadPartitions is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.LoadPartitionsRequest
func ( _e * MockProxy_Expecter ) LoadPartitions ( _a0 interface { } , _a1 interface { } ) * MockProxy_LoadPartitions_Call {
return & MockProxy_LoadPartitions_Call { Call : _e . mock . On ( "LoadPartitions" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_LoadPartitions_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . LoadPartitionsRequest ) ) * MockProxy_LoadPartitions_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . LoadPartitionsRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_LoadPartitions_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_LoadPartitions_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_LoadPartitions_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . LoadPartitionsRequest ) ( * commonpb . Status , error ) ) * MockProxy_LoadPartitions_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// ManualCompaction provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) ManualCompaction ( _a0 context . Context , _a1 * milvuspb . ManualCompactionRequest ) ( * milvuspb . ManualCompactionResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . ManualCompactionResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ManualCompactionRequest ) ( * milvuspb . ManualCompactionResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ManualCompactionRequest ) * milvuspb . ManualCompactionResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . ManualCompactionResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . ManualCompactionRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_ManualCompaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ManualCompaction'
type MockProxy_ManualCompaction_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// ManualCompaction is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.ManualCompactionRequest
func ( _e * MockProxy_Expecter ) ManualCompaction ( _a0 interface { } , _a1 interface { } ) * MockProxy_ManualCompaction_Call {
return & MockProxy_ManualCompaction_Call { Call : _e . mock . On ( "ManualCompaction" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_ManualCompaction_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . ManualCompactionRequest ) ) * MockProxy_ManualCompaction_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . ManualCompactionRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_ManualCompaction_Call ) Return ( _a0 * milvuspb . ManualCompactionResponse , _a1 error ) * MockProxy_ManualCompaction_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_ManualCompaction_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . ManualCompactionRequest ) ( * milvuspb . ManualCompactionResponse , error ) ) * MockProxy_ManualCompaction_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// OperatePrivilege provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) OperatePrivilege ( _a0 context . Context , _a1 * milvuspb . OperatePrivilegeRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . OperatePrivilegeRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . OperatePrivilegeRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . OperatePrivilegeRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_OperatePrivilege_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OperatePrivilege'
type MockProxy_OperatePrivilege_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// OperatePrivilege is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.OperatePrivilegeRequest
func ( _e * MockProxy_Expecter ) OperatePrivilege ( _a0 interface { } , _a1 interface { } ) * MockProxy_OperatePrivilege_Call {
return & MockProxy_OperatePrivilege_Call { Call : _e . mock . On ( "OperatePrivilege" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_OperatePrivilege_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . OperatePrivilegeRequest ) ) * MockProxy_OperatePrivilege_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . OperatePrivilegeRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_OperatePrivilege_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_OperatePrivilege_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_OperatePrivilege_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . OperatePrivilegeRequest ) ( * commonpb . Status , error ) ) * MockProxy_OperatePrivilege_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// OperateUserRole provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) OperateUserRole ( _a0 context . Context , _a1 * milvuspb . OperateUserRoleRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . OperateUserRoleRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . OperateUserRoleRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . OperateUserRoleRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_OperateUserRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OperateUserRole'
type MockProxy_OperateUserRole_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// OperateUserRole is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.OperateUserRoleRequest
func ( _e * MockProxy_Expecter ) OperateUserRole ( _a0 interface { } , _a1 interface { } ) * MockProxy_OperateUserRole_Call {
return & MockProxy_OperateUserRole_Call { Call : _e . mock . On ( "OperateUserRole" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_OperateUserRole_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . OperateUserRoleRequest ) ) * MockProxy_OperateUserRole_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . OperateUserRoleRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_OperateUserRole_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_OperateUserRole_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_OperateUserRole_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . OperateUserRoleRequest ) ( * commonpb . Status , error ) ) * MockProxy_OperateUserRole_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// Query provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) Query ( _a0 context . Context , _a1 * milvuspb . QueryRequest ) ( * milvuspb . QueryResults , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . QueryResults
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . QueryRequest ) ( * milvuspb . QueryResults , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . QueryRequest ) * milvuspb . QueryResults ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . QueryResults )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . QueryRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_Query_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Query'
type MockProxy_Query_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// Query is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.QueryRequest
func ( _e * MockProxy_Expecter ) Query ( _a0 interface { } , _a1 interface { } ) * MockProxy_Query_Call {
return & MockProxy_Query_Call { Call : _e . mock . On ( "Query" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_Query_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . QueryRequest ) ) * MockProxy_Query_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . QueryRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_Query_Call ) Return ( _a0 * milvuspb . QueryResults , _a1 error ) * MockProxy_Query_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_Query_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . QueryRequest ) ( * milvuspb . QueryResults , error ) ) * MockProxy_Query_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// RefreshPolicyInfoCache provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) RefreshPolicyInfoCache ( _a0 context . Context , _a1 * proxypb . RefreshPolicyInfoCacheRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * proxypb . RefreshPolicyInfoCacheRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * proxypb . RefreshPolicyInfoCacheRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * proxypb . RefreshPolicyInfoCacheRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_RefreshPolicyInfoCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RefreshPolicyInfoCache'
type MockProxy_RefreshPolicyInfoCache_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// RefreshPolicyInfoCache is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *proxypb.RefreshPolicyInfoCacheRequest
func ( _e * MockProxy_Expecter ) RefreshPolicyInfoCache ( _a0 interface { } , _a1 interface { } ) * MockProxy_RefreshPolicyInfoCache_Call {
return & MockProxy_RefreshPolicyInfoCache_Call { Call : _e . mock . On ( "RefreshPolicyInfoCache" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_RefreshPolicyInfoCache_Call ) Run ( run func ( _a0 context . Context , _a1 * proxypb . RefreshPolicyInfoCacheRequest ) ) * MockProxy_RefreshPolicyInfoCache_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * proxypb . RefreshPolicyInfoCacheRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_RefreshPolicyInfoCache_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_RefreshPolicyInfoCache_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_RefreshPolicyInfoCache_Call ) RunAndReturn ( run func ( context . Context , * proxypb . RefreshPolicyInfoCacheRequest ) ( * commonpb . Status , error ) ) * MockProxy_RefreshPolicyInfoCache_Call {
_c . Call . Return ( run )
return _c
}
2023-04-23 09:00:32 +08:00
// Register provides a mock function with given fields:
2023-07-14 10:12:31 +08:00
func ( _m * MockProxy ) Register ( ) error {
2023-04-23 09:00:32 +08:00
ret := _m . Called ( )
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) error ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2023-07-14 10:12:31 +08:00
// MockProxy_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'
type MockProxy_Register_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// Register is a helper method to define mock.On call
2023-07-14 10:12:31 +08:00
func ( _e * MockProxy_Expecter ) Register ( ) * MockProxy_Register_Call {
return & MockProxy_Register_Call { Call : _e . mock . On ( "Register" ) }
2023-04-23 09:00:32 +08:00
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_Register_Call ) Run ( run func ( ) ) * MockProxy_Register_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_Register_Call ) Return ( _a0 error ) * MockProxy_Register_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_Register_Call ) RunAndReturn ( run func ( ) error ) * MockProxy_Register_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// RegisterLink provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) RegisterLink ( _a0 context . Context , _a1 * milvuspb . RegisterLinkRequest ) ( * milvuspb . RegisterLinkResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . RegisterLinkResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . RegisterLinkRequest ) ( * milvuspb . RegisterLinkResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . RegisterLinkRequest ) * milvuspb . RegisterLinkResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . RegisterLinkResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . RegisterLinkRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_RegisterLink_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterLink'
type MockProxy_RegisterLink_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// RegisterLink is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.RegisterLinkRequest
func ( _e * MockProxy_Expecter ) RegisterLink ( _a0 interface { } , _a1 interface { } ) * MockProxy_RegisterLink_Call {
return & MockProxy_RegisterLink_Call { Call : _e . mock . On ( "RegisterLink" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_RegisterLink_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . RegisterLinkRequest ) ) * MockProxy_RegisterLink_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . RegisterLinkRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_RegisterLink_Call ) Return ( _a0 * milvuspb . RegisterLinkResponse , _a1 error ) * MockProxy_RegisterLink_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_RegisterLink_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . RegisterLinkRequest ) ( * milvuspb . RegisterLinkResponse , error ) ) * MockProxy_RegisterLink_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// ReleaseCollection provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) ReleaseCollection ( _a0 context . Context , _a1 * milvuspb . ReleaseCollectionRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ReleaseCollectionRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ReleaseCollectionRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . ReleaseCollectionRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_ReleaseCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReleaseCollection'
type MockProxy_ReleaseCollection_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// ReleaseCollection is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.ReleaseCollectionRequest
func ( _e * MockProxy_Expecter ) ReleaseCollection ( _a0 interface { } , _a1 interface { } ) * MockProxy_ReleaseCollection_Call {
return & MockProxy_ReleaseCollection_Call { Call : _e . mock . On ( "ReleaseCollection" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_ReleaseCollection_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . ReleaseCollectionRequest ) ) * MockProxy_ReleaseCollection_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . ReleaseCollectionRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_ReleaseCollection_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_ReleaseCollection_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_ReleaseCollection_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . ReleaseCollectionRequest ) ( * commonpb . Status , error ) ) * MockProxy_ReleaseCollection_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// ReleasePartitions provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) ReleasePartitions ( _a0 context . Context , _a1 * milvuspb . ReleasePartitionsRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ReleasePartitionsRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ReleasePartitionsRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . ReleasePartitionsRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_ReleasePartitions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReleasePartitions'
type MockProxy_ReleasePartitions_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// ReleasePartitions is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.ReleasePartitionsRequest
func ( _e * MockProxy_Expecter ) ReleasePartitions ( _a0 interface { } , _a1 interface { } ) * MockProxy_ReleasePartitions_Call {
return & MockProxy_ReleasePartitions_Call { Call : _e . mock . On ( "ReleasePartitions" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_ReleasePartitions_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . ReleasePartitionsRequest ) ) * MockProxy_ReleasePartitions_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . ReleasePartitionsRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_ReleasePartitions_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_ReleasePartitions_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_ReleasePartitions_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . ReleasePartitionsRequest ) ( * commonpb . Status , error ) ) * MockProxy_ReleasePartitions_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// RenameCollection provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) RenameCollection ( _a0 context . Context , _a1 * milvuspb . RenameCollectionRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . RenameCollectionRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . RenameCollectionRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . RenameCollectionRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_RenameCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RenameCollection'
type MockProxy_RenameCollection_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// RenameCollection is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.RenameCollectionRequest
func ( _e * MockProxy_Expecter ) RenameCollection ( _a0 interface { } , _a1 interface { } ) * MockProxy_RenameCollection_Call {
return & MockProxy_RenameCollection_Call { Call : _e . mock . On ( "RenameCollection" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_RenameCollection_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . RenameCollectionRequest ) ) * MockProxy_RenameCollection_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . RenameCollectionRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_RenameCollection_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_RenameCollection_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_RenameCollection_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . RenameCollectionRequest ) ( * commonpb . Status , error ) ) * MockProxy_RenameCollection_Call {
_c . Call . Return ( run )
return _c
}
2023-11-21 09:26:22 +08:00
// ReplicateMessage provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) ReplicateMessage ( _a0 context . Context , _a1 * milvuspb . ReplicateMessageRequest ) ( * milvuspb . ReplicateMessageResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-10-20 14:26:09 +08:00
var r0 * milvuspb . ReplicateMessageResponse
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ReplicateMessageRequest ) ( * milvuspb . ReplicateMessageResponse , error ) ) ; ok {
2023-11-21 09:26:22 +08:00
return rf ( _a0 , _a1 )
2023-10-20 14:26:09 +08:00
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ReplicateMessageRequest ) * milvuspb . ReplicateMessageResponse ) ; ok {
2023-11-21 09:26:22 +08:00
r0 = rf ( _a0 , _a1 )
2023-10-20 14:26:09 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . ReplicateMessageResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . ReplicateMessageRequest ) error ) ; ok {
2023-11-21 09:26:22 +08:00
r1 = rf ( _a0 , _a1 )
2023-10-20 14:26:09 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockProxy_ReplicateMessage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReplicateMessage'
type MockProxy_ReplicateMessage_Call struct {
* mock . Call
}
// ReplicateMessage is a helper method to define mock.On call
2023-11-21 09:26:22 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.ReplicateMessageRequest
func ( _e * MockProxy_Expecter ) ReplicateMessage ( _a0 interface { } , _a1 interface { } ) * MockProxy_ReplicateMessage_Call {
return & MockProxy_ReplicateMessage_Call { Call : _e . mock . On ( "ReplicateMessage" , _a0 , _a1 ) }
2023-10-20 14:26:09 +08:00
}
2023-11-21 09:26:22 +08:00
func ( _c * MockProxy_ReplicateMessage_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . ReplicateMessageRequest ) ) * MockProxy_ReplicateMessage_Call {
2023-10-20 14:26:09 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . ReplicateMessageRequest ) )
} )
return _c
}
func ( _c * MockProxy_ReplicateMessage_Call ) Return ( _a0 * milvuspb . ReplicateMessageResponse , _a1 error ) * MockProxy_ReplicateMessage_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockProxy_ReplicateMessage_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . ReplicateMessageRequest ) ( * milvuspb . ReplicateMessageResponse , error ) ) * MockProxy_ReplicateMessage_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// Search provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) Search ( _a0 context . Context , _a1 * milvuspb . SearchRequest ) ( * milvuspb . SearchResults , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . SearchResults
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . SearchRequest ) ( * milvuspb . SearchResults , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . SearchRequest ) * milvuspb . SearchResults ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . SearchResults )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . SearchRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_Search_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Search'
type MockProxy_Search_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// Search is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.SearchRequest
func ( _e * MockProxy_Expecter ) Search ( _a0 interface { } , _a1 interface { } ) * MockProxy_Search_Call {
return & MockProxy_Search_Call { Call : _e . mock . On ( "Search" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_Search_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . SearchRequest ) ) * MockProxy_Search_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . SearchRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_Search_Call ) Return ( _a0 * milvuspb . SearchResults , _a1 error ) * MockProxy_Search_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_Search_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . SearchRequest ) ( * milvuspb . SearchResults , error ) ) * MockProxy_Search_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// SelectGrant provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) SelectGrant ( _a0 context . Context , _a1 * milvuspb . SelectGrantRequest ) ( * milvuspb . SelectGrantResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . SelectGrantResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . SelectGrantRequest ) ( * milvuspb . SelectGrantResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . SelectGrantRequest ) * milvuspb . SelectGrantResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . SelectGrantResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . SelectGrantRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_SelectGrant_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SelectGrant'
type MockProxy_SelectGrant_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// SelectGrant is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.SelectGrantRequest
func ( _e * MockProxy_Expecter ) SelectGrant ( _a0 interface { } , _a1 interface { } ) * MockProxy_SelectGrant_Call {
return & MockProxy_SelectGrant_Call { Call : _e . mock . On ( "SelectGrant" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_SelectGrant_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . SelectGrantRequest ) ) * MockProxy_SelectGrant_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . SelectGrantRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_SelectGrant_Call ) Return ( _a0 * milvuspb . SelectGrantResponse , _a1 error ) * MockProxy_SelectGrant_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_SelectGrant_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . SelectGrantRequest ) ( * milvuspb . SelectGrantResponse , error ) ) * MockProxy_SelectGrant_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// SelectRole provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) SelectRole ( _a0 context . Context , _a1 * milvuspb . SelectRoleRequest ) ( * milvuspb . SelectRoleResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . SelectRoleResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . SelectRoleRequest ) ( * milvuspb . SelectRoleResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . SelectRoleRequest ) * milvuspb . SelectRoleResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . SelectRoleResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . SelectRoleRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_SelectRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SelectRole'
type MockProxy_SelectRole_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// SelectRole is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.SelectRoleRequest
func ( _e * MockProxy_Expecter ) SelectRole ( _a0 interface { } , _a1 interface { } ) * MockProxy_SelectRole_Call {
return & MockProxy_SelectRole_Call { Call : _e . mock . On ( "SelectRole" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_SelectRole_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . SelectRoleRequest ) ) * MockProxy_SelectRole_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . SelectRoleRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_SelectRole_Call ) Return ( _a0 * milvuspb . SelectRoleResponse , _a1 error ) * MockProxy_SelectRole_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_SelectRole_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . SelectRoleRequest ) ( * milvuspb . SelectRoleResponse , error ) ) * MockProxy_SelectRole_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// SelectUser provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) SelectUser ( _a0 context . Context , _a1 * milvuspb . SelectUserRequest ) ( * milvuspb . SelectUserResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . SelectUserResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . SelectUserRequest ) ( * milvuspb . SelectUserResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . SelectUserRequest ) * milvuspb . SelectUserResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . SelectUserResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . SelectUserRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_SelectUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SelectUser'
type MockProxy_SelectUser_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// SelectUser is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.SelectUserRequest
func ( _e * MockProxy_Expecter ) SelectUser ( _a0 interface { } , _a1 interface { } ) * MockProxy_SelectUser_Call {
return & MockProxy_SelectUser_Call { Call : _e . mock . On ( "SelectUser" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_SelectUser_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . SelectUserRequest ) ) * MockProxy_SelectUser_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . SelectUserRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_SelectUser_Call ) Return ( _a0 * milvuspb . SelectUserResponse , _a1 error ) * MockProxy_SelectUser_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_SelectUser_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . SelectUserRequest ) ( * milvuspb . SelectUserResponse , error ) ) * MockProxy_SelectUser_Call {
_c . Call . Return ( run )
return _c
}
2023-04-23 09:00:32 +08:00
// SetAddress provides a mock function with given fields: address
2023-07-14 10:12:31 +08:00
func ( _m * MockProxy ) SetAddress ( address string ) {
2023-04-23 09:00:32 +08:00
_m . Called ( address )
}
2023-07-14 10:12:31 +08:00
// MockProxy_SetAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetAddress'
type MockProxy_SetAddress_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// SetAddress is a helper method to define mock.On call
2023-09-04 21:19:48 +08:00
// - address string
2023-07-14 10:12:31 +08:00
func ( _e * MockProxy_Expecter ) SetAddress ( address interface { } ) * MockProxy_SetAddress_Call {
return & MockProxy_SetAddress_Call { Call : _e . mock . On ( "SetAddress" , address ) }
2023-04-23 09:00:32 +08:00
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_SetAddress_Call ) Run ( run func ( address string ) ) * MockProxy_SetAddress_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( string ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_SetAddress_Call ) Return ( ) * MockProxy_SetAddress_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_SetAddress_Call ) RunAndReturn ( run func ( string ) ) * MockProxy_SetAddress_Call {
_c . Call . Return ( run )
return _c
}
2023-04-23 09:00:32 +08:00
// SetDataCoordClient provides a mock function with given fields: dataCoord
2023-09-26 09:57:25 +08:00
func ( _m * MockProxy ) SetDataCoordClient ( dataCoord types . DataCoordClient ) {
2023-04-23 09:00:32 +08:00
_m . Called ( dataCoord )
}
2023-07-14 10:12:31 +08:00
// MockProxy_SetDataCoordClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetDataCoordClient'
type MockProxy_SetDataCoordClient_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// SetDataCoordClient is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - dataCoord types.DataCoordClient
2023-07-14 10:12:31 +08:00
func ( _e * MockProxy_Expecter ) SetDataCoordClient ( dataCoord interface { } ) * MockProxy_SetDataCoordClient_Call {
return & MockProxy_SetDataCoordClient_Call { Call : _e . mock . On ( "SetDataCoordClient" , dataCoord ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_SetDataCoordClient_Call ) Run ( run func ( dataCoord types . DataCoordClient ) ) * MockProxy_SetDataCoordClient_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
2023-09-26 09:57:25 +08:00
run ( args [ 0 ] . ( types . DataCoordClient ) )
2023-04-23 09:00:32 +08:00
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_SetDataCoordClient_Call ) Return ( ) * MockProxy_SetDataCoordClient_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( )
return _c
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_SetDataCoordClient_Call ) RunAndReturn ( run func ( types . DataCoordClient ) ) * MockProxy_SetDataCoordClient_Call {
2023-08-17 20:20:20 +08:00
_c . Call . Return ( run )
return _c
}
2023-04-23 09:00:32 +08:00
// SetEtcdClient provides a mock function with given fields: etcdClient
2023-07-14 10:12:31 +08:00
func ( _m * MockProxy ) SetEtcdClient ( etcdClient * clientv3 . Client ) {
2023-04-23 09:00:32 +08:00
_m . Called ( etcdClient )
}
2023-07-14 10:12:31 +08:00
// MockProxy_SetEtcdClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetEtcdClient'
type MockProxy_SetEtcdClient_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// SetEtcdClient is a helper method to define mock.On call
2023-09-04 21:19:48 +08:00
// - etcdClient *clientv3.Client
2023-07-14 10:12:31 +08:00
func ( _e * MockProxy_Expecter ) SetEtcdClient ( etcdClient interface { } ) * MockProxy_SetEtcdClient_Call {
return & MockProxy_SetEtcdClient_Call { Call : _e . mock . On ( "SetEtcdClient" , etcdClient ) }
2023-04-23 09:00:32 +08:00
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_SetEtcdClient_Call ) Run ( run func ( etcdClient * clientv3 . Client ) ) * MockProxy_SetEtcdClient_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( * clientv3 . Client ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_SetEtcdClient_Call ) Return ( ) * MockProxy_SetEtcdClient_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_SetEtcdClient_Call ) RunAndReturn ( run func ( * clientv3 . Client ) ) * MockProxy_SetEtcdClient_Call {
_c . Call . Return ( run )
return _c
}
2023-04-23 09:00:32 +08:00
// SetQueryCoordClient provides a mock function with given fields: queryCoord
2023-09-26 09:57:25 +08:00
func ( _m * MockProxy ) SetQueryCoordClient ( queryCoord types . QueryCoordClient ) {
2023-04-23 09:00:32 +08:00
_m . Called ( queryCoord )
}
2023-07-14 10:12:31 +08:00
// MockProxy_SetQueryCoordClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetQueryCoordClient'
type MockProxy_SetQueryCoordClient_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// SetQueryCoordClient is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - queryCoord types.QueryCoordClient
2023-07-14 10:12:31 +08:00
func ( _e * MockProxy_Expecter ) SetQueryCoordClient ( queryCoord interface { } ) * MockProxy_SetQueryCoordClient_Call {
return & MockProxy_SetQueryCoordClient_Call { Call : _e . mock . On ( "SetQueryCoordClient" , queryCoord ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_SetQueryCoordClient_Call ) Run ( run func ( queryCoord types . QueryCoordClient ) ) * MockProxy_SetQueryCoordClient_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
2023-09-26 09:57:25 +08:00
run ( args [ 0 ] . ( types . QueryCoordClient ) )
2023-04-23 09:00:32 +08:00
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_SetQueryCoordClient_Call ) Return ( ) * MockProxy_SetQueryCoordClient_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( )
return _c
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_SetQueryCoordClient_Call ) RunAndReturn ( run func ( types . QueryCoordClient ) ) * MockProxy_SetQueryCoordClient_Call {
2023-08-17 20:20:20 +08:00
_c . Call . Return ( run )
return _c
}
2023-04-23 09:00:32 +08:00
// SetQueryNodeCreator provides a mock function with given fields: _a0
2023-09-26 09:57:25 +08:00
func ( _m * MockProxy ) SetQueryNodeCreator ( _a0 func ( context . Context , string , int64 ) ( types . QueryNodeClient , error ) ) {
2023-04-23 09:00:32 +08:00
_m . Called ( _a0 )
}
2023-07-14 10:12:31 +08:00
// MockProxy_SetQueryNodeCreator_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetQueryNodeCreator'
type MockProxy_SetQueryNodeCreator_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// SetQueryNodeCreator is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 func(context.Context , string , int64)(types.QueryNodeClient , error)
2023-07-14 10:12:31 +08:00
func ( _e * MockProxy_Expecter ) SetQueryNodeCreator ( _a0 interface { } ) * MockProxy_SetQueryNodeCreator_Call {
return & MockProxy_SetQueryNodeCreator_Call { Call : _e . mock . On ( "SetQueryNodeCreator" , _a0 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_SetQueryNodeCreator_Call ) Run ( run func ( _a0 func ( context . Context , string , int64 ) ( types . QueryNodeClient , error ) ) ) * MockProxy_SetQueryNodeCreator_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
2023-09-26 09:57:25 +08:00
run ( args [ 0 ] . ( func ( context . Context , string , int64 ) ( types . QueryNodeClient , error ) ) )
2023-04-23 09:00:32 +08:00
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_SetQueryNodeCreator_Call ) Return ( ) * MockProxy_SetQueryNodeCreator_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( )
return _c
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_SetQueryNodeCreator_Call ) RunAndReturn ( run func ( func ( context . Context , string , int64 ) ( types . QueryNodeClient , error ) ) ) * MockProxy_SetQueryNodeCreator_Call {
2023-08-17 20:20:20 +08:00
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// SetRates provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) SetRates ( _a0 context . Context , _a1 * proxypb . SetRatesRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * proxypb . SetRatesRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * proxypb . SetRatesRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * proxypb . SetRatesRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_SetRates_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetRates'
type MockProxy_SetRates_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// SetRates is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *proxypb.SetRatesRequest
func ( _e * MockProxy_Expecter ) SetRates ( _a0 interface { } , _a1 interface { } ) * MockProxy_SetRates_Call {
return & MockProxy_SetRates_Call { Call : _e . mock . On ( "SetRates" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_SetRates_Call ) Run ( run func ( _a0 context . Context , _a1 * proxypb . SetRatesRequest ) ) * MockProxy_SetRates_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * proxypb . SetRatesRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_SetRates_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_SetRates_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_SetRates_Call ) RunAndReturn ( run func ( context . Context , * proxypb . SetRatesRequest ) ( * commonpb . Status , error ) ) * MockProxy_SetRates_Call {
_c . Call . Return ( run )
return _c
}
2023-04-23 09:00:32 +08:00
// SetRootCoordClient provides a mock function with given fields: rootCoord
2023-09-26 09:57:25 +08:00
func ( _m * MockProxy ) SetRootCoordClient ( rootCoord types . RootCoordClient ) {
2023-04-23 09:00:32 +08:00
_m . Called ( rootCoord )
}
2023-07-14 10:12:31 +08:00
// MockProxy_SetRootCoordClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetRootCoordClient'
type MockProxy_SetRootCoordClient_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// SetRootCoordClient is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - rootCoord types.RootCoordClient
2023-07-14 10:12:31 +08:00
func ( _e * MockProxy_Expecter ) SetRootCoordClient ( rootCoord interface { } ) * MockProxy_SetRootCoordClient_Call {
return & MockProxy_SetRootCoordClient_Call { Call : _e . mock . On ( "SetRootCoordClient" , rootCoord ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_SetRootCoordClient_Call ) Run ( run func ( rootCoord types . RootCoordClient ) ) * MockProxy_SetRootCoordClient_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
2023-09-26 09:57:25 +08:00
run ( args [ 0 ] . ( types . RootCoordClient ) )
2023-04-23 09:00:32 +08:00
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_SetRootCoordClient_Call ) Return ( ) * MockProxy_SetRootCoordClient_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( )
return _c
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_SetRootCoordClient_Call ) RunAndReturn ( run func ( types . RootCoordClient ) ) * MockProxy_SetRootCoordClient_Call {
2023-08-17 20:20:20 +08:00
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// ShowCollections provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) ShowCollections ( _a0 context . Context , _a1 * milvuspb . ShowCollectionsRequest ) ( * milvuspb . ShowCollectionsResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . ShowCollectionsResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ShowCollectionsRequest ) ( * milvuspb . ShowCollectionsResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ShowCollectionsRequest ) * milvuspb . ShowCollectionsResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . ShowCollectionsResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . ShowCollectionsRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_ShowCollections_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShowCollections'
type MockProxy_ShowCollections_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// ShowCollections is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.ShowCollectionsRequest
func ( _e * MockProxy_Expecter ) ShowCollections ( _a0 interface { } , _a1 interface { } ) * MockProxy_ShowCollections_Call {
return & MockProxy_ShowCollections_Call { Call : _e . mock . On ( "ShowCollections" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_ShowCollections_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . ShowCollectionsRequest ) ) * MockProxy_ShowCollections_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . ShowCollectionsRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_ShowCollections_Call ) Return ( _a0 * milvuspb . ShowCollectionsResponse , _a1 error ) * MockProxy_ShowCollections_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_ShowCollections_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . ShowCollectionsRequest ) ( * milvuspb . ShowCollectionsResponse , error ) ) * MockProxy_ShowCollections_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// ShowPartitions provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) ShowPartitions ( _a0 context . Context , _a1 * milvuspb . ShowPartitionsRequest ) ( * milvuspb . ShowPartitionsResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . ShowPartitionsResponse
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ShowPartitionsRequest ) ( * milvuspb . ShowPartitionsResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ShowPartitionsRequest ) * milvuspb . ShowPartitionsResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . ShowPartitionsResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . ShowPartitionsRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_ShowPartitions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShowPartitions'
type MockProxy_ShowPartitions_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// ShowPartitions is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.ShowPartitionsRequest
func ( _e * MockProxy_Expecter ) ShowPartitions ( _a0 interface { } , _a1 interface { } ) * MockProxy_ShowPartitions_Call {
return & MockProxy_ShowPartitions_Call { Call : _e . mock . On ( "ShowPartitions" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_ShowPartitions_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . ShowPartitionsRequest ) ) * MockProxy_ShowPartitions_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . ShowPartitionsRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_ShowPartitions_Call ) Return ( _a0 * milvuspb . ShowPartitionsResponse , _a1 error ) * MockProxy_ShowPartitions_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_ShowPartitions_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . ShowPartitionsRequest ) ( * milvuspb . ShowPartitionsResponse , error ) ) * MockProxy_ShowPartitions_Call {
_c . Call . Return ( run )
return _c
}
2023-04-23 09:00:32 +08:00
// Start provides a mock function with given fields:
2023-07-14 10:12:31 +08:00
func ( _m * MockProxy ) Start ( ) error {
2023-04-23 09:00:32 +08:00
ret := _m . Called ( )
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) error ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2023-07-14 10:12:31 +08:00
// MockProxy_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
type MockProxy_Start_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// Start is a helper method to define mock.On call
2023-07-14 10:12:31 +08:00
func ( _e * MockProxy_Expecter ) Start ( ) * MockProxy_Start_Call {
return & MockProxy_Start_Call { Call : _e . mock . On ( "Start" ) }
2023-04-23 09:00:32 +08:00
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_Start_Call ) Run ( run func ( ) ) * MockProxy_Start_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_Start_Call ) Return ( _a0 error ) * MockProxy_Start_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_Start_Call ) RunAndReturn ( run func ( ) error ) * MockProxy_Start_Call {
_c . Call . Return ( run )
return _c
}
2023-04-23 09:00:32 +08:00
// Stop provides a mock function with given fields:
2023-07-14 10:12:31 +08:00
func ( _m * MockProxy ) Stop ( ) error {
2023-04-23 09:00:32 +08:00
ret := _m . Called ( )
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) error ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2023-07-14 10:12:31 +08:00
// MockProxy_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
type MockProxy_Stop_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// Stop is a helper method to define mock.On call
2023-07-14 10:12:31 +08:00
func ( _e * MockProxy_Expecter ) Stop ( ) * MockProxy_Stop_Call {
return & MockProxy_Stop_Call { Call : _e . mock . On ( "Stop" ) }
2023-04-23 09:00:32 +08:00
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_Stop_Call ) Run ( run func ( ) ) * MockProxy_Stop_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_Stop_Call ) Return ( _a0 error ) * MockProxy_Stop_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_Stop_Call ) RunAndReturn ( run func ( ) error ) * MockProxy_Stop_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// TransferNode provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) TransferNode ( _a0 context . Context , _a1 * milvuspb . TransferNodeRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . TransferNodeRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . TransferNodeRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . TransferNodeRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_TransferNode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransferNode'
type MockProxy_TransferNode_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// TransferNode is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.TransferNodeRequest
func ( _e * MockProxy_Expecter ) TransferNode ( _a0 interface { } , _a1 interface { } ) * MockProxy_TransferNode_Call {
return & MockProxy_TransferNode_Call { Call : _e . mock . On ( "TransferNode" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_TransferNode_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . TransferNodeRequest ) ) * MockProxy_TransferNode_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . TransferNodeRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_TransferNode_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_TransferNode_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_TransferNode_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . TransferNodeRequest ) ( * commonpb . Status , error ) ) * MockProxy_TransferNode_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// TransferReplica provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) TransferReplica ( _a0 context . Context , _a1 * milvuspb . TransferReplicaRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . TransferReplicaRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . TransferReplicaRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . TransferReplicaRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_TransferReplica_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransferReplica'
type MockProxy_TransferReplica_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// TransferReplica is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.TransferReplicaRequest
func ( _e * MockProxy_Expecter ) TransferReplica ( _a0 interface { } , _a1 interface { } ) * MockProxy_TransferReplica_Call {
return & MockProxy_TransferReplica_Call { Call : _e . mock . On ( "TransferReplica" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_TransferReplica_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . TransferReplicaRequest ) ) * MockProxy_TransferReplica_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . TransferReplicaRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_TransferReplica_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_TransferReplica_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_TransferReplica_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . TransferReplicaRequest ) ( * commonpb . Status , error ) ) * MockProxy_TransferReplica_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// UpdateCredential provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) UpdateCredential ( _a0 context . Context , _a1 * milvuspb . UpdateCredentialRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . UpdateCredentialRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . UpdateCredentialRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . UpdateCredentialRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_UpdateCredential_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateCredential'
type MockProxy_UpdateCredential_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// UpdateCredential is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.UpdateCredentialRequest
func ( _e * MockProxy_Expecter ) UpdateCredential ( _a0 interface { } , _a1 interface { } ) * MockProxy_UpdateCredential_Call {
return & MockProxy_UpdateCredential_Call { Call : _e . mock . On ( "UpdateCredential" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_UpdateCredential_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . UpdateCredentialRequest ) ) * MockProxy_UpdateCredential_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . UpdateCredentialRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_UpdateCredential_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_UpdateCredential_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_UpdateCredential_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . UpdateCredentialRequest ) ( * commonpb . Status , error ) ) * MockProxy_UpdateCredential_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// UpdateCredentialCache provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) UpdateCredentialCache ( _a0 context . Context , _a1 * proxypb . UpdateCredCacheRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * commonpb . Status
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * proxypb . UpdateCredCacheRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * proxypb . UpdateCredCacheRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * proxypb . UpdateCredCacheRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_UpdateCredentialCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateCredentialCache'
type MockProxy_UpdateCredentialCache_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// UpdateCredentialCache is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *proxypb.UpdateCredCacheRequest
func ( _e * MockProxy_Expecter ) UpdateCredentialCache ( _a0 interface { } , _a1 interface { } ) * MockProxy_UpdateCredentialCache_Call {
return & MockProxy_UpdateCredentialCache_Call { Call : _e . mock . On ( "UpdateCredentialCache" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_UpdateCredentialCache_Call ) Run ( run func ( _a0 context . Context , _a1 * proxypb . UpdateCredCacheRequest ) ) * MockProxy_UpdateCredentialCache_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * proxypb . UpdateCredCacheRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_UpdateCredentialCache_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockProxy_UpdateCredentialCache_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_UpdateCredentialCache_Call ) RunAndReturn ( run func ( context . Context , * proxypb . UpdateCredCacheRequest ) ( * commonpb . Status , error ) ) * MockProxy_UpdateCredentialCache_Call {
_c . Call . Return ( run )
return _c
}
2023-04-23 09:00:32 +08:00
// UpdateStateCode provides a mock function with given fields: stateCode
2023-07-14 10:12:31 +08:00
func ( _m * MockProxy ) UpdateStateCode ( stateCode commonpb . StateCode ) {
2023-04-23 09:00:32 +08:00
_m . Called ( stateCode )
}
2023-07-14 10:12:31 +08:00
// MockProxy_UpdateStateCode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateStateCode'
type MockProxy_UpdateStateCode_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// UpdateStateCode is a helper method to define mock.On call
2023-09-04 21:19:48 +08:00
// - stateCode commonpb.StateCode
2023-07-14 10:12:31 +08:00
func ( _e * MockProxy_Expecter ) UpdateStateCode ( stateCode interface { } ) * MockProxy_UpdateStateCode_Call {
return & MockProxy_UpdateStateCode_Call { Call : _e . mock . On ( "UpdateStateCode" , stateCode ) }
2023-04-23 09:00:32 +08:00
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_UpdateStateCode_Call ) Run ( run func ( stateCode commonpb . StateCode ) ) * MockProxy_UpdateStateCode_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( commonpb . StateCode ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_UpdateStateCode_Call ) Return ( ) * MockProxy_UpdateStateCode_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_UpdateStateCode_Call ) RunAndReturn ( run func ( commonpb . StateCode ) ) * MockProxy_UpdateStateCode_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// Upsert provides a mock function with given fields: _a0, _a1
func ( _m * MockProxy ) Upsert ( _a0 context . Context , _a1 * milvuspb . UpsertRequest ) ( * milvuspb . MutationResult , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
var r0 * milvuspb . MutationResult
2023-08-17 20:20:20 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . UpsertRequest ) ( * milvuspb . MutationResult , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-08-17 20:20:20 +08:00
}
2023-04-23 09:00:32 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . UpsertRequest ) * milvuspb . MutationResult ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . MutationResult )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . UpsertRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-04-23 09:00:32 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockProxy_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
type MockProxy_Upsert_Call struct {
2023-04-23 09:00:32 +08:00
* mock . Call
}
// Upsert is a helper method to define mock.On call
2023-09-26 09:57:25 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.UpsertRequest
func ( _e * MockProxy_Expecter ) Upsert ( _a0 interface { } , _a1 interface { } ) * MockProxy_Upsert_Call {
return & MockProxy_Upsert_Call { Call : _e . mock . On ( "Upsert" , _a0 , _a1 ) }
2023-04-23 09:00:32 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockProxy_Upsert_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . UpsertRequest ) ) * MockProxy_Upsert_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . UpsertRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockProxy_Upsert_Call ) Return ( _a0 * milvuspb . MutationResult , _a1 error ) * MockProxy_Upsert_Call {
2023-04-23 09:00:32 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-08-17 20:20:20 +08:00
func ( _c * MockProxy_Upsert_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . UpsertRequest ) ( * milvuspb . MutationResult , error ) ) * MockProxy_Upsert_Call {
_c . Call . Return ( run )
return _c
2023-04-23 09:00:32 +08:00
}
2023-07-14 10:12:31 +08:00
// NewMockProxy creates a new instance of MockProxy. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
2023-08-17 20:20:20 +08:00
// The first argument is typically a *testing.T value.
func NewMockProxy ( t interface {
mock . TestingT
Cleanup ( func ( ) )
} ) * MockProxy {
2023-07-14 10:12:31 +08:00
mock := & MockProxy { }
2023-04-23 09:00:32 +08:00
mock . Mock . Test ( t )
t . Cleanup ( func ( ) { mock . AssertExpectations ( t ) } )
return mock
}