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