github.com/milvus-io/milvus-sdk-go/v2@v2.4.1/mocks/MilvusServiceServer.go (about)

     1  // Code generated by mockery v2.32.4. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	context "context"
     7  
     8  	commonpb "github.com/milvus-io/milvus-proto/go-api/v2/commonpb"
     9  
    10  	federpb "github.com/milvus-io/milvus-proto/go-api/v2/federpb"
    11  
    12  	milvuspb "github.com/milvus-io/milvus-proto/go-api/v2/milvuspb"
    13  
    14  	mock "github.com/stretchr/testify/mock"
    15  )
    16  
    17  // MilvusServiceServer is an autogenerated mock type for the MilvusServiceServer type
    18  type MilvusServiceServer struct {
    19  	mock.Mock
    20  }
    21  
    22  type MilvusServiceServer_Expecter struct {
    23  	mock *mock.Mock
    24  }
    25  
    26  func (_m *MilvusServiceServer) EXPECT() *MilvusServiceServer_Expecter {
    27  	return &MilvusServiceServer_Expecter{mock: &_m.Mock}
    28  }
    29  
    30  // AllocTimestamp provides a mock function with given fields: _a0, _a1
    31  func (_m *MilvusServiceServer) AllocTimestamp(_a0 context.Context, _a1 *milvuspb.AllocTimestampRequest) (*milvuspb.AllocTimestampResponse, error) {
    32  	ret := _m.Called(_a0, _a1)
    33  
    34  	var r0 *milvuspb.AllocTimestampResponse
    35  	var r1 error
    36  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.AllocTimestampRequest) (*milvuspb.AllocTimestampResponse, error)); ok {
    37  		return rf(_a0, _a1)
    38  	}
    39  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.AllocTimestampRequest) *milvuspb.AllocTimestampResponse); ok {
    40  		r0 = rf(_a0, _a1)
    41  	} else {
    42  		if ret.Get(0) != nil {
    43  			r0 = ret.Get(0).(*milvuspb.AllocTimestampResponse)
    44  		}
    45  	}
    46  
    47  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.AllocTimestampRequest) error); ok {
    48  		r1 = rf(_a0, _a1)
    49  	} else {
    50  		r1 = ret.Error(1)
    51  	}
    52  
    53  	return r0, r1
    54  }
    55  
    56  // MilvusServiceServer_AllocTimestamp_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllocTimestamp'
    57  type MilvusServiceServer_AllocTimestamp_Call struct {
    58  	*mock.Call
    59  }
    60  
    61  // AllocTimestamp is a helper method to define mock.On call
    62  //   - _a0 context.Context
    63  //   - _a1 *milvuspb.AllocTimestampRequest
    64  func (_e *MilvusServiceServer_Expecter) AllocTimestamp(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_AllocTimestamp_Call {
    65  	return &MilvusServiceServer_AllocTimestamp_Call{Call: _e.mock.On("AllocTimestamp", _a0, _a1)}
    66  }
    67  
    68  func (_c *MilvusServiceServer_AllocTimestamp_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.AllocTimestampRequest)) *MilvusServiceServer_AllocTimestamp_Call {
    69  	_c.Call.Run(func(args mock.Arguments) {
    70  		run(args[0].(context.Context), args[1].(*milvuspb.AllocTimestampRequest))
    71  	})
    72  	return _c
    73  }
    74  
    75  func (_c *MilvusServiceServer_AllocTimestamp_Call) Return(_a0 *milvuspb.AllocTimestampResponse, _a1 error) *MilvusServiceServer_AllocTimestamp_Call {
    76  	_c.Call.Return(_a0, _a1)
    77  	return _c
    78  }
    79  
    80  func (_c *MilvusServiceServer_AllocTimestamp_Call) RunAndReturn(run func(context.Context, *milvuspb.AllocTimestampRequest) (*milvuspb.AllocTimestampResponse, error)) *MilvusServiceServer_AllocTimestamp_Call {
    81  	_c.Call.Return(run)
    82  	return _c
    83  }
    84  
    85  // AlterAlias provides a mock function with given fields: _a0, _a1
    86  func (_m *MilvusServiceServer) AlterAlias(_a0 context.Context, _a1 *milvuspb.AlterAliasRequest) (*commonpb.Status, error) {
    87  	ret := _m.Called(_a0, _a1)
    88  
    89  	var r0 *commonpb.Status
    90  	var r1 error
    91  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.AlterAliasRequest) (*commonpb.Status, error)); ok {
    92  		return rf(_a0, _a1)
    93  	}
    94  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.AlterAliasRequest) *commonpb.Status); ok {
    95  		r0 = rf(_a0, _a1)
    96  	} else {
    97  		if ret.Get(0) != nil {
    98  			r0 = ret.Get(0).(*commonpb.Status)
    99  		}
   100  	}
   101  
   102  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.AlterAliasRequest) error); ok {
   103  		r1 = rf(_a0, _a1)
   104  	} else {
   105  		r1 = ret.Error(1)
   106  	}
   107  
   108  	return r0, r1
   109  }
   110  
   111  // MilvusServiceServer_AlterAlias_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AlterAlias'
   112  type MilvusServiceServer_AlterAlias_Call struct {
   113  	*mock.Call
   114  }
   115  
   116  // AlterAlias is a helper method to define mock.On call
   117  //   - _a0 context.Context
   118  //   - _a1 *milvuspb.AlterAliasRequest
   119  func (_e *MilvusServiceServer_Expecter) AlterAlias(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_AlterAlias_Call {
   120  	return &MilvusServiceServer_AlterAlias_Call{Call: _e.mock.On("AlterAlias", _a0, _a1)}
   121  }
   122  
   123  func (_c *MilvusServiceServer_AlterAlias_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.AlterAliasRequest)) *MilvusServiceServer_AlterAlias_Call {
   124  	_c.Call.Run(func(args mock.Arguments) {
   125  		run(args[0].(context.Context), args[1].(*milvuspb.AlterAliasRequest))
   126  	})
   127  	return _c
   128  }
   129  
   130  func (_c *MilvusServiceServer_AlterAlias_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_AlterAlias_Call {
   131  	_c.Call.Return(_a0, _a1)
   132  	return _c
   133  }
   134  
   135  func (_c *MilvusServiceServer_AlterAlias_Call) RunAndReturn(run func(context.Context, *milvuspb.AlterAliasRequest) (*commonpb.Status, error)) *MilvusServiceServer_AlterAlias_Call {
   136  	_c.Call.Return(run)
   137  	return _c
   138  }
   139  
   140  // AlterCollection provides a mock function with given fields: _a0, _a1
   141  func (_m *MilvusServiceServer) AlterCollection(_a0 context.Context, _a1 *milvuspb.AlterCollectionRequest) (*commonpb.Status, error) {
   142  	ret := _m.Called(_a0, _a1)
   143  
   144  	var r0 *commonpb.Status
   145  	var r1 error
   146  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.AlterCollectionRequest) (*commonpb.Status, error)); ok {
   147  		return rf(_a0, _a1)
   148  	}
   149  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.AlterCollectionRequest) *commonpb.Status); ok {
   150  		r0 = rf(_a0, _a1)
   151  	} else {
   152  		if ret.Get(0) != nil {
   153  			r0 = ret.Get(0).(*commonpb.Status)
   154  		}
   155  	}
   156  
   157  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.AlterCollectionRequest) error); ok {
   158  		r1 = rf(_a0, _a1)
   159  	} else {
   160  		r1 = ret.Error(1)
   161  	}
   162  
   163  	return r0, r1
   164  }
   165  
   166  // MilvusServiceServer_AlterCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AlterCollection'
   167  type MilvusServiceServer_AlterCollection_Call struct {
   168  	*mock.Call
   169  }
   170  
   171  // AlterCollection is a helper method to define mock.On call
   172  //   - _a0 context.Context
   173  //   - _a1 *milvuspb.AlterCollectionRequest
   174  func (_e *MilvusServiceServer_Expecter) AlterCollection(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_AlterCollection_Call {
   175  	return &MilvusServiceServer_AlterCollection_Call{Call: _e.mock.On("AlterCollection", _a0, _a1)}
   176  }
   177  
   178  func (_c *MilvusServiceServer_AlterCollection_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.AlterCollectionRequest)) *MilvusServiceServer_AlterCollection_Call {
   179  	_c.Call.Run(func(args mock.Arguments) {
   180  		run(args[0].(context.Context), args[1].(*milvuspb.AlterCollectionRequest))
   181  	})
   182  	return _c
   183  }
   184  
   185  func (_c *MilvusServiceServer_AlterCollection_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_AlterCollection_Call {
   186  	_c.Call.Return(_a0, _a1)
   187  	return _c
   188  }
   189  
   190  func (_c *MilvusServiceServer_AlterCollection_Call) RunAndReturn(run func(context.Context, *milvuspb.AlterCollectionRequest) (*commonpb.Status, error)) *MilvusServiceServer_AlterCollection_Call {
   191  	_c.Call.Return(run)
   192  	return _c
   193  }
   194  
   195  // AlterDatabase provides a mock function with given fields: _a0, _a1
   196  func (_m *MilvusServiceServer) AlterDatabase(_a0 context.Context, _a1 *milvuspb.AlterDatabaseRequest) (*commonpb.Status, error) {
   197  	ret := _m.Called(_a0, _a1)
   198  
   199  	var r0 *commonpb.Status
   200  	var r1 error
   201  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.AlterDatabaseRequest) (*commonpb.Status, error)); ok {
   202  		return rf(_a0, _a1)
   203  	}
   204  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.AlterDatabaseRequest) *commonpb.Status); ok {
   205  		r0 = rf(_a0, _a1)
   206  	} else {
   207  		if ret.Get(0) != nil {
   208  			r0 = ret.Get(0).(*commonpb.Status)
   209  		}
   210  	}
   211  
   212  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.AlterDatabaseRequest) error); ok {
   213  		r1 = rf(_a0, _a1)
   214  	} else {
   215  		r1 = ret.Error(1)
   216  	}
   217  
   218  	return r0, r1
   219  }
   220  
   221  // MilvusServiceServer_AlterDatabase_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AlterDatabase'
   222  type MilvusServiceServer_AlterDatabase_Call struct {
   223  	*mock.Call
   224  }
   225  
   226  // AlterDatabase is a helper method to define mock.On call
   227  //   - _a0 context.Context
   228  //   - _a1 *milvuspb.AlterDatabaseRequest
   229  func (_e *MilvusServiceServer_Expecter) AlterDatabase(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_AlterDatabase_Call {
   230  	return &MilvusServiceServer_AlterDatabase_Call{Call: _e.mock.On("AlterDatabase", _a0, _a1)}
   231  }
   232  
   233  func (_c *MilvusServiceServer_AlterDatabase_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.AlterDatabaseRequest)) *MilvusServiceServer_AlterDatabase_Call {
   234  	_c.Call.Run(func(args mock.Arguments) {
   235  		run(args[0].(context.Context), args[1].(*milvuspb.AlterDatabaseRequest))
   236  	})
   237  	return _c
   238  }
   239  
   240  func (_c *MilvusServiceServer_AlterDatabase_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_AlterDatabase_Call {
   241  	_c.Call.Return(_a0, _a1)
   242  	return _c
   243  }
   244  
   245  func (_c *MilvusServiceServer_AlterDatabase_Call) RunAndReturn(run func(context.Context, *milvuspb.AlterDatabaseRequest) (*commonpb.Status, error)) *MilvusServiceServer_AlterDatabase_Call {
   246  	_c.Call.Return(run)
   247  	return _c
   248  }
   249  
   250  // AlterIndex provides a mock function with given fields: _a0, _a1
   251  func (_m *MilvusServiceServer) AlterIndex(_a0 context.Context, _a1 *milvuspb.AlterIndexRequest) (*commonpb.Status, error) {
   252  	ret := _m.Called(_a0, _a1)
   253  
   254  	var r0 *commonpb.Status
   255  	var r1 error
   256  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.AlterIndexRequest) (*commonpb.Status, error)); ok {
   257  		return rf(_a0, _a1)
   258  	}
   259  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.AlterIndexRequest) *commonpb.Status); ok {
   260  		r0 = rf(_a0, _a1)
   261  	} else {
   262  		if ret.Get(0) != nil {
   263  			r0 = ret.Get(0).(*commonpb.Status)
   264  		}
   265  	}
   266  
   267  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.AlterIndexRequest) error); ok {
   268  		r1 = rf(_a0, _a1)
   269  	} else {
   270  		r1 = ret.Error(1)
   271  	}
   272  
   273  	return r0, r1
   274  }
   275  
   276  // MilvusServiceServer_AlterIndex_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AlterIndex'
   277  type MilvusServiceServer_AlterIndex_Call struct {
   278  	*mock.Call
   279  }
   280  
   281  // AlterIndex is a helper method to define mock.On call
   282  //   - _a0 context.Context
   283  //   - _a1 *milvuspb.AlterIndexRequest
   284  func (_e *MilvusServiceServer_Expecter) AlterIndex(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_AlterIndex_Call {
   285  	return &MilvusServiceServer_AlterIndex_Call{Call: _e.mock.On("AlterIndex", _a0, _a1)}
   286  }
   287  
   288  func (_c *MilvusServiceServer_AlterIndex_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.AlterIndexRequest)) *MilvusServiceServer_AlterIndex_Call {
   289  	_c.Call.Run(func(args mock.Arguments) {
   290  		run(args[0].(context.Context), args[1].(*milvuspb.AlterIndexRequest))
   291  	})
   292  	return _c
   293  }
   294  
   295  func (_c *MilvusServiceServer_AlterIndex_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_AlterIndex_Call {
   296  	_c.Call.Return(_a0, _a1)
   297  	return _c
   298  }
   299  
   300  func (_c *MilvusServiceServer_AlterIndex_Call) RunAndReturn(run func(context.Context, *milvuspb.AlterIndexRequest) (*commonpb.Status, error)) *MilvusServiceServer_AlterIndex_Call {
   301  	_c.Call.Return(run)
   302  	return _c
   303  }
   304  
   305  // CalcDistance provides a mock function with given fields: _a0, _a1
   306  func (_m *MilvusServiceServer) CalcDistance(_a0 context.Context, _a1 *milvuspb.CalcDistanceRequest) (*milvuspb.CalcDistanceResults, error) {
   307  	ret := _m.Called(_a0, _a1)
   308  
   309  	var r0 *milvuspb.CalcDistanceResults
   310  	var r1 error
   311  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.CalcDistanceRequest) (*milvuspb.CalcDistanceResults, error)); ok {
   312  		return rf(_a0, _a1)
   313  	}
   314  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.CalcDistanceRequest) *milvuspb.CalcDistanceResults); ok {
   315  		r0 = rf(_a0, _a1)
   316  	} else {
   317  		if ret.Get(0) != nil {
   318  			r0 = ret.Get(0).(*milvuspb.CalcDistanceResults)
   319  		}
   320  	}
   321  
   322  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.CalcDistanceRequest) error); ok {
   323  		r1 = rf(_a0, _a1)
   324  	} else {
   325  		r1 = ret.Error(1)
   326  	}
   327  
   328  	return r0, r1
   329  }
   330  
   331  // MilvusServiceServer_CalcDistance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CalcDistance'
   332  type MilvusServiceServer_CalcDistance_Call struct {
   333  	*mock.Call
   334  }
   335  
   336  // CalcDistance is a helper method to define mock.On call
   337  //   - _a0 context.Context
   338  //   - _a1 *milvuspb.CalcDistanceRequest
   339  func (_e *MilvusServiceServer_Expecter) CalcDistance(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_CalcDistance_Call {
   340  	return &MilvusServiceServer_CalcDistance_Call{Call: _e.mock.On("CalcDistance", _a0, _a1)}
   341  }
   342  
   343  func (_c *MilvusServiceServer_CalcDistance_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.CalcDistanceRequest)) *MilvusServiceServer_CalcDistance_Call {
   344  	_c.Call.Run(func(args mock.Arguments) {
   345  		run(args[0].(context.Context), args[1].(*milvuspb.CalcDistanceRequest))
   346  	})
   347  	return _c
   348  }
   349  
   350  func (_c *MilvusServiceServer_CalcDistance_Call) Return(_a0 *milvuspb.CalcDistanceResults, _a1 error) *MilvusServiceServer_CalcDistance_Call {
   351  	_c.Call.Return(_a0, _a1)
   352  	return _c
   353  }
   354  
   355  func (_c *MilvusServiceServer_CalcDistance_Call) RunAndReturn(run func(context.Context, *milvuspb.CalcDistanceRequest) (*milvuspb.CalcDistanceResults, error)) *MilvusServiceServer_CalcDistance_Call {
   356  	_c.Call.Return(run)
   357  	return _c
   358  }
   359  
   360  // CheckHealth provides a mock function with given fields: _a0, _a1
   361  func (_m *MilvusServiceServer) CheckHealth(_a0 context.Context, _a1 *milvuspb.CheckHealthRequest) (*milvuspb.CheckHealthResponse, error) {
   362  	ret := _m.Called(_a0, _a1)
   363  
   364  	var r0 *milvuspb.CheckHealthResponse
   365  	var r1 error
   366  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.CheckHealthRequest) (*milvuspb.CheckHealthResponse, error)); ok {
   367  		return rf(_a0, _a1)
   368  	}
   369  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.CheckHealthRequest) *milvuspb.CheckHealthResponse); ok {
   370  		r0 = rf(_a0, _a1)
   371  	} else {
   372  		if ret.Get(0) != nil {
   373  			r0 = ret.Get(0).(*milvuspb.CheckHealthResponse)
   374  		}
   375  	}
   376  
   377  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.CheckHealthRequest) error); ok {
   378  		r1 = rf(_a0, _a1)
   379  	} else {
   380  		r1 = ret.Error(1)
   381  	}
   382  
   383  	return r0, r1
   384  }
   385  
   386  // MilvusServiceServer_CheckHealth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckHealth'
   387  type MilvusServiceServer_CheckHealth_Call struct {
   388  	*mock.Call
   389  }
   390  
   391  // CheckHealth is a helper method to define mock.On call
   392  //   - _a0 context.Context
   393  //   - _a1 *milvuspb.CheckHealthRequest
   394  func (_e *MilvusServiceServer_Expecter) CheckHealth(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_CheckHealth_Call {
   395  	return &MilvusServiceServer_CheckHealth_Call{Call: _e.mock.On("CheckHealth", _a0, _a1)}
   396  }
   397  
   398  func (_c *MilvusServiceServer_CheckHealth_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.CheckHealthRequest)) *MilvusServiceServer_CheckHealth_Call {
   399  	_c.Call.Run(func(args mock.Arguments) {
   400  		run(args[0].(context.Context), args[1].(*milvuspb.CheckHealthRequest))
   401  	})
   402  	return _c
   403  }
   404  
   405  func (_c *MilvusServiceServer_CheckHealth_Call) Return(_a0 *milvuspb.CheckHealthResponse, _a1 error) *MilvusServiceServer_CheckHealth_Call {
   406  	_c.Call.Return(_a0, _a1)
   407  	return _c
   408  }
   409  
   410  func (_c *MilvusServiceServer_CheckHealth_Call) RunAndReturn(run func(context.Context, *milvuspb.CheckHealthRequest) (*milvuspb.CheckHealthResponse, error)) *MilvusServiceServer_CheckHealth_Call {
   411  	_c.Call.Return(run)
   412  	return _c
   413  }
   414  
   415  // Connect provides a mock function with given fields: _a0, _a1
   416  func (_m *MilvusServiceServer) Connect(_a0 context.Context, _a1 *milvuspb.ConnectRequest) (*milvuspb.ConnectResponse, error) {
   417  	ret := _m.Called(_a0, _a1)
   418  
   419  	var r0 *milvuspb.ConnectResponse
   420  	var r1 error
   421  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.ConnectRequest) (*milvuspb.ConnectResponse, error)); ok {
   422  		return rf(_a0, _a1)
   423  	}
   424  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.ConnectRequest) *milvuspb.ConnectResponse); ok {
   425  		r0 = rf(_a0, _a1)
   426  	} else {
   427  		if ret.Get(0) != nil {
   428  			r0 = ret.Get(0).(*milvuspb.ConnectResponse)
   429  		}
   430  	}
   431  
   432  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.ConnectRequest) error); ok {
   433  		r1 = rf(_a0, _a1)
   434  	} else {
   435  		r1 = ret.Error(1)
   436  	}
   437  
   438  	return r0, r1
   439  }
   440  
   441  // MilvusServiceServer_Connect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Connect'
   442  type MilvusServiceServer_Connect_Call struct {
   443  	*mock.Call
   444  }
   445  
   446  // Connect is a helper method to define mock.On call
   447  //   - _a0 context.Context
   448  //   - _a1 *milvuspb.ConnectRequest
   449  func (_e *MilvusServiceServer_Expecter) Connect(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_Connect_Call {
   450  	return &MilvusServiceServer_Connect_Call{Call: _e.mock.On("Connect", _a0, _a1)}
   451  }
   452  
   453  func (_c *MilvusServiceServer_Connect_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.ConnectRequest)) *MilvusServiceServer_Connect_Call {
   454  	_c.Call.Run(func(args mock.Arguments) {
   455  		run(args[0].(context.Context), args[1].(*milvuspb.ConnectRequest))
   456  	})
   457  	return _c
   458  }
   459  
   460  func (_c *MilvusServiceServer_Connect_Call) Return(_a0 *milvuspb.ConnectResponse, _a1 error) *MilvusServiceServer_Connect_Call {
   461  	_c.Call.Return(_a0, _a1)
   462  	return _c
   463  }
   464  
   465  func (_c *MilvusServiceServer_Connect_Call) RunAndReturn(run func(context.Context, *milvuspb.ConnectRequest) (*milvuspb.ConnectResponse, error)) *MilvusServiceServer_Connect_Call {
   466  	_c.Call.Return(run)
   467  	return _c
   468  }
   469  
   470  // CreateAlias provides a mock function with given fields: _a0, _a1
   471  func (_m *MilvusServiceServer) CreateAlias(_a0 context.Context, _a1 *milvuspb.CreateAliasRequest) (*commonpb.Status, error) {
   472  	ret := _m.Called(_a0, _a1)
   473  
   474  	var r0 *commonpb.Status
   475  	var r1 error
   476  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.CreateAliasRequest) (*commonpb.Status, error)); ok {
   477  		return rf(_a0, _a1)
   478  	}
   479  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.CreateAliasRequest) *commonpb.Status); ok {
   480  		r0 = rf(_a0, _a1)
   481  	} else {
   482  		if ret.Get(0) != nil {
   483  			r0 = ret.Get(0).(*commonpb.Status)
   484  		}
   485  	}
   486  
   487  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.CreateAliasRequest) error); ok {
   488  		r1 = rf(_a0, _a1)
   489  	} else {
   490  		r1 = ret.Error(1)
   491  	}
   492  
   493  	return r0, r1
   494  }
   495  
   496  // MilvusServiceServer_CreateAlias_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateAlias'
   497  type MilvusServiceServer_CreateAlias_Call struct {
   498  	*mock.Call
   499  }
   500  
   501  // CreateAlias is a helper method to define mock.On call
   502  //   - _a0 context.Context
   503  //   - _a1 *milvuspb.CreateAliasRequest
   504  func (_e *MilvusServiceServer_Expecter) CreateAlias(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_CreateAlias_Call {
   505  	return &MilvusServiceServer_CreateAlias_Call{Call: _e.mock.On("CreateAlias", _a0, _a1)}
   506  }
   507  
   508  func (_c *MilvusServiceServer_CreateAlias_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.CreateAliasRequest)) *MilvusServiceServer_CreateAlias_Call {
   509  	_c.Call.Run(func(args mock.Arguments) {
   510  		run(args[0].(context.Context), args[1].(*milvuspb.CreateAliasRequest))
   511  	})
   512  	return _c
   513  }
   514  
   515  func (_c *MilvusServiceServer_CreateAlias_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_CreateAlias_Call {
   516  	_c.Call.Return(_a0, _a1)
   517  	return _c
   518  }
   519  
   520  func (_c *MilvusServiceServer_CreateAlias_Call) RunAndReturn(run func(context.Context, *milvuspb.CreateAliasRequest) (*commonpb.Status, error)) *MilvusServiceServer_CreateAlias_Call {
   521  	_c.Call.Return(run)
   522  	return _c
   523  }
   524  
   525  // CreateCollection provides a mock function with given fields: _a0, _a1
   526  func (_m *MilvusServiceServer) CreateCollection(_a0 context.Context, _a1 *milvuspb.CreateCollectionRequest) (*commonpb.Status, error) {
   527  	ret := _m.Called(_a0, _a1)
   528  
   529  	var r0 *commonpb.Status
   530  	var r1 error
   531  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.CreateCollectionRequest) (*commonpb.Status, error)); ok {
   532  		return rf(_a0, _a1)
   533  	}
   534  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.CreateCollectionRequest) *commonpb.Status); ok {
   535  		r0 = rf(_a0, _a1)
   536  	} else {
   537  		if ret.Get(0) != nil {
   538  			r0 = ret.Get(0).(*commonpb.Status)
   539  		}
   540  	}
   541  
   542  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.CreateCollectionRequest) error); ok {
   543  		r1 = rf(_a0, _a1)
   544  	} else {
   545  		r1 = ret.Error(1)
   546  	}
   547  
   548  	return r0, r1
   549  }
   550  
   551  // MilvusServiceServer_CreateCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateCollection'
   552  type MilvusServiceServer_CreateCollection_Call struct {
   553  	*mock.Call
   554  }
   555  
   556  // CreateCollection is a helper method to define mock.On call
   557  //   - _a0 context.Context
   558  //   - _a1 *milvuspb.CreateCollectionRequest
   559  func (_e *MilvusServiceServer_Expecter) CreateCollection(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_CreateCollection_Call {
   560  	return &MilvusServiceServer_CreateCollection_Call{Call: _e.mock.On("CreateCollection", _a0, _a1)}
   561  }
   562  
   563  func (_c *MilvusServiceServer_CreateCollection_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.CreateCollectionRequest)) *MilvusServiceServer_CreateCollection_Call {
   564  	_c.Call.Run(func(args mock.Arguments) {
   565  		run(args[0].(context.Context), args[1].(*milvuspb.CreateCollectionRequest))
   566  	})
   567  	return _c
   568  }
   569  
   570  func (_c *MilvusServiceServer_CreateCollection_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_CreateCollection_Call {
   571  	_c.Call.Return(_a0, _a1)
   572  	return _c
   573  }
   574  
   575  func (_c *MilvusServiceServer_CreateCollection_Call) RunAndReturn(run func(context.Context, *milvuspb.CreateCollectionRequest) (*commonpb.Status, error)) *MilvusServiceServer_CreateCollection_Call {
   576  	_c.Call.Return(run)
   577  	return _c
   578  }
   579  
   580  // CreateCredential provides a mock function with given fields: _a0, _a1
   581  func (_m *MilvusServiceServer) CreateCredential(_a0 context.Context, _a1 *milvuspb.CreateCredentialRequest) (*commonpb.Status, error) {
   582  	ret := _m.Called(_a0, _a1)
   583  
   584  	var r0 *commonpb.Status
   585  	var r1 error
   586  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.CreateCredentialRequest) (*commonpb.Status, error)); ok {
   587  		return rf(_a0, _a1)
   588  	}
   589  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.CreateCredentialRequest) *commonpb.Status); ok {
   590  		r0 = rf(_a0, _a1)
   591  	} else {
   592  		if ret.Get(0) != nil {
   593  			r0 = ret.Get(0).(*commonpb.Status)
   594  		}
   595  	}
   596  
   597  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.CreateCredentialRequest) error); ok {
   598  		r1 = rf(_a0, _a1)
   599  	} else {
   600  		r1 = ret.Error(1)
   601  	}
   602  
   603  	return r0, r1
   604  }
   605  
   606  // MilvusServiceServer_CreateCredential_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateCredential'
   607  type MilvusServiceServer_CreateCredential_Call struct {
   608  	*mock.Call
   609  }
   610  
   611  // CreateCredential is a helper method to define mock.On call
   612  //   - _a0 context.Context
   613  //   - _a1 *milvuspb.CreateCredentialRequest
   614  func (_e *MilvusServiceServer_Expecter) CreateCredential(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_CreateCredential_Call {
   615  	return &MilvusServiceServer_CreateCredential_Call{Call: _e.mock.On("CreateCredential", _a0, _a1)}
   616  }
   617  
   618  func (_c *MilvusServiceServer_CreateCredential_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.CreateCredentialRequest)) *MilvusServiceServer_CreateCredential_Call {
   619  	_c.Call.Run(func(args mock.Arguments) {
   620  		run(args[0].(context.Context), args[1].(*milvuspb.CreateCredentialRequest))
   621  	})
   622  	return _c
   623  }
   624  
   625  func (_c *MilvusServiceServer_CreateCredential_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_CreateCredential_Call {
   626  	_c.Call.Return(_a0, _a1)
   627  	return _c
   628  }
   629  
   630  func (_c *MilvusServiceServer_CreateCredential_Call) RunAndReturn(run func(context.Context, *milvuspb.CreateCredentialRequest) (*commonpb.Status, error)) *MilvusServiceServer_CreateCredential_Call {
   631  	_c.Call.Return(run)
   632  	return _c
   633  }
   634  
   635  // CreateDatabase provides a mock function with given fields: _a0, _a1
   636  func (_m *MilvusServiceServer) CreateDatabase(_a0 context.Context, _a1 *milvuspb.CreateDatabaseRequest) (*commonpb.Status, error) {
   637  	ret := _m.Called(_a0, _a1)
   638  
   639  	var r0 *commonpb.Status
   640  	var r1 error
   641  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.CreateDatabaseRequest) (*commonpb.Status, error)); ok {
   642  		return rf(_a0, _a1)
   643  	}
   644  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.CreateDatabaseRequest) *commonpb.Status); ok {
   645  		r0 = rf(_a0, _a1)
   646  	} else {
   647  		if ret.Get(0) != nil {
   648  			r0 = ret.Get(0).(*commonpb.Status)
   649  		}
   650  	}
   651  
   652  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.CreateDatabaseRequest) error); ok {
   653  		r1 = rf(_a0, _a1)
   654  	} else {
   655  		r1 = ret.Error(1)
   656  	}
   657  
   658  	return r0, r1
   659  }
   660  
   661  // MilvusServiceServer_CreateDatabase_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateDatabase'
   662  type MilvusServiceServer_CreateDatabase_Call struct {
   663  	*mock.Call
   664  }
   665  
   666  // CreateDatabase is a helper method to define mock.On call
   667  //   - _a0 context.Context
   668  //   - _a1 *milvuspb.CreateDatabaseRequest
   669  func (_e *MilvusServiceServer_Expecter) CreateDatabase(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_CreateDatabase_Call {
   670  	return &MilvusServiceServer_CreateDatabase_Call{Call: _e.mock.On("CreateDatabase", _a0, _a1)}
   671  }
   672  
   673  func (_c *MilvusServiceServer_CreateDatabase_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.CreateDatabaseRequest)) *MilvusServiceServer_CreateDatabase_Call {
   674  	_c.Call.Run(func(args mock.Arguments) {
   675  		run(args[0].(context.Context), args[1].(*milvuspb.CreateDatabaseRequest))
   676  	})
   677  	return _c
   678  }
   679  
   680  func (_c *MilvusServiceServer_CreateDatabase_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_CreateDatabase_Call {
   681  	_c.Call.Return(_a0, _a1)
   682  	return _c
   683  }
   684  
   685  func (_c *MilvusServiceServer_CreateDatabase_Call) RunAndReturn(run func(context.Context, *milvuspb.CreateDatabaseRequest) (*commonpb.Status, error)) *MilvusServiceServer_CreateDatabase_Call {
   686  	_c.Call.Return(run)
   687  	return _c
   688  }
   689  
   690  // CreateIndex provides a mock function with given fields: _a0, _a1
   691  func (_m *MilvusServiceServer) CreateIndex(_a0 context.Context, _a1 *milvuspb.CreateIndexRequest) (*commonpb.Status, error) {
   692  	ret := _m.Called(_a0, _a1)
   693  
   694  	var r0 *commonpb.Status
   695  	var r1 error
   696  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.CreateIndexRequest) (*commonpb.Status, error)); ok {
   697  		return rf(_a0, _a1)
   698  	}
   699  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.CreateIndexRequest) *commonpb.Status); ok {
   700  		r0 = rf(_a0, _a1)
   701  	} else {
   702  		if ret.Get(0) != nil {
   703  			r0 = ret.Get(0).(*commonpb.Status)
   704  		}
   705  	}
   706  
   707  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.CreateIndexRequest) error); ok {
   708  		r1 = rf(_a0, _a1)
   709  	} else {
   710  		r1 = ret.Error(1)
   711  	}
   712  
   713  	return r0, r1
   714  }
   715  
   716  // MilvusServiceServer_CreateIndex_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateIndex'
   717  type MilvusServiceServer_CreateIndex_Call struct {
   718  	*mock.Call
   719  }
   720  
   721  // CreateIndex is a helper method to define mock.On call
   722  //   - _a0 context.Context
   723  //   - _a1 *milvuspb.CreateIndexRequest
   724  func (_e *MilvusServiceServer_Expecter) CreateIndex(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_CreateIndex_Call {
   725  	return &MilvusServiceServer_CreateIndex_Call{Call: _e.mock.On("CreateIndex", _a0, _a1)}
   726  }
   727  
   728  func (_c *MilvusServiceServer_CreateIndex_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.CreateIndexRequest)) *MilvusServiceServer_CreateIndex_Call {
   729  	_c.Call.Run(func(args mock.Arguments) {
   730  		run(args[0].(context.Context), args[1].(*milvuspb.CreateIndexRequest))
   731  	})
   732  	return _c
   733  }
   734  
   735  func (_c *MilvusServiceServer_CreateIndex_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_CreateIndex_Call {
   736  	_c.Call.Return(_a0, _a1)
   737  	return _c
   738  }
   739  
   740  func (_c *MilvusServiceServer_CreateIndex_Call) RunAndReturn(run func(context.Context, *milvuspb.CreateIndexRequest) (*commonpb.Status, error)) *MilvusServiceServer_CreateIndex_Call {
   741  	_c.Call.Return(run)
   742  	return _c
   743  }
   744  
   745  // CreatePartition provides a mock function with given fields: _a0, _a1
   746  func (_m *MilvusServiceServer) CreatePartition(_a0 context.Context, _a1 *milvuspb.CreatePartitionRequest) (*commonpb.Status, error) {
   747  	ret := _m.Called(_a0, _a1)
   748  
   749  	var r0 *commonpb.Status
   750  	var r1 error
   751  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.CreatePartitionRequest) (*commonpb.Status, error)); ok {
   752  		return rf(_a0, _a1)
   753  	}
   754  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.CreatePartitionRequest) *commonpb.Status); ok {
   755  		r0 = rf(_a0, _a1)
   756  	} else {
   757  		if ret.Get(0) != nil {
   758  			r0 = ret.Get(0).(*commonpb.Status)
   759  		}
   760  	}
   761  
   762  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.CreatePartitionRequest) error); ok {
   763  		r1 = rf(_a0, _a1)
   764  	} else {
   765  		r1 = ret.Error(1)
   766  	}
   767  
   768  	return r0, r1
   769  }
   770  
   771  // MilvusServiceServer_CreatePartition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreatePartition'
   772  type MilvusServiceServer_CreatePartition_Call struct {
   773  	*mock.Call
   774  }
   775  
   776  // CreatePartition is a helper method to define mock.On call
   777  //   - _a0 context.Context
   778  //   - _a1 *milvuspb.CreatePartitionRequest
   779  func (_e *MilvusServiceServer_Expecter) CreatePartition(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_CreatePartition_Call {
   780  	return &MilvusServiceServer_CreatePartition_Call{Call: _e.mock.On("CreatePartition", _a0, _a1)}
   781  }
   782  
   783  func (_c *MilvusServiceServer_CreatePartition_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.CreatePartitionRequest)) *MilvusServiceServer_CreatePartition_Call {
   784  	_c.Call.Run(func(args mock.Arguments) {
   785  		run(args[0].(context.Context), args[1].(*milvuspb.CreatePartitionRequest))
   786  	})
   787  	return _c
   788  }
   789  
   790  func (_c *MilvusServiceServer_CreatePartition_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_CreatePartition_Call {
   791  	_c.Call.Return(_a0, _a1)
   792  	return _c
   793  }
   794  
   795  func (_c *MilvusServiceServer_CreatePartition_Call) RunAndReturn(run func(context.Context, *milvuspb.CreatePartitionRequest) (*commonpb.Status, error)) *MilvusServiceServer_CreatePartition_Call {
   796  	_c.Call.Return(run)
   797  	return _c
   798  }
   799  
   800  // CreateResourceGroup provides a mock function with given fields: _a0, _a1
   801  func (_m *MilvusServiceServer) CreateResourceGroup(_a0 context.Context, _a1 *milvuspb.CreateResourceGroupRequest) (*commonpb.Status, error) {
   802  	ret := _m.Called(_a0, _a1)
   803  
   804  	var r0 *commonpb.Status
   805  	var r1 error
   806  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.CreateResourceGroupRequest) (*commonpb.Status, error)); ok {
   807  		return rf(_a0, _a1)
   808  	}
   809  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.CreateResourceGroupRequest) *commonpb.Status); ok {
   810  		r0 = rf(_a0, _a1)
   811  	} else {
   812  		if ret.Get(0) != nil {
   813  			r0 = ret.Get(0).(*commonpb.Status)
   814  		}
   815  	}
   816  
   817  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.CreateResourceGroupRequest) error); ok {
   818  		r1 = rf(_a0, _a1)
   819  	} else {
   820  		r1 = ret.Error(1)
   821  	}
   822  
   823  	return r0, r1
   824  }
   825  
   826  // MilvusServiceServer_CreateResourceGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateResourceGroup'
   827  type MilvusServiceServer_CreateResourceGroup_Call struct {
   828  	*mock.Call
   829  }
   830  
   831  // CreateResourceGroup is a helper method to define mock.On call
   832  //   - _a0 context.Context
   833  //   - _a1 *milvuspb.CreateResourceGroupRequest
   834  func (_e *MilvusServiceServer_Expecter) CreateResourceGroup(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_CreateResourceGroup_Call {
   835  	return &MilvusServiceServer_CreateResourceGroup_Call{Call: _e.mock.On("CreateResourceGroup", _a0, _a1)}
   836  }
   837  
   838  func (_c *MilvusServiceServer_CreateResourceGroup_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.CreateResourceGroupRequest)) *MilvusServiceServer_CreateResourceGroup_Call {
   839  	_c.Call.Run(func(args mock.Arguments) {
   840  		run(args[0].(context.Context), args[1].(*milvuspb.CreateResourceGroupRequest))
   841  	})
   842  	return _c
   843  }
   844  
   845  func (_c *MilvusServiceServer_CreateResourceGroup_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_CreateResourceGroup_Call {
   846  	_c.Call.Return(_a0, _a1)
   847  	return _c
   848  }
   849  
   850  func (_c *MilvusServiceServer_CreateResourceGroup_Call) RunAndReturn(run func(context.Context, *milvuspb.CreateResourceGroupRequest) (*commonpb.Status, error)) *MilvusServiceServer_CreateResourceGroup_Call {
   851  	_c.Call.Return(run)
   852  	return _c
   853  }
   854  
   855  // CreateRole provides a mock function with given fields: _a0, _a1
   856  func (_m *MilvusServiceServer) CreateRole(_a0 context.Context, _a1 *milvuspb.CreateRoleRequest) (*commonpb.Status, error) {
   857  	ret := _m.Called(_a0, _a1)
   858  
   859  	var r0 *commonpb.Status
   860  	var r1 error
   861  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.CreateRoleRequest) (*commonpb.Status, error)); ok {
   862  		return rf(_a0, _a1)
   863  	}
   864  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.CreateRoleRequest) *commonpb.Status); ok {
   865  		r0 = rf(_a0, _a1)
   866  	} else {
   867  		if ret.Get(0) != nil {
   868  			r0 = ret.Get(0).(*commonpb.Status)
   869  		}
   870  	}
   871  
   872  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.CreateRoleRequest) error); ok {
   873  		r1 = rf(_a0, _a1)
   874  	} else {
   875  		r1 = ret.Error(1)
   876  	}
   877  
   878  	return r0, r1
   879  }
   880  
   881  // MilvusServiceServer_CreateRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRole'
   882  type MilvusServiceServer_CreateRole_Call struct {
   883  	*mock.Call
   884  }
   885  
   886  // CreateRole is a helper method to define mock.On call
   887  //   - _a0 context.Context
   888  //   - _a1 *milvuspb.CreateRoleRequest
   889  func (_e *MilvusServiceServer_Expecter) CreateRole(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_CreateRole_Call {
   890  	return &MilvusServiceServer_CreateRole_Call{Call: _e.mock.On("CreateRole", _a0, _a1)}
   891  }
   892  
   893  func (_c *MilvusServiceServer_CreateRole_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.CreateRoleRequest)) *MilvusServiceServer_CreateRole_Call {
   894  	_c.Call.Run(func(args mock.Arguments) {
   895  		run(args[0].(context.Context), args[1].(*milvuspb.CreateRoleRequest))
   896  	})
   897  	return _c
   898  }
   899  
   900  func (_c *MilvusServiceServer_CreateRole_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_CreateRole_Call {
   901  	_c.Call.Return(_a0, _a1)
   902  	return _c
   903  }
   904  
   905  func (_c *MilvusServiceServer_CreateRole_Call) RunAndReturn(run func(context.Context, *milvuspb.CreateRoleRequest) (*commonpb.Status, error)) *MilvusServiceServer_CreateRole_Call {
   906  	_c.Call.Return(run)
   907  	return _c
   908  }
   909  
   910  // Delete provides a mock function with given fields: _a0, _a1
   911  func (_m *MilvusServiceServer) Delete(_a0 context.Context, _a1 *milvuspb.DeleteRequest) (*milvuspb.MutationResult, error) {
   912  	ret := _m.Called(_a0, _a1)
   913  
   914  	var r0 *milvuspb.MutationResult
   915  	var r1 error
   916  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DeleteRequest) (*milvuspb.MutationResult, error)); ok {
   917  		return rf(_a0, _a1)
   918  	}
   919  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DeleteRequest) *milvuspb.MutationResult); ok {
   920  		r0 = rf(_a0, _a1)
   921  	} else {
   922  		if ret.Get(0) != nil {
   923  			r0 = ret.Get(0).(*milvuspb.MutationResult)
   924  		}
   925  	}
   926  
   927  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.DeleteRequest) error); ok {
   928  		r1 = rf(_a0, _a1)
   929  	} else {
   930  		r1 = ret.Error(1)
   931  	}
   932  
   933  	return r0, r1
   934  }
   935  
   936  // MilvusServiceServer_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
   937  type MilvusServiceServer_Delete_Call struct {
   938  	*mock.Call
   939  }
   940  
   941  // Delete is a helper method to define mock.On call
   942  //   - _a0 context.Context
   943  //   - _a1 *milvuspb.DeleteRequest
   944  func (_e *MilvusServiceServer_Expecter) Delete(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_Delete_Call {
   945  	return &MilvusServiceServer_Delete_Call{Call: _e.mock.On("Delete", _a0, _a1)}
   946  }
   947  
   948  func (_c *MilvusServiceServer_Delete_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.DeleteRequest)) *MilvusServiceServer_Delete_Call {
   949  	_c.Call.Run(func(args mock.Arguments) {
   950  		run(args[0].(context.Context), args[1].(*milvuspb.DeleteRequest))
   951  	})
   952  	return _c
   953  }
   954  
   955  func (_c *MilvusServiceServer_Delete_Call) Return(_a0 *milvuspb.MutationResult, _a1 error) *MilvusServiceServer_Delete_Call {
   956  	_c.Call.Return(_a0, _a1)
   957  	return _c
   958  }
   959  
   960  func (_c *MilvusServiceServer_Delete_Call) RunAndReturn(run func(context.Context, *milvuspb.DeleteRequest) (*milvuspb.MutationResult, error)) *MilvusServiceServer_Delete_Call {
   961  	_c.Call.Return(run)
   962  	return _c
   963  }
   964  
   965  // DeleteCredential provides a mock function with given fields: _a0, _a1
   966  func (_m *MilvusServiceServer) DeleteCredential(_a0 context.Context, _a1 *milvuspb.DeleteCredentialRequest) (*commonpb.Status, error) {
   967  	ret := _m.Called(_a0, _a1)
   968  
   969  	var r0 *commonpb.Status
   970  	var r1 error
   971  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DeleteCredentialRequest) (*commonpb.Status, error)); ok {
   972  		return rf(_a0, _a1)
   973  	}
   974  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DeleteCredentialRequest) *commonpb.Status); ok {
   975  		r0 = rf(_a0, _a1)
   976  	} else {
   977  		if ret.Get(0) != nil {
   978  			r0 = ret.Get(0).(*commonpb.Status)
   979  		}
   980  	}
   981  
   982  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.DeleteCredentialRequest) error); ok {
   983  		r1 = rf(_a0, _a1)
   984  	} else {
   985  		r1 = ret.Error(1)
   986  	}
   987  
   988  	return r0, r1
   989  }
   990  
   991  // MilvusServiceServer_DeleteCredential_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteCredential'
   992  type MilvusServiceServer_DeleteCredential_Call struct {
   993  	*mock.Call
   994  }
   995  
   996  // DeleteCredential is a helper method to define mock.On call
   997  //   - _a0 context.Context
   998  //   - _a1 *milvuspb.DeleteCredentialRequest
   999  func (_e *MilvusServiceServer_Expecter) DeleteCredential(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_DeleteCredential_Call {
  1000  	return &MilvusServiceServer_DeleteCredential_Call{Call: _e.mock.On("DeleteCredential", _a0, _a1)}
  1001  }
  1002  
  1003  func (_c *MilvusServiceServer_DeleteCredential_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.DeleteCredentialRequest)) *MilvusServiceServer_DeleteCredential_Call {
  1004  	_c.Call.Run(func(args mock.Arguments) {
  1005  		run(args[0].(context.Context), args[1].(*milvuspb.DeleteCredentialRequest))
  1006  	})
  1007  	return _c
  1008  }
  1009  
  1010  func (_c *MilvusServiceServer_DeleteCredential_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_DeleteCredential_Call {
  1011  	_c.Call.Return(_a0, _a1)
  1012  	return _c
  1013  }
  1014  
  1015  func (_c *MilvusServiceServer_DeleteCredential_Call) RunAndReturn(run func(context.Context, *milvuspb.DeleteCredentialRequest) (*commonpb.Status, error)) *MilvusServiceServer_DeleteCredential_Call {
  1016  	_c.Call.Return(run)
  1017  	return _c
  1018  }
  1019  
  1020  // DescribeAlias provides a mock function with given fields: _a0, _a1
  1021  func (_m *MilvusServiceServer) DescribeAlias(_a0 context.Context, _a1 *milvuspb.DescribeAliasRequest) (*milvuspb.DescribeAliasResponse, error) {
  1022  	ret := _m.Called(_a0, _a1)
  1023  
  1024  	var r0 *milvuspb.DescribeAliasResponse
  1025  	var r1 error
  1026  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DescribeAliasRequest) (*milvuspb.DescribeAliasResponse, error)); ok {
  1027  		return rf(_a0, _a1)
  1028  	}
  1029  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DescribeAliasRequest) *milvuspb.DescribeAliasResponse); ok {
  1030  		r0 = rf(_a0, _a1)
  1031  	} else {
  1032  		if ret.Get(0) != nil {
  1033  			r0 = ret.Get(0).(*milvuspb.DescribeAliasResponse)
  1034  		}
  1035  	}
  1036  
  1037  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.DescribeAliasRequest) error); ok {
  1038  		r1 = rf(_a0, _a1)
  1039  	} else {
  1040  		r1 = ret.Error(1)
  1041  	}
  1042  
  1043  	return r0, r1
  1044  }
  1045  
  1046  // MilvusServiceServer_DescribeAlias_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeAlias'
  1047  type MilvusServiceServer_DescribeAlias_Call struct {
  1048  	*mock.Call
  1049  }
  1050  
  1051  // DescribeAlias is a helper method to define mock.On call
  1052  //   - _a0 context.Context
  1053  //   - _a1 *milvuspb.DescribeAliasRequest
  1054  func (_e *MilvusServiceServer_Expecter) DescribeAlias(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_DescribeAlias_Call {
  1055  	return &MilvusServiceServer_DescribeAlias_Call{Call: _e.mock.On("DescribeAlias", _a0, _a1)}
  1056  }
  1057  
  1058  func (_c *MilvusServiceServer_DescribeAlias_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.DescribeAliasRequest)) *MilvusServiceServer_DescribeAlias_Call {
  1059  	_c.Call.Run(func(args mock.Arguments) {
  1060  		run(args[0].(context.Context), args[1].(*milvuspb.DescribeAliasRequest))
  1061  	})
  1062  	return _c
  1063  }
  1064  
  1065  func (_c *MilvusServiceServer_DescribeAlias_Call) Return(_a0 *milvuspb.DescribeAliasResponse, _a1 error) *MilvusServiceServer_DescribeAlias_Call {
  1066  	_c.Call.Return(_a0, _a1)
  1067  	return _c
  1068  }
  1069  
  1070  func (_c *MilvusServiceServer_DescribeAlias_Call) RunAndReturn(run func(context.Context, *milvuspb.DescribeAliasRequest) (*milvuspb.DescribeAliasResponse, error)) *MilvusServiceServer_DescribeAlias_Call {
  1071  	_c.Call.Return(run)
  1072  	return _c
  1073  }
  1074  
  1075  // DescribeCollection provides a mock function with given fields: _a0, _a1
  1076  func (_m *MilvusServiceServer) DescribeCollection(_a0 context.Context, _a1 *milvuspb.DescribeCollectionRequest) (*milvuspb.DescribeCollectionResponse, error) {
  1077  	ret := _m.Called(_a0, _a1)
  1078  
  1079  	var r0 *milvuspb.DescribeCollectionResponse
  1080  	var r1 error
  1081  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DescribeCollectionRequest) (*milvuspb.DescribeCollectionResponse, error)); ok {
  1082  		return rf(_a0, _a1)
  1083  	}
  1084  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DescribeCollectionRequest) *milvuspb.DescribeCollectionResponse); ok {
  1085  		r0 = rf(_a0, _a1)
  1086  	} else {
  1087  		if ret.Get(0) != nil {
  1088  			r0 = ret.Get(0).(*milvuspb.DescribeCollectionResponse)
  1089  		}
  1090  	}
  1091  
  1092  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.DescribeCollectionRequest) error); ok {
  1093  		r1 = rf(_a0, _a1)
  1094  	} else {
  1095  		r1 = ret.Error(1)
  1096  	}
  1097  
  1098  	return r0, r1
  1099  }
  1100  
  1101  // MilvusServiceServer_DescribeCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeCollection'
  1102  type MilvusServiceServer_DescribeCollection_Call struct {
  1103  	*mock.Call
  1104  }
  1105  
  1106  // DescribeCollection is a helper method to define mock.On call
  1107  //   - _a0 context.Context
  1108  //   - _a1 *milvuspb.DescribeCollectionRequest
  1109  func (_e *MilvusServiceServer_Expecter) DescribeCollection(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_DescribeCollection_Call {
  1110  	return &MilvusServiceServer_DescribeCollection_Call{Call: _e.mock.On("DescribeCollection", _a0, _a1)}
  1111  }
  1112  
  1113  func (_c *MilvusServiceServer_DescribeCollection_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.DescribeCollectionRequest)) *MilvusServiceServer_DescribeCollection_Call {
  1114  	_c.Call.Run(func(args mock.Arguments) {
  1115  		run(args[0].(context.Context), args[1].(*milvuspb.DescribeCollectionRequest))
  1116  	})
  1117  	return _c
  1118  }
  1119  
  1120  func (_c *MilvusServiceServer_DescribeCollection_Call) Return(_a0 *milvuspb.DescribeCollectionResponse, _a1 error) *MilvusServiceServer_DescribeCollection_Call {
  1121  	_c.Call.Return(_a0, _a1)
  1122  	return _c
  1123  }
  1124  
  1125  func (_c *MilvusServiceServer_DescribeCollection_Call) RunAndReturn(run func(context.Context, *milvuspb.DescribeCollectionRequest) (*milvuspb.DescribeCollectionResponse, error)) *MilvusServiceServer_DescribeCollection_Call {
  1126  	_c.Call.Return(run)
  1127  	return _c
  1128  }
  1129  
  1130  // DescribeDatabase provides a mock function with given fields: _a0, _a1
  1131  func (_m *MilvusServiceServer) DescribeDatabase(_a0 context.Context, _a1 *milvuspb.DescribeDatabaseRequest) (*milvuspb.DescribeDatabaseResponse, error) {
  1132  	ret := _m.Called(_a0, _a1)
  1133  
  1134  	var r0 *milvuspb.DescribeDatabaseResponse
  1135  	var r1 error
  1136  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DescribeDatabaseRequest) (*milvuspb.DescribeDatabaseResponse, error)); ok {
  1137  		return rf(_a0, _a1)
  1138  	}
  1139  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DescribeDatabaseRequest) *milvuspb.DescribeDatabaseResponse); ok {
  1140  		r0 = rf(_a0, _a1)
  1141  	} else {
  1142  		if ret.Get(0) != nil {
  1143  			r0 = ret.Get(0).(*milvuspb.DescribeDatabaseResponse)
  1144  		}
  1145  	}
  1146  
  1147  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.DescribeDatabaseRequest) error); ok {
  1148  		r1 = rf(_a0, _a1)
  1149  	} else {
  1150  		r1 = ret.Error(1)
  1151  	}
  1152  
  1153  	return r0, r1
  1154  }
  1155  
  1156  // MilvusServiceServer_DescribeDatabase_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeDatabase'
  1157  type MilvusServiceServer_DescribeDatabase_Call struct {
  1158  	*mock.Call
  1159  }
  1160  
  1161  // DescribeDatabase is a helper method to define mock.On call
  1162  //   - _a0 context.Context
  1163  //   - _a1 *milvuspb.DescribeDatabaseRequest
  1164  func (_e *MilvusServiceServer_Expecter) DescribeDatabase(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_DescribeDatabase_Call {
  1165  	return &MilvusServiceServer_DescribeDatabase_Call{Call: _e.mock.On("DescribeDatabase", _a0, _a1)}
  1166  }
  1167  
  1168  func (_c *MilvusServiceServer_DescribeDatabase_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.DescribeDatabaseRequest)) *MilvusServiceServer_DescribeDatabase_Call {
  1169  	_c.Call.Run(func(args mock.Arguments) {
  1170  		run(args[0].(context.Context), args[1].(*milvuspb.DescribeDatabaseRequest))
  1171  	})
  1172  	return _c
  1173  }
  1174  
  1175  func (_c *MilvusServiceServer_DescribeDatabase_Call) Return(_a0 *milvuspb.DescribeDatabaseResponse, _a1 error) *MilvusServiceServer_DescribeDatabase_Call {
  1176  	_c.Call.Return(_a0, _a1)
  1177  	return _c
  1178  }
  1179  
  1180  func (_c *MilvusServiceServer_DescribeDatabase_Call) RunAndReturn(run func(context.Context, *milvuspb.DescribeDatabaseRequest) (*milvuspb.DescribeDatabaseResponse, error)) *MilvusServiceServer_DescribeDatabase_Call {
  1181  	_c.Call.Return(run)
  1182  	return _c
  1183  }
  1184  
  1185  // DescribeIndex provides a mock function with given fields: _a0, _a1
  1186  func (_m *MilvusServiceServer) DescribeIndex(_a0 context.Context, _a1 *milvuspb.DescribeIndexRequest) (*milvuspb.DescribeIndexResponse, error) {
  1187  	ret := _m.Called(_a0, _a1)
  1188  
  1189  	var r0 *milvuspb.DescribeIndexResponse
  1190  	var r1 error
  1191  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DescribeIndexRequest) (*milvuspb.DescribeIndexResponse, error)); ok {
  1192  		return rf(_a0, _a1)
  1193  	}
  1194  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DescribeIndexRequest) *milvuspb.DescribeIndexResponse); ok {
  1195  		r0 = rf(_a0, _a1)
  1196  	} else {
  1197  		if ret.Get(0) != nil {
  1198  			r0 = ret.Get(0).(*milvuspb.DescribeIndexResponse)
  1199  		}
  1200  	}
  1201  
  1202  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.DescribeIndexRequest) error); ok {
  1203  		r1 = rf(_a0, _a1)
  1204  	} else {
  1205  		r1 = ret.Error(1)
  1206  	}
  1207  
  1208  	return r0, r1
  1209  }
  1210  
  1211  // MilvusServiceServer_DescribeIndex_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeIndex'
  1212  type MilvusServiceServer_DescribeIndex_Call struct {
  1213  	*mock.Call
  1214  }
  1215  
  1216  // DescribeIndex is a helper method to define mock.On call
  1217  //   - _a0 context.Context
  1218  //   - _a1 *milvuspb.DescribeIndexRequest
  1219  func (_e *MilvusServiceServer_Expecter) DescribeIndex(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_DescribeIndex_Call {
  1220  	return &MilvusServiceServer_DescribeIndex_Call{Call: _e.mock.On("DescribeIndex", _a0, _a1)}
  1221  }
  1222  
  1223  func (_c *MilvusServiceServer_DescribeIndex_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.DescribeIndexRequest)) *MilvusServiceServer_DescribeIndex_Call {
  1224  	_c.Call.Run(func(args mock.Arguments) {
  1225  		run(args[0].(context.Context), args[1].(*milvuspb.DescribeIndexRequest))
  1226  	})
  1227  	return _c
  1228  }
  1229  
  1230  func (_c *MilvusServiceServer_DescribeIndex_Call) Return(_a0 *milvuspb.DescribeIndexResponse, _a1 error) *MilvusServiceServer_DescribeIndex_Call {
  1231  	_c.Call.Return(_a0, _a1)
  1232  	return _c
  1233  }
  1234  
  1235  func (_c *MilvusServiceServer_DescribeIndex_Call) RunAndReturn(run func(context.Context, *milvuspb.DescribeIndexRequest) (*milvuspb.DescribeIndexResponse, error)) *MilvusServiceServer_DescribeIndex_Call {
  1236  	_c.Call.Return(run)
  1237  	return _c
  1238  }
  1239  
  1240  // DescribeResourceGroup provides a mock function with given fields: _a0, _a1
  1241  func (_m *MilvusServiceServer) DescribeResourceGroup(_a0 context.Context, _a1 *milvuspb.DescribeResourceGroupRequest) (*milvuspb.DescribeResourceGroupResponse, error) {
  1242  	ret := _m.Called(_a0, _a1)
  1243  
  1244  	var r0 *milvuspb.DescribeResourceGroupResponse
  1245  	var r1 error
  1246  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DescribeResourceGroupRequest) (*milvuspb.DescribeResourceGroupResponse, error)); ok {
  1247  		return rf(_a0, _a1)
  1248  	}
  1249  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DescribeResourceGroupRequest) *milvuspb.DescribeResourceGroupResponse); ok {
  1250  		r0 = rf(_a0, _a1)
  1251  	} else {
  1252  		if ret.Get(0) != nil {
  1253  			r0 = ret.Get(0).(*milvuspb.DescribeResourceGroupResponse)
  1254  		}
  1255  	}
  1256  
  1257  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.DescribeResourceGroupRequest) error); ok {
  1258  		r1 = rf(_a0, _a1)
  1259  	} else {
  1260  		r1 = ret.Error(1)
  1261  	}
  1262  
  1263  	return r0, r1
  1264  }
  1265  
  1266  // MilvusServiceServer_DescribeResourceGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeResourceGroup'
  1267  type MilvusServiceServer_DescribeResourceGroup_Call struct {
  1268  	*mock.Call
  1269  }
  1270  
  1271  // DescribeResourceGroup is a helper method to define mock.On call
  1272  //   - _a0 context.Context
  1273  //   - _a1 *milvuspb.DescribeResourceGroupRequest
  1274  func (_e *MilvusServiceServer_Expecter) DescribeResourceGroup(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_DescribeResourceGroup_Call {
  1275  	return &MilvusServiceServer_DescribeResourceGroup_Call{Call: _e.mock.On("DescribeResourceGroup", _a0, _a1)}
  1276  }
  1277  
  1278  func (_c *MilvusServiceServer_DescribeResourceGroup_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.DescribeResourceGroupRequest)) *MilvusServiceServer_DescribeResourceGroup_Call {
  1279  	_c.Call.Run(func(args mock.Arguments) {
  1280  		run(args[0].(context.Context), args[1].(*milvuspb.DescribeResourceGroupRequest))
  1281  	})
  1282  	return _c
  1283  }
  1284  
  1285  func (_c *MilvusServiceServer_DescribeResourceGroup_Call) Return(_a0 *milvuspb.DescribeResourceGroupResponse, _a1 error) *MilvusServiceServer_DescribeResourceGroup_Call {
  1286  	_c.Call.Return(_a0, _a1)
  1287  	return _c
  1288  }
  1289  
  1290  func (_c *MilvusServiceServer_DescribeResourceGroup_Call) RunAndReturn(run func(context.Context, *milvuspb.DescribeResourceGroupRequest) (*milvuspb.DescribeResourceGroupResponse, error)) *MilvusServiceServer_DescribeResourceGroup_Call {
  1291  	_c.Call.Return(run)
  1292  	return _c
  1293  }
  1294  
  1295  // DescribeSegmentIndexData provides a mock function with given fields: _a0, _a1
  1296  func (_m *MilvusServiceServer) DescribeSegmentIndexData(_a0 context.Context, _a1 *federpb.DescribeSegmentIndexDataRequest) (*federpb.DescribeSegmentIndexDataResponse, error) {
  1297  	ret := _m.Called(_a0, _a1)
  1298  
  1299  	var r0 *federpb.DescribeSegmentIndexDataResponse
  1300  	var r1 error
  1301  	if rf, ok := ret.Get(0).(func(context.Context, *federpb.DescribeSegmentIndexDataRequest) (*federpb.DescribeSegmentIndexDataResponse, error)); ok {
  1302  		return rf(_a0, _a1)
  1303  	}
  1304  	if rf, ok := ret.Get(0).(func(context.Context, *federpb.DescribeSegmentIndexDataRequest) *federpb.DescribeSegmentIndexDataResponse); ok {
  1305  		r0 = rf(_a0, _a1)
  1306  	} else {
  1307  		if ret.Get(0) != nil {
  1308  			r0 = ret.Get(0).(*federpb.DescribeSegmentIndexDataResponse)
  1309  		}
  1310  	}
  1311  
  1312  	if rf, ok := ret.Get(1).(func(context.Context, *federpb.DescribeSegmentIndexDataRequest) error); ok {
  1313  		r1 = rf(_a0, _a1)
  1314  	} else {
  1315  		r1 = ret.Error(1)
  1316  	}
  1317  
  1318  	return r0, r1
  1319  }
  1320  
  1321  // MilvusServiceServer_DescribeSegmentIndexData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeSegmentIndexData'
  1322  type MilvusServiceServer_DescribeSegmentIndexData_Call struct {
  1323  	*mock.Call
  1324  }
  1325  
  1326  // DescribeSegmentIndexData is a helper method to define mock.On call
  1327  //   - _a0 context.Context
  1328  //   - _a1 *federpb.DescribeSegmentIndexDataRequest
  1329  func (_e *MilvusServiceServer_Expecter) DescribeSegmentIndexData(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_DescribeSegmentIndexData_Call {
  1330  	return &MilvusServiceServer_DescribeSegmentIndexData_Call{Call: _e.mock.On("DescribeSegmentIndexData", _a0, _a1)}
  1331  }
  1332  
  1333  func (_c *MilvusServiceServer_DescribeSegmentIndexData_Call) Run(run func(_a0 context.Context, _a1 *federpb.DescribeSegmentIndexDataRequest)) *MilvusServiceServer_DescribeSegmentIndexData_Call {
  1334  	_c.Call.Run(func(args mock.Arguments) {
  1335  		run(args[0].(context.Context), args[1].(*federpb.DescribeSegmentIndexDataRequest))
  1336  	})
  1337  	return _c
  1338  }
  1339  
  1340  func (_c *MilvusServiceServer_DescribeSegmentIndexData_Call) Return(_a0 *federpb.DescribeSegmentIndexDataResponse, _a1 error) *MilvusServiceServer_DescribeSegmentIndexData_Call {
  1341  	_c.Call.Return(_a0, _a1)
  1342  	return _c
  1343  }
  1344  
  1345  func (_c *MilvusServiceServer_DescribeSegmentIndexData_Call) RunAndReturn(run func(context.Context, *federpb.DescribeSegmentIndexDataRequest) (*federpb.DescribeSegmentIndexDataResponse, error)) *MilvusServiceServer_DescribeSegmentIndexData_Call {
  1346  	_c.Call.Return(run)
  1347  	return _c
  1348  }
  1349  
  1350  // DropAlias provides a mock function with given fields: _a0, _a1
  1351  func (_m *MilvusServiceServer) DropAlias(_a0 context.Context, _a1 *milvuspb.DropAliasRequest) (*commonpb.Status, error) {
  1352  	ret := _m.Called(_a0, _a1)
  1353  
  1354  	var r0 *commonpb.Status
  1355  	var r1 error
  1356  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DropAliasRequest) (*commonpb.Status, error)); ok {
  1357  		return rf(_a0, _a1)
  1358  	}
  1359  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DropAliasRequest) *commonpb.Status); ok {
  1360  		r0 = rf(_a0, _a1)
  1361  	} else {
  1362  		if ret.Get(0) != nil {
  1363  			r0 = ret.Get(0).(*commonpb.Status)
  1364  		}
  1365  	}
  1366  
  1367  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.DropAliasRequest) error); ok {
  1368  		r1 = rf(_a0, _a1)
  1369  	} else {
  1370  		r1 = ret.Error(1)
  1371  	}
  1372  
  1373  	return r0, r1
  1374  }
  1375  
  1376  // MilvusServiceServer_DropAlias_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DropAlias'
  1377  type MilvusServiceServer_DropAlias_Call struct {
  1378  	*mock.Call
  1379  }
  1380  
  1381  // DropAlias is a helper method to define mock.On call
  1382  //   - _a0 context.Context
  1383  //   - _a1 *milvuspb.DropAliasRequest
  1384  func (_e *MilvusServiceServer_Expecter) DropAlias(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_DropAlias_Call {
  1385  	return &MilvusServiceServer_DropAlias_Call{Call: _e.mock.On("DropAlias", _a0, _a1)}
  1386  }
  1387  
  1388  func (_c *MilvusServiceServer_DropAlias_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.DropAliasRequest)) *MilvusServiceServer_DropAlias_Call {
  1389  	_c.Call.Run(func(args mock.Arguments) {
  1390  		run(args[0].(context.Context), args[1].(*milvuspb.DropAliasRequest))
  1391  	})
  1392  	return _c
  1393  }
  1394  
  1395  func (_c *MilvusServiceServer_DropAlias_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_DropAlias_Call {
  1396  	_c.Call.Return(_a0, _a1)
  1397  	return _c
  1398  }
  1399  
  1400  func (_c *MilvusServiceServer_DropAlias_Call) RunAndReturn(run func(context.Context, *milvuspb.DropAliasRequest) (*commonpb.Status, error)) *MilvusServiceServer_DropAlias_Call {
  1401  	_c.Call.Return(run)
  1402  	return _c
  1403  }
  1404  
  1405  // DropCollection provides a mock function with given fields: _a0, _a1
  1406  func (_m *MilvusServiceServer) DropCollection(_a0 context.Context, _a1 *milvuspb.DropCollectionRequest) (*commonpb.Status, error) {
  1407  	ret := _m.Called(_a0, _a1)
  1408  
  1409  	var r0 *commonpb.Status
  1410  	var r1 error
  1411  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DropCollectionRequest) (*commonpb.Status, error)); ok {
  1412  		return rf(_a0, _a1)
  1413  	}
  1414  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DropCollectionRequest) *commonpb.Status); ok {
  1415  		r0 = rf(_a0, _a1)
  1416  	} else {
  1417  		if ret.Get(0) != nil {
  1418  			r0 = ret.Get(0).(*commonpb.Status)
  1419  		}
  1420  	}
  1421  
  1422  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.DropCollectionRequest) error); ok {
  1423  		r1 = rf(_a0, _a1)
  1424  	} else {
  1425  		r1 = ret.Error(1)
  1426  	}
  1427  
  1428  	return r0, r1
  1429  }
  1430  
  1431  // MilvusServiceServer_DropCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DropCollection'
  1432  type MilvusServiceServer_DropCollection_Call struct {
  1433  	*mock.Call
  1434  }
  1435  
  1436  // DropCollection is a helper method to define mock.On call
  1437  //   - _a0 context.Context
  1438  //   - _a1 *milvuspb.DropCollectionRequest
  1439  func (_e *MilvusServiceServer_Expecter) DropCollection(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_DropCollection_Call {
  1440  	return &MilvusServiceServer_DropCollection_Call{Call: _e.mock.On("DropCollection", _a0, _a1)}
  1441  }
  1442  
  1443  func (_c *MilvusServiceServer_DropCollection_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.DropCollectionRequest)) *MilvusServiceServer_DropCollection_Call {
  1444  	_c.Call.Run(func(args mock.Arguments) {
  1445  		run(args[0].(context.Context), args[1].(*milvuspb.DropCollectionRequest))
  1446  	})
  1447  	return _c
  1448  }
  1449  
  1450  func (_c *MilvusServiceServer_DropCollection_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_DropCollection_Call {
  1451  	_c.Call.Return(_a0, _a1)
  1452  	return _c
  1453  }
  1454  
  1455  func (_c *MilvusServiceServer_DropCollection_Call) RunAndReturn(run func(context.Context, *milvuspb.DropCollectionRequest) (*commonpb.Status, error)) *MilvusServiceServer_DropCollection_Call {
  1456  	_c.Call.Return(run)
  1457  	return _c
  1458  }
  1459  
  1460  // DropDatabase provides a mock function with given fields: _a0, _a1
  1461  func (_m *MilvusServiceServer) DropDatabase(_a0 context.Context, _a1 *milvuspb.DropDatabaseRequest) (*commonpb.Status, error) {
  1462  	ret := _m.Called(_a0, _a1)
  1463  
  1464  	var r0 *commonpb.Status
  1465  	var r1 error
  1466  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DropDatabaseRequest) (*commonpb.Status, error)); ok {
  1467  		return rf(_a0, _a1)
  1468  	}
  1469  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DropDatabaseRequest) *commonpb.Status); ok {
  1470  		r0 = rf(_a0, _a1)
  1471  	} else {
  1472  		if ret.Get(0) != nil {
  1473  			r0 = ret.Get(0).(*commonpb.Status)
  1474  		}
  1475  	}
  1476  
  1477  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.DropDatabaseRequest) error); ok {
  1478  		r1 = rf(_a0, _a1)
  1479  	} else {
  1480  		r1 = ret.Error(1)
  1481  	}
  1482  
  1483  	return r0, r1
  1484  }
  1485  
  1486  // MilvusServiceServer_DropDatabase_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DropDatabase'
  1487  type MilvusServiceServer_DropDatabase_Call struct {
  1488  	*mock.Call
  1489  }
  1490  
  1491  // DropDatabase is a helper method to define mock.On call
  1492  //   - _a0 context.Context
  1493  //   - _a1 *milvuspb.DropDatabaseRequest
  1494  func (_e *MilvusServiceServer_Expecter) DropDatabase(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_DropDatabase_Call {
  1495  	return &MilvusServiceServer_DropDatabase_Call{Call: _e.mock.On("DropDatabase", _a0, _a1)}
  1496  }
  1497  
  1498  func (_c *MilvusServiceServer_DropDatabase_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.DropDatabaseRequest)) *MilvusServiceServer_DropDatabase_Call {
  1499  	_c.Call.Run(func(args mock.Arguments) {
  1500  		run(args[0].(context.Context), args[1].(*milvuspb.DropDatabaseRequest))
  1501  	})
  1502  	return _c
  1503  }
  1504  
  1505  func (_c *MilvusServiceServer_DropDatabase_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_DropDatabase_Call {
  1506  	_c.Call.Return(_a0, _a1)
  1507  	return _c
  1508  }
  1509  
  1510  func (_c *MilvusServiceServer_DropDatabase_Call) RunAndReturn(run func(context.Context, *milvuspb.DropDatabaseRequest) (*commonpb.Status, error)) *MilvusServiceServer_DropDatabase_Call {
  1511  	_c.Call.Return(run)
  1512  	return _c
  1513  }
  1514  
  1515  // DropIndex provides a mock function with given fields: _a0, _a1
  1516  func (_m *MilvusServiceServer) DropIndex(_a0 context.Context, _a1 *milvuspb.DropIndexRequest) (*commonpb.Status, error) {
  1517  	ret := _m.Called(_a0, _a1)
  1518  
  1519  	var r0 *commonpb.Status
  1520  	var r1 error
  1521  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DropIndexRequest) (*commonpb.Status, error)); ok {
  1522  		return rf(_a0, _a1)
  1523  	}
  1524  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DropIndexRequest) *commonpb.Status); ok {
  1525  		r0 = rf(_a0, _a1)
  1526  	} else {
  1527  		if ret.Get(0) != nil {
  1528  			r0 = ret.Get(0).(*commonpb.Status)
  1529  		}
  1530  	}
  1531  
  1532  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.DropIndexRequest) error); ok {
  1533  		r1 = rf(_a0, _a1)
  1534  	} else {
  1535  		r1 = ret.Error(1)
  1536  	}
  1537  
  1538  	return r0, r1
  1539  }
  1540  
  1541  // MilvusServiceServer_DropIndex_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DropIndex'
  1542  type MilvusServiceServer_DropIndex_Call struct {
  1543  	*mock.Call
  1544  }
  1545  
  1546  // DropIndex is a helper method to define mock.On call
  1547  //   - _a0 context.Context
  1548  //   - _a1 *milvuspb.DropIndexRequest
  1549  func (_e *MilvusServiceServer_Expecter) DropIndex(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_DropIndex_Call {
  1550  	return &MilvusServiceServer_DropIndex_Call{Call: _e.mock.On("DropIndex", _a0, _a1)}
  1551  }
  1552  
  1553  func (_c *MilvusServiceServer_DropIndex_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.DropIndexRequest)) *MilvusServiceServer_DropIndex_Call {
  1554  	_c.Call.Run(func(args mock.Arguments) {
  1555  		run(args[0].(context.Context), args[1].(*milvuspb.DropIndexRequest))
  1556  	})
  1557  	return _c
  1558  }
  1559  
  1560  func (_c *MilvusServiceServer_DropIndex_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_DropIndex_Call {
  1561  	_c.Call.Return(_a0, _a1)
  1562  	return _c
  1563  }
  1564  
  1565  func (_c *MilvusServiceServer_DropIndex_Call) RunAndReturn(run func(context.Context, *milvuspb.DropIndexRequest) (*commonpb.Status, error)) *MilvusServiceServer_DropIndex_Call {
  1566  	_c.Call.Return(run)
  1567  	return _c
  1568  }
  1569  
  1570  // DropPartition provides a mock function with given fields: _a0, _a1
  1571  func (_m *MilvusServiceServer) DropPartition(_a0 context.Context, _a1 *milvuspb.DropPartitionRequest) (*commonpb.Status, error) {
  1572  	ret := _m.Called(_a0, _a1)
  1573  
  1574  	var r0 *commonpb.Status
  1575  	var r1 error
  1576  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DropPartitionRequest) (*commonpb.Status, error)); ok {
  1577  		return rf(_a0, _a1)
  1578  	}
  1579  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DropPartitionRequest) *commonpb.Status); ok {
  1580  		r0 = rf(_a0, _a1)
  1581  	} else {
  1582  		if ret.Get(0) != nil {
  1583  			r0 = ret.Get(0).(*commonpb.Status)
  1584  		}
  1585  	}
  1586  
  1587  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.DropPartitionRequest) error); ok {
  1588  		r1 = rf(_a0, _a1)
  1589  	} else {
  1590  		r1 = ret.Error(1)
  1591  	}
  1592  
  1593  	return r0, r1
  1594  }
  1595  
  1596  // MilvusServiceServer_DropPartition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DropPartition'
  1597  type MilvusServiceServer_DropPartition_Call struct {
  1598  	*mock.Call
  1599  }
  1600  
  1601  // DropPartition is a helper method to define mock.On call
  1602  //   - _a0 context.Context
  1603  //   - _a1 *milvuspb.DropPartitionRequest
  1604  func (_e *MilvusServiceServer_Expecter) DropPartition(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_DropPartition_Call {
  1605  	return &MilvusServiceServer_DropPartition_Call{Call: _e.mock.On("DropPartition", _a0, _a1)}
  1606  }
  1607  
  1608  func (_c *MilvusServiceServer_DropPartition_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.DropPartitionRequest)) *MilvusServiceServer_DropPartition_Call {
  1609  	_c.Call.Run(func(args mock.Arguments) {
  1610  		run(args[0].(context.Context), args[1].(*milvuspb.DropPartitionRequest))
  1611  	})
  1612  	return _c
  1613  }
  1614  
  1615  func (_c *MilvusServiceServer_DropPartition_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_DropPartition_Call {
  1616  	_c.Call.Return(_a0, _a1)
  1617  	return _c
  1618  }
  1619  
  1620  func (_c *MilvusServiceServer_DropPartition_Call) RunAndReturn(run func(context.Context, *milvuspb.DropPartitionRequest) (*commonpb.Status, error)) *MilvusServiceServer_DropPartition_Call {
  1621  	_c.Call.Return(run)
  1622  	return _c
  1623  }
  1624  
  1625  // DropResourceGroup provides a mock function with given fields: _a0, _a1
  1626  func (_m *MilvusServiceServer) DropResourceGroup(_a0 context.Context, _a1 *milvuspb.DropResourceGroupRequest) (*commonpb.Status, error) {
  1627  	ret := _m.Called(_a0, _a1)
  1628  
  1629  	var r0 *commonpb.Status
  1630  	var r1 error
  1631  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DropResourceGroupRequest) (*commonpb.Status, error)); ok {
  1632  		return rf(_a0, _a1)
  1633  	}
  1634  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DropResourceGroupRequest) *commonpb.Status); ok {
  1635  		r0 = rf(_a0, _a1)
  1636  	} else {
  1637  		if ret.Get(0) != nil {
  1638  			r0 = ret.Get(0).(*commonpb.Status)
  1639  		}
  1640  	}
  1641  
  1642  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.DropResourceGroupRequest) error); ok {
  1643  		r1 = rf(_a0, _a1)
  1644  	} else {
  1645  		r1 = ret.Error(1)
  1646  	}
  1647  
  1648  	return r0, r1
  1649  }
  1650  
  1651  // MilvusServiceServer_DropResourceGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DropResourceGroup'
  1652  type MilvusServiceServer_DropResourceGroup_Call struct {
  1653  	*mock.Call
  1654  }
  1655  
  1656  // DropResourceGroup is a helper method to define mock.On call
  1657  //   - _a0 context.Context
  1658  //   - _a1 *milvuspb.DropResourceGroupRequest
  1659  func (_e *MilvusServiceServer_Expecter) DropResourceGroup(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_DropResourceGroup_Call {
  1660  	return &MilvusServiceServer_DropResourceGroup_Call{Call: _e.mock.On("DropResourceGroup", _a0, _a1)}
  1661  }
  1662  
  1663  func (_c *MilvusServiceServer_DropResourceGroup_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.DropResourceGroupRequest)) *MilvusServiceServer_DropResourceGroup_Call {
  1664  	_c.Call.Run(func(args mock.Arguments) {
  1665  		run(args[0].(context.Context), args[1].(*milvuspb.DropResourceGroupRequest))
  1666  	})
  1667  	return _c
  1668  }
  1669  
  1670  func (_c *MilvusServiceServer_DropResourceGroup_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_DropResourceGroup_Call {
  1671  	_c.Call.Return(_a0, _a1)
  1672  	return _c
  1673  }
  1674  
  1675  func (_c *MilvusServiceServer_DropResourceGroup_Call) RunAndReturn(run func(context.Context, *milvuspb.DropResourceGroupRequest) (*commonpb.Status, error)) *MilvusServiceServer_DropResourceGroup_Call {
  1676  	_c.Call.Return(run)
  1677  	return _c
  1678  }
  1679  
  1680  // DropRole provides a mock function with given fields: _a0, _a1
  1681  func (_m *MilvusServiceServer) DropRole(_a0 context.Context, _a1 *milvuspb.DropRoleRequest) (*commonpb.Status, error) {
  1682  	ret := _m.Called(_a0, _a1)
  1683  
  1684  	var r0 *commonpb.Status
  1685  	var r1 error
  1686  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DropRoleRequest) (*commonpb.Status, error)); ok {
  1687  		return rf(_a0, _a1)
  1688  	}
  1689  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DropRoleRequest) *commonpb.Status); ok {
  1690  		r0 = rf(_a0, _a1)
  1691  	} else {
  1692  		if ret.Get(0) != nil {
  1693  			r0 = ret.Get(0).(*commonpb.Status)
  1694  		}
  1695  	}
  1696  
  1697  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.DropRoleRequest) error); ok {
  1698  		r1 = rf(_a0, _a1)
  1699  	} else {
  1700  		r1 = ret.Error(1)
  1701  	}
  1702  
  1703  	return r0, r1
  1704  }
  1705  
  1706  // MilvusServiceServer_DropRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DropRole'
  1707  type MilvusServiceServer_DropRole_Call struct {
  1708  	*mock.Call
  1709  }
  1710  
  1711  // DropRole is a helper method to define mock.On call
  1712  //   - _a0 context.Context
  1713  //   - _a1 *milvuspb.DropRoleRequest
  1714  func (_e *MilvusServiceServer_Expecter) DropRole(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_DropRole_Call {
  1715  	return &MilvusServiceServer_DropRole_Call{Call: _e.mock.On("DropRole", _a0, _a1)}
  1716  }
  1717  
  1718  func (_c *MilvusServiceServer_DropRole_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.DropRoleRequest)) *MilvusServiceServer_DropRole_Call {
  1719  	_c.Call.Run(func(args mock.Arguments) {
  1720  		run(args[0].(context.Context), args[1].(*milvuspb.DropRoleRequest))
  1721  	})
  1722  	return _c
  1723  }
  1724  
  1725  func (_c *MilvusServiceServer_DropRole_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_DropRole_Call {
  1726  	_c.Call.Return(_a0, _a1)
  1727  	return _c
  1728  }
  1729  
  1730  func (_c *MilvusServiceServer_DropRole_Call) RunAndReturn(run func(context.Context, *milvuspb.DropRoleRequest) (*commonpb.Status, error)) *MilvusServiceServer_DropRole_Call {
  1731  	_c.Call.Return(run)
  1732  	return _c
  1733  }
  1734  
  1735  // Dummy provides a mock function with given fields: _a0, _a1
  1736  func (_m *MilvusServiceServer) Dummy(_a0 context.Context, _a1 *milvuspb.DummyRequest) (*milvuspb.DummyResponse, error) {
  1737  	ret := _m.Called(_a0, _a1)
  1738  
  1739  	var r0 *milvuspb.DummyResponse
  1740  	var r1 error
  1741  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DummyRequest) (*milvuspb.DummyResponse, error)); ok {
  1742  		return rf(_a0, _a1)
  1743  	}
  1744  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.DummyRequest) *milvuspb.DummyResponse); ok {
  1745  		r0 = rf(_a0, _a1)
  1746  	} else {
  1747  		if ret.Get(0) != nil {
  1748  			r0 = ret.Get(0).(*milvuspb.DummyResponse)
  1749  		}
  1750  	}
  1751  
  1752  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.DummyRequest) error); ok {
  1753  		r1 = rf(_a0, _a1)
  1754  	} else {
  1755  		r1 = ret.Error(1)
  1756  	}
  1757  
  1758  	return r0, r1
  1759  }
  1760  
  1761  // MilvusServiceServer_Dummy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Dummy'
  1762  type MilvusServiceServer_Dummy_Call struct {
  1763  	*mock.Call
  1764  }
  1765  
  1766  // Dummy is a helper method to define mock.On call
  1767  //   - _a0 context.Context
  1768  //   - _a1 *milvuspb.DummyRequest
  1769  func (_e *MilvusServiceServer_Expecter) Dummy(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_Dummy_Call {
  1770  	return &MilvusServiceServer_Dummy_Call{Call: _e.mock.On("Dummy", _a0, _a1)}
  1771  }
  1772  
  1773  func (_c *MilvusServiceServer_Dummy_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.DummyRequest)) *MilvusServiceServer_Dummy_Call {
  1774  	_c.Call.Run(func(args mock.Arguments) {
  1775  		run(args[0].(context.Context), args[1].(*milvuspb.DummyRequest))
  1776  	})
  1777  	return _c
  1778  }
  1779  
  1780  func (_c *MilvusServiceServer_Dummy_Call) Return(_a0 *milvuspb.DummyResponse, _a1 error) *MilvusServiceServer_Dummy_Call {
  1781  	_c.Call.Return(_a0, _a1)
  1782  	return _c
  1783  }
  1784  
  1785  func (_c *MilvusServiceServer_Dummy_Call) RunAndReturn(run func(context.Context, *milvuspb.DummyRequest) (*milvuspb.DummyResponse, error)) *MilvusServiceServer_Dummy_Call {
  1786  	_c.Call.Return(run)
  1787  	return _c
  1788  }
  1789  
  1790  // Flush provides a mock function with given fields: _a0, _a1
  1791  func (_m *MilvusServiceServer) Flush(_a0 context.Context, _a1 *milvuspb.FlushRequest) (*milvuspb.FlushResponse, error) {
  1792  	ret := _m.Called(_a0, _a1)
  1793  
  1794  	var r0 *milvuspb.FlushResponse
  1795  	var r1 error
  1796  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.FlushRequest) (*milvuspb.FlushResponse, error)); ok {
  1797  		return rf(_a0, _a1)
  1798  	}
  1799  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.FlushRequest) *milvuspb.FlushResponse); ok {
  1800  		r0 = rf(_a0, _a1)
  1801  	} else {
  1802  		if ret.Get(0) != nil {
  1803  			r0 = ret.Get(0).(*milvuspb.FlushResponse)
  1804  		}
  1805  	}
  1806  
  1807  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.FlushRequest) error); ok {
  1808  		r1 = rf(_a0, _a1)
  1809  	} else {
  1810  		r1 = ret.Error(1)
  1811  	}
  1812  
  1813  	return r0, r1
  1814  }
  1815  
  1816  // MilvusServiceServer_Flush_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Flush'
  1817  type MilvusServiceServer_Flush_Call struct {
  1818  	*mock.Call
  1819  }
  1820  
  1821  // Flush is a helper method to define mock.On call
  1822  //   - _a0 context.Context
  1823  //   - _a1 *milvuspb.FlushRequest
  1824  func (_e *MilvusServiceServer_Expecter) Flush(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_Flush_Call {
  1825  	return &MilvusServiceServer_Flush_Call{Call: _e.mock.On("Flush", _a0, _a1)}
  1826  }
  1827  
  1828  func (_c *MilvusServiceServer_Flush_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.FlushRequest)) *MilvusServiceServer_Flush_Call {
  1829  	_c.Call.Run(func(args mock.Arguments) {
  1830  		run(args[0].(context.Context), args[1].(*milvuspb.FlushRequest))
  1831  	})
  1832  	return _c
  1833  }
  1834  
  1835  func (_c *MilvusServiceServer_Flush_Call) Return(_a0 *milvuspb.FlushResponse, _a1 error) *MilvusServiceServer_Flush_Call {
  1836  	_c.Call.Return(_a0, _a1)
  1837  	return _c
  1838  }
  1839  
  1840  func (_c *MilvusServiceServer_Flush_Call) RunAndReturn(run func(context.Context, *milvuspb.FlushRequest) (*milvuspb.FlushResponse, error)) *MilvusServiceServer_Flush_Call {
  1841  	_c.Call.Return(run)
  1842  	return _c
  1843  }
  1844  
  1845  // FlushAll provides a mock function with given fields: _a0, _a1
  1846  func (_m *MilvusServiceServer) FlushAll(_a0 context.Context, _a1 *milvuspb.FlushAllRequest) (*milvuspb.FlushAllResponse, error) {
  1847  	ret := _m.Called(_a0, _a1)
  1848  
  1849  	var r0 *milvuspb.FlushAllResponse
  1850  	var r1 error
  1851  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.FlushAllRequest) (*milvuspb.FlushAllResponse, error)); ok {
  1852  		return rf(_a0, _a1)
  1853  	}
  1854  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.FlushAllRequest) *milvuspb.FlushAllResponse); ok {
  1855  		r0 = rf(_a0, _a1)
  1856  	} else {
  1857  		if ret.Get(0) != nil {
  1858  			r0 = ret.Get(0).(*milvuspb.FlushAllResponse)
  1859  		}
  1860  	}
  1861  
  1862  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.FlushAllRequest) error); ok {
  1863  		r1 = rf(_a0, _a1)
  1864  	} else {
  1865  		r1 = ret.Error(1)
  1866  	}
  1867  
  1868  	return r0, r1
  1869  }
  1870  
  1871  // MilvusServiceServer_FlushAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FlushAll'
  1872  type MilvusServiceServer_FlushAll_Call struct {
  1873  	*mock.Call
  1874  }
  1875  
  1876  // FlushAll is a helper method to define mock.On call
  1877  //   - _a0 context.Context
  1878  //   - _a1 *milvuspb.FlushAllRequest
  1879  func (_e *MilvusServiceServer_Expecter) FlushAll(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_FlushAll_Call {
  1880  	return &MilvusServiceServer_FlushAll_Call{Call: _e.mock.On("FlushAll", _a0, _a1)}
  1881  }
  1882  
  1883  func (_c *MilvusServiceServer_FlushAll_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.FlushAllRequest)) *MilvusServiceServer_FlushAll_Call {
  1884  	_c.Call.Run(func(args mock.Arguments) {
  1885  		run(args[0].(context.Context), args[1].(*milvuspb.FlushAllRequest))
  1886  	})
  1887  	return _c
  1888  }
  1889  
  1890  func (_c *MilvusServiceServer_FlushAll_Call) Return(_a0 *milvuspb.FlushAllResponse, _a1 error) *MilvusServiceServer_FlushAll_Call {
  1891  	_c.Call.Return(_a0, _a1)
  1892  	return _c
  1893  }
  1894  
  1895  func (_c *MilvusServiceServer_FlushAll_Call) RunAndReturn(run func(context.Context, *milvuspb.FlushAllRequest) (*milvuspb.FlushAllResponse, error)) *MilvusServiceServer_FlushAll_Call {
  1896  	_c.Call.Return(run)
  1897  	return _c
  1898  }
  1899  
  1900  // GetCollectionStatistics provides a mock function with given fields: _a0, _a1
  1901  func (_m *MilvusServiceServer) GetCollectionStatistics(_a0 context.Context, _a1 *milvuspb.GetCollectionStatisticsRequest) (*milvuspb.GetCollectionStatisticsResponse, error) {
  1902  	ret := _m.Called(_a0, _a1)
  1903  
  1904  	var r0 *milvuspb.GetCollectionStatisticsResponse
  1905  	var r1 error
  1906  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetCollectionStatisticsRequest) (*milvuspb.GetCollectionStatisticsResponse, error)); ok {
  1907  		return rf(_a0, _a1)
  1908  	}
  1909  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetCollectionStatisticsRequest) *milvuspb.GetCollectionStatisticsResponse); ok {
  1910  		r0 = rf(_a0, _a1)
  1911  	} else {
  1912  		if ret.Get(0) != nil {
  1913  			r0 = ret.Get(0).(*milvuspb.GetCollectionStatisticsResponse)
  1914  		}
  1915  	}
  1916  
  1917  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.GetCollectionStatisticsRequest) error); ok {
  1918  		r1 = rf(_a0, _a1)
  1919  	} else {
  1920  		r1 = ret.Error(1)
  1921  	}
  1922  
  1923  	return r0, r1
  1924  }
  1925  
  1926  // MilvusServiceServer_GetCollectionStatistics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCollectionStatistics'
  1927  type MilvusServiceServer_GetCollectionStatistics_Call struct {
  1928  	*mock.Call
  1929  }
  1930  
  1931  // GetCollectionStatistics is a helper method to define mock.On call
  1932  //   - _a0 context.Context
  1933  //   - _a1 *milvuspb.GetCollectionStatisticsRequest
  1934  func (_e *MilvusServiceServer_Expecter) GetCollectionStatistics(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_GetCollectionStatistics_Call {
  1935  	return &MilvusServiceServer_GetCollectionStatistics_Call{Call: _e.mock.On("GetCollectionStatistics", _a0, _a1)}
  1936  }
  1937  
  1938  func (_c *MilvusServiceServer_GetCollectionStatistics_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.GetCollectionStatisticsRequest)) *MilvusServiceServer_GetCollectionStatistics_Call {
  1939  	_c.Call.Run(func(args mock.Arguments) {
  1940  		run(args[0].(context.Context), args[1].(*milvuspb.GetCollectionStatisticsRequest))
  1941  	})
  1942  	return _c
  1943  }
  1944  
  1945  func (_c *MilvusServiceServer_GetCollectionStatistics_Call) Return(_a0 *milvuspb.GetCollectionStatisticsResponse, _a1 error) *MilvusServiceServer_GetCollectionStatistics_Call {
  1946  	_c.Call.Return(_a0, _a1)
  1947  	return _c
  1948  }
  1949  
  1950  func (_c *MilvusServiceServer_GetCollectionStatistics_Call) RunAndReturn(run func(context.Context, *milvuspb.GetCollectionStatisticsRequest) (*milvuspb.GetCollectionStatisticsResponse, error)) *MilvusServiceServer_GetCollectionStatistics_Call {
  1951  	_c.Call.Return(run)
  1952  	return _c
  1953  }
  1954  
  1955  // GetCompactionState provides a mock function with given fields: _a0, _a1
  1956  func (_m *MilvusServiceServer) GetCompactionState(_a0 context.Context, _a1 *milvuspb.GetCompactionStateRequest) (*milvuspb.GetCompactionStateResponse, error) {
  1957  	ret := _m.Called(_a0, _a1)
  1958  
  1959  	var r0 *milvuspb.GetCompactionStateResponse
  1960  	var r1 error
  1961  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetCompactionStateRequest) (*milvuspb.GetCompactionStateResponse, error)); ok {
  1962  		return rf(_a0, _a1)
  1963  	}
  1964  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetCompactionStateRequest) *milvuspb.GetCompactionStateResponse); ok {
  1965  		r0 = rf(_a0, _a1)
  1966  	} else {
  1967  		if ret.Get(0) != nil {
  1968  			r0 = ret.Get(0).(*milvuspb.GetCompactionStateResponse)
  1969  		}
  1970  	}
  1971  
  1972  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.GetCompactionStateRequest) error); ok {
  1973  		r1 = rf(_a0, _a1)
  1974  	} else {
  1975  		r1 = ret.Error(1)
  1976  	}
  1977  
  1978  	return r0, r1
  1979  }
  1980  
  1981  // MilvusServiceServer_GetCompactionState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCompactionState'
  1982  type MilvusServiceServer_GetCompactionState_Call struct {
  1983  	*mock.Call
  1984  }
  1985  
  1986  // GetCompactionState is a helper method to define mock.On call
  1987  //   - _a0 context.Context
  1988  //   - _a1 *milvuspb.GetCompactionStateRequest
  1989  func (_e *MilvusServiceServer_Expecter) GetCompactionState(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_GetCompactionState_Call {
  1990  	return &MilvusServiceServer_GetCompactionState_Call{Call: _e.mock.On("GetCompactionState", _a0, _a1)}
  1991  }
  1992  
  1993  func (_c *MilvusServiceServer_GetCompactionState_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.GetCompactionStateRequest)) *MilvusServiceServer_GetCompactionState_Call {
  1994  	_c.Call.Run(func(args mock.Arguments) {
  1995  		run(args[0].(context.Context), args[1].(*milvuspb.GetCompactionStateRequest))
  1996  	})
  1997  	return _c
  1998  }
  1999  
  2000  func (_c *MilvusServiceServer_GetCompactionState_Call) Return(_a0 *milvuspb.GetCompactionStateResponse, _a1 error) *MilvusServiceServer_GetCompactionState_Call {
  2001  	_c.Call.Return(_a0, _a1)
  2002  	return _c
  2003  }
  2004  
  2005  func (_c *MilvusServiceServer_GetCompactionState_Call) RunAndReturn(run func(context.Context, *milvuspb.GetCompactionStateRequest) (*milvuspb.GetCompactionStateResponse, error)) *MilvusServiceServer_GetCompactionState_Call {
  2006  	_c.Call.Return(run)
  2007  	return _c
  2008  }
  2009  
  2010  // GetCompactionStateWithPlans provides a mock function with given fields: _a0, _a1
  2011  func (_m *MilvusServiceServer) GetCompactionStateWithPlans(_a0 context.Context, _a1 *milvuspb.GetCompactionPlansRequest) (*milvuspb.GetCompactionPlansResponse, error) {
  2012  	ret := _m.Called(_a0, _a1)
  2013  
  2014  	var r0 *milvuspb.GetCompactionPlansResponse
  2015  	var r1 error
  2016  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetCompactionPlansRequest) (*milvuspb.GetCompactionPlansResponse, error)); ok {
  2017  		return rf(_a0, _a1)
  2018  	}
  2019  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetCompactionPlansRequest) *milvuspb.GetCompactionPlansResponse); ok {
  2020  		r0 = rf(_a0, _a1)
  2021  	} else {
  2022  		if ret.Get(0) != nil {
  2023  			r0 = ret.Get(0).(*milvuspb.GetCompactionPlansResponse)
  2024  		}
  2025  	}
  2026  
  2027  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.GetCompactionPlansRequest) error); ok {
  2028  		r1 = rf(_a0, _a1)
  2029  	} else {
  2030  		r1 = ret.Error(1)
  2031  	}
  2032  
  2033  	return r0, r1
  2034  }
  2035  
  2036  // MilvusServiceServer_GetCompactionStateWithPlans_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCompactionStateWithPlans'
  2037  type MilvusServiceServer_GetCompactionStateWithPlans_Call struct {
  2038  	*mock.Call
  2039  }
  2040  
  2041  // GetCompactionStateWithPlans is a helper method to define mock.On call
  2042  //   - _a0 context.Context
  2043  //   - _a1 *milvuspb.GetCompactionPlansRequest
  2044  func (_e *MilvusServiceServer_Expecter) GetCompactionStateWithPlans(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_GetCompactionStateWithPlans_Call {
  2045  	return &MilvusServiceServer_GetCompactionStateWithPlans_Call{Call: _e.mock.On("GetCompactionStateWithPlans", _a0, _a1)}
  2046  }
  2047  
  2048  func (_c *MilvusServiceServer_GetCompactionStateWithPlans_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.GetCompactionPlansRequest)) *MilvusServiceServer_GetCompactionStateWithPlans_Call {
  2049  	_c.Call.Run(func(args mock.Arguments) {
  2050  		run(args[0].(context.Context), args[1].(*milvuspb.GetCompactionPlansRequest))
  2051  	})
  2052  	return _c
  2053  }
  2054  
  2055  func (_c *MilvusServiceServer_GetCompactionStateWithPlans_Call) Return(_a0 *milvuspb.GetCompactionPlansResponse, _a1 error) *MilvusServiceServer_GetCompactionStateWithPlans_Call {
  2056  	_c.Call.Return(_a0, _a1)
  2057  	return _c
  2058  }
  2059  
  2060  func (_c *MilvusServiceServer_GetCompactionStateWithPlans_Call) RunAndReturn(run func(context.Context, *milvuspb.GetCompactionPlansRequest) (*milvuspb.GetCompactionPlansResponse, error)) *MilvusServiceServer_GetCompactionStateWithPlans_Call {
  2061  	_c.Call.Return(run)
  2062  	return _c
  2063  }
  2064  
  2065  // GetComponentStates provides a mock function with given fields: _a0, _a1
  2066  func (_m *MilvusServiceServer) GetComponentStates(_a0 context.Context, _a1 *milvuspb.GetComponentStatesRequest) (*milvuspb.ComponentStates, error) {
  2067  	ret := _m.Called(_a0, _a1)
  2068  
  2069  	var r0 *milvuspb.ComponentStates
  2070  	var r1 error
  2071  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetComponentStatesRequest) (*milvuspb.ComponentStates, error)); ok {
  2072  		return rf(_a0, _a1)
  2073  	}
  2074  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetComponentStatesRequest) *milvuspb.ComponentStates); ok {
  2075  		r0 = rf(_a0, _a1)
  2076  	} else {
  2077  		if ret.Get(0) != nil {
  2078  			r0 = ret.Get(0).(*milvuspb.ComponentStates)
  2079  		}
  2080  	}
  2081  
  2082  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.GetComponentStatesRequest) error); ok {
  2083  		r1 = rf(_a0, _a1)
  2084  	} else {
  2085  		r1 = ret.Error(1)
  2086  	}
  2087  
  2088  	return r0, r1
  2089  }
  2090  
  2091  // MilvusServiceServer_GetComponentStates_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetComponentStates'
  2092  type MilvusServiceServer_GetComponentStates_Call struct {
  2093  	*mock.Call
  2094  }
  2095  
  2096  // GetComponentStates is a helper method to define mock.On call
  2097  //   - _a0 context.Context
  2098  //   - _a1 *milvuspb.GetComponentStatesRequest
  2099  func (_e *MilvusServiceServer_Expecter) GetComponentStates(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_GetComponentStates_Call {
  2100  	return &MilvusServiceServer_GetComponentStates_Call{Call: _e.mock.On("GetComponentStates", _a0, _a1)}
  2101  }
  2102  
  2103  func (_c *MilvusServiceServer_GetComponentStates_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.GetComponentStatesRequest)) *MilvusServiceServer_GetComponentStates_Call {
  2104  	_c.Call.Run(func(args mock.Arguments) {
  2105  		run(args[0].(context.Context), args[1].(*milvuspb.GetComponentStatesRequest))
  2106  	})
  2107  	return _c
  2108  }
  2109  
  2110  func (_c *MilvusServiceServer_GetComponentStates_Call) Return(_a0 *milvuspb.ComponentStates, _a1 error) *MilvusServiceServer_GetComponentStates_Call {
  2111  	_c.Call.Return(_a0, _a1)
  2112  	return _c
  2113  }
  2114  
  2115  func (_c *MilvusServiceServer_GetComponentStates_Call) RunAndReturn(run func(context.Context, *milvuspb.GetComponentStatesRequest) (*milvuspb.ComponentStates, error)) *MilvusServiceServer_GetComponentStates_Call {
  2116  	_c.Call.Return(run)
  2117  	return _c
  2118  }
  2119  
  2120  // GetFlushAllState provides a mock function with given fields: _a0, _a1
  2121  func (_m *MilvusServiceServer) GetFlushAllState(_a0 context.Context, _a1 *milvuspb.GetFlushAllStateRequest) (*milvuspb.GetFlushAllStateResponse, error) {
  2122  	ret := _m.Called(_a0, _a1)
  2123  
  2124  	var r0 *milvuspb.GetFlushAllStateResponse
  2125  	var r1 error
  2126  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetFlushAllStateRequest) (*milvuspb.GetFlushAllStateResponse, error)); ok {
  2127  		return rf(_a0, _a1)
  2128  	}
  2129  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetFlushAllStateRequest) *milvuspb.GetFlushAllStateResponse); ok {
  2130  		r0 = rf(_a0, _a1)
  2131  	} else {
  2132  		if ret.Get(0) != nil {
  2133  			r0 = ret.Get(0).(*milvuspb.GetFlushAllStateResponse)
  2134  		}
  2135  	}
  2136  
  2137  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.GetFlushAllStateRequest) error); ok {
  2138  		r1 = rf(_a0, _a1)
  2139  	} else {
  2140  		r1 = ret.Error(1)
  2141  	}
  2142  
  2143  	return r0, r1
  2144  }
  2145  
  2146  // MilvusServiceServer_GetFlushAllState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFlushAllState'
  2147  type MilvusServiceServer_GetFlushAllState_Call struct {
  2148  	*mock.Call
  2149  }
  2150  
  2151  // GetFlushAllState is a helper method to define mock.On call
  2152  //   - _a0 context.Context
  2153  //   - _a1 *milvuspb.GetFlushAllStateRequest
  2154  func (_e *MilvusServiceServer_Expecter) GetFlushAllState(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_GetFlushAllState_Call {
  2155  	return &MilvusServiceServer_GetFlushAllState_Call{Call: _e.mock.On("GetFlushAllState", _a0, _a1)}
  2156  }
  2157  
  2158  func (_c *MilvusServiceServer_GetFlushAllState_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.GetFlushAllStateRequest)) *MilvusServiceServer_GetFlushAllState_Call {
  2159  	_c.Call.Run(func(args mock.Arguments) {
  2160  		run(args[0].(context.Context), args[1].(*milvuspb.GetFlushAllStateRequest))
  2161  	})
  2162  	return _c
  2163  }
  2164  
  2165  func (_c *MilvusServiceServer_GetFlushAllState_Call) Return(_a0 *milvuspb.GetFlushAllStateResponse, _a1 error) *MilvusServiceServer_GetFlushAllState_Call {
  2166  	_c.Call.Return(_a0, _a1)
  2167  	return _c
  2168  }
  2169  
  2170  func (_c *MilvusServiceServer_GetFlushAllState_Call) RunAndReturn(run func(context.Context, *milvuspb.GetFlushAllStateRequest) (*milvuspb.GetFlushAllStateResponse, error)) *MilvusServiceServer_GetFlushAllState_Call {
  2171  	_c.Call.Return(run)
  2172  	return _c
  2173  }
  2174  
  2175  // GetFlushState provides a mock function with given fields: _a0, _a1
  2176  func (_m *MilvusServiceServer) GetFlushState(_a0 context.Context, _a1 *milvuspb.GetFlushStateRequest) (*milvuspb.GetFlushStateResponse, error) {
  2177  	ret := _m.Called(_a0, _a1)
  2178  
  2179  	var r0 *milvuspb.GetFlushStateResponse
  2180  	var r1 error
  2181  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetFlushStateRequest) (*milvuspb.GetFlushStateResponse, error)); ok {
  2182  		return rf(_a0, _a1)
  2183  	}
  2184  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetFlushStateRequest) *milvuspb.GetFlushStateResponse); ok {
  2185  		r0 = rf(_a0, _a1)
  2186  	} else {
  2187  		if ret.Get(0) != nil {
  2188  			r0 = ret.Get(0).(*milvuspb.GetFlushStateResponse)
  2189  		}
  2190  	}
  2191  
  2192  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.GetFlushStateRequest) error); ok {
  2193  		r1 = rf(_a0, _a1)
  2194  	} else {
  2195  		r1 = ret.Error(1)
  2196  	}
  2197  
  2198  	return r0, r1
  2199  }
  2200  
  2201  // MilvusServiceServer_GetFlushState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFlushState'
  2202  type MilvusServiceServer_GetFlushState_Call struct {
  2203  	*mock.Call
  2204  }
  2205  
  2206  // GetFlushState is a helper method to define mock.On call
  2207  //   - _a0 context.Context
  2208  //   - _a1 *milvuspb.GetFlushStateRequest
  2209  func (_e *MilvusServiceServer_Expecter) GetFlushState(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_GetFlushState_Call {
  2210  	return &MilvusServiceServer_GetFlushState_Call{Call: _e.mock.On("GetFlushState", _a0, _a1)}
  2211  }
  2212  
  2213  func (_c *MilvusServiceServer_GetFlushState_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.GetFlushStateRequest)) *MilvusServiceServer_GetFlushState_Call {
  2214  	_c.Call.Run(func(args mock.Arguments) {
  2215  		run(args[0].(context.Context), args[1].(*milvuspb.GetFlushStateRequest))
  2216  	})
  2217  	return _c
  2218  }
  2219  
  2220  func (_c *MilvusServiceServer_GetFlushState_Call) Return(_a0 *milvuspb.GetFlushStateResponse, _a1 error) *MilvusServiceServer_GetFlushState_Call {
  2221  	_c.Call.Return(_a0, _a1)
  2222  	return _c
  2223  }
  2224  
  2225  func (_c *MilvusServiceServer_GetFlushState_Call) RunAndReturn(run func(context.Context, *milvuspb.GetFlushStateRequest) (*milvuspb.GetFlushStateResponse, error)) *MilvusServiceServer_GetFlushState_Call {
  2226  	_c.Call.Return(run)
  2227  	return _c
  2228  }
  2229  
  2230  // GetImportState provides a mock function with given fields: _a0, _a1
  2231  func (_m *MilvusServiceServer) GetImportState(_a0 context.Context, _a1 *milvuspb.GetImportStateRequest) (*milvuspb.GetImportStateResponse, error) {
  2232  	ret := _m.Called(_a0, _a1)
  2233  
  2234  	var r0 *milvuspb.GetImportStateResponse
  2235  	var r1 error
  2236  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetImportStateRequest) (*milvuspb.GetImportStateResponse, error)); ok {
  2237  		return rf(_a0, _a1)
  2238  	}
  2239  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetImportStateRequest) *milvuspb.GetImportStateResponse); ok {
  2240  		r0 = rf(_a0, _a1)
  2241  	} else {
  2242  		if ret.Get(0) != nil {
  2243  			r0 = ret.Get(0).(*milvuspb.GetImportStateResponse)
  2244  		}
  2245  	}
  2246  
  2247  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.GetImportStateRequest) error); ok {
  2248  		r1 = rf(_a0, _a1)
  2249  	} else {
  2250  		r1 = ret.Error(1)
  2251  	}
  2252  
  2253  	return r0, r1
  2254  }
  2255  
  2256  // MilvusServiceServer_GetImportState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetImportState'
  2257  type MilvusServiceServer_GetImportState_Call struct {
  2258  	*mock.Call
  2259  }
  2260  
  2261  // GetImportState is a helper method to define mock.On call
  2262  //   - _a0 context.Context
  2263  //   - _a1 *milvuspb.GetImportStateRequest
  2264  func (_e *MilvusServiceServer_Expecter) GetImportState(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_GetImportState_Call {
  2265  	return &MilvusServiceServer_GetImportState_Call{Call: _e.mock.On("GetImportState", _a0, _a1)}
  2266  }
  2267  
  2268  func (_c *MilvusServiceServer_GetImportState_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.GetImportStateRequest)) *MilvusServiceServer_GetImportState_Call {
  2269  	_c.Call.Run(func(args mock.Arguments) {
  2270  		run(args[0].(context.Context), args[1].(*milvuspb.GetImportStateRequest))
  2271  	})
  2272  	return _c
  2273  }
  2274  
  2275  func (_c *MilvusServiceServer_GetImportState_Call) Return(_a0 *milvuspb.GetImportStateResponse, _a1 error) *MilvusServiceServer_GetImportState_Call {
  2276  	_c.Call.Return(_a0, _a1)
  2277  	return _c
  2278  }
  2279  
  2280  func (_c *MilvusServiceServer_GetImportState_Call) RunAndReturn(run func(context.Context, *milvuspb.GetImportStateRequest) (*milvuspb.GetImportStateResponse, error)) *MilvusServiceServer_GetImportState_Call {
  2281  	_c.Call.Return(run)
  2282  	return _c
  2283  }
  2284  
  2285  // GetIndexBuildProgress provides a mock function with given fields: _a0, _a1
  2286  func (_m *MilvusServiceServer) GetIndexBuildProgress(_a0 context.Context, _a1 *milvuspb.GetIndexBuildProgressRequest) (*milvuspb.GetIndexBuildProgressResponse, error) {
  2287  	ret := _m.Called(_a0, _a1)
  2288  
  2289  	var r0 *milvuspb.GetIndexBuildProgressResponse
  2290  	var r1 error
  2291  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetIndexBuildProgressRequest) (*milvuspb.GetIndexBuildProgressResponse, error)); ok {
  2292  		return rf(_a0, _a1)
  2293  	}
  2294  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetIndexBuildProgressRequest) *milvuspb.GetIndexBuildProgressResponse); ok {
  2295  		r0 = rf(_a0, _a1)
  2296  	} else {
  2297  		if ret.Get(0) != nil {
  2298  			r0 = ret.Get(0).(*milvuspb.GetIndexBuildProgressResponse)
  2299  		}
  2300  	}
  2301  
  2302  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.GetIndexBuildProgressRequest) error); ok {
  2303  		r1 = rf(_a0, _a1)
  2304  	} else {
  2305  		r1 = ret.Error(1)
  2306  	}
  2307  
  2308  	return r0, r1
  2309  }
  2310  
  2311  // MilvusServiceServer_GetIndexBuildProgress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIndexBuildProgress'
  2312  type MilvusServiceServer_GetIndexBuildProgress_Call struct {
  2313  	*mock.Call
  2314  }
  2315  
  2316  // GetIndexBuildProgress is a helper method to define mock.On call
  2317  //   - _a0 context.Context
  2318  //   - _a1 *milvuspb.GetIndexBuildProgressRequest
  2319  func (_e *MilvusServiceServer_Expecter) GetIndexBuildProgress(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_GetIndexBuildProgress_Call {
  2320  	return &MilvusServiceServer_GetIndexBuildProgress_Call{Call: _e.mock.On("GetIndexBuildProgress", _a0, _a1)}
  2321  }
  2322  
  2323  func (_c *MilvusServiceServer_GetIndexBuildProgress_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.GetIndexBuildProgressRequest)) *MilvusServiceServer_GetIndexBuildProgress_Call {
  2324  	_c.Call.Run(func(args mock.Arguments) {
  2325  		run(args[0].(context.Context), args[1].(*milvuspb.GetIndexBuildProgressRequest))
  2326  	})
  2327  	return _c
  2328  }
  2329  
  2330  func (_c *MilvusServiceServer_GetIndexBuildProgress_Call) Return(_a0 *milvuspb.GetIndexBuildProgressResponse, _a1 error) *MilvusServiceServer_GetIndexBuildProgress_Call {
  2331  	_c.Call.Return(_a0, _a1)
  2332  	return _c
  2333  }
  2334  
  2335  func (_c *MilvusServiceServer_GetIndexBuildProgress_Call) RunAndReturn(run func(context.Context, *milvuspb.GetIndexBuildProgressRequest) (*milvuspb.GetIndexBuildProgressResponse, error)) *MilvusServiceServer_GetIndexBuildProgress_Call {
  2336  	_c.Call.Return(run)
  2337  	return _c
  2338  }
  2339  
  2340  // GetIndexState provides a mock function with given fields: _a0, _a1
  2341  func (_m *MilvusServiceServer) GetIndexState(_a0 context.Context, _a1 *milvuspb.GetIndexStateRequest) (*milvuspb.GetIndexStateResponse, error) {
  2342  	ret := _m.Called(_a0, _a1)
  2343  
  2344  	var r0 *milvuspb.GetIndexStateResponse
  2345  	var r1 error
  2346  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetIndexStateRequest) (*milvuspb.GetIndexStateResponse, error)); ok {
  2347  		return rf(_a0, _a1)
  2348  	}
  2349  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetIndexStateRequest) *milvuspb.GetIndexStateResponse); ok {
  2350  		r0 = rf(_a0, _a1)
  2351  	} else {
  2352  		if ret.Get(0) != nil {
  2353  			r0 = ret.Get(0).(*milvuspb.GetIndexStateResponse)
  2354  		}
  2355  	}
  2356  
  2357  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.GetIndexStateRequest) error); ok {
  2358  		r1 = rf(_a0, _a1)
  2359  	} else {
  2360  		r1 = ret.Error(1)
  2361  	}
  2362  
  2363  	return r0, r1
  2364  }
  2365  
  2366  // MilvusServiceServer_GetIndexState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIndexState'
  2367  type MilvusServiceServer_GetIndexState_Call struct {
  2368  	*mock.Call
  2369  }
  2370  
  2371  // GetIndexState is a helper method to define mock.On call
  2372  //   - _a0 context.Context
  2373  //   - _a1 *milvuspb.GetIndexStateRequest
  2374  func (_e *MilvusServiceServer_Expecter) GetIndexState(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_GetIndexState_Call {
  2375  	return &MilvusServiceServer_GetIndexState_Call{Call: _e.mock.On("GetIndexState", _a0, _a1)}
  2376  }
  2377  
  2378  func (_c *MilvusServiceServer_GetIndexState_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.GetIndexStateRequest)) *MilvusServiceServer_GetIndexState_Call {
  2379  	_c.Call.Run(func(args mock.Arguments) {
  2380  		run(args[0].(context.Context), args[1].(*milvuspb.GetIndexStateRequest))
  2381  	})
  2382  	return _c
  2383  }
  2384  
  2385  func (_c *MilvusServiceServer_GetIndexState_Call) Return(_a0 *milvuspb.GetIndexStateResponse, _a1 error) *MilvusServiceServer_GetIndexState_Call {
  2386  	_c.Call.Return(_a0, _a1)
  2387  	return _c
  2388  }
  2389  
  2390  func (_c *MilvusServiceServer_GetIndexState_Call) RunAndReturn(run func(context.Context, *milvuspb.GetIndexStateRequest) (*milvuspb.GetIndexStateResponse, error)) *MilvusServiceServer_GetIndexState_Call {
  2391  	_c.Call.Return(run)
  2392  	return _c
  2393  }
  2394  
  2395  // GetIndexStatistics provides a mock function with given fields: _a0, _a1
  2396  func (_m *MilvusServiceServer) GetIndexStatistics(_a0 context.Context, _a1 *milvuspb.GetIndexStatisticsRequest) (*milvuspb.GetIndexStatisticsResponse, error) {
  2397  	ret := _m.Called(_a0, _a1)
  2398  
  2399  	var r0 *milvuspb.GetIndexStatisticsResponse
  2400  	var r1 error
  2401  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetIndexStatisticsRequest) (*milvuspb.GetIndexStatisticsResponse, error)); ok {
  2402  		return rf(_a0, _a1)
  2403  	}
  2404  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetIndexStatisticsRequest) *milvuspb.GetIndexStatisticsResponse); ok {
  2405  		r0 = rf(_a0, _a1)
  2406  	} else {
  2407  		if ret.Get(0) != nil {
  2408  			r0 = ret.Get(0).(*milvuspb.GetIndexStatisticsResponse)
  2409  		}
  2410  	}
  2411  
  2412  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.GetIndexStatisticsRequest) error); ok {
  2413  		r1 = rf(_a0, _a1)
  2414  	} else {
  2415  		r1 = ret.Error(1)
  2416  	}
  2417  
  2418  	return r0, r1
  2419  }
  2420  
  2421  // MilvusServiceServer_GetIndexStatistics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIndexStatistics'
  2422  type MilvusServiceServer_GetIndexStatistics_Call struct {
  2423  	*mock.Call
  2424  }
  2425  
  2426  // GetIndexStatistics is a helper method to define mock.On call
  2427  //   - _a0 context.Context
  2428  //   - _a1 *milvuspb.GetIndexStatisticsRequest
  2429  func (_e *MilvusServiceServer_Expecter) GetIndexStatistics(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_GetIndexStatistics_Call {
  2430  	return &MilvusServiceServer_GetIndexStatistics_Call{Call: _e.mock.On("GetIndexStatistics", _a0, _a1)}
  2431  }
  2432  
  2433  func (_c *MilvusServiceServer_GetIndexStatistics_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.GetIndexStatisticsRequest)) *MilvusServiceServer_GetIndexStatistics_Call {
  2434  	_c.Call.Run(func(args mock.Arguments) {
  2435  		run(args[0].(context.Context), args[1].(*milvuspb.GetIndexStatisticsRequest))
  2436  	})
  2437  	return _c
  2438  }
  2439  
  2440  func (_c *MilvusServiceServer_GetIndexStatistics_Call) Return(_a0 *milvuspb.GetIndexStatisticsResponse, _a1 error) *MilvusServiceServer_GetIndexStatistics_Call {
  2441  	_c.Call.Return(_a0, _a1)
  2442  	return _c
  2443  }
  2444  
  2445  func (_c *MilvusServiceServer_GetIndexStatistics_Call) RunAndReturn(run func(context.Context, *milvuspb.GetIndexStatisticsRequest) (*milvuspb.GetIndexStatisticsResponse, error)) *MilvusServiceServer_GetIndexStatistics_Call {
  2446  	_c.Call.Return(run)
  2447  	return _c
  2448  }
  2449  
  2450  // GetLoadState provides a mock function with given fields: _a0, _a1
  2451  func (_m *MilvusServiceServer) GetLoadState(_a0 context.Context, _a1 *milvuspb.GetLoadStateRequest) (*milvuspb.GetLoadStateResponse, error) {
  2452  	ret := _m.Called(_a0, _a1)
  2453  
  2454  	var r0 *milvuspb.GetLoadStateResponse
  2455  	var r1 error
  2456  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetLoadStateRequest) (*milvuspb.GetLoadStateResponse, error)); ok {
  2457  		return rf(_a0, _a1)
  2458  	}
  2459  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetLoadStateRequest) *milvuspb.GetLoadStateResponse); ok {
  2460  		r0 = rf(_a0, _a1)
  2461  	} else {
  2462  		if ret.Get(0) != nil {
  2463  			r0 = ret.Get(0).(*milvuspb.GetLoadStateResponse)
  2464  		}
  2465  	}
  2466  
  2467  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.GetLoadStateRequest) error); ok {
  2468  		r1 = rf(_a0, _a1)
  2469  	} else {
  2470  		r1 = ret.Error(1)
  2471  	}
  2472  
  2473  	return r0, r1
  2474  }
  2475  
  2476  // MilvusServiceServer_GetLoadState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLoadState'
  2477  type MilvusServiceServer_GetLoadState_Call struct {
  2478  	*mock.Call
  2479  }
  2480  
  2481  // GetLoadState is a helper method to define mock.On call
  2482  //   - _a0 context.Context
  2483  //   - _a1 *milvuspb.GetLoadStateRequest
  2484  func (_e *MilvusServiceServer_Expecter) GetLoadState(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_GetLoadState_Call {
  2485  	return &MilvusServiceServer_GetLoadState_Call{Call: _e.mock.On("GetLoadState", _a0, _a1)}
  2486  }
  2487  
  2488  func (_c *MilvusServiceServer_GetLoadState_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.GetLoadStateRequest)) *MilvusServiceServer_GetLoadState_Call {
  2489  	_c.Call.Run(func(args mock.Arguments) {
  2490  		run(args[0].(context.Context), args[1].(*milvuspb.GetLoadStateRequest))
  2491  	})
  2492  	return _c
  2493  }
  2494  
  2495  func (_c *MilvusServiceServer_GetLoadState_Call) Return(_a0 *milvuspb.GetLoadStateResponse, _a1 error) *MilvusServiceServer_GetLoadState_Call {
  2496  	_c.Call.Return(_a0, _a1)
  2497  	return _c
  2498  }
  2499  
  2500  func (_c *MilvusServiceServer_GetLoadState_Call) RunAndReturn(run func(context.Context, *milvuspb.GetLoadStateRequest) (*milvuspb.GetLoadStateResponse, error)) *MilvusServiceServer_GetLoadState_Call {
  2501  	_c.Call.Return(run)
  2502  	return _c
  2503  }
  2504  
  2505  // GetLoadingProgress provides a mock function with given fields: _a0, _a1
  2506  func (_m *MilvusServiceServer) GetLoadingProgress(_a0 context.Context, _a1 *milvuspb.GetLoadingProgressRequest) (*milvuspb.GetLoadingProgressResponse, error) {
  2507  	ret := _m.Called(_a0, _a1)
  2508  
  2509  	var r0 *milvuspb.GetLoadingProgressResponse
  2510  	var r1 error
  2511  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetLoadingProgressRequest) (*milvuspb.GetLoadingProgressResponse, error)); ok {
  2512  		return rf(_a0, _a1)
  2513  	}
  2514  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetLoadingProgressRequest) *milvuspb.GetLoadingProgressResponse); ok {
  2515  		r0 = rf(_a0, _a1)
  2516  	} else {
  2517  		if ret.Get(0) != nil {
  2518  			r0 = ret.Get(0).(*milvuspb.GetLoadingProgressResponse)
  2519  		}
  2520  	}
  2521  
  2522  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.GetLoadingProgressRequest) error); ok {
  2523  		r1 = rf(_a0, _a1)
  2524  	} else {
  2525  		r1 = ret.Error(1)
  2526  	}
  2527  
  2528  	return r0, r1
  2529  }
  2530  
  2531  // MilvusServiceServer_GetLoadingProgress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLoadingProgress'
  2532  type MilvusServiceServer_GetLoadingProgress_Call struct {
  2533  	*mock.Call
  2534  }
  2535  
  2536  // GetLoadingProgress is a helper method to define mock.On call
  2537  //   - _a0 context.Context
  2538  //   - _a1 *milvuspb.GetLoadingProgressRequest
  2539  func (_e *MilvusServiceServer_Expecter) GetLoadingProgress(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_GetLoadingProgress_Call {
  2540  	return &MilvusServiceServer_GetLoadingProgress_Call{Call: _e.mock.On("GetLoadingProgress", _a0, _a1)}
  2541  }
  2542  
  2543  func (_c *MilvusServiceServer_GetLoadingProgress_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.GetLoadingProgressRequest)) *MilvusServiceServer_GetLoadingProgress_Call {
  2544  	_c.Call.Run(func(args mock.Arguments) {
  2545  		run(args[0].(context.Context), args[1].(*milvuspb.GetLoadingProgressRequest))
  2546  	})
  2547  	return _c
  2548  }
  2549  
  2550  func (_c *MilvusServiceServer_GetLoadingProgress_Call) Return(_a0 *milvuspb.GetLoadingProgressResponse, _a1 error) *MilvusServiceServer_GetLoadingProgress_Call {
  2551  	_c.Call.Return(_a0, _a1)
  2552  	return _c
  2553  }
  2554  
  2555  func (_c *MilvusServiceServer_GetLoadingProgress_Call) RunAndReturn(run func(context.Context, *milvuspb.GetLoadingProgressRequest) (*milvuspb.GetLoadingProgressResponse, error)) *MilvusServiceServer_GetLoadingProgress_Call {
  2556  	_c.Call.Return(run)
  2557  	return _c
  2558  }
  2559  
  2560  // GetMetrics provides a mock function with given fields: _a0, _a1
  2561  func (_m *MilvusServiceServer) GetMetrics(_a0 context.Context, _a1 *milvuspb.GetMetricsRequest) (*milvuspb.GetMetricsResponse, error) {
  2562  	ret := _m.Called(_a0, _a1)
  2563  
  2564  	var r0 *milvuspb.GetMetricsResponse
  2565  	var r1 error
  2566  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetMetricsRequest) (*milvuspb.GetMetricsResponse, error)); ok {
  2567  		return rf(_a0, _a1)
  2568  	}
  2569  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetMetricsRequest) *milvuspb.GetMetricsResponse); ok {
  2570  		r0 = rf(_a0, _a1)
  2571  	} else {
  2572  		if ret.Get(0) != nil {
  2573  			r0 = ret.Get(0).(*milvuspb.GetMetricsResponse)
  2574  		}
  2575  	}
  2576  
  2577  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.GetMetricsRequest) error); ok {
  2578  		r1 = rf(_a0, _a1)
  2579  	} else {
  2580  		r1 = ret.Error(1)
  2581  	}
  2582  
  2583  	return r0, r1
  2584  }
  2585  
  2586  // MilvusServiceServer_GetMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMetrics'
  2587  type MilvusServiceServer_GetMetrics_Call struct {
  2588  	*mock.Call
  2589  }
  2590  
  2591  // GetMetrics is a helper method to define mock.On call
  2592  //   - _a0 context.Context
  2593  //   - _a1 *milvuspb.GetMetricsRequest
  2594  func (_e *MilvusServiceServer_Expecter) GetMetrics(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_GetMetrics_Call {
  2595  	return &MilvusServiceServer_GetMetrics_Call{Call: _e.mock.On("GetMetrics", _a0, _a1)}
  2596  }
  2597  
  2598  func (_c *MilvusServiceServer_GetMetrics_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.GetMetricsRequest)) *MilvusServiceServer_GetMetrics_Call {
  2599  	_c.Call.Run(func(args mock.Arguments) {
  2600  		run(args[0].(context.Context), args[1].(*milvuspb.GetMetricsRequest))
  2601  	})
  2602  	return _c
  2603  }
  2604  
  2605  func (_c *MilvusServiceServer_GetMetrics_Call) Return(_a0 *milvuspb.GetMetricsResponse, _a1 error) *MilvusServiceServer_GetMetrics_Call {
  2606  	_c.Call.Return(_a0, _a1)
  2607  	return _c
  2608  }
  2609  
  2610  func (_c *MilvusServiceServer_GetMetrics_Call) RunAndReturn(run func(context.Context, *milvuspb.GetMetricsRequest) (*milvuspb.GetMetricsResponse, error)) *MilvusServiceServer_GetMetrics_Call {
  2611  	_c.Call.Return(run)
  2612  	return _c
  2613  }
  2614  
  2615  // GetPartitionStatistics provides a mock function with given fields: _a0, _a1
  2616  func (_m *MilvusServiceServer) GetPartitionStatistics(_a0 context.Context, _a1 *milvuspb.GetPartitionStatisticsRequest) (*milvuspb.GetPartitionStatisticsResponse, error) {
  2617  	ret := _m.Called(_a0, _a1)
  2618  
  2619  	var r0 *milvuspb.GetPartitionStatisticsResponse
  2620  	var r1 error
  2621  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetPartitionStatisticsRequest) (*milvuspb.GetPartitionStatisticsResponse, error)); ok {
  2622  		return rf(_a0, _a1)
  2623  	}
  2624  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetPartitionStatisticsRequest) *milvuspb.GetPartitionStatisticsResponse); ok {
  2625  		r0 = rf(_a0, _a1)
  2626  	} else {
  2627  		if ret.Get(0) != nil {
  2628  			r0 = ret.Get(0).(*milvuspb.GetPartitionStatisticsResponse)
  2629  		}
  2630  	}
  2631  
  2632  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.GetPartitionStatisticsRequest) error); ok {
  2633  		r1 = rf(_a0, _a1)
  2634  	} else {
  2635  		r1 = ret.Error(1)
  2636  	}
  2637  
  2638  	return r0, r1
  2639  }
  2640  
  2641  // MilvusServiceServer_GetPartitionStatistics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPartitionStatistics'
  2642  type MilvusServiceServer_GetPartitionStatistics_Call struct {
  2643  	*mock.Call
  2644  }
  2645  
  2646  // GetPartitionStatistics is a helper method to define mock.On call
  2647  //   - _a0 context.Context
  2648  //   - _a1 *milvuspb.GetPartitionStatisticsRequest
  2649  func (_e *MilvusServiceServer_Expecter) GetPartitionStatistics(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_GetPartitionStatistics_Call {
  2650  	return &MilvusServiceServer_GetPartitionStatistics_Call{Call: _e.mock.On("GetPartitionStatistics", _a0, _a1)}
  2651  }
  2652  
  2653  func (_c *MilvusServiceServer_GetPartitionStatistics_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.GetPartitionStatisticsRequest)) *MilvusServiceServer_GetPartitionStatistics_Call {
  2654  	_c.Call.Run(func(args mock.Arguments) {
  2655  		run(args[0].(context.Context), args[1].(*milvuspb.GetPartitionStatisticsRequest))
  2656  	})
  2657  	return _c
  2658  }
  2659  
  2660  func (_c *MilvusServiceServer_GetPartitionStatistics_Call) Return(_a0 *milvuspb.GetPartitionStatisticsResponse, _a1 error) *MilvusServiceServer_GetPartitionStatistics_Call {
  2661  	_c.Call.Return(_a0, _a1)
  2662  	return _c
  2663  }
  2664  
  2665  func (_c *MilvusServiceServer_GetPartitionStatistics_Call) RunAndReturn(run func(context.Context, *milvuspb.GetPartitionStatisticsRequest) (*milvuspb.GetPartitionStatisticsResponse, error)) *MilvusServiceServer_GetPartitionStatistics_Call {
  2666  	_c.Call.Return(run)
  2667  	return _c
  2668  }
  2669  
  2670  // GetPersistentSegmentInfo provides a mock function with given fields: _a0, _a1
  2671  func (_m *MilvusServiceServer) GetPersistentSegmentInfo(_a0 context.Context, _a1 *milvuspb.GetPersistentSegmentInfoRequest) (*milvuspb.GetPersistentSegmentInfoResponse, error) {
  2672  	ret := _m.Called(_a0, _a1)
  2673  
  2674  	var r0 *milvuspb.GetPersistentSegmentInfoResponse
  2675  	var r1 error
  2676  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetPersistentSegmentInfoRequest) (*milvuspb.GetPersistentSegmentInfoResponse, error)); ok {
  2677  		return rf(_a0, _a1)
  2678  	}
  2679  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetPersistentSegmentInfoRequest) *milvuspb.GetPersistentSegmentInfoResponse); ok {
  2680  		r0 = rf(_a0, _a1)
  2681  	} else {
  2682  		if ret.Get(0) != nil {
  2683  			r0 = ret.Get(0).(*milvuspb.GetPersistentSegmentInfoResponse)
  2684  		}
  2685  	}
  2686  
  2687  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.GetPersistentSegmentInfoRequest) error); ok {
  2688  		r1 = rf(_a0, _a1)
  2689  	} else {
  2690  		r1 = ret.Error(1)
  2691  	}
  2692  
  2693  	return r0, r1
  2694  }
  2695  
  2696  // MilvusServiceServer_GetPersistentSegmentInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPersistentSegmentInfo'
  2697  type MilvusServiceServer_GetPersistentSegmentInfo_Call struct {
  2698  	*mock.Call
  2699  }
  2700  
  2701  // GetPersistentSegmentInfo is a helper method to define mock.On call
  2702  //   - _a0 context.Context
  2703  //   - _a1 *milvuspb.GetPersistentSegmentInfoRequest
  2704  func (_e *MilvusServiceServer_Expecter) GetPersistentSegmentInfo(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_GetPersistentSegmentInfo_Call {
  2705  	return &MilvusServiceServer_GetPersistentSegmentInfo_Call{Call: _e.mock.On("GetPersistentSegmentInfo", _a0, _a1)}
  2706  }
  2707  
  2708  func (_c *MilvusServiceServer_GetPersistentSegmentInfo_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.GetPersistentSegmentInfoRequest)) *MilvusServiceServer_GetPersistentSegmentInfo_Call {
  2709  	_c.Call.Run(func(args mock.Arguments) {
  2710  		run(args[0].(context.Context), args[1].(*milvuspb.GetPersistentSegmentInfoRequest))
  2711  	})
  2712  	return _c
  2713  }
  2714  
  2715  func (_c *MilvusServiceServer_GetPersistentSegmentInfo_Call) Return(_a0 *milvuspb.GetPersistentSegmentInfoResponse, _a1 error) *MilvusServiceServer_GetPersistentSegmentInfo_Call {
  2716  	_c.Call.Return(_a0, _a1)
  2717  	return _c
  2718  }
  2719  
  2720  func (_c *MilvusServiceServer_GetPersistentSegmentInfo_Call) RunAndReturn(run func(context.Context, *milvuspb.GetPersistentSegmentInfoRequest) (*milvuspb.GetPersistentSegmentInfoResponse, error)) *MilvusServiceServer_GetPersistentSegmentInfo_Call {
  2721  	_c.Call.Return(run)
  2722  	return _c
  2723  }
  2724  
  2725  // GetQuerySegmentInfo provides a mock function with given fields: _a0, _a1
  2726  func (_m *MilvusServiceServer) GetQuerySegmentInfo(_a0 context.Context, _a1 *milvuspb.GetQuerySegmentInfoRequest) (*milvuspb.GetQuerySegmentInfoResponse, error) {
  2727  	ret := _m.Called(_a0, _a1)
  2728  
  2729  	var r0 *milvuspb.GetQuerySegmentInfoResponse
  2730  	var r1 error
  2731  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetQuerySegmentInfoRequest) (*milvuspb.GetQuerySegmentInfoResponse, error)); ok {
  2732  		return rf(_a0, _a1)
  2733  	}
  2734  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetQuerySegmentInfoRequest) *milvuspb.GetQuerySegmentInfoResponse); ok {
  2735  		r0 = rf(_a0, _a1)
  2736  	} else {
  2737  		if ret.Get(0) != nil {
  2738  			r0 = ret.Get(0).(*milvuspb.GetQuerySegmentInfoResponse)
  2739  		}
  2740  	}
  2741  
  2742  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.GetQuerySegmentInfoRequest) error); ok {
  2743  		r1 = rf(_a0, _a1)
  2744  	} else {
  2745  		r1 = ret.Error(1)
  2746  	}
  2747  
  2748  	return r0, r1
  2749  }
  2750  
  2751  // MilvusServiceServer_GetQuerySegmentInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetQuerySegmentInfo'
  2752  type MilvusServiceServer_GetQuerySegmentInfo_Call struct {
  2753  	*mock.Call
  2754  }
  2755  
  2756  // GetQuerySegmentInfo is a helper method to define mock.On call
  2757  //   - _a0 context.Context
  2758  //   - _a1 *milvuspb.GetQuerySegmentInfoRequest
  2759  func (_e *MilvusServiceServer_Expecter) GetQuerySegmentInfo(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_GetQuerySegmentInfo_Call {
  2760  	return &MilvusServiceServer_GetQuerySegmentInfo_Call{Call: _e.mock.On("GetQuerySegmentInfo", _a0, _a1)}
  2761  }
  2762  
  2763  func (_c *MilvusServiceServer_GetQuerySegmentInfo_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.GetQuerySegmentInfoRequest)) *MilvusServiceServer_GetQuerySegmentInfo_Call {
  2764  	_c.Call.Run(func(args mock.Arguments) {
  2765  		run(args[0].(context.Context), args[1].(*milvuspb.GetQuerySegmentInfoRequest))
  2766  	})
  2767  	return _c
  2768  }
  2769  
  2770  func (_c *MilvusServiceServer_GetQuerySegmentInfo_Call) Return(_a0 *milvuspb.GetQuerySegmentInfoResponse, _a1 error) *MilvusServiceServer_GetQuerySegmentInfo_Call {
  2771  	_c.Call.Return(_a0, _a1)
  2772  	return _c
  2773  }
  2774  
  2775  func (_c *MilvusServiceServer_GetQuerySegmentInfo_Call) RunAndReturn(run func(context.Context, *milvuspb.GetQuerySegmentInfoRequest) (*milvuspb.GetQuerySegmentInfoResponse, error)) *MilvusServiceServer_GetQuerySegmentInfo_Call {
  2776  	_c.Call.Return(run)
  2777  	return _c
  2778  }
  2779  
  2780  // GetReplicas provides a mock function with given fields: _a0, _a1
  2781  func (_m *MilvusServiceServer) GetReplicas(_a0 context.Context, _a1 *milvuspb.GetReplicasRequest) (*milvuspb.GetReplicasResponse, error) {
  2782  	ret := _m.Called(_a0, _a1)
  2783  
  2784  	var r0 *milvuspb.GetReplicasResponse
  2785  	var r1 error
  2786  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetReplicasRequest) (*milvuspb.GetReplicasResponse, error)); ok {
  2787  		return rf(_a0, _a1)
  2788  	}
  2789  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetReplicasRequest) *milvuspb.GetReplicasResponse); ok {
  2790  		r0 = rf(_a0, _a1)
  2791  	} else {
  2792  		if ret.Get(0) != nil {
  2793  			r0 = ret.Get(0).(*milvuspb.GetReplicasResponse)
  2794  		}
  2795  	}
  2796  
  2797  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.GetReplicasRequest) error); ok {
  2798  		r1 = rf(_a0, _a1)
  2799  	} else {
  2800  		r1 = ret.Error(1)
  2801  	}
  2802  
  2803  	return r0, r1
  2804  }
  2805  
  2806  // MilvusServiceServer_GetReplicas_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReplicas'
  2807  type MilvusServiceServer_GetReplicas_Call struct {
  2808  	*mock.Call
  2809  }
  2810  
  2811  // GetReplicas is a helper method to define mock.On call
  2812  //   - _a0 context.Context
  2813  //   - _a1 *milvuspb.GetReplicasRequest
  2814  func (_e *MilvusServiceServer_Expecter) GetReplicas(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_GetReplicas_Call {
  2815  	return &MilvusServiceServer_GetReplicas_Call{Call: _e.mock.On("GetReplicas", _a0, _a1)}
  2816  }
  2817  
  2818  func (_c *MilvusServiceServer_GetReplicas_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.GetReplicasRequest)) *MilvusServiceServer_GetReplicas_Call {
  2819  	_c.Call.Run(func(args mock.Arguments) {
  2820  		run(args[0].(context.Context), args[1].(*milvuspb.GetReplicasRequest))
  2821  	})
  2822  	return _c
  2823  }
  2824  
  2825  func (_c *MilvusServiceServer_GetReplicas_Call) Return(_a0 *milvuspb.GetReplicasResponse, _a1 error) *MilvusServiceServer_GetReplicas_Call {
  2826  	_c.Call.Return(_a0, _a1)
  2827  	return _c
  2828  }
  2829  
  2830  func (_c *MilvusServiceServer_GetReplicas_Call) RunAndReturn(run func(context.Context, *milvuspb.GetReplicasRequest) (*milvuspb.GetReplicasResponse, error)) *MilvusServiceServer_GetReplicas_Call {
  2831  	_c.Call.Return(run)
  2832  	return _c
  2833  }
  2834  
  2835  // GetVersion provides a mock function with given fields: _a0, _a1
  2836  func (_m *MilvusServiceServer) GetVersion(_a0 context.Context, _a1 *milvuspb.GetVersionRequest) (*milvuspb.GetVersionResponse, error) {
  2837  	ret := _m.Called(_a0, _a1)
  2838  
  2839  	var r0 *milvuspb.GetVersionResponse
  2840  	var r1 error
  2841  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetVersionRequest) (*milvuspb.GetVersionResponse, error)); ok {
  2842  		return rf(_a0, _a1)
  2843  	}
  2844  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.GetVersionRequest) *milvuspb.GetVersionResponse); ok {
  2845  		r0 = rf(_a0, _a1)
  2846  	} else {
  2847  		if ret.Get(0) != nil {
  2848  			r0 = ret.Get(0).(*milvuspb.GetVersionResponse)
  2849  		}
  2850  	}
  2851  
  2852  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.GetVersionRequest) error); ok {
  2853  		r1 = rf(_a0, _a1)
  2854  	} else {
  2855  		r1 = ret.Error(1)
  2856  	}
  2857  
  2858  	return r0, r1
  2859  }
  2860  
  2861  // MilvusServiceServer_GetVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVersion'
  2862  type MilvusServiceServer_GetVersion_Call struct {
  2863  	*mock.Call
  2864  }
  2865  
  2866  // GetVersion is a helper method to define mock.On call
  2867  //   - _a0 context.Context
  2868  //   - _a1 *milvuspb.GetVersionRequest
  2869  func (_e *MilvusServiceServer_Expecter) GetVersion(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_GetVersion_Call {
  2870  	return &MilvusServiceServer_GetVersion_Call{Call: _e.mock.On("GetVersion", _a0, _a1)}
  2871  }
  2872  
  2873  func (_c *MilvusServiceServer_GetVersion_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.GetVersionRequest)) *MilvusServiceServer_GetVersion_Call {
  2874  	_c.Call.Run(func(args mock.Arguments) {
  2875  		run(args[0].(context.Context), args[1].(*milvuspb.GetVersionRequest))
  2876  	})
  2877  	return _c
  2878  }
  2879  
  2880  func (_c *MilvusServiceServer_GetVersion_Call) Return(_a0 *milvuspb.GetVersionResponse, _a1 error) *MilvusServiceServer_GetVersion_Call {
  2881  	_c.Call.Return(_a0, _a1)
  2882  	return _c
  2883  }
  2884  
  2885  func (_c *MilvusServiceServer_GetVersion_Call) RunAndReturn(run func(context.Context, *milvuspb.GetVersionRequest) (*milvuspb.GetVersionResponse, error)) *MilvusServiceServer_GetVersion_Call {
  2886  	_c.Call.Return(run)
  2887  	return _c
  2888  }
  2889  
  2890  // HasCollection provides a mock function with given fields: _a0, _a1
  2891  func (_m *MilvusServiceServer) HasCollection(_a0 context.Context, _a1 *milvuspb.HasCollectionRequest) (*milvuspb.BoolResponse, error) {
  2892  	ret := _m.Called(_a0, _a1)
  2893  
  2894  	var r0 *milvuspb.BoolResponse
  2895  	var r1 error
  2896  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.HasCollectionRequest) (*milvuspb.BoolResponse, error)); ok {
  2897  		return rf(_a0, _a1)
  2898  	}
  2899  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.HasCollectionRequest) *milvuspb.BoolResponse); ok {
  2900  		r0 = rf(_a0, _a1)
  2901  	} else {
  2902  		if ret.Get(0) != nil {
  2903  			r0 = ret.Get(0).(*milvuspb.BoolResponse)
  2904  		}
  2905  	}
  2906  
  2907  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.HasCollectionRequest) error); ok {
  2908  		r1 = rf(_a0, _a1)
  2909  	} else {
  2910  		r1 = ret.Error(1)
  2911  	}
  2912  
  2913  	return r0, r1
  2914  }
  2915  
  2916  // MilvusServiceServer_HasCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasCollection'
  2917  type MilvusServiceServer_HasCollection_Call struct {
  2918  	*mock.Call
  2919  }
  2920  
  2921  // HasCollection is a helper method to define mock.On call
  2922  //   - _a0 context.Context
  2923  //   - _a1 *milvuspb.HasCollectionRequest
  2924  func (_e *MilvusServiceServer_Expecter) HasCollection(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_HasCollection_Call {
  2925  	return &MilvusServiceServer_HasCollection_Call{Call: _e.mock.On("HasCollection", _a0, _a1)}
  2926  }
  2927  
  2928  func (_c *MilvusServiceServer_HasCollection_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.HasCollectionRequest)) *MilvusServiceServer_HasCollection_Call {
  2929  	_c.Call.Run(func(args mock.Arguments) {
  2930  		run(args[0].(context.Context), args[1].(*milvuspb.HasCollectionRequest))
  2931  	})
  2932  	return _c
  2933  }
  2934  
  2935  func (_c *MilvusServiceServer_HasCollection_Call) Return(_a0 *milvuspb.BoolResponse, _a1 error) *MilvusServiceServer_HasCollection_Call {
  2936  	_c.Call.Return(_a0, _a1)
  2937  	return _c
  2938  }
  2939  
  2940  func (_c *MilvusServiceServer_HasCollection_Call) RunAndReturn(run func(context.Context, *milvuspb.HasCollectionRequest) (*milvuspb.BoolResponse, error)) *MilvusServiceServer_HasCollection_Call {
  2941  	_c.Call.Return(run)
  2942  	return _c
  2943  }
  2944  
  2945  // HasPartition provides a mock function with given fields: _a0, _a1
  2946  func (_m *MilvusServiceServer) HasPartition(_a0 context.Context, _a1 *milvuspb.HasPartitionRequest) (*milvuspb.BoolResponse, error) {
  2947  	ret := _m.Called(_a0, _a1)
  2948  
  2949  	var r0 *milvuspb.BoolResponse
  2950  	var r1 error
  2951  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.HasPartitionRequest) (*milvuspb.BoolResponse, error)); ok {
  2952  		return rf(_a0, _a1)
  2953  	}
  2954  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.HasPartitionRequest) *milvuspb.BoolResponse); ok {
  2955  		r0 = rf(_a0, _a1)
  2956  	} else {
  2957  		if ret.Get(0) != nil {
  2958  			r0 = ret.Get(0).(*milvuspb.BoolResponse)
  2959  		}
  2960  	}
  2961  
  2962  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.HasPartitionRequest) error); ok {
  2963  		r1 = rf(_a0, _a1)
  2964  	} else {
  2965  		r1 = ret.Error(1)
  2966  	}
  2967  
  2968  	return r0, r1
  2969  }
  2970  
  2971  // MilvusServiceServer_HasPartition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasPartition'
  2972  type MilvusServiceServer_HasPartition_Call struct {
  2973  	*mock.Call
  2974  }
  2975  
  2976  // HasPartition is a helper method to define mock.On call
  2977  //   - _a0 context.Context
  2978  //   - _a1 *milvuspb.HasPartitionRequest
  2979  func (_e *MilvusServiceServer_Expecter) HasPartition(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_HasPartition_Call {
  2980  	return &MilvusServiceServer_HasPartition_Call{Call: _e.mock.On("HasPartition", _a0, _a1)}
  2981  }
  2982  
  2983  func (_c *MilvusServiceServer_HasPartition_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.HasPartitionRequest)) *MilvusServiceServer_HasPartition_Call {
  2984  	_c.Call.Run(func(args mock.Arguments) {
  2985  		run(args[0].(context.Context), args[1].(*milvuspb.HasPartitionRequest))
  2986  	})
  2987  	return _c
  2988  }
  2989  
  2990  func (_c *MilvusServiceServer_HasPartition_Call) Return(_a0 *milvuspb.BoolResponse, _a1 error) *MilvusServiceServer_HasPartition_Call {
  2991  	_c.Call.Return(_a0, _a1)
  2992  	return _c
  2993  }
  2994  
  2995  func (_c *MilvusServiceServer_HasPartition_Call) RunAndReturn(run func(context.Context, *milvuspb.HasPartitionRequest) (*milvuspb.BoolResponse, error)) *MilvusServiceServer_HasPartition_Call {
  2996  	_c.Call.Return(run)
  2997  	return _c
  2998  }
  2999  
  3000  // HybridSearch provides a mock function with given fields: _a0, _a1
  3001  func (_m *MilvusServiceServer) HybridSearch(_a0 context.Context, _a1 *milvuspb.HybridSearchRequest) (*milvuspb.SearchResults, error) {
  3002  	ret := _m.Called(_a0, _a1)
  3003  
  3004  	var r0 *milvuspb.SearchResults
  3005  	var r1 error
  3006  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.HybridSearchRequest) (*milvuspb.SearchResults, error)); ok {
  3007  		return rf(_a0, _a1)
  3008  	}
  3009  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.HybridSearchRequest) *milvuspb.SearchResults); ok {
  3010  		r0 = rf(_a0, _a1)
  3011  	} else {
  3012  		if ret.Get(0) != nil {
  3013  			r0 = ret.Get(0).(*milvuspb.SearchResults)
  3014  		}
  3015  	}
  3016  
  3017  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.HybridSearchRequest) error); ok {
  3018  		r1 = rf(_a0, _a1)
  3019  	} else {
  3020  		r1 = ret.Error(1)
  3021  	}
  3022  
  3023  	return r0, r1
  3024  }
  3025  
  3026  // MilvusServiceServer_HybridSearch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HybridSearch'
  3027  type MilvusServiceServer_HybridSearch_Call struct {
  3028  	*mock.Call
  3029  }
  3030  
  3031  // HybridSearch is a helper method to define mock.On call
  3032  //   - _a0 context.Context
  3033  //   - _a1 *milvuspb.HybridSearchRequest
  3034  func (_e *MilvusServiceServer_Expecter) HybridSearch(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_HybridSearch_Call {
  3035  	return &MilvusServiceServer_HybridSearch_Call{Call: _e.mock.On("HybridSearch", _a0, _a1)}
  3036  }
  3037  
  3038  func (_c *MilvusServiceServer_HybridSearch_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.HybridSearchRequest)) *MilvusServiceServer_HybridSearch_Call {
  3039  	_c.Call.Run(func(args mock.Arguments) {
  3040  		run(args[0].(context.Context), args[1].(*milvuspb.HybridSearchRequest))
  3041  	})
  3042  	return _c
  3043  }
  3044  
  3045  func (_c *MilvusServiceServer_HybridSearch_Call) Return(_a0 *milvuspb.SearchResults, _a1 error) *MilvusServiceServer_HybridSearch_Call {
  3046  	_c.Call.Return(_a0, _a1)
  3047  	return _c
  3048  }
  3049  
  3050  func (_c *MilvusServiceServer_HybridSearch_Call) RunAndReturn(run func(context.Context, *milvuspb.HybridSearchRequest) (*milvuspb.SearchResults, error)) *MilvusServiceServer_HybridSearch_Call {
  3051  	_c.Call.Return(run)
  3052  	return _c
  3053  }
  3054  
  3055  // Import provides a mock function with given fields: _a0, _a1
  3056  func (_m *MilvusServiceServer) Import(_a0 context.Context, _a1 *milvuspb.ImportRequest) (*milvuspb.ImportResponse, error) {
  3057  	ret := _m.Called(_a0, _a1)
  3058  
  3059  	var r0 *milvuspb.ImportResponse
  3060  	var r1 error
  3061  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.ImportRequest) (*milvuspb.ImportResponse, error)); ok {
  3062  		return rf(_a0, _a1)
  3063  	}
  3064  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.ImportRequest) *milvuspb.ImportResponse); ok {
  3065  		r0 = rf(_a0, _a1)
  3066  	} else {
  3067  		if ret.Get(0) != nil {
  3068  			r0 = ret.Get(0).(*milvuspb.ImportResponse)
  3069  		}
  3070  	}
  3071  
  3072  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.ImportRequest) error); ok {
  3073  		r1 = rf(_a0, _a1)
  3074  	} else {
  3075  		r1 = ret.Error(1)
  3076  	}
  3077  
  3078  	return r0, r1
  3079  }
  3080  
  3081  // MilvusServiceServer_Import_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Import'
  3082  type MilvusServiceServer_Import_Call struct {
  3083  	*mock.Call
  3084  }
  3085  
  3086  // Import is a helper method to define mock.On call
  3087  //   - _a0 context.Context
  3088  //   - _a1 *milvuspb.ImportRequest
  3089  func (_e *MilvusServiceServer_Expecter) Import(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_Import_Call {
  3090  	return &MilvusServiceServer_Import_Call{Call: _e.mock.On("Import", _a0, _a1)}
  3091  }
  3092  
  3093  func (_c *MilvusServiceServer_Import_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.ImportRequest)) *MilvusServiceServer_Import_Call {
  3094  	_c.Call.Run(func(args mock.Arguments) {
  3095  		run(args[0].(context.Context), args[1].(*milvuspb.ImportRequest))
  3096  	})
  3097  	return _c
  3098  }
  3099  
  3100  func (_c *MilvusServiceServer_Import_Call) Return(_a0 *milvuspb.ImportResponse, _a1 error) *MilvusServiceServer_Import_Call {
  3101  	_c.Call.Return(_a0, _a1)
  3102  	return _c
  3103  }
  3104  
  3105  func (_c *MilvusServiceServer_Import_Call) RunAndReturn(run func(context.Context, *milvuspb.ImportRequest) (*milvuspb.ImportResponse, error)) *MilvusServiceServer_Import_Call {
  3106  	_c.Call.Return(run)
  3107  	return _c
  3108  }
  3109  
  3110  // Insert provides a mock function with given fields: _a0, _a1
  3111  func (_m *MilvusServiceServer) Insert(_a0 context.Context, _a1 *milvuspb.InsertRequest) (*milvuspb.MutationResult, error) {
  3112  	ret := _m.Called(_a0, _a1)
  3113  
  3114  	var r0 *milvuspb.MutationResult
  3115  	var r1 error
  3116  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.InsertRequest) (*milvuspb.MutationResult, error)); ok {
  3117  		return rf(_a0, _a1)
  3118  	}
  3119  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.InsertRequest) *milvuspb.MutationResult); ok {
  3120  		r0 = rf(_a0, _a1)
  3121  	} else {
  3122  		if ret.Get(0) != nil {
  3123  			r0 = ret.Get(0).(*milvuspb.MutationResult)
  3124  		}
  3125  	}
  3126  
  3127  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.InsertRequest) error); ok {
  3128  		r1 = rf(_a0, _a1)
  3129  	} else {
  3130  		r1 = ret.Error(1)
  3131  	}
  3132  
  3133  	return r0, r1
  3134  }
  3135  
  3136  // MilvusServiceServer_Insert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Insert'
  3137  type MilvusServiceServer_Insert_Call struct {
  3138  	*mock.Call
  3139  }
  3140  
  3141  // Insert is a helper method to define mock.On call
  3142  //   - _a0 context.Context
  3143  //   - _a1 *milvuspb.InsertRequest
  3144  func (_e *MilvusServiceServer_Expecter) Insert(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_Insert_Call {
  3145  	return &MilvusServiceServer_Insert_Call{Call: _e.mock.On("Insert", _a0, _a1)}
  3146  }
  3147  
  3148  func (_c *MilvusServiceServer_Insert_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.InsertRequest)) *MilvusServiceServer_Insert_Call {
  3149  	_c.Call.Run(func(args mock.Arguments) {
  3150  		run(args[0].(context.Context), args[1].(*milvuspb.InsertRequest))
  3151  	})
  3152  	return _c
  3153  }
  3154  
  3155  func (_c *MilvusServiceServer_Insert_Call) Return(_a0 *milvuspb.MutationResult, _a1 error) *MilvusServiceServer_Insert_Call {
  3156  	_c.Call.Return(_a0, _a1)
  3157  	return _c
  3158  }
  3159  
  3160  func (_c *MilvusServiceServer_Insert_Call) RunAndReturn(run func(context.Context, *milvuspb.InsertRequest) (*milvuspb.MutationResult, error)) *MilvusServiceServer_Insert_Call {
  3161  	_c.Call.Return(run)
  3162  	return _c
  3163  }
  3164  
  3165  // ListAliases provides a mock function with given fields: _a0, _a1
  3166  func (_m *MilvusServiceServer) ListAliases(_a0 context.Context, _a1 *milvuspb.ListAliasesRequest) (*milvuspb.ListAliasesResponse, error) {
  3167  	ret := _m.Called(_a0, _a1)
  3168  
  3169  	var r0 *milvuspb.ListAliasesResponse
  3170  	var r1 error
  3171  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.ListAliasesRequest) (*milvuspb.ListAliasesResponse, error)); ok {
  3172  		return rf(_a0, _a1)
  3173  	}
  3174  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.ListAliasesRequest) *milvuspb.ListAliasesResponse); ok {
  3175  		r0 = rf(_a0, _a1)
  3176  	} else {
  3177  		if ret.Get(0) != nil {
  3178  			r0 = ret.Get(0).(*milvuspb.ListAliasesResponse)
  3179  		}
  3180  	}
  3181  
  3182  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.ListAliasesRequest) error); ok {
  3183  		r1 = rf(_a0, _a1)
  3184  	} else {
  3185  		r1 = ret.Error(1)
  3186  	}
  3187  
  3188  	return r0, r1
  3189  }
  3190  
  3191  // MilvusServiceServer_ListAliases_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAliases'
  3192  type MilvusServiceServer_ListAliases_Call struct {
  3193  	*mock.Call
  3194  }
  3195  
  3196  // ListAliases is a helper method to define mock.On call
  3197  //   - _a0 context.Context
  3198  //   - _a1 *milvuspb.ListAliasesRequest
  3199  func (_e *MilvusServiceServer_Expecter) ListAliases(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_ListAliases_Call {
  3200  	return &MilvusServiceServer_ListAliases_Call{Call: _e.mock.On("ListAliases", _a0, _a1)}
  3201  }
  3202  
  3203  func (_c *MilvusServiceServer_ListAliases_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.ListAliasesRequest)) *MilvusServiceServer_ListAliases_Call {
  3204  	_c.Call.Run(func(args mock.Arguments) {
  3205  		run(args[0].(context.Context), args[1].(*milvuspb.ListAliasesRequest))
  3206  	})
  3207  	return _c
  3208  }
  3209  
  3210  func (_c *MilvusServiceServer_ListAliases_Call) Return(_a0 *milvuspb.ListAliasesResponse, _a1 error) *MilvusServiceServer_ListAliases_Call {
  3211  	_c.Call.Return(_a0, _a1)
  3212  	return _c
  3213  }
  3214  
  3215  func (_c *MilvusServiceServer_ListAliases_Call) RunAndReturn(run func(context.Context, *milvuspb.ListAliasesRequest) (*milvuspb.ListAliasesResponse, error)) *MilvusServiceServer_ListAliases_Call {
  3216  	_c.Call.Return(run)
  3217  	return _c
  3218  }
  3219  
  3220  // ListCredUsers provides a mock function with given fields: _a0, _a1
  3221  func (_m *MilvusServiceServer) ListCredUsers(_a0 context.Context, _a1 *milvuspb.ListCredUsersRequest) (*milvuspb.ListCredUsersResponse, error) {
  3222  	ret := _m.Called(_a0, _a1)
  3223  
  3224  	var r0 *milvuspb.ListCredUsersResponse
  3225  	var r1 error
  3226  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.ListCredUsersRequest) (*milvuspb.ListCredUsersResponse, error)); ok {
  3227  		return rf(_a0, _a1)
  3228  	}
  3229  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.ListCredUsersRequest) *milvuspb.ListCredUsersResponse); ok {
  3230  		r0 = rf(_a0, _a1)
  3231  	} else {
  3232  		if ret.Get(0) != nil {
  3233  			r0 = ret.Get(0).(*milvuspb.ListCredUsersResponse)
  3234  		}
  3235  	}
  3236  
  3237  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.ListCredUsersRequest) error); ok {
  3238  		r1 = rf(_a0, _a1)
  3239  	} else {
  3240  		r1 = ret.Error(1)
  3241  	}
  3242  
  3243  	return r0, r1
  3244  }
  3245  
  3246  // MilvusServiceServer_ListCredUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListCredUsers'
  3247  type MilvusServiceServer_ListCredUsers_Call struct {
  3248  	*mock.Call
  3249  }
  3250  
  3251  // ListCredUsers is a helper method to define mock.On call
  3252  //   - _a0 context.Context
  3253  //   - _a1 *milvuspb.ListCredUsersRequest
  3254  func (_e *MilvusServiceServer_Expecter) ListCredUsers(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_ListCredUsers_Call {
  3255  	return &MilvusServiceServer_ListCredUsers_Call{Call: _e.mock.On("ListCredUsers", _a0, _a1)}
  3256  }
  3257  
  3258  func (_c *MilvusServiceServer_ListCredUsers_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.ListCredUsersRequest)) *MilvusServiceServer_ListCredUsers_Call {
  3259  	_c.Call.Run(func(args mock.Arguments) {
  3260  		run(args[0].(context.Context), args[1].(*milvuspb.ListCredUsersRequest))
  3261  	})
  3262  	return _c
  3263  }
  3264  
  3265  func (_c *MilvusServiceServer_ListCredUsers_Call) Return(_a0 *milvuspb.ListCredUsersResponse, _a1 error) *MilvusServiceServer_ListCredUsers_Call {
  3266  	_c.Call.Return(_a0, _a1)
  3267  	return _c
  3268  }
  3269  
  3270  func (_c *MilvusServiceServer_ListCredUsers_Call) RunAndReturn(run func(context.Context, *milvuspb.ListCredUsersRequest) (*milvuspb.ListCredUsersResponse, error)) *MilvusServiceServer_ListCredUsers_Call {
  3271  	_c.Call.Return(run)
  3272  	return _c
  3273  }
  3274  
  3275  // ListDatabases provides a mock function with given fields: _a0, _a1
  3276  func (_m *MilvusServiceServer) ListDatabases(_a0 context.Context, _a1 *milvuspb.ListDatabasesRequest) (*milvuspb.ListDatabasesResponse, error) {
  3277  	ret := _m.Called(_a0, _a1)
  3278  
  3279  	var r0 *milvuspb.ListDatabasesResponse
  3280  	var r1 error
  3281  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.ListDatabasesRequest) (*milvuspb.ListDatabasesResponse, error)); ok {
  3282  		return rf(_a0, _a1)
  3283  	}
  3284  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.ListDatabasesRequest) *milvuspb.ListDatabasesResponse); ok {
  3285  		r0 = rf(_a0, _a1)
  3286  	} else {
  3287  		if ret.Get(0) != nil {
  3288  			r0 = ret.Get(0).(*milvuspb.ListDatabasesResponse)
  3289  		}
  3290  	}
  3291  
  3292  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.ListDatabasesRequest) error); ok {
  3293  		r1 = rf(_a0, _a1)
  3294  	} else {
  3295  		r1 = ret.Error(1)
  3296  	}
  3297  
  3298  	return r0, r1
  3299  }
  3300  
  3301  // MilvusServiceServer_ListDatabases_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListDatabases'
  3302  type MilvusServiceServer_ListDatabases_Call struct {
  3303  	*mock.Call
  3304  }
  3305  
  3306  // ListDatabases is a helper method to define mock.On call
  3307  //   - _a0 context.Context
  3308  //   - _a1 *milvuspb.ListDatabasesRequest
  3309  func (_e *MilvusServiceServer_Expecter) ListDatabases(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_ListDatabases_Call {
  3310  	return &MilvusServiceServer_ListDatabases_Call{Call: _e.mock.On("ListDatabases", _a0, _a1)}
  3311  }
  3312  
  3313  func (_c *MilvusServiceServer_ListDatabases_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.ListDatabasesRequest)) *MilvusServiceServer_ListDatabases_Call {
  3314  	_c.Call.Run(func(args mock.Arguments) {
  3315  		run(args[0].(context.Context), args[1].(*milvuspb.ListDatabasesRequest))
  3316  	})
  3317  	return _c
  3318  }
  3319  
  3320  func (_c *MilvusServiceServer_ListDatabases_Call) Return(_a0 *milvuspb.ListDatabasesResponse, _a1 error) *MilvusServiceServer_ListDatabases_Call {
  3321  	_c.Call.Return(_a0, _a1)
  3322  	return _c
  3323  }
  3324  
  3325  func (_c *MilvusServiceServer_ListDatabases_Call) RunAndReturn(run func(context.Context, *milvuspb.ListDatabasesRequest) (*milvuspb.ListDatabasesResponse, error)) *MilvusServiceServer_ListDatabases_Call {
  3326  	_c.Call.Return(run)
  3327  	return _c
  3328  }
  3329  
  3330  // ListImportTasks provides a mock function with given fields: _a0, _a1
  3331  func (_m *MilvusServiceServer) ListImportTasks(_a0 context.Context, _a1 *milvuspb.ListImportTasksRequest) (*milvuspb.ListImportTasksResponse, error) {
  3332  	ret := _m.Called(_a0, _a1)
  3333  
  3334  	var r0 *milvuspb.ListImportTasksResponse
  3335  	var r1 error
  3336  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.ListImportTasksRequest) (*milvuspb.ListImportTasksResponse, error)); ok {
  3337  		return rf(_a0, _a1)
  3338  	}
  3339  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.ListImportTasksRequest) *milvuspb.ListImportTasksResponse); ok {
  3340  		r0 = rf(_a0, _a1)
  3341  	} else {
  3342  		if ret.Get(0) != nil {
  3343  			r0 = ret.Get(0).(*milvuspb.ListImportTasksResponse)
  3344  		}
  3345  	}
  3346  
  3347  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.ListImportTasksRequest) error); ok {
  3348  		r1 = rf(_a0, _a1)
  3349  	} else {
  3350  		r1 = ret.Error(1)
  3351  	}
  3352  
  3353  	return r0, r1
  3354  }
  3355  
  3356  // MilvusServiceServer_ListImportTasks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListImportTasks'
  3357  type MilvusServiceServer_ListImportTasks_Call struct {
  3358  	*mock.Call
  3359  }
  3360  
  3361  // ListImportTasks is a helper method to define mock.On call
  3362  //   - _a0 context.Context
  3363  //   - _a1 *milvuspb.ListImportTasksRequest
  3364  func (_e *MilvusServiceServer_Expecter) ListImportTasks(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_ListImportTasks_Call {
  3365  	return &MilvusServiceServer_ListImportTasks_Call{Call: _e.mock.On("ListImportTasks", _a0, _a1)}
  3366  }
  3367  
  3368  func (_c *MilvusServiceServer_ListImportTasks_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.ListImportTasksRequest)) *MilvusServiceServer_ListImportTasks_Call {
  3369  	_c.Call.Run(func(args mock.Arguments) {
  3370  		run(args[0].(context.Context), args[1].(*milvuspb.ListImportTasksRequest))
  3371  	})
  3372  	return _c
  3373  }
  3374  
  3375  func (_c *MilvusServiceServer_ListImportTasks_Call) Return(_a0 *milvuspb.ListImportTasksResponse, _a1 error) *MilvusServiceServer_ListImportTasks_Call {
  3376  	_c.Call.Return(_a0, _a1)
  3377  	return _c
  3378  }
  3379  
  3380  func (_c *MilvusServiceServer_ListImportTasks_Call) RunAndReturn(run func(context.Context, *milvuspb.ListImportTasksRequest) (*milvuspb.ListImportTasksResponse, error)) *MilvusServiceServer_ListImportTasks_Call {
  3381  	_c.Call.Return(run)
  3382  	return _c
  3383  }
  3384  
  3385  // ListIndexedSegment provides a mock function with given fields: _a0, _a1
  3386  func (_m *MilvusServiceServer) ListIndexedSegment(_a0 context.Context, _a1 *federpb.ListIndexedSegmentRequest) (*federpb.ListIndexedSegmentResponse, error) {
  3387  	ret := _m.Called(_a0, _a1)
  3388  
  3389  	var r0 *federpb.ListIndexedSegmentResponse
  3390  	var r1 error
  3391  	if rf, ok := ret.Get(0).(func(context.Context, *federpb.ListIndexedSegmentRequest) (*federpb.ListIndexedSegmentResponse, error)); ok {
  3392  		return rf(_a0, _a1)
  3393  	}
  3394  	if rf, ok := ret.Get(0).(func(context.Context, *federpb.ListIndexedSegmentRequest) *federpb.ListIndexedSegmentResponse); ok {
  3395  		r0 = rf(_a0, _a1)
  3396  	} else {
  3397  		if ret.Get(0) != nil {
  3398  			r0 = ret.Get(0).(*federpb.ListIndexedSegmentResponse)
  3399  		}
  3400  	}
  3401  
  3402  	if rf, ok := ret.Get(1).(func(context.Context, *federpb.ListIndexedSegmentRequest) error); ok {
  3403  		r1 = rf(_a0, _a1)
  3404  	} else {
  3405  		r1 = ret.Error(1)
  3406  	}
  3407  
  3408  	return r0, r1
  3409  }
  3410  
  3411  // MilvusServiceServer_ListIndexedSegment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListIndexedSegment'
  3412  type MilvusServiceServer_ListIndexedSegment_Call struct {
  3413  	*mock.Call
  3414  }
  3415  
  3416  // ListIndexedSegment is a helper method to define mock.On call
  3417  //   - _a0 context.Context
  3418  //   - _a1 *federpb.ListIndexedSegmentRequest
  3419  func (_e *MilvusServiceServer_Expecter) ListIndexedSegment(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_ListIndexedSegment_Call {
  3420  	return &MilvusServiceServer_ListIndexedSegment_Call{Call: _e.mock.On("ListIndexedSegment", _a0, _a1)}
  3421  }
  3422  
  3423  func (_c *MilvusServiceServer_ListIndexedSegment_Call) Run(run func(_a0 context.Context, _a1 *federpb.ListIndexedSegmentRequest)) *MilvusServiceServer_ListIndexedSegment_Call {
  3424  	_c.Call.Run(func(args mock.Arguments) {
  3425  		run(args[0].(context.Context), args[1].(*federpb.ListIndexedSegmentRequest))
  3426  	})
  3427  	return _c
  3428  }
  3429  
  3430  func (_c *MilvusServiceServer_ListIndexedSegment_Call) Return(_a0 *federpb.ListIndexedSegmentResponse, _a1 error) *MilvusServiceServer_ListIndexedSegment_Call {
  3431  	_c.Call.Return(_a0, _a1)
  3432  	return _c
  3433  }
  3434  
  3435  func (_c *MilvusServiceServer_ListIndexedSegment_Call) RunAndReturn(run func(context.Context, *federpb.ListIndexedSegmentRequest) (*federpb.ListIndexedSegmentResponse, error)) *MilvusServiceServer_ListIndexedSegment_Call {
  3436  	_c.Call.Return(run)
  3437  	return _c
  3438  }
  3439  
  3440  // ListResourceGroups provides a mock function with given fields: _a0, _a1
  3441  func (_m *MilvusServiceServer) ListResourceGroups(_a0 context.Context, _a1 *milvuspb.ListResourceGroupsRequest) (*milvuspb.ListResourceGroupsResponse, error) {
  3442  	ret := _m.Called(_a0, _a1)
  3443  
  3444  	var r0 *milvuspb.ListResourceGroupsResponse
  3445  	var r1 error
  3446  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.ListResourceGroupsRequest) (*milvuspb.ListResourceGroupsResponse, error)); ok {
  3447  		return rf(_a0, _a1)
  3448  	}
  3449  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.ListResourceGroupsRequest) *milvuspb.ListResourceGroupsResponse); ok {
  3450  		r0 = rf(_a0, _a1)
  3451  	} else {
  3452  		if ret.Get(0) != nil {
  3453  			r0 = ret.Get(0).(*milvuspb.ListResourceGroupsResponse)
  3454  		}
  3455  	}
  3456  
  3457  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.ListResourceGroupsRequest) error); ok {
  3458  		r1 = rf(_a0, _a1)
  3459  	} else {
  3460  		r1 = ret.Error(1)
  3461  	}
  3462  
  3463  	return r0, r1
  3464  }
  3465  
  3466  // MilvusServiceServer_ListResourceGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListResourceGroups'
  3467  type MilvusServiceServer_ListResourceGroups_Call struct {
  3468  	*mock.Call
  3469  }
  3470  
  3471  // ListResourceGroups is a helper method to define mock.On call
  3472  //   - _a0 context.Context
  3473  //   - _a1 *milvuspb.ListResourceGroupsRequest
  3474  func (_e *MilvusServiceServer_Expecter) ListResourceGroups(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_ListResourceGroups_Call {
  3475  	return &MilvusServiceServer_ListResourceGroups_Call{Call: _e.mock.On("ListResourceGroups", _a0, _a1)}
  3476  }
  3477  
  3478  func (_c *MilvusServiceServer_ListResourceGroups_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.ListResourceGroupsRequest)) *MilvusServiceServer_ListResourceGroups_Call {
  3479  	_c.Call.Run(func(args mock.Arguments) {
  3480  		run(args[0].(context.Context), args[1].(*milvuspb.ListResourceGroupsRequest))
  3481  	})
  3482  	return _c
  3483  }
  3484  
  3485  func (_c *MilvusServiceServer_ListResourceGroups_Call) Return(_a0 *milvuspb.ListResourceGroupsResponse, _a1 error) *MilvusServiceServer_ListResourceGroups_Call {
  3486  	_c.Call.Return(_a0, _a1)
  3487  	return _c
  3488  }
  3489  
  3490  func (_c *MilvusServiceServer_ListResourceGroups_Call) RunAndReturn(run func(context.Context, *milvuspb.ListResourceGroupsRequest) (*milvuspb.ListResourceGroupsResponse, error)) *MilvusServiceServer_ListResourceGroups_Call {
  3491  	_c.Call.Return(run)
  3492  	return _c
  3493  }
  3494  
  3495  // LoadBalance provides a mock function with given fields: _a0, _a1
  3496  func (_m *MilvusServiceServer) LoadBalance(_a0 context.Context, _a1 *milvuspb.LoadBalanceRequest) (*commonpb.Status, error) {
  3497  	ret := _m.Called(_a0, _a1)
  3498  
  3499  	var r0 *commonpb.Status
  3500  	var r1 error
  3501  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.LoadBalanceRequest) (*commonpb.Status, error)); ok {
  3502  		return rf(_a0, _a1)
  3503  	}
  3504  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.LoadBalanceRequest) *commonpb.Status); ok {
  3505  		r0 = rf(_a0, _a1)
  3506  	} else {
  3507  		if ret.Get(0) != nil {
  3508  			r0 = ret.Get(0).(*commonpb.Status)
  3509  		}
  3510  	}
  3511  
  3512  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.LoadBalanceRequest) error); ok {
  3513  		r1 = rf(_a0, _a1)
  3514  	} else {
  3515  		r1 = ret.Error(1)
  3516  	}
  3517  
  3518  	return r0, r1
  3519  }
  3520  
  3521  // MilvusServiceServer_LoadBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadBalance'
  3522  type MilvusServiceServer_LoadBalance_Call struct {
  3523  	*mock.Call
  3524  }
  3525  
  3526  // LoadBalance is a helper method to define mock.On call
  3527  //   - _a0 context.Context
  3528  //   - _a1 *milvuspb.LoadBalanceRequest
  3529  func (_e *MilvusServiceServer_Expecter) LoadBalance(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_LoadBalance_Call {
  3530  	return &MilvusServiceServer_LoadBalance_Call{Call: _e.mock.On("LoadBalance", _a0, _a1)}
  3531  }
  3532  
  3533  func (_c *MilvusServiceServer_LoadBalance_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.LoadBalanceRequest)) *MilvusServiceServer_LoadBalance_Call {
  3534  	_c.Call.Run(func(args mock.Arguments) {
  3535  		run(args[0].(context.Context), args[1].(*milvuspb.LoadBalanceRequest))
  3536  	})
  3537  	return _c
  3538  }
  3539  
  3540  func (_c *MilvusServiceServer_LoadBalance_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_LoadBalance_Call {
  3541  	_c.Call.Return(_a0, _a1)
  3542  	return _c
  3543  }
  3544  
  3545  func (_c *MilvusServiceServer_LoadBalance_Call) RunAndReturn(run func(context.Context, *milvuspb.LoadBalanceRequest) (*commonpb.Status, error)) *MilvusServiceServer_LoadBalance_Call {
  3546  	_c.Call.Return(run)
  3547  	return _c
  3548  }
  3549  
  3550  // LoadCollection provides a mock function with given fields: _a0, _a1
  3551  func (_m *MilvusServiceServer) LoadCollection(_a0 context.Context, _a1 *milvuspb.LoadCollectionRequest) (*commonpb.Status, error) {
  3552  	ret := _m.Called(_a0, _a1)
  3553  
  3554  	var r0 *commonpb.Status
  3555  	var r1 error
  3556  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.LoadCollectionRequest) (*commonpb.Status, error)); ok {
  3557  		return rf(_a0, _a1)
  3558  	}
  3559  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.LoadCollectionRequest) *commonpb.Status); ok {
  3560  		r0 = rf(_a0, _a1)
  3561  	} else {
  3562  		if ret.Get(0) != nil {
  3563  			r0 = ret.Get(0).(*commonpb.Status)
  3564  		}
  3565  	}
  3566  
  3567  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.LoadCollectionRequest) error); ok {
  3568  		r1 = rf(_a0, _a1)
  3569  	} else {
  3570  		r1 = ret.Error(1)
  3571  	}
  3572  
  3573  	return r0, r1
  3574  }
  3575  
  3576  // MilvusServiceServer_LoadCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadCollection'
  3577  type MilvusServiceServer_LoadCollection_Call struct {
  3578  	*mock.Call
  3579  }
  3580  
  3581  // LoadCollection is a helper method to define mock.On call
  3582  //   - _a0 context.Context
  3583  //   - _a1 *milvuspb.LoadCollectionRequest
  3584  func (_e *MilvusServiceServer_Expecter) LoadCollection(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_LoadCollection_Call {
  3585  	return &MilvusServiceServer_LoadCollection_Call{Call: _e.mock.On("LoadCollection", _a0, _a1)}
  3586  }
  3587  
  3588  func (_c *MilvusServiceServer_LoadCollection_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.LoadCollectionRequest)) *MilvusServiceServer_LoadCollection_Call {
  3589  	_c.Call.Run(func(args mock.Arguments) {
  3590  		run(args[0].(context.Context), args[1].(*milvuspb.LoadCollectionRequest))
  3591  	})
  3592  	return _c
  3593  }
  3594  
  3595  func (_c *MilvusServiceServer_LoadCollection_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_LoadCollection_Call {
  3596  	_c.Call.Return(_a0, _a1)
  3597  	return _c
  3598  }
  3599  
  3600  func (_c *MilvusServiceServer_LoadCollection_Call) RunAndReturn(run func(context.Context, *milvuspb.LoadCollectionRequest) (*commonpb.Status, error)) *MilvusServiceServer_LoadCollection_Call {
  3601  	_c.Call.Return(run)
  3602  	return _c
  3603  }
  3604  
  3605  // LoadPartitions provides a mock function with given fields: _a0, _a1
  3606  func (_m *MilvusServiceServer) LoadPartitions(_a0 context.Context, _a1 *milvuspb.LoadPartitionsRequest) (*commonpb.Status, error) {
  3607  	ret := _m.Called(_a0, _a1)
  3608  
  3609  	var r0 *commonpb.Status
  3610  	var r1 error
  3611  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.LoadPartitionsRequest) (*commonpb.Status, error)); ok {
  3612  		return rf(_a0, _a1)
  3613  	}
  3614  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.LoadPartitionsRequest) *commonpb.Status); ok {
  3615  		r0 = rf(_a0, _a1)
  3616  	} else {
  3617  		if ret.Get(0) != nil {
  3618  			r0 = ret.Get(0).(*commonpb.Status)
  3619  		}
  3620  	}
  3621  
  3622  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.LoadPartitionsRequest) error); ok {
  3623  		r1 = rf(_a0, _a1)
  3624  	} else {
  3625  		r1 = ret.Error(1)
  3626  	}
  3627  
  3628  	return r0, r1
  3629  }
  3630  
  3631  // MilvusServiceServer_LoadPartitions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadPartitions'
  3632  type MilvusServiceServer_LoadPartitions_Call struct {
  3633  	*mock.Call
  3634  }
  3635  
  3636  // LoadPartitions is a helper method to define mock.On call
  3637  //   - _a0 context.Context
  3638  //   - _a1 *milvuspb.LoadPartitionsRequest
  3639  func (_e *MilvusServiceServer_Expecter) LoadPartitions(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_LoadPartitions_Call {
  3640  	return &MilvusServiceServer_LoadPartitions_Call{Call: _e.mock.On("LoadPartitions", _a0, _a1)}
  3641  }
  3642  
  3643  func (_c *MilvusServiceServer_LoadPartitions_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.LoadPartitionsRequest)) *MilvusServiceServer_LoadPartitions_Call {
  3644  	_c.Call.Run(func(args mock.Arguments) {
  3645  		run(args[0].(context.Context), args[1].(*milvuspb.LoadPartitionsRequest))
  3646  	})
  3647  	return _c
  3648  }
  3649  
  3650  func (_c *MilvusServiceServer_LoadPartitions_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_LoadPartitions_Call {
  3651  	_c.Call.Return(_a0, _a1)
  3652  	return _c
  3653  }
  3654  
  3655  func (_c *MilvusServiceServer_LoadPartitions_Call) RunAndReturn(run func(context.Context, *milvuspb.LoadPartitionsRequest) (*commonpb.Status, error)) *MilvusServiceServer_LoadPartitions_Call {
  3656  	_c.Call.Return(run)
  3657  	return _c
  3658  }
  3659  
  3660  // ManualCompaction provides a mock function with given fields: _a0, _a1
  3661  func (_m *MilvusServiceServer) ManualCompaction(_a0 context.Context, _a1 *milvuspb.ManualCompactionRequest) (*milvuspb.ManualCompactionResponse, error) {
  3662  	ret := _m.Called(_a0, _a1)
  3663  
  3664  	var r0 *milvuspb.ManualCompactionResponse
  3665  	var r1 error
  3666  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.ManualCompactionRequest) (*milvuspb.ManualCompactionResponse, error)); ok {
  3667  		return rf(_a0, _a1)
  3668  	}
  3669  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.ManualCompactionRequest) *milvuspb.ManualCompactionResponse); ok {
  3670  		r0 = rf(_a0, _a1)
  3671  	} else {
  3672  		if ret.Get(0) != nil {
  3673  			r0 = ret.Get(0).(*milvuspb.ManualCompactionResponse)
  3674  		}
  3675  	}
  3676  
  3677  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.ManualCompactionRequest) error); ok {
  3678  		r1 = rf(_a0, _a1)
  3679  	} else {
  3680  		r1 = ret.Error(1)
  3681  	}
  3682  
  3683  	return r0, r1
  3684  }
  3685  
  3686  // MilvusServiceServer_ManualCompaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ManualCompaction'
  3687  type MilvusServiceServer_ManualCompaction_Call struct {
  3688  	*mock.Call
  3689  }
  3690  
  3691  // ManualCompaction is a helper method to define mock.On call
  3692  //   - _a0 context.Context
  3693  //   - _a1 *milvuspb.ManualCompactionRequest
  3694  func (_e *MilvusServiceServer_Expecter) ManualCompaction(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_ManualCompaction_Call {
  3695  	return &MilvusServiceServer_ManualCompaction_Call{Call: _e.mock.On("ManualCompaction", _a0, _a1)}
  3696  }
  3697  
  3698  func (_c *MilvusServiceServer_ManualCompaction_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.ManualCompactionRequest)) *MilvusServiceServer_ManualCompaction_Call {
  3699  	_c.Call.Run(func(args mock.Arguments) {
  3700  		run(args[0].(context.Context), args[1].(*milvuspb.ManualCompactionRequest))
  3701  	})
  3702  	return _c
  3703  }
  3704  
  3705  func (_c *MilvusServiceServer_ManualCompaction_Call) Return(_a0 *milvuspb.ManualCompactionResponse, _a1 error) *MilvusServiceServer_ManualCompaction_Call {
  3706  	_c.Call.Return(_a0, _a1)
  3707  	return _c
  3708  }
  3709  
  3710  func (_c *MilvusServiceServer_ManualCompaction_Call) RunAndReturn(run func(context.Context, *milvuspb.ManualCompactionRequest) (*milvuspb.ManualCompactionResponse, error)) *MilvusServiceServer_ManualCompaction_Call {
  3711  	_c.Call.Return(run)
  3712  	return _c
  3713  }
  3714  
  3715  // OperatePrivilege provides a mock function with given fields: _a0, _a1
  3716  func (_m *MilvusServiceServer) OperatePrivilege(_a0 context.Context, _a1 *milvuspb.OperatePrivilegeRequest) (*commonpb.Status, error) {
  3717  	ret := _m.Called(_a0, _a1)
  3718  
  3719  	var r0 *commonpb.Status
  3720  	var r1 error
  3721  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.OperatePrivilegeRequest) (*commonpb.Status, error)); ok {
  3722  		return rf(_a0, _a1)
  3723  	}
  3724  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.OperatePrivilegeRequest) *commonpb.Status); ok {
  3725  		r0 = rf(_a0, _a1)
  3726  	} else {
  3727  		if ret.Get(0) != nil {
  3728  			r0 = ret.Get(0).(*commonpb.Status)
  3729  		}
  3730  	}
  3731  
  3732  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.OperatePrivilegeRequest) error); ok {
  3733  		r1 = rf(_a0, _a1)
  3734  	} else {
  3735  		r1 = ret.Error(1)
  3736  	}
  3737  
  3738  	return r0, r1
  3739  }
  3740  
  3741  // MilvusServiceServer_OperatePrivilege_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OperatePrivilege'
  3742  type MilvusServiceServer_OperatePrivilege_Call struct {
  3743  	*mock.Call
  3744  }
  3745  
  3746  // OperatePrivilege is a helper method to define mock.On call
  3747  //   - _a0 context.Context
  3748  //   - _a1 *milvuspb.OperatePrivilegeRequest
  3749  func (_e *MilvusServiceServer_Expecter) OperatePrivilege(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_OperatePrivilege_Call {
  3750  	return &MilvusServiceServer_OperatePrivilege_Call{Call: _e.mock.On("OperatePrivilege", _a0, _a1)}
  3751  }
  3752  
  3753  func (_c *MilvusServiceServer_OperatePrivilege_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.OperatePrivilegeRequest)) *MilvusServiceServer_OperatePrivilege_Call {
  3754  	_c.Call.Run(func(args mock.Arguments) {
  3755  		run(args[0].(context.Context), args[1].(*milvuspb.OperatePrivilegeRequest))
  3756  	})
  3757  	return _c
  3758  }
  3759  
  3760  func (_c *MilvusServiceServer_OperatePrivilege_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_OperatePrivilege_Call {
  3761  	_c.Call.Return(_a0, _a1)
  3762  	return _c
  3763  }
  3764  
  3765  func (_c *MilvusServiceServer_OperatePrivilege_Call) RunAndReturn(run func(context.Context, *milvuspb.OperatePrivilegeRequest) (*commonpb.Status, error)) *MilvusServiceServer_OperatePrivilege_Call {
  3766  	_c.Call.Return(run)
  3767  	return _c
  3768  }
  3769  
  3770  // OperateUserRole provides a mock function with given fields: _a0, _a1
  3771  func (_m *MilvusServiceServer) OperateUserRole(_a0 context.Context, _a1 *milvuspb.OperateUserRoleRequest) (*commonpb.Status, error) {
  3772  	ret := _m.Called(_a0, _a1)
  3773  
  3774  	var r0 *commonpb.Status
  3775  	var r1 error
  3776  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.OperateUserRoleRequest) (*commonpb.Status, error)); ok {
  3777  		return rf(_a0, _a1)
  3778  	}
  3779  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.OperateUserRoleRequest) *commonpb.Status); ok {
  3780  		r0 = rf(_a0, _a1)
  3781  	} else {
  3782  		if ret.Get(0) != nil {
  3783  			r0 = ret.Get(0).(*commonpb.Status)
  3784  		}
  3785  	}
  3786  
  3787  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.OperateUserRoleRequest) error); ok {
  3788  		r1 = rf(_a0, _a1)
  3789  	} else {
  3790  		r1 = ret.Error(1)
  3791  	}
  3792  
  3793  	return r0, r1
  3794  }
  3795  
  3796  // MilvusServiceServer_OperateUserRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OperateUserRole'
  3797  type MilvusServiceServer_OperateUserRole_Call struct {
  3798  	*mock.Call
  3799  }
  3800  
  3801  // OperateUserRole is a helper method to define mock.On call
  3802  //   - _a0 context.Context
  3803  //   - _a1 *milvuspb.OperateUserRoleRequest
  3804  func (_e *MilvusServiceServer_Expecter) OperateUserRole(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_OperateUserRole_Call {
  3805  	return &MilvusServiceServer_OperateUserRole_Call{Call: _e.mock.On("OperateUserRole", _a0, _a1)}
  3806  }
  3807  
  3808  func (_c *MilvusServiceServer_OperateUserRole_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.OperateUserRoleRequest)) *MilvusServiceServer_OperateUserRole_Call {
  3809  	_c.Call.Run(func(args mock.Arguments) {
  3810  		run(args[0].(context.Context), args[1].(*milvuspb.OperateUserRoleRequest))
  3811  	})
  3812  	return _c
  3813  }
  3814  
  3815  func (_c *MilvusServiceServer_OperateUserRole_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_OperateUserRole_Call {
  3816  	_c.Call.Return(_a0, _a1)
  3817  	return _c
  3818  }
  3819  
  3820  func (_c *MilvusServiceServer_OperateUserRole_Call) RunAndReturn(run func(context.Context, *milvuspb.OperateUserRoleRequest) (*commonpb.Status, error)) *MilvusServiceServer_OperateUserRole_Call {
  3821  	_c.Call.Return(run)
  3822  	return _c
  3823  }
  3824  
  3825  // Query provides a mock function with given fields: _a0, _a1
  3826  func (_m *MilvusServiceServer) Query(_a0 context.Context, _a1 *milvuspb.QueryRequest) (*milvuspb.QueryResults, error) {
  3827  	ret := _m.Called(_a0, _a1)
  3828  
  3829  	var r0 *milvuspb.QueryResults
  3830  	var r1 error
  3831  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.QueryRequest) (*milvuspb.QueryResults, error)); ok {
  3832  		return rf(_a0, _a1)
  3833  	}
  3834  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.QueryRequest) *milvuspb.QueryResults); ok {
  3835  		r0 = rf(_a0, _a1)
  3836  	} else {
  3837  		if ret.Get(0) != nil {
  3838  			r0 = ret.Get(0).(*milvuspb.QueryResults)
  3839  		}
  3840  	}
  3841  
  3842  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.QueryRequest) error); ok {
  3843  		r1 = rf(_a0, _a1)
  3844  	} else {
  3845  		r1 = ret.Error(1)
  3846  	}
  3847  
  3848  	return r0, r1
  3849  }
  3850  
  3851  // MilvusServiceServer_Query_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Query'
  3852  type MilvusServiceServer_Query_Call struct {
  3853  	*mock.Call
  3854  }
  3855  
  3856  // Query is a helper method to define mock.On call
  3857  //   - _a0 context.Context
  3858  //   - _a1 *milvuspb.QueryRequest
  3859  func (_e *MilvusServiceServer_Expecter) Query(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_Query_Call {
  3860  	return &MilvusServiceServer_Query_Call{Call: _e.mock.On("Query", _a0, _a1)}
  3861  }
  3862  
  3863  func (_c *MilvusServiceServer_Query_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.QueryRequest)) *MilvusServiceServer_Query_Call {
  3864  	_c.Call.Run(func(args mock.Arguments) {
  3865  		run(args[0].(context.Context), args[1].(*milvuspb.QueryRequest))
  3866  	})
  3867  	return _c
  3868  }
  3869  
  3870  func (_c *MilvusServiceServer_Query_Call) Return(_a0 *milvuspb.QueryResults, _a1 error) *MilvusServiceServer_Query_Call {
  3871  	_c.Call.Return(_a0, _a1)
  3872  	return _c
  3873  }
  3874  
  3875  func (_c *MilvusServiceServer_Query_Call) RunAndReturn(run func(context.Context, *milvuspb.QueryRequest) (*milvuspb.QueryResults, error)) *MilvusServiceServer_Query_Call {
  3876  	_c.Call.Return(run)
  3877  	return _c
  3878  }
  3879  
  3880  // RegisterLink provides a mock function with given fields: _a0, _a1
  3881  func (_m *MilvusServiceServer) RegisterLink(_a0 context.Context, _a1 *milvuspb.RegisterLinkRequest) (*milvuspb.RegisterLinkResponse, error) {
  3882  	ret := _m.Called(_a0, _a1)
  3883  
  3884  	var r0 *milvuspb.RegisterLinkResponse
  3885  	var r1 error
  3886  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.RegisterLinkRequest) (*milvuspb.RegisterLinkResponse, error)); ok {
  3887  		return rf(_a0, _a1)
  3888  	}
  3889  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.RegisterLinkRequest) *milvuspb.RegisterLinkResponse); ok {
  3890  		r0 = rf(_a0, _a1)
  3891  	} else {
  3892  		if ret.Get(0) != nil {
  3893  			r0 = ret.Get(0).(*milvuspb.RegisterLinkResponse)
  3894  		}
  3895  	}
  3896  
  3897  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.RegisterLinkRequest) error); ok {
  3898  		r1 = rf(_a0, _a1)
  3899  	} else {
  3900  		r1 = ret.Error(1)
  3901  	}
  3902  
  3903  	return r0, r1
  3904  }
  3905  
  3906  // MilvusServiceServer_RegisterLink_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterLink'
  3907  type MilvusServiceServer_RegisterLink_Call struct {
  3908  	*mock.Call
  3909  }
  3910  
  3911  // RegisterLink is a helper method to define mock.On call
  3912  //   - _a0 context.Context
  3913  //   - _a1 *milvuspb.RegisterLinkRequest
  3914  func (_e *MilvusServiceServer_Expecter) RegisterLink(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_RegisterLink_Call {
  3915  	return &MilvusServiceServer_RegisterLink_Call{Call: _e.mock.On("RegisterLink", _a0, _a1)}
  3916  }
  3917  
  3918  func (_c *MilvusServiceServer_RegisterLink_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.RegisterLinkRequest)) *MilvusServiceServer_RegisterLink_Call {
  3919  	_c.Call.Run(func(args mock.Arguments) {
  3920  		run(args[0].(context.Context), args[1].(*milvuspb.RegisterLinkRequest))
  3921  	})
  3922  	return _c
  3923  }
  3924  
  3925  func (_c *MilvusServiceServer_RegisterLink_Call) Return(_a0 *milvuspb.RegisterLinkResponse, _a1 error) *MilvusServiceServer_RegisterLink_Call {
  3926  	_c.Call.Return(_a0, _a1)
  3927  	return _c
  3928  }
  3929  
  3930  func (_c *MilvusServiceServer_RegisterLink_Call) RunAndReturn(run func(context.Context, *milvuspb.RegisterLinkRequest) (*milvuspb.RegisterLinkResponse, error)) *MilvusServiceServer_RegisterLink_Call {
  3931  	_c.Call.Return(run)
  3932  	return _c
  3933  }
  3934  
  3935  // ReleaseCollection provides a mock function with given fields: _a0, _a1
  3936  func (_m *MilvusServiceServer) ReleaseCollection(_a0 context.Context, _a1 *milvuspb.ReleaseCollectionRequest) (*commonpb.Status, error) {
  3937  	ret := _m.Called(_a0, _a1)
  3938  
  3939  	var r0 *commonpb.Status
  3940  	var r1 error
  3941  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.ReleaseCollectionRequest) (*commonpb.Status, error)); ok {
  3942  		return rf(_a0, _a1)
  3943  	}
  3944  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.ReleaseCollectionRequest) *commonpb.Status); ok {
  3945  		r0 = rf(_a0, _a1)
  3946  	} else {
  3947  		if ret.Get(0) != nil {
  3948  			r0 = ret.Get(0).(*commonpb.Status)
  3949  		}
  3950  	}
  3951  
  3952  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.ReleaseCollectionRequest) error); ok {
  3953  		r1 = rf(_a0, _a1)
  3954  	} else {
  3955  		r1 = ret.Error(1)
  3956  	}
  3957  
  3958  	return r0, r1
  3959  }
  3960  
  3961  // MilvusServiceServer_ReleaseCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReleaseCollection'
  3962  type MilvusServiceServer_ReleaseCollection_Call struct {
  3963  	*mock.Call
  3964  }
  3965  
  3966  // ReleaseCollection is a helper method to define mock.On call
  3967  //   - _a0 context.Context
  3968  //   - _a1 *milvuspb.ReleaseCollectionRequest
  3969  func (_e *MilvusServiceServer_Expecter) ReleaseCollection(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_ReleaseCollection_Call {
  3970  	return &MilvusServiceServer_ReleaseCollection_Call{Call: _e.mock.On("ReleaseCollection", _a0, _a1)}
  3971  }
  3972  
  3973  func (_c *MilvusServiceServer_ReleaseCollection_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.ReleaseCollectionRequest)) *MilvusServiceServer_ReleaseCollection_Call {
  3974  	_c.Call.Run(func(args mock.Arguments) {
  3975  		run(args[0].(context.Context), args[1].(*milvuspb.ReleaseCollectionRequest))
  3976  	})
  3977  	return _c
  3978  }
  3979  
  3980  func (_c *MilvusServiceServer_ReleaseCollection_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_ReleaseCollection_Call {
  3981  	_c.Call.Return(_a0, _a1)
  3982  	return _c
  3983  }
  3984  
  3985  func (_c *MilvusServiceServer_ReleaseCollection_Call) RunAndReturn(run func(context.Context, *milvuspb.ReleaseCollectionRequest) (*commonpb.Status, error)) *MilvusServiceServer_ReleaseCollection_Call {
  3986  	_c.Call.Return(run)
  3987  	return _c
  3988  }
  3989  
  3990  // ReleasePartitions provides a mock function with given fields: _a0, _a1
  3991  func (_m *MilvusServiceServer) ReleasePartitions(_a0 context.Context, _a1 *milvuspb.ReleasePartitionsRequest) (*commonpb.Status, error) {
  3992  	ret := _m.Called(_a0, _a1)
  3993  
  3994  	var r0 *commonpb.Status
  3995  	var r1 error
  3996  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.ReleasePartitionsRequest) (*commonpb.Status, error)); ok {
  3997  		return rf(_a0, _a1)
  3998  	}
  3999  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.ReleasePartitionsRequest) *commonpb.Status); ok {
  4000  		r0 = rf(_a0, _a1)
  4001  	} else {
  4002  		if ret.Get(0) != nil {
  4003  			r0 = ret.Get(0).(*commonpb.Status)
  4004  		}
  4005  	}
  4006  
  4007  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.ReleasePartitionsRequest) error); ok {
  4008  		r1 = rf(_a0, _a1)
  4009  	} else {
  4010  		r1 = ret.Error(1)
  4011  	}
  4012  
  4013  	return r0, r1
  4014  }
  4015  
  4016  // MilvusServiceServer_ReleasePartitions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReleasePartitions'
  4017  type MilvusServiceServer_ReleasePartitions_Call struct {
  4018  	*mock.Call
  4019  }
  4020  
  4021  // ReleasePartitions is a helper method to define mock.On call
  4022  //   - _a0 context.Context
  4023  //   - _a1 *milvuspb.ReleasePartitionsRequest
  4024  func (_e *MilvusServiceServer_Expecter) ReleasePartitions(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_ReleasePartitions_Call {
  4025  	return &MilvusServiceServer_ReleasePartitions_Call{Call: _e.mock.On("ReleasePartitions", _a0, _a1)}
  4026  }
  4027  
  4028  func (_c *MilvusServiceServer_ReleasePartitions_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.ReleasePartitionsRequest)) *MilvusServiceServer_ReleasePartitions_Call {
  4029  	_c.Call.Run(func(args mock.Arguments) {
  4030  		run(args[0].(context.Context), args[1].(*milvuspb.ReleasePartitionsRequest))
  4031  	})
  4032  	return _c
  4033  }
  4034  
  4035  func (_c *MilvusServiceServer_ReleasePartitions_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_ReleasePartitions_Call {
  4036  	_c.Call.Return(_a0, _a1)
  4037  	return _c
  4038  }
  4039  
  4040  func (_c *MilvusServiceServer_ReleasePartitions_Call) RunAndReturn(run func(context.Context, *milvuspb.ReleasePartitionsRequest) (*commonpb.Status, error)) *MilvusServiceServer_ReleasePartitions_Call {
  4041  	_c.Call.Return(run)
  4042  	return _c
  4043  }
  4044  
  4045  // RenameCollection provides a mock function with given fields: _a0, _a1
  4046  func (_m *MilvusServiceServer) RenameCollection(_a0 context.Context, _a1 *milvuspb.RenameCollectionRequest) (*commonpb.Status, error) {
  4047  	ret := _m.Called(_a0, _a1)
  4048  
  4049  	var r0 *commonpb.Status
  4050  	var r1 error
  4051  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.RenameCollectionRequest) (*commonpb.Status, error)); ok {
  4052  		return rf(_a0, _a1)
  4053  	}
  4054  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.RenameCollectionRequest) *commonpb.Status); ok {
  4055  		r0 = rf(_a0, _a1)
  4056  	} else {
  4057  		if ret.Get(0) != nil {
  4058  			r0 = ret.Get(0).(*commonpb.Status)
  4059  		}
  4060  	}
  4061  
  4062  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.RenameCollectionRequest) error); ok {
  4063  		r1 = rf(_a0, _a1)
  4064  	} else {
  4065  		r1 = ret.Error(1)
  4066  	}
  4067  
  4068  	return r0, r1
  4069  }
  4070  
  4071  // MilvusServiceServer_RenameCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RenameCollection'
  4072  type MilvusServiceServer_RenameCollection_Call struct {
  4073  	*mock.Call
  4074  }
  4075  
  4076  // RenameCollection is a helper method to define mock.On call
  4077  //   - _a0 context.Context
  4078  //   - _a1 *milvuspb.RenameCollectionRequest
  4079  func (_e *MilvusServiceServer_Expecter) RenameCollection(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_RenameCollection_Call {
  4080  	return &MilvusServiceServer_RenameCollection_Call{Call: _e.mock.On("RenameCollection", _a0, _a1)}
  4081  }
  4082  
  4083  func (_c *MilvusServiceServer_RenameCollection_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.RenameCollectionRequest)) *MilvusServiceServer_RenameCollection_Call {
  4084  	_c.Call.Run(func(args mock.Arguments) {
  4085  		run(args[0].(context.Context), args[1].(*milvuspb.RenameCollectionRequest))
  4086  	})
  4087  	return _c
  4088  }
  4089  
  4090  func (_c *MilvusServiceServer_RenameCollection_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_RenameCollection_Call {
  4091  	_c.Call.Return(_a0, _a1)
  4092  	return _c
  4093  }
  4094  
  4095  func (_c *MilvusServiceServer_RenameCollection_Call) RunAndReturn(run func(context.Context, *milvuspb.RenameCollectionRequest) (*commonpb.Status, error)) *MilvusServiceServer_RenameCollection_Call {
  4096  	_c.Call.Return(run)
  4097  	return _c
  4098  }
  4099  
  4100  // ReplicateMessage provides a mock function with given fields: _a0, _a1
  4101  func (_m *MilvusServiceServer) ReplicateMessage(_a0 context.Context, _a1 *milvuspb.ReplicateMessageRequest) (*milvuspb.ReplicateMessageResponse, error) {
  4102  	ret := _m.Called(_a0, _a1)
  4103  
  4104  	var r0 *milvuspb.ReplicateMessageResponse
  4105  	var r1 error
  4106  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.ReplicateMessageRequest) (*milvuspb.ReplicateMessageResponse, error)); ok {
  4107  		return rf(_a0, _a1)
  4108  	}
  4109  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.ReplicateMessageRequest) *milvuspb.ReplicateMessageResponse); ok {
  4110  		r0 = rf(_a0, _a1)
  4111  	} else {
  4112  		if ret.Get(0) != nil {
  4113  			r0 = ret.Get(0).(*milvuspb.ReplicateMessageResponse)
  4114  		}
  4115  	}
  4116  
  4117  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.ReplicateMessageRequest) error); ok {
  4118  		r1 = rf(_a0, _a1)
  4119  	} else {
  4120  		r1 = ret.Error(1)
  4121  	}
  4122  
  4123  	return r0, r1
  4124  }
  4125  
  4126  // MilvusServiceServer_ReplicateMessage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReplicateMessage'
  4127  type MilvusServiceServer_ReplicateMessage_Call struct {
  4128  	*mock.Call
  4129  }
  4130  
  4131  // ReplicateMessage is a helper method to define mock.On call
  4132  //   - _a0 context.Context
  4133  //   - _a1 *milvuspb.ReplicateMessageRequest
  4134  func (_e *MilvusServiceServer_Expecter) ReplicateMessage(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_ReplicateMessage_Call {
  4135  	return &MilvusServiceServer_ReplicateMessage_Call{Call: _e.mock.On("ReplicateMessage", _a0, _a1)}
  4136  }
  4137  
  4138  func (_c *MilvusServiceServer_ReplicateMessage_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.ReplicateMessageRequest)) *MilvusServiceServer_ReplicateMessage_Call {
  4139  	_c.Call.Run(func(args mock.Arguments) {
  4140  		run(args[0].(context.Context), args[1].(*milvuspb.ReplicateMessageRequest))
  4141  	})
  4142  	return _c
  4143  }
  4144  
  4145  func (_c *MilvusServiceServer_ReplicateMessage_Call) Return(_a0 *milvuspb.ReplicateMessageResponse, _a1 error) *MilvusServiceServer_ReplicateMessage_Call {
  4146  	_c.Call.Return(_a0, _a1)
  4147  	return _c
  4148  }
  4149  
  4150  func (_c *MilvusServiceServer_ReplicateMessage_Call) RunAndReturn(run func(context.Context, *milvuspb.ReplicateMessageRequest) (*milvuspb.ReplicateMessageResponse, error)) *MilvusServiceServer_ReplicateMessage_Call {
  4151  	_c.Call.Return(run)
  4152  	return _c
  4153  }
  4154  
  4155  // Search provides a mock function with given fields: _a0, _a1
  4156  func (_m *MilvusServiceServer) Search(_a0 context.Context, _a1 *milvuspb.SearchRequest) (*milvuspb.SearchResults, error) {
  4157  	ret := _m.Called(_a0, _a1)
  4158  
  4159  	var r0 *milvuspb.SearchResults
  4160  	var r1 error
  4161  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.SearchRequest) (*milvuspb.SearchResults, error)); ok {
  4162  		return rf(_a0, _a1)
  4163  	}
  4164  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.SearchRequest) *milvuspb.SearchResults); ok {
  4165  		r0 = rf(_a0, _a1)
  4166  	} else {
  4167  		if ret.Get(0) != nil {
  4168  			r0 = ret.Get(0).(*milvuspb.SearchResults)
  4169  		}
  4170  	}
  4171  
  4172  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.SearchRequest) error); ok {
  4173  		r1 = rf(_a0, _a1)
  4174  	} else {
  4175  		r1 = ret.Error(1)
  4176  	}
  4177  
  4178  	return r0, r1
  4179  }
  4180  
  4181  // MilvusServiceServer_Search_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Search'
  4182  type MilvusServiceServer_Search_Call struct {
  4183  	*mock.Call
  4184  }
  4185  
  4186  // Search is a helper method to define mock.On call
  4187  //   - _a0 context.Context
  4188  //   - _a1 *milvuspb.SearchRequest
  4189  func (_e *MilvusServiceServer_Expecter) Search(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_Search_Call {
  4190  	return &MilvusServiceServer_Search_Call{Call: _e.mock.On("Search", _a0, _a1)}
  4191  }
  4192  
  4193  func (_c *MilvusServiceServer_Search_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.SearchRequest)) *MilvusServiceServer_Search_Call {
  4194  	_c.Call.Run(func(args mock.Arguments) {
  4195  		run(args[0].(context.Context), args[1].(*milvuspb.SearchRequest))
  4196  	})
  4197  	return _c
  4198  }
  4199  
  4200  func (_c *MilvusServiceServer_Search_Call) Return(_a0 *milvuspb.SearchResults, _a1 error) *MilvusServiceServer_Search_Call {
  4201  	_c.Call.Return(_a0, _a1)
  4202  	return _c
  4203  }
  4204  
  4205  func (_c *MilvusServiceServer_Search_Call) RunAndReturn(run func(context.Context, *milvuspb.SearchRequest) (*milvuspb.SearchResults, error)) *MilvusServiceServer_Search_Call {
  4206  	_c.Call.Return(run)
  4207  	return _c
  4208  }
  4209  
  4210  // SelectGrant provides a mock function with given fields: _a0, _a1
  4211  func (_m *MilvusServiceServer) SelectGrant(_a0 context.Context, _a1 *milvuspb.SelectGrantRequest) (*milvuspb.SelectGrantResponse, error) {
  4212  	ret := _m.Called(_a0, _a1)
  4213  
  4214  	var r0 *milvuspb.SelectGrantResponse
  4215  	var r1 error
  4216  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.SelectGrantRequest) (*milvuspb.SelectGrantResponse, error)); ok {
  4217  		return rf(_a0, _a1)
  4218  	}
  4219  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.SelectGrantRequest) *milvuspb.SelectGrantResponse); ok {
  4220  		r0 = rf(_a0, _a1)
  4221  	} else {
  4222  		if ret.Get(0) != nil {
  4223  			r0 = ret.Get(0).(*milvuspb.SelectGrantResponse)
  4224  		}
  4225  	}
  4226  
  4227  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.SelectGrantRequest) error); ok {
  4228  		r1 = rf(_a0, _a1)
  4229  	} else {
  4230  		r1 = ret.Error(1)
  4231  	}
  4232  
  4233  	return r0, r1
  4234  }
  4235  
  4236  // MilvusServiceServer_SelectGrant_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SelectGrant'
  4237  type MilvusServiceServer_SelectGrant_Call struct {
  4238  	*mock.Call
  4239  }
  4240  
  4241  // SelectGrant is a helper method to define mock.On call
  4242  //   - _a0 context.Context
  4243  //   - _a1 *milvuspb.SelectGrantRequest
  4244  func (_e *MilvusServiceServer_Expecter) SelectGrant(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_SelectGrant_Call {
  4245  	return &MilvusServiceServer_SelectGrant_Call{Call: _e.mock.On("SelectGrant", _a0, _a1)}
  4246  }
  4247  
  4248  func (_c *MilvusServiceServer_SelectGrant_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.SelectGrantRequest)) *MilvusServiceServer_SelectGrant_Call {
  4249  	_c.Call.Run(func(args mock.Arguments) {
  4250  		run(args[0].(context.Context), args[1].(*milvuspb.SelectGrantRequest))
  4251  	})
  4252  	return _c
  4253  }
  4254  
  4255  func (_c *MilvusServiceServer_SelectGrant_Call) Return(_a0 *milvuspb.SelectGrantResponse, _a1 error) *MilvusServiceServer_SelectGrant_Call {
  4256  	_c.Call.Return(_a0, _a1)
  4257  	return _c
  4258  }
  4259  
  4260  func (_c *MilvusServiceServer_SelectGrant_Call) RunAndReturn(run func(context.Context, *milvuspb.SelectGrantRequest) (*milvuspb.SelectGrantResponse, error)) *MilvusServiceServer_SelectGrant_Call {
  4261  	_c.Call.Return(run)
  4262  	return _c
  4263  }
  4264  
  4265  // SelectRole provides a mock function with given fields: _a0, _a1
  4266  func (_m *MilvusServiceServer) SelectRole(_a0 context.Context, _a1 *milvuspb.SelectRoleRequest) (*milvuspb.SelectRoleResponse, error) {
  4267  	ret := _m.Called(_a0, _a1)
  4268  
  4269  	var r0 *milvuspb.SelectRoleResponse
  4270  	var r1 error
  4271  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.SelectRoleRequest) (*milvuspb.SelectRoleResponse, error)); ok {
  4272  		return rf(_a0, _a1)
  4273  	}
  4274  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.SelectRoleRequest) *milvuspb.SelectRoleResponse); ok {
  4275  		r0 = rf(_a0, _a1)
  4276  	} else {
  4277  		if ret.Get(0) != nil {
  4278  			r0 = ret.Get(0).(*milvuspb.SelectRoleResponse)
  4279  		}
  4280  	}
  4281  
  4282  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.SelectRoleRequest) error); ok {
  4283  		r1 = rf(_a0, _a1)
  4284  	} else {
  4285  		r1 = ret.Error(1)
  4286  	}
  4287  
  4288  	return r0, r1
  4289  }
  4290  
  4291  // MilvusServiceServer_SelectRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SelectRole'
  4292  type MilvusServiceServer_SelectRole_Call struct {
  4293  	*mock.Call
  4294  }
  4295  
  4296  // SelectRole is a helper method to define mock.On call
  4297  //   - _a0 context.Context
  4298  //   - _a1 *milvuspb.SelectRoleRequest
  4299  func (_e *MilvusServiceServer_Expecter) SelectRole(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_SelectRole_Call {
  4300  	return &MilvusServiceServer_SelectRole_Call{Call: _e.mock.On("SelectRole", _a0, _a1)}
  4301  }
  4302  
  4303  func (_c *MilvusServiceServer_SelectRole_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.SelectRoleRequest)) *MilvusServiceServer_SelectRole_Call {
  4304  	_c.Call.Run(func(args mock.Arguments) {
  4305  		run(args[0].(context.Context), args[1].(*milvuspb.SelectRoleRequest))
  4306  	})
  4307  	return _c
  4308  }
  4309  
  4310  func (_c *MilvusServiceServer_SelectRole_Call) Return(_a0 *milvuspb.SelectRoleResponse, _a1 error) *MilvusServiceServer_SelectRole_Call {
  4311  	_c.Call.Return(_a0, _a1)
  4312  	return _c
  4313  }
  4314  
  4315  func (_c *MilvusServiceServer_SelectRole_Call) RunAndReturn(run func(context.Context, *milvuspb.SelectRoleRequest) (*milvuspb.SelectRoleResponse, error)) *MilvusServiceServer_SelectRole_Call {
  4316  	_c.Call.Return(run)
  4317  	return _c
  4318  }
  4319  
  4320  // SelectUser provides a mock function with given fields: _a0, _a1
  4321  func (_m *MilvusServiceServer) SelectUser(_a0 context.Context, _a1 *milvuspb.SelectUserRequest) (*milvuspb.SelectUserResponse, error) {
  4322  	ret := _m.Called(_a0, _a1)
  4323  
  4324  	var r0 *milvuspb.SelectUserResponse
  4325  	var r1 error
  4326  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.SelectUserRequest) (*milvuspb.SelectUserResponse, error)); ok {
  4327  		return rf(_a0, _a1)
  4328  	}
  4329  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.SelectUserRequest) *milvuspb.SelectUserResponse); ok {
  4330  		r0 = rf(_a0, _a1)
  4331  	} else {
  4332  		if ret.Get(0) != nil {
  4333  			r0 = ret.Get(0).(*milvuspb.SelectUserResponse)
  4334  		}
  4335  	}
  4336  
  4337  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.SelectUserRequest) error); ok {
  4338  		r1 = rf(_a0, _a1)
  4339  	} else {
  4340  		r1 = ret.Error(1)
  4341  	}
  4342  
  4343  	return r0, r1
  4344  }
  4345  
  4346  // MilvusServiceServer_SelectUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SelectUser'
  4347  type MilvusServiceServer_SelectUser_Call struct {
  4348  	*mock.Call
  4349  }
  4350  
  4351  // SelectUser is a helper method to define mock.On call
  4352  //   - _a0 context.Context
  4353  //   - _a1 *milvuspb.SelectUserRequest
  4354  func (_e *MilvusServiceServer_Expecter) SelectUser(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_SelectUser_Call {
  4355  	return &MilvusServiceServer_SelectUser_Call{Call: _e.mock.On("SelectUser", _a0, _a1)}
  4356  }
  4357  
  4358  func (_c *MilvusServiceServer_SelectUser_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.SelectUserRequest)) *MilvusServiceServer_SelectUser_Call {
  4359  	_c.Call.Run(func(args mock.Arguments) {
  4360  		run(args[0].(context.Context), args[1].(*milvuspb.SelectUserRequest))
  4361  	})
  4362  	return _c
  4363  }
  4364  
  4365  func (_c *MilvusServiceServer_SelectUser_Call) Return(_a0 *milvuspb.SelectUserResponse, _a1 error) *MilvusServiceServer_SelectUser_Call {
  4366  	_c.Call.Return(_a0, _a1)
  4367  	return _c
  4368  }
  4369  
  4370  func (_c *MilvusServiceServer_SelectUser_Call) RunAndReturn(run func(context.Context, *milvuspb.SelectUserRequest) (*milvuspb.SelectUserResponse, error)) *MilvusServiceServer_SelectUser_Call {
  4371  	_c.Call.Return(run)
  4372  	return _c
  4373  }
  4374  
  4375  // ShowCollections provides a mock function with given fields: _a0, _a1
  4376  func (_m *MilvusServiceServer) ShowCollections(_a0 context.Context, _a1 *milvuspb.ShowCollectionsRequest) (*milvuspb.ShowCollectionsResponse, error) {
  4377  	ret := _m.Called(_a0, _a1)
  4378  
  4379  	var r0 *milvuspb.ShowCollectionsResponse
  4380  	var r1 error
  4381  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.ShowCollectionsRequest) (*milvuspb.ShowCollectionsResponse, error)); ok {
  4382  		return rf(_a0, _a1)
  4383  	}
  4384  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.ShowCollectionsRequest) *milvuspb.ShowCollectionsResponse); ok {
  4385  		r0 = rf(_a0, _a1)
  4386  	} else {
  4387  		if ret.Get(0) != nil {
  4388  			r0 = ret.Get(0).(*milvuspb.ShowCollectionsResponse)
  4389  		}
  4390  	}
  4391  
  4392  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.ShowCollectionsRequest) error); ok {
  4393  		r1 = rf(_a0, _a1)
  4394  	} else {
  4395  		r1 = ret.Error(1)
  4396  	}
  4397  
  4398  	return r0, r1
  4399  }
  4400  
  4401  // MilvusServiceServer_ShowCollections_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShowCollections'
  4402  type MilvusServiceServer_ShowCollections_Call struct {
  4403  	*mock.Call
  4404  }
  4405  
  4406  // ShowCollections is a helper method to define mock.On call
  4407  //   - _a0 context.Context
  4408  //   - _a1 *milvuspb.ShowCollectionsRequest
  4409  func (_e *MilvusServiceServer_Expecter) ShowCollections(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_ShowCollections_Call {
  4410  	return &MilvusServiceServer_ShowCollections_Call{Call: _e.mock.On("ShowCollections", _a0, _a1)}
  4411  }
  4412  
  4413  func (_c *MilvusServiceServer_ShowCollections_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.ShowCollectionsRequest)) *MilvusServiceServer_ShowCollections_Call {
  4414  	_c.Call.Run(func(args mock.Arguments) {
  4415  		run(args[0].(context.Context), args[1].(*milvuspb.ShowCollectionsRequest))
  4416  	})
  4417  	return _c
  4418  }
  4419  
  4420  func (_c *MilvusServiceServer_ShowCollections_Call) Return(_a0 *milvuspb.ShowCollectionsResponse, _a1 error) *MilvusServiceServer_ShowCollections_Call {
  4421  	_c.Call.Return(_a0, _a1)
  4422  	return _c
  4423  }
  4424  
  4425  func (_c *MilvusServiceServer_ShowCollections_Call) RunAndReturn(run func(context.Context, *milvuspb.ShowCollectionsRequest) (*milvuspb.ShowCollectionsResponse, error)) *MilvusServiceServer_ShowCollections_Call {
  4426  	_c.Call.Return(run)
  4427  	return _c
  4428  }
  4429  
  4430  // ShowPartitions provides a mock function with given fields: _a0, _a1
  4431  func (_m *MilvusServiceServer) ShowPartitions(_a0 context.Context, _a1 *milvuspb.ShowPartitionsRequest) (*milvuspb.ShowPartitionsResponse, error) {
  4432  	ret := _m.Called(_a0, _a1)
  4433  
  4434  	var r0 *milvuspb.ShowPartitionsResponse
  4435  	var r1 error
  4436  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.ShowPartitionsRequest) (*milvuspb.ShowPartitionsResponse, error)); ok {
  4437  		return rf(_a0, _a1)
  4438  	}
  4439  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.ShowPartitionsRequest) *milvuspb.ShowPartitionsResponse); ok {
  4440  		r0 = rf(_a0, _a1)
  4441  	} else {
  4442  		if ret.Get(0) != nil {
  4443  			r0 = ret.Get(0).(*milvuspb.ShowPartitionsResponse)
  4444  		}
  4445  	}
  4446  
  4447  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.ShowPartitionsRequest) error); ok {
  4448  		r1 = rf(_a0, _a1)
  4449  	} else {
  4450  		r1 = ret.Error(1)
  4451  	}
  4452  
  4453  	return r0, r1
  4454  }
  4455  
  4456  // MilvusServiceServer_ShowPartitions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShowPartitions'
  4457  type MilvusServiceServer_ShowPartitions_Call struct {
  4458  	*mock.Call
  4459  }
  4460  
  4461  // ShowPartitions is a helper method to define mock.On call
  4462  //   - _a0 context.Context
  4463  //   - _a1 *milvuspb.ShowPartitionsRequest
  4464  func (_e *MilvusServiceServer_Expecter) ShowPartitions(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_ShowPartitions_Call {
  4465  	return &MilvusServiceServer_ShowPartitions_Call{Call: _e.mock.On("ShowPartitions", _a0, _a1)}
  4466  }
  4467  
  4468  func (_c *MilvusServiceServer_ShowPartitions_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.ShowPartitionsRequest)) *MilvusServiceServer_ShowPartitions_Call {
  4469  	_c.Call.Run(func(args mock.Arguments) {
  4470  		run(args[0].(context.Context), args[1].(*milvuspb.ShowPartitionsRequest))
  4471  	})
  4472  	return _c
  4473  }
  4474  
  4475  func (_c *MilvusServiceServer_ShowPartitions_Call) Return(_a0 *milvuspb.ShowPartitionsResponse, _a1 error) *MilvusServiceServer_ShowPartitions_Call {
  4476  	_c.Call.Return(_a0, _a1)
  4477  	return _c
  4478  }
  4479  
  4480  func (_c *MilvusServiceServer_ShowPartitions_Call) RunAndReturn(run func(context.Context, *milvuspb.ShowPartitionsRequest) (*milvuspb.ShowPartitionsResponse, error)) *MilvusServiceServer_ShowPartitions_Call {
  4481  	_c.Call.Return(run)
  4482  	return _c
  4483  }
  4484  
  4485  // TransferNode provides a mock function with given fields: _a0, _a1
  4486  func (_m *MilvusServiceServer) TransferNode(_a0 context.Context, _a1 *milvuspb.TransferNodeRequest) (*commonpb.Status, error) {
  4487  	ret := _m.Called(_a0, _a1)
  4488  
  4489  	var r0 *commonpb.Status
  4490  	var r1 error
  4491  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.TransferNodeRequest) (*commonpb.Status, error)); ok {
  4492  		return rf(_a0, _a1)
  4493  	}
  4494  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.TransferNodeRequest) *commonpb.Status); ok {
  4495  		r0 = rf(_a0, _a1)
  4496  	} else {
  4497  		if ret.Get(0) != nil {
  4498  			r0 = ret.Get(0).(*commonpb.Status)
  4499  		}
  4500  	}
  4501  
  4502  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.TransferNodeRequest) error); ok {
  4503  		r1 = rf(_a0, _a1)
  4504  	} else {
  4505  		r1 = ret.Error(1)
  4506  	}
  4507  
  4508  	return r0, r1
  4509  }
  4510  
  4511  // MilvusServiceServer_TransferNode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransferNode'
  4512  type MilvusServiceServer_TransferNode_Call struct {
  4513  	*mock.Call
  4514  }
  4515  
  4516  // TransferNode is a helper method to define mock.On call
  4517  //   - _a0 context.Context
  4518  //   - _a1 *milvuspb.TransferNodeRequest
  4519  func (_e *MilvusServiceServer_Expecter) TransferNode(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_TransferNode_Call {
  4520  	return &MilvusServiceServer_TransferNode_Call{Call: _e.mock.On("TransferNode", _a0, _a1)}
  4521  }
  4522  
  4523  func (_c *MilvusServiceServer_TransferNode_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.TransferNodeRequest)) *MilvusServiceServer_TransferNode_Call {
  4524  	_c.Call.Run(func(args mock.Arguments) {
  4525  		run(args[0].(context.Context), args[1].(*milvuspb.TransferNodeRequest))
  4526  	})
  4527  	return _c
  4528  }
  4529  
  4530  func (_c *MilvusServiceServer_TransferNode_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_TransferNode_Call {
  4531  	_c.Call.Return(_a0, _a1)
  4532  	return _c
  4533  }
  4534  
  4535  func (_c *MilvusServiceServer_TransferNode_Call) RunAndReturn(run func(context.Context, *milvuspb.TransferNodeRequest) (*commonpb.Status, error)) *MilvusServiceServer_TransferNode_Call {
  4536  	_c.Call.Return(run)
  4537  	return _c
  4538  }
  4539  
  4540  // TransferReplica provides a mock function with given fields: _a0, _a1
  4541  func (_m *MilvusServiceServer) TransferReplica(_a0 context.Context, _a1 *milvuspb.TransferReplicaRequest) (*commonpb.Status, error) {
  4542  	ret := _m.Called(_a0, _a1)
  4543  
  4544  	var r0 *commonpb.Status
  4545  	var r1 error
  4546  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.TransferReplicaRequest) (*commonpb.Status, error)); ok {
  4547  		return rf(_a0, _a1)
  4548  	}
  4549  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.TransferReplicaRequest) *commonpb.Status); ok {
  4550  		r0 = rf(_a0, _a1)
  4551  	} else {
  4552  		if ret.Get(0) != nil {
  4553  			r0 = ret.Get(0).(*commonpb.Status)
  4554  		}
  4555  	}
  4556  
  4557  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.TransferReplicaRequest) error); ok {
  4558  		r1 = rf(_a0, _a1)
  4559  	} else {
  4560  		r1 = ret.Error(1)
  4561  	}
  4562  
  4563  	return r0, r1
  4564  }
  4565  
  4566  // MilvusServiceServer_TransferReplica_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransferReplica'
  4567  type MilvusServiceServer_TransferReplica_Call struct {
  4568  	*mock.Call
  4569  }
  4570  
  4571  // TransferReplica is a helper method to define mock.On call
  4572  //   - _a0 context.Context
  4573  //   - _a1 *milvuspb.TransferReplicaRequest
  4574  func (_e *MilvusServiceServer_Expecter) TransferReplica(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_TransferReplica_Call {
  4575  	return &MilvusServiceServer_TransferReplica_Call{Call: _e.mock.On("TransferReplica", _a0, _a1)}
  4576  }
  4577  
  4578  func (_c *MilvusServiceServer_TransferReplica_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.TransferReplicaRequest)) *MilvusServiceServer_TransferReplica_Call {
  4579  	_c.Call.Run(func(args mock.Arguments) {
  4580  		run(args[0].(context.Context), args[1].(*milvuspb.TransferReplicaRequest))
  4581  	})
  4582  	return _c
  4583  }
  4584  
  4585  func (_c *MilvusServiceServer_TransferReplica_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_TransferReplica_Call {
  4586  	_c.Call.Return(_a0, _a1)
  4587  	return _c
  4588  }
  4589  
  4590  func (_c *MilvusServiceServer_TransferReplica_Call) RunAndReturn(run func(context.Context, *milvuspb.TransferReplicaRequest) (*commonpb.Status, error)) *MilvusServiceServer_TransferReplica_Call {
  4591  	_c.Call.Return(run)
  4592  	return _c
  4593  }
  4594  
  4595  // UpdateCredential provides a mock function with given fields: _a0, _a1
  4596  func (_m *MilvusServiceServer) UpdateCredential(_a0 context.Context, _a1 *milvuspb.UpdateCredentialRequest) (*commonpb.Status, error) {
  4597  	ret := _m.Called(_a0, _a1)
  4598  
  4599  	var r0 *commonpb.Status
  4600  	var r1 error
  4601  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.UpdateCredentialRequest) (*commonpb.Status, error)); ok {
  4602  		return rf(_a0, _a1)
  4603  	}
  4604  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.UpdateCredentialRequest) *commonpb.Status); ok {
  4605  		r0 = rf(_a0, _a1)
  4606  	} else {
  4607  		if ret.Get(0) != nil {
  4608  			r0 = ret.Get(0).(*commonpb.Status)
  4609  		}
  4610  	}
  4611  
  4612  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.UpdateCredentialRequest) error); ok {
  4613  		r1 = rf(_a0, _a1)
  4614  	} else {
  4615  		r1 = ret.Error(1)
  4616  	}
  4617  
  4618  	return r0, r1
  4619  }
  4620  
  4621  // MilvusServiceServer_UpdateCredential_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateCredential'
  4622  type MilvusServiceServer_UpdateCredential_Call struct {
  4623  	*mock.Call
  4624  }
  4625  
  4626  // UpdateCredential is a helper method to define mock.On call
  4627  //   - _a0 context.Context
  4628  //   - _a1 *milvuspb.UpdateCredentialRequest
  4629  func (_e *MilvusServiceServer_Expecter) UpdateCredential(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_UpdateCredential_Call {
  4630  	return &MilvusServiceServer_UpdateCredential_Call{Call: _e.mock.On("UpdateCredential", _a0, _a1)}
  4631  }
  4632  
  4633  func (_c *MilvusServiceServer_UpdateCredential_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.UpdateCredentialRequest)) *MilvusServiceServer_UpdateCredential_Call {
  4634  	_c.Call.Run(func(args mock.Arguments) {
  4635  		run(args[0].(context.Context), args[1].(*milvuspb.UpdateCredentialRequest))
  4636  	})
  4637  	return _c
  4638  }
  4639  
  4640  func (_c *MilvusServiceServer_UpdateCredential_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_UpdateCredential_Call {
  4641  	_c.Call.Return(_a0, _a1)
  4642  	return _c
  4643  }
  4644  
  4645  func (_c *MilvusServiceServer_UpdateCredential_Call) RunAndReturn(run func(context.Context, *milvuspb.UpdateCredentialRequest) (*commonpb.Status, error)) *MilvusServiceServer_UpdateCredential_Call {
  4646  	_c.Call.Return(run)
  4647  	return _c
  4648  }
  4649  
  4650  // UpdateResourceGroups provides a mock function with given fields: _a0, _a1
  4651  func (_m *MilvusServiceServer) UpdateResourceGroups(_a0 context.Context, _a1 *milvuspb.UpdateResourceGroupsRequest) (*commonpb.Status, error) {
  4652  	ret := _m.Called(_a0, _a1)
  4653  
  4654  	var r0 *commonpb.Status
  4655  	var r1 error
  4656  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.UpdateResourceGroupsRequest) (*commonpb.Status, error)); ok {
  4657  		return rf(_a0, _a1)
  4658  	}
  4659  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.UpdateResourceGroupsRequest) *commonpb.Status); ok {
  4660  		r0 = rf(_a0, _a1)
  4661  	} else {
  4662  		if ret.Get(0) != nil {
  4663  			r0 = ret.Get(0).(*commonpb.Status)
  4664  		}
  4665  	}
  4666  
  4667  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.UpdateResourceGroupsRequest) error); ok {
  4668  		r1 = rf(_a0, _a1)
  4669  	} else {
  4670  		r1 = ret.Error(1)
  4671  	}
  4672  
  4673  	return r0, r1
  4674  }
  4675  
  4676  // MilvusServiceServer_UpdateResourceGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateResourceGroups'
  4677  type MilvusServiceServer_UpdateResourceGroups_Call struct {
  4678  	*mock.Call
  4679  }
  4680  
  4681  // UpdateResourceGroups is a helper method to define mock.On call
  4682  //   - _a0 context.Context
  4683  //   - _a1 *milvuspb.UpdateResourceGroupsRequest
  4684  func (_e *MilvusServiceServer_Expecter) UpdateResourceGroups(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_UpdateResourceGroups_Call {
  4685  	return &MilvusServiceServer_UpdateResourceGroups_Call{Call: _e.mock.On("UpdateResourceGroups", _a0, _a1)}
  4686  }
  4687  
  4688  func (_c *MilvusServiceServer_UpdateResourceGroups_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.UpdateResourceGroupsRequest)) *MilvusServiceServer_UpdateResourceGroups_Call {
  4689  	_c.Call.Run(func(args mock.Arguments) {
  4690  		run(args[0].(context.Context), args[1].(*milvuspb.UpdateResourceGroupsRequest))
  4691  	})
  4692  	return _c
  4693  }
  4694  
  4695  func (_c *MilvusServiceServer_UpdateResourceGroups_Call) Return(_a0 *commonpb.Status, _a1 error) *MilvusServiceServer_UpdateResourceGroups_Call {
  4696  	_c.Call.Return(_a0, _a1)
  4697  	return _c
  4698  }
  4699  
  4700  func (_c *MilvusServiceServer_UpdateResourceGroups_Call) RunAndReturn(run func(context.Context, *milvuspb.UpdateResourceGroupsRequest) (*commonpb.Status, error)) *MilvusServiceServer_UpdateResourceGroups_Call {
  4701  	_c.Call.Return(run)
  4702  	return _c
  4703  }
  4704  
  4705  // Upsert provides a mock function with given fields: _a0, _a1
  4706  func (_m *MilvusServiceServer) Upsert(_a0 context.Context, _a1 *milvuspb.UpsertRequest) (*milvuspb.MutationResult, error) {
  4707  	ret := _m.Called(_a0, _a1)
  4708  
  4709  	var r0 *milvuspb.MutationResult
  4710  	var r1 error
  4711  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.UpsertRequest) (*milvuspb.MutationResult, error)); ok {
  4712  		return rf(_a0, _a1)
  4713  	}
  4714  	if rf, ok := ret.Get(0).(func(context.Context, *milvuspb.UpsertRequest) *milvuspb.MutationResult); ok {
  4715  		r0 = rf(_a0, _a1)
  4716  	} else {
  4717  		if ret.Get(0) != nil {
  4718  			r0 = ret.Get(0).(*milvuspb.MutationResult)
  4719  		}
  4720  	}
  4721  
  4722  	if rf, ok := ret.Get(1).(func(context.Context, *milvuspb.UpsertRequest) error); ok {
  4723  		r1 = rf(_a0, _a1)
  4724  	} else {
  4725  		r1 = ret.Error(1)
  4726  	}
  4727  
  4728  	return r0, r1
  4729  }
  4730  
  4731  // MilvusServiceServer_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
  4732  type MilvusServiceServer_Upsert_Call struct {
  4733  	*mock.Call
  4734  }
  4735  
  4736  // Upsert is a helper method to define mock.On call
  4737  //   - _a0 context.Context
  4738  //   - _a1 *milvuspb.UpsertRequest
  4739  func (_e *MilvusServiceServer_Expecter) Upsert(_a0 interface{}, _a1 interface{}) *MilvusServiceServer_Upsert_Call {
  4740  	return &MilvusServiceServer_Upsert_Call{Call: _e.mock.On("Upsert", _a0, _a1)}
  4741  }
  4742  
  4743  func (_c *MilvusServiceServer_Upsert_Call) Run(run func(_a0 context.Context, _a1 *milvuspb.UpsertRequest)) *MilvusServiceServer_Upsert_Call {
  4744  	_c.Call.Run(func(args mock.Arguments) {
  4745  		run(args[0].(context.Context), args[1].(*milvuspb.UpsertRequest))
  4746  	})
  4747  	return _c
  4748  }
  4749  
  4750  func (_c *MilvusServiceServer_Upsert_Call) Return(_a0 *milvuspb.MutationResult, _a1 error) *MilvusServiceServer_Upsert_Call {
  4751  	_c.Call.Return(_a0, _a1)
  4752  	return _c
  4753  }
  4754  
  4755  func (_c *MilvusServiceServer_Upsert_Call) RunAndReturn(run func(context.Context, *milvuspb.UpsertRequest) (*milvuspb.MutationResult, error)) *MilvusServiceServer_Upsert_Call {
  4756  	_c.Call.Return(run)
  4757  	return _c
  4758  }
  4759  
  4760  // NewMilvusServiceServer creates a new instance of MilvusServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
  4761  // The first argument is typically a *testing.T value.
  4762  func NewMilvusServiceServer(t interface {
  4763  	mock.TestingT
  4764  	Cleanup(func())
  4765  }) *MilvusServiceServer {
  4766  	mock := &MilvusServiceServer{}
  4767  	mock.Mock.Test(t)
  4768  
  4769  	t.Cleanup(func() { mock.AssertExpectations(t) })
  4770  
  4771  	return mock
  4772  }