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