2 // Generated by the protocol buffer compiler. DO NOT EDIT!
3 // source: grpc/reflection/v1alpha/reflection.proto
5 #pragma warning disable 1591, 0612, 3021
6 #region Designer generated code
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 {
14 /// <summary>Holder for reflection information generated from grpc/reflection/v1alpha/reflection.proto</summary>
15 public static partial class ReflectionReflection {
18 /// <summary>File descriptor for grpc/reflection/v1alpha/reflection.proto</summary>
19 public static pbr::FileDescriptor Descriptor {
20 get { return descriptor; }
22 private static pbr::FileDescriptor descriptor;
24 static ReflectionReflection() {
25 byte[] descriptorData = global::System.Convert.FromBase64String(
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)
75 /// The message sent by the client when calling ServerReflectionInfo method.
77 public sealed partial class ServerReflectionRequest : pb::IMessage<ServerReflectionRequest>
78 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
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; } }
87 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
88 public static pbr::MessageDescriptor Descriptor {
89 get { return global::Grpc.Reflection.V1Alpha.ReflectionReflection.Descriptor.MessageTypes[0]; }
92 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
93 pbr::MessageDescriptor pb::IMessage.Descriptor {
94 get { return Descriptor; }
97 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
98 public ServerReflectionRequest() {
102 partial void OnConstruction();
104 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
105 public ServerReflectionRequest(ServerReflectionRequest other) : this() {
107 switch (other.MessageRequestCase) {
108 case MessageRequestOneofCase.FileByFilename:
109 FileByFilename = other.FileByFilename;
111 case MessageRequestOneofCase.FileContainingSymbol:
112 FileContainingSymbol = other.FileContainingSymbol;
114 case MessageRequestOneofCase.FileContainingExtension:
115 FileContainingExtension = other.FileContainingExtension.Clone();
117 case MessageRequestOneofCase.AllExtensionNumbersOfType:
118 AllExtensionNumbersOfType = other.AllExtensionNumbersOfType;
120 case MessageRequestOneofCase.ListServices:
121 ListServices = other.ListServices;
125 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
128 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
129 public ServerReflectionRequest Clone() {
130 return new ServerReflectionRequest(this);
133 /// <summary>Field number for the "host" field.</summary>
134 public const int HostFieldNumber = 1;
135 private string host_ = "";
136 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
138 get { return host_; }
140 host_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
144 /// <summary>Field number for the "file_by_filename" field.</summary>
145 public const int FileByFilenameFieldNumber = 3;
147 /// Find a proto file by the file name.
149 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
150 public string FileByFilename {
151 get { return messageRequestCase_ == MessageRequestOneofCase.FileByFilename ? (string) messageRequest_ : ""; }
153 messageRequest_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
154 messageRequestCase_ = MessageRequestOneofCase.FileByFilename;
158 /// <summary>Field number for the "file_containing_symbol" field.</summary>
159 public const int FileContainingSymbolFieldNumber = 4;
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. <package>.<service>[.<method>] or <package>.<type>).
165 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
166 public string FileContainingSymbol {
167 get { return messageRequestCase_ == MessageRequestOneofCase.FileContainingSymbol ? (string) messageRequest_ : ""; }
169 messageRequest_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
170 messageRequestCase_ = MessageRequestOneofCase.FileContainingSymbol;
174 /// <summary>Field number for the "file_containing_extension" field.</summary>
175 public const int FileContainingExtensionFieldNumber = 5;
177 /// Find the proto file which defines an extension extending the given
178 /// message type with the given field number.
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; }
184 messageRequest_ = value;
185 messageRequestCase_ = value == null ? MessageRequestOneofCase.None : MessageRequestOneofCase.FileContainingExtension;
189 /// <summary>Field number for the "all_extension_numbers_of_type" field.</summary>
190 public const int AllExtensionNumbersOfTypeFieldNumber = 6;
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 /// <package>.<type>
201 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
202 public string AllExtensionNumbersOfType {
203 get { return messageRequestCase_ == MessageRequestOneofCase.AllExtensionNumbersOfType ? (string) messageRequest_ : ""; }
205 messageRequest_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
206 messageRequestCase_ = MessageRequestOneofCase.AllExtensionNumbersOfType;
210 /// <summary>Field number for the "list_services" field.</summary>
211 public const int ListServicesFieldNumber = 7;
213 /// List the full names of registered services. The content will not be
216 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
217 public string ListServices {
218 get { return messageRequestCase_ == MessageRequestOneofCase.ListServices ? (string) messageRequest_ : ""; }
220 messageRequest_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
221 messageRequestCase_ = MessageRequestOneofCase.ListServices;
225 private object messageRequest_;
226 /// <summary>Enum of possible cases for the "message_request" oneof.</summary>
227 public enum MessageRequestOneofCase {
230 FileContainingSymbol = 4,
231 FileContainingExtension = 5,
232 AllExtensionNumbersOfType = 6,
235 private MessageRequestOneofCase messageRequestCase_ = MessageRequestOneofCase.None;
236 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
237 public MessageRequestOneofCase MessageRequestCase {
238 get { return messageRequestCase_; }
241 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
242 public void ClearMessageRequest() {
243 messageRequestCase_ = MessageRequestOneofCase.None;
244 messageRequest_ = null;
247 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
248 public override bool Equals(object other) {
249 return Equals(other as ServerReflectionRequest);
252 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
253 public bool Equals(ServerReflectionRequest other) {
254 if (ReferenceEquals(other, null)) {
257 if (ReferenceEquals(other, this)) {
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);
270 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
271 public override int GetHashCode() {
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();
286 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
287 public override string ToString() {
288 return pb::JsonFormatter.ToDiagnosticString(this);
291 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
292 public void WriteTo(pb::CodedOutputStream output) {
293 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
294 output.WriteRawMessage(this);
296 if (Host.Length != 0) {
297 output.WriteRawTag(10);
298 output.WriteString(Host);
300 if (messageRequestCase_ == MessageRequestOneofCase.FileByFilename) {
301 output.WriteRawTag(26);
302 output.WriteString(FileByFilename);
304 if (messageRequestCase_ == MessageRequestOneofCase.FileContainingSymbol) {
305 output.WriteRawTag(34);
306 output.WriteString(FileContainingSymbol);
308 if (messageRequestCase_ == MessageRequestOneofCase.FileContainingExtension) {
309 output.WriteRawTag(42);
310 output.WriteMessage(FileContainingExtension);
312 if (messageRequestCase_ == MessageRequestOneofCase.AllExtensionNumbersOfType) {
313 output.WriteRawTag(50);
314 output.WriteString(AllExtensionNumbersOfType);
316 if (messageRequestCase_ == MessageRequestOneofCase.ListServices) {
317 output.WriteRawTag(58);
318 output.WriteString(ListServices);
320 if (_unknownFields != null) {
321 _unknownFields.WriteTo(output);
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);
333 if (messageRequestCase_ == MessageRequestOneofCase.FileByFilename) {
334 output.WriteRawTag(26);
335 output.WriteString(FileByFilename);
337 if (messageRequestCase_ == MessageRequestOneofCase.FileContainingSymbol) {
338 output.WriteRawTag(34);
339 output.WriteString(FileContainingSymbol);
341 if (messageRequestCase_ == MessageRequestOneofCase.FileContainingExtension) {
342 output.WriteRawTag(42);
343 output.WriteMessage(FileContainingExtension);
345 if (messageRequestCase_ == MessageRequestOneofCase.AllExtensionNumbersOfType) {
346 output.WriteRawTag(50);
347 output.WriteString(AllExtensionNumbersOfType);
349 if (messageRequestCase_ == MessageRequestOneofCase.ListServices) {
350 output.WriteRawTag(58);
351 output.WriteString(ListServices);
353 if (_unknownFields != null) {
354 _unknownFields.WriteTo(ref output);
359 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
360 public int CalculateSize() {
362 if (Host.Length != 0) {
363 size += 1 + pb::CodedOutputStream.ComputeStringSize(Host);
365 if (messageRequestCase_ == MessageRequestOneofCase.FileByFilename) {
366 size += 1 + pb::CodedOutputStream.ComputeStringSize(FileByFilename);
368 if (messageRequestCase_ == MessageRequestOneofCase.FileContainingSymbol) {
369 size += 1 + pb::CodedOutputStream.ComputeStringSize(FileContainingSymbol);
371 if (messageRequestCase_ == MessageRequestOneofCase.FileContainingExtension) {
372 size += 1 + pb::CodedOutputStream.ComputeMessageSize(FileContainingExtension);
374 if (messageRequestCase_ == MessageRequestOneofCase.AllExtensionNumbersOfType) {
375 size += 1 + pb::CodedOutputStream.ComputeStringSize(AllExtensionNumbersOfType);
377 if (messageRequestCase_ == MessageRequestOneofCase.ListServices) {
378 size += 1 + pb::CodedOutputStream.ComputeStringSize(ListServices);
380 if (_unknownFields != null) {
381 size += _unknownFields.CalculateSize();
386 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
387 public void MergeFrom(ServerReflectionRequest other) {
391 if (other.Host.Length != 0) {
394 switch (other.MessageRequestCase) {
395 case MessageRequestOneofCase.FileByFilename:
396 FileByFilename = other.FileByFilename;
398 case MessageRequestOneofCase.FileContainingSymbol:
399 FileContainingSymbol = other.FileContainingSymbol;
401 case MessageRequestOneofCase.FileContainingExtension:
402 if (FileContainingExtension == null) {
403 FileContainingExtension = new global::Grpc.Reflection.V1Alpha.ExtensionRequest();
405 FileContainingExtension.MergeFrom(other.FileContainingExtension);
407 case MessageRequestOneofCase.AllExtensionNumbersOfType:
408 AllExtensionNumbersOfType = other.AllExtensionNumbersOfType;
410 case MessageRequestOneofCase.ListServices:
411 ListServices = other.ListServices;
415 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
418 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
419 public void MergeFrom(pb::CodedInputStream input) {
420 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
421 input.ReadRawMessage(this);
424 while ((tag = input.ReadTag()) != 0) {
427 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
430 Host = input.ReadString();
434 FileByFilename = input.ReadString();
438 FileContainingSymbol = input.ReadString();
442 global::Grpc.Reflection.V1Alpha.ExtensionRequest subBuilder = new global::Grpc.Reflection.V1Alpha.ExtensionRequest();
443 if (messageRequestCase_ == MessageRequestOneofCase.FileContainingExtension) {
444 subBuilder.MergeFrom(FileContainingExtension);
446 input.ReadMessage(subBuilder);
447 FileContainingExtension = subBuilder;
451 AllExtensionNumbersOfType = input.ReadString();
455 ListServices = input.ReadString();
463 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
464 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
465 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
467 while ((tag = input.ReadTag()) != 0) {
470 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
473 Host = input.ReadString();
477 FileByFilename = input.ReadString();
481 FileContainingSymbol = input.ReadString();
485 global::Grpc.Reflection.V1Alpha.ExtensionRequest subBuilder = new global::Grpc.Reflection.V1Alpha.ExtensionRequest();
486 if (messageRequestCase_ == MessageRequestOneofCase.FileContainingExtension) {
487 subBuilder.MergeFrom(FileContainingExtension);
489 input.ReadMessage(subBuilder);
490 FileContainingExtension = subBuilder;
494 AllExtensionNumbersOfType = input.ReadString();
498 ListServices = input.ReadString();
509 /// The type name and extension number sent by the client when requesting
510 /// file_containing_extension.
512 public sealed partial class ExtensionRequest : pb::IMessage<ExtensionRequest>
513 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
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; } }
522 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
523 public static pbr::MessageDescriptor Descriptor {
524 get { return global::Grpc.Reflection.V1Alpha.ReflectionReflection.Descriptor.MessageTypes[1]; }
527 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
528 pbr::MessageDescriptor pb::IMessage.Descriptor {
529 get { return Descriptor; }
532 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
533 public ExtensionRequest() {
537 partial void OnConstruction();
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);
546 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
547 public ExtensionRequest Clone() {
548 return new ExtensionRequest(this);
551 /// <summary>Field number for the "containing_type" field.</summary>
552 public const int ContainingTypeFieldNumber = 1;
553 private string containingType_ = "";
555 /// Fully-qualified type name. The format should be <package>.<type>
557 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
558 public string ContainingType {
559 get { return containingType_; }
561 containingType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
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_; }
572 extensionNumber_ = value;
576 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
577 public override bool Equals(object other) {
578 return Equals(other as ExtensionRequest);
581 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
582 public bool Equals(ExtensionRequest other) {
583 if (ReferenceEquals(other, null)) {
586 if (ReferenceEquals(other, this)) {
589 if (ContainingType != other.ContainingType) return false;
590 if (ExtensionNumber != other.ExtensionNumber) return false;
591 return Equals(_unknownFields, other._unknownFields);
594 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
595 public override int GetHashCode() {
597 if (ContainingType.Length != 0) hash ^= ContainingType.GetHashCode();
598 if (ExtensionNumber != 0) hash ^= ExtensionNumber.GetHashCode();
599 if (_unknownFields != null) {
600 hash ^= _unknownFields.GetHashCode();
605 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
606 public override string ToString() {
607 return pb::JsonFormatter.ToDiagnosticString(this);
610 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
611 public void WriteTo(pb::CodedOutputStream output) {
612 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
613 output.WriteRawMessage(this);
615 if (ContainingType.Length != 0) {
616 output.WriteRawTag(10);
617 output.WriteString(ContainingType);
619 if (ExtensionNumber != 0) {
620 output.WriteRawTag(16);
621 output.WriteInt32(ExtensionNumber);
623 if (_unknownFields != null) {
624 _unknownFields.WriteTo(output);
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);
636 if (ExtensionNumber != 0) {
637 output.WriteRawTag(16);
638 output.WriteInt32(ExtensionNumber);
640 if (_unknownFields != null) {
641 _unknownFields.WriteTo(ref output);
646 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
647 public int CalculateSize() {
649 if (ContainingType.Length != 0) {
650 size += 1 + pb::CodedOutputStream.ComputeStringSize(ContainingType);
652 if (ExtensionNumber != 0) {
653 size += 1 + pb::CodedOutputStream.ComputeInt32Size(ExtensionNumber);
655 if (_unknownFields != null) {
656 size += _unknownFields.CalculateSize();
661 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
662 public void MergeFrom(ExtensionRequest other) {
666 if (other.ContainingType.Length != 0) {
667 ContainingType = other.ContainingType;
669 if (other.ExtensionNumber != 0) {
670 ExtensionNumber = other.ExtensionNumber;
672 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
675 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
676 public void MergeFrom(pb::CodedInputStream input) {
677 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
678 input.ReadRawMessage(this);
681 while ((tag = input.ReadTag()) != 0) {
684 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
687 ContainingType = input.ReadString();
691 ExtensionNumber = input.ReadInt32();
699 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
700 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
701 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
703 while ((tag = input.ReadTag()) != 0) {
706 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
709 ContainingType = input.ReadString();
713 ExtensionNumber = input.ReadInt32();
724 /// The message sent by the server to answer ServerReflectionInfo method.
726 public sealed partial class ServerReflectionResponse : pb::IMessage<ServerReflectionResponse>
727 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
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; } }
736 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
737 public static pbr::MessageDescriptor Descriptor {
738 get { return global::Grpc.Reflection.V1Alpha.ReflectionReflection.Descriptor.MessageTypes[2]; }
741 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
742 pbr::MessageDescriptor pb::IMessage.Descriptor {
743 get { return Descriptor; }
746 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
747 public ServerReflectionResponse() {
751 partial void OnConstruction();
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();
761 case MessageResponseOneofCase.AllExtensionNumbersResponse:
762 AllExtensionNumbersResponse = other.AllExtensionNumbersResponse.Clone();
764 case MessageResponseOneofCase.ListServicesResponse:
765 ListServicesResponse = other.ListServicesResponse.Clone();
767 case MessageResponseOneofCase.ErrorResponse:
768 ErrorResponse = other.ErrorResponse.Clone();
772 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
775 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
776 public ServerReflectionResponse Clone() {
777 return new ServerReflectionResponse(this);
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_; }
787 validHost_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
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_; }
798 originalRequest_ = value;
802 /// <summary>Field number for the "file_descriptor_response" field.</summary>
803 public const int FileDescriptorResponseFieldNumber = 4;
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.
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; }
816 messageResponse_ = value;
817 messageResponseCase_ = value == null ? MessageResponseOneofCase.None : MessageResponseOneofCase.FileDescriptorResponse;
821 /// <summary>Field number for the "all_extension_numbers_response" field.</summary>
822 public const int AllExtensionNumbersResponseFieldNumber = 5;
824 /// This message is used to answer all_extension_numbers_of_type requst.
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; }
830 messageResponse_ = value;
831 messageResponseCase_ = value == null ? MessageResponseOneofCase.None : MessageResponseOneofCase.AllExtensionNumbersResponse;
835 /// <summary>Field number for the "list_services_response" field.</summary>
836 public const int ListServicesResponseFieldNumber = 6;
838 /// This message is used to answer list_services request.
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; }
844 messageResponse_ = value;
845 messageResponseCase_ = value == null ? MessageResponseOneofCase.None : MessageResponseOneofCase.ListServicesResponse;
849 /// <summary>Field number for the "error_response" field.</summary>
850 public const int ErrorResponseFieldNumber = 7;
852 /// This message is used when an error occurs.
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; }
858 messageResponse_ = value;
859 messageResponseCase_ = value == null ? MessageResponseOneofCase.None : MessageResponseOneofCase.ErrorResponse;
863 private object messageResponse_;
864 /// <summary>Enum of possible cases for the "message_response" oneof.</summary>
865 public enum MessageResponseOneofCase {
867 FileDescriptorResponse = 4,
868 AllExtensionNumbersResponse = 5,
869 ListServicesResponse = 6,
872 private MessageResponseOneofCase messageResponseCase_ = MessageResponseOneofCase.None;
873 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
874 public MessageResponseOneofCase MessageResponseCase {
875 get { return messageResponseCase_; }
878 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
879 public void ClearMessageResponse() {
880 messageResponseCase_ = MessageResponseOneofCase.None;
881 messageResponse_ = null;
884 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
885 public override bool Equals(object other) {
886 return Equals(other as ServerReflectionResponse);
889 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
890 public bool Equals(ServerReflectionResponse other) {
891 if (ReferenceEquals(other, null)) {
894 if (ReferenceEquals(other, this)) {
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);
907 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
908 public override int GetHashCode() {
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();
923 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
924 public override string ToString() {
925 return pb::JsonFormatter.ToDiagnosticString(this);
928 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
929 public void WriteTo(pb::CodedOutputStream output) {
930 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
931 output.WriteRawMessage(this);
933 if (ValidHost.Length != 0) {
934 output.WriteRawTag(10);
935 output.WriteString(ValidHost);
937 if (originalRequest_ != null) {
938 output.WriteRawTag(18);
939 output.WriteMessage(OriginalRequest);
941 if (messageResponseCase_ == MessageResponseOneofCase.FileDescriptorResponse) {
942 output.WriteRawTag(34);
943 output.WriteMessage(FileDescriptorResponse);
945 if (messageResponseCase_ == MessageResponseOneofCase.AllExtensionNumbersResponse) {
946 output.WriteRawTag(42);
947 output.WriteMessage(AllExtensionNumbersResponse);
949 if (messageResponseCase_ == MessageResponseOneofCase.ListServicesResponse) {
950 output.WriteRawTag(50);
951 output.WriteMessage(ListServicesResponse);
953 if (messageResponseCase_ == MessageResponseOneofCase.ErrorResponse) {
954 output.WriteRawTag(58);
955 output.WriteMessage(ErrorResponse);
957 if (_unknownFields != null) {
958 _unknownFields.WriteTo(output);
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);
970 if (originalRequest_ != null) {
971 output.WriteRawTag(18);
972 output.WriteMessage(OriginalRequest);
974 if (messageResponseCase_ == MessageResponseOneofCase.FileDescriptorResponse) {
975 output.WriteRawTag(34);
976 output.WriteMessage(FileDescriptorResponse);
978 if (messageResponseCase_ == MessageResponseOneofCase.AllExtensionNumbersResponse) {
979 output.WriteRawTag(42);
980 output.WriteMessage(AllExtensionNumbersResponse);
982 if (messageResponseCase_ == MessageResponseOneofCase.ListServicesResponse) {
983 output.WriteRawTag(50);
984 output.WriteMessage(ListServicesResponse);
986 if (messageResponseCase_ == MessageResponseOneofCase.ErrorResponse) {
987 output.WriteRawTag(58);
988 output.WriteMessage(ErrorResponse);
990 if (_unknownFields != null) {
991 _unknownFields.WriteTo(ref output);
996 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
997 public int CalculateSize() {
999 if (ValidHost.Length != 0) {
1000 size += 1 + pb::CodedOutputStream.ComputeStringSize(ValidHost);
1002 if (originalRequest_ != null) {
1003 size += 1 + pb::CodedOutputStream.ComputeMessageSize(OriginalRequest);
1005 if (messageResponseCase_ == MessageResponseOneofCase.FileDescriptorResponse) {
1006 size += 1 + pb::CodedOutputStream.ComputeMessageSize(FileDescriptorResponse);
1008 if (messageResponseCase_ == MessageResponseOneofCase.AllExtensionNumbersResponse) {
1009 size += 1 + pb::CodedOutputStream.ComputeMessageSize(AllExtensionNumbersResponse);
1011 if (messageResponseCase_ == MessageResponseOneofCase.ListServicesResponse) {
1012 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ListServicesResponse);
1014 if (messageResponseCase_ == MessageResponseOneofCase.ErrorResponse) {
1015 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ErrorResponse);
1017 if (_unknownFields != null) {
1018 size += _unknownFields.CalculateSize();
1023 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1024 public void MergeFrom(ServerReflectionResponse other) {
1025 if (other == null) {
1028 if (other.ValidHost.Length != 0) {
1029 ValidHost = other.ValidHost;
1031 if (other.originalRequest_ != null) {
1032 if (originalRequest_ == null) {
1033 OriginalRequest = new global::Grpc.Reflection.V1Alpha.ServerReflectionRequest();
1035 OriginalRequest.MergeFrom(other.OriginalRequest);
1037 switch (other.MessageResponseCase) {
1038 case MessageResponseOneofCase.FileDescriptorResponse:
1039 if (FileDescriptorResponse == null) {
1040 FileDescriptorResponse = new global::Grpc.Reflection.V1Alpha.FileDescriptorResponse();
1042 FileDescriptorResponse.MergeFrom(other.FileDescriptorResponse);
1044 case MessageResponseOneofCase.AllExtensionNumbersResponse:
1045 if (AllExtensionNumbersResponse == null) {
1046 AllExtensionNumbersResponse = new global::Grpc.Reflection.V1Alpha.ExtensionNumberResponse();
1048 AllExtensionNumbersResponse.MergeFrom(other.AllExtensionNumbersResponse);
1050 case MessageResponseOneofCase.ListServicesResponse:
1051 if (ListServicesResponse == null) {
1052 ListServicesResponse = new global::Grpc.Reflection.V1Alpha.ListServiceResponse();
1054 ListServicesResponse.MergeFrom(other.ListServicesResponse);
1056 case MessageResponseOneofCase.ErrorResponse:
1057 if (ErrorResponse == null) {
1058 ErrorResponse = new global::Grpc.Reflection.V1Alpha.ErrorResponse();
1060 ErrorResponse.MergeFrom(other.ErrorResponse);
1064 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1067 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1068 public void MergeFrom(pb::CodedInputStream input) {
1069 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1070 input.ReadRawMessage(this);
1073 while ((tag = input.ReadTag()) != 0) {
1076 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1079 ValidHost = input.ReadString();
1083 if (originalRequest_ == null) {
1084 OriginalRequest = new global::Grpc.Reflection.V1Alpha.ServerReflectionRequest();
1086 input.ReadMessage(OriginalRequest);
1090 global::Grpc.Reflection.V1Alpha.FileDescriptorResponse subBuilder = new global::Grpc.Reflection.V1Alpha.FileDescriptorResponse();
1091 if (messageResponseCase_ == MessageResponseOneofCase.FileDescriptorResponse) {
1092 subBuilder.MergeFrom(FileDescriptorResponse);
1094 input.ReadMessage(subBuilder);
1095 FileDescriptorResponse = subBuilder;
1099 global::Grpc.Reflection.V1Alpha.ExtensionNumberResponse subBuilder = new global::Grpc.Reflection.V1Alpha.ExtensionNumberResponse();
1100 if (messageResponseCase_ == MessageResponseOneofCase.AllExtensionNumbersResponse) {
1101 subBuilder.MergeFrom(AllExtensionNumbersResponse);
1103 input.ReadMessage(subBuilder);
1104 AllExtensionNumbersResponse = subBuilder;
1108 global::Grpc.Reflection.V1Alpha.ListServiceResponse subBuilder = new global::Grpc.Reflection.V1Alpha.ListServiceResponse();
1109 if (messageResponseCase_ == MessageResponseOneofCase.ListServicesResponse) {
1110 subBuilder.MergeFrom(ListServicesResponse);
1112 input.ReadMessage(subBuilder);
1113 ListServicesResponse = subBuilder;
1117 global::Grpc.Reflection.V1Alpha.ErrorResponse subBuilder = new global::Grpc.Reflection.V1Alpha.ErrorResponse();
1118 if (messageResponseCase_ == MessageResponseOneofCase.ErrorResponse) {
1119 subBuilder.MergeFrom(ErrorResponse);
1121 input.ReadMessage(subBuilder);
1122 ErrorResponse = subBuilder;
1130 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1131 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1132 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1134 while ((tag = input.ReadTag()) != 0) {
1137 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1140 ValidHost = input.ReadString();
1144 if (originalRequest_ == null) {
1145 OriginalRequest = new global::Grpc.Reflection.V1Alpha.ServerReflectionRequest();
1147 input.ReadMessage(OriginalRequest);
1151 global::Grpc.Reflection.V1Alpha.FileDescriptorResponse subBuilder = new global::Grpc.Reflection.V1Alpha.FileDescriptorResponse();
1152 if (messageResponseCase_ == MessageResponseOneofCase.FileDescriptorResponse) {
1153 subBuilder.MergeFrom(FileDescriptorResponse);
1155 input.ReadMessage(subBuilder);
1156 FileDescriptorResponse = subBuilder;
1160 global::Grpc.Reflection.V1Alpha.ExtensionNumberResponse subBuilder = new global::Grpc.Reflection.V1Alpha.ExtensionNumberResponse();
1161 if (messageResponseCase_ == MessageResponseOneofCase.AllExtensionNumbersResponse) {
1162 subBuilder.MergeFrom(AllExtensionNumbersResponse);
1164 input.ReadMessage(subBuilder);
1165 AllExtensionNumbersResponse = subBuilder;
1169 global::Grpc.Reflection.V1Alpha.ListServiceResponse subBuilder = new global::Grpc.Reflection.V1Alpha.ListServiceResponse();
1170 if (messageResponseCase_ == MessageResponseOneofCase.ListServicesResponse) {
1171 subBuilder.MergeFrom(ListServicesResponse);
1173 input.ReadMessage(subBuilder);
1174 ListServicesResponse = subBuilder;
1178 global::Grpc.Reflection.V1Alpha.ErrorResponse subBuilder = new global::Grpc.Reflection.V1Alpha.ErrorResponse();
1179 if (messageResponseCase_ == MessageResponseOneofCase.ErrorResponse) {
1180 subBuilder.MergeFrom(ErrorResponse);
1182 input.ReadMessage(subBuilder);
1183 ErrorResponse = subBuilder;
1194 /// Serialized FileDescriptorProto messages sent by the server answering
1195 /// a file_by_filename, file_containing_symbol, or file_containing_extension
1198 public sealed partial class FileDescriptorResponse : pb::IMessage<FileDescriptorResponse>
1199 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1200 , pb::IBufferMessage
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; } }
1208 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1209 public static pbr::MessageDescriptor Descriptor {
1210 get { return global::Grpc.Reflection.V1Alpha.ReflectionReflection.Descriptor.MessageTypes[3]; }
1213 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1214 pbr::MessageDescriptor pb::IMessage.Descriptor {
1215 get { return Descriptor; }
1218 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1219 public FileDescriptorResponse() {
1223 partial void OnConstruction();
1225 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1226 public FileDescriptorResponse(FileDescriptorResponse other) : this() {
1227 fileDescriptorProto_ = other.fileDescriptorProto_.Clone();
1228 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1231 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1232 public FileDescriptorResponse Clone() {
1233 return new FileDescriptorResponse(this);
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>();
1242 /// Serialized FileDescriptorProto messages. We avoid taking a dependency on
1243 /// descriptor.proto, which uses proto2 only features, by making them opaque
1246 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1247 public pbc::RepeatedField<pb::ByteString> FileDescriptorProto {
1248 get { return fileDescriptorProto_; }
1251 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1252 public override bool Equals(object other) {
1253 return Equals(other as FileDescriptorResponse);
1256 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1257 public bool Equals(FileDescriptorResponse other) {
1258 if (ReferenceEquals(other, null)) {
1261 if (ReferenceEquals(other, this)) {
1264 if(!fileDescriptorProto_.Equals(other.fileDescriptorProto_)) return false;
1265 return Equals(_unknownFields, other._unknownFields);
1268 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1269 public override int GetHashCode() {
1271 hash ^= fileDescriptorProto_.GetHashCode();
1272 if (_unknownFields != null) {
1273 hash ^= _unknownFields.GetHashCode();
1278 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1279 public override string ToString() {
1280 return pb::JsonFormatter.ToDiagnosticString(this);
1283 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1284 public void WriteTo(pb::CodedOutputStream output) {
1285 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1286 output.WriteRawMessage(this);
1288 fileDescriptorProto_.WriteTo(output, _repeated_fileDescriptorProto_codec);
1289 if (_unknownFields != null) {
1290 _unknownFields.WriteTo(output);
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);
1305 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1306 public int CalculateSize() {
1308 size += fileDescriptorProto_.CalculateSize(_repeated_fileDescriptorProto_codec);
1309 if (_unknownFields != null) {
1310 size += _unknownFields.CalculateSize();
1315 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1316 public void MergeFrom(FileDescriptorResponse other) {
1317 if (other == null) {
1320 fileDescriptorProto_.Add(other.fileDescriptorProto_);
1321 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1324 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1325 public void MergeFrom(pb::CodedInputStream input) {
1326 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1327 input.ReadRawMessage(this);
1330 while ((tag = input.ReadTag()) != 0) {
1333 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1336 fileDescriptorProto_.AddEntriesFrom(input, _repeated_fileDescriptorProto_codec);
1344 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1345 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1346 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1348 while ((tag = input.ReadTag()) != 0) {
1351 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1354 fileDescriptorProto_.AddEntriesFrom(ref input, _repeated_fileDescriptorProto_codec);
1365 /// A list of extension numbers sent by the server answering
1366 /// all_extension_numbers_of_type request.
1368 public sealed partial class ExtensionNumberResponse : pb::IMessage<ExtensionNumberResponse>
1369 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1370 , pb::IBufferMessage
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; } }
1378 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1379 public static pbr::MessageDescriptor Descriptor {
1380 get { return global::Grpc.Reflection.V1Alpha.ReflectionReflection.Descriptor.MessageTypes[4]; }
1383 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1384 pbr::MessageDescriptor pb::IMessage.Descriptor {
1385 get { return Descriptor; }
1388 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1389 public ExtensionNumberResponse() {
1393 partial void OnConstruction();
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);
1402 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1403 public ExtensionNumberResponse Clone() {
1404 return new ExtensionNumberResponse(this);
1407 /// <summary>Field number for the "base_type_name" field.</summary>
1408 public const int BaseTypeNameFieldNumber = 1;
1409 private string baseTypeName_ = "";
1411 /// Full name of the base type, including the package name. The format
1412 /// is <package>.<type>
1414 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1415 public string BaseTypeName {
1416 get { return baseTypeName_; }
1418 baseTypeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
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_; }
1432 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1433 public override bool Equals(object other) {
1434 return Equals(other as ExtensionNumberResponse);
1437 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1438 public bool Equals(ExtensionNumberResponse other) {
1439 if (ReferenceEquals(other, null)) {
1442 if (ReferenceEquals(other, this)) {
1445 if (BaseTypeName != other.BaseTypeName) return false;
1446 if(!extensionNumber_.Equals(other.extensionNumber_)) return false;
1447 return Equals(_unknownFields, other._unknownFields);
1450 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1451 public override int GetHashCode() {
1453 if (BaseTypeName.Length != 0) hash ^= BaseTypeName.GetHashCode();
1454 hash ^= extensionNumber_.GetHashCode();
1455 if (_unknownFields != null) {
1456 hash ^= _unknownFields.GetHashCode();
1461 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1462 public override string ToString() {
1463 return pb::JsonFormatter.ToDiagnosticString(this);
1466 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1467 public void WriteTo(pb::CodedOutputStream output) {
1468 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1469 output.WriteRawMessage(this);
1471 if (BaseTypeName.Length != 0) {
1472 output.WriteRawTag(10);
1473 output.WriteString(BaseTypeName);
1475 extensionNumber_.WriteTo(output, _repeated_extensionNumber_codec);
1476 if (_unknownFields != null) {
1477 _unknownFields.WriteTo(output);
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);
1489 extensionNumber_.WriteTo(ref output, _repeated_extensionNumber_codec);
1490 if (_unknownFields != null) {
1491 _unknownFields.WriteTo(ref output);
1496 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1497 public int CalculateSize() {
1499 if (BaseTypeName.Length != 0) {
1500 size += 1 + pb::CodedOutputStream.ComputeStringSize(BaseTypeName);
1502 size += extensionNumber_.CalculateSize(_repeated_extensionNumber_codec);
1503 if (_unknownFields != null) {
1504 size += _unknownFields.CalculateSize();
1509 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1510 public void MergeFrom(ExtensionNumberResponse other) {
1511 if (other == null) {
1514 if (other.BaseTypeName.Length != 0) {
1515 BaseTypeName = other.BaseTypeName;
1517 extensionNumber_.Add(other.extensionNumber_);
1518 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1521 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1522 public void MergeFrom(pb::CodedInputStream input) {
1523 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1524 input.ReadRawMessage(this);
1527 while ((tag = input.ReadTag()) != 0) {
1530 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1533 BaseTypeName = input.ReadString();
1538 extensionNumber_.AddEntriesFrom(input, _repeated_extensionNumber_codec);
1546 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1547 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1548 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1550 while ((tag = input.ReadTag()) != 0) {
1553 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1556 BaseTypeName = input.ReadString();
1561 extensionNumber_.AddEntriesFrom(ref input, _repeated_extensionNumber_codec);
1572 /// A list of ServiceResponse sent by the server answering list_services request.
1574 public sealed partial class ListServiceResponse : pb::IMessage<ListServiceResponse>
1575 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1576 , pb::IBufferMessage
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; } }
1584 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1585 public static pbr::MessageDescriptor Descriptor {
1586 get { return global::Grpc.Reflection.V1Alpha.ReflectionReflection.Descriptor.MessageTypes[5]; }
1589 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1590 pbr::MessageDescriptor pb::IMessage.Descriptor {
1591 get { return Descriptor; }
1594 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1595 public ListServiceResponse() {
1599 partial void OnConstruction();
1601 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1602 public ListServiceResponse(ListServiceResponse other) : this() {
1603 service_ = other.service_.Clone();
1604 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1607 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1608 public ListServiceResponse Clone() {
1609 return new ListServiceResponse(this);
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>();
1618 /// The information of each service may be expanded in the future, so we use
1619 /// ServiceResponse message to encapsulate it.
1621 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1622 public pbc::RepeatedField<global::Grpc.Reflection.V1Alpha.ServiceResponse> Service {
1623 get { return service_; }
1626 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1627 public override bool Equals(object other) {
1628 return Equals(other as ListServiceResponse);
1631 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1632 public bool Equals(ListServiceResponse other) {
1633 if (ReferenceEquals(other, null)) {
1636 if (ReferenceEquals(other, this)) {
1639 if(!service_.Equals(other.service_)) return false;
1640 return Equals(_unknownFields, other._unknownFields);
1643 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1644 public override int GetHashCode() {
1646 hash ^= service_.GetHashCode();
1647 if (_unknownFields != null) {
1648 hash ^= _unknownFields.GetHashCode();
1653 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1654 public override string ToString() {
1655 return pb::JsonFormatter.ToDiagnosticString(this);
1658 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1659 public void WriteTo(pb::CodedOutputStream output) {
1660 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1661 output.WriteRawMessage(this);
1663 service_.WriteTo(output, _repeated_service_codec);
1664 if (_unknownFields != null) {
1665 _unknownFields.WriteTo(output);
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);
1680 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1681 public int CalculateSize() {
1683 size += service_.CalculateSize(_repeated_service_codec);
1684 if (_unknownFields != null) {
1685 size += _unknownFields.CalculateSize();
1690 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1691 public void MergeFrom(ListServiceResponse other) {
1692 if (other == null) {
1695 service_.Add(other.service_);
1696 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1699 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1700 public void MergeFrom(pb::CodedInputStream input) {
1701 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1702 input.ReadRawMessage(this);
1705 while ((tag = input.ReadTag()) != 0) {
1708 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1711 service_.AddEntriesFrom(input, _repeated_service_codec);
1719 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1720 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1721 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1723 while ((tag = input.ReadTag()) != 0) {
1726 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1729 service_.AddEntriesFrom(ref input, _repeated_service_codec);
1740 /// The information of a single service used by ListServiceResponse to answer
1741 /// list_services request.
1743 public sealed partial class ServiceResponse : pb::IMessage<ServiceResponse>
1744 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1745 , pb::IBufferMessage
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; } }
1753 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1754 public static pbr::MessageDescriptor Descriptor {
1755 get { return global::Grpc.Reflection.V1Alpha.ReflectionReflection.Descriptor.MessageTypes[6]; }
1758 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1759 pbr::MessageDescriptor pb::IMessage.Descriptor {
1760 get { return Descriptor; }
1763 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1764 public ServiceResponse() {
1768 partial void OnConstruction();
1770 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1771 public ServiceResponse(ServiceResponse other) : this() {
1772 name_ = other.name_;
1773 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1776 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1777 public ServiceResponse Clone() {
1778 return new ServiceResponse(this);
1781 /// <summary>Field number for the "name" field.</summary>
1782 public const int NameFieldNumber = 1;
1783 private string name_ = "";
1785 /// Full name of a registered service, including its package name. The format
1786 /// is <package>.<service>
1788 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1789 public string Name {
1790 get { return name_; }
1792 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1796 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1797 public override bool Equals(object other) {
1798 return Equals(other as ServiceResponse);
1801 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1802 public bool Equals(ServiceResponse other) {
1803 if (ReferenceEquals(other, null)) {
1806 if (ReferenceEquals(other, this)) {
1809 if (Name != other.Name) return false;
1810 return Equals(_unknownFields, other._unknownFields);
1813 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1814 public override int GetHashCode() {
1816 if (Name.Length != 0) hash ^= Name.GetHashCode();
1817 if (_unknownFields != null) {
1818 hash ^= _unknownFields.GetHashCode();
1823 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1824 public override string ToString() {
1825 return pb::JsonFormatter.ToDiagnosticString(this);
1828 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1829 public void WriteTo(pb::CodedOutputStream output) {
1830 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1831 output.WriteRawMessage(this);
1833 if (Name.Length != 0) {
1834 output.WriteRawTag(10);
1835 output.WriteString(Name);
1837 if (_unknownFields != null) {
1838 _unknownFields.WriteTo(output);
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);
1850 if (_unknownFields != null) {
1851 _unknownFields.WriteTo(ref output);
1856 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1857 public int CalculateSize() {
1859 if (Name.Length != 0) {
1860 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
1862 if (_unknownFields != null) {
1863 size += _unknownFields.CalculateSize();
1868 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1869 public void MergeFrom(ServiceResponse other) {
1870 if (other == null) {
1873 if (other.Name.Length != 0) {
1876 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1879 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1880 public void MergeFrom(pb::CodedInputStream input) {
1881 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1882 input.ReadRawMessage(this);
1885 while ((tag = input.ReadTag()) != 0) {
1888 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1891 Name = input.ReadString();
1899 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1900 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1901 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1903 while ((tag = input.ReadTag()) != 0) {
1906 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1909 Name = input.ReadString();
1920 /// The error code and error message sent by the server when an error occurs.
1922 public sealed partial class ErrorResponse : pb::IMessage<ErrorResponse>
1923 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1924 , pb::IBufferMessage
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; } }
1932 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1933 public static pbr::MessageDescriptor Descriptor {
1934 get { return global::Grpc.Reflection.V1Alpha.ReflectionReflection.Descriptor.MessageTypes[7]; }
1937 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1938 pbr::MessageDescriptor pb::IMessage.Descriptor {
1939 get { return Descriptor; }
1942 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1943 public ErrorResponse() {
1947 partial void OnConstruction();
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);
1956 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1957 public ErrorResponse Clone() {
1958 return new ErrorResponse(this);
1961 /// <summary>Field number for the "error_code" field.</summary>
1962 public const int ErrorCodeFieldNumber = 1;
1963 private int errorCode_;
1965 /// This field uses the error codes defined in grpc::StatusCode.
1967 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1968 public int ErrorCode {
1969 get { return errorCode_; }
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_; }
1982 errorMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1986 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1987 public override bool Equals(object other) {
1988 return Equals(other as ErrorResponse);
1991 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1992 public bool Equals(ErrorResponse other) {
1993 if (ReferenceEquals(other, null)) {
1996 if (ReferenceEquals(other, this)) {
1999 if (ErrorCode != other.ErrorCode) return false;
2000 if (ErrorMessage != other.ErrorMessage) return false;
2001 return Equals(_unknownFields, other._unknownFields);
2004 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2005 public override int GetHashCode() {
2007 if (ErrorCode != 0) hash ^= ErrorCode.GetHashCode();
2008 if (ErrorMessage.Length != 0) hash ^= ErrorMessage.GetHashCode();
2009 if (_unknownFields != null) {
2010 hash ^= _unknownFields.GetHashCode();
2015 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2016 public override string ToString() {
2017 return pb::JsonFormatter.ToDiagnosticString(this);
2020 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2021 public void WriteTo(pb::CodedOutputStream output) {
2022 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2023 output.WriteRawMessage(this);
2025 if (ErrorCode != 0) {
2026 output.WriteRawTag(8);
2027 output.WriteInt32(ErrorCode);
2029 if (ErrorMessage.Length != 0) {
2030 output.WriteRawTag(18);
2031 output.WriteString(ErrorMessage);
2033 if (_unknownFields != null) {
2034 _unknownFields.WriteTo(output);
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);
2046 if (ErrorMessage.Length != 0) {
2047 output.WriteRawTag(18);
2048 output.WriteString(ErrorMessage);
2050 if (_unknownFields != null) {
2051 _unknownFields.WriteTo(ref output);
2056 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2057 public int CalculateSize() {
2059 if (ErrorCode != 0) {
2060 size += 1 + pb::CodedOutputStream.ComputeInt32Size(ErrorCode);
2062 if (ErrorMessage.Length != 0) {
2063 size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorMessage);
2065 if (_unknownFields != null) {
2066 size += _unknownFields.CalculateSize();
2071 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2072 public void MergeFrom(ErrorResponse other) {
2073 if (other == null) {
2076 if (other.ErrorCode != 0) {
2077 ErrorCode = other.ErrorCode;
2079 if (other.ErrorMessage.Length != 0) {
2080 ErrorMessage = other.ErrorMessage;
2082 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2085 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2086 public void MergeFrom(pb::CodedInputStream input) {
2087 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2088 input.ReadRawMessage(this);
2091 while ((tag = input.ReadTag()) != 0) {
2094 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2097 ErrorCode = input.ReadInt32();
2101 ErrorMessage = input.ReadString();
2109 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2110 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2111 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2113 while ((tag = input.ReadTag()) != 0) {
2116 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2119 ErrorCode = input.ReadInt32();
2123 ErrorMessage = input.ReadString();
2137 #endregion Designer generated code