Reflection.cs 61 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: grpc/reflection/v1alpha/reflection.proto
  3. #pragma warning disable 1591, 0612, 3021
  4. #region Designer generated code
  5. using pb = global::Google.Protobuf;
  6. using pbc = global::Google.Protobuf.Collections;
  7. using pbr = global::Google.Protobuf.Reflection;
  8. using scg = global::System.Collections.Generic;
  9. namespace Grpc.Reflection.V1Alpha {
  10. /// <summary>Holder for reflection information generated from grpc/reflection/v1alpha/reflection.proto</summary>
  11. public static partial class ReflectionReflection {
  12. #region Descriptor
  13. /// <summary>File descriptor for grpc/reflection/v1alpha/reflection.proto</summary>
  14. public static pbr::FileDescriptor Descriptor {
  15. get { return descriptor; }
  16. }
  17. private static pbr::FileDescriptor descriptor;
  18. static ReflectionReflection() {
  19. byte[] descriptorData = global::System.Convert.FromBase64String(
  20. string.Concat(
  21. "CihncnBjL3JlZmxlY3Rpb24vdjFhbHBoYS9yZWZsZWN0aW9uLnByb3RvEhdn",
  22. "cnBjLnJlZmxlY3Rpb24udjFhbHBoYSKKAgoXU2VydmVyUmVmbGVjdGlvblJl",
  23. "cXVlc3QSDAoEaG9zdBgBIAEoCRIaChBmaWxlX2J5X2ZpbGVuYW1lGAMgASgJ",
  24. "SAASIAoWZmlsZV9jb250YWluaW5nX3N5bWJvbBgEIAEoCUgAEk4KGWZpbGVf",
  25. "Y29udGFpbmluZ19leHRlbnNpb24YBSABKAsyKS5ncnBjLnJlZmxlY3Rpb24u",
  26. "djFhbHBoYS5FeHRlbnNpb25SZXF1ZXN0SAASJwodYWxsX2V4dGVuc2lvbl9u",
  27. "dW1iZXJzX29mX3R5cGUYBiABKAlIABIXCg1saXN0X3NlcnZpY2VzGAcgASgJ",
  28. "SABCEQoPbWVzc2FnZV9yZXF1ZXN0IkUKEEV4dGVuc2lvblJlcXVlc3QSFwoP",
  29. "Y29udGFpbmluZ190eXBlGAEgASgJEhgKEGV4dGVuc2lvbl9udW1iZXIYAiAB",
  30. "KAUi0QMKGFNlcnZlclJlZmxlY3Rpb25SZXNwb25zZRISCgp2YWxpZF9ob3N0",
  31. "GAEgASgJEkoKEG9yaWdpbmFsX3JlcXVlc3QYAiABKAsyMC5ncnBjLnJlZmxl",
  32. "Y3Rpb24udjFhbHBoYS5TZXJ2ZXJSZWZsZWN0aW9uUmVxdWVzdBJTChhmaWxl",
  33. "X2Rlc2NyaXB0b3JfcmVzcG9uc2UYBCABKAsyLy5ncnBjLnJlZmxlY3Rpb24u",
  34. "djFhbHBoYS5GaWxlRGVzY3JpcHRvclJlc3BvbnNlSAASWgoeYWxsX2V4dGVu",
  35. "c2lvbl9udW1iZXJzX3Jlc3BvbnNlGAUgASgLMjAuZ3JwYy5yZWZsZWN0aW9u",
  36. "LnYxYWxwaGEuRXh0ZW5zaW9uTnVtYmVyUmVzcG9uc2VIABJOChZsaXN0X3Nl",
  37. "cnZpY2VzX3Jlc3BvbnNlGAYgASgLMiwuZ3JwYy5yZWZsZWN0aW9uLnYxYWxw",
  38. "aGEuTGlzdFNlcnZpY2VSZXNwb25zZUgAEkAKDmVycm9yX3Jlc3BvbnNlGAcg",
  39. "ASgLMiYuZ3JwYy5yZWZsZWN0aW9uLnYxYWxwaGEuRXJyb3JSZXNwb25zZUgA",
  40. "QhIKEG1lc3NhZ2VfcmVzcG9uc2UiNwoWRmlsZURlc2NyaXB0b3JSZXNwb25z",
  41. "ZRIdChVmaWxlX2Rlc2NyaXB0b3JfcHJvdG8YASADKAwiSwoXRXh0ZW5zaW9u",
  42. "TnVtYmVyUmVzcG9uc2USFgoOYmFzZV90eXBlX25hbWUYASABKAkSGAoQZXh0",
  43. "ZW5zaW9uX251bWJlchgCIAMoBSJQChNMaXN0U2VydmljZVJlc3BvbnNlEjkK",
  44. "B3NlcnZpY2UYASADKAsyKC5ncnBjLnJlZmxlY3Rpb24udjFhbHBoYS5TZXJ2",
  45. "aWNlUmVzcG9uc2UiHwoPU2VydmljZVJlc3BvbnNlEgwKBG5hbWUYASABKAki",
  46. "OgoNRXJyb3JSZXNwb25zZRISCgplcnJvcl9jb2RlGAEgASgFEhUKDWVycm9y",
  47. "X21lc3NhZ2UYAiABKAkykwEKEFNlcnZlclJlZmxlY3Rpb24SfwoUU2VydmVy",
  48. "UmVmbGVjdGlvbkluZm8SMC5ncnBjLnJlZmxlY3Rpb24udjFhbHBoYS5TZXJ2",
  49. "ZXJSZWZsZWN0aW9uUmVxdWVzdBoxLmdycGMucmVmbGVjdGlvbi52MWFscGhh",
  50. "LlNlcnZlclJlZmxlY3Rpb25SZXNwb25zZSgBMAFiBnByb3RvMw=="));
  51. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  52. new pbr::FileDescriptor[] { },
  53. new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
  54. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Reflection.V1Alpha.ServerReflectionRequest), global::Grpc.Reflection.V1Alpha.ServerReflectionRequest.Parser, new[]{ "Host", "FileByFilename", "FileContainingSymbol", "FileContainingExtension", "AllExtensionNumbersOfType", "ListServices" }, new[]{ "MessageRequest" }, null, null),
  55. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Reflection.V1Alpha.ExtensionRequest), global::Grpc.Reflection.V1Alpha.ExtensionRequest.Parser, new[]{ "ContainingType", "ExtensionNumber" }, null, null, null),
  56. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Reflection.V1Alpha.ServerReflectionResponse), global::Grpc.Reflection.V1Alpha.ServerReflectionResponse.Parser, new[]{ "ValidHost", "OriginalRequest", "FileDescriptorResponse", "AllExtensionNumbersResponse", "ListServicesResponse", "ErrorResponse" }, new[]{ "MessageResponse" }, null, null),
  57. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Reflection.V1Alpha.FileDescriptorResponse), global::Grpc.Reflection.V1Alpha.FileDescriptorResponse.Parser, new[]{ "FileDescriptorProto" }, null, null, null),
  58. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Reflection.V1Alpha.ExtensionNumberResponse), global::Grpc.Reflection.V1Alpha.ExtensionNumberResponse.Parser, new[]{ "BaseTypeName", "ExtensionNumber" }, null, null, null),
  59. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Reflection.V1Alpha.ListServiceResponse), global::Grpc.Reflection.V1Alpha.ListServiceResponse.Parser, new[]{ "Service" }, null, null, null),
  60. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Reflection.V1Alpha.ServiceResponse), global::Grpc.Reflection.V1Alpha.ServiceResponse.Parser, new[]{ "Name" }, null, null, null),
  61. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Reflection.V1Alpha.ErrorResponse), global::Grpc.Reflection.V1Alpha.ErrorResponse.Parser, new[]{ "ErrorCode", "ErrorMessage" }, null, null, null)
  62. }));
  63. }
  64. #endregion
  65. }
  66. #region Messages
  67. /// <summary>
  68. /// The message sent by the client when calling ServerReflectionInfo method.
  69. /// </summary>
  70. public sealed partial class ServerReflectionRequest : pb::IMessage<ServerReflectionRequest> {
  71. private static readonly pb::MessageParser<ServerReflectionRequest> _parser = new pb::MessageParser<ServerReflectionRequest>(() => new ServerReflectionRequest());
  72. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  73. public static pb::MessageParser<ServerReflectionRequest> Parser { get { return _parser; } }
  74. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  75. public static pbr::MessageDescriptor Descriptor {
  76. get { return global::Grpc.Reflection.V1Alpha.ReflectionReflection.Descriptor.MessageTypes[0]; }
  77. }
  78. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  79. pbr::MessageDescriptor pb::IMessage.Descriptor {
  80. get { return Descriptor; }
  81. }
  82. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  83. public ServerReflectionRequest() {
  84. OnConstruction();
  85. }
  86. partial void OnConstruction();
  87. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  88. public ServerReflectionRequest(ServerReflectionRequest other) : this() {
  89. host_ = other.host_;
  90. switch (other.MessageRequestCase) {
  91. case MessageRequestOneofCase.FileByFilename:
  92. FileByFilename = other.FileByFilename;
  93. break;
  94. case MessageRequestOneofCase.FileContainingSymbol:
  95. FileContainingSymbol = other.FileContainingSymbol;
  96. break;
  97. case MessageRequestOneofCase.FileContainingExtension:
  98. FileContainingExtension = other.FileContainingExtension.Clone();
  99. break;
  100. case MessageRequestOneofCase.AllExtensionNumbersOfType:
  101. AllExtensionNumbersOfType = other.AllExtensionNumbersOfType;
  102. break;
  103. case MessageRequestOneofCase.ListServices:
  104. ListServices = other.ListServices;
  105. break;
  106. }
  107. }
  108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  109. public ServerReflectionRequest Clone() {
  110. return new ServerReflectionRequest(this);
  111. }
  112. /// <summary>Field number for the "host" field.</summary>
  113. public const int HostFieldNumber = 1;
  114. private string host_ = "";
  115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  116. public string Host {
  117. get { return host_; }
  118. set {
  119. host_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  120. }
  121. }
  122. /// <summary>Field number for the "file_by_filename" field.</summary>
  123. public const int FileByFilenameFieldNumber = 3;
  124. /// <summary>
  125. /// Find a proto file by the file name.
  126. /// </summary>
  127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  128. public string FileByFilename {
  129. get { return messageRequestCase_ == MessageRequestOneofCase.FileByFilename ? (string) messageRequest_ : ""; }
  130. set {
  131. messageRequest_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  132. messageRequestCase_ = MessageRequestOneofCase.FileByFilename;
  133. }
  134. }
  135. /// <summary>Field number for the "file_containing_symbol" field.</summary>
  136. public const int FileContainingSymbolFieldNumber = 4;
  137. /// <summary>
  138. /// Find the proto file that declares the given fully-qualified symbol name.
  139. /// This field should be a fully-qualified symbol name
  140. /// (e.g. &lt;package>.&lt;service>[.&lt;method>] or &lt;package>.&lt;type>).
  141. /// </summary>
  142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  143. public string FileContainingSymbol {
  144. get { return messageRequestCase_ == MessageRequestOneofCase.FileContainingSymbol ? (string) messageRequest_ : ""; }
  145. set {
  146. messageRequest_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  147. messageRequestCase_ = MessageRequestOneofCase.FileContainingSymbol;
  148. }
  149. }
  150. /// <summary>Field number for the "file_containing_extension" field.</summary>
  151. public const int FileContainingExtensionFieldNumber = 5;
  152. /// <summary>
  153. /// Find the proto file which defines an extension extending the given
  154. /// message type with the given field number.
  155. /// </summary>
  156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  157. public global::Grpc.Reflection.V1Alpha.ExtensionRequest FileContainingExtension {
  158. get { return messageRequestCase_ == MessageRequestOneofCase.FileContainingExtension ? (global::Grpc.Reflection.V1Alpha.ExtensionRequest) messageRequest_ : null; }
  159. set {
  160. messageRequest_ = value;
  161. messageRequestCase_ = value == null ? MessageRequestOneofCase.None : MessageRequestOneofCase.FileContainingExtension;
  162. }
  163. }
  164. /// <summary>Field number for the "all_extension_numbers_of_type" field.</summary>
  165. public const int AllExtensionNumbersOfTypeFieldNumber = 6;
  166. /// <summary>
  167. /// Finds the tag numbers used by all known extensions of the given message
  168. /// type, and appends them to ExtensionNumberResponse in an undefined order.
  169. /// Its corresponding method is best-effort: it's not guaranteed that the
  170. /// reflection service will implement this method, and it's not guaranteed
  171. /// that this method will provide all extensions. Returns
  172. /// StatusCode::UNIMPLEMENTED if it's not implemented.
  173. /// This field should be a fully-qualified type name. The format is
  174. /// &lt;package>.&lt;type>
  175. /// </summary>
  176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  177. public string AllExtensionNumbersOfType {
  178. get { return messageRequestCase_ == MessageRequestOneofCase.AllExtensionNumbersOfType ? (string) messageRequest_ : ""; }
  179. set {
  180. messageRequest_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  181. messageRequestCase_ = MessageRequestOneofCase.AllExtensionNumbersOfType;
  182. }
  183. }
  184. /// <summary>Field number for the "list_services" field.</summary>
  185. public const int ListServicesFieldNumber = 7;
  186. /// <summary>
  187. /// List the full names of registered services. The content will not be
  188. /// checked.
  189. /// </summary>
  190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  191. public string ListServices {
  192. get { return messageRequestCase_ == MessageRequestOneofCase.ListServices ? (string) messageRequest_ : ""; }
  193. set {
  194. messageRequest_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  195. messageRequestCase_ = MessageRequestOneofCase.ListServices;
  196. }
  197. }
  198. private object messageRequest_;
  199. /// <summary>Enum of possible cases for the "message_request" oneof.</summary>
  200. public enum MessageRequestOneofCase {
  201. None = 0,
  202. FileByFilename = 3,
  203. FileContainingSymbol = 4,
  204. FileContainingExtension = 5,
  205. AllExtensionNumbersOfType = 6,
  206. ListServices = 7,
  207. }
  208. private MessageRequestOneofCase messageRequestCase_ = MessageRequestOneofCase.None;
  209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  210. public MessageRequestOneofCase MessageRequestCase {
  211. get { return messageRequestCase_; }
  212. }
  213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  214. public void ClearMessageRequest() {
  215. messageRequestCase_ = MessageRequestOneofCase.None;
  216. messageRequest_ = null;
  217. }
  218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  219. public override bool Equals(object other) {
  220. return Equals(other as ServerReflectionRequest);
  221. }
  222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  223. public bool Equals(ServerReflectionRequest other) {
  224. if (ReferenceEquals(other, null)) {
  225. return false;
  226. }
  227. if (ReferenceEquals(other, this)) {
  228. return true;
  229. }
  230. if (Host != other.Host) return false;
  231. if (FileByFilename != other.FileByFilename) return false;
  232. if (FileContainingSymbol != other.FileContainingSymbol) return false;
  233. if (!object.Equals(FileContainingExtension, other.FileContainingExtension)) return false;
  234. if (AllExtensionNumbersOfType != other.AllExtensionNumbersOfType) return false;
  235. if (ListServices != other.ListServices) return false;
  236. if (MessageRequestCase != other.MessageRequestCase) return false;
  237. return true;
  238. }
  239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  240. public override int GetHashCode() {
  241. int hash = 1;
  242. if (Host.Length != 0) hash ^= Host.GetHashCode();
  243. if (messageRequestCase_ == MessageRequestOneofCase.FileByFilename) hash ^= FileByFilename.GetHashCode();
  244. if (messageRequestCase_ == MessageRequestOneofCase.FileContainingSymbol) hash ^= FileContainingSymbol.GetHashCode();
  245. if (messageRequestCase_ == MessageRequestOneofCase.FileContainingExtension) hash ^= FileContainingExtension.GetHashCode();
  246. if (messageRequestCase_ == MessageRequestOneofCase.AllExtensionNumbersOfType) hash ^= AllExtensionNumbersOfType.GetHashCode();
  247. if (messageRequestCase_ == MessageRequestOneofCase.ListServices) hash ^= ListServices.GetHashCode();
  248. hash ^= (int) messageRequestCase_;
  249. return hash;
  250. }
  251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  252. public override string ToString() {
  253. return pb::JsonFormatter.ToDiagnosticString(this);
  254. }
  255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  256. public void WriteTo(pb::CodedOutputStream output) {
  257. if (Host.Length != 0) {
  258. output.WriteRawTag(10);
  259. output.WriteString(Host);
  260. }
  261. if (messageRequestCase_ == MessageRequestOneofCase.FileByFilename) {
  262. output.WriteRawTag(26);
  263. output.WriteString(FileByFilename);
  264. }
  265. if (messageRequestCase_ == MessageRequestOneofCase.FileContainingSymbol) {
  266. output.WriteRawTag(34);
  267. output.WriteString(FileContainingSymbol);
  268. }
  269. if (messageRequestCase_ == MessageRequestOneofCase.FileContainingExtension) {
  270. output.WriteRawTag(42);
  271. output.WriteMessage(FileContainingExtension);
  272. }
  273. if (messageRequestCase_ == MessageRequestOneofCase.AllExtensionNumbersOfType) {
  274. output.WriteRawTag(50);
  275. output.WriteString(AllExtensionNumbersOfType);
  276. }
  277. if (messageRequestCase_ == MessageRequestOneofCase.ListServices) {
  278. output.WriteRawTag(58);
  279. output.WriteString(ListServices);
  280. }
  281. }
  282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  283. public int CalculateSize() {
  284. int size = 0;
  285. if (Host.Length != 0) {
  286. size += 1 + pb::CodedOutputStream.ComputeStringSize(Host);
  287. }
  288. if (messageRequestCase_ == MessageRequestOneofCase.FileByFilename) {
  289. size += 1 + pb::CodedOutputStream.ComputeStringSize(FileByFilename);
  290. }
  291. if (messageRequestCase_ == MessageRequestOneofCase.FileContainingSymbol) {
  292. size += 1 + pb::CodedOutputStream.ComputeStringSize(FileContainingSymbol);
  293. }
  294. if (messageRequestCase_ == MessageRequestOneofCase.FileContainingExtension) {
  295. size += 1 + pb::CodedOutputStream.ComputeMessageSize(FileContainingExtension);
  296. }
  297. if (messageRequestCase_ == MessageRequestOneofCase.AllExtensionNumbersOfType) {
  298. size += 1 + pb::CodedOutputStream.ComputeStringSize(AllExtensionNumbersOfType);
  299. }
  300. if (messageRequestCase_ == MessageRequestOneofCase.ListServices) {
  301. size += 1 + pb::CodedOutputStream.ComputeStringSize(ListServices);
  302. }
  303. return size;
  304. }
  305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  306. public void MergeFrom(ServerReflectionRequest other) {
  307. if (other == null) {
  308. return;
  309. }
  310. if (other.Host.Length != 0) {
  311. Host = other.Host;
  312. }
  313. switch (other.MessageRequestCase) {
  314. case MessageRequestOneofCase.FileByFilename:
  315. FileByFilename = other.FileByFilename;
  316. break;
  317. case MessageRequestOneofCase.FileContainingSymbol:
  318. FileContainingSymbol = other.FileContainingSymbol;
  319. break;
  320. case MessageRequestOneofCase.FileContainingExtension:
  321. if (FileContainingExtension == null) {
  322. FileContainingExtension = new global::Grpc.Reflection.V1Alpha.ExtensionRequest();
  323. }
  324. FileContainingExtension.MergeFrom(other.FileContainingExtension);
  325. break;
  326. case MessageRequestOneofCase.AllExtensionNumbersOfType:
  327. AllExtensionNumbersOfType = other.AllExtensionNumbersOfType;
  328. break;
  329. case MessageRequestOneofCase.ListServices:
  330. ListServices = other.ListServices;
  331. break;
  332. }
  333. }
  334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  335. public void MergeFrom(pb::CodedInputStream input) {
  336. uint tag;
  337. while ((tag = input.ReadTag()) != 0) {
  338. switch(tag) {
  339. default:
  340. input.SkipLastField();
  341. break;
  342. case 10: {
  343. Host = input.ReadString();
  344. break;
  345. }
  346. case 26: {
  347. FileByFilename = input.ReadString();
  348. break;
  349. }
  350. case 34: {
  351. FileContainingSymbol = input.ReadString();
  352. break;
  353. }
  354. case 42: {
  355. global::Grpc.Reflection.V1Alpha.ExtensionRequest subBuilder = new global::Grpc.Reflection.V1Alpha.ExtensionRequest();
  356. if (messageRequestCase_ == MessageRequestOneofCase.FileContainingExtension) {
  357. subBuilder.MergeFrom(FileContainingExtension);
  358. }
  359. input.ReadMessage(subBuilder);
  360. FileContainingExtension = subBuilder;
  361. break;
  362. }
  363. case 50: {
  364. AllExtensionNumbersOfType = input.ReadString();
  365. break;
  366. }
  367. case 58: {
  368. ListServices = input.ReadString();
  369. break;
  370. }
  371. }
  372. }
  373. }
  374. }
  375. /// <summary>
  376. /// The type name and extension number sent by the client when requesting
  377. /// file_containing_extension.
  378. /// </summary>
  379. public sealed partial class ExtensionRequest : pb::IMessage<ExtensionRequest> {
  380. private static readonly pb::MessageParser<ExtensionRequest> _parser = new pb::MessageParser<ExtensionRequest>(() => new ExtensionRequest());
  381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  382. public static pb::MessageParser<ExtensionRequest> Parser { get { return _parser; } }
  383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  384. public static pbr::MessageDescriptor Descriptor {
  385. get { return global::Grpc.Reflection.V1Alpha.ReflectionReflection.Descriptor.MessageTypes[1]; }
  386. }
  387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  388. pbr::MessageDescriptor pb::IMessage.Descriptor {
  389. get { return Descriptor; }
  390. }
  391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  392. public ExtensionRequest() {
  393. OnConstruction();
  394. }
  395. partial void OnConstruction();
  396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  397. public ExtensionRequest(ExtensionRequest other) : this() {
  398. containingType_ = other.containingType_;
  399. extensionNumber_ = other.extensionNumber_;
  400. }
  401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  402. public ExtensionRequest Clone() {
  403. return new ExtensionRequest(this);
  404. }
  405. /// <summary>Field number for the "containing_type" field.</summary>
  406. public const int ContainingTypeFieldNumber = 1;
  407. private string containingType_ = "";
  408. /// <summary>
  409. /// Fully-qualified type name. The format should be &lt;package>.&lt;type>
  410. /// </summary>
  411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  412. public string ContainingType {
  413. get { return containingType_; }
  414. set {
  415. containingType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  416. }
  417. }
  418. /// <summary>Field number for the "extension_number" field.</summary>
  419. public const int ExtensionNumberFieldNumber = 2;
  420. private int extensionNumber_;
  421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  422. public int ExtensionNumber {
  423. get { return extensionNumber_; }
  424. set {
  425. extensionNumber_ = value;
  426. }
  427. }
  428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  429. public override bool Equals(object other) {
  430. return Equals(other as ExtensionRequest);
  431. }
  432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  433. public bool Equals(ExtensionRequest other) {
  434. if (ReferenceEquals(other, null)) {
  435. return false;
  436. }
  437. if (ReferenceEquals(other, this)) {
  438. return true;
  439. }
  440. if (ContainingType != other.ContainingType) return false;
  441. if (ExtensionNumber != other.ExtensionNumber) return false;
  442. return true;
  443. }
  444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  445. public override int GetHashCode() {
  446. int hash = 1;
  447. if (ContainingType.Length != 0) hash ^= ContainingType.GetHashCode();
  448. if (ExtensionNumber != 0) hash ^= ExtensionNumber.GetHashCode();
  449. return hash;
  450. }
  451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  452. public override string ToString() {
  453. return pb::JsonFormatter.ToDiagnosticString(this);
  454. }
  455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  456. public void WriteTo(pb::CodedOutputStream output) {
  457. if (ContainingType.Length != 0) {
  458. output.WriteRawTag(10);
  459. output.WriteString(ContainingType);
  460. }
  461. if (ExtensionNumber != 0) {
  462. output.WriteRawTag(16);
  463. output.WriteInt32(ExtensionNumber);
  464. }
  465. }
  466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  467. public int CalculateSize() {
  468. int size = 0;
  469. if (ContainingType.Length != 0) {
  470. size += 1 + pb::CodedOutputStream.ComputeStringSize(ContainingType);
  471. }
  472. if (ExtensionNumber != 0) {
  473. size += 1 + pb::CodedOutputStream.ComputeInt32Size(ExtensionNumber);
  474. }
  475. return size;
  476. }
  477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  478. public void MergeFrom(ExtensionRequest other) {
  479. if (other == null) {
  480. return;
  481. }
  482. if (other.ContainingType.Length != 0) {
  483. ContainingType = other.ContainingType;
  484. }
  485. if (other.ExtensionNumber != 0) {
  486. ExtensionNumber = other.ExtensionNumber;
  487. }
  488. }
  489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  490. public void MergeFrom(pb::CodedInputStream input) {
  491. uint tag;
  492. while ((tag = input.ReadTag()) != 0) {
  493. switch(tag) {
  494. default:
  495. input.SkipLastField();
  496. break;
  497. case 10: {
  498. ContainingType = input.ReadString();
  499. break;
  500. }
  501. case 16: {
  502. ExtensionNumber = input.ReadInt32();
  503. break;
  504. }
  505. }
  506. }
  507. }
  508. }
  509. /// <summary>
  510. /// The message sent by the server to answer ServerReflectionInfo method.
  511. /// </summary>
  512. public sealed partial class ServerReflectionResponse : pb::IMessage<ServerReflectionResponse> {
  513. private static readonly pb::MessageParser<ServerReflectionResponse> _parser = new pb::MessageParser<ServerReflectionResponse>(() => new ServerReflectionResponse());
  514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  515. public static pb::MessageParser<ServerReflectionResponse> Parser { get { return _parser; } }
  516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  517. public static pbr::MessageDescriptor Descriptor {
  518. get { return global::Grpc.Reflection.V1Alpha.ReflectionReflection.Descriptor.MessageTypes[2]; }
  519. }
  520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  521. pbr::MessageDescriptor pb::IMessage.Descriptor {
  522. get { return Descriptor; }
  523. }
  524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  525. public ServerReflectionResponse() {
  526. OnConstruction();
  527. }
  528. partial void OnConstruction();
  529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  530. public ServerReflectionResponse(ServerReflectionResponse other) : this() {
  531. validHost_ = other.validHost_;
  532. OriginalRequest = other.originalRequest_ != null ? other.OriginalRequest.Clone() : null;
  533. switch (other.MessageResponseCase) {
  534. case MessageResponseOneofCase.FileDescriptorResponse:
  535. FileDescriptorResponse = other.FileDescriptorResponse.Clone();
  536. break;
  537. case MessageResponseOneofCase.AllExtensionNumbersResponse:
  538. AllExtensionNumbersResponse = other.AllExtensionNumbersResponse.Clone();
  539. break;
  540. case MessageResponseOneofCase.ListServicesResponse:
  541. ListServicesResponse = other.ListServicesResponse.Clone();
  542. break;
  543. case MessageResponseOneofCase.ErrorResponse:
  544. ErrorResponse = other.ErrorResponse.Clone();
  545. break;
  546. }
  547. }
  548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  549. public ServerReflectionResponse Clone() {
  550. return new ServerReflectionResponse(this);
  551. }
  552. /// <summary>Field number for the "valid_host" field.</summary>
  553. public const int ValidHostFieldNumber = 1;
  554. private string validHost_ = "";
  555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  556. public string ValidHost {
  557. get { return validHost_; }
  558. set {
  559. validHost_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  560. }
  561. }
  562. /// <summary>Field number for the "original_request" field.</summary>
  563. public const int OriginalRequestFieldNumber = 2;
  564. private global::Grpc.Reflection.V1Alpha.ServerReflectionRequest originalRequest_;
  565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  566. public global::Grpc.Reflection.V1Alpha.ServerReflectionRequest OriginalRequest {
  567. get { return originalRequest_; }
  568. set {
  569. originalRequest_ = value;
  570. }
  571. }
  572. /// <summary>Field number for the "file_descriptor_response" field.</summary>
  573. public const int FileDescriptorResponseFieldNumber = 4;
  574. /// <summary>
  575. /// This message is used to answer file_by_filename, file_containing_symbol,
  576. /// file_containing_extension requests with transitive dependencies. As
  577. /// the repeated label is not allowed in oneof fields, we use a
  578. /// FileDescriptorResponse message to encapsulate the repeated fields.
  579. /// The reflection service is allowed to avoid sending FileDescriptorProtos
  580. /// that were previously sent in response to earlier requests in the stream.
  581. /// </summary>
  582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  583. public global::Grpc.Reflection.V1Alpha.FileDescriptorResponse FileDescriptorResponse {
  584. get { return messageResponseCase_ == MessageResponseOneofCase.FileDescriptorResponse ? (global::Grpc.Reflection.V1Alpha.FileDescriptorResponse) messageResponse_ : null; }
  585. set {
  586. messageResponse_ = value;
  587. messageResponseCase_ = value == null ? MessageResponseOneofCase.None : MessageResponseOneofCase.FileDescriptorResponse;
  588. }
  589. }
  590. /// <summary>Field number for the "all_extension_numbers_response" field.</summary>
  591. public const int AllExtensionNumbersResponseFieldNumber = 5;
  592. /// <summary>
  593. /// This message is used to answer all_extension_numbers_of_type requst.
  594. /// </summary>
  595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  596. public global::Grpc.Reflection.V1Alpha.ExtensionNumberResponse AllExtensionNumbersResponse {
  597. get { return messageResponseCase_ == MessageResponseOneofCase.AllExtensionNumbersResponse ? (global::Grpc.Reflection.V1Alpha.ExtensionNumberResponse) messageResponse_ : null; }
  598. set {
  599. messageResponse_ = value;
  600. messageResponseCase_ = value == null ? MessageResponseOneofCase.None : MessageResponseOneofCase.AllExtensionNumbersResponse;
  601. }
  602. }
  603. /// <summary>Field number for the "list_services_response" field.</summary>
  604. public const int ListServicesResponseFieldNumber = 6;
  605. /// <summary>
  606. /// This message is used to answer list_services request.
  607. /// </summary>
  608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  609. public global::Grpc.Reflection.V1Alpha.ListServiceResponse ListServicesResponse {
  610. get { return messageResponseCase_ == MessageResponseOneofCase.ListServicesResponse ? (global::Grpc.Reflection.V1Alpha.ListServiceResponse) messageResponse_ : null; }
  611. set {
  612. messageResponse_ = value;
  613. messageResponseCase_ = value == null ? MessageResponseOneofCase.None : MessageResponseOneofCase.ListServicesResponse;
  614. }
  615. }
  616. /// <summary>Field number for the "error_response" field.</summary>
  617. public const int ErrorResponseFieldNumber = 7;
  618. /// <summary>
  619. /// This message is used when an error occurs.
  620. /// </summary>
  621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  622. public global::Grpc.Reflection.V1Alpha.ErrorResponse ErrorResponse {
  623. get { return messageResponseCase_ == MessageResponseOneofCase.ErrorResponse ? (global::Grpc.Reflection.V1Alpha.ErrorResponse) messageResponse_ : null; }
  624. set {
  625. messageResponse_ = value;
  626. messageResponseCase_ = value == null ? MessageResponseOneofCase.None : MessageResponseOneofCase.ErrorResponse;
  627. }
  628. }
  629. private object messageResponse_;
  630. /// <summary>Enum of possible cases for the "message_response" oneof.</summary>
  631. public enum MessageResponseOneofCase {
  632. None = 0,
  633. FileDescriptorResponse = 4,
  634. AllExtensionNumbersResponse = 5,
  635. ListServicesResponse = 6,
  636. ErrorResponse = 7,
  637. }
  638. private MessageResponseOneofCase messageResponseCase_ = MessageResponseOneofCase.None;
  639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  640. public MessageResponseOneofCase MessageResponseCase {
  641. get { return messageResponseCase_; }
  642. }
  643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  644. public void ClearMessageResponse() {
  645. messageResponseCase_ = MessageResponseOneofCase.None;
  646. messageResponse_ = null;
  647. }
  648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  649. public override bool Equals(object other) {
  650. return Equals(other as ServerReflectionResponse);
  651. }
  652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  653. public bool Equals(ServerReflectionResponse other) {
  654. if (ReferenceEquals(other, null)) {
  655. return false;
  656. }
  657. if (ReferenceEquals(other, this)) {
  658. return true;
  659. }
  660. if (ValidHost != other.ValidHost) return false;
  661. if (!object.Equals(OriginalRequest, other.OriginalRequest)) return false;
  662. if (!object.Equals(FileDescriptorResponse, other.FileDescriptorResponse)) return false;
  663. if (!object.Equals(AllExtensionNumbersResponse, other.AllExtensionNumbersResponse)) return false;
  664. if (!object.Equals(ListServicesResponse, other.ListServicesResponse)) return false;
  665. if (!object.Equals(ErrorResponse, other.ErrorResponse)) return false;
  666. if (MessageResponseCase != other.MessageResponseCase) return false;
  667. return true;
  668. }
  669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  670. public override int GetHashCode() {
  671. int hash = 1;
  672. if (ValidHost.Length != 0) hash ^= ValidHost.GetHashCode();
  673. if (originalRequest_ != null) hash ^= OriginalRequest.GetHashCode();
  674. if (messageResponseCase_ == MessageResponseOneofCase.FileDescriptorResponse) hash ^= FileDescriptorResponse.GetHashCode();
  675. if (messageResponseCase_ == MessageResponseOneofCase.AllExtensionNumbersResponse) hash ^= AllExtensionNumbersResponse.GetHashCode();
  676. if (messageResponseCase_ == MessageResponseOneofCase.ListServicesResponse) hash ^= ListServicesResponse.GetHashCode();
  677. if (messageResponseCase_ == MessageResponseOneofCase.ErrorResponse) hash ^= ErrorResponse.GetHashCode();
  678. hash ^= (int) messageResponseCase_;
  679. return hash;
  680. }
  681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  682. public override string ToString() {
  683. return pb::JsonFormatter.ToDiagnosticString(this);
  684. }
  685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  686. public void WriteTo(pb::CodedOutputStream output) {
  687. if (ValidHost.Length != 0) {
  688. output.WriteRawTag(10);
  689. output.WriteString(ValidHost);
  690. }
  691. if (originalRequest_ != null) {
  692. output.WriteRawTag(18);
  693. output.WriteMessage(OriginalRequest);
  694. }
  695. if (messageResponseCase_ == MessageResponseOneofCase.FileDescriptorResponse) {
  696. output.WriteRawTag(34);
  697. output.WriteMessage(FileDescriptorResponse);
  698. }
  699. if (messageResponseCase_ == MessageResponseOneofCase.AllExtensionNumbersResponse) {
  700. output.WriteRawTag(42);
  701. output.WriteMessage(AllExtensionNumbersResponse);
  702. }
  703. if (messageResponseCase_ == MessageResponseOneofCase.ListServicesResponse) {
  704. output.WriteRawTag(50);
  705. output.WriteMessage(ListServicesResponse);
  706. }
  707. if (messageResponseCase_ == MessageResponseOneofCase.ErrorResponse) {
  708. output.WriteRawTag(58);
  709. output.WriteMessage(ErrorResponse);
  710. }
  711. }
  712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  713. public int CalculateSize() {
  714. int size = 0;
  715. if (ValidHost.Length != 0) {
  716. size += 1 + pb::CodedOutputStream.ComputeStringSize(ValidHost);
  717. }
  718. if (originalRequest_ != null) {
  719. size += 1 + pb::CodedOutputStream.ComputeMessageSize(OriginalRequest);
  720. }
  721. if (messageResponseCase_ == MessageResponseOneofCase.FileDescriptorResponse) {
  722. size += 1 + pb::CodedOutputStream.ComputeMessageSize(FileDescriptorResponse);
  723. }
  724. if (messageResponseCase_ == MessageResponseOneofCase.AllExtensionNumbersResponse) {
  725. size += 1 + pb::CodedOutputStream.ComputeMessageSize(AllExtensionNumbersResponse);
  726. }
  727. if (messageResponseCase_ == MessageResponseOneofCase.ListServicesResponse) {
  728. size += 1 + pb::CodedOutputStream.ComputeMessageSize(ListServicesResponse);
  729. }
  730. if (messageResponseCase_ == MessageResponseOneofCase.ErrorResponse) {
  731. size += 1 + pb::CodedOutputStream.ComputeMessageSize(ErrorResponse);
  732. }
  733. return size;
  734. }
  735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  736. public void MergeFrom(ServerReflectionResponse other) {
  737. if (other == null) {
  738. return;
  739. }
  740. if (other.ValidHost.Length != 0) {
  741. ValidHost = other.ValidHost;
  742. }
  743. if (other.originalRequest_ != null) {
  744. if (originalRequest_ == null) {
  745. originalRequest_ = new global::Grpc.Reflection.V1Alpha.ServerReflectionRequest();
  746. }
  747. OriginalRequest.MergeFrom(other.OriginalRequest);
  748. }
  749. switch (other.MessageResponseCase) {
  750. case MessageResponseOneofCase.FileDescriptorResponse:
  751. if (FileDescriptorResponse == null) {
  752. FileDescriptorResponse = new global::Grpc.Reflection.V1Alpha.FileDescriptorResponse();
  753. }
  754. FileDescriptorResponse.MergeFrom(other.FileDescriptorResponse);
  755. break;
  756. case MessageResponseOneofCase.AllExtensionNumbersResponse:
  757. if (AllExtensionNumbersResponse == null) {
  758. AllExtensionNumbersResponse = new global::Grpc.Reflection.V1Alpha.ExtensionNumberResponse();
  759. }
  760. AllExtensionNumbersResponse.MergeFrom(other.AllExtensionNumbersResponse);
  761. break;
  762. case MessageResponseOneofCase.ListServicesResponse:
  763. if (ListServicesResponse == null) {
  764. ListServicesResponse = new global::Grpc.Reflection.V1Alpha.ListServiceResponse();
  765. }
  766. ListServicesResponse.MergeFrom(other.ListServicesResponse);
  767. break;
  768. case MessageResponseOneofCase.ErrorResponse:
  769. if (ErrorResponse == null) {
  770. ErrorResponse = new global::Grpc.Reflection.V1Alpha.ErrorResponse();
  771. }
  772. ErrorResponse.MergeFrom(other.ErrorResponse);
  773. break;
  774. }
  775. }
  776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  777. public void MergeFrom(pb::CodedInputStream input) {
  778. uint tag;
  779. while ((tag = input.ReadTag()) != 0) {
  780. switch(tag) {
  781. default:
  782. input.SkipLastField();
  783. break;
  784. case 10: {
  785. ValidHost = input.ReadString();
  786. break;
  787. }
  788. case 18: {
  789. if (originalRequest_ == null) {
  790. originalRequest_ = new global::Grpc.Reflection.V1Alpha.ServerReflectionRequest();
  791. }
  792. input.ReadMessage(originalRequest_);
  793. break;
  794. }
  795. case 34: {
  796. global::Grpc.Reflection.V1Alpha.FileDescriptorResponse subBuilder = new global::Grpc.Reflection.V1Alpha.FileDescriptorResponse();
  797. if (messageResponseCase_ == MessageResponseOneofCase.FileDescriptorResponse) {
  798. subBuilder.MergeFrom(FileDescriptorResponse);
  799. }
  800. input.ReadMessage(subBuilder);
  801. FileDescriptorResponse = subBuilder;
  802. break;
  803. }
  804. case 42: {
  805. global::Grpc.Reflection.V1Alpha.ExtensionNumberResponse subBuilder = new global::Grpc.Reflection.V1Alpha.ExtensionNumberResponse();
  806. if (messageResponseCase_ == MessageResponseOneofCase.AllExtensionNumbersResponse) {
  807. subBuilder.MergeFrom(AllExtensionNumbersResponse);
  808. }
  809. input.ReadMessage(subBuilder);
  810. AllExtensionNumbersResponse = subBuilder;
  811. break;
  812. }
  813. case 50: {
  814. global::Grpc.Reflection.V1Alpha.ListServiceResponse subBuilder = new global::Grpc.Reflection.V1Alpha.ListServiceResponse();
  815. if (messageResponseCase_ == MessageResponseOneofCase.ListServicesResponse) {
  816. subBuilder.MergeFrom(ListServicesResponse);
  817. }
  818. input.ReadMessage(subBuilder);
  819. ListServicesResponse = subBuilder;
  820. break;
  821. }
  822. case 58: {
  823. global::Grpc.Reflection.V1Alpha.ErrorResponse subBuilder = new global::Grpc.Reflection.V1Alpha.ErrorResponse();
  824. if (messageResponseCase_ == MessageResponseOneofCase.ErrorResponse) {
  825. subBuilder.MergeFrom(ErrorResponse);
  826. }
  827. input.ReadMessage(subBuilder);
  828. ErrorResponse = subBuilder;
  829. break;
  830. }
  831. }
  832. }
  833. }
  834. }
  835. /// <summary>
  836. /// Serialized FileDescriptorProto messages sent by the server answering
  837. /// a file_by_filename, file_containing_symbol, or file_containing_extension
  838. /// request.
  839. /// </summary>
  840. public sealed partial class FileDescriptorResponse : pb::IMessage<FileDescriptorResponse> {
  841. private static readonly pb::MessageParser<FileDescriptorResponse> _parser = new pb::MessageParser<FileDescriptorResponse>(() => new FileDescriptorResponse());
  842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  843. public static pb::MessageParser<FileDescriptorResponse> Parser { get { return _parser; } }
  844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  845. public static pbr::MessageDescriptor Descriptor {
  846. get { return global::Grpc.Reflection.V1Alpha.ReflectionReflection.Descriptor.MessageTypes[3]; }
  847. }
  848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  849. pbr::MessageDescriptor pb::IMessage.Descriptor {
  850. get { return Descriptor; }
  851. }
  852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  853. public FileDescriptorResponse() {
  854. OnConstruction();
  855. }
  856. partial void OnConstruction();
  857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  858. public FileDescriptorResponse(FileDescriptorResponse other) : this() {
  859. fileDescriptorProto_ = other.fileDescriptorProto_.Clone();
  860. }
  861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  862. public FileDescriptorResponse Clone() {
  863. return new FileDescriptorResponse(this);
  864. }
  865. /// <summary>Field number for the "file_descriptor_proto" field.</summary>
  866. public const int FileDescriptorProtoFieldNumber = 1;
  867. private static readonly pb::FieldCodec<pb::ByteString> _repeated_fileDescriptorProto_codec
  868. = pb::FieldCodec.ForBytes(10);
  869. private readonly pbc::RepeatedField<pb::ByteString> fileDescriptorProto_ = new pbc::RepeatedField<pb::ByteString>();
  870. /// <summary>
  871. /// Serialized FileDescriptorProto messages. We avoid taking a dependency on
  872. /// descriptor.proto, which uses proto2 only features, by making them opaque
  873. /// bytes instead.
  874. /// </summary>
  875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  876. public pbc::RepeatedField<pb::ByteString> FileDescriptorProto {
  877. get { return fileDescriptorProto_; }
  878. }
  879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  880. public override bool Equals(object other) {
  881. return Equals(other as FileDescriptorResponse);
  882. }
  883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  884. public bool Equals(FileDescriptorResponse other) {
  885. if (ReferenceEquals(other, null)) {
  886. return false;
  887. }
  888. if (ReferenceEquals(other, this)) {
  889. return true;
  890. }
  891. if(!fileDescriptorProto_.Equals(other.fileDescriptorProto_)) return false;
  892. return true;
  893. }
  894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  895. public override int GetHashCode() {
  896. int hash = 1;
  897. hash ^= fileDescriptorProto_.GetHashCode();
  898. return hash;
  899. }
  900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  901. public override string ToString() {
  902. return pb::JsonFormatter.ToDiagnosticString(this);
  903. }
  904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  905. public void WriteTo(pb::CodedOutputStream output) {
  906. fileDescriptorProto_.WriteTo(output, _repeated_fileDescriptorProto_codec);
  907. }
  908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  909. public int CalculateSize() {
  910. int size = 0;
  911. size += fileDescriptorProto_.CalculateSize(_repeated_fileDescriptorProto_codec);
  912. return size;
  913. }
  914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  915. public void MergeFrom(FileDescriptorResponse other) {
  916. if (other == null) {
  917. return;
  918. }
  919. fileDescriptorProto_.Add(other.fileDescriptorProto_);
  920. }
  921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  922. public void MergeFrom(pb::CodedInputStream input) {
  923. uint tag;
  924. while ((tag = input.ReadTag()) != 0) {
  925. switch(tag) {
  926. default:
  927. input.SkipLastField();
  928. break;
  929. case 10: {
  930. fileDescriptorProto_.AddEntriesFrom(input, _repeated_fileDescriptorProto_codec);
  931. break;
  932. }
  933. }
  934. }
  935. }
  936. }
  937. /// <summary>
  938. /// A list of extension numbers sent by the server answering
  939. /// all_extension_numbers_of_type request.
  940. /// </summary>
  941. public sealed partial class ExtensionNumberResponse : pb::IMessage<ExtensionNumberResponse> {
  942. private static readonly pb::MessageParser<ExtensionNumberResponse> _parser = new pb::MessageParser<ExtensionNumberResponse>(() => new ExtensionNumberResponse());
  943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  944. public static pb::MessageParser<ExtensionNumberResponse> Parser { get { return _parser; } }
  945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  946. public static pbr::MessageDescriptor Descriptor {
  947. get { return global::Grpc.Reflection.V1Alpha.ReflectionReflection.Descriptor.MessageTypes[4]; }
  948. }
  949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  950. pbr::MessageDescriptor pb::IMessage.Descriptor {
  951. get { return Descriptor; }
  952. }
  953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  954. public ExtensionNumberResponse() {
  955. OnConstruction();
  956. }
  957. partial void OnConstruction();
  958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  959. public ExtensionNumberResponse(ExtensionNumberResponse other) : this() {
  960. baseTypeName_ = other.baseTypeName_;
  961. extensionNumber_ = other.extensionNumber_.Clone();
  962. }
  963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  964. public ExtensionNumberResponse Clone() {
  965. return new ExtensionNumberResponse(this);
  966. }
  967. /// <summary>Field number for the "base_type_name" field.</summary>
  968. public const int BaseTypeNameFieldNumber = 1;
  969. private string baseTypeName_ = "";
  970. /// <summary>
  971. /// Full name of the base type, including the package name. The format
  972. /// is &lt;package>.&lt;type>
  973. /// </summary>
  974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  975. public string BaseTypeName {
  976. get { return baseTypeName_; }
  977. set {
  978. baseTypeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  979. }
  980. }
  981. /// <summary>Field number for the "extension_number" field.</summary>
  982. public const int ExtensionNumberFieldNumber = 2;
  983. private static readonly pb::FieldCodec<int> _repeated_extensionNumber_codec
  984. = pb::FieldCodec.ForInt32(18);
  985. private readonly pbc::RepeatedField<int> extensionNumber_ = new pbc::RepeatedField<int>();
  986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  987. public pbc::RepeatedField<int> ExtensionNumber {
  988. get { return extensionNumber_; }
  989. }
  990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  991. public override bool Equals(object other) {
  992. return Equals(other as ExtensionNumberResponse);
  993. }
  994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  995. public bool Equals(ExtensionNumberResponse other) {
  996. if (ReferenceEquals(other, null)) {
  997. return false;
  998. }
  999. if (ReferenceEquals(other, this)) {
  1000. return true;
  1001. }
  1002. if (BaseTypeName != other.BaseTypeName) return false;
  1003. if(!extensionNumber_.Equals(other.extensionNumber_)) return false;
  1004. return true;
  1005. }
  1006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1007. public override int GetHashCode() {
  1008. int hash = 1;
  1009. if (BaseTypeName.Length != 0) hash ^= BaseTypeName.GetHashCode();
  1010. hash ^= extensionNumber_.GetHashCode();
  1011. return hash;
  1012. }
  1013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1014. public override string ToString() {
  1015. return pb::JsonFormatter.ToDiagnosticString(this);
  1016. }
  1017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1018. public void WriteTo(pb::CodedOutputStream output) {
  1019. if (BaseTypeName.Length != 0) {
  1020. output.WriteRawTag(10);
  1021. output.WriteString(BaseTypeName);
  1022. }
  1023. extensionNumber_.WriteTo(output, _repeated_extensionNumber_codec);
  1024. }
  1025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1026. public int CalculateSize() {
  1027. int size = 0;
  1028. if (BaseTypeName.Length != 0) {
  1029. size += 1 + pb::CodedOutputStream.ComputeStringSize(BaseTypeName);
  1030. }
  1031. size += extensionNumber_.CalculateSize(_repeated_extensionNumber_codec);
  1032. return size;
  1033. }
  1034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1035. public void MergeFrom(ExtensionNumberResponse other) {
  1036. if (other == null) {
  1037. return;
  1038. }
  1039. if (other.BaseTypeName.Length != 0) {
  1040. BaseTypeName = other.BaseTypeName;
  1041. }
  1042. extensionNumber_.Add(other.extensionNumber_);
  1043. }
  1044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1045. public void MergeFrom(pb::CodedInputStream input) {
  1046. uint tag;
  1047. while ((tag = input.ReadTag()) != 0) {
  1048. switch(tag) {
  1049. default:
  1050. input.SkipLastField();
  1051. break;
  1052. case 10: {
  1053. BaseTypeName = input.ReadString();
  1054. break;
  1055. }
  1056. case 18:
  1057. case 16: {
  1058. extensionNumber_.AddEntriesFrom(input, _repeated_extensionNumber_codec);
  1059. break;
  1060. }
  1061. }
  1062. }
  1063. }
  1064. }
  1065. /// <summary>
  1066. /// A list of ServiceResponse sent by the server answering list_services request.
  1067. /// </summary>
  1068. public sealed partial class ListServiceResponse : pb::IMessage<ListServiceResponse> {
  1069. private static readonly pb::MessageParser<ListServiceResponse> _parser = new pb::MessageParser<ListServiceResponse>(() => new ListServiceResponse());
  1070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1071. public static pb::MessageParser<ListServiceResponse> Parser { get { return _parser; } }
  1072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1073. public static pbr::MessageDescriptor Descriptor {
  1074. get { return global::Grpc.Reflection.V1Alpha.ReflectionReflection.Descriptor.MessageTypes[5]; }
  1075. }
  1076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1077. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1078. get { return Descriptor; }
  1079. }
  1080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1081. public ListServiceResponse() {
  1082. OnConstruction();
  1083. }
  1084. partial void OnConstruction();
  1085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1086. public ListServiceResponse(ListServiceResponse other) : this() {
  1087. service_ = other.service_.Clone();
  1088. }
  1089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1090. public ListServiceResponse Clone() {
  1091. return new ListServiceResponse(this);
  1092. }
  1093. /// <summary>Field number for the "service" field.</summary>
  1094. public const int ServiceFieldNumber = 1;
  1095. private static readonly pb::FieldCodec<global::Grpc.Reflection.V1Alpha.ServiceResponse> _repeated_service_codec
  1096. = pb::FieldCodec.ForMessage(10, global::Grpc.Reflection.V1Alpha.ServiceResponse.Parser);
  1097. private readonly pbc::RepeatedField<global::Grpc.Reflection.V1Alpha.ServiceResponse> service_ = new pbc::RepeatedField<global::Grpc.Reflection.V1Alpha.ServiceResponse>();
  1098. /// <summary>
  1099. /// The information of each service may be expanded in the future, so we use
  1100. /// ServiceResponse message to encapsulate it.
  1101. /// </summary>
  1102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1103. public pbc::RepeatedField<global::Grpc.Reflection.V1Alpha.ServiceResponse> Service {
  1104. get { return service_; }
  1105. }
  1106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1107. public override bool Equals(object other) {
  1108. return Equals(other as ListServiceResponse);
  1109. }
  1110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1111. public bool Equals(ListServiceResponse other) {
  1112. if (ReferenceEquals(other, null)) {
  1113. return false;
  1114. }
  1115. if (ReferenceEquals(other, this)) {
  1116. return true;
  1117. }
  1118. if(!service_.Equals(other.service_)) return false;
  1119. return true;
  1120. }
  1121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1122. public override int GetHashCode() {
  1123. int hash = 1;
  1124. hash ^= service_.GetHashCode();
  1125. return hash;
  1126. }
  1127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1128. public override string ToString() {
  1129. return pb::JsonFormatter.ToDiagnosticString(this);
  1130. }
  1131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1132. public void WriteTo(pb::CodedOutputStream output) {
  1133. service_.WriteTo(output, _repeated_service_codec);
  1134. }
  1135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1136. public int CalculateSize() {
  1137. int size = 0;
  1138. size += service_.CalculateSize(_repeated_service_codec);
  1139. return size;
  1140. }
  1141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1142. public void MergeFrom(ListServiceResponse other) {
  1143. if (other == null) {
  1144. return;
  1145. }
  1146. service_.Add(other.service_);
  1147. }
  1148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1149. public void MergeFrom(pb::CodedInputStream input) {
  1150. uint tag;
  1151. while ((tag = input.ReadTag()) != 0) {
  1152. switch(tag) {
  1153. default:
  1154. input.SkipLastField();
  1155. break;
  1156. case 10: {
  1157. service_.AddEntriesFrom(input, _repeated_service_codec);
  1158. break;
  1159. }
  1160. }
  1161. }
  1162. }
  1163. }
  1164. /// <summary>
  1165. /// The information of a single service used by ListServiceResponse to answer
  1166. /// list_services request.
  1167. /// </summary>
  1168. public sealed partial class ServiceResponse : pb::IMessage<ServiceResponse> {
  1169. private static readonly pb::MessageParser<ServiceResponse> _parser = new pb::MessageParser<ServiceResponse>(() => new ServiceResponse());
  1170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1171. public static pb::MessageParser<ServiceResponse> Parser { get { return _parser; } }
  1172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1173. public static pbr::MessageDescriptor Descriptor {
  1174. get { return global::Grpc.Reflection.V1Alpha.ReflectionReflection.Descriptor.MessageTypes[6]; }
  1175. }
  1176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1177. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1178. get { return Descriptor; }
  1179. }
  1180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1181. public ServiceResponse() {
  1182. OnConstruction();
  1183. }
  1184. partial void OnConstruction();
  1185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1186. public ServiceResponse(ServiceResponse other) : this() {
  1187. name_ = other.name_;
  1188. }
  1189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1190. public ServiceResponse Clone() {
  1191. return new ServiceResponse(this);
  1192. }
  1193. /// <summary>Field number for the "name" field.</summary>
  1194. public const int NameFieldNumber = 1;
  1195. private string name_ = "";
  1196. /// <summary>
  1197. /// Full name of a registered service, including its package name. The format
  1198. /// is &lt;package>.&lt;service>
  1199. /// </summary>
  1200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1201. public string Name {
  1202. get { return name_; }
  1203. set {
  1204. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1205. }
  1206. }
  1207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1208. public override bool Equals(object other) {
  1209. return Equals(other as ServiceResponse);
  1210. }
  1211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1212. public bool Equals(ServiceResponse other) {
  1213. if (ReferenceEquals(other, null)) {
  1214. return false;
  1215. }
  1216. if (ReferenceEquals(other, this)) {
  1217. return true;
  1218. }
  1219. if (Name != other.Name) return false;
  1220. return true;
  1221. }
  1222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1223. public override int GetHashCode() {
  1224. int hash = 1;
  1225. if (Name.Length != 0) hash ^= Name.GetHashCode();
  1226. return hash;
  1227. }
  1228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1229. public override string ToString() {
  1230. return pb::JsonFormatter.ToDiagnosticString(this);
  1231. }
  1232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1233. public void WriteTo(pb::CodedOutputStream output) {
  1234. if (Name.Length != 0) {
  1235. output.WriteRawTag(10);
  1236. output.WriteString(Name);
  1237. }
  1238. }
  1239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1240. public int CalculateSize() {
  1241. int size = 0;
  1242. if (Name.Length != 0) {
  1243. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  1244. }
  1245. return size;
  1246. }
  1247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1248. public void MergeFrom(ServiceResponse other) {
  1249. if (other == null) {
  1250. return;
  1251. }
  1252. if (other.Name.Length != 0) {
  1253. Name = other.Name;
  1254. }
  1255. }
  1256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1257. public void MergeFrom(pb::CodedInputStream input) {
  1258. uint tag;
  1259. while ((tag = input.ReadTag()) != 0) {
  1260. switch(tag) {
  1261. default:
  1262. input.SkipLastField();
  1263. break;
  1264. case 10: {
  1265. Name = input.ReadString();
  1266. break;
  1267. }
  1268. }
  1269. }
  1270. }
  1271. }
  1272. /// <summary>
  1273. /// The error code and error message sent by the server when an error occurs.
  1274. /// </summary>
  1275. public sealed partial class ErrorResponse : pb::IMessage<ErrorResponse> {
  1276. private static readonly pb::MessageParser<ErrorResponse> _parser = new pb::MessageParser<ErrorResponse>(() => new ErrorResponse());
  1277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1278. public static pb::MessageParser<ErrorResponse> Parser { get { return _parser; } }
  1279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1280. public static pbr::MessageDescriptor Descriptor {
  1281. get { return global::Grpc.Reflection.V1Alpha.ReflectionReflection.Descriptor.MessageTypes[7]; }
  1282. }
  1283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1284. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1285. get { return Descriptor; }
  1286. }
  1287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1288. public ErrorResponse() {
  1289. OnConstruction();
  1290. }
  1291. partial void OnConstruction();
  1292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1293. public ErrorResponse(ErrorResponse other) : this() {
  1294. errorCode_ = other.errorCode_;
  1295. errorMessage_ = other.errorMessage_;
  1296. }
  1297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1298. public ErrorResponse Clone() {
  1299. return new ErrorResponse(this);
  1300. }
  1301. /// <summary>Field number for the "error_code" field.</summary>
  1302. public const int ErrorCodeFieldNumber = 1;
  1303. private int errorCode_;
  1304. /// <summary>
  1305. /// This field uses the error codes defined in grpc::StatusCode.
  1306. /// </summary>
  1307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1308. public int ErrorCode {
  1309. get { return errorCode_; }
  1310. set {
  1311. errorCode_ = value;
  1312. }
  1313. }
  1314. /// <summary>Field number for the "error_message" field.</summary>
  1315. public const int ErrorMessageFieldNumber = 2;
  1316. private string errorMessage_ = "";
  1317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1318. public string ErrorMessage {
  1319. get { return errorMessage_; }
  1320. set {
  1321. errorMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1322. }
  1323. }
  1324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1325. public override bool Equals(object other) {
  1326. return Equals(other as ErrorResponse);
  1327. }
  1328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1329. public bool Equals(ErrorResponse other) {
  1330. if (ReferenceEquals(other, null)) {
  1331. return false;
  1332. }
  1333. if (ReferenceEquals(other, this)) {
  1334. return true;
  1335. }
  1336. if (ErrorCode != other.ErrorCode) return false;
  1337. if (ErrorMessage != other.ErrorMessage) return false;
  1338. return true;
  1339. }
  1340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1341. public override int GetHashCode() {
  1342. int hash = 1;
  1343. if (ErrorCode != 0) hash ^= ErrorCode.GetHashCode();
  1344. if (ErrorMessage.Length != 0) hash ^= ErrorMessage.GetHashCode();
  1345. return hash;
  1346. }
  1347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1348. public override string ToString() {
  1349. return pb::JsonFormatter.ToDiagnosticString(this);
  1350. }
  1351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1352. public void WriteTo(pb::CodedOutputStream output) {
  1353. if (ErrorCode != 0) {
  1354. output.WriteRawTag(8);
  1355. output.WriteInt32(ErrorCode);
  1356. }
  1357. if (ErrorMessage.Length != 0) {
  1358. output.WriteRawTag(18);
  1359. output.WriteString(ErrorMessage);
  1360. }
  1361. }
  1362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1363. public int CalculateSize() {
  1364. int size = 0;
  1365. if (ErrorCode != 0) {
  1366. size += 1 + pb::CodedOutputStream.ComputeInt32Size(ErrorCode);
  1367. }
  1368. if (ErrorMessage.Length != 0) {
  1369. size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorMessage);
  1370. }
  1371. return size;
  1372. }
  1373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1374. public void MergeFrom(ErrorResponse other) {
  1375. if (other == null) {
  1376. return;
  1377. }
  1378. if (other.ErrorCode != 0) {
  1379. ErrorCode = other.ErrorCode;
  1380. }
  1381. if (other.ErrorMessage.Length != 0) {
  1382. ErrorMessage = other.ErrorMessage;
  1383. }
  1384. }
  1385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1386. public void MergeFrom(pb::CodedInputStream input) {
  1387. uint tag;
  1388. while ((tag = input.ReadTag()) != 0) {
  1389. switch(tag) {
  1390. default:
  1391. input.SkipLastField();
  1392. break;
  1393. case 8: {
  1394. ErrorCode = input.ReadInt32();
  1395. break;
  1396. }
  1397. case 18: {
  1398. ErrorMessage = input.ReadString();
  1399. break;
  1400. }
  1401. }
  1402. }
  1403. }
  1404. }
  1405. #endregion
  1406. }
  1407. #endregion Designer generated code