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