Control.cs 169 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790
  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: src/proto/grpc/testing/control.proto
  4. // </auto-generated>
  5. #pragma warning disable 1591, 0612, 3021
  6. #region Designer generated code
  7. using pb = global::Google.Protobuf;
  8. using pbc = global::Google.Protobuf.Collections;
  9. using pbr = global::Google.Protobuf.Reflection;
  10. using scg = global::System.Collections.Generic;
  11. namespace Grpc.Testing {
  12. /// <summary>Holder for reflection information generated from src/proto/grpc/testing/control.proto</summary>
  13. public static partial class ControlReflection {
  14. #region Descriptor
  15. /// <summary>File descriptor for src/proto/grpc/testing/control.proto</summary>
  16. public static pbr::FileDescriptor Descriptor {
  17. get { return descriptor; }
  18. }
  19. private static pbr::FileDescriptor descriptor;
  20. static ControlReflection() {
  21. byte[] descriptorData = global::System.Convert.FromBase64String(
  22. string.Concat(
  23. "CiRzcmMvcHJvdG8vZ3JwYy90ZXN0aW5nL2NvbnRyb2wucHJvdG8SDGdycGMu",
  24. "dGVzdGluZxolc3JjL3Byb3RvL2dycGMvdGVzdGluZy9wYXlsb2Fkcy5wcm90",
  25. "bxoic3JjL3Byb3RvL2dycGMvdGVzdGluZy9zdGF0cy5wcm90byIlCg1Qb2lz",
  26. "c29uUGFyYW1zEhQKDG9mZmVyZWRfbG9hZBgBIAEoASISChBDbG9zZWRMb29w",
  27. "UGFyYW1zInsKCkxvYWRQYXJhbXMSNQoLY2xvc2VkX2xvb3AYASABKAsyHi5n",
  28. "cnBjLnRlc3RpbmcuQ2xvc2VkTG9vcFBhcmFtc0gAEi4KB3BvaXNzb24YAiAB",
  29. "KAsyGy5ncnBjLnRlc3RpbmcuUG9pc3NvblBhcmFtc0gAQgYKBGxvYWQiVgoO",
  30. "U2VjdXJpdHlQYXJhbXMSEwoLdXNlX3Rlc3RfY2EYASABKAgSHAoUc2VydmVy",
  31. "X2hvc3Rfb3ZlcnJpZGUYAiABKAkSEQoJY3JlZF90eXBlGAMgASgJIk0KCkNo",
  32. "YW5uZWxBcmcSDAoEbmFtZRgBIAEoCRITCglzdHJfdmFsdWUYAiABKAlIABIT",
  33. "CglpbnRfdmFsdWUYAyABKAVIAEIHCgV2YWx1ZSKiBQoMQ2xpZW50Q29uZmln",
  34. "EhYKDnNlcnZlcl90YXJnZXRzGAEgAygJEi0KC2NsaWVudF90eXBlGAIgASgO",
  35. "MhguZ3JwYy50ZXN0aW5nLkNsaWVudFR5cGUSNQoPc2VjdXJpdHlfcGFyYW1z",
  36. "GAMgASgLMhwuZ3JwYy50ZXN0aW5nLlNlY3VyaXR5UGFyYW1zEiQKHG91dHN0",
  37. "YW5kaW5nX3JwY3NfcGVyX2NoYW5uZWwYBCABKAUSFwoPY2xpZW50X2NoYW5u",
  38. "ZWxzGAUgASgFEhwKFGFzeW5jX2NsaWVudF90aHJlYWRzGAcgASgFEicKCHJw",
  39. "Y190eXBlGAggASgOMhUuZ3JwYy50ZXN0aW5nLlJwY1R5cGUSLQoLbG9hZF9w",
  40. "YXJhbXMYCiABKAsyGC5ncnBjLnRlc3RpbmcuTG9hZFBhcmFtcxIzCg5wYXls",
  41. "b2FkX2NvbmZpZxgLIAEoCzIbLmdycGMudGVzdGluZy5QYXlsb2FkQ29uZmln",
  42. "EjcKEGhpc3RvZ3JhbV9wYXJhbXMYDCABKAsyHS5ncnBjLnRlc3RpbmcuSGlz",
  43. "dG9ncmFtUGFyYW1zEhEKCWNvcmVfbGlzdBgNIAMoBRISCgpjb3JlX2xpbWl0",
  44. "GA4gASgFEhgKEG90aGVyX2NsaWVudF9hcGkYDyABKAkSLgoMY2hhbm5lbF9h",
  45. "cmdzGBAgAygLMhguZ3JwYy50ZXN0aW5nLkNoYW5uZWxBcmcSFgoOdGhyZWFk",
  46. "c19wZXJfY3EYESABKAUSGwoTbWVzc2FnZXNfcGVyX3N0cmVhbRgSIAEoBRIY",
  47. "ChB1c2VfY29hbGVzY2VfYXBpGBMgASgIEjEKKW1lZGlhbl9sYXRlbmN5X2Nv",
  48. "bGxlY3Rpb25faW50ZXJ2YWxfbWlsbGlzGBQgASgFIjgKDENsaWVudFN0YXR1",
  49. "cxIoCgVzdGF0cxgBIAEoCzIZLmdycGMudGVzdGluZy5DbGllbnRTdGF0cyIV",
  50. "CgRNYXJrEg0KBXJlc2V0GAEgASgIImgKCkNsaWVudEFyZ3MSKwoFc2V0dXAY",
  51. "ASABKAsyGi5ncnBjLnRlc3RpbmcuQ2xpZW50Q29uZmlnSAASIgoEbWFyaxgC",
  52. "IAEoCzISLmdycGMudGVzdGluZy5NYXJrSABCCQoHYXJndHlwZSL9AgoMU2Vy",
  53. "dmVyQ29uZmlnEi0KC3NlcnZlcl90eXBlGAEgASgOMhguZ3JwYy50ZXN0aW5n",
  54. "LlNlcnZlclR5cGUSNQoPc2VjdXJpdHlfcGFyYW1zGAIgASgLMhwuZ3JwYy50",
  55. "ZXN0aW5nLlNlY3VyaXR5UGFyYW1zEgwKBHBvcnQYBCABKAUSHAoUYXN5bmNf",
  56. "c2VydmVyX3RocmVhZHMYByABKAUSEgoKY29yZV9saW1pdBgIIAEoBRIzCg5w",
  57. "YXlsb2FkX2NvbmZpZxgJIAEoCzIbLmdycGMudGVzdGluZy5QYXlsb2FkQ29u",
  58. "ZmlnEhEKCWNvcmVfbGlzdBgKIAMoBRIYChBvdGhlcl9zZXJ2ZXJfYXBpGAsg",
  59. "ASgJEhYKDnRocmVhZHNfcGVyX2NxGAwgASgFEhwKE3Jlc291cmNlX3F1b3Rh",
  60. "X3NpemUY6QcgASgFEi8KDGNoYW5uZWxfYXJncxjqByADKAsyGC5ncnBjLnRl",
  61. "c3RpbmcuQ2hhbm5lbEFyZyJoCgpTZXJ2ZXJBcmdzEisKBXNldHVwGAEgASgL",
  62. "MhouZ3JwYy50ZXN0aW5nLlNlcnZlckNvbmZpZ0gAEiIKBG1hcmsYAiABKAsy",
  63. "Ei5ncnBjLnRlc3RpbmcuTWFya0gAQgkKB2FyZ3R5cGUiVQoMU2VydmVyU3Rh",
  64. "dHVzEigKBXN0YXRzGAEgASgLMhkuZ3JwYy50ZXN0aW5nLlNlcnZlclN0YXRz",
  65. "EgwKBHBvcnQYAiABKAUSDQoFY29yZXMYAyABKAUiDQoLQ29yZVJlcXVlc3Qi",
  66. "HQoMQ29yZVJlc3BvbnNlEg0KBWNvcmVzGAEgASgFIgYKBFZvaWQi/QEKCFNj",
  67. "ZW5hcmlvEgwKBG5hbWUYASABKAkSMQoNY2xpZW50X2NvbmZpZxgCIAEoCzIa",
  68. "LmdycGMudGVzdGluZy5DbGllbnRDb25maWcSEwoLbnVtX2NsaWVudHMYAyAB",
  69. "KAUSMQoNc2VydmVyX2NvbmZpZxgEIAEoCzIaLmdycGMudGVzdGluZy5TZXJ2",
  70. "ZXJDb25maWcSEwoLbnVtX3NlcnZlcnMYBSABKAUSFgoOd2FybXVwX3NlY29u",
  71. "ZHMYBiABKAUSGQoRYmVuY2htYXJrX3NlY29uZHMYByABKAUSIAoYc3Bhd25f",
  72. "bG9jYWxfd29ya2VyX2NvdW50GAggASgFIjYKCVNjZW5hcmlvcxIpCglzY2Vu",
  73. "YXJpb3MYASADKAsyFi5ncnBjLnRlc3RpbmcuU2NlbmFyaW8ihAQKFVNjZW5h",
  74. "cmlvUmVzdWx0U3VtbWFyeRILCgNxcHMYASABKAESGwoTcXBzX3Blcl9zZXJ2",
  75. "ZXJfY29yZRgCIAEoARIaChJzZXJ2ZXJfc3lzdGVtX3RpbWUYAyABKAESGAoQ",
  76. "c2VydmVyX3VzZXJfdGltZRgEIAEoARIaChJjbGllbnRfc3lzdGVtX3RpbWUY",
  77. "BSABKAESGAoQY2xpZW50X3VzZXJfdGltZRgGIAEoARISCgpsYXRlbmN5XzUw",
  78. "GAcgASgBEhIKCmxhdGVuY3lfOTAYCCABKAESEgoKbGF0ZW5jeV85NRgJIAEo",
  79. "ARISCgpsYXRlbmN5Xzk5GAogASgBEhMKC2xhdGVuY3lfOTk5GAsgASgBEhgK",
  80. "EHNlcnZlcl9jcHVfdXNhZ2UYDCABKAESJgoec3VjY2Vzc2Z1bF9yZXF1ZXN0",
  81. "c19wZXJfc2Vjb25kGA0gASgBEiIKGmZhaWxlZF9yZXF1ZXN0c19wZXJfc2Vj",
  82. "b25kGA4gASgBEiAKGGNsaWVudF9wb2xsc19wZXJfcmVxdWVzdBgPIAEoARIg",
  83. "ChhzZXJ2ZXJfcG9sbHNfcGVyX3JlcXVlc3QYECABKAESIgoac2VydmVyX3F1",
  84. "ZXJpZXNfcGVyX2NwdV9zZWMYESABKAESIgoaY2xpZW50X3F1ZXJpZXNfcGVy",
  85. "X2NwdV9zZWMYEiABKAEigwMKDlNjZW5hcmlvUmVzdWx0EigKCHNjZW5hcmlv",
  86. "GAEgASgLMhYuZ3JwYy50ZXN0aW5nLlNjZW5hcmlvEi4KCWxhdGVuY2llcxgC",
  87. "IAEoCzIbLmdycGMudGVzdGluZy5IaXN0b2dyYW1EYXRhEi8KDGNsaWVudF9z",
  88. "dGF0cxgDIAMoCzIZLmdycGMudGVzdGluZy5DbGllbnRTdGF0cxIvCgxzZXJ2",
  89. "ZXJfc3RhdHMYBCADKAsyGS5ncnBjLnRlc3RpbmcuU2VydmVyU3RhdHMSFAoM",
  90. "c2VydmVyX2NvcmVzGAUgAygFEjQKB3N1bW1hcnkYBiABKAsyIy5ncnBjLnRl",
  91. "c3RpbmcuU2NlbmFyaW9SZXN1bHRTdW1tYXJ5EhYKDmNsaWVudF9zdWNjZXNz",
  92. "GAcgAygIEhYKDnNlcnZlcl9zdWNjZXNzGAggAygIEjkKD3JlcXVlc3RfcmVz",
  93. "dWx0cxgJIAMoCzIgLmdycGMudGVzdGluZy5SZXF1ZXN0UmVzdWx0Q291bnQq",
  94. "VgoKQ2xpZW50VHlwZRIPCgtTWU5DX0NMSUVOVBAAEhAKDEFTWU5DX0NMSUVO",
  95. "VBABEhAKDE9USEVSX0NMSUVOVBACEhMKD0NBTExCQUNLX0NMSUVOVBADKnAK",
  96. "ClNlcnZlclR5cGUSDwoLU1lOQ19TRVJWRVIQABIQCgxBU1lOQ19TRVJWRVIQ",
  97. "ARIYChRBU1lOQ19HRU5FUklDX1NFUlZFUhACEhAKDE9USEVSX1NFUlZFUhAD",
  98. "EhMKD0NBTExCQUNLX1NFUlZFUhAEKnIKB1JwY1R5cGUSCQoFVU5BUlkQABIN",
  99. "CglTVFJFQU1JTkcQARIZChVTVFJFQU1JTkdfRlJPTV9DTElFTlQQAhIZChVT",
  100. "VFJFQU1JTkdfRlJPTV9TRVJWRVIQAxIXChNTVFJFQU1JTkdfQk9USF9XQVlT",
  101. "EARiBnByb3RvMw=="));
  102. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  103. new pbr::FileDescriptor[] { global::Grpc.Testing.PayloadsReflection.Descriptor, global::Grpc.Testing.StatsReflection.Descriptor, },
  104. new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Grpc.Testing.ClientType), typeof(global::Grpc.Testing.ServerType), typeof(global::Grpc.Testing.RpcType), }, new pbr::GeneratedClrTypeInfo[] {
  105. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.PoissonParams), global::Grpc.Testing.PoissonParams.Parser, new[]{ "OfferedLoad" }, null, null, null),
  106. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ClosedLoopParams), global::Grpc.Testing.ClosedLoopParams.Parser, null, null, null, null),
  107. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.LoadParams), global::Grpc.Testing.LoadParams.Parser, new[]{ "ClosedLoop", "Poisson" }, new[]{ "Load" }, null, null),
  108. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.SecurityParams), global::Grpc.Testing.SecurityParams.Parser, new[]{ "UseTestCa", "ServerHostOverride", "CredType" }, null, null, null),
  109. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ChannelArg), global::Grpc.Testing.ChannelArg.Parser, new[]{ "Name", "StrValue", "IntValue" }, new[]{ "Value" }, null, null),
  110. 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" }, null, null, null),
  111. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ClientStatus), global::Grpc.Testing.ClientStatus.Parser, new[]{ "Stats" }, null, null, null),
  112. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.Mark), global::Grpc.Testing.Mark.Parser, new[]{ "Reset" }, null, null, null),
  113. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ClientArgs), global::Grpc.Testing.ClientArgs.Parser, new[]{ "Setup", "Mark" }, new[]{ "Argtype" }, null, null),
  114. 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" }, null, null, null),
  115. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ServerArgs), global::Grpc.Testing.ServerArgs.Parser, new[]{ "Setup", "Mark" }, new[]{ "Argtype" }, null, null),
  116. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ServerStatus), global::Grpc.Testing.ServerStatus.Parser, new[]{ "Stats", "Port", "Cores" }, null, null, null),
  117. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.CoreRequest), global::Grpc.Testing.CoreRequest.Parser, null, null, null, null),
  118. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.CoreResponse), global::Grpc.Testing.CoreResponse.Parser, new[]{ "Cores" }, null, null, null),
  119. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.Void), global::Grpc.Testing.Void.Parser, null, null, null, null),
  120. 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),
  121. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.Scenarios), global::Grpc.Testing.Scenarios.Parser, new[]{ "Scenarios_" }, null, null, null),
  122. 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),
  123. 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)
  124. }));
  125. }
  126. #endregion
  127. }
  128. #region Enums
  129. public enum ClientType {
  130. /// <summary>
  131. /// Many languages support a basic distinction between using
  132. /// sync or async client, and this allows the specification
  133. /// </summary>
  134. [pbr::OriginalName("SYNC_CLIENT")] SyncClient = 0,
  135. [pbr::OriginalName("ASYNC_CLIENT")] AsyncClient = 1,
  136. /// <summary>
  137. /// used for some language-specific variants
  138. /// </summary>
  139. [pbr::OriginalName("OTHER_CLIENT")] OtherClient = 2,
  140. [pbr::OriginalName("CALLBACK_CLIENT")] CallbackClient = 3,
  141. }
  142. public enum ServerType {
  143. [pbr::OriginalName("SYNC_SERVER")] SyncServer = 0,
  144. [pbr::OriginalName("ASYNC_SERVER")] AsyncServer = 1,
  145. [pbr::OriginalName("ASYNC_GENERIC_SERVER")] AsyncGenericServer = 2,
  146. /// <summary>
  147. /// used for some language-specific variants
  148. /// </summary>
  149. [pbr::OriginalName("OTHER_SERVER")] OtherServer = 3,
  150. [pbr::OriginalName("CALLBACK_SERVER")] CallbackServer = 4,
  151. }
  152. public enum RpcType {
  153. [pbr::OriginalName("UNARY")] Unary = 0,
  154. [pbr::OriginalName("STREAMING")] Streaming = 1,
  155. [pbr::OriginalName("STREAMING_FROM_CLIENT")] StreamingFromClient = 2,
  156. [pbr::OriginalName("STREAMING_FROM_SERVER")] StreamingFromServer = 3,
  157. [pbr::OriginalName("STREAMING_BOTH_WAYS")] StreamingBothWays = 4,
  158. }
  159. #endregion
  160. #region Messages
  161. /// <summary>
  162. /// Parameters of poisson process distribution, which is a good representation
  163. /// of activity coming in from independent identical stationary sources.
  164. /// </summary>
  165. public sealed partial class PoissonParams : pb::IMessage<PoissonParams> {
  166. private static readonly pb::MessageParser<PoissonParams> _parser = new pb::MessageParser<PoissonParams>(() => new PoissonParams());
  167. private pb::UnknownFieldSet _unknownFields;
  168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  169. public static pb::MessageParser<PoissonParams> Parser { get { return _parser; } }
  170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  171. public static pbr::MessageDescriptor Descriptor {
  172. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[0]; }
  173. }
  174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  175. pbr::MessageDescriptor pb::IMessage.Descriptor {
  176. get { return Descriptor; }
  177. }
  178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  179. public PoissonParams() {
  180. OnConstruction();
  181. }
  182. partial void OnConstruction();
  183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  184. public PoissonParams(PoissonParams other) : this() {
  185. offeredLoad_ = other.offeredLoad_;
  186. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  187. }
  188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  189. public PoissonParams Clone() {
  190. return new PoissonParams(this);
  191. }
  192. /// <summary>Field number for the "offered_load" field.</summary>
  193. public const int OfferedLoadFieldNumber = 1;
  194. private double offeredLoad_;
  195. /// <summary>
  196. /// The rate of arrivals (a.k.a. lambda parameter of the exp distribution).
  197. /// </summary>
  198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  199. public double OfferedLoad {
  200. get { return offeredLoad_; }
  201. set {
  202. offeredLoad_ = value;
  203. }
  204. }
  205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  206. public override bool Equals(object other) {
  207. return Equals(other as PoissonParams);
  208. }
  209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  210. public bool Equals(PoissonParams other) {
  211. if (ReferenceEquals(other, null)) {
  212. return false;
  213. }
  214. if (ReferenceEquals(other, this)) {
  215. return true;
  216. }
  217. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OfferedLoad, other.OfferedLoad)) return false;
  218. return Equals(_unknownFields, other._unknownFields);
  219. }
  220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  221. public override int GetHashCode() {
  222. int hash = 1;
  223. if (OfferedLoad != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OfferedLoad);
  224. if (_unknownFields != null) {
  225. hash ^= _unknownFields.GetHashCode();
  226. }
  227. return hash;
  228. }
  229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  230. public override string ToString() {
  231. return pb::JsonFormatter.ToDiagnosticString(this);
  232. }
  233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  234. public void WriteTo(pb::CodedOutputStream output) {
  235. if (OfferedLoad != 0D) {
  236. output.WriteRawTag(9);
  237. output.WriteDouble(OfferedLoad);
  238. }
  239. if (_unknownFields != null) {
  240. _unknownFields.WriteTo(output);
  241. }
  242. }
  243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  244. public int CalculateSize() {
  245. int size = 0;
  246. if (OfferedLoad != 0D) {
  247. size += 1 + 8;
  248. }
  249. if (_unknownFields != null) {
  250. size += _unknownFields.CalculateSize();
  251. }
  252. return size;
  253. }
  254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  255. public void MergeFrom(PoissonParams other) {
  256. if (other == null) {
  257. return;
  258. }
  259. if (other.OfferedLoad != 0D) {
  260. OfferedLoad = other.OfferedLoad;
  261. }
  262. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  263. }
  264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  265. public void MergeFrom(pb::CodedInputStream input) {
  266. uint tag;
  267. while ((tag = input.ReadTag()) != 0) {
  268. switch(tag) {
  269. default:
  270. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  271. break;
  272. case 9: {
  273. OfferedLoad = input.ReadDouble();
  274. break;
  275. }
  276. }
  277. }
  278. }
  279. }
  280. /// <summary>
  281. /// Once an RPC finishes, immediately start a new one.
  282. /// No configuration parameters needed.
  283. /// </summary>
  284. public sealed partial class ClosedLoopParams : pb::IMessage<ClosedLoopParams> {
  285. private static readonly pb::MessageParser<ClosedLoopParams> _parser = new pb::MessageParser<ClosedLoopParams>(() => new ClosedLoopParams());
  286. private pb::UnknownFieldSet _unknownFields;
  287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  288. public static pb::MessageParser<ClosedLoopParams> Parser { get { return _parser; } }
  289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  290. public static pbr::MessageDescriptor Descriptor {
  291. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[1]; }
  292. }
  293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  294. pbr::MessageDescriptor pb::IMessage.Descriptor {
  295. get { return Descriptor; }
  296. }
  297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  298. public ClosedLoopParams() {
  299. OnConstruction();
  300. }
  301. partial void OnConstruction();
  302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  303. public ClosedLoopParams(ClosedLoopParams other) : this() {
  304. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  305. }
  306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  307. public ClosedLoopParams Clone() {
  308. return new ClosedLoopParams(this);
  309. }
  310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  311. public override bool Equals(object other) {
  312. return Equals(other as ClosedLoopParams);
  313. }
  314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  315. public bool Equals(ClosedLoopParams other) {
  316. if (ReferenceEquals(other, null)) {
  317. return false;
  318. }
  319. if (ReferenceEquals(other, this)) {
  320. return true;
  321. }
  322. return Equals(_unknownFields, other._unknownFields);
  323. }
  324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  325. public override int GetHashCode() {
  326. int hash = 1;
  327. if (_unknownFields != null) {
  328. hash ^= _unknownFields.GetHashCode();
  329. }
  330. return hash;
  331. }
  332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  333. public override string ToString() {
  334. return pb::JsonFormatter.ToDiagnosticString(this);
  335. }
  336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  337. public void WriteTo(pb::CodedOutputStream output) {
  338. if (_unknownFields != null) {
  339. _unknownFields.WriteTo(output);
  340. }
  341. }
  342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  343. public int CalculateSize() {
  344. int size = 0;
  345. if (_unknownFields != null) {
  346. size += _unknownFields.CalculateSize();
  347. }
  348. return size;
  349. }
  350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  351. public void MergeFrom(ClosedLoopParams other) {
  352. if (other == null) {
  353. return;
  354. }
  355. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  356. }
  357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  358. public void MergeFrom(pb::CodedInputStream input) {
  359. uint tag;
  360. while ((tag = input.ReadTag()) != 0) {
  361. switch(tag) {
  362. default:
  363. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  364. break;
  365. }
  366. }
  367. }
  368. }
  369. public sealed partial class LoadParams : pb::IMessage<LoadParams> {
  370. private static readonly pb::MessageParser<LoadParams> _parser = new pb::MessageParser<LoadParams>(() => new LoadParams());
  371. private pb::UnknownFieldSet _unknownFields;
  372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  373. public static pb::MessageParser<LoadParams> Parser { get { return _parser; } }
  374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  375. public static pbr::MessageDescriptor Descriptor {
  376. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[2]; }
  377. }
  378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  379. pbr::MessageDescriptor pb::IMessage.Descriptor {
  380. get { return Descriptor; }
  381. }
  382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  383. public LoadParams() {
  384. OnConstruction();
  385. }
  386. partial void OnConstruction();
  387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  388. public LoadParams(LoadParams other) : this() {
  389. switch (other.LoadCase) {
  390. case LoadOneofCase.ClosedLoop:
  391. ClosedLoop = other.ClosedLoop.Clone();
  392. break;
  393. case LoadOneofCase.Poisson:
  394. Poisson = other.Poisson.Clone();
  395. break;
  396. }
  397. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  398. }
  399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  400. public LoadParams Clone() {
  401. return new LoadParams(this);
  402. }
  403. /// <summary>Field number for the "closed_loop" field.</summary>
  404. public const int ClosedLoopFieldNumber = 1;
  405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  406. public global::Grpc.Testing.ClosedLoopParams ClosedLoop {
  407. get { return loadCase_ == LoadOneofCase.ClosedLoop ? (global::Grpc.Testing.ClosedLoopParams) load_ : null; }
  408. set {
  409. load_ = value;
  410. loadCase_ = value == null ? LoadOneofCase.None : LoadOneofCase.ClosedLoop;
  411. }
  412. }
  413. /// <summary>Field number for the "poisson" field.</summary>
  414. public const int PoissonFieldNumber = 2;
  415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  416. public global::Grpc.Testing.PoissonParams Poisson {
  417. get { return loadCase_ == LoadOneofCase.Poisson ? (global::Grpc.Testing.PoissonParams) load_ : null; }
  418. set {
  419. load_ = value;
  420. loadCase_ = value == null ? LoadOneofCase.None : LoadOneofCase.Poisson;
  421. }
  422. }
  423. private object load_;
  424. /// <summary>Enum of possible cases for the "load" oneof.</summary>
  425. public enum LoadOneofCase {
  426. None = 0,
  427. ClosedLoop = 1,
  428. Poisson = 2,
  429. }
  430. private LoadOneofCase loadCase_ = LoadOneofCase.None;
  431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  432. public LoadOneofCase LoadCase {
  433. get { return loadCase_; }
  434. }
  435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  436. public void ClearLoad() {
  437. loadCase_ = LoadOneofCase.None;
  438. load_ = null;
  439. }
  440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  441. public override bool Equals(object other) {
  442. return Equals(other as LoadParams);
  443. }
  444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  445. public bool Equals(LoadParams other) {
  446. if (ReferenceEquals(other, null)) {
  447. return false;
  448. }
  449. if (ReferenceEquals(other, this)) {
  450. return true;
  451. }
  452. if (!object.Equals(ClosedLoop, other.ClosedLoop)) return false;
  453. if (!object.Equals(Poisson, other.Poisson)) return false;
  454. if (LoadCase != other.LoadCase) return false;
  455. return Equals(_unknownFields, other._unknownFields);
  456. }
  457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  458. public override int GetHashCode() {
  459. int hash = 1;
  460. if (loadCase_ == LoadOneofCase.ClosedLoop) hash ^= ClosedLoop.GetHashCode();
  461. if (loadCase_ == LoadOneofCase.Poisson) hash ^= Poisson.GetHashCode();
  462. hash ^= (int) loadCase_;
  463. if (_unknownFields != null) {
  464. hash ^= _unknownFields.GetHashCode();
  465. }
  466. return hash;
  467. }
  468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  469. public override string ToString() {
  470. return pb::JsonFormatter.ToDiagnosticString(this);
  471. }
  472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  473. public void WriteTo(pb::CodedOutputStream output) {
  474. if (loadCase_ == LoadOneofCase.ClosedLoop) {
  475. output.WriteRawTag(10);
  476. output.WriteMessage(ClosedLoop);
  477. }
  478. if (loadCase_ == LoadOneofCase.Poisson) {
  479. output.WriteRawTag(18);
  480. output.WriteMessage(Poisson);
  481. }
  482. if (_unknownFields != null) {
  483. _unknownFields.WriteTo(output);
  484. }
  485. }
  486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  487. public int CalculateSize() {
  488. int size = 0;
  489. if (loadCase_ == LoadOneofCase.ClosedLoop) {
  490. size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClosedLoop);
  491. }
  492. if (loadCase_ == LoadOneofCase.Poisson) {
  493. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Poisson);
  494. }
  495. if (_unknownFields != null) {
  496. size += _unknownFields.CalculateSize();
  497. }
  498. return size;
  499. }
  500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  501. public void MergeFrom(LoadParams other) {
  502. if (other == null) {
  503. return;
  504. }
  505. switch (other.LoadCase) {
  506. case LoadOneofCase.ClosedLoop:
  507. if (ClosedLoop == null) {
  508. ClosedLoop = new global::Grpc.Testing.ClosedLoopParams();
  509. }
  510. ClosedLoop.MergeFrom(other.ClosedLoop);
  511. break;
  512. case LoadOneofCase.Poisson:
  513. if (Poisson == null) {
  514. Poisson = new global::Grpc.Testing.PoissonParams();
  515. }
  516. Poisson.MergeFrom(other.Poisson);
  517. break;
  518. }
  519. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  520. }
  521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  522. public void MergeFrom(pb::CodedInputStream input) {
  523. uint tag;
  524. while ((tag = input.ReadTag()) != 0) {
  525. switch(tag) {
  526. default:
  527. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  528. break;
  529. case 10: {
  530. global::Grpc.Testing.ClosedLoopParams subBuilder = new global::Grpc.Testing.ClosedLoopParams();
  531. if (loadCase_ == LoadOneofCase.ClosedLoop) {
  532. subBuilder.MergeFrom(ClosedLoop);
  533. }
  534. input.ReadMessage(subBuilder);
  535. ClosedLoop = subBuilder;
  536. break;
  537. }
  538. case 18: {
  539. global::Grpc.Testing.PoissonParams subBuilder = new global::Grpc.Testing.PoissonParams();
  540. if (loadCase_ == LoadOneofCase.Poisson) {
  541. subBuilder.MergeFrom(Poisson);
  542. }
  543. input.ReadMessage(subBuilder);
  544. Poisson = subBuilder;
  545. break;
  546. }
  547. }
  548. }
  549. }
  550. }
  551. /// <summary>
  552. /// presence of SecurityParams implies use of TLS
  553. /// </summary>
  554. public sealed partial class SecurityParams : pb::IMessage<SecurityParams> {
  555. private static readonly pb::MessageParser<SecurityParams> _parser = new pb::MessageParser<SecurityParams>(() => new SecurityParams());
  556. private pb::UnknownFieldSet _unknownFields;
  557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  558. public static pb::MessageParser<SecurityParams> Parser { get { return _parser; } }
  559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  560. public static pbr::MessageDescriptor Descriptor {
  561. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[3]; }
  562. }
  563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  564. pbr::MessageDescriptor pb::IMessage.Descriptor {
  565. get { return Descriptor; }
  566. }
  567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  568. public SecurityParams() {
  569. OnConstruction();
  570. }
  571. partial void OnConstruction();
  572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  573. public SecurityParams(SecurityParams other) : this() {
  574. useTestCa_ = other.useTestCa_;
  575. serverHostOverride_ = other.serverHostOverride_;
  576. credType_ = other.credType_;
  577. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  578. }
  579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  580. public SecurityParams Clone() {
  581. return new SecurityParams(this);
  582. }
  583. /// <summary>Field number for the "use_test_ca" field.</summary>
  584. public const int UseTestCaFieldNumber = 1;
  585. private bool useTestCa_;
  586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  587. public bool UseTestCa {
  588. get { return useTestCa_; }
  589. set {
  590. useTestCa_ = value;
  591. }
  592. }
  593. /// <summary>Field number for the "server_host_override" field.</summary>
  594. public const int ServerHostOverrideFieldNumber = 2;
  595. private string serverHostOverride_ = "";
  596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  597. public string ServerHostOverride {
  598. get { return serverHostOverride_; }
  599. set {
  600. serverHostOverride_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  601. }
  602. }
  603. /// <summary>Field number for the "cred_type" field.</summary>
  604. public const int CredTypeFieldNumber = 3;
  605. private string credType_ = "";
  606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  607. public string CredType {
  608. get { return credType_; }
  609. set {
  610. credType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  611. }
  612. }
  613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  614. public override bool Equals(object other) {
  615. return Equals(other as SecurityParams);
  616. }
  617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  618. public bool Equals(SecurityParams other) {
  619. if (ReferenceEquals(other, null)) {
  620. return false;
  621. }
  622. if (ReferenceEquals(other, this)) {
  623. return true;
  624. }
  625. if (UseTestCa != other.UseTestCa) return false;
  626. if (ServerHostOverride != other.ServerHostOverride) return false;
  627. if (CredType != other.CredType) return false;
  628. return Equals(_unknownFields, other._unknownFields);
  629. }
  630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  631. public override int GetHashCode() {
  632. int hash = 1;
  633. if (UseTestCa != false) hash ^= UseTestCa.GetHashCode();
  634. if (ServerHostOverride.Length != 0) hash ^= ServerHostOverride.GetHashCode();
  635. if (CredType.Length != 0) hash ^= CredType.GetHashCode();
  636. if (_unknownFields != null) {
  637. hash ^= _unknownFields.GetHashCode();
  638. }
  639. return hash;
  640. }
  641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  642. public override string ToString() {
  643. return pb::JsonFormatter.ToDiagnosticString(this);
  644. }
  645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  646. public void WriteTo(pb::CodedOutputStream output) {
  647. if (UseTestCa != false) {
  648. output.WriteRawTag(8);
  649. output.WriteBool(UseTestCa);
  650. }
  651. if (ServerHostOverride.Length != 0) {
  652. output.WriteRawTag(18);
  653. output.WriteString(ServerHostOverride);
  654. }
  655. if (CredType.Length != 0) {
  656. output.WriteRawTag(26);
  657. output.WriteString(CredType);
  658. }
  659. if (_unknownFields != null) {
  660. _unknownFields.WriteTo(output);
  661. }
  662. }
  663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  664. public int CalculateSize() {
  665. int size = 0;
  666. if (UseTestCa != false) {
  667. size += 1 + 1;
  668. }
  669. if (ServerHostOverride.Length != 0) {
  670. size += 1 + pb::CodedOutputStream.ComputeStringSize(ServerHostOverride);
  671. }
  672. if (CredType.Length != 0) {
  673. size += 1 + pb::CodedOutputStream.ComputeStringSize(CredType);
  674. }
  675. if (_unknownFields != null) {
  676. size += _unknownFields.CalculateSize();
  677. }
  678. return size;
  679. }
  680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  681. public void MergeFrom(SecurityParams other) {
  682. if (other == null) {
  683. return;
  684. }
  685. if (other.UseTestCa != false) {
  686. UseTestCa = other.UseTestCa;
  687. }
  688. if (other.ServerHostOverride.Length != 0) {
  689. ServerHostOverride = other.ServerHostOverride;
  690. }
  691. if (other.CredType.Length != 0) {
  692. CredType = other.CredType;
  693. }
  694. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  695. }
  696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  697. public void MergeFrom(pb::CodedInputStream input) {
  698. uint tag;
  699. while ((tag = input.ReadTag()) != 0) {
  700. switch(tag) {
  701. default:
  702. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  703. break;
  704. case 8: {
  705. UseTestCa = input.ReadBool();
  706. break;
  707. }
  708. case 18: {
  709. ServerHostOverride = input.ReadString();
  710. break;
  711. }
  712. case 26: {
  713. CredType = input.ReadString();
  714. break;
  715. }
  716. }
  717. }
  718. }
  719. }
  720. public sealed partial class ChannelArg : pb::IMessage<ChannelArg> {
  721. private static readonly pb::MessageParser<ChannelArg> _parser = new pb::MessageParser<ChannelArg>(() => new ChannelArg());
  722. private pb::UnknownFieldSet _unknownFields;
  723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  724. public static pb::MessageParser<ChannelArg> Parser { get { return _parser; } }
  725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  726. public static pbr::MessageDescriptor Descriptor {
  727. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[4]; }
  728. }
  729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  730. pbr::MessageDescriptor pb::IMessage.Descriptor {
  731. get { return Descriptor; }
  732. }
  733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  734. public ChannelArg() {
  735. OnConstruction();
  736. }
  737. partial void OnConstruction();
  738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  739. public ChannelArg(ChannelArg other) : this() {
  740. name_ = other.name_;
  741. switch (other.ValueCase) {
  742. case ValueOneofCase.StrValue:
  743. StrValue = other.StrValue;
  744. break;
  745. case ValueOneofCase.IntValue:
  746. IntValue = other.IntValue;
  747. break;
  748. }
  749. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  750. }
  751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  752. public ChannelArg Clone() {
  753. return new ChannelArg(this);
  754. }
  755. /// <summary>Field number for the "name" field.</summary>
  756. public const int NameFieldNumber = 1;
  757. private string name_ = "";
  758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  759. public string Name {
  760. get { return name_; }
  761. set {
  762. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  763. }
  764. }
  765. /// <summary>Field number for the "str_value" field.</summary>
  766. public const int StrValueFieldNumber = 2;
  767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  768. public string StrValue {
  769. get { return valueCase_ == ValueOneofCase.StrValue ? (string) value_ : ""; }
  770. set {
  771. value_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  772. valueCase_ = ValueOneofCase.StrValue;
  773. }
  774. }
  775. /// <summary>Field number for the "int_value" field.</summary>
  776. public const int IntValueFieldNumber = 3;
  777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  778. public int IntValue {
  779. get { return valueCase_ == ValueOneofCase.IntValue ? (int) value_ : 0; }
  780. set {
  781. value_ = value;
  782. valueCase_ = ValueOneofCase.IntValue;
  783. }
  784. }
  785. private object value_;
  786. /// <summary>Enum of possible cases for the "value" oneof.</summary>
  787. public enum ValueOneofCase {
  788. None = 0,
  789. StrValue = 2,
  790. IntValue = 3,
  791. }
  792. private ValueOneofCase valueCase_ = ValueOneofCase.None;
  793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  794. public ValueOneofCase ValueCase {
  795. get { return valueCase_; }
  796. }
  797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  798. public void ClearValue() {
  799. valueCase_ = ValueOneofCase.None;
  800. value_ = null;
  801. }
  802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  803. public override bool Equals(object other) {
  804. return Equals(other as ChannelArg);
  805. }
  806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  807. public bool Equals(ChannelArg other) {
  808. if (ReferenceEquals(other, null)) {
  809. return false;
  810. }
  811. if (ReferenceEquals(other, this)) {
  812. return true;
  813. }
  814. if (Name != other.Name) return false;
  815. if (StrValue != other.StrValue) return false;
  816. if (IntValue != other.IntValue) return false;
  817. if (ValueCase != other.ValueCase) return false;
  818. return Equals(_unknownFields, other._unknownFields);
  819. }
  820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  821. public override int GetHashCode() {
  822. int hash = 1;
  823. if (Name.Length != 0) hash ^= Name.GetHashCode();
  824. if (valueCase_ == ValueOneofCase.StrValue) hash ^= StrValue.GetHashCode();
  825. if (valueCase_ == ValueOneofCase.IntValue) hash ^= IntValue.GetHashCode();
  826. hash ^= (int) valueCase_;
  827. if (_unknownFields != null) {
  828. hash ^= _unknownFields.GetHashCode();
  829. }
  830. return hash;
  831. }
  832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  833. public override string ToString() {
  834. return pb::JsonFormatter.ToDiagnosticString(this);
  835. }
  836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  837. public void WriteTo(pb::CodedOutputStream output) {
  838. if (Name.Length != 0) {
  839. output.WriteRawTag(10);
  840. output.WriteString(Name);
  841. }
  842. if (valueCase_ == ValueOneofCase.StrValue) {
  843. output.WriteRawTag(18);
  844. output.WriteString(StrValue);
  845. }
  846. if (valueCase_ == ValueOneofCase.IntValue) {
  847. output.WriteRawTag(24);
  848. output.WriteInt32(IntValue);
  849. }
  850. if (_unknownFields != null) {
  851. _unknownFields.WriteTo(output);
  852. }
  853. }
  854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  855. public int CalculateSize() {
  856. int size = 0;
  857. if (Name.Length != 0) {
  858. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  859. }
  860. if (valueCase_ == ValueOneofCase.StrValue) {
  861. size += 1 + pb::CodedOutputStream.ComputeStringSize(StrValue);
  862. }
  863. if (valueCase_ == ValueOneofCase.IntValue) {
  864. size += 1 + pb::CodedOutputStream.ComputeInt32Size(IntValue);
  865. }
  866. if (_unknownFields != null) {
  867. size += _unknownFields.CalculateSize();
  868. }
  869. return size;
  870. }
  871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  872. public void MergeFrom(ChannelArg other) {
  873. if (other == null) {
  874. return;
  875. }
  876. if (other.Name.Length != 0) {
  877. Name = other.Name;
  878. }
  879. switch (other.ValueCase) {
  880. case ValueOneofCase.StrValue:
  881. StrValue = other.StrValue;
  882. break;
  883. case ValueOneofCase.IntValue:
  884. IntValue = other.IntValue;
  885. break;
  886. }
  887. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  888. }
  889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  890. public void MergeFrom(pb::CodedInputStream input) {
  891. uint tag;
  892. while ((tag = input.ReadTag()) != 0) {
  893. switch(tag) {
  894. default:
  895. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  896. break;
  897. case 10: {
  898. Name = input.ReadString();
  899. break;
  900. }
  901. case 18: {
  902. StrValue = input.ReadString();
  903. break;
  904. }
  905. case 24: {
  906. IntValue = input.ReadInt32();
  907. break;
  908. }
  909. }
  910. }
  911. }
  912. }
  913. public sealed partial class ClientConfig : pb::IMessage<ClientConfig> {
  914. private static readonly pb::MessageParser<ClientConfig> _parser = new pb::MessageParser<ClientConfig>(() => new ClientConfig());
  915. private pb::UnknownFieldSet _unknownFields;
  916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  917. public static pb::MessageParser<ClientConfig> Parser { get { return _parser; } }
  918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  919. public static pbr::MessageDescriptor Descriptor {
  920. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[5]; }
  921. }
  922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  923. pbr::MessageDescriptor pb::IMessage.Descriptor {
  924. get { return Descriptor; }
  925. }
  926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  927. public ClientConfig() {
  928. OnConstruction();
  929. }
  930. partial void OnConstruction();
  931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  932. public ClientConfig(ClientConfig other) : this() {
  933. serverTargets_ = other.serverTargets_.Clone();
  934. clientType_ = other.clientType_;
  935. securityParams_ = other.securityParams_ != null ? other.securityParams_.Clone() : null;
  936. outstandingRpcsPerChannel_ = other.outstandingRpcsPerChannel_;
  937. clientChannels_ = other.clientChannels_;
  938. asyncClientThreads_ = other.asyncClientThreads_;
  939. rpcType_ = other.rpcType_;
  940. loadParams_ = other.loadParams_ != null ? other.loadParams_.Clone() : null;
  941. payloadConfig_ = other.payloadConfig_ != null ? other.payloadConfig_.Clone() : null;
  942. histogramParams_ = other.histogramParams_ != null ? other.histogramParams_.Clone() : null;
  943. coreList_ = other.coreList_.Clone();
  944. coreLimit_ = other.coreLimit_;
  945. otherClientApi_ = other.otherClientApi_;
  946. channelArgs_ = other.channelArgs_.Clone();
  947. threadsPerCq_ = other.threadsPerCq_;
  948. messagesPerStream_ = other.messagesPerStream_;
  949. useCoalesceApi_ = other.useCoalesceApi_;
  950. medianLatencyCollectionIntervalMillis_ = other.medianLatencyCollectionIntervalMillis_;
  951. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  952. }
  953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  954. public ClientConfig Clone() {
  955. return new ClientConfig(this);
  956. }
  957. /// <summary>Field number for the "server_targets" field.</summary>
  958. public const int ServerTargetsFieldNumber = 1;
  959. private static readonly pb::FieldCodec<string> _repeated_serverTargets_codec
  960. = pb::FieldCodec.ForString(10);
  961. private readonly pbc::RepeatedField<string> serverTargets_ = new pbc::RepeatedField<string>();
  962. /// <summary>
  963. /// List of targets to connect to. At least one target needs to be specified.
  964. /// </summary>
  965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  966. public pbc::RepeatedField<string> ServerTargets {
  967. get { return serverTargets_; }
  968. }
  969. /// <summary>Field number for the "client_type" field.</summary>
  970. public const int ClientTypeFieldNumber = 2;
  971. private global::Grpc.Testing.ClientType clientType_ = 0;
  972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  973. public global::Grpc.Testing.ClientType ClientType {
  974. get { return clientType_; }
  975. set {
  976. clientType_ = value;
  977. }
  978. }
  979. /// <summary>Field number for the "security_params" field.</summary>
  980. public const int SecurityParamsFieldNumber = 3;
  981. private global::Grpc.Testing.SecurityParams securityParams_;
  982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  983. public global::Grpc.Testing.SecurityParams SecurityParams {
  984. get { return securityParams_; }
  985. set {
  986. securityParams_ = value;
  987. }
  988. }
  989. /// <summary>Field number for the "outstanding_rpcs_per_channel" field.</summary>
  990. public const int OutstandingRpcsPerChannelFieldNumber = 4;
  991. private int outstandingRpcsPerChannel_;
  992. /// <summary>
  993. /// How many concurrent RPCs to start for each channel.
  994. /// For synchronous client, use a separate thread for each outstanding RPC.
  995. /// </summary>
  996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  997. public int OutstandingRpcsPerChannel {
  998. get { return outstandingRpcsPerChannel_; }
  999. set {
  1000. outstandingRpcsPerChannel_ = value;
  1001. }
  1002. }
  1003. /// <summary>Field number for the "client_channels" field.</summary>
  1004. public const int ClientChannelsFieldNumber = 5;
  1005. private int clientChannels_;
  1006. /// <summary>
  1007. /// Number of independent client channels to create.
  1008. /// i-th channel will connect to server_target[i % server_targets.size()]
  1009. /// </summary>
  1010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1011. public int ClientChannels {
  1012. get { return clientChannels_; }
  1013. set {
  1014. clientChannels_ = value;
  1015. }
  1016. }
  1017. /// <summary>Field number for the "async_client_threads" field.</summary>
  1018. public const int AsyncClientThreadsFieldNumber = 7;
  1019. private int asyncClientThreads_;
  1020. /// <summary>
  1021. /// Only for async client. Number of threads to use to start/manage RPCs.
  1022. /// </summary>
  1023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1024. public int AsyncClientThreads {
  1025. get { return asyncClientThreads_; }
  1026. set {
  1027. asyncClientThreads_ = value;
  1028. }
  1029. }
  1030. /// <summary>Field number for the "rpc_type" field.</summary>
  1031. public const int RpcTypeFieldNumber = 8;
  1032. private global::Grpc.Testing.RpcType rpcType_ = 0;
  1033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1034. public global::Grpc.Testing.RpcType RpcType {
  1035. get { return rpcType_; }
  1036. set {
  1037. rpcType_ = value;
  1038. }
  1039. }
  1040. /// <summary>Field number for the "load_params" field.</summary>
  1041. public const int LoadParamsFieldNumber = 10;
  1042. private global::Grpc.Testing.LoadParams loadParams_;
  1043. /// <summary>
  1044. /// The requested load for the entire client (aggregated over all the threads).
  1045. /// </summary>
  1046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1047. public global::Grpc.Testing.LoadParams LoadParams {
  1048. get { return loadParams_; }
  1049. set {
  1050. loadParams_ = value;
  1051. }
  1052. }
  1053. /// <summary>Field number for the "payload_config" field.</summary>
  1054. public const int PayloadConfigFieldNumber = 11;
  1055. private global::Grpc.Testing.PayloadConfig payloadConfig_;
  1056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1057. public global::Grpc.Testing.PayloadConfig PayloadConfig {
  1058. get { return payloadConfig_; }
  1059. set {
  1060. payloadConfig_ = value;
  1061. }
  1062. }
  1063. /// <summary>Field number for the "histogram_params" field.</summary>
  1064. public const int HistogramParamsFieldNumber = 12;
  1065. private global::Grpc.Testing.HistogramParams histogramParams_;
  1066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1067. public global::Grpc.Testing.HistogramParams HistogramParams {
  1068. get { return histogramParams_; }
  1069. set {
  1070. histogramParams_ = value;
  1071. }
  1072. }
  1073. /// <summary>Field number for the "core_list" field.</summary>
  1074. public const int CoreListFieldNumber = 13;
  1075. private static readonly pb::FieldCodec<int> _repeated_coreList_codec
  1076. = pb::FieldCodec.ForInt32(106);
  1077. private readonly pbc::RepeatedField<int> coreList_ = new pbc::RepeatedField<int>();
  1078. /// <summary>
  1079. /// Specify the cores we should run the client on, if desired
  1080. /// </summary>
  1081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1082. public pbc::RepeatedField<int> CoreList {
  1083. get { return coreList_; }
  1084. }
  1085. /// <summary>Field number for the "core_limit" field.</summary>
  1086. public const int CoreLimitFieldNumber = 14;
  1087. private int coreLimit_;
  1088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1089. public int CoreLimit {
  1090. get { return coreLimit_; }
  1091. set {
  1092. coreLimit_ = value;
  1093. }
  1094. }
  1095. /// <summary>Field number for the "other_client_api" field.</summary>
  1096. public const int OtherClientApiFieldNumber = 15;
  1097. private string otherClientApi_ = "";
  1098. /// <summary>
  1099. /// If we use an OTHER_CLIENT client_type, this string gives more detail
  1100. /// </summary>
  1101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1102. public string OtherClientApi {
  1103. get { return otherClientApi_; }
  1104. set {
  1105. otherClientApi_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1106. }
  1107. }
  1108. /// <summary>Field number for the "channel_args" field.</summary>
  1109. public const int ChannelArgsFieldNumber = 16;
  1110. private static readonly pb::FieldCodec<global::Grpc.Testing.ChannelArg> _repeated_channelArgs_codec
  1111. = pb::FieldCodec.ForMessage(130, global::Grpc.Testing.ChannelArg.Parser);
  1112. private readonly pbc::RepeatedField<global::Grpc.Testing.ChannelArg> channelArgs_ = new pbc::RepeatedField<global::Grpc.Testing.ChannelArg>();
  1113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1114. public pbc::RepeatedField<global::Grpc.Testing.ChannelArg> ChannelArgs {
  1115. get { return channelArgs_; }
  1116. }
  1117. /// <summary>Field number for the "threads_per_cq" field.</summary>
  1118. public const int ThreadsPerCqFieldNumber = 17;
  1119. private int threadsPerCq_;
  1120. /// <summary>
  1121. /// Number of threads that share each completion queue
  1122. /// </summary>
  1123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1124. public int ThreadsPerCq {
  1125. get { return threadsPerCq_; }
  1126. set {
  1127. threadsPerCq_ = value;
  1128. }
  1129. }
  1130. /// <summary>Field number for the "messages_per_stream" field.</summary>
  1131. public const int MessagesPerStreamFieldNumber = 18;
  1132. private int messagesPerStream_;
  1133. /// <summary>
  1134. /// Number of messages on a stream before it gets finished/restarted
  1135. /// </summary>
  1136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1137. public int MessagesPerStream {
  1138. get { return messagesPerStream_; }
  1139. set {
  1140. messagesPerStream_ = value;
  1141. }
  1142. }
  1143. /// <summary>Field number for the "use_coalesce_api" field.</summary>
  1144. public const int UseCoalesceApiFieldNumber = 19;
  1145. private bool useCoalesceApi_;
  1146. /// <summary>
  1147. /// Use coalescing API when possible.
  1148. /// </summary>
  1149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1150. public bool UseCoalesceApi {
  1151. get { return useCoalesceApi_; }
  1152. set {
  1153. useCoalesceApi_ = value;
  1154. }
  1155. }
  1156. /// <summary>Field number for the "median_latency_collection_interval_millis" field.</summary>
  1157. public const int MedianLatencyCollectionIntervalMillisFieldNumber = 20;
  1158. private int medianLatencyCollectionIntervalMillis_;
  1159. /// <summary>
  1160. /// If 0, disabled. Else, specifies the period between gathering latency
  1161. /// medians in milliseconds.
  1162. /// </summary>
  1163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1164. public int MedianLatencyCollectionIntervalMillis {
  1165. get { return medianLatencyCollectionIntervalMillis_; }
  1166. set {
  1167. medianLatencyCollectionIntervalMillis_ = value;
  1168. }
  1169. }
  1170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1171. public override bool Equals(object other) {
  1172. return Equals(other as ClientConfig);
  1173. }
  1174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1175. public bool Equals(ClientConfig other) {
  1176. if (ReferenceEquals(other, null)) {
  1177. return false;
  1178. }
  1179. if (ReferenceEquals(other, this)) {
  1180. return true;
  1181. }
  1182. if(!serverTargets_.Equals(other.serverTargets_)) return false;
  1183. if (ClientType != other.ClientType) return false;
  1184. if (!object.Equals(SecurityParams, other.SecurityParams)) return false;
  1185. if (OutstandingRpcsPerChannel != other.OutstandingRpcsPerChannel) return false;
  1186. if (ClientChannels != other.ClientChannels) return false;
  1187. if (AsyncClientThreads != other.AsyncClientThreads) return false;
  1188. if (RpcType != other.RpcType) return false;
  1189. if (!object.Equals(LoadParams, other.LoadParams)) return false;
  1190. if (!object.Equals(PayloadConfig, other.PayloadConfig)) return false;
  1191. if (!object.Equals(HistogramParams, other.HistogramParams)) return false;
  1192. if(!coreList_.Equals(other.coreList_)) return false;
  1193. if (CoreLimit != other.CoreLimit) return false;
  1194. if (OtherClientApi != other.OtherClientApi) return false;
  1195. if(!channelArgs_.Equals(other.channelArgs_)) return false;
  1196. if (ThreadsPerCq != other.ThreadsPerCq) return false;
  1197. if (MessagesPerStream != other.MessagesPerStream) return false;
  1198. if (UseCoalesceApi != other.UseCoalesceApi) return false;
  1199. if (MedianLatencyCollectionIntervalMillis != other.MedianLatencyCollectionIntervalMillis) return false;
  1200. return Equals(_unknownFields, other._unknownFields);
  1201. }
  1202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1203. public override int GetHashCode() {
  1204. int hash = 1;
  1205. hash ^= serverTargets_.GetHashCode();
  1206. if (ClientType != 0) hash ^= ClientType.GetHashCode();
  1207. if (securityParams_ != null) hash ^= SecurityParams.GetHashCode();
  1208. if (OutstandingRpcsPerChannel != 0) hash ^= OutstandingRpcsPerChannel.GetHashCode();
  1209. if (ClientChannels != 0) hash ^= ClientChannels.GetHashCode();
  1210. if (AsyncClientThreads != 0) hash ^= AsyncClientThreads.GetHashCode();
  1211. if (RpcType != 0) hash ^= RpcType.GetHashCode();
  1212. if (loadParams_ != null) hash ^= LoadParams.GetHashCode();
  1213. if (payloadConfig_ != null) hash ^= PayloadConfig.GetHashCode();
  1214. if (histogramParams_ != null) hash ^= HistogramParams.GetHashCode();
  1215. hash ^= coreList_.GetHashCode();
  1216. if (CoreLimit != 0) hash ^= CoreLimit.GetHashCode();
  1217. if (OtherClientApi.Length != 0) hash ^= OtherClientApi.GetHashCode();
  1218. hash ^= channelArgs_.GetHashCode();
  1219. if (ThreadsPerCq != 0) hash ^= ThreadsPerCq.GetHashCode();
  1220. if (MessagesPerStream != 0) hash ^= MessagesPerStream.GetHashCode();
  1221. if (UseCoalesceApi != false) hash ^= UseCoalesceApi.GetHashCode();
  1222. if (MedianLatencyCollectionIntervalMillis != 0) hash ^= MedianLatencyCollectionIntervalMillis.GetHashCode();
  1223. if (_unknownFields != null) {
  1224. hash ^= _unknownFields.GetHashCode();
  1225. }
  1226. return hash;
  1227. }
  1228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1229. public override string ToString() {
  1230. return pb::JsonFormatter.ToDiagnosticString(this);
  1231. }
  1232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1233. public void WriteTo(pb::CodedOutputStream output) {
  1234. serverTargets_.WriteTo(output, _repeated_serverTargets_codec);
  1235. if (ClientType != 0) {
  1236. output.WriteRawTag(16);
  1237. output.WriteEnum((int) ClientType);
  1238. }
  1239. if (securityParams_ != null) {
  1240. output.WriteRawTag(26);
  1241. output.WriteMessage(SecurityParams);
  1242. }
  1243. if (OutstandingRpcsPerChannel != 0) {
  1244. output.WriteRawTag(32);
  1245. output.WriteInt32(OutstandingRpcsPerChannel);
  1246. }
  1247. if (ClientChannels != 0) {
  1248. output.WriteRawTag(40);
  1249. output.WriteInt32(ClientChannels);
  1250. }
  1251. if (AsyncClientThreads != 0) {
  1252. output.WriteRawTag(56);
  1253. output.WriteInt32(AsyncClientThreads);
  1254. }
  1255. if (RpcType != 0) {
  1256. output.WriteRawTag(64);
  1257. output.WriteEnum((int) RpcType);
  1258. }
  1259. if (loadParams_ != null) {
  1260. output.WriteRawTag(82);
  1261. output.WriteMessage(LoadParams);
  1262. }
  1263. if (payloadConfig_ != null) {
  1264. output.WriteRawTag(90);
  1265. output.WriteMessage(PayloadConfig);
  1266. }
  1267. if (histogramParams_ != null) {
  1268. output.WriteRawTag(98);
  1269. output.WriteMessage(HistogramParams);
  1270. }
  1271. coreList_.WriteTo(output, _repeated_coreList_codec);
  1272. if (CoreLimit != 0) {
  1273. output.WriteRawTag(112);
  1274. output.WriteInt32(CoreLimit);
  1275. }
  1276. if (OtherClientApi.Length != 0) {
  1277. output.WriteRawTag(122);
  1278. output.WriteString(OtherClientApi);
  1279. }
  1280. channelArgs_.WriteTo(output, _repeated_channelArgs_codec);
  1281. if (ThreadsPerCq != 0) {
  1282. output.WriteRawTag(136, 1);
  1283. output.WriteInt32(ThreadsPerCq);
  1284. }
  1285. if (MessagesPerStream != 0) {
  1286. output.WriteRawTag(144, 1);
  1287. output.WriteInt32(MessagesPerStream);
  1288. }
  1289. if (UseCoalesceApi != false) {
  1290. output.WriteRawTag(152, 1);
  1291. output.WriteBool(UseCoalesceApi);
  1292. }
  1293. if (MedianLatencyCollectionIntervalMillis != 0) {
  1294. output.WriteRawTag(160, 1);
  1295. output.WriteInt32(MedianLatencyCollectionIntervalMillis);
  1296. }
  1297. if (_unknownFields != null) {
  1298. _unknownFields.WriteTo(output);
  1299. }
  1300. }
  1301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1302. public int CalculateSize() {
  1303. int size = 0;
  1304. size += serverTargets_.CalculateSize(_repeated_serverTargets_codec);
  1305. if (ClientType != 0) {
  1306. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ClientType);
  1307. }
  1308. if (securityParams_ != null) {
  1309. size += 1 + pb::CodedOutputStream.ComputeMessageSize(SecurityParams);
  1310. }
  1311. if (OutstandingRpcsPerChannel != 0) {
  1312. size += 1 + pb::CodedOutputStream.ComputeInt32Size(OutstandingRpcsPerChannel);
  1313. }
  1314. if (ClientChannels != 0) {
  1315. size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClientChannels);
  1316. }
  1317. if (AsyncClientThreads != 0) {
  1318. size += 1 + pb::CodedOutputStream.ComputeInt32Size(AsyncClientThreads);
  1319. }
  1320. if (RpcType != 0) {
  1321. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RpcType);
  1322. }
  1323. if (loadParams_ != null) {
  1324. size += 1 + pb::CodedOutputStream.ComputeMessageSize(LoadParams);
  1325. }
  1326. if (payloadConfig_ != null) {
  1327. size += 1 + pb::CodedOutputStream.ComputeMessageSize(PayloadConfig);
  1328. }
  1329. if (histogramParams_ != null) {
  1330. size += 1 + pb::CodedOutputStream.ComputeMessageSize(HistogramParams);
  1331. }
  1332. size += coreList_.CalculateSize(_repeated_coreList_codec);
  1333. if (CoreLimit != 0) {
  1334. size += 1 + pb::CodedOutputStream.ComputeInt32Size(CoreLimit);
  1335. }
  1336. if (OtherClientApi.Length != 0) {
  1337. size += 1 + pb::CodedOutputStream.ComputeStringSize(OtherClientApi);
  1338. }
  1339. size += channelArgs_.CalculateSize(_repeated_channelArgs_codec);
  1340. if (ThreadsPerCq != 0) {
  1341. size += 2 + pb::CodedOutputStream.ComputeInt32Size(ThreadsPerCq);
  1342. }
  1343. if (MessagesPerStream != 0) {
  1344. size += 2 + pb::CodedOutputStream.ComputeInt32Size(MessagesPerStream);
  1345. }
  1346. if (UseCoalesceApi != false) {
  1347. size += 2 + 1;
  1348. }
  1349. if (MedianLatencyCollectionIntervalMillis != 0) {
  1350. size += 2 + pb::CodedOutputStream.ComputeInt32Size(MedianLatencyCollectionIntervalMillis);
  1351. }
  1352. if (_unknownFields != null) {
  1353. size += _unknownFields.CalculateSize();
  1354. }
  1355. return size;
  1356. }
  1357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1358. public void MergeFrom(ClientConfig other) {
  1359. if (other == null) {
  1360. return;
  1361. }
  1362. serverTargets_.Add(other.serverTargets_);
  1363. if (other.ClientType != 0) {
  1364. ClientType = other.ClientType;
  1365. }
  1366. if (other.securityParams_ != null) {
  1367. if (securityParams_ == null) {
  1368. SecurityParams = new global::Grpc.Testing.SecurityParams();
  1369. }
  1370. SecurityParams.MergeFrom(other.SecurityParams);
  1371. }
  1372. if (other.OutstandingRpcsPerChannel != 0) {
  1373. OutstandingRpcsPerChannel = other.OutstandingRpcsPerChannel;
  1374. }
  1375. if (other.ClientChannels != 0) {
  1376. ClientChannels = other.ClientChannels;
  1377. }
  1378. if (other.AsyncClientThreads != 0) {
  1379. AsyncClientThreads = other.AsyncClientThreads;
  1380. }
  1381. if (other.RpcType != 0) {
  1382. RpcType = other.RpcType;
  1383. }
  1384. if (other.loadParams_ != null) {
  1385. if (loadParams_ == null) {
  1386. LoadParams = new global::Grpc.Testing.LoadParams();
  1387. }
  1388. LoadParams.MergeFrom(other.LoadParams);
  1389. }
  1390. if (other.payloadConfig_ != null) {
  1391. if (payloadConfig_ == null) {
  1392. PayloadConfig = new global::Grpc.Testing.PayloadConfig();
  1393. }
  1394. PayloadConfig.MergeFrom(other.PayloadConfig);
  1395. }
  1396. if (other.histogramParams_ != null) {
  1397. if (histogramParams_ == null) {
  1398. HistogramParams = new global::Grpc.Testing.HistogramParams();
  1399. }
  1400. HistogramParams.MergeFrom(other.HistogramParams);
  1401. }
  1402. coreList_.Add(other.coreList_);
  1403. if (other.CoreLimit != 0) {
  1404. CoreLimit = other.CoreLimit;
  1405. }
  1406. if (other.OtherClientApi.Length != 0) {
  1407. OtherClientApi = other.OtherClientApi;
  1408. }
  1409. channelArgs_.Add(other.channelArgs_);
  1410. if (other.ThreadsPerCq != 0) {
  1411. ThreadsPerCq = other.ThreadsPerCq;
  1412. }
  1413. if (other.MessagesPerStream != 0) {
  1414. MessagesPerStream = other.MessagesPerStream;
  1415. }
  1416. if (other.UseCoalesceApi != false) {
  1417. UseCoalesceApi = other.UseCoalesceApi;
  1418. }
  1419. if (other.MedianLatencyCollectionIntervalMillis != 0) {
  1420. MedianLatencyCollectionIntervalMillis = other.MedianLatencyCollectionIntervalMillis;
  1421. }
  1422. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1423. }
  1424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1425. public void MergeFrom(pb::CodedInputStream input) {
  1426. uint tag;
  1427. while ((tag = input.ReadTag()) != 0) {
  1428. switch(tag) {
  1429. default:
  1430. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1431. break;
  1432. case 10: {
  1433. serverTargets_.AddEntriesFrom(input, _repeated_serverTargets_codec);
  1434. break;
  1435. }
  1436. case 16: {
  1437. ClientType = (global::Grpc.Testing.ClientType) input.ReadEnum();
  1438. break;
  1439. }
  1440. case 26: {
  1441. if (securityParams_ == null) {
  1442. SecurityParams = new global::Grpc.Testing.SecurityParams();
  1443. }
  1444. input.ReadMessage(SecurityParams);
  1445. break;
  1446. }
  1447. case 32: {
  1448. OutstandingRpcsPerChannel = input.ReadInt32();
  1449. break;
  1450. }
  1451. case 40: {
  1452. ClientChannels = input.ReadInt32();
  1453. break;
  1454. }
  1455. case 56: {
  1456. AsyncClientThreads = input.ReadInt32();
  1457. break;
  1458. }
  1459. case 64: {
  1460. RpcType = (global::Grpc.Testing.RpcType) input.ReadEnum();
  1461. break;
  1462. }
  1463. case 82: {
  1464. if (loadParams_ == null) {
  1465. LoadParams = new global::Grpc.Testing.LoadParams();
  1466. }
  1467. input.ReadMessage(LoadParams);
  1468. break;
  1469. }
  1470. case 90: {
  1471. if (payloadConfig_ == null) {
  1472. PayloadConfig = new global::Grpc.Testing.PayloadConfig();
  1473. }
  1474. input.ReadMessage(PayloadConfig);
  1475. break;
  1476. }
  1477. case 98: {
  1478. if (histogramParams_ == null) {
  1479. HistogramParams = new global::Grpc.Testing.HistogramParams();
  1480. }
  1481. input.ReadMessage(HistogramParams);
  1482. break;
  1483. }
  1484. case 106:
  1485. case 104: {
  1486. coreList_.AddEntriesFrom(input, _repeated_coreList_codec);
  1487. break;
  1488. }
  1489. case 112: {
  1490. CoreLimit = input.ReadInt32();
  1491. break;
  1492. }
  1493. case 122: {
  1494. OtherClientApi = input.ReadString();
  1495. break;
  1496. }
  1497. case 130: {
  1498. channelArgs_.AddEntriesFrom(input, _repeated_channelArgs_codec);
  1499. break;
  1500. }
  1501. case 136: {
  1502. ThreadsPerCq = input.ReadInt32();
  1503. break;
  1504. }
  1505. case 144: {
  1506. MessagesPerStream = input.ReadInt32();
  1507. break;
  1508. }
  1509. case 152: {
  1510. UseCoalesceApi = input.ReadBool();
  1511. break;
  1512. }
  1513. case 160: {
  1514. MedianLatencyCollectionIntervalMillis = input.ReadInt32();
  1515. break;
  1516. }
  1517. }
  1518. }
  1519. }
  1520. }
  1521. public sealed partial class ClientStatus : pb::IMessage<ClientStatus> {
  1522. private static readonly pb::MessageParser<ClientStatus> _parser = new pb::MessageParser<ClientStatus>(() => new ClientStatus());
  1523. private pb::UnknownFieldSet _unknownFields;
  1524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1525. public static pb::MessageParser<ClientStatus> Parser { get { return _parser; } }
  1526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1527. public static pbr::MessageDescriptor Descriptor {
  1528. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[6]; }
  1529. }
  1530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1531. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1532. get { return Descriptor; }
  1533. }
  1534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1535. public ClientStatus() {
  1536. OnConstruction();
  1537. }
  1538. partial void OnConstruction();
  1539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1540. public ClientStatus(ClientStatus other) : this() {
  1541. stats_ = other.stats_ != null ? other.stats_.Clone() : null;
  1542. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1543. }
  1544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1545. public ClientStatus Clone() {
  1546. return new ClientStatus(this);
  1547. }
  1548. /// <summary>Field number for the "stats" field.</summary>
  1549. public const int StatsFieldNumber = 1;
  1550. private global::Grpc.Testing.ClientStats stats_;
  1551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1552. public global::Grpc.Testing.ClientStats Stats {
  1553. get { return stats_; }
  1554. set {
  1555. stats_ = value;
  1556. }
  1557. }
  1558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1559. public override bool Equals(object other) {
  1560. return Equals(other as ClientStatus);
  1561. }
  1562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1563. public bool Equals(ClientStatus other) {
  1564. if (ReferenceEquals(other, null)) {
  1565. return false;
  1566. }
  1567. if (ReferenceEquals(other, this)) {
  1568. return true;
  1569. }
  1570. if (!object.Equals(Stats, other.Stats)) return false;
  1571. return Equals(_unknownFields, other._unknownFields);
  1572. }
  1573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1574. public override int GetHashCode() {
  1575. int hash = 1;
  1576. if (stats_ != null) hash ^= Stats.GetHashCode();
  1577. if (_unknownFields != null) {
  1578. hash ^= _unknownFields.GetHashCode();
  1579. }
  1580. return hash;
  1581. }
  1582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1583. public override string ToString() {
  1584. return pb::JsonFormatter.ToDiagnosticString(this);
  1585. }
  1586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1587. public void WriteTo(pb::CodedOutputStream output) {
  1588. if (stats_ != null) {
  1589. output.WriteRawTag(10);
  1590. output.WriteMessage(Stats);
  1591. }
  1592. if (_unknownFields != null) {
  1593. _unknownFields.WriteTo(output);
  1594. }
  1595. }
  1596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1597. public int CalculateSize() {
  1598. int size = 0;
  1599. if (stats_ != null) {
  1600. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Stats);
  1601. }
  1602. if (_unknownFields != null) {
  1603. size += _unknownFields.CalculateSize();
  1604. }
  1605. return size;
  1606. }
  1607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1608. public void MergeFrom(ClientStatus other) {
  1609. if (other == null) {
  1610. return;
  1611. }
  1612. if (other.stats_ != null) {
  1613. if (stats_ == null) {
  1614. Stats = new global::Grpc.Testing.ClientStats();
  1615. }
  1616. Stats.MergeFrom(other.Stats);
  1617. }
  1618. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1619. }
  1620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1621. public void MergeFrom(pb::CodedInputStream input) {
  1622. uint tag;
  1623. while ((tag = input.ReadTag()) != 0) {
  1624. switch(tag) {
  1625. default:
  1626. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1627. break;
  1628. case 10: {
  1629. if (stats_ == null) {
  1630. Stats = new global::Grpc.Testing.ClientStats();
  1631. }
  1632. input.ReadMessage(Stats);
  1633. break;
  1634. }
  1635. }
  1636. }
  1637. }
  1638. }
  1639. /// <summary>
  1640. /// Request current stats
  1641. /// </summary>
  1642. public sealed partial class Mark : pb::IMessage<Mark> {
  1643. private static readonly pb::MessageParser<Mark> _parser = new pb::MessageParser<Mark>(() => new Mark());
  1644. private pb::UnknownFieldSet _unknownFields;
  1645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1646. public static pb::MessageParser<Mark> Parser { get { return _parser; } }
  1647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1648. public static pbr::MessageDescriptor Descriptor {
  1649. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[7]; }
  1650. }
  1651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1652. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1653. get { return Descriptor; }
  1654. }
  1655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1656. public Mark() {
  1657. OnConstruction();
  1658. }
  1659. partial void OnConstruction();
  1660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1661. public Mark(Mark other) : this() {
  1662. reset_ = other.reset_;
  1663. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1664. }
  1665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1666. public Mark Clone() {
  1667. return new Mark(this);
  1668. }
  1669. /// <summary>Field number for the "reset" field.</summary>
  1670. public const int ResetFieldNumber = 1;
  1671. private bool reset_;
  1672. /// <summary>
  1673. /// if true, the stats will be reset after taking their snapshot.
  1674. /// </summary>
  1675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1676. public bool Reset {
  1677. get { return reset_; }
  1678. set {
  1679. reset_ = value;
  1680. }
  1681. }
  1682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1683. public override bool Equals(object other) {
  1684. return Equals(other as Mark);
  1685. }
  1686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1687. public bool Equals(Mark other) {
  1688. if (ReferenceEquals(other, null)) {
  1689. return false;
  1690. }
  1691. if (ReferenceEquals(other, this)) {
  1692. return true;
  1693. }
  1694. if (Reset != other.Reset) return false;
  1695. return Equals(_unknownFields, other._unknownFields);
  1696. }
  1697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1698. public override int GetHashCode() {
  1699. int hash = 1;
  1700. if (Reset != false) hash ^= Reset.GetHashCode();
  1701. if (_unknownFields != null) {
  1702. hash ^= _unknownFields.GetHashCode();
  1703. }
  1704. return hash;
  1705. }
  1706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1707. public override string ToString() {
  1708. return pb::JsonFormatter.ToDiagnosticString(this);
  1709. }
  1710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1711. public void WriteTo(pb::CodedOutputStream output) {
  1712. if (Reset != false) {
  1713. output.WriteRawTag(8);
  1714. output.WriteBool(Reset);
  1715. }
  1716. if (_unknownFields != null) {
  1717. _unknownFields.WriteTo(output);
  1718. }
  1719. }
  1720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1721. public int CalculateSize() {
  1722. int size = 0;
  1723. if (Reset != false) {
  1724. size += 1 + 1;
  1725. }
  1726. if (_unknownFields != null) {
  1727. size += _unknownFields.CalculateSize();
  1728. }
  1729. return size;
  1730. }
  1731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1732. public void MergeFrom(Mark other) {
  1733. if (other == null) {
  1734. return;
  1735. }
  1736. if (other.Reset != false) {
  1737. Reset = other.Reset;
  1738. }
  1739. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1740. }
  1741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1742. public void MergeFrom(pb::CodedInputStream input) {
  1743. uint tag;
  1744. while ((tag = input.ReadTag()) != 0) {
  1745. switch(tag) {
  1746. default:
  1747. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1748. break;
  1749. case 8: {
  1750. Reset = input.ReadBool();
  1751. break;
  1752. }
  1753. }
  1754. }
  1755. }
  1756. }
  1757. public sealed partial class ClientArgs : pb::IMessage<ClientArgs> {
  1758. private static readonly pb::MessageParser<ClientArgs> _parser = new pb::MessageParser<ClientArgs>(() => new ClientArgs());
  1759. private pb::UnknownFieldSet _unknownFields;
  1760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1761. public static pb::MessageParser<ClientArgs> Parser { get { return _parser; } }
  1762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1763. public static pbr::MessageDescriptor Descriptor {
  1764. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[8]; }
  1765. }
  1766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1767. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1768. get { return Descriptor; }
  1769. }
  1770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1771. public ClientArgs() {
  1772. OnConstruction();
  1773. }
  1774. partial void OnConstruction();
  1775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1776. public ClientArgs(ClientArgs other) : this() {
  1777. switch (other.ArgtypeCase) {
  1778. case ArgtypeOneofCase.Setup:
  1779. Setup = other.Setup.Clone();
  1780. break;
  1781. case ArgtypeOneofCase.Mark:
  1782. Mark = other.Mark.Clone();
  1783. break;
  1784. }
  1785. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1786. }
  1787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1788. public ClientArgs Clone() {
  1789. return new ClientArgs(this);
  1790. }
  1791. /// <summary>Field number for the "setup" field.</summary>
  1792. public const int SetupFieldNumber = 1;
  1793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1794. public global::Grpc.Testing.ClientConfig Setup {
  1795. get { return argtypeCase_ == ArgtypeOneofCase.Setup ? (global::Grpc.Testing.ClientConfig) argtype_ : null; }
  1796. set {
  1797. argtype_ = value;
  1798. argtypeCase_ = value == null ? ArgtypeOneofCase.None : ArgtypeOneofCase.Setup;
  1799. }
  1800. }
  1801. /// <summary>Field number for the "mark" field.</summary>
  1802. public const int MarkFieldNumber = 2;
  1803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1804. public global::Grpc.Testing.Mark Mark {
  1805. get { return argtypeCase_ == ArgtypeOneofCase.Mark ? (global::Grpc.Testing.Mark) argtype_ : null; }
  1806. set {
  1807. argtype_ = value;
  1808. argtypeCase_ = value == null ? ArgtypeOneofCase.None : ArgtypeOneofCase.Mark;
  1809. }
  1810. }
  1811. private object argtype_;
  1812. /// <summary>Enum of possible cases for the "argtype" oneof.</summary>
  1813. public enum ArgtypeOneofCase {
  1814. None = 0,
  1815. Setup = 1,
  1816. Mark = 2,
  1817. }
  1818. private ArgtypeOneofCase argtypeCase_ = ArgtypeOneofCase.None;
  1819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1820. public ArgtypeOneofCase ArgtypeCase {
  1821. get { return argtypeCase_; }
  1822. }
  1823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1824. public void ClearArgtype() {
  1825. argtypeCase_ = ArgtypeOneofCase.None;
  1826. argtype_ = null;
  1827. }
  1828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1829. public override bool Equals(object other) {
  1830. return Equals(other as ClientArgs);
  1831. }
  1832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1833. public bool Equals(ClientArgs other) {
  1834. if (ReferenceEquals(other, null)) {
  1835. return false;
  1836. }
  1837. if (ReferenceEquals(other, this)) {
  1838. return true;
  1839. }
  1840. if (!object.Equals(Setup, other.Setup)) return false;
  1841. if (!object.Equals(Mark, other.Mark)) return false;
  1842. if (ArgtypeCase != other.ArgtypeCase) return false;
  1843. return Equals(_unknownFields, other._unknownFields);
  1844. }
  1845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1846. public override int GetHashCode() {
  1847. int hash = 1;
  1848. if (argtypeCase_ == ArgtypeOneofCase.Setup) hash ^= Setup.GetHashCode();
  1849. if (argtypeCase_ == ArgtypeOneofCase.Mark) hash ^= Mark.GetHashCode();
  1850. hash ^= (int) argtypeCase_;
  1851. if (_unknownFields != null) {
  1852. hash ^= _unknownFields.GetHashCode();
  1853. }
  1854. return hash;
  1855. }
  1856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1857. public override string ToString() {
  1858. return pb::JsonFormatter.ToDiagnosticString(this);
  1859. }
  1860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1861. public void WriteTo(pb::CodedOutputStream output) {
  1862. if (argtypeCase_ == ArgtypeOneofCase.Setup) {
  1863. output.WriteRawTag(10);
  1864. output.WriteMessage(Setup);
  1865. }
  1866. if (argtypeCase_ == ArgtypeOneofCase.Mark) {
  1867. output.WriteRawTag(18);
  1868. output.WriteMessage(Mark);
  1869. }
  1870. if (_unknownFields != null) {
  1871. _unknownFields.WriteTo(output);
  1872. }
  1873. }
  1874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1875. public int CalculateSize() {
  1876. int size = 0;
  1877. if (argtypeCase_ == ArgtypeOneofCase.Setup) {
  1878. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Setup);
  1879. }
  1880. if (argtypeCase_ == ArgtypeOneofCase.Mark) {
  1881. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Mark);
  1882. }
  1883. if (_unknownFields != null) {
  1884. size += _unknownFields.CalculateSize();
  1885. }
  1886. return size;
  1887. }
  1888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1889. public void MergeFrom(ClientArgs other) {
  1890. if (other == null) {
  1891. return;
  1892. }
  1893. switch (other.ArgtypeCase) {
  1894. case ArgtypeOneofCase.Setup:
  1895. if (Setup == null) {
  1896. Setup = new global::Grpc.Testing.ClientConfig();
  1897. }
  1898. Setup.MergeFrom(other.Setup);
  1899. break;
  1900. case ArgtypeOneofCase.Mark:
  1901. if (Mark == null) {
  1902. Mark = new global::Grpc.Testing.Mark();
  1903. }
  1904. Mark.MergeFrom(other.Mark);
  1905. break;
  1906. }
  1907. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1908. }
  1909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1910. public void MergeFrom(pb::CodedInputStream input) {
  1911. uint tag;
  1912. while ((tag = input.ReadTag()) != 0) {
  1913. switch(tag) {
  1914. default:
  1915. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1916. break;
  1917. case 10: {
  1918. global::Grpc.Testing.ClientConfig subBuilder = new global::Grpc.Testing.ClientConfig();
  1919. if (argtypeCase_ == ArgtypeOneofCase.Setup) {
  1920. subBuilder.MergeFrom(Setup);
  1921. }
  1922. input.ReadMessage(subBuilder);
  1923. Setup = subBuilder;
  1924. break;
  1925. }
  1926. case 18: {
  1927. global::Grpc.Testing.Mark subBuilder = new global::Grpc.Testing.Mark();
  1928. if (argtypeCase_ == ArgtypeOneofCase.Mark) {
  1929. subBuilder.MergeFrom(Mark);
  1930. }
  1931. input.ReadMessage(subBuilder);
  1932. Mark = subBuilder;
  1933. break;
  1934. }
  1935. }
  1936. }
  1937. }
  1938. }
  1939. public sealed partial class ServerConfig : pb::IMessage<ServerConfig> {
  1940. private static readonly pb::MessageParser<ServerConfig> _parser = new pb::MessageParser<ServerConfig>(() => new ServerConfig());
  1941. private pb::UnknownFieldSet _unknownFields;
  1942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1943. public static pb::MessageParser<ServerConfig> Parser { get { return _parser; } }
  1944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1945. public static pbr::MessageDescriptor Descriptor {
  1946. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[9]; }
  1947. }
  1948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1949. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1950. get { return Descriptor; }
  1951. }
  1952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1953. public ServerConfig() {
  1954. OnConstruction();
  1955. }
  1956. partial void OnConstruction();
  1957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1958. public ServerConfig(ServerConfig other) : this() {
  1959. serverType_ = other.serverType_;
  1960. securityParams_ = other.securityParams_ != null ? other.securityParams_.Clone() : null;
  1961. port_ = other.port_;
  1962. asyncServerThreads_ = other.asyncServerThreads_;
  1963. coreLimit_ = other.coreLimit_;
  1964. payloadConfig_ = other.payloadConfig_ != null ? other.payloadConfig_.Clone() : null;
  1965. coreList_ = other.coreList_.Clone();
  1966. otherServerApi_ = other.otherServerApi_;
  1967. threadsPerCq_ = other.threadsPerCq_;
  1968. resourceQuotaSize_ = other.resourceQuotaSize_;
  1969. channelArgs_ = other.channelArgs_.Clone();
  1970. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1971. }
  1972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1973. public ServerConfig Clone() {
  1974. return new ServerConfig(this);
  1975. }
  1976. /// <summary>Field number for the "server_type" field.</summary>
  1977. public const int ServerTypeFieldNumber = 1;
  1978. private global::Grpc.Testing.ServerType serverType_ = 0;
  1979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1980. public global::Grpc.Testing.ServerType ServerType {
  1981. get { return serverType_; }
  1982. set {
  1983. serverType_ = value;
  1984. }
  1985. }
  1986. /// <summary>Field number for the "security_params" field.</summary>
  1987. public const int SecurityParamsFieldNumber = 2;
  1988. private global::Grpc.Testing.SecurityParams securityParams_;
  1989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1990. public global::Grpc.Testing.SecurityParams SecurityParams {
  1991. get { return securityParams_; }
  1992. set {
  1993. securityParams_ = value;
  1994. }
  1995. }
  1996. /// <summary>Field number for the "port" field.</summary>
  1997. public const int PortFieldNumber = 4;
  1998. private int port_;
  1999. /// <summary>
  2000. /// Port on which to listen. Zero means pick unused port.
  2001. /// </summary>
  2002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2003. public int Port {
  2004. get { return port_; }
  2005. set {
  2006. port_ = value;
  2007. }
  2008. }
  2009. /// <summary>Field number for the "async_server_threads" field.</summary>
  2010. public const int AsyncServerThreadsFieldNumber = 7;
  2011. private int asyncServerThreads_;
  2012. /// <summary>
  2013. /// Only for async server. Number of threads used to serve the requests.
  2014. /// </summary>
  2015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2016. public int AsyncServerThreads {
  2017. get { return asyncServerThreads_; }
  2018. set {
  2019. asyncServerThreads_ = value;
  2020. }
  2021. }
  2022. /// <summary>Field number for the "core_limit" field.</summary>
  2023. public const int CoreLimitFieldNumber = 8;
  2024. private int coreLimit_;
  2025. /// <summary>
  2026. /// Specify the number of cores to limit server to, if desired
  2027. /// </summary>
  2028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2029. public int CoreLimit {
  2030. get { return coreLimit_; }
  2031. set {
  2032. coreLimit_ = value;
  2033. }
  2034. }
  2035. /// <summary>Field number for the "payload_config" field.</summary>
  2036. public const int PayloadConfigFieldNumber = 9;
  2037. private global::Grpc.Testing.PayloadConfig payloadConfig_;
  2038. /// <summary>
  2039. /// payload config, used in generic server.
  2040. /// Note this must NOT be used in proto (non-generic) servers. For proto servers,
  2041. /// 'response sizes' must be configured from the 'response_size' field of the
  2042. /// 'SimpleRequest' objects in RPC requests.
  2043. /// </summary>
  2044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2045. public global::Grpc.Testing.PayloadConfig PayloadConfig {
  2046. get { return payloadConfig_; }
  2047. set {
  2048. payloadConfig_ = value;
  2049. }
  2050. }
  2051. /// <summary>Field number for the "core_list" field.</summary>
  2052. public const int CoreListFieldNumber = 10;
  2053. private static readonly pb::FieldCodec<int> _repeated_coreList_codec
  2054. = pb::FieldCodec.ForInt32(82);
  2055. private readonly pbc::RepeatedField<int> coreList_ = new pbc::RepeatedField<int>();
  2056. /// <summary>
  2057. /// Specify the cores we should run the server on, if desired
  2058. /// </summary>
  2059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2060. public pbc::RepeatedField<int> CoreList {
  2061. get { return coreList_; }
  2062. }
  2063. /// <summary>Field number for the "other_server_api" field.</summary>
  2064. public const int OtherServerApiFieldNumber = 11;
  2065. private string otherServerApi_ = "";
  2066. /// <summary>
  2067. /// If we use an OTHER_SERVER client_type, this string gives more detail
  2068. /// </summary>
  2069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2070. public string OtherServerApi {
  2071. get { return otherServerApi_; }
  2072. set {
  2073. otherServerApi_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2074. }
  2075. }
  2076. /// <summary>Field number for the "threads_per_cq" field.</summary>
  2077. public const int ThreadsPerCqFieldNumber = 12;
  2078. private int threadsPerCq_;
  2079. /// <summary>
  2080. /// Number of threads that share each completion queue
  2081. /// </summary>
  2082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2083. public int ThreadsPerCq {
  2084. get { return threadsPerCq_; }
  2085. set {
  2086. threadsPerCq_ = value;
  2087. }
  2088. }
  2089. /// <summary>Field number for the "resource_quota_size" field.</summary>
  2090. public const int ResourceQuotaSizeFieldNumber = 1001;
  2091. private int resourceQuotaSize_;
  2092. /// <summary>
  2093. /// Buffer pool size (no buffer pool specified if unset)
  2094. /// </summary>
  2095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2096. public int ResourceQuotaSize {
  2097. get { return resourceQuotaSize_; }
  2098. set {
  2099. resourceQuotaSize_ = value;
  2100. }
  2101. }
  2102. /// <summary>Field number for the "channel_args" field.</summary>
  2103. public const int ChannelArgsFieldNumber = 1002;
  2104. private static readonly pb::FieldCodec<global::Grpc.Testing.ChannelArg> _repeated_channelArgs_codec
  2105. = pb::FieldCodec.ForMessage(8018, global::Grpc.Testing.ChannelArg.Parser);
  2106. private readonly pbc::RepeatedField<global::Grpc.Testing.ChannelArg> channelArgs_ = new pbc::RepeatedField<global::Grpc.Testing.ChannelArg>();
  2107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2108. public pbc::RepeatedField<global::Grpc.Testing.ChannelArg> ChannelArgs {
  2109. get { return channelArgs_; }
  2110. }
  2111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2112. public override bool Equals(object other) {
  2113. return Equals(other as ServerConfig);
  2114. }
  2115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2116. public bool Equals(ServerConfig other) {
  2117. if (ReferenceEquals(other, null)) {
  2118. return false;
  2119. }
  2120. if (ReferenceEquals(other, this)) {
  2121. return true;
  2122. }
  2123. if (ServerType != other.ServerType) return false;
  2124. if (!object.Equals(SecurityParams, other.SecurityParams)) return false;
  2125. if (Port != other.Port) return false;
  2126. if (AsyncServerThreads != other.AsyncServerThreads) return false;
  2127. if (CoreLimit != other.CoreLimit) return false;
  2128. if (!object.Equals(PayloadConfig, other.PayloadConfig)) return false;
  2129. if(!coreList_.Equals(other.coreList_)) return false;
  2130. if (OtherServerApi != other.OtherServerApi) return false;
  2131. if (ThreadsPerCq != other.ThreadsPerCq) return false;
  2132. if (ResourceQuotaSize != other.ResourceQuotaSize) return false;
  2133. if(!channelArgs_.Equals(other.channelArgs_)) return false;
  2134. return Equals(_unknownFields, other._unknownFields);
  2135. }
  2136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2137. public override int GetHashCode() {
  2138. int hash = 1;
  2139. if (ServerType != 0) hash ^= ServerType.GetHashCode();
  2140. if (securityParams_ != null) hash ^= SecurityParams.GetHashCode();
  2141. if (Port != 0) hash ^= Port.GetHashCode();
  2142. if (AsyncServerThreads != 0) hash ^= AsyncServerThreads.GetHashCode();
  2143. if (CoreLimit != 0) hash ^= CoreLimit.GetHashCode();
  2144. if (payloadConfig_ != null) hash ^= PayloadConfig.GetHashCode();
  2145. hash ^= coreList_.GetHashCode();
  2146. if (OtherServerApi.Length != 0) hash ^= OtherServerApi.GetHashCode();
  2147. if (ThreadsPerCq != 0) hash ^= ThreadsPerCq.GetHashCode();
  2148. if (ResourceQuotaSize != 0) hash ^= ResourceQuotaSize.GetHashCode();
  2149. hash ^= channelArgs_.GetHashCode();
  2150. if (_unknownFields != null) {
  2151. hash ^= _unknownFields.GetHashCode();
  2152. }
  2153. return hash;
  2154. }
  2155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2156. public override string ToString() {
  2157. return pb::JsonFormatter.ToDiagnosticString(this);
  2158. }
  2159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2160. public void WriteTo(pb::CodedOutputStream output) {
  2161. if (ServerType != 0) {
  2162. output.WriteRawTag(8);
  2163. output.WriteEnum((int) ServerType);
  2164. }
  2165. if (securityParams_ != null) {
  2166. output.WriteRawTag(18);
  2167. output.WriteMessage(SecurityParams);
  2168. }
  2169. if (Port != 0) {
  2170. output.WriteRawTag(32);
  2171. output.WriteInt32(Port);
  2172. }
  2173. if (AsyncServerThreads != 0) {
  2174. output.WriteRawTag(56);
  2175. output.WriteInt32(AsyncServerThreads);
  2176. }
  2177. if (CoreLimit != 0) {
  2178. output.WriteRawTag(64);
  2179. output.WriteInt32(CoreLimit);
  2180. }
  2181. if (payloadConfig_ != null) {
  2182. output.WriteRawTag(74);
  2183. output.WriteMessage(PayloadConfig);
  2184. }
  2185. coreList_.WriteTo(output, _repeated_coreList_codec);
  2186. if (OtherServerApi.Length != 0) {
  2187. output.WriteRawTag(90);
  2188. output.WriteString(OtherServerApi);
  2189. }
  2190. if (ThreadsPerCq != 0) {
  2191. output.WriteRawTag(96);
  2192. output.WriteInt32(ThreadsPerCq);
  2193. }
  2194. if (ResourceQuotaSize != 0) {
  2195. output.WriteRawTag(200, 62);
  2196. output.WriteInt32(ResourceQuotaSize);
  2197. }
  2198. channelArgs_.WriteTo(output, _repeated_channelArgs_codec);
  2199. if (_unknownFields != null) {
  2200. _unknownFields.WriteTo(output);
  2201. }
  2202. }
  2203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2204. public int CalculateSize() {
  2205. int size = 0;
  2206. if (ServerType != 0) {
  2207. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ServerType);
  2208. }
  2209. if (securityParams_ != null) {
  2210. size += 1 + pb::CodedOutputStream.ComputeMessageSize(SecurityParams);
  2211. }
  2212. if (Port != 0) {
  2213. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Port);
  2214. }
  2215. if (AsyncServerThreads != 0) {
  2216. size += 1 + pb::CodedOutputStream.ComputeInt32Size(AsyncServerThreads);
  2217. }
  2218. if (CoreLimit != 0) {
  2219. size += 1 + pb::CodedOutputStream.ComputeInt32Size(CoreLimit);
  2220. }
  2221. if (payloadConfig_ != null) {
  2222. size += 1 + pb::CodedOutputStream.ComputeMessageSize(PayloadConfig);
  2223. }
  2224. size += coreList_.CalculateSize(_repeated_coreList_codec);
  2225. if (OtherServerApi.Length != 0) {
  2226. size += 1 + pb::CodedOutputStream.ComputeStringSize(OtherServerApi);
  2227. }
  2228. if (ThreadsPerCq != 0) {
  2229. size += 1 + pb::CodedOutputStream.ComputeInt32Size(ThreadsPerCq);
  2230. }
  2231. if (ResourceQuotaSize != 0) {
  2232. size += 2 + pb::CodedOutputStream.ComputeInt32Size(ResourceQuotaSize);
  2233. }
  2234. size += channelArgs_.CalculateSize(_repeated_channelArgs_codec);
  2235. if (_unknownFields != null) {
  2236. size += _unknownFields.CalculateSize();
  2237. }
  2238. return size;
  2239. }
  2240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2241. public void MergeFrom(ServerConfig other) {
  2242. if (other == null) {
  2243. return;
  2244. }
  2245. if (other.ServerType != 0) {
  2246. ServerType = other.ServerType;
  2247. }
  2248. if (other.securityParams_ != null) {
  2249. if (securityParams_ == null) {
  2250. SecurityParams = new global::Grpc.Testing.SecurityParams();
  2251. }
  2252. SecurityParams.MergeFrom(other.SecurityParams);
  2253. }
  2254. if (other.Port != 0) {
  2255. Port = other.Port;
  2256. }
  2257. if (other.AsyncServerThreads != 0) {
  2258. AsyncServerThreads = other.AsyncServerThreads;
  2259. }
  2260. if (other.CoreLimit != 0) {
  2261. CoreLimit = other.CoreLimit;
  2262. }
  2263. if (other.payloadConfig_ != null) {
  2264. if (payloadConfig_ == null) {
  2265. PayloadConfig = new global::Grpc.Testing.PayloadConfig();
  2266. }
  2267. PayloadConfig.MergeFrom(other.PayloadConfig);
  2268. }
  2269. coreList_.Add(other.coreList_);
  2270. if (other.OtherServerApi.Length != 0) {
  2271. OtherServerApi = other.OtherServerApi;
  2272. }
  2273. if (other.ThreadsPerCq != 0) {
  2274. ThreadsPerCq = other.ThreadsPerCq;
  2275. }
  2276. if (other.ResourceQuotaSize != 0) {
  2277. ResourceQuotaSize = other.ResourceQuotaSize;
  2278. }
  2279. channelArgs_.Add(other.channelArgs_);
  2280. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2281. }
  2282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2283. public void MergeFrom(pb::CodedInputStream input) {
  2284. uint tag;
  2285. while ((tag = input.ReadTag()) != 0) {
  2286. switch(tag) {
  2287. default:
  2288. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2289. break;
  2290. case 8: {
  2291. ServerType = (global::Grpc.Testing.ServerType) input.ReadEnum();
  2292. break;
  2293. }
  2294. case 18: {
  2295. if (securityParams_ == null) {
  2296. SecurityParams = new global::Grpc.Testing.SecurityParams();
  2297. }
  2298. input.ReadMessage(SecurityParams);
  2299. break;
  2300. }
  2301. case 32: {
  2302. Port = input.ReadInt32();
  2303. break;
  2304. }
  2305. case 56: {
  2306. AsyncServerThreads = input.ReadInt32();
  2307. break;
  2308. }
  2309. case 64: {
  2310. CoreLimit = input.ReadInt32();
  2311. break;
  2312. }
  2313. case 74: {
  2314. if (payloadConfig_ == null) {
  2315. PayloadConfig = new global::Grpc.Testing.PayloadConfig();
  2316. }
  2317. input.ReadMessage(PayloadConfig);
  2318. break;
  2319. }
  2320. case 82:
  2321. case 80: {
  2322. coreList_.AddEntriesFrom(input, _repeated_coreList_codec);
  2323. break;
  2324. }
  2325. case 90: {
  2326. OtherServerApi = input.ReadString();
  2327. break;
  2328. }
  2329. case 96: {
  2330. ThreadsPerCq = input.ReadInt32();
  2331. break;
  2332. }
  2333. case 8008: {
  2334. ResourceQuotaSize = input.ReadInt32();
  2335. break;
  2336. }
  2337. case 8018: {
  2338. channelArgs_.AddEntriesFrom(input, _repeated_channelArgs_codec);
  2339. break;
  2340. }
  2341. }
  2342. }
  2343. }
  2344. }
  2345. public sealed partial class ServerArgs : pb::IMessage<ServerArgs> {
  2346. private static readonly pb::MessageParser<ServerArgs> _parser = new pb::MessageParser<ServerArgs>(() => new ServerArgs());
  2347. private pb::UnknownFieldSet _unknownFields;
  2348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2349. public static pb::MessageParser<ServerArgs> Parser { get { return _parser; } }
  2350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2351. public static pbr::MessageDescriptor Descriptor {
  2352. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[10]; }
  2353. }
  2354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2355. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2356. get { return Descriptor; }
  2357. }
  2358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2359. public ServerArgs() {
  2360. OnConstruction();
  2361. }
  2362. partial void OnConstruction();
  2363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2364. public ServerArgs(ServerArgs other) : this() {
  2365. switch (other.ArgtypeCase) {
  2366. case ArgtypeOneofCase.Setup:
  2367. Setup = other.Setup.Clone();
  2368. break;
  2369. case ArgtypeOneofCase.Mark:
  2370. Mark = other.Mark.Clone();
  2371. break;
  2372. }
  2373. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2374. }
  2375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2376. public ServerArgs Clone() {
  2377. return new ServerArgs(this);
  2378. }
  2379. /// <summary>Field number for the "setup" field.</summary>
  2380. public const int SetupFieldNumber = 1;
  2381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2382. public global::Grpc.Testing.ServerConfig Setup {
  2383. get { return argtypeCase_ == ArgtypeOneofCase.Setup ? (global::Grpc.Testing.ServerConfig) argtype_ : null; }
  2384. set {
  2385. argtype_ = value;
  2386. argtypeCase_ = value == null ? ArgtypeOneofCase.None : ArgtypeOneofCase.Setup;
  2387. }
  2388. }
  2389. /// <summary>Field number for the "mark" field.</summary>
  2390. public const int MarkFieldNumber = 2;
  2391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2392. public global::Grpc.Testing.Mark Mark {
  2393. get { return argtypeCase_ == ArgtypeOneofCase.Mark ? (global::Grpc.Testing.Mark) argtype_ : null; }
  2394. set {
  2395. argtype_ = value;
  2396. argtypeCase_ = value == null ? ArgtypeOneofCase.None : ArgtypeOneofCase.Mark;
  2397. }
  2398. }
  2399. private object argtype_;
  2400. /// <summary>Enum of possible cases for the "argtype" oneof.</summary>
  2401. public enum ArgtypeOneofCase {
  2402. None = 0,
  2403. Setup = 1,
  2404. Mark = 2,
  2405. }
  2406. private ArgtypeOneofCase argtypeCase_ = ArgtypeOneofCase.None;
  2407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2408. public ArgtypeOneofCase ArgtypeCase {
  2409. get { return argtypeCase_; }
  2410. }
  2411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2412. public void ClearArgtype() {
  2413. argtypeCase_ = ArgtypeOneofCase.None;
  2414. argtype_ = null;
  2415. }
  2416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2417. public override bool Equals(object other) {
  2418. return Equals(other as ServerArgs);
  2419. }
  2420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2421. public bool Equals(ServerArgs other) {
  2422. if (ReferenceEquals(other, null)) {
  2423. return false;
  2424. }
  2425. if (ReferenceEquals(other, this)) {
  2426. return true;
  2427. }
  2428. if (!object.Equals(Setup, other.Setup)) return false;
  2429. if (!object.Equals(Mark, other.Mark)) return false;
  2430. if (ArgtypeCase != other.ArgtypeCase) return false;
  2431. return Equals(_unknownFields, other._unknownFields);
  2432. }
  2433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2434. public override int GetHashCode() {
  2435. int hash = 1;
  2436. if (argtypeCase_ == ArgtypeOneofCase.Setup) hash ^= Setup.GetHashCode();
  2437. if (argtypeCase_ == ArgtypeOneofCase.Mark) hash ^= Mark.GetHashCode();
  2438. hash ^= (int) argtypeCase_;
  2439. if (_unknownFields != null) {
  2440. hash ^= _unknownFields.GetHashCode();
  2441. }
  2442. return hash;
  2443. }
  2444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2445. public override string ToString() {
  2446. return pb::JsonFormatter.ToDiagnosticString(this);
  2447. }
  2448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2449. public void WriteTo(pb::CodedOutputStream output) {
  2450. if (argtypeCase_ == ArgtypeOneofCase.Setup) {
  2451. output.WriteRawTag(10);
  2452. output.WriteMessage(Setup);
  2453. }
  2454. if (argtypeCase_ == ArgtypeOneofCase.Mark) {
  2455. output.WriteRawTag(18);
  2456. output.WriteMessage(Mark);
  2457. }
  2458. if (_unknownFields != null) {
  2459. _unknownFields.WriteTo(output);
  2460. }
  2461. }
  2462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2463. public int CalculateSize() {
  2464. int size = 0;
  2465. if (argtypeCase_ == ArgtypeOneofCase.Setup) {
  2466. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Setup);
  2467. }
  2468. if (argtypeCase_ == ArgtypeOneofCase.Mark) {
  2469. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Mark);
  2470. }
  2471. if (_unknownFields != null) {
  2472. size += _unknownFields.CalculateSize();
  2473. }
  2474. return size;
  2475. }
  2476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2477. public void MergeFrom(ServerArgs other) {
  2478. if (other == null) {
  2479. return;
  2480. }
  2481. switch (other.ArgtypeCase) {
  2482. case ArgtypeOneofCase.Setup:
  2483. if (Setup == null) {
  2484. Setup = new global::Grpc.Testing.ServerConfig();
  2485. }
  2486. Setup.MergeFrom(other.Setup);
  2487. break;
  2488. case ArgtypeOneofCase.Mark:
  2489. if (Mark == null) {
  2490. Mark = new global::Grpc.Testing.Mark();
  2491. }
  2492. Mark.MergeFrom(other.Mark);
  2493. break;
  2494. }
  2495. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2496. }
  2497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2498. public void MergeFrom(pb::CodedInputStream input) {
  2499. uint tag;
  2500. while ((tag = input.ReadTag()) != 0) {
  2501. switch(tag) {
  2502. default:
  2503. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2504. break;
  2505. case 10: {
  2506. global::Grpc.Testing.ServerConfig subBuilder = new global::Grpc.Testing.ServerConfig();
  2507. if (argtypeCase_ == ArgtypeOneofCase.Setup) {
  2508. subBuilder.MergeFrom(Setup);
  2509. }
  2510. input.ReadMessage(subBuilder);
  2511. Setup = subBuilder;
  2512. break;
  2513. }
  2514. case 18: {
  2515. global::Grpc.Testing.Mark subBuilder = new global::Grpc.Testing.Mark();
  2516. if (argtypeCase_ == ArgtypeOneofCase.Mark) {
  2517. subBuilder.MergeFrom(Mark);
  2518. }
  2519. input.ReadMessage(subBuilder);
  2520. Mark = subBuilder;
  2521. break;
  2522. }
  2523. }
  2524. }
  2525. }
  2526. }
  2527. public sealed partial class ServerStatus : pb::IMessage<ServerStatus> {
  2528. private static readonly pb::MessageParser<ServerStatus> _parser = new pb::MessageParser<ServerStatus>(() => new ServerStatus());
  2529. private pb::UnknownFieldSet _unknownFields;
  2530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2531. public static pb::MessageParser<ServerStatus> Parser { get { return _parser; } }
  2532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2533. public static pbr::MessageDescriptor Descriptor {
  2534. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[11]; }
  2535. }
  2536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2537. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2538. get { return Descriptor; }
  2539. }
  2540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2541. public ServerStatus() {
  2542. OnConstruction();
  2543. }
  2544. partial void OnConstruction();
  2545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2546. public ServerStatus(ServerStatus other) : this() {
  2547. stats_ = other.stats_ != null ? other.stats_.Clone() : null;
  2548. port_ = other.port_;
  2549. cores_ = other.cores_;
  2550. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2551. }
  2552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2553. public ServerStatus Clone() {
  2554. return new ServerStatus(this);
  2555. }
  2556. /// <summary>Field number for the "stats" field.</summary>
  2557. public const int StatsFieldNumber = 1;
  2558. private global::Grpc.Testing.ServerStats stats_;
  2559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2560. public global::Grpc.Testing.ServerStats Stats {
  2561. get { return stats_; }
  2562. set {
  2563. stats_ = value;
  2564. }
  2565. }
  2566. /// <summary>Field number for the "port" field.</summary>
  2567. public const int PortFieldNumber = 2;
  2568. private int port_;
  2569. /// <summary>
  2570. /// the port bound by the server
  2571. /// </summary>
  2572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2573. public int Port {
  2574. get { return port_; }
  2575. set {
  2576. port_ = value;
  2577. }
  2578. }
  2579. /// <summary>Field number for the "cores" field.</summary>
  2580. public const int CoresFieldNumber = 3;
  2581. private int cores_;
  2582. /// <summary>
  2583. /// Number of cores available to the server
  2584. /// </summary>
  2585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2586. public int Cores {
  2587. get { return cores_; }
  2588. set {
  2589. cores_ = value;
  2590. }
  2591. }
  2592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2593. public override bool Equals(object other) {
  2594. return Equals(other as ServerStatus);
  2595. }
  2596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2597. public bool Equals(ServerStatus other) {
  2598. if (ReferenceEquals(other, null)) {
  2599. return false;
  2600. }
  2601. if (ReferenceEquals(other, this)) {
  2602. return true;
  2603. }
  2604. if (!object.Equals(Stats, other.Stats)) return false;
  2605. if (Port != other.Port) return false;
  2606. if (Cores != other.Cores) return false;
  2607. return Equals(_unknownFields, other._unknownFields);
  2608. }
  2609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2610. public override int GetHashCode() {
  2611. int hash = 1;
  2612. if (stats_ != null) hash ^= Stats.GetHashCode();
  2613. if (Port != 0) hash ^= Port.GetHashCode();
  2614. if (Cores != 0) hash ^= Cores.GetHashCode();
  2615. if (_unknownFields != null) {
  2616. hash ^= _unknownFields.GetHashCode();
  2617. }
  2618. return hash;
  2619. }
  2620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2621. public override string ToString() {
  2622. return pb::JsonFormatter.ToDiagnosticString(this);
  2623. }
  2624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2625. public void WriteTo(pb::CodedOutputStream output) {
  2626. if (stats_ != null) {
  2627. output.WriteRawTag(10);
  2628. output.WriteMessage(Stats);
  2629. }
  2630. if (Port != 0) {
  2631. output.WriteRawTag(16);
  2632. output.WriteInt32(Port);
  2633. }
  2634. if (Cores != 0) {
  2635. output.WriteRawTag(24);
  2636. output.WriteInt32(Cores);
  2637. }
  2638. if (_unknownFields != null) {
  2639. _unknownFields.WriteTo(output);
  2640. }
  2641. }
  2642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2643. public int CalculateSize() {
  2644. int size = 0;
  2645. if (stats_ != null) {
  2646. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Stats);
  2647. }
  2648. if (Port != 0) {
  2649. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Port);
  2650. }
  2651. if (Cores != 0) {
  2652. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Cores);
  2653. }
  2654. if (_unknownFields != null) {
  2655. size += _unknownFields.CalculateSize();
  2656. }
  2657. return size;
  2658. }
  2659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2660. public void MergeFrom(ServerStatus other) {
  2661. if (other == null) {
  2662. return;
  2663. }
  2664. if (other.stats_ != null) {
  2665. if (stats_ == null) {
  2666. Stats = new global::Grpc.Testing.ServerStats();
  2667. }
  2668. Stats.MergeFrom(other.Stats);
  2669. }
  2670. if (other.Port != 0) {
  2671. Port = other.Port;
  2672. }
  2673. if (other.Cores != 0) {
  2674. Cores = other.Cores;
  2675. }
  2676. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2677. }
  2678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2679. public void MergeFrom(pb::CodedInputStream input) {
  2680. uint tag;
  2681. while ((tag = input.ReadTag()) != 0) {
  2682. switch(tag) {
  2683. default:
  2684. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2685. break;
  2686. case 10: {
  2687. if (stats_ == null) {
  2688. Stats = new global::Grpc.Testing.ServerStats();
  2689. }
  2690. input.ReadMessage(Stats);
  2691. break;
  2692. }
  2693. case 16: {
  2694. Port = input.ReadInt32();
  2695. break;
  2696. }
  2697. case 24: {
  2698. Cores = input.ReadInt32();
  2699. break;
  2700. }
  2701. }
  2702. }
  2703. }
  2704. }
  2705. public sealed partial class CoreRequest : pb::IMessage<CoreRequest> {
  2706. private static readonly pb::MessageParser<CoreRequest> _parser = new pb::MessageParser<CoreRequest>(() => new CoreRequest());
  2707. private pb::UnknownFieldSet _unknownFields;
  2708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2709. public static pb::MessageParser<CoreRequest> Parser { get { return _parser; } }
  2710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2711. public static pbr::MessageDescriptor Descriptor {
  2712. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[12]; }
  2713. }
  2714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2715. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2716. get { return Descriptor; }
  2717. }
  2718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2719. public CoreRequest() {
  2720. OnConstruction();
  2721. }
  2722. partial void OnConstruction();
  2723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2724. public CoreRequest(CoreRequest other) : this() {
  2725. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2726. }
  2727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2728. public CoreRequest Clone() {
  2729. return new CoreRequest(this);
  2730. }
  2731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2732. public override bool Equals(object other) {
  2733. return Equals(other as CoreRequest);
  2734. }
  2735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2736. public bool Equals(CoreRequest other) {
  2737. if (ReferenceEquals(other, null)) {
  2738. return false;
  2739. }
  2740. if (ReferenceEquals(other, this)) {
  2741. return true;
  2742. }
  2743. return Equals(_unknownFields, other._unknownFields);
  2744. }
  2745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2746. public override int GetHashCode() {
  2747. int hash = 1;
  2748. if (_unknownFields != null) {
  2749. hash ^= _unknownFields.GetHashCode();
  2750. }
  2751. return hash;
  2752. }
  2753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2754. public override string ToString() {
  2755. return pb::JsonFormatter.ToDiagnosticString(this);
  2756. }
  2757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2758. public void WriteTo(pb::CodedOutputStream output) {
  2759. if (_unknownFields != null) {
  2760. _unknownFields.WriteTo(output);
  2761. }
  2762. }
  2763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2764. public int CalculateSize() {
  2765. int size = 0;
  2766. if (_unknownFields != null) {
  2767. size += _unknownFields.CalculateSize();
  2768. }
  2769. return size;
  2770. }
  2771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2772. public void MergeFrom(CoreRequest other) {
  2773. if (other == null) {
  2774. return;
  2775. }
  2776. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2777. }
  2778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2779. public void MergeFrom(pb::CodedInputStream input) {
  2780. uint tag;
  2781. while ((tag = input.ReadTag()) != 0) {
  2782. switch(tag) {
  2783. default:
  2784. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2785. break;
  2786. }
  2787. }
  2788. }
  2789. }
  2790. public sealed partial class CoreResponse : pb::IMessage<CoreResponse> {
  2791. private static readonly pb::MessageParser<CoreResponse> _parser = new pb::MessageParser<CoreResponse>(() => new CoreResponse());
  2792. private pb::UnknownFieldSet _unknownFields;
  2793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2794. public static pb::MessageParser<CoreResponse> Parser { get { return _parser; } }
  2795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2796. public static pbr::MessageDescriptor Descriptor {
  2797. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[13]; }
  2798. }
  2799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2800. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2801. get { return Descriptor; }
  2802. }
  2803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2804. public CoreResponse() {
  2805. OnConstruction();
  2806. }
  2807. partial void OnConstruction();
  2808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2809. public CoreResponse(CoreResponse other) : this() {
  2810. cores_ = other.cores_;
  2811. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2812. }
  2813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2814. public CoreResponse Clone() {
  2815. return new CoreResponse(this);
  2816. }
  2817. /// <summary>Field number for the "cores" field.</summary>
  2818. public const int CoresFieldNumber = 1;
  2819. private int cores_;
  2820. /// <summary>
  2821. /// Number of cores available on the server
  2822. /// </summary>
  2823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2824. public int Cores {
  2825. get { return cores_; }
  2826. set {
  2827. cores_ = value;
  2828. }
  2829. }
  2830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2831. public override bool Equals(object other) {
  2832. return Equals(other as CoreResponse);
  2833. }
  2834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2835. public bool Equals(CoreResponse other) {
  2836. if (ReferenceEquals(other, null)) {
  2837. return false;
  2838. }
  2839. if (ReferenceEquals(other, this)) {
  2840. return true;
  2841. }
  2842. if (Cores != other.Cores) return false;
  2843. return Equals(_unknownFields, other._unknownFields);
  2844. }
  2845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2846. public override int GetHashCode() {
  2847. int hash = 1;
  2848. if (Cores != 0) hash ^= Cores.GetHashCode();
  2849. if (_unknownFields != null) {
  2850. hash ^= _unknownFields.GetHashCode();
  2851. }
  2852. return hash;
  2853. }
  2854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2855. public override string ToString() {
  2856. return pb::JsonFormatter.ToDiagnosticString(this);
  2857. }
  2858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2859. public void WriteTo(pb::CodedOutputStream output) {
  2860. if (Cores != 0) {
  2861. output.WriteRawTag(8);
  2862. output.WriteInt32(Cores);
  2863. }
  2864. if (_unknownFields != null) {
  2865. _unknownFields.WriteTo(output);
  2866. }
  2867. }
  2868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2869. public int CalculateSize() {
  2870. int size = 0;
  2871. if (Cores != 0) {
  2872. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Cores);
  2873. }
  2874. if (_unknownFields != null) {
  2875. size += _unknownFields.CalculateSize();
  2876. }
  2877. return size;
  2878. }
  2879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2880. public void MergeFrom(CoreResponse other) {
  2881. if (other == null) {
  2882. return;
  2883. }
  2884. if (other.Cores != 0) {
  2885. Cores = other.Cores;
  2886. }
  2887. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2888. }
  2889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2890. public void MergeFrom(pb::CodedInputStream input) {
  2891. uint tag;
  2892. while ((tag = input.ReadTag()) != 0) {
  2893. switch(tag) {
  2894. default:
  2895. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2896. break;
  2897. case 8: {
  2898. Cores = input.ReadInt32();
  2899. break;
  2900. }
  2901. }
  2902. }
  2903. }
  2904. }
  2905. public sealed partial class Void : pb::IMessage<Void> {
  2906. private static readonly pb::MessageParser<Void> _parser = new pb::MessageParser<Void>(() => new Void());
  2907. private pb::UnknownFieldSet _unknownFields;
  2908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2909. public static pb::MessageParser<Void> Parser { get { return _parser; } }
  2910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2911. public static pbr::MessageDescriptor Descriptor {
  2912. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[14]; }
  2913. }
  2914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2915. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2916. get { return Descriptor; }
  2917. }
  2918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2919. public Void() {
  2920. OnConstruction();
  2921. }
  2922. partial void OnConstruction();
  2923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2924. public Void(Void other) : this() {
  2925. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2926. }
  2927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2928. public Void Clone() {
  2929. return new Void(this);
  2930. }
  2931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2932. public override bool Equals(object other) {
  2933. return Equals(other as Void);
  2934. }
  2935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2936. public bool Equals(Void other) {
  2937. if (ReferenceEquals(other, null)) {
  2938. return false;
  2939. }
  2940. if (ReferenceEquals(other, this)) {
  2941. return true;
  2942. }
  2943. return Equals(_unknownFields, other._unknownFields);
  2944. }
  2945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2946. public override int GetHashCode() {
  2947. int hash = 1;
  2948. if (_unknownFields != null) {
  2949. hash ^= _unknownFields.GetHashCode();
  2950. }
  2951. return hash;
  2952. }
  2953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2954. public override string ToString() {
  2955. return pb::JsonFormatter.ToDiagnosticString(this);
  2956. }
  2957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2958. public void WriteTo(pb::CodedOutputStream output) {
  2959. if (_unknownFields != null) {
  2960. _unknownFields.WriteTo(output);
  2961. }
  2962. }
  2963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2964. public int CalculateSize() {
  2965. int size = 0;
  2966. if (_unknownFields != null) {
  2967. size += _unknownFields.CalculateSize();
  2968. }
  2969. return size;
  2970. }
  2971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2972. public void MergeFrom(Void other) {
  2973. if (other == null) {
  2974. return;
  2975. }
  2976. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2977. }
  2978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2979. public void MergeFrom(pb::CodedInputStream input) {
  2980. uint tag;
  2981. while ((tag = input.ReadTag()) != 0) {
  2982. switch(tag) {
  2983. default:
  2984. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2985. break;
  2986. }
  2987. }
  2988. }
  2989. }
  2990. /// <summary>
  2991. /// A single performance scenario: input to qps_json_driver
  2992. /// </summary>
  2993. public sealed partial class Scenario : pb::IMessage<Scenario> {
  2994. private static readonly pb::MessageParser<Scenario> _parser = new pb::MessageParser<Scenario>(() => new Scenario());
  2995. private pb::UnknownFieldSet _unknownFields;
  2996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2997. public static pb::MessageParser<Scenario> Parser { get { return _parser; } }
  2998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2999. public static pbr::MessageDescriptor Descriptor {
  3000. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[15]; }
  3001. }
  3002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3003. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3004. get { return Descriptor; }
  3005. }
  3006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3007. public Scenario() {
  3008. OnConstruction();
  3009. }
  3010. partial void OnConstruction();
  3011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3012. public Scenario(Scenario other) : this() {
  3013. name_ = other.name_;
  3014. clientConfig_ = other.clientConfig_ != null ? other.clientConfig_.Clone() : null;
  3015. numClients_ = other.numClients_;
  3016. serverConfig_ = other.serverConfig_ != null ? other.serverConfig_.Clone() : null;
  3017. numServers_ = other.numServers_;
  3018. warmupSeconds_ = other.warmupSeconds_;
  3019. benchmarkSeconds_ = other.benchmarkSeconds_;
  3020. spawnLocalWorkerCount_ = other.spawnLocalWorkerCount_;
  3021. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  3022. }
  3023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3024. public Scenario Clone() {
  3025. return new Scenario(this);
  3026. }
  3027. /// <summary>Field number for the "name" field.</summary>
  3028. public const int NameFieldNumber = 1;
  3029. private string name_ = "";
  3030. /// <summary>
  3031. /// Human readable name for this scenario
  3032. /// </summary>
  3033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3034. public string Name {
  3035. get { return name_; }
  3036. set {
  3037. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  3038. }
  3039. }
  3040. /// <summary>Field number for the "client_config" field.</summary>
  3041. public const int ClientConfigFieldNumber = 2;
  3042. private global::Grpc.Testing.ClientConfig clientConfig_;
  3043. /// <summary>
  3044. /// Client configuration
  3045. /// </summary>
  3046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3047. public global::Grpc.Testing.ClientConfig ClientConfig {
  3048. get { return clientConfig_; }
  3049. set {
  3050. clientConfig_ = value;
  3051. }
  3052. }
  3053. /// <summary>Field number for the "num_clients" field.</summary>
  3054. public const int NumClientsFieldNumber = 3;
  3055. private int numClients_;
  3056. /// <summary>
  3057. /// Number of clients to start for the test
  3058. /// </summary>
  3059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3060. public int NumClients {
  3061. get { return numClients_; }
  3062. set {
  3063. numClients_ = value;
  3064. }
  3065. }
  3066. /// <summary>Field number for the "server_config" field.</summary>
  3067. public const int ServerConfigFieldNumber = 4;
  3068. private global::Grpc.Testing.ServerConfig serverConfig_;
  3069. /// <summary>
  3070. /// Server configuration
  3071. /// </summary>
  3072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3073. public global::Grpc.Testing.ServerConfig ServerConfig {
  3074. get { return serverConfig_; }
  3075. set {
  3076. serverConfig_ = value;
  3077. }
  3078. }
  3079. /// <summary>Field number for the "num_servers" field.</summary>
  3080. public const int NumServersFieldNumber = 5;
  3081. private int numServers_;
  3082. /// <summary>
  3083. /// Number of servers to start for the test
  3084. /// </summary>
  3085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3086. public int NumServers {
  3087. get { return numServers_; }
  3088. set {
  3089. numServers_ = value;
  3090. }
  3091. }
  3092. /// <summary>Field number for the "warmup_seconds" field.</summary>
  3093. public const int WarmupSecondsFieldNumber = 6;
  3094. private int warmupSeconds_;
  3095. /// <summary>
  3096. /// Warmup period, in seconds
  3097. /// </summary>
  3098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3099. public int WarmupSeconds {
  3100. get { return warmupSeconds_; }
  3101. set {
  3102. warmupSeconds_ = value;
  3103. }
  3104. }
  3105. /// <summary>Field number for the "benchmark_seconds" field.</summary>
  3106. public const int BenchmarkSecondsFieldNumber = 7;
  3107. private int benchmarkSeconds_;
  3108. /// <summary>
  3109. /// Benchmark time, in seconds
  3110. /// </summary>
  3111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3112. public int BenchmarkSeconds {
  3113. get { return benchmarkSeconds_; }
  3114. set {
  3115. benchmarkSeconds_ = value;
  3116. }
  3117. }
  3118. /// <summary>Field number for the "spawn_local_worker_count" field.</summary>
  3119. public const int SpawnLocalWorkerCountFieldNumber = 8;
  3120. private int spawnLocalWorkerCount_;
  3121. /// <summary>
  3122. /// Number of workers to spawn locally (usually zero)
  3123. /// </summary>
  3124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3125. public int SpawnLocalWorkerCount {
  3126. get { return spawnLocalWorkerCount_; }
  3127. set {
  3128. spawnLocalWorkerCount_ = value;
  3129. }
  3130. }
  3131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3132. public override bool Equals(object other) {
  3133. return Equals(other as Scenario);
  3134. }
  3135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3136. public bool Equals(Scenario other) {
  3137. if (ReferenceEquals(other, null)) {
  3138. return false;
  3139. }
  3140. if (ReferenceEquals(other, this)) {
  3141. return true;
  3142. }
  3143. if (Name != other.Name) return false;
  3144. if (!object.Equals(ClientConfig, other.ClientConfig)) return false;
  3145. if (NumClients != other.NumClients) return false;
  3146. if (!object.Equals(ServerConfig, other.ServerConfig)) return false;
  3147. if (NumServers != other.NumServers) return false;
  3148. if (WarmupSeconds != other.WarmupSeconds) return false;
  3149. if (BenchmarkSeconds != other.BenchmarkSeconds) return false;
  3150. if (SpawnLocalWorkerCount != other.SpawnLocalWorkerCount) return false;
  3151. return Equals(_unknownFields, other._unknownFields);
  3152. }
  3153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3154. public override int GetHashCode() {
  3155. int hash = 1;
  3156. if (Name.Length != 0) hash ^= Name.GetHashCode();
  3157. if (clientConfig_ != null) hash ^= ClientConfig.GetHashCode();
  3158. if (NumClients != 0) hash ^= NumClients.GetHashCode();
  3159. if (serverConfig_ != null) hash ^= ServerConfig.GetHashCode();
  3160. if (NumServers != 0) hash ^= NumServers.GetHashCode();
  3161. if (WarmupSeconds != 0) hash ^= WarmupSeconds.GetHashCode();
  3162. if (BenchmarkSeconds != 0) hash ^= BenchmarkSeconds.GetHashCode();
  3163. if (SpawnLocalWorkerCount != 0) hash ^= SpawnLocalWorkerCount.GetHashCode();
  3164. if (_unknownFields != null) {
  3165. hash ^= _unknownFields.GetHashCode();
  3166. }
  3167. return hash;
  3168. }
  3169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3170. public override string ToString() {
  3171. return pb::JsonFormatter.ToDiagnosticString(this);
  3172. }
  3173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3174. public void WriteTo(pb::CodedOutputStream output) {
  3175. if (Name.Length != 0) {
  3176. output.WriteRawTag(10);
  3177. output.WriteString(Name);
  3178. }
  3179. if (clientConfig_ != null) {
  3180. output.WriteRawTag(18);
  3181. output.WriteMessage(ClientConfig);
  3182. }
  3183. if (NumClients != 0) {
  3184. output.WriteRawTag(24);
  3185. output.WriteInt32(NumClients);
  3186. }
  3187. if (serverConfig_ != null) {
  3188. output.WriteRawTag(34);
  3189. output.WriteMessage(ServerConfig);
  3190. }
  3191. if (NumServers != 0) {
  3192. output.WriteRawTag(40);
  3193. output.WriteInt32(NumServers);
  3194. }
  3195. if (WarmupSeconds != 0) {
  3196. output.WriteRawTag(48);
  3197. output.WriteInt32(WarmupSeconds);
  3198. }
  3199. if (BenchmarkSeconds != 0) {
  3200. output.WriteRawTag(56);
  3201. output.WriteInt32(BenchmarkSeconds);
  3202. }
  3203. if (SpawnLocalWorkerCount != 0) {
  3204. output.WriteRawTag(64);
  3205. output.WriteInt32(SpawnLocalWorkerCount);
  3206. }
  3207. if (_unknownFields != null) {
  3208. _unknownFields.WriteTo(output);
  3209. }
  3210. }
  3211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3212. public int CalculateSize() {
  3213. int size = 0;
  3214. if (Name.Length != 0) {
  3215. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  3216. }
  3217. if (clientConfig_ != null) {
  3218. size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClientConfig);
  3219. }
  3220. if (NumClients != 0) {
  3221. size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumClients);
  3222. }
  3223. if (serverConfig_ != null) {
  3224. size += 1 + pb::CodedOutputStream.ComputeMessageSize(ServerConfig);
  3225. }
  3226. if (NumServers != 0) {
  3227. size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumServers);
  3228. }
  3229. if (WarmupSeconds != 0) {
  3230. size += 1 + pb::CodedOutputStream.ComputeInt32Size(WarmupSeconds);
  3231. }
  3232. if (BenchmarkSeconds != 0) {
  3233. size += 1 + pb::CodedOutputStream.ComputeInt32Size(BenchmarkSeconds);
  3234. }
  3235. if (SpawnLocalWorkerCount != 0) {
  3236. size += 1 + pb::CodedOutputStream.ComputeInt32Size(SpawnLocalWorkerCount);
  3237. }
  3238. if (_unknownFields != null) {
  3239. size += _unknownFields.CalculateSize();
  3240. }
  3241. return size;
  3242. }
  3243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3244. public void MergeFrom(Scenario other) {
  3245. if (other == null) {
  3246. return;
  3247. }
  3248. if (other.Name.Length != 0) {
  3249. Name = other.Name;
  3250. }
  3251. if (other.clientConfig_ != null) {
  3252. if (clientConfig_ == null) {
  3253. ClientConfig = new global::Grpc.Testing.ClientConfig();
  3254. }
  3255. ClientConfig.MergeFrom(other.ClientConfig);
  3256. }
  3257. if (other.NumClients != 0) {
  3258. NumClients = other.NumClients;
  3259. }
  3260. if (other.serverConfig_ != null) {
  3261. if (serverConfig_ == null) {
  3262. ServerConfig = new global::Grpc.Testing.ServerConfig();
  3263. }
  3264. ServerConfig.MergeFrom(other.ServerConfig);
  3265. }
  3266. if (other.NumServers != 0) {
  3267. NumServers = other.NumServers;
  3268. }
  3269. if (other.WarmupSeconds != 0) {
  3270. WarmupSeconds = other.WarmupSeconds;
  3271. }
  3272. if (other.BenchmarkSeconds != 0) {
  3273. BenchmarkSeconds = other.BenchmarkSeconds;
  3274. }
  3275. if (other.SpawnLocalWorkerCount != 0) {
  3276. SpawnLocalWorkerCount = other.SpawnLocalWorkerCount;
  3277. }
  3278. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  3279. }
  3280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3281. public void MergeFrom(pb::CodedInputStream input) {
  3282. uint tag;
  3283. while ((tag = input.ReadTag()) != 0) {
  3284. switch(tag) {
  3285. default:
  3286. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  3287. break;
  3288. case 10: {
  3289. Name = input.ReadString();
  3290. break;
  3291. }
  3292. case 18: {
  3293. if (clientConfig_ == null) {
  3294. ClientConfig = new global::Grpc.Testing.ClientConfig();
  3295. }
  3296. input.ReadMessage(ClientConfig);
  3297. break;
  3298. }
  3299. case 24: {
  3300. NumClients = input.ReadInt32();
  3301. break;
  3302. }
  3303. case 34: {
  3304. if (serverConfig_ == null) {
  3305. ServerConfig = new global::Grpc.Testing.ServerConfig();
  3306. }
  3307. input.ReadMessage(ServerConfig);
  3308. break;
  3309. }
  3310. case 40: {
  3311. NumServers = input.ReadInt32();
  3312. break;
  3313. }
  3314. case 48: {
  3315. WarmupSeconds = input.ReadInt32();
  3316. break;
  3317. }
  3318. case 56: {
  3319. BenchmarkSeconds = input.ReadInt32();
  3320. break;
  3321. }
  3322. case 64: {
  3323. SpawnLocalWorkerCount = input.ReadInt32();
  3324. break;
  3325. }
  3326. }
  3327. }
  3328. }
  3329. }
  3330. /// <summary>
  3331. /// A set of scenarios to be run with qps_json_driver
  3332. /// </summary>
  3333. public sealed partial class Scenarios : pb::IMessage<Scenarios> {
  3334. private static readonly pb::MessageParser<Scenarios> _parser = new pb::MessageParser<Scenarios>(() => new Scenarios());
  3335. private pb::UnknownFieldSet _unknownFields;
  3336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3337. public static pb::MessageParser<Scenarios> Parser { get { return _parser; } }
  3338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3339. public static pbr::MessageDescriptor Descriptor {
  3340. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[16]; }
  3341. }
  3342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3343. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3344. get { return Descriptor; }
  3345. }
  3346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3347. public Scenarios() {
  3348. OnConstruction();
  3349. }
  3350. partial void OnConstruction();
  3351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3352. public Scenarios(Scenarios other) : this() {
  3353. scenarios_ = other.scenarios_.Clone();
  3354. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  3355. }
  3356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3357. public Scenarios Clone() {
  3358. return new Scenarios(this);
  3359. }
  3360. /// <summary>Field number for the "scenarios" field.</summary>
  3361. public const int Scenarios_FieldNumber = 1;
  3362. private static readonly pb::FieldCodec<global::Grpc.Testing.Scenario> _repeated_scenarios_codec
  3363. = pb::FieldCodec.ForMessage(10, global::Grpc.Testing.Scenario.Parser);
  3364. private readonly pbc::RepeatedField<global::Grpc.Testing.Scenario> scenarios_ = new pbc::RepeatedField<global::Grpc.Testing.Scenario>();
  3365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3366. public pbc::RepeatedField<global::Grpc.Testing.Scenario> Scenarios_ {
  3367. get { return scenarios_; }
  3368. }
  3369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3370. public override bool Equals(object other) {
  3371. return Equals(other as Scenarios);
  3372. }
  3373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3374. public bool Equals(Scenarios other) {
  3375. if (ReferenceEquals(other, null)) {
  3376. return false;
  3377. }
  3378. if (ReferenceEquals(other, this)) {
  3379. return true;
  3380. }
  3381. if(!scenarios_.Equals(other.scenarios_)) return false;
  3382. return Equals(_unknownFields, other._unknownFields);
  3383. }
  3384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3385. public override int GetHashCode() {
  3386. int hash = 1;
  3387. hash ^= scenarios_.GetHashCode();
  3388. if (_unknownFields != null) {
  3389. hash ^= _unknownFields.GetHashCode();
  3390. }
  3391. return hash;
  3392. }
  3393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3394. public override string ToString() {
  3395. return pb::JsonFormatter.ToDiagnosticString(this);
  3396. }
  3397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3398. public void WriteTo(pb::CodedOutputStream output) {
  3399. scenarios_.WriteTo(output, _repeated_scenarios_codec);
  3400. if (_unknownFields != null) {
  3401. _unknownFields.WriteTo(output);
  3402. }
  3403. }
  3404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3405. public int CalculateSize() {
  3406. int size = 0;
  3407. size += scenarios_.CalculateSize(_repeated_scenarios_codec);
  3408. if (_unknownFields != null) {
  3409. size += _unknownFields.CalculateSize();
  3410. }
  3411. return size;
  3412. }
  3413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3414. public void MergeFrom(Scenarios other) {
  3415. if (other == null) {
  3416. return;
  3417. }
  3418. scenarios_.Add(other.scenarios_);
  3419. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  3420. }
  3421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3422. public void MergeFrom(pb::CodedInputStream input) {
  3423. uint tag;
  3424. while ((tag = input.ReadTag()) != 0) {
  3425. switch(tag) {
  3426. default:
  3427. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  3428. break;
  3429. case 10: {
  3430. scenarios_.AddEntriesFrom(input, _repeated_scenarios_codec);
  3431. break;
  3432. }
  3433. }
  3434. }
  3435. }
  3436. }
  3437. /// <summary>
  3438. /// Basic summary that can be computed from ClientStats and ServerStats
  3439. /// once the scenario has finished.
  3440. /// </summary>
  3441. public sealed partial class ScenarioResultSummary : pb::IMessage<ScenarioResultSummary> {
  3442. private static readonly pb::MessageParser<ScenarioResultSummary> _parser = new pb::MessageParser<ScenarioResultSummary>(() => new ScenarioResultSummary());
  3443. private pb::UnknownFieldSet _unknownFields;
  3444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3445. public static pb::MessageParser<ScenarioResultSummary> Parser { get { return _parser; } }
  3446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3447. public static pbr::MessageDescriptor Descriptor {
  3448. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[17]; }
  3449. }
  3450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3451. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3452. get { return Descriptor; }
  3453. }
  3454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3455. public ScenarioResultSummary() {
  3456. OnConstruction();
  3457. }
  3458. partial void OnConstruction();
  3459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3460. public ScenarioResultSummary(ScenarioResultSummary other) : this() {
  3461. qps_ = other.qps_;
  3462. qpsPerServerCore_ = other.qpsPerServerCore_;
  3463. serverSystemTime_ = other.serverSystemTime_;
  3464. serverUserTime_ = other.serverUserTime_;
  3465. clientSystemTime_ = other.clientSystemTime_;
  3466. clientUserTime_ = other.clientUserTime_;
  3467. latency50_ = other.latency50_;
  3468. latency90_ = other.latency90_;
  3469. latency95_ = other.latency95_;
  3470. latency99_ = other.latency99_;
  3471. latency999_ = other.latency999_;
  3472. serverCpuUsage_ = other.serverCpuUsage_;
  3473. successfulRequestsPerSecond_ = other.successfulRequestsPerSecond_;
  3474. failedRequestsPerSecond_ = other.failedRequestsPerSecond_;
  3475. clientPollsPerRequest_ = other.clientPollsPerRequest_;
  3476. serverPollsPerRequest_ = other.serverPollsPerRequest_;
  3477. serverQueriesPerCpuSec_ = other.serverQueriesPerCpuSec_;
  3478. clientQueriesPerCpuSec_ = other.clientQueriesPerCpuSec_;
  3479. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  3480. }
  3481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3482. public ScenarioResultSummary Clone() {
  3483. return new ScenarioResultSummary(this);
  3484. }
  3485. /// <summary>Field number for the "qps" field.</summary>
  3486. public const int QpsFieldNumber = 1;
  3487. private double qps_;
  3488. /// <summary>
  3489. /// Total number of operations per second over all clients.
  3490. /// </summary>
  3491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3492. public double Qps {
  3493. get { return qps_; }
  3494. set {
  3495. qps_ = value;
  3496. }
  3497. }
  3498. /// <summary>Field number for the "qps_per_server_core" field.</summary>
  3499. public const int QpsPerServerCoreFieldNumber = 2;
  3500. private double qpsPerServerCore_;
  3501. /// <summary>
  3502. /// QPS per one server core.
  3503. /// </summary>
  3504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3505. public double QpsPerServerCore {
  3506. get { return qpsPerServerCore_; }
  3507. set {
  3508. qpsPerServerCore_ = value;
  3509. }
  3510. }
  3511. /// <summary>Field number for the "server_system_time" field.</summary>
  3512. public const int ServerSystemTimeFieldNumber = 3;
  3513. private double serverSystemTime_;
  3514. /// <summary>
  3515. /// server load based on system_time (0.85 => 85%)
  3516. /// </summary>
  3517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3518. public double ServerSystemTime {
  3519. get { return serverSystemTime_; }
  3520. set {
  3521. serverSystemTime_ = value;
  3522. }
  3523. }
  3524. /// <summary>Field number for the "server_user_time" field.</summary>
  3525. public const int ServerUserTimeFieldNumber = 4;
  3526. private double serverUserTime_;
  3527. /// <summary>
  3528. /// server load based on user_time (0.85 => 85%)
  3529. /// </summary>
  3530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3531. public double ServerUserTime {
  3532. get { return serverUserTime_; }
  3533. set {
  3534. serverUserTime_ = value;
  3535. }
  3536. }
  3537. /// <summary>Field number for the "client_system_time" field.</summary>
  3538. public const int ClientSystemTimeFieldNumber = 5;
  3539. private double clientSystemTime_;
  3540. /// <summary>
  3541. /// client load based on system_time (0.85 => 85%)
  3542. /// </summary>
  3543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3544. public double ClientSystemTime {
  3545. get { return clientSystemTime_; }
  3546. set {
  3547. clientSystemTime_ = value;
  3548. }
  3549. }
  3550. /// <summary>Field number for the "client_user_time" field.</summary>
  3551. public const int ClientUserTimeFieldNumber = 6;
  3552. private double clientUserTime_;
  3553. /// <summary>
  3554. /// client load based on user_time (0.85 => 85%)
  3555. /// </summary>
  3556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3557. public double ClientUserTime {
  3558. get { return clientUserTime_; }
  3559. set {
  3560. clientUserTime_ = value;
  3561. }
  3562. }
  3563. /// <summary>Field number for the "latency_50" field.</summary>
  3564. public const int Latency50FieldNumber = 7;
  3565. private double latency50_;
  3566. /// <summary>
  3567. /// X% latency percentiles (in nanoseconds)
  3568. /// </summary>
  3569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3570. public double Latency50 {
  3571. get { return latency50_; }
  3572. set {
  3573. latency50_ = value;
  3574. }
  3575. }
  3576. /// <summary>Field number for the "latency_90" field.</summary>
  3577. public const int Latency90FieldNumber = 8;
  3578. private double latency90_;
  3579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3580. public double Latency90 {
  3581. get { return latency90_; }
  3582. set {
  3583. latency90_ = value;
  3584. }
  3585. }
  3586. /// <summary>Field number for the "latency_95" field.</summary>
  3587. public const int Latency95FieldNumber = 9;
  3588. private double latency95_;
  3589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3590. public double Latency95 {
  3591. get { return latency95_; }
  3592. set {
  3593. latency95_ = value;
  3594. }
  3595. }
  3596. /// <summary>Field number for the "latency_99" field.</summary>
  3597. public const int Latency99FieldNumber = 10;
  3598. private double latency99_;
  3599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3600. public double Latency99 {
  3601. get { return latency99_; }
  3602. set {
  3603. latency99_ = value;
  3604. }
  3605. }
  3606. /// <summary>Field number for the "latency_999" field.</summary>
  3607. public const int Latency999FieldNumber = 11;
  3608. private double latency999_;
  3609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3610. public double Latency999 {
  3611. get { return latency999_; }
  3612. set {
  3613. latency999_ = value;
  3614. }
  3615. }
  3616. /// <summary>Field number for the "server_cpu_usage" field.</summary>
  3617. public const int ServerCpuUsageFieldNumber = 12;
  3618. private double serverCpuUsage_;
  3619. /// <summary>
  3620. /// server cpu usage percentage
  3621. /// </summary>
  3622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3623. public double ServerCpuUsage {
  3624. get { return serverCpuUsage_; }
  3625. set {
  3626. serverCpuUsage_ = value;
  3627. }
  3628. }
  3629. /// <summary>Field number for the "successful_requests_per_second" field.</summary>
  3630. public const int SuccessfulRequestsPerSecondFieldNumber = 13;
  3631. private double successfulRequestsPerSecond_;
  3632. /// <summary>
  3633. /// Number of requests that succeeded/failed
  3634. /// </summary>
  3635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3636. public double SuccessfulRequestsPerSecond {
  3637. get { return successfulRequestsPerSecond_; }
  3638. set {
  3639. successfulRequestsPerSecond_ = value;
  3640. }
  3641. }
  3642. /// <summary>Field number for the "failed_requests_per_second" field.</summary>
  3643. public const int FailedRequestsPerSecondFieldNumber = 14;
  3644. private double failedRequestsPerSecond_;
  3645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3646. public double FailedRequestsPerSecond {
  3647. get { return failedRequestsPerSecond_; }
  3648. set {
  3649. failedRequestsPerSecond_ = value;
  3650. }
  3651. }
  3652. /// <summary>Field number for the "client_polls_per_request" field.</summary>
  3653. public const int ClientPollsPerRequestFieldNumber = 15;
  3654. private double clientPollsPerRequest_;
  3655. /// <summary>
  3656. /// Number of polls called inside completion queue per request
  3657. /// </summary>
  3658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3659. public double ClientPollsPerRequest {
  3660. get { return clientPollsPerRequest_; }
  3661. set {
  3662. clientPollsPerRequest_ = value;
  3663. }
  3664. }
  3665. /// <summary>Field number for the "server_polls_per_request" field.</summary>
  3666. public const int ServerPollsPerRequestFieldNumber = 16;
  3667. private double serverPollsPerRequest_;
  3668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3669. public double ServerPollsPerRequest {
  3670. get { return serverPollsPerRequest_; }
  3671. set {
  3672. serverPollsPerRequest_ = value;
  3673. }
  3674. }
  3675. /// <summary>Field number for the "server_queries_per_cpu_sec" field.</summary>
  3676. public const int ServerQueriesPerCpuSecFieldNumber = 17;
  3677. private double serverQueriesPerCpuSec_;
  3678. /// <summary>
  3679. /// Queries per CPU-sec over all servers or clients
  3680. /// </summary>
  3681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3682. public double ServerQueriesPerCpuSec {
  3683. get { return serverQueriesPerCpuSec_; }
  3684. set {
  3685. serverQueriesPerCpuSec_ = value;
  3686. }
  3687. }
  3688. /// <summary>Field number for the "client_queries_per_cpu_sec" field.</summary>
  3689. public const int ClientQueriesPerCpuSecFieldNumber = 18;
  3690. private double clientQueriesPerCpuSec_;
  3691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3692. public double ClientQueriesPerCpuSec {
  3693. get { return clientQueriesPerCpuSec_; }
  3694. set {
  3695. clientQueriesPerCpuSec_ = value;
  3696. }
  3697. }
  3698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3699. public override bool Equals(object other) {
  3700. return Equals(other as ScenarioResultSummary);
  3701. }
  3702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3703. public bool Equals(ScenarioResultSummary other) {
  3704. if (ReferenceEquals(other, null)) {
  3705. return false;
  3706. }
  3707. if (ReferenceEquals(other, this)) {
  3708. return true;
  3709. }
  3710. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Qps, other.Qps)) return false;
  3711. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(QpsPerServerCore, other.QpsPerServerCore)) return false;
  3712. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ServerSystemTime, other.ServerSystemTime)) return false;
  3713. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ServerUserTime, other.ServerUserTime)) return false;
  3714. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ClientSystemTime, other.ClientSystemTime)) return false;
  3715. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ClientUserTime, other.ClientUserTime)) return false;
  3716. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Latency50, other.Latency50)) return false;
  3717. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Latency90, other.Latency90)) return false;
  3718. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Latency95, other.Latency95)) return false;
  3719. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Latency99, other.Latency99)) return false;
  3720. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Latency999, other.Latency999)) return false;
  3721. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ServerCpuUsage, other.ServerCpuUsage)) return false;
  3722. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SuccessfulRequestsPerSecond, other.SuccessfulRequestsPerSecond)) return false;
  3723. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FailedRequestsPerSecond, other.FailedRequestsPerSecond)) return false;
  3724. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ClientPollsPerRequest, other.ClientPollsPerRequest)) return false;
  3725. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ServerPollsPerRequest, other.ServerPollsPerRequest)) return false;
  3726. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ServerQueriesPerCpuSec, other.ServerQueriesPerCpuSec)) return false;
  3727. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ClientQueriesPerCpuSec, other.ClientQueriesPerCpuSec)) return false;
  3728. return Equals(_unknownFields, other._unknownFields);
  3729. }
  3730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3731. public override int GetHashCode() {
  3732. int hash = 1;
  3733. if (Qps != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Qps);
  3734. if (QpsPerServerCore != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(QpsPerServerCore);
  3735. if (ServerSystemTime != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ServerSystemTime);
  3736. if (ServerUserTime != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ServerUserTime);
  3737. if (ClientSystemTime != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ClientSystemTime);
  3738. if (ClientUserTime != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ClientUserTime);
  3739. if (Latency50 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Latency50);
  3740. if (Latency90 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Latency90);
  3741. if (Latency95 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Latency95);
  3742. if (Latency99 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Latency99);
  3743. if (Latency999 != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Latency999);
  3744. if (ServerCpuUsage != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ServerCpuUsage);
  3745. if (SuccessfulRequestsPerSecond != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SuccessfulRequestsPerSecond);
  3746. if (FailedRequestsPerSecond != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FailedRequestsPerSecond);
  3747. if (ClientPollsPerRequest != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ClientPollsPerRequest);
  3748. if (ServerPollsPerRequest != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ServerPollsPerRequest);
  3749. if (ServerQueriesPerCpuSec != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ServerQueriesPerCpuSec);
  3750. if (ClientQueriesPerCpuSec != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ClientQueriesPerCpuSec);
  3751. if (_unknownFields != null) {
  3752. hash ^= _unknownFields.GetHashCode();
  3753. }
  3754. return hash;
  3755. }
  3756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3757. public override string ToString() {
  3758. return pb::JsonFormatter.ToDiagnosticString(this);
  3759. }
  3760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3761. public void WriteTo(pb::CodedOutputStream output) {
  3762. if (Qps != 0D) {
  3763. output.WriteRawTag(9);
  3764. output.WriteDouble(Qps);
  3765. }
  3766. if (QpsPerServerCore != 0D) {
  3767. output.WriteRawTag(17);
  3768. output.WriteDouble(QpsPerServerCore);
  3769. }
  3770. if (ServerSystemTime != 0D) {
  3771. output.WriteRawTag(25);
  3772. output.WriteDouble(ServerSystemTime);
  3773. }
  3774. if (ServerUserTime != 0D) {
  3775. output.WriteRawTag(33);
  3776. output.WriteDouble(ServerUserTime);
  3777. }
  3778. if (ClientSystemTime != 0D) {
  3779. output.WriteRawTag(41);
  3780. output.WriteDouble(ClientSystemTime);
  3781. }
  3782. if (ClientUserTime != 0D) {
  3783. output.WriteRawTag(49);
  3784. output.WriteDouble(ClientUserTime);
  3785. }
  3786. if (Latency50 != 0D) {
  3787. output.WriteRawTag(57);
  3788. output.WriteDouble(Latency50);
  3789. }
  3790. if (Latency90 != 0D) {
  3791. output.WriteRawTag(65);
  3792. output.WriteDouble(Latency90);
  3793. }
  3794. if (Latency95 != 0D) {
  3795. output.WriteRawTag(73);
  3796. output.WriteDouble(Latency95);
  3797. }
  3798. if (Latency99 != 0D) {
  3799. output.WriteRawTag(81);
  3800. output.WriteDouble(Latency99);
  3801. }
  3802. if (Latency999 != 0D) {
  3803. output.WriteRawTag(89);
  3804. output.WriteDouble(Latency999);
  3805. }
  3806. if (ServerCpuUsage != 0D) {
  3807. output.WriteRawTag(97);
  3808. output.WriteDouble(ServerCpuUsage);
  3809. }
  3810. if (SuccessfulRequestsPerSecond != 0D) {
  3811. output.WriteRawTag(105);
  3812. output.WriteDouble(SuccessfulRequestsPerSecond);
  3813. }
  3814. if (FailedRequestsPerSecond != 0D) {
  3815. output.WriteRawTag(113);
  3816. output.WriteDouble(FailedRequestsPerSecond);
  3817. }
  3818. if (ClientPollsPerRequest != 0D) {
  3819. output.WriteRawTag(121);
  3820. output.WriteDouble(ClientPollsPerRequest);
  3821. }
  3822. if (ServerPollsPerRequest != 0D) {
  3823. output.WriteRawTag(129, 1);
  3824. output.WriteDouble(ServerPollsPerRequest);
  3825. }
  3826. if (ServerQueriesPerCpuSec != 0D) {
  3827. output.WriteRawTag(137, 1);
  3828. output.WriteDouble(ServerQueriesPerCpuSec);
  3829. }
  3830. if (ClientQueriesPerCpuSec != 0D) {
  3831. output.WriteRawTag(145, 1);
  3832. output.WriteDouble(ClientQueriesPerCpuSec);
  3833. }
  3834. if (_unknownFields != null) {
  3835. _unknownFields.WriteTo(output);
  3836. }
  3837. }
  3838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3839. public int CalculateSize() {
  3840. int size = 0;
  3841. if (Qps != 0D) {
  3842. size += 1 + 8;
  3843. }
  3844. if (QpsPerServerCore != 0D) {
  3845. size += 1 + 8;
  3846. }
  3847. if (ServerSystemTime != 0D) {
  3848. size += 1 + 8;
  3849. }
  3850. if (ServerUserTime != 0D) {
  3851. size += 1 + 8;
  3852. }
  3853. if (ClientSystemTime != 0D) {
  3854. size += 1 + 8;
  3855. }
  3856. if (ClientUserTime != 0D) {
  3857. size += 1 + 8;
  3858. }
  3859. if (Latency50 != 0D) {
  3860. size += 1 + 8;
  3861. }
  3862. if (Latency90 != 0D) {
  3863. size += 1 + 8;
  3864. }
  3865. if (Latency95 != 0D) {
  3866. size += 1 + 8;
  3867. }
  3868. if (Latency99 != 0D) {
  3869. size += 1 + 8;
  3870. }
  3871. if (Latency999 != 0D) {
  3872. size += 1 + 8;
  3873. }
  3874. if (ServerCpuUsage != 0D) {
  3875. size += 1 + 8;
  3876. }
  3877. if (SuccessfulRequestsPerSecond != 0D) {
  3878. size += 1 + 8;
  3879. }
  3880. if (FailedRequestsPerSecond != 0D) {
  3881. size += 1 + 8;
  3882. }
  3883. if (ClientPollsPerRequest != 0D) {
  3884. size += 1 + 8;
  3885. }
  3886. if (ServerPollsPerRequest != 0D) {
  3887. size += 2 + 8;
  3888. }
  3889. if (ServerQueriesPerCpuSec != 0D) {
  3890. size += 2 + 8;
  3891. }
  3892. if (ClientQueriesPerCpuSec != 0D) {
  3893. size += 2 + 8;
  3894. }
  3895. if (_unknownFields != null) {
  3896. size += _unknownFields.CalculateSize();
  3897. }
  3898. return size;
  3899. }
  3900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3901. public void MergeFrom(ScenarioResultSummary other) {
  3902. if (other == null) {
  3903. return;
  3904. }
  3905. if (other.Qps != 0D) {
  3906. Qps = other.Qps;
  3907. }
  3908. if (other.QpsPerServerCore != 0D) {
  3909. QpsPerServerCore = other.QpsPerServerCore;
  3910. }
  3911. if (other.ServerSystemTime != 0D) {
  3912. ServerSystemTime = other.ServerSystemTime;
  3913. }
  3914. if (other.ServerUserTime != 0D) {
  3915. ServerUserTime = other.ServerUserTime;
  3916. }
  3917. if (other.ClientSystemTime != 0D) {
  3918. ClientSystemTime = other.ClientSystemTime;
  3919. }
  3920. if (other.ClientUserTime != 0D) {
  3921. ClientUserTime = other.ClientUserTime;
  3922. }
  3923. if (other.Latency50 != 0D) {
  3924. Latency50 = other.Latency50;
  3925. }
  3926. if (other.Latency90 != 0D) {
  3927. Latency90 = other.Latency90;
  3928. }
  3929. if (other.Latency95 != 0D) {
  3930. Latency95 = other.Latency95;
  3931. }
  3932. if (other.Latency99 != 0D) {
  3933. Latency99 = other.Latency99;
  3934. }
  3935. if (other.Latency999 != 0D) {
  3936. Latency999 = other.Latency999;
  3937. }
  3938. if (other.ServerCpuUsage != 0D) {
  3939. ServerCpuUsage = other.ServerCpuUsage;
  3940. }
  3941. if (other.SuccessfulRequestsPerSecond != 0D) {
  3942. SuccessfulRequestsPerSecond = other.SuccessfulRequestsPerSecond;
  3943. }
  3944. if (other.FailedRequestsPerSecond != 0D) {
  3945. FailedRequestsPerSecond = other.FailedRequestsPerSecond;
  3946. }
  3947. if (other.ClientPollsPerRequest != 0D) {
  3948. ClientPollsPerRequest = other.ClientPollsPerRequest;
  3949. }
  3950. if (other.ServerPollsPerRequest != 0D) {
  3951. ServerPollsPerRequest = other.ServerPollsPerRequest;
  3952. }
  3953. if (other.ServerQueriesPerCpuSec != 0D) {
  3954. ServerQueriesPerCpuSec = other.ServerQueriesPerCpuSec;
  3955. }
  3956. if (other.ClientQueriesPerCpuSec != 0D) {
  3957. ClientQueriesPerCpuSec = other.ClientQueriesPerCpuSec;
  3958. }
  3959. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  3960. }
  3961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3962. public void MergeFrom(pb::CodedInputStream input) {
  3963. uint tag;
  3964. while ((tag = input.ReadTag()) != 0) {
  3965. switch(tag) {
  3966. default:
  3967. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  3968. break;
  3969. case 9: {
  3970. Qps = input.ReadDouble();
  3971. break;
  3972. }
  3973. case 17: {
  3974. QpsPerServerCore = input.ReadDouble();
  3975. break;
  3976. }
  3977. case 25: {
  3978. ServerSystemTime = input.ReadDouble();
  3979. break;
  3980. }
  3981. case 33: {
  3982. ServerUserTime = input.ReadDouble();
  3983. break;
  3984. }
  3985. case 41: {
  3986. ClientSystemTime = input.ReadDouble();
  3987. break;
  3988. }
  3989. case 49: {
  3990. ClientUserTime = input.ReadDouble();
  3991. break;
  3992. }
  3993. case 57: {
  3994. Latency50 = input.ReadDouble();
  3995. break;
  3996. }
  3997. case 65: {
  3998. Latency90 = input.ReadDouble();
  3999. break;
  4000. }
  4001. case 73: {
  4002. Latency95 = input.ReadDouble();
  4003. break;
  4004. }
  4005. case 81: {
  4006. Latency99 = input.ReadDouble();
  4007. break;
  4008. }
  4009. case 89: {
  4010. Latency999 = input.ReadDouble();
  4011. break;
  4012. }
  4013. case 97: {
  4014. ServerCpuUsage = input.ReadDouble();
  4015. break;
  4016. }
  4017. case 105: {
  4018. SuccessfulRequestsPerSecond = input.ReadDouble();
  4019. break;
  4020. }
  4021. case 113: {
  4022. FailedRequestsPerSecond = input.ReadDouble();
  4023. break;
  4024. }
  4025. case 121: {
  4026. ClientPollsPerRequest = input.ReadDouble();
  4027. break;
  4028. }
  4029. case 129: {
  4030. ServerPollsPerRequest = input.ReadDouble();
  4031. break;
  4032. }
  4033. case 137: {
  4034. ServerQueriesPerCpuSec = input.ReadDouble();
  4035. break;
  4036. }
  4037. case 145: {
  4038. ClientQueriesPerCpuSec = input.ReadDouble();
  4039. break;
  4040. }
  4041. }
  4042. }
  4043. }
  4044. }
  4045. /// <summary>
  4046. /// Results of a single benchmark scenario.
  4047. /// </summary>
  4048. public sealed partial class ScenarioResult : pb::IMessage<ScenarioResult> {
  4049. private static readonly pb::MessageParser<ScenarioResult> _parser = new pb::MessageParser<ScenarioResult>(() => new ScenarioResult());
  4050. private pb::UnknownFieldSet _unknownFields;
  4051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4052. public static pb::MessageParser<ScenarioResult> Parser { get { return _parser; } }
  4053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4054. public static pbr::MessageDescriptor Descriptor {
  4055. get { return global::Grpc.Testing.ControlReflection.Descriptor.MessageTypes[18]; }
  4056. }
  4057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4058. pbr::MessageDescriptor pb::IMessage.Descriptor {
  4059. get { return Descriptor; }
  4060. }
  4061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4062. public ScenarioResult() {
  4063. OnConstruction();
  4064. }
  4065. partial void OnConstruction();
  4066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4067. public ScenarioResult(ScenarioResult other) : this() {
  4068. scenario_ = other.scenario_ != null ? other.scenario_.Clone() : null;
  4069. latencies_ = other.latencies_ != null ? other.latencies_.Clone() : null;
  4070. clientStats_ = other.clientStats_.Clone();
  4071. serverStats_ = other.serverStats_.Clone();
  4072. serverCores_ = other.serverCores_.Clone();
  4073. summary_ = other.summary_ != null ? other.summary_.Clone() : null;
  4074. clientSuccess_ = other.clientSuccess_.Clone();
  4075. serverSuccess_ = other.serverSuccess_.Clone();
  4076. requestResults_ = other.requestResults_.Clone();
  4077. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  4078. }
  4079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4080. public ScenarioResult Clone() {
  4081. return new ScenarioResult(this);
  4082. }
  4083. /// <summary>Field number for the "scenario" field.</summary>
  4084. public const int ScenarioFieldNumber = 1;
  4085. private global::Grpc.Testing.Scenario scenario_;
  4086. /// <summary>
  4087. /// Inputs used to run the scenario.
  4088. /// </summary>
  4089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4090. public global::Grpc.Testing.Scenario Scenario {
  4091. get { return scenario_; }
  4092. set {
  4093. scenario_ = value;
  4094. }
  4095. }
  4096. /// <summary>Field number for the "latencies" field.</summary>
  4097. public const int LatenciesFieldNumber = 2;
  4098. private global::Grpc.Testing.HistogramData latencies_;
  4099. /// <summary>
  4100. /// Histograms from all clients merged into one histogram.
  4101. /// </summary>
  4102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4103. public global::Grpc.Testing.HistogramData Latencies {
  4104. get { return latencies_; }
  4105. set {
  4106. latencies_ = value;
  4107. }
  4108. }
  4109. /// <summary>Field number for the "client_stats" field.</summary>
  4110. public const int ClientStatsFieldNumber = 3;
  4111. private static readonly pb::FieldCodec<global::Grpc.Testing.ClientStats> _repeated_clientStats_codec
  4112. = pb::FieldCodec.ForMessage(26, global::Grpc.Testing.ClientStats.Parser);
  4113. private readonly pbc::RepeatedField<global::Grpc.Testing.ClientStats> clientStats_ = new pbc::RepeatedField<global::Grpc.Testing.ClientStats>();
  4114. /// <summary>
  4115. /// Client stats for each client
  4116. /// </summary>
  4117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4118. public pbc::RepeatedField<global::Grpc.Testing.ClientStats> ClientStats {
  4119. get { return clientStats_; }
  4120. }
  4121. /// <summary>Field number for the "server_stats" field.</summary>
  4122. public const int ServerStatsFieldNumber = 4;
  4123. private static readonly pb::FieldCodec<global::Grpc.Testing.ServerStats> _repeated_serverStats_codec
  4124. = pb::FieldCodec.ForMessage(34, global::Grpc.Testing.ServerStats.Parser);
  4125. private readonly pbc::RepeatedField<global::Grpc.Testing.ServerStats> serverStats_ = new pbc::RepeatedField<global::Grpc.Testing.ServerStats>();
  4126. /// <summary>
  4127. /// Server stats for each server
  4128. /// </summary>
  4129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4130. public pbc::RepeatedField<global::Grpc.Testing.ServerStats> ServerStats {
  4131. get { return serverStats_; }
  4132. }
  4133. /// <summary>Field number for the "server_cores" field.</summary>
  4134. public const int ServerCoresFieldNumber = 5;
  4135. private static readonly pb::FieldCodec<int> _repeated_serverCores_codec
  4136. = pb::FieldCodec.ForInt32(42);
  4137. private readonly pbc::RepeatedField<int> serverCores_ = new pbc::RepeatedField<int>();
  4138. /// <summary>
  4139. /// Number of cores available to each server
  4140. /// </summary>
  4141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4142. public pbc::RepeatedField<int> ServerCores {
  4143. get { return serverCores_; }
  4144. }
  4145. /// <summary>Field number for the "summary" field.</summary>
  4146. public const int SummaryFieldNumber = 6;
  4147. private global::Grpc.Testing.ScenarioResultSummary summary_;
  4148. /// <summary>
  4149. /// An after-the-fact computed summary
  4150. /// </summary>
  4151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4152. public global::Grpc.Testing.ScenarioResultSummary Summary {
  4153. get { return summary_; }
  4154. set {
  4155. summary_ = value;
  4156. }
  4157. }
  4158. /// <summary>Field number for the "client_success" field.</summary>
  4159. public const int ClientSuccessFieldNumber = 7;
  4160. private static readonly pb::FieldCodec<bool> _repeated_clientSuccess_codec
  4161. = pb::FieldCodec.ForBool(58);
  4162. private readonly pbc::RepeatedField<bool> clientSuccess_ = new pbc::RepeatedField<bool>();
  4163. /// <summary>
  4164. /// Information on success or failure of each worker
  4165. /// </summary>
  4166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4167. public pbc::RepeatedField<bool> ClientSuccess {
  4168. get { return clientSuccess_; }
  4169. }
  4170. /// <summary>Field number for the "server_success" field.</summary>
  4171. public const int ServerSuccessFieldNumber = 8;
  4172. private static readonly pb::FieldCodec<bool> _repeated_serverSuccess_codec
  4173. = pb::FieldCodec.ForBool(66);
  4174. private readonly pbc::RepeatedField<bool> serverSuccess_ = new pbc::RepeatedField<bool>();
  4175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4176. public pbc::RepeatedField<bool> ServerSuccess {
  4177. get { return serverSuccess_; }
  4178. }
  4179. /// <summary>Field number for the "request_results" field.</summary>
  4180. public const int RequestResultsFieldNumber = 9;
  4181. private static readonly pb::FieldCodec<global::Grpc.Testing.RequestResultCount> _repeated_requestResults_codec
  4182. = pb::FieldCodec.ForMessage(74, global::Grpc.Testing.RequestResultCount.Parser);
  4183. private readonly pbc::RepeatedField<global::Grpc.Testing.RequestResultCount> requestResults_ = new pbc::RepeatedField<global::Grpc.Testing.RequestResultCount>();
  4184. /// <summary>
  4185. /// Number of failed requests (one row per status code seen)
  4186. /// </summary>
  4187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4188. public pbc::RepeatedField<global::Grpc.Testing.RequestResultCount> RequestResults {
  4189. get { return requestResults_; }
  4190. }
  4191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4192. public override bool Equals(object other) {
  4193. return Equals(other as ScenarioResult);
  4194. }
  4195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4196. public bool Equals(ScenarioResult other) {
  4197. if (ReferenceEquals(other, null)) {
  4198. return false;
  4199. }
  4200. if (ReferenceEquals(other, this)) {
  4201. return true;
  4202. }
  4203. if (!object.Equals(Scenario, other.Scenario)) return false;
  4204. if (!object.Equals(Latencies, other.Latencies)) return false;
  4205. if(!clientStats_.Equals(other.clientStats_)) return false;
  4206. if(!serverStats_.Equals(other.serverStats_)) return false;
  4207. if(!serverCores_.Equals(other.serverCores_)) return false;
  4208. if (!object.Equals(Summary, other.Summary)) return false;
  4209. if(!clientSuccess_.Equals(other.clientSuccess_)) return false;
  4210. if(!serverSuccess_.Equals(other.serverSuccess_)) return false;
  4211. if(!requestResults_.Equals(other.requestResults_)) return false;
  4212. return Equals(_unknownFields, other._unknownFields);
  4213. }
  4214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4215. public override int GetHashCode() {
  4216. int hash = 1;
  4217. if (scenario_ != null) hash ^= Scenario.GetHashCode();
  4218. if (latencies_ != null) hash ^= Latencies.GetHashCode();
  4219. hash ^= clientStats_.GetHashCode();
  4220. hash ^= serverStats_.GetHashCode();
  4221. hash ^= serverCores_.GetHashCode();
  4222. if (summary_ != null) hash ^= Summary.GetHashCode();
  4223. hash ^= clientSuccess_.GetHashCode();
  4224. hash ^= serverSuccess_.GetHashCode();
  4225. hash ^= requestResults_.GetHashCode();
  4226. if (_unknownFields != null) {
  4227. hash ^= _unknownFields.GetHashCode();
  4228. }
  4229. return hash;
  4230. }
  4231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4232. public override string ToString() {
  4233. return pb::JsonFormatter.ToDiagnosticString(this);
  4234. }
  4235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4236. public void WriteTo(pb::CodedOutputStream output) {
  4237. if (scenario_ != null) {
  4238. output.WriteRawTag(10);
  4239. output.WriteMessage(Scenario);
  4240. }
  4241. if (latencies_ != null) {
  4242. output.WriteRawTag(18);
  4243. output.WriteMessage(Latencies);
  4244. }
  4245. clientStats_.WriteTo(output, _repeated_clientStats_codec);
  4246. serverStats_.WriteTo(output, _repeated_serverStats_codec);
  4247. serverCores_.WriteTo(output, _repeated_serverCores_codec);
  4248. if (summary_ != null) {
  4249. output.WriteRawTag(50);
  4250. output.WriteMessage(Summary);
  4251. }
  4252. clientSuccess_.WriteTo(output, _repeated_clientSuccess_codec);
  4253. serverSuccess_.WriteTo(output, _repeated_serverSuccess_codec);
  4254. requestResults_.WriteTo(output, _repeated_requestResults_codec);
  4255. if (_unknownFields != null) {
  4256. _unknownFields.WriteTo(output);
  4257. }
  4258. }
  4259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4260. public int CalculateSize() {
  4261. int size = 0;
  4262. if (scenario_ != null) {
  4263. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Scenario);
  4264. }
  4265. if (latencies_ != null) {
  4266. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Latencies);
  4267. }
  4268. size += clientStats_.CalculateSize(_repeated_clientStats_codec);
  4269. size += serverStats_.CalculateSize(_repeated_serverStats_codec);
  4270. size += serverCores_.CalculateSize(_repeated_serverCores_codec);
  4271. if (summary_ != null) {
  4272. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Summary);
  4273. }
  4274. size += clientSuccess_.CalculateSize(_repeated_clientSuccess_codec);
  4275. size += serverSuccess_.CalculateSize(_repeated_serverSuccess_codec);
  4276. size += requestResults_.CalculateSize(_repeated_requestResults_codec);
  4277. if (_unknownFields != null) {
  4278. size += _unknownFields.CalculateSize();
  4279. }
  4280. return size;
  4281. }
  4282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4283. public void MergeFrom(ScenarioResult other) {
  4284. if (other == null) {
  4285. return;
  4286. }
  4287. if (other.scenario_ != null) {
  4288. if (scenario_ == null) {
  4289. Scenario = new global::Grpc.Testing.Scenario();
  4290. }
  4291. Scenario.MergeFrom(other.Scenario);
  4292. }
  4293. if (other.latencies_ != null) {
  4294. if (latencies_ == null) {
  4295. Latencies = new global::Grpc.Testing.HistogramData();
  4296. }
  4297. Latencies.MergeFrom(other.Latencies);
  4298. }
  4299. clientStats_.Add(other.clientStats_);
  4300. serverStats_.Add(other.serverStats_);
  4301. serverCores_.Add(other.serverCores_);
  4302. if (other.summary_ != null) {
  4303. if (summary_ == null) {
  4304. Summary = new global::Grpc.Testing.ScenarioResultSummary();
  4305. }
  4306. Summary.MergeFrom(other.Summary);
  4307. }
  4308. clientSuccess_.Add(other.clientSuccess_);
  4309. serverSuccess_.Add(other.serverSuccess_);
  4310. requestResults_.Add(other.requestResults_);
  4311. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  4312. }
  4313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  4314. public void MergeFrom(pb::CodedInputStream input) {
  4315. uint tag;
  4316. while ((tag = input.ReadTag()) != 0) {
  4317. switch(tag) {
  4318. default:
  4319. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  4320. break;
  4321. case 10: {
  4322. if (scenario_ == null) {
  4323. Scenario = new global::Grpc.Testing.Scenario();
  4324. }
  4325. input.ReadMessage(Scenario);
  4326. break;
  4327. }
  4328. case 18: {
  4329. if (latencies_ == null) {
  4330. Latencies = new global::Grpc.Testing.HistogramData();
  4331. }
  4332. input.ReadMessage(Latencies);
  4333. break;
  4334. }
  4335. case 26: {
  4336. clientStats_.AddEntriesFrom(input, _repeated_clientStats_codec);
  4337. break;
  4338. }
  4339. case 34: {
  4340. serverStats_.AddEntriesFrom(input, _repeated_serverStats_codec);
  4341. break;
  4342. }
  4343. case 42:
  4344. case 40: {
  4345. serverCores_.AddEntriesFrom(input, _repeated_serverCores_codec);
  4346. break;
  4347. }
  4348. case 50: {
  4349. if (summary_ == null) {
  4350. Summary = new global::Grpc.Testing.ScenarioResultSummary();
  4351. }
  4352. input.ReadMessage(Summary);
  4353. break;
  4354. }
  4355. case 58:
  4356. case 56: {
  4357. clientSuccess_.AddEntriesFrom(input, _repeated_clientSuccess_codec);
  4358. break;
  4359. }
  4360. case 66:
  4361. case 64: {
  4362. serverSuccess_.AddEntriesFrom(input, _repeated_serverSuccess_codec);
  4363. break;
  4364. }
  4365. case 74: {
  4366. requestResults_.AddEntriesFrom(input, _repeated_requestResults_codec);
  4367. break;
  4368. }
  4369. }
  4370. }
  4371. }
  4372. }
  4373. #endregion
  4374. }
  4375. #endregion Designer generated code