Control.cs 214 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249
  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: src/proto/grpc/testing/control.proto
  4. // </auto-generated>
  5. #pragma warning disable 1591, 0612, 3021
  6. #region Designer generated code
  7. using pb = global::Google.Protobuf;
  8. using pbc = global::Google.Protobuf.Collections;
  9. using pbr = global::Google.Protobuf.Reflection;
  10. using scg = global::System.Collections.Generic;
  11. namespace Grpc.Testing {
  12. /// <summary>Holder for reflection information generated from src/proto/grpc/testing/control.proto</summary>
  13. public static partial class ControlReflection {
  14. #region Descriptor
  15. /// <summary>File descriptor for src/proto/grpc/testing/control.proto</summary>
  16. public static pbr::FileDescriptor Descriptor {
  17. get { return descriptor; }
  18. }
  19. private static pbr::FileDescriptor descriptor;
  20. static ControlReflection() {
  21. byte[] descriptorData = global::System.Convert.FromBase64String(
  22. string.Concat(
  23. "CiRzcmMvcHJvdG8vZ3JwYy90ZXN0aW5nL2NvbnRyb2wucHJvdG8SDGdycGMu",
  24. "dGVzdGluZxolc3JjL3Byb3RvL2dycGMvdGVzdGluZy9wYXlsb2Fkcy5wcm90",
  25. "bxoic3JjL3Byb3RvL2dycGMvdGVzdGluZy9zdGF0cy5wcm90byIlCg1Qb2lz",
  26. "c29uUGFyYW1zEhQKDG9mZmVyZWRfbG9hZBgBIAEoASISChBDbG9zZWRMb29w",
  27. "UGFyYW1zInsKCkxvYWRQYXJhbXMSNQoLY2xvc2VkX2xvb3AYASABKAsyHi5n",
  28. "cnBjLnRlc3RpbmcuQ2xvc2VkTG9vcFBhcmFtc0gAEi4KB3BvaXNzb24YAiAB",
  29. "KAsyGy5ncnBjLnRlc3RpbmcuUG9pc3NvblBhcmFtc0gAQgYKBGxvYWQiVgoO",
  30. "U2VjdXJpdHlQYXJhbXMSEwoLdXNlX3Rlc3RfY2EYASABKAgSHAoUc2VydmVy",
  31. "X2hvc3Rfb3ZlcnJpZGUYAiABKAkSEQoJY3JlZF90eXBlGAMgASgJIk0KCkNo",
  32. "YW5uZWxBcmcSDAoEbmFtZRgBIAEoCRITCglzdHJfdmFsdWUYAiABKAlIABIT",
  33. "CglpbnRfdmFsdWUYAyABKAVIAEIHCgV2YWx1ZSK8BQoMQ2xpZW50Q29uZmln",
  34. "EhYKDnNlcnZlcl90YXJnZXRzGAEgAygJEi0KC2NsaWVudF90eXBlGAIgASgO",
  35. "MhguZ3JwYy50ZXN0aW5nLkNsaWVudFR5cGUSNQoPc2VjdXJpdHlfcGFyYW1z",
  36. "GAMgASgLMhwuZ3JwYy50ZXN0aW5nLlNlY3VyaXR5UGFyYW1zEiQKHG91dHN0",
  37. "YW5kaW5nX3JwY3NfcGVyX2NoYW5uZWwYBCABKAUSFwoPY2xpZW50X2NoYW5u",
  38. "ZWxzGAUgASgFEhwKFGFzeW5jX2NsaWVudF90aHJlYWRzGAcgASgFEicKCHJw",
  39. "Y190eXBlGAggASgOMhUuZ3JwYy50ZXN0aW5nLlJwY1R5cGUSLQoLbG9hZF9w",
  40. "YXJhbXMYCiABKAsyGC5ncnBjLnRlc3RpbmcuTG9hZFBhcmFtcxIzCg5wYXls",
  41. "b2FkX2NvbmZpZxgLIAEoCzIbLmdycGMudGVzdGluZy5QYXlsb2FkQ29uZmln",
  42. "EjcKEGhpc3RvZ3JhbV9wYXJhbXMYDCABKAsyHS5ncnBjLnRlc3RpbmcuSGlz",
  43. "dG9ncmFtUGFyYW1zEhEKCWNvcmVfbGlzdBgNIAMoBRISCgpjb3JlX2xpbWl0",
  44. "GA4gASgFEhgKEG90aGVyX2NsaWVudF9hcGkYDyABKAkSLgoMY2hhbm5lbF9h",
  45. "cmdzGBAgAygLMhguZ3JwYy50ZXN0aW5nLkNoYW5uZWxBcmcSFgoOdGhyZWFk",
  46. "c19wZXJfY3EYESABKAUSGwoTbWVzc2FnZXNfcGVyX3N0cmVhbRgSIAEoBRIY",
  47. "ChB1c2VfY29hbGVzY2VfYXBpGBMgASgIEjEKKW1lZGlhbl9sYXRlbmN5X2Nv",
  48. "bGxlY3Rpb25faW50ZXJ2YWxfbWlsbGlzGBQgASgFEhgKEGNsaWVudF9wcm9j",
  49. "ZXNzZXMYFSABKAUiOAoMQ2xpZW50U3RhdHVzEigKBXN0YXRzGAEgASgLMhku",
  50. "Z3JwYy50ZXN0aW5nLkNsaWVudFN0YXRzIhUKBE1hcmsSDQoFcmVzZXQYASAB",
  51. "KAgiaAoKQ2xpZW50QXJncxIrCgVzZXR1cBgBIAEoCzIaLmdycGMudGVzdGlu",
  52. "Zy5DbGllbnRDb25maWdIABIiCgRtYXJrGAIgASgLMhIuZ3JwYy50ZXN0aW5n",
  53. "Lk1hcmtIAEIJCgdhcmd0eXBlIpcDCgxTZXJ2ZXJDb25maWcSLQoLc2VydmVy",
  54. "X3R5cGUYASABKA4yGC5ncnBjLnRlc3RpbmcuU2VydmVyVHlwZRI1Cg9zZWN1",
  55. "cml0eV9wYXJhbXMYAiABKAsyHC5ncnBjLnRlc3RpbmcuU2VjdXJpdHlQYXJh",
  56. "bXMSDAoEcG9ydBgEIAEoBRIcChRhc3luY19zZXJ2ZXJfdGhyZWFkcxgHIAEo",
  57. "BRISCgpjb3JlX2xpbWl0GAggASgFEjMKDnBheWxvYWRfY29uZmlnGAkgASgL",
  58. "MhsuZ3JwYy50ZXN0aW5nLlBheWxvYWRDb25maWcSEQoJY29yZV9saXN0GAog",
  59. "AygFEhgKEG90aGVyX3NlcnZlcl9hcGkYCyABKAkSFgoOdGhyZWFkc19wZXJf",
  60. "Y3EYDCABKAUSHAoTcmVzb3VyY2VfcXVvdGFfc2l6ZRjpByABKAUSLwoMY2hh",
  61. "bm5lbF9hcmdzGOoHIAMoCzIYLmdycGMudGVzdGluZy5DaGFubmVsQXJnEhgK",
  62. "EHNlcnZlcl9wcm9jZXNzZXMYFSABKAUiaAoKU2VydmVyQXJncxIrCgVzZXR1",
  63. "cBgBIAEoCzIaLmdycGMudGVzdGluZy5TZXJ2ZXJDb25maWdIABIiCgRtYXJr",
  64. "GAIgASgLMhIuZ3JwYy50ZXN0aW5nLk1hcmtIAEIJCgdhcmd0eXBlIlUKDFNl",
  65. "cnZlclN0YXR1cxIoCgVzdGF0cxgBIAEoCzIZLmdycGMudGVzdGluZy5TZXJ2",
  66. "ZXJTdGF0cxIMCgRwb3J0GAIgASgFEg0KBWNvcmVzGAMgASgFIg0KC0NvcmVS",
  67. "ZXF1ZXN0Ih0KDENvcmVSZXNwb25zZRINCgVjb3JlcxgBIAEoBSIGCgRWb2lk",
  68. "Iv0BCghTY2VuYXJpbxIMCgRuYW1lGAEgASgJEjEKDWNsaWVudF9jb25maWcY",
  69. "AiABKAsyGi5ncnBjLnRlc3RpbmcuQ2xpZW50Q29uZmlnEhMKC251bV9jbGll",
  70. "bnRzGAMgASgFEjEKDXNlcnZlcl9jb25maWcYBCABKAsyGi5ncnBjLnRlc3Rp",
  71. "bmcuU2VydmVyQ29uZmlnEhMKC251bV9zZXJ2ZXJzGAUgASgFEhYKDndhcm11",
  72. "cF9zZWNvbmRzGAYgASgFEhkKEWJlbmNobWFya19zZWNvbmRzGAcgASgFEiAK",
  73. "GHNwYXduX2xvY2FsX3dvcmtlcl9jb3VudBgIIAEoBSI2CglTY2VuYXJpb3MS",
  74. "KQoJc2NlbmFyaW9zGAEgAygLMhYuZ3JwYy50ZXN0aW5nLlNjZW5hcmlvIoQE",
  75. "ChVTY2VuYXJpb1Jlc3VsdFN1bW1hcnkSCwoDcXBzGAEgASgBEhsKE3Fwc19w",
  76. "ZXJfc2VydmVyX2NvcmUYAiABKAESGgoSc2VydmVyX3N5c3RlbV90aW1lGAMg",
  77. "ASgBEhgKEHNlcnZlcl91c2VyX3RpbWUYBCABKAESGgoSY2xpZW50X3N5c3Rl",
  78. "bV90aW1lGAUgASgBEhgKEGNsaWVudF91c2VyX3RpbWUYBiABKAESEgoKbGF0",
  79. "ZW5jeV81MBgHIAEoARISCgpsYXRlbmN5XzkwGAggASgBEhIKCmxhdGVuY3lf",
  80. "OTUYCSABKAESEgoKbGF0ZW5jeV85ORgKIAEoARITCgtsYXRlbmN5Xzk5ORgL",
  81. "IAEoARIYChBzZXJ2ZXJfY3B1X3VzYWdlGAwgASgBEiYKHnN1Y2Nlc3NmdWxf",
  82. "cmVxdWVzdHNfcGVyX3NlY29uZBgNIAEoARIiChpmYWlsZWRfcmVxdWVzdHNf",
  83. "cGVyX3NlY29uZBgOIAEoARIgChhjbGllbnRfcG9sbHNfcGVyX3JlcXVlc3QY",
  84. "DyABKAESIAoYc2VydmVyX3BvbGxzX3Blcl9yZXF1ZXN0GBAgASgBEiIKGnNl",
  85. "cnZlcl9xdWVyaWVzX3Blcl9jcHVfc2VjGBEgASgBEiIKGmNsaWVudF9xdWVy",
  86. "aWVzX3Blcl9jcHVfc2VjGBIgASgBIoMDCg5TY2VuYXJpb1Jlc3VsdBIoCghz",
  87. "Y2VuYXJpbxgBIAEoCzIWLmdycGMudGVzdGluZy5TY2VuYXJpbxIuCglsYXRl",
  88. "bmNpZXMYAiABKAsyGy5ncnBjLnRlc3RpbmcuSGlzdG9ncmFtRGF0YRIvCgxj",
  89. "bGllbnRfc3RhdHMYAyADKAsyGS5ncnBjLnRlc3RpbmcuQ2xpZW50U3RhdHMS",
  90. "LwoMc2VydmVyX3N0YXRzGAQgAygLMhkuZ3JwYy50ZXN0aW5nLlNlcnZlclN0",
  91. "YXRzEhQKDHNlcnZlcl9jb3JlcxgFIAMoBRI0CgdzdW1tYXJ5GAYgASgLMiMu",
  92. "Z3JwYy50ZXN0aW5nLlNjZW5hcmlvUmVzdWx0U3VtbWFyeRIWCg5jbGllbnRf",
  93. "c3VjY2VzcxgHIAMoCBIWCg5zZXJ2ZXJfc3VjY2VzcxgIIAMoCBI5Cg9yZXF1",
  94. "ZXN0X3Jlc3VsdHMYCSADKAsyIC5ncnBjLnRlc3RpbmcuUmVxdWVzdFJlc3Vs",
  95. "dENvdW50KlYKCkNsaWVudFR5cGUSDwoLU1lOQ19DTElFTlQQABIQCgxBU1lO",
  96. "Q19DTElFTlQQARIQCgxPVEhFUl9DTElFTlQQAhITCg9DQUxMQkFDS19DTElF",
  97. "TlQQAypwCgpTZXJ2ZXJUeXBlEg8KC1NZTkNfU0VSVkVSEAASEAoMQVNZTkNf",
  98. "U0VSVkVSEAESGAoUQVNZTkNfR0VORVJJQ19TRVJWRVIQAhIQCgxPVEhFUl9T",
  99. "RVJWRVIQAxITCg9DQUxMQkFDS19TRVJWRVIQBCpyCgdScGNUeXBlEgkKBVVO",
  100. "QVJZEAASDQoJU1RSRUFNSU5HEAESGQoVU1RSRUFNSU5HX0ZST01fQ0xJRU5U",
  101. "EAISGQoVU1RSRUFNSU5HX0ZST01fU0VSVkVSEAMSFwoTU1RSRUFNSU5HX0JP",
  102. "VEhfV0FZUxAEYgZwcm90bzM="));
  103. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  104. new pbr::FileDescriptor[] { global::Grpc.Testing.PayloadsReflection.Descriptor, global::Grpc.Testing.StatsReflection.Descriptor, },
  105. new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Grpc.Testing.ClientType), typeof(global::Grpc.Testing.ServerType), typeof(global::Grpc.Testing.RpcType), }, null, new pbr::GeneratedClrTypeInfo[] {
  106. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.PoissonParams), global::Grpc.Testing.PoissonParams.Parser, new[]{ "OfferedLoad" }, null, null, null, null),
  107. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ClosedLoopParams), global::Grpc.Testing.ClosedLoopParams.Parser, null, null, null, null, null),
  108. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.LoadParams), global::Grpc.Testing.LoadParams.Parser, new[]{ "ClosedLoop", "Poisson" }, new[]{ "Load" }, null, null, null),
  109. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.SecurityParams), global::Grpc.Testing.SecurityParams.Parser, new[]{ "UseTestCa", "ServerHostOverride", "CredType" }, null, null, null, null),
  110. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ChannelArg), global::Grpc.Testing.ChannelArg.Parser, new[]{ "Name", "StrValue", "IntValue" }, new[]{ "Value" }, null, null, null),
  111. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ClientConfig), global::Grpc.Testing.ClientConfig.Parser, new[]{ "ServerTargets", "ClientType", "SecurityParams", "OutstandingRpcsPerChannel", "ClientChannels", "AsyncClientThreads", "RpcType", "LoadParams", "PayloadConfig", "HistogramParams", "CoreList", "CoreLimit", "OtherClientApi", "ChannelArgs", "ThreadsPerCq", "MessagesPerStream", "UseCoalesceApi", "MedianLatencyCollectionIntervalMillis", "ClientProcesses" }, null, null, null, null),
  112. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ClientStatus), global::Grpc.Testing.ClientStatus.Parser, new[]{ "Stats" }, null, null, null, null),
  113. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.Mark), global::Grpc.Testing.Mark.Parser, new[]{ "Reset" }, null, null, null, null),
  114. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ClientArgs), global::Grpc.Testing.ClientArgs.Parser, new[]{ "Setup", "Mark" }, new[]{ "Argtype" }, null, null, null),
  115. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ServerConfig), global::Grpc.Testing.ServerConfig.Parser, new[]{ "ServerType", "SecurityParams", "Port", "AsyncServerThreads", "CoreLimit", "PayloadConfig", "CoreList", "OtherServerApi", "ThreadsPerCq", "ResourceQuotaSize", "ChannelArgs", "ServerProcesses" }, null, null, null, null),
  116. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ServerArgs), global::Grpc.Testing.ServerArgs.Parser, new[]{ "Setup", "Mark" }, new[]{ "Argtype" }, null, null, null),
  117. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ServerStatus), global::Grpc.Testing.ServerStatus.Parser, new[]{ "Stats", "Port", "Cores" }, null, null, null, null),
  118. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.CoreRequest), global::Grpc.Testing.CoreRequest.Parser, null, null, null, null, null),
  119. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.CoreResponse), global::Grpc.Testing.CoreResponse.Parser, new[]{ "Cores" }, null, null, null, null),
  120. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.Void), global::Grpc.Testing.Void.Parser, null, null, null, null, null),
  121. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.Scenario), global::Grpc.Testing.Scenario.Parser, new[]{ "Name", "ClientConfig", "NumClients", "ServerConfig", "NumServers", "WarmupSeconds", "BenchmarkSeconds", "SpawnLocalWorkerCount" }, null, null, null, null),
  122. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.Scenarios), global::Grpc.Testing.Scenarios.Parser, new[]{ "Scenarios_" }, null, null, null, null),
  123. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ScenarioResultSummary), global::Grpc.Testing.ScenarioResultSummary.Parser, new[]{ "Qps", "QpsPerServerCore", "ServerSystemTime", "ServerUserTime", "ClientSystemTime", "ClientUserTime", "Latency50", "Latency90", "Latency95", "Latency99", "Latency999", "ServerCpuUsage", "SuccessfulRequestsPerSecond", "FailedRequestsPerSecond", "ClientPollsPerRequest", "ServerPollsPerRequest", "ServerQueriesPerCpuSec", "ClientQueriesPerCpuSec" }, null, null, null, null),
  124. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ScenarioResult), global::Grpc.Testing.ScenarioResult.Parser, new[]{ "Scenario", "Latencies", "ClientStats", "ServerStats", "ServerCores", "Summary", "ClientSuccess", "ServerSuccess", "RequestResults" }, null, null, null, null)
  125. }));
  126. }
  127. #endregion
  128. }
  129. #region Enums
  130. public enum ClientType {
  131. /// <summary>
  132. /// Many languages support a basic distinction between using
  133. /// sync or async client, and this allows the specification
  134. /// </summary>
  135. [pbr::OriginalName("SYNC_CLIENT")] SyncClient = 0,
  136. [pbr::OriginalName("ASYNC_CLIENT")] AsyncClient = 1,
  137. /// <summary>
  138. /// used for some language-specific variants
  139. /// </summary>
  140. [pbr::OriginalName("OTHER_CLIENT")] OtherClient = 2,
  141. [pbr::OriginalName("CALLBACK_CLIENT")] CallbackClient = 3,
  142. }
  143. public enum ServerType {
  144. [pbr::OriginalName("SYNC_SERVER")] SyncServer = 0,
  145. [pbr::OriginalName("ASYNC_SERVER")] AsyncServer = 1,
  146. [pbr::OriginalName("ASYNC_GENERIC_SERVER")] AsyncGenericServer = 2,
  147. /// <summary>
  148. /// used for some language-specific variants
  149. /// </summary>
  150. [pbr::OriginalName("OTHER_SERVER")] OtherServer = 3,
  151. [pbr::OriginalName("CALLBACK_SERVER")] CallbackServer = 4,
  152. }
  153. public enum RpcType {
  154. [pbr::OriginalName("UNARY")] Unary = 0,
  155. [pbr::OriginalName("STREAMING")] Streaming = 1,
  156. [pbr::OriginalName("STREAMING_FROM_CLIENT")] StreamingFromClient = 2,
  157. [pbr::OriginalName("STREAMING_FROM_SERVER")] StreamingFromServer = 3,
  158. [pbr::OriginalName("STREAMING_BOTH_WAYS")] StreamingBothWays = 4,
  159. }
  160. #endregion
  161. #region Messages
  162. /// <summary>
  163. /// Parameters of poisson process distribution, which is a good representation
  164. /// of activity coming in from independent identical stationary sources.
  165. /// </summary>
  166. public sealed partial class PoissonParams : pb::IMessage<PoissonParams>
  167. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  168. , pb::IBufferMessage
  169. #endif
  170. {
  171. private static readonly pb::MessageParser<PoissonParams> _parser = new pb::MessageParser<PoissonParams>(() => new PoissonParams());
  172. private pb::UnknownFieldSet _unknownFields;
  173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  174. public static pb::MessageParser<PoissonParams> Parser { get { return _parser; } }
  175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  176. public static pbr::MessageDescriptor Descriptor {
  177. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[0]; }
  178. }
  179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  180. pbr::MessageDescriptor pb::IMessage.Descriptor {
  181. get { return Descriptor; }
  182. }
  183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  184. public PoissonParams() {
  185. OnConstruction();
  186. }
  187. partial void OnConstruction();
  188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  189. public PoissonParams(PoissonParams other) : this() {
  190. offeredLoad_ = other.offeredLoad_;
  191. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  192. }
  193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  194. public PoissonParams Clone() {
  195. return new PoissonParams(this);
  196. }
  197. /// <summary>Field number for the "offered_load" field.</summary>
  198. public const int OfferedLoadFieldNumber = 1;
  199. private double offeredLoad_;
  200. /// <summary>
  201. /// The rate of arrivals (a.k.a. lambda parameter of the exp distribution).
  202. /// </summary>
  203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  204. public double OfferedLoad {
  205. get { return offeredLoad_; }
  206. set {
  207. offeredLoad_ = value;
  208. }
  209. }
  210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  211. public override bool Equals(object other) {
  212. return Equals(other as PoissonParams);
  213. }
  214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  215. public bool Equals(PoissonParams other) {
  216. if (ReferenceEquals(other, null)) {
  217. return false;
  218. }
  219. if (ReferenceEquals(other, this)) {
  220. return true;
  221. }
  222. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OfferedLoad, other.OfferedLoad)) return false;
  223. return Equals(_unknownFields, other._unknownFields);
  224. }
  225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  226. public override int GetHashCode() {
  227. int hash = 1;
  228. if (OfferedLoad != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OfferedLoad);
  229. if (_unknownFields != null) {
  230. hash ^= _unknownFields.GetHashCode();
  231. }
  232. return hash;
  233. }
  234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  235. public override string ToString() {
  236. return pb::JsonFormatter.ToDiagnosticString(this);
  237. }
  238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  239. public void WriteTo(pb::CodedOutputStream output) {
  240. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  241. output.WriteRawMessage(this);
  242. #else
  243. if (OfferedLoad != 0D) {
  244. output.WriteRawTag(9);
  245. output.WriteDouble(OfferedLoad);
  246. }
  247. if (_unknownFields != null) {
  248. _unknownFields.WriteTo(output);
  249. }
  250. #endif
  251. }
  252. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  254. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  255. if (OfferedLoad != 0D) {
  256. output.WriteRawTag(9);
  257. output.WriteDouble(OfferedLoad);
  258. }
  259. if (_unknownFields != null) {
  260. _unknownFields.WriteTo(ref output);
  261. }
  262. }
  263. #endif
  264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  265. public int CalculateSize() {
  266. int size = 0;
  267. if (OfferedLoad != 0D) {
  268. size += 1 + 8;
  269. }
  270. if (_unknownFields != null) {
  271. size += _unknownFields.CalculateSize();
  272. }
  273. return size;
  274. }
  275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  276. public void MergeFrom(PoissonParams other) {
  277. if (other == null) {
  278. return;
  279. }
  280. if (other.OfferedLoad != 0D) {
  281. OfferedLoad = other.OfferedLoad;
  282. }
  283. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  284. }
  285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  286. public void MergeFrom(pb::CodedInputStream input) {
  287. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  288. input.ReadRawMessage(this);
  289. #else
  290. uint tag;
  291. while ((tag = input.ReadTag()) != 0) {
  292. switch(tag) {
  293. default:
  294. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  295. break;
  296. case 9: {
  297. OfferedLoad = input.ReadDouble();
  298. break;
  299. }
  300. }
  301. }
  302. #endif
  303. }
  304. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  306. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  307. uint tag;
  308. while ((tag = input.ReadTag()) != 0) {
  309. switch(tag) {
  310. default:
  311. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  312. break;
  313. case 9: {
  314. OfferedLoad = input.ReadDouble();
  315. break;
  316. }
  317. }
  318. }
  319. }
  320. #endif
  321. }
  322. /// <summary>
  323. /// Once an RPC finishes, immediately start a new one.
  324. /// No configuration parameters needed.
  325. /// </summary>
  326. public sealed partial class ClosedLoopParams : pb::IMessage<ClosedLoopParams>
  327. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  328. , pb::IBufferMessage
  329. #endif
  330. {
  331. private static readonly pb::MessageParser<ClosedLoopParams> _parser = new pb::MessageParser<ClosedLoopParams>(() => new ClosedLoopParams());
  332. private pb::UnknownFieldSet _unknownFields;
  333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  334. public static pb::MessageParser<ClosedLoopParams> Parser { get { return _parser; } }
  335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  336. public static pbr::MessageDescriptor Descriptor {
  337. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[1]; }
  338. }
  339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  340. pbr::MessageDescriptor pb::IMessage.Descriptor {
  341. get { return Descriptor; }
  342. }
  343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  344. public ClosedLoopParams() {
  345. OnConstruction();
  346. }
  347. partial void OnConstruction();
  348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  349. public ClosedLoopParams(ClosedLoopParams other) : this() {
  350. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  351. }
  352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  353. public ClosedLoopParams Clone() {
  354. return new ClosedLoopParams(this);
  355. }
  356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  357. public override bool Equals(object other) {
  358. return Equals(other as ClosedLoopParams);
  359. }
  360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  361. public bool Equals(ClosedLoopParams other) {
  362. if (ReferenceEquals(other, null)) {
  363. return false;
  364. }
  365. if (ReferenceEquals(other, this)) {
  366. return true;
  367. }
  368. return Equals(_unknownFields, other._unknownFields);
  369. }
  370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  371. public override int GetHashCode() {
  372. int hash = 1;
  373. if (_unknownFields != null) {
  374. hash ^= _unknownFields.GetHashCode();
  375. }
  376. return hash;
  377. }
  378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  379. public override string ToString() {
  380. return pb::JsonFormatter.ToDiagnosticString(this);
  381. }
  382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  383. public void WriteTo(pb::CodedOutputStream output) {
  384. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  385. output.WriteRawMessage(this);
  386. #else
  387. if (_unknownFields != null) {
  388. _unknownFields.WriteTo(output);
  389. }
  390. #endif
  391. }
  392. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  394. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  395. if (_unknownFields != null) {
  396. _unknownFields.WriteTo(ref output);
  397. }
  398. }
  399. #endif
  400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  401. public int CalculateSize() {
  402. int size = 0;
  403. if (_unknownFields != null) {
  404. size += _unknownFields.CalculateSize();
  405. }
  406. return size;
  407. }
  408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  409. public void MergeFrom(ClosedLoopParams other) {
  410. if (other == null) {
  411. return;
  412. }
  413. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  414. }
  415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  416. public void MergeFrom(pb::CodedInputStream input) {
  417. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  418. input.ReadRawMessage(this);
  419. #else
  420. uint tag;
  421. while ((tag = input.ReadTag()) != 0) {
  422. switch(tag) {
  423. default:
  424. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  425. break;
  426. }
  427. }
  428. #endif
  429. }
  430. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  432. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  433. uint tag;
  434. while ((tag = input.ReadTag()) != 0) {
  435. switch(tag) {
  436. default:
  437. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  438. break;
  439. }
  440. }
  441. }
  442. #endif
  443. }
  444. public sealed partial class LoadParams : pb::IMessage<LoadParams>
  445. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  446. , pb::IBufferMessage
  447. #endif
  448. {
  449. private static readonly pb::MessageParser<LoadParams> _parser = new pb::MessageParser<LoadParams>(() => new LoadParams());
  450. private pb::UnknownFieldSet _unknownFields;
  451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  452. public static pb::MessageParser<LoadParams> Parser { get { return _parser; } }
  453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  454. public static pbr::MessageDescriptor Descriptor {
  455. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[2]; }
  456. }
  457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  458. pbr::MessageDescriptor pb::IMessage.Descriptor {
  459. get { return Descriptor; }
  460. }
  461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  462. public LoadParams() {
  463. OnConstruction();
  464. }
  465. partial void OnConstruction();
  466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  467. public LoadParams(LoadParams other) : this() {
  468. switch (other.LoadCase) {
  469. case LoadOneofCase.ClosedLoop:
  470. ClosedLoop = other.ClosedLoop.Clone();
  471. break;
  472. case LoadOneofCase.Poisson:
  473. Poisson = other.Poisson.Clone();
  474. break;
  475. }
  476. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  477. }
  478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  479. public LoadParams Clone() {
  480. return new LoadParams(this);
  481. }
  482. /// <summary>Field number for the "closed_loop" field.</summary>
  483. public const int ClosedLoopFieldNumber = 1;
  484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  485. public global::Grpc.Testing.ClosedLoopParams ClosedLoop {
  486. get { return loadCase_ == LoadOneofCase.ClosedLoop ? (global::Grpc.Testing.ClosedLoopParams) load_ : null; }
  487. set {
  488. load_ = value;
  489. loadCase_ = value == null ? LoadOneofCase.None : LoadOneofCase.ClosedLoop;
  490. }
  491. }
  492. /// <summary>Field number for the "poisson" field.</summary>
  493. public const int PoissonFieldNumber = 2;
  494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  495. public global::Grpc.Testing.PoissonParams Poisson {
  496. get { return loadCase_ == LoadOneofCase.Poisson ? (global::Grpc.Testing.PoissonParams) load_ : null; }
  497. set {
  498. load_ = value;
  499. loadCase_ = value == null ? LoadOneofCase.None : LoadOneofCase.Poisson;
  500. }
  501. }
  502. private object load_;
  503. /// <summary>Enum of possible cases for the "load" oneof.</summary>
  504. public enum LoadOneofCase {
  505. None = 0,
  506. ClosedLoop = 1,
  507. Poisson = 2,
  508. }
  509. private LoadOneofCase loadCase_ = LoadOneofCase.None;
  510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  511. public LoadOneofCase LoadCase {
  512. get { return loadCase_; }
  513. }
  514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  515. public void ClearLoad() {
  516. loadCase_ = LoadOneofCase.None;
  517. load_ = null;
  518. }
  519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  520. public override bool Equals(object other) {
  521. return Equals(other as LoadParams);
  522. }
  523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  524. public bool Equals(LoadParams other) {
  525. if (ReferenceEquals(other, null)) {
  526. return false;
  527. }
  528. if (ReferenceEquals(other, this)) {
  529. return true;
  530. }
  531. if (!object.Equals(ClosedLoop, other.ClosedLoop)) return false;
  532. if (!object.Equals(Poisson, other.Poisson)) return false;
  533. if (LoadCase != other.LoadCase) return false;
  534. return Equals(_unknownFields, other._unknownFields);
  535. }
  536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  537. public override int GetHashCode() {
  538. int hash = 1;
  539. if (loadCase_ == LoadOneofCase.ClosedLoop) hash ^= ClosedLoop.GetHashCode();
  540. if (loadCase_ == LoadOneofCase.Poisson) hash ^= Poisson.GetHashCode();
  541. hash ^= (int) loadCase_;
  542. if (_unknownFields != null) {
  543. hash ^= _unknownFields.GetHashCode();
  544. }
  545. return hash;
  546. }
  547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  548. public override string ToString() {
  549. return pb::JsonFormatter.ToDiagnosticString(this);
  550. }
  551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  552. public void WriteTo(pb::CodedOutputStream output) {
  553. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  554. output.WriteRawMessage(this);
  555. #else
  556. if (loadCase_ == LoadOneofCase.ClosedLoop) {
  557. output.WriteRawTag(10);
  558. output.WriteMessage(ClosedLoop);
  559. }
  560. if (loadCase_ == LoadOneofCase.Poisson) {
  561. output.WriteRawTag(18);
  562. output.WriteMessage(Poisson);
  563. }
  564. if (_unknownFields != null) {
  565. _unknownFields.WriteTo(output);
  566. }
  567. #endif
  568. }
  569. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  571. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  572. if (loadCase_ == LoadOneofCase.ClosedLoop) {
  573. output.WriteRawTag(10);
  574. output.WriteMessage(ClosedLoop);
  575. }
  576. if (loadCase_ == LoadOneofCase.Poisson) {
  577. output.WriteRawTag(18);
  578. output.WriteMessage(Poisson);
  579. }
  580. if (_unknownFields != null) {
  581. _unknownFields.WriteTo(ref output);
  582. }
  583. }
  584. #endif
  585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  586. public int CalculateSize() {
  587. int size = 0;
  588. if (loadCase_ == LoadOneofCase.ClosedLoop) {
  589. size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClosedLoop);
  590. }
  591. if (loadCase_ == LoadOneofCase.Poisson) {
  592. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Poisson);
  593. }
  594. if (_unknownFields != null) {
  595. size += _unknownFields.CalculateSize();
  596. }
  597. return size;
  598. }
  599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  600. public void MergeFrom(LoadParams other) {
  601. if (other == null) {
  602. return;
  603. }
  604. switch (other.LoadCase) {
  605. case LoadOneofCase.ClosedLoop:
  606. if (ClosedLoop == null) {
  607. ClosedLoop = new global::Grpc.Testing.ClosedLoopParams();
  608. }
  609. ClosedLoop.MergeFrom(other.ClosedLoop);
  610. break;
  611. case LoadOneofCase.Poisson:
  612. if (Poisson == null) {
  613. Poisson = new global::Grpc.Testing.PoissonParams();
  614. }
  615. Poisson.MergeFrom(other.Poisson);
  616. break;
  617. }
  618. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  619. }
  620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  621. public void MergeFrom(pb::CodedInputStream input) {
  622. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  623. input.ReadRawMessage(this);
  624. #else
  625. uint tag;
  626. while ((tag = input.ReadTag()) != 0) {
  627. switch(tag) {
  628. default:
  629. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  630. break;
  631. case 10: {
  632. global::Grpc.Testing.ClosedLoopParams subBuilder = new global::Grpc.Testing.ClosedLoopParams();
  633. if (loadCase_ == LoadOneofCase.ClosedLoop) {
  634. subBuilder.MergeFrom(ClosedLoop);
  635. }
  636. input.ReadMessage(subBuilder);
  637. ClosedLoop = subBuilder;
  638. break;
  639. }
  640. case 18: {
  641. global::Grpc.Testing.PoissonParams subBuilder = new global::Grpc.Testing.PoissonParams();
  642. if (loadCase_ == LoadOneofCase.Poisson) {
  643. subBuilder.MergeFrom(Poisson);
  644. }
  645. input.ReadMessage(subBuilder);
  646. Poisson = subBuilder;
  647. break;
  648. }
  649. }
  650. }
  651. #endif
  652. }
  653. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  655. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  656. uint tag;
  657. while ((tag = input.ReadTag()) != 0) {
  658. switch(tag) {
  659. default:
  660. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  661. break;
  662. case 10: {
  663. global::Grpc.Testing.ClosedLoopParams subBuilder = new global::Grpc.Testing.ClosedLoopParams();
  664. if (loadCase_ == LoadOneofCase.ClosedLoop) {
  665. subBuilder.MergeFrom(ClosedLoop);
  666. }
  667. input.ReadMessage(subBuilder);
  668. ClosedLoop = subBuilder;
  669. break;
  670. }
  671. case 18: {
  672. global::Grpc.Testing.PoissonParams subBuilder = new global::Grpc.Testing.PoissonParams();
  673. if (loadCase_ == LoadOneofCase.Poisson) {
  674. subBuilder.MergeFrom(Poisson);
  675. }
  676. input.ReadMessage(subBuilder);
  677. Poisson = subBuilder;
  678. break;
  679. }
  680. }
  681. }
  682. }
  683. #endif
  684. }
  685. /// <summary>
  686. /// presence of SecurityParams implies use of TLS
  687. /// </summary>
  688. public sealed partial class SecurityParams : pb::IMessage<SecurityParams>
  689. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  690. , pb::IBufferMessage
  691. #endif
  692. {
  693. private static readonly pb::MessageParser<SecurityParams> _parser = new pb::MessageParser<SecurityParams>(() => new SecurityParams());
  694. private pb::UnknownFieldSet _unknownFields;
  695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  696. public static pb::MessageParser<SecurityParams> Parser { get { return _parser; } }
  697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  698. public static pbr::MessageDescriptor Descriptor {
  699. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[3]; }
  700. }
  701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  702. pbr::MessageDescriptor pb::IMessage.Descriptor {
  703. get { return Descriptor; }
  704. }
  705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  706. public SecurityParams() {
  707. OnConstruction();
  708. }
  709. partial void OnConstruction();
  710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  711. public SecurityParams(SecurityParams other) : this() {
  712. useTestCa_ = other.useTestCa_;
  713. serverHostOverride_ = other.serverHostOverride_;
  714. credType_ = other.credType_;
  715. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  716. }
  717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  718. public SecurityParams Clone() {
  719. return new SecurityParams(this);
  720. }
  721. /// <summary>Field number for the "use_test_ca" field.</summary>
  722. public const int UseTestCaFieldNumber = 1;
  723. private bool useTestCa_;
  724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  725. public bool UseTestCa {
  726. get { return useTestCa_; }
  727. set {
  728. useTestCa_ = value;
  729. }
  730. }
  731. /// <summary>Field number for the "server_host_override" field.</summary>
  732. public const int ServerHostOverrideFieldNumber = 2;
  733. private string serverHostOverride_ = "";
  734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  735. public string ServerHostOverride {
  736. get { return serverHostOverride_; }
  737. set {
  738. serverHostOverride_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  739. }
  740. }
  741. /// <summary>Field number for the "cred_type" field.</summary>
  742. public const int CredTypeFieldNumber = 3;
  743. private string credType_ = "";
  744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  745. public string CredType {
  746. get { return credType_; }
  747. set {
  748. credType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  749. }
  750. }
  751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  752. public override bool Equals(object other) {
  753. return Equals(other as SecurityParams);
  754. }
  755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  756. public bool Equals(SecurityParams other) {
  757. if (ReferenceEquals(other, null)) {
  758. return false;
  759. }
  760. if (ReferenceEquals(other, this)) {
  761. return true;
  762. }
  763. if (UseTestCa != other.UseTestCa) return false;
  764. if (ServerHostOverride != other.ServerHostOverride) return false;
  765. if (CredType != other.CredType) return false;
  766. return Equals(_unknownFields, other._unknownFields);
  767. }
  768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  769. public override int GetHashCode() {
  770. int hash = 1;
  771. if (UseTestCa != false) hash ^= UseTestCa.GetHashCode();
  772. if (ServerHostOverride.Length != 0) hash ^= ServerHostOverride.GetHashCode();
  773. if (CredType.Length != 0) hash ^= CredType.GetHashCode();
  774. if (_unknownFields != null) {
  775. hash ^= _unknownFields.GetHashCode();
  776. }
  777. return hash;
  778. }
  779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  780. public override string ToString() {
  781. return pb::JsonFormatter.ToDiagnosticString(this);
  782. }
  783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  784. public void WriteTo(pb::CodedOutputStream output) {
  785. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  786. output.WriteRawMessage(this);
  787. #else
  788. if (UseTestCa != false) {
  789. output.WriteRawTag(8);
  790. output.WriteBool(UseTestCa);
  791. }
  792. if (ServerHostOverride.Length != 0) {
  793. output.WriteRawTag(18);
  794. output.WriteString(ServerHostOverride);
  795. }
  796. if (CredType.Length != 0) {
  797. output.WriteRawTag(26);
  798. output.WriteString(CredType);
  799. }
  800. if (_unknownFields != null) {
  801. _unknownFields.WriteTo(output);
  802. }
  803. #endif
  804. }
  805. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  807. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  808. if (UseTestCa != false) {
  809. output.WriteRawTag(8);
  810. output.WriteBool(UseTestCa);
  811. }
  812. if (ServerHostOverride.Length != 0) {
  813. output.WriteRawTag(18);
  814. output.WriteString(ServerHostOverride);
  815. }
  816. if (CredType.Length != 0) {
  817. output.WriteRawTag(26);
  818. output.WriteString(CredType);
  819. }
  820. if (_unknownFields != null) {
  821. _unknownFields.WriteTo(ref output);
  822. }
  823. }
  824. #endif
  825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  826. public int CalculateSize() {
  827. int size = 0;
  828. if (UseTestCa != false) {
  829. size += 1 + 1;
  830. }
  831. if (ServerHostOverride.Length != 0) {
  832. size += 1 + pb::CodedOutputStream.ComputeStringSize(ServerHostOverride);
  833. }
  834. if (CredType.Length != 0) {
  835. size += 1 + pb::CodedOutputStream.ComputeStringSize(CredType);
  836. }
  837. if (_unknownFields != null) {
  838. size += _unknownFields.CalculateSize();
  839. }
  840. return size;
  841. }
  842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  843. public void MergeFrom(SecurityParams other) {
  844. if (other == null) {
  845. return;
  846. }
  847. if (other.UseTestCa != false) {
  848. UseTestCa = other.UseTestCa;
  849. }
  850. if (other.ServerHostOverride.Length != 0) {
  851. ServerHostOverride = other.ServerHostOverride;
  852. }
  853. if (other.CredType.Length != 0) {
  854. CredType = other.CredType;
  855. }
  856. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  857. }
  858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  859. public void MergeFrom(pb::CodedInputStream input) {
  860. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  861. input.ReadRawMessage(this);
  862. #else
  863. uint tag;
  864. while ((tag = input.ReadTag()) != 0) {
  865. switch(tag) {
  866. default:
  867. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  868. break;
  869. case 8: {
  870. UseTestCa = input.ReadBool();
  871. break;
  872. }
  873. case 18: {
  874. ServerHostOverride = input.ReadString();
  875. break;
  876. }
  877. case 26: {
  878. CredType = input.ReadString();
  879. break;
  880. }
  881. }
  882. }
  883. #endif
  884. }
  885. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  887. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  888. uint tag;
  889. while ((tag = input.ReadTag()) != 0) {
  890. switch(tag) {
  891. default:
  892. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  893. break;
  894. case 8: {
  895. UseTestCa = input.ReadBool();
  896. break;
  897. }
  898. case 18: {
  899. ServerHostOverride = input.ReadString();
  900. break;
  901. }
  902. case 26: {
  903. CredType = input.ReadString();
  904. break;
  905. }
  906. }
  907. }
  908. }
  909. #endif
  910. }
  911. public sealed partial class ChannelArg : pb::IMessage<ChannelArg>
  912. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  913. , pb::IBufferMessage
  914. #endif
  915. {
  916. private static readonly pb::MessageParser<ChannelArg> _parser = new pb::MessageParser<ChannelArg>(() => new ChannelArg());
  917. private pb::UnknownFieldSet _unknownFields;
  918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  919. public static pb::MessageParser<ChannelArg> Parser { get { return _parser; } }
  920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  921. public static pbr::MessageDescriptor Descriptor {
  922. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[4]; }
  923. }
  924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  925. pbr::MessageDescriptor pb::IMessage.Descriptor {
  926. get { return Descriptor; }
  927. }
  928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  929. public ChannelArg() {
  930. OnConstruction();
  931. }
  932. partial void OnConstruction();
  933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  934. public ChannelArg(ChannelArg other) : this() {
  935. name_ = other.name_;
  936. switch (other.ValueCase) {
  937. case ValueOneofCase.StrValue:
  938. StrValue = other.StrValue;
  939. break;
  940. case ValueOneofCase.IntValue:
  941. IntValue = other.IntValue;
  942. break;
  943. }
  944. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  945. }
  946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  947. public ChannelArg Clone() {
  948. return new ChannelArg(this);
  949. }
  950. /// <summary>Field number for the "name" field.</summary>
  951. public const int NameFieldNumber = 1;
  952. private string name_ = "";
  953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  954. public string Name {
  955. get { return name_; }
  956. set {
  957. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  958. }
  959. }
  960. /// <summary>Field number for the "str_value" field.</summary>
  961. public const int StrValueFieldNumber = 2;
  962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  963. public string StrValue {
  964. get { return valueCase_ == ValueOneofCase.StrValue ? (string) value_ : ""; }
  965. set {
  966. value_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  967. valueCase_ = ValueOneofCase.StrValue;
  968. }
  969. }
  970. /// <summary>Field number for the "int_value" field.</summary>
  971. public const int IntValueFieldNumber = 3;
  972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  973. public int IntValue {
  974. get { return valueCase_ == ValueOneofCase.IntValue ? (int) value_ : 0; }
  975. set {
  976. value_ = value;
  977. valueCase_ = ValueOneofCase.IntValue;
  978. }
  979. }
  980. private object value_;
  981. /// <summary>Enum of possible cases for the "value" oneof.</summary>
  982. public enum ValueOneofCase {
  983. None = 0,
  984. StrValue = 2,
  985. IntValue = 3,
  986. }
  987. private ValueOneofCase valueCase_ = ValueOneofCase.None;
  988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  989. public ValueOneofCase ValueCase {
  990. get { return valueCase_; }
  991. }
  992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  993. public void ClearValue() {
  994. valueCase_ = ValueOneofCase.None;
  995. value_ = null;
  996. }
  997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  998. public override bool Equals(object other) {
  999. return Equals(other as ChannelArg);
  1000. }
  1001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1002. public bool Equals(ChannelArg other) {
  1003. if (ReferenceEquals(other, null)) {
  1004. return false;
  1005. }
  1006. if (ReferenceEquals(other, this)) {
  1007. return true;
  1008. }
  1009. if (Name != other.Name) return false;
  1010. if (StrValue != other.StrValue) return false;
  1011. if (IntValue != other.IntValue) return false;
  1012. if (ValueCase != other.ValueCase) return false;
  1013. return Equals(_unknownFields, other._unknownFields);
  1014. }
  1015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1016. public override int GetHashCode() {
  1017. int hash = 1;
  1018. if (Name.Length != 0) hash ^= Name.GetHashCode();
  1019. if (valueCase_ == ValueOneofCase.StrValue) hash ^= StrValue.GetHashCode();
  1020. if (valueCase_ == ValueOneofCase.IntValue) hash ^= IntValue.GetHashCode();
  1021. hash ^= (int) valueCase_;
  1022. if (_unknownFields != null) {
  1023. hash ^= _unknownFields.GetHashCode();
  1024. }
  1025. return hash;
  1026. }
  1027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1028. public override string ToString() {
  1029. return pb::JsonFormatter.ToDiagnosticString(this);
  1030. }
  1031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1032. public void WriteTo(pb::CodedOutputStream output) {
  1033. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1034. output.WriteRawMessage(this);
  1035. #else
  1036. if (Name.Length != 0) {
  1037. output.WriteRawTag(10);
  1038. output.WriteString(Name);
  1039. }
  1040. if (valueCase_ == ValueOneofCase.StrValue) {
  1041. output.WriteRawTag(18);
  1042. output.WriteString(StrValue);
  1043. }
  1044. if (valueCase_ == ValueOneofCase.IntValue) {
  1045. output.WriteRawTag(24);
  1046. output.WriteInt32(IntValue);
  1047. }
  1048. if (_unknownFields != null) {
  1049. _unknownFields.WriteTo(output);
  1050. }
  1051. #endif
  1052. }
  1053. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1055. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1056. if (Name.Length != 0) {
  1057. output.WriteRawTag(10);
  1058. output.WriteString(Name);
  1059. }
  1060. if (valueCase_ == ValueOneofCase.StrValue) {
  1061. output.WriteRawTag(18);
  1062. output.WriteString(StrValue);
  1063. }
  1064. if (valueCase_ == ValueOneofCase.IntValue) {
  1065. output.WriteRawTag(24);
  1066. output.WriteInt32(IntValue);
  1067. }
  1068. if (_unknownFields != null) {
  1069. _unknownFields.WriteTo(ref output);
  1070. }
  1071. }
  1072. #endif
  1073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1074. public int CalculateSize() {
  1075. int size = 0;
  1076. if (Name.Length != 0) {
  1077. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  1078. }
  1079. if (valueCase_ == ValueOneofCase.StrValue) {
  1080. size += 1 + pb::CodedOutputStream.ComputeStringSize(StrValue);
  1081. }
  1082. if (valueCase_ == ValueOneofCase.IntValue) {
  1083. size += 1 + pb::CodedOutputStream.ComputeInt32Size(IntValue);
  1084. }
  1085. if (_unknownFields != null) {
  1086. size += _unknownFields.CalculateSize();
  1087. }
  1088. return size;
  1089. }
  1090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1091. public void MergeFrom(ChannelArg other) {
  1092. if (other == null) {
  1093. return;
  1094. }
  1095. if (other.Name.Length != 0) {
  1096. Name = other.Name;
  1097. }
  1098. switch (other.ValueCase) {
  1099. case ValueOneofCase.StrValue:
  1100. StrValue = other.StrValue;
  1101. break;
  1102. case ValueOneofCase.IntValue:
  1103. IntValue = other.IntValue;
  1104. break;
  1105. }
  1106. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1107. }
  1108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1109. public void MergeFrom(pb::CodedInputStream input) {
  1110. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1111. input.ReadRawMessage(this);
  1112. #else
  1113. uint tag;
  1114. while ((tag = input.ReadTag()) != 0) {
  1115. switch(tag) {
  1116. default:
  1117. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1118. break;
  1119. case 10: {
  1120. Name = input.ReadString();
  1121. break;
  1122. }
  1123. case 18: {
  1124. StrValue = input.ReadString();
  1125. break;
  1126. }
  1127. case 24: {
  1128. IntValue = input.ReadInt32();
  1129. break;
  1130. }
  1131. }
  1132. }
  1133. #endif
  1134. }
  1135. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1137. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1138. uint tag;
  1139. while ((tag = input.ReadTag()) != 0) {
  1140. switch(tag) {
  1141. default:
  1142. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1143. break;
  1144. case 10: {
  1145. Name = input.ReadString();
  1146. break;
  1147. }
  1148. case 18: {
  1149. StrValue = input.ReadString();
  1150. break;
  1151. }
  1152. case 24: {
  1153. IntValue = input.ReadInt32();
  1154. break;
  1155. }
  1156. }
  1157. }
  1158. }
  1159. #endif
  1160. }
  1161. public sealed partial class ClientConfig : pb::IMessage<ClientConfig>
  1162. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1163. , pb::IBufferMessage
  1164. #endif
  1165. {
  1166. private static readonly pb::MessageParser<ClientConfig> _parser = new pb::MessageParser<ClientConfig>(() => new ClientConfig());
  1167. private pb::UnknownFieldSet _unknownFields;
  1168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1169. public static pb::MessageParser<ClientConfig> Parser { get { return _parser; } }
  1170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1171. public static pbr::MessageDescriptor Descriptor {
  1172. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[5]; }
  1173. }
  1174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1175. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1176. get { return Descriptor; }
  1177. }
  1178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1179. public ClientConfig() {
  1180. OnConstruction();
  1181. }
  1182. partial void OnConstruction();
  1183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1184. public ClientConfig(ClientConfig other) : this() {
  1185. serverTargets_ = other.serverTargets_.Clone();
  1186. clientType_ = other.clientType_;
  1187. securityParams_ = other.securityParams_ != null ? other.securityParams_.Clone() : null;
  1188. outstandingRpcsPerChannel_ = other.outstandingRpcsPerChannel_;
  1189. clientChannels_ = other.clientChannels_;
  1190. asyncClientThreads_ = other.asyncClientThreads_;
  1191. rpcType_ = other.rpcType_;
  1192. loadParams_ = other.loadParams_ != null ? other.loadParams_.Clone() : null;
  1193. payloadConfig_ = other.payloadConfig_ != null ? other.payloadConfig_.Clone() : null;
  1194. histogramParams_ = other.histogramParams_ != null ? other.histogramParams_.Clone() : null;
  1195. coreList_ = other.coreList_.Clone();
  1196. coreLimit_ = other.coreLimit_;
  1197. otherClientApi_ = other.otherClientApi_;
  1198. channelArgs_ = other.channelArgs_.Clone();
  1199. threadsPerCq_ = other.threadsPerCq_;
  1200. messagesPerStream_ = other.messagesPerStream_;
  1201. useCoalesceApi_ = other.useCoalesceApi_;
  1202. medianLatencyCollectionIntervalMillis_ = other.medianLatencyCollectionIntervalMillis_;
  1203. clientProcesses_ = other.clientProcesses_;
  1204. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1205. }
  1206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1207. public ClientConfig Clone() {
  1208. return new ClientConfig(this);
  1209. }
  1210. /// <summary>Field number for the "server_targets" field.</summary>
  1211. public const int ServerTargetsFieldNumber = 1;
  1212. private static readonly pb::FieldCodec<string> _repeated_serverTargets_codec
  1213. = pb::FieldCodec.ForString(10);
  1214. private readonly pbc::RepeatedField<string> serverTargets_ = new pbc::RepeatedField<string>();
  1215. /// <summary>
  1216. /// List of targets to connect to. At least one target needs to be specified.
  1217. /// </summary>
  1218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1219. public pbc::RepeatedField<string> ServerTargets {
  1220. get { return serverTargets_; }
  1221. }
  1222. /// <summary>Field number for the "client_type" field.</summary>
  1223. public const int ClientTypeFieldNumber = 2;
  1224. private global::Grpc.Testing.ClientType clientType_ = global::Grpc.Testing.ClientType.SyncClient;
  1225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1226. public global::Grpc.Testing.ClientType ClientType {
  1227. get { return clientType_; }
  1228. set {
  1229. clientType_ = value;
  1230. }
  1231. }
  1232. /// <summary>Field number for the "security_params" field.</summary>
  1233. public const int SecurityParamsFieldNumber = 3;
  1234. private global::Grpc.Testing.SecurityParams securityParams_;
  1235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1236. public global::Grpc.Testing.SecurityParams SecurityParams {
  1237. get { return securityParams_; }
  1238. set {
  1239. securityParams_ = value;
  1240. }
  1241. }
  1242. /// <summary>Field number for the "outstanding_rpcs_per_channel" field.</summary>
  1243. public const int OutstandingRpcsPerChannelFieldNumber = 4;
  1244. private int outstandingRpcsPerChannel_;
  1245. /// <summary>
  1246. /// How many concurrent RPCs to start for each channel.
  1247. /// For synchronous client, use a separate thread for each outstanding RPC.
  1248. /// </summary>
  1249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1250. public int OutstandingRpcsPerChannel {
  1251. get { return outstandingRpcsPerChannel_; }
  1252. set {
  1253. outstandingRpcsPerChannel_ = value;
  1254. }
  1255. }
  1256. /// <summary>Field number for the "client_channels" field.</summary>
  1257. public const int ClientChannelsFieldNumber = 5;
  1258. private int clientChannels_;
  1259. /// <summary>
  1260. /// Number of independent client channels to create.
  1261. /// i-th channel will connect to server_target[i % server_targets.size()]
  1262. /// </summary>
  1263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1264. public int ClientChannels {
  1265. get { return clientChannels_; }
  1266. set {
  1267. clientChannels_ = value;
  1268. }
  1269. }
  1270. /// <summary>Field number for the "async_client_threads" field.</summary>
  1271. public const int AsyncClientThreadsFieldNumber = 7;
  1272. private int asyncClientThreads_;
  1273. /// <summary>
  1274. /// Only for async client. Number of threads to use to start/manage RPCs.
  1275. /// </summary>
  1276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1277. public int AsyncClientThreads {
  1278. get { return asyncClientThreads_; }
  1279. set {
  1280. asyncClientThreads_ = value;
  1281. }
  1282. }
  1283. /// <summary>Field number for the "rpc_type" field.</summary>
  1284. public const int RpcTypeFieldNumber = 8;
  1285. private global::Grpc.Testing.RpcType rpcType_ = global::Grpc.Testing.RpcType.Unary;
  1286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1287. public global::Grpc.Testing.RpcType RpcType {
  1288. get { return rpcType_; }
  1289. set {
  1290. rpcType_ = value;
  1291. }
  1292. }
  1293. /// <summary>Field number for the "load_params" field.</summary>
  1294. public const int LoadParamsFieldNumber = 10;
  1295. private global::Grpc.Testing.LoadParams loadParams_;
  1296. /// <summary>
  1297. /// The requested load for the entire client (aggregated over all the threads).
  1298. /// </summary>
  1299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1300. public global::Grpc.Testing.LoadParams LoadParams {
  1301. get { return loadParams_; }
  1302. set {
  1303. loadParams_ = value;
  1304. }
  1305. }
  1306. /// <summary>Field number for the "payload_config" field.</summary>
  1307. public const int PayloadConfigFieldNumber = 11;
  1308. private global::Grpc.Testing.PayloadConfig payloadConfig_;
  1309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1310. public global::Grpc.Testing.PayloadConfig PayloadConfig {
  1311. get { return payloadConfig_; }
  1312. set {
  1313. payloadConfig_ = value;
  1314. }
  1315. }
  1316. /// <summary>Field number for the "histogram_params" field.</summary>
  1317. public const int HistogramParamsFieldNumber = 12;
  1318. private global::Grpc.Testing.HistogramParams histogramParams_;
  1319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1320. public global::Grpc.Testing.HistogramParams HistogramParams {
  1321. get { return histogramParams_; }
  1322. set {
  1323. histogramParams_ = value;
  1324. }
  1325. }
  1326. /// <summary>Field number for the "core_list" field.</summary>
  1327. public const int CoreListFieldNumber = 13;
  1328. private static readonly pb::FieldCodec<int> _repeated_coreList_codec
  1329. = pb::FieldCodec.ForInt32(106);
  1330. private readonly pbc::RepeatedField<int> coreList_ = new pbc::RepeatedField<int>();
  1331. /// <summary>
  1332. /// Specify the cores we should run the client on, if desired
  1333. /// </summary>
  1334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1335. public pbc::RepeatedField<int> CoreList {
  1336. get { return coreList_; }
  1337. }
  1338. /// <summary>Field number for the "core_limit" field.</summary>
  1339. public const int CoreLimitFieldNumber = 14;
  1340. private int coreLimit_;
  1341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1342. public int CoreLimit {
  1343. get { return coreLimit_; }
  1344. set {
  1345. coreLimit_ = value;
  1346. }
  1347. }
  1348. /// <summary>Field number for the "other_client_api" field.</summary>
  1349. public const int OtherClientApiFieldNumber = 15;
  1350. private string otherClientApi_ = "";
  1351. /// <summary>
  1352. /// If we use an OTHER_CLIENT client_type, this string gives more detail
  1353. /// </summary>
  1354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1355. public string OtherClientApi {
  1356. get { return otherClientApi_; }
  1357. set {
  1358. otherClientApi_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1359. }
  1360. }
  1361. /// <summary>Field number for the "channel_args" field.</summary>
  1362. public const int ChannelArgsFieldNumber = 16;
  1363. private static readonly pb::FieldCodec<global::Grpc.Testing.ChannelArg> _repeated_channelArgs_codec
  1364. = pb::FieldCodec.ForMessage(130, global::Grpc.Testing.ChannelArg.Parser);
  1365. private readonly pbc::RepeatedField<global::Grpc.Testing.ChannelArg> channelArgs_ = new pbc::RepeatedField<global::Grpc.Testing.ChannelArg>();
  1366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1367. public pbc::RepeatedField<global::Grpc.Testing.ChannelArg> ChannelArgs {
  1368. get { return channelArgs_; }
  1369. }
  1370. /// <summary>Field number for the "threads_per_cq" field.</summary>
  1371. public const int ThreadsPerCqFieldNumber = 17;
  1372. private int threadsPerCq_;
  1373. /// <summary>
  1374. /// Number of threads that share each completion queue
  1375. /// </summary>
  1376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1377. public int ThreadsPerCq {
  1378. get { return threadsPerCq_; }
  1379. set {
  1380. threadsPerCq_ = value;
  1381. }
  1382. }
  1383. /// <summary>Field number for the "messages_per_stream" field.</summary>
  1384. public const int MessagesPerStreamFieldNumber = 18;
  1385. private int messagesPerStream_;
  1386. /// <summary>
  1387. /// Number of messages on a stream before it gets finished/restarted
  1388. /// </summary>
  1389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1390. public int MessagesPerStream {
  1391. get { return messagesPerStream_; }
  1392. set {
  1393. messagesPerStream_ = value;
  1394. }
  1395. }
  1396. /// <summary>Field number for the "use_coalesce_api" field.</summary>
  1397. public const int UseCoalesceApiFieldNumber = 19;
  1398. private bool useCoalesceApi_;
  1399. /// <summary>
  1400. /// Use coalescing API when possible.
  1401. /// </summary>
  1402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1403. public bool UseCoalesceApi {
  1404. get { return useCoalesceApi_; }
  1405. set {
  1406. useCoalesceApi_ = value;
  1407. }
  1408. }
  1409. /// <summary>Field number for the "median_latency_collection_interval_millis" field.</summary>
  1410. public const int MedianLatencyCollectionIntervalMillisFieldNumber = 20;
  1411. private int medianLatencyCollectionIntervalMillis_;
  1412. /// <summary>
  1413. /// If 0, disabled. Else, specifies the period between gathering latency
  1414. /// medians in milliseconds.
  1415. /// </summary>
  1416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1417. public int MedianLatencyCollectionIntervalMillis {
  1418. get { return medianLatencyCollectionIntervalMillis_; }
  1419. set {
  1420. medianLatencyCollectionIntervalMillis_ = value;
  1421. }
  1422. }
  1423. /// <summary>Field number for the "client_processes" field.</summary>
  1424. public const int ClientProcessesFieldNumber = 21;
  1425. private int clientProcesses_;
  1426. /// <summary>
  1427. /// Number of client processes. 0 indicates no restriction.
  1428. /// </summary>
  1429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1430. public int ClientProcesses {
  1431. get { return clientProcesses_; }
  1432. set {
  1433. clientProcesses_ = value;
  1434. }
  1435. }
  1436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1437. public override bool Equals(object other) {
  1438. return Equals(other as ClientConfig);
  1439. }
  1440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1441. public bool Equals(ClientConfig other) {
  1442. if (ReferenceEquals(other, null)) {
  1443. return false;
  1444. }
  1445. if (ReferenceEquals(other, this)) {
  1446. return true;
  1447. }
  1448. if(!serverTargets_.Equals(other.serverTargets_)) return false;
  1449. if (ClientType != other.ClientType) return false;
  1450. if (!object.Equals(SecurityParams, other.SecurityParams)) return false;
  1451. if (OutstandingRpcsPerChannel != other.OutstandingRpcsPerChannel) return false;
  1452. if (ClientChannels != other.ClientChannels) return false;
  1453. if (AsyncClientThreads != other.AsyncClientThreads) return false;
  1454. if (RpcType != other.RpcType) return false;
  1455. if (!object.Equals(LoadParams, other.LoadParams)) return false;
  1456. if (!object.Equals(PayloadConfig, other.PayloadConfig)) return false;
  1457. if (!object.Equals(HistogramParams, other.HistogramParams)) return false;
  1458. if(!coreList_.Equals(other.coreList_)) return false;
  1459. if (CoreLimit != other.CoreLimit) return false;
  1460. if (OtherClientApi != other.OtherClientApi) return false;
  1461. if(!channelArgs_.Equals(other.channelArgs_)) return false;
  1462. if (ThreadsPerCq != other.ThreadsPerCq) return false;
  1463. if (MessagesPerStream != other.MessagesPerStream) return false;
  1464. if (UseCoalesceApi != other.UseCoalesceApi) return false;
  1465. if (MedianLatencyCollectionIntervalMillis != other.MedianLatencyCollectionIntervalMillis) return false;
  1466. if (ClientProcesses != other.ClientProcesses) return false;
  1467. return Equals(_unknownFields, other._unknownFields);
  1468. }
  1469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1470. public override int GetHashCode() {
  1471. int hash = 1;
  1472. hash ^= serverTargets_.GetHashCode();
  1473. if (ClientType != global::Grpc.Testing.ClientType.SyncClient) hash ^= ClientType.GetHashCode();
  1474. if (securityParams_ != null) hash ^= SecurityParams.GetHashCode();
  1475. if (OutstandingRpcsPerChannel != 0) hash ^= OutstandingRpcsPerChannel.GetHashCode();
  1476. if (ClientChannels != 0) hash ^= ClientChannels.GetHashCode();
  1477. if (AsyncClientThreads != 0) hash ^= AsyncClientThreads.GetHashCode();
  1478. if (RpcType != global::Grpc.Testing.RpcType.Unary) hash ^= RpcType.GetHashCode();
  1479. if (loadParams_ != null) hash ^= LoadParams.GetHashCode();
  1480. if (payloadConfig_ != null) hash ^= PayloadConfig.GetHashCode();
  1481. if (histogramParams_ != null) hash ^= HistogramParams.GetHashCode();
  1482. hash ^= coreList_.GetHashCode();
  1483. if (CoreLimit != 0) hash ^= CoreLimit.GetHashCode();
  1484. if (OtherClientApi.Length != 0) hash ^= OtherClientApi.GetHashCode();
  1485. hash ^= channelArgs_.GetHashCode();
  1486. if (ThreadsPerCq != 0) hash ^= ThreadsPerCq.GetHashCode();
  1487. if (MessagesPerStream != 0) hash ^= MessagesPerStream.GetHashCode();
  1488. if (UseCoalesceApi != false) hash ^= UseCoalesceApi.GetHashCode();
  1489. if (MedianLatencyCollectionIntervalMillis != 0) hash ^= MedianLatencyCollectionIntervalMillis.GetHashCode();
  1490. if (ClientProcesses != 0) hash ^= ClientProcesses.GetHashCode();
  1491. if (_unknownFields != null) {
  1492. hash ^= _unknownFields.GetHashCode();
  1493. }
  1494. return hash;
  1495. }
  1496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1497. public override string ToString() {
  1498. return pb::JsonFormatter.ToDiagnosticString(this);
  1499. }
  1500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1501. public void WriteTo(pb::CodedOutputStream output) {
  1502. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1503. output.WriteRawMessage(this);
  1504. #else
  1505. serverTargets_.WriteTo(output, _repeated_serverTargets_codec);
  1506. if (ClientType != global::Grpc.Testing.ClientType.SyncClient) {
  1507. output.WriteRawTag(16);
  1508. output.WriteEnum((int) ClientType);
  1509. }
  1510. if (securityParams_ != null) {
  1511. output.WriteRawTag(26);
  1512. output.WriteMessage(SecurityParams);
  1513. }
  1514. if (OutstandingRpcsPerChannel != 0) {
  1515. output.WriteRawTag(32);
  1516. output.WriteInt32(OutstandingRpcsPerChannel);
  1517. }
  1518. if (ClientChannels != 0) {
  1519. output.WriteRawTag(40);
  1520. output.WriteInt32(ClientChannels);
  1521. }
  1522. if (AsyncClientThreads != 0) {
  1523. output.WriteRawTag(56);
  1524. output.WriteInt32(AsyncClientThreads);
  1525. }
  1526. if (RpcType != global::Grpc.Testing.RpcType.Unary) {
  1527. output.WriteRawTag(64);
  1528. output.WriteEnum((int) RpcType);
  1529. }
  1530. if (loadParams_ != null) {
  1531. output.WriteRawTag(82);
  1532. output.WriteMessage(LoadParams);
  1533. }
  1534. if (payloadConfig_ != null) {
  1535. output.WriteRawTag(90);
  1536. output.WriteMessage(PayloadConfig);
  1537. }
  1538. if (histogramParams_ != null) {
  1539. output.WriteRawTag(98);
  1540. output.WriteMessage(HistogramParams);
  1541. }
  1542. coreList_.WriteTo(output, _repeated_coreList_codec);
  1543. if (CoreLimit != 0) {
  1544. output.WriteRawTag(112);
  1545. output.WriteInt32(CoreLimit);
  1546. }
  1547. if (OtherClientApi.Length != 0) {
  1548. output.WriteRawTag(122);
  1549. output.WriteString(OtherClientApi);
  1550. }
  1551. channelArgs_.WriteTo(output, _repeated_channelArgs_codec);
  1552. if (ThreadsPerCq != 0) {
  1553. output.WriteRawTag(136, 1);
  1554. output.WriteInt32(ThreadsPerCq);
  1555. }
  1556. if (MessagesPerStream != 0) {
  1557. output.WriteRawTag(144, 1);
  1558. output.WriteInt32(MessagesPerStream);
  1559. }
  1560. if (UseCoalesceApi != false) {
  1561. output.WriteRawTag(152, 1);
  1562. output.WriteBool(UseCoalesceApi);
  1563. }
  1564. if (MedianLatencyCollectionIntervalMillis != 0) {
  1565. output.WriteRawTag(160, 1);
  1566. output.WriteInt32(MedianLatencyCollectionIntervalMillis);
  1567. }
  1568. if (ClientProcesses != 0) {
  1569. output.WriteRawTag(168, 1);
  1570. output.WriteInt32(ClientProcesses);
  1571. }
  1572. if (_unknownFields != null) {
  1573. _unknownFields.WriteTo(output);
  1574. }
  1575. #endif
  1576. }
  1577. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1579. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1580. serverTargets_.WriteTo(ref output, _repeated_serverTargets_codec);
  1581. if (ClientType != global::Grpc.Testing.ClientType.SyncClient) {
  1582. output.WriteRawTag(16);
  1583. output.WriteEnum((int) ClientType);
  1584. }
  1585. if (securityParams_ != null) {
  1586. output.WriteRawTag(26);
  1587. output.WriteMessage(SecurityParams);
  1588. }
  1589. if (OutstandingRpcsPerChannel != 0) {
  1590. output.WriteRawTag(32);
  1591. output.WriteInt32(OutstandingRpcsPerChannel);
  1592. }
  1593. if (ClientChannels != 0) {
  1594. output.WriteRawTag(40);
  1595. output.WriteInt32(ClientChannels);
  1596. }
  1597. if (AsyncClientThreads != 0) {
  1598. output.WriteRawTag(56);
  1599. output.WriteInt32(AsyncClientThreads);
  1600. }
  1601. if (RpcType != global::Grpc.Testing.RpcType.Unary) {
  1602. output.WriteRawTag(64);
  1603. output.WriteEnum((int) RpcType);
  1604. }
  1605. if (loadParams_ != null) {
  1606. output.WriteRawTag(82);
  1607. output.WriteMessage(LoadParams);
  1608. }
  1609. if (payloadConfig_ != null) {
  1610. output.WriteRawTag(90);
  1611. output.WriteMessage(PayloadConfig);
  1612. }
  1613. if (histogramParams_ != null) {
  1614. output.WriteRawTag(98);
  1615. output.WriteMessage(HistogramParams);
  1616. }
  1617. coreList_.WriteTo(ref output, _repeated_coreList_codec);
  1618. if (CoreLimit != 0) {
  1619. output.WriteRawTag(112);
  1620. output.WriteInt32(CoreLimit);
  1621. }
  1622. if (OtherClientApi.Length != 0) {
  1623. output.WriteRawTag(122);
  1624. output.WriteString(OtherClientApi);
  1625. }
  1626. channelArgs_.WriteTo(ref output, _repeated_channelArgs_codec);
  1627. if (ThreadsPerCq != 0) {
  1628. output.WriteRawTag(136, 1);
  1629. output.WriteInt32(ThreadsPerCq);
  1630. }
  1631. if (MessagesPerStream != 0) {
  1632. output.WriteRawTag(144, 1);
  1633. output.WriteInt32(MessagesPerStream);
  1634. }
  1635. if (UseCoalesceApi != false) {
  1636. output.WriteRawTag(152, 1);
  1637. output.WriteBool(UseCoalesceApi);
  1638. }
  1639. if (MedianLatencyCollectionIntervalMillis != 0) {
  1640. output.WriteRawTag(160, 1);
  1641. output.WriteInt32(MedianLatencyCollectionIntervalMillis);
  1642. }
  1643. if (ClientProcesses != 0) {
  1644. output.WriteRawTag(168, 1);
  1645. output.WriteInt32(ClientProcesses);
  1646. }
  1647. if (_unknownFields != null) {
  1648. _unknownFields.WriteTo(ref output);
  1649. }
  1650. }
  1651. #endif
  1652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1653. public int CalculateSize() {
  1654. int size = 0;
  1655. size += serverTargets_.CalculateSize(_repeated_serverTargets_codec);
  1656. if (ClientType != global::Grpc.Testing.ClientType.SyncClient) {
  1657. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ClientType);
  1658. }
  1659. if (securityParams_ != null) {
  1660. size += 1 + pb::CodedOutputStream.ComputeMessageSize(SecurityParams);
  1661. }
  1662. if (OutstandingRpcsPerChannel != 0) {
  1663. size += 1 + pb::CodedOutputStream.ComputeInt32Size(OutstandingRpcsPerChannel);
  1664. }
  1665. if (ClientChannels != 0) {
  1666. size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClientChannels);
  1667. }
  1668. if (AsyncClientThreads != 0) {
  1669. size += 1 + pb::CodedOutputStream.ComputeInt32Size(AsyncClientThreads);
  1670. }
  1671. if (RpcType != global::Grpc.Testing.RpcType.Unary) {
  1672. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RpcType);
  1673. }
  1674. if (loadParams_ != null) {
  1675. size += 1 + pb::CodedOutputStream.ComputeMessageSize(LoadParams);
  1676. }
  1677. if (payloadConfig_ != null) {
  1678. size += 1 + pb::CodedOutputStream.ComputeMessageSize(PayloadConfig);
  1679. }
  1680. if (histogramParams_ != null) {
  1681. size += 1 + pb::CodedOutputStream.ComputeMessageSize(HistogramParams);
  1682. }
  1683. size += coreList_.CalculateSize(_repeated_coreList_codec);
  1684. if (CoreLimit != 0) {
  1685. size += 1 + pb::CodedOutputStream.ComputeInt32Size(CoreLimit);
  1686. }
  1687. if (OtherClientApi.Length != 0) {
  1688. size += 1 + pb::CodedOutputStream.ComputeStringSize(OtherClientApi);
  1689. }
  1690. size += channelArgs_.CalculateSize(_repeated_channelArgs_codec);
  1691. if (ThreadsPerCq != 0) {
  1692. size += 2 + pb::CodedOutputStream.ComputeInt32Size(ThreadsPerCq);
  1693. }
  1694. if (MessagesPerStream != 0) {
  1695. size += 2 + pb::CodedOutputStream.ComputeInt32Size(MessagesPerStream);
  1696. }
  1697. if (UseCoalesceApi != false) {
  1698. size += 2 + 1;
  1699. }
  1700. if (MedianLatencyCollectionIntervalMillis != 0) {
  1701. size += 2 + pb::CodedOutputStream.ComputeInt32Size(MedianLatencyCollectionIntervalMillis);
  1702. }
  1703. if (ClientProcesses != 0) {
  1704. size += 2 + pb::CodedOutputStream.ComputeInt32Size(ClientProcesses);
  1705. }
  1706. if (_unknownFields != null) {
  1707. size += _unknownFields.CalculateSize();
  1708. }
  1709. return size;
  1710. }
  1711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1712. public void MergeFrom(ClientConfig other) {
  1713. if (other == null) {
  1714. return;
  1715. }
  1716. serverTargets_.Add(other.serverTargets_);
  1717. if (other.ClientType != global::Grpc.Testing.ClientType.SyncClient) {
  1718. ClientType = other.ClientType;
  1719. }
  1720. if (other.securityParams_ != null) {
  1721. if (securityParams_ == null) {
  1722. SecurityParams = new global::Grpc.Testing.SecurityParams();
  1723. }
  1724. SecurityParams.MergeFrom(other.SecurityParams);
  1725. }
  1726. if (other.OutstandingRpcsPerChannel != 0) {
  1727. OutstandingRpcsPerChannel = other.OutstandingRpcsPerChannel;
  1728. }
  1729. if (other.ClientChannels != 0) {
  1730. ClientChannels = other.ClientChannels;
  1731. }
  1732. if (other.AsyncClientThreads != 0) {
  1733. AsyncClientThreads = other.AsyncClientThreads;
  1734. }
  1735. if (other.RpcType != global::Grpc.Testing.RpcType.Unary) {
  1736. RpcType = other.RpcType;
  1737. }
  1738. if (other.loadParams_ != null) {
  1739. if (loadParams_ == null) {
  1740. LoadParams = new global::Grpc.Testing.LoadParams();
  1741. }
  1742. LoadParams.MergeFrom(other.LoadParams);
  1743. }
  1744. if (other.payloadConfig_ != null) {
  1745. if (payloadConfig_ == null) {
  1746. PayloadConfig = new global::Grpc.Testing.PayloadConfig();
  1747. }
  1748. PayloadConfig.MergeFrom(other.PayloadConfig);
  1749. }
  1750. if (other.histogramParams_ != null) {
  1751. if (histogramParams_ == null) {
  1752. HistogramParams = new global::Grpc.Testing.HistogramParams();
  1753. }
  1754. HistogramParams.MergeFrom(other.HistogramParams);
  1755. }
  1756. coreList_.Add(other.coreList_);
  1757. if (other.CoreLimit != 0) {
  1758. CoreLimit = other.CoreLimit;
  1759. }
  1760. if (other.OtherClientApi.Length != 0) {
  1761. OtherClientApi = other.OtherClientApi;
  1762. }
  1763. channelArgs_.Add(other.channelArgs_);
  1764. if (other.ThreadsPerCq != 0) {
  1765. ThreadsPerCq = other.ThreadsPerCq;
  1766. }
  1767. if (other.MessagesPerStream != 0) {
  1768. MessagesPerStream = other.MessagesPerStream;
  1769. }
  1770. if (other.UseCoalesceApi != false) {
  1771. UseCoalesceApi = other.UseCoalesceApi;
  1772. }
  1773. if (other.MedianLatencyCollectionIntervalMillis != 0) {
  1774. MedianLatencyCollectionIntervalMillis = other.MedianLatencyCollectionIntervalMillis;
  1775. }
  1776. if (other.ClientProcesses != 0) {
  1777. ClientProcesses = other.ClientProcesses;
  1778. }
  1779. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1780. }
  1781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1782. public void MergeFrom(pb::CodedInputStream input) {
  1783. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1784. input.ReadRawMessage(this);
  1785. #else
  1786. uint tag;
  1787. while ((tag = input.ReadTag()) != 0) {
  1788. switch(tag) {
  1789. default:
  1790. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1791. break;
  1792. case 10: {
  1793. serverTargets_.AddEntriesFrom(input, _repeated_serverTargets_codec);
  1794. break;
  1795. }
  1796. case 16: {
  1797. ClientType = (global::Grpc.Testing.ClientType) input.ReadEnum();
  1798. break;
  1799. }
  1800. case 26: {
  1801. if (securityParams_ == null) {
  1802. SecurityParams = new global::Grpc.Testing.SecurityParams();
  1803. }
  1804. input.ReadMessage(SecurityParams);
  1805. break;
  1806. }
  1807. case 32: {
  1808. OutstandingRpcsPerChannel = input.ReadInt32();
  1809. break;
  1810. }
  1811. case 40: {
  1812. ClientChannels = input.ReadInt32();
  1813. break;
  1814. }
  1815. case 56: {
  1816. AsyncClientThreads = input.ReadInt32();
  1817. break;
  1818. }
  1819. case 64: {
  1820. RpcType = (global::Grpc.Testing.RpcType) input.ReadEnum();
  1821. break;
  1822. }
  1823. case 82: {
  1824. if (loadParams_ == null) {
  1825. LoadParams = new global::Grpc.Testing.LoadParams();
  1826. }
  1827. input.ReadMessage(LoadParams);
  1828. break;
  1829. }
  1830. case 90: {
  1831. if (payloadConfig_ == null) {
  1832. PayloadConfig = new global::Grpc.Testing.PayloadConfig();
  1833. }
  1834. input.ReadMessage(PayloadConfig);
  1835. break;
  1836. }
  1837. case 98: {
  1838. if (histogramParams_ == null) {
  1839. HistogramParams = new global::Grpc.Testing.HistogramParams();
  1840. }
  1841. input.ReadMessage(HistogramParams);
  1842. break;
  1843. }
  1844. case 106:
  1845. case 104: {
  1846. coreList_.AddEntriesFrom(input, _repeated_coreList_codec);
  1847. break;
  1848. }
  1849. case 112: {
  1850. CoreLimit = input.ReadInt32();
  1851. break;
  1852. }
  1853. case 122: {
  1854. OtherClientApi = input.ReadString();
  1855. break;
  1856. }
  1857. case 130: {
  1858. channelArgs_.AddEntriesFrom(input, _repeated_channelArgs_codec);
  1859. break;
  1860. }
  1861. case 136: {
  1862. ThreadsPerCq = input.ReadInt32();
  1863. break;
  1864. }
  1865. case 144: {
  1866. MessagesPerStream = input.ReadInt32();
  1867. break;
  1868. }
  1869. case 152: {
  1870. UseCoalesceApi = input.ReadBool();
  1871. break;
  1872. }
  1873. case 160: {
  1874. MedianLatencyCollectionIntervalMillis = input.ReadInt32();
  1875. break;
  1876. }
  1877. case 168: {
  1878. ClientProcesses = input.ReadInt32();
  1879. break;
  1880. }
  1881. }
  1882. }
  1883. #endif
  1884. }
  1885. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1887. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1888. uint tag;
  1889. while ((tag = input.ReadTag()) != 0) {
  1890. switch(tag) {
  1891. default:
  1892. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1893. break;
  1894. case 10: {
  1895. serverTargets_.AddEntriesFrom(ref input, _repeated_serverTargets_codec);
  1896. break;
  1897. }
  1898. case 16: {
  1899. ClientType = (global::Grpc.Testing.ClientType) input.ReadEnum();
  1900. break;
  1901. }
  1902. case 26: {
  1903. if (securityParams_ == null) {
  1904. SecurityParams = new global::Grpc.Testing.SecurityParams();
  1905. }
  1906. input.ReadMessage(SecurityParams);
  1907. break;
  1908. }
  1909. case 32: {
  1910. OutstandingRpcsPerChannel = input.ReadInt32();
  1911. break;
  1912. }
  1913. case 40: {
  1914. ClientChannels = input.ReadInt32();
  1915. break;
  1916. }
  1917. case 56: {
  1918. AsyncClientThreads = input.ReadInt32();
  1919. break;
  1920. }
  1921. case 64: {
  1922. RpcType = (global::Grpc.Testing.RpcType) input.ReadEnum();
  1923. break;
  1924. }
  1925. case 82: {
  1926. if (loadParams_ == null) {
  1927. LoadParams = new global::Grpc.Testing.LoadParams();
  1928. }
  1929. input.ReadMessage(LoadParams);
  1930. break;
  1931. }
  1932. case 90: {
  1933. if (payloadConfig_ == null) {
  1934. PayloadConfig = new global::Grpc.Testing.PayloadConfig();
  1935. }
  1936. input.ReadMessage(PayloadConfig);
  1937. break;
  1938. }
  1939. case 98: {
  1940. if (histogramParams_ == null) {
  1941. HistogramParams = new global::Grpc.Testing.HistogramParams();
  1942. }
  1943. input.ReadMessage(HistogramParams);
  1944. break;
  1945. }
  1946. case 106:
  1947. case 104: {
  1948. coreList_.AddEntriesFrom(ref input, _repeated_coreList_codec);
  1949. break;
  1950. }
  1951. case 112: {
  1952. CoreLimit = input.ReadInt32();
  1953. break;
  1954. }
  1955. case 122: {
  1956. OtherClientApi = input.ReadString();
  1957. break;
  1958. }
  1959. case 130: {
  1960. channelArgs_.AddEntriesFrom(ref input, _repeated_channelArgs_codec);
  1961. break;
  1962. }
  1963. case 136: {
  1964. ThreadsPerCq = input.ReadInt32();
  1965. break;
  1966. }
  1967. case 144: {
  1968. MessagesPerStream = input.ReadInt32();
  1969. break;
  1970. }
  1971. case 152: {
  1972. UseCoalesceApi = input.ReadBool();
  1973. break;
  1974. }
  1975. case 160: {
  1976. MedianLatencyCollectionIntervalMillis = input.ReadInt32();
  1977. break;
  1978. }
  1979. case 168: {
  1980. ClientProcesses = input.ReadInt32();
  1981. break;
  1982. }
  1983. }
  1984. }
  1985. }
  1986. #endif
  1987. }
  1988. public sealed partial class ClientStatus : pb::IMessage<ClientStatus>
  1989. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1990. , pb::IBufferMessage
  1991. #endif
  1992. {
  1993. private static readonly pb::MessageParser<ClientStatus> _parser = new pb::MessageParser<ClientStatus>(() => new ClientStatus());
  1994. private pb::UnknownFieldSet _unknownFields;
  1995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1996. public static pb::MessageParser<ClientStatus> Parser { get { return _parser; } }
  1997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1998. public static pbr::MessageDescriptor Descriptor {
  1999. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[6]; }
  2000. }
  2001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2002. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2003. get { return Descriptor; }
  2004. }
  2005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2006. public ClientStatus() {
  2007. OnConstruction();
  2008. }
  2009. partial void OnConstruction();
  2010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2011. public ClientStatus(ClientStatus other) : this() {
  2012. stats_ = other.stats_ != null ? other.stats_.Clone() : null;
  2013. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2014. }
  2015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2016. public ClientStatus Clone() {
  2017. return new ClientStatus(this);
  2018. }
  2019. /// <summary>Field number for the "stats" field.</summary>
  2020. public const int StatsFieldNumber = 1;
  2021. private global::Grpc.Testing.ClientStats stats_;
  2022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2023. public global::Grpc.Testing.ClientStats Stats {
  2024. get { return stats_; }
  2025. set {
  2026. stats_ = value;
  2027. }
  2028. }
  2029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2030. public override bool Equals(object other) {
  2031. return Equals(other as ClientStatus);
  2032. }
  2033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2034. public bool Equals(ClientStatus other) {
  2035. if (ReferenceEquals(other, null)) {
  2036. return false;
  2037. }
  2038. if (ReferenceEquals(other, this)) {
  2039. return true;
  2040. }
  2041. if (!object.Equals(Stats, other.Stats)) return false;
  2042. return Equals(_unknownFields, other._unknownFields);
  2043. }
  2044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2045. public override int GetHashCode() {
  2046. int hash = 1;
  2047. if (stats_ != null) hash ^= Stats.GetHashCode();
  2048. if (_unknownFields != null) {
  2049. hash ^= _unknownFields.GetHashCode();
  2050. }
  2051. return hash;
  2052. }
  2053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2054. public override string ToString() {
  2055. return pb::JsonFormatter.ToDiagnosticString(this);
  2056. }
  2057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2058. public void WriteTo(pb::CodedOutputStream output) {
  2059. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2060. output.WriteRawMessage(this);
  2061. #else
  2062. if (stats_ != null) {
  2063. output.WriteRawTag(10);
  2064. output.WriteMessage(Stats);
  2065. }
  2066. if (_unknownFields != null) {
  2067. _unknownFields.WriteTo(output);
  2068. }
  2069. #endif
  2070. }
  2071. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2073. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  2074. if (stats_ != null) {
  2075. output.WriteRawTag(10);
  2076. output.WriteMessage(Stats);
  2077. }
  2078. if (_unknownFields != null) {
  2079. _unknownFields.WriteTo(ref output);
  2080. }
  2081. }
  2082. #endif
  2083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2084. public int CalculateSize() {
  2085. int size = 0;
  2086. if (stats_ != null) {
  2087. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Stats);
  2088. }
  2089. if (_unknownFields != null) {
  2090. size += _unknownFields.CalculateSize();
  2091. }
  2092. return size;
  2093. }
  2094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2095. public void MergeFrom(ClientStatus other) {
  2096. if (other == null) {
  2097. return;
  2098. }
  2099. if (other.stats_ != null) {
  2100. if (stats_ == null) {
  2101. Stats = new global::Grpc.Testing.ClientStats();
  2102. }
  2103. Stats.MergeFrom(other.Stats);
  2104. }
  2105. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2106. }
  2107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2108. public void MergeFrom(pb::CodedInputStream input) {
  2109. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2110. input.ReadRawMessage(this);
  2111. #else
  2112. uint tag;
  2113. while ((tag = input.ReadTag()) != 0) {
  2114. switch(tag) {
  2115. default:
  2116. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2117. break;
  2118. case 10: {
  2119. if (stats_ == null) {
  2120. Stats = new global::Grpc.Testing.ClientStats();
  2121. }
  2122. input.ReadMessage(Stats);
  2123. break;
  2124. }
  2125. }
  2126. }
  2127. #endif
  2128. }
  2129. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2131. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  2132. uint tag;
  2133. while ((tag = input.ReadTag()) != 0) {
  2134. switch(tag) {
  2135. default:
  2136. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  2137. break;
  2138. case 10: {
  2139. if (stats_ == null) {
  2140. Stats = new global::Grpc.Testing.ClientStats();
  2141. }
  2142. input.ReadMessage(Stats);
  2143. break;
  2144. }
  2145. }
  2146. }
  2147. }
  2148. #endif
  2149. }
  2150. /// <summary>
  2151. /// Request current stats
  2152. /// </summary>
  2153. public sealed partial class Mark : pb::IMessage<Mark>
  2154. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2155. , pb::IBufferMessage
  2156. #endif
  2157. {
  2158. private static readonly pb::MessageParser<Mark> _parser = new pb::MessageParser<Mark>(() => new Mark());
  2159. private pb::UnknownFieldSet _unknownFields;
  2160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2161. public static pb::MessageParser<Mark> Parser { get { return _parser; } }
  2162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2163. public static pbr::MessageDescriptor Descriptor {
  2164. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[7]; }
  2165. }
  2166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2167. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2168. get { return Descriptor; }
  2169. }
  2170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2171. public Mark() {
  2172. OnConstruction();
  2173. }
  2174. partial void OnConstruction();
  2175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2176. public Mark(Mark other) : this() {
  2177. reset_ = other.reset_;
  2178. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2179. }
  2180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2181. public Mark Clone() {
  2182. return new Mark(this);
  2183. }
  2184. /// <summary>Field number for the "reset" field.</summary>
  2185. public const int ResetFieldNumber = 1;
  2186. private bool reset_;
  2187. /// <summary>
  2188. /// if true, the stats will be reset after taking their snapshot.
  2189. /// </summary>
  2190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2191. public bool Reset {
  2192. get { return reset_; }
  2193. set {
  2194. reset_ = value;
  2195. }
  2196. }
  2197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2198. public override bool Equals(object other) {
  2199. return Equals(other as Mark);
  2200. }
  2201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2202. public bool Equals(Mark other) {
  2203. if (ReferenceEquals(other, null)) {
  2204. return false;
  2205. }
  2206. if (ReferenceEquals(other, this)) {
  2207. return true;
  2208. }
  2209. if (Reset != other.Reset) return false;
  2210. return Equals(_unknownFields, other._unknownFields);
  2211. }
  2212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2213. public override int GetHashCode() {
  2214. int hash = 1;
  2215. if (Reset != false) hash ^= Reset.GetHashCode();
  2216. if (_unknownFields != null) {
  2217. hash ^= _unknownFields.GetHashCode();
  2218. }
  2219. return hash;
  2220. }
  2221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2222. public override string ToString() {
  2223. return pb::JsonFormatter.ToDiagnosticString(this);
  2224. }
  2225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2226. public void WriteTo(pb::CodedOutputStream output) {
  2227. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2228. output.WriteRawMessage(this);
  2229. #else
  2230. if (Reset != false) {
  2231. output.WriteRawTag(8);
  2232. output.WriteBool(Reset);
  2233. }
  2234. if (_unknownFields != null) {
  2235. _unknownFields.WriteTo(output);
  2236. }
  2237. #endif
  2238. }
  2239. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2241. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  2242. if (Reset != false) {
  2243. output.WriteRawTag(8);
  2244. output.WriteBool(Reset);
  2245. }
  2246. if (_unknownFields != null) {
  2247. _unknownFields.WriteTo(ref output);
  2248. }
  2249. }
  2250. #endif
  2251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2252. public int CalculateSize() {
  2253. int size = 0;
  2254. if (Reset != false) {
  2255. size += 1 + 1;
  2256. }
  2257. if (_unknownFields != null) {
  2258. size += _unknownFields.CalculateSize();
  2259. }
  2260. return size;
  2261. }
  2262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2263. public void MergeFrom(Mark other) {
  2264. if (other == null) {
  2265. return;
  2266. }
  2267. if (other.Reset != false) {
  2268. Reset = other.Reset;
  2269. }
  2270. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2271. }
  2272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2273. public void MergeFrom(pb::CodedInputStream input) {
  2274. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2275. input.ReadRawMessage(this);
  2276. #else
  2277. uint tag;
  2278. while ((tag = input.ReadTag()) != 0) {
  2279. switch(tag) {
  2280. default:
  2281. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2282. break;
  2283. case 8: {
  2284. Reset = input.ReadBool();
  2285. break;
  2286. }
  2287. }
  2288. }
  2289. #endif
  2290. }
  2291. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2293. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  2294. uint tag;
  2295. while ((tag = input.ReadTag()) != 0) {
  2296. switch(tag) {
  2297. default:
  2298. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  2299. break;
  2300. case 8: {
  2301. Reset = input.ReadBool();
  2302. break;
  2303. }
  2304. }
  2305. }
  2306. }
  2307. #endif
  2308. }
  2309. public sealed partial class ClientArgs : pb::IMessage<ClientArgs>
  2310. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2311. , pb::IBufferMessage
  2312. #endif
  2313. {
  2314. private static readonly pb::MessageParser<ClientArgs> _parser = new pb::MessageParser<ClientArgs>(() => new ClientArgs());
  2315. private pb::UnknownFieldSet _unknownFields;
  2316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2317. public static pb::MessageParser<ClientArgs> Parser { get { return _parser; } }
  2318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2319. public static pbr::MessageDescriptor Descriptor {
  2320. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[8]; }
  2321. }
  2322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2323. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2324. get { return Descriptor; }
  2325. }
  2326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2327. public ClientArgs() {
  2328. OnConstruction();
  2329. }
  2330. partial void OnConstruction();
  2331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2332. public ClientArgs(ClientArgs other) : this() {
  2333. switch (other.ArgtypeCase) {
  2334. case ArgtypeOneofCase.Setup:
  2335. Setup = other.Setup.Clone();
  2336. break;
  2337. case ArgtypeOneofCase.Mark:
  2338. Mark = other.Mark.Clone();
  2339. break;
  2340. }
  2341. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2342. }
  2343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2344. public ClientArgs Clone() {
  2345. return new ClientArgs(this);
  2346. }
  2347. /// <summary>Field number for the "setup" field.</summary>
  2348. public const int SetupFieldNumber = 1;
  2349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2350. public global::Grpc.Testing.ClientConfig Setup {
  2351. get { return argtypeCase_ == ArgtypeOneofCase.Setup ? (global::Grpc.Testing.ClientConfig) argtype_ : null; }
  2352. set {
  2353. argtype_ = value;
  2354. argtypeCase_ = value == null ? ArgtypeOneofCase.None : ArgtypeOneofCase.Setup;
  2355. }
  2356. }
  2357. /// <summary>Field number for the "mark" field.</summary>
  2358. public const int MarkFieldNumber = 2;
  2359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2360. public global::Grpc.Testing.Mark Mark {
  2361. get { return argtypeCase_ == ArgtypeOneofCase.Mark ? (global::Grpc.Testing.Mark) argtype_ : null; }
  2362. set {
  2363. argtype_ = value;
  2364. argtypeCase_ = value == null ? ArgtypeOneofCase.None : ArgtypeOneofCase.Mark;
  2365. }
  2366. }
  2367. private object argtype_;
  2368. /// <summary>Enum of possible cases for the "argtype" oneof.</summary>
  2369. public enum ArgtypeOneofCase {
  2370. None = 0,
  2371. Setup = 1,
  2372. Mark = 2,
  2373. }
  2374. private ArgtypeOneofCase argtypeCase_ = ArgtypeOneofCase.None;
  2375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2376. public ArgtypeOneofCase ArgtypeCase {
  2377. get { return argtypeCase_; }
  2378. }
  2379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2380. public void ClearArgtype() {
  2381. argtypeCase_ = ArgtypeOneofCase.None;
  2382. argtype_ = null;
  2383. }
  2384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2385. public override bool Equals(object other) {
  2386. return Equals(other as ClientArgs);
  2387. }
  2388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2389. public bool Equals(ClientArgs other) {
  2390. if (ReferenceEquals(other, null)) {
  2391. return false;
  2392. }
  2393. if (ReferenceEquals(other, this)) {
  2394. return true;
  2395. }
  2396. if (!object.Equals(Setup, other.Setup)) return false;
  2397. if (!object.Equals(Mark, other.Mark)) return false;
  2398. if (ArgtypeCase != other.ArgtypeCase) return false;
  2399. return Equals(_unknownFields, other._unknownFields);
  2400. }
  2401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2402. public override int GetHashCode() {
  2403. int hash = 1;
  2404. if (argtypeCase_ == ArgtypeOneofCase.Setup) hash ^= Setup.GetHashCode();
  2405. if (argtypeCase_ == ArgtypeOneofCase.Mark) hash ^= Mark.GetHashCode();
  2406. hash ^= (int) argtypeCase_;
  2407. if (_unknownFields != null) {
  2408. hash ^= _unknownFields.GetHashCode();
  2409. }
  2410. return hash;
  2411. }
  2412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2413. public override string ToString() {
  2414. return pb::JsonFormatter.ToDiagnosticString(this);
  2415. }
  2416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2417. public void WriteTo(pb::CodedOutputStream output) {
  2418. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2419. output.WriteRawMessage(this);
  2420. #else
  2421. if (argtypeCase_ == ArgtypeOneofCase.Setup) {
  2422. output.WriteRawTag(10);
  2423. output.WriteMessage(Setup);
  2424. }
  2425. if (argtypeCase_ == ArgtypeOneofCase.Mark) {
  2426. output.WriteRawTag(18);
  2427. output.WriteMessage(Mark);
  2428. }
  2429. if (_unknownFields != null) {
  2430. _unknownFields.WriteTo(output);
  2431. }
  2432. #endif
  2433. }
  2434. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2436. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  2437. if (argtypeCase_ == ArgtypeOneofCase.Setup) {
  2438. output.WriteRawTag(10);
  2439. output.WriteMessage(Setup);
  2440. }
  2441. if (argtypeCase_ == ArgtypeOneofCase.Mark) {
  2442. output.WriteRawTag(18);
  2443. output.WriteMessage(Mark);
  2444. }
  2445. if (_unknownFields != null) {
  2446. _unknownFields.WriteTo(ref output);
  2447. }
  2448. }
  2449. #endif
  2450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2451. public int CalculateSize() {
  2452. int size = 0;
  2453. if (argtypeCase_ == ArgtypeOneofCase.Setup) {
  2454. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Setup);
  2455. }
  2456. if (argtypeCase_ == ArgtypeOneofCase.Mark) {
  2457. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Mark);
  2458. }
  2459. if (_unknownFields != null) {
  2460. size += _unknownFields.CalculateSize();
  2461. }
  2462. return size;
  2463. }
  2464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2465. public void MergeFrom(ClientArgs other) {
  2466. if (other == null) {
  2467. return;
  2468. }
  2469. switch (other.ArgtypeCase) {
  2470. case ArgtypeOneofCase.Setup:
  2471. if (Setup == null) {
  2472. Setup = new global::Grpc.Testing.ClientConfig();
  2473. }
  2474. Setup.MergeFrom(other.Setup);
  2475. break;
  2476. case ArgtypeOneofCase.Mark:
  2477. if (Mark == null) {
  2478. Mark = new global::Grpc.Testing.Mark();
  2479. }
  2480. Mark.MergeFrom(other.Mark);
  2481. break;
  2482. }
  2483. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2484. }
  2485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2486. public void MergeFrom(pb::CodedInputStream input) {
  2487. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2488. input.ReadRawMessage(this);
  2489. #else
  2490. uint tag;
  2491. while ((tag = input.ReadTag()) != 0) {
  2492. switch(tag) {
  2493. default:
  2494. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2495. break;
  2496. case 10: {
  2497. global::Grpc.Testing.ClientConfig subBuilder = new global::Grpc.Testing.ClientConfig();
  2498. if (argtypeCase_ == ArgtypeOneofCase.Setup) {
  2499. subBuilder.MergeFrom(Setup);
  2500. }
  2501. input.ReadMessage(subBuilder);
  2502. Setup = subBuilder;
  2503. break;
  2504. }
  2505. case 18: {
  2506. global::Grpc.Testing.Mark subBuilder = new global::Grpc.Testing.Mark();
  2507. if (argtypeCase_ == ArgtypeOneofCase.Mark) {
  2508. subBuilder.MergeFrom(Mark);
  2509. }
  2510. input.ReadMessage(subBuilder);
  2511. Mark = subBuilder;
  2512. break;
  2513. }
  2514. }
  2515. }
  2516. #endif
  2517. }
  2518. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2520. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  2521. uint tag;
  2522. while ((tag = input.ReadTag()) != 0) {
  2523. switch(tag) {
  2524. default:
  2525. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  2526. break;
  2527. case 10: {
  2528. global::Grpc.Testing.ClientConfig subBuilder = new global::Grpc.Testing.ClientConfig();
  2529. if (argtypeCase_ == ArgtypeOneofCase.Setup) {
  2530. subBuilder.MergeFrom(Setup);
  2531. }
  2532. input.ReadMessage(subBuilder);
  2533. Setup = subBuilder;
  2534. break;
  2535. }
  2536. case 18: {
  2537. global::Grpc.Testing.Mark subBuilder = new global::Grpc.Testing.Mark();
  2538. if (argtypeCase_ == ArgtypeOneofCase.Mark) {
  2539. subBuilder.MergeFrom(Mark);
  2540. }
  2541. input.ReadMessage(subBuilder);
  2542. Mark = subBuilder;
  2543. break;
  2544. }
  2545. }
  2546. }
  2547. }
  2548. #endif
  2549. }
  2550. public sealed partial class ServerConfig : pb::IMessage<ServerConfig>
  2551. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2552. , pb::IBufferMessage
  2553. #endif
  2554. {
  2555. private static readonly pb::MessageParser<ServerConfig> _parser = new pb::MessageParser<ServerConfig>(() => new ServerConfig());
  2556. private pb::UnknownFieldSet _unknownFields;
  2557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2558. public static pb::MessageParser<ServerConfig> Parser { get { return _parser; } }
  2559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2560. public static pbr::MessageDescriptor Descriptor {
  2561. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[9]; }
  2562. }
  2563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2564. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2565. get { return Descriptor; }
  2566. }
  2567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2568. public ServerConfig() {
  2569. OnConstruction();
  2570. }
  2571. partial void OnConstruction();
  2572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2573. public ServerConfig(ServerConfig other) : this() {
  2574. serverType_ = other.serverType_;
  2575. securityParams_ = other.securityParams_ != null ? other.securityParams_.Clone() : null;
  2576. port_ = other.port_;
  2577. asyncServerThreads_ = other.asyncServerThreads_;
  2578. coreLimit_ = other.coreLimit_;
  2579. payloadConfig_ = other.payloadConfig_ != null ? other.payloadConfig_.Clone() : null;
  2580. coreList_ = other.coreList_.Clone();
  2581. otherServerApi_ = other.otherServerApi_;
  2582. threadsPerCq_ = other.threadsPerCq_;
  2583. resourceQuotaSize_ = other.resourceQuotaSize_;
  2584. channelArgs_ = other.channelArgs_.Clone();
  2585. serverProcesses_ = other.serverProcesses_;
  2586. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2587. }
  2588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2589. public ServerConfig Clone() {
  2590. return new ServerConfig(this);
  2591. }
  2592. /// <summary>Field number for the "server_type" field.</summary>
  2593. public const int ServerTypeFieldNumber = 1;
  2594. private global::Grpc.Testing.ServerType serverType_ = global::Grpc.Testing.ServerType.SyncServer;
  2595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2596. public global::Grpc.Testing.ServerType ServerType {
  2597. get { return serverType_; }
  2598. set {
  2599. serverType_ = value;
  2600. }
  2601. }
  2602. /// <summary>Field number for the "security_params" field.</summary>
  2603. public const int SecurityParamsFieldNumber = 2;
  2604. private global::Grpc.Testing.SecurityParams securityParams_;
  2605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2606. public global::Grpc.Testing.SecurityParams SecurityParams {
  2607. get { return securityParams_; }
  2608. set {
  2609. securityParams_ = value;
  2610. }
  2611. }
  2612. /// <summary>Field number for the "port" field.</summary>
  2613. public const int PortFieldNumber = 4;
  2614. private int port_;
  2615. /// <summary>
  2616. /// Port on which to listen. Zero means pick unused port.
  2617. /// </summary>
  2618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2619. public int Port {
  2620. get { return port_; }
  2621. set {
  2622. port_ = value;
  2623. }
  2624. }
  2625. /// <summary>Field number for the "async_server_threads" field.</summary>
  2626. public const int AsyncServerThreadsFieldNumber = 7;
  2627. private int asyncServerThreads_;
  2628. /// <summary>
  2629. /// Only for async server. Number of threads used to serve the requests.
  2630. /// </summary>
  2631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2632. public int AsyncServerThreads {
  2633. get { return asyncServerThreads_; }
  2634. set {
  2635. asyncServerThreads_ = value;
  2636. }
  2637. }
  2638. /// <summary>Field number for the "core_limit" field.</summary>
  2639. public const int CoreLimitFieldNumber = 8;
  2640. private int coreLimit_;
  2641. /// <summary>
  2642. /// Specify the number of cores to limit server to, if desired
  2643. /// </summary>
  2644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2645. public int CoreLimit {
  2646. get { return coreLimit_; }
  2647. set {
  2648. coreLimit_ = value;
  2649. }
  2650. }
  2651. /// <summary>Field number for the "payload_config" field.</summary>
  2652. public const int PayloadConfigFieldNumber = 9;
  2653. private global::Grpc.Testing.PayloadConfig payloadConfig_;
  2654. /// <summary>
  2655. /// payload config, used in generic server.
  2656. /// Note this must NOT be used in proto (non-generic) servers. For proto servers,
  2657. /// 'response sizes' must be configured from the 'response_size' field of the
  2658. /// 'SimpleRequest' objects in RPC requests.
  2659. /// </summary>
  2660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2661. public global::Grpc.Testing.PayloadConfig PayloadConfig {
  2662. get { return payloadConfig_; }
  2663. set {
  2664. payloadConfig_ = value;
  2665. }
  2666. }
  2667. /// <summary>Field number for the "core_list" field.</summary>
  2668. public const int CoreListFieldNumber = 10;
  2669. private static readonly pb::FieldCodec<int> _repeated_coreList_codec
  2670. = pb::FieldCodec.ForInt32(82);
  2671. private readonly pbc::RepeatedField<int> coreList_ = new pbc::RepeatedField<int>();
  2672. /// <summary>
  2673. /// Specify the cores we should run the server on, if desired
  2674. /// </summary>
  2675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2676. public pbc::RepeatedField<int> CoreList {
  2677. get { return coreList_; }
  2678. }
  2679. /// <summary>Field number for the "other_server_api" field.</summary>
  2680. public const int OtherServerApiFieldNumber = 11;
  2681. private string otherServerApi_ = "";
  2682. /// <summary>
  2683. /// If we use an OTHER_SERVER client_type, this string gives more detail
  2684. /// </summary>
  2685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2686. public string OtherServerApi {
  2687. get { return otherServerApi_; }
  2688. set {
  2689. otherServerApi_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2690. }
  2691. }
  2692. /// <summary>Field number for the "threads_per_cq" field.</summary>
  2693. public const int ThreadsPerCqFieldNumber = 12;
  2694. private int threadsPerCq_;
  2695. /// <summary>
  2696. /// Number of threads that share each completion queue
  2697. /// </summary>
  2698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2699. public int ThreadsPerCq {
  2700. get { return threadsPerCq_; }
  2701. set {
  2702. threadsPerCq_ = value;
  2703. }
  2704. }
  2705. /// <summary>Field number for the "resource_quota_size" field.</summary>
  2706. public const int ResourceQuotaSizeFieldNumber = 1001;
  2707. private int resourceQuotaSize_;
  2708. /// <summary>
  2709. /// Buffer pool size (no buffer pool specified if unset)
  2710. /// </summary>
  2711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2712. public int ResourceQuotaSize {
  2713. get { return resourceQuotaSize_; }
  2714. set {
  2715. resourceQuotaSize_ = value;
  2716. }
  2717. }
  2718. /// <summary>Field number for the "channel_args" field.</summary>
  2719. public const int ChannelArgsFieldNumber = 1002;
  2720. private static readonly pb::FieldCodec<global::Grpc.Testing.ChannelArg> _repeated_channelArgs_codec
  2721. = pb::FieldCodec.ForMessage(8018, global::Grpc.Testing.ChannelArg.Parser);
  2722. private readonly pbc::RepeatedField<global::Grpc.Testing.ChannelArg> channelArgs_ = new pbc::RepeatedField<global::Grpc.Testing.ChannelArg>();
  2723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2724. public pbc::RepeatedField<global::Grpc.Testing.ChannelArg> ChannelArgs {
  2725. get { return channelArgs_; }
  2726. }
  2727. /// <summary>Field number for the "server_processes" field.</summary>
  2728. public const int ServerProcessesFieldNumber = 21;
  2729. private int serverProcesses_;
  2730. /// <summary>
  2731. /// Number of server processes. 0 indicates no restriction.
  2732. /// </summary>
  2733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2734. public int ServerProcesses {
  2735. get { return serverProcesses_; }
  2736. set {
  2737. serverProcesses_ = value;
  2738. }
  2739. }
  2740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2741. public override bool Equals(object other) {
  2742. return Equals(other as ServerConfig);
  2743. }
  2744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2745. public bool Equals(ServerConfig other) {
  2746. if (ReferenceEquals(other, null)) {
  2747. return false;
  2748. }
  2749. if (ReferenceEquals(other, this)) {
  2750. return true;
  2751. }
  2752. if (ServerType != other.ServerType) return false;
  2753. if (!object.Equals(SecurityParams, other.SecurityParams)) return false;
  2754. if (Port != other.Port) return false;
  2755. if (AsyncServerThreads != other.AsyncServerThreads) return false;
  2756. if (CoreLimit != other.CoreLimit) return false;
  2757. if (!object.Equals(PayloadConfig, other.PayloadConfig)) return false;
  2758. if(!coreList_.Equals(other.coreList_)) return false;
  2759. if (OtherServerApi != other.OtherServerApi) return false;
  2760. if (ThreadsPerCq != other.ThreadsPerCq) return false;
  2761. if (ResourceQuotaSize != other.ResourceQuotaSize) return false;
  2762. if(!channelArgs_.Equals(other.channelArgs_)) return false;
  2763. if (ServerProcesses != other.ServerProcesses) return false;
  2764. return Equals(_unknownFields, other._unknownFields);
  2765. }
  2766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2767. public override int GetHashCode() {
  2768. int hash = 1;
  2769. if (ServerType != global::Grpc.Testing.ServerType.SyncServer) hash ^= ServerType.GetHashCode();
  2770. if (securityParams_ != null) hash ^= SecurityParams.GetHashCode();
  2771. if (Port != 0) hash ^= Port.GetHashCode();
  2772. if (AsyncServerThreads != 0) hash ^= AsyncServerThreads.GetHashCode();
  2773. if (CoreLimit != 0) hash ^= CoreLimit.GetHashCode();
  2774. if (payloadConfig_ != null) hash ^= PayloadConfig.GetHashCode();
  2775. hash ^= coreList_.GetHashCode();
  2776. if (OtherServerApi.Length != 0) hash ^= OtherServerApi.GetHashCode();
  2777. if (ThreadsPerCq != 0) hash ^= ThreadsPerCq.GetHashCode();
  2778. if (ResourceQuotaSize != 0) hash ^= ResourceQuotaSize.GetHashCode();
  2779. hash ^= channelArgs_.GetHashCode();
  2780. if (ServerProcesses != 0) hash ^= ServerProcesses.GetHashCode();
  2781. if (_unknownFields != null) {
  2782. hash ^= _unknownFields.GetHashCode();
  2783. }
  2784. return hash;
  2785. }
  2786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2787. public override string ToString() {
  2788. return pb::JsonFormatter.ToDiagnosticString(this);
  2789. }
  2790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2791. public void WriteTo(pb::CodedOutputStream output) {
  2792. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2793. output.WriteRawMessage(this);
  2794. #else
  2795. if (ServerType != global::Grpc.Testing.ServerType.SyncServer) {
  2796. output.WriteRawTag(8);
  2797. output.WriteEnum((int) ServerType);
  2798. }
  2799. if (securityParams_ != null) {
  2800. output.WriteRawTag(18);
  2801. output.WriteMessage(SecurityParams);
  2802. }
  2803. if (Port != 0) {
  2804. output.WriteRawTag(32);
  2805. output.WriteInt32(Port);
  2806. }
  2807. if (AsyncServerThreads != 0) {
  2808. output.WriteRawTag(56);
  2809. output.WriteInt32(AsyncServerThreads);
  2810. }
  2811. if (CoreLimit != 0) {
  2812. output.WriteRawTag(64);
  2813. output.WriteInt32(CoreLimit);
  2814. }
  2815. if (payloadConfig_ != null) {
  2816. output.WriteRawTag(74);
  2817. output.WriteMessage(PayloadConfig);
  2818. }
  2819. coreList_.WriteTo(output, _repeated_coreList_codec);
  2820. if (OtherServerApi.Length != 0) {
  2821. output.WriteRawTag(90);
  2822. output.WriteString(OtherServerApi);
  2823. }
  2824. if (ThreadsPerCq != 0) {
  2825. output.WriteRawTag(96);
  2826. output.WriteInt32(ThreadsPerCq);
  2827. }
  2828. if (ServerProcesses != 0) {
  2829. output.WriteRawTag(168, 1);
  2830. output.WriteInt32(ServerProcesses);
  2831. }
  2832. if (ResourceQuotaSize != 0) {
  2833. output.WriteRawTag(200, 62);
  2834. output.WriteInt32(ResourceQuotaSize);
  2835. }
  2836. channelArgs_.WriteTo(output, _repeated_channelArgs_codec);
  2837. if (_unknownFields != null) {
  2838. _unknownFields.WriteTo(output);
  2839. }
  2840. #endif
  2841. }
  2842. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2844. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  2845. if (ServerType != global::Grpc.Testing.ServerType.SyncServer) {
  2846. output.WriteRawTag(8);
  2847. output.WriteEnum((int) ServerType);
  2848. }
  2849. if (securityParams_ != null) {
  2850. output.WriteRawTag(18);
  2851. output.WriteMessage(SecurityParams);
  2852. }
  2853. if (Port != 0) {
  2854. output.WriteRawTag(32);
  2855. output.WriteInt32(Port);
  2856. }
  2857. if (AsyncServerThreads != 0) {
  2858. output.WriteRawTag(56);
  2859. output.WriteInt32(AsyncServerThreads);
  2860. }
  2861. if (CoreLimit != 0) {
  2862. output.WriteRawTag(64);
  2863. output.WriteInt32(CoreLimit);
  2864. }
  2865. if (payloadConfig_ != null) {
  2866. output.WriteRawTag(74);
  2867. output.WriteMessage(PayloadConfig);
  2868. }
  2869. coreList_.WriteTo(ref output, _repeated_coreList_codec);
  2870. if (OtherServerApi.Length != 0) {
  2871. output.WriteRawTag(90);
  2872. output.WriteString(OtherServerApi);
  2873. }
  2874. if (ThreadsPerCq != 0) {
  2875. output.WriteRawTag(96);
  2876. output.WriteInt32(ThreadsPerCq);
  2877. }
  2878. if (ServerProcesses != 0) {
  2879. output.WriteRawTag(168, 1);
  2880. output.WriteInt32(ServerProcesses);
  2881. }
  2882. if (ResourceQuotaSize != 0) {
  2883. output.WriteRawTag(200, 62);
  2884. output.WriteInt32(ResourceQuotaSize);
  2885. }
  2886. channelArgs_.WriteTo(ref output, _repeated_channelArgs_codec);
  2887. if (_unknownFields != null) {
  2888. _unknownFields.WriteTo(ref output);
  2889. }
  2890. }
  2891. #endif
  2892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2893. public int CalculateSize() {
  2894. int size = 0;
  2895. if (ServerType != global::Grpc.Testing.ServerType.SyncServer) {
  2896. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ServerType);
  2897. }
  2898. if (securityParams_ != null) {
  2899. size += 1 + pb::CodedOutputStream.ComputeMessageSize(SecurityParams);
  2900. }
  2901. if (Port != 0) {
  2902. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Port);
  2903. }
  2904. if (AsyncServerThreads != 0) {
  2905. size += 1 + pb::CodedOutputStream.ComputeInt32Size(AsyncServerThreads);
  2906. }
  2907. if (CoreLimit != 0) {
  2908. size += 1 + pb::CodedOutputStream.ComputeInt32Size(CoreLimit);
  2909. }
  2910. if (payloadConfig_ != null) {
  2911. size += 1 + pb::CodedOutputStream.ComputeMessageSize(PayloadConfig);
  2912. }
  2913. size += coreList_.CalculateSize(_repeated_coreList_codec);
  2914. if (OtherServerApi.Length != 0) {
  2915. size += 1 + pb::CodedOutputStream.ComputeStringSize(OtherServerApi);
  2916. }
  2917. if (ThreadsPerCq != 0) {
  2918. size += 1 + pb::CodedOutputStream.ComputeInt32Size(ThreadsPerCq);
  2919. }
  2920. if (ResourceQuotaSize != 0) {
  2921. size += 2 + pb::CodedOutputStream.ComputeInt32Size(ResourceQuotaSize);
  2922. }
  2923. size += channelArgs_.CalculateSize(_repeated_channelArgs_codec);
  2924. if (ServerProcesses != 0) {
  2925. size += 2 + pb::CodedOutputStream.ComputeInt32Size(ServerProcesses);
  2926. }
  2927. if (_unknownFields != null) {
  2928. size += _unknownFields.CalculateSize();
  2929. }
  2930. return size;
  2931. }
  2932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2933. public void MergeFrom(ServerConfig other) {
  2934. if (other == null) {
  2935. return;
  2936. }
  2937. if (other.ServerType != global::Grpc.Testing.ServerType.SyncServer) {
  2938. ServerType = other.ServerType;
  2939. }
  2940. if (other.securityParams_ != null) {
  2941. if (securityParams_ == null) {
  2942. SecurityParams = new global::Grpc.Testing.SecurityParams();
  2943. }
  2944. SecurityParams.MergeFrom(other.SecurityParams);
  2945. }
  2946. if (other.Port != 0) {
  2947. Port = other.Port;
  2948. }
  2949. if (other.AsyncServerThreads != 0) {
  2950. AsyncServerThreads = other.AsyncServerThreads;
  2951. }
  2952. if (other.CoreLimit != 0) {
  2953. CoreLimit = other.CoreLimit;
  2954. }
  2955. if (other.payloadConfig_ != null) {
  2956. if (payloadConfig_ == null) {
  2957. PayloadConfig = new global::Grpc.Testing.PayloadConfig();
  2958. }
  2959. PayloadConfig.MergeFrom(other.PayloadConfig);
  2960. }
  2961. coreList_.Add(other.coreList_);
  2962. if (other.OtherServerApi.Length != 0) {
  2963. OtherServerApi = other.OtherServerApi;
  2964. }
  2965. if (other.ThreadsPerCq != 0) {
  2966. ThreadsPerCq = other.ThreadsPerCq;
  2967. }
  2968. if (other.ResourceQuotaSize != 0) {
  2969. ResourceQuotaSize = other.ResourceQuotaSize;
  2970. }
  2971. channelArgs_.Add(other.channelArgs_);
  2972. if (other.ServerProcesses != 0) {
  2973. ServerProcesses = other.ServerProcesses;
  2974. }
  2975. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2976. }
  2977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2978. public void MergeFrom(pb::CodedInputStream input) {
  2979. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2980. input.ReadRawMessage(this);
  2981. #else
  2982. uint tag;
  2983. while ((tag = input.ReadTag()) != 0) {
  2984. switch(tag) {
  2985. default:
  2986. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2987. break;
  2988. case 8: {
  2989. ServerType = (global::Grpc.Testing.ServerType) input.ReadEnum();
  2990. break;
  2991. }
  2992. case 18: {
  2993. if (securityParams_ == null) {
  2994. SecurityParams = new global::Grpc.Testing.SecurityParams();
  2995. }
  2996. input.ReadMessage(SecurityParams);
  2997. break;
  2998. }
  2999. case 32: {
  3000. Port = input.ReadInt32();
  3001. break;
  3002. }
  3003. case 56: {
  3004. AsyncServerThreads = input.ReadInt32();
  3005. break;
  3006. }
  3007. case 64: {
  3008. CoreLimit = input.ReadInt32();
  3009. break;
  3010. }
  3011. case 74: {
  3012. if (payloadConfig_ == null) {
  3013. PayloadConfig = new global::Grpc.Testing.PayloadConfig();
  3014. }
  3015. input.ReadMessage(PayloadConfig);
  3016. break;
  3017. }
  3018. case 82:
  3019. case 80: {
  3020. coreList_.AddEntriesFrom(input, _repeated_coreList_codec);
  3021. break;
  3022. }
  3023. case 90: {
  3024. OtherServerApi = input.ReadString();
  3025. break;
  3026. }
  3027. case 96: {
  3028. ThreadsPerCq = input.ReadInt32();
  3029. break;
  3030. }
  3031. case 168: {
  3032. ServerProcesses = input.ReadInt32();
  3033. break;
  3034. }
  3035. case 8008: {
  3036. ResourceQuotaSize = input.ReadInt32();
  3037. break;
  3038. }
  3039. case 8018: {
  3040. channelArgs_.AddEntriesFrom(input, _repeated_channelArgs_codec);
  3041. break;
  3042. }
  3043. }
  3044. }
  3045. #endif
  3046. }
  3047. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3049. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  3050. uint tag;
  3051. while ((tag = input.ReadTag()) != 0) {
  3052. switch(tag) {
  3053. default:
  3054. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  3055. break;
  3056. case 8: {
  3057. ServerType = (global::Grpc.Testing.ServerType) input.ReadEnum();
  3058. break;
  3059. }
  3060. case 18: {
  3061. if (securityParams_ == null) {
  3062. SecurityParams = new global::Grpc.Testing.SecurityParams();
  3063. }
  3064. input.ReadMessage(SecurityParams);
  3065. break;
  3066. }
  3067. case 32: {
  3068. Port = input.ReadInt32();
  3069. break;
  3070. }
  3071. case 56: {
  3072. AsyncServerThreads = input.ReadInt32();
  3073. break;
  3074. }
  3075. case 64: {
  3076. CoreLimit = input.ReadInt32();
  3077. break;
  3078. }
  3079. case 74: {
  3080. if (payloadConfig_ == null) {
  3081. PayloadConfig = new global::Grpc.Testing.PayloadConfig();
  3082. }
  3083. input.ReadMessage(PayloadConfig);
  3084. break;
  3085. }
  3086. case 82:
  3087. case 80: {
  3088. coreList_.AddEntriesFrom(ref input, _repeated_coreList_codec);
  3089. break;
  3090. }
  3091. case 90: {
  3092. OtherServerApi = input.ReadString();
  3093. break;
  3094. }
  3095. case 96: {
  3096. ThreadsPerCq = input.ReadInt32();
  3097. break;
  3098. }
  3099. case 168: {
  3100. ServerProcesses = input.ReadInt32();
  3101. break;
  3102. }
  3103. case 8008: {
  3104. ResourceQuotaSize = input.ReadInt32();
  3105. break;
  3106. }
  3107. case 8018: {
  3108. channelArgs_.AddEntriesFrom(ref input, _repeated_channelArgs_codec);
  3109. break;
  3110. }
  3111. }
  3112. }
  3113. }
  3114. #endif
  3115. }
  3116. public sealed partial class ServerArgs : pb::IMessage<ServerArgs>
  3117. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3118. , pb::IBufferMessage
  3119. #endif
  3120. {
  3121. private static readonly pb::MessageParser<ServerArgs> _parser = new pb::MessageParser<ServerArgs>(() => new ServerArgs());
  3122. private pb::UnknownFieldSet _unknownFields;
  3123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3124. public static pb::MessageParser<ServerArgs> Parser { get { return _parser; } }
  3125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3126. public static pbr::MessageDescriptor Descriptor {
  3127. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[10]; }
  3128. }
  3129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3130. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3131. get { return Descriptor; }
  3132. }
  3133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3134. public ServerArgs() {
  3135. OnConstruction();
  3136. }
  3137. partial void OnConstruction();
  3138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3139. public ServerArgs(ServerArgs other) : this() {
  3140. switch (other.ArgtypeCase) {
  3141. case ArgtypeOneofCase.Setup:
  3142. Setup = other.Setup.Clone();
  3143. break;
  3144. case ArgtypeOneofCase.Mark:
  3145. Mark = other.Mark.Clone();
  3146. break;
  3147. }
  3148. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  3149. }
  3150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3151. public ServerArgs Clone() {
  3152. return new ServerArgs(this);
  3153. }
  3154. /// <summary>Field number for the "setup" field.</summary>
  3155. public const int SetupFieldNumber = 1;
  3156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3157. public global::Grpc.Testing.ServerConfig Setup {
  3158. get { return argtypeCase_ == ArgtypeOneofCase.Setup ? (global::Grpc.Testing.ServerConfig) argtype_ : null; }
  3159. set {
  3160. argtype_ = value;
  3161. argtypeCase_ = value == null ? ArgtypeOneofCase.None : ArgtypeOneofCase.Setup;
  3162. }
  3163. }
  3164. /// <summary>Field number for the "mark" field.</summary>
  3165. public const int MarkFieldNumber = 2;
  3166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3167. public global::Grpc.Testing.Mark Mark {
  3168. get { return argtypeCase_ == ArgtypeOneofCase.Mark ? (global::Grpc.Testing.Mark) argtype_ : null; }
  3169. set {
  3170. argtype_ = value;
  3171. argtypeCase_ = value == null ? ArgtypeOneofCase.None : ArgtypeOneofCase.Mark;
  3172. }
  3173. }
  3174. private object argtype_;
  3175. /// <summary>Enum of possible cases for the "argtype" oneof.</summary>
  3176. public enum ArgtypeOneofCase {
  3177. None = 0,
  3178. Setup = 1,
  3179. Mark = 2,
  3180. }
  3181. private ArgtypeOneofCase argtypeCase_ = ArgtypeOneofCase.None;
  3182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3183. public ArgtypeOneofCase ArgtypeCase {
  3184. get { return argtypeCase_; }
  3185. }
  3186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3187. public void ClearArgtype() {
  3188. argtypeCase_ = ArgtypeOneofCase.None;
  3189. argtype_ = null;
  3190. }
  3191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3192. public override bool Equals(object other) {
  3193. return Equals(other as ServerArgs);
  3194. }
  3195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3196. public bool Equals(ServerArgs other) {
  3197. if (ReferenceEquals(other, null)) {
  3198. return false;
  3199. }
  3200. if (ReferenceEquals(other, this)) {
  3201. return true;
  3202. }
  3203. if (!object.Equals(Setup, other.Setup)) return false;
  3204. if (!object.Equals(Mark, other.Mark)) return false;
  3205. if (ArgtypeCase != other.ArgtypeCase) return false;
  3206. return Equals(_unknownFields, other._unknownFields);
  3207. }
  3208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3209. public override int GetHashCode() {
  3210. int hash = 1;
  3211. if (argtypeCase_ == ArgtypeOneofCase.Setup) hash ^= Setup.GetHashCode();
  3212. if (argtypeCase_ == ArgtypeOneofCase.Mark) hash ^= Mark.GetHashCode();
  3213. hash ^= (int) argtypeCase_;
  3214. if (_unknownFields != null) {
  3215. hash ^= _unknownFields.GetHashCode();
  3216. }
  3217. return hash;
  3218. }
  3219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3220. public override string ToString() {
  3221. return pb::JsonFormatter.ToDiagnosticString(this);
  3222. }
  3223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3224. public void WriteTo(pb::CodedOutputStream output) {
  3225. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3226. output.WriteRawMessage(this);
  3227. #else
  3228. if (argtypeCase_ == ArgtypeOneofCase.Setup) {
  3229. output.WriteRawTag(10);
  3230. output.WriteMessage(Setup);
  3231. }
  3232. if (argtypeCase_ == ArgtypeOneofCase.Mark) {
  3233. output.WriteRawTag(18);
  3234. output.WriteMessage(Mark);
  3235. }
  3236. if (_unknownFields != null) {
  3237. _unknownFields.WriteTo(output);
  3238. }
  3239. #endif
  3240. }
  3241. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3243. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  3244. if (argtypeCase_ == ArgtypeOneofCase.Setup) {
  3245. output.WriteRawTag(10);
  3246. output.WriteMessage(Setup);
  3247. }
  3248. if (argtypeCase_ == ArgtypeOneofCase.Mark) {
  3249. output.WriteRawTag(18);
  3250. output.WriteMessage(Mark);
  3251. }
  3252. if (_unknownFields != null) {
  3253. _unknownFields.WriteTo(ref output);
  3254. }
  3255. }
  3256. #endif
  3257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3258. public int CalculateSize() {
  3259. int size = 0;
  3260. if (argtypeCase_ == ArgtypeOneofCase.Setup) {
  3261. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Setup);
  3262. }
  3263. if (argtypeCase_ == ArgtypeOneofCase.Mark) {
  3264. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Mark);
  3265. }
  3266. if (_unknownFields != null) {
  3267. size += _unknownFields.CalculateSize();
  3268. }
  3269. return size;
  3270. }
  3271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3272. public void MergeFrom(ServerArgs other) {
  3273. if (other == null) {
  3274. return;
  3275. }
  3276. switch (other.ArgtypeCase) {
  3277. case ArgtypeOneofCase.Setup:
  3278. if (Setup == null) {
  3279. Setup = new global::Grpc.Testing.ServerConfig();
  3280. }
  3281. Setup.MergeFrom(other.Setup);
  3282. break;
  3283. case ArgtypeOneofCase.Mark:
  3284. if (Mark == null) {
  3285. Mark = new global::Grpc.Testing.Mark();
  3286. }
  3287. Mark.MergeFrom(other.Mark);
  3288. break;
  3289. }
  3290. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  3291. }
  3292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3293. public void MergeFrom(pb::CodedInputStream input) {
  3294. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3295. input.ReadRawMessage(this);
  3296. #else
  3297. uint tag;
  3298. while ((tag = input.ReadTag()) != 0) {
  3299. switch(tag) {
  3300. default:
  3301. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  3302. break;
  3303. case 10: {
  3304. global::Grpc.Testing.ServerConfig subBuilder = new global::Grpc.Testing.ServerConfig();
  3305. if (argtypeCase_ == ArgtypeOneofCase.Setup) {
  3306. subBuilder.MergeFrom(Setup);
  3307. }
  3308. input.ReadMessage(subBuilder);
  3309. Setup = subBuilder;
  3310. break;
  3311. }
  3312. case 18: {
  3313. global::Grpc.Testing.Mark subBuilder = new global::Grpc.Testing.Mark();
  3314. if (argtypeCase_ == ArgtypeOneofCase.Mark) {
  3315. subBuilder.MergeFrom(Mark);
  3316. }
  3317. input.ReadMessage(subBuilder);
  3318. Mark = subBuilder;
  3319. break;
  3320. }
  3321. }
  3322. }
  3323. #endif
  3324. }
  3325. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3327. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  3328. uint tag;
  3329. while ((tag = input.ReadTag()) != 0) {
  3330. switch(tag) {
  3331. default:
  3332. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  3333. break;
  3334. case 10: {
  3335. global::Grpc.Testing.ServerConfig subBuilder = new global::Grpc.Testing.ServerConfig();
  3336. if (argtypeCase_ == ArgtypeOneofCase.Setup) {
  3337. subBuilder.MergeFrom(Setup);
  3338. }
  3339. input.ReadMessage(subBuilder);
  3340. Setup = subBuilder;
  3341. break;
  3342. }
  3343. case 18: {
  3344. global::Grpc.Testing.Mark subBuilder = new global::Grpc.Testing.Mark();
  3345. if (argtypeCase_ == ArgtypeOneofCase.Mark) {
  3346. subBuilder.MergeFrom(Mark);
  3347. }
  3348. input.ReadMessage(subBuilder);
  3349. Mark = subBuilder;
  3350. break;
  3351. }
  3352. }
  3353. }
  3354. }
  3355. #endif
  3356. }
  3357. public sealed partial class ServerStatus : pb::IMessage<ServerStatus>
  3358. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3359. , pb::IBufferMessage
  3360. #endif
  3361. {
  3362. private static readonly pb::MessageParser<ServerStatus> _parser = new pb::MessageParser<ServerStatus>(() => new ServerStatus());
  3363. private pb::UnknownFieldSet _unknownFields;
  3364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3365. public static pb::MessageParser<ServerStatus> Parser { get { return _parser; } }
  3366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3367. public static pbr::MessageDescriptor Descriptor {
  3368. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[11]; }
  3369. }
  3370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3371. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3372. get { return Descriptor; }
  3373. }
  3374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3375. public ServerStatus() {
  3376. OnConstruction();
  3377. }
  3378. partial void OnConstruction();
  3379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3380. public ServerStatus(ServerStatus other) : this() {
  3381. stats_ = other.stats_ != null ? other.stats_.Clone() : null;
  3382. port_ = other.port_;
  3383. cores_ = other.cores_;
  3384. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  3385. }
  3386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3387. public ServerStatus Clone() {
  3388. return new ServerStatus(this);
  3389. }
  3390. /// <summary>Field number for the "stats" field.</summary>
  3391. public const int StatsFieldNumber = 1;
  3392. private global::Grpc.Testing.ServerStats stats_;
  3393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3394. public global::Grpc.Testing.ServerStats Stats {
  3395. get { return stats_; }
  3396. set {
  3397. stats_ = value;
  3398. }
  3399. }
  3400. /// <summary>Field number for the "port" field.</summary>
  3401. public const int PortFieldNumber = 2;
  3402. private int port_;
  3403. /// <summary>
  3404. /// the port bound by the server
  3405. /// </summary>
  3406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3407. public int Port {
  3408. get { return port_; }
  3409. set {
  3410. port_ = value;
  3411. }
  3412. }
  3413. /// <summary>Field number for the "cores" field.</summary>
  3414. public const int CoresFieldNumber = 3;
  3415. private int cores_;
  3416. /// <summary>
  3417. /// Number of cores available to the server
  3418. /// </summary>
  3419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3420. public int Cores {
  3421. get { return cores_; }
  3422. set {
  3423. cores_ = value;
  3424. }
  3425. }
  3426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3427. public override bool Equals(object other) {
  3428. return Equals(other as ServerStatus);
  3429. }
  3430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3431. public bool Equals(ServerStatus other) {
  3432. if (ReferenceEquals(other, null)) {
  3433. return false;
  3434. }
  3435. if (ReferenceEquals(other, this)) {
  3436. return true;
  3437. }
  3438. if (!object.Equals(Stats, other.Stats)) return false;
  3439. if (Port != other.Port) return false;
  3440. if (Cores != other.Cores) return false;
  3441. return Equals(_unknownFields, other._unknownFields);
  3442. }
  3443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3444. public override int GetHashCode() {
  3445. int hash = 1;
  3446. if (stats_ != null) hash ^= Stats.GetHashCode();
  3447. if (Port != 0) hash ^= Port.GetHashCode();
  3448. if (Cores != 0) hash ^= Cores.GetHashCode();
  3449. if (_unknownFields != null) {
  3450. hash ^= _unknownFields.GetHashCode();
  3451. }
  3452. return hash;
  3453. }
  3454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3455. public override string ToString() {
  3456. return pb::JsonFormatter.ToDiagnosticString(this);
  3457. }
  3458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3459. public void WriteTo(pb::CodedOutputStream output) {
  3460. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3461. output.WriteRawMessage(this);
  3462. #else
  3463. if (stats_ != null) {
  3464. output.WriteRawTag(10);
  3465. output.WriteMessage(Stats);
  3466. }
  3467. if (Port != 0) {
  3468. output.WriteRawTag(16);
  3469. output.WriteInt32(Port);
  3470. }
  3471. if (Cores != 0) {
  3472. output.WriteRawTag(24);
  3473. output.WriteInt32(Cores);
  3474. }
  3475. if (_unknownFields != null) {
  3476. _unknownFields.WriteTo(output);
  3477. }
  3478. #endif
  3479. }
  3480. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3482. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  3483. if (stats_ != null) {
  3484. output.WriteRawTag(10);
  3485. output.WriteMessage(Stats);
  3486. }
  3487. if (Port != 0) {
  3488. output.WriteRawTag(16);
  3489. output.WriteInt32(Port);
  3490. }
  3491. if (Cores != 0) {
  3492. output.WriteRawTag(24);
  3493. output.WriteInt32(Cores);
  3494. }
  3495. if (_unknownFields != null) {
  3496. _unknownFields.WriteTo(ref output);
  3497. }
  3498. }
  3499. #endif
  3500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3501. public int CalculateSize() {
  3502. int size = 0;
  3503. if (stats_ != null) {
  3504. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Stats);
  3505. }
  3506. if (Port != 0) {
  3507. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Port);
  3508. }
  3509. if (Cores != 0) {
  3510. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Cores);
  3511. }
  3512. if (_unknownFields != null) {
  3513. size += _unknownFields.CalculateSize();
  3514. }
  3515. return size;
  3516. }
  3517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3518. public void MergeFrom(ServerStatus other) {
  3519. if (other == null) {
  3520. return;
  3521. }
  3522. if (other.stats_ != null) {
  3523. if (stats_ == null) {
  3524. Stats = new global::Grpc.Testing.ServerStats();
  3525. }
  3526. Stats.MergeFrom(other.Stats);
  3527. }
  3528. if (other.Port != 0) {
  3529. Port = other.Port;
  3530. }
  3531. if (other.Cores != 0) {
  3532. Cores = other.Cores;
  3533. }
  3534. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  3535. }
  3536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3537. public void MergeFrom(pb::CodedInputStream input) {
  3538. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3539. input.ReadRawMessage(this);
  3540. #else
  3541. uint tag;
  3542. while ((tag = input.ReadTag()) != 0) {
  3543. switch(tag) {
  3544. default:
  3545. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  3546. break;
  3547. case 10: {
  3548. if (stats_ == null) {
  3549. Stats = new global::Grpc.Testing.ServerStats();
  3550. }
  3551. input.ReadMessage(Stats);
  3552. break;
  3553. }
  3554. case 16: {
  3555. Port = input.ReadInt32();
  3556. break;
  3557. }
  3558. case 24: {
  3559. Cores = input.ReadInt32();
  3560. break;
  3561. }
  3562. }
  3563. }
  3564. #endif
  3565. }
  3566. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3568. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  3569. uint tag;
  3570. while ((tag = input.ReadTag()) != 0) {
  3571. switch(tag) {
  3572. default:
  3573. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  3574. break;
  3575. case 10: {
  3576. if (stats_ == null) {
  3577. Stats = new global::Grpc.Testing.ServerStats();
  3578. }
  3579. input.ReadMessage(Stats);
  3580. break;
  3581. }
  3582. case 16: {
  3583. Port = input.ReadInt32();
  3584. break;
  3585. }
  3586. case 24: {
  3587. Cores = input.ReadInt32();
  3588. break;
  3589. }
  3590. }
  3591. }
  3592. }
  3593. #endif
  3594. }
  3595. public sealed partial class CoreRequest : pb::IMessage<CoreRequest>
  3596. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3597. , pb::IBufferMessage
  3598. #endif
  3599. {
  3600. private static readonly pb::MessageParser<CoreRequest> _parser = new pb::MessageParser<CoreRequest>(() => new CoreRequest());
  3601. private pb::UnknownFieldSet _unknownFields;
  3602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3603. public static pb::MessageParser<CoreRequest> Parser { get { return _parser; } }
  3604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3605. public static pbr::MessageDescriptor Descriptor {
  3606. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[12]; }
  3607. }
  3608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3609. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3610. get { return Descriptor; }
  3611. }
  3612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3613. public CoreRequest() {
  3614. OnConstruction();
  3615. }
  3616. partial void OnConstruction();
  3617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3618. public CoreRequest(CoreRequest other) : this() {
  3619. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  3620. }
  3621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3622. public CoreRequest Clone() {
  3623. return new CoreRequest(this);
  3624. }
  3625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3626. public override bool Equals(object other) {
  3627. return Equals(other as CoreRequest);
  3628. }
  3629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3630. public bool Equals(CoreRequest other) {
  3631. if (ReferenceEquals(other, null)) {
  3632. return false;
  3633. }
  3634. if (ReferenceEquals(other, this)) {
  3635. return true;
  3636. }
  3637. return Equals(_unknownFields, other._unknownFields);
  3638. }
  3639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3640. public override int GetHashCode() {
  3641. int hash = 1;
  3642. if (_unknownFields != null) {
  3643. hash ^= _unknownFields.GetHashCode();
  3644. }
  3645. return hash;
  3646. }
  3647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3648. public override string ToString() {
  3649. return pb::JsonFormatter.ToDiagnosticString(this);
  3650. }
  3651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3652. public void WriteTo(pb::CodedOutputStream output) {
  3653. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3654. output.WriteRawMessage(this);
  3655. #else
  3656. if (_unknownFields != null) {
  3657. _unknownFields.WriteTo(output);
  3658. }
  3659. #endif
  3660. }
  3661. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3663. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  3664. if (_unknownFields != null) {
  3665. _unknownFields.WriteTo(ref output);
  3666. }
  3667. }
  3668. #endif
  3669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3670. public int CalculateSize() {
  3671. int size = 0;
  3672. if (_unknownFields != null) {
  3673. size += _unknownFields.CalculateSize();
  3674. }
  3675. return size;
  3676. }
  3677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3678. public void MergeFrom(CoreRequest other) {
  3679. if (other == null) {
  3680. return;
  3681. }
  3682. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  3683. }
  3684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3685. public void MergeFrom(pb::CodedInputStream input) {
  3686. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3687. input.ReadRawMessage(this);
  3688. #else
  3689. uint tag;
  3690. while ((tag = input.ReadTag()) != 0) {
  3691. switch(tag) {
  3692. default:
  3693. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  3694. break;
  3695. }
  3696. }
  3697. #endif
  3698. }
  3699. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3701. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  3702. uint tag;
  3703. while ((tag = input.ReadTag()) != 0) {
  3704. switch(tag) {
  3705. default:
  3706. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  3707. break;
  3708. }
  3709. }
  3710. }
  3711. #endif
  3712. }
  3713. public sealed partial class CoreResponse : pb::IMessage<CoreResponse>
  3714. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3715. , pb::IBufferMessage
  3716. #endif
  3717. {
  3718. private static readonly pb::MessageParser<CoreResponse> _parser = new pb::MessageParser<CoreResponse>(() => new CoreResponse());
  3719. private pb::UnknownFieldSet _unknownFields;
  3720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3721. public static pb::MessageParser<CoreResponse> Parser { get { return _parser; } }
  3722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3723. public static pbr::MessageDescriptor Descriptor {
  3724. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[13]; }
  3725. }
  3726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3727. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3728. get { return Descriptor; }
  3729. }
  3730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3731. public CoreResponse() {
  3732. OnConstruction();
  3733. }
  3734. partial void OnConstruction();
  3735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3736. public CoreResponse(CoreResponse other) : this() {
  3737. cores_ = other.cores_;
  3738. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  3739. }
  3740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3741. public CoreResponse Clone() {
  3742. return new CoreResponse(this);
  3743. }
  3744. /// <summary>Field number for the "cores" field.</summary>
  3745. public const int CoresFieldNumber = 1;
  3746. private int cores_;
  3747. /// <summary>
  3748. /// Number of cores available on the server
  3749. /// </summary>
  3750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3751. public int Cores {
  3752. get { return cores_; }
  3753. set {
  3754. cores_ = value;
  3755. }
  3756. }
  3757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3758. public override bool Equals(object other) {
  3759. return Equals(other as CoreResponse);
  3760. }
  3761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3762. public bool Equals(CoreResponse other) {
  3763. if (ReferenceEquals(other, null)) {
  3764. return false;
  3765. }
  3766. if (ReferenceEquals(other, this)) {
  3767. return true;
  3768. }
  3769. if (Cores != other.Cores) return false;
  3770. return Equals(_unknownFields, other._unknownFields);
  3771. }
  3772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3773. public override int GetHashCode() {
  3774. int hash = 1;
  3775. if (Cores != 0) hash ^= Cores.GetHashCode();
  3776. if (_unknownFields != null) {
  3777. hash ^= _unknownFields.GetHashCode();
  3778. }
  3779. return hash;
  3780. }
  3781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3782. public override string ToString() {
  3783. return pb::JsonFormatter.ToDiagnosticString(this);
  3784. }
  3785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3786. public void WriteTo(pb::CodedOutputStream output) {
  3787. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3788. output.WriteRawMessage(this);
  3789. #else
  3790. if (Cores != 0) {
  3791. output.WriteRawTag(8);
  3792. output.WriteInt32(Cores);
  3793. }
  3794. if (_unknownFields != null) {
  3795. _unknownFields.WriteTo(output);
  3796. }
  3797. #endif
  3798. }
  3799. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3801. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  3802. if (Cores != 0) {
  3803. output.WriteRawTag(8);
  3804. output.WriteInt32(Cores);
  3805. }
  3806. if (_unknownFields != null) {
  3807. _unknownFields.WriteTo(ref output);
  3808. }
  3809. }
  3810. #endif
  3811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3812. public int CalculateSize() {
  3813. int size = 0;
  3814. if (Cores != 0) {
  3815. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Cores);
  3816. }
  3817. if (_unknownFields != null) {
  3818. size += _unknownFields.CalculateSize();
  3819. }
  3820. return size;
  3821. }
  3822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3823. public void MergeFrom(CoreResponse other) {
  3824. if (other == null) {
  3825. return;
  3826. }
  3827. if (other.Cores != 0) {
  3828. Cores = other.Cores;
  3829. }
  3830. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  3831. }
  3832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3833. public void MergeFrom(pb::CodedInputStream input) {
  3834. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3835. input.ReadRawMessage(this);
  3836. #else
  3837. uint tag;
  3838. while ((tag = input.ReadTag()) != 0) {
  3839. switch(tag) {
  3840. default:
  3841. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  3842. break;
  3843. case 8: {
  3844. Cores = input.ReadInt32();
  3845. break;
  3846. }
  3847. }
  3848. }
  3849. #endif
  3850. }
  3851. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3853. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  3854. uint tag;
  3855. while ((tag = input.ReadTag()) != 0) {
  3856. switch(tag) {
  3857. default:
  3858. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  3859. break;
  3860. case 8: {
  3861. Cores = input.ReadInt32();
  3862. break;
  3863. }
  3864. }
  3865. }
  3866. }
  3867. #endif
  3868. }
  3869. public sealed partial class Void : pb::IMessage<Void>
  3870. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3871. , pb::IBufferMessage
  3872. #endif
  3873. {
  3874. private static readonly pb::MessageParser<Void> _parser = new pb::MessageParser<Void>(() => new Void());
  3875. private pb::UnknownFieldSet _unknownFields;
  3876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3877. public static pb::MessageParser<Void> Parser { get { return _parser; } }
  3878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3879. public static pbr::MessageDescriptor Descriptor {
  3880. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[14]; }
  3881. }
  3882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3883. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3884. get { return Descriptor; }
  3885. }
  3886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3887. public Void() {
  3888. OnConstruction();
  3889. }
  3890. partial void OnConstruction();
  3891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3892. public Void(Void other) : this() {
  3893. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  3894. }
  3895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3896. public Void Clone() {
  3897. return new Void(this);
  3898. }
  3899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3900. public override bool Equals(object other) {
  3901. return Equals(other as Void);
  3902. }
  3903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3904. public bool Equals(Void other) {
  3905. if (ReferenceEquals(other, null)) {
  3906. return false;
  3907. }
  3908. if (ReferenceEquals(other, this)) {
  3909. return true;
  3910. }
  3911. return Equals(_unknownFields, other._unknownFields);
  3912. }
  3913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3914. public override int GetHashCode() {
  3915. int hash = 1;
  3916. if (_unknownFields != null) {
  3917. hash ^= _unknownFields.GetHashCode();
  3918. }
  3919. return hash;
  3920. }
  3921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3922. public override string ToString() {
  3923. return pb::JsonFormatter.ToDiagnosticString(this);
  3924. }
  3925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3926. public void WriteTo(pb::CodedOutputStream output) {
  3927. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3928. output.WriteRawMessage(this);
  3929. #else
  3930. if (_unknownFields != null) {
  3931. _unknownFields.WriteTo(output);
  3932. }
  3933. #endif
  3934. }
  3935. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3937. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  3938. if (_unknownFields != null) {
  3939. _unknownFields.WriteTo(ref output);
  3940. }
  3941. }
  3942. #endif
  3943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3944. public int CalculateSize() {
  3945. int size = 0;
  3946. if (_unknownFields != null) {
  3947. size += _unknownFields.CalculateSize();
  3948. }
  3949. return size;
  3950. }
  3951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3952. public void MergeFrom(Void other) {
  3953. if (other == null) {
  3954. return;
  3955. }
  3956. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  3957. }
  3958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3959. public void MergeFrom(pb::CodedInputStream input) {
  3960. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3961. input.ReadRawMessage(this);
  3962. #else
  3963. uint tag;
  3964. while ((tag = input.ReadTag()) != 0) {
  3965. switch(tag) {
  3966. default:
  3967. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  3968. break;
  3969. }
  3970. }
  3971. #endif
  3972. }
  3973. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3975. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  3976. uint tag;
  3977. while ((tag = input.ReadTag()) != 0) {
  3978. switch(tag) {
  3979. default:
  3980. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  3981. break;
  3982. }
  3983. }
  3984. }
  3985. #endif
  3986. }
  3987. /// <summary>
  3988. /// A single performance scenario: input to qps_json_driver
  3989. /// </summary>
  3990. public sealed partial class Scenario : pb::IMessage<Scenario>
  3991. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3992. , pb::IBufferMessage
  3993. #endif
  3994. {
  3995. private static readonly pb::MessageParser<Scenario> _parser = new pb::MessageParser<Scenario>(() => new Scenario());
  3996. private pb::UnknownFieldSet _unknownFields;
  3997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3998. public static pb::MessageParser<Scenario> Parser { get { return _parser; } }
  3999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4000. public static pbr::MessageDescriptor Descriptor {
  4001. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[15]; }
  4002. }
  4003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4004. pbr::MessageDescriptor pb::IMessage.Descriptor {
  4005. get { return Descriptor; }
  4006. }
  4007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4008. public Scenario() {
  4009. OnConstruction();
  4010. }
  4011. partial void OnConstruction();
  4012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4013. public Scenario(Scenario other) : this() {
  4014. name_ = other.name_;
  4015. clientConfig_ = other.clientConfig_ != null ? other.clientConfig_.Clone() : null;
  4016. numClients_ = other.numClients_;
  4017. serverConfig_ = other.serverConfig_ != null ? other.serverConfig_.Clone() : null;
  4018. numServers_ = other.numServers_;
  4019. warmupSeconds_ = other.warmupSeconds_;
  4020. benchmarkSeconds_ = other.benchmarkSeconds_;
  4021. spawnLocalWorkerCount_ = other.spawnLocalWorkerCount_;
  4022. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  4023. }
  4024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4025. public Scenario Clone() {
  4026. return new Scenario(this);
  4027. }
  4028. /// <summary>Field number for the "name" field.</summary>
  4029. public const int NameFieldNumber = 1;
  4030. private string name_ = "";
  4031. /// <summary>
  4032. /// Human readable name for this scenario
  4033. /// </summary>
  4034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4035. public string Name {
  4036. get { return name_; }
  4037. set {
  4038. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  4039. }
  4040. }
  4041. /// <summary>Field number for the "client_config" field.</summary>
  4042. public const int ClientConfigFieldNumber = 2;
  4043. private global::Grpc.Testing.ClientConfig clientConfig_;
  4044. /// <summary>
  4045. /// Client configuration
  4046. /// </summary>
  4047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4048. public global::Grpc.Testing.ClientConfig ClientConfig {
  4049. get { return clientConfig_; }
  4050. set {
  4051. clientConfig_ = value;
  4052. }
  4053. }
  4054. /// <summary>Field number for the "num_clients" field.</summary>
  4055. public const int NumClientsFieldNumber = 3;
  4056. private int numClients_;
  4057. /// <summary>
  4058. /// Number of clients to start for the test
  4059. /// </summary>
  4060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4061. public int NumClients {
  4062. get { return numClients_; }
  4063. set {
  4064. numClients_ = value;
  4065. }
  4066. }
  4067. /// <summary>Field number for the "server_config" field.</summary>
  4068. public const int ServerConfigFieldNumber = 4;
  4069. private global::Grpc.Testing.ServerConfig serverConfig_;
  4070. /// <summary>
  4071. /// Server configuration
  4072. /// </summary>
  4073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4074. public global::Grpc.Testing.ServerConfig ServerConfig {
  4075. get { return serverConfig_; }
  4076. set {
  4077. serverConfig_ = value;
  4078. }
  4079. }
  4080. /// <summary>Field number for the "num_servers" field.</summary>
  4081. public const int NumServersFieldNumber = 5;
  4082. private int numServers_;
  4083. /// <summary>
  4084. /// Number of servers to start for the test
  4085. /// </summary>
  4086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4087. public int NumServers {
  4088. get { return numServers_; }
  4089. set {
  4090. numServers_ = value;
  4091. }
  4092. }
  4093. /// <summary>Field number for the "warmup_seconds" field.</summary>
  4094. public const int WarmupSecondsFieldNumber = 6;
  4095. private int warmupSeconds_;
  4096. /// <summary>
  4097. /// Warmup period, in seconds
  4098. /// </summary>
  4099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4100. public int WarmupSeconds {
  4101. get { return warmupSeconds_; }
  4102. set {
  4103. warmupSeconds_ = value;
  4104. }
  4105. }
  4106. /// <summary>Field number for the "benchmark_seconds" field.</summary>
  4107. public const int BenchmarkSecondsFieldNumber = 7;
  4108. private int benchmarkSeconds_;
  4109. /// <summary>
  4110. /// Benchmark time, in seconds
  4111. /// </summary>
  4112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4113. public int BenchmarkSeconds {
  4114. get { return benchmarkSeconds_; }
  4115. set {
  4116. benchmarkSeconds_ = value;
  4117. }
  4118. }
  4119. /// <summary>Field number for the "spawn_local_worker_count" field.</summary>
  4120. public const int SpawnLocalWorkerCountFieldNumber = 8;
  4121. private int spawnLocalWorkerCount_;
  4122. /// <summary>
  4123. /// Number of workers to spawn locally (usually zero)
  4124. /// </summary>
  4125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4126. public int SpawnLocalWorkerCount {
  4127. get { return spawnLocalWorkerCount_; }
  4128. set {
  4129. spawnLocalWorkerCount_ = value;
  4130. }
  4131. }
  4132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4133. public override bool Equals(object other) {
  4134. return Equals(other as Scenario);
  4135. }
  4136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4137. public bool Equals(Scenario other) {
  4138. if (ReferenceEquals(other, null)) {
  4139. return false;
  4140. }
  4141. if (ReferenceEquals(other, this)) {
  4142. return true;
  4143. }
  4144. if (Name != other.Name) return false;
  4145. if (!object.Equals(ClientConfig, other.ClientConfig)) return false;
  4146. if (NumClients != other.NumClients) return false;
  4147. if (!object.Equals(ServerConfig, other.ServerConfig)) return false;
  4148. if (NumServers != other.NumServers) return false;
  4149. if (WarmupSeconds != other.WarmupSeconds) return false;
  4150. if (BenchmarkSeconds != other.BenchmarkSeconds) return false;
  4151. if (SpawnLocalWorkerCount != other.SpawnLocalWorkerCount) return false;
  4152. return Equals(_unknownFields, other._unknownFields);
  4153. }
  4154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4155. public override int GetHashCode() {
  4156. int hash = 1;
  4157. if (Name.Length != 0) hash ^= Name.GetHashCode();
  4158. if (clientConfig_ != null) hash ^= ClientConfig.GetHashCode();
  4159. if (NumClients != 0) hash ^= NumClients.GetHashCode();
  4160. if (serverConfig_ != null) hash ^= ServerConfig.GetHashCode();
  4161. if (NumServers != 0) hash ^= NumServers.GetHashCode();
  4162. if (WarmupSeconds != 0) hash ^= WarmupSeconds.GetHashCode();
  4163. if (BenchmarkSeconds != 0) hash ^= BenchmarkSeconds.GetHashCode();
  4164. if (SpawnLocalWorkerCount != 0) hash ^= SpawnLocalWorkerCount.GetHashCode();
  4165. if (_unknownFields != null) {
  4166. hash ^= _unknownFields.GetHashCode();
  4167. }
  4168. return hash;
  4169. }
  4170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4171. public override string ToString() {
  4172. return pb::JsonFormatter.ToDiagnosticString(this);
  4173. }
  4174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4175. public void WriteTo(pb::CodedOutputStream output) {
  4176. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  4177. output.WriteRawMessage(this);
  4178. #else
  4179. if (Name.Length != 0) {
  4180. output.WriteRawTag(10);
  4181. output.WriteString(Name);
  4182. }
  4183. if (clientConfig_ != null) {
  4184. output.WriteRawTag(18);
  4185. output.WriteMessage(ClientConfig);
  4186. }
  4187. if (NumClients != 0) {
  4188. output.WriteRawTag(24);
  4189. output.WriteInt32(NumClients);
  4190. }
  4191. if (serverConfig_ != null) {
  4192. output.WriteRawTag(34);
  4193. output.WriteMessage(ServerConfig);
  4194. }
  4195. if (NumServers != 0) {
  4196. output.WriteRawTag(40);
  4197. output.WriteInt32(NumServers);
  4198. }
  4199. if (WarmupSeconds != 0) {
  4200. output.WriteRawTag(48);
  4201. output.WriteInt32(WarmupSeconds);
  4202. }
  4203. if (BenchmarkSeconds != 0) {
  4204. output.WriteRawTag(56);
  4205. output.WriteInt32(BenchmarkSeconds);
  4206. }
  4207. if (SpawnLocalWorkerCount != 0) {
  4208. output.WriteRawTag(64);
  4209. output.WriteInt32(SpawnLocalWorkerCount);
  4210. }
  4211. if (_unknownFields != null) {
  4212. _unknownFields.WriteTo(output);
  4213. }
  4214. #endif
  4215. }
  4216. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  4217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4218. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  4219. if (Name.Length != 0) {
  4220. output.WriteRawTag(10);
  4221. output.WriteString(Name);
  4222. }
  4223. if (clientConfig_ != null) {
  4224. output.WriteRawTag(18);
  4225. output.WriteMessage(ClientConfig);
  4226. }
  4227. if (NumClients != 0) {
  4228. output.WriteRawTag(24);
  4229. output.WriteInt32(NumClients);
  4230. }
  4231. if (serverConfig_ != null) {
  4232. output.WriteRawTag(34);
  4233. output.WriteMessage(ServerConfig);
  4234. }
  4235. if (NumServers != 0) {
  4236. output.WriteRawTag(40);
  4237. output.WriteInt32(NumServers);
  4238. }
  4239. if (WarmupSeconds != 0) {
  4240. output.WriteRawTag(48);
  4241. output.WriteInt32(WarmupSeconds);
  4242. }
  4243. if (BenchmarkSeconds != 0) {
  4244. output.WriteRawTag(56);
  4245. output.WriteInt32(BenchmarkSeconds);
  4246. }
  4247. if (SpawnLocalWorkerCount != 0) {
  4248. output.WriteRawTag(64);
  4249. output.WriteInt32(SpawnLocalWorkerCount);
  4250. }
  4251. if (_unknownFields != null) {
  4252. _unknownFields.WriteTo(ref output);
  4253. }
  4254. }
  4255. #endif
  4256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4257. public int CalculateSize() {
  4258. int size = 0;
  4259. if (Name.Length != 0) {
  4260. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  4261. }
  4262. if (clientConfig_ != null) {
  4263. size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClientConfig);
  4264. }
  4265. if (NumClients != 0) {
  4266. size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumClients);
  4267. }
  4268. if (serverConfig_ != null) {
  4269. size += 1 + pb::CodedOutputStream.ComputeMessageSize(ServerConfig);
  4270. }
  4271. if (NumServers != 0) {
  4272. size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumServers);
  4273. }
  4274. if (WarmupSeconds != 0) {
  4275. size += 1 + pb::CodedOutputStream.ComputeInt32Size(WarmupSeconds);
  4276. }
  4277. if (BenchmarkSeconds != 0) {
  4278. size += 1 + pb::CodedOutputStream.ComputeInt32Size(BenchmarkSeconds);
  4279. }
  4280. if (SpawnLocalWorkerCount != 0) {
  4281. size += 1 + pb::CodedOutputStream.ComputeInt32Size(SpawnLocalWorkerCount);
  4282. }
  4283. if (_unknownFields != null) {
  4284. size += _unknownFields.CalculateSize();
  4285. }
  4286. return size;
  4287. }
  4288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4289. public void MergeFrom(Scenario other) {
  4290. if (other == null) {
  4291. return;
  4292. }
  4293. if (other.Name.Length != 0) {
  4294. Name = other.Name;
  4295. }
  4296. if (other.clientConfig_ != null) {
  4297. if (clientConfig_ == null) {
  4298. ClientConfig = new global::Grpc.Testing.ClientConfig();
  4299. }
  4300. ClientConfig.MergeFrom(other.ClientConfig);
  4301. }
  4302. if (other.NumClients != 0) {
  4303. NumClients = other.NumClients;
  4304. }
  4305. if (other.serverConfig_ != null) {
  4306. if (serverConfig_ == null) {
  4307. ServerConfig = new global::Grpc.Testing.ServerConfig();
  4308. }
  4309. ServerConfig.MergeFrom(other.ServerConfig);
  4310. }
  4311. if (other.NumServers != 0) {
  4312. NumServers = other.NumServers;
  4313. }
  4314. if (other.WarmupSeconds != 0) {
  4315. WarmupSeconds = other.WarmupSeconds;
  4316. }
  4317. if (other.BenchmarkSeconds != 0) {
  4318. BenchmarkSeconds = other.BenchmarkSeconds;
  4319. }
  4320. if (other.SpawnLocalWorkerCount != 0) {
  4321. SpawnLocalWorkerCount = other.SpawnLocalWorkerCount;
  4322. }
  4323. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  4324. }
  4325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4326. public void MergeFrom(pb::CodedInputStream input) {
  4327. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  4328. input.ReadRawMessage(this);
  4329. #else
  4330. uint tag;
  4331. while ((tag = input.ReadTag()) != 0) {
  4332. switch(tag) {
  4333. default:
  4334. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  4335. break;
  4336. case 10: {
  4337. Name = input.ReadString();
  4338. break;
  4339. }
  4340. case 18: {
  4341. if (clientConfig_ == null) {
  4342. ClientConfig = new global::Grpc.Testing.ClientConfig();
  4343. }
  4344. input.ReadMessage(ClientConfig);
  4345. break;
  4346. }
  4347. case 24: {
  4348. NumClients = input.ReadInt32();
  4349. break;
  4350. }
  4351. case 34: {
  4352. if (serverConfig_ == null) {
  4353. ServerConfig = new global::Grpc.Testing.ServerConfig();
  4354. }
  4355. input.ReadMessage(ServerConfig);
  4356. break;
  4357. }
  4358. case 40: {
  4359. NumServers = input.ReadInt32();
  4360. break;
  4361. }
  4362. case 48: {
  4363. WarmupSeconds = input.ReadInt32();
  4364. break;
  4365. }
  4366. case 56: {
  4367. BenchmarkSeconds = input.ReadInt32();
  4368. break;
  4369. }
  4370. case 64: {
  4371. SpawnLocalWorkerCount = input.ReadInt32();
  4372. break;
  4373. }
  4374. }
  4375. }
  4376. #endif
  4377. }
  4378. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  4379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4380. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  4381. uint tag;
  4382. while ((tag = input.ReadTag()) != 0) {
  4383. switch(tag) {
  4384. default:
  4385. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  4386. break;
  4387. case 10: {
  4388. Name = input.ReadString();
  4389. break;
  4390. }
  4391. case 18: {
  4392. if (clientConfig_ == null) {
  4393. ClientConfig = new global::Grpc.Testing.ClientConfig();
  4394. }
  4395. input.ReadMessage(ClientConfig);
  4396. break;
  4397. }
  4398. case 24: {
  4399. NumClients = input.ReadInt32();
  4400. break;
  4401. }
  4402. case 34: {
  4403. if (serverConfig_ == null) {
  4404. ServerConfig = new global::Grpc.Testing.ServerConfig();
  4405. }
  4406. input.ReadMessage(ServerConfig);
  4407. break;
  4408. }
  4409. case 40: {
  4410. NumServers = input.ReadInt32();
  4411. break;
  4412. }
  4413. case 48: {
  4414. WarmupSeconds = input.ReadInt32();
  4415. break;
  4416. }
  4417. case 56: {
  4418. BenchmarkSeconds = input.ReadInt32();
  4419. break;
  4420. }
  4421. case 64: {
  4422. SpawnLocalWorkerCount = input.ReadInt32();
  4423. break;
  4424. }
  4425. }
  4426. }
  4427. }
  4428. #endif
  4429. }
  4430. /// <summary>
  4431. /// A set of scenarios to be run with qps_json_driver
  4432. /// </summary>
  4433. public sealed partial class Scenarios : pb::IMessage<Scenarios>
  4434. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  4435. , pb::IBufferMessage
  4436. #endif
  4437. {
  4438. private static readonly pb::MessageParser<Scenarios> _parser = new pb::MessageParser<Scenarios>(() => new Scenarios());
  4439. private pb::UnknownFieldSet _unknownFields;
  4440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4441. public static pb::MessageParser<Scenarios> Parser { get { return _parser; } }
  4442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4443. public static pbr::MessageDescriptor Descriptor {
  4444. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[16]; }
  4445. }
  4446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4447. pbr::MessageDescriptor pb::IMessage.Descriptor {
  4448. get { return Descriptor; }
  4449. }
  4450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4451. public Scenarios() {
  4452. OnConstruction();
  4453. }
  4454. partial void OnConstruction();
  4455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4456. public Scenarios(Scenarios other) : this() {
  4457. scenarios_ = other.scenarios_.Clone();
  4458. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  4459. }
  4460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4461. public Scenarios Clone() {
  4462. return new Scenarios(this);
  4463. }
  4464. /// <summary>Field number for the "scenarios" field.</summary>
  4465. public const int Scenarios_FieldNumber = 1;
  4466. private static readonly pb::FieldCodec<global::Grpc.Testing.Scenario> _repeated_scenarios_codec
  4467. = pb::FieldCodec.ForMessage(10, global::Grpc.Testing.Scenario.Parser);
  4468. private readonly pbc::RepeatedField<global::Grpc.Testing.Scenario> scenarios_ = new pbc::RepeatedField<global::Grpc.Testing.Scenario>();
  4469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4470. public pbc::RepeatedField<global::Grpc.Testing.Scenario> Scenarios_ {
  4471. get { return scenarios_; }
  4472. }
  4473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4474. public override bool Equals(object other) {
  4475. return Equals(other as Scenarios);
  4476. }
  4477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4478. public bool Equals(Scenarios other) {
  4479. if (ReferenceEquals(other, null)) {
  4480. return false;
  4481. }
  4482. if (ReferenceEquals(other, this)) {
  4483. return true;
  4484. }
  4485. if(!scenarios_.Equals(other.scenarios_)) return false;
  4486. return Equals(_unknownFields, other._unknownFields);
  4487. }
  4488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4489. public override int GetHashCode() {
  4490. int hash = 1;
  4491. hash ^= scenarios_.GetHashCode();
  4492. if (_unknownFields != null) {
  4493. hash ^= _unknownFields.GetHashCode();
  4494. }
  4495. return hash;
  4496. }
  4497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4498. public override string ToString() {
  4499. return pb::JsonFormatter.ToDiagnosticString(this);
  4500. }
  4501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4502. public void WriteTo(pb::CodedOutputStream output) {
  4503. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  4504. output.WriteRawMessage(this);
  4505. #else
  4506. scenarios_.WriteTo(output, _repeated_scenarios_codec);
  4507. if (_unknownFields != null) {
  4508. _unknownFields.WriteTo(output);
  4509. }
  4510. #endif
  4511. }
  4512. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  4513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4514. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  4515. scenarios_.WriteTo(ref output, _repeated_scenarios_codec);
  4516. if (_unknownFields != null) {
  4517. _unknownFields.WriteTo(ref output);
  4518. }
  4519. }
  4520. #endif
  4521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4522. public int CalculateSize() {
  4523. int size = 0;
  4524. size += scenarios_.CalculateSize(_repeated_scenarios_codec);
  4525. if (_unknownFields != null) {
  4526. size += _unknownFields.CalculateSize();
  4527. }
  4528. return size;
  4529. }
  4530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4531. public void MergeFrom(Scenarios other) {
  4532. if (other == null) {
  4533. return;
  4534. }
  4535. scenarios_.Add(other.scenarios_);
  4536. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  4537. }
  4538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4539. public void MergeFrom(pb::CodedInputStream input) {
  4540. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  4541. input.ReadRawMessage(this);
  4542. #else
  4543. uint tag;
  4544. while ((tag = input.ReadTag()) != 0) {
  4545. switch(tag) {
  4546. default:
  4547. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  4548. break;
  4549. case 10: {
  4550. scenarios_.AddEntriesFrom(input, _repeated_scenarios_codec);
  4551. break;
  4552. }
  4553. }
  4554. }
  4555. #endif
  4556. }
  4557. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  4558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4559. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  4560. uint tag;
  4561. while ((tag = input.ReadTag()) != 0) {
  4562. switch(tag) {
  4563. default:
  4564. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  4565. break;
  4566. case 10: {
  4567. scenarios_.AddEntriesFrom(ref input, _repeated_scenarios_codec);
  4568. break;
  4569. }
  4570. }
  4571. }
  4572. }
  4573. #endif
  4574. }
  4575. /// <summary>
  4576. /// Basic summary that can be computed from ClientStats and ServerStats
  4577. /// once the scenario has finished.
  4578. /// </summary>
  4579. public sealed partial class ScenarioResultSummary : pb::IMessage<ScenarioResultSummary>
  4580. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  4581. , pb::IBufferMessage
  4582. #endif
  4583. {
  4584. private static readonly pb::MessageParser<ScenarioResultSummary> _parser = new pb::MessageParser<ScenarioResultSummary>(() => new ScenarioResultSummary());
  4585. private pb::UnknownFieldSet _unknownFields;
  4586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4587. public static pb::MessageParser<ScenarioResultSummary> Parser { get { return _parser; } }
  4588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4589. public static pbr::MessageDescriptor Descriptor {
  4590. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[17]; }
  4591. }
  4592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4593. pbr::MessageDescriptor pb::IMessage.Descriptor {
  4594. get { return Descriptor; }
  4595. }
  4596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4597. public ScenarioResultSummary() {
  4598. OnConstruction();
  4599. }
  4600. partial void OnConstruction();
  4601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4602. public ScenarioResultSummary(ScenarioResultSummary other) : this() {
  4603. qps_ = other.qps_;
  4604. qpsPerServerCore_ = other.qpsPerServerCore_;
  4605. serverSystemTime_ = other.serverSystemTime_;
  4606. serverUserTime_ = other.serverUserTime_;
  4607. clientSystemTime_ = other.clientSystemTime_;
  4608. clientUserTime_ = other.clientUserTime_;
  4609. latency50_ = other.latency50_;
  4610. latency90_ = other.latency90_;
  4611. latency95_ = other.latency95_;
  4612. latency99_ = other.latency99_;
  4613. latency999_ = other.latency999_;
  4614. serverCpuUsage_ = other.serverCpuUsage_;
  4615. successfulRequestsPerSecond_ = other.successfulRequestsPerSecond_;
  4616. failedRequestsPerSecond_ = other.failedRequestsPerSecond_;
  4617. clientPollsPerRequest_ = other.clientPollsPerRequest_;
  4618. serverPollsPerRequest_ = other.serverPollsPerRequest_;
  4619. serverQueriesPerCpuSec_ = other.serverQueriesPerCpuSec_;
  4620. clientQueriesPerCpuSec_ = other.clientQueriesPerCpuSec_;
  4621. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  4622. }
  4623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4624. public ScenarioResultSummary Clone() {
  4625. return new ScenarioResultSummary(this);
  4626. }
  4627. /// <summary>Field number for the "qps" field.</summary>
  4628. public const int QpsFieldNumber = 1;
  4629. private double qps_;
  4630. /// <summary>
  4631. /// Total number of operations per second over all clients. What is counted as 1 'operation' depends on the benchmark scenarios:
  4632. /// For unary benchmarks, an operation is processing of a single unary RPC.
  4633. /// For streaming benchmarks, an operation is processing of a single ping pong of request and response.
  4634. /// </summary>
  4635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4636. public double Qps {
  4637. get { return qps_; }
  4638. set {
  4639. qps_ = value;
  4640. }
  4641. }
  4642. /// <summary>Field number for the "qps_per_server_core" field.</summary>
  4643. public const int QpsPerServerCoreFieldNumber = 2;
  4644. private double qpsPerServerCore_;
  4645. /// <summary>
  4646. /// QPS per server core.
  4647. /// </summary>
  4648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4649. public double QpsPerServerCore {
  4650. get { return qpsPerServerCore_; }
  4651. set {
  4652. qpsPerServerCore_ = value;
  4653. }
  4654. }
  4655. /// <summary>Field number for the "server_system_time" field.</summary>
  4656. public const int ServerSystemTimeFieldNumber = 3;
  4657. private double serverSystemTime_;
  4658. /// <summary>
  4659. /// The total server cpu load based on system time across all server processes, expressed as percentage of a single cpu core.
  4660. /// For example, 85 implies 85% of a cpu core, 125 implies 125% of a cpu core. Since we are accumulating the cpu load across all the server
  4661. /// processes, the value could > 100 when there are multiple servers or a single server using multiple threads and cores.
  4662. /// Same explanation for the total client cpu load below.
  4663. /// </summary>
  4664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4665. public double ServerSystemTime {
  4666. get { return serverSystemTime_; }
  4667. set {
  4668. serverSystemTime_ = value;
  4669. }
  4670. }
  4671. /// <summary>Field number for the "server_user_time" field.</summary>
  4672. public const int ServerUserTimeFieldNumber = 4;
  4673. private double serverUserTime_;
  4674. /// <summary>
  4675. /// The total server cpu load based on user time across all server processes, expressed as percentage of a single cpu core. (85 => 85%, 125 => 125%)
  4676. /// </summary>
  4677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4678. public double ServerUserTime {
  4679. get { return serverUserTime_; }
  4680. set {
  4681. serverUserTime_ = value;
  4682. }
  4683. }
  4684. /// <summary>Field number for the "client_system_time" field.</summary>
  4685. public const int ClientSystemTimeFieldNumber = 5;
  4686. private double clientSystemTime_;
  4687. /// <summary>
  4688. /// The total client cpu load based on system time across all client processes, expressed as percentage of a single cpu core. (85 => 85%, 125 => 125%)
  4689. /// </summary>
  4690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4691. public double ClientSystemTime {
  4692. get { return clientSystemTime_; }
  4693. set {
  4694. clientSystemTime_ = value;
  4695. }
  4696. }
  4697. /// <summary>Field number for the "client_user_time" field.</summary>
  4698. public const int ClientUserTimeFieldNumber = 6;
  4699. private double clientUserTime_;
  4700. /// <summary>
  4701. /// The total client cpu load based on user time across all client processes, expressed as percentage of a single cpu core. (85 => 85%, 125 => 125%)
  4702. /// </summary>
  4703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4704. public double ClientUserTime {
  4705. get { return clientUserTime_; }
  4706. set {
  4707. clientUserTime_ = value;
  4708. }
  4709. }
  4710. /// <summary>Field number for the "latency_50" field.</summary>
  4711. public const int Latency50FieldNumber = 7;
  4712. private double latency50_;
  4713. /// <summary>
  4714. /// X% latency percentiles (in nanoseconds)
  4715. /// </summary>
  4716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4717. public double Latency50 {
  4718. get { return latency50_; }
  4719. set {
  4720. latency50_ = value;
  4721. }
  4722. }
  4723. /// <summary>Field number for the "latency_90" field.</summary>
  4724. public const int Latency90FieldNumber = 8;
  4725. private double latency90_;
  4726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4727. public double Latency90 {
  4728. get { return latency90_; }
  4729. set {
  4730. latency90_ = value;
  4731. }
  4732. }
  4733. /// <summary>Field number for the "latency_95" field.</summary>
  4734. public const int Latency95FieldNumber = 9;
  4735. private double latency95_;
  4736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4737. public double Latency95 {
  4738. get { return latency95_; }
  4739. set {
  4740. latency95_ = value;
  4741. }
  4742. }
  4743. /// <summary>Field number for the "latency_99" field.</summary>
  4744. public const int Latency99FieldNumber = 10;
  4745. private double latency99_;
  4746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4747. public double Latency99 {
  4748. get { return latency99_; }
  4749. set {
  4750. latency99_ = value;
  4751. }
  4752. }
  4753. /// <summary>Field number for the "latency_999" field.</summary>
  4754. public const int Latency999FieldNumber = 11;
  4755. private double latency999_;
  4756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4757. public double Latency999 {
  4758. get { return latency999_; }
  4759. set {
  4760. latency999_ = value;
  4761. }
  4762. }
  4763. /// <summary>Field number for the "server_cpu_usage" field.</summary>
  4764. public const int ServerCpuUsageFieldNumber = 12;
  4765. private double serverCpuUsage_;
  4766. /// <summary>
  4767. /// server cpu usage percentage
  4768. /// </summary>
  4769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4770. public double ServerCpuUsage {
  4771. get { return serverCpuUsage_; }
  4772. set {
  4773. serverCpuUsage_ = value;
  4774. }
  4775. }
  4776. /// <summary>Field number for the "successful_requests_per_second" field.</summary>
  4777. public const int SuccessfulRequestsPerSecondFieldNumber = 13;
  4778. private double successfulRequestsPerSecond_;
  4779. /// <summary>
  4780. /// Number of requests that succeeded/failed
  4781. /// </summary>
  4782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4783. public double SuccessfulRequestsPerSecond {
  4784. get { return successfulRequestsPerSecond_; }
  4785. set {
  4786. successfulRequestsPerSecond_ = value;
  4787. }
  4788. }
  4789. /// <summary>Field number for the "failed_requests_per_second" field.</summary>
  4790. public const int FailedRequestsPerSecondFieldNumber = 14;
  4791. private double failedRequestsPerSecond_;
  4792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4793. public double FailedRequestsPerSecond {
  4794. get { return failedRequestsPerSecond_; }
  4795. set {
  4796. failedRequestsPerSecond_ = value;
  4797. }
  4798. }
  4799. /// <summary>Field number for the "client_polls_per_request" field.</summary>
  4800. public const int ClientPollsPerRequestFieldNumber = 15;
  4801. private double clientPollsPerRequest_;
  4802. /// <summary>
  4803. /// Number of polls called inside completion queue per request
  4804. /// </summary>
  4805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4806. public double ClientPollsPerRequest {
  4807. get { return clientPollsPerRequest_; }
  4808. set {
  4809. clientPollsPerRequest_ = value;
  4810. }
  4811. }
  4812. /// <summary>Field number for the "server_polls_per_request" field.</summary>
  4813. public const int ServerPollsPerRequestFieldNumber = 16;
  4814. private double serverPollsPerRequest_;
  4815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4816. public double ServerPollsPerRequest {
  4817. get { return serverPollsPerRequest_; }
  4818. set {
  4819. serverPollsPerRequest_ = value;
  4820. }
  4821. }
  4822. /// <summary>Field number for the "server_queries_per_cpu_sec" field.</summary>
  4823. public const int ServerQueriesPerCpuSecFieldNumber = 17;
  4824. private double serverQueriesPerCpuSec_;
  4825. /// <summary>
  4826. /// Queries per CPU-sec over all servers or clients
  4827. /// </summary>
  4828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4829. public double ServerQueriesPerCpuSec {
  4830. get { return serverQueriesPerCpuSec_; }
  4831. set {
  4832. serverQueriesPerCpuSec_ = value;
  4833. }
  4834. }
  4835. /// <summary>Field number for the "client_queries_per_cpu_sec" field.</summary>
  4836. public const int ClientQueriesPerCpuSecFieldNumber = 18;
  4837. private double clientQueriesPerCpuSec_;
  4838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4839. public double ClientQueriesPerCpuSec {
  4840. get { return clientQueriesPerCpuSec_; }
  4841. set {
  4842. clientQueriesPerCpuSec_ = value;
  4843. }
  4844. }
  4845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4846. public override bool Equals(object other) {
  4847. return Equals(other as ScenarioResultSummary);
  4848. }
  4849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4850. public bool Equals(ScenarioResultSummary other) {
  4851. if (ReferenceEquals(other, null)) {
  4852. return false;
  4853. }
  4854. if (ReferenceEquals(other, this)) {
  4855. return true;
  4856. }
  4857. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Qps, other.Qps)) return false;
  4858. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(QpsPerServerCore, other.QpsPerServerCore)) return false;
  4859. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ServerSystemTime, other.ServerSystemTime)) return false;
  4860. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ServerUserTime, other.ServerUserTime)) return false;
  4861. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ClientSystemTime, other.ClientSystemTime)) return false;
  4862. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ClientUserTime, other.ClientUserTime)) return false;
  4863. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Latency50, other.Latency50)) return false;
  4864. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Latency90, other.Latency90)) return false;
  4865. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Latency95, other.Latency95)) return false;
  4866. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Latency99, other.Latency99)) return false;
  4867. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Latency999, other.Latency999)) return false;
  4868. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ServerCpuUsage, other.ServerCpuUsage)) return false;
  4869. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SuccessfulRequestsPerSecond, other.SuccessfulRequestsPerSecond)) return false;
  4870. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FailedRequestsPerSecond, other.FailedRequestsPerSecond)) return false;
  4871. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ClientPollsPerRequest, other.ClientPollsPerRequest)) return false;
  4872. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ServerPollsPerRequest, other.ServerPollsPerRequest)) return false;
  4873. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ServerQueriesPerCpuSec, other.ServerQueriesPerCpuSec)) return false;
  4874. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ClientQueriesPerCpuSec, other.ClientQueriesPerCpuSec)) return false;
  4875. return Equals(_unknownFields, other._unknownFields);
  4876. }
  4877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4878. public override int GetHashCode() {
  4879. int hash = 1;
  4880. if (Qps != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Qps);
  4881. if (QpsPerServerCore != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(QpsPerServerCore);
  4882. if (ServerSystemTime != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ServerSystemTime);
  4883. if (ServerUserTime != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ServerUserTime);
  4884. if (ClientSystemTime != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ClientSystemTime);
  4885. if (ClientUserTime != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ClientUserTime);
  4886. if (Latency50 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Latency50);
  4887. if (Latency90 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Latency90);
  4888. if (Latency95 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Latency95);
  4889. if (Latency99 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Latency99);
  4890. if (Latency999 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Latency999);
  4891. if (ServerCpuUsage != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ServerCpuUsage);
  4892. if (SuccessfulRequestsPerSecond != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SuccessfulRequestsPerSecond);
  4893. if (FailedRequestsPerSecond != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FailedRequestsPerSecond);
  4894. if (ClientPollsPerRequest != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ClientPollsPerRequest);
  4895. if (ServerPollsPerRequest != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ServerPollsPerRequest);
  4896. if (ServerQueriesPerCpuSec != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ServerQueriesPerCpuSec);
  4897. if (ClientQueriesPerCpuSec != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ClientQueriesPerCpuSec);
  4898. if (_unknownFields != null) {
  4899. hash ^= _unknownFields.GetHashCode();
  4900. }
  4901. return hash;
  4902. }
  4903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4904. public override string ToString() {
  4905. return pb::JsonFormatter.ToDiagnosticString(this);
  4906. }
  4907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4908. public void WriteTo(pb::CodedOutputStream output) {
  4909. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  4910. output.WriteRawMessage(this);
  4911. #else
  4912. if (Qps != 0D) {
  4913. output.WriteRawTag(9);
  4914. output.WriteDouble(Qps);
  4915. }
  4916. if (QpsPerServerCore != 0D) {
  4917. output.WriteRawTag(17);
  4918. output.WriteDouble(QpsPerServerCore);
  4919. }
  4920. if (ServerSystemTime != 0D) {
  4921. output.WriteRawTag(25);
  4922. output.WriteDouble(ServerSystemTime);
  4923. }
  4924. if (ServerUserTime != 0D) {
  4925. output.WriteRawTag(33);
  4926. output.WriteDouble(ServerUserTime);
  4927. }
  4928. if (ClientSystemTime != 0D) {
  4929. output.WriteRawTag(41);
  4930. output.WriteDouble(ClientSystemTime);
  4931. }
  4932. if (ClientUserTime != 0D) {
  4933. output.WriteRawTag(49);
  4934. output.WriteDouble(ClientUserTime);
  4935. }
  4936. if (Latency50 != 0D) {
  4937. output.WriteRawTag(57);
  4938. output.WriteDouble(Latency50);
  4939. }
  4940. if (Latency90 != 0D) {
  4941. output.WriteRawTag(65);
  4942. output.WriteDouble(Latency90);
  4943. }
  4944. if (Latency95 != 0D) {
  4945. output.WriteRawTag(73);
  4946. output.WriteDouble(Latency95);
  4947. }
  4948. if (Latency99 != 0D) {
  4949. output.WriteRawTag(81);
  4950. output.WriteDouble(Latency99);
  4951. }
  4952. if (Latency999 != 0D) {
  4953. output.WriteRawTag(89);
  4954. output.WriteDouble(Latency999);
  4955. }
  4956. if (ServerCpuUsage != 0D) {
  4957. output.WriteRawTag(97);
  4958. output.WriteDouble(ServerCpuUsage);
  4959. }
  4960. if (SuccessfulRequestsPerSecond != 0D) {
  4961. output.WriteRawTag(105);
  4962. output.WriteDouble(SuccessfulRequestsPerSecond);
  4963. }
  4964. if (FailedRequestsPerSecond != 0D) {
  4965. output.WriteRawTag(113);
  4966. output.WriteDouble(FailedRequestsPerSecond);
  4967. }
  4968. if (ClientPollsPerRequest != 0D) {
  4969. output.WriteRawTag(121);
  4970. output.WriteDouble(ClientPollsPerRequest);
  4971. }
  4972. if (ServerPollsPerRequest != 0D) {
  4973. output.WriteRawTag(129, 1);
  4974. output.WriteDouble(ServerPollsPerRequest);
  4975. }
  4976. if (ServerQueriesPerCpuSec != 0D) {
  4977. output.WriteRawTag(137, 1);
  4978. output.WriteDouble(ServerQueriesPerCpuSec);
  4979. }
  4980. if (ClientQueriesPerCpuSec != 0D) {
  4981. output.WriteRawTag(145, 1);
  4982. output.WriteDouble(ClientQueriesPerCpuSec);
  4983. }
  4984. if (_unknownFields != null) {
  4985. _unknownFields.WriteTo(output);
  4986. }
  4987. #endif
  4988. }
  4989. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  4990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4991. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  4992. if (Qps != 0D) {
  4993. output.WriteRawTag(9);
  4994. output.WriteDouble(Qps);
  4995. }
  4996. if (QpsPerServerCore != 0D) {
  4997. output.WriteRawTag(17);
  4998. output.WriteDouble(QpsPerServerCore);
  4999. }
  5000. if (ServerSystemTime != 0D) {
  5001. output.WriteRawTag(25);
  5002. output.WriteDouble(ServerSystemTime);
  5003. }
  5004. if (ServerUserTime != 0D) {
  5005. output.WriteRawTag(33);
  5006. output.WriteDouble(ServerUserTime);
  5007. }
  5008. if (ClientSystemTime != 0D) {
  5009. output.WriteRawTag(41);
  5010. output.WriteDouble(ClientSystemTime);
  5011. }
  5012. if (ClientUserTime != 0D) {
  5013. output.WriteRawTag(49);
  5014. output.WriteDouble(ClientUserTime);
  5015. }
  5016. if (Latency50 != 0D) {
  5017. output.WriteRawTag(57);
  5018. output.WriteDouble(Latency50);
  5019. }
  5020. if (Latency90 != 0D) {
  5021. output.WriteRawTag(65);
  5022. output.WriteDouble(Latency90);
  5023. }
  5024. if (Latency95 != 0D) {
  5025. output.WriteRawTag(73);
  5026. output.WriteDouble(Latency95);
  5027. }
  5028. if (Latency99 != 0D) {
  5029. output.WriteRawTag(81);
  5030. output.WriteDouble(Latency99);
  5031. }
  5032. if (Latency999 != 0D) {
  5033. output.WriteRawTag(89);
  5034. output.WriteDouble(Latency999);
  5035. }
  5036. if (ServerCpuUsage != 0D) {
  5037. output.WriteRawTag(97);
  5038. output.WriteDouble(ServerCpuUsage);
  5039. }
  5040. if (SuccessfulRequestsPerSecond != 0D) {
  5041. output.WriteRawTag(105);
  5042. output.WriteDouble(SuccessfulRequestsPerSecond);
  5043. }
  5044. if (FailedRequestsPerSecond != 0D) {
  5045. output.WriteRawTag(113);
  5046. output.WriteDouble(FailedRequestsPerSecond);
  5047. }
  5048. if (ClientPollsPerRequest != 0D) {
  5049. output.WriteRawTag(121);
  5050. output.WriteDouble(ClientPollsPerRequest);
  5051. }
  5052. if (ServerPollsPerRequest != 0D) {
  5053. output.WriteRawTag(129, 1);
  5054. output.WriteDouble(ServerPollsPerRequest);
  5055. }
  5056. if (ServerQueriesPerCpuSec != 0D) {
  5057. output.WriteRawTag(137, 1);
  5058. output.WriteDouble(ServerQueriesPerCpuSec);
  5059. }
  5060. if (ClientQueriesPerCpuSec != 0D) {
  5061. output.WriteRawTag(145, 1);
  5062. output.WriteDouble(ClientQueriesPerCpuSec);
  5063. }
  5064. if (_unknownFields != null) {
  5065. _unknownFields.WriteTo(ref output);
  5066. }
  5067. }
  5068. #endif
  5069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5070. public int CalculateSize() {
  5071. int size = 0;
  5072. if (Qps != 0D) {
  5073. size += 1 + 8;
  5074. }
  5075. if (QpsPerServerCore != 0D) {
  5076. size += 1 + 8;
  5077. }
  5078. if (ServerSystemTime != 0D) {
  5079. size += 1 + 8;
  5080. }
  5081. if (ServerUserTime != 0D) {
  5082. size += 1 + 8;
  5083. }
  5084. if (ClientSystemTime != 0D) {
  5085. size += 1 + 8;
  5086. }
  5087. if (ClientUserTime != 0D) {
  5088. size += 1 + 8;
  5089. }
  5090. if (Latency50 != 0D) {
  5091. size += 1 + 8;
  5092. }
  5093. if (Latency90 != 0D) {
  5094. size += 1 + 8;
  5095. }
  5096. if (Latency95 != 0D) {
  5097. size += 1 + 8;
  5098. }
  5099. if (Latency99 != 0D) {
  5100. size += 1 + 8;
  5101. }
  5102. if (Latency999 != 0D) {
  5103. size += 1 + 8;
  5104. }
  5105. if (ServerCpuUsage != 0D) {
  5106. size += 1 + 8;
  5107. }
  5108. if (SuccessfulRequestsPerSecond != 0D) {
  5109. size += 1 + 8;
  5110. }
  5111. if (FailedRequestsPerSecond != 0D) {
  5112. size += 1 + 8;
  5113. }
  5114. if (ClientPollsPerRequest != 0D) {
  5115. size += 1 + 8;
  5116. }
  5117. if (ServerPollsPerRequest != 0D) {
  5118. size += 2 + 8;
  5119. }
  5120. if (ServerQueriesPerCpuSec != 0D) {
  5121. size += 2 + 8;
  5122. }
  5123. if (ClientQueriesPerCpuSec != 0D) {
  5124. size += 2 + 8;
  5125. }
  5126. if (_unknownFields != null) {
  5127. size += _unknownFields.CalculateSize();
  5128. }
  5129. return size;
  5130. }
  5131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5132. public void MergeFrom(ScenarioResultSummary other) {
  5133. if (other == null) {
  5134. return;
  5135. }
  5136. if (other.Qps != 0D) {
  5137. Qps = other.Qps;
  5138. }
  5139. if (other.QpsPerServerCore != 0D) {
  5140. QpsPerServerCore = other.QpsPerServerCore;
  5141. }
  5142. if (other.ServerSystemTime != 0D) {
  5143. ServerSystemTime = other.ServerSystemTime;
  5144. }
  5145. if (other.ServerUserTime != 0D) {
  5146. ServerUserTime = other.ServerUserTime;
  5147. }
  5148. if (other.ClientSystemTime != 0D) {
  5149. ClientSystemTime = other.ClientSystemTime;
  5150. }
  5151. if (other.ClientUserTime != 0D) {
  5152. ClientUserTime = other.ClientUserTime;
  5153. }
  5154. if (other.Latency50 != 0D) {
  5155. Latency50 = other.Latency50;
  5156. }
  5157. if (other.Latency90 != 0D) {
  5158. Latency90 = other.Latency90;
  5159. }
  5160. if (other.Latency95 != 0D) {
  5161. Latency95 = other.Latency95;
  5162. }
  5163. if (other.Latency99 != 0D) {
  5164. Latency99 = other.Latency99;
  5165. }
  5166. if (other.Latency999 != 0D) {
  5167. Latency999 = other.Latency999;
  5168. }
  5169. if (other.ServerCpuUsage != 0D) {
  5170. ServerCpuUsage = other.ServerCpuUsage;
  5171. }
  5172. if (other.SuccessfulRequestsPerSecond != 0D) {
  5173. SuccessfulRequestsPerSecond = other.SuccessfulRequestsPerSecond;
  5174. }
  5175. if (other.FailedRequestsPerSecond != 0D) {
  5176. FailedRequestsPerSecond = other.FailedRequestsPerSecond;
  5177. }
  5178. if (other.ClientPollsPerRequest != 0D) {
  5179. ClientPollsPerRequest = other.ClientPollsPerRequest;
  5180. }
  5181. if (other.ServerPollsPerRequest != 0D) {
  5182. ServerPollsPerRequest = other.ServerPollsPerRequest;
  5183. }
  5184. if (other.ServerQueriesPerCpuSec != 0D) {
  5185. ServerQueriesPerCpuSec = other.ServerQueriesPerCpuSec;
  5186. }
  5187. if (other.ClientQueriesPerCpuSec != 0D) {
  5188. ClientQueriesPerCpuSec = other.ClientQueriesPerCpuSec;
  5189. }
  5190. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  5191. }
  5192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5193. public void MergeFrom(pb::CodedInputStream input) {
  5194. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  5195. input.ReadRawMessage(this);
  5196. #else
  5197. uint tag;
  5198. while ((tag = input.ReadTag()) != 0) {
  5199. switch(tag) {
  5200. default:
  5201. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  5202. break;
  5203. case 9: {
  5204. Qps = input.ReadDouble();
  5205. break;
  5206. }
  5207. case 17: {
  5208. QpsPerServerCore = input.ReadDouble();
  5209. break;
  5210. }
  5211. case 25: {
  5212. ServerSystemTime = input.ReadDouble();
  5213. break;
  5214. }
  5215. case 33: {
  5216. ServerUserTime = input.ReadDouble();
  5217. break;
  5218. }
  5219. case 41: {
  5220. ClientSystemTime = input.ReadDouble();
  5221. break;
  5222. }
  5223. case 49: {
  5224. ClientUserTime = input.ReadDouble();
  5225. break;
  5226. }
  5227. case 57: {
  5228. Latency50 = input.ReadDouble();
  5229. break;
  5230. }
  5231. case 65: {
  5232. Latency90 = input.ReadDouble();
  5233. break;
  5234. }
  5235. case 73: {
  5236. Latency95 = input.ReadDouble();
  5237. break;
  5238. }
  5239. case 81: {
  5240. Latency99 = input.ReadDouble();
  5241. break;
  5242. }
  5243. case 89: {
  5244. Latency999 = input.ReadDouble();
  5245. break;
  5246. }
  5247. case 97: {
  5248. ServerCpuUsage = input.ReadDouble();
  5249. break;
  5250. }
  5251. case 105: {
  5252. SuccessfulRequestsPerSecond = input.ReadDouble();
  5253. break;
  5254. }
  5255. case 113: {
  5256. FailedRequestsPerSecond = input.ReadDouble();
  5257. break;
  5258. }
  5259. case 121: {
  5260. ClientPollsPerRequest = input.ReadDouble();
  5261. break;
  5262. }
  5263. case 129: {
  5264. ServerPollsPerRequest = input.ReadDouble();
  5265. break;
  5266. }
  5267. case 137: {
  5268. ServerQueriesPerCpuSec = input.ReadDouble();
  5269. break;
  5270. }
  5271. case 145: {
  5272. ClientQueriesPerCpuSec = input.ReadDouble();
  5273. break;
  5274. }
  5275. }
  5276. }
  5277. #endif
  5278. }
  5279. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  5280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5281. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  5282. uint tag;
  5283. while ((tag = input.ReadTag()) != 0) {
  5284. switch(tag) {
  5285. default:
  5286. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  5287. break;
  5288. case 9: {
  5289. Qps = input.ReadDouble();
  5290. break;
  5291. }
  5292. case 17: {
  5293. QpsPerServerCore = input.ReadDouble();
  5294. break;
  5295. }
  5296. case 25: {
  5297. ServerSystemTime = input.ReadDouble();
  5298. break;
  5299. }
  5300. case 33: {
  5301. ServerUserTime = input.ReadDouble();
  5302. break;
  5303. }
  5304. case 41: {
  5305. ClientSystemTime = input.ReadDouble();
  5306. break;
  5307. }
  5308. case 49: {
  5309. ClientUserTime = input.ReadDouble();
  5310. break;
  5311. }
  5312. case 57: {
  5313. Latency50 = input.ReadDouble();
  5314. break;
  5315. }
  5316. case 65: {
  5317. Latency90 = input.ReadDouble();
  5318. break;
  5319. }
  5320. case 73: {
  5321. Latency95 = input.ReadDouble();
  5322. break;
  5323. }
  5324. case 81: {
  5325. Latency99 = input.ReadDouble();
  5326. break;
  5327. }
  5328. case 89: {
  5329. Latency999 = input.ReadDouble();
  5330. break;
  5331. }
  5332. case 97: {
  5333. ServerCpuUsage = input.ReadDouble();
  5334. break;
  5335. }
  5336. case 105: {
  5337. SuccessfulRequestsPerSecond = input.ReadDouble();
  5338. break;
  5339. }
  5340. case 113: {
  5341. FailedRequestsPerSecond = input.ReadDouble();
  5342. break;
  5343. }
  5344. case 121: {
  5345. ClientPollsPerRequest = input.ReadDouble();
  5346. break;
  5347. }
  5348. case 129: {
  5349. ServerPollsPerRequest = input.ReadDouble();
  5350. break;
  5351. }
  5352. case 137: {
  5353. ServerQueriesPerCpuSec = input.ReadDouble();
  5354. break;
  5355. }
  5356. case 145: {
  5357. ClientQueriesPerCpuSec = input.ReadDouble();
  5358. break;
  5359. }
  5360. }
  5361. }
  5362. }
  5363. #endif
  5364. }
  5365. /// <summary>
  5366. /// Results of a single benchmark scenario.
  5367. /// </summary>
  5368. public sealed partial class ScenarioResult : pb::IMessage<ScenarioResult>
  5369. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  5370. , pb::IBufferMessage
  5371. #endif
  5372. {
  5373. private static readonly pb::MessageParser<ScenarioResult> _parser = new pb::MessageParser<ScenarioResult>(() => new ScenarioResult());
  5374. private pb::UnknownFieldSet _unknownFields;
  5375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5376. public static pb::MessageParser<ScenarioResult> Parser { get { return _parser; } }
  5377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5378. public static pbr::MessageDescriptor Descriptor {
  5379. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[18]; }
  5380. }
  5381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5382. pbr::MessageDescriptor pb::IMessage.Descriptor {
  5383. get { return Descriptor; }
  5384. }
  5385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5386. public ScenarioResult() {
  5387. OnConstruction();
  5388. }
  5389. partial void OnConstruction();
  5390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5391. public ScenarioResult(ScenarioResult other) : this() {
  5392. scenario_ = other.scenario_ != null ? other.scenario_.Clone() : null;
  5393. latencies_ = other.latencies_ != null ? other.latencies_.Clone() : null;
  5394. clientStats_ = other.clientStats_.Clone();
  5395. serverStats_ = other.serverStats_.Clone();
  5396. serverCores_ = other.serverCores_.Clone();
  5397. summary_ = other.summary_ != null ? other.summary_.Clone() : null;
  5398. clientSuccess_ = other.clientSuccess_.Clone();
  5399. serverSuccess_ = other.serverSuccess_.Clone();
  5400. requestResults_ = other.requestResults_.Clone();
  5401. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  5402. }
  5403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5404. public ScenarioResult Clone() {
  5405. return new ScenarioResult(this);
  5406. }
  5407. /// <summary>Field number for the "scenario" field.</summary>
  5408. public const int ScenarioFieldNumber = 1;
  5409. private global::Grpc.Testing.Scenario scenario_;
  5410. /// <summary>
  5411. /// Inputs used to run the scenario.
  5412. /// </summary>
  5413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5414. public global::Grpc.Testing.Scenario Scenario {
  5415. get { return scenario_; }
  5416. set {
  5417. scenario_ = value;
  5418. }
  5419. }
  5420. /// <summary>Field number for the "latencies" field.</summary>
  5421. public const int LatenciesFieldNumber = 2;
  5422. private global::Grpc.Testing.HistogramData latencies_;
  5423. /// <summary>
  5424. /// Histograms from all clients merged into one histogram.
  5425. /// </summary>
  5426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5427. public global::Grpc.Testing.HistogramData Latencies {
  5428. get { return latencies_; }
  5429. set {
  5430. latencies_ = value;
  5431. }
  5432. }
  5433. /// <summary>Field number for the "client_stats" field.</summary>
  5434. public const int ClientStatsFieldNumber = 3;
  5435. private static readonly pb::FieldCodec<global::Grpc.Testing.ClientStats> _repeated_clientStats_codec
  5436. = pb::FieldCodec.ForMessage(26, global::Grpc.Testing.ClientStats.Parser);
  5437. private readonly pbc::RepeatedField<global::Grpc.Testing.ClientStats> clientStats_ = new pbc::RepeatedField<global::Grpc.Testing.ClientStats>();
  5438. /// <summary>
  5439. /// Client stats for each client
  5440. /// </summary>
  5441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5442. public pbc::RepeatedField<global::Grpc.Testing.ClientStats> ClientStats {
  5443. get { return clientStats_; }
  5444. }
  5445. /// <summary>Field number for the "server_stats" field.</summary>
  5446. public const int ServerStatsFieldNumber = 4;
  5447. private static readonly pb::FieldCodec<global::Grpc.Testing.ServerStats> _repeated_serverStats_codec
  5448. = pb::FieldCodec.ForMessage(34, global::Grpc.Testing.ServerStats.Parser);
  5449. private readonly pbc::RepeatedField<global::Grpc.Testing.ServerStats> serverStats_ = new pbc::RepeatedField<global::Grpc.Testing.ServerStats>();
  5450. /// <summary>
  5451. /// Server stats for each server
  5452. /// </summary>
  5453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5454. public pbc::RepeatedField<global::Grpc.Testing.ServerStats> ServerStats {
  5455. get { return serverStats_; }
  5456. }
  5457. /// <summary>Field number for the "server_cores" field.</summary>
  5458. public const int ServerCoresFieldNumber = 5;
  5459. private static readonly pb::FieldCodec<int> _repeated_serverCores_codec
  5460. = pb::FieldCodec.ForInt32(42);
  5461. private readonly pbc::RepeatedField<int> serverCores_ = new pbc::RepeatedField<int>();
  5462. /// <summary>
  5463. /// Number of cores available to each server
  5464. /// </summary>
  5465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5466. public pbc::RepeatedField<int> ServerCores {
  5467. get { return serverCores_; }
  5468. }
  5469. /// <summary>Field number for the "summary" field.</summary>
  5470. public const int SummaryFieldNumber = 6;
  5471. private global::Grpc.Testing.ScenarioResultSummary summary_;
  5472. /// <summary>
  5473. /// An after-the-fact computed summary
  5474. /// </summary>
  5475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5476. public global::Grpc.Testing.ScenarioResultSummary Summary {
  5477. get { return summary_; }
  5478. set {
  5479. summary_ = value;
  5480. }
  5481. }
  5482. /// <summary>Field number for the "client_success" field.</summary>
  5483. public const int ClientSuccessFieldNumber = 7;
  5484. private static readonly pb::FieldCodec<bool> _repeated_clientSuccess_codec
  5485. = pb::FieldCodec.ForBool(58);
  5486. private readonly pbc::RepeatedField<bool> clientSuccess_ = new pbc::RepeatedField<bool>();
  5487. /// <summary>
  5488. /// Information on success or failure of each worker
  5489. /// </summary>
  5490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5491. public pbc::RepeatedField<bool> ClientSuccess {
  5492. get { return clientSuccess_; }
  5493. }
  5494. /// <summary>Field number for the "server_success" field.</summary>
  5495. public const int ServerSuccessFieldNumber = 8;
  5496. private static readonly pb::FieldCodec<bool> _repeated_serverSuccess_codec
  5497. = pb::FieldCodec.ForBool(66);
  5498. private readonly pbc::RepeatedField<bool> serverSuccess_ = new pbc::RepeatedField<bool>();
  5499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5500. public pbc::RepeatedField<bool> ServerSuccess {
  5501. get { return serverSuccess_; }
  5502. }
  5503. /// <summary>Field number for the "request_results" field.</summary>
  5504. public const int RequestResultsFieldNumber = 9;
  5505. private static readonly pb::FieldCodec<global::Grpc.Testing.RequestResultCount> _repeated_requestResults_codec
  5506. = pb::FieldCodec.ForMessage(74, global::Grpc.Testing.RequestResultCount.Parser);
  5507. private readonly pbc::RepeatedField<global::Grpc.Testing.RequestResultCount> requestResults_ = new pbc::RepeatedField<global::Grpc.Testing.RequestResultCount>();
  5508. /// <summary>
  5509. /// Number of failed requests (one row per status code seen)
  5510. /// </summary>
  5511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5512. public pbc::RepeatedField<global::Grpc.Testing.RequestResultCount> RequestResults {
  5513. get { return requestResults_; }
  5514. }
  5515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5516. public override bool Equals(object other) {
  5517. return Equals(other as ScenarioResult);
  5518. }
  5519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5520. public bool Equals(ScenarioResult other) {
  5521. if (ReferenceEquals(other, null)) {
  5522. return false;
  5523. }
  5524. if (ReferenceEquals(other, this)) {
  5525. return true;
  5526. }
  5527. if (!object.Equals(Scenario, other.Scenario)) return false;
  5528. if (!object.Equals(Latencies, other.Latencies)) return false;
  5529. if(!clientStats_.Equals(other.clientStats_)) return false;
  5530. if(!serverStats_.Equals(other.serverStats_)) return false;
  5531. if(!serverCores_.Equals(other.serverCores_)) return false;
  5532. if (!object.Equals(Summary, other.Summary)) return false;
  5533. if(!clientSuccess_.Equals(other.clientSuccess_)) return false;
  5534. if(!serverSuccess_.Equals(other.serverSuccess_)) return false;
  5535. if(!requestResults_.Equals(other.requestResults_)) return false;
  5536. return Equals(_unknownFields, other._unknownFields);
  5537. }
  5538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5539. public override int GetHashCode() {
  5540. int hash = 1;
  5541. if (scenario_ != null) hash ^= Scenario.GetHashCode();
  5542. if (latencies_ != null) hash ^= Latencies.GetHashCode();
  5543. hash ^= clientStats_.GetHashCode();
  5544. hash ^= serverStats_.GetHashCode();
  5545. hash ^= serverCores_.GetHashCode();
  5546. if (summary_ != null) hash ^= Summary.GetHashCode();
  5547. hash ^= clientSuccess_.GetHashCode();
  5548. hash ^= serverSuccess_.GetHashCode();
  5549. hash ^= requestResults_.GetHashCode();
  5550. if (_unknownFields != null) {
  5551. hash ^= _unknownFields.GetHashCode();
  5552. }
  5553. return hash;
  5554. }
  5555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5556. public override string ToString() {
  5557. return pb::JsonFormatter.ToDiagnosticString(this);
  5558. }
  5559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5560. public void WriteTo(pb::CodedOutputStream output) {
  5561. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  5562. output.WriteRawMessage(this);
  5563. #else
  5564. if (scenario_ != null) {
  5565. output.WriteRawTag(10);
  5566. output.WriteMessage(Scenario);
  5567. }
  5568. if (latencies_ != null) {
  5569. output.WriteRawTag(18);
  5570. output.WriteMessage(Latencies);
  5571. }
  5572. clientStats_.WriteTo(output, _repeated_clientStats_codec);
  5573. serverStats_.WriteTo(output, _repeated_serverStats_codec);
  5574. serverCores_.WriteTo(output, _repeated_serverCores_codec);
  5575. if (summary_ != null) {
  5576. output.WriteRawTag(50);
  5577. output.WriteMessage(Summary);
  5578. }
  5579. clientSuccess_.WriteTo(output, _repeated_clientSuccess_codec);
  5580. serverSuccess_.WriteTo(output, _repeated_serverSuccess_codec);
  5581. requestResults_.WriteTo(output, _repeated_requestResults_codec);
  5582. if (_unknownFields != null) {
  5583. _unknownFields.WriteTo(output);
  5584. }
  5585. #endif
  5586. }
  5587. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  5588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5589. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  5590. if (scenario_ != null) {
  5591. output.WriteRawTag(10);
  5592. output.WriteMessage(Scenario);
  5593. }
  5594. if (latencies_ != null) {
  5595. output.WriteRawTag(18);
  5596. output.WriteMessage(Latencies);
  5597. }
  5598. clientStats_.WriteTo(ref output, _repeated_clientStats_codec);
  5599. serverStats_.WriteTo(ref output, _repeated_serverStats_codec);
  5600. serverCores_.WriteTo(ref output, _repeated_serverCores_codec);
  5601. if (summary_ != null) {
  5602. output.WriteRawTag(50);
  5603. output.WriteMessage(Summary);
  5604. }
  5605. clientSuccess_.WriteTo(ref output, _repeated_clientSuccess_codec);
  5606. serverSuccess_.WriteTo(ref output, _repeated_serverSuccess_codec);
  5607. requestResults_.WriteTo(ref output, _repeated_requestResults_codec);
  5608. if (_unknownFields != null) {
  5609. _unknownFields.WriteTo(ref output);
  5610. }
  5611. }
  5612. #endif
  5613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5614. public int CalculateSize() {
  5615. int size = 0;
  5616. if (scenario_ != null) {
  5617. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Scenario);
  5618. }
  5619. if (latencies_ != null) {
  5620. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Latencies);
  5621. }
  5622. size += clientStats_.CalculateSize(_repeated_clientStats_codec);
  5623. size += serverStats_.CalculateSize(_repeated_serverStats_codec);
  5624. size += serverCores_.CalculateSize(_repeated_serverCores_codec);
  5625. if (summary_ != null) {
  5626. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Summary);
  5627. }
  5628. size += clientSuccess_.CalculateSize(_repeated_clientSuccess_codec);
  5629. size += serverSuccess_.CalculateSize(_repeated_serverSuccess_codec);
  5630. size += requestResults_.CalculateSize(_repeated_requestResults_codec);
  5631. if (_unknownFields != null) {
  5632. size += _unknownFields.CalculateSize();
  5633. }
  5634. return size;
  5635. }
  5636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5637. public void MergeFrom(ScenarioResult other) {
  5638. if (other == null) {
  5639. return;
  5640. }
  5641. if (other.scenario_ != null) {
  5642. if (scenario_ == null) {
  5643. Scenario = new global::Grpc.Testing.Scenario();
  5644. }
  5645. Scenario.MergeFrom(other.Scenario);
  5646. }
  5647. if (other.latencies_ != null) {
  5648. if (latencies_ == null) {
  5649. Latencies = new global::Grpc.Testing.HistogramData();
  5650. }
  5651. Latencies.MergeFrom(other.Latencies);
  5652. }
  5653. clientStats_.Add(other.clientStats_);
  5654. serverStats_.Add(other.serverStats_);
  5655. serverCores_.Add(other.serverCores_);
  5656. if (other.summary_ != null) {
  5657. if (summary_ == null) {
  5658. Summary = new global::Grpc.Testing.ScenarioResultSummary();
  5659. }
  5660. Summary.MergeFrom(other.Summary);
  5661. }
  5662. clientSuccess_.Add(other.clientSuccess_);
  5663. serverSuccess_.Add(other.serverSuccess_);
  5664. requestResults_.Add(other.requestResults_);
  5665. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  5666. }
  5667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5668. public void MergeFrom(pb::CodedInputStream input) {
  5669. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  5670. input.ReadRawMessage(this);
  5671. #else
  5672. uint tag;
  5673. while ((tag = input.ReadTag()) != 0) {
  5674. switch(tag) {
  5675. default:
  5676. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  5677. break;
  5678. case 10: {
  5679. if (scenario_ == null) {
  5680. Scenario = new global::Grpc.Testing.Scenario();
  5681. }
  5682. input.ReadMessage(Scenario);
  5683. break;
  5684. }
  5685. case 18: {
  5686. if (latencies_ == null) {
  5687. Latencies = new global::Grpc.Testing.HistogramData();
  5688. }
  5689. input.ReadMessage(Latencies);
  5690. break;
  5691. }
  5692. case 26: {
  5693. clientStats_.AddEntriesFrom(input, _repeated_clientStats_codec);
  5694. break;
  5695. }
  5696. case 34: {
  5697. serverStats_.AddEntriesFrom(input, _repeated_serverStats_codec);
  5698. break;
  5699. }
  5700. case 42:
  5701. case 40: {
  5702. serverCores_.AddEntriesFrom(input, _repeated_serverCores_codec);
  5703. break;
  5704. }
  5705. case 50: {
  5706. if (summary_ == null) {
  5707. Summary = new global::Grpc.Testing.ScenarioResultSummary();
  5708. }
  5709. input.ReadMessage(Summary);
  5710. break;
  5711. }
  5712. case 58:
  5713. case 56: {
  5714. clientSuccess_.AddEntriesFrom(input, _repeated_clientSuccess_codec);
  5715. break;
  5716. }
  5717. case 66:
  5718. case 64: {
  5719. serverSuccess_.AddEntriesFrom(input, _repeated_serverSuccess_codec);
  5720. break;
  5721. }
  5722. case 74: {
  5723. requestResults_.AddEntriesFrom(input, _repeated_requestResults_codec);
  5724. break;
  5725. }
  5726. }
  5727. }
  5728. #endif
  5729. }
  5730. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  5731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  5732. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  5733. uint tag;
  5734. while ((tag = input.ReadTag()) != 0) {
  5735. switch(tag) {
  5736. default:
  5737. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  5738. break;
  5739. case 10: {
  5740. if (scenario_ == null) {
  5741. Scenario = new global::Grpc.Testing.Scenario();
  5742. }
  5743. input.ReadMessage(Scenario);
  5744. break;
  5745. }
  5746. case 18: {
  5747. if (latencies_ == null) {
  5748. Latencies = new global::Grpc.Testing.HistogramData();
  5749. }
  5750. input.ReadMessage(Latencies);
  5751. break;
  5752. }
  5753. case 26: {
  5754. clientStats_.AddEntriesFrom(ref input, _repeated_clientStats_codec);
  5755. break;
  5756. }
  5757. case 34: {
  5758. serverStats_.AddEntriesFrom(ref input, _repeated_serverStats_codec);
  5759. break;
  5760. }
  5761. case 42:
  5762. case 40: {
  5763. serverCores_.AddEntriesFrom(ref input, _repeated_serverCores_codec);
  5764. break;
  5765. }
  5766. case 50: {
  5767. if (summary_ == null) {
  5768. Summary = new global::Grpc.Testing.ScenarioResultSummary();
  5769. }
  5770. input.ReadMessage(Summary);
  5771. break;
  5772. }
  5773. case 58:
  5774. case 56: {
  5775. clientSuccess_.AddEntriesFrom(ref input, _repeated_clientSuccess_codec);
  5776. break;
  5777. }
  5778. case 66:
  5779. case 64: {
  5780. serverSuccess_.AddEntriesFrom(ref input, _repeated_serverSuccess_codec);
  5781. break;
  5782. }
  5783. case 74: {
  5784. requestResults_.AddEntriesFrom(ref input, _repeated_requestResults_codec);
  5785. break;
  5786. }
  5787. }
  5788. }
  5789. }
  5790. #endif
  5791. }
  5792. #endregion
  5793. }
  5794. #endregion Designer generated code