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