| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249 |
- // <auto-generated>
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: src/proto/grpc/testing/control.proto
- // </auto-generated>
- #pragma warning disable 1591, 0612, 3021
- #region Designer generated code
- using pb = global::Google.Protobuf;
- using pbc = global::Google.Protobuf.Collections;
- using pbr = global::Google.Protobuf.Reflection;
- using scg = global::System.Collections.Generic;
- namespace Grpc.Testing {
- /// <summary>Holder for reflection information generated from src/proto/grpc/testing/control.proto</summary>
- public static partial class ControlReflection {
- #region Descriptor
- /// <summary>File descriptor for src/proto/grpc/testing/control.proto</summary>
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
- static ControlReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "CiRzcmMvcHJvdG8vZ3JwYy90ZXN0aW5nL2NvbnRyb2wucHJvdG8SDGdycGMu",
- "dGVzdGluZxolc3JjL3Byb3RvL2dycGMvdGVzdGluZy9wYXlsb2Fkcy5wcm90",
- "bxoic3JjL3Byb3RvL2dycGMvdGVzdGluZy9zdGF0cy5wcm90byIlCg1Qb2lz",
- "c29uUGFyYW1zEhQKDG9mZmVyZWRfbG9hZBgBIAEoASISChBDbG9zZWRMb29w",
- "UGFyYW1zInsKCkxvYWRQYXJhbXMSNQoLY2xvc2VkX2xvb3AYASABKAsyHi5n",
- "cnBjLnRlc3RpbmcuQ2xvc2VkTG9vcFBhcmFtc0gAEi4KB3BvaXNzb24YAiAB",
- "KAsyGy5ncnBjLnRlc3RpbmcuUG9pc3NvblBhcmFtc0gAQgYKBGxvYWQiVgoO",
- "U2VjdXJpdHlQYXJhbXMSEwoLdXNlX3Rlc3RfY2EYASABKAgSHAoUc2VydmVy",
- "X2hvc3Rfb3ZlcnJpZGUYAiABKAkSEQoJY3JlZF90eXBlGAMgASgJIk0KCkNo",
- "YW5uZWxBcmcSDAoEbmFtZRgBIAEoCRITCglzdHJfdmFsdWUYAiABKAlIABIT",
- "CglpbnRfdmFsdWUYAyABKAVIAEIHCgV2YWx1ZSK8BQoMQ2xpZW50Q29uZmln",
- "EhYKDnNlcnZlcl90YXJnZXRzGAEgAygJEi0KC2NsaWVudF90eXBlGAIgASgO",
- "MhguZ3JwYy50ZXN0aW5nLkNsaWVudFR5cGUSNQoPc2VjdXJpdHlfcGFyYW1z",
- "GAMgASgLMhwuZ3JwYy50ZXN0aW5nLlNlY3VyaXR5UGFyYW1zEiQKHG91dHN0",
- "YW5kaW5nX3JwY3NfcGVyX2NoYW5uZWwYBCABKAUSFwoPY2xpZW50X2NoYW5u",
- "ZWxzGAUgASgFEhwKFGFzeW5jX2NsaWVudF90aHJlYWRzGAcgASgFEicKCHJw",
- "Y190eXBlGAggASgOMhUuZ3JwYy50ZXN0aW5nLlJwY1R5cGUSLQoLbG9hZF9w",
- "YXJhbXMYCiABKAsyGC5ncnBjLnRlc3RpbmcuTG9hZFBhcmFtcxIzCg5wYXls",
- "b2FkX2NvbmZpZxgLIAEoCzIbLmdycGMudGVzdGluZy5QYXlsb2FkQ29uZmln",
- "EjcKEGhpc3RvZ3JhbV9wYXJhbXMYDCABKAsyHS5ncnBjLnRlc3RpbmcuSGlz",
- "dG9ncmFtUGFyYW1zEhEKCWNvcmVfbGlzdBgNIAMoBRISCgpjb3JlX2xpbWl0",
- "GA4gASgFEhgKEG90aGVyX2NsaWVudF9hcGkYDyABKAkSLgoMY2hhbm5lbF9h",
- "cmdzGBAgAygLMhguZ3JwYy50ZXN0aW5nLkNoYW5uZWxBcmcSFgoOdGhyZWFk",
- "c19wZXJfY3EYESABKAUSGwoTbWVzc2FnZXNfcGVyX3N0cmVhbRgSIAEoBRIY",
- "ChB1c2VfY29hbGVzY2VfYXBpGBMgASgIEjEKKW1lZGlhbl9sYXRlbmN5X2Nv",
- "bGxlY3Rpb25faW50ZXJ2YWxfbWlsbGlzGBQgASgFEhgKEGNsaWVudF9wcm9j",
- "ZXNzZXMYFSABKAUiOAoMQ2xpZW50U3RhdHVzEigKBXN0YXRzGAEgASgLMhku",
- "Z3JwYy50ZXN0aW5nLkNsaWVudFN0YXRzIhUKBE1hcmsSDQoFcmVzZXQYASAB",
- "KAgiaAoKQ2xpZW50QXJncxIrCgVzZXR1cBgBIAEoCzIaLmdycGMudGVzdGlu",
- "Zy5DbGllbnRDb25maWdIABIiCgRtYXJrGAIgASgLMhIuZ3JwYy50ZXN0aW5n",
- "Lk1hcmtIAEIJCgdhcmd0eXBlIpcDCgxTZXJ2ZXJDb25maWcSLQoLc2VydmVy",
- "X3R5cGUYASABKA4yGC5ncnBjLnRlc3RpbmcuU2VydmVyVHlwZRI1Cg9zZWN1",
- "cml0eV9wYXJhbXMYAiABKAsyHC5ncnBjLnRlc3RpbmcuU2VjdXJpdHlQYXJh",
- "bXMSDAoEcG9ydBgEIAEoBRIcChRhc3luY19zZXJ2ZXJfdGhyZWFkcxgHIAEo",
- "BRISCgpjb3JlX2xpbWl0GAggASgFEjMKDnBheWxvYWRfY29uZmlnGAkgASgL",
- "MhsuZ3JwYy50ZXN0aW5nLlBheWxvYWRDb25maWcSEQoJY29yZV9saXN0GAog",
- "AygFEhgKEG90aGVyX3NlcnZlcl9hcGkYCyABKAkSFgoOdGhyZWFkc19wZXJf",
- "Y3EYDCABKAUSHAoTcmVzb3VyY2VfcXVvdGFfc2l6ZRjpByABKAUSLwoMY2hh",
- "bm5lbF9hcmdzGOoHIAMoCzIYLmdycGMudGVzdGluZy5DaGFubmVsQXJnEhgK",
- "EHNlcnZlcl9wcm9jZXNzZXMYFSABKAUiaAoKU2VydmVyQXJncxIrCgVzZXR1",
- "cBgBIAEoCzIaLmdycGMudGVzdGluZy5TZXJ2ZXJDb25maWdIABIiCgRtYXJr",
- "GAIgASgLMhIuZ3JwYy50ZXN0aW5nLk1hcmtIAEIJCgdhcmd0eXBlIlUKDFNl",
- "cnZlclN0YXR1cxIoCgVzdGF0cxgBIAEoCzIZLmdycGMudGVzdGluZy5TZXJ2",
- "ZXJTdGF0cxIMCgRwb3J0GAIgASgFEg0KBWNvcmVzGAMgASgFIg0KC0NvcmVS",
- "ZXF1ZXN0Ih0KDENvcmVSZXNwb25zZRINCgVjb3JlcxgBIAEoBSIGCgRWb2lk",
- "Iv0BCghTY2VuYXJpbxIMCgRuYW1lGAEgASgJEjEKDWNsaWVudF9jb25maWcY",
- "AiABKAsyGi5ncnBjLnRlc3RpbmcuQ2xpZW50Q29uZmlnEhMKC251bV9jbGll",
- "bnRzGAMgASgFEjEKDXNlcnZlcl9jb25maWcYBCABKAsyGi5ncnBjLnRlc3Rp",
- "bmcuU2VydmVyQ29uZmlnEhMKC251bV9zZXJ2ZXJzGAUgASgFEhYKDndhcm11",
- "cF9zZWNvbmRzGAYgASgFEhkKEWJlbmNobWFya19zZWNvbmRzGAcgASgFEiAK",
- "GHNwYXduX2xvY2FsX3dvcmtlcl9jb3VudBgIIAEoBSI2CglTY2VuYXJpb3MS",
- "KQoJc2NlbmFyaW9zGAEgAygLMhYuZ3JwYy50ZXN0aW5nLlNjZW5hcmlvIoQE",
- "ChVTY2VuYXJpb1Jlc3VsdFN1bW1hcnkSCwoDcXBzGAEgASgBEhsKE3Fwc19w",
- "ZXJfc2VydmVyX2NvcmUYAiABKAESGgoSc2VydmVyX3N5c3RlbV90aW1lGAMg",
- "ASgBEhgKEHNlcnZlcl91c2VyX3RpbWUYBCABKAESGgoSY2xpZW50X3N5c3Rl",
- "bV90aW1lGAUgASgBEhgKEGNsaWVudF91c2VyX3RpbWUYBiABKAESEgoKbGF0",
- "ZW5jeV81MBgHIAEoARISCgpsYXRlbmN5XzkwGAggASgBEhIKCmxhdGVuY3lf",
- "OTUYCSABKAESEgoKbGF0ZW5jeV85ORgKIAEoARITCgtsYXRlbmN5Xzk5ORgL",
- "IAEoARIYChBzZXJ2ZXJfY3B1X3VzYWdlGAwgASgBEiYKHnN1Y2Nlc3NmdWxf",
- "cmVxdWVzdHNfcGVyX3NlY29uZBgNIAEoARIiChpmYWlsZWRfcmVxdWVzdHNf",
- "cGVyX3NlY29uZBgOIAEoARIgChhjbGllbnRfcG9sbHNfcGVyX3JlcXVlc3QY",
- "DyABKAESIAoYc2VydmVyX3BvbGxzX3Blcl9yZXF1ZXN0GBAgASgBEiIKGnNl",
- "cnZlcl9xdWVyaWVzX3Blcl9jcHVfc2VjGBEgASgBEiIKGmNsaWVudF9xdWVy",
- "aWVzX3Blcl9jcHVfc2VjGBIgASgBIoMDCg5TY2VuYXJpb1Jlc3VsdBIoCghz",
- "Y2VuYXJpbxgBIAEoCzIWLmdycGMudGVzdGluZy5TY2VuYXJpbxIuCglsYXRl",
- "bmNpZXMYAiABKAsyGy5ncnBjLnRlc3RpbmcuSGlzdG9ncmFtRGF0YRIvCgxj",
- "bGllbnRfc3RhdHMYAyADKAsyGS5ncnBjLnRlc3RpbmcuQ2xpZW50U3RhdHMS",
- "LwoMc2VydmVyX3N0YXRzGAQgAygLMhkuZ3JwYy50ZXN0aW5nLlNlcnZlclN0",
- "YXRzEhQKDHNlcnZlcl9jb3JlcxgFIAMoBRI0CgdzdW1tYXJ5GAYgASgLMiMu",
- "Z3JwYy50ZXN0aW5nLlNjZW5hcmlvUmVzdWx0U3VtbWFyeRIWCg5jbGllbnRf",
- "c3VjY2VzcxgHIAMoCBIWCg5zZXJ2ZXJfc3VjY2VzcxgIIAMoCBI5Cg9yZXF1",
- "ZXN0X3Jlc3VsdHMYCSADKAsyIC5ncnBjLnRlc3RpbmcuUmVxdWVzdFJlc3Vs",
- "dENvdW50KlYKCkNsaWVudFR5cGUSDwoLU1lOQ19DTElFTlQQABIQCgxBU1lO",
- "Q19DTElFTlQQARIQCgxPVEhFUl9DTElFTlQQAhITCg9DQUxMQkFDS19DTElF",
- "TlQQAypwCgpTZXJ2ZXJUeXBlEg8KC1NZTkNfU0VSVkVSEAASEAoMQVNZTkNf",
- "U0VSVkVSEAESGAoUQVNZTkNfR0VORVJJQ19TRVJWRVIQAhIQCgxPVEhFUl9T",
- "RVJWRVIQAxITCg9DQUxMQkFDS19TRVJWRVIQBCpyCgdScGNUeXBlEgkKBVVO",
- "QVJZEAASDQoJU1RSRUFNSU5HEAESGQoVU1RSRUFNSU5HX0ZST01fQ0xJRU5U",
- "EAISGQoVU1RSRUFNSU5HX0ZST01fU0VSVkVSEAMSFwoTU1RSRUFNSU5HX0JP",
- "VEhfV0FZUxAEYgZwcm90bzM="));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::Grpc.Testing.PayloadsReflection.Descriptor, global::Grpc.Testing.StatsReflection.Descriptor, },
- new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Grpc.Testing.ClientType), typeof(global::Grpc.Testing.ServerType), typeof(global::Grpc.Testing.RpcType), }, null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.PoissonParams), global::Grpc.Testing.PoissonParams.Parser, new[]{ "OfferedLoad" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ClosedLoopParams), global::Grpc.Testing.ClosedLoopParams.Parser, null, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.LoadParams), global::Grpc.Testing.LoadParams.Parser, new[]{ "ClosedLoop", "Poisson" }, new[]{ "Load" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.SecurityParams), global::Grpc.Testing.SecurityParams.Parser, new[]{ "UseTestCa", "ServerHostOverride", "CredType" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ChannelArg), global::Grpc.Testing.ChannelArg.Parser, new[]{ "Name", "StrValue", "IntValue" }, new[]{ "Value" }, null, null, null),
- 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),
- new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ClientStatus), global::Grpc.Testing.ClientStatus.Parser, new[]{ "Stats" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.Mark), global::Grpc.Testing.Mark.Parser, new[]{ "Reset" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ClientArgs), global::Grpc.Testing.ClientArgs.Parser, new[]{ "Setup", "Mark" }, new[]{ "Argtype" }, null, null, null),
- 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),
- new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ServerArgs), global::Grpc.Testing.ServerArgs.Parser, new[]{ "Setup", "Mark" }, new[]{ "Argtype" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ServerStatus), global::Grpc.Testing.ServerStatus.Parser, new[]{ "Stats", "Port", "Cores" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.CoreRequest), global::Grpc.Testing.CoreRequest.Parser, null, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.CoreResponse), global::Grpc.Testing.CoreResponse.Parser, new[]{ "Cores" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.Void), global::Grpc.Testing.Void.Parser, null, null, null, null, null),
- 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),
- new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.Scenarios), global::Grpc.Testing.Scenarios.Parser, new[]{ "Scenarios_" }, null, null, null, null),
- 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),
- 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)
- }));
- }
- #endregion
- }
- #region Enums
- public enum ClientType {
- /// <summary>
- /// Many languages support a basic distinction between using
- /// sync or async client, and this allows the specification
- /// </summary>
- [pbr::OriginalName("SYNC_CLIENT")] SyncClient = 0,
- [pbr::OriginalName("ASYNC_CLIENT")] AsyncClient = 1,
- /// <summary>
- /// used for some language-specific variants
- /// </summary>
- [pbr::OriginalName("OTHER_CLIENT")] OtherClient = 2,
- [pbr::OriginalName("CALLBACK_CLIENT")] CallbackClient = 3,
- }
- public enum ServerType {
- [pbr::OriginalName("SYNC_SERVER")] SyncServer = 0,
- [pbr::OriginalName("ASYNC_SERVER")] AsyncServer = 1,
- [pbr::OriginalName("ASYNC_GENERIC_SERVER")] AsyncGenericServer = 2,
- /// <summary>
- /// used for some language-specific variants
- /// </summary>
- [pbr::OriginalName("OTHER_SERVER")] OtherServer = 3,
- [pbr::OriginalName("CALLBACK_SERVER")] CallbackServer = 4,
- }
- public enum RpcType {
- [pbr::OriginalName("UNARY")] Unary = 0,
- [pbr::OriginalName("STREAMING")] Streaming = 1,
- [pbr::OriginalName("STREAMING_FROM_CLIENT")] StreamingFromClient = 2,
- [pbr::OriginalName("STREAMING_FROM_SERVER")] StreamingFromServer = 3,
- [pbr::OriginalName("STREAMING_BOTH_WAYS")] StreamingBothWays = 4,
- }
- #endregion
- #region Messages
- /// <summary>
- /// Parameters of poisson process distribution, which is a good representation
- /// of activity coming in from independent identical stationary sources.
- /// </summary>
- public sealed partial class PoissonParams : pb::IMessage<PoissonParams>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<PoissonParams> _parser = new pb::MessageParser<PoissonParams>(() => new PoissonParams());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<PoissonParams> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[0]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public PoissonParams() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public PoissonParams(PoissonParams other) : this() {
- offeredLoad_ = other.offeredLoad_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public PoissonParams Clone() {
- return new PoissonParams(this);
- }
- /// <summary>Field number for the "offered_load" field.</summary>
- public const int OfferedLoadFieldNumber = 1;
- private double offeredLoad_;
- /// <summary>
- /// The rate of arrivals (a.k.a. lambda parameter of the exp distribution).
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double OfferedLoad {
- get { return offeredLoad_; }
- set {
- offeredLoad_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as PoissonParams);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(PoissonParams other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OfferedLoad, other.OfferedLoad)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (OfferedLoad != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OfferedLoad);
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (OfferedLoad != 0D) {
- output.WriteRawTag(9);
- output.WriteDouble(OfferedLoad);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (OfferedLoad != 0D) {
- output.WriteRawTag(9);
- output.WriteDouble(OfferedLoad);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (OfferedLoad != 0D) {
- size += 1 + 8;
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(PoissonParams other) {
- if (other == null) {
- return;
- }
- if (other.OfferedLoad != 0D) {
- OfferedLoad = other.OfferedLoad;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 9: {
- OfferedLoad = input.ReadDouble();
- break;
- }
- }
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 9: {
- OfferedLoad = input.ReadDouble();
- break;
- }
- }
- }
- }
- #endif
- }
- /// <summary>
- /// Once an RPC finishes, immediately start a new one.
- /// No configuration parameters needed.
- /// </summary>
- public sealed partial class ClosedLoopParams : pb::IMessage<ClosedLoopParams>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<ClosedLoopParams> _parser = new pb::MessageParser<ClosedLoopParams>(() => new ClosedLoopParams());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<ClosedLoopParams> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[1]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ClosedLoopParams() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ClosedLoopParams(ClosedLoopParams other) : this() {
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ClosedLoopParams Clone() {
- return new ClosedLoopParams(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as ClosedLoopParams);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(ClosedLoopParams other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(ClosedLoopParams other) {
- if (other == null) {
- return;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- }
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- }
- }
- }
- #endif
- }
- public sealed partial class LoadParams : pb::IMessage<LoadParams>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<LoadParams> _parser = new pb::MessageParser<LoadParams>(() => new LoadParams());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<LoadParams> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[2]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public LoadParams() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public LoadParams(LoadParams other) : this() {
- switch (other.LoadCase) {
- case LoadOneofCase.ClosedLoop:
- ClosedLoop = other.ClosedLoop.Clone();
- break;
- case LoadOneofCase.Poisson:
- Poisson = other.Poisson.Clone();
- break;
- }
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public LoadParams Clone() {
- return new LoadParams(this);
- }
- /// <summary>Field number for the "closed_loop" field.</summary>
- public const int ClosedLoopFieldNumber = 1;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Grpc.Testing.ClosedLoopParams ClosedLoop {
- get { return loadCase_ == LoadOneofCase.ClosedLoop ? (global::Grpc.Testing.ClosedLoopParams) load_ : null; }
- set {
- load_ = value;
- loadCase_ = value == null ? LoadOneofCase.None : LoadOneofCase.ClosedLoop;
- }
- }
- /// <summary>Field number for the "poisson" field.</summary>
- public const int PoissonFieldNumber = 2;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Grpc.Testing.PoissonParams Poisson {
- get { return loadCase_ == LoadOneofCase.Poisson ? (global::Grpc.Testing.PoissonParams) load_ : null; }
- set {
- load_ = value;
- loadCase_ = value == null ? LoadOneofCase.None : LoadOneofCase.Poisson;
- }
- }
- private object load_;
- /// <summary>Enum of possible cases for the "load" oneof.</summary>
- public enum LoadOneofCase {
- None = 0,
- ClosedLoop = 1,
- Poisson = 2,
- }
- private LoadOneofCase loadCase_ = LoadOneofCase.None;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public LoadOneofCase LoadCase {
- get { return loadCase_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearLoad() {
- loadCase_ = LoadOneofCase.None;
- load_ = null;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as LoadParams);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(LoadParams other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(ClosedLoop, other.ClosedLoop)) return false;
- if (!object.Equals(Poisson, other.Poisson)) return false;
- if (LoadCase != other.LoadCase) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (loadCase_ == LoadOneofCase.ClosedLoop) hash ^= ClosedLoop.GetHashCode();
- if (loadCase_ == LoadOneofCase.Poisson) hash ^= Poisson.GetHashCode();
- hash ^= (int) loadCase_;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (loadCase_ == LoadOneofCase.ClosedLoop) {
- output.WriteRawTag(10);
- output.WriteMessage(ClosedLoop);
- }
- if (loadCase_ == LoadOneofCase.Poisson) {
- output.WriteRawTag(18);
- output.WriteMessage(Poisson);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (loadCase_ == LoadOneofCase.ClosedLoop) {
- output.WriteRawTag(10);
- output.WriteMessage(ClosedLoop);
- }
- if (loadCase_ == LoadOneofCase.Poisson) {
- output.WriteRawTag(18);
- output.WriteMessage(Poisson);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (loadCase_ == LoadOneofCase.ClosedLoop) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClosedLoop);
- }
- if (loadCase_ == LoadOneofCase.Poisson) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Poisson);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(LoadParams other) {
- if (other == null) {
- return;
- }
- switch (other.LoadCase) {
- case LoadOneofCase.ClosedLoop:
- if (ClosedLoop == null) {
- ClosedLoop = new global::Grpc.Testing.ClosedLoopParams();
- }
- ClosedLoop.MergeFrom(other.ClosedLoop);
- break;
- case LoadOneofCase.Poisson:
- if (Poisson == null) {
- Poisson = new global::Grpc.Testing.PoissonParams();
- }
- Poisson.MergeFrom(other.Poisson);
- break;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- global::Grpc.Testing.ClosedLoopParams subBuilder = new global::Grpc.Testing.ClosedLoopParams();
- if (loadCase_ == LoadOneofCase.ClosedLoop) {
- subBuilder.MergeFrom(ClosedLoop);
- }
- input.ReadMessage(subBuilder);
- ClosedLoop = subBuilder;
- break;
- }
- case 18: {
- global::Grpc.Testing.PoissonParams subBuilder = new global::Grpc.Testing.PoissonParams();
- if (loadCase_ == LoadOneofCase.Poisson) {
- subBuilder.MergeFrom(Poisson);
- }
- input.ReadMessage(subBuilder);
- Poisson = subBuilder;
- break;
- }
- }
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- global::Grpc.Testing.ClosedLoopParams subBuilder = new global::Grpc.Testing.ClosedLoopParams();
- if (loadCase_ == LoadOneofCase.ClosedLoop) {
- subBuilder.MergeFrom(ClosedLoop);
- }
- input.ReadMessage(subBuilder);
- ClosedLoop = subBuilder;
- break;
- }
- case 18: {
- global::Grpc.Testing.PoissonParams subBuilder = new global::Grpc.Testing.PoissonParams();
- if (loadCase_ == LoadOneofCase.Poisson) {
- subBuilder.MergeFrom(Poisson);
- }
- input.ReadMessage(subBuilder);
- Poisson = subBuilder;
- break;
- }
- }
- }
- }
- #endif
- }
- /// <summary>
- /// presence of SecurityParams implies use of TLS
- /// </summary>
- public sealed partial class SecurityParams : pb::IMessage<SecurityParams>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<SecurityParams> _parser = new pb::MessageParser<SecurityParams>(() => new SecurityParams());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<SecurityParams> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[3]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SecurityParams() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SecurityParams(SecurityParams other) : this() {
- useTestCa_ = other.useTestCa_;
- serverHostOverride_ = other.serverHostOverride_;
- credType_ = other.credType_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SecurityParams Clone() {
- return new SecurityParams(this);
- }
- /// <summary>Field number for the "use_test_ca" field.</summary>
- public const int UseTestCaFieldNumber = 1;
- private bool useTestCa_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool UseTestCa {
- get { return useTestCa_; }
- set {
- useTestCa_ = value;
- }
- }
- /// <summary>Field number for the "server_host_override" field.</summary>
- public const int ServerHostOverrideFieldNumber = 2;
- private string serverHostOverride_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string ServerHostOverride {
- get { return serverHostOverride_; }
- set {
- serverHostOverride_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "cred_type" field.</summary>
- public const int CredTypeFieldNumber = 3;
- private string credType_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string CredType {
- get { return credType_; }
- set {
- credType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as SecurityParams);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(SecurityParams other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (UseTestCa != other.UseTestCa) return false;
- if (ServerHostOverride != other.ServerHostOverride) return false;
- if (CredType != other.CredType) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (UseTestCa != false) hash ^= UseTestCa.GetHashCode();
- if (ServerHostOverride.Length != 0) hash ^= ServerHostOverride.GetHashCode();
- if (CredType.Length != 0) hash ^= CredType.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (UseTestCa != false) {
- output.WriteRawTag(8);
- output.WriteBool(UseTestCa);
- }
- if (ServerHostOverride.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(ServerHostOverride);
- }
- if (CredType.Length != 0) {
- output.WriteRawTag(26);
- output.WriteString(CredType);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (UseTestCa != false) {
- output.WriteRawTag(8);
- output.WriteBool(UseTestCa);
- }
- if (ServerHostOverride.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(ServerHostOverride);
- }
- if (CredType.Length != 0) {
- output.WriteRawTag(26);
- output.WriteString(CredType);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (UseTestCa != false) {
- size += 1 + 1;
- }
- if (ServerHostOverride.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(ServerHostOverride);
- }
- if (CredType.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(CredType);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(SecurityParams other) {
- if (other == null) {
- return;
- }
- if (other.UseTestCa != false) {
- UseTestCa = other.UseTestCa;
- }
- if (other.ServerHostOverride.Length != 0) {
- ServerHostOverride = other.ServerHostOverride;
- }
- if (other.CredType.Length != 0) {
- CredType = other.CredType;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- UseTestCa = input.ReadBool();
- break;
- }
- case 18: {
- ServerHostOverride = input.ReadString();
- break;
- }
- case 26: {
- CredType = input.ReadString();
- break;
- }
- }
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 8: {
- UseTestCa = input.ReadBool();
- break;
- }
- case 18: {
- ServerHostOverride = input.ReadString();
- break;
- }
- case 26: {
- CredType = input.ReadString();
- break;
- }
- }
- }
- }
- #endif
- }
- public sealed partial class ChannelArg : pb::IMessage<ChannelArg>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<ChannelArg> _parser = new pb::MessageParser<ChannelArg>(() => new ChannelArg());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<ChannelArg> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[4]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ChannelArg() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ChannelArg(ChannelArg other) : this() {
- name_ = other.name_;
- switch (other.ValueCase) {
- case ValueOneofCase.StrValue:
- StrValue = other.StrValue;
- break;
- case ValueOneofCase.IntValue:
- IntValue = other.IntValue;
- break;
- }
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ChannelArg Clone() {
- return new ChannelArg(this);
- }
- /// <summary>Field number for the "name" field.</summary>
- public const int NameFieldNumber = 1;
- private string name_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Name {
- get { return name_; }
- set {
- name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "str_value" field.</summary>
- public const int StrValueFieldNumber = 2;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string StrValue {
- get { return valueCase_ == ValueOneofCase.StrValue ? (string) value_ : ""; }
- set {
- value_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- valueCase_ = ValueOneofCase.StrValue;
- }
- }
- /// <summary>Field number for the "int_value" field.</summary>
- public const int IntValueFieldNumber = 3;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int IntValue {
- get { return valueCase_ == ValueOneofCase.IntValue ? (int) value_ : 0; }
- set {
- value_ = value;
- valueCase_ = ValueOneofCase.IntValue;
- }
- }
- private object value_;
- /// <summary>Enum of possible cases for the "value" oneof.</summary>
- public enum ValueOneofCase {
- None = 0,
- StrValue = 2,
- IntValue = 3,
- }
- private ValueOneofCase valueCase_ = ValueOneofCase.None;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ValueOneofCase ValueCase {
- get { return valueCase_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearValue() {
- valueCase_ = ValueOneofCase.None;
- value_ = null;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as ChannelArg);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(ChannelArg other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Name != other.Name) return false;
- if (StrValue != other.StrValue) return false;
- if (IntValue != other.IntValue) return false;
- if (ValueCase != other.ValueCase) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Name.Length != 0) hash ^= Name.GetHashCode();
- if (valueCase_ == ValueOneofCase.StrValue) hash ^= StrValue.GetHashCode();
- if (valueCase_ == ValueOneofCase.IntValue) hash ^= IntValue.GetHashCode();
- hash ^= (int) valueCase_;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (Name.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Name);
- }
- if (valueCase_ == ValueOneofCase.StrValue) {
- output.WriteRawTag(18);
- output.WriteString(StrValue);
- }
- if (valueCase_ == ValueOneofCase.IntValue) {
- output.WriteRawTag(24);
- output.WriteInt32(IntValue);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (Name.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Name);
- }
- if (valueCase_ == ValueOneofCase.StrValue) {
- output.WriteRawTag(18);
- output.WriteString(StrValue);
- }
- if (valueCase_ == ValueOneofCase.IntValue) {
- output.WriteRawTag(24);
- output.WriteInt32(IntValue);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Name.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
- }
- if (valueCase_ == ValueOneofCase.StrValue) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(StrValue);
- }
- if (valueCase_ == ValueOneofCase.IntValue) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(IntValue);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(ChannelArg other) {
- if (other == null) {
- return;
- }
- if (other.Name.Length != 0) {
- Name = other.Name;
- }
- switch (other.ValueCase) {
- case ValueOneofCase.StrValue:
- StrValue = other.StrValue;
- break;
- case ValueOneofCase.IntValue:
- IntValue = other.IntValue;
- break;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- Name = input.ReadString();
- break;
- }
- case 18: {
- StrValue = input.ReadString();
- break;
- }
- case 24: {
- IntValue = input.ReadInt32();
- break;
- }
- }
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- Name = input.ReadString();
- break;
- }
- case 18: {
- StrValue = input.ReadString();
- break;
- }
- case 24: {
- IntValue = input.ReadInt32();
- break;
- }
- }
- }
- }
- #endif
- }
- public sealed partial class ClientConfig : pb::IMessage<ClientConfig>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<ClientConfig> _parser = new pb::MessageParser<ClientConfig>(() => new ClientConfig());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<ClientConfig> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[5]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ClientConfig() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ClientConfig(ClientConfig other) : this() {
- serverTargets_ = other.serverTargets_.Clone();
- clientType_ = other.clientType_;
- securityParams_ = other.securityParams_ != null ? other.securityParams_.Clone() : null;
- outstandingRpcsPerChannel_ = other.outstandingRpcsPerChannel_;
- clientChannels_ = other.clientChannels_;
- asyncClientThreads_ = other.asyncClientThreads_;
- rpcType_ = other.rpcType_;
- loadParams_ = other.loadParams_ != null ? other.loadParams_.Clone() : null;
- payloadConfig_ = other.payloadConfig_ != null ? other.payloadConfig_.Clone() : null;
- histogramParams_ = other.histogramParams_ != null ? other.histogramParams_.Clone() : null;
- coreList_ = other.coreList_.Clone();
- coreLimit_ = other.coreLimit_;
- otherClientApi_ = other.otherClientApi_;
- channelArgs_ = other.channelArgs_.Clone();
- threadsPerCq_ = other.threadsPerCq_;
- messagesPerStream_ = other.messagesPerStream_;
- useCoalesceApi_ = other.useCoalesceApi_;
- medianLatencyCollectionIntervalMillis_ = other.medianLatencyCollectionIntervalMillis_;
- clientProcesses_ = other.clientProcesses_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ClientConfig Clone() {
- return new ClientConfig(this);
- }
- /// <summary>Field number for the "server_targets" field.</summary>
- public const int ServerTargetsFieldNumber = 1;
- private static readonly pb::FieldCodec<string> _repeated_serverTargets_codec
- = pb::FieldCodec.ForString(10);
- private readonly pbc::RepeatedField<string> serverTargets_ = new pbc::RepeatedField<string>();
- /// <summary>
- /// List of targets to connect to. At least one target needs to be specified.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<string> ServerTargets {
- get { return serverTargets_; }
- }
- /// <summary>Field number for the "client_type" field.</summary>
- public const int ClientTypeFieldNumber = 2;
- private global::Grpc.Testing.ClientType clientType_ = global::Grpc.Testing.ClientType.SyncClient;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Grpc.Testing.ClientType ClientType {
- get { return clientType_; }
- set {
- clientType_ = value;
- }
- }
- /// <summary>Field number for the "security_params" field.</summary>
- public const int SecurityParamsFieldNumber = 3;
- private global::Grpc.Testing.SecurityParams securityParams_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Grpc.Testing.SecurityParams SecurityParams {
- get { return securityParams_; }
- set {
- securityParams_ = value;
- }
- }
- /// <summary>Field number for the "outstanding_rpcs_per_channel" field.</summary>
- public const int OutstandingRpcsPerChannelFieldNumber = 4;
- private int outstandingRpcsPerChannel_;
- /// <summary>
- /// How many concurrent RPCs to start for each channel.
- /// For synchronous client, use a separate thread for each outstanding RPC.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int OutstandingRpcsPerChannel {
- get { return outstandingRpcsPerChannel_; }
- set {
- outstandingRpcsPerChannel_ = value;
- }
- }
- /// <summary>Field number for the "client_channels" field.</summary>
- public const int ClientChannelsFieldNumber = 5;
- private int clientChannels_;
- /// <summary>
- /// Number of independent client channels to create.
- /// i-th channel will connect to server_target[i % server_targets.size()]
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int ClientChannels {
- get { return clientChannels_; }
- set {
- clientChannels_ = value;
- }
- }
- /// <summary>Field number for the "async_client_threads" field.</summary>
- public const int AsyncClientThreadsFieldNumber = 7;
- private int asyncClientThreads_;
- /// <summary>
- /// Only for async client. Number of threads to use to start/manage RPCs.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int AsyncClientThreads {
- get { return asyncClientThreads_; }
- set {
- asyncClientThreads_ = value;
- }
- }
- /// <summary>Field number for the "rpc_type" field.</summary>
- public const int RpcTypeFieldNumber = 8;
- private global::Grpc.Testing.RpcType rpcType_ = global::Grpc.Testing.RpcType.Unary;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Grpc.Testing.RpcType RpcType {
- get { return rpcType_; }
- set {
- rpcType_ = value;
- }
- }
- /// <summary>Field number for the "load_params" field.</summary>
- public const int LoadParamsFieldNumber = 10;
- private global::Grpc.Testing.LoadParams loadParams_;
- /// <summary>
- /// The requested load for the entire client (aggregated over all the threads).
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Grpc.Testing.LoadParams LoadParams {
- get { return loadParams_; }
- set {
- loadParams_ = value;
- }
- }
- /// <summary>Field number for the "payload_config" field.</summary>
- public const int PayloadConfigFieldNumber = 11;
- private global::Grpc.Testing.PayloadConfig payloadConfig_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Grpc.Testing.PayloadConfig PayloadConfig {
- get { return payloadConfig_; }
- set {
- payloadConfig_ = value;
- }
- }
- /// <summary>Field number for the "histogram_params" field.</summary>
- public const int HistogramParamsFieldNumber = 12;
- private global::Grpc.Testing.HistogramParams histogramParams_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Grpc.Testing.HistogramParams HistogramParams {
- get { return histogramParams_; }
- set {
- histogramParams_ = value;
- }
- }
- /// <summary>Field number for the "core_list" field.</summary>
- public const int CoreListFieldNumber = 13;
- private static readonly pb::FieldCodec<int> _repeated_coreList_codec
- = pb::FieldCodec.ForInt32(106);
- private readonly pbc::RepeatedField<int> coreList_ = new pbc::RepeatedField<int>();
- /// <summary>
- /// Specify the cores we should run the client on, if desired
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> CoreList {
- get { return coreList_; }
- }
- /// <summary>Field number for the "core_limit" field.</summary>
- public const int CoreLimitFieldNumber = 14;
- private int coreLimit_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CoreLimit {
- get { return coreLimit_; }
- set {
- coreLimit_ = value;
- }
- }
- /// <summary>Field number for the "other_client_api" field.</summary>
- public const int OtherClientApiFieldNumber = 15;
- private string otherClientApi_ = "";
- /// <summary>
- /// If we use an OTHER_CLIENT client_type, this string gives more detail
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string OtherClientApi {
- get { return otherClientApi_; }
- set {
- otherClientApi_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "channel_args" field.</summary>
- public const int ChannelArgsFieldNumber = 16;
- private static readonly pb::FieldCodec<global::Grpc.Testing.ChannelArg> _repeated_channelArgs_codec
- = pb::FieldCodec.ForMessage(130, global::Grpc.Testing.ChannelArg.Parser);
- private readonly pbc::RepeatedField<global::Grpc.Testing.ChannelArg> channelArgs_ = new pbc::RepeatedField<global::Grpc.Testing.ChannelArg>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Grpc.Testing.ChannelArg> ChannelArgs {
- get { return channelArgs_; }
- }
- /// <summary>Field number for the "threads_per_cq" field.</summary>
- public const int ThreadsPerCqFieldNumber = 17;
- private int threadsPerCq_;
- /// <summary>
- /// Number of threads that share each completion queue
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int ThreadsPerCq {
- get { return threadsPerCq_; }
- set {
- threadsPerCq_ = value;
- }
- }
- /// <summary>Field number for the "messages_per_stream" field.</summary>
- public const int MessagesPerStreamFieldNumber = 18;
- private int messagesPerStream_;
- /// <summary>
- /// Number of messages on a stream before it gets finished/restarted
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int MessagesPerStream {
- get { return messagesPerStream_; }
- set {
- messagesPerStream_ = value;
- }
- }
- /// <summary>Field number for the "use_coalesce_api" field.</summary>
- public const int UseCoalesceApiFieldNumber = 19;
- private bool useCoalesceApi_;
- /// <summary>
- /// Use coalescing API when possible.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool UseCoalesceApi {
- get { return useCoalesceApi_; }
- set {
- useCoalesceApi_ = value;
- }
- }
- /// <summary>Field number for the "median_latency_collection_interval_millis" field.</summary>
- public const int MedianLatencyCollectionIntervalMillisFieldNumber = 20;
- private int medianLatencyCollectionIntervalMillis_;
- /// <summary>
- /// If 0, disabled. Else, specifies the period between gathering latency
- /// medians in milliseconds.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int MedianLatencyCollectionIntervalMillis {
- get { return medianLatencyCollectionIntervalMillis_; }
- set {
- medianLatencyCollectionIntervalMillis_ = value;
- }
- }
- /// <summary>Field number for the "client_processes" field.</summary>
- public const int ClientProcessesFieldNumber = 21;
- private int clientProcesses_;
- /// <summary>
- /// Number of client processes. 0 indicates no restriction.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int ClientProcesses {
- get { return clientProcesses_; }
- set {
- clientProcesses_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as ClientConfig);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(ClientConfig other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!serverTargets_.Equals(other.serverTargets_)) return false;
- if (ClientType != other.ClientType) return false;
- if (!object.Equals(SecurityParams, other.SecurityParams)) return false;
- if (OutstandingRpcsPerChannel != other.OutstandingRpcsPerChannel) return false;
- if (ClientChannels != other.ClientChannels) return false;
- if (AsyncClientThreads != other.AsyncClientThreads) return false;
- if (RpcType != other.RpcType) return false;
- if (!object.Equals(LoadParams, other.LoadParams)) return false;
- if (!object.Equals(PayloadConfig, other.PayloadConfig)) return false;
- if (!object.Equals(HistogramParams, other.HistogramParams)) return false;
- if(!coreList_.Equals(other.coreList_)) return false;
- if (CoreLimit != other.CoreLimit) return false;
- if (OtherClientApi != other.OtherClientApi) return false;
- if(!channelArgs_.Equals(other.channelArgs_)) return false;
- if (ThreadsPerCq != other.ThreadsPerCq) return false;
- if (MessagesPerStream != other.MessagesPerStream) return false;
- if (UseCoalesceApi != other.UseCoalesceApi) return false;
- if (MedianLatencyCollectionIntervalMillis != other.MedianLatencyCollectionIntervalMillis) return false;
- if (ClientProcesses != other.ClientProcesses) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= serverTargets_.GetHashCode();
- if (ClientType != global::Grpc.Testing.ClientType.SyncClient) hash ^= ClientType.GetHashCode();
- if (securityParams_ != null) hash ^= SecurityParams.GetHashCode();
- if (OutstandingRpcsPerChannel != 0) hash ^= OutstandingRpcsPerChannel.GetHashCode();
- if (ClientChannels != 0) hash ^= ClientChannels.GetHashCode();
- if (AsyncClientThreads != 0) hash ^= AsyncClientThreads.GetHashCode();
- if (RpcType != global::Grpc.Testing.RpcType.Unary) hash ^= RpcType.GetHashCode();
- if (loadParams_ != null) hash ^= LoadParams.GetHashCode();
- if (payloadConfig_ != null) hash ^= PayloadConfig.GetHashCode();
- if (histogramParams_ != null) hash ^= HistogramParams.GetHashCode();
- hash ^= coreList_.GetHashCode();
- if (CoreLimit != 0) hash ^= CoreLimit.GetHashCode();
- if (OtherClientApi.Length != 0) hash ^= OtherClientApi.GetHashCode();
- hash ^= channelArgs_.GetHashCode();
- if (ThreadsPerCq != 0) hash ^= ThreadsPerCq.GetHashCode();
- if (MessagesPerStream != 0) hash ^= MessagesPerStream.GetHashCode();
- if (UseCoalesceApi != false) hash ^= UseCoalesceApi.GetHashCode();
- if (MedianLatencyCollectionIntervalMillis != 0) hash ^= MedianLatencyCollectionIntervalMillis.GetHashCode();
- if (ClientProcesses != 0) hash ^= ClientProcesses.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- serverTargets_.WriteTo(output, _repeated_serverTargets_codec);
- if (ClientType != global::Grpc.Testing.ClientType.SyncClient) {
- output.WriteRawTag(16);
- output.WriteEnum((int) ClientType);
- }
- if (securityParams_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(SecurityParams);
- }
- if (OutstandingRpcsPerChannel != 0) {
- output.WriteRawTag(32);
- output.WriteInt32(OutstandingRpcsPerChannel);
- }
- if (ClientChannels != 0) {
- output.WriteRawTag(40);
- output.WriteInt32(ClientChannels);
- }
- if (AsyncClientThreads != 0) {
- output.WriteRawTag(56);
- output.WriteInt32(AsyncClientThreads);
- }
- if (RpcType != global::Grpc.Testing.RpcType.Unary) {
- output.WriteRawTag(64);
- output.WriteEnum((int) RpcType);
- }
- if (loadParams_ != null) {
- output.WriteRawTag(82);
- output.WriteMessage(LoadParams);
- }
- if (payloadConfig_ != null) {
- output.WriteRawTag(90);
- output.WriteMessage(PayloadConfig);
- }
- if (histogramParams_ != null) {
- output.WriteRawTag(98);
- output.WriteMessage(HistogramParams);
- }
- coreList_.WriteTo(output, _repeated_coreList_codec);
- if (CoreLimit != 0) {
- output.WriteRawTag(112);
- output.WriteInt32(CoreLimit);
- }
- if (OtherClientApi.Length != 0) {
- output.WriteRawTag(122);
- output.WriteString(OtherClientApi);
- }
- channelArgs_.WriteTo(output, _repeated_channelArgs_codec);
- if (ThreadsPerCq != 0) {
- output.WriteRawTag(136, 1);
- output.WriteInt32(ThreadsPerCq);
- }
- if (MessagesPerStream != 0) {
- output.WriteRawTag(144, 1);
- output.WriteInt32(MessagesPerStream);
- }
- if (UseCoalesceApi != false) {
- output.WriteRawTag(152, 1);
- output.WriteBool(UseCoalesceApi);
- }
- if (MedianLatencyCollectionIntervalMillis != 0) {
- output.WriteRawTag(160, 1);
- output.WriteInt32(MedianLatencyCollectionIntervalMillis);
- }
- if (ClientProcesses != 0) {
- output.WriteRawTag(168, 1);
- output.WriteInt32(ClientProcesses);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- serverTargets_.WriteTo(ref output, _repeated_serverTargets_codec);
- if (ClientType != global::Grpc.Testing.ClientType.SyncClient) {
- output.WriteRawTag(16);
- output.WriteEnum((int) ClientType);
- }
- if (securityParams_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(SecurityParams);
- }
- if (OutstandingRpcsPerChannel != 0) {
- output.WriteRawTag(32);
- output.WriteInt32(OutstandingRpcsPerChannel);
- }
- if (ClientChannels != 0) {
- output.WriteRawTag(40);
- output.WriteInt32(ClientChannels);
- }
- if (AsyncClientThreads != 0) {
- output.WriteRawTag(56);
- output.WriteInt32(AsyncClientThreads);
- }
- if (RpcType != global::Grpc.Testing.RpcType.Unary) {
- output.WriteRawTag(64);
- output.WriteEnum((int) RpcType);
- }
- if (loadParams_ != null) {
- output.WriteRawTag(82);
- output.WriteMessage(LoadParams);
- }
- if (payloadConfig_ != null) {
- output.WriteRawTag(90);
- output.WriteMessage(PayloadConfig);
- }
- if (histogramParams_ != null) {
- output.WriteRawTag(98);
- output.WriteMessage(HistogramParams);
- }
- coreList_.WriteTo(ref output, _repeated_coreList_codec);
- if (CoreLimit != 0) {
- output.WriteRawTag(112);
- output.WriteInt32(CoreLimit);
- }
- if (OtherClientApi.Length != 0) {
- output.WriteRawTag(122);
- output.WriteString(OtherClientApi);
- }
- channelArgs_.WriteTo(ref output, _repeated_channelArgs_codec);
- if (ThreadsPerCq != 0) {
- output.WriteRawTag(136, 1);
- output.WriteInt32(ThreadsPerCq);
- }
- if (MessagesPerStream != 0) {
- output.WriteRawTag(144, 1);
- output.WriteInt32(MessagesPerStream);
- }
- if (UseCoalesceApi != false) {
- output.WriteRawTag(152, 1);
- output.WriteBool(UseCoalesceApi);
- }
- if (MedianLatencyCollectionIntervalMillis != 0) {
- output.WriteRawTag(160, 1);
- output.WriteInt32(MedianLatencyCollectionIntervalMillis);
- }
- if (ClientProcesses != 0) {
- output.WriteRawTag(168, 1);
- output.WriteInt32(ClientProcesses);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- size += serverTargets_.CalculateSize(_repeated_serverTargets_codec);
- if (ClientType != global::Grpc.Testing.ClientType.SyncClient) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ClientType);
- }
- if (securityParams_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(SecurityParams);
- }
- if (OutstandingRpcsPerChannel != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(OutstandingRpcsPerChannel);
- }
- if (ClientChannels != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClientChannels);
- }
- if (AsyncClientThreads != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(AsyncClientThreads);
- }
- if (RpcType != global::Grpc.Testing.RpcType.Unary) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RpcType);
- }
- if (loadParams_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(LoadParams);
- }
- if (payloadConfig_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(PayloadConfig);
- }
- if (histogramParams_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(HistogramParams);
- }
- size += coreList_.CalculateSize(_repeated_coreList_codec);
- if (CoreLimit != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(CoreLimit);
- }
- if (OtherClientApi.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(OtherClientApi);
- }
- size += channelArgs_.CalculateSize(_repeated_channelArgs_codec);
- if (ThreadsPerCq != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(ThreadsPerCq);
- }
- if (MessagesPerStream != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(MessagesPerStream);
- }
- if (UseCoalesceApi != false) {
- size += 2 + 1;
- }
- if (MedianLatencyCollectionIntervalMillis != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(MedianLatencyCollectionIntervalMillis);
- }
- if (ClientProcesses != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(ClientProcesses);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(ClientConfig other) {
- if (other == null) {
- return;
- }
- serverTargets_.Add(other.serverTargets_);
- if (other.ClientType != global::Grpc.Testing.ClientType.SyncClient) {
- ClientType = other.ClientType;
- }
- if (other.securityParams_ != null) {
- if (securityParams_ == null) {
- SecurityParams = new global::Grpc.Testing.SecurityParams();
- }
- SecurityParams.MergeFrom(other.SecurityParams);
- }
- if (other.OutstandingRpcsPerChannel != 0) {
- OutstandingRpcsPerChannel = other.OutstandingRpcsPerChannel;
- }
- if (other.ClientChannels != 0) {
- ClientChannels = other.ClientChannels;
- }
- if (other.AsyncClientThreads != 0) {
- AsyncClientThreads = other.AsyncClientThreads;
- }
- if (other.RpcType != global::Grpc.Testing.RpcType.Unary) {
- RpcType = other.RpcType;
- }
- if (other.loadParams_ != null) {
- if (loadParams_ == null) {
- LoadParams = new global::Grpc.Testing.LoadParams();
- }
- LoadParams.MergeFrom(other.LoadParams);
- }
- if (other.payloadConfig_ != null) {
- if (payloadConfig_ == null) {
- PayloadConfig = new global::Grpc.Testing.PayloadConfig();
- }
- PayloadConfig.MergeFrom(other.PayloadConfig);
- }
- if (other.histogramParams_ != null) {
- if (histogramParams_ == null) {
- HistogramParams = new global::Grpc.Testing.HistogramParams();
- }
- HistogramParams.MergeFrom(other.HistogramParams);
- }
- coreList_.Add(other.coreList_);
- if (other.CoreLimit != 0) {
- CoreLimit = other.CoreLimit;
- }
- if (other.OtherClientApi.Length != 0) {
- OtherClientApi = other.OtherClientApi;
- }
- channelArgs_.Add(other.channelArgs_);
- if (other.ThreadsPerCq != 0) {
- ThreadsPerCq = other.ThreadsPerCq;
- }
- if (other.MessagesPerStream != 0) {
- MessagesPerStream = other.MessagesPerStream;
- }
- if (other.UseCoalesceApi != false) {
- UseCoalesceApi = other.UseCoalesceApi;
- }
- if (other.MedianLatencyCollectionIntervalMillis != 0) {
- MedianLatencyCollectionIntervalMillis = other.MedianLatencyCollectionIntervalMillis;
- }
- if (other.ClientProcesses != 0) {
- ClientProcesses = other.ClientProcesses;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- serverTargets_.AddEntriesFrom(input, _repeated_serverTargets_codec);
- break;
- }
- case 16: {
- ClientType = (global::Grpc.Testing.ClientType) input.ReadEnum();
- break;
- }
- case 26: {
- if (securityParams_ == null) {
- SecurityParams = new global::Grpc.Testing.SecurityParams();
- }
- input.ReadMessage(SecurityParams);
- break;
- }
- case 32: {
- OutstandingRpcsPerChannel = input.ReadInt32();
- break;
- }
- case 40: {
- ClientChannels = input.ReadInt32();
- break;
- }
- case 56: {
- AsyncClientThreads = input.ReadInt32();
- break;
- }
- case 64: {
- RpcType = (global::Grpc.Testing.RpcType) input.ReadEnum();
- break;
- }
- case 82: {
- if (loadParams_ == null) {
- LoadParams = new global::Grpc.Testing.LoadParams();
- }
- input.ReadMessage(LoadParams);
- break;
- }
- case 90: {
- if (payloadConfig_ == null) {
- PayloadConfig = new global::Grpc.Testing.PayloadConfig();
- }
- input.ReadMessage(PayloadConfig);
- break;
- }
- case 98: {
- if (histogramParams_ == null) {
- HistogramParams = new global::Grpc.Testing.HistogramParams();
- }
- input.ReadMessage(HistogramParams);
- break;
- }
- case 106:
- case 104: {
- coreList_.AddEntriesFrom(input, _repeated_coreList_codec);
- break;
- }
- case 112: {
- CoreLimit = input.ReadInt32();
- break;
- }
- case 122: {
- OtherClientApi = input.ReadString();
- break;
- }
- case 130: {
- channelArgs_.AddEntriesFrom(input, _repeated_channelArgs_codec);
- break;
- }
- case 136: {
- ThreadsPerCq = input.ReadInt32();
- break;
- }
- case 144: {
- MessagesPerStream = input.ReadInt32();
- break;
- }
- case 152: {
- UseCoalesceApi = input.ReadBool();
- break;
- }
- case 160: {
- MedianLatencyCollectionIntervalMillis = input.ReadInt32();
- break;
- }
- case 168: {
- ClientProcesses = input.ReadInt32();
- break;
- }
- }
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- serverTargets_.AddEntriesFrom(ref input, _repeated_serverTargets_codec);
- break;
- }
- case 16: {
- ClientType = (global::Grpc.Testing.ClientType) input.ReadEnum();
- break;
- }
- case 26: {
- if (securityParams_ == null) {
- SecurityParams = new global::Grpc.Testing.SecurityParams();
- }
- input.ReadMessage(SecurityParams);
- break;
- }
- case 32: {
- OutstandingRpcsPerChannel = input.ReadInt32();
- break;
- }
- case 40: {
- ClientChannels = input.ReadInt32();
- break;
- }
- case 56: {
- AsyncClientThreads = input.ReadInt32();
- break;
- }
- case 64: {
- RpcType = (global::Grpc.Testing.RpcType) input.ReadEnum();
- break;
- }
- case 82: {
- if (loadParams_ == null) {
- LoadParams = new global::Grpc.Testing.LoadParams();
- }
- input.ReadMessage(LoadParams);
- break;
- }
- case 90: {
- if (payloadConfig_ == null) {
- PayloadConfig = new global::Grpc.Testing.PayloadConfig();
- }
- input.ReadMessage(PayloadConfig);
- break;
- }
- case 98: {
- if (histogramParams_ == null) {
- HistogramParams = new global::Grpc.Testing.HistogramParams();
- }
- input.ReadMessage(HistogramParams);
- break;
- }
- case 106:
- case 104: {
- coreList_.AddEntriesFrom(ref input, _repeated_coreList_codec);
- break;
- }
- case 112: {
- CoreLimit = input.ReadInt32();
- break;
- }
- case 122: {
- OtherClientApi = input.ReadString();
- break;
- }
- case 130: {
- channelArgs_.AddEntriesFrom(ref input, _repeated_channelArgs_codec);
- break;
- }
- case 136: {
- ThreadsPerCq = input.ReadInt32();
- break;
- }
- case 144: {
- MessagesPerStream = input.ReadInt32();
- break;
- }
- case 152: {
- UseCoalesceApi = input.ReadBool();
- break;
- }
- case 160: {
- MedianLatencyCollectionIntervalMillis = input.ReadInt32();
- break;
- }
- case 168: {
- ClientProcesses = input.ReadInt32();
- break;
- }
- }
- }
- }
- #endif
- }
- public sealed partial class ClientStatus : pb::IMessage<ClientStatus>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<ClientStatus> _parser = new pb::MessageParser<ClientStatus>(() => new ClientStatus());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<ClientStatus> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[6]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ClientStatus() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ClientStatus(ClientStatus other) : this() {
- stats_ = other.stats_ != null ? other.stats_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ClientStatus Clone() {
- return new ClientStatus(this);
- }
- /// <summary>Field number for the "stats" field.</summary>
- public const int StatsFieldNumber = 1;
- private global::Grpc.Testing.ClientStats stats_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Grpc.Testing.ClientStats Stats {
- get { return stats_; }
- set {
- stats_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as ClientStatus);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(ClientStatus other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(Stats, other.Stats)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (stats_ != null) hash ^= Stats.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (stats_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Stats);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (stats_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Stats);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (stats_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Stats);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(ClientStatus other) {
- if (other == null) {
- return;
- }
- if (other.stats_ != null) {
- if (stats_ == null) {
- Stats = new global::Grpc.Testing.ClientStats();
- }
- Stats.MergeFrom(other.Stats);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (stats_ == null) {
- Stats = new global::Grpc.Testing.ClientStats();
- }
- input.ReadMessage(Stats);
- break;
- }
- }
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- if (stats_ == null) {
- Stats = new global::Grpc.Testing.ClientStats();
- }
- input.ReadMessage(Stats);
- break;
- }
- }
- }
- }
- #endif
- }
- /// <summary>
- /// Request current stats
- /// </summary>
- public sealed partial class Mark : pb::IMessage<Mark>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<Mark> _parser = new pb::MessageParser<Mark>(() => new Mark());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Mark> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[7]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Mark() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Mark(Mark other) : this() {
- reset_ = other.reset_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Mark Clone() {
- return new Mark(this);
- }
- /// <summary>Field number for the "reset" field.</summary>
- public const int ResetFieldNumber = 1;
- private bool reset_;
- /// <summary>
- /// if true, the stats will be reset after taking their snapshot.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Reset {
- get { return reset_; }
- set {
- reset_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Mark);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Mark other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Reset != other.Reset) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Reset != false) hash ^= Reset.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (Reset != false) {
- output.WriteRawTag(8);
- output.WriteBool(Reset);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (Reset != false) {
- output.WriteRawTag(8);
- output.WriteBool(Reset);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Reset != false) {
- size += 1 + 1;
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Mark other) {
- if (other == null) {
- return;
- }
- if (other.Reset != false) {
- Reset = other.Reset;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- Reset = input.ReadBool();
- break;
- }
- }
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 8: {
- Reset = input.ReadBool();
- break;
- }
- }
- }
- }
- #endif
- }
- public sealed partial class ClientArgs : pb::IMessage<ClientArgs>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<ClientArgs> _parser = new pb::MessageParser<ClientArgs>(() => new ClientArgs());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<ClientArgs> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[8]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ClientArgs() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ClientArgs(ClientArgs other) : this() {
- switch (other.ArgtypeCase) {
- case ArgtypeOneofCase.Setup:
- Setup = other.Setup.Clone();
- break;
- case ArgtypeOneofCase.Mark:
- Mark = other.Mark.Clone();
- break;
- }
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ClientArgs Clone() {
- return new ClientArgs(this);
- }
- /// <summary>Field number for the "setup" field.</summary>
- public const int SetupFieldNumber = 1;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Grpc.Testing.ClientConfig Setup {
- get { return argtypeCase_ == ArgtypeOneofCase.Setup ? (global::Grpc.Testing.ClientConfig) argtype_ : null; }
- set {
- argtype_ = value;
- argtypeCase_ = value == null ? ArgtypeOneofCase.None : ArgtypeOneofCase.Setup;
- }
- }
- /// <summary>Field number for the "mark" field.</summary>
- public const int MarkFieldNumber = 2;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Grpc.Testing.Mark Mark {
- get { return argtypeCase_ == ArgtypeOneofCase.Mark ? (global::Grpc.Testing.Mark) argtype_ : null; }
- set {
- argtype_ = value;
- argtypeCase_ = value == null ? ArgtypeOneofCase.None : ArgtypeOneofCase.Mark;
- }
- }
- private object argtype_;
- /// <summary>Enum of possible cases for the "argtype" oneof.</summary>
- public enum ArgtypeOneofCase {
- None = 0,
- Setup = 1,
- Mark = 2,
- }
- private ArgtypeOneofCase argtypeCase_ = ArgtypeOneofCase.None;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ArgtypeOneofCase ArgtypeCase {
- get { return argtypeCase_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearArgtype() {
- argtypeCase_ = ArgtypeOneofCase.None;
- argtype_ = null;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as ClientArgs);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(ClientArgs other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(Setup, other.Setup)) return false;
- if (!object.Equals(Mark, other.Mark)) return false;
- if (ArgtypeCase != other.ArgtypeCase) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (argtypeCase_ == ArgtypeOneofCase.Setup) hash ^= Setup.GetHashCode();
- if (argtypeCase_ == ArgtypeOneofCase.Mark) hash ^= Mark.GetHashCode();
- hash ^= (int) argtypeCase_;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (argtypeCase_ == ArgtypeOneofCase.Setup) {
- output.WriteRawTag(10);
- output.WriteMessage(Setup);
- }
- if (argtypeCase_ == ArgtypeOneofCase.Mark) {
- output.WriteRawTag(18);
- output.WriteMessage(Mark);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (argtypeCase_ == ArgtypeOneofCase.Setup) {
- output.WriteRawTag(10);
- output.WriteMessage(Setup);
- }
- if (argtypeCase_ == ArgtypeOneofCase.Mark) {
- output.WriteRawTag(18);
- output.WriteMessage(Mark);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (argtypeCase_ == ArgtypeOneofCase.Setup) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Setup);
- }
- if (argtypeCase_ == ArgtypeOneofCase.Mark) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Mark);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(ClientArgs other) {
- if (other == null) {
- return;
- }
- switch (other.ArgtypeCase) {
- case ArgtypeOneofCase.Setup:
- if (Setup == null) {
- Setup = new global::Grpc.Testing.ClientConfig();
- }
- Setup.MergeFrom(other.Setup);
- break;
- case ArgtypeOneofCase.Mark:
- if (Mark == null) {
- Mark = new global::Grpc.Testing.Mark();
- }
- Mark.MergeFrom(other.Mark);
- break;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- global::Grpc.Testing.ClientConfig subBuilder = new global::Grpc.Testing.ClientConfig();
- if (argtypeCase_ == ArgtypeOneofCase.Setup) {
- subBuilder.MergeFrom(Setup);
- }
- input.ReadMessage(subBuilder);
- Setup = subBuilder;
- break;
- }
- case 18: {
- global::Grpc.Testing.Mark subBuilder = new global::Grpc.Testing.Mark();
- if (argtypeCase_ == ArgtypeOneofCase.Mark) {
- subBuilder.MergeFrom(Mark);
- }
- input.ReadMessage(subBuilder);
- Mark = subBuilder;
- break;
- }
- }
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- global::Grpc.Testing.ClientConfig subBuilder = new global::Grpc.Testing.ClientConfig();
- if (argtypeCase_ == ArgtypeOneofCase.Setup) {
- subBuilder.MergeFrom(Setup);
- }
- input.ReadMessage(subBuilder);
- Setup = subBuilder;
- break;
- }
- case 18: {
- global::Grpc.Testing.Mark subBuilder = new global::Grpc.Testing.Mark();
- if (argtypeCase_ == ArgtypeOneofCase.Mark) {
- subBuilder.MergeFrom(Mark);
- }
- input.ReadMessage(subBuilder);
- Mark = subBuilder;
- break;
- }
- }
- }
- }
- #endif
- }
- public sealed partial class ServerConfig : pb::IMessage<ServerConfig>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<ServerConfig> _parser = new pb::MessageParser<ServerConfig>(() => new ServerConfig());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<ServerConfig> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[9]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ServerConfig() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ServerConfig(ServerConfig other) : this() {
- serverType_ = other.serverType_;
- securityParams_ = other.securityParams_ != null ? other.securityParams_.Clone() : null;
- port_ = other.port_;
- asyncServerThreads_ = other.asyncServerThreads_;
- coreLimit_ = other.coreLimit_;
- payloadConfig_ = other.payloadConfig_ != null ? other.payloadConfig_.Clone() : null;
- coreList_ = other.coreList_.Clone();
- otherServerApi_ = other.otherServerApi_;
- threadsPerCq_ = other.threadsPerCq_;
- resourceQuotaSize_ = other.resourceQuotaSize_;
- channelArgs_ = other.channelArgs_.Clone();
- serverProcesses_ = other.serverProcesses_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ServerConfig Clone() {
- return new ServerConfig(this);
- }
- /// <summary>Field number for the "server_type" field.</summary>
- public const int ServerTypeFieldNumber = 1;
- private global::Grpc.Testing.ServerType serverType_ = global::Grpc.Testing.ServerType.SyncServer;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Grpc.Testing.ServerType ServerType {
- get { return serverType_; }
- set {
- serverType_ = value;
- }
- }
- /// <summary>Field number for the "security_params" field.</summary>
- public const int SecurityParamsFieldNumber = 2;
- private global::Grpc.Testing.SecurityParams securityParams_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Grpc.Testing.SecurityParams SecurityParams {
- get { return securityParams_; }
- set {
- securityParams_ = value;
- }
- }
- /// <summary>Field number for the "port" field.</summary>
- public const int PortFieldNumber = 4;
- private int port_;
- /// <summary>
- /// Port on which to listen. Zero means pick unused port.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Port {
- get { return port_; }
- set {
- port_ = value;
- }
- }
- /// <summary>Field number for the "async_server_threads" field.</summary>
- public const int AsyncServerThreadsFieldNumber = 7;
- private int asyncServerThreads_;
- /// <summary>
- /// Only for async server. Number of threads used to serve the requests.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int AsyncServerThreads {
- get { return asyncServerThreads_; }
- set {
- asyncServerThreads_ = value;
- }
- }
- /// <summary>Field number for the "core_limit" field.</summary>
- public const int CoreLimitFieldNumber = 8;
- private int coreLimit_;
- /// <summary>
- /// Specify the number of cores to limit server to, if desired
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CoreLimit {
- get { return coreLimit_; }
- set {
- coreLimit_ = value;
- }
- }
- /// <summary>Field number for the "payload_config" field.</summary>
- public const int PayloadConfigFieldNumber = 9;
- private global::Grpc.Testing.PayloadConfig payloadConfig_;
- /// <summary>
- /// payload config, used in generic server.
- /// Note this must NOT be used in proto (non-generic) servers. For proto servers,
- /// 'response sizes' must be configured from the 'response_size' field of the
- /// 'SimpleRequest' objects in RPC requests.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Grpc.Testing.PayloadConfig PayloadConfig {
- get { return payloadConfig_; }
- set {
- payloadConfig_ = value;
- }
- }
- /// <summary>Field number for the "core_list" field.</summary>
- public const int CoreListFieldNumber = 10;
- private static readonly pb::FieldCodec<int> _repeated_coreList_codec
- = pb::FieldCodec.ForInt32(82);
- private readonly pbc::RepeatedField<int> coreList_ = new pbc::RepeatedField<int>();
- /// <summary>
- /// Specify the cores we should run the server on, if desired
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> CoreList {
- get { return coreList_; }
- }
- /// <summary>Field number for the "other_server_api" field.</summary>
- public const int OtherServerApiFieldNumber = 11;
- private string otherServerApi_ = "";
- /// <summary>
- /// If we use an OTHER_SERVER client_type, this string gives more detail
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string OtherServerApi {
- get { return otherServerApi_; }
- set {
- otherServerApi_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "threads_per_cq" field.</summary>
- public const int ThreadsPerCqFieldNumber = 12;
- private int threadsPerCq_;
- /// <summary>
- /// Number of threads that share each completion queue
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int ThreadsPerCq {
- get { return threadsPerCq_; }
- set {
- threadsPerCq_ = value;
- }
- }
- /// <summary>Field number for the "resource_quota_size" field.</summary>
- public const int ResourceQuotaSizeFieldNumber = 1001;
- private int resourceQuotaSize_;
- /// <summary>
- /// Buffer pool size (no buffer pool specified if unset)
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int ResourceQuotaSize {
- get { return resourceQuotaSize_; }
- set {
- resourceQuotaSize_ = value;
- }
- }
- /// <summary>Field number for the "channel_args" field.</summary>
- public const int ChannelArgsFieldNumber = 1002;
- private static readonly pb::FieldCodec<global::Grpc.Testing.ChannelArg> _repeated_channelArgs_codec
- = pb::FieldCodec.ForMessage(8018, global::Grpc.Testing.ChannelArg.Parser);
- private readonly pbc::RepeatedField<global::Grpc.Testing.ChannelArg> channelArgs_ = new pbc::RepeatedField<global::Grpc.Testing.ChannelArg>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Grpc.Testing.ChannelArg> ChannelArgs {
- get { return channelArgs_; }
- }
- /// <summary>Field number for the "server_processes" field.</summary>
- public const int ServerProcessesFieldNumber = 21;
- private int serverProcesses_;
- /// <summary>
- /// Number of server processes. 0 indicates no restriction.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int ServerProcesses {
- get { return serverProcesses_; }
- set {
- serverProcesses_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as ServerConfig);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(ServerConfig other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (ServerType != other.ServerType) return false;
- if (!object.Equals(SecurityParams, other.SecurityParams)) return false;
- if (Port != other.Port) return false;
- if (AsyncServerThreads != other.AsyncServerThreads) return false;
- if (CoreLimit != other.CoreLimit) return false;
- if (!object.Equals(PayloadConfig, other.PayloadConfig)) return false;
- if(!coreList_.Equals(other.coreList_)) return false;
- if (OtherServerApi != other.OtherServerApi) return false;
- if (ThreadsPerCq != other.ThreadsPerCq) return false;
- if (ResourceQuotaSize != other.ResourceQuotaSize) return false;
- if(!channelArgs_.Equals(other.channelArgs_)) return false;
- if (ServerProcesses != other.ServerProcesses) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (ServerType != global::Grpc.Testing.ServerType.SyncServer) hash ^= ServerType.GetHashCode();
- if (securityParams_ != null) hash ^= SecurityParams.GetHashCode();
- if (Port != 0) hash ^= Port.GetHashCode();
- if (AsyncServerThreads != 0) hash ^= AsyncServerThreads.GetHashCode();
- if (CoreLimit != 0) hash ^= CoreLimit.GetHashCode();
- if (payloadConfig_ != null) hash ^= PayloadConfig.GetHashCode();
- hash ^= coreList_.GetHashCode();
- if (OtherServerApi.Length != 0) hash ^= OtherServerApi.GetHashCode();
- if (ThreadsPerCq != 0) hash ^= ThreadsPerCq.GetHashCode();
- if (ResourceQuotaSize != 0) hash ^= ResourceQuotaSize.GetHashCode();
- hash ^= channelArgs_.GetHashCode();
- if (ServerProcesses != 0) hash ^= ServerProcesses.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (ServerType != global::Grpc.Testing.ServerType.SyncServer) {
- output.WriteRawTag(8);
- output.WriteEnum((int) ServerType);
- }
- if (securityParams_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(SecurityParams);
- }
- if (Port != 0) {
- output.WriteRawTag(32);
- output.WriteInt32(Port);
- }
- if (AsyncServerThreads != 0) {
- output.WriteRawTag(56);
- output.WriteInt32(AsyncServerThreads);
- }
- if (CoreLimit != 0) {
- output.WriteRawTag(64);
- output.WriteInt32(CoreLimit);
- }
- if (payloadConfig_ != null) {
- output.WriteRawTag(74);
- output.WriteMessage(PayloadConfig);
- }
- coreList_.WriteTo(output, _repeated_coreList_codec);
- if (OtherServerApi.Length != 0) {
- output.WriteRawTag(90);
- output.WriteString(OtherServerApi);
- }
- if (ThreadsPerCq != 0) {
- output.WriteRawTag(96);
- output.WriteInt32(ThreadsPerCq);
- }
- if (ServerProcesses != 0) {
- output.WriteRawTag(168, 1);
- output.WriteInt32(ServerProcesses);
- }
- if (ResourceQuotaSize != 0) {
- output.WriteRawTag(200, 62);
- output.WriteInt32(ResourceQuotaSize);
- }
- channelArgs_.WriteTo(output, _repeated_channelArgs_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (ServerType != global::Grpc.Testing.ServerType.SyncServer) {
- output.WriteRawTag(8);
- output.WriteEnum((int) ServerType);
- }
- if (securityParams_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(SecurityParams);
- }
- if (Port != 0) {
- output.WriteRawTag(32);
- output.WriteInt32(Port);
- }
- if (AsyncServerThreads != 0) {
- output.WriteRawTag(56);
- output.WriteInt32(AsyncServerThreads);
- }
- if (CoreLimit != 0) {
- output.WriteRawTag(64);
- output.WriteInt32(CoreLimit);
- }
- if (payloadConfig_ != null) {
- output.WriteRawTag(74);
- output.WriteMessage(PayloadConfig);
- }
- coreList_.WriteTo(ref output, _repeated_coreList_codec);
- if (OtherServerApi.Length != 0) {
- output.WriteRawTag(90);
- output.WriteString(OtherServerApi);
- }
- if (ThreadsPerCq != 0) {
- output.WriteRawTag(96);
- output.WriteInt32(ThreadsPerCq);
- }
- if (ServerProcesses != 0) {
- output.WriteRawTag(168, 1);
- output.WriteInt32(ServerProcesses);
- }
- if (ResourceQuotaSize != 0) {
- output.WriteRawTag(200, 62);
- output.WriteInt32(ResourceQuotaSize);
- }
- channelArgs_.WriteTo(ref output, _repeated_channelArgs_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (ServerType != global::Grpc.Testing.ServerType.SyncServer) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ServerType);
- }
- if (securityParams_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(SecurityParams);
- }
- if (Port != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Port);
- }
- if (AsyncServerThreads != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(AsyncServerThreads);
- }
- if (CoreLimit != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(CoreLimit);
- }
- if (payloadConfig_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(PayloadConfig);
- }
- size += coreList_.CalculateSize(_repeated_coreList_codec);
- if (OtherServerApi.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(OtherServerApi);
- }
- if (ThreadsPerCq != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(ThreadsPerCq);
- }
- if (ResourceQuotaSize != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(ResourceQuotaSize);
- }
- size += channelArgs_.CalculateSize(_repeated_channelArgs_codec);
- if (ServerProcesses != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(ServerProcesses);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(ServerConfig other) {
- if (other == null) {
- return;
- }
- if (other.ServerType != global::Grpc.Testing.ServerType.SyncServer) {
- ServerType = other.ServerType;
- }
- if (other.securityParams_ != null) {
- if (securityParams_ == null) {
- SecurityParams = new global::Grpc.Testing.SecurityParams();
- }
- SecurityParams.MergeFrom(other.SecurityParams);
- }
- if (other.Port != 0) {
- Port = other.Port;
- }
- if (other.AsyncServerThreads != 0) {
- AsyncServerThreads = other.AsyncServerThreads;
- }
- if (other.CoreLimit != 0) {
- CoreLimit = other.CoreLimit;
- }
- if (other.payloadConfig_ != null) {
- if (payloadConfig_ == null) {
- PayloadConfig = new global::Grpc.Testing.PayloadConfig();
- }
- PayloadConfig.MergeFrom(other.PayloadConfig);
- }
- coreList_.Add(other.coreList_);
- if (other.OtherServerApi.Length != 0) {
- OtherServerApi = other.OtherServerApi;
- }
- if (other.ThreadsPerCq != 0) {
- ThreadsPerCq = other.ThreadsPerCq;
- }
- if (other.ResourceQuotaSize != 0) {
- ResourceQuotaSize = other.ResourceQuotaSize;
- }
- channelArgs_.Add(other.channelArgs_);
- if (other.ServerProcesses != 0) {
- ServerProcesses = other.ServerProcesses;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- ServerType = (global::Grpc.Testing.ServerType) input.ReadEnum();
- break;
- }
- case 18: {
- if (securityParams_ == null) {
- SecurityParams = new global::Grpc.Testing.SecurityParams();
- }
- input.ReadMessage(SecurityParams);
- break;
- }
- case 32: {
- Port = input.ReadInt32();
- break;
- }
- case 56: {
- AsyncServerThreads = input.ReadInt32();
- break;
- }
- case 64: {
- CoreLimit = input.ReadInt32();
- break;
- }
- case 74: {
- if (payloadConfig_ == null) {
- PayloadConfig = new global::Grpc.Testing.PayloadConfig();
- }
- input.ReadMessage(PayloadConfig);
- break;
- }
- case 82:
- case 80: {
- coreList_.AddEntriesFrom(input, _repeated_coreList_codec);
- break;
- }
- case 90: {
- OtherServerApi = input.ReadString();
- break;
- }
- case 96: {
- ThreadsPerCq = input.ReadInt32();
- break;
- }
- case 168: {
- ServerProcesses = input.ReadInt32();
- break;
- }
- case 8008: {
- ResourceQuotaSize = input.ReadInt32();
- break;
- }
- case 8018: {
- channelArgs_.AddEntriesFrom(input, _repeated_channelArgs_codec);
- break;
- }
- }
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 8: {
- ServerType = (global::Grpc.Testing.ServerType) input.ReadEnum();
- break;
- }
- case 18: {
- if (securityParams_ == null) {
- SecurityParams = new global::Grpc.Testing.SecurityParams();
- }
- input.ReadMessage(SecurityParams);
- break;
- }
- case 32: {
- Port = input.ReadInt32();
- break;
- }
- case 56: {
- AsyncServerThreads = input.ReadInt32();
- break;
- }
- case 64: {
- CoreLimit = input.ReadInt32();
- break;
- }
- case 74: {
- if (payloadConfig_ == null) {
- PayloadConfig = new global::Grpc.Testing.PayloadConfig();
- }
- input.ReadMessage(PayloadConfig);
- break;
- }
- case 82:
- case 80: {
- coreList_.AddEntriesFrom(ref input, _repeated_coreList_codec);
- break;
- }
- case 90: {
- OtherServerApi = input.ReadString();
- break;
- }
- case 96: {
- ThreadsPerCq = input.ReadInt32();
- break;
- }
- case 168: {
- ServerProcesses = input.ReadInt32();
- break;
- }
- case 8008: {
- ResourceQuotaSize = input.ReadInt32();
- break;
- }
- case 8018: {
- channelArgs_.AddEntriesFrom(ref input, _repeated_channelArgs_codec);
- break;
- }
- }
- }
- }
- #endif
- }
- public sealed partial class ServerArgs : pb::IMessage<ServerArgs>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<ServerArgs> _parser = new pb::MessageParser<ServerArgs>(() => new ServerArgs());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<ServerArgs> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[10]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ServerArgs() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ServerArgs(ServerArgs other) : this() {
- switch (other.ArgtypeCase) {
- case ArgtypeOneofCase.Setup:
- Setup = other.Setup.Clone();
- break;
- case ArgtypeOneofCase.Mark:
- Mark = other.Mark.Clone();
- break;
- }
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ServerArgs Clone() {
- return new ServerArgs(this);
- }
- /// <summary>Field number for the "setup" field.</summary>
- public const int SetupFieldNumber = 1;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Grpc.Testing.ServerConfig Setup {
- get { return argtypeCase_ == ArgtypeOneofCase.Setup ? (global::Grpc.Testing.ServerConfig) argtype_ : null; }
- set {
- argtype_ = value;
- argtypeCase_ = value == null ? ArgtypeOneofCase.None : ArgtypeOneofCase.Setup;
- }
- }
- /// <summary>Field number for the "mark" field.</summary>
- public const int MarkFieldNumber = 2;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Grpc.Testing.Mark Mark {
- get { return argtypeCase_ == ArgtypeOneofCase.Mark ? (global::Grpc.Testing.Mark) argtype_ : null; }
- set {
- argtype_ = value;
- argtypeCase_ = value == null ? ArgtypeOneofCase.None : ArgtypeOneofCase.Mark;
- }
- }
- private object argtype_;
- /// <summary>Enum of possible cases for the "argtype" oneof.</summary>
- public enum ArgtypeOneofCase {
- None = 0,
- Setup = 1,
- Mark = 2,
- }
- private ArgtypeOneofCase argtypeCase_ = ArgtypeOneofCase.None;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ArgtypeOneofCase ArgtypeCase {
- get { return argtypeCase_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearArgtype() {
- argtypeCase_ = ArgtypeOneofCase.None;
- argtype_ = null;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as ServerArgs);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(ServerArgs other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(Setup, other.Setup)) return false;
- if (!object.Equals(Mark, other.Mark)) return false;
- if (ArgtypeCase != other.ArgtypeCase) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (argtypeCase_ == ArgtypeOneofCase.Setup) hash ^= Setup.GetHashCode();
- if (argtypeCase_ == ArgtypeOneofCase.Mark) hash ^= Mark.GetHashCode();
- hash ^= (int) argtypeCase_;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (argtypeCase_ == ArgtypeOneofCase.Setup) {
- output.WriteRawTag(10);
- output.WriteMessage(Setup);
- }
- if (argtypeCase_ == ArgtypeOneofCase.Mark) {
- output.WriteRawTag(18);
- output.WriteMessage(Mark);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (argtypeCase_ == ArgtypeOneofCase.Setup) {
- output.WriteRawTag(10);
- output.WriteMessage(Setup);
- }
- if (argtypeCase_ == ArgtypeOneofCase.Mark) {
- output.WriteRawTag(18);
- output.WriteMessage(Mark);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (argtypeCase_ == ArgtypeOneofCase.Setup) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Setup);
- }
- if (argtypeCase_ == ArgtypeOneofCase.Mark) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Mark);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(ServerArgs other) {
- if (other == null) {
- return;
- }
- switch (other.ArgtypeCase) {
- case ArgtypeOneofCase.Setup:
- if (Setup == null) {
- Setup = new global::Grpc.Testing.ServerConfig();
- }
- Setup.MergeFrom(other.Setup);
- break;
- case ArgtypeOneofCase.Mark:
- if (Mark == null) {
- Mark = new global::Grpc.Testing.Mark();
- }
- Mark.MergeFrom(other.Mark);
- break;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- global::Grpc.Testing.ServerConfig subBuilder = new global::Grpc.Testing.ServerConfig();
- if (argtypeCase_ == ArgtypeOneofCase.Setup) {
- subBuilder.MergeFrom(Setup);
- }
- input.ReadMessage(subBuilder);
- Setup = subBuilder;
- break;
- }
- case 18: {
- global::Grpc.Testing.Mark subBuilder = new global::Grpc.Testing.Mark();
- if (argtypeCase_ == ArgtypeOneofCase.Mark) {
- subBuilder.MergeFrom(Mark);
- }
- input.ReadMessage(subBuilder);
- Mark = subBuilder;
- break;
- }
- }
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- global::Grpc.Testing.ServerConfig subBuilder = new global::Grpc.Testing.ServerConfig();
- if (argtypeCase_ == ArgtypeOneofCase.Setup) {
- subBuilder.MergeFrom(Setup);
- }
- input.ReadMessage(subBuilder);
- Setup = subBuilder;
- break;
- }
- case 18: {
- global::Grpc.Testing.Mark subBuilder = new global::Grpc.Testing.Mark();
- if (argtypeCase_ == ArgtypeOneofCase.Mark) {
- subBuilder.MergeFrom(Mark);
- }
- input.ReadMessage(subBuilder);
- Mark = subBuilder;
- break;
- }
- }
- }
- }
- #endif
- }
- public sealed partial class ServerStatus : pb::IMessage<ServerStatus>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<ServerStatus> _parser = new pb::MessageParser<ServerStatus>(() => new ServerStatus());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<ServerStatus> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[11]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ServerStatus() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ServerStatus(ServerStatus other) : this() {
- stats_ = other.stats_ != null ? other.stats_.Clone() : null;
- port_ = other.port_;
- cores_ = other.cores_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ServerStatus Clone() {
- return new ServerStatus(this);
- }
- /// <summary>Field number for the "stats" field.</summary>
- public const int StatsFieldNumber = 1;
- private global::Grpc.Testing.ServerStats stats_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Grpc.Testing.ServerStats Stats {
- get { return stats_; }
- set {
- stats_ = value;
- }
- }
- /// <summary>Field number for the "port" field.</summary>
- public const int PortFieldNumber = 2;
- private int port_;
- /// <summary>
- /// the port bound by the server
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Port {
- get { return port_; }
- set {
- port_ = value;
- }
- }
- /// <summary>Field number for the "cores" field.</summary>
- public const int CoresFieldNumber = 3;
- private int cores_;
- /// <summary>
- /// Number of cores available to the server
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Cores {
- get { return cores_; }
- set {
- cores_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as ServerStatus);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(ServerStatus other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(Stats, other.Stats)) return false;
- if (Port != other.Port) return false;
- if (Cores != other.Cores) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (stats_ != null) hash ^= Stats.GetHashCode();
- if (Port != 0) hash ^= Port.GetHashCode();
- if (Cores != 0) hash ^= Cores.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (stats_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Stats);
- }
- if (Port != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(Port);
- }
- if (Cores != 0) {
- output.WriteRawTag(24);
- output.WriteInt32(Cores);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (stats_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Stats);
- }
- if (Port != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(Port);
- }
- if (Cores != 0) {
- output.WriteRawTag(24);
- output.WriteInt32(Cores);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (stats_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Stats);
- }
- if (Port != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Port);
- }
- if (Cores != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Cores);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(ServerStatus other) {
- if (other == null) {
- return;
- }
- if (other.stats_ != null) {
- if (stats_ == null) {
- Stats = new global::Grpc.Testing.ServerStats();
- }
- Stats.MergeFrom(other.Stats);
- }
- if (other.Port != 0) {
- Port = other.Port;
- }
- if (other.Cores != 0) {
- Cores = other.Cores;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (stats_ == null) {
- Stats = new global::Grpc.Testing.ServerStats();
- }
- input.ReadMessage(Stats);
- break;
- }
- case 16: {
- Port = input.ReadInt32();
- break;
- }
- case 24: {
- Cores = input.ReadInt32();
- break;
- }
- }
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- if (stats_ == null) {
- Stats = new global::Grpc.Testing.ServerStats();
- }
- input.ReadMessage(Stats);
- break;
- }
- case 16: {
- Port = input.ReadInt32();
- break;
- }
- case 24: {
- Cores = input.ReadInt32();
- break;
- }
- }
- }
- }
- #endif
- }
- public sealed partial class CoreRequest : pb::IMessage<CoreRequest>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<CoreRequest> _parser = new pb::MessageParser<CoreRequest>(() => new CoreRequest());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<CoreRequest> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[12]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CoreRequest() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CoreRequest(CoreRequest other) : this() {
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CoreRequest Clone() {
- return new CoreRequest(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as CoreRequest);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(CoreRequest other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(CoreRequest other) {
- if (other == null) {
- return;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- }
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- }
- }
- }
- #endif
- }
- public sealed partial class CoreResponse : pb::IMessage<CoreResponse>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<CoreResponse> _parser = new pb::MessageParser<CoreResponse>(() => new CoreResponse());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<CoreResponse> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[13]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CoreResponse() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CoreResponse(CoreResponse other) : this() {
- cores_ = other.cores_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CoreResponse Clone() {
- return new CoreResponse(this);
- }
- /// <summary>Field number for the "cores" field.</summary>
- public const int CoresFieldNumber = 1;
- private int cores_;
- /// <summary>
- /// Number of cores available on the server
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Cores {
- get { return cores_; }
- set {
- cores_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as CoreResponse);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(CoreResponse other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Cores != other.Cores) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Cores != 0) hash ^= Cores.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (Cores != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Cores);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (Cores != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Cores);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Cores != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Cores);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(CoreResponse other) {
- if (other == null) {
- return;
- }
- if (other.Cores != 0) {
- Cores = other.Cores;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- Cores = input.ReadInt32();
- break;
- }
- }
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 8: {
- Cores = input.ReadInt32();
- break;
- }
- }
- }
- }
- #endif
- }
- public sealed partial class Void : pb::IMessage<Void>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<Void> _parser = new pb::MessageParser<Void>(() => new Void());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Void> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[14]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Void() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Void(Void other) : this() {
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Void Clone() {
- return new Void(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Void);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Void other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Void other) {
- if (other == null) {
- return;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- }
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- }
- }
- }
- #endif
- }
- /// <summary>
- /// A single performance scenario: input to qps_json_driver
- /// </summary>
- public sealed partial class Scenario : pb::IMessage<Scenario>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<Scenario> _parser = new pb::MessageParser<Scenario>(() => new Scenario());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Scenario> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[15]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Scenario() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Scenario(Scenario other) : this() {
- name_ = other.name_;
- clientConfig_ = other.clientConfig_ != null ? other.clientConfig_.Clone() : null;
- numClients_ = other.numClients_;
- serverConfig_ = other.serverConfig_ != null ? other.serverConfig_.Clone() : null;
- numServers_ = other.numServers_;
- warmupSeconds_ = other.warmupSeconds_;
- benchmarkSeconds_ = other.benchmarkSeconds_;
- spawnLocalWorkerCount_ = other.spawnLocalWorkerCount_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Scenario Clone() {
- return new Scenario(this);
- }
- /// <summary>Field number for the "name" field.</summary>
- public const int NameFieldNumber = 1;
- private string name_ = "";
- /// <summary>
- /// Human readable name for this scenario
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Name {
- get { return name_; }
- set {
- name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "client_config" field.</summary>
- public const int ClientConfigFieldNumber = 2;
- private global::Grpc.Testing.ClientConfig clientConfig_;
- /// <summary>
- /// Client configuration
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Grpc.Testing.ClientConfig ClientConfig {
- get { return clientConfig_; }
- set {
- clientConfig_ = value;
- }
- }
- /// <summary>Field number for the "num_clients" field.</summary>
- public const int NumClientsFieldNumber = 3;
- private int numClients_;
- /// <summary>
- /// Number of clients to start for the test
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int NumClients {
- get { return numClients_; }
- set {
- numClients_ = value;
- }
- }
- /// <summary>Field number for the "server_config" field.</summary>
- public const int ServerConfigFieldNumber = 4;
- private global::Grpc.Testing.ServerConfig serverConfig_;
- /// <summary>
- /// Server configuration
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Grpc.Testing.ServerConfig ServerConfig {
- get { return serverConfig_; }
- set {
- serverConfig_ = value;
- }
- }
- /// <summary>Field number for the "num_servers" field.</summary>
- public const int NumServersFieldNumber = 5;
- private int numServers_;
- /// <summary>
- /// Number of servers to start for the test
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int NumServers {
- get { return numServers_; }
- set {
- numServers_ = value;
- }
- }
- /// <summary>Field number for the "warmup_seconds" field.</summary>
- public const int WarmupSecondsFieldNumber = 6;
- private int warmupSeconds_;
- /// <summary>
- /// Warmup period, in seconds
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int WarmupSeconds {
- get { return warmupSeconds_; }
- set {
- warmupSeconds_ = value;
- }
- }
- /// <summary>Field number for the "benchmark_seconds" field.</summary>
- public const int BenchmarkSecondsFieldNumber = 7;
- private int benchmarkSeconds_;
- /// <summary>
- /// Benchmark time, in seconds
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int BenchmarkSeconds {
- get { return benchmarkSeconds_; }
- set {
- benchmarkSeconds_ = value;
- }
- }
- /// <summary>Field number for the "spawn_local_worker_count" field.</summary>
- public const int SpawnLocalWorkerCountFieldNumber = 8;
- private int spawnLocalWorkerCount_;
- /// <summary>
- /// Number of workers to spawn locally (usually zero)
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int SpawnLocalWorkerCount {
- get { return spawnLocalWorkerCount_; }
- set {
- spawnLocalWorkerCount_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Scenario);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Scenario other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Name != other.Name) return false;
- if (!object.Equals(ClientConfig, other.ClientConfig)) return false;
- if (NumClients != other.NumClients) return false;
- if (!object.Equals(ServerConfig, other.ServerConfig)) return false;
- if (NumServers != other.NumServers) return false;
- if (WarmupSeconds != other.WarmupSeconds) return false;
- if (BenchmarkSeconds != other.BenchmarkSeconds) return false;
- if (SpawnLocalWorkerCount != other.SpawnLocalWorkerCount) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Name.Length != 0) hash ^= Name.GetHashCode();
- if (clientConfig_ != null) hash ^= ClientConfig.GetHashCode();
- if (NumClients != 0) hash ^= NumClients.GetHashCode();
- if (serverConfig_ != null) hash ^= ServerConfig.GetHashCode();
- if (NumServers != 0) hash ^= NumServers.GetHashCode();
- if (WarmupSeconds != 0) hash ^= WarmupSeconds.GetHashCode();
- if (BenchmarkSeconds != 0) hash ^= BenchmarkSeconds.GetHashCode();
- if (SpawnLocalWorkerCount != 0) hash ^= SpawnLocalWorkerCount.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (Name.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Name);
- }
- if (clientConfig_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(ClientConfig);
- }
- if (NumClients != 0) {
- output.WriteRawTag(24);
- output.WriteInt32(NumClients);
- }
- if (serverConfig_ != null) {
- output.WriteRawTag(34);
- output.WriteMessage(ServerConfig);
- }
- if (NumServers != 0) {
- output.WriteRawTag(40);
- output.WriteInt32(NumServers);
- }
- if (WarmupSeconds != 0) {
- output.WriteRawTag(48);
- output.WriteInt32(WarmupSeconds);
- }
- if (BenchmarkSeconds != 0) {
- output.WriteRawTag(56);
- output.WriteInt32(BenchmarkSeconds);
- }
- if (SpawnLocalWorkerCount != 0) {
- output.WriteRawTag(64);
- output.WriteInt32(SpawnLocalWorkerCount);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (Name.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Name);
- }
- if (clientConfig_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(ClientConfig);
- }
- if (NumClients != 0) {
- output.WriteRawTag(24);
- output.WriteInt32(NumClients);
- }
- if (serverConfig_ != null) {
- output.WriteRawTag(34);
- output.WriteMessage(ServerConfig);
- }
- if (NumServers != 0) {
- output.WriteRawTag(40);
- output.WriteInt32(NumServers);
- }
- if (WarmupSeconds != 0) {
- output.WriteRawTag(48);
- output.WriteInt32(WarmupSeconds);
- }
- if (BenchmarkSeconds != 0) {
- output.WriteRawTag(56);
- output.WriteInt32(BenchmarkSeconds);
- }
- if (SpawnLocalWorkerCount != 0) {
- output.WriteRawTag(64);
- output.WriteInt32(SpawnLocalWorkerCount);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Name.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
- }
- if (clientConfig_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClientConfig);
- }
- if (NumClients != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumClients);
- }
- if (serverConfig_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(ServerConfig);
- }
- if (NumServers != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumServers);
- }
- if (WarmupSeconds != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(WarmupSeconds);
- }
- if (BenchmarkSeconds != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(BenchmarkSeconds);
- }
- if (SpawnLocalWorkerCount != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(SpawnLocalWorkerCount);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Scenario other) {
- if (other == null) {
- return;
- }
- if (other.Name.Length != 0) {
- Name = other.Name;
- }
- if (other.clientConfig_ != null) {
- if (clientConfig_ == null) {
- ClientConfig = new global::Grpc.Testing.ClientConfig();
- }
- ClientConfig.MergeFrom(other.ClientConfig);
- }
- if (other.NumClients != 0) {
- NumClients = other.NumClients;
- }
- if (other.serverConfig_ != null) {
- if (serverConfig_ == null) {
- ServerConfig = new global::Grpc.Testing.ServerConfig();
- }
- ServerConfig.MergeFrom(other.ServerConfig);
- }
- if (other.NumServers != 0) {
- NumServers = other.NumServers;
- }
- if (other.WarmupSeconds != 0) {
- WarmupSeconds = other.WarmupSeconds;
- }
- if (other.BenchmarkSeconds != 0) {
- BenchmarkSeconds = other.BenchmarkSeconds;
- }
- if (other.SpawnLocalWorkerCount != 0) {
- SpawnLocalWorkerCount = other.SpawnLocalWorkerCount;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- Name = input.ReadString();
- break;
- }
- case 18: {
- if (clientConfig_ == null) {
- ClientConfig = new global::Grpc.Testing.ClientConfig();
- }
- input.ReadMessage(ClientConfig);
- break;
- }
- case 24: {
- NumClients = input.ReadInt32();
- break;
- }
- case 34: {
- if (serverConfig_ == null) {
- ServerConfig = new global::Grpc.Testing.ServerConfig();
- }
- input.ReadMessage(ServerConfig);
- break;
- }
- case 40: {
- NumServers = input.ReadInt32();
- break;
- }
- case 48: {
- WarmupSeconds = input.ReadInt32();
- break;
- }
- case 56: {
- BenchmarkSeconds = input.ReadInt32();
- break;
- }
- case 64: {
- SpawnLocalWorkerCount = input.ReadInt32();
- break;
- }
- }
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- Name = input.ReadString();
- break;
- }
- case 18: {
- if (clientConfig_ == null) {
- ClientConfig = new global::Grpc.Testing.ClientConfig();
- }
- input.ReadMessage(ClientConfig);
- break;
- }
- case 24: {
- NumClients = input.ReadInt32();
- break;
- }
- case 34: {
- if (serverConfig_ == null) {
- ServerConfig = new global::Grpc.Testing.ServerConfig();
- }
- input.ReadMessage(ServerConfig);
- break;
- }
- case 40: {
- NumServers = input.ReadInt32();
- break;
- }
- case 48: {
- WarmupSeconds = input.ReadInt32();
- break;
- }
- case 56: {
- BenchmarkSeconds = input.ReadInt32();
- break;
- }
- case 64: {
- SpawnLocalWorkerCount = input.ReadInt32();
- break;
- }
- }
- }
- }
- #endif
- }
- /// <summary>
- /// A set of scenarios to be run with qps_json_driver
- /// </summary>
- public sealed partial class Scenarios : pb::IMessage<Scenarios>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<Scenarios> _parser = new pb::MessageParser<Scenarios>(() => new Scenarios());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Scenarios> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[16]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Scenarios() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Scenarios(Scenarios other) : this() {
- scenarios_ = other.scenarios_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Scenarios Clone() {
- return new Scenarios(this);
- }
- /// <summary>Field number for the "scenarios" field.</summary>
- public const int Scenarios_FieldNumber = 1;
- private static readonly pb::FieldCodec<global::Grpc.Testing.Scenario> _repeated_scenarios_codec
- = pb::FieldCodec.ForMessage(10, global::Grpc.Testing.Scenario.Parser);
- private readonly pbc::RepeatedField<global::Grpc.Testing.Scenario> scenarios_ = new pbc::RepeatedField<global::Grpc.Testing.Scenario>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Grpc.Testing.Scenario> Scenarios_ {
- get { return scenarios_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Scenarios);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Scenarios other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!scenarios_.Equals(other.scenarios_)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= scenarios_.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- scenarios_.WriteTo(output, _repeated_scenarios_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- scenarios_.WriteTo(ref output, _repeated_scenarios_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- size += scenarios_.CalculateSize(_repeated_scenarios_codec);
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Scenarios other) {
- if (other == null) {
- return;
- }
- scenarios_.Add(other.scenarios_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- scenarios_.AddEntriesFrom(input, _repeated_scenarios_codec);
- break;
- }
- }
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- scenarios_.AddEntriesFrom(ref input, _repeated_scenarios_codec);
- break;
- }
- }
- }
- }
- #endif
- }
- /// <summary>
- /// Basic summary that can be computed from ClientStats and ServerStats
- /// once the scenario has finished.
- /// </summary>
- public sealed partial class ScenarioResultSummary : pb::IMessage<ScenarioResultSummary>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<ScenarioResultSummary> _parser = new pb::MessageParser<ScenarioResultSummary>(() => new ScenarioResultSummary());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<ScenarioResultSummary> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[17]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ScenarioResultSummary() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ScenarioResultSummary(ScenarioResultSummary other) : this() {
- qps_ = other.qps_;
- qpsPerServerCore_ = other.qpsPerServerCore_;
- serverSystemTime_ = other.serverSystemTime_;
- serverUserTime_ = other.serverUserTime_;
- clientSystemTime_ = other.clientSystemTime_;
- clientUserTime_ = other.clientUserTime_;
- latency50_ = other.latency50_;
- latency90_ = other.latency90_;
- latency95_ = other.latency95_;
- latency99_ = other.latency99_;
- latency999_ = other.latency999_;
- serverCpuUsage_ = other.serverCpuUsage_;
- successfulRequestsPerSecond_ = other.successfulRequestsPerSecond_;
- failedRequestsPerSecond_ = other.failedRequestsPerSecond_;
- clientPollsPerRequest_ = other.clientPollsPerRequest_;
- serverPollsPerRequest_ = other.serverPollsPerRequest_;
- serverQueriesPerCpuSec_ = other.serverQueriesPerCpuSec_;
- clientQueriesPerCpuSec_ = other.clientQueriesPerCpuSec_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ScenarioResultSummary Clone() {
- return new ScenarioResultSummary(this);
- }
- /// <summary>Field number for the "qps" field.</summary>
- public const int QpsFieldNumber = 1;
- private double qps_;
- /// <summary>
- /// Total number of operations per second over all clients. What is counted as 1 'operation' depends on the benchmark scenarios:
- /// For unary benchmarks, an operation is processing of a single unary RPC.
- /// For streaming benchmarks, an operation is processing of a single ping pong of request and response.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double Qps {
- get { return qps_; }
- set {
- qps_ = value;
- }
- }
- /// <summary>Field number for the "qps_per_server_core" field.</summary>
- public const int QpsPerServerCoreFieldNumber = 2;
- private double qpsPerServerCore_;
- /// <summary>
- /// QPS per server core.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double QpsPerServerCore {
- get { return qpsPerServerCore_; }
- set {
- qpsPerServerCore_ = value;
- }
- }
- /// <summary>Field number for the "server_system_time" field.</summary>
- public const int ServerSystemTimeFieldNumber = 3;
- private double serverSystemTime_;
- /// <summary>
- /// The total server cpu load based on system time across all server processes, expressed as percentage of a single cpu core.
- /// 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
- /// processes, the value could > 100 when there are multiple servers or a single server using multiple threads and cores.
- /// Same explanation for the total client cpu load below.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double ServerSystemTime {
- get { return serverSystemTime_; }
- set {
- serverSystemTime_ = value;
- }
- }
- /// <summary>Field number for the "server_user_time" field.</summary>
- public const int ServerUserTimeFieldNumber = 4;
- private double serverUserTime_;
- /// <summary>
- /// 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%)
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double ServerUserTime {
- get { return serverUserTime_; }
- set {
- serverUserTime_ = value;
- }
- }
- /// <summary>Field number for the "client_system_time" field.</summary>
- public const int ClientSystemTimeFieldNumber = 5;
- private double clientSystemTime_;
- /// <summary>
- /// 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%)
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double ClientSystemTime {
- get { return clientSystemTime_; }
- set {
- clientSystemTime_ = value;
- }
- }
- /// <summary>Field number for the "client_user_time" field.</summary>
- public const int ClientUserTimeFieldNumber = 6;
- private double clientUserTime_;
- /// <summary>
- /// 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%)
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double ClientUserTime {
- get { return clientUserTime_; }
- set {
- clientUserTime_ = value;
- }
- }
- /// <summary>Field number for the "latency_50" field.</summary>
- public const int Latency50FieldNumber = 7;
- private double latency50_;
- /// <summary>
- /// X% latency percentiles (in nanoseconds)
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double Latency50 {
- get { return latency50_; }
- set {
- latency50_ = value;
- }
- }
- /// <summary>Field number for the "latency_90" field.</summary>
- public const int Latency90FieldNumber = 8;
- private double latency90_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double Latency90 {
- get { return latency90_; }
- set {
- latency90_ = value;
- }
- }
- /// <summary>Field number for the "latency_95" field.</summary>
- public const int Latency95FieldNumber = 9;
- private double latency95_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double Latency95 {
- get { return latency95_; }
- set {
- latency95_ = value;
- }
- }
- /// <summary>Field number for the "latency_99" field.</summary>
- public const int Latency99FieldNumber = 10;
- private double latency99_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double Latency99 {
- get { return latency99_; }
- set {
- latency99_ = value;
- }
- }
- /// <summary>Field number for the "latency_999" field.</summary>
- public const int Latency999FieldNumber = 11;
- private double latency999_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double Latency999 {
- get { return latency999_; }
- set {
- latency999_ = value;
- }
- }
- /// <summary>Field number for the "server_cpu_usage" field.</summary>
- public const int ServerCpuUsageFieldNumber = 12;
- private double serverCpuUsage_;
- /// <summary>
- /// server cpu usage percentage
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double ServerCpuUsage {
- get { return serverCpuUsage_; }
- set {
- serverCpuUsage_ = value;
- }
- }
- /// <summary>Field number for the "successful_requests_per_second" field.</summary>
- public const int SuccessfulRequestsPerSecondFieldNumber = 13;
- private double successfulRequestsPerSecond_;
- /// <summary>
- /// Number of requests that succeeded/failed
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double SuccessfulRequestsPerSecond {
- get { return successfulRequestsPerSecond_; }
- set {
- successfulRequestsPerSecond_ = value;
- }
- }
- /// <summary>Field number for the "failed_requests_per_second" field.</summary>
- public const int FailedRequestsPerSecondFieldNumber = 14;
- private double failedRequestsPerSecond_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double FailedRequestsPerSecond {
- get { return failedRequestsPerSecond_; }
- set {
- failedRequestsPerSecond_ = value;
- }
- }
- /// <summary>Field number for the "client_polls_per_request" field.</summary>
- public const int ClientPollsPerRequestFieldNumber = 15;
- private double clientPollsPerRequest_;
- /// <summary>
- /// Number of polls called inside completion queue per request
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double ClientPollsPerRequest {
- get { return clientPollsPerRequest_; }
- set {
- clientPollsPerRequest_ = value;
- }
- }
- /// <summary>Field number for the "server_polls_per_request" field.</summary>
- public const int ServerPollsPerRequestFieldNumber = 16;
- private double serverPollsPerRequest_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double ServerPollsPerRequest {
- get { return serverPollsPerRequest_; }
- set {
- serverPollsPerRequest_ = value;
- }
- }
- /// <summary>Field number for the "server_queries_per_cpu_sec" field.</summary>
- public const int ServerQueriesPerCpuSecFieldNumber = 17;
- private double serverQueriesPerCpuSec_;
- /// <summary>
- /// Queries per CPU-sec over all servers or clients
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double ServerQueriesPerCpuSec {
- get { return serverQueriesPerCpuSec_; }
- set {
- serverQueriesPerCpuSec_ = value;
- }
- }
- /// <summary>Field number for the "client_queries_per_cpu_sec" field.</summary>
- public const int ClientQueriesPerCpuSecFieldNumber = 18;
- private double clientQueriesPerCpuSec_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double ClientQueriesPerCpuSec {
- get { return clientQueriesPerCpuSec_; }
- set {
- clientQueriesPerCpuSec_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as ScenarioResultSummary);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(ScenarioResultSummary other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Qps, other.Qps)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(QpsPerServerCore, other.QpsPerServerCore)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ServerSystemTime, other.ServerSystemTime)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ServerUserTime, other.ServerUserTime)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ClientSystemTime, other.ClientSystemTime)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ClientUserTime, other.ClientUserTime)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Latency50, other.Latency50)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Latency90, other.Latency90)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Latency95, other.Latency95)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Latency99, other.Latency99)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Latency999, other.Latency999)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ServerCpuUsage, other.ServerCpuUsage)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SuccessfulRequestsPerSecond, other.SuccessfulRequestsPerSecond)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FailedRequestsPerSecond, other.FailedRequestsPerSecond)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ClientPollsPerRequest, other.ClientPollsPerRequest)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ServerPollsPerRequest, other.ServerPollsPerRequest)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ServerQueriesPerCpuSec, other.ServerQueriesPerCpuSec)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ClientQueriesPerCpuSec, other.ClientQueriesPerCpuSec)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Qps != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Qps);
- if (QpsPerServerCore != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(QpsPerServerCore);
- if (ServerSystemTime != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ServerSystemTime);
- if (ServerUserTime != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ServerUserTime);
- if (ClientSystemTime != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ClientSystemTime);
- if (ClientUserTime != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ClientUserTime);
- if (Latency50 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Latency50);
- if (Latency90 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Latency90);
- if (Latency95 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Latency95);
- if (Latency99 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Latency99);
- if (Latency999 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Latency999);
- if (ServerCpuUsage != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ServerCpuUsage);
- if (SuccessfulRequestsPerSecond != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SuccessfulRequestsPerSecond);
- if (FailedRequestsPerSecond != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FailedRequestsPerSecond);
- if (ClientPollsPerRequest != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ClientPollsPerRequest);
- if (ServerPollsPerRequest != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ServerPollsPerRequest);
- if (ServerQueriesPerCpuSec != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ServerQueriesPerCpuSec);
- if (ClientQueriesPerCpuSec != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ClientQueriesPerCpuSec);
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (Qps != 0D) {
- output.WriteRawTag(9);
- output.WriteDouble(Qps);
- }
- if (QpsPerServerCore != 0D) {
- output.WriteRawTag(17);
- output.WriteDouble(QpsPerServerCore);
- }
- if (ServerSystemTime != 0D) {
- output.WriteRawTag(25);
- output.WriteDouble(ServerSystemTime);
- }
- if (ServerUserTime != 0D) {
- output.WriteRawTag(33);
- output.WriteDouble(ServerUserTime);
- }
- if (ClientSystemTime != 0D) {
- output.WriteRawTag(41);
- output.WriteDouble(ClientSystemTime);
- }
- if (ClientUserTime != 0D) {
- output.WriteRawTag(49);
- output.WriteDouble(ClientUserTime);
- }
- if (Latency50 != 0D) {
- output.WriteRawTag(57);
- output.WriteDouble(Latency50);
- }
- if (Latency90 != 0D) {
- output.WriteRawTag(65);
- output.WriteDouble(Latency90);
- }
- if (Latency95 != 0D) {
- output.WriteRawTag(73);
- output.WriteDouble(Latency95);
- }
- if (Latency99 != 0D) {
- output.WriteRawTag(81);
- output.WriteDouble(Latency99);
- }
- if (Latency999 != 0D) {
- output.WriteRawTag(89);
- output.WriteDouble(Latency999);
- }
- if (ServerCpuUsage != 0D) {
- output.WriteRawTag(97);
- output.WriteDouble(ServerCpuUsage);
- }
- if (SuccessfulRequestsPerSecond != 0D) {
- output.WriteRawTag(105);
- output.WriteDouble(SuccessfulRequestsPerSecond);
- }
- if (FailedRequestsPerSecond != 0D) {
- output.WriteRawTag(113);
- output.WriteDouble(FailedRequestsPerSecond);
- }
- if (ClientPollsPerRequest != 0D) {
- output.WriteRawTag(121);
- output.WriteDouble(ClientPollsPerRequest);
- }
- if (ServerPollsPerRequest != 0D) {
- output.WriteRawTag(129, 1);
- output.WriteDouble(ServerPollsPerRequest);
- }
- if (ServerQueriesPerCpuSec != 0D) {
- output.WriteRawTag(137, 1);
- output.WriteDouble(ServerQueriesPerCpuSec);
- }
- if (ClientQueriesPerCpuSec != 0D) {
- output.WriteRawTag(145, 1);
- output.WriteDouble(ClientQueriesPerCpuSec);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (Qps != 0D) {
- output.WriteRawTag(9);
- output.WriteDouble(Qps);
- }
- if (QpsPerServerCore != 0D) {
- output.WriteRawTag(17);
- output.WriteDouble(QpsPerServerCore);
- }
- if (ServerSystemTime != 0D) {
- output.WriteRawTag(25);
- output.WriteDouble(ServerSystemTime);
- }
- if (ServerUserTime != 0D) {
- output.WriteRawTag(33);
- output.WriteDouble(ServerUserTime);
- }
- if (ClientSystemTime != 0D) {
- output.WriteRawTag(41);
- output.WriteDouble(ClientSystemTime);
- }
- if (ClientUserTime != 0D) {
- output.WriteRawTag(49);
- output.WriteDouble(ClientUserTime);
- }
- if (Latency50 != 0D) {
- output.WriteRawTag(57);
- output.WriteDouble(Latency50);
- }
- if (Latency90 != 0D) {
- output.WriteRawTag(65);
- output.WriteDouble(Latency90);
- }
- if (Latency95 != 0D) {
- output.WriteRawTag(73);
- output.WriteDouble(Latency95);
- }
- if (Latency99 != 0D) {
- output.WriteRawTag(81);
- output.WriteDouble(Latency99);
- }
- if (Latency999 != 0D) {
- output.WriteRawTag(89);
- output.WriteDouble(Latency999);
- }
- if (ServerCpuUsage != 0D) {
- output.WriteRawTag(97);
- output.WriteDouble(ServerCpuUsage);
- }
- if (SuccessfulRequestsPerSecond != 0D) {
- output.WriteRawTag(105);
- output.WriteDouble(SuccessfulRequestsPerSecond);
- }
- if (FailedRequestsPerSecond != 0D) {
- output.WriteRawTag(113);
- output.WriteDouble(FailedRequestsPerSecond);
- }
- if (ClientPollsPerRequest != 0D) {
- output.WriteRawTag(121);
- output.WriteDouble(ClientPollsPerRequest);
- }
- if (ServerPollsPerRequest != 0D) {
- output.WriteRawTag(129, 1);
- output.WriteDouble(ServerPollsPerRequest);
- }
- if (ServerQueriesPerCpuSec != 0D) {
- output.WriteRawTag(137, 1);
- output.WriteDouble(ServerQueriesPerCpuSec);
- }
- if (ClientQueriesPerCpuSec != 0D) {
- output.WriteRawTag(145, 1);
- output.WriteDouble(ClientQueriesPerCpuSec);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Qps != 0D) {
- size += 1 + 8;
- }
- if (QpsPerServerCore != 0D) {
- size += 1 + 8;
- }
- if (ServerSystemTime != 0D) {
- size += 1 + 8;
- }
- if (ServerUserTime != 0D) {
- size += 1 + 8;
- }
- if (ClientSystemTime != 0D) {
- size += 1 + 8;
- }
- if (ClientUserTime != 0D) {
- size += 1 + 8;
- }
- if (Latency50 != 0D) {
- size += 1 + 8;
- }
- if (Latency90 != 0D) {
- size += 1 + 8;
- }
- if (Latency95 != 0D) {
- size += 1 + 8;
- }
- if (Latency99 != 0D) {
- size += 1 + 8;
- }
- if (Latency999 != 0D) {
- size += 1 + 8;
- }
- if (ServerCpuUsage != 0D) {
- size += 1 + 8;
- }
- if (SuccessfulRequestsPerSecond != 0D) {
- size += 1 + 8;
- }
- if (FailedRequestsPerSecond != 0D) {
- size += 1 + 8;
- }
- if (ClientPollsPerRequest != 0D) {
- size += 1 + 8;
- }
- if (ServerPollsPerRequest != 0D) {
- size += 2 + 8;
- }
- if (ServerQueriesPerCpuSec != 0D) {
- size += 2 + 8;
- }
- if (ClientQueriesPerCpuSec != 0D) {
- size += 2 + 8;
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(ScenarioResultSummary other) {
- if (other == null) {
- return;
- }
- if (other.Qps != 0D) {
- Qps = other.Qps;
- }
- if (other.QpsPerServerCore != 0D) {
- QpsPerServerCore = other.QpsPerServerCore;
- }
- if (other.ServerSystemTime != 0D) {
- ServerSystemTime = other.ServerSystemTime;
- }
- if (other.ServerUserTime != 0D) {
- ServerUserTime = other.ServerUserTime;
- }
- if (other.ClientSystemTime != 0D) {
- ClientSystemTime = other.ClientSystemTime;
- }
- if (other.ClientUserTime != 0D) {
- ClientUserTime = other.ClientUserTime;
- }
- if (other.Latency50 != 0D) {
- Latency50 = other.Latency50;
- }
- if (other.Latency90 != 0D) {
- Latency90 = other.Latency90;
- }
- if (other.Latency95 != 0D) {
- Latency95 = other.Latency95;
- }
- if (other.Latency99 != 0D) {
- Latency99 = other.Latency99;
- }
- if (other.Latency999 != 0D) {
- Latency999 = other.Latency999;
- }
- if (other.ServerCpuUsage != 0D) {
- ServerCpuUsage = other.ServerCpuUsage;
- }
- if (other.SuccessfulRequestsPerSecond != 0D) {
- SuccessfulRequestsPerSecond = other.SuccessfulRequestsPerSecond;
- }
- if (other.FailedRequestsPerSecond != 0D) {
- FailedRequestsPerSecond = other.FailedRequestsPerSecond;
- }
- if (other.ClientPollsPerRequest != 0D) {
- ClientPollsPerRequest = other.ClientPollsPerRequest;
- }
- if (other.ServerPollsPerRequest != 0D) {
- ServerPollsPerRequest = other.ServerPollsPerRequest;
- }
- if (other.ServerQueriesPerCpuSec != 0D) {
- ServerQueriesPerCpuSec = other.ServerQueriesPerCpuSec;
- }
- if (other.ClientQueriesPerCpuSec != 0D) {
- ClientQueriesPerCpuSec = other.ClientQueriesPerCpuSec;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 9: {
- Qps = input.ReadDouble();
- break;
- }
- case 17: {
- QpsPerServerCore = input.ReadDouble();
- break;
- }
- case 25: {
- ServerSystemTime = input.ReadDouble();
- break;
- }
- case 33: {
- ServerUserTime = input.ReadDouble();
- break;
- }
- case 41: {
- ClientSystemTime = input.ReadDouble();
- break;
- }
- case 49: {
- ClientUserTime = input.ReadDouble();
- break;
- }
- case 57: {
- Latency50 = input.ReadDouble();
- break;
- }
- case 65: {
- Latency90 = input.ReadDouble();
- break;
- }
- case 73: {
- Latency95 = input.ReadDouble();
- break;
- }
- case 81: {
- Latency99 = input.ReadDouble();
- break;
- }
- case 89: {
- Latency999 = input.ReadDouble();
- break;
- }
- case 97: {
- ServerCpuUsage = input.ReadDouble();
- break;
- }
- case 105: {
- SuccessfulRequestsPerSecond = input.ReadDouble();
- break;
- }
- case 113: {
- FailedRequestsPerSecond = input.ReadDouble();
- break;
- }
- case 121: {
- ClientPollsPerRequest = input.ReadDouble();
- break;
- }
- case 129: {
- ServerPollsPerRequest = input.ReadDouble();
- break;
- }
- case 137: {
- ServerQueriesPerCpuSec = input.ReadDouble();
- break;
- }
- case 145: {
- ClientQueriesPerCpuSec = input.ReadDouble();
- break;
- }
- }
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 9: {
- Qps = input.ReadDouble();
- break;
- }
- case 17: {
- QpsPerServerCore = input.ReadDouble();
- break;
- }
- case 25: {
- ServerSystemTime = input.ReadDouble();
- break;
- }
- case 33: {
- ServerUserTime = input.ReadDouble();
- break;
- }
- case 41: {
- ClientSystemTime = input.ReadDouble();
- break;
- }
- case 49: {
- ClientUserTime = input.ReadDouble();
- break;
- }
- case 57: {
- Latency50 = input.ReadDouble();
- break;
- }
- case 65: {
- Latency90 = input.ReadDouble();
- break;
- }
- case 73: {
- Latency95 = input.ReadDouble();
- break;
- }
- case 81: {
- Latency99 = input.ReadDouble();
- break;
- }
- case 89: {
- Latency999 = input.ReadDouble();
- break;
- }
- case 97: {
- ServerCpuUsage = input.ReadDouble();
- break;
- }
- case 105: {
- SuccessfulRequestsPerSecond = input.ReadDouble();
- break;
- }
- case 113: {
- FailedRequestsPerSecond = input.ReadDouble();
- break;
- }
- case 121: {
- ClientPollsPerRequest = input.ReadDouble();
- break;
- }
- case 129: {
- ServerPollsPerRequest = input.ReadDouble();
- break;
- }
- case 137: {
- ServerQueriesPerCpuSec = input.ReadDouble();
- break;
- }
- case 145: {
- ClientQueriesPerCpuSec = input.ReadDouble();
- break;
- }
- }
- }
- }
- #endif
- }
- /// <summary>
- /// Results of a single benchmark scenario.
- /// </summary>
- public sealed partial class ScenarioResult : pb::IMessage<ScenarioResult>
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser<ScenarioResult> _parser = new pb::MessageParser<ScenarioResult>(() => new ScenarioResult());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<ScenarioResult> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[18]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ScenarioResult() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ScenarioResult(ScenarioResult other) : this() {
- scenario_ = other.scenario_ != null ? other.scenario_.Clone() : null;
- latencies_ = other.latencies_ != null ? other.latencies_.Clone() : null;
- clientStats_ = other.clientStats_.Clone();
- serverStats_ = other.serverStats_.Clone();
- serverCores_ = other.serverCores_.Clone();
- summary_ = other.summary_ != null ? other.summary_.Clone() : null;
- clientSuccess_ = other.clientSuccess_.Clone();
- serverSuccess_ = other.serverSuccess_.Clone();
- requestResults_ = other.requestResults_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ScenarioResult Clone() {
- return new ScenarioResult(this);
- }
- /// <summary>Field number for the "scenario" field.</summary>
- public const int ScenarioFieldNumber = 1;
- private global::Grpc.Testing.Scenario scenario_;
- /// <summary>
- /// Inputs used to run the scenario.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Grpc.Testing.Scenario Scenario {
- get { return scenario_; }
- set {
- scenario_ = value;
- }
- }
- /// <summary>Field number for the "latencies" field.</summary>
- public const int LatenciesFieldNumber = 2;
- private global::Grpc.Testing.HistogramData latencies_;
- /// <summary>
- /// Histograms from all clients merged into one histogram.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Grpc.Testing.HistogramData Latencies {
- get { return latencies_; }
- set {
- latencies_ = value;
- }
- }
- /// <summary>Field number for the "client_stats" field.</summary>
- public const int ClientStatsFieldNumber = 3;
- private static readonly pb::FieldCodec<global::Grpc.Testing.ClientStats> _repeated_clientStats_codec
- = pb::FieldCodec.ForMessage(26, global::Grpc.Testing.ClientStats.Parser);
- private readonly pbc::RepeatedField<global::Grpc.Testing.ClientStats> clientStats_ = new pbc::RepeatedField<global::Grpc.Testing.ClientStats>();
- /// <summary>
- /// Client stats for each client
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Grpc.Testing.ClientStats> ClientStats {
- get { return clientStats_; }
- }
- /// <summary>Field number for the "server_stats" field.</summary>
- public const int ServerStatsFieldNumber = 4;
- private static readonly pb::FieldCodec<global::Grpc.Testing.ServerStats> _repeated_serverStats_codec
- = pb::FieldCodec.ForMessage(34, global::Grpc.Testing.ServerStats.Parser);
- private readonly pbc::RepeatedField<global::Grpc.Testing.ServerStats> serverStats_ = new pbc::RepeatedField<global::Grpc.Testing.ServerStats>();
- /// <summary>
- /// Server stats for each server
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Grpc.Testing.ServerStats> ServerStats {
- get { return serverStats_; }
- }
- /// <summary>Field number for the "server_cores" field.</summary>
- public const int ServerCoresFieldNumber = 5;
- private static readonly pb::FieldCodec<int> _repeated_serverCores_codec
- = pb::FieldCodec.ForInt32(42);
- private readonly pbc::RepeatedField<int> serverCores_ = new pbc::RepeatedField<int>();
- /// <summary>
- /// Number of cores available to each server
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<int> ServerCores {
- get { return serverCores_; }
- }
- /// <summary>Field number for the "summary" field.</summary>
- public const int SummaryFieldNumber = 6;
- private global::Grpc.Testing.ScenarioResultSummary summary_;
- /// <summary>
- /// An after-the-fact computed summary
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Grpc.Testing.ScenarioResultSummary Summary {
- get { return summary_; }
- set {
- summary_ = value;
- }
- }
- /// <summary>Field number for the "client_success" field.</summary>
- public const int ClientSuccessFieldNumber = 7;
- private static readonly pb::FieldCodec<bool> _repeated_clientSuccess_codec
- = pb::FieldCodec.ForBool(58);
- private readonly pbc::RepeatedField<bool> clientSuccess_ = new pbc::RepeatedField<bool>();
- /// <summary>
- /// Information on success or failure of each worker
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<bool> ClientSuccess {
- get { return clientSuccess_; }
- }
- /// <summary>Field number for the "server_success" field.</summary>
- public const int ServerSuccessFieldNumber = 8;
- private static readonly pb::FieldCodec<bool> _repeated_serverSuccess_codec
- = pb::FieldCodec.ForBool(66);
- private readonly pbc::RepeatedField<bool> serverSuccess_ = new pbc::RepeatedField<bool>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<bool> ServerSuccess {
- get { return serverSuccess_; }
- }
- /// <summary>Field number for the "request_results" field.</summary>
- public const int RequestResultsFieldNumber = 9;
- private static readonly pb::FieldCodec<global::Grpc.Testing.RequestResultCount> _repeated_requestResults_codec
- = pb::FieldCodec.ForMessage(74, global::Grpc.Testing.RequestResultCount.Parser);
- private readonly pbc::RepeatedField<global::Grpc.Testing.RequestResultCount> requestResults_ = new pbc::RepeatedField<global::Grpc.Testing.RequestResultCount>();
- /// <summary>
- /// Number of failed requests (one row per status code seen)
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Grpc.Testing.RequestResultCount> RequestResults {
- get { return requestResults_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as ScenarioResult);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(ScenarioResult other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(Scenario, other.Scenario)) return false;
- if (!object.Equals(Latencies, other.Latencies)) return false;
- if(!clientStats_.Equals(other.clientStats_)) return false;
- if(!serverStats_.Equals(other.serverStats_)) return false;
- if(!serverCores_.Equals(other.serverCores_)) return false;
- if (!object.Equals(Summary, other.Summary)) return false;
- if(!clientSuccess_.Equals(other.clientSuccess_)) return false;
- if(!serverSuccess_.Equals(other.serverSuccess_)) return false;
- if(!requestResults_.Equals(other.requestResults_)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (scenario_ != null) hash ^= Scenario.GetHashCode();
- if (latencies_ != null) hash ^= Latencies.GetHashCode();
- hash ^= clientStats_.GetHashCode();
- hash ^= serverStats_.GetHashCode();
- hash ^= serverCores_.GetHashCode();
- if (summary_ != null) hash ^= Summary.GetHashCode();
- hash ^= clientSuccess_.GetHashCode();
- hash ^= serverSuccess_.GetHashCode();
- hash ^= requestResults_.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- output.WriteRawMessage(this);
- #else
- if (scenario_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Scenario);
- }
- if (latencies_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Latencies);
- }
- clientStats_.WriteTo(output, _repeated_clientStats_codec);
- serverStats_.WriteTo(output, _repeated_serverStats_codec);
- serverCores_.WriteTo(output, _repeated_serverCores_codec);
- if (summary_ != null) {
- output.WriteRawTag(50);
- output.WriteMessage(Summary);
- }
- clientSuccess_.WriteTo(output, _repeated_clientSuccess_codec);
- serverSuccess_.WriteTo(output, _repeated_serverSuccess_codec);
- requestResults_.WriteTo(output, _repeated_requestResults_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (scenario_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Scenario);
- }
- if (latencies_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Latencies);
- }
- clientStats_.WriteTo(ref output, _repeated_clientStats_codec);
- serverStats_.WriteTo(ref output, _repeated_serverStats_codec);
- serverCores_.WriteTo(ref output, _repeated_serverCores_codec);
- if (summary_ != null) {
- output.WriteRawTag(50);
- output.WriteMessage(Summary);
- }
- clientSuccess_.WriteTo(ref output, _repeated_clientSuccess_codec);
- serverSuccess_.WriteTo(ref output, _repeated_serverSuccess_codec);
- requestResults_.WriteTo(ref output, _repeated_requestResults_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(ref output);
- }
- }
- #endif
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (scenario_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Scenario);
- }
- if (latencies_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Latencies);
- }
- size += clientStats_.CalculateSize(_repeated_clientStats_codec);
- size += serverStats_.CalculateSize(_repeated_serverStats_codec);
- size += serverCores_.CalculateSize(_repeated_serverCores_codec);
- if (summary_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Summary);
- }
- size += clientSuccess_.CalculateSize(_repeated_clientSuccess_codec);
- size += serverSuccess_.CalculateSize(_repeated_serverSuccess_codec);
- size += requestResults_.CalculateSize(_repeated_requestResults_codec);
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(ScenarioResult other) {
- if (other == null) {
- return;
- }
- if (other.scenario_ != null) {
- if (scenario_ == null) {
- Scenario = new global::Grpc.Testing.Scenario();
- }
- Scenario.MergeFrom(other.Scenario);
- }
- if (other.latencies_ != null) {
- if (latencies_ == null) {
- Latencies = new global::Grpc.Testing.HistogramData();
- }
- Latencies.MergeFrom(other.Latencies);
- }
- clientStats_.Add(other.clientStats_);
- serverStats_.Add(other.serverStats_);
- serverCores_.Add(other.serverCores_);
- if (other.summary_ != null) {
- if (summary_ == null) {
- Summary = new global::Grpc.Testing.ScenarioResultSummary();
- }
- Summary.MergeFrom(other.Summary);
- }
- clientSuccess_.Add(other.clientSuccess_);
- serverSuccess_.Add(other.serverSuccess_);
- requestResults_.Add(other.requestResults_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- input.ReadRawMessage(this);
- #else
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (scenario_ == null) {
- Scenario = new global::Grpc.Testing.Scenario();
- }
- input.ReadMessage(Scenario);
- break;
- }
- case 18: {
- if (latencies_ == null) {
- Latencies = new global::Grpc.Testing.HistogramData();
- }
- input.ReadMessage(Latencies);
- break;
- }
- case 26: {
- clientStats_.AddEntriesFrom(input, _repeated_clientStats_codec);
- break;
- }
- case 34: {
- serverStats_.AddEntriesFrom(input, _repeated_serverStats_codec);
- break;
- }
- case 42:
- case 40: {
- serverCores_.AddEntriesFrom(input, _repeated_serverCores_codec);
- break;
- }
- case 50: {
- if (summary_ == null) {
- Summary = new global::Grpc.Testing.ScenarioResultSummary();
- }
- input.ReadMessage(Summary);
- break;
- }
- case 58:
- case 56: {
- clientSuccess_.AddEntriesFrom(input, _repeated_clientSuccess_codec);
- break;
- }
- case 66:
- case 64: {
- serverSuccess_.AddEntriesFrom(input, _repeated_serverSuccess_codec);
- break;
- }
- case 74: {
- requestResults_.AddEntriesFrom(input, _repeated_requestResults_codec);
- break;
- }
- }
- }
- #endif
- }
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
- break;
- case 10: {
- if (scenario_ == null) {
- Scenario = new global::Grpc.Testing.Scenario();
- }
- input.ReadMessage(Scenario);
- break;
- }
- case 18: {
- if (latencies_ == null) {
- Latencies = new global::Grpc.Testing.HistogramData();
- }
- input.ReadMessage(Latencies);
- break;
- }
- case 26: {
- clientStats_.AddEntriesFrom(ref input, _repeated_clientStats_codec);
- break;
- }
- case 34: {
- serverStats_.AddEntriesFrom(ref input, _repeated_serverStats_codec);
- break;
- }
- case 42:
- case 40: {
- serverCores_.AddEntriesFrom(ref input, _repeated_serverCores_codec);
- break;
- }
- case 50: {
- if (summary_ == null) {
- Summary = new global::Grpc.Testing.ScenarioResultSummary();
- }
- input.ReadMessage(Summary);
- break;
- }
- case 58:
- case 56: {
- clientSuccess_.AddEntriesFrom(ref input, _repeated_clientSuccess_codec);
- break;
- }
- case 66:
- case 64: {
- serverSuccess_.AddEntriesFrom(ref input, _repeated_serverSuccess_codec);
- break;
- }
- case 74: {
- requestResults_.AddEntriesFrom(ref input, _repeated_requestResults_codec);
- break;
- }
- }
- }
- }
- #endif
- }
- #endregion
- }
- #endregion Designer generated code
|