Messages.cs 80 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335
  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. "ZXNzYWdlGAIgASgJIs4CCg1TaW1wbGVSZXF1ZXN0EjAKDXJlc3BvbnNlX3R5",
  28. "cGUYASABKA4yGS5ncnBjLnRlc3RpbmcuUGF5bG9hZFR5cGUSFQoNcmVzcG9u",
  29. "c2Vfc2l6ZRgCIAEoBRImCgdwYXlsb2FkGAMgASgLMhUuZ3JwYy50ZXN0aW5n",
  30. "LlBheWxvYWQSFQoNZmlsbF91c2VybmFtZRgEIAEoCBIYChBmaWxsX29hdXRo",
  31. "X3Njb3BlGAUgASgIEjQKE3Jlc3BvbnNlX2NvbXByZXNzZWQYBiABKAsyFy5n",
  32. "cnBjLnRlc3RpbmcuQm9vbFZhbHVlEjEKD3Jlc3BvbnNlX3N0YXR1cxgHIAEo",
  33. "CzIYLmdycGMudGVzdGluZy5FY2hvU3RhdHVzEjIKEWV4cGVjdF9jb21wcmVz",
  34. "c2VkGAggASgLMhcuZ3JwYy50ZXN0aW5nLkJvb2xWYWx1ZSJfCg5TaW1wbGVS",
  35. "ZXNwb25zZRImCgdwYXlsb2FkGAEgASgLMhUuZ3JwYy50ZXN0aW5nLlBheWxv",
  36. "YWQSEAoIdXNlcm5hbWUYAiABKAkSEwoLb2F1dGhfc2NvcGUYAyABKAkidwoZ",
  37. "U3RyZWFtaW5nSW5wdXRDYWxsUmVxdWVzdBImCgdwYXlsb2FkGAEgASgLMhUu",
  38. "Z3JwYy50ZXN0aW5nLlBheWxvYWQSMgoRZXhwZWN0X2NvbXByZXNzZWQYAiAB",
  39. "KAsyFy5ncnBjLnRlc3RpbmcuQm9vbFZhbHVlIj0KGlN0cmVhbWluZ0lucHV0",
  40. "Q2FsbFJlc3BvbnNlEh8KF2FnZ3JlZ2F0ZWRfcGF5bG9hZF9zaXplGAEgASgF",
  41. "ImQKElJlc3BvbnNlUGFyYW1ldGVycxIMCgRzaXplGAEgASgFEhMKC2ludGVy",
  42. "dmFsX3VzGAIgASgFEisKCmNvbXByZXNzZWQYAyABKAsyFy5ncnBjLnRlc3Rp",
  43. "bmcuQm9vbFZhbHVlIugBChpTdHJlYW1pbmdPdXRwdXRDYWxsUmVxdWVzdBIw",
  44. "Cg1yZXNwb25zZV90eXBlGAEgASgOMhkuZ3JwYy50ZXN0aW5nLlBheWxvYWRU",
  45. "eXBlEj0KE3Jlc3BvbnNlX3BhcmFtZXRlcnMYAiADKAsyIC5ncnBjLnRlc3Rp",
  46. "bmcuUmVzcG9uc2VQYXJhbWV0ZXJzEiYKB3BheWxvYWQYAyABKAsyFS5ncnBj",
  47. "LnRlc3RpbmcuUGF5bG9hZBIxCg9yZXNwb25zZV9zdGF0dXMYByABKAsyGC5n",
  48. "cnBjLnRlc3RpbmcuRWNob1N0YXR1cyJFChtTdHJlYW1pbmdPdXRwdXRDYWxs",
  49. "UmVzcG9uc2USJgoHcGF5bG9hZBgBIAEoCzIVLmdycGMudGVzdGluZy5QYXls",
  50. "b2FkIjMKD1JlY29ubmVjdFBhcmFtcxIgChhtYXhfcmVjb25uZWN0X2JhY2tv",
  51. "ZmZfbXMYASABKAUiMwoNUmVjb25uZWN0SW5mbxIOCgZwYXNzZWQYASABKAgS",
  52. "EgoKYmFja29mZl9tcxgCIAMoBSofCgtQYXlsb2FkVHlwZRIQCgxDT01QUkVT",
  53. "U0FCTEUQAGIGcHJvdG8z"));
  54. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  55. new pbr::FileDescriptor[] { },
  56. new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Grpc.Testing.PayloadType), }, new pbr::GeneratedClrTypeInfo[] {
  57. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.BoolValue), global::Grpc.Testing.BoolValue.Parser, new[]{ "Value" }, null, null, null),
  58. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.Payload), global::Grpc.Testing.Payload.Parser, new[]{ "Type", "Body" }, null, null, null),
  59. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.EchoStatus), global::Grpc.Testing.EchoStatus.Parser, new[]{ "Code", "Message" }, null, null, null),
  60. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.SimpleRequest), global::Grpc.Testing.SimpleRequest.Parser, new[]{ "ResponseType", "ResponseSize", "Payload", "FillUsername", "FillOauthScope", "ResponseCompressed", "ResponseStatus", "ExpectCompressed" }, null, null, null),
  61. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.SimpleResponse), global::Grpc.Testing.SimpleResponse.Parser, new[]{ "Payload", "Username", "OauthScope" }, null, null, null),
  62. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.StreamingInputCallRequest), global::Grpc.Testing.StreamingInputCallRequest.Parser, new[]{ "Payload", "ExpectCompressed" }, null, null, null),
  63. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.StreamingInputCallResponse), global::Grpc.Testing.StreamingInputCallResponse.Parser, new[]{ "AggregatedPayloadSize" }, null, null, null),
  64. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ResponseParameters), global::Grpc.Testing.ResponseParameters.Parser, new[]{ "Size", "IntervalUs", "Compressed" }, null, null, null),
  65. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.StreamingOutputCallRequest), global::Grpc.Testing.StreamingOutputCallRequest.Parser, new[]{ "ResponseType", "ResponseParameters", "Payload", "ResponseStatus" }, null, null, null),
  66. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.StreamingOutputCallResponse), global::Grpc.Testing.StreamingOutputCallResponse.Parser, new[]{ "Payload" }, null, null, null),
  67. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ReconnectParams), global::Grpc.Testing.ReconnectParams.Parser, new[]{ "MaxReconnectBackoffMs" }, null, null, null),
  68. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ReconnectInfo), global::Grpc.Testing.ReconnectInfo.Parser, new[]{ "Passed", "BackoffMs" }, null, null, null)
  69. }));
  70. }
  71. #endregion
  72. }
  73. #region Enums
  74. /// <summary>
  75. /// DEPRECATED, don't use. To be removed shortly.
  76. /// The type of payload that should be returned.
  77. /// </summary>
  78. public enum PayloadType {
  79. /// <summary>
  80. /// Compressable text format.
  81. /// </summary>
  82. [pbr::OriginalName("COMPRESSABLE")] Compressable = 0,
  83. }
  84. #endregion
  85. #region Messages
  86. /// <summary>
  87. /// TODO(dgq): Go back to using well-known types once
  88. /// https://github.com/grpc/grpc/issues/6980 has been fixed.
  89. /// import "google/protobuf/wrappers.proto";
  90. /// </summary>
  91. public sealed partial class BoolValue : pb::IMessage<BoolValue> {
  92. private static readonly pb::MessageParser<BoolValue> _parser = new pb::MessageParser<BoolValue>(() => new BoolValue());
  93. private pb::UnknownFieldSet _unknownFields;
  94. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  95. public static pb::MessageParser<BoolValue> Parser { get { return _parser; } }
  96. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  97. public static pbr::MessageDescriptor Descriptor {
  98. get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[0]; }
  99. }
  100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  101. pbr::MessageDescriptor pb::IMessage.Descriptor {
  102. get { return Descriptor; }
  103. }
  104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  105. public BoolValue() {
  106. OnConstruction();
  107. }
  108. partial void OnConstruction();
  109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  110. public BoolValue(BoolValue other) : this() {
  111. value_ = other.value_;
  112. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  113. }
  114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  115. public BoolValue Clone() {
  116. return new BoolValue(this);
  117. }
  118. /// <summary>Field number for the "value" field.</summary>
  119. public const int ValueFieldNumber = 1;
  120. private bool value_;
  121. /// <summary>
  122. /// The bool value.
  123. /// </summary>
  124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  125. public bool Value {
  126. get { return value_; }
  127. set {
  128. value_ = value;
  129. }
  130. }
  131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  132. public override bool Equals(object other) {
  133. return Equals(other as BoolValue);
  134. }
  135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  136. public bool Equals(BoolValue other) {
  137. if (ReferenceEquals(other, null)) {
  138. return false;
  139. }
  140. if (ReferenceEquals(other, this)) {
  141. return true;
  142. }
  143. if (Value != other.Value) return false;
  144. return Equals(_unknownFields, other._unknownFields);
  145. }
  146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  147. public override int GetHashCode() {
  148. int hash = 1;
  149. if (Value != false) hash ^= Value.GetHashCode();
  150. if (_unknownFields != null) {
  151. hash ^= _unknownFields.GetHashCode();
  152. }
  153. return hash;
  154. }
  155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  156. public override string ToString() {
  157. return pb::JsonFormatter.ToDiagnosticString(this);
  158. }
  159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  160. public void WriteTo(pb::CodedOutputStream output) {
  161. if (Value != false) {
  162. output.WriteRawTag(8);
  163. output.WriteBool(Value);
  164. }
  165. if (_unknownFields != null) {
  166. _unknownFields.WriteTo(output);
  167. }
  168. }
  169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  170. public int CalculateSize() {
  171. int size = 0;
  172. if (Value != false) {
  173. size += 1 + 1;
  174. }
  175. if (_unknownFields != null) {
  176. size += _unknownFields.CalculateSize();
  177. }
  178. return size;
  179. }
  180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  181. public void MergeFrom(BoolValue other) {
  182. if (other == null) {
  183. return;
  184. }
  185. if (other.Value != false) {
  186. Value = other.Value;
  187. }
  188. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  189. }
  190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  191. public void MergeFrom(pb::CodedInputStream input) {
  192. uint tag;
  193. while ((tag = input.ReadTag()) != 0) {
  194. switch(tag) {
  195. default:
  196. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  197. break;
  198. case 8: {
  199. Value = input.ReadBool();
  200. break;
  201. }
  202. }
  203. }
  204. }
  205. }
  206. /// <summary>
  207. /// A block of data, to simply increase gRPC message size.
  208. /// </summary>
  209. public sealed partial class Payload : pb::IMessage<Payload> {
  210. private static readonly pb::MessageParser<Payload> _parser = new pb::MessageParser<Payload>(() => new Payload());
  211. private pb::UnknownFieldSet _unknownFields;
  212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  213. public static pb::MessageParser<Payload> Parser { get { return _parser; } }
  214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  215. public static pbr::MessageDescriptor Descriptor {
  216. get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[1]; }
  217. }
  218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  219. pbr::MessageDescriptor pb::IMessage.Descriptor {
  220. get { return Descriptor; }
  221. }
  222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  223. public Payload() {
  224. OnConstruction();
  225. }
  226. partial void OnConstruction();
  227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  228. public Payload(Payload other) : this() {
  229. type_ = other.type_;
  230. body_ = other.body_;
  231. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  232. }
  233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  234. public Payload Clone() {
  235. return new Payload(this);
  236. }
  237. /// <summary>Field number for the "type" field.</summary>
  238. public const int TypeFieldNumber = 1;
  239. private global::Grpc.Testing.PayloadType type_ = 0;
  240. /// <summary>
  241. /// DEPRECATED, don't use. To be removed shortly.
  242. /// The type of data in body.
  243. /// </summary>
  244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  245. public global::Grpc.Testing.PayloadType Type {
  246. get { return type_; }
  247. set {
  248. type_ = value;
  249. }
  250. }
  251. /// <summary>Field number for the "body" field.</summary>
  252. public const int BodyFieldNumber = 2;
  253. private pb::ByteString body_ = pb::ByteString.Empty;
  254. /// <summary>
  255. /// Primary contents of payload.
  256. /// </summary>
  257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  258. public pb::ByteString Body {
  259. get { return body_; }
  260. set {
  261. body_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  262. }
  263. }
  264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  265. public override bool Equals(object other) {
  266. return Equals(other as Payload);
  267. }
  268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  269. public bool Equals(Payload other) {
  270. if (ReferenceEquals(other, null)) {
  271. return false;
  272. }
  273. if (ReferenceEquals(other, this)) {
  274. return true;
  275. }
  276. if (Type != other.Type) return false;
  277. if (Body != other.Body) return false;
  278. return Equals(_unknownFields, other._unknownFields);
  279. }
  280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  281. public override int GetHashCode() {
  282. int hash = 1;
  283. if (Type != 0) hash ^= Type.GetHashCode();
  284. if (Body.Length != 0) hash ^= Body.GetHashCode();
  285. if (_unknownFields != null) {
  286. hash ^= _unknownFields.GetHashCode();
  287. }
  288. return hash;
  289. }
  290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  291. public override string ToString() {
  292. return pb::JsonFormatter.ToDiagnosticString(this);
  293. }
  294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  295. public void WriteTo(pb::CodedOutputStream output) {
  296. if (Type != 0) {
  297. output.WriteRawTag(8);
  298. output.WriteEnum((int) Type);
  299. }
  300. if (Body.Length != 0) {
  301. output.WriteRawTag(18);
  302. output.WriteBytes(Body);
  303. }
  304. if (_unknownFields != null) {
  305. _unknownFields.WriteTo(output);
  306. }
  307. }
  308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  309. public int CalculateSize() {
  310. int size = 0;
  311. if (Type != 0) {
  312. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
  313. }
  314. if (Body.Length != 0) {
  315. size += 1 + pb::CodedOutputStream.ComputeBytesSize(Body);
  316. }
  317. if (_unknownFields != null) {
  318. size += _unknownFields.CalculateSize();
  319. }
  320. return size;
  321. }
  322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  323. public void MergeFrom(Payload other) {
  324. if (other == null) {
  325. return;
  326. }
  327. if (other.Type != 0) {
  328. Type = other.Type;
  329. }
  330. if (other.Body.Length != 0) {
  331. Body = other.Body;
  332. }
  333. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  334. }
  335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  336. public void MergeFrom(pb::CodedInputStream input) {
  337. uint tag;
  338. while ((tag = input.ReadTag()) != 0) {
  339. switch(tag) {
  340. default:
  341. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  342. break;
  343. case 8: {
  344. type_ = (global::Grpc.Testing.PayloadType) input.ReadEnum();
  345. break;
  346. }
  347. case 18: {
  348. Body = input.ReadBytes();
  349. break;
  350. }
  351. }
  352. }
  353. }
  354. }
  355. /// <summary>
  356. /// A protobuf representation for grpc status. This is used by test
  357. /// clients to specify a status that the server should attempt to return.
  358. /// </summary>
  359. public sealed partial class EchoStatus : pb::IMessage<EchoStatus> {
  360. private static readonly pb::MessageParser<EchoStatus> _parser = new pb::MessageParser<EchoStatus>(() => new EchoStatus());
  361. private pb::UnknownFieldSet _unknownFields;
  362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  363. public static pb::MessageParser<EchoStatus> Parser { get { return _parser; } }
  364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  365. public static pbr::MessageDescriptor Descriptor {
  366. get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[2]; }
  367. }
  368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  369. pbr::MessageDescriptor pb::IMessage.Descriptor {
  370. get { return Descriptor; }
  371. }
  372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  373. public EchoStatus() {
  374. OnConstruction();
  375. }
  376. partial void OnConstruction();
  377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  378. public EchoStatus(EchoStatus other) : this() {
  379. code_ = other.code_;
  380. message_ = other.message_;
  381. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  382. }
  383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  384. public EchoStatus Clone() {
  385. return new EchoStatus(this);
  386. }
  387. /// <summary>Field number for the "code" field.</summary>
  388. public const int CodeFieldNumber = 1;
  389. private int code_;
  390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  391. public int Code {
  392. get { return code_; }
  393. set {
  394. code_ = value;
  395. }
  396. }
  397. /// <summary>Field number for the "message" field.</summary>
  398. public const int MessageFieldNumber = 2;
  399. private string message_ = "";
  400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  401. public string Message {
  402. get { return message_; }
  403. set {
  404. message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  405. }
  406. }
  407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  408. public override bool Equals(object other) {
  409. return Equals(other as EchoStatus);
  410. }
  411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  412. public bool Equals(EchoStatus other) {
  413. if (ReferenceEquals(other, null)) {
  414. return false;
  415. }
  416. if (ReferenceEquals(other, this)) {
  417. return true;
  418. }
  419. if (Code != other.Code) return false;
  420. if (Message != other.Message) return false;
  421. return Equals(_unknownFields, other._unknownFields);
  422. }
  423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  424. public override int GetHashCode() {
  425. int hash = 1;
  426. if (Code != 0) hash ^= Code.GetHashCode();
  427. if (Message.Length != 0) hash ^= Message.GetHashCode();
  428. if (_unknownFields != null) {
  429. hash ^= _unknownFields.GetHashCode();
  430. }
  431. return hash;
  432. }
  433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  434. public override string ToString() {
  435. return pb::JsonFormatter.ToDiagnosticString(this);
  436. }
  437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  438. public void WriteTo(pb::CodedOutputStream output) {
  439. if (Code != 0) {
  440. output.WriteRawTag(8);
  441. output.WriteInt32(Code);
  442. }
  443. if (Message.Length != 0) {
  444. output.WriteRawTag(18);
  445. output.WriteString(Message);
  446. }
  447. if (_unknownFields != null) {
  448. _unknownFields.WriteTo(output);
  449. }
  450. }
  451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  452. public int CalculateSize() {
  453. int size = 0;
  454. if (Code != 0) {
  455. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Code);
  456. }
  457. if (Message.Length != 0) {
  458. size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
  459. }
  460. if (_unknownFields != null) {
  461. size += _unknownFields.CalculateSize();
  462. }
  463. return size;
  464. }
  465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  466. public void MergeFrom(EchoStatus other) {
  467. if (other == null) {
  468. return;
  469. }
  470. if (other.Code != 0) {
  471. Code = other.Code;
  472. }
  473. if (other.Message.Length != 0) {
  474. Message = other.Message;
  475. }
  476. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  477. }
  478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  479. public void MergeFrom(pb::CodedInputStream input) {
  480. uint tag;
  481. while ((tag = input.ReadTag()) != 0) {
  482. switch(tag) {
  483. default:
  484. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  485. break;
  486. case 8: {
  487. Code = input.ReadInt32();
  488. break;
  489. }
  490. case 18: {
  491. Message = input.ReadString();
  492. break;
  493. }
  494. }
  495. }
  496. }
  497. }
  498. /// <summary>
  499. /// Unary request.
  500. /// </summary>
  501. public sealed partial class SimpleRequest : pb::IMessage<SimpleRequest> {
  502. private static readonly pb::MessageParser<SimpleRequest> _parser = new pb::MessageParser<SimpleRequest>(() => new SimpleRequest());
  503. private pb::UnknownFieldSet _unknownFields;
  504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  505. public static pb::MessageParser<SimpleRequest> Parser { get { return _parser; } }
  506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  507. public static pbr::MessageDescriptor Descriptor {
  508. get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[3]; }
  509. }
  510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  511. pbr::MessageDescriptor pb::IMessage.Descriptor {
  512. get { return Descriptor; }
  513. }
  514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  515. public SimpleRequest() {
  516. OnConstruction();
  517. }
  518. partial void OnConstruction();
  519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  520. public SimpleRequest(SimpleRequest other) : this() {
  521. responseType_ = other.responseType_;
  522. responseSize_ = other.responseSize_;
  523. Payload = other.payload_ != null ? other.Payload.Clone() : null;
  524. fillUsername_ = other.fillUsername_;
  525. fillOauthScope_ = other.fillOauthScope_;
  526. ResponseCompressed = other.responseCompressed_ != null ? other.ResponseCompressed.Clone() : null;
  527. ResponseStatus = other.responseStatus_ != null ? other.ResponseStatus.Clone() : null;
  528. ExpectCompressed = other.expectCompressed_ != null ? other.ExpectCompressed.Clone() : null;
  529. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  530. }
  531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  532. public SimpleRequest Clone() {
  533. return new SimpleRequest(this);
  534. }
  535. /// <summary>Field number for the "response_type" field.</summary>
  536. public const int ResponseTypeFieldNumber = 1;
  537. private global::Grpc.Testing.PayloadType responseType_ = 0;
  538. /// <summary>
  539. /// DEPRECATED, don't use. To be removed shortly.
  540. /// Desired payload type in the response from the server.
  541. /// If response_type is RANDOM, server randomly chooses one from other formats.
  542. /// </summary>
  543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  544. public global::Grpc.Testing.PayloadType ResponseType {
  545. get { return responseType_; }
  546. set {
  547. responseType_ = value;
  548. }
  549. }
  550. /// <summary>Field number for the "response_size" field.</summary>
  551. public const int ResponseSizeFieldNumber = 2;
  552. private int responseSize_;
  553. /// <summary>
  554. /// Desired payload size in the response from the server.
  555. /// </summary>
  556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  557. public int ResponseSize {
  558. get { return responseSize_; }
  559. set {
  560. responseSize_ = value;
  561. }
  562. }
  563. /// <summary>Field number for the "payload" field.</summary>
  564. public const int PayloadFieldNumber = 3;
  565. private global::Grpc.Testing.Payload payload_;
  566. /// <summary>
  567. /// Optional input payload sent along with the request.
  568. /// </summary>
  569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  570. public global::Grpc.Testing.Payload Payload {
  571. get { return payload_; }
  572. set {
  573. payload_ = value;
  574. }
  575. }
  576. /// <summary>Field number for the "fill_username" field.</summary>
  577. public const int FillUsernameFieldNumber = 4;
  578. private bool fillUsername_;
  579. /// <summary>
  580. /// Whether SimpleResponse should include username.
  581. /// </summary>
  582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  583. public bool FillUsername {
  584. get { return fillUsername_; }
  585. set {
  586. fillUsername_ = value;
  587. }
  588. }
  589. /// <summary>Field number for the "fill_oauth_scope" field.</summary>
  590. public const int FillOauthScopeFieldNumber = 5;
  591. private bool fillOauthScope_;
  592. /// <summary>
  593. /// Whether SimpleResponse should include OAuth scope.
  594. /// </summary>
  595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  596. public bool FillOauthScope {
  597. get { return fillOauthScope_; }
  598. set {
  599. fillOauthScope_ = value;
  600. }
  601. }
  602. /// <summary>Field number for the "response_compressed" field.</summary>
  603. public const int ResponseCompressedFieldNumber = 6;
  604. private global::Grpc.Testing.BoolValue responseCompressed_;
  605. /// <summary>
  606. /// Whether to request the server to compress the response. This field is
  607. /// "nullable" in order to interoperate seamlessly with clients not able to
  608. /// implement the full compression tests by introspecting the call to verify
  609. /// the response's compression status.
  610. /// </summary>
  611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  612. public global::Grpc.Testing.BoolValue ResponseCompressed {
  613. get { return responseCompressed_; }
  614. set {
  615. responseCompressed_ = value;
  616. }
  617. }
  618. /// <summary>Field number for the "response_status" field.</summary>
  619. public const int ResponseStatusFieldNumber = 7;
  620. private global::Grpc.Testing.EchoStatus responseStatus_;
  621. /// <summary>
  622. /// Whether server should return a given status
  623. /// </summary>
  624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  625. public global::Grpc.Testing.EchoStatus ResponseStatus {
  626. get { return responseStatus_; }
  627. set {
  628. responseStatus_ = value;
  629. }
  630. }
  631. /// <summary>Field number for the "expect_compressed" field.</summary>
  632. public const int ExpectCompressedFieldNumber = 8;
  633. private global::Grpc.Testing.BoolValue expectCompressed_;
  634. /// <summary>
  635. /// Whether the server should expect this request to be compressed.
  636. /// </summary>
  637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  638. public global::Grpc.Testing.BoolValue ExpectCompressed {
  639. get { return expectCompressed_; }
  640. set {
  641. expectCompressed_ = value;
  642. }
  643. }
  644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  645. public override bool Equals(object other) {
  646. return Equals(other as SimpleRequest);
  647. }
  648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  649. public bool Equals(SimpleRequest other) {
  650. if (ReferenceEquals(other, null)) {
  651. return false;
  652. }
  653. if (ReferenceEquals(other, this)) {
  654. return true;
  655. }
  656. if (ResponseType != other.ResponseType) return false;
  657. if (ResponseSize != other.ResponseSize) return false;
  658. if (!object.Equals(Payload, other.Payload)) return false;
  659. if (FillUsername != other.FillUsername) return false;
  660. if (FillOauthScope != other.FillOauthScope) return false;
  661. if (!object.Equals(ResponseCompressed, other.ResponseCompressed)) return false;
  662. if (!object.Equals(ResponseStatus, other.ResponseStatus)) return false;
  663. if (!object.Equals(ExpectCompressed, other.ExpectCompressed)) return false;
  664. return Equals(_unknownFields, other._unknownFields);
  665. }
  666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  667. public override int GetHashCode() {
  668. int hash = 1;
  669. if (ResponseType != 0) hash ^= ResponseType.GetHashCode();
  670. if (ResponseSize != 0) hash ^= ResponseSize.GetHashCode();
  671. if (payload_ != null) hash ^= Payload.GetHashCode();
  672. if (FillUsername != false) hash ^= FillUsername.GetHashCode();
  673. if (FillOauthScope != false) hash ^= FillOauthScope.GetHashCode();
  674. if (responseCompressed_ != null) hash ^= ResponseCompressed.GetHashCode();
  675. if (responseStatus_ != null) hash ^= ResponseStatus.GetHashCode();
  676. if (expectCompressed_ != null) hash ^= ExpectCompressed.GetHashCode();
  677. if (_unknownFields != null) {
  678. hash ^= _unknownFields.GetHashCode();
  679. }
  680. return hash;
  681. }
  682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  683. public override string ToString() {
  684. return pb::JsonFormatter.ToDiagnosticString(this);
  685. }
  686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  687. public void WriteTo(pb::CodedOutputStream output) {
  688. if (ResponseType != 0) {
  689. output.WriteRawTag(8);
  690. output.WriteEnum((int) ResponseType);
  691. }
  692. if (ResponseSize != 0) {
  693. output.WriteRawTag(16);
  694. output.WriteInt32(ResponseSize);
  695. }
  696. if (payload_ != null) {
  697. output.WriteRawTag(26);
  698. output.WriteMessage(Payload);
  699. }
  700. if (FillUsername != false) {
  701. output.WriteRawTag(32);
  702. output.WriteBool(FillUsername);
  703. }
  704. if (FillOauthScope != false) {
  705. output.WriteRawTag(40);
  706. output.WriteBool(FillOauthScope);
  707. }
  708. if (responseCompressed_ != null) {
  709. output.WriteRawTag(50);
  710. output.WriteMessage(ResponseCompressed);
  711. }
  712. if (responseStatus_ != null) {
  713. output.WriteRawTag(58);
  714. output.WriteMessage(ResponseStatus);
  715. }
  716. if (expectCompressed_ != null) {
  717. output.WriteRawTag(66);
  718. output.WriteMessage(ExpectCompressed);
  719. }
  720. if (_unknownFields != null) {
  721. _unknownFields.WriteTo(output);
  722. }
  723. }
  724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  725. public int CalculateSize() {
  726. int size = 0;
  727. if (ResponseType != 0) {
  728. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseType);
  729. }
  730. if (ResponseSize != 0) {
  731. size += 1 + pb::CodedOutputStream.ComputeInt32Size(ResponseSize);
  732. }
  733. if (payload_ != null) {
  734. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload);
  735. }
  736. if (FillUsername != false) {
  737. size += 1 + 1;
  738. }
  739. if (FillOauthScope != false) {
  740. size += 1 + 1;
  741. }
  742. if (responseCompressed_ != null) {
  743. size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResponseCompressed);
  744. }
  745. if (responseStatus_ != null) {
  746. size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResponseStatus);
  747. }
  748. if (expectCompressed_ != null) {
  749. size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpectCompressed);
  750. }
  751. if (_unknownFields != null) {
  752. size += _unknownFields.CalculateSize();
  753. }
  754. return size;
  755. }
  756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  757. public void MergeFrom(SimpleRequest other) {
  758. if (other == null) {
  759. return;
  760. }
  761. if (other.ResponseType != 0) {
  762. ResponseType = other.ResponseType;
  763. }
  764. if (other.ResponseSize != 0) {
  765. ResponseSize = other.ResponseSize;
  766. }
  767. if (other.payload_ != null) {
  768. if (payload_ == null) {
  769. payload_ = new global::Grpc.Testing.Payload();
  770. }
  771. Payload.MergeFrom(other.Payload);
  772. }
  773. if (other.FillUsername != false) {
  774. FillUsername = other.FillUsername;
  775. }
  776. if (other.FillOauthScope != false) {
  777. FillOauthScope = other.FillOauthScope;
  778. }
  779. if (other.responseCompressed_ != null) {
  780. if (responseCompressed_ == null) {
  781. responseCompressed_ = new global::Grpc.Testing.BoolValue();
  782. }
  783. ResponseCompressed.MergeFrom(other.ResponseCompressed);
  784. }
  785. if (other.responseStatus_ != null) {
  786. if (responseStatus_ == null) {
  787. responseStatus_ = new global::Grpc.Testing.EchoStatus();
  788. }
  789. ResponseStatus.MergeFrom(other.ResponseStatus);
  790. }
  791. if (other.expectCompressed_ != null) {
  792. if (expectCompressed_ == null) {
  793. expectCompressed_ = new global::Grpc.Testing.BoolValue();
  794. }
  795. ExpectCompressed.MergeFrom(other.ExpectCompressed);
  796. }
  797. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  798. }
  799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  800. public void MergeFrom(pb::CodedInputStream input) {
  801. uint tag;
  802. while ((tag = input.ReadTag()) != 0) {
  803. switch(tag) {
  804. default:
  805. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  806. break;
  807. case 8: {
  808. responseType_ = (global::Grpc.Testing.PayloadType) input.ReadEnum();
  809. break;
  810. }
  811. case 16: {
  812. ResponseSize = input.ReadInt32();
  813. break;
  814. }
  815. case 26: {
  816. if (payload_ == null) {
  817. payload_ = new global::Grpc.Testing.Payload();
  818. }
  819. input.ReadMessage(payload_);
  820. break;
  821. }
  822. case 32: {
  823. FillUsername = input.ReadBool();
  824. break;
  825. }
  826. case 40: {
  827. FillOauthScope = input.ReadBool();
  828. break;
  829. }
  830. case 50: {
  831. if (responseCompressed_ == null) {
  832. responseCompressed_ = new global::Grpc.Testing.BoolValue();
  833. }
  834. input.ReadMessage(responseCompressed_);
  835. break;
  836. }
  837. case 58: {
  838. if (responseStatus_ == null) {
  839. responseStatus_ = new global::Grpc.Testing.EchoStatus();
  840. }
  841. input.ReadMessage(responseStatus_);
  842. break;
  843. }
  844. case 66: {
  845. if (expectCompressed_ == null) {
  846. expectCompressed_ = new global::Grpc.Testing.BoolValue();
  847. }
  848. input.ReadMessage(expectCompressed_);
  849. break;
  850. }
  851. }
  852. }
  853. }
  854. }
  855. /// <summary>
  856. /// Unary response, as configured by the request.
  857. /// </summary>
  858. public sealed partial class SimpleResponse : pb::IMessage<SimpleResponse> {
  859. private static readonly pb::MessageParser<SimpleResponse> _parser = new pb::MessageParser<SimpleResponse>(() => new SimpleResponse());
  860. private pb::UnknownFieldSet _unknownFields;
  861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  862. public static pb::MessageParser<SimpleResponse> Parser { get { return _parser; } }
  863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  864. public static pbr::MessageDescriptor Descriptor {
  865. get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[4]; }
  866. }
  867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  868. pbr::MessageDescriptor pb::IMessage.Descriptor {
  869. get { return Descriptor; }
  870. }
  871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  872. public SimpleResponse() {
  873. OnConstruction();
  874. }
  875. partial void OnConstruction();
  876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  877. public SimpleResponse(SimpleResponse other) : this() {
  878. Payload = other.payload_ != null ? other.Payload.Clone() : null;
  879. username_ = other.username_;
  880. oauthScope_ = other.oauthScope_;
  881. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  882. }
  883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  884. public SimpleResponse Clone() {
  885. return new SimpleResponse(this);
  886. }
  887. /// <summary>Field number for the "payload" field.</summary>
  888. public const int PayloadFieldNumber = 1;
  889. private global::Grpc.Testing.Payload payload_;
  890. /// <summary>
  891. /// Payload to increase message size.
  892. /// </summary>
  893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  894. public global::Grpc.Testing.Payload Payload {
  895. get { return payload_; }
  896. set {
  897. payload_ = value;
  898. }
  899. }
  900. /// <summary>Field number for the "username" field.</summary>
  901. public const int UsernameFieldNumber = 2;
  902. private string username_ = "";
  903. /// <summary>
  904. /// The user the request came from, for verifying authentication was
  905. /// successful when the client expected it.
  906. /// </summary>
  907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  908. public string Username {
  909. get { return username_; }
  910. set {
  911. username_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  912. }
  913. }
  914. /// <summary>Field number for the "oauth_scope" field.</summary>
  915. public const int OauthScopeFieldNumber = 3;
  916. private string oauthScope_ = "";
  917. /// <summary>
  918. /// OAuth scope.
  919. /// </summary>
  920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  921. public string OauthScope {
  922. get { return oauthScope_; }
  923. set {
  924. oauthScope_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  925. }
  926. }
  927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  928. public override bool Equals(object other) {
  929. return Equals(other as SimpleResponse);
  930. }
  931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  932. public bool Equals(SimpleResponse other) {
  933. if (ReferenceEquals(other, null)) {
  934. return false;
  935. }
  936. if (ReferenceEquals(other, this)) {
  937. return true;
  938. }
  939. if (!object.Equals(Payload, other.Payload)) return false;
  940. if (Username != other.Username) return false;
  941. if (OauthScope != other.OauthScope) return false;
  942. return Equals(_unknownFields, other._unknownFields);
  943. }
  944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  945. public override int GetHashCode() {
  946. int hash = 1;
  947. if (payload_ != null) hash ^= Payload.GetHashCode();
  948. if (Username.Length != 0) hash ^= Username.GetHashCode();
  949. if (OauthScope.Length != 0) hash ^= OauthScope.GetHashCode();
  950. if (_unknownFields != null) {
  951. hash ^= _unknownFields.GetHashCode();
  952. }
  953. return hash;
  954. }
  955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  956. public override string ToString() {
  957. return pb::JsonFormatter.ToDiagnosticString(this);
  958. }
  959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  960. public void WriteTo(pb::CodedOutputStream output) {
  961. if (payload_ != null) {
  962. output.WriteRawTag(10);
  963. output.WriteMessage(Payload);
  964. }
  965. if (Username.Length != 0) {
  966. output.WriteRawTag(18);
  967. output.WriteString(Username);
  968. }
  969. if (OauthScope.Length != 0) {
  970. output.WriteRawTag(26);
  971. output.WriteString(OauthScope);
  972. }
  973. if (_unknownFields != null) {
  974. _unknownFields.WriteTo(output);
  975. }
  976. }
  977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  978. public int CalculateSize() {
  979. int size = 0;
  980. if (payload_ != null) {
  981. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload);
  982. }
  983. if (Username.Length != 0) {
  984. size += 1 + pb::CodedOutputStream.ComputeStringSize(Username);
  985. }
  986. if (OauthScope.Length != 0) {
  987. size += 1 + pb::CodedOutputStream.ComputeStringSize(OauthScope);
  988. }
  989. if (_unknownFields != null) {
  990. size += _unknownFields.CalculateSize();
  991. }
  992. return size;
  993. }
  994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  995. public void MergeFrom(SimpleResponse other) {
  996. if (other == null) {
  997. return;
  998. }
  999. if (other.payload_ != null) {
  1000. if (payload_ == null) {
  1001. payload_ = new global::Grpc.Testing.Payload();
  1002. }
  1003. Payload.MergeFrom(other.Payload);
  1004. }
  1005. if (other.Username.Length != 0) {
  1006. Username = other.Username;
  1007. }
  1008. if (other.OauthScope.Length != 0) {
  1009. OauthScope = other.OauthScope;
  1010. }
  1011. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1012. }
  1013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1014. public void MergeFrom(pb::CodedInputStream input) {
  1015. uint tag;
  1016. while ((tag = input.ReadTag()) != 0) {
  1017. switch(tag) {
  1018. default:
  1019. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1020. break;
  1021. case 10: {
  1022. if (payload_ == null) {
  1023. payload_ = new global::Grpc.Testing.Payload();
  1024. }
  1025. input.ReadMessage(payload_);
  1026. break;
  1027. }
  1028. case 18: {
  1029. Username = input.ReadString();
  1030. break;
  1031. }
  1032. case 26: {
  1033. OauthScope = input.ReadString();
  1034. break;
  1035. }
  1036. }
  1037. }
  1038. }
  1039. }
  1040. /// <summary>
  1041. /// Client-streaming request.
  1042. /// </summary>
  1043. public sealed partial class StreamingInputCallRequest : pb::IMessage<StreamingInputCallRequest> {
  1044. private static readonly pb::MessageParser<StreamingInputCallRequest> _parser = new pb::MessageParser<StreamingInputCallRequest>(() => new StreamingInputCallRequest());
  1045. private pb::UnknownFieldSet _unknownFields;
  1046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1047. public static pb::MessageParser<StreamingInputCallRequest> Parser { get { return _parser; } }
  1048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1049. public static pbr::MessageDescriptor Descriptor {
  1050. get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[5]; }
  1051. }
  1052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1053. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1054. get { return Descriptor; }
  1055. }
  1056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1057. public StreamingInputCallRequest() {
  1058. OnConstruction();
  1059. }
  1060. partial void OnConstruction();
  1061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1062. public StreamingInputCallRequest(StreamingInputCallRequest other) : this() {
  1063. Payload = other.payload_ != null ? other.Payload.Clone() : null;
  1064. ExpectCompressed = other.expectCompressed_ != null ? other.ExpectCompressed.Clone() : null;
  1065. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1066. }
  1067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1068. public StreamingInputCallRequest Clone() {
  1069. return new StreamingInputCallRequest(this);
  1070. }
  1071. /// <summary>Field number for the "payload" field.</summary>
  1072. public const int PayloadFieldNumber = 1;
  1073. private global::Grpc.Testing.Payload payload_;
  1074. /// <summary>
  1075. /// Optional input payload sent along with the request.
  1076. /// </summary>
  1077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1078. public global::Grpc.Testing.Payload Payload {
  1079. get { return payload_; }
  1080. set {
  1081. payload_ = value;
  1082. }
  1083. }
  1084. /// <summary>Field number for the "expect_compressed" field.</summary>
  1085. public const int ExpectCompressedFieldNumber = 2;
  1086. private global::Grpc.Testing.BoolValue expectCompressed_;
  1087. /// <summary>
  1088. /// Whether the server should expect this request to be compressed. This field
  1089. /// is "nullable" in order to interoperate seamlessly with servers not able to
  1090. /// implement the full compression tests by introspecting the call to verify
  1091. /// the request's compression status.
  1092. /// </summary>
  1093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1094. public global::Grpc.Testing.BoolValue ExpectCompressed {
  1095. get { return expectCompressed_; }
  1096. set {
  1097. expectCompressed_ = value;
  1098. }
  1099. }
  1100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1101. public override bool Equals(object other) {
  1102. return Equals(other as StreamingInputCallRequest);
  1103. }
  1104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1105. public bool Equals(StreamingInputCallRequest other) {
  1106. if (ReferenceEquals(other, null)) {
  1107. return false;
  1108. }
  1109. if (ReferenceEquals(other, this)) {
  1110. return true;
  1111. }
  1112. if (!object.Equals(Payload, other.Payload)) return false;
  1113. if (!object.Equals(ExpectCompressed, other.ExpectCompressed)) return false;
  1114. return Equals(_unknownFields, other._unknownFields);
  1115. }
  1116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1117. public override int GetHashCode() {
  1118. int hash = 1;
  1119. if (payload_ != null) hash ^= Payload.GetHashCode();
  1120. if (expectCompressed_ != null) hash ^= ExpectCompressed.GetHashCode();
  1121. if (_unknownFields != null) {
  1122. hash ^= _unknownFields.GetHashCode();
  1123. }
  1124. return hash;
  1125. }
  1126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1127. public override string ToString() {
  1128. return pb::JsonFormatter.ToDiagnosticString(this);
  1129. }
  1130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1131. public void WriteTo(pb::CodedOutputStream output) {
  1132. if (payload_ != null) {
  1133. output.WriteRawTag(10);
  1134. output.WriteMessage(Payload);
  1135. }
  1136. if (expectCompressed_ != null) {
  1137. output.WriteRawTag(18);
  1138. output.WriteMessage(ExpectCompressed);
  1139. }
  1140. if (_unknownFields != null) {
  1141. _unknownFields.WriteTo(output);
  1142. }
  1143. }
  1144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1145. public int CalculateSize() {
  1146. int size = 0;
  1147. if (payload_ != null) {
  1148. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload);
  1149. }
  1150. if (expectCompressed_ != null) {
  1151. size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpectCompressed);
  1152. }
  1153. if (_unknownFields != null) {
  1154. size += _unknownFields.CalculateSize();
  1155. }
  1156. return size;
  1157. }
  1158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1159. public void MergeFrom(StreamingInputCallRequest other) {
  1160. if (other == null) {
  1161. return;
  1162. }
  1163. if (other.payload_ != null) {
  1164. if (payload_ == null) {
  1165. payload_ = new global::Grpc.Testing.Payload();
  1166. }
  1167. Payload.MergeFrom(other.Payload);
  1168. }
  1169. if (other.expectCompressed_ != null) {
  1170. if (expectCompressed_ == null) {
  1171. expectCompressed_ = new global::Grpc.Testing.BoolValue();
  1172. }
  1173. ExpectCompressed.MergeFrom(other.ExpectCompressed);
  1174. }
  1175. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1176. }
  1177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1178. public void MergeFrom(pb::CodedInputStream input) {
  1179. uint tag;
  1180. while ((tag = input.ReadTag()) != 0) {
  1181. switch(tag) {
  1182. default:
  1183. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1184. break;
  1185. case 10: {
  1186. if (payload_ == null) {
  1187. payload_ = new global::Grpc.Testing.Payload();
  1188. }
  1189. input.ReadMessage(payload_);
  1190. break;
  1191. }
  1192. case 18: {
  1193. if (expectCompressed_ == null) {
  1194. expectCompressed_ = new global::Grpc.Testing.BoolValue();
  1195. }
  1196. input.ReadMessage(expectCompressed_);
  1197. break;
  1198. }
  1199. }
  1200. }
  1201. }
  1202. }
  1203. /// <summary>
  1204. /// Client-streaming response.
  1205. /// </summary>
  1206. public sealed partial class StreamingInputCallResponse : pb::IMessage<StreamingInputCallResponse> {
  1207. private static readonly pb::MessageParser<StreamingInputCallResponse> _parser = new pb::MessageParser<StreamingInputCallResponse>(() => new StreamingInputCallResponse());
  1208. private pb::UnknownFieldSet _unknownFields;
  1209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1210. public static pb::MessageParser<StreamingInputCallResponse> Parser { get { return _parser; } }
  1211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1212. public static pbr::MessageDescriptor Descriptor {
  1213. get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[6]; }
  1214. }
  1215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1216. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1217. get { return Descriptor; }
  1218. }
  1219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1220. public StreamingInputCallResponse() {
  1221. OnConstruction();
  1222. }
  1223. partial void OnConstruction();
  1224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1225. public StreamingInputCallResponse(StreamingInputCallResponse other) : this() {
  1226. aggregatedPayloadSize_ = other.aggregatedPayloadSize_;
  1227. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1228. }
  1229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1230. public StreamingInputCallResponse Clone() {
  1231. return new StreamingInputCallResponse(this);
  1232. }
  1233. /// <summary>Field number for the "aggregated_payload_size" field.</summary>
  1234. public const int AggregatedPayloadSizeFieldNumber = 1;
  1235. private int aggregatedPayloadSize_;
  1236. /// <summary>
  1237. /// Aggregated size of payloads received from the client.
  1238. /// </summary>
  1239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1240. public int AggregatedPayloadSize {
  1241. get { return aggregatedPayloadSize_; }
  1242. set {
  1243. aggregatedPayloadSize_ = value;
  1244. }
  1245. }
  1246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1247. public override bool Equals(object other) {
  1248. return Equals(other as StreamingInputCallResponse);
  1249. }
  1250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1251. public bool Equals(StreamingInputCallResponse other) {
  1252. if (ReferenceEquals(other, null)) {
  1253. return false;
  1254. }
  1255. if (ReferenceEquals(other, this)) {
  1256. return true;
  1257. }
  1258. if (AggregatedPayloadSize != other.AggregatedPayloadSize) return false;
  1259. return Equals(_unknownFields, other._unknownFields);
  1260. }
  1261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1262. public override int GetHashCode() {
  1263. int hash = 1;
  1264. if (AggregatedPayloadSize != 0) hash ^= AggregatedPayloadSize.GetHashCode();
  1265. if (_unknownFields != null) {
  1266. hash ^= _unknownFields.GetHashCode();
  1267. }
  1268. return hash;
  1269. }
  1270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1271. public override string ToString() {
  1272. return pb::JsonFormatter.ToDiagnosticString(this);
  1273. }
  1274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1275. public void WriteTo(pb::CodedOutputStream output) {
  1276. if (AggregatedPayloadSize != 0) {
  1277. output.WriteRawTag(8);
  1278. output.WriteInt32(AggregatedPayloadSize);
  1279. }
  1280. if (_unknownFields != null) {
  1281. _unknownFields.WriteTo(output);
  1282. }
  1283. }
  1284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1285. public int CalculateSize() {
  1286. int size = 0;
  1287. if (AggregatedPayloadSize != 0) {
  1288. size += 1 + pb::CodedOutputStream.ComputeInt32Size(AggregatedPayloadSize);
  1289. }
  1290. if (_unknownFields != null) {
  1291. size += _unknownFields.CalculateSize();
  1292. }
  1293. return size;
  1294. }
  1295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1296. public void MergeFrom(StreamingInputCallResponse other) {
  1297. if (other == null) {
  1298. return;
  1299. }
  1300. if (other.AggregatedPayloadSize != 0) {
  1301. AggregatedPayloadSize = other.AggregatedPayloadSize;
  1302. }
  1303. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1304. }
  1305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1306. public void MergeFrom(pb::CodedInputStream input) {
  1307. uint tag;
  1308. while ((tag = input.ReadTag()) != 0) {
  1309. switch(tag) {
  1310. default:
  1311. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1312. break;
  1313. case 8: {
  1314. AggregatedPayloadSize = input.ReadInt32();
  1315. break;
  1316. }
  1317. }
  1318. }
  1319. }
  1320. }
  1321. /// <summary>
  1322. /// Configuration for a particular response.
  1323. /// </summary>
  1324. public sealed partial class ResponseParameters : pb::IMessage<ResponseParameters> {
  1325. private static readonly pb::MessageParser<ResponseParameters> _parser = new pb::MessageParser<ResponseParameters>(() => new ResponseParameters());
  1326. private pb::UnknownFieldSet _unknownFields;
  1327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1328. public static pb::MessageParser<ResponseParameters> Parser { get { return _parser; } }
  1329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1330. public static pbr::MessageDescriptor Descriptor {
  1331. get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[7]; }
  1332. }
  1333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1334. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1335. get { return Descriptor; }
  1336. }
  1337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1338. public ResponseParameters() {
  1339. OnConstruction();
  1340. }
  1341. partial void OnConstruction();
  1342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1343. public ResponseParameters(ResponseParameters other) : this() {
  1344. size_ = other.size_;
  1345. intervalUs_ = other.intervalUs_;
  1346. Compressed = other.compressed_ != null ? other.Compressed.Clone() : null;
  1347. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1348. }
  1349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1350. public ResponseParameters Clone() {
  1351. return new ResponseParameters(this);
  1352. }
  1353. /// <summary>Field number for the "size" field.</summary>
  1354. public const int SizeFieldNumber = 1;
  1355. private int size_;
  1356. /// <summary>
  1357. /// Desired payload sizes in responses from the server.
  1358. /// </summary>
  1359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1360. public int Size {
  1361. get { return size_; }
  1362. set {
  1363. size_ = value;
  1364. }
  1365. }
  1366. /// <summary>Field number for the "interval_us" field.</summary>
  1367. public const int IntervalUsFieldNumber = 2;
  1368. private int intervalUs_;
  1369. /// <summary>
  1370. /// Desired interval between consecutive responses in the response stream in
  1371. /// microseconds.
  1372. /// </summary>
  1373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1374. public int IntervalUs {
  1375. get { return intervalUs_; }
  1376. set {
  1377. intervalUs_ = value;
  1378. }
  1379. }
  1380. /// <summary>Field number for the "compressed" field.</summary>
  1381. public const int CompressedFieldNumber = 3;
  1382. private global::Grpc.Testing.BoolValue compressed_;
  1383. /// <summary>
  1384. /// Whether to request the server to compress the response. This field is
  1385. /// "nullable" in order to interoperate seamlessly with clients not able to
  1386. /// implement the full compression tests by introspecting the call to verify
  1387. /// the response's compression status.
  1388. /// </summary>
  1389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1390. public global::Grpc.Testing.BoolValue Compressed {
  1391. get { return compressed_; }
  1392. set {
  1393. compressed_ = value;
  1394. }
  1395. }
  1396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1397. public override bool Equals(object other) {
  1398. return Equals(other as ResponseParameters);
  1399. }
  1400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1401. public bool Equals(ResponseParameters other) {
  1402. if (ReferenceEquals(other, null)) {
  1403. return false;
  1404. }
  1405. if (ReferenceEquals(other, this)) {
  1406. return true;
  1407. }
  1408. if (Size != other.Size) return false;
  1409. if (IntervalUs != other.IntervalUs) return false;
  1410. if (!object.Equals(Compressed, other.Compressed)) return false;
  1411. return Equals(_unknownFields, other._unknownFields);
  1412. }
  1413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1414. public override int GetHashCode() {
  1415. int hash = 1;
  1416. if (Size != 0) hash ^= Size.GetHashCode();
  1417. if (IntervalUs != 0) hash ^= IntervalUs.GetHashCode();
  1418. if (compressed_ != null) hash ^= Compressed.GetHashCode();
  1419. if (_unknownFields != null) {
  1420. hash ^= _unknownFields.GetHashCode();
  1421. }
  1422. return hash;
  1423. }
  1424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1425. public override string ToString() {
  1426. return pb::JsonFormatter.ToDiagnosticString(this);
  1427. }
  1428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1429. public void WriteTo(pb::CodedOutputStream output) {
  1430. if (Size != 0) {
  1431. output.WriteRawTag(8);
  1432. output.WriteInt32(Size);
  1433. }
  1434. if (IntervalUs != 0) {
  1435. output.WriteRawTag(16);
  1436. output.WriteInt32(IntervalUs);
  1437. }
  1438. if (compressed_ != null) {
  1439. output.WriteRawTag(26);
  1440. output.WriteMessage(Compressed);
  1441. }
  1442. if (_unknownFields != null) {
  1443. _unknownFields.WriteTo(output);
  1444. }
  1445. }
  1446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1447. public int CalculateSize() {
  1448. int size = 0;
  1449. if (Size != 0) {
  1450. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Size);
  1451. }
  1452. if (IntervalUs != 0) {
  1453. size += 1 + pb::CodedOutputStream.ComputeInt32Size(IntervalUs);
  1454. }
  1455. if (compressed_ != null) {
  1456. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Compressed);
  1457. }
  1458. if (_unknownFields != null) {
  1459. size += _unknownFields.CalculateSize();
  1460. }
  1461. return size;
  1462. }
  1463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1464. public void MergeFrom(ResponseParameters other) {
  1465. if (other == null) {
  1466. return;
  1467. }
  1468. if (other.Size != 0) {
  1469. Size = other.Size;
  1470. }
  1471. if (other.IntervalUs != 0) {
  1472. IntervalUs = other.IntervalUs;
  1473. }
  1474. if (other.compressed_ != null) {
  1475. if (compressed_ == null) {
  1476. compressed_ = new global::Grpc.Testing.BoolValue();
  1477. }
  1478. Compressed.MergeFrom(other.Compressed);
  1479. }
  1480. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1481. }
  1482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1483. public void MergeFrom(pb::CodedInputStream input) {
  1484. uint tag;
  1485. while ((tag = input.ReadTag()) != 0) {
  1486. switch(tag) {
  1487. default:
  1488. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1489. break;
  1490. case 8: {
  1491. Size = input.ReadInt32();
  1492. break;
  1493. }
  1494. case 16: {
  1495. IntervalUs = input.ReadInt32();
  1496. break;
  1497. }
  1498. case 26: {
  1499. if (compressed_ == null) {
  1500. compressed_ = new global::Grpc.Testing.BoolValue();
  1501. }
  1502. input.ReadMessage(compressed_);
  1503. break;
  1504. }
  1505. }
  1506. }
  1507. }
  1508. }
  1509. /// <summary>
  1510. /// Server-streaming request.
  1511. /// </summary>
  1512. public sealed partial class StreamingOutputCallRequest : pb::IMessage<StreamingOutputCallRequest> {
  1513. private static readonly pb::MessageParser<StreamingOutputCallRequest> _parser = new pb::MessageParser<StreamingOutputCallRequest>(() => new StreamingOutputCallRequest());
  1514. private pb::UnknownFieldSet _unknownFields;
  1515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1516. public static pb::MessageParser<StreamingOutputCallRequest> Parser { get { return _parser; } }
  1517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1518. public static pbr::MessageDescriptor Descriptor {
  1519. get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[8]; }
  1520. }
  1521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1522. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1523. get { return Descriptor; }
  1524. }
  1525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1526. public StreamingOutputCallRequest() {
  1527. OnConstruction();
  1528. }
  1529. partial void OnConstruction();
  1530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1531. public StreamingOutputCallRequest(StreamingOutputCallRequest other) : this() {
  1532. responseType_ = other.responseType_;
  1533. responseParameters_ = other.responseParameters_.Clone();
  1534. Payload = other.payload_ != null ? other.Payload.Clone() : null;
  1535. ResponseStatus = other.responseStatus_ != null ? other.ResponseStatus.Clone() : null;
  1536. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1537. }
  1538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1539. public StreamingOutputCallRequest Clone() {
  1540. return new StreamingOutputCallRequest(this);
  1541. }
  1542. /// <summary>Field number for the "response_type" field.</summary>
  1543. public const int ResponseTypeFieldNumber = 1;
  1544. private global::Grpc.Testing.PayloadType responseType_ = 0;
  1545. /// <summary>
  1546. /// DEPRECATED, don't use. To be removed shortly.
  1547. /// Desired payload type in the response from the server.
  1548. /// If response_type is RANDOM, the payload from each response in the stream
  1549. /// might be of different types. This is to simulate a mixed type of payload
  1550. /// stream.
  1551. /// </summary>
  1552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1553. public global::Grpc.Testing.PayloadType ResponseType {
  1554. get { return responseType_; }
  1555. set {
  1556. responseType_ = value;
  1557. }
  1558. }
  1559. /// <summary>Field number for the "response_parameters" field.</summary>
  1560. public const int ResponseParametersFieldNumber = 2;
  1561. private static readonly pb::FieldCodec<global::Grpc.Testing.ResponseParameters> _repeated_responseParameters_codec
  1562. = pb::FieldCodec.ForMessage(18, global::Grpc.Testing.ResponseParameters.Parser);
  1563. private readonly pbc::RepeatedField<global::Grpc.Testing.ResponseParameters> responseParameters_ = new pbc::RepeatedField<global::Grpc.Testing.ResponseParameters>();
  1564. /// <summary>
  1565. /// Configuration for each expected response message.
  1566. /// </summary>
  1567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1568. public pbc::RepeatedField<global::Grpc.Testing.ResponseParameters> ResponseParameters {
  1569. get { return responseParameters_; }
  1570. }
  1571. /// <summary>Field number for the "payload" field.</summary>
  1572. public const int PayloadFieldNumber = 3;
  1573. private global::Grpc.Testing.Payload payload_;
  1574. /// <summary>
  1575. /// Optional input payload sent along with the request.
  1576. /// </summary>
  1577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1578. public global::Grpc.Testing.Payload Payload {
  1579. get { return payload_; }
  1580. set {
  1581. payload_ = value;
  1582. }
  1583. }
  1584. /// <summary>Field number for the "response_status" field.</summary>
  1585. public const int ResponseStatusFieldNumber = 7;
  1586. private global::Grpc.Testing.EchoStatus responseStatus_;
  1587. /// <summary>
  1588. /// Whether server should return a given status
  1589. /// </summary>
  1590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1591. public global::Grpc.Testing.EchoStatus ResponseStatus {
  1592. get { return responseStatus_; }
  1593. set {
  1594. responseStatus_ = value;
  1595. }
  1596. }
  1597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1598. public override bool Equals(object other) {
  1599. return Equals(other as StreamingOutputCallRequest);
  1600. }
  1601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1602. public bool Equals(StreamingOutputCallRequest other) {
  1603. if (ReferenceEquals(other, null)) {
  1604. return false;
  1605. }
  1606. if (ReferenceEquals(other, this)) {
  1607. return true;
  1608. }
  1609. if (ResponseType != other.ResponseType) return false;
  1610. if(!responseParameters_.Equals(other.responseParameters_)) return false;
  1611. if (!object.Equals(Payload, other.Payload)) return false;
  1612. if (!object.Equals(ResponseStatus, other.ResponseStatus)) return false;
  1613. return Equals(_unknownFields, other._unknownFields);
  1614. }
  1615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1616. public override int GetHashCode() {
  1617. int hash = 1;
  1618. if (ResponseType != 0) hash ^= ResponseType.GetHashCode();
  1619. hash ^= responseParameters_.GetHashCode();
  1620. if (payload_ != null) hash ^= Payload.GetHashCode();
  1621. if (responseStatus_ != null) hash ^= ResponseStatus.GetHashCode();
  1622. if (_unknownFields != null) {
  1623. hash ^= _unknownFields.GetHashCode();
  1624. }
  1625. return hash;
  1626. }
  1627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1628. public override string ToString() {
  1629. return pb::JsonFormatter.ToDiagnosticString(this);
  1630. }
  1631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1632. public void WriteTo(pb::CodedOutputStream output) {
  1633. if (ResponseType != 0) {
  1634. output.WriteRawTag(8);
  1635. output.WriteEnum((int) ResponseType);
  1636. }
  1637. responseParameters_.WriteTo(output, _repeated_responseParameters_codec);
  1638. if (payload_ != null) {
  1639. output.WriteRawTag(26);
  1640. output.WriteMessage(Payload);
  1641. }
  1642. if (responseStatus_ != null) {
  1643. output.WriteRawTag(58);
  1644. output.WriteMessage(ResponseStatus);
  1645. }
  1646. if (_unknownFields != null) {
  1647. _unknownFields.WriteTo(output);
  1648. }
  1649. }
  1650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1651. public int CalculateSize() {
  1652. int size = 0;
  1653. if (ResponseType != 0) {
  1654. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseType);
  1655. }
  1656. size += responseParameters_.CalculateSize(_repeated_responseParameters_codec);
  1657. if (payload_ != null) {
  1658. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload);
  1659. }
  1660. if (responseStatus_ != null) {
  1661. size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResponseStatus);
  1662. }
  1663. if (_unknownFields != null) {
  1664. size += _unknownFields.CalculateSize();
  1665. }
  1666. return size;
  1667. }
  1668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1669. public void MergeFrom(StreamingOutputCallRequest other) {
  1670. if (other == null) {
  1671. return;
  1672. }
  1673. if (other.ResponseType != 0) {
  1674. ResponseType = other.ResponseType;
  1675. }
  1676. responseParameters_.Add(other.responseParameters_);
  1677. if (other.payload_ != null) {
  1678. if (payload_ == null) {
  1679. payload_ = new global::Grpc.Testing.Payload();
  1680. }
  1681. Payload.MergeFrom(other.Payload);
  1682. }
  1683. if (other.responseStatus_ != null) {
  1684. if (responseStatus_ == null) {
  1685. responseStatus_ = new global::Grpc.Testing.EchoStatus();
  1686. }
  1687. ResponseStatus.MergeFrom(other.ResponseStatus);
  1688. }
  1689. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1690. }
  1691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1692. public void MergeFrom(pb::CodedInputStream input) {
  1693. uint tag;
  1694. while ((tag = input.ReadTag()) != 0) {
  1695. switch(tag) {
  1696. default:
  1697. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1698. break;
  1699. case 8: {
  1700. responseType_ = (global::Grpc.Testing.PayloadType) input.ReadEnum();
  1701. break;
  1702. }
  1703. case 18: {
  1704. responseParameters_.AddEntriesFrom(input, _repeated_responseParameters_codec);
  1705. break;
  1706. }
  1707. case 26: {
  1708. if (payload_ == null) {
  1709. payload_ = new global::Grpc.Testing.Payload();
  1710. }
  1711. input.ReadMessage(payload_);
  1712. break;
  1713. }
  1714. case 58: {
  1715. if (responseStatus_ == null) {
  1716. responseStatus_ = new global::Grpc.Testing.EchoStatus();
  1717. }
  1718. input.ReadMessage(responseStatus_);
  1719. break;
  1720. }
  1721. }
  1722. }
  1723. }
  1724. }
  1725. /// <summary>
  1726. /// Server-streaming response, as configured by the request and parameters.
  1727. /// </summary>
  1728. public sealed partial class StreamingOutputCallResponse : pb::IMessage<StreamingOutputCallResponse> {
  1729. private static readonly pb::MessageParser<StreamingOutputCallResponse> _parser = new pb::MessageParser<StreamingOutputCallResponse>(() => new StreamingOutputCallResponse());
  1730. private pb::UnknownFieldSet _unknownFields;
  1731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1732. public static pb::MessageParser<StreamingOutputCallResponse> Parser { get { return _parser; } }
  1733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1734. public static pbr::MessageDescriptor Descriptor {
  1735. get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[9]; }
  1736. }
  1737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1738. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1739. get { return Descriptor; }
  1740. }
  1741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1742. public StreamingOutputCallResponse() {
  1743. OnConstruction();
  1744. }
  1745. partial void OnConstruction();
  1746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1747. public StreamingOutputCallResponse(StreamingOutputCallResponse other) : this() {
  1748. Payload = other.payload_ != null ? other.Payload.Clone() : null;
  1749. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1750. }
  1751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1752. public StreamingOutputCallResponse Clone() {
  1753. return new StreamingOutputCallResponse(this);
  1754. }
  1755. /// <summary>Field number for the "payload" field.</summary>
  1756. public const int PayloadFieldNumber = 1;
  1757. private global::Grpc.Testing.Payload payload_;
  1758. /// <summary>
  1759. /// Payload to increase response size.
  1760. /// </summary>
  1761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1762. public global::Grpc.Testing.Payload Payload {
  1763. get { return payload_; }
  1764. set {
  1765. payload_ = value;
  1766. }
  1767. }
  1768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1769. public override bool Equals(object other) {
  1770. return Equals(other as StreamingOutputCallResponse);
  1771. }
  1772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1773. public bool Equals(StreamingOutputCallResponse other) {
  1774. if (ReferenceEquals(other, null)) {
  1775. return false;
  1776. }
  1777. if (ReferenceEquals(other, this)) {
  1778. return true;
  1779. }
  1780. if (!object.Equals(Payload, other.Payload)) return false;
  1781. return Equals(_unknownFields, other._unknownFields);
  1782. }
  1783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1784. public override int GetHashCode() {
  1785. int hash = 1;
  1786. if (payload_ != null) hash ^= Payload.GetHashCode();
  1787. if (_unknownFields != null) {
  1788. hash ^= _unknownFields.GetHashCode();
  1789. }
  1790. return hash;
  1791. }
  1792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1793. public override string ToString() {
  1794. return pb::JsonFormatter.ToDiagnosticString(this);
  1795. }
  1796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1797. public void WriteTo(pb::CodedOutputStream output) {
  1798. if (payload_ != null) {
  1799. output.WriteRawTag(10);
  1800. output.WriteMessage(Payload);
  1801. }
  1802. if (_unknownFields != null) {
  1803. _unknownFields.WriteTo(output);
  1804. }
  1805. }
  1806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1807. public int CalculateSize() {
  1808. int size = 0;
  1809. if (payload_ != null) {
  1810. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload);
  1811. }
  1812. if (_unknownFields != null) {
  1813. size += _unknownFields.CalculateSize();
  1814. }
  1815. return size;
  1816. }
  1817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1818. public void MergeFrom(StreamingOutputCallResponse other) {
  1819. if (other == null) {
  1820. return;
  1821. }
  1822. if (other.payload_ != null) {
  1823. if (payload_ == null) {
  1824. payload_ = new global::Grpc.Testing.Payload();
  1825. }
  1826. Payload.MergeFrom(other.Payload);
  1827. }
  1828. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1829. }
  1830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1831. public void MergeFrom(pb::CodedInputStream input) {
  1832. uint tag;
  1833. while ((tag = input.ReadTag()) != 0) {
  1834. switch(tag) {
  1835. default:
  1836. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1837. break;
  1838. case 10: {
  1839. if (payload_ == null) {
  1840. payload_ = new global::Grpc.Testing.Payload();
  1841. }
  1842. input.ReadMessage(payload_);
  1843. break;
  1844. }
  1845. }
  1846. }
  1847. }
  1848. }
  1849. /// <summary>
  1850. /// For reconnect interop test only.
  1851. /// Client tells server what reconnection parameters it used.
  1852. /// </summary>
  1853. public sealed partial class ReconnectParams : pb::IMessage<ReconnectParams> {
  1854. private static readonly pb::MessageParser<ReconnectParams> _parser = new pb::MessageParser<ReconnectParams>(() => new ReconnectParams());
  1855. private pb::UnknownFieldSet _unknownFields;
  1856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1857. public static pb::MessageParser<ReconnectParams> Parser { get { return _parser; } }
  1858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1859. public static pbr::MessageDescriptor Descriptor {
  1860. get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[10]; }
  1861. }
  1862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1863. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1864. get { return Descriptor; }
  1865. }
  1866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1867. public ReconnectParams() {
  1868. OnConstruction();
  1869. }
  1870. partial void OnConstruction();
  1871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1872. public ReconnectParams(ReconnectParams other) : this() {
  1873. maxReconnectBackoffMs_ = other.maxReconnectBackoffMs_;
  1874. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1875. }
  1876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1877. public ReconnectParams Clone() {
  1878. return new ReconnectParams(this);
  1879. }
  1880. /// <summary>Field number for the "max_reconnect_backoff_ms" field.</summary>
  1881. public const int MaxReconnectBackoffMsFieldNumber = 1;
  1882. private int maxReconnectBackoffMs_;
  1883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1884. public int MaxReconnectBackoffMs {
  1885. get { return maxReconnectBackoffMs_; }
  1886. set {
  1887. maxReconnectBackoffMs_ = value;
  1888. }
  1889. }
  1890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1891. public override bool Equals(object other) {
  1892. return Equals(other as ReconnectParams);
  1893. }
  1894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1895. public bool Equals(ReconnectParams other) {
  1896. if (ReferenceEquals(other, null)) {
  1897. return false;
  1898. }
  1899. if (ReferenceEquals(other, this)) {
  1900. return true;
  1901. }
  1902. if (MaxReconnectBackoffMs != other.MaxReconnectBackoffMs) return false;
  1903. return Equals(_unknownFields, other._unknownFields);
  1904. }
  1905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1906. public override int GetHashCode() {
  1907. int hash = 1;
  1908. if (MaxReconnectBackoffMs != 0) hash ^= MaxReconnectBackoffMs.GetHashCode();
  1909. if (_unknownFields != null) {
  1910. hash ^= _unknownFields.GetHashCode();
  1911. }
  1912. return hash;
  1913. }
  1914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1915. public override string ToString() {
  1916. return pb::JsonFormatter.ToDiagnosticString(this);
  1917. }
  1918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1919. public void WriteTo(pb::CodedOutputStream output) {
  1920. if (MaxReconnectBackoffMs != 0) {
  1921. output.WriteRawTag(8);
  1922. output.WriteInt32(MaxReconnectBackoffMs);
  1923. }
  1924. if (_unknownFields != null) {
  1925. _unknownFields.WriteTo(output);
  1926. }
  1927. }
  1928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1929. public int CalculateSize() {
  1930. int size = 0;
  1931. if (MaxReconnectBackoffMs != 0) {
  1932. size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxReconnectBackoffMs);
  1933. }
  1934. if (_unknownFields != null) {
  1935. size += _unknownFields.CalculateSize();
  1936. }
  1937. return size;
  1938. }
  1939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1940. public void MergeFrom(ReconnectParams other) {
  1941. if (other == null) {
  1942. return;
  1943. }
  1944. if (other.MaxReconnectBackoffMs != 0) {
  1945. MaxReconnectBackoffMs = other.MaxReconnectBackoffMs;
  1946. }
  1947. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1948. }
  1949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1950. public void MergeFrom(pb::CodedInputStream input) {
  1951. uint tag;
  1952. while ((tag = input.ReadTag()) != 0) {
  1953. switch(tag) {
  1954. default:
  1955. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1956. break;
  1957. case 8: {
  1958. MaxReconnectBackoffMs = input.ReadInt32();
  1959. break;
  1960. }
  1961. }
  1962. }
  1963. }
  1964. }
  1965. /// <summary>
  1966. /// For reconnect interop test only.
  1967. /// Server tells client whether its reconnects are following the spec and the
  1968. /// reconnect backoffs it saw.
  1969. /// </summary>
  1970. public sealed partial class ReconnectInfo : pb::IMessage<ReconnectInfo> {
  1971. private static readonly pb::MessageParser<ReconnectInfo> _parser = new pb::MessageParser<ReconnectInfo>(() => new ReconnectInfo());
  1972. private pb::UnknownFieldSet _unknownFields;
  1973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1974. public static pb::MessageParser<ReconnectInfo> Parser { get { return _parser; } }
  1975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1976. public static pbr::MessageDescriptor Descriptor {
  1977. get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[11]; }
  1978. }
  1979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1980. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1981. get { return Descriptor; }
  1982. }
  1983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1984. public ReconnectInfo() {
  1985. OnConstruction();
  1986. }
  1987. partial void OnConstruction();
  1988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1989. public ReconnectInfo(ReconnectInfo other) : this() {
  1990. passed_ = other.passed_;
  1991. backoffMs_ = other.backoffMs_.Clone();
  1992. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1993. }
  1994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1995. public ReconnectInfo Clone() {
  1996. return new ReconnectInfo(this);
  1997. }
  1998. /// <summary>Field number for the "passed" field.</summary>
  1999. public const int PassedFieldNumber = 1;
  2000. private bool passed_;
  2001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2002. public bool Passed {
  2003. get { return passed_; }
  2004. set {
  2005. passed_ = value;
  2006. }
  2007. }
  2008. /// <summary>Field number for the "backoff_ms" field.</summary>
  2009. public const int BackoffMsFieldNumber = 2;
  2010. private static readonly pb::FieldCodec<int> _repeated_backoffMs_codec
  2011. = pb::FieldCodec.ForInt32(18);
  2012. private readonly pbc::RepeatedField<int> backoffMs_ = new pbc::RepeatedField<int>();
  2013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2014. public pbc::RepeatedField<int> BackoffMs {
  2015. get { return backoffMs_; }
  2016. }
  2017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2018. public override bool Equals(object other) {
  2019. return Equals(other as ReconnectInfo);
  2020. }
  2021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2022. public bool Equals(ReconnectInfo other) {
  2023. if (ReferenceEquals(other, null)) {
  2024. return false;
  2025. }
  2026. if (ReferenceEquals(other, this)) {
  2027. return true;
  2028. }
  2029. if (Passed != other.Passed) return false;
  2030. if(!backoffMs_.Equals(other.backoffMs_)) return false;
  2031. return Equals(_unknownFields, other._unknownFields);
  2032. }
  2033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2034. public override int GetHashCode() {
  2035. int hash = 1;
  2036. if (Passed != false) hash ^= Passed.GetHashCode();
  2037. hash ^= backoffMs_.GetHashCode();
  2038. if (_unknownFields != null) {
  2039. hash ^= _unknownFields.GetHashCode();
  2040. }
  2041. return hash;
  2042. }
  2043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2044. public override string ToString() {
  2045. return pb::JsonFormatter.ToDiagnosticString(this);
  2046. }
  2047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2048. public void WriteTo(pb::CodedOutputStream output) {
  2049. if (Passed != false) {
  2050. output.WriteRawTag(8);
  2051. output.WriteBool(Passed);
  2052. }
  2053. backoffMs_.WriteTo(output, _repeated_backoffMs_codec);
  2054. if (_unknownFields != null) {
  2055. _unknownFields.WriteTo(output);
  2056. }
  2057. }
  2058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2059. public int CalculateSize() {
  2060. int size = 0;
  2061. if (Passed != false) {
  2062. size += 1 + 1;
  2063. }
  2064. size += backoffMs_.CalculateSize(_repeated_backoffMs_codec);
  2065. if (_unknownFields != null) {
  2066. size += _unknownFields.CalculateSize();
  2067. }
  2068. return size;
  2069. }
  2070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2071. public void MergeFrom(ReconnectInfo other) {
  2072. if (other == null) {
  2073. return;
  2074. }
  2075. if (other.Passed != false) {
  2076. Passed = other.Passed;
  2077. }
  2078. backoffMs_.Add(other.backoffMs_);
  2079. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  2080. }
  2081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  2082. public void MergeFrom(pb::CodedInputStream input) {
  2083. uint tag;
  2084. while ((tag = input.ReadTag()) != 0) {
  2085. switch(tag) {
  2086. default:
  2087. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  2088. break;
  2089. case 8: {
  2090. Passed = input.ReadBool();
  2091. break;
  2092. }
  2093. case 18:
  2094. case 16: {
  2095. backoffMs_.AddEntriesFrom(input, _repeated_backoffMs_codec);
  2096. break;
  2097. }
  2098. }
  2099. }
  2100. }
  2101. }
  2102. #endregion
  2103. }
  2104. #endregion Designer generated code