Messages.cs 131 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873
  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. "aW5nLkxvYWRCYWxhbmNlclN0YXRzUmVzcG9uc2UuUnBjc0J5UGVlcjoCOAEq",
  69. "HwoLUGF5bG9hZFR5cGUSEAoMQ09NUFJFU1NBQkxFEAAqbwoPR3JwY2xiUm91",
  70. "dGVUeXBlEh0KGUdSUENMQl9ST1VURV9UWVBFX1VOS05PV04QABIeChpHUlBD",
  71. "TEJfUk9VVEVfVFlQRV9GQUxMQkFDSxABEh0KGUdSUENMQl9ST1VURV9UWVBF",
  72. "X0JBQ0tFTkQQAmIGcHJvdG8z"));
  73. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  74. new pbr::FileDescriptor[] { },
  75. new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Grpc.Testing.PayloadType), typeof(global::Grpc.Testing.GrpclbRouteType), }, null, new pbr::GeneratedClrTypeInfo[] {
  76. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.BoolValue), global::Grpc.Testing.BoolValue.Parser, new[]{ "Value" }, null, null, null, null),
  77. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.Payload), global::Grpc.Testing.Payload.Parser, new[]{ "Type", "Body" }, null, null, null, null),
  78. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.EchoStatus), global::Grpc.Testing.EchoStatus.Parser, new[]{ "Code", "Message" }, null, null, null, null),
  79. 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),
  80. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.SimpleResponse), global::Grpc.Testing.SimpleResponse.Parser, new[]{ "Payload", "Username", "OauthScope", "ServerId", "GrpclbRouteType", "Hostname" }, null, null, null, null),
  81. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.StreamingInputCallRequest), global::Grpc.Testing.StreamingInputCallRequest.Parser, new[]{ "Payload", "ExpectCompressed" }, null, null, null, null),
  82. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.StreamingInputCallResponse), global::Grpc.Testing.StreamingInputCallResponse.Parser, new[]{ "AggregatedPayloadSize" }, null, null, null, null),
  83. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ResponseParameters), global::Grpc.Testing.ResponseParameters.Parser, new[]{ "Size", "IntervalUs", "Compressed" }, null, null, null, null),
  84. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.StreamingOutputCallRequest), global::Grpc.Testing.StreamingOutputCallRequest.Parser, new[]{ "ResponseType", "ResponseParameters", "Payload", "ResponseStatus" }, null, null, null, null),
  85. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.StreamingOutputCallResponse), global::Grpc.Testing.StreamingOutputCallResponse.Parser, new[]{ "Payload" }, null, null, null, null),
  86. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ReconnectParams), global::Grpc.Testing.ReconnectParams.Parser, new[]{ "MaxReconnectBackoffMs" }, null, null, null, null),
  87. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ReconnectInfo), global::Grpc.Testing.ReconnectInfo.Parser, new[]{ "Passed", "BackoffMs" }, null, null, null, null),
  88. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.LoadBalancerStatsRequest), global::Grpc.Testing.LoadBalancerStatsRequest.Parser, new[]{ "NumRpcs", "TimeoutSec" }, null, null, null, null),
  89. 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, }),
  90. null, null, })
  91. }));
  92. }
  93. #endregion
  94. }
  95. #region Enums
  96. /// <summary>
  97. /// The type of payload that should be returned.
  98. /// </summary>
  99. public enum PayloadType {
  100. /// <summary>
  101. /// Compressable text format.
  102. /// </summary>
  103. [pbr::OriginalName("COMPRESSABLE")] Compressable = 0,
  104. }
  105. /// <summary>
  106. /// The type of route that a client took to reach a server w.r.t. gRPCLB.
  107. /// The server must fill in "fallback" if it detects that the RPC reached
  108. /// the server via the "gRPCLB fallback" path, and "backend" if it detects
  109. /// that the RPC reached the server via "gRPCLB backend" path (i.e. if it got
  110. /// the address of this server from the gRPCLB server BalanceLoad RPC). Exactly
  111. /// how this detection is done is context and server dependent.
  112. /// </summary>
  113. public enum GrpclbRouteType {
  114. /// <summary>
  115. /// Server didn't detect the route that a client took to reach it.
  116. /// </summary>
  117. [pbr::OriginalName("GRPCLB_ROUTE_TYPE_UNKNOWN")] Unknown = 0,
  118. /// <summary>
  119. /// Indicates that a client reached a server via gRPCLB fallback.
  120. /// </summary>
  121. [pbr::OriginalName("GRPCLB_ROUTE_TYPE_FALLBACK")] Fallback = 1,
  122. /// <summary>
  123. /// Indicates that a client reached a server as a gRPCLB-given backend.
  124. /// </summary>
  125. [pbr::OriginalName("GRPCLB_ROUTE_TYPE_BACKEND")] Backend = 2,
  126. }
  127. #endregion
  128. #region Messages
  129. /// <summary>
  130. /// TODO(dgq): Go back to using well-known types once
  131. /// https://github.com/grpc/grpc/issues/6980 has been fixed.
  132. /// import "google/protobuf/wrappers.proto";
  133. /// </summary>
  134. public sealed partial class BoolValue : pb::IMessage<BoolValue>
  135. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  136. , pb::IBufferMessage
  137. #endif
  138. {
  139. private static readonly pb::MessageParser<BoolValue> _parser = new pb::MessageParser<BoolValue>(() => new BoolValue());
  140. private pb::UnknownFieldSet _unknownFields;
  141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  142. public static pb::MessageParser<BoolValue> Parser { get { return _parser; } }
  143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  144. public static pbr::MessageDescriptor Descriptor {
  145. get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[0]; }
  146. }
  147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  148. pbr::MessageDescriptor pb::IMessage.Descriptor {
  149. get { return Descriptor; }
  150. }
  151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  152. public BoolValue() {
  153. OnConstruction();
  154. }
  155. partial void OnConstruction();
  156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  157. public BoolValue(BoolValue other) : this() {
  158. value_ = other.value_;
  159. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  160. }
  161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  162. public BoolValue Clone() {
  163. return new BoolValue(this);
  164. }
  165. /// <summary>Field number for the "value" field.</summary>
  166. public const int ValueFieldNumber = 1;
  167. private bool value_;
  168. /// <summary>
  169. /// The bool value.
  170. /// </summary>
  171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  172. public bool Value {
  173. get { return value_; }
  174. set {
  175. value_ = value;
  176. }
  177. }
  178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  179. public override bool Equals(object other) {
  180. return Equals(other as BoolValue);
  181. }
  182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  183. public bool Equals(BoolValue other) {
  184. if (ReferenceEquals(other, null)) {
  185. return false;
  186. }
  187. if (ReferenceEquals(other, this)) {
  188. return true;
  189. }
  190. if (Value != other.Value) return false;
  191. return Equals(_unknownFields, other._unknownFields);
  192. }
  193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  194. public override int GetHashCode() {
  195. int hash = 1;
  196. if (Value != false) hash ^= Value.GetHashCode();
  197. if (_unknownFields != null) {
  198. hash ^= _unknownFields.GetHashCode();
  199. }
  200. return hash;
  201. }
  202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  203. public override string ToString() {
  204. return pb::JsonFormatter.ToDiagnosticString(this);
  205. }
  206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  207. public void WriteTo(pb::CodedOutputStream output) {
  208. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  209. output.WriteRawMessage(this);
  210. #else
  211. if (Value != false) {
  212. output.WriteRawTag(8);
  213. output.WriteBool(Value);
  214. }
  215. if (_unknownFields != null) {
  216. _unknownFields.WriteTo(output);
  217. }
  218. #endif
  219. }
  220. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  222. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  223. if (Value != false) {
  224. output.WriteRawTag(8);
  225. output.WriteBool(Value);
  226. }
  227. if (_unknownFields != null) {
  228. _unknownFields.WriteTo(ref output);
  229. }
  230. }
  231. #endif
  232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  233. public int CalculateSize() {
  234. int size = 0;
  235. if (Value != false) {
  236. size += 1 + 1;
  237. }
  238. if (_unknownFields != null) {
  239. size += _unknownFields.CalculateSize();
  240. }
  241. return size;
  242. }
  243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  244. public void MergeFrom(BoolValue other) {
  245. if (other == null) {
  246. return;
  247. }
  248. if (other.Value != false) {
  249. Value = other.Value;
  250. }
  251. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  252. }
  253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  254. public void MergeFrom(pb::CodedInputStream input) {
  255. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  256. input.ReadRawMessage(this);
  257. #else
  258. uint tag;
  259. while ((tag = input.ReadTag()) != 0) {
  260. switch(tag) {
  261. default:
  262. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  263. break;
  264. case 8: {
  265. Value = input.ReadBool();
  266. break;
  267. }
  268. }
  269. }
  270. #endif
  271. }
  272. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  274. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  275. uint tag;
  276. while ((tag = input.ReadTag()) != 0) {
  277. switch(tag) {
  278. default:
  279. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  280. break;
  281. case 8: {
  282. Value = input.ReadBool();
  283. break;
  284. }
  285. }
  286. }
  287. }
  288. #endif
  289. }
  290. /// <summary>
  291. /// A block of data, to simply increase gRPC message size.
  292. /// </summary>
  293. public sealed partial class Payload : pb::IMessage<Payload>
  294. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  295. , pb::IBufferMessage
  296. #endif
  297. {
  298. private static readonly pb::MessageParser<Payload> _parser = new pb::MessageParser<Payload>(() => new Payload());
  299. private pb::UnknownFieldSet _unknownFields;
  300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  301. public static pb::MessageParser<Payload> Parser { get { return _parser; } }
  302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  303. public static pbr::MessageDescriptor Descriptor {
  304. get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[1]; }
  305. }
  306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  307. pbr::MessageDescriptor pb::IMessage.Descriptor {
  308. get { return Descriptor; }
  309. }
  310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  311. public Payload() {
  312. OnConstruction();
  313. }
  314. partial void OnConstruction();
  315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  316. public Payload(Payload other) : this() {
  317. type_ = other.type_;
  318. body_ = other.body_;
  319. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  320. }
  321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  322. public Payload Clone() {
  323. return new Payload(this);
  324. }
  325. /// <summary>Field number for the "type" field.</summary>
  326. public const int TypeFieldNumber = 1;
  327. private global::Grpc.Testing.PayloadType type_ = global::Grpc.Testing.PayloadType.Compressable;
  328. /// <summary>
  329. /// The type of data in body.
  330. /// </summary>
  331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  332. public global::Grpc.Testing.PayloadType Type {
  333. get { return type_; }
  334. set {
  335. type_ = value;
  336. }
  337. }
  338. /// <summary>Field number for the "body" field.</summary>
  339. public const int BodyFieldNumber = 2;
  340. private pb::ByteString body_ = pb::ByteString.Empty;
  341. /// <summary>
  342. /// Primary contents of payload.
  343. /// </summary>
  344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  345. public pb::ByteString Body {
  346. get { return body_; }
  347. set {
  348. body_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  349. }
  350. }
  351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  352. public override bool Equals(object other) {
  353. return Equals(other as Payload);
  354. }
  355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  356. public bool Equals(Payload other) {
  357. if (ReferenceEquals(other, null)) {
  358. return false;
  359. }
  360. if (ReferenceEquals(other, this)) {
  361. return true;
  362. }
  363. if (Type != other.Type) return false;
  364. if (Body != other.Body) return false;
  365. return Equals(_unknownFields, other._unknownFields);
  366. }
  367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  368. public override int GetHashCode() {
  369. int hash = 1;
  370. if (Type != global::Grpc.Testing.PayloadType.Compressable) hash ^= Type.GetHashCode();
  371. if (Body.Length != 0) hash ^= Body.GetHashCode();
  372. if (_unknownFields != null) {
  373. hash ^= _unknownFields.GetHashCode();
  374. }
  375. return hash;
  376. }
  377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  378. public override string ToString() {
  379. return pb::JsonFormatter.ToDiagnosticString(this);
  380. }
  381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  382. public void WriteTo(pb::CodedOutputStream output) {
  383. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  384. output.WriteRawMessage(this);
  385. #else
  386. if (Type != global::Grpc.Testing.PayloadType.Compressable) {
  387. output.WriteRawTag(8);
  388. output.WriteEnum((int) Type);
  389. }
  390. if (Body.Length != 0) {
  391. output.WriteRawTag(18);
  392. output.WriteBytes(Body);
  393. }
  394. if (_unknownFields != null) {
  395. _unknownFields.WriteTo(output);
  396. }
  397. #endif
  398. }
  399. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  401. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  402. if (Type != global::Grpc.Testing.PayloadType.Compressable) {
  403. output.WriteRawTag(8);
  404. output.WriteEnum((int) Type);
  405. }
  406. if (Body.Length != 0) {
  407. output.WriteRawTag(18);
  408. output.WriteBytes(Body);
  409. }
  410. if (_unknownFields != null) {
  411. _unknownFields.WriteTo(ref output);
  412. }
  413. }
  414. #endif
  415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  416. public int CalculateSize() {
  417. int size = 0;
  418. if (Type != global::Grpc.Testing.PayloadType.Compressable) {
  419. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
  420. }
  421. if (Body.Length != 0) {
  422. size += 1 + pb::CodedOutputStream.ComputeBytesSize(Body);
  423. }
  424. if (_unknownFields != null) {
  425. size += _unknownFields.CalculateSize();
  426. }
  427. return size;
  428. }
  429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  430. public void MergeFrom(Payload other) {
  431. if (other == null) {
  432. return;
  433. }
  434. if (other.Type != global::Grpc.Testing.PayloadType.Compressable) {
  435. Type = other.Type;
  436. }
  437. if (other.Body.Length != 0) {
  438. Body = other.Body;
  439. }
  440. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  441. }
  442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  443. public void MergeFrom(pb::CodedInputStream input) {
  444. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  445. input.ReadRawMessage(this);
  446. #else
  447. uint tag;
  448. while ((tag = input.ReadTag()) != 0) {
  449. switch(tag) {
  450. default:
  451. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  452. break;
  453. case 8: {
  454. Type = (global::Grpc.Testing.PayloadType) input.ReadEnum();
  455. break;
  456. }
  457. case 18: {
  458. Body = input.ReadBytes();
  459. break;
  460. }
  461. }
  462. }
  463. #endif
  464. }
  465. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  467. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  468. uint tag;
  469. while ((tag = input.ReadTag()) != 0) {
  470. switch(tag) {
  471. default:
  472. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  473. break;
  474. case 8: {
  475. Type = (global::Grpc.Testing.PayloadType) input.ReadEnum();
  476. break;
  477. }
  478. case 18: {
  479. Body = input.ReadBytes();
  480. break;
  481. }
  482. }
  483. }
  484. }
  485. #endif
  486. }
  487. /// <summary>
  488. /// A protobuf representation for grpc status. This is used by test
  489. /// clients to specify a status that the server should attempt to return.
  490. /// </summary>
  491. public sealed partial class EchoStatus : pb::IMessage<EchoStatus>
  492. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  493. , pb::IBufferMessage
  494. #endif
  495. {
  496. private static readonly pb::MessageParser<EchoStatus> _parser = new pb::MessageParser<EchoStatus>(() => new EchoStatus());
  497. private pb::UnknownFieldSet _unknownFields;
  498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  499. public static pb::MessageParser<EchoStatus> Parser { get { return _parser; } }
  500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  501. public static pbr::MessageDescriptor Descriptor {
  502. get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[2]; }
  503. }
  504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  505. pbr::MessageDescriptor pb::IMessage.Descriptor {
  506. get { return Descriptor; }
  507. }
  508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  509. public EchoStatus() {
  510. OnConstruction();
  511. }
  512. partial void OnConstruction();
  513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  514. public EchoStatus(EchoStatus other) : this() {
  515. code_ = other.code_;
  516. message_ = other.message_;
  517. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  518. }
  519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  520. public EchoStatus Clone() {
  521. return new EchoStatus(this);
  522. }
  523. /// <summary>Field number for the "code" field.</summary>
  524. public const int CodeFieldNumber = 1;
  525. private int code_;
  526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  527. public int Code {
  528. get { return code_; }
  529. set {
  530. code_ = value;
  531. }
  532. }
  533. /// <summary>Field number for the "message" field.</summary>
  534. public const int MessageFieldNumber = 2;
  535. private string message_ = "";
  536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  537. public string Message {
  538. get { return message_; }
  539. set {
  540. message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  541. }
  542. }
  543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  544. public override bool Equals(object other) {
  545. return Equals(other as EchoStatus);
  546. }
  547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  548. public bool Equals(EchoStatus other) {
  549. if (ReferenceEquals(other, null)) {
  550. return false;
  551. }
  552. if (ReferenceEquals(other, this)) {
  553. return true;
  554. }
  555. if (Code != other.Code) return false;
  556. if (Message != other.Message) return false;
  557. return Equals(_unknownFields, other._unknownFields);
  558. }
  559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  560. public override int GetHashCode() {
  561. int hash = 1;
  562. if (Code != 0) hash ^= Code.GetHashCode();
  563. if (Message.Length != 0) hash ^= Message.GetHashCode();
  564. if (_unknownFields != null) {
  565. hash ^= _unknownFields.GetHashCode();
  566. }
  567. return hash;
  568. }
  569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  570. public override string ToString() {
  571. return pb::JsonFormatter.ToDiagnosticString(this);
  572. }
  573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  574. public void WriteTo(pb::CodedOutputStream output) {
  575. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  576. output.WriteRawMessage(this);
  577. #else
  578. if (Code != 0) {
  579. output.WriteRawTag(8);
  580. output.WriteInt32(Code);
  581. }
  582. if (Message.Length != 0) {
  583. output.WriteRawTag(18);
  584. output.WriteString(Message);
  585. }
  586. if (_unknownFields != null) {
  587. _unknownFields.WriteTo(output);
  588. }
  589. #endif
  590. }
  591. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  593. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  594. if (Code != 0) {
  595. output.WriteRawTag(8);
  596. output.WriteInt32(Code);
  597. }
  598. if (Message.Length != 0) {
  599. output.WriteRawTag(18);
  600. output.WriteString(Message);
  601. }
  602. if (_unknownFields != null) {
  603. _unknownFields.WriteTo(ref output);
  604. }
  605. }
  606. #endif
  607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  608. public int CalculateSize() {
  609. int size = 0;
  610. if (Code != 0) {
  611. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Code);
  612. }
  613. if (Message.Length != 0) {
  614. size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
  615. }
  616. if (_unknownFields != null) {
  617. size += _unknownFields.CalculateSize();
  618. }
  619. return size;
  620. }
  621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  622. public void MergeFrom(EchoStatus other) {
  623. if (other == null) {
  624. return;
  625. }
  626. if (other.Code != 0) {
  627. Code = other.Code;
  628. }
  629. if (other.Message.Length != 0) {
  630. Message = other.Message;
  631. }
  632. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  633. }
  634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  635. public void MergeFrom(pb::CodedInputStream input) {
  636. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  637. input.ReadRawMessage(this);
  638. #else
  639. uint tag;
  640. while ((tag = input.ReadTag()) != 0) {
  641. switch(tag) {
  642. default:
  643. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  644. break;
  645. case 8: {
  646. Code = input.ReadInt32();
  647. break;
  648. }
  649. case 18: {
  650. Message = input.ReadString();
  651. break;
  652. }
  653. }
  654. }
  655. #endif
  656. }
  657. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  659. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  660. uint tag;
  661. while ((tag = input.ReadTag()) != 0) {
  662. switch(tag) {
  663. default:
  664. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  665. break;
  666. case 8: {
  667. Code = input.ReadInt32();
  668. break;
  669. }
  670. case 18: {
  671. Message = input.ReadString();
  672. break;
  673. }
  674. }
  675. }
  676. }
  677. #endif
  678. }
  679. /// <summary>
  680. /// Unary request.
  681. /// </summary>
  682. public sealed partial class SimpleRequest : pb::IMessage<SimpleRequest>
  683. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  684. , pb::IBufferMessage
  685. #endif
  686. {
  687. private static readonly pb::MessageParser<SimpleRequest> _parser = new pb::MessageParser<SimpleRequest>(() => new SimpleRequest());
  688. private pb::UnknownFieldSet _unknownFields;
  689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  690. public static pb::MessageParser<SimpleRequest> Parser { get { return _parser; } }
  691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  692. public static pbr::MessageDescriptor Descriptor {
  693. get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[3]; }
  694. }
  695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  696. pbr::MessageDescriptor pb::IMessage.Descriptor {
  697. get { return Descriptor; }
  698. }
  699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  700. public SimpleRequest() {
  701. OnConstruction();
  702. }
  703. partial void OnConstruction();
  704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  705. public SimpleRequest(SimpleRequest other) : this() {
  706. responseType_ = other.responseType_;
  707. responseSize_ = other.responseSize_;
  708. payload_ = other.payload_ != null ? other.payload_.Clone() : null;
  709. fillUsername_ = other.fillUsername_;
  710. fillOauthScope_ = other.fillOauthScope_;
  711. responseCompressed_ = other.responseCompressed_ != null ? other.responseCompressed_.Clone() : null;
  712. responseStatus_ = other.responseStatus_ != null ? other.responseStatus_.Clone() : null;
  713. expectCompressed_ = other.expectCompressed_ != null ? other.expectCompressed_.Clone() : null;
  714. fillServerId_ = other.fillServerId_;
  715. fillGrpclbRouteType_ = other.fillGrpclbRouteType_;
  716. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  717. }
  718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  719. public SimpleRequest Clone() {
  720. return new SimpleRequest(this);
  721. }
  722. /// <summary>Field number for the "response_type" field.</summary>
  723. public const int ResponseTypeFieldNumber = 1;
  724. private global::Grpc.Testing.PayloadType responseType_ = global::Grpc.Testing.PayloadType.Compressable;
  725. /// <summary>
  726. /// Desired payload type in the response from the server.
  727. /// If response_type is RANDOM, server randomly chooses one from other formats.
  728. /// </summary>
  729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  730. public global::Grpc.Testing.PayloadType ResponseType {
  731. get { return responseType_; }
  732. set {
  733. responseType_ = value;
  734. }
  735. }
  736. /// <summary>Field number for the "response_size" field.</summary>
  737. public const int ResponseSizeFieldNumber = 2;
  738. private int responseSize_;
  739. /// <summary>
  740. /// Desired payload size in the response from the server.
  741. /// </summary>
  742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  743. public int ResponseSize {
  744. get { return responseSize_; }
  745. set {
  746. responseSize_ = value;
  747. }
  748. }
  749. /// <summary>Field number for the "payload" field.</summary>
  750. public const int PayloadFieldNumber = 3;
  751. private global::Grpc.Testing.Payload payload_;
  752. /// <summary>
  753. /// Optional input payload sent along with the request.
  754. /// </summary>
  755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  756. public global::Grpc.Testing.Payload Payload {
  757. get { return payload_; }
  758. set {
  759. payload_ = value;
  760. }
  761. }
  762. /// <summary>Field number for the "fill_username" field.</summary>
  763. public const int FillUsernameFieldNumber = 4;
  764. private bool fillUsername_;
  765. /// <summary>
  766. /// Whether SimpleResponse should include username.
  767. /// </summary>
  768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  769. public bool FillUsername {
  770. get { return fillUsername_; }
  771. set {
  772. fillUsername_ = value;
  773. }
  774. }
  775. /// <summary>Field number for the "fill_oauth_scope" field.</summary>
  776. public const int FillOauthScopeFieldNumber = 5;
  777. private bool fillOauthScope_;
  778. /// <summary>
  779. /// Whether SimpleResponse should include OAuth scope.
  780. /// </summary>
  781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  782. public bool FillOauthScope {
  783. get { return fillOauthScope_; }
  784. set {
  785. fillOauthScope_ = value;
  786. }
  787. }
  788. /// <summary>Field number for the "response_compressed" field.</summary>
  789. public const int ResponseCompressedFieldNumber = 6;
  790. private global::Grpc.Testing.BoolValue responseCompressed_;
  791. /// <summary>
  792. /// Whether to request the server to compress the response. This field is
  793. /// "nullable" in order to interoperate seamlessly with clients not able to
  794. /// implement the full compression tests by introspecting the call to verify
  795. /// the response's compression status.
  796. /// </summary>
  797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  798. public global::Grpc.Testing.BoolValue ResponseCompressed {
  799. get { return responseCompressed_; }
  800. set {
  801. responseCompressed_ = value;
  802. }
  803. }
  804. /// <summary>Field number for the "response_status" field.</summary>
  805. public const int ResponseStatusFieldNumber = 7;
  806. private global::Grpc.Testing.EchoStatus responseStatus_;
  807. /// <summary>
  808. /// Whether server should return a given status
  809. /// </summary>
  810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  811. public global::Grpc.Testing.EchoStatus ResponseStatus {
  812. get { return responseStatus_; }
  813. set {
  814. responseStatus_ = value;
  815. }
  816. }
  817. /// <summary>Field number for the "expect_compressed" field.</summary>
  818. public const int ExpectCompressedFieldNumber = 8;
  819. private global::Grpc.Testing.BoolValue expectCompressed_;
  820. /// <summary>
  821. /// Whether the server should expect this request to be compressed.
  822. /// </summary>
  823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  824. public global::Grpc.Testing.BoolValue ExpectCompressed {
  825. get { return expectCompressed_; }
  826. set {
  827. expectCompressed_ = value;
  828. }
  829. }
  830. /// <summary>Field number for the "fill_server_id" field.</summary>
  831. public const int FillServerIdFieldNumber = 9;
  832. private bool fillServerId_;
  833. /// <summary>
  834. /// Whether SimpleResponse should include server_id.
  835. /// </summary>
  836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  837. public bool FillServerId {
  838. get { return fillServerId_; }
  839. set {
  840. fillServerId_ = value;
  841. }
  842. }
  843. /// <summary>Field number for the "fill_grpclb_route_type" field.</summary>
  844. public const int FillGrpclbRouteTypeFieldNumber = 10;
  845. private bool fillGrpclbRouteType_;
  846. /// <summary>
  847. /// Whether SimpleResponse should include grpclb_route_type.
  848. /// </summary>
  849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  850. public bool FillGrpclbRouteType {
  851. get { return fillGrpclbRouteType_; }
  852. set {
  853. fillGrpclbRouteType_ = value;
  854. }
  855. }
  856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  857. public override bool Equals(object other) {
  858. return Equals(other as SimpleRequest);
  859. }
  860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  861. public bool Equals(SimpleRequest other) {
  862. if (ReferenceEquals(other, null)) {
  863. return false;
  864. }
  865. if (ReferenceEquals(other, this)) {
  866. return true;
  867. }
  868. if (ResponseType != other.ResponseType) return false;
  869. if (ResponseSize != other.ResponseSize) return false;
  870. if (!object.Equals(Payload, other.Payload)) return false;
  871. if (FillUsername != other.FillUsername) return false;
  872. if (FillOauthScope != other.FillOauthScope) return false;
  873. if (!object.Equals(ResponseCompressed, other.ResponseCompressed)) return false;
  874. if (!object.Equals(ResponseStatus, other.ResponseStatus)) return false;
  875. if (!object.Equals(ExpectCompressed, other.ExpectCompressed)) return false;
  876. if (FillServerId != other.FillServerId) return false;
  877. if (FillGrpclbRouteType != other.FillGrpclbRouteType) return false;
  878. return Equals(_unknownFields, other._unknownFields);
  879. }
  880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  881. public override int GetHashCode() {
  882. int hash = 1;
  883. if (ResponseType != global::Grpc.Testing.PayloadType.Compressable) hash ^= ResponseType.GetHashCode();
  884. if (ResponseSize != 0) hash ^= ResponseSize.GetHashCode();
  885. if (payload_ != null) hash ^= Payload.GetHashCode();
  886. if (FillUsername != false) hash ^= FillUsername.GetHashCode();
  887. if (FillOauthScope != false) hash ^= FillOauthScope.GetHashCode();
  888. if (responseCompressed_ != null) hash ^= ResponseCompressed.GetHashCode();
  889. if (responseStatus_ != null) hash ^= ResponseStatus.GetHashCode();
  890. if (expectCompressed_ != null) hash ^= ExpectCompressed.GetHashCode();
  891. if (FillServerId != false) hash ^= FillServerId.GetHashCode();
  892. if (FillGrpclbRouteType != false) hash ^= FillGrpclbRouteType.GetHashCode();
  893. if (_unknownFields != null) {
  894. hash ^= _unknownFields.GetHashCode();
  895. }
  896. return hash;
  897. }
  898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  899. public override string ToString() {
  900. return pb::JsonFormatter.ToDiagnosticString(this);
  901. }
  902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  903. public void WriteTo(pb::CodedOutputStream output) {
  904. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  905. output.WriteRawMessage(this);
  906. #else
  907. if (ResponseType != global::Grpc.Testing.PayloadType.Compressable) {
  908. output.WriteRawTag(8);
  909. output.WriteEnum((int) ResponseType);
  910. }
  911. if (ResponseSize != 0) {
  912. output.WriteRawTag(16);
  913. output.WriteInt32(ResponseSize);
  914. }
  915. if (payload_ != null) {
  916. output.WriteRawTag(26);
  917. output.WriteMessage(Payload);
  918. }
  919. if (FillUsername != false) {
  920. output.WriteRawTag(32);
  921. output.WriteBool(FillUsername);
  922. }
  923. if (FillOauthScope != false) {
  924. output.WriteRawTag(40);
  925. output.WriteBool(FillOauthScope);
  926. }
  927. if (responseCompressed_ != null) {
  928. output.WriteRawTag(50);
  929. output.WriteMessage(ResponseCompressed);
  930. }
  931. if (responseStatus_ != null) {
  932. output.WriteRawTag(58);
  933. output.WriteMessage(ResponseStatus);
  934. }
  935. if (expectCompressed_ != null) {
  936. output.WriteRawTag(66);
  937. output.WriteMessage(ExpectCompressed);
  938. }
  939. if (FillServerId != false) {
  940. output.WriteRawTag(72);
  941. output.WriteBool(FillServerId);
  942. }
  943. if (FillGrpclbRouteType != false) {
  944. output.WriteRawTag(80);
  945. output.WriteBool(FillGrpclbRouteType);
  946. }
  947. if (_unknownFields != null) {
  948. _unknownFields.WriteTo(output);
  949. }
  950. #endif
  951. }
  952. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  954. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  955. if (ResponseType != global::Grpc.Testing.PayloadType.Compressable) {
  956. output.WriteRawTag(8);
  957. output.WriteEnum((int) ResponseType);
  958. }
  959. if (ResponseSize != 0) {
  960. output.WriteRawTag(16);
  961. output.WriteInt32(ResponseSize);
  962. }
  963. if (payload_ != null) {
  964. output.WriteRawTag(26);
  965. output.WriteMessage(Payload);
  966. }
  967. if (FillUsername != false) {
  968. output.WriteRawTag(32);
  969. output.WriteBool(FillUsername);
  970. }
  971. if (FillOauthScope != false) {
  972. output.WriteRawTag(40);
  973. output.WriteBool(FillOauthScope);
  974. }
  975. if (responseCompressed_ != null) {
  976. output.WriteRawTag(50);
  977. output.WriteMessage(ResponseCompressed);
  978. }
  979. if (responseStatus_ != null) {
  980. output.WriteRawTag(58);
  981. output.WriteMessage(ResponseStatus);
  982. }
  983. if (expectCompressed_ != null) {
  984. output.WriteRawTag(66);
  985. output.WriteMessage(ExpectCompressed);
  986. }
  987. if (FillServerId != false) {
  988. output.WriteRawTag(72);
  989. output.WriteBool(FillServerId);
  990. }
  991. if (FillGrpclbRouteType != false) {
  992. output.WriteRawTag(80);
  993. output.WriteBool(FillGrpclbRouteType);
  994. }
  995. if (_unknownFields != null) {
  996. _unknownFields.WriteTo(ref output);
  997. }
  998. }
  999. #endif
  1000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1001. public int CalculateSize() {
  1002. int size = 0;
  1003. if (ResponseType != global::Grpc.Testing.PayloadType.Compressable) {
  1004. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseType);
  1005. }
  1006. if (ResponseSize != 0) {
  1007. size += 1 + pb::CodedOutputStream.ComputeInt32Size(ResponseSize);
  1008. }
  1009. if (payload_ != null) {
  1010. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload);
  1011. }
  1012. if (FillUsername != false) {
  1013. size += 1 + 1;
  1014. }
  1015. if (FillOauthScope != false) {
  1016. size += 1 + 1;
  1017. }
  1018. if (responseCompressed_ != null) {
  1019. size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResponseCompressed);
  1020. }
  1021. if (responseStatus_ != null) {
  1022. size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResponseStatus);
  1023. }
  1024. if (expectCompressed_ != null) {
  1025. size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpectCompressed);
  1026. }
  1027. if (FillServerId != false) {
  1028. size += 1 + 1;
  1029. }
  1030. if (FillGrpclbRouteType != false) {
  1031. size += 1 + 1;
  1032. }
  1033. if (_unknownFields != null) {
  1034. size += _unknownFields.CalculateSize();
  1035. }
  1036. return size;
  1037. }
  1038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1039. public void MergeFrom(SimpleRequest other) {
  1040. if (other == null) {
  1041. return;
  1042. }
  1043. if (other.ResponseType != global::Grpc.Testing.PayloadType.Compressable) {
  1044. ResponseType = other.ResponseType;
  1045. }
  1046. if (other.ResponseSize != 0) {
  1047. ResponseSize = other.ResponseSize;
  1048. }
  1049. if (other.payload_ != null) {
  1050. if (payload_ == null) {
  1051. Payload = new global::Grpc.Testing.Payload();
  1052. }
  1053. Payload.MergeFrom(other.Payload);
  1054. }
  1055. if (other.FillUsername != false) {
  1056. FillUsername = other.FillUsername;
  1057. }
  1058. if (other.FillOauthScope != false) {
  1059. FillOauthScope = other.FillOauthScope;
  1060. }
  1061. if (other.responseCompressed_ != null) {
  1062. if (responseCompressed_ == null) {
  1063. ResponseCompressed = new global::Grpc.Testing.BoolValue();
  1064. }
  1065. ResponseCompressed.MergeFrom(other.ResponseCompressed);
  1066. }
  1067. if (other.responseStatus_ != null) {
  1068. if (responseStatus_ == null) {
  1069. ResponseStatus = new global::Grpc.Testing.EchoStatus();
  1070. }
  1071. ResponseStatus.MergeFrom(other.ResponseStatus);
  1072. }
  1073. if (other.expectCompressed_ != null) {
  1074. if (expectCompressed_ == null) {
  1075. ExpectCompressed = new global::Grpc.Testing.BoolValue();
  1076. }
  1077. ExpectCompressed.MergeFrom(other.ExpectCompressed);
  1078. }
  1079. if (other.FillServerId != false) {
  1080. FillServerId = other.FillServerId;
  1081. }
  1082. if (other.FillGrpclbRouteType != false) {
  1083. FillGrpclbRouteType = other.FillGrpclbRouteType;
  1084. }
  1085. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1086. }
  1087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1088. public void MergeFrom(pb::CodedInputStream input) {
  1089. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1090. input.ReadRawMessage(this);
  1091. #else
  1092. uint tag;
  1093. while ((tag = input.ReadTag()) != 0) {
  1094. switch(tag) {
  1095. default:
  1096. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1097. break;
  1098. case 8: {
  1099. ResponseType = (global::Grpc.Testing.PayloadType) input.ReadEnum();
  1100. break;
  1101. }
  1102. case 16: {
  1103. ResponseSize = input.ReadInt32();
  1104. break;
  1105. }
  1106. case 26: {
  1107. if (payload_ == null) {
  1108. Payload = new global::Grpc.Testing.Payload();
  1109. }
  1110. input.ReadMessage(Payload);
  1111. break;
  1112. }
  1113. case 32: {
  1114. FillUsername = input.ReadBool();
  1115. break;
  1116. }
  1117. case 40: {
  1118. FillOauthScope = input.ReadBool();
  1119. break;
  1120. }
  1121. case 50: {
  1122. if (responseCompressed_ == null) {
  1123. ResponseCompressed = new global::Grpc.Testing.BoolValue();
  1124. }
  1125. input.ReadMessage(ResponseCompressed);
  1126. break;
  1127. }
  1128. case 58: {
  1129. if (responseStatus_ == null) {
  1130. ResponseStatus = new global::Grpc.Testing.EchoStatus();
  1131. }
  1132. input.ReadMessage(ResponseStatus);
  1133. break;
  1134. }
  1135. case 66: {
  1136. if (expectCompressed_ == null) {
  1137. ExpectCompressed = new global::Grpc.Testing.BoolValue();
  1138. }
  1139. input.ReadMessage(ExpectCompressed);
  1140. break;
  1141. }
  1142. case 72: {
  1143. FillServerId = input.ReadBool();
  1144. break;
  1145. }
  1146. case 80: {
  1147. FillGrpclbRouteType = input.ReadBool();
  1148. break;
  1149. }
  1150. }
  1151. }
  1152. #endif
  1153. }
  1154. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1156. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1157. uint tag;
  1158. while ((tag = input.ReadTag()) != 0) {
  1159. switch(tag) {
  1160. default:
  1161. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1162. break;
  1163. case 8: {
  1164. ResponseType = (global::Grpc.Testing.PayloadType) input.ReadEnum();
  1165. break;
  1166. }
  1167. case 16: {
  1168. ResponseSize = input.ReadInt32();
  1169. break;
  1170. }
  1171. case 26: {
  1172. if (payload_ == null) {
  1173. Payload = new global::Grpc.Testing.Payload();
  1174. }
  1175. input.ReadMessage(Payload);
  1176. break;
  1177. }
  1178. case 32: {
  1179. FillUsername = input.ReadBool();
  1180. break;
  1181. }
  1182. case 40: {
  1183. FillOauthScope = input.ReadBool();
  1184. break;
  1185. }
  1186. case 50: {
  1187. if (responseCompressed_ == null) {
  1188. ResponseCompressed = new global::Grpc.Testing.BoolValue();
  1189. }
  1190. input.ReadMessage(ResponseCompressed);
  1191. break;
  1192. }
  1193. case 58: {
  1194. if (responseStatus_ == null) {
  1195. ResponseStatus = new global::Grpc.Testing.EchoStatus();
  1196. }
  1197. input.ReadMessage(ResponseStatus);
  1198. break;
  1199. }
  1200. case 66: {
  1201. if (expectCompressed_ == null) {
  1202. ExpectCompressed = new global::Grpc.Testing.BoolValue();
  1203. }
  1204. input.ReadMessage(ExpectCompressed);
  1205. break;
  1206. }
  1207. case 72: {
  1208. FillServerId = input.ReadBool();
  1209. break;
  1210. }
  1211. case 80: {
  1212. FillGrpclbRouteType = input.ReadBool();
  1213. break;
  1214. }
  1215. }
  1216. }
  1217. }
  1218. #endif
  1219. }
  1220. /// <summary>
  1221. /// Unary response, as configured by the request.
  1222. /// </summary>
  1223. public sealed partial class SimpleResponse : pb::IMessage<SimpleResponse>
  1224. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1225. , pb::IBufferMessage
  1226. #endif
  1227. {
  1228. private static readonly pb::MessageParser<SimpleResponse> _parser = new pb::MessageParser<SimpleResponse>(() => new SimpleResponse());
  1229. private pb::UnknownFieldSet _unknownFields;
  1230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1231. public static pb::MessageParser<SimpleResponse> Parser { get { return _parser; } }
  1232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1233. public static pbr::MessageDescriptor Descriptor {
  1234. get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[4]; }
  1235. }
  1236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1237. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1238. get { return Descriptor; }
  1239. }
  1240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1241. public SimpleResponse() {
  1242. OnConstruction();
  1243. }
  1244. partial void OnConstruction();
  1245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1246. public SimpleResponse(SimpleResponse other) : this() {
  1247. payload_ = other.payload_ != null ? other.payload_.Clone() : null;
  1248. username_ = other.username_;
  1249. oauthScope_ = other.oauthScope_;
  1250. serverId_ = other.serverId_;
  1251. grpclbRouteType_ = other.grpclbRouteType_;
  1252. hostname_ = other.hostname_;
  1253. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1254. }
  1255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1256. public SimpleResponse Clone() {
  1257. return new SimpleResponse(this);
  1258. }
  1259. /// <summary>Field number for the "payload" field.</summary>
  1260. public const int PayloadFieldNumber = 1;
  1261. private global::Grpc.Testing.Payload payload_;
  1262. /// <summary>
  1263. /// Payload to increase message size.
  1264. /// </summary>
  1265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1266. public global::Grpc.Testing.Payload Payload {
  1267. get { return payload_; }
  1268. set {
  1269. payload_ = value;
  1270. }
  1271. }
  1272. /// <summary>Field number for the "username" field.</summary>
  1273. public const int UsernameFieldNumber = 2;
  1274. private string username_ = "";
  1275. /// <summary>
  1276. /// The user the request came from, for verifying authentication was
  1277. /// successful when the client expected it.
  1278. /// </summary>
  1279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1280. public string Username {
  1281. get { return username_; }
  1282. set {
  1283. username_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1284. }
  1285. }
  1286. /// <summary>Field number for the "oauth_scope" field.</summary>
  1287. public const int OauthScopeFieldNumber = 3;
  1288. private string oauthScope_ = "";
  1289. /// <summary>
  1290. /// OAuth scope.
  1291. /// </summary>
  1292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1293. public string OauthScope {
  1294. get { return oauthScope_; }
  1295. set {
  1296. oauthScope_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1297. }
  1298. }
  1299. /// <summary>Field number for the "server_id" field.</summary>
  1300. public const int ServerIdFieldNumber = 4;
  1301. private string serverId_ = "";
  1302. /// <summary>
  1303. /// Server ID. This must be unique among different server instances,
  1304. /// but the same across all RPC's made to a particular server instance.
  1305. /// </summary>
  1306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1307. public string ServerId {
  1308. get { return serverId_; }
  1309. set {
  1310. serverId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1311. }
  1312. }
  1313. /// <summary>Field number for the "grpclb_route_type" field.</summary>
  1314. public const int GrpclbRouteTypeFieldNumber = 5;
  1315. private global::Grpc.Testing.GrpclbRouteType grpclbRouteType_ = global::Grpc.Testing.GrpclbRouteType.Unknown;
  1316. /// <summary>
  1317. /// gRPCLB Path.
  1318. /// </summary>
  1319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1320. public global::Grpc.Testing.GrpclbRouteType GrpclbRouteType {
  1321. get { return grpclbRouteType_; }
  1322. set {
  1323. grpclbRouteType_ = value;
  1324. }
  1325. }
  1326. /// <summary>Field number for the "hostname" field.</summary>
  1327. public const int HostnameFieldNumber = 6;
  1328. private string hostname_ = "";
  1329. /// <summary>
  1330. /// Server hostname.
  1331. /// </summary>
  1332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1333. public string Hostname {
  1334. get { return hostname_; }
  1335. set {
  1336. hostname_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1337. }
  1338. }
  1339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1340. public override bool Equals(object other) {
  1341. return Equals(other as SimpleResponse);
  1342. }
  1343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1344. public bool Equals(SimpleResponse other) {
  1345. if (ReferenceEquals(other, null)) {
  1346. return false;
  1347. }
  1348. if (ReferenceEquals(other, this)) {
  1349. return true;
  1350. }
  1351. if (!object.Equals(Payload, other.Payload)) return false;
  1352. if (Username != other.Username) return false;
  1353. if (OauthScope != other.OauthScope) return false;
  1354. if (ServerId != other.ServerId) return false;
  1355. if (GrpclbRouteType != other.GrpclbRouteType) return false;
  1356. if (Hostname != other.Hostname) return false;
  1357. return Equals(_unknownFields, other._unknownFields);
  1358. }
  1359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1360. public override int GetHashCode() {
  1361. int hash = 1;
  1362. if (payload_ != null) hash ^= Payload.GetHashCode();
  1363. if (Username.Length != 0) hash ^= Username.GetHashCode();
  1364. if (OauthScope.Length != 0) hash ^= OauthScope.GetHashCode();
  1365. if (ServerId.Length != 0) hash ^= ServerId.GetHashCode();
  1366. if (GrpclbRouteType != global::Grpc.Testing.GrpclbRouteType.Unknown) hash ^= GrpclbRouteType.GetHashCode();
  1367. if (Hostname.Length != 0) hash ^= Hostname.GetHashCode();
  1368. if (_unknownFields != null) {
  1369. hash ^= _unknownFields.GetHashCode();
  1370. }
  1371. return hash;
  1372. }
  1373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1374. public override string ToString() {
  1375. return pb::JsonFormatter.ToDiagnosticString(this);
  1376. }
  1377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1378. public void WriteTo(pb::CodedOutputStream output) {
  1379. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1380. output.WriteRawMessage(this);
  1381. #else
  1382. if (payload_ != null) {
  1383. output.WriteRawTag(10);
  1384. output.WriteMessage(Payload);
  1385. }
  1386. if (Username.Length != 0) {
  1387. output.WriteRawTag(18);
  1388. output.WriteString(Username);
  1389. }
  1390. if (OauthScope.Length != 0) {
  1391. output.WriteRawTag(26);
  1392. output.WriteString(OauthScope);
  1393. }
  1394. if (ServerId.Length != 0) {
  1395. output.WriteRawTag(34);
  1396. output.WriteString(ServerId);
  1397. }
  1398. if (GrpclbRouteType != global::Grpc.Testing.GrpclbRouteType.Unknown) {
  1399. output.WriteRawTag(40);
  1400. output.WriteEnum((int) GrpclbRouteType);
  1401. }
  1402. if (Hostname.Length != 0) {
  1403. output.WriteRawTag(50);
  1404. output.WriteString(Hostname);
  1405. }
  1406. if (_unknownFields != null) {
  1407. _unknownFields.WriteTo(output);
  1408. }
  1409. #endif
  1410. }
  1411. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1413. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1414. if (payload_ != null) {
  1415. output.WriteRawTag(10);
  1416. output.WriteMessage(Payload);
  1417. }
  1418. if (Username.Length != 0) {
  1419. output.WriteRawTag(18);
  1420. output.WriteString(Username);
  1421. }
  1422. if (OauthScope.Length != 0) {
  1423. output.WriteRawTag(26);
  1424. output.WriteString(OauthScope);
  1425. }
  1426. if (ServerId.Length != 0) {
  1427. output.WriteRawTag(34);
  1428. output.WriteString(ServerId);
  1429. }
  1430. if (GrpclbRouteType != global::Grpc.Testing.GrpclbRouteType.Unknown) {
  1431. output.WriteRawTag(40);
  1432. output.WriteEnum((int) GrpclbRouteType);
  1433. }
  1434. if (Hostname.Length != 0) {
  1435. output.WriteRawTag(50);
  1436. output.WriteString(Hostname);
  1437. }
  1438. if (_unknownFields != null) {
  1439. _unknownFields.WriteTo(ref output);
  1440. }
  1441. }
  1442. #endif
  1443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1444. public int CalculateSize() {
  1445. int size = 0;
  1446. if (payload_ != null) {
  1447. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload);
  1448. }
  1449. if (Username.Length != 0) {
  1450. size += 1 + pb::CodedOutputStream.ComputeStringSize(Username);
  1451. }
  1452. if (OauthScope.Length != 0) {
  1453. size += 1 + pb::CodedOutputStream.ComputeStringSize(OauthScope);
  1454. }
  1455. if (ServerId.Length != 0) {
  1456. size += 1 + pb::CodedOutputStream.ComputeStringSize(ServerId);
  1457. }
  1458. if (GrpclbRouteType != global::Grpc.Testing.GrpclbRouteType.Unknown) {
  1459. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) GrpclbRouteType);
  1460. }
  1461. if (Hostname.Length != 0) {
  1462. size += 1 + pb::CodedOutputStream.ComputeStringSize(Hostname);
  1463. }
  1464. if (_unknownFields != null) {
  1465. size += _unknownFields.CalculateSize();
  1466. }
  1467. return size;
  1468. }
  1469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1470. public void MergeFrom(SimpleResponse other) {
  1471. if (other == null) {
  1472. return;
  1473. }
  1474. if (other.payload_ != null) {
  1475. if (payload_ == null) {
  1476. Payload = new global::Grpc.Testing.Payload();
  1477. }
  1478. Payload.MergeFrom(other.Payload);
  1479. }
  1480. if (other.Username.Length != 0) {
  1481. Username = other.Username;
  1482. }
  1483. if (other.OauthScope.Length != 0) {
  1484. OauthScope = other.OauthScope;
  1485. }
  1486. if (other.ServerId.Length != 0) {
  1487. ServerId = other.ServerId;
  1488. }
  1489. if (other.GrpclbRouteType != global::Grpc.Testing.GrpclbRouteType.Unknown) {
  1490. GrpclbRouteType = other.GrpclbRouteType;
  1491. }
  1492. if (other.Hostname.Length != 0) {
  1493. Hostname = other.Hostname;
  1494. }
  1495. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1496. }
  1497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1498. public void MergeFrom(pb::CodedInputStream input) {
  1499. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1500. input.ReadRawMessage(this);
  1501. #else
  1502. uint tag;
  1503. while ((tag = input.ReadTag()) != 0) {
  1504. switch(tag) {
  1505. default:
  1506. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1507. break;
  1508. case 10: {
  1509. if (payload_ == null) {
  1510. Payload = new global::Grpc.Testing.Payload();
  1511. }
  1512. input.ReadMessage(Payload);
  1513. break;
  1514. }
  1515. case 18: {
  1516. Username = input.ReadString();
  1517. break;
  1518. }
  1519. case 26: {
  1520. OauthScope = input.ReadString();
  1521. break;
  1522. }
  1523. case 34: {
  1524. ServerId = input.ReadString();
  1525. break;
  1526. }
  1527. case 40: {
  1528. GrpclbRouteType = (global::Grpc.Testing.GrpclbRouteType) input.ReadEnum();
  1529. break;
  1530. }
  1531. case 50: {
  1532. Hostname = input.ReadString();
  1533. break;
  1534. }
  1535. }
  1536. }
  1537. #endif
  1538. }
  1539. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1541. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1542. uint tag;
  1543. while ((tag = input.ReadTag()) != 0) {
  1544. switch(tag) {
  1545. default:
  1546. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1547. break;
  1548. case 10: {
  1549. if (payload_ == null) {
  1550. Payload = new global::Grpc.Testing.Payload();
  1551. }
  1552. input.ReadMessage(Payload);
  1553. break;
  1554. }
  1555. case 18: {
  1556. Username = input.ReadString();
  1557. break;
  1558. }
  1559. case 26: {
  1560. OauthScope = input.ReadString();
  1561. break;
  1562. }
  1563. case 34: {
  1564. ServerId = input.ReadString();
  1565. break;
  1566. }
  1567. case 40: {
  1568. GrpclbRouteType = (global::Grpc.Testing.GrpclbRouteType) input.ReadEnum();
  1569. break;
  1570. }
  1571. case 50: {
  1572. Hostname = input.ReadString();
  1573. break;
  1574. }
  1575. }
  1576. }
  1577. }
  1578. #endif
  1579. }
  1580. /// <summary>
  1581. /// Client-streaming request.
  1582. /// </summary>
  1583. public sealed partial class StreamingInputCallRequest : pb::IMessage<StreamingInputCallRequest>
  1584. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1585. , pb::IBufferMessage
  1586. #endif
  1587. {
  1588. private static readonly pb::MessageParser<StreamingInputCallRequest> _parser = new pb::MessageParser<StreamingInputCallRequest>(() => new StreamingInputCallRequest());
  1589. private pb::UnknownFieldSet _unknownFields;
  1590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1591. public static pb::MessageParser<StreamingInputCallRequest> Parser { get { return _parser; } }
  1592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1593. public static pbr::MessageDescriptor Descriptor {
  1594. get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[5]; }
  1595. }
  1596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1597. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1598. get { return Descriptor; }
  1599. }
  1600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1601. public StreamingInputCallRequest() {
  1602. OnConstruction();
  1603. }
  1604. partial void OnConstruction();
  1605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1606. public StreamingInputCallRequest(StreamingInputCallRequest other) : this() {
  1607. payload_ = other.payload_ != null ? other.payload_.Clone() : null;
  1608. expectCompressed_ = other.expectCompressed_ != null ? other.expectCompressed_.Clone() : null;
  1609. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1610. }
  1611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1612. public StreamingInputCallRequest Clone() {
  1613. return new StreamingInputCallRequest(this);
  1614. }
  1615. /// <summary>Field number for the "payload" field.</summary>
  1616. public const int PayloadFieldNumber = 1;
  1617. private global::Grpc.Testing.Payload payload_;
  1618. /// <summary>
  1619. /// Optional input payload sent along with the request.
  1620. /// </summary>
  1621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1622. public global::Grpc.Testing.Payload Payload {
  1623. get { return payload_; }
  1624. set {
  1625. payload_ = value;
  1626. }
  1627. }
  1628. /// <summary>Field number for the "expect_compressed" field.</summary>
  1629. public const int ExpectCompressedFieldNumber = 2;
  1630. private global::Grpc.Testing.BoolValue expectCompressed_;
  1631. /// <summary>
  1632. /// Whether the server should expect this request to be compressed. This field
  1633. /// is "nullable" in order to interoperate seamlessly with servers not able to
  1634. /// implement the full compression tests by introspecting the call to verify
  1635. /// the request's compression status.
  1636. /// </summary>
  1637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1638. public global::Grpc.Testing.BoolValue ExpectCompressed {
  1639. get { return expectCompressed_; }
  1640. set {
  1641. expectCompressed_ = value;
  1642. }
  1643. }
  1644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1645. public override bool Equals(object other) {
  1646. return Equals(other as StreamingInputCallRequest);
  1647. }
  1648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1649. public bool Equals(StreamingInputCallRequest other) {
  1650. if (ReferenceEquals(other, null)) {
  1651. return false;
  1652. }
  1653. if (ReferenceEquals(other, this)) {
  1654. return true;
  1655. }
  1656. if (!object.Equals(Payload, other.Payload)) return false;
  1657. if (!object.Equals(ExpectCompressed, other.ExpectCompressed)) return false;
  1658. return Equals(_unknownFields, other._unknownFields);
  1659. }
  1660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1661. public override int GetHashCode() {
  1662. int hash = 1;
  1663. if (payload_ != null) hash ^= Payload.GetHashCode();
  1664. if (expectCompressed_ != null) hash ^= ExpectCompressed.GetHashCode();
  1665. if (_unknownFields != null) {
  1666. hash ^= _unknownFields.GetHashCode();
  1667. }
  1668. return hash;
  1669. }
  1670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1671. public override string ToString() {
  1672. return pb::JsonFormatter.ToDiagnosticString(this);
  1673. }
  1674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1675. public void WriteTo(pb::CodedOutputStream output) {
  1676. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1677. output.WriteRawMessage(this);
  1678. #else
  1679. if (payload_ != null) {
  1680. output.WriteRawTag(10);
  1681. output.WriteMessage(Payload);
  1682. }
  1683. if (expectCompressed_ != null) {
  1684. output.WriteRawTag(18);
  1685. output.WriteMessage(ExpectCompressed);
  1686. }
  1687. if (_unknownFields != null) {
  1688. _unknownFields.WriteTo(output);
  1689. }
  1690. #endif
  1691. }
  1692. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1694. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1695. if (payload_ != null) {
  1696. output.WriteRawTag(10);
  1697. output.WriteMessage(Payload);
  1698. }
  1699. if (expectCompressed_ != null) {
  1700. output.WriteRawTag(18);
  1701. output.WriteMessage(ExpectCompressed);
  1702. }
  1703. if (_unknownFields != null) {
  1704. _unknownFields.WriteTo(ref output);
  1705. }
  1706. }
  1707. #endif
  1708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1709. public int CalculateSize() {
  1710. int size = 0;
  1711. if (payload_ != null) {
  1712. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload);
  1713. }
  1714. if (expectCompressed_ != null) {
  1715. size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpectCompressed);
  1716. }
  1717. if (_unknownFields != null) {
  1718. size += _unknownFields.CalculateSize();
  1719. }
  1720. return size;
  1721. }
  1722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1723. public void MergeFrom(StreamingInputCallRequest other) {
  1724. if (other == null) {
  1725. return;
  1726. }
  1727. if (other.payload_ != null) {
  1728. if (payload_ == null) {
  1729. Payload = new global::Grpc.Testing.Payload();
  1730. }
  1731. Payload.MergeFrom(other.Payload);
  1732. }
  1733. if (other.expectCompressed_ != null) {
  1734. if (expectCompressed_ == null) {
  1735. ExpectCompressed = new global::Grpc.Testing.BoolValue();
  1736. }
  1737. ExpectCompressed.MergeFrom(other.ExpectCompressed);
  1738. }
  1739. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1740. }
  1741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1742. public void MergeFrom(pb::CodedInputStream input) {
  1743. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1744. input.ReadRawMessage(this);
  1745. #else
  1746. uint tag;
  1747. while ((tag = input.ReadTag()) != 0) {
  1748. switch(tag) {
  1749. default:
  1750. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1751. break;
  1752. case 10: {
  1753. if (payload_ == null) {
  1754. Payload = new global::Grpc.Testing.Payload();
  1755. }
  1756. input.ReadMessage(Payload);
  1757. break;
  1758. }
  1759. case 18: {
  1760. if (expectCompressed_ == null) {
  1761. ExpectCompressed = new global::Grpc.Testing.BoolValue();
  1762. }
  1763. input.ReadMessage(ExpectCompressed);
  1764. break;
  1765. }
  1766. }
  1767. }
  1768. #endif
  1769. }
  1770. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1772. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1773. uint tag;
  1774. while ((tag = input.ReadTag()) != 0) {
  1775. switch(tag) {
  1776. default:
  1777. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1778. break;
  1779. case 10: {
  1780. if (payload_ == null) {
  1781. Payload = new global::Grpc.Testing.Payload();
  1782. }
  1783. input.ReadMessage(Payload);
  1784. break;
  1785. }
  1786. case 18: {
  1787. if (expectCompressed_ == null) {
  1788. ExpectCompressed = new global::Grpc.Testing.BoolValue();
  1789. }
  1790. input.ReadMessage(ExpectCompressed);
  1791. break;
  1792. }
  1793. }
  1794. }
  1795. }
  1796. #endif
  1797. }
  1798. /// <summary>
  1799. /// Client-streaming response.
  1800. /// </summary>
  1801. public sealed partial class StreamingInputCallResponse : pb::IMessage<StreamingInputCallResponse>
  1802. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1803. , pb::IBufferMessage
  1804. #endif
  1805. {
  1806. private static readonly pb::MessageParser<StreamingInputCallResponse> _parser = new pb::MessageParser<StreamingInputCallResponse>(() => new StreamingInputCallResponse());
  1807. private pb::UnknownFieldSet _unknownFields;
  1808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1809. public static pb::MessageParser<StreamingInputCallResponse> Parser { get { return _parser; } }
  1810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1811. public static pbr::MessageDescriptor Descriptor {
  1812. get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[6]; }
  1813. }
  1814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1815. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1816. get { return Descriptor; }
  1817. }
  1818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1819. public StreamingInputCallResponse() {
  1820. OnConstruction();
  1821. }
  1822. partial void OnConstruction();
  1823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1824. public StreamingInputCallResponse(StreamingInputCallResponse other) : this() {
  1825. aggregatedPayloadSize_ = other.aggregatedPayloadSize_;
  1826. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1827. }
  1828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1829. public StreamingInputCallResponse Clone() {
  1830. return new StreamingInputCallResponse(this);
  1831. }
  1832. /// <summary>Field number for the "aggregated_payload_size" field.</summary>
  1833. public const int AggregatedPayloadSizeFieldNumber = 1;
  1834. private int aggregatedPayloadSize_;
  1835. /// <summary>
  1836. /// Aggregated size of payloads received from the client.
  1837. /// </summary>
  1838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1839. public int AggregatedPayloadSize {
  1840. get { return aggregatedPayloadSize_; }
  1841. set {
  1842. aggregatedPayloadSize_ = value;
  1843. }
  1844. }
  1845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1846. public override bool Equals(object other) {
  1847. return Equals(other as StreamingInputCallResponse);
  1848. }
  1849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1850. public bool Equals(StreamingInputCallResponse other) {
  1851. if (ReferenceEquals(other, null)) {
  1852. return false;
  1853. }
  1854. if (ReferenceEquals(other, this)) {
  1855. return true;
  1856. }
  1857. if (AggregatedPayloadSize != other.AggregatedPayloadSize) return false;
  1858. return Equals(_unknownFields, other._unknownFields);
  1859. }
  1860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1861. public override int GetHashCode() {
  1862. int hash = 1;
  1863. if (AggregatedPayloadSize != 0) hash ^= AggregatedPayloadSize.GetHashCode();
  1864. if (_unknownFields != null) {
  1865. hash ^= _unknownFields.GetHashCode();
  1866. }
  1867. return hash;
  1868. }
  1869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1870. public override string ToString() {
  1871. return pb::JsonFormatter.ToDiagnosticString(this);
  1872. }
  1873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1874. public void WriteTo(pb::CodedOutputStream output) {
  1875. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1876. output.WriteRawMessage(this);
  1877. #else
  1878. if (AggregatedPayloadSize != 0) {
  1879. output.WriteRawTag(8);
  1880. output.WriteInt32(AggregatedPayloadSize);
  1881. }
  1882. if (_unknownFields != null) {
  1883. _unknownFields.WriteTo(output);
  1884. }
  1885. #endif
  1886. }
  1887. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1889. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1890. if (AggregatedPayloadSize != 0) {
  1891. output.WriteRawTag(8);
  1892. output.WriteInt32(AggregatedPayloadSize);
  1893. }
  1894. if (_unknownFields != null) {
  1895. _unknownFields.WriteTo(ref output);
  1896. }
  1897. }
  1898. #endif
  1899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1900. public int CalculateSize() {
  1901. int size = 0;
  1902. if (AggregatedPayloadSize != 0) {
  1903. size += 1 + pb::CodedOutputStream.ComputeInt32Size(AggregatedPayloadSize);
  1904. }
  1905. if (_unknownFields != null) {
  1906. size += _unknownFields.CalculateSize();
  1907. }
  1908. return size;
  1909. }
  1910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1911. public void MergeFrom(StreamingInputCallResponse other) {
  1912. if (other == null) {
  1913. return;
  1914. }
  1915. if (other.AggregatedPayloadSize != 0) {
  1916. AggregatedPayloadSize = other.AggregatedPayloadSize;
  1917. }
  1918. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1919. }
  1920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1921. public void MergeFrom(pb::CodedInputStream input) {
  1922. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1923. input.ReadRawMessage(this);
  1924. #else
  1925. uint tag;
  1926. while ((tag = input.ReadTag()) != 0) {
  1927. switch(tag) {
  1928. default:
  1929. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1930. break;
  1931. case 8: {
  1932. AggregatedPayloadSize = input.ReadInt32();
  1933. break;
  1934. }
  1935. }
  1936. }
  1937. #endif
  1938. }
  1939. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1941. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1942. uint tag;
  1943. while ((tag = input.ReadTag()) != 0) {
  1944. switch(tag) {
  1945. default:
  1946. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1947. break;
  1948. case 8: {
  1949. AggregatedPayloadSize = input.ReadInt32();
  1950. break;
  1951. }
  1952. }
  1953. }
  1954. }
  1955. #endif
  1956. }
  1957. /// <summary>
  1958. /// Configuration for a particular response.
  1959. /// </summary>
  1960. public sealed partial class ResponseParameters : pb::IMessage<ResponseParameters>
  1961. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1962. , pb::IBufferMessage
  1963. #endif
  1964. {
  1965. private static readonly pb::MessageParser<ResponseParameters> _parser = new pb::MessageParser<ResponseParameters>(() => new ResponseParameters());
  1966. private pb::UnknownFieldSet _unknownFields;
  1967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1968. public static pb::MessageParser<ResponseParameters> Parser { get { return _parser; } }
  1969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1970. public static pbr::MessageDescriptor Descriptor {
  1971. get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[7]; }
  1972. }
  1973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1974. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1975. get { return Descriptor; }
  1976. }
  1977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1978. public ResponseParameters() {
  1979. OnConstruction();
  1980. }
  1981. partial void OnConstruction();
  1982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1983. public ResponseParameters(ResponseParameters other) : this() {
  1984. size_ = other.size_;
  1985. intervalUs_ = other.intervalUs_;
  1986. compressed_ = other.compressed_ != null ? other.compressed_.Clone() : null;
  1987. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1988. }
  1989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1990. public ResponseParameters Clone() {
  1991. return new ResponseParameters(this);
  1992. }
  1993. /// <summary>Field number for the "size" field.</summary>
  1994. public const int SizeFieldNumber = 1;
  1995. private int size_;
  1996. /// <summary>
  1997. /// Desired payload sizes in responses from the server.
  1998. /// </summary>
  1999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2000. public int Size {
  2001. get { return size_; }
  2002. set {
  2003. size_ = value;
  2004. }
  2005. }
  2006. /// <summary>Field number for the "interval_us" field.</summary>
  2007. public const int IntervalUsFieldNumber = 2;
  2008. private int intervalUs_;
  2009. /// <summary>
  2010. /// Desired interval between consecutive responses in the response stream in
  2011. /// microseconds.
  2012. /// </summary>
  2013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2014. public int IntervalUs {
  2015. get { return intervalUs_; }
  2016. set {
  2017. intervalUs_ = value;
  2018. }
  2019. }
  2020. /// <summary>Field number for the "compressed" field.</summary>
  2021. public const int CompressedFieldNumber = 3;
  2022. private global::Grpc.Testing.BoolValue compressed_;
  2023. /// <summary>
  2024. /// Whether to request the server to compress the response. This field is
  2025. /// "nullable" in order to interoperate seamlessly with clients not able to
  2026. /// implement the full compression tests by introspecting the call to verify
  2027. /// the response's compression status.
  2028. /// </summary>
  2029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2030. public global::Grpc.Testing.BoolValue Compressed {
  2031. get { return compressed_; }
  2032. set {
  2033. compressed_ = value;
  2034. }
  2035. }
  2036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2037. public override bool Equals(object other) {
  2038. return Equals(other as ResponseParameters);
  2039. }
  2040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2041. public bool Equals(ResponseParameters other) {
  2042. if (ReferenceEquals(other, null)) {
  2043. return false;
  2044. }
  2045. if (ReferenceEquals(other, this)) {
  2046. return true;
  2047. }
  2048. if (Size != other.Size) return false;
  2049. if (IntervalUs != other.IntervalUs) return false;
  2050. if (!object.Equals(Compressed, other.Compressed)) return false;
  2051. return Equals(_unknownFields, other._unknownFields);
  2052. }
  2053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2054. public override int GetHashCode() {
  2055. int hash = 1;
  2056. if (Size != 0) hash ^= Size.GetHashCode();
  2057. if (IntervalUs != 0) hash ^= IntervalUs.GetHashCode();
  2058. if (compressed_ != null) hash ^= Compressed.GetHashCode();
  2059. if (_unknownFields != null) {
  2060. hash ^= _unknownFields.GetHashCode();
  2061. }
  2062. return hash;
  2063. }
  2064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2065. public override string ToString() {
  2066. return pb::JsonFormatter.ToDiagnosticString(this);
  2067. }
  2068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2069. public void WriteTo(pb::CodedOutputStream output) {
  2070. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2071. output.WriteRawMessage(this);
  2072. #else
  2073. if (Size != 0) {
  2074. output.WriteRawTag(8);
  2075. output.WriteInt32(Size);
  2076. }
  2077. if (IntervalUs != 0) {
  2078. output.WriteRawTag(16);
  2079. output.WriteInt32(IntervalUs);
  2080. }
  2081. if (compressed_ != null) {
  2082. output.WriteRawTag(26);
  2083. output.WriteMessage(Compressed);
  2084. }
  2085. if (_unknownFields != null) {
  2086. _unknownFields.WriteTo(output);
  2087. }
  2088. #endif
  2089. }
  2090. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2092. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  2093. if (Size != 0) {
  2094. output.WriteRawTag(8);
  2095. output.WriteInt32(Size);
  2096. }
  2097. if (IntervalUs != 0) {
  2098. output.WriteRawTag(16);
  2099. output.WriteInt32(IntervalUs);
  2100. }
  2101. if (compressed_ != null) {
  2102. output.WriteRawTag(26);
  2103. output.WriteMessage(Compressed);
  2104. }
  2105. if (_unknownFields != null) {
  2106. _unknownFields.WriteTo(ref output);
  2107. }
  2108. }
  2109. #endif
  2110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2111. public int CalculateSize() {
  2112. int size = 0;
  2113. if (Size != 0) {
  2114. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Size);
  2115. }
  2116. if (IntervalUs != 0) {
  2117. size += 1 + pb::CodedOutputStream.ComputeInt32Size(IntervalUs);
  2118. }
  2119. if (compressed_ != null) {
  2120. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Compressed);
  2121. }
  2122. if (_unknownFields != null) {
  2123. size += _unknownFields.CalculateSize();
  2124. }
  2125. return size;
  2126. }
  2127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2128. public void MergeFrom(ResponseParameters other) {
  2129. if (other == null) {
  2130. return;
  2131. }
  2132. if (other.Size != 0) {
  2133. Size = other.Size;
  2134. }
  2135. if (other.IntervalUs != 0) {
  2136. IntervalUs = other.IntervalUs;
  2137. }
  2138. if (other.compressed_ != null) {
  2139. if (compressed_ == null) {
  2140. Compressed = new global::Grpc.Testing.BoolValue();
  2141. }
  2142. Compressed.MergeFrom(other.Compressed);
  2143. }
  2144. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2145. }
  2146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2147. public void MergeFrom(pb::CodedInputStream input) {
  2148. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2149. input.ReadRawMessage(this);
  2150. #else
  2151. uint tag;
  2152. while ((tag = input.ReadTag()) != 0) {
  2153. switch(tag) {
  2154. default:
  2155. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2156. break;
  2157. case 8: {
  2158. Size = input.ReadInt32();
  2159. break;
  2160. }
  2161. case 16: {
  2162. IntervalUs = input.ReadInt32();
  2163. break;
  2164. }
  2165. case 26: {
  2166. if (compressed_ == null) {
  2167. Compressed = new global::Grpc.Testing.BoolValue();
  2168. }
  2169. input.ReadMessage(Compressed);
  2170. break;
  2171. }
  2172. }
  2173. }
  2174. #endif
  2175. }
  2176. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2178. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  2179. uint tag;
  2180. while ((tag = input.ReadTag()) != 0) {
  2181. switch(tag) {
  2182. default:
  2183. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  2184. break;
  2185. case 8: {
  2186. Size = input.ReadInt32();
  2187. break;
  2188. }
  2189. case 16: {
  2190. IntervalUs = input.ReadInt32();
  2191. break;
  2192. }
  2193. case 26: {
  2194. if (compressed_ == null) {
  2195. Compressed = new global::Grpc.Testing.BoolValue();
  2196. }
  2197. input.ReadMessage(Compressed);
  2198. break;
  2199. }
  2200. }
  2201. }
  2202. }
  2203. #endif
  2204. }
  2205. /// <summary>
  2206. /// Server-streaming request.
  2207. /// </summary>
  2208. public sealed partial class StreamingOutputCallRequest : pb::IMessage<StreamingOutputCallRequest>
  2209. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2210. , pb::IBufferMessage
  2211. #endif
  2212. {
  2213. private static readonly pb::MessageParser<StreamingOutputCallRequest> _parser = new pb::MessageParser<StreamingOutputCallRequest>(() => new StreamingOutputCallRequest());
  2214. private pb::UnknownFieldSet _unknownFields;
  2215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2216. public static pb::MessageParser<StreamingOutputCallRequest> Parser { get { return _parser; } }
  2217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2218. public static pbr::MessageDescriptor Descriptor {
  2219. get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[8]; }
  2220. }
  2221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2222. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2223. get { return Descriptor; }
  2224. }
  2225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2226. public StreamingOutputCallRequest() {
  2227. OnConstruction();
  2228. }
  2229. partial void OnConstruction();
  2230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2231. public StreamingOutputCallRequest(StreamingOutputCallRequest other) : this() {
  2232. responseType_ = other.responseType_;
  2233. responseParameters_ = other.responseParameters_.Clone();
  2234. payload_ = other.payload_ != null ? other.payload_.Clone() : null;
  2235. responseStatus_ = other.responseStatus_ != null ? other.responseStatus_.Clone() : null;
  2236. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2237. }
  2238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2239. public StreamingOutputCallRequest Clone() {
  2240. return new StreamingOutputCallRequest(this);
  2241. }
  2242. /// <summary>Field number for the "response_type" field.</summary>
  2243. public const int ResponseTypeFieldNumber = 1;
  2244. private global::Grpc.Testing.PayloadType responseType_ = global::Grpc.Testing.PayloadType.Compressable;
  2245. /// <summary>
  2246. /// Desired payload type in the response from the server.
  2247. /// If response_type is RANDOM, the payload from each response in the stream
  2248. /// might be of different types. This is to simulate a mixed type of payload
  2249. /// stream.
  2250. /// </summary>
  2251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2252. public global::Grpc.Testing.PayloadType ResponseType {
  2253. get { return responseType_; }
  2254. set {
  2255. responseType_ = value;
  2256. }
  2257. }
  2258. /// <summary>Field number for the "response_parameters" field.</summary>
  2259. public const int ResponseParametersFieldNumber = 2;
  2260. private static readonly pb::FieldCodec<global::Grpc.Testing.ResponseParameters> _repeated_responseParameters_codec
  2261. = pb::FieldCodec.ForMessage(18, global::Grpc.Testing.ResponseParameters.Parser);
  2262. private readonly pbc::RepeatedField<global::Grpc.Testing.ResponseParameters> responseParameters_ = new pbc::RepeatedField<global::Grpc.Testing.ResponseParameters>();
  2263. /// <summary>
  2264. /// Configuration for each expected response message.
  2265. /// </summary>
  2266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2267. public pbc::RepeatedField<global::Grpc.Testing.ResponseParameters> ResponseParameters {
  2268. get { return responseParameters_; }
  2269. }
  2270. /// <summary>Field number for the "payload" field.</summary>
  2271. public const int PayloadFieldNumber = 3;
  2272. private global::Grpc.Testing.Payload payload_;
  2273. /// <summary>
  2274. /// Optional input payload sent along with the request.
  2275. /// </summary>
  2276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2277. public global::Grpc.Testing.Payload Payload {
  2278. get { return payload_; }
  2279. set {
  2280. payload_ = value;
  2281. }
  2282. }
  2283. /// <summary>Field number for the "response_status" field.</summary>
  2284. public const int ResponseStatusFieldNumber = 7;
  2285. private global::Grpc.Testing.EchoStatus responseStatus_;
  2286. /// <summary>
  2287. /// Whether server should return a given status
  2288. /// </summary>
  2289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2290. public global::Grpc.Testing.EchoStatus ResponseStatus {
  2291. get { return responseStatus_; }
  2292. set {
  2293. responseStatus_ = value;
  2294. }
  2295. }
  2296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2297. public override bool Equals(object other) {
  2298. return Equals(other as StreamingOutputCallRequest);
  2299. }
  2300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2301. public bool Equals(StreamingOutputCallRequest other) {
  2302. if (ReferenceEquals(other, null)) {
  2303. return false;
  2304. }
  2305. if (ReferenceEquals(other, this)) {
  2306. return true;
  2307. }
  2308. if (ResponseType != other.ResponseType) return false;
  2309. if(!responseParameters_.Equals(other.responseParameters_)) return false;
  2310. if (!object.Equals(Payload, other.Payload)) return false;
  2311. if (!object.Equals(ResponseStatus, other.ResponseStatus)) return false;
  2312. return Equals(_unknownFields, other._unknownFields);
  2313. }
  2314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2315. public override int GetHashCode() {
  2316. int hash = 1;
  2317. if (ResponseType != global::Grpc.Testing.PayloadType.Compressable) hash ^= ResponseType.GetHashCode();
  2318. hash ^= responseParameters_.GetHashCode();
  2319. if (payload_ != null) hash ^= Payload.GetHashCode();
  2320. if (responseStatus_ != null) hash ^= ResponseStatus.GetHashCode();
  2321. if (_unknownFields != null) {
  2322. hash ^= _unknownFields.GetHashCode();
  2323. }
  2324. return hash;
  2325. }
  2326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2327. public override string ToString() {
  2328. return pb::JsonFormatter.ToDiagnosticString(this);
  2329. }
  2330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2331. public void WriteTo(pb::CodedOutputStream output) {
  2332. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2333. output.WriteRawMessage(this);
  2334. #else
  2335. if (ResponseType != global::Grpc.Testing.PayloadType.Compressable) {
  2336. output.WriteRawTag(8);
  2337. output.WriteEnum((int) ResponseType);
  2338. }
  2339. responseParameters_.WriteTo(output, _repeated_responseParameters_codec);
  2340. if (payload_ != null) {
  2341. output.WriteRawTag(26);
  2342. output.WriteMessage(Payload);
  2343. }
  2344. if (responseStatus_ != null) {
  2345. output.WriteRawTag(58);
  2346. output.WriteMessage(ResponseStatus);
  2347. }
  2348. if (_unknownFields != null) {
  2349. _unknownFields.WriteTo(output);
  2350. }
  2351. #endif
  2352. }
  2353. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2355. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  2356. if (ResponseType != global::Grpc.Testing.PayloadType.Compressable) {
  2357. output.WriteRawTag(8);
  2358. output.WriteEnum((int) ResponseType);
  2359. }
  2360. responseParameters_.WriteTo(ref output, _repeated_responseParameters_codec);
  2361. if (payload_ != null) {
  2362. output.WriteRawTag(26);
  2363. output.WriteMessage(Payload);
  2364. }
  2365. if (responseStatus_ != null) {
  2366. output.WriteRawTag(58);
  2367. output.WriteMessage(ResponseStatus);
  2368. }
  2369. if (_unknownFields != null) {
  2370. _unknownFields.WriteTo(ref output);
  2371. }
  2372. }
  2373. #endif
  2374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2375. public int CalculateSize() {
  2376. int size = 0;
  2377. if (ResponseType != global::Grpc.Testing.PayloadType.Compressable) {
  2378. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseType);
  2379. }
  2380. size += responseParameters_.CalculateSize(_repeated_responseParameters_codec);
  2381. if (payload_ != null) {
  2382. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload);
  2383. }
  2384. if (responseStatus_ != null) {
  2385. size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResponseStatus);
  2386. }
  2387. if (_unknownFields != null) {
  2388. size += _unknownFields.CalculateSize();
  2389. }
  2390. return size;
  2391. }
  2392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2393. public void MergeFrom(StreamingOutputCallRequest other) {
  2394. if (other == null) {
  2395. return;
  2396. }
  2397. if (other.ResponseType != global::Grpc.Testing.PayloadType.Compressable) {
  2398. ResponseType = other.ResponseType;
  2399. }
  2400. responseParameters_.Add(other.responseParameters_);
  2401. if (other.payload_ != null) {
  2402. if (payload_ == null) {
  2403. Payload = new global::Grpc.Testing.Payload();
  2404. }
  2405. Payload.MergeFrom(other.Payload);
  2406. }
  2407. if (other.responseStatus_ != null) {
  2408. if (responseStatus_ == null) {
  2409. ResponseStatus = new global::Grpc.Testing.EchoStatus();
  2410. }
  2411. ResponseStatus.MergeFrom(other.ResponseStatus);
  2412. }
  2413. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2414. }
  2415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2416. public void MergeFrom(pb::CodedInputStream input) {
  2417. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2418. input.ReadRawMessage(this);
  2419. #else
  2420. uint tag;
  2421. while ((tag = input.ReadTag()) != 0) {
  2422. switch(tag) {
  2423. default:
  2424. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2425. break;
  2426. case 8: {
  2427. ResponseType = (global::Grpc.Testing.PayloadType) input.ReadEnum();
  2428. break;
  2429. }
  2430. case 18: {
  2431. responseParameters_.AddEntriesFrom(input, _repeated_responseParameters_codec);
  2432. break;
  2433. }
  2434. case 26: {
  2435. if (payload_ == null) {
  2436. Payload = new global::Grpc.Testing.Payload();
  2437. }
  2438. input.ReadMessage(Payload);
  2439. break;
  2440. }
  2441. case 58: {
  2442. if (responseStatus_ == null) {
  2443. ResponseStatus = new global::Grpc.Testing.EchoStatus();
  2444. }
  2445. input.ReadMessage(ResponseStatus);
  2446. break;
  2447. }
  2448. }
  2449. }
  2450. #endif
  2451. }
  2452. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2454. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  2455. uint tag;
  2456. while ((tag = input.ReadTag()) != 0) {
  2457. switch(tag) {
  2458. default:
  2459. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  2460. break;
  2461. case 8: {
  2462. ResponseType = (global::Grpc.Testing.PayloadType) input.ReadEnum();
  2463. break;
  2464. }
  2465. case 18: {
  2466. responseParameters_.AddEntriesFrom(ref input, _repeated_responseParameters_codec);
  2467. break;
  2468. }
  2469. case 26: {
  2470. if (payload_ == null) {
  2471. Payload = new global::Grpc.Testing.Payload();
  2472. }
  2473. input.ReadMessage(Payload);
  2474. break;
  2475. }
  2476. case 58: {
  2477. if (responseStatus_ == null) {
  2478. ResponseStatus = new global::Grpc.Testing.EchoStatus();
  2479. }
  2480. input.ReadMessage(ResponseStatus);
  2481. break;
  2482. }
  2483. }
  2484. }
  2485. }
  2486. #endif
  2487. }
  2488. /// <summary>
  2489. /// Server-streaming response, as configured by the request and parameters.
  2490. /// </summary>
  2491. public sealed partial class StreamingOutputCallResponse : pb::IMessage<StreamingOutputCallResponse>
  2492. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2493. , pb::IBufferMessage
  2494. #endif
  2495. {
  2496. private static readonly pb::MessageParser<StreamingOutputCallResponse> _parser = new pb::MessageParser<StreamingOutputCallResponse>(() => new StreamingOutputCallResponse());
  2497. private pb::UnknownFieldSet _unknownFields;
  2498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2499. public static pb::MessageParser<StreamingOutputCallResponse> Parser { get { return _parser; } }
  2500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2501. public static pbr::MessageDescriptor Descriptor {
  2502. get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[9]; }
  2503. }
  2504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2505. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2506. get { return Descriptor; }
  2507. }
  2508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2509. public StreamingOutputCallResponse() {
  2510. OnConstruction();
  2511. }
  2512. partial void OnConstruction();
  2513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2514. public StreamingOutputCallResponse(StreamingOutputCallResponse other) : this() {
  2515. payload_ = other.payload_ != null ? other.payload_.Clone() : null;
  2516. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2517. }
  2518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2519. public StreamingOutputCallResponse Clone() {
  2520. return new StreamingOutputCallResponse(this);
  2521. }
  2522. /// <summary>Field number for the "payload" field.</summary>
  2523. public const int PayloadFieldNumber = 1;
  2524. private global::Grpc.Testing.Payload payload_;
  2525. /// <summary>
  2526. /// Payload to increase response size.
  2527. /// </summary>
  2528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2529. public global::Grpc.Testing.Payload Payload {
  2530. get { return payload_; }
  2531. set {
  2532. payload_ = value;
  2533. }
  2534. }
  2535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2536. public override bool Equals(object other) {
  2537. return Equals(other as StreamingOutputCallResponse);
  2538. }
  2539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2540. public bool Equals(StreamingOutputCallResponse other) {
  2541. if (ReferenceEquals(other, null)) {
  2542. return false;
  2543. }
  2544. if (ReferenceEquals(other, this)) {
  2545. return true;
  2546. }
  2547. if (!object.Equals(Payload, other.Payload)) return false;
  2548. return Equals(_unknownFields, other._unknownFields);
  2549. }
  2550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2551. public override int GetHashCode() {
  2552. int hash = 1;
  2553. if (payload_ != null) hash ^= Payload.GetHashCode();
  2554. if (_unknownFields != null) {
  2555. hash ^= _unknownFields.GetHashCode();
  2556. }
  2557. return hash;
  2558. }
  2559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2560. public override string ToString() {
  2561. return pb::JsonFormatter.ToDiagnosticString(this);
  2562. }
  2563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2564. public void WriteTo(pb::CodedOutputStream output) {
  2565. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2566. output.WriteRawMessage(this);
  2567. #else
  2568. if (payload_ != null) {
  2569. output.WriteRawTag(10);
  2570. output.WriteMessage(Payload);
  2571. }
  2572. if (_unknownFields != null) {
  2573. _unknownFields.WriteTo(output);
  2574. }
  2575. #endif
  2576. }
  2577. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2579. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  2580. if (payload_ != null) {
  2581. output.WriteRawTag(10);
  2582. output.WriteMessage(Payload);
  2583. }
  2584. if (_unknownFields != null) {
  2585. _unknownFields.WriteTo(ref output);
  2586. }
  2587. }
  2588. #endif
  2589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2590. public int CalculateSize() {
  2591. int size = 0;
  2592. if (payload_ != null) {
  2593. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload);
  2594. }
  2595. if (_unknownFields != null) {
  2596. size += _unknownFields.CalculateSize();
  2597. }
  2598. return size;
  2599. }
  2600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2601. public void MergeFrom(StreamingOutputCallResponse other) {
  2602. if (other == null) {
  2603. return;
  2604. }
  2605. if (other.payload_ != null) {
  2606. if (payload_ == null) {
  2607. Payload = new global::Grpc.Testing.Payload();
  2608. }
  2609. Payload.MergeFrom(other.Payload);
  2610. }
  2611. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2612. }
  2613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2614. public void MergeFrom(pb::CodedInputStream input) {
  2615. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2616. input.ReadRawMessage(this);
  2617. #else
  2618. uint tag;
  2619. while ((tag = input.ReadTag()) != 0) {
  2620. switch(tag) {
  2621. default:
  2622. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2623. break;
  2624. case 10: {
  2625. if (payload_ == null) {
  2626. Payload = new global::Grpc.Testing.Payload();
  2627. }
  2628. input.ReadMessage(Payload);
  2629. break;
  2630. }
  2631. }
  2632. }
  2633. #endif
  2634. }
  2635. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2637. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  2638. uint tag;
  2639. while ((tag = input.ReadTag()) != 0) {
  2640. switch(tag) {
  2641. default:
  2642. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  2643. break;
  2644. case 10: {
  2645. if (payload_ == null) {
  2646. Payload = new global::Grpc.Testing.Payload();
  2647. }
  2648. input.ReadMessage(Payload);
  2649. break;
  2650. }
  2651. }
  2652. }
  2653. }
  2654. #endif
  2655. }
  2656. /// <summary>
  2657. /// For reconnect interop test only.
  2658. /// Client tells server what reconnection parameters it used.
  2659. /// </summary>
  2660. public sealed partial class ReconnectParams : pb::IMessage<ReconnectParams>
  2661. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2662. , pb::IBufferMessage
  2663. #endif
  2664. {
  2665. private static readonly pb::MessageParser<ReconnectParams> _parser = new pb::MessageParser<ReconnectParams>(() => new ReconnectParams());
  2666. private pb::UnknownFieldSet _unknownFields;
  2667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2668. public static pb::MessageParser<ReconnectParams> Parser { get { return _parser; } }
  2669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2670. public static pbr::MessageDescriptor Descriptor {
  2671. get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[10]; }
  2672. }
  2673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2674. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2675. get { return Descriptor; }
  2676. }
  2677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2678. public ReconnectParams() {
  2679. OnConstruction();
  2680. }
  2681. partial void OnConstruction();
  2682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2683. public ReconnectParams(ReconnectParams other) : this() {
  2684. maxReconnectBackoffMs_ = other.maxReconnectBackoffMs_;
  2685. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2686. }
  2687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2688. public ReconnectParams Clone() {
  2689. return new ReconnectParams(this);
  2690. }
  2691. /// <summary>Field number for the "max_reconnect_backoff_ms" field.</summary>
  2692. public const int MaxReconnectBackoffMsFieldNumber = 1;
  2693. private int maxReconnectBackoffMs_;
  2694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2695. public int MaxReconnectBackoffMs {
  2696. get { return maxReconnectBackoffMs_; }
  2697. set {
  2698. maxReconnectBackoffMs_ = value;
  2699. }
  2700. }
  2701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2702. public override bool Equals(object other) {
  2703. return Equals(other as ReconnectParams);
  2704. }
  2705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2706. public bool Equals(ReconnectParams other) {
  2707. if (ReferenceEquals(other, null)) {
  2708. return false;
  2709. }
  2710. if (ReferenceEquals(other, this)) {
  2711. return true;
  2712. }
  2713. if (MaxReconnectBackoffMs != other.MaxReconnectBackoffMs) return false;
  2714. return Equals(_unknownFields, other._unknownFields);
  2715. }
  2716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2717. public override int GetHashCode() {
  2718. int hash = 1;
  2719. if (MaxReconnectBackoffMs != 0) hash ^= MaxReconnectBackoffMs.GetHashCode();
  2720. if (_unknownFields != null) {
  2721. hash ^= _unknownFields.GetHashCode();
  2722. }
  2723. return hash;
  2724. }
  2725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2726. public override string ToString() {
  2727. return pb::JsonFormatter.ToDiagnosticString(this);
  2728. }
  2729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2730. public void WriteTo(pb::CodedOutputStream output) {
  2731. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2732. output.WriteRawMessage(this);
  2733. #else
  2734. if (MaxReconnectBackoffMs != 0) {
  2735. output.WriteRawTag(8);
  2736. output.WriteInt32(MaxReconnectBackoffMs);
  2737. }
  2738. if (_unknownFields != null) {
  2739. _unknownFields.WriteTo(output);
  2740. }
  2741. #endif
  2742. }
  2743. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2745. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  2746. if (MaxReconnectBackoffMs != 0) {
  2747. output.WriteRawTag(8);
  2748. output.WriteInt32(MaxReconnectBackoffMs);
  2749. }
  2750. if (_unknownFields != null) {
  2751. _unknownFields.WriteTo(ref output);
  2752. }
  2753. }
  2754. #endif
  2755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2756. public int CalculateSize() {
  2757. int size = 0;
  2758. if (MaxReconnectBackoffMs != 0) {
  2759. size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxReconnectBackoffMs);
  2760. }
  2761. if (_unknownFields != null) {
  2762. size += _unknownFields.CalculateSize();
  2763. }
  2764. return size;
  2765. }
  2766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2767. public void MergeFrom(ReconnectParams other) {
  2768. if (other == null) {
  2769. return;
  2770. }
  2771. if (other.MaxReconnectBackoffMs != 0) {
  2772. MaxReconnectBackoffMs = other.MaxReconnectBackoffMs;
  2773. }
  2774. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2775. }
  2776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2777. public void MergeFrom(pb::CodedInputStream input) {
  2778. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2779. input.ReadRawMessage(this);
  2780. #else
  2781. uint tag;
  2782. while ((tag = input.ReadTag()) != 0) {
  2783. switch(tag) {
  2784. default:
  2785. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2786. break;
  2787. case 8: {
  2788. MaxReconnectBackoffMs = input.ReadInt32();
  2789. break;
  2790. }
  2791. }
  2792. }
  2793. #endif
  2794. }
  2795. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2797. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  2798. uint tag;
  2799. while ((tag = input.ReadTag()) != 0) {
  2800. switch(tag) {
  2801. default:
  2802. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  2803. break;
  2804. case 8: {
  2805. MaxReconnectBackoffMs = input.ReadInt32();
  2806. break;
  2807. }
  2808. }
  2809. }
  2810. }
  2811. #endif
  2812. }
  2813. /// <summary>
  2814. /// For reconnect interop test only.
  2815. /// Server tells client whether its reconnects are following the spec and the
  2816. /// reconnect backoffs it saw.
  2817. /// </summary>
  2818. public sealed partial class ReconnectInfo : pb::IMessage<ReconnectInfo>
  2819. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2820. , pb::IBufferMessage
  2821. #endif
  2822. {
  2823. private static readonly pb::MessageParser<ReconnectInfo> _parser = new pb::MessageParser<ReconnectInfo>(() => new ReconnectInfo());
  2824. private pb::UnknownFieldSet _unknownFields;
  2825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2826. public static pb::MessageParser<ReconnectInfo> Parser { get { return _parser; } }
  2827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2828. public static pbr::MessageDescriptor Descriptor {
  2829. get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[11]; }
  2830. }
  2831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2832. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2833. get { return Descriptor; }
  2834. }
  2835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2836. public ReconnectInfo() {
  2837. OnConstruction();
  2838. }
  2839. partial void OnConstruction();
  2840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2841. public ReconnectInfo(ReconnectInfo other) : this() {
  2842. passed_ = other.passed_;
  2843. backoffMs_ = other.backoffMs_.Clone();
  2844. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  2845. }
  2846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2847. public ReconnectInfo Clone() {
  2848. return new ReconnectInfo(this);
  2849. }
  2850. /// <summary>Field number for the "passed" field.</summary>
  2851. public const int PassedFieldNumber = 1;
  2852. private bool passed_;
  2853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2854. public bool Passed {
  2855. get { return passed_; }
  2856. set {
  2857. passed_ = value;
  2858. }
  2859. }
  2860. /// <summary>Field number for the "backoff_ms" field.</summary>
  2861. public const int BackoffMsFieldNumber = 2;
  2862. private static readonly pb::FieldCodec<int> _repeated_backoffMs_codec
  2863. = pb::FieldCodec.ForInt32(18);
  2864. private readonly pbc::RepeatedField<int> backoffMs_ = new pbc::RepeatedField<int>();
  2865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2866. public pbc::RepeatedField<int> BackoffMs {
  2867. get { return backoffMs_; }
  2868. }
  2869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2870. public override bool Equals(object other) {
  2871. return Equals(other as ReconnectInfo);
  2872. }
  2873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2874. public bool Equals(ReconnectInfo other) {
  2875. if (ReferenceEquals(other, null)) {
  2876. return false;
  2877. }
  2878. if (ReferenceEquals(other, this)) {
  2879. return true;
  2880. }
  2881. if (Passed != other.Passed) return false;
  2882. if(!backoffMs_.Equals(other.backoffMs_)) return false;
  2883. return Equals(_unknownFields, other._unknownFields);
  2884. }
  2885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2886. public override int GetHashCode() {
  2887. int hash = 1;
  2888. if (Passed != false) hash ^= Passed.GetHashCode();
  2889. hash ^= backoffMs_.GetHashCode();
  2890. if (_unknownFields != null) {
  2891. hash ^= _unknownFields.GetHashCode();
  2892. }
  2893. return hash;
  2894. }
  2895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2896. public override string ToString() {
  2897. return pb::JsonFormatter.ToDiagnosticString(this);
  2898. }
  2899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2900. public void WriteTo(pb::CodedOutputStream output) {
  2901. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2902. output.WriteRawMessage(this);
  2903. #else
  2904. if (Passed != false) {
  2905. output.WriteRawTag(8);
  2906. output.WriteBool(Passed);
  2907. }
  2908. backoffMs_.WriteTo(output, _repeated_backoffMs_codec);
  2909. if (_unknownFields != null) {
  2910. _unknownFields.WriteTo(output);
  2911. }
  2912. #endif
  2913. }
  2914. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2916. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  2917. if (Passed != false) {
  2918. output.WriteRawTag(8);
  2919. output.WriteBool(Passed);
  2920. }
  2921. backoffMs_.WriteTo(ref output, _repeated_backoffMs_codec);
  2922. if (_unknownFields != null) {
  2923. _unknownFields.WriteTo(ref output);
  2924. }
  2925. }
  2926. #endif
  2927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2928. public int CalculateSize() {
  2929. int size = 0;
  2930. if (Passed != false) {
  2931. size += 1 + 1;
  2932. }
  2933. size += backoffMs_.CalculateSize(_repeated_backoffMs_codec);
  2934. if (_unknownFields != null) {
  2935. size += _unknownFields.CalculateSize();
  2936. }
  2937. return size;
  2938. }
  2939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2940. public void MergeFrom(ReconnectInfo other) {
  2941. if (other == null) {
  2942. return;
  2943. }
  2944. if (other.Passed != false) {
  2945. Passed = other.Passed;
  2946. }
  2947. backoffMs_.Add(other.backoffMs_);
  2948. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2949. }
  2950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2951. public void MergeFrom(pb::CodedInputStream input) {
  2952. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2953. input.ReadRawMessage(this);
  2954. #else
  2955. uint tag;
  2956. while ((tag = input.ReadTag()) != 0) {
  2957. switch(tag) {
  2958. default:
  2959. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2960. break;
  2961. case 8: {
  2962. Passed = input.ReadBool();
  2963. break;
  2964. }
  2965. case 18:
  2966. case 16: {
  2967. backoffMs_.AddEntriesFrom(input, _repeated_backoffMs_codec);
  2968. break;
  2969. }
  2970. }
  2971. }
  2972. #endif
  2973. }
  2974. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2976. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  2977. uint tag;
  2978. while ((tag = input.ReadTag()) != 0) {
  2979. switch(tag) {
  2980. default:
  2981. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  2982. break;
  2983. case 8: {
  2984. Passed = input.ReadBool();
  2985. break;
  2986. }
  2987. case 18:
  2988. case 16: {
  2989. backoffMs_.AddEntriesFrom(ref input, _repeated_backoffMs_codec);
  2990. break;
  2991. }
  2992. }
  2993. }
  2994. }
  2995. #endif
  2996. }
  2997. public sealed partial class LoadBalancerStatsRequest : pb::IMessage<LoadBalancerStatsRequest>
  2998. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  2999. , pb::IBufferMessage
  3000. #endif
  3001. {
  3002. private static readonly pb::MessageParser<LoadBalancerStatsRequest> _parser = new pb::MessageParser<LoadBalancerStatsRequest>(() => new LoadBalancerStatsRequest());
  3003. private pb::UnknownFieldSet _unknownFields;
  3004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3005. public static pb::MessageParser<LoadBalancerStatsRequest> Parser { get { return _parser; } }
  3006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3007. public static pbr::MessageDescriptor Descriptor {
  3008. get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[12]; }
  3009. }
  3010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3011. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3012. get { return Descriptor; }
  3013. }
  3014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3015. public LoadBalancerStatsRequest() {
  3016. OnConstruction();
  3017. }
  3018. partial void OnConstruction();
  3019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3020. public LoadBalancerStatsRequest(LoadBalancerStatsRequest other) : this() {
  3021. numRpcs_ = other.numRpcs_;
  3022. timeoutSec_ = other.timeoutSec_;
  3023. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  3024. }
  3025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3026. public LoadBalancerStatsRequest Clone() {
  3027. return new LoadBalancerStatsRequest(this);
  3028. }
  3029. /// <summary>Field number for the "num_rpcs" field.</summary>
  3030. public const int NumRpcsFieldNumber = 1;
  3031. private int numRpcs_;
  3032. /// <summary>
  3033. /// Request stats for the next num_rpcs sent by client.
  3034. /// </summary>
  3035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3036. public int NumRpcs {
  3037. get { return numRpcs_; }
  3038. set {
  3039. numRpcs_ = value;
  3040. }
  3041. }
  3042. /// <summary>Field number for the "timeout_sec" field.</summary>
  3043. public const int TimeoutSecFieldNumber = 2;
  3044. private int timeoutSec_;
  3045. /// <summary>
  3046. /// If num_rpcs have not completed within timeout_sec, return partial results.
  3047. /// </summary>
  3048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3049. public int TimeoutSec {
  3050. get { return timeoutSec_; }
  3051. set {
  3052. timeoutSec_ = value;
  3053. }
  3054. }
  3055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3056. public override bool Equals(object other) {
  3057. return Equals(other as LoadBalancerStatsRequest);
  3058. }
  3059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3060. public bool Equals(LoadBalancerStatsRequest other) {
  3061. if (ReferenceEquals(other, null)) {
  3062. return false;
  3063. }
  3064. if (ReferenceEquals(other, this)) {
  3065. return true;
  3066. }
  3067. if (NumRpcs != other.NumRpcs) return false;
  3068. if (TimeoutSec != other.TimeoutSec) return false;
  3069. return Equals(_unknownFields, other._unknownFields);
  3070. }
  3071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3072. public override int GetHashCode() {
  3073. int hash = 1;
  3074. if (NumRpcs != 0) hash ^= NumRpcs.GetHashCode();
  3075. if (TimeoutSec != 0) hash ^= TimeoutSec.GetHashCode();
  3076. if (_unknownFields != null) {
  3077. hash ^= _unknownFields.GetHashCode();
  3078. }
  3079. return hash;
  3080. }
  3081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3082. public override string ToString() {
  3083. return pb::JsonFormatter.ToDiagnosticString(this);
  3084. }
  3085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3086. public void WriteTo(pb::CodedOutputStream output) {
  3087. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3088. output.WriteRawMessage(this);
  3089. #else
  3090. if (NumRpcs != 0) {
  3091. output.WriteRawTag(8);
  3092. output.WriteInt32(NumRpcs);
  3093. }
  3094. if (TimeoutSec != 0) {
  3095. output.WriteRawTag(16);
  3096. output.WriteInt32(TimeoutSec);
  3097. }
  3098. if (_unknownFields != null) {
  3099. _unknownFields.WriteTo(output);
  3100. }
  3101. #endif
  3102. }
  3103. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3105. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  3106. if (NumRpcs != 0) {
  3107. output.WriteRawTag(8);
  3108. output.WriteInt32(NumRpcs);
  3109. }
  3110. if (TimeoutSec != 0) {
  3111. output.WriteRawTag(16);
  3112. output.WriteInt32(TimeoutSec);
  3113. }
  3114. if (_unknownFields != null) {
  3115. _unknownFields.WriteTo(ref output);
  3116. }
  3117. }
  3118. #endif
  3119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3120. public int CalculateSize() {
  3121. int size = 0;
  3122. if (NumRpcs != 0) {
  3123. size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumRpcs);
  3124. }
  3125. if (TimeoutSec != 0) {
  3126. size += 1 + pb::CodedOutputStream.ComputeInt32Size(TimeoutSec);
  3127. }
  3128. if (_unknownFields != null) {
  3129. size += _unknownFields.CalculateSize();
  3130. }
  3131. return size;
  3132. }
  3133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3134. public void MergeFrom(LoadBalancerStatsRequest other) {
  3135. if (other == null) {
  3136. return;
  3137. }
  3138. if (other.NumRpcs != 0) {
  3139. NumRpcs = other.NumRpcs;
  3140. }
  3141. if (other.TimeoutSec != 0) {
  3142. TimeoutSec = other.TimeoutSec;
  3143. }
  3144. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  3145. }
  3146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3147. public void MergeFrom(pb::CodedInputStream input) {
  3148. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3149. input.ReadRawMessage(this);
  3150. #else
  3151. uint tag;
  3152. while ((tag = input.ReadTag()) != 0) {
  3153. switch(tag) {
  3154. default:
  3155. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  3156. break;
  3157. case 8: {
  3158. NumRpcs = input.ReadInt32();
  3159. break;
  3160. }
  3161. case 16: {
  3162. TimeoutSec = input.ReadInt32();
  3163. break;
  3164. }
  3165. }
  3166. }
  3167. #endif
  3168. }
  3169. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3171. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  3172. uint tag;
  3173. while ((tag = input.ReadTag()) != 0) {
  3174. switch(tag) {
  3175. default:
  3176. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  3177. break;
  3178. case 8: {
  3179. NumRpcs = input.ReadInt32();
  3180. break;
  3181. }
  3182. case 16: {
  3183. TimeoutSec = input.ReadInt32();
  3184. break;
  3185. }
  3186. }
  3187. }
  3188. }
  3189. #endif
  3190. }
  3191. public sealed partial class LoadBalancerStatsResponse : pb::IMessage<LoadBalancerStatsResponse>
  3192. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3193. , pb::IBufferMessage
  3194. #endif
  3195. {
  3196. private static readonly pb::MessageParser<LoadBalancerStatsResponse> _parser = new pb::MessageParser<LoadBalancerStatsResponse>(() => new LoadBalancerStatsResponse());
  3197. private pb::UnknownFieldSet _unknownFields;
  3198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3199. public static pb::MessageParser<LoadBalancerStatsResponse> Parser { get { return _parser; } }
  3200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3201. public static pbr::MessageDescriptor Descriptor {
  3202. get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[13]; }
  3203. }
  3204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3205. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3206. get { return Descriptor; }
  3207. }
  3208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3209. public LoadBalancerStatsResponse() {
  3210. OnConstruction();
  3211. }
  3212. partial void OnConstruction();
  3213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3214. public LoadBalancerStatsResponse(LoadBalancerStatsResponse other) : this() {
  3215. rpcsByPeer_ = other.rpcsByPeer_.Clone();
  3216. numFailures_ = other.numFailures_;
  3217. rpcsByMethod_ = other.rpcsByMethod_.Clone();
  3218. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  3219. }
  3220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3221. public LoadBalancerStatsResponse Clone() {
  3222. return new LoadBalancerStatsResponse(this);
  3223. }
  3224. /// <summary>Field number for the "rpcs_by_peer" field.</summary>
  3225. public const int RpcsByPeerFieldNumber = 1;
  3226. private static readonly pbc::MapField<string, int>.Codec _map_rpcsByPeer_codec
  3227. = new pbc::MapField<string, int>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt32(16, 0), 10);
  3228. private readonly pbc::MapField<string, int> rpcsByPeer_ = new pbc::MapField<string, int>();
  3229. /// <summary>
  3230. /// The number of completed RPCs for each peer.
  3231. /// </summary>
  3232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3233. public pbc::MapField<string, int> RpcsByPeer {
  3234. get { return rpcsByPeer_; }
  3235. }
  3236. /// <summary>Field number for the "num_failures" field.</summary>
  3237. public const int NumFailuresFieldNumber = 2;
  3238. private int numFailures_;
  3239. /// <summary>
  3240. /// The number of RPCs that failed to record a remote peer.
  3241. /// </summary>
  3242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3243. public int NumFailures {
  3244. get { return numFailures_; }
  3245. set {
  3246. numFailures_ = value;
  3247. }
  3248. }
  3249. /// <summary>Field number for the "rpcs_by_method" field.</summary>
  3250. public const int RpcsByMethodFieldNumber = 3;
  3251. private static readonly pbc::MapField<string, global::Grpc.Testing.LoadBalancerStatsResponse.Types.RpcsByPeer>.Codec _map_rpcsByMethod_codec
  3252. = 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);
  3253. private readonly pbc::MapField<string, global::Grpc.Testing.LoadBalancerStatsResponse.Types.RpcsByPeer> rpcsByMethod_ = new pbc::MapField<string, global::Grpc.Testing.LoadBalancerStatsResponse.Types.RpcsByPeer>();
  3254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3255. public pbc::MapField<string, global::Grpc.Testing.LoadBalancerStatsResponse.Types.RpcsByPeer> RpcsByMethod {
  3256. get { return rpcsByMethod_; }
  3257. }
  3258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3259. public override bool Equals(object other) {
  3260. return Equals(other as LoadBalancerStatsResponse);
  3261. }
  3262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3263. public bool Equals(LoadBalancerStatsResponse other) {
  3264. if (ReferenceEquals(other, null)) {
  3265. return false;
  3266. }
  3267. if (ReferenceEquals(other, this)) {
  3268. return true;
  3269. }
  3270. if (!RpcsByPeer.Equals(other.RpcsByPeer)) return false;
  3271. if (NumFailures != other.NumFailures) return false;
  3272. if (!RpcsByMethod.Equals(other.RpcsByMethod)) return false;
  3273. return Equals(_unknownFields, other._unknownFields);
  3274. }
  3275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3276. public override int GetHashCode() {
  3277. int hash = 1;
  3278. hash ^= RpcsByPeer.GetHashCode();
  3279. if (NumFailures != 0) hash ^= NumFailures.GetHashCode();
  3280. hash ^= RpcsByMethod.GetHashCode();
  3281. if (_unknownFields != null) {
  3282. hash ^= _unknownFields.GetHashCode();
  3283. }
  3284. return hash;
  3285. }
  3286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3287. public override string ToString() {
  3288. return pb::JsonFormatter.ToDiagnosticString(this);
  3289. }
  3290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3291. public void WriteTo(pb::CodedOutputStream output) {
  3292. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3293. output.WriteRawMessage(this);
  3294. #else
  3295. rpcsByPeer_.WriteTo(output, _map_rpcsByPeer_codec);
  3296. if (NumFailures != 0) {
  3297. output.WriteRawTag(16);
  3298. output.WriteInt32(NumFailures);
  3299. }
  3300. rpcsByMethod_.WriteTo(output, _map_rpcsByMethod_codec);
  3301. if (_unknownFields != null) {
  3302. _unknownFields.WriteTo(output);
  3303. }
  3304. #endif
  3305. }
  3306. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3308. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  3309. rpcsByPeer_.WriteTo(ref output, _map_rpcsByPeer_codec);
  3310. if (NumFailures != 0) {
  3311. output.WriteRawTag(16);
  3312. output.WriteInt32(NumFailures);
  3313. }
  3314. rpcsByMethod_.WriteTo(ref output, _map_rpcsByMethod_codec);
  3315. if (_unknownFields != null) {
  3316. _unknownFields.WriteTo(ref output);
  3317. }
  3318. }
  3319. #endif
  3320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3321. public int CalculateSize() {
  3322. int size = 0;
  3323. size += rpcsByPeer_.CalculateSize(_map_rpcsByPeer_codec);
  3324. if (NumFailures != 0) {
  3325. size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumFailures);
  3326. }
  3327. size += rpcsByMethod_.CalculateSize(_map_rpcsByMethod_codec);
  3328. if (_unknownFields != null) {
  3329. size += _unknownFields.CalculateSize();
  3330. }
  3331. return size;
  3332. }
  3333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3334. public void MergeFrom(LoadBalancerStatsResponse other) {
  3335. if (other == null) {
  3336. return;
  3337. }
  3338. rpcsByPeer_.Add(other.rpcsByPeer_);
  3339. if (other.NumFailures != 0) {
  3340. NumFailures = other.NumFailures;
  3341. }
  3342. rpcsByMethod_.Add(other.rpcsByMethod_);
  3343. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  3344. }
  3345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3346. public void MergeFrom(pb::CodedInputStream input) {
  3347. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3348. input.ReadRawMessage(this);
  3349. #else
  3350. uint tag;
  3351. while ((tag = input.ReadTag()) != 0) {
  3352. switch(tag) {
  3353. default:
  3354. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  3355. break;
  3356. case 10: {
  3357. rpcsByPeer_.AddEntriesFrom(input, _map_rpcsByPeer_codec);
  3358. break;
  3359. }
  3360. case 16: {
  3361. NumFailures = input.ReadInt32();
  3362. break;
  3363. }
  3364. case 26: {
  3365. rpcsByMethod_.AddEntriesFrom(input, _map_rpcsByMethod_codec);
  3366. break;
  3367. }
  3368. }
  3369. }
  3370. #endif
  3371. }
  3372. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3374. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  3375. uint tag;
  3376. while ((tag = input.ReadTag()) != 0) {
  3377. switch(tag) {
  3378. default:
  3379. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  3380. break;
  3381. case 10: {
  3382. rpcsByPeer_.AddEntriesFrom(ref input, _map_rpcsByPeer_codec);
  3383. break;
  3384. }
  3385. case 16: {
  3386. NumFailures = input.ReadInt32();
  3387. break;
  3388. }
  3389. case 26: {
  3390. rpcsByMethod_.AddEntriesFrom(ref input, _map_rpcsByMethod_codec);
  3391. break;
  3392. }
  3393. }
  3394. }
  3395. }
  3396. #endif
  3397. #region Nested types
  3398. /// <summary>Container for nested types declared in the LoadBalancerStatsResponse message type.</summary>
  3399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3400. public static partial class Types {
  3401. public sealed partial class RpcsByPeer : pb::IMessage<RpcsByPeer>
  3402. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3403. , pb::IBufferMessage
  3404. #endif
  3405. {
  3406. private static readonly pb::MessageParser<RpcsByPeer> _parser = new pb::MessageParser<RpcsByPeer>(() => new RpcsByPeer());
  3407. private pb::UnknownFieldSet _unknownFields;
  3408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3409. public static pb::MessageParser<RpcsByPeer> Parser { get { return _parser; } }
  3410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3411. public static pbr::MessageDescriptor Descriptor {
  3412. get { return global::Grpc.Testing.LoadBalancerStatsResponse.Descriptor.NestedTypes[0]; }
  3413. }
  3414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3415. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3416. get { return Descriptor; }
  3417. }
  3418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3419. public RpcsByPeer() {
  3420. OnConstruction();
  3421. }
  3422. partial void OnConstruction();
  3423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3424. public RpcsByPeer(RpcsByPeer other) : this() {
  3425. rpcsByPeer_ = other.rpcsByPeer_.Clone();
  3426. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  3427. }
  3428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3429. public RpcsByPeer Clone() {
  3430. return new RpcsByPeer(this);
  3431. }
  3432. /// <summary>Field number for the "rpcs_by_peer" field.</summary>
  3433. public const int RpcsByPeer_FieldNumber = 1;
  3434. private static readonly pbc::MapField<string, int>.Codec _map_rpcsByPeer_codec
  3435. = new pbc::MapField<string, int>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt32(16, 0), 10);
  3436. private readonly pbc::MapField<string, int> rpcsByPeer_ = new pbc::MapField<string, int>();
  3437. /// <summary>
  3438. /// The number of completed RPCs for each peer.
  3439. /// </summary>
  3440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3441. public pbc::MapField<string, int> RpcsByPeer_ {
  3442. get { return rpcsByPeer_; }
  3443. }
  3444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3445. public override bool Equals(object other) {
  3446. return Equals(other as RpcsByPeer);
  3447. }
  3448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3449. public bool Equals(RpcsByPeer other) {
  3450. if (ReferenceEquals(other, null)) {
  3451. return false;
  3452. }
  3453. if (ReferenceEquals(other, this)) {
  3454. return true;
  3455. }
  3456. if (!RpcsByPeer_.Equals(other.RpcsByPeer_)) return false;
  3457. return Equals(_unknownFields, other._unknownFields);
  3458. }
  3459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3460. public override int GetHashCode() {
  3461. int hash = 1;
  3462. hash ^= RpcsByPeer_.GetHashCode();
  3463. if (_unknownFields != null) {
  3464. hash ^= _unknownFields.GetHashCode();
  3465. }
  3466. return hash;
  3467. }
  3468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3469. public override string ToString() {
  3470. return pb::JsonFormatter.ToDiagnosticString(this);
  3471. }
  3472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3473. public void WriteTo(pb::CodedOutputStream output) {
  3474. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3475. output.WriteRawMessage(this);
  3476. #else
  3477. rpcsByPeer_.WriteTo(output, _map_rpcsByPeer_codec);
  3478. if (_unknownFields != null) {
  3479. _unknownFields.WriteTo(output);
  3480. }
  3481. #endif
  3482. }
  3483. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3485. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  3486. rpcsByPeer_.WriteTo(ref output, _map_rpcsByPeer_codec);
  3487. if (_unknownFields != null) {
  3488. _unknownFields.WriteTo(ref output);
  3489. }
  3490. }
  3491. #endif
  3492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3493. public int CalculateSize() {
  3494. int size = 0;
  3495. size += rpcsByPeer_.CalculateSize(_map_rpcsByPeer_codec);
  3496. if (_unknownFields != null) {
  3497. size += _unknownFields.CalculateSize();
  3498. }
  3499. return size;
  3500. }
  3501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3502. public void MergeFrom(RpcsByPeer other) {
  3503. if (other == null) {
  3504. return;
  3505. }
  3506. rpcsByPeer_.Add(other.rpcsByPeer_);
  3507. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  3508. }
  3509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3510. public void MergeFrom(pb::CodedInputStream input) {
  3511. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3512. input.ReadRawMessage(this);
  3513. #else
  3514. uint tag;
  3515. while ((tag = input.ReadTag()) != 0) {
  3516. switch(tag) {
  3517. default:
  3518. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  3519. break;
  3520. case 10: {
  3521. rpcsByPeer_.AddEntriesFrom(input, _map_rpcsByPeer_codec);
  3522. break;
  3523. }
  3524. }
  3525. }
  3526. #endif
  3527. }
  3528. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  3529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  3530. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  3531. uint tag;
  3532. while ((tag = input.ReadTag()) != 0) {
  3533. switch(tag) {
  3534. default:
  3535. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  3536. break;
  3537. case 10: {
  3538. rpcsByPeer_.AddEntriesFrom(ref input, _map_rpcsByPeer_codec);
  3539. break;
  3540. }
  3541. }
  3542. }
  3543. }
  3544. #endif
  3545. }
  3546. }
  3547. #endregion
  3548. }
  3549. #endregion
  3550. }
  3551. #endregion Designer generated code