mock_milvus_server_test.go 183 KB

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