• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // <auto-generated>
2 //     Generated by the protocol buffer compiler.  DO NOT EDIT!
3 //     source: src/proto/grpc/testing/echo_messages.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.Testing {
13 
14   /// <summary>Holder for reflection information generated from src/proto/grpc/testing/echo_messages.proto</summary>
15   public static partial class EchoMessagesReflection {
16 
17     #region Descriptor
18     /// <summary>File descriptor for src/proto/grpc/testing/echo_messages.proto</summary>
19     public static pbr::FileDescriptor Descriptor {
20       get { return descriptor; }
21     }
22     private static pbr::FileDescriptor descriptor;
23 
EchoMessagesReflection()24     static EchoMessagesReflection() {
25       byte[] descriptorData = global::System.Convert.FromBase64String(
26           string.Concat(
27             "CipzcmMvcHJvdG8vZ3JwYy90ZXN0aW5nL2VjaG9fbWVzc2FnZXMucHJvdG8S",
28             "DGdycGMudGVzdGluZyIyCglEZWJ1Z0luZm8SFQoNc3RhY2tfZW50cmllcxgB",
29             "IAMoCRIOCgZkZXRhaWwYAiABKAkiUAoLRXJyb3JTdGF0dXMSDAoEY29kZRgB",
30             "IAEoBRIVCg1lcnJvcl9tZXNzYWdlGAIgASgJEhwKFGJpbmFyeV9lcnJvcl9k",
31             "ZXRhaWxzGAMgASgJIv8DCg1SZXF1ZXN0UGFyYW1zEhUKDWVjaG9fZGVhZGxp",
32             "bmUYASABKAgSHgoWY2xpZW50X2NhbmNlbF9hZnRlcl91cxgCIAEoBRIeChZz",
33             "ZXJ2ZXJfY2FuY2VsX2FmdGVyX3VzGAMgASgFEhUKDWVjaG9fbWV0YWRhdGEY",
34             "BCABKAgSGgoSY2hlY2tfYXV0aF9jb250ZXh0GAUgASgIEh8KF3Jlc3BvbnNl",
35             "X21lc3NhZ2VfbGVuZ3RoGAYgASgFEhEKCWVjaG9fcGVlchgHIAEoCBIgChhl",
36             "eHBlY3RlZF9jbGllbnRfaWRlbnRpdHkYCCABKAkSHAoUc2tpcF9jYW5jZWxs",
37             "ZWRfY2hlY2sYCSABKAgSKAogZXhwZWN0ZWRfdHJhbnNwb3J0X3NlY3VyaXR5",
38             "X3R5cGUYCiABKAkSKwoKZGVidWdfaW5mbxgLIAEoCzIXLmdycGMudGVzdGlu",
39             "Zy5EZWJ1Z0luZm8SEgoKc2VydmVyX2RpZRgMIAEoCBIcChRiaW5hcnlfZXJy",
40             "b3JfZGV0YWlscxgNIAEoCRIxCg5leHBlY3RlZF9lcnJvchgOIAEoCzIZLmdy",
41             "cGMudGVzdGluZy5FcnJvclN0YXR1cxIXCg9zZXJ2ZXJfc2xlZXBfdXMYDyAB",
42             "KAUSGwoTYmFja2VuZF9jaGFubmVsX2lkeBgQIAEoBSJKCgtFY2hvUmVxdWVz",
43             "dBIPCgdtZXNzYWdlGAEgASgJEioKBXBhcmFtGAIgASgLMhsuZ3JwYy50ZXN0",
44             "aW5nLlJlcXVlc3RQYXJhbXMiRgoOUmVzcG9uc2VQYXJhbXMSGAoQcmVxdWVz",
45             "dF9kZWFkbGluZRgBIAEoAxIMCgRob3N0GAIgASgJEgwKBHBlZXIYAyABKAki",
46             "TAoMRWNob1Jlc3BvbnNlEg8KB21lc3NhZ2UYASABKAkSKwoFcGFyYW0YAiAB",
47             "KAsyHC5ncnBjLnRlc3RpbmcuUmVzcG9uc2VQYXJhbXNiBnByb3RvMw=="));
48       descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
49           new pbr::FileDescriptor[] { },
50           new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
51             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.DebugInfo), global::Grpc.Testing.DebugInfo.Parser, new[]{ "StackEntries", "Detail" }, null, null, null),
52             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ErrorStatus), global::Grpc.Testing.ErrorStatus.Parser, new[]{ "Code", "ErrorMessage", "BinaryErrorDetails" }, null, null, null),
53             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.RequestParams), global::Grpc.Testing.RequestParams.Parser, new[]{ "EchoDeadline", "ClientCancelAfterUs", "ServerCancelAfterUs", "EchoMetadata", "CheckAuthContext", "ResponseMessageLength", "EchoPeer", "ExpectedClientIdentity", "SkipCancelledCheck", "ExpectedTransportSecurityType", "DebugInfo", "ServerDie", "BinaryErrorDetails", "ExpectedError", "ServerSleepUs", "BackendChannelIdx" }, null, null, null),
54             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.EchoRequest), global::Grpc.Testing.EchoRequest.Parser, new[]{ "Message", "Param" }, null, null, null),
55             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ResponseParams), global::Grpc.Testing.ResponseParams.Parser, new[]{ "RequestDeadline", "Host", "Peer" }, null, null, null),
56             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.EchoResponse), global::Grpc.Testing.EchoResponse.Parser, new[]{ "Message", "Param" }, null, null, null)
57           }));
58     }
59     #endregion
60 
61   }
62   #region Messages
63   /// <summary>
64   /// Message to be echoed back serialized in trailer.
65   /// </summary>
66   public sealed partial class DebugInfo : pb::IMessage<DebugInfo> {
67     private static readonly pb::MessageParser<DebugInfo> _parser = new pb::MessageParser<DebugInfo>(() => new DebugInfo());
68     private pb::UnknownFieldSet _unknownFields;
69     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
70     public static pb::MessageParser<DebugInfo> Parser { get { return _parser; } }
71 
72     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
73     public static pbr::MessageDescriptor Descriptor {
74       get { return global::Grpc.Testing.EchoMessagesReflection.Descriptor.MessageTypes[0]; }
75     }
76 
77     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
78     pbr::MessageDescriptor pb::IMessage.Descriptor {
79       get { return Descriptor; }
80     }
81 
82     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
DebugInfo()83     public DebugInfo() {
84       OnConstruction();
85     }
86 
OnConstruction()87     partial void OnConstruction();
88 
89     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
DebugInfo(DebugInfo other)90     public DebugInfo(DebugInfo other) : this() {
91       stackEntries_ = other.stackEntries_.Clone();
92       detail_ = other.detail_;
93       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
94     }
95 
96     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()97     public DebugInfo Clone() {
98       return new DebugInfo(this);
99     }
100 
101     /// <summary>Field number for the "stack_entries" field.</summary>
102     public const int StackEntriesFieldNumber = 1;
103     private static readonly pb::FieldCodec<string> _repeated_stackEntries_codec
104         = pb::FieldCodec.ForString(10);
105     private readonly pbc::RepeatedField<string> stackEntries_ = new pbc::RepeatedField<string>();
106     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
107     public pbc::RepeatedField<string> StackEntries {
108       get { return stackEntries_; }
109     }
110 
111     /// <summary>Field number for the "detail" field.</summary>
112     public const int DetailFieldNumber = 2;
113     private string detail_ = "";
114     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
115     public string Detail {
116       get { return detail_; }
117       set {
118         detail_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
119       }
120     }
121 
122     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)123     public override bool Equals(object other) {
124       return Equals(other as DebugInfo);
125     }
126 
127     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(DebugInfo other)128     public bool Equals(DebugInfo other) {
129       if (ReferenceEquals(other, null)) {
130         return false;
131       }
132       if (ReferenceEquals(other, this)) {
133         return true;
134       }
135       if(!stackEntries_.Equals(other.stackEntries_)) return false;
136       if (Detail != other.Detail) return false;
137       return Equals(_unknownFields, other._unknownFields);
138     }
139 
140     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()141     public override int GetHashCode() {
142       int hash = 1;
143       hash ^= stackEntries_.GetHashCode();
144       if (Detail.Length != 0) hash ^= Detail.GetHashCode();
145       if (_unknownFields != null) {
146         hash ^= _unknownFields.GetHashCode();
147       }
148       return hash;
149     }
150 
151     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()152     public override string ToString() {
153       return pb::JsonFormatter.ToDiagnosticString(this);
154     }
155 
156     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)157     public void WriteTo(pb::CodedOutputStream output) {
158       stackEntries_.WriteTo(output, _repeated_stackEntries_codec);
159       if (Detail.Length != 0) {
160         output.WriteRawTag(18);
161         output.WriteString(Detail);
162       }
163       if (_unknownFields != null) {
164         _unknownFields.WriteTo(output);
165       }
166     }
167 
168     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()169     public int CalculateSize() {
170       int size = 0;
171       size += stackEntries_.CalculateSize(_repeated_stackEntries_codec);
172       if (Detail.Length != 0) {
173         size += 1 + pb::CodedOutputStream.ComputeStringSize(Detail);
174       }
175       if (_unknownFields != null) {
176         size += _unknownFields.CalculateSize();
177       }
178       return size;
179     }
180 
181     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(DebugInfo other)182     public void MergeFrom(DebugInfo other) {
183       if (other == null) {
184         return;
185       }
186       stackEntries_.Add(other.stackEntries_);
187       if (other.Detail.Length != 0) {
188         Detail = other.Detail;
189       }
190       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
191     }
192 
193     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)194     public void MergeFrom(pb::CodedInputStream input) {
195       uint tag;
196       while ((tag = input.ReadTag()) != 0) {
197         switch(tag) {
198           default:
199             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
200             break;
201           case 10: {
202             stackEntries_.AddEntriesFrom(input, _repeated_stackEntries_codec);
203             break;
204           }
205           case 18: {
206             Detail = input.ReadString();
207             break;
208           }
209         }
210       }
211     }
212 
213   }
214 
215   /// <summary>
216   /// Error status client expects to see.
217   /// </summary>
218   public sealed partial class ErrorStatus : pb::IMessage<ErrorStatus> {
219     private static readonly pb::MessageParser<ErrorStatus> _parser = new pb::MessageParser<ErrorStatus>(() => new ErrorStatus());
220     private pb::UnknownFieldSet _unknownFields;
221     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
222     public static pb::MessageParser<ErrorStatus> Parser { get { return _parser; } }
223 
224     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
225     public static pbr::MessageDescriptor Descriptor {
226       get { return global::Grpc.Testing.EchoMessagesReflection.Descriptor.MessageTypes[1]; }
227     }
228 
229     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
230     pbr::MessageDescriptor pb::IMessage.Descriptor {
231       get { return Descriptor; }
232     }
233 
234     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ErrorStatus()235     public ErrorStatus() {
236       OnConstruction();
237     }
238 
OnConstruction()239     partial void OnConstruction();
240 
241     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ErrorStatus(ErrorStatus other)242     public ErrorStatus(ErrorStatus other) : this() {
243       code_ = other.code_;
244       errorMessage_ = other.errorMessage_;
245       binaryErrorDetails_ = other.binaryErrorDetails_;
246       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
247     }
248 
249     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()250     public ErrorStatus Clone() {
251       return new ErrorStatus(this);
252     }
253 
254     /// <summary>Field number for the "code" field.</summary>
255     public const int CodeFieldNumber = 1;
256     private int code_;
257     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
258     public int Code {
259       get { return code_; }
260       set {
261         code_ = value;
262       }
263     }
264 
265     /// <summary>Field number for the "error_message" field.</summary>
266     public const int ErrorMessageFieldNumber = 2;
267     private string errorMessage_ = "";
268     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
269     public string ErrorMessage {
270       get { return errorMessage_; }
271       set {
272         errorMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
273       }
274     }
275 
276     /// <summary>Field number for the "binary_error_details" field.</summary>
277     public const int BinaryErrorDetailsFieldNumber = 3;
278     private string binaryErrorDetails_ = "";
279     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
280     public string BinaryErrorDetails {
281       get { return binaryErrorDetails_; }
282       set {
283         binaryErrorDetails_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
284       }
285     }
286 
287     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)288     public override bool Equals(object other) {
289       return Equals(other as ErrorStatus);
290     }
291 
292     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(ErrorStatus other)293     public bool Equals(ErrorStatus other) {
294       if (ReferenceEquals(other, null)) {
295         return false;
296       }
297       if (ReferenceEquals(other, this)) {
298         return true;
299       }
300       if (Code != other.Code) return false;
301       if (ErrorMessage != other.ErrorMessage) return false;
302       if (BinaryErrorDetails != other.BinaryErrorDetails) return false;
303       return Equals(_unknownFields, other._unknownFields);
304     }
305 
306     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()307     public override int GetHashCode() {
308       int hash = 1;
309       if (Code != 0) hash ^= Code.GetHashCode();
310       if (ErrorMessage.Length != 0) hash ^= ErrorMessage.GetHashCode();
311       if (BinaryErrorDetails.Length != 0) hash ^= BinaryErrorDetails.GetHashCode();
312       if (_unknownFields != null) {
313         hash ^= _unknownFields.GetHashCode();
314       }
315       return hash;
316     }
317 
318     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()319     public override string ToString() {
320       return pb::JsonFormatter.ToDiagnosticString(this);
321     }
322 
323     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)324     public void WriteTo(pb::CodedOutputStream output) {
325       if (Code != 0) {
326         output.WriteRawTag(8);
327         output.WriteInt32(Code);
328       }
329       if (ErrorMessage.Length != 0) {
330         output.WriteRawTag(18);
331         output.WriteString(ErrorMessage);
332       }
333       if (BinaryErrorDetails.Length != 0) {
334         output.WriteRawTag(26);
335         output.WriteString(BinaryErrorDetails);
336       }
337       if (_unknownFields != null) {
338         _unknownFields.WriteTo(output);
339       }
340     }
341 
342     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()343     public int CalculateSize() {
344       int size = 0;
345       if (Code != 0) {
346         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Code);
347       }
348       if (ErrorMessage.Length != 0) {
349         size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorMessage);
350       }
351       if (BinaryErrorDetails.Length != 0) {
352         size += 1 + pb::CodedOutputStream.ComputeStringSize(BinaryErrorDetails);
353       }
354       if (_unknownFields != null) {
355         size += _unknownFields.CalculateSize();
356       }
357       return size;
358     }
359 
360     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(ErrorStatus other)361     public void MergeFrom(ErrorStatus other) {
362       if (other == null) {
363         return;
364       }
365       if (other.Code != 0) {
366         Code = other.Code;
367       }
368       if (other.ErrorMessage.Length != 0) {
369         ErrorMessage = other.ErrorMessage;
370       }
371       if (other.BinaryErrorDetails.Length != 0) {
372         BinaryErrorDetails = other.BinaryErrorDetails;
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 8: {
386             Code = input.ReadInt32();
387             break;
388           }
389           case 18: {
390             ErrorMessage = input.ReadString();
391             break;
392           }
393           case 26: {
394             BinaryErrorDetails = input.ReadString();
395             break;
396           }
397         }
398       }
399     }
400 
401   }
402 
403   public sealed partial class RequestParams : pb::IMessage<RequestParams> {
404     private static readonly pb::MessageParser<RequestParams> _parser = new pb::MessageParser<RequestParams>(() => new RequestParams());
405     private pb::UnknownFieldSet _unknownFields;
406     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
407     public static pb::MessageParser<RequestParams> Parser { get { return _parser; } }
408 
409     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
410     public static pbr::MessageDescriptor Descriptor {
411       get { return global::Grpc.Testing.EchoMessagesReflection.Descriptor.MessageTypes[2]; }
412     }
413 
414     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
415     pbr::MessageDescriptor pb::IMessage.Descriptor {
416       get { return Descriptor; }
417     }
418 
419     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
RequestParams()420     public RequestParams() {
421       OnConstruction();
422     }
423 
OnConstruction()424     partial void OnConstruction();
425 
426     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
RequestParams(RequestParams other)427     public RequestParams(RequestParams other) : this() {
428       echoDeadline_ = other.echoDeadline_;
429       clientCancelAfterUs_ = other.clientCancelAfterUs_;
430       serverCancelAfterUs_ = other.serverCancelAfterUs_;
431       echoMetadata_ = other.echoMetadata_;
432       checkAuthContext_ = other.checkAuthContext_;
433       responseMessageLength_ = other.responseMessageLength_;
434       echoPeer_ = other.echoPeer_;
435       expectedClientIdentity_ = other.expectedClientIdentity_;
436       skipCancelledCheck_ = other.skipCancelledCheck_;
437       expectedTransportSecurityType_ = other.expectedTransportSecurityType_;
438       debugInfo_ = other.debugInfo_ != null ? other.debugInfo_.Clone() : null;
439       serverDie_ = other.serverDie_;
440       binaryErrorDetails_ = other.binaryErrorDetails_;
441       expectedError_ = other.expectedError_ != null ? other.expectedError_.Clone() : null;
442       serverSleepUs_ = other.serverSleepUs_;
443       backendChannelIdx_ = other.backendChannelIdx_;
444       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
445     }
446 
447     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()448     public RequestParams Clone() {
449       return new RequestParams(this);
450     }
451 
452     /// <summary>Field number for the "echo_deadline" field.</summary>
453     public const int EchoDeadlineFieldNumber = 1;
454     private bool echoDeadline_;
455     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
456     public bool EchoDeadline {
457       get { return echoDeadline_; }
458       set {
459         echoDeadline_ = value;
460       }
461     }
462 
463     /// <summary>Field number for the "client_cancel_after_us" field.</summary>
464     public const int ClientCancelAfterUsFieldNumber = 2;
465     private int clientCancelAfterUs_;
466     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
467     public int ClientCancelAfterUs {
468       get { return clientCancelAfterUs_; }
469       set {
470         clientCancelAfterUs_ = value;
471       }
472     }
473 
474     /// <summary>Field number for the "server_cancel_after_us" field.</summary>
475     public const int ServerCancelAfterUsFieldNumber = 3;
476     private int serverCancelAfterUs_;
477     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
478     public int ServerCancelAfterUs {
479       get { return serverCancelAfterUs_; }
480       set {
481         serverCancelAfterUs_ = value;
482       }
483     }
484 
485     /// <summary>Field number for the "echo_metadata" field.</summary>
486     public const int EchoMetadataFieldNumber = 4;
487     private bool echoMetadata_;
488     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
489     public bool EchoMetadata {
490       get { return echoMetadata_; }
491       set {
492         echoMetadata_ = value;
493       }
494     }
495 
496     /// <summary>Field number for the "check_auth_context" field.</summary>
497     public const int CheckAuthContextFieldNumber = 5;
498     private bool checkAuthContext_;
499     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
500     public bool CheckAuthContext {
501       get { return checkAuthContext_; }
502       set {
503         checkAuthContext_ = value;
504       }
505     }
506 
507     /// <summary>Field number for the "response_message_length" field.</summary>
508     public const int ResponseMessageLengthFieldNumber = 6;
509     private int responseMessageLength_;
510     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
511     public int ResponseMessageLength {
512       get { return responseMessageLength_; }
513       set {
514         responseMessageLength_ = value;
515       }
516     }
517 
518     /// <summary>Field number for the "echo_peer" field.</summary>
519     public const int EchoPeerFieldNumber = 7;
520     private bool echoPeer_;
521     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
522     public bool EchoPeer {
523       get { return echoPeer_; }
524       set {
525         echoPeer_ = value;
526       }
527     }
528 
529     /// <summary>Field number for the "expected_client_identity" field.</summary>
530     public const int ExpectedClientIdentityFieldNumber = 8;
531     private string expectedClientIdentity_ = "";
532     /// <summary>
533     /// will force check_auth_context.
534     /// </summary>
535     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
536     public string ExpectedClientIdentity {
537       get { return expectedClientIdentity_; }
538       set {
539         expectedClientIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
540       }
541     }
542 
543     /// <summary>Field number for the "skip_cancelled_check" field.</summary>
544     public const int SkipCancelledCheckFieldNumber = 9;
545     private bool skipCancelledCheck_;
546     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
547     public bool SkipCancelledCheck {
548       get { return skipCancelledCheck_; }
549       set {
550         skipCancelledCheck_ = value;
551       }
552     }
553 
554     /// <summary>Field number for the "expected_transport_security_type" field.</summary>
555     public const int ExpectedTransportSecurityTypeFieldNumber = 10;
556     private string expectedTransportSecurityType_ = "";
557     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
558     public string ExpectedTransportSecurityType {
559       get { return expectedTransportSecurityType_; }
560       set {
561         expectedTransportSecurityType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
562       }
563     }
564 
565     /// <summary>Field number for the "debug_info" field.</summary>
566     public const int DebugInfoFieldNumber = 11;
567     private global::Grpc.Testing.DebugInfo debugInfo_;
568     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
569     public global::Grpc.Testing.DebugInfo DebugInfo {
570       get { return debugInfo_; }
571       set {
572         debugInfo_ = value;
573       }
574     }
575 
576     /// <summary>Field number for the "server_die" field.</summary>
577     public const int ServerDieFieldNumber = 12;
578     private bool serverDie_;
579     /// <summary>
580     /// Server should not see a request with this set.
581     /// </summary>
582     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
583     public bool ServerDie {
584       get { return serverDie_; }
585       set {
586         serverDie_ = value;
587       }
588     }
589 
590     /// <summary>Field number for the "binary_error_details" field.</summary>
591     public const int BinaryErrorDetailsFieldNumber = 13;
592     private string binaryErrorDetails_ = "";
593     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
594     public string BinaryErrorDetails {
595       get { return binaryErrorDetails_; }
596       set {
597         binaryErrorDetails_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
598       }
599     }
600 
601     /// <summary>Field number for the "expected_error" field.</summary>
602     public const int ExpectedErrorFieldNumber = 14;
603     private global::Grpc.Testing.ErrorStatus expectedError_;
604     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
605     public global::Grpc.Testing.ErrorStatus ExpectedError {
606       get { return expectedError_; }
607       set {
608         expectedError_ = value;
609       }
610     }
611 
612     /// <summary>Field number for the "server_sleep_us" field.</summary>
613     public const int ServerSleepUsFieldNumber = 15;
614     private int serverSleepUs_;
615     /// <summary>
616     /// Amount to sleep when invoking server
617     /// </summary>
618     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
619     public int ServerSleepUs {
620       get { return serverSleepUs_; }
621       set {
622         serverSleepUs_ = value;
623       }
624     }
625 
626     /// <summary>Field number for the "backend_channel_idx" field.</summary>
627     public const int BackendChannelIdxFieldNumber = 16;
628     private int backendChannelIdx_;
629     /// <summary>
630     /// which backend to send request to
631     /// </summary>
632     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
633     public int BackendChannelIdx {
634       get { return backendChannelIdx_; }
635       set {
636         backendChannelIdx_ = value;
637       }
638     }
639 
640     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)641     public override bool Equals(object other) {
642       return Equals(other as RequestParams);
643     }
644 
645     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(RequestParams other)646     public bool Equals(RequestParams other) {
647       if (ReferenceEquals(other, null)) {
648         return false;
649       }
650       if (ReferenceEquals(other, this)) {
651         return true;
652       }
653       if (EchoDeadline != other.EchoDeadline) return false;
654       if (ClientCancelAfterUs != other.ClientCancelAfterUs) return false;
655       if (ServerCancelAfterUs != other.ServerCancelAfterUs) return false;
656       if (EchoMetadata != other.EchoMetadata) return false;
657       if (CheckAuthContext != other.CheckAuthContext) return false;
658       if (ResponseMessageLength != other.ResponseMessageLength) return false;
659       if (EchoPeer != other.EchoPeer) return false;
660       if (ExpectedClientIdentity != other.ExpectedClientIdentity) return false;
661       if (SkipCancelledCheck != other.SkipCancelledCheck) return false;
662       if (ExpectedTransportSecurityType != other.ExpectedTransportSecurityType) return false;
663       if (!object.Equals(DebugInfo, other.DebugInfo)) return false;
664       if (ServerDie != other.ServerDie) return false;
665       if (BinaryErrorDetails != other.BinaryErrorDetails) return false;
666       if (!object.Equals(ExpectedError, other.ExpectedError)) return false;
667       if (ServerSleepUs != other.ServerSleepUs) return false;
668       if (BackendChannelIdx != other.BackendChannelIdx) return false;
669       return Equals(_unknownFields, other._unknownFields);
670     }
671 
672     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()673     public override int GetHashCode() {
674       int hash = 1;
675       if (EchoDeadline != false) hash ^= EchoDeadline.GetHashCode();
676       if (ClientCancelAfterUs != 0) hash ^= ClientCancelAfterUs.GetHashCode();
677       if (ServerCancelAfterUs != 0) hash ^= ServerCancelAfterUs.GetHashCode();
678       if (EchoMetadata != false) hash ^= EchoMetadata.GetHashCode();
679       if (CheckAuthContext != false) hash ^= CheckAuthContext.GetHashCode();
680       if (ResponseMessageLength != 0) hash ^= ResponseMessageLength.GetHashCode();
681       if (EchoPeer != false) hash ^= EchoPeer.GetHashCode();
682       if (ExpectedClientIdentity.Length != 0) hash ^= ExpectedClientIdentity.GetHashCode();
683       if (SkipCancelledCheck != false) hash ^= SkipCancelledCheck.GetHashCode();
684       if (ExpectedTransportSecurityType.Length != 0) hash ^= ExpectedTransportSecurityType.GetHashCode();
685       if (debugInfo_ != null) hash ^= DebugInfo.GetHashCode();
686       if (ServerDie != false) hash ^= ServerDie.GetHashCode();
687       if (BinaryErrorDetails.Length != 0) hash ^= BinaryErrorDetails.GetHashCode();
688       if (expectedError_ != null) hash ^= ExpectedError.GetHashCode();
689       if (ServerSleepUs != 0) hash ^= ServerSleepUs.GetHashCode();
690       if (BackendChannelIdx != 0) hash ^= BackendChannelIdx.GetHashCode();
691       if (_unknownFields != null) {
692         hash ^= _unknownFields.GetHashCode();
693       }
694       return hash;
695     }
696 
697     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()698     public override string ToString() {
699       return pb::JsonFormatter.ToDiagnosticString(this);
700     }
701 
702     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)703     public void WriteTo(pb::CodedOutputStream output) {
704       if (EchoDeadline != false) {
705         output.WriteRawTag(8);
706         output.WriteBool(EchoDeadline);
707       }
708       if (ClientCancelAfterUs != 0) {
709         output.WriteRawTag(16);
710         output.WriteInt32(ClientCancelAfterUs);
711       }
712       if (ServerCancelAfterUs != 0) {
713         output.WriteRawTag(24);
714         output.WriteInt32(ServerCancelAfterUs);
715       }
716       if (EchoMetadata != false) {
717         output.WriteRawTag(32);
718         output.WriteBool(EchoMetadata);
719       }
720       if (CheckAuthContext != false) {
721         output.WriteRawTag(40);
722         output.WriteBool(CheckAuthContext);
723       }
724       if (ResponseMessageLength != 0) {
725         output.WriteRawTag(48);
726         output.WriteInt32(ResponseMessageLength);
727       }
728       if (EchoPeer != false) {
729         output.WriteRawTag(56);
730         output.WriteBool(EchoPeer);
731       }
732       if (ExpectedClientIdentity.Length != 0) {
733         output.WriteRawTag(66);
734         output.WriteString(ExpectedClientIdentity);
735       }
736       if (SkipCancelledCheck != false) {
737         output.WriteRawTag(72);
738         output.WriteBool(SkipCancelledCheck);
739       }
740       if (ExpectedTransportSecurityType.Length != 0) {
741         output.WriteRawTag(82);
742         output.WriteString(ExpectedTransportSecurityType);
743       }
744       if (debugInfo_ != null) {
745         output.WriteRawTag(90);
746         output.WriteMessage(DebugInfo);
747       }
748       if (ServerDie != false) {
749         output.WriteRawTag(96);
750         output.WriteBool(ServerDie);
751       }
752       if (BinaryErrorDetails.Length != 0) {
753         output.WriteRawTag(106);
754         output.WriteString(BinaryErrorDetails);
755       }
756       if (expectedError_ != null) {
757         output.WriteRawTag(114);
758         output.WriteMessage(ExpectedError);
759       }
760       if (ServerSleepUs != 0) {
761         output.WriteRawTag(120);
762         output.WriteInt32(ServerSleepUs);
763       }
764       if (BackendChannelIdx != 0) {
765         output.WriteRawTag(128, 1);
766         output.WriteInt32(BackendChannelIdx);
767       }
768       if (_unknownFields != null) {
769         _unknownFields.WriteTo(output);
770       }
771     }
772 
773     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()774     public int CalculateSize() {
775       int size = 0;
776       if (EchoDeadline != false) {
777         size += 1 + 1;
778       }
779       if (ClientCancelAfterUs != 0) {
780         size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClientCancelAfterUs);
781       }
782       if (ServerCancelAfterUs != 0) {
783         size += 1 + pb::CodedOutputStream.ComputeInt32Size(ServerCancelAfterUs);
784       }
785       if (EchoMetadata != false) {
786         size += 1 + 1;
787       }
788       if (CheckAuthContext != false) {
789         size += 1 + 1;
790       }
791       if (ResponseMessageLength != 0) {
792         size += 1 + pb::CodedOutputStream.ComputeInt32Size(ResponseMessageLength);
793       }
794       if (EchoPeer != false) {
795         size += 1 + 1;
796       }
797       if (ExpectedClientIdentity.Length != 0) {
798         size += 1 + pb::CodedOutputStream.ComputeStringSize(ExpectedClientIdentity);
799       }
800       if (SkipCancelledCheck != false) {
801         size += 1 + 1;
802       }
803       if (ExpectedTransportSecurityType.Length != 0) {
804         size += 1 + pb::CodedOutputStream.ComputeStringSize(ExpectedTransportSecurityType);
805       }
806       if (debugInfo_ != null) {
807         size += 1 + pb::CodedOutputStream.ComputeMessageSize(DebugInfo);
808       }
809       if (ServerDie != false) {
810         size += 1 + 1;
811       }
812       if (BinaryErrorDetails.Length != 0) {
813         size += 1 + pb::CodedOutputStream.ComputeStringSize(BinaryErrorDetails);
814       }
815       if (expectedError_ != null) {
816         size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpectedError);
817       }
818       if (ServerSleepUs != 0) {
819         size += 1 + pb::CodedOutputStream.ComputeInt32Size(ServerSleepUs);
820       }
821       if (BackendChannelIdx != 0) {
822         size += 2 + pb::CodedOutputStream.ComputeInt32Size(BackendChannelIdx);
823       }
824       if (_unknownFields != null) {
825         size += _unknownFields.CalculateSize();
826       }
827       return size;
828     }
829 
830     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(RequestParams other)831     public void MergeFrom(RequestParams other) {
832       if (other == null) {
833         return;
834       }
835       if (other.EchoDeadline != false) {
836         EchoDeadline = other.EchoDeadline;
837       }
838       if (other.ClientCancelAfterUs != 0) {
839         ClientCancelAfterUs = other.ClientCancelAfterUs;
840       }
841       if (other.ServerCancelAfterUs != 0) {
842         ServerCancelAfterUs = other.ServerCancelAfterUs;
843       }
844       if (other.EchoMetadata != false) {
845         EchoMetadata = other.EchoMetadata;
846       }
847       if (other.CheckAuthContext != false) {
848         CheckAuthContext = other.CheckAuthContext;
849       }
850       if (other.ResponseMessageLength != 0) {
851         ResponseMessageLength = other.ResponseMessageLength;
852       }
853       if (other.EchoPeer != false) {
854         EchoPeer = other.EchoPeer;
855       }
856       if (other.ExpectedClientIdentity.Length != 0) {
857         ExpectedClientIdentity = other.ExpectedClientIdentity;
858       }
859       if (other.SkipCancelledCheck != false) {
860         SkipCancelledCheck = other.SkipCancelledCheck;
861       }
862       if (other.ExpectedTransportSecurityType.Length != 0) {
863         ExpectedTransportSecurityType = other.ExpectedTransportSecurityType;
864       }
865       if (other.debugInfo_ != null) {
866         if (debugInfo_ == null) {
867           debugInfo_ = new global::Grpc.Testing.DebugInfo();
868         }
869         DebugInfo.MergeFrom(other.DebugInfo);
870       }
871       if (other.ServerDie != false) {
872         ServerDie = other.ServerDie;
873       }
874       if (other.BinaryErrorDetails.Length != 0) {
875         BinaryErrorDetails = other.BinaryErrorDetails;
876       }
877       if (other.expectedError_ != null) {
878         if (expectedError_ == null) {
879           expectedError_ = new global::Grpc.Testing.ErrorStatus();
880         }
881         ExpectedError.MergeFrom(other.ExpectedError);
882       }
883       if (other.ServerSleepUs != 0) {
884         ServerSleepUs = other.ServerSleepUs;
885       }
886       if (other.BackendChannelIdx != 0) {
887         BackendChannelIdx = other.BackendChannelIdx;
888       }
889       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
890     }
891 
892     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)893     public void MergeFrom(pb::CodedInputStream input) {
894       uint tag;
895       while ((tag = input.ReadTag()) != 0) {
896         switch(tag) {
897           default:
898             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
899             break;
900           case 8: {
901             EchoDeadline = input.ReadBool();
902             break;
903           }
904           case 16: {
905             ClientCancelAfterUs = input.ReadInt32();
906             break;
907           }
908           case 24: {
909             ServerCancelAfterUs = input.ReadInt32();
910             break;
911           }
912           case 32: {
913             EchoMetadata = input.ReadBool();
914             break;
915           }
916           case 40: {
917             CheckAuthContext = input.ReadBool();
918             break;
919           }
920           case 48: {
921             ResponseMessageLength = input.ReadInt32();
922             break;
923           }
924           case 56: {
925             EchoPeer = input.ReadBool();
926             break;
927           }
928           case 66: {
929             ExpectedClientIdentity = input.ReadString();
930             break;
931           }
932           case 72: {
933             SkipCancelledCheck = input.ReadBool();
934             break;
935           }
936           case 82: {
937             ExpectedTransportSecurityType = input.ReadString();
938             break;
939           }
940           case 90: {
941             if (debugInfo_ == null) {
942               debugInfo_ = new global::Grpc.Testing.DebugInfo();
943             }
944             input.ReadMessage(debugInfo_);
945             break;
946           }
947           case 96: {
948             ServerDie = input.ReadBool();
949             break;
950           }
951           case 106: {
952             BinaryErrorDetails = input.ReadString();
953             break;
954           }
955           case 114: {
956             if (expectedError_ == null) {
957               expectedError_ = new global::Grpc.Testing.ErrorStatus();
958             }
959             input.ReadMessage(expectedError_);
960             break;
961           }
962           case 120: {
963             ServerSleepUs = input.ReadInt32();
964             break;
965           }
966           case 128: {
967             BackendChannelIdx = input.ReadInt32();
968             break;
969           }
970         }
971       }
972     }
973 
974   }
975 
976   public sealed partial class EchoRequest : pb::IMessage<EchoRequest> {
977     private static readonly pb::MessageParser<EchoRequest> _parser = new pb::MessageParser<EchoRequest>(() => new EchoRequest());
978     private pb::UnknownFieldSet _unknownFields;
979     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
980     public static pb::MessageParser<EchoRequest> Parser { get { return _parser; } }
981 
982     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
983     public static pbr::MessageDescriptor Descriptor {
984       get { return global::Grpc.Testing.EchoMessagesReflection.Descriptor.MessageTypes[3]; }
985     }
986 
987     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
988     pbr::MessageDescriptor pb::IMessage.Descriptor {
989       get { return Descriptor; }
990     }
991 
992     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
EchoRequest()993     public EchoRequest() {
994       OnConstruction();
995     }
996 
OnConstruction()997     partial void OnConstruction();
998 
999     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
EchoRequest(EchoRequest other)1000     public EchoRequest(EchoRequest other) : this() {
1001       message_ = other.message_;
1002       param_ = other.param_ != null ? other.param_.Clone() : null;
1003       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1004     }
1005 
1006     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()1007     public EchoRequest Clone() {
1008       return new EchoRequest(this);
1009     }
1010 
1011     /// <summary>Field number for the "message" field.</summary>
1012     public const int MessageFieldNumber = 1;
1013     private string message_ = "";
1014     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1015     public string Message {
1016       get { return message_; }
1017       set {
1018         message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1019       }
1020     }
1021 
1022     /// <summary>Field number for the "param" field.</summary>
1023     public const int ParamFieldNumber = 2;
1024     private global::Grpc.Testing.RequestParams param_;
1025     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1026     public global::Grpc.Testing.RequestParams Param {
1027       get { return param_; }
1028       set {
1029         param_ = value;
1030       }
1031     }
1032 
1033     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)1034     public override bool Equals(object other) {
1035       return Equals(other as EchoRequest);
1036     }
1037 
1038     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(EchoRequest other)1039     public bool Equals(EchoRequest other) {
1040       if (ReferenceEquals(other, null)) {
1041         return false;
1042       }
1043       if (ReferenceEquals(other, this)) {
1044         return true;
1045       }
1046       if (Message != other.Message) return false;
1047       if (!object.Equals(Param, other.Param)) return false;
1048       return Equals(_unknownFields, other._unknownFields);
1049     }
1050 
1051     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()1052     public override int GetHashCode() {
1053       int hash = 1;
1054       if (Message.Length != 0) hash ^= Message.GetHashCode();
1055       if (param_ != null) hash ^= Param.GetHashCode();
1056       if (_unknownFields != null) {
1057         hash ^= _unknownFields.GetHashCode();
1058       }
1059       return hash;
1060     }
1061 
1062     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()1063     public override string ToString() {
1064       return pb::JsonFormatter.ToDiagnosticString(this);
1065     }
1066 
1067     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)1068     public void WriteTo(pb::CodedOutputStream output) {
1069       if (Message.Length != 0) {
1070         output.WriteRawTag(10);
1071         output.WriteString(Message);
1072       }
1073       if (param_ != null) {
1074         output.WriteRawTag(18);
1075         output.WriteMessage(Param);
1076       }
1077       if (_unknownFields != null) {
1078         _unknownFields.WriteTo(output);
1079       }
1080     }
1081 
1082     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()1083     public int CalculateSize() {
1084       int size = 0;
1085       if (Message.Length != 0) {
1086         size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
1087       }
1088       if (param_ != null) {
1089         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Param);
1090       }
1091       if (_unknownFields != null) {
1092         size += _unknownFields.CalculateSize();
1093       }
1094       return size;
1095     }
1096 
1097     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(EchoRequest other)1098     public void MergeFrom(EchoRequest other) {
1099       if (other == null) {
1100         return;
1101       }
1102       if (other.Message.Length != 0) {
1103         Message = other.Message;
1104       }
1105       if (other.param_ != null) {
1106         if (param_ == null) {
1107           param_ = new global::Grpc.Testing.RequestParams();
1108         }
1109         Param.MergeFrom(other.Param);
1110       }
1111       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1112     }
1113 
1114     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)1115     public void MergeFrom(pb::CodedInputStream input) {
1116       uint tag;
1117       while ((tag = input.ReadTag()) != 0) {
1118         switch(tag) {
1119           default:
1120             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1121             break;
1122           case 10: {
1123             Message = input.ReadString();
1124             break;
1125           }
1126           case 18: {
1127             if (param_ == null) {
1128               param_ = new global::Grpc.Testing.RequestParams();
1129             }
1130             input.ReadMessage(param_);
1131             break;
1132           }
1133         }
1134       }
1135     }
1136 
1137   }
1138 
1139   public sealed partial class ResponseParams : pb::IMessage<ResponseParams> {
1140     private static readonly pb::MessageParser<ResponseParams> _parser = new pb::MessageParser<ResponseParams>(() => new ResponseParams());
1141     private pb::UnknownFieldSet _unknownFields;
1142     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1143     public static pb::MessageParser<ResponseParams> Parser { get { return _parser; } }
1144 
1145     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1146     public static pbr::MessageDescriptor Descriptor {
1147       get { return global::Grpc.Testing.EchoMessagesReflection.Descriptor.MessageTypes[4]; }
1148     }
1149 
1150     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1151     pbr::MessageDescriptor pb::IMessage.Descriptor {
1152       get { return Descriptor; }
1153     }
1154 
1155     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ResponseParams()1156     public ResponseParams() {
1157       OnConstruction();
1158     }
1159 
OnConstruction()1160     partial void OnConstruction();
1161 
1162     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ResponseParams(ResponseParams other)1163     public ResponseParams(ResponseParams other) : this() {
1164       requestDeadline_ = other.requestDeadline_;
1165       host_ = other.host_;
1166       peer_ = other.peer_;
1167       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1168     }
1169 
1170     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()1171     public ResponseParams Clone() {
1172       return new ResponseParams(this);
1173     }
1174 
1175     /// <summary>Field number for the "request_deadline" field.</summary>
1176     public const int RequestDeadlineFieldNumber = 1;
1177     private long requestDeadline_;
1178     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1179     public long RequestDeadline {
1180       get { return requestDeadline_; }
1181       set {
1182         requestDeadline_ = value;
1183       }
1184     }
1185 
1186     /// <summary>Field number for the "host" field.</summary>
1187     public const int HostFieldNumber = 2;
1188     private string host_ = "";
1189     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1190     public string Host {
1191       get { return host_; }
1192       set {
1193         host_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1194       }
1195     }
1196 
1197     /// <summary>Field number for the "peer" field.</summary>
1198     public const int PeerFieldNumber = 3;
1199     private string peer_ = "";
1200     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1201     public string Peer {
1202       get { return peer_; }
1203       set {
1204         peer_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1205       }
1206     }
1207 
1208     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)1209     public override bool Equals(object other) {
1210       return Equals(other as ResponseParams);
1211     }
1212 
1213     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(ResponseParams other)1214     public bool Equals(ResponseParams other) {
1215       if (ReferenceEquals(other, null)) {
1216         return false;
1217       }
1218       if (ReferenceEquals(other, this)) {
1219         return true;
1220       }
1221       if (RequestDeadline != other.RequestDeadline) return false;
1222       if (Host != other.Host) return false;
1223       if (Peer != other.Peer) return false;
1224       return Equals(_unknownFields, other._unknownFields);
1225     }
1226 
1227     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()1228     public override int GetHashCode() {
1229       int hash = 1;
1230       if (RequestDeadline != 0L) hash ^= RequestDeadline.GetHashCode();
1231       if (Host.Length != 0) hash ^= Host.GetHashCode();
1232       if (Peer.Length != 0) hash ^= Peer.GetHashCode();
1233       if (_unknownFields != null) {
1234         hash ^= _unknownFields.GetHashCode();
1235       }
1236       return hash;
1237     }
1238 
1239     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()1240     public override string ToString() {
1241       return pb::JsonFormatter.ToDiagnosticString(this);
1242     }
1243 
1244     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)1245     public void WriteTo(pb::CodedOutputStream output) {
1246       if (RequestDeadline != 0L) {
1247         output.WriteRawTag(8);
1248         output.WriteInt64(RequestDeadline);
1249       }
1250       if (Host.Length != 0) {
1251         output.WriteRawTag(18);
1252         output.WriteString(Host);
1253       }
1254       if (Peer.Length != 0) {
1255         output.WriteRawTag(26);
1256         output.WriteString(Peer);
1257       }
1258       if (_unknownFields != null) {
1259         _unknownFields.WriteTo(output);
1260       }
1261     }
1262 
1263     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()1264     public int CalculateSize() {
1265       int size = 0;
1266       if (RequestDeadline != 0L) {
1267         size += 1 + pb::CodedOutputStream.ComputeInt64Size(RequestDeadline);
1268       }
1269       if (Host.Length != 0) {
1270         size += 1 + pb::CodedOutputStream.ComputeStringSize(Host);
1271       }
1272       if (Peer.Length != 0) {
1273         size += 1 + pb::CodedOutputStream.ComputeStringSize(Peer);
1274       }
1275       if (_unknownFields != null) {
1276         size += _unknownFields.CalculateSize();
1277       }
1278       return size;
1279     }
1280 
1281     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(ResponseParams other)1282     public void MergeFrom(ResponseParams other) {
1283       if (other == null) {
1284         return;
1285       }
1286       if (other.RequestDeadline != 0L) {
1287         RequestDeadline = other.RequestDeadline;
1288       }
1289       if (other.Host.Length != 0) {
1290         Host = other.Host;
1291       }
1292       if (other.Peer.Length != 0) {
1293         Peer = other.Peer;
1294       }
1295       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1296     }
1297 
1298     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)1299     public void MergeFrom(pb::CodedInputStream input) {
1300       uint tag;
1301       while ((tag = input.ReadTag()) != 0) {
1302         switch(tag) {
1303           default:
1304             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1305             break;
1306           case 8: {
1307             RequestDeadline = input.ReadInt64();
1308             break;
1309           }
1310           case 18: {
1311             Host = input.ReadString();
1312             break;
1313           }
1314           case 26: {
1315             Peer = input.ReadString();
1316             break;
1317           }
1318         }
1319       }
1320     }
1321 
1322   }
1323 
1324   public sealed partial class EchoResponse : pb::IMessage<EchoResponse> {
1325     private static readonly pb::MessageParser<EchoResponse> _parser = new pb::MessageParser<EchoResponse>(() => new EchoResponse());
1326     private pb::UnknownFieldSet _unknownFields;
1327     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1328     public static pb::MessageParser<EchoResponse> Parser { get { return _parser; } }
1329 
1330     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1331     public static pbr::MessageDescriptor Descriptor {
1332       get { return global::Grpc.Testing.EchoMessagesReflection.Descriptor.MessageTypes[5]; }
1333     }
1334 
1335     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1336     pbr::MessageDescriptor pb::IMessage.Descriptor {
1337       get { return Descriptor; }
1338     }
1339 
1340     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
EchoResponse()1341     public EchoResponse() {
1342       OnConstruction();
1343     }
1344 
OnConstruction()1345     partial void OnConstruction();
1346 
1347     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
EchoResponse(EchoResponse other)1348     public EchoResponse(EchoResponse other) : this() {
1349       message_ = other.message_;
1350       param_ = other.param_ != null ? other.param_.Clone() : null;
1351       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1352     }
1353 
1354     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()1355     public EchoResponse Clone() {
1356       return new EchoResponse(this);
1357     }
1358 
1359     /// <summary>Field number for the "message" field.</summary>
1360     public const int MessageFieldNumber = 1;
1361     private string message_ = "";
1362     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1363     public string Message {
1364       get { return message_; }
1365       set {
1366         message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1367       }
1368     }
1369 
1370     /// <summary>Field number for the "param" field.</summary>
1371     public const int ParamFieldNumber = 2;
1372     private global::Grpc.Testing.ResponseParams param_;
1373     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1374     public global::Grpc.Testing.ResponseParams Param {
1375       get { return param_; }
1376       set {
1377         param_ = value;
1378       }
1379     }
1380 
1381     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)1382     public override bool Equals(object other) {
1383       return Equals(other as EchoResponse);
1384     }
1385 
1386     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(EchoResponse other)1387     public bool Equals(EchoResponse other) {
1388       if (ReferenceEquals(other, null)) {
1389         return false;
1390       }
1391       if (ReferenceEquals(other, this)) {
1392         return true;
1393       }
1394       if (Message != other.Message) return false;
1395       if (!object.Equals(Param, other.Param)) return false;
1396       return Equals(_unknownFields, other._unknownFields);
1397     }
1398 
1399     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()1400     public override int GetHashCode() {
1401       int hash = 1;
1402       if (Message.Length != 0) hash ^= Message.GetHashCode();
1403       if (param_ != null) hash ^= Param.GetHashCode();
1404       if (_unknownFields != null) {
1405         hash ^= _unknownFields.GetHashCode();
1406       }
1407       return hash;
1408     }
1409 
1410     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()1411     public override string ToString() {
1412       return pb::JsonFormatter.ToDiagnosticString(this);
1413     }
1414 
1415     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)1416     public void WriteTo(pb::CodedOutputStream output) {
1417       if (Message.Length != 0) {
1418         output.WriteRawTag(10);
1419         output.WriteString(Message);
1420       }
1421       if (param_ != null) {
1422         output.WriteRawTag(18);
1423         output.WriteMessage(Param);
1424       }
1425       if (_unknownFields != null) {
1426         _unknownFields.WriteTo(output);
1427       }
1428     }
1429 
1430     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()1431     public int CalculateSize() {
1432       int size = 0;
1433       if (Message.Length != 0) {
1434         size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
1435       }
1436       if (param_ != null) {
1437         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Param);
1438       }
1439       if (_unknownFields != null) {
1440         size += _unknownFields.CalculateSize();
1441       }
1442       return size;
1443     }
1444 
1445     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(EchoResponse other)1446     public void MergeFrom(EchoResponse other) {
1447       if (other == null) {
1448         return;
1449       }
1450       if (other.Message.Length != 0) {
1451         Message = other.Message;
1452       }
1453       if (other.param_ != null) {
1454         if (param_ == null) {
1455           param_ = new global::Grpc.Testing.ResponseParams();
1456         }
1457         Param.MergeFrom(other.Param);
1458       }
1459       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1460     }
1461 
1462     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)1463     public void MergeFrom(pb::CodedInputStream input) {
1464       uint tag;
1465       while ((tag = input.ReadTag()) != 0) {
1466         switch(tag) {
1467           default:
1468             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1469             break;
1470           case 10: {
1471             Message = input.ReadString();
1472             break;
1473           }
1474           case 18: {
1475             if (param_ == null) {
1476               param_ = new global::Grpc.Testing.ResponseParams();
1477             }
1478             input.ReadMessage(param_);
1479             break;
1480           }
1481         }
1482       }
1483     }
1484 
1485   }
1486 
1487   #endregion
1488 
1489 }
1490 
1491 #endregion Designer generated code
1492