• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // <auto-generated>
2 //     Generated by the protocol buffer compiler.  DO NOT EDIT!
3 //     source: src/proto/grpc/testing/echo_messages.proto
4 // </auto-generated>
5 #pragma warning disable 1591, 0612, 3021
6 #region Designer generated code
7 
8 using pb = global::Google.Protobuf;
9 using pbc = global::Google.Protobuf.Collections;
10 using pbr = global::Google.Protobuf.Reflection;
11 using scg = global::System.Collections.Generic;
12 namespace Grpc.Testing {
13 
14   /// <summary>Holder for reflection information generated from src/proto/grpc/testing/echo_messages.proto</summary>
15   public static partial class EchoMessagesReflection {
16 
17     #region Descriptor
18     /// <summary>File descriptor for src/proto/grpc/testing/echo_messages.proto</summary>
19     public static pbr::FileDescriptor Descriptor {
20       get { return descriptor; }
21     }
22     private static pbr::FileDescriptor descriptor;
23 
EchoMessagesReflection()24     static EchoMessagesReflection() {
25       byte[] descriptorData = global::System.Convert.FromBase64String(
26           string.Concat(
27             "CipzcmMvcHJvdG8vZ3JwYy90ZXN0aW5nL2VjaG9fbWVzc2FnZXMucHJvdG8S",
28             "DGdycGMudGVzdGluZyIyCglEZWJ1Z0luZm8SFQoNc3RhY2tfZW50cmllcxgB",
29             "IAMoCRIOCgZkZXRhaWwYAiABKAkiUAoLRXJyb3JTdGF0dXMSDAoEY29kZRgB",
30             "IAEoBRIVCg1lcnJvcl9tZXNzYWdlGAIgASgJEhwKFGJpbmFyeV9lcnJvcl9k",
31             "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   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
70       , pb::IBufferMessage
71   #endif
72   {
73     private static readonly pb::MessageParser<DebugInfo> _parser = new pb::MessageParser<DebugInfo>(() => new DebugInfo());
74     private pb::UnknownFieldSet _unknownFields;
75     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
76     public static pb::MessageParser<DebugInfo> Parser { get { return _parser; } }
77 
78     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
79     public static pbr::MessageDescriptor Descriptor {
80       get { return global::Grpc.Testing.EchoMessagesReflection.Descriptor.MessageTypes[0]; }
81     }
82 
83     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
84     pbr::MessageDescriptor pb::IMessage.Descriptor {
85       get { return Descriptor; }
86     }
87 
88     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
DebugInfo()89     public DebugInfo() {
90       OnConstruction();
91     }
92 
OnConstruction()93     partial void OnConstruction();
94 
95     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
DebugInfo(DebugInfo other)96     public DebugInfo(DebugInfo other) : this() {
97       stackEntries_ = other.stackEntries_.Clone();
98       detail_ = other.detail_;
99       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
100     }
101 
102     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()103     public DebugInfo Clone() {
104       return new DebugInfo(this);
105     }
106 
107     /// <summary>Field number for the "stack_entries" field.</summary>
108     public const int StackEntriesFieldNumber = 1;
109     private static readonly pb::FieldCodec<string> _repeated_stackEntries_codec
110         = pb::FieldCodec.ForString(10);
111     private readonly pbc::RepeatedField<string> stackEntries_ = new pbc::RepeatedField<string>();
112     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
113     public pbc::RepeatedField<string> StackEntries {
114       get { return stackEntries_; }
115     }
116 
117     /// <summary>Field number for the "detail" field.</summary>
118     public const int DetailFieldNumber = 2;
119     private string detail_ = "";
120     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
121     public string Detail {
122       get { return detail_; }
123       set {
124         detail_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
125       }
126     }
127 
128     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)129     public override bool Equals(object other) {
130       return Equals(other as DebugInfo);
131     }
132 
133     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(DebugInfo other)134     public bool Equals(DebugInfo other) {
135       if (ReferenceEquals(other, null)) {
136         return false;
137       }
138       if (ReferenceEquals(other, this)) {
139         return true;
140       }
141       if(!stackEntries_.Equals(other.stackEntries_)) return false;
142       if (Detail != other.Detail) return false;
143       return Equals(_unknownFields, other._unknownFields);
144     }
145 
146     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()147     public override int GetHashCode() {
148       int hash = 1;
149       hash ^= stackEntries_.GetHashCode();
150       if (Detail.Length != 0) hash ^= Detail.GetHashCode();
151       if (_unknownFields != null) {
152         hash ^= _unknownFields.GetHashCode();
153       }
154       return hash;
155     }
156 
157     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()158     public override string ToString() {
159       return pb::JsonFormatter.ToDiagnosticString(this);
160     }
161 
162     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)163     public void WriteTo(pb::CodedOutputStream output) {
164     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
165       output.WriteRawMessage(this);
166     #else
167       stackEntries_.WriteTo(output, _repeated_stackEntries_codec);
168       if (Detail.Length != 0) {
169         output.WriteRawTag(18);
170         output.WriteString(Detail);
171       }
172       if (_unknownFields != null) {
173         _unknownFields.WriteTo(output);
174       }
175     #endif
176     }
177 
178     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
179     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)180     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
181       stackEntries_.WriteTo(ref output, _repeated_stackEntries_codec);
182       if (Detail.Length != 0) {
183         output.WriteRawTag(18);
184         output.WriteString(Detail);
185       }
186       if (_unknownFields != null) {
187         _unknownFields.WriteTo(ref output);
188       }
189     }
190     #endif
191 
192     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()193     public int CalculateSize() {
194       int size = 0;
195       size += stackEntries_.CalculateSize(_repeated_stackEntries_codec);
196       if (Detail.Length != 0) {
197         size += 1 + pb::CodedOutputStream.ComputeStringSize(Detail);
198       }
199       if (_unknownFields != null) {
200         size += _unknownFields.CalculateSize();
201       }
202       return size;
203     }
204 
205     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(DebugInfo other)206     public void MergeFrom(DebugInfo other) {
207       if (other == null) {
208         return;
209       }
210       stackEntries_.Add(other.stackEntries_);
211       if (other.Detail.Length != 0) {
212         Detail = other.Detail;
213       }
214       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
215     }
216 
217     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)218     public void MergeFrom(pb::CodedInputStream input) {
219     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
220       input.ReadRawMessage(this);
221     #else
222       uint tag;
223       while ((tag = input.ReadTag()) != 0) {
224         switch(tag) {
225           default:
226             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
227             break;
228           case 10: {
229             stackEntries_.AddEntriesFrom(input, _repeated_stackEntries_codec);
230             break;
231           }
232           case 18: {
233             Detail = input.ReadString();
234             break;
235           }
236         }
237       }
238     #endif
239     }
240 
241     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
242     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)243     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
244       uint tag;
245       while ((tag = input.ReadTag()) != 0) {
246         switch(tag) {
247           default:
248             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
249             break;
250           case 10: {
251             stackEntries_.AddEntriesFrom(ref input, _repeated_stackEntries_codec);
252             break;
253           }
254           case 18: {
255             Detail = input.ReadString();
256             break;
257           }
258         }
259       }
260     }
261     #endif
262 
263   }
264 
265   /// <summary>
266   /// Error status client expects to see.
267   /// </summary>
268   public sealed partial class ErrorStatus : pb::IMessage<ErrorStatus>
269   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
270       , pb::IBufferMessage
271   #endif
272   {
273     private static readonly pb::MessageParser<ErrorStatus> _parser = new pb::MessageParser<ErrorStatus>(() => new ErrorStatus());
274     private pb::UnknownFieldSet _unknownFields;
275     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
276     public static pb::MessageParser<ErrorStatus> Parser { get { return _parser; } }
277 
278     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
279     public static pbr::MessageDescriptor Descriptor {
280       get { return global::Grpc.Testing.EchoMessagesReflection.Descriptor.MessageTypes[1]; }
281     }
282 
283     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
284     pbr::MessageDescriptor pb::IMessage.Descriptor {
285       get { return Descriptor; }
286     }
287 
288     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ErrorStatus()289     public ErrorStatus() {
290       OnConstruction();
291     }
292 
OnConstruction()293     partial void OnConstruction();
294 
295     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ErrorStatus(ErrorStatus other)296     public ErrorStatus(ErrorStatus other) : this() {
297       code_ = other.code_;
298       errorMessage_ = other.errorMessage_;
299       binaryErrorDetails_ = other.binaryErrorDetails_;
300       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
301     }
302 
303     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()304     public ErrorStatus Clone() {
305       return new ErrorStatus(this);
306     }
307 
308     /// <summary>Field number for the "code" field.</summary>
309     public const int CodeFieldNumber = 1;
310     private int code_;
311     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
312     public int Code {
313       get { return code_; }
314       set {
315         code_ = value;
316       }
317     }
318 
319     /// <summary>Field number for the "error_message" field.</summary>
320     public const int ErrorMessageFieldNumber = 2;
321     private string errorMessage_ = "";
322     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
323     public string ErrorMessage {
324       get { return errorMessage_; }
325       set {
326         errorMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
327       }
328     }
329 
330     /// <summary>Field number for the "binary_error_details" field.</summary>
331     public const int BinaryErrorDetailsFieldNumber = 3;
332     private string binaryErrorDetails_ = "";
333     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
334     public string BinaryErrorDetails {
335       get { return binaryErrorDetails_; }
336       set {
337         binaryErrorDetails_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
338       }
339     }
340 
341     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)342     public override bool Equals(object other) {
343       return Equals(other as ErrorStatus);
344     }
345 
346     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(ErrorStatus other)347     public bool Equals(ErrorStatus other) {
348       if (ReferenceEquals(other, null)) {
349         return false;
350       }
351       if (ReferenceEquals(other, this)) {
352         return true;
353       }
354       if (Code != other.Code) return false;
355       if (ErrorMessage != other.ErrorMessage) return false;
356       if (BinaryErrorDetails != other.BinaryErrorDetails) return false;
357       return Equals(_unknownFields, other._unknownFields);
358     }
359 
360     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()361     public override int GetHashCode() {
362       int hash = 1;
363       if (Code != 0) hash ^= Code.GetHashCode();
364       if (ErrorMessage.Length != 0) hash ^= ErrorMessage.GetHashCode();
365       if (BinaryErrorDetails.Length != 0) hash ^= BinaryErrorDetails.GetHashCode();
366       if (_unknownFields != null) {
367         hash ^= _unknownFields.GetHashCode();
368       }
369       return hash;
370     }
371 
372     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()373     public override string ToString() {
374       return pb::JsonFormatter.ToDiagnosticString(this);
375     }
376 
377     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)378     public void WriteTo(pb::CodedOutputStream output) {
379     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
380       output.WriteRawMessage(this);
381     #else
382       if (Code != 0) {
383         output.WriteRawTag(8);
384         output.WriteInt32(Code);
385       }
386       if (ErrorMessage.Length != 0) {
387         output.WriteRawTag(18);
388         output.WriteString(ErrorMessage);
389       }
390       if (BinaryErrorDetails.Length != 0) {
391         output.WriteRawTag(26);
392         output.WriteString(BinaryErrorDetails);
393       }
394       if (_unknownFields != null) {
395         _unknownFields.WriteTo(output);
396       }
397     #endif
398     }
399 
400     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
401     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)402     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
403       if (Code != 0) {
404         output.WriteRawTag(8);
405         output.WriteInt32(Code);
406       }
407       if (ErrorMessage.Length != 0) {
408         output.WriteRawTag(18);
409         output.WriteString(ErrorMessage);
410       }
411       if (BinaryErrorDetails.Length != 0) {
412         output.WriteRawTag(26);
413         output.WriteString(BinaryErrorDetails);
414       }
415       if (_unknownFields != null) {
416         _unknownFields.WriteTo(ref output);
417       }
418     }
419     #endif
420 
421     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()422     public int CalculateSize() {
423       int size = 0;
424       if (Code != 0) {
425         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Code);
426       }
427       if (ErrorMessage.Length != 0) {
428         size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorMessage);
429       }
430       if (BinaryErrorDetails.Length != 0) {
431         size += 1 + pb::CodedOutputStream.ComputeStringSize(BinaryErrorDetails);
432       }
433       if (_unknownFields != null) {
434         size += _unknownFields.CalculateSize();
435       }
436       return size;
437     }
438 
439     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(ErrorStatus other)440     public void MergeFrom(ErrorStatus other) {
441       if (other == null) {
442         return;
443       }
444       if (other.Code != 0) {
445         Code = other.Code;
446       }
447       if (other.ErrorMessage.Length != 0) {
448         ErrorMessage = other.ErrorMessage;
449       }
450       if (other.BinaryErrorDetails.Length != 0) {
451         BinaryErrorDetails = other.BinaryErrorDetails;
452       }
453       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
454     }
455 
456     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)457     public void MergeFrom(pb::CodedInputStream input) {
458     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
459       input.ReadRawMessage(this);
460     #else
461       uint tag;
462       while ((tag = input.ReadTag()) != 0) {
463         switch(tag) {
464           default:
465             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
466             break;
467           case 8: {
468             Code = input.ReadInt32();
469             break;
470           }
471           case 18: {
472             ErrorMessage = input.ReadString();
473             break;
474           }
475           case 26: {
476             BinaryErrorDetails = input.ReadString();
477             break;
478           }
479         }
480       }
481     #endif
482     }
483 
484     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
485     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)486     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
487       uint tag;
488       while ((tag = input.ReadTag()) != 0) {
489         switch(tag) {
490           default:
491             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
492             break;
493           case 8: {
494             Code = input.ReadInt32();
495             break;
496           }
497           case 18: {
498             ErrorMessage = input.ReadString();
499             break;
500           }
501           case 26: {
502             BinaryErrorDetails = input.ReadString();
503             break;
504           }
505         }
506       }
507     }
508     #endif
509 
510   }
511 
512   public sealed partial class RequestParams : pb::IMessage<RequestParams>
513   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
514       , pb::IBufferMessage
515   #endif
516   {
517     private static readonly pb::MessageParser<RequestParams> _parser = new pb::MessageParser<RequestParams>(() => new RequestParams());
518     private pb::UnknownFieldSet _unknownFields;
519     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
520     public static pb::MessageParser<RequestParams> Parser { get { return _parser; } }
521 
522     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
523     public static pbr::MessageDescriptor Descriptor {
524       get { return global::Grpc.Testing.EchoMessagesReflection.Descriptor.MessageTypes[2]; }
525     }
526 
527     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
528     pbr::MessageDescriptor pb::IMessage.Descriptor {
529       get { return Descriptor; }
530     }
531 
532     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
RequestParams()533     public RequestParams() {
534       OnConstruction();
535     }
536 
OnConstruction()537     partial void OnConstruction();
538 
539     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
RequestParams(RequestParams other)540     public RequestParams(RequestParams other) : this() {
541       echoDeadline_ = other.echoDeadline_;
542       clientCancelAfterUs_ = other.clientCancelAfterUs_;
543       serverCancelAfterUs_ = other.serverCancelAfterUs_;
544       echoMetadata_ = other.echoMetadata_;
545       checkAuthContext_ = other.checkAuthContext_;
546       responseMessageLength_ = other.responseMessageLength_;
547       echoPeer_ = other.echoPeer_;
548       expectedClientIdentity_ = other.expectedClientIdentity_;
549       skipCancelledCheck_ = other.skipCancelledCheck_;
550       expectedTransportSecurityType_ = other.expectedTransportSecurityType_;
551       debugInfo_ = other.debugInfo_ != null ? other.debugInfo_.Clone() : null;
552       serverDie_ = other.serverDie_;
553       binaryErrorDetails_ = other.binaryErrorDetails_;
554       expectedError_ = other.expectedError_ != null ? other.expectedError_.Clone() : null;
555       serverSleepUs_ = other.serverSleepUs_;
556       backendChannelIdx_ = other.backendChannelIdx_;
557       echoMetadataInitially_ = other.echoMetadataInitially_;
558       serverNotifyClientWhenStarted_ = other.serverNotifyClientWhenStarted_;
559       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
560     }
561 
562     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()563     public RequestParams Clone() {
564       return new RequestParams(this);
565     }
566 
567     /// <summary>Field number for the "echo_deadline" field.</summary>
568     public const int EchoDeadlineFieldNumber = 1;
569     private bool echoDeadline_;
570     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
571     public bool EchoDeadline {
572       get { return echoDeadline_; }
573       set {
574         echoDeadline_ = value;
575       }
576     }
577 
578     /// <summary>Field number for the "client_cancel_after_us" field.</summary>
579     public const int ClientCancelAfterUsFieldNumber = 2;
580     private int clientCancelAfterUs_;
581     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
582     public int ClientCancelAfterUs {
583       get { return clientCancelAfterUs_; }
584       set {
585         clientCancelAfterUs_ = value;
586       }
587     }
588 
589     /// <summary>Field number for the "server_cancel_after_us" field.</summary>
590     public const int ServerCancelAfterUsFieldNumber = 3;
591     private int serverCancelAfterUs_;
592     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
593     public int ServerCancelAfterUs {
594       get { return serverCancelAfterUs_; }
595       set {
596         serverCancelAfterUs_ = value;
597       }
598     }
599 
600     /// <summary>Field number for the "echo_metadata" field.</summary>
601     public const int EchoMetadataFieldNumber = 4;
602     private bool echoMetadata_;
603     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
604     public bool EchoMetadata {
605       get { return echoMetadata_; }
606       set {
607         echoMetadata_ = value;
608       }
609     }
610 
611     /// <summary>Field number for the "check_auth_context" field.</summary>
612     public const int CheckAuthContextFieldNumber = 5;
613     private bool checkAuthContext_;
614     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
615     public bool CheckAuthContext {
616       get { return checkAuthContext_; }
617       set {
618         checkAuthContext_ = value;
619       }
620     }
621 
622     /// <summary>Field number for the "response_message_length" field.</summary>
623     public const int ResponseMessageLengthFieldNumber = 6;
624     private int responseMessageLength_;
625     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
626     public int ResponseMessageLength {
627       get { return responseMessageLength_; }
628       set {
629         responseMessageLength_ = value;
630       }
631     }
632 
633     /// <summary>Field number for the "echo_peer" field.</summary>
634     public const int EchoPeerFieldNumber = 7;
635     private bool echoPeer_;
636     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
637     public bool EchoPeer {
638       get { return echoPeer_; }
639       set {
640         echoPeer_ = value;
641       }
642     }
643 
644     /// <summary>Field number for the "expected_client_identity" field.</summary>
645     public const int ExpectedClientIdentityFieldNumber = 8;
646     private string expectedClientIdentity_ = "";
647     /// <summary>
648     /// will force check_auth_context.
649     /// </summary>
650     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
651     public string ExpectedClientIdentity {
652       get { return expectedClientIdentity_; }
653       set {
654         expectedClientIdentity_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
655       }
656     }
657 
658     /// <summary>Field number for the "skip_cancelled_check" field.</summary>
659     public const int SkipCancelledCheckFieldNumber = 9;
660     private bool skipCancelledCheck_;
661     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
662     public bool SkipCancelledCheck {
663       get { return skipCancelledCheck_; }
664       set {
665         skipCancelledCheck_ = value;
666       }
667     }
668 
669     /// <summary>Field number for the "expected_transport_security_type" field.</summary>
670     public const int ExpectedTransportSecurityTypeFieldNumber = 10;
671     private string expectedTransportSecurityType_ = "";
672     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
673     public string ExpectedTransportSecurityType {
674       get { return expectedTransportSecurityType_; }
675       set {
676         expectedTransportSecurityType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
677       }
678     }
679 
680     /// <summary>Field number for the "debug_info" field.</summary>
681     public const int DebugInfoFieldNumber = 11;
682     private global::Grpc.Testing.DebugInfo debugInfo_;
683     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
684     public global::Grpc.Testing.DebugInfo DebugInfo {
685       get { return debugInfo_; }
686       set {
687         debugInfo_ = value;
688       }
689     }
690 
691     /// <summary>Field number for the "server_die" field.</summary>
692     public const int ServerDieFieldNumber = 12;
693     private bool serverDie_;
694     /// <summary>
695     /// Server should not see a request with this set.
696     /// </summary>
697     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
698     public bool ServerDie {
699       get { return serverDie_; }
700       set {
701         serverDie_ = value;
702       }
703     }
704 
705     /// <summary>Field number for the "binary_error_details" field.</summary>
706     public const int BinaryErrorDetailsFieldNumber = 13;
707     private string binaryErrorDetails_ = "";
708     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
709     public string BinaryErrorDetails {
710       get { return binaryErrorDetails_; }
711       set {
712         binaryErrorDetails_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
713       }
714     }
715 
716     /// <summary>Field number for the "expected_error" field.</summary>
717     public const int ExpectedErrorFieldNumber = 14;
718     private global::Grpc.Testing.ErrorStatus expectedError_;
719     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
720     public global::Grpc.Testing.ErrorStatus ExpectedError {
721       get { return expectedError_; }
722       set {
723         expectedError_ = value;
724       }
725     }
726 
727     /// <summary>Field number for the "server_sleep_us" field.</summary>
728     public const int ServerSleepUsFieldNumber = 15;
729     private int serverSleepUs_;
730     /// <summary>
731     /// sleep when invoking server for deadline tests
732     /// </summary>
733     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
734     public int ServerSleepUs {
735       get { return serverSleepUs_; }
736       set {
737         serverSleepUs_ = value;
738       }
739     }
740 
741     /// <summary>Field number for the "backend_channel_idx" field.</summary>
742     public const int BackendChannelIdxFieldNumber = 16;
743     private int backendChannelIdx_;
744     /// <summary>
745     /// which backend to send request to
746     /// </summary>
747     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
748     public int BackendChannelIdx {
749       get { return backendChannelIdx_; }
750       set {
751         backendChannelIdx_ = value;
752       }
753     }
754 
755     /// <summary>Field number for the "echo_metadata_initially" field.</summary>
756     public const int EchoMetadataInitiallyFieldNumber = 17;
757     private bool echoMetadataInitially_;
758     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
759     public bool EchoMetadataInitially {
760       get { return echoMetadataInitially_; }
761       set {
762         echoMetadataInitially_ = value;
763       }
764     }
765 
766     /// <summary>Field number for the "server_notify_client_when_started" field.</summary>
767     public const int ServerNotifyClientWhenStartedFieldNumber = 18;
768     private bool serverNotifyClientWhenStarted_;
769     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
770     public bool ServerNotifyClientWhenStarted {
771       get { return serverNotifyClientWhenStarted_; }
772       set {
773         serverNotifyClientWhenStarted_ = value;
774       }
775     }
776 
777     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)778     public override bool Equals(object other) {
779       return Equals(other as RequestParams);
780     }
781 
782     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(RequestParams other)783     public bool Equals(RequestParams other) {
784       if (ReferenceEquals(other, null)) {
785         return false;
786       }
787       if (ReferenceEquals(other, this)) {
788         return true;
789       }
790       if (EchoDeadline != other.EchoDeadline) return false;
791       if (ClientCancelAfterUs != other.ClientCancelAfterUs) return false;
792       if (ServerCancelAfterUs != other.ServerCancelAfterUs) return false;
793       if (EchoMetadata != other.EchoMetadata) return false;
794       if (CheckAuthContext != other.CheckAuthContext) return false;
795       if (ResponseMessageLength != other.ResponseMessageLength) return false;
796       if (EchoPeer != other.EchoPeer) return false;
797       if (ExpectedClientIdentity != other.ExpectedClientIdentity) return false;
798       if (SkipCancelledCheck != other.SkipCancelledCheck) return false;
799       if (ExpectedTransportSecurityType != other.ExpectedTransportSecurityType) return false;
800       if (!object.Equals(DebugInfo, other.DebugInfo)) return false;
801       if (ServerDie != other.ServerDie) return false;
802       if (BinaryErrorDetails != other.BinaryErrorDetails) return false;
803       if (!object.Equals(ExpectedError, other.ExpectedError)) return false;
804       if (ServerSleepUs != other.ServerSleepUs) return false;
805       if (BackendChannelIdx != other.BackendChannelIdx) return false;
806       if (EchoMetadataInitially != other.EchoMetadataInitially) return false;
807       if (ServerNotifyClientWhenStarted != other.ServerNotifyClientWhenStarted) return false;
808       return Equals(_unknownFields, other._unknownFields);
809     }
810 
811     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()812     public override int GetHashCode() {
813       int hash = 1;
814       if (EchoDeadline != false) hash ^= EchoDeadline.GetHashCode();
815       if (ClientCancelAfterUs != 0) hash ^= ClientCancelAfterUs.GetHashCode();
816       if (ServerCancelAfterUs != 0) hash ^= ServerCancelAfterUs.GetHashCode();
817       if (EchoMetadata != false) hash ^= EchoMetadata.GetHashCode();
818       if (CheckAuthContext != false) hash ^= CheckAuthContext.GetHashCode();
819       if (ResponseMessageLength != 0) hash ^= ResponseMessageLength.GetHashCode();
820       if (EchoPeer != false) hash ^= EchoPeer.GetHashCode();
821       if (ExpectedClientIdentity.Length != 0) hash ^= ExpectedClientIdentity.GetHashCode();
822       if (SkipCancelledCheck != false) hash ^= SkipCancelledCheck.GetHashCode();
823       if (ExpectedTransportSecurityType.Length != 0) hash ^= ExpectedTransportSecurityType.GetHashCode();
824       if (debugInfo_ != null) hash ^= DebugInfo.GetHashCode();
825       if (ServerDie != false) hash ^= ServerDie.GetHashCode();
826       if (BinaryErrorDetails.Length != 0) hash ^= BinaryErrorDetails.GetHashCode();
827       if (expectedError_ != null) hash ^= ExpectedError.GetHashCode();
828       if (ServerSleepUs != 0) hash ^= ServerSleepUs.GetHashCode();
829       if (BackendChannelIdx != 0) hash ^= BackendChannelIdx.GetHashCode();
830       if (EchoMetadataInitially != false) hash ^= EchoMetadataInitially.GetHashCode();
831       if (ServerNotifyClientWhenStarted != false) hash ^= ServerNotifyClientWhenStarted.GetHashCode();
832       if (_unknownFields != null) {
833         hash ^= _unknownFields.GetHashCode();
834       }
835       return hash;
836     }
837 
838     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()839     public override string ToString() {
840       return pb::JsonFormatter.ToDiagnosticString(this);
841     }
842 
843     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)844     public void WriteTo(pb::CodedOutputStream output) {
845     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
846       output.WriteRawMessage(this);
847     #else
848       if (EchoDeadline != false) {
849         output.WriteRawTag(8);
850         output.WriteBool(EchoDeadline);
851       }
852       if (ClientCancelAfterUs != 0) {
853         output.WriteRawTag(16);
854         output.WriteInt32(ClientCancelAfterUs);
855       }
856       if (ServerCancelAfterUs != 0) {
857         output.WriteRawTag(24);
858         output.WriteInt32(ServerCancelAfterUs);
859       }
860       if (EchoMetadata != false) {
861         output.WriteRawTag(32);
862         output.WriteBool(EchoMetadata);
863       }
864       if (CheckAuthContext != false) {
865         output.WriteRawTag(40);
866         output.WriteBool(CheckAuthContext);
867       }
868       if (ResponseMessageLength != 0) {
869         output.WriteRawTag(48);
870         output.WriteInt32(ResponseMessageLength);
871       }
872       if (EchoPeer != false) {
873         output.WriteRawTag(56);
874         output.WriteBool(EchoPeer);
875       }
876       if (ExpectedClientIdentity.Length != 0) {
877         output.WriteRawTag(66);
878         output.WriteString(ExpectedClientIdentity);
879       }
880       if (SkipCancelledCheck != false) {
881         output.WriteRawTag(72);
882         output.WriteBool(SkipCancelledCheck);
883       }
884       if (ExpectedTransportSecurityType.Length != 0) {
885         output.WriteRawTag(82);
886         output.WriteString(ExpectedTransportSecurityType);
887       }
888       if (debugInfo_ != null) {
889         output.WriteRawTag(90);
890         output.WriteMessage(DebugInfo);
891       }
892       if (ServerDie != false) {
893         output.WriteRawTag(96);
894         output.WriteBool(ServerDie);
895       }
896       if (BinaryErrorDetails.Length != 0) {
897         output.WriteRawTag(106);
898         output.WriteString(BinaryErrorDetails);
899       }
900       if (expectedError_ != null) {
901         output.WriteRawTag(114);
902         output.WriteMessage(ExpectedError);
903       }
904       if (ServerSleepUs != 0) {
905         output.WriteRawTag(120);
906         output.WriteInt32(ServerSleepUs);
907       }
908       if (BackendChannelIdx != 0) {
909         output.WriteRawTag(128, 1);
910         output.WriteInt32(BackendChannelIdx);
911       }
912       if (EchoMetadataInitially != false) {
913         output.WriteRawTag(136, 1);
914         output.WriteBool(EchoMetadataInitially);
915       }
916       if (ServerNotifyClientWhenStarted != false) {
917         output.WriteRawTag(144, 1);
918         output.WriteBool(ServerNotifyClientWhenStarted);
919       }
920       if (_unknownFields != null) {
921         _unknownFields.WriteTo(output);
922       }
923     #endif
924     }
925 
926     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
927     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)928     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
929       if (EchoDeadline != false) {
930         output.WriteRawTag(8);
931         output.WriteBool(EchoDeadline);
932       }
933       if (ClientCancelAfterUs != 0) {
934         output.WriteRawTag(16);
935         output.WriteInt32(ClientCancelAfterUs);
936       }
937       if (ServerCancelAfterUs != 0) {
938         output.WriteRawTag(24);
939         output.WriteInt32(ServerCancelAfterUs);
940       }
941       if (EchoMetadata != false) {
942         output.WriteRawTag(32);
943         output.WriteBool(EchoMetadata);
944       }
945       if (CheckAuthContext != false) {
946         output.WriteRawTag(40);
947         output.WriteBool(CheckAuthContext);
948       }
949       if (ResponseMessageLength != 0) {
950         output.WriteRawTag(48);
951         output.WriteInt32(ResponseMessageLength);
952       }
953       if (EchoPeer != false) {
954         output.WriteRawTag(56);
955         output.WriteBool(EchoPeer);
956       }
957       if (ExpectedClientIdentity.Length != 0) {
958         output.WriteRawTag(66);
959         output.WriteString(ExpectedClientIdentity);
960       }
961       if (SkipCancelledCheck != false) {
962         output.WriteRawTag(72);
963         output.WriteBool(SkipCancelledCheck);
964       }
965       if (ExpectedTransportSecurityType.Length != 0) {
966         output.WriteRawTag(82);
967         output.WriteString(ExpectedTransportSecurityType);
968       }
969       if (debugInfo_ != null) {
970         output.WriteRawTag(90);
971         output.WriteMessage(DebugInfo);
972       }
973       if (ServerDie != false) {
974         output.WriteRawTag(96);
975         output.WriteBool(ServerDie);
976       }
977       if (BinaryErrorDetails.Length != 0) {
978         output.WriteRawTag(106);
979         output.WriteString(BinaryErrorDetails);
980       }
981       if (expectedError_ != null) {
982         output.WriteRawTag(114);
983         output.WriteMessage(ExpectedError);
984       }
985       if (ServerSleepUs != 0) {
986         output.WriteRawTag(120);
987         output.WriteInt32(ServerSleepUs);
988       }
989       if (BackendChannelIdx != 0) {
990         output.WriteRawTag(128, 1);
991         output.WriteInt32(BackendChannelIdx);
992       }
993       if (EchoMetadataInitially != false) {
994         output.WriteRawTag(136, 1);
995         output.WriteBool(EchoMetadataInitially);
996       }
997       if (ServerNotifyClientWhenStarted != false) {
998         output.WriteRawTag(144, 1);
999         output.WriteBool(ServerNotifyClientWhenStarted);
1000       }
1001       if (_unknownFields != null) {
1002         _unknownFields.WriteTo(ref output);
1003       }
1004     }
1005     #endif
1006 
1007     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()1008     public int CalculateSize() {
1009       int size = 0;
1010       if (EchoDeadline != false) {
1011         size += 1 + 1;
1012       }
1013       if (ClientCancelAfterUs != 0) {
1014         size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClientCancelAfterUs);
1015       }
1016       if (ServerCancelAfterUs != 0) {
1017         size += 1 + pb::CodedOutputStream.ComputeInt32Size(ServerCancelAfterUs);
1018       }
1019       if (EchoMetadata != false) {
1020         size += 1 + 1;
1021       }
1022       if (CheckAuthContext != false) {
1023         size += 1 + 1;
1024       }
1025       if (ResponseMessageLength != 0) {
1026         size += 1 + pb::CodedOutputStream.ComputeInt32Size(ResponseMessageLength);
1027       }
1028       if (EchoPeer != false) {
1029         size += 1 + 1;
1030       }
1031       if (ExpectedClientIdentity.Length != 0) {
1032         size += 1 + pb::CodedOutputStream.ComputeStringSize(ExpectedClientIdentity);
1033       }
1034       if (SkipCancelledCheck != false) {
1035         size += 1 + 1;
1036       }
1037       if (ExpectedTransportSecurityType.Length != 0) {
1038         size += 1 + pb::CodedOutputStream.ComputeStringSize(ExpectedTransportSecurityType);
1039       }
1040       if (debugInfo_ != null) {
1041         size += 1 + pb::CodedOutputStream.ComputeMessageSize(DebugInfo);
1042       }
1043       if (ServerDie != false) {
1044         size += 1 + 1;
1045       }
1046       if (BinaryErrorDetails.Length != 0) {
1047         size += 1 + pb::CodedOutputStream.ComputeStringSize(BinaryErrorDetails);
1048       }
1049       if (expectedError_ != null) {
1050         size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpectedError);
1051       }
1052       if (ServerSleepUs != 0) {
1053         size += 1 + pb::CodedOutputStream.ComputeInt32Size(ServerSleepUs);
1054       }
1055       if (BackendChannelIdx != 0) {
1056         size += 2 + pb::CodedOutputStream.ComputeInt32Size(BackendChannelIdx);
1057       }
1058       if (EchoMetadataInitially != false) {
1059         size += 2 + 1;
1060       }
1061       if (ServerNotifyClientWhenStarted != false) {
1062         size += 2 + 1;
1063       }
1064       if (_unknownFields != null) {
1065         size += _unknownFields.CalculateSize();
1066       }
1067       return size;
1068     }
1069 
1070     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(RequestParams other)1071     public void MergeFrom(RequestParams other) {
1072       if (other == null) {
1073         return;
1074       }
1075       if (other.EchoDeadline != false) {
1076         EchoDeadline = other.EchoDeadline;
1077       }
1078       if (other.ClientCancelAfterUs != 0) {
1079         ClientCancelAfterUs = other.ClientCancelAfterUs;
1080       }
1081       if (other.ServerCancelAfterUs != 0) {
1082         ServerCancelAfterUs = other.ServerCancelAfterUs;
1083       }
1084       if (other.EchoMetadata != false) {
1085         EchoMetadata = other.EchoMetadata;
1086       }
1087       if (other.CheckAuthContext != false) {
1088         CheckAuthContext = other.CheckAuthContext;
1089       }
1090       if (other.ResponseMessageLength != 0) {
1091         ResponseMessageLength = other.ResponseMessageLength;
1092       }
1093       if (other.EchoPeer != false) {
1094         EchoPeer = other.EchoPeer;
1095       }
1096       if (other.ExpectedClientIdentity.Length != 0) {
1097         ExpectedClientIdentity = other.ExpectedClientIdentity;
1098       }
1099       if (other.SkipCancelledCheck != false) {
1100         SkipCancelledCheck = other.SkipCancelledCheck;
1101       }
1102       if (other.ExpectedTransportSecurityType.Length != 0) {
1103         ExpectedTransportSecurityType = other.ExpectedTransportSecurityType;
1104       }
1105       if (other.debugInfo_ != null) {
1106         if (debugInfo_ == null) {
1107           DebugInfo = new global::Grpc.Testing.DebugInfo();
1108         }
1109         DebugInfo.MergeFrom(other.DebugInfo);
1110       }
1111       if (other.ServerDie != false) {
1112         ServerDie = other.ServerDie;
1113       }
1114       if (other.BinaryErrorDetails.Length != 0) {
1115         BinaryErrorDetails = other.BinaryErrorDetails;
1116       }
1117       if (other.expectedError_ != null) {
1118         if (expectedError_ == null) {
1119           ExpectedError = new global::Grpc.Testing.ErrorStatus();
1120         }
1121         ExpectedError.MergeFrom(other.ExpectedError);
1122       }
1123       if (other.ServerSleepUs != 0) {
1124         ServerSleepUs = other.ServerSleepUs;
1125       }
1126       if (other.BackendChannelIdx != 0) {
1127         BackendChannelIdx = other.BackendChannelIdx;
1128       }
1129       if (other.EchoMetadataInitially != false) {
1130         EchoMetadataInitially = other.EchoMetadataInitially;
1131       }
1132       if (other.ServerNotifyClientWhenStarted != false) {
1133         ServerNotifyClientWhenStarted = other.ServerNotifyClientWhenStarted;
1134       }
1135       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1136     }
1137 
1138     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)1139     public void MergeFrom(pb::CodedInputStream input) {
1140     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1141       input.ReadRawMessage(this);
1142     #else
1143       uint tag;
1144       while ((tag = input.ReadTag()) != 0) {
1145         switch(tag) {
1146           default:
1147             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1148             break;
1149           case 8: {
1150             EchoDeadline = input.ReadBool();
1151             break;
1152           }
1153           case 16: {
1154             ClientCancelAfterUs = input.ReadInt32();
1155             break;
1156           }
1157           case 24: {
1158             ServerCancelAfterUs = input.ReadInt32();
1159             break;
1160           }
1161           case 32: {
1162             EchoMetadata = input.ReadBool();
1163             break;
1164           }
1165           case 40: {
1166             CheckAuthContext = input.ReadBool();
1167             break;
1168           }
1169           case 48: {
1170             ResponseMessageLength = input.ReadInt32();
1171             break;
1172           }
1173           case 56: {
1174             EchoPeer = input.ReadBool();
1175             break;
1176           }
1177           case 66: {
1178             ExpectedClientIdentity = input.ReadString();
1179             break;
1180           }
1181           case 72: {
1182             SkipCancelledCheck = input.ReadBool();
1183             break;
1184           }
1185           case 82: {
1186             ExpectedTransportSecurityType = input.ReadString();
1187             break;
1188           }
1189           case 90: {
1190             if (debugInfo_ == null) {
1191               DebugInfo = new global::Grpc.Testing.DebugInfo();
1192             }
1193             input.ReadMessage(DebugInfo);
1194             break;
1195           }
1196           case 96: {
1197             ServerDie = input.ReadBool();
1198             break;
1199           }
1200           case 106: {
1201             BinaryErrorDetails = input.ReadString();
1202             break;
1203           }
1204           case 114: {
1205             if (expectedError_ == null) {
1206               ExpectedError = new global::Grpc.Testing.ErrorStatus();
1207             }
1208             input.ReadMessage(ExpectedError);
1209             break;
1210           }
1211           case 120: {
1212             ServerSleepUs = input.ReadInt32();
1213             break;
1214           }
1215           case 128: {
1216             BackendChannelIdx = input.ReadInt32();
1217             break;
1218           }
1219           case 136: {
1220             EchoMetadataInitially = input.ReadBool();
1221             break;
1222           }
1223           case 144: {
1224             ServerNotifyClientWhenStarted = input.ReadBool();
1225             break;
1226           }
1227         }
1228       }
1229     #endif
1230     }
1231 
1232     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1233     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1234     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1235       uint tag;
1236       while ((tag = input.ReadTag()) != 0) {
1237         switch(tag) {
1238           default:
1239             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1240             break;
1241           case 8: {
1242             EchoDeadline = input.ReadBool();
1243             break;
1244           }
1245           case 16: {
1246             ClientCancelAfterUs = input.ReadInt32();
1247             break;
1248           }
1249           case 24: {
1250             ServerCancelAfterUs = input.ReadInt32();
1251             break;
1252           }
1253           case 32: {
1254             EchoMetadata = input.ReadBool();
1255             break;
1256           }
1257           case 40: {
1258             CheckAuthContext = input.ReadBool();
1259             break;
1260           }
1261           case 48: {
1262             ResponseMessageLength = input.ReadInt32();
1263             break;
1264           }
1265           case 56: {
1266             EchoPeer = input.ReadBool();
1267             break;
1268           }
1269           case 66: {
1270             ExpectedClientIdentity = input.ReadString();
1271             break;
1272           }
1273           case 72: {
1274             SkipCancelledCheck = input.ReadBool();
1275             break;
1276           }
1277           case 82: {
1278             ExpectedTransportSecurityType = input.ReadString();
1279             break;
1280           }
1281           case 90: {
1282             if (debugInfo_ == null) {
1283               DebugInfo = new global::Grpc.Testing.DebugInfo();
1284             }
1285             input.ReadMessage(DebugInfo);
1286             break;
1287           }
1288           case 96: {
1289             ServerDie = input.ReadBool();
1290             break;
1291           }
1292           case 106: {
1293             BinaryErrorDetails = input.ReadString();
1294             break;
1295           }
1296           case 114: {
1297             if (expectedError_ == null) {
1298               ExpectedError = new global::Grpc.Testing.ErrorStatus();
1299             }
1300             input.ReadMessage(ExpectedError);
1301             break;
1302           }
1303           case 120: {
1304             ServerSleepUs = input.ReadInt32();
1305             break;
1306           }
1307           case 128: {
1308             BackendChannelIdx = input.ReadInt32();
1309             break;
1310           }
1311           case 136: {
1312             EchoMetadataInitially = input.ReadBool();
1313             break;
1314           }
1315           case 144: {
1316             ServerNotifyClientWhenStarted = input.ReadBool();
1317             break;
1318           }
1319         }
1320       }
1321     }
1322     #endif
1323 
1324   }
1325 
1326   public sealed partial class EchoRequest : pb::IMessage<EchoRequest>
1327   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1328       , pb::IBufferMessage
1329   #endif
1330   {
1331     private static readonly pb::MessageParser<EchoRequest> _parser = new pb::MessageParser<EchoRequest>(() => new EchoRequest());
1332     private pb::UnknownFieldSet _unknownFields;
1333     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1334     public static pb::MessageParser<EchoRequest> Parser { get { return _parser; } }
1335 
1336     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1337     public static pbr::MessageDescriptor Descriptor {
1338       get { return global::Grpc.Testing.EchoMessagesReflection.Descriptor.MessageTypes[3]; }
1339     }
1340 
1341     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1342     pbr::MessageDescriptor pb::IMessage.Descriptor {
1343       get { return Descriptor; }
1344     }
1345 
1346     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
EchoRequest()1347     public EchoRequest() {
1348       OnConstruction();
1349     }
1350 
OnConstruction()1351     partial void OnConstruction();
1352 
1353     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
EchoRequest(EchoRequest other)1354     public EchoRequest(EchoRequest other) : this() {
1355       message_ = other.message_;
1356       param_ = other.param_ != null ? other.param_.Clone() : null;
1357       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1358     }
1359 
1360     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()1361     public EchoRequest Clone() {
1362       return new EchoRequest(this);
1363     }
1364 
1365     /// <summary>Field number for the "message" field.</summary>
1366     public const int MessageFieldNumber = 1;
1367     private string message_ = "";
1368     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1369     public string Message {
1370       get { return message_; }
1371       set {
1372         message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1373       }
1374     }
1375 
1376     /// <summary>Field number for the "param" field.</summary>
1377     public const int ParamFieldNumber = 2;
1378     private global::Grpc.Testing.RequestParams param_;
1379     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1380     public global::Grpc.Testing.RequestParams Param {
1381       get { return param_; }
1382       set {
1383         param_ = value;
1384       }
1385     }
1386 
1387     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)1388     public override bool Equals(object other) {
1389       return Equals(other as EchoRequest);
1390     }
1391 
1392     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(EchoRequest other)1393     public bool Equals(EchoRequest other) {
1394       if (ReferenceEquals(other, null)) {
1395         return false;
1396       }
1397       if (ReferenceEquals(other, this)) {
1398         return true;
1399       }
1400       if (Message != other.Message) return false;
1401       if (!object.Equals(Param, other.Param)) return false;
1402       return Equals(_unknownFields, other._unknownFields);
1403     }
1404 
1405     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()1406     public override int GetHashCode() {
1407       int hash = 1;
1408       if (Message.Length != 0) hash ^= Message.GetHashCode();
1409       if (param_ != null) hash ^= Param.GetHashCode();
1410       if (_unknownFields != null) {
1411         hash ^= _unknownFields.GetHashCode();
1412       }
1413       return hash;
1414     }
1415 
1416     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()1417     public override string ToString() {
1418       return pb::JsonFormatter.ToDiagnosticString(this);
1419     }
1420 
1421     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)1422     public void WriteTo(pb::CodedOutputStream output) {
1423     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1424       output.WriteRawMessage(this);
1425     #else
1426       if (Message.Length != 0) {
1427         output.WriteRawTag(10);
1428         output.WriteString(Message);
1429       }
1430       if (param_ != null) {
1431         output.WriteRawTag(18);
1432         output.WriteMessage(Param);
1433       }
1434       if (_unknownFields != null) {
1435         _unknownFields.WriteTo(output);
1436       }
1437     #endif
1438     }
1439 
1440     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1441     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)1442     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1443       if (Message.Length != 0) {
1444         output.WriteRawTag(10);
1445         output.WriteString(Message);
1446       }
1447       if (param_ != null) {
1448         output.WriteRawTag(18);
1449         output.WriteMessage(Param);
1450       }
1451       if (_unknownFields != null) {
1452         _unknownFields.WriteTo(ref output);
1453       }
1454     }
1455     #endif
1456 
1457     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()1458     public int CalculateSize() {
1459       int size = 0;
1460       if (Message.Length != 0) {
1461         size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
1462       }
1463       if (param_ != null) {
1464         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Param);
1465       }
1466       if (_unknownFields != null) {
1467         size += _unknownFields.CalculateSize();
1468       }
1469       return size;
1470     }
1471 
1472     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(EchoRequest other)1473     public void MergeFrom(EchoRequest other) {
1474       if (other == null) {
1475         return;
1476       }
1477       if (other.Message.Length != 0) {
1478         Message = other.Message;
1479       }
1480       if (other.param_ != null) {
1481         if (param_ == null) {
1482           Param = new global::Grpc.Testing.RequestParams();
1483         }
1484         Param.MergeFrom(other.Param);
1485       }
1486       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1487     }
1488 
1489     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)1490     public void MergeFrom(pb::CodedInputStream input) {
1491     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1492       input.ReadRawMessage(this);
1493     #else
1494       uint tag;
1495       while ((tag = input.ReadTag()) != 0) {
1496         switch(tag) {
1497           default:
1498             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1499             break;
1500           case 10: {
1501             Message = input.ReadString();
1502             break;
1503           }
1504           case 18: {
1505             if (param_ == null) {
1506               Param = new global::Grpc.Testing.RequestParams();
1507             }
1508             input.ReadMessage(Param);
1509             break;
1510           }
1511         }
1512       }
1513     #endif
1514     }
1515 
1516     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1517     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1518     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1519       uint tag;
1520       while ((tag = input.ReadTag()) != 0) {
1521         switch(tag) {
1522           default:
1523             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1524             break;
1525           case 10: {
1526             Message = input.ReadString();
1527             break;
1528           }
1529           case 18: {
1530             if (param_ == null) {
1531               Param = new global::Grpc.Testing.RequestParams();
1532             }
1533             input.ReadMessage(Param);
1534             break;
1535           }
1536         }
1537       }
1538     }
1539     #endif
1540 
1541   }
1542 
1543   public sealed partial class ResponseParams : pb::IMessage<ResponseParams>
1544   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1545       , pb::IBufferMessage
1546   #endif
1547   {
1548     private static readonly pb::MessageParser<ResponseParams> _parser = new pb::MessageParser<ResponseParams>(() => new ResponseParams());
1549     private pb::UnknownFieldSet _unknownFields;
1550     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1551     public static pb::MessageParser<ResponseParams> Parser { get { return _parser; } }
1552 
1553     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1554     public static pbr::MessageDescriptor Descriptor {
1555       get { return global::Grpc.Testing.EchoMessagesReflection.Descriptor.MessageTypes[4]; }
1556     }
1557 
1558     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1559     pbr::MessageDescriptor pb::IMessage.Descriptor {
1560       get { return Descriptor; }
1561     }
1562 
1563     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ResponseParams()1564     public ResponseParams() {
1565       OnConstruction();
1566     }
1567 
OnConstruction()1568     partial void OnConstruction();
1569 
1570     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ResponseParams(ResponseParams other)1571     public ResponseParams(ResponseParams other) : this() {
1572       requestDeadline_ = other.requestDeadline_;
1573       host_ = other.host_;
1574       peer_ = other.peer_;
1575       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1576     }
1577 
1578     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()1579     public ResponseParams Clone() {
1580       return new ResponseParams(this);
1581     }
1582 
1583     /// <summary>Field number for the "request_deadline" field.</summary>
1584     public const int RequestDeadlineFieldNumber = 1;
1585     private long requestDeadline_;
1586     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1587     public long RequestDeadline {
1588       get { return requestDeadline_; }
1589       set {
1590         requestDeadline_ = value;
1591       }
1592     }
1593 
1594     /// <summary>Field number for the "host" field.</summary>
1595     public const int HostFieldNumber = 2;
1596     private string host_ = "";
1597     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1598     public string Host {
1599       get { return host_; }
1600       set {
1601         host_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1602       }
1603     }
1604 
1605     /// <summary>Field number for the "peer" field.</summary>
1606     public const int PeerFieldNumber = 3;
1607     private string peer_ = "";
1608     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1609     public string Peer {
1610       get { return peer_; }
1611       set {
1612         peer_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1613       }
1614     }
1615 
1616     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)1617     public override bool Equals(object other) {
1618       return Equals(other as ResponseParams);
1619     }
1620 
1621     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(ResponseParams other)1622     public bool Equals(ResponseParams other) {
1623       if (ReferenceEquals(other, null)) {
1624         return false;
1625       }
1626       if (ReferenceEquals(other, this)) {
1627         return true;
1628       }
1629       if (RequestDeadline != other.RequestDeadline) return false;
1630       if (Host != other.Host) return false;
1631       if (Peer != other.Peer) return false;
1632       return Equals(_unknownFields, other._unknownFields);
1633     }
1634 
1635     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()1636     public override int GetHashCode() {
1637       int hash = 1;
1638       if (RequestDeadline != 0L) hash ^= RequestDeadline.GetHashCode();
1639       if (Host.Length != 0) hash ^= Host.GetHashCode();
1640       if (Peer.Length != 0) hash ^= Peer.GetHashCode();
1641       if (_unknownFields != null) {
1642         hash ^= _unknownFields.GetHashCode();
1643       }
1644       return hash;
1645     }
1646 
1647     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()1648     public override string ToString() {
1649       return pb::JsonFormatter.ToDiagnosticString(this);
1650     }
1651 
1652     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)1653     public void WriteTo(pb::CodedOutputStream output) {
1654     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1655       output.WriteRawMessage(this);
1656     #else
1657       if (RequestDeadline != 0L) {
1658         output.WriteRawTag(8);
1659         output.WriteInt64(RequestDeadline);
1660       }
1661       if (Host.Length != 0) {
1662         output.WriteRawTag(18);
1663         output.WriteString(Host);
1664       }
1665       if (Peer.Length != 0) {
1666         output.WriteRawTag(26);
1667         output.WriteString(Peer);
1668       }
1669       if (_unknownFields != null) {
1670         _unknownFields.WriteTo(output);
1671       }
1672     #endif
1673     }
1674 
1675     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1676     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)1677     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1678       if (RequestDeadline != 0L) {
1679         output.WriteRawTag(8);
1680         output.WriteInt64(RequestDeadline);
1681       }
1682       if (Host.Length != 0) {
1683         output.WriteRawTag(18);
1684         output.WriteString(Host);
1685       }
1686       if (Peer.Length != 0) {
1687         output.WriteRawTag(26);
1688         output.WriteString(Peer);
1689       }
1690       if (_unknownFields != null) {
1691         _unknownFields.WriteTo(ref output);
1692       }
1693     }
1694     #endif
1695 
1696     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()1697     public int CalculateSize() {
1698       int size = 0;
1699       if (RequestDeadline != 0L) {
1700         size += 1 + pb::CodedOutputStream.ComputeInt64Size(RequestDeadline);
1701       }
1702       if (Host.Length != 0) {
1703         size += 1 + pb::CodedOutputStream.ComputeStringSize(Host);
1704       }
1705       if (Peer.Length != 0) {
1706         size += 1 + pb::CodedOutputStream.ComputeStringSize(Peer);
1707       }
1708       if (_unknownFields != null) {
1709         size += _unknownFields.CalculateSize();
1710       }
1711       return size;
1712     }
1713 
1714     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(ResponseParams other)1715     public void MergeFrom(ResponseParams other) {
1716       if (other == null) {
1717         return;
1718       }
1719       if (other.RequestDeadline != 0L) {
1720         RequestDeadline = other.RequestDeadline;
1721       }
1722       if (other.Host.Length != 0) {
1723         Host = other.Host;
1724       }
1725       if (other.Peer.Length != 0) {
1726         Peer = other.Peer;
1727       }
1728       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1729     }
1730 
1731     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)1732     public void MergeFrom(pb::CodedInputStream input) {
1733     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1734       input.ReadRawMessage(this);
1735     #else
1736       uint tag;
1737       while ((tag = input.ReadTag()) != 0) {
1738         switch(tag) {
1739           default:
1740             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1741             break;
1742           case 8: {
1743             RequestDeadline = input.ReadInt64();
1744             break;
1745           }
1746           case 18: {
1747             Host = input.ReadString();
1748             break;
1749           }
1750           case 26: {
1751             Peer = input.ReadString();
1752             break;
1753           }
1754         }
1755       }
1756     #endif
1757     }
1758 
1759     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1760     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1761     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1762       uint tag;
1763       while ((tag = input.ReadTag()) != 0) {
1764         switch(tag) {
1765           default:
1766             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1767             break;
1768           case 8: {
1769             RequestDeadline = input.ReadInt64();
1770             break;
1771           }
1772           case 18: {
1773             Host = input.ReadString();
1774             break;
1775           }
1776           case 26: {
1777             Peer = input.ReadString();
1778             break;
1779           }
1780         }
1781       }
1782     }
1783     #endif
1784 
1785   }
1786 
1787   public sealed partial class EchoResponse : pb::IMessage<EchoResponse>
1788   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1789       , pb::IBufferMessage
1790   #endif
1791   {
1792     private static readonly pb::MessageParser<EchoResponse> _parser = new pb::MessageParser<EchoResponse>(() => new EchoResponse());
1793     private pb::UnknownFieldSet _unknownFields;
1794     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1795     public static pb::MessageParser<EchoResponse> Parser { get { return _parser; } }
1796 
1797     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1798     public static pbr::MessageDescriptor Descriptor {
1799       get { return global::Grpc.Testing.EchoMessagesReflection.Descriptor.MessageTypes[5]; }
1800     }
1801 
1802     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1803     pbr::MessageDescriptor pb::IMessage.Descriptor {
1804       get { return Descriptor; }
1805     }
1806 
1807     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
EchoResponse()1808     public EchoResponse() {
1809       OnConstruction();
1810     }
1811 
OnConstruction()1812     partial void OnConstruction();
1813 
1814     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
EchoResponse(EchoResponse other)1815     public EchoResponse(EchoResponse other) : this() {
1816       message_ = other.message_;
1817       param_ = other.param_ != null ? other.param_.Clone() : null;
1818       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1819     }
1820 
1821     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()1822     public EchoResponse Clone() {
1823       return new EchoResponse(this);
1824     }
1825 
1826     /// <summary>Field number for the "message" field.</summary>
1827     public const int MessageFieldNumber = 1;
1828     private string message_ = "";
1829     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1830     public string Message {
1831       get { return message_; }
1832       set {
1833         message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1834       }
1835     }
1836 
1837     /// <summary>Field number for the "param" field.</summary>
1838     public const int ParamFieldNumber = 2;
1839     private global::Grpc.Testing.ResponseParams param_;
1840     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1841     public global::Grpc.Testing.ResponseParams Param {
1842       get { return param_; }
1843       set {
1844         param_ = value;
1845       }
1846     }
1847 
1848     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)1849     public override bool Equals(object other) {
1850       return Equals(other as EchoResponse);
1851     }
1852 
1853     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(EchoResponse other)1854     public bool Equals(EchoResponse other) {
1855       if (ReferenceEquals(other, null)) {
1856         return false;
1857       }
1858       if (ReferenceEquals(other, this)) {
1859         return true;
1860       }
1861       if (Message != other.Message) return false;
1862       if (!object.Equals(Param, other.Param)) return false;
1863       return Equals(_unknownFields, other._unknownFields);
1864     }
1865 
1866     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()1867     public override int GetHashCode() {
1868       int hash = 1;
1869       if (Message.Length != 0) hash ^= Message.GetHashCode();
1870       if (param_ != null) hash ^= Param.GetHashCode();
1871       if (_unknownFields != null) {
1872         hash ^= _unknownFields.GetHashCode();
1873       }
1874       return hash;
1875     }
1876 
1877     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()1878     public override string ToString() {
1879       return pb::JsonFormatter.ToDiagnosticString(this);
1880     }
1881 
1882     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)1883     public void WriteTo(pb::CodedOutputStream output) {
1884     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1885       output.WriteRawMessage(this);
1886     #else
1887       if (Message.Length != 0) {
1888         output.WriteRawTag(10);
1889         output.WriteString(Message);
1890       }
1891       if (param_ != null) {
1892         output.WriteRawTag(18);
1893         output.WriteMessage(Param);
1894       }
1895       if (_unknownFields != null) {
1896         _unknownFields.WriteTo(output);
1897       }
1898     #endif
1899     }
1900 
1901     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1902     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)1903     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1904       if (Message.Length != 0) {
1905         output.WriteRawTag(10);
1906         output.WriteString(Message);
1907       }
1908       if (param_ != null) {
1909         output.WriteRawTag(18);
1910         output.WriteMessage(Param);
1911       }
1912       if (_unknownFields != null) {
1913         _unknownFields.WriteTo(ref output);
1914       }
1915     }
1916     #endif
1917 
1918     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()1919     public int CalculateSize() {
1920       int size = 0;
1921       if (Message.Length != 0) {
1922         size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
1923       }
1924       if (param_ != null) {
1925         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Param);
1926       }
1927       if (_unknownFields != null) {
1928         size += _unknownFields.CalculateSize();
1929       }
1930       return size;
1931     }
1932 
1933     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(EchoResponse other)1934     public void MergeFrom(EchoResponse other) {
1935       if (other == null) {
1936         return;
1937       }
1938       if (other.Message.Length != 0) {
1939         Message = other.Message;
1940       }
1941       if (other.param_ != null) {
1942         if (param_ == null) {
1943           Param = new global::Grpc.Testing.ResponseParams();
1944         }
1945         Param.MergeFrom(other.Param);
1946       }
1947       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1948     }
1949 
1950     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)1951     public void MergeFrom(pb::CodedInputStream input) {
1952     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1953       input.ReadRawMessage(this);
1954     #else
1955       uint tag;
1956       while ((tag = input.ReadTag()) != 0) {
1957         switch(tag) {
1958           default:
1959             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1960             break;
1961           case 10: {
1962             Message = input.ReadString();
1963             break;
1964           }
1965           case 18: {
1966             if (param_ == null) {
1967               Param = new global::Grpc.Testing.ResponseParams();
1968             }
1969             input.ReadMessage(Param);
1970             break;
1971           }
1972         }
1973       }
1974     #endif
1975     }
1976 
1977     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1978     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1979     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1980       uint tag;
1981       while ((tag = input.ReadTag()) != 0) {
1982         switch(tag) {
1983           default:
1984             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1985             break;
1986           case 10: {
1987             Message = input.ReadString();
1988             break;
1989           }
1990           case 18: {
1991             if (param_ == null) {
1992               Param = new global::Grpc.Testing.ResponseParams();
1993             }
1994             input.ReadMessage(Param);
1995             break;
1996           }
1997         }
1998       }
1999     }
2000     #endif
2001 
2002   }
2003 
2004   #endregion
2005 
2006 }
2007 
2008 #endregion Designer generated code
2009