Messages.cs 169 KB

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