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