Control.cs 142 KB

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