• 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/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/messages.proto</summary>
15   public static partial class MessagesReflection {
16 
17     #region Descriptor
18     /// <summary>File descriptor for src/proto/grpc/testing/messages.proto</summary>
19     public static pbr::FileDescriptor Descriptor {
20       get { return descriptor; }
21     }
22     private static pbr::FileDescriptor descriptor;
23 
MessagesReflection()24     static MessagesReflection() {
25       byte[] descriptorData = global::System.Convert.FromBase64String(
26           string.Concat(
27             "CiVzcmMvcHJvdG8vZ3JwYy90ZXN0aW5nL21lc3NhZ2VzLnByb3RvEgxncnBj",
28             "LnRlc3RpbmciGgoJQm9vbFZhbHVlEg0KBXZhbHVlGAEgASgIIkAKB1BheWxv",
29             "YWQSJwoEdHlwZRgBIAEoDjIZLmdycGMudGVzdGluZy5QYXlsb2FkVHlwZRIM",
30             "CgRib2R5GAIgASgMIisKCkVjaG9TdGF0dXMSDAoEY29kZRgBIAEoBRIPCgdt",
31             "ZXNzYWdlGAIgASgJIs4CCg1TaW1wbGVSZXF1ZXN0EjAKDXJlc3BvbnNlX3R5",
32             "cGUYASABKA4yGS5ncnBjLnRlc3RpbmcuUGF5bG9hZFR5cGUSFQoNcmVzcG9u",
33             "c2Vfc2l6ZRgCIAEoBRImCgdwYXlsb2FkGAMgASgLMhUuZ3JwYy50ZXN0aW5n",
34             "LlBheWxvYWQSFQoNZmlsbF91c2VybmFtZRgEIAEoCBIYChBmaWxsX29hdXRo",
35             "X3Njb3BlGAUgASgIEjQKE3Jlc3BvbnNlX2NvbXByZXNzZWQYBiABKAsyFy5n",
36             "cnBjLnRlc3RpbmcuQm9vbFZhbHVlEjEKD3Jlc3BvbnNlX3N0YXR1cxgHIAEo",
37             "CzIYLmdycGMudGVzdGluZy5FY2hvU3RhdHVzEjIKEWV4cGVjdF9jb21wcmVz",
38             "c2VkGAggASgLMhcuZ3JwYy50ZXN0aW5nLkJvb2xWYWx1ZSJfCg5TaW1wbGVS",
39             "ZXNwb25zZRImCgdwYXlsb2FkGAEgASgLMhUuZ3JwYy50ZXN0aW5nLlBheWxv",
40             "YWQSEAoIdXNlcm5hbWUYAiABKAkSEwoLb2F1dGhfc2NvcGUYAyABKAkidwoZ",
41             "U3RyZWFtaW5nSW5wdXRDYWxsUmVxdWVzdBImCgdwYXlsb2FkGAEgASgLMhUu",
42             "Z3JwYy50ZXN0aW5nLlBheWxvYWQSMgoRZXhwZWN0X2NvbXByZXNzZWQYAiAB",
43             "KAsyFy5ncnBjLnRlc3RpbmcuQm9vbFZhbHVlIj0KGlN0cmVhbWluZ0lucHV0",
44             "Q2FsbFJlc3BvbnNlEh8KF2FnZ3JlZ2F0ZWRfcGF5bG9hZF9zaXplGAEgASgF",
45             "ImQKElJlc3BvbnNlUGFyYW1ldGVycxIMCgRzaXplGAEgASgFEhMKC2ludGVy",
46             "dmFsX3VzGAIgASgFEisKCmNvbXByZXNzZWQYAyABKAsyFy5ncnBjLnRlc3Rp",
47             "bmcuQm9vbFZhbHVlIugBChpTdHJlYW1pbmdPdXRwdXRDYWxsUmVxdWVzdBIw",
48             "Cg1yZXNwb25zZV90eXBlGAEgASgOMhkuZ3JwYy50ZXN0aW5nLlBheWxvYWRU",
49             "eXBlEj0KE3Jlc3BvbnNlX3BhcmFtZXRlcnMYAiADKAsyIC5ncnBjLnRlc3Rp",
50             "bmcuUmVzcG9uc2VQYXJhbWV0ZXJzEiYKB3BheWxvYWQYAyABKAsyFS5ncnBj",
51             "LnRlc3RpbmcuUGF5bG9hZBIxCg9yZXNwb25zZV9zdGF0dXMYByABKAsyGC5n",
52             "cnBjLnRlc3RpbmcuRWNob1N0YXR1cyJFChtTdHJlYW1pbmdPdXRwdXRDYWxs",
53             "UmVzcG9uc2USJgoHcGF5bG9hZBgBIAEoCzIVLmdycGMudGVzdGluZy5QYXls",
54             "b2FkIjMKD1JlY29ubmVjdFBhcmFtcxIgChhtYXhfcmVjb25uZWN0X2JhY2tv",
55             "ZmZfbXMYASABKAUiMwoNUmVjb25uZWN0SW5mbxIOCgZwYXNzZWQYASABKAgS",
56             "EgoKYmFja29mZl9tcxgCIAMoBSofCgtQYXlsb2FkVHlwZRIQCgxDT01QUkVT",
57             "U0FCTEUQAGIGcHJvdG8z"));
58       descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
59           new pbr::FileDescriptor[] { },
60           new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Grpc.Testing.PayloadType), }, new pbr::GeneratedClrTypeInfo[] {
61             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.BoolValue), global::Grpc.Testing.BoolValue.Parser, new[]{ "Value" }, null, null, null),
62             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.Payload), global::Grpc.Testing.Payload.Parser, new[]{ "Type", "Body" }, null, null, null),
63             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.EchoStatus), global::Grpc.Testing.EchoStatus.Parser, new[]{ "Code", "Message" }, null, null, null),
64             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.SimpleRequest), global::Grpc.Testing.SimpleRequest.Parser, new[]{ "ResponseType", "ResponseSize", "Payload", "FillUsername", "FillOauthScope", "ResponseCompressed", "ResponseStatus", "ExpectCompressed" }, null, null, null),
65             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.SimpleResponse), global::Grpc.Testing.SimpleResponse.Parser, new[]{ "Payload", "Username", "OauthScope" }, null, null, null),
66             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.StreamingInputCallRequest), global::Grpc.Testing.StreamingInputCallRequest.Parser, new[]{ "Payload", "ExpectCompressed" }, null, null, null),
67             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.StreamingInputCallResponse), global::Grpc.Testing.StreamingInputCallResponse.Parser, new[]{ "AggregatedPayloadSize" }, null, null, null),
68             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ResponseParameters), global::Grpc.Testing.ResponseParameters.Parser, new[]{ "Size", "IntervalUs", "Compressed" }, null, null, null),
69             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.StreamingOutputCallRequest), global::Grpc.Testing.StreamingOutputCallRequest.Parser, new[]{ "ResponseType", "ResponseParameters", "Payload", "ResponseStatus" }, null, null, null),
70             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.StreamingOutputCallResponse), global::Grpc.Testing.StreamingOutputCallResponse.Parser, new[]{ "Payload" }, null, null, null),
71             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ReconnectParams), global::Grpc.Testing.ReconnectParams.Parser, new[]{ "MaxReconnectBackoffMs" }, null, null, null),
72             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ReconnectInfo), global::Grpc.Testing.ReconnectInfo.Parser, new[]{ "Passed", "BackoffMs" }, null, null, null)
73           }));
74     }
75     #endregion
76 
77   }
78   #region Enums
79   /// <summary>
80   /// The type of payload that should be returned.
81   /// </summary>
82   public enum PayloadType {
83     /// <summary>
84     /// Compressable text format.
85     /// </summary>
86     [pbr::OriginalName("COMPRESSABLE")] Compressable = 0,
87   }
88 
89   #endregion
90 
91   #region Messages
92   /// <summary>
93   /// TODO(dgq): Go back to using well-known types once
94   /// https://github.com/grpc/grpc/issues/6980 has been fixed.
95   /// import "google/protobuf/wrappers.proto";
96   /// </summary>
97   public sealed partial class BoolValue : pb::IMessage<BoolValue> {
98     private static readonly pb::MessageParser<BoolValue> _parser = new pb::MessageParser<BoolValue>(() => new BoolValue());
99     private pb::UnknownFieldSet _unknownFields;
100     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
101     public static pb::MessageParser<BoolValue> Parser { get { return _parser; } }
102 
103     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
104     public static pbr::MessageDescriptor Descriptor {
105       get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[0]; }
106     }
107 
108     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
109     pbr::MessageDescriptor pb::IMessage.Descriptor {
110       get { return Descriptor; }
111     }
112 
113     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
BoolValue()114     public BoolValue() {
115       OnConstruction();
116     }
117 
OnConstruction()118     partial void OnConstruction();
119 
120     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
BoolValue(BoolValue other)121     public BoolValue(BoolValue other) : this() {
122       value_ = other.value_;
123       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
124     }
125 
126     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()127     public BoolValue Clone() {
128       return new BoolValue(this);
129     }
130 
131     /// <summary>Field number for the "value" field.</summary>
132     public const int ValueFieldNumber = 1;
133     private bool value_;
134     /// <summary>
135     /// The bool value.
136     /// </summary>
137     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
138     public bool Value {
139       get { return value_; }
140       set {
141         value_ = value;
142       }
143     }
144 
145     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)146     public override bool Equals(object other) {
147       return Equals(other as BoolValue);
148     }
149 
150     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(BoolValue other)151     public bool Equals(BoolValue other) {
152       if (ReferenceEquals(other, null)) {
153         return false;
154       }
155       if (ReferenceEquals(other, this)) {
156         return true;
157       }
158       if (Value != other.Value) return false;
159       return Equals(_unknownFields, other._unknownFields);
160     }
161 
162     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()163     public override int GetHashCode() {
164       int hash = 1;
165       if (Value != false) hash ^= Value.GetHashCode();
166       if (_unknownFields != null) {
167         hash ^= _unknownFields.GetHashCode();
168       }
169       return hash;
170     }
171 
172     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()173     public override string ToString() {
174       return pb::JsonFormatter.ToDiagnosticString(this);
175     }
176 
177     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)178     public void WriteTo(pb::CodedOutputStream output) {
179       if (Value != false) {
180         output.WriteRawTag(8);
181         output.WriteBool(Value);
182       }
183       if (_unknownFields != null) {
184         _unknownFields.WriteTo(output);
185       }
186     }
187 
188     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()189     public int CalculateSize() {
190       int size = 0;
191       if (Value != false) {
192         size += 1 + 1;
193       }
194       if (_unknownFields != null) {
195         size += _unknownFields.CalculateSize();
196       }
197       return size;
198     }
199 
200     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(BoolValue other)201     public void MergeFrom(BoolValue other) {
202       if (other == null) {
203         return;
204       }
205       if (other.Value != false) {
206         Value = other.Value;
207       }
208       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
209     }
210 
211     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)212     public void MergeFrom(pb::CodedInputStream input) {
213       uint tag;
214       while ((tag = input.ReadTag()) != 0) {
215         switch(tag) {
216           default:
217             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
218             break;
219           case 8: {
220             Value = input.ReadBool();
221             break;
222           }
223         }
224       }
225     }
226 
227   }
228 
229   /// <summary>
230   /// A block of data, to simply increase gRPC message size.
231   /// </summary>
232   public sealed partial class Payload : pb::IMessage<Payload> {
233     private static readonly pb::MessageParser<Payload> _parser = new pb::MessageParser<Payload>(() => new Payload());
234     private pb::UnknownFieldSet _unknownFields;
235     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
236     public static pb::MessageParser<Payload> Parser { get { return _parser; } }
237 
238     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
239     public static pbr::MessageDescriptor Descriptor {
240       get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[1]; }
241     }
242 
243     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
244     pbr::MessageDescriptor pb::IMessage.Descriptor {
245       get { return Descriptor; }
246     }
247 
248     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Payload()249     public Payload() {
250       OnConstruction();
251     }
252 
OnConstruction()253     partial void OnConstruction();
254 
255     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Payload(Payload other)256     public Payload(Payload other) : this() {
257       type_ = other.type_;
258       body_ = other.body_;
259       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
260     }
261 
262     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()263     public Payload Clone() {
264       return new Payload(this);
265     }
266 
267     /// <summary>Field number for the "type" field.</summary>
268     public const int TypeFieldNumber = 1;
269     private global::Grpc.Testing.PayloadType type_ = 0;
270     /// <summary>
271     /// The type of data in body.
272     /// </summary>
273     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
274     public global::Grpc.Testing.PayloadType Type {
275       get { return type_; }
276       set {
277         type_ = value;
278       }
279     }
280 
281     /// <summary>Field number for the "body" field.</summary>
282     public const int BodyFieldNumber = 2;
283     private pb::ByteString body_ = pb::ByteString.Empty;
284     /// <summary>
285     /// Primary contents of payload.
286     /// </summary>
287     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
288     public pb::ByteString Body {
289       get { return body_; }
290       set {
291         body_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
292       }
293     }
294 
295     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)296     public override bool Equals(object other) {
297       return Equals(other as Payload);
298     }
299 
300     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(Payload other)301     public bool Equals(Payload other) {
302       if (ReferenceEquals(other, null)) {
303         return false;
304       }
305       if (ReferenceEquals(other, this)) {
306         return true;
307       }
308       if (Type != other.Type) return false;
309       if (Body != other.Body) return false;
310       return Equals(_unknownFields, other._unknownFields);
311     }
312 
313     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()314     public override int GetHashCode() {
315       int hash = 1;
316       if (Type != 0) hash ^= Type.GetHashCode();
317       if (Body.Length != 0) hash ^= Body.GetHashCode();
318       if (_unknownFields != null) {
319         hash ^= _unknownFields.GetHashCode();
320       }
321       return hash;
322     }
323 
324     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()325     public override string ToString() {
326       return pb::JsonFormatter.ToDiagnosticString(this);
327     }
328 
329     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)330     public void WriteTo(pb::CodedOutputStream output) {
331       if (Type != 0) {
332         output.WriteRawTag(8);
333         output.WriteEnum((int) Type);
334       }
335       if (Body.Length != 0) {
336         output.WriteRawTag(18);
337         output.WriteBytes(Body);
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 (Type != 0) {
348         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
349       }
350       if (Body.Length != 0) {
351         size += 1 + pb::CodedOutputStream.ComputeBytesSize(Body);
352       }
353       if (_unknownFields != null) {
354         size += _unknownFields.CalculateSize();
355       }
356       return size;
357     }
358 
359     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(Payload other)360     public void MergeFrom(Payload other) {
361       if (other == null) {
362         return;
363       }
364       if (other.Type != 0) {
365         Type = other.Type;
366       }
367       if (other.Body.Length != 0) {
368         Body = other.Body;
369       }
370       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
371     }
372 
373     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)374     public void MergeFrom(pb::CodedInputStream input) {
375       uint tag;
376       while ((tag = input.ReadTag()) != 0) {
377         switch(tag) {
378           default:
379             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
380             break;
381           case 8: {
382             type_ = (global::Grpc.Testing.PayloadType) input.ReadEnum();
383             break;
384           }
385           case 18: {
386             Body = input.ReadBytes();
387             break;
388           }
389         }
390       }
391     }
392 
393   }
394 
395   /// <summary>
396   /// A protobuf representation for grpc status. This is used by test
397   /// clients to specify a status that the server should attempt to return.
398   /// </summary>
399   public sealed partial class EchoStatus : pb::IMessage<EchoStatus> {
400     private static readonly pb::MessageParser<EchoStatus> _parser = new pb::MessageParser<EchoStatus>(() => new EchoStatus());
401     private pb::UnknownFieldSet _unknownFields;
402     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
403     public static pb::MessageParser<EchoStatus> Parser { get { return _parser; } }
404 
405     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
406     public static pbr::MessageDescriptor Descriptor {
407       get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[2]; }
408     }
409 
410     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
411     pbr::MessageDescriptor pb::IMessage.Descriptor {
412       get { return Descriptor; }
413     }
414 
415     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
EchoStatus()416     public EchoStatus() {
417       OnConstruction();
418     }
419 
OnConstruction()420     partial void OnConstruction();
421 
422     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
EchoStatus(EchoStatus other)423     public EchoStatus(EchoStatus other) : this() {
424       code_ = other.code_;
425       message_ = other.message_;
426       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
427     }
428 
429     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()430     public EchoStatus Clone() {
431       return new EchoStatus(this);
432     }
433 
434     /// <summary>Field number for the "code" field.</summary>
435     public const int CodeFieldNumber = 1;
436     private int code_;
437     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
438     public int Code {
439       get { return code_; }
440       set {
441         code_ = value;
442       }
443     }
444 
445     /// <summary>Field number for the "message" field.</summary>
446     public const int MessageFieldNumber = 2;
447     private string message_ = "";
448     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
449     public string Message {
450       get { return message_; }
451       set {
452         message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
453       }
454     }
455 
456     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)457     public override bool Equals(object other) {
458       return Equals(other as EchoStatus);
459     }
460 
461     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(EchoStatus other)462     public bool Equals(EchoStatus other) {
463       if (ReferenceEquals(other, null)) {
464         return false;
465       }
466       if (ReferenceEquals(other, this)) {
467         return true;
468       }
469       if (Code != other.Code) return false;
470       if (Message != other.Message) return false;
471       return Equals(_unknownFields, other._unknownFields);
472     }
473 
474     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()475     public override int GetHashCode() {
476       int hash = 1;
477       if (Code != 0) hash ^= Code.GetHashCode();
478       if (Message.Length != 0) hash ^= Message.GetHashCode();
479       if (_unknownFields != null) {
480         hash ^= _unknownFields.GetHashCode();
481       }
482       return hash;
483     }
484 
485     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()486     public override string ToString() {
487       return pb::JsonFormatter.ToDiagnosticString(this);
488     }
489 
490     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)491     public void WriteTo(pb::CodedOutputStream output) {
492       if (Code != 0) {
493         output.WriteRawTag(8);
494         output.WriteInt32(Code);
495       }
496       if (Message.Length != 0) {
497         output.WriteRawTag(18);
498         output.WriteString(Message);
499       }
500       if (_unknownFields != null) {
501         _unknownFields.WriteTo(output);
502       }
503     }
504 
505     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()506     public int CalculateSize() {
507       int size = 0;
508       if (Code != 0) {
509         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Code);
510       }
511       if (Message.Length != 0) {
512         size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
513       }
514       if (_unknownFields != null) {
515         size += _unknownFields.CalculateSize();
516       }
517       return size;
518     }
519 
520     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(EchoStatus other)521     public void MergeFrom(EchoStatus other) {
522       if (other == null) {
523         return;
524       }
525       if (other.Code != 0) {
526         Code = other.Code;
527       }
528       if (other.Message.Length != 0) {
529         Message = other.Message;
530       }
531       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
532     }
533 
534     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)535     public void MergeFrom(pb::CodedInputStream input) {
536       uint tag;
537       while ((tag = input.ReadTag()) != 0) {
538         switch(tag) {
539           default:
540             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
541             break;
542           case 8: {
543             Code = input.ReadInt32();
544             break;
545           }
546           case 18: {
547             Message = input.ReadString();
548             break;
549           }
550         }
551       }
552     }
553 
554   }
555 
556   /// <summary>
557   /// Unary request.
558   /// </summary>
559   public sealed partial class SimpleRequest : pb::IMessage<SimpleRequest> {
560     private static readonly pb::MessageParser<SimpleRequest> _parser = new pb::MessageParser<SimpleRequest>(() => new SimpleRequest());
561     private pb::UnknownFieldSet _unknownFields;
562     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
563     public static pb::MessageParser<SimpleRequest> Parser { get { return _parser; } }
564 
565     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
566     public static pbr::MessageDescriptor Descriptor {
567       get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[3]; }
568     }
569 
570     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
571     pbr::MessageDescriptor pb::IMessage.Descriptor {
572       get { return Descriptor; }
573     }
574 
575     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
SimpleRequest()576     public SimpleRequest() {
577       OnConstruction();
578     }
579 
OnConstruction()580     partial void OnConstruction();
581 
582     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
SimpleRequest(SimpleRequest other)583     public SimpleRequest(SimpleRequest other) : this() {
584       responseType_ = other.responseType_;
585       responseSize_ = other.responseSize_;
586       payload_ = other.payload_ != null ? other.payload_.Clone() : null;
587       fillUsername_ = other.fillUsername_;
588       fillOauthScope_ = other.fillOauthScope_;
589       responseCompressed_ = other.responseCompressed_ != null ? other.responseCompressed_.Clone() : null;
590       responseStatus_ = other.responseStatus_ != null ? other.responseStatus_.Clone() : null;
591       expectCompressed_ = other.expectCompressed_ != null ? other.expectCompressed_.Clone() : null;
592       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
593     }
594 
595     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()596     public SimpleRequest Clone() {
597       return new SimpleRequest(this);
598     }
599 
600     /// <summary>Field number for the "response_type" field.</summary>
601     public const int ResponseTypeFieldNumber = 1;
602     private global::Grpc.Testing.PayloadType responseType_ = 0;
603     /// <summary>
604     /// Desired payload type in the response from the server.
605     /// If response_type is RANDOM, server randomly chooses one from other formats.
606     /// </summary>
607     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
608     public global::Grpc.Testing.PayloadType ResponseType {
609       get { return responseType_; }
610       set {
611         responseType_ = value;
612       }
613     }
614 
615     /// <summary>Field number for the "response_size" field.</summary>
616     public const int ResponseSizeFieldNumber = 2;
617     private int responseSize_;
618     /// <summary>
619     /// Desired payload size in the response from the server.
620     /// </summary>
621     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
622     public int ResponseSize {
623       get { return responseSize_; }
624       set {
625         responseSize_ = value;
626       }
627     }
628 
629     /// <summary>Field number for the "payload" field.</summary>
630     public const int PayloadFieldNumber = 3;
631     private global::Grpc.Testing.Payload payload_;
632     /// <summary>
633     /// Optional input payload sent along with the request.
634     /// </summary>
635     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
636     public global::Grpc.Testing.Payload Payload {
637       get { return payload_; }
638       set {
639         payload_ = value;
640       }
641     }
642 
643     /// <summary>Field number for the "fill_username" field.</summary>
644     public const int FillUsernameFieldNumber = 4;
645     private bool fillUsername_;
646     /// <summary>
647     /// Whether SimpleResponse should include username.
648     /// </summary>
649     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
650     public bool FillUsername {
651       get { return fillUsername_; }
652       set {
653         fillUsername_ = value;
654       }
655     }
656 
657     /// <summary>Field number for the "fill_oauth_scope" field.</summary>
658     public const int FillOauthScopeFieldNumber = 5;
659     private bool fillOauthScope_;
660     /// <summary>
661     /// Whether SimpleResponse should include OAuth scope.
662     /// </summary>
663     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
664     public bool FillOauthScope {
665       get { return fillOauthScope_; }
666       set {
667         fillOauthScope_ = value;
668       }
669     }
670 
671     /// <summary>Field number for the "response_compressed" field.</summary>
672     public const int ResponseCompressedFieldNumber = 6;
673     private global::Grpc.Testing.BoolValue responseCompressed_;
674     /// <summary>
675     /// Whether to request the server to compress the response. This field is
676     /// "nullable" in order to interoperate seamlessly with clients not able to
677     /// implement the full compression tests by introspecting the call to verify
678     /// the response's compression status.
679     /// </summary>
680     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
681     public global::Grpc.Testing.BoolValue ResponseCompressed {
682       get { return responseCompressed_; }
683       set {
684         responseCompressed_ = value;
685       }
686     }
687 
688     /// <summary>Field number for the "response_status" field.</summary>
689     public const int ResponseStatusFieldNumber = 7;
690     private global::Grpc.Testing.EchoStatus responseStatus_;
691     /// <summary>
692     /// Whether server should return a given status
693     /// </summary>
694     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
695     public global::Grpc.Testing.EchoStatus ResponseStatus {
696       get { return responseStatus_; }
697       set {
698         responseStatus_ = value;
699       }
700     }
701 
702     /// <summary>Field number for the "expect_compressed" field.</summary>
703     public const int ExpectCompressedFieldNumber = 8;
704     private global::Grpc.Testing.BoolValue expectCompressed_;
705     /// <summary>
706     /// Whether the server should expect this request to be compressed.
707     /// </summary>
708     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
709     public global::Grpc.Testing.BoolValue ExpectCompressed {
710       get { return expectCompressed_; }
711       set {
712         expectCompressed_ = value;
713       }
714     }
715 
716     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)717     public override bool Equals(object other) {
718       return Equals(other as SimpleRequest);
719     }
720 
721     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(SimpleRequest other)722     public bool Equals(SimpleRequest other) {
723       if (ReferenceEquals(other, null)) {
724         return false;
725       }
726       if (ReferenceEquals(other, this)) {
727         return true;
728       }
729       if (ResponseType != other.ResponseType) return false;
730       if (ResponseSize != other.ResponseSize) return false;
731       if (!object.Equals(Payload, other.Payload)) return false;
732       if (FillUsername != other.FillUsername) return false;
733       if (FillOauthScope != other.FillOauthScope) return false;
734       if (!object.Equals(ResponseCompressed, other.ResponseCompressed)) return false;
735       if (!object.Equals(ResponseStatus, other.ResponseStatus)) return false;
736       if (!object.Equals(ExpectCompressed, other.ExpectCompressed)) return false;
737       return Equals(_unknownFields, other._unknownFields);
738     }
739 
740     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()741     public override int GetHashCode() {
742       int hash = 1;
743       if (ResponseType != 0) hash ^= ResponseType.GetHashCode();
744       if (ResponseSize != 0) hash ^= ResponseSize.GetHashCode();
745       if (payload_ != null) hash ^= Payload.GetHashCode();
746       if (FillUsername != false) hash ^= FillUsername.GetHashCode();
747       if (FillOauthScope != false) hash ^= FillOauthScope.GetHashCode();
748       if (responseCompressed_ != null) hash ^= ResponseCompressed.GetHashCode();
749       if (responseStatus_ != null) hash ^= ResponseStatus.GetHashCode();
750       if (expectCompressed_ != null) hash ^= ExpectCompressed.GetHashCode();
751       if (_unknownFields != null) {
752         hash ^= _unknownFields.GetHashCode();
753       }
754       return hash;
755     }
756 
757     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()758     public override string ToString() {
759       return pb::JsonFormatter.ToDiagnosticString(this);
760     }
761 
762     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)763     public void WriteTo(pb::CodedOutputStream output) {
764       if (ResponseType != 0) {
765         output.WriteRawTag(8);
766         output.WriteEnum((int) ResponseType);
767       }
768       if (ResponseSize != 0) {
769         output.WriteRawTag(16);
770         output.WriteInt32(ResponseSize);
771       }
772       if (payload_ != null) {
773         output.WriteRawTag(26);
774         output.WriteMessage(Payload);
775       }
776       if (FillUsername != false) {
777         output.WriteRawTag(32);
778         output.WriteBool(FillUsername);
779       }
780       if (FillOauthScope != false) {
781         output.WriteRawTag(40);
782         output.WriteBool(FillOauthScope);
783       }
784       if (responseCompressed_ != null) {
785         output.WriteRawTag(50);
786         output.WriteMessage(ResponseCompressed);
787       }
788       if (responseStatus_ != null) {
789         output.WriteRawTag(58);
790         output.WriteMessage(ResponseStatus);
791       }
792       if (expectCompressed_ != null) {
793         output.WriteRawTag(66);
794         output.WriteMessage(ExpectCompressed);
795       }
796       if (_unknownFields != null) {
797         _unknownFields.WriteTo(output);
798       }
799     }
800 
801     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()802     public int CalculateSize() {
803       int size = 0;
804       if (ResponseType != 0) {
805         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseType);
806       }
807       if (ResponseSize != 0) {
808         size += 1 + pb::CodedOutputStream.ComputeInt32Size(ResponseSize);
809       }
810       if (payload_ != null) {
811         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload);
812       }
813       if (FillUsername != false) {
814         size += 1 + 1;
815       }
816       if (FillOauthScope != false) {
817         size += 1 + 1;
818       }
819       if (responseCompressed_ != null) {
820         size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResponseCompressed);
821       }
822       if (responseStatus_ != null) {
823         size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResponseStatus);
824       }
825       if (expectCompressed_ != null) {
826         size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpectCompressed);
827       }
828       if (_unknownFields != null) {
829         size += _unknownFields.CalculateSize();
830       }
831       return size;
832     }
833 
834     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(SimpleRequest other)835     public void MergeFrom(SimpleRequest other) {
836       if (other == null) {
837         return;
838       }
839       if (other.ResponseType != 0) {
840         ResponseType = other.ResponseType;
841       }
842       if (other.ResponseSize != 0) {
843         ResponseSize = other.ResponseSize;
844       }
845       if (other.payload_ != null) {
846         if (payload_ == null) {
847           payload_ = new global::Grpc.Testing.Payload();
848         }
849         Payload.MergeFrom(other.Payload);
850       }
851       if (other.FillUsername != false) {
852         FillUsername = other.FillUsername;
853       }
854       if (other.FillOauthScope != false) {
855         FillOauthScope = other.FillOauthScope;
856       }
857       if (other.responseCompressed_ != null) {
858         if (responseCompressed_ == null) {
859           responseCompressed_ = new global::Grpc.Testing.BoolValue();
860         }
861         ResponseCompressed.MergeFrom(other.ResponseCompressed);
862       }
863       if (other.responseStatus_ != null) {
864         if (responseStatus_ == null) {
865           responseStatus_ = new global::Grpc.Testing.EchoStatus();
866         }
867         ResponseStatus.MergeFrom(other.ResponseStatus);
868       }
869       if (other.expectCompressed_ != null) {
870         if (expectCompressed_ == null) {
871           expectCompressed_ = new global::Grpc.Testing.BoolValue();
872         }
873         ExpectCompressed.MergeFrom(other.ExpectCompressed);
874       }
875       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
876     }
877 
878     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)879     public void MergeFrom(pb::CodedInputStream input) {
880       uint tag;
881       while ((tag = input.ReadTag()) != 0) {
882         switch(tag) {
883           default:
884             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
885             break;
886           case 8: {
887             responseType_ = (global::Grpc.Testing.PayloadType) input.ReadEnum();
888             break;
889           }
890           case 16: {
891             ResponseSize = input.ReadInt32();
892             break;
893           }
894           case 26: {
895             if (payload_ == null) {
896               payload_ = new global::Grpc.Testing.Payload();
897             }
898             input.ReadMessage(payload_);
899             break;
900           }
901           case 32: {
902             FillUsername = input.ReadBool();
903             break;
904           }
905           case 40: {
906             FillOauthScope = input.ReadBool();
907             break;
908           }
909           case 50: {
910             if (responseCompressed_ == null) {
911               responseCompressed_ = new global::Grpc.Testing.BoolValue();
912             }
913             input.ReadMessage(responseCompressed_);
914             break;
915           }
916           case 58: {
917             if (responseStatus_ == null) {
918               responseStatus_ = new global::Grpc.Testing.EchoStatus();
919             }
920             input.ReadMessage(responseStatus_);
921             break;
922           }
923           case 66: {
924             if (expectCompressed_ == null) {
925               expectCompressed_ = new global::Grpc.Testing.BoolValue();
926             }
927             input.ReadMessage(expectCompressed_);
928             break;
929           }
930         }
931       }
932     }
933 
934   }
935 
936   /// <summary>
937   /// Unary response, as configured by the request.
938   /// </summary>
939   public sealed partial class SimpleResponse : pb::IMessage<SimpleResponse> {
940     private static readonly pb::MessageParser<SimpleResponse> _parser = new pb::MessageParser<SimpleResponse>(() => new SimpleResponse());
941     private pb::UnknownFieldSet _unknownFields;
942     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
943     public static pb::MessageParser<SimpleResponse> Parser { get { return _parser; } }
944 
945     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
946     public static pbr::MessageDescriptor Descriptor {
947       get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[4]; }
948     }
949 
950     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
951     pbr::MessageDescriptor pb::IMessage.Descriptor {
952       get { return Descriptor; }
953     }
954 
955     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
SimpleResponse()956     public SimpleResponse() {
957       OnConstruction();
958     }
959 
OnConstruction()960     partial void OnConstruction();
961 
962     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
SimpleResponse(SimpleResponse other)963     public SimpleResponse(SimpleResponse other) : this() {
964       payload_ = other.payload_ != null ? other.payload_.Clone() : null;
965       username_ = other.username_;
966       oauthScope_ = other.oauthScope_;
967       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
968     }
969 
970     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()971     public SimpleResponse Clone() {
972       return new SimpleResponse(this);
973     }
974 
975     /// <summary>Field number for the "payload" field.</summary>
976     public const int PayloadFieldNumber = 1;
977     private global::Grpc.Testing.Payload payload_;
978     /// <summary>
979     /// Payload to increase message size.
980     /// </summary>
981     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
982     public global::Grpc.Testing.Payload Payload {
983       get { return payload_; }
984       set {
985         payload_ = value;
986       }
987     }
988 
989     /// <summary>Field number for the "username" field.</summary>
990     public const int UsernameFieldNumber = 2;
991     private string username_ = "";
992     /// <summary>
993     /// The user the request came from, for verifying authentication was
994     /// successful when the client expected it.
995     /// </summary>
996     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
997     public string Username {
998       get { return username_; }
999       set {
1000         username_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1001       }
1002     }
1003 
1004     /// <summary>Field number for the "oauth_scope" field.</summary>
1005     public const int OauthScopeFieldNumber = 3;
1006     private string oauthScope_ = "";
1007     /// <summary>
1008     /// OAuth scope.
1009     /// </summary>
1010     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1011     public string OauthScope {
1012       get { return oauthScope_; }
1013       set {
1014         oauthScope_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1015       }
1016     }
1017 
1018     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)1019     public override bool Equals(object other) {
1020       return Equals(other as SimpleResponse);
1021     }
1022 
1023     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(SimpleResponse other)1024     public bool Equals(SimpleResponse other) {
1025       if (ReferenceEquals(other, null)) {
1026         return false;
1027       }
1028       if (ReferenceEquals(other, this)) {
1029         return true;
1030       }
1031       if (!object.Equals(Payload, other.Payload)) return false;
1032       if (Username != other.Username) return false;
1033       if (OauthScope != other.OauthScope) return false;
1034       return Equals(_unknownFields, other._unknownFields);
1035     }
1036 
1037     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()1038     public override int GetHashCode() {
1039       int hash = 1;
1040       if (payload_ != null) hash ^= Payload.GetHashCode();
1041       if (Username.Length != 0) hash ^= Username.GetHashCode();
1042       if (OauthScope.Length != 0) hash ^= OauthScope.GetHashCode();
1043       if (_unknownFields != null) {
1044         hash ^= _unknownFields.GetHashCode();
1045       }
1046       return hash;
1047     }
1048 
1049     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()1050     public override string ToString() {
1051       return pb::JsonFormatter.ToDiagnosticString(this);
1052     }
1053 
1054     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)1055     public void WriteTo(pb::CodedOutputStream output) {
1056       if (payload_ != null) {
1057         output.WriteRawTag(10);
1058         output.WriteMessage(Payload);
1059       }
1060       if (Username.Length != 0) {
1061         output.WriteRawTag(18);
1062         output.WriteString(Username);
1063       }
1064       if (OauthScope.Length != 0) {
1065         output.WriteRawTag(26);
1066         output.WriteString(OauthScope);
1067       }
1068       if (_unknownFields != null) {
1069         _unknownFields.WriteTo(output);
1070       }
1071     }
1072 
1073     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()1074     public int CalculateSize() {
1075       int size = 0;
1076       if (payload_ != null) {
1077         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload);
1078       }
1079       if (Username.Length != 0) {
1080         size += 1 + pb::CodedOutputStream.ComputeStringSize(Username);
1081       }
1082       if (OauthScope.Length != 0) {
1083         size += 1 + pb::CodedOutputStream.ComputeStringSize(OauthScope);
1084       }
1085       if (_unknownFields != null) {
1086         size += _unknownFields.CalculateSize();
1087       }
1088       return size;
1089     }
1090 
1091     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(SimpleResponse other)1092     public void MergeFrom(SimpleResponse other) {
1093       if (other == null) {
1094         return;
1095       }
1096       if (other.payload_ != null) {
1097         if (payload_ == null) {
1098           payload_ = new global::Grpc.Testing.Payload();
1099         }
1100         Payload.MergeFrom(other.Payload);
1101       }
1102       if (other.Username.Length != 0) {
1103         Username = other.Username;
1104       }
1105       if (other.OauthScope.Length != 0) {
1106         OauthScope = other.OauthScope;
1107       }
1108       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1109     }
1110 
1111     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)1112     public void MergeFrom(pb::CodedInputStream input) {
1113       uint tag;
1114       while ((tag = input.ReadTag()) != 0) {
1115         switch(tag) {
1116           default:
1117             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1118             break;
1119           case 10: {
1120             if (payload_ == null) {
1121               payload_ = new global::Grpc.Testing.Payload();
1122             }
1123             input.ReadMessage(payload_);
1124             break;
1125           }
1126           case 18: {
1127             Username = input.ReadString();
1128             break;
1129           }
1130           case 26: {
1131             OauthScope = input.ReadString();
1132             break;
1133           }
1134         }
1135       }
1136     }
1137 
1138   }
1139 
1140   /// <summary>
1141   /// Client-streaming request.
1142   /// </summary>
1143   public sealed partial class StreamingInputCallRequest : pb::IMessage<StreamingInputCallRequest> {
1144     private static readonly pb::MessageParser<StreamingInputCallRequest> _parser = new pb::MessageParser<StreamingInputCallRequest>(() => new StreamingInputCallRequest());
1145     private pb::UnknownFieldSet _unknownFields;
1146     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1147     public static pb::MessageParser<StreamingInputCallRequest> Parser { get { return _parser; } }
1148 
1149     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1150     public static pbr::MessageDescriptor Descriptor {
1151       get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[5]; }
1152     }
1153 
1154     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1155     pbr::MessageDescriptor pb::IMessage.Descriptor {
1156       get { return Descriptor; }
1157     }
1158 
1159     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
StreamingInputCallRequest()1160     public StreamingInputCallRequest() {
1161       OnConstruction();
1162     }
1163 
OnConstruction()1164     partial void OnConstruction();
1165 
1166     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
StreamingInputCallRequest(StreamingInputCallRequest other)1167     public StreamingInputCallRequest(StreamingInputCallRequest other) : this() {
1168       payload_ = other.payload_ != null ? other.payload_.Clone() : null;
1169       expectCompressed_ = other.expectCompressed_ != null ? other.expectCompressed_.Clone() : null;
1170       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1171     }
1172 
1173     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()1174     public StreamingInputCallRequest Clone() {
1175       return new StreamingInputCallRequest(this);
1176     }
1177 
1178     /// <summary>Field number for the "payload" field.</summary>
1179     public const int PayloadFieldNumber = 1;
1180     private global::Grpc.Testing.Payload payload_;
1181     /// <summary>
1182     /// Optional input payload sent along with the request.
1183     /// </summary>
1184     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1185     public global::Grpc.Testing.Payload Payload {
1186       get { return payload_; }
1187       set {
1188         payload_ = value;
1189       }
1190     }
1191 
1192     /// <summary>Field number for the "expect_compressed" field.</summary>
1193     public const int ExpectCompressedFieldNumber = 2;
1194     private global::Grpc.Testing.BoolValue expectCompressed_;
1195     /// <summary>
1196     /// Whether the server should expect this request to be compressed. This field
1197     /// is "nullable" in order to interoperate seamlessly with servers not able to
1198     /// implement the full compression tests by introspecting the call to verify
1199     /// the request's compression status.
1200     /// </summary>
1201     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1202     public global::Grpc.Testing.BoolValue ExpectCompressed {
1203       get { return expectCompressed_; }
1204       set {
1205         expectCompressed_ = value;
1206       }
1207     }
1208 
1209     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)1210     public override bool Equals(object other) {
1211       return Equals(other as StreamingInputCallRequest);
1212     }
1213 
1214     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(StreamingInputCallRequest other)1215     public bool Equals(StreamingInputCallRequest other) {
1216       if (ReferenceEquals(other, null)) {
1217         return false;
1218       }
1219       if (ReferenceEquals(other, this)) {
1220         return true;
1221       }
1222       if (!object.Equals(Payload, other.Payload)) return false;
1223       if (!object.Equals(ExpectCompressed, other.ExpectCompressed)) return false;
1224       return Equals(_unknownFields, other._unknownFields);
1225     }
1226 
1227     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()1228     public override int GetHashCode() {
1229       int hash = 1;
1230       if (payload_ != null) hash ^= Payload.GetHashCode();
1231       if (expectCompressed_ != null) hash ^= ExpectCompressed.GetHashCode();
1232       if (_unknownFields != null) {
1233         hash ^= _unknownFields.GetHashCode();
1234       }
1235       return hash;
1236     }
1237 
1238     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()1239     public override string ToString() {
1240       return pb::JsonFormatter.ToDiagnosticString(this);
1241     }
1242 
1243     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)1244     public void WriteTo(pb::CodedOutputStream output) {
1245       if (payload_ != null) {
1246         output.WriteRawTag(10);
1247         output.WriteMessage(Payload);
1248       }
1249       if (expectCompressed_ != null) {
1250         output.WriteRawTag(18);
1251         output.WriteMessage(ExpectCompressed);
1252       }
1253       if (_unknownFields != null) {
1254         _unknownFields.WriteTo(output);
1255       }
1256     }
1257 
1258     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()1259     public int CalculateSize() {
1260       int size = 0;
1261       if (payload_ != null) {
1262         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload);
1263       }
1264       if (expectCompressed_ != null) {
1265         size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpectCompressed);
1266       }
1267       if (_unknownFields != null) {
1268         size += _unknownFields.CalculateSize();
1269       }
1270       return size;
1271     }
1272 
1273     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(StreamingInputCallRequest other)1274     public void MergeFrom(StreamingInputCallRequest other) {
1275       if (other == null) {
1276         return;
1277       }
1278       if (other.payload_ != null) {
1279         if (payload_ == null) {
1280           payload_ = new global::Grpc.Testing.Payload();
1281         }
1282         Payload.MergeFrom(other.Payload);
1283       }
1284       if (other.expectCompressed_ != null) {
1285         if (expectCompressed_ == null) {
1286           expectCompressed_ = new global::Grpc.Testing.BoolValue();
1287         }
1288         ExpectCompressed.MergeFrom(other.ExpectCompressed);
1289       }
1290       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1291     }
1292 
1293     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)1294     public void MergeFrom(pb::CodedInputStream input) {
1295       uint tag;
1296       while ((tag = input.ReadTag()) != 0) {
1297         switch(tag) {
1298           default:
1299             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1300             break;
1301           case 10: {
1302             if (payload_ == null) {
1303               payload_ = new global::Grpc.Testing.Payload();
1304             }
1305             input.ReadMessage(payload_);
1306             break;
1307           }
1308           case 18: {
1309             if (expectCompressed_ == null) {
1310               expectCompressed_ = new global::Grpc.Testing.BoolValue();
1311             }
1312             input.ReadMessage(expectCompressed_);
1313             break;
1314           }
1315         }
1316       }
1317     }
1318 
1319   }
1320 
1321   /// <summary>
1322   /// Client-streaming response.
1323   /// </summary>
1324   public sealed partial class StreamingInputCallResponse : pb::IMessage<StreamingInputCallResponse> {
1325     private static readonly pb::MessageParser<StreamingInputCallResponse> _parser = new pb::MessageParser<StreamingInputCallResponse>(() => new StreamingInputCallResponse());
1326     private pb::UnknownFieldSet _unknownFields;
1327     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1328     public static pb::MessageParser<StreamingInputCallResponse> Parser { get { return _parser; } }
1329 
1330     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1331     public static pbr::MessageDescriptor Descriptor {
1332       get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[6]; }
1333     }
1334 
1335     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1336     pbr::MessageDescriptor pb::IMessage.Descriptor {
1337       get { return Descriptor; }
1338     }
1339 
1340     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
StreamingInputCallResponse()1341     public StreamingInputCallResponse() {
1342       OnConstruction();
1343     }
1344 
OnConstruction()1345     partial void OnConstruction();
1346 
1347     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
StreamingInputCallResponse(StreamingInputCallResponse other)1348     public StreamingInputCallResponse(StreamingInputCallResponse other) : this() {
1349       aggregatedPayloadSize_ = other.aggregatedPayloadSize_;
1350       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1351     }
1352 
1353     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()1354     public StreamingInputCallResponse Clone() {
1355       return new StreamingInputCallResponse(this);
1356     }
1357 
1358     /// <summary>Field number for the "aggregated_payload_size" field.</summary>
1359     public const int AggregatedPayloadSizeFieldNumber = 1;
1360     private int aggregatedPayloadSize_;
1361     /// <summary>
1362     /// Aggregated size of payloads received from the client.
1363     /// </summary>
1364     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1365     public int AggregatedPayloadSize {
1366       get { return aggregatedPayloadSize_; }
1367       set {
1368         aggregatedPayloadSize_ = value;
1369       }
1370     }
1371 
1372     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)1373     public override bool Equals(object other) {
1374       return Equals(other as StreamingInputCallResponse);
1375     }
1376 
1377     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(StreamingInputCallResponse other)1378     public bool Equals(StreamingInputCallResponse other) {
1379       if (ReferenceEquals(other, null)) {
1380         return false;
1381       }
1382       if (ReferenceEquals(other, this)) {
1383         return true;
1384       }
1385       if (AggregatedPayloadSize != other.AggregatedPayloadSize) return false;
1386       return Equals(_unknownFields, other._unknownFields);
1387     }
1388 
1389     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()1390     public override int GetHashCode() {
1391       int hash = 1;
1392       if (AggregatedPayloadSize != 0) hash ^= AggregatedPayloadSize.GetHashCode();
1393       if (_unknownFields != null) {
1394         hash ^= _unknownFields.GetHashCode();
1395       }
1396       return hash;
1397     }
1398 
1399     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()1400     public override string ToString() {
1401       return pb::JsonFormatter.ToDiagnosticString(this);
1402     }
1403 
1404     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)1405     public void WriteTo(pb::CodedOutputStream output) {
1406       if (AggregatedPayloadSize != 0) {
1407         output.WriteRawTag(8);
1408         output.WriteInt32(AggregatedPayloadSize);
1409       }
1410       if (_unknownFields != null) {
1411         _unknownFields.WriteTo(output);
1412       }
1413     }
1414 
1415     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()1416     public int CalculateSize() {
1417       int size = 0;
1418       if (AggregatedPayloadSize != 0) {
1419         size += 1 + pb::CodedOutputStream.ComputeInt32Size(AggregatedPayloadSize);
1420       }
1421       if (_unknownFields != null) {
1422         size += _unknownFields.CalculateSize();
1423       }
1424       return size;
1425     }
1426 
1427     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(StreamingInputCallResponse other)1428     public void MergeFrom(StreamingInputCallResponse other) {
1429       if (other == null) {
1430         return;
1431       }
1432       if (other.AggregatedPayloadSize != 0) {
1433         AggregatedPayloadSize = other.AggregatedPayloadSize;
1434       }
1435       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1436     }
1437 
1438     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)1439     public void MergeFrom(pb::CodedInputStream input) {
1440       uint tag;
1441       while ((tag = input.ReadTag()) != 0) {
1442         switch(tag) {
1443           default:
1444             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1445             break;
1446           case 8: {
1447             AggregatedPayloadSize = input.ReadInt32();
1448             break;
1449           }
1450         }
1451       }
1452     }
1453 
1454   }
1455 
1456   /// <summary>
1457   /// Configuration for a particular response.
1458   /// </summary>
1459   public sealed partial class ResponseParameters : pb::IMessage<ResponseParameters> {
1460     private static readonly pb::MessageParser<ResponseParameters> _parser = new pb::MessageParser<ResponseParameters>(() => new ResponseParameters());
1461     private pb::UnknownFieldSet _unknownFields;
1462     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1463     public static pb::MessageParser<ResponseParameters> Parser { get { return _parser; } }
1464 
1465     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1466     public static pbr::MessageDescriptor Descriptor {
1467       get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[7]; }
1468     }
1469 
1470     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1471     pbr::MessageDescriptor pb::IMessage.Descriptor {
1472       get { return Descriptor; }
1473     }
1474 
1475     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ResponseParameters()1476     public ResponseParameters() {
1477       OnConstruction();
1478     }
1479 
OnConstruction()1480     partial void OnConstruction();
1481 
1482     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ResponseParameters(ResponseParameters other)1483     public ResponseParameters(ResponseParameters other) : this() {
1484       size_ = other.size_;
1485       intervalUs_ = other.intervalUs_;
1486       compressed_ = other.compressed_ != null ? other.compressed_.Clone() : null;
1487       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1488     }
1489 
1490     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()1491     public ResponseParameters Clone() {
1492       return new ResponseParameters(this);
1493     }
1494 
1495     /// <summary>Field number for the "size" field.</summary>
1496     public const int SizeFieldNumber = 1;
1497     private int size_;
1498     /// <summary>
1499     /// Desired payload sizes in responses from the server.
1500     /// </summary>
1501     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1502     public int Size {
1503       get { return size_; }
1504       set {
1505         size_ = value;
1506       }
1507     }
1508 
1509     /// <summary>Field number for the "interval_us" field.</summary>
1510     public const int IntervalUsFieldNumber = 2;
1511     private int intervalUs_;
1512     /// <summary>
1513     /// Desired interval between consecutive responses in the response stream in
1514     /// microseconds.
1515     /// </summary>
1516     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1517     public int IntervalUs {
1518       get { return intervalUs_; }
1519       set {
1520         intervalUs_ = value;
1521       }
1522     }
1523 
1524     /// <summary>Field number for the "compressed" field.</summary>
1525     public const int CompressedFieldNumber = 3;
1526     private global::Grpc.Testing.BoolValue compressed_;
1527     /// <summary>
1528     /// Whether to request the server to compress the response. This field is
1529     /// "nullable" in order to interoperate seamlessly with clients not able to
1530     /// implement the full compression tests by introspecting the call to verify
1531     /// the response's compression status.
1532     /// </summary>
1533     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1534     public global::Grpc.Testing.BoolValue Compressed {
1535       get { return compressed_; }
1536       set {
1537         compressed_ = value;
1538       }
1539     }
1540 
1541     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)1542     public override bool Equals(object other) {
1543       return Equals(other as ResponseParameters);
1544     }
1545 
1546     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(ResponseParameters other)1547     public bool Equals(ResponseParameters other) {
1548       if (ReferenceEquals(other, null)) {
1549         return false;
1550       }
1551       if (ReferenceEquals(other, this)) {
1552         return true;
1553       }
1554       if (Size != other.Size) return false;
1555       if (IntervalUs != other.IntervalUs) return false;
1556       if (!object.Equals(Compressed, other.Compressed)) return false;
1557       return Equals(_unknownFields, other._unknownFields);
1558     }
1559 
1560     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()1561     public override int GetHashCode() {
1562       int hash = 1;
1563       if (Size != 0) hash ^= Size.GetHashCode();
1564       if (IntervalUs != 0) hash ^= IntervalUs.GetHashCode();
1565       if (compressed_ != null) hash ^= Compressed.GetHashCode();
1566       if (_unknownFields != null) {
1567         hash ^= _unknownFields.GetHashCode();
1568       }
1569       return hash;
1570     }
1571 
1572     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()1573     public override string ToString() {
1574       return pb::JsonFormatter.ToDiagnosticString(this);
1575     }
1576 
1577     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)1578     public void WriteTo(pb::CodedOutputStream output) {
1579       if (Size != 0) {
1580         output.WriteRawTag(8);
1581         output.WriteInt32(Size);
1582       }
1583       if (IntervalUs != 0) {
1584         output.WriteRawTag(16);
1585         output.WriteInt32(IntervalUs);
1586       }
1587       if (compressed_ != null) {
1588         output.WriteRawTag(26);
1589         output.WriteMessage(Compressed);
1590       }
1591       if (_unknownFields != null) {
1592         _unknownFields.WriteTo(output);
1593       }
1594     }
1595 
1596     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()1597     public int CalculateSize() {
1598       int size = 0;
1599       if (Size != 0) {
1600         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Size);
1601       }
1602       if (IntervalUs != 0) {
1603         size += 1 + pb::CodedOutputStream.ComputeInt32Size(IntervalUs);
1604       }
1605       if (compressed_ != null) {
1606         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Compressed);
1607       }
1608       if (_unknownFields != null) {
1609         size += _unknownFields.CalculateSize();
1610       }
1611       return size;
1612     }
1613 
1614     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(ResponseParameters other)1615     public void MergeFrom(ResponseParameters other) {
1616       if (other == null) {
1617         return;
1618       }
1619       if (other.Size != 0) {
1620         Size = other.Size;
1621       }
1622       if (other.IntervalUs != 0) {
1623         IntervalUs = other.IntervalUs;
1624       }
1625       if (other.compressed_ != null) {
1626         if (compressed_ == null) {
1627           compressed_ = new global::Grpc.Testing.BoolValue();
1628         }
1629         Compressed.MergeFrom(other.Compressed);
1630       }
1631       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1632     }
1633 
1634     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)1635     public void MergeFrom(pb::CodedInputStream input) {
1636       uint tag;
1637       while ((tag = input.ReadTag()) != 0) {
1638         switch(tag) {
1639           default:
1640             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1641             break;
1642           case 8: {
1643             Size = input.ReadInt32();
1644             break;
1645           }
1646           case 16: {
1647             IntervalUs = input.ReadInt32();
1648             break;
1649           }
1650           case 26: {
1651             if (compressed_ == null) {
1652               compressed_ = new global::Grpc.Testing.BoolValue();
1653             }
1654             input.ReadMessage(compressed_);
1655             break;
1656           }
1657         }
1658       }
1659     }
1660 
1661   }
1662 
1663   /// <summary>
1664   /// Server-streaming request.
1665   /// </summary>
1666   public sealed partial class StreamingOutputCallRequest : pb::IMessage<StreamingOutputCallRequest> {
1667     private static readonly pb::MessageParser<StreamingOutputCallRequest> _parser = new pb::MessageParser<StreamingOutputCallRequest>(() => new StreamingOutputCallRequest());
1668     private pb::UnknownFieldSet _unknownFields;
1669     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1670     public static pb::MessageParser<StreamingOutputCallRequest> Parser { get { return _parser; } }
1671 
1672     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1673     public static pbr::MessageDescriptor Descriptor {
1674       get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[8]; }
1675     }
1676 
1677     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1678     pbr::MessageDescriptor pb::IMessage.Descriptor {
1679       get { return Descriptor; }
1680     }
1681 
1682     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
StreamingOutputCallRequest()1683     public StreamingOutputCallRequest() {
1684       OnConstruction();
1685     }
1686 
OnConstruction()1687     partial void OnConstruction();
1688 
1689     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
StreamingOutputCallRequest(StreamingOutputCallRequest other)1690     public StreamingOutputCallRequest(StreamingOutputCallRequest other) : this() {
1691       responseType_ = other.responseType_;
1692       responseParameters_ = other.responseParameters_.Clone();
1693       payload_ = other.payload_ != null ? other.payload_.Clone() : null;
1694       responseStatus_ = other.responseStatus_ != null ? other.responseStatus_.Clone() : null;
1695       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1696     }
1697 
1698     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()1699     public StreamingOutputCallRequest Clone() {
1700       return new StreamingOutputCallRequest(this);
1701     }
1702 
1703     /// <summary>Field number for the "response_type" field.</summary>
1704     public const int ResponseTypeFieldNumber = 1;
1705     private global::Grpc.Testing.PayloadType responseType_ = 0;
1706     /// <summary>
1707     /// Desired payload type in the response from the server.
1708     /// If response_type is RANDOM, the payload from each response in the stream
1709     /// might be of different types. This is to simulate a mixed type of payload
1710     /// stream.
1711     /// </summary>
1712     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1713     public global::Grpc.Testing.PayloadType ResponseType {
1714       get { return responseType_; }
1715       set {
1716         responseType_ = value;
1717       }
1718     }
1719 
1720     /// <summary>Field number for the "response_parameters" field.</summary>
1721     public const int ResponseParametersFieldNumber = 2;
1722     private static readonly pb::FieldCodec<global::Grpc.Testing.ResponseParameters> _repeated_responseParameters_codec
1723         = pb::FieldCodec.ForMessage(18, global::Grpc.Testing.ResponseParameters.Parser);
1724     private readonly pbc::RepeatedField<global::Grpc.Testing.ResponseParameters> responseParameters_ = new pbc::RepeatedField<global::Grpc.Testing.ResponseParameters>();
1725     /// <summary>
1726     /// Configuration for each expected response message.
1727     /// </summary>
1728     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1729     public pbc::RepeatedField<global::Grpc.Testing.ResponseParameters> ResponseParameters {
1730       get { return responseParameters_; }
1731     }
1732 
1733     /// <summary>Field number for the "payload" field.</summary>
1734     public const int PayloadFieldNumber = 3;
1735     private global::Grpc.Testing.Payload payload_;
1736     /// <summary>
1737     /// Optional input payload sent along with the request.
1738     /// </summary>
1739     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1740     public global::Grpc.Testing.Payload Payload {
1741       get { return payload_; }
1742       set {
1743         payload_ = value;
1744       }
1745     }
1746 
1747     /// <summary>Field number for the "response_status" field.</summary>
1748     public const int ResponseStatusFieldNumber = 7;
1749     private global::Grpc.Testing.EchoStatus responseStatus_;
1750     /// <summary>
1751     /// Whether server should return a given status
1752     /// </summary>
1753     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1754     public global::Grpc.Testing.EchoStatus ResponseStatus {
1755       get { return responseStatus_; }
1756       set {
1757         responseStatus_ = value;
1758       }
1759     }
1760 
1761     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)1762     public override bool Equals(object other) {
1763       return Equals(other as StreamingOutputCallRequest);
1764     }
1765 
1766     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(StreamingOutputCallRequest other)1767     public bool Equals(StreamingOutputCallRequest other) {
1768       if (ReferenceEquals(other, null)) {
1769         return false;
1770       }
1771       if (ReferenceEquals(other, this)) {
1772         return true;
1773       }
1774       if (ResponseType != other.ResponseType) return false;
1775       if(!responseParameters_.Equals(other.responseParameters_)) return false;
1776       if (!object.Equals(Payload, other.Payload)) return false;
1777       if (!object.Equals(ResponseStatus, other.ResponseStatus)) return false;
1778       return Equals(_unknownFields, other._unknownFields);
1779     }
1780 
1781     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()1782     public override int GetHashCode() {
1783       int hash = 1;
1784       if (ResponseType != 0) hash ^= ResponseType.GetHashCode();
1785       hash ^= responseParameters_.GetHashCode();
1786       if (payload_ != null) hash ^= Payload.GetHashCode();
1787       if (responseStatus_ != null) hash ^= ResponseStatus.GetHashCode();
1788       if (_unknownFields != null) {
1789         hash ^= _unknownFields.GetHashCode();
1790       }
1791       return hash;
1792     }
1793 
1794     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()1795     public override string ToString() {
1796       return pb::JsonFormatter.ToDiagnosticString(this);
1797     }
1798 
1799     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)1800     public void WriteTo(pb::CodedOutputStream output) {
1801       if (ResponseType != 0) {
1802         output.WriteRawTag(8);
1803         output.WriteEnum((int) ResponseType);
1804       }
1805       responseParameters_.WriteTo(output, _repeated_responseParameters_codec);
1806       if (payload_ != null) {
1807         output.WriteRawTag(26);
1808         output.WriteMessage(Payload);
1809       }
1810       if (responseStatus_ != null) {
1811         output.WriteRawTag(58);
1812         output.WriteMessage(ResponseStatus);
1813       }
1814       if (_unknownFields != null) {
1815         _unknownFields.WriteTo(output);
1816       }
1817     }
1818 
1819     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()1820     public int CalculateSize() {
1821       int size = 0;
1822       if (ResponseType != 0) {
1823         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseType);
1824       }
1825       size += responseParameters_.CalculateSize(_repeated_responseParameters_codec);
1826       if (payload_ != null) {
1827         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload);
1828       }
1829       if (responseStatus_ != null) {
1830         size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResponseStatus);
1831       }
1832       if (_unknownFields != null) {
1833         size += _unknownFields.CalculateSize();
1834       }
1835       return size;
1836     }
1837 
1838     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(StreamingOutputCallRequest other)1839     public void MergeFrom(StreamingOutputCallRequest other) {
1840       if (other == null) {
1841         return;
1842       }
1843       if (other.ResponseType != 0) {
1844         ResponseType = other.ResponseType;
1845       }
1846       responseParameters_.Add(other.responseParameters_);
1847       if (other.payload_ != null) {
1848         if (payload_ == null) {
1849           payload_ = new global::Grpc.Testing.Payload();
1850         }
1851         Payload.MergeFrom(other.Payload);
1852       }
1853       if (other.responseStatus_ != null) {
1854         if (responseStatus_ == null) {
1855           responseStatus_ = new global::Grpc.Testing.EchoStatus();
1856         }
1857         ResponseStatus.MergeFrom(other.ResponseStatus);
1858       }
1859       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1860     }
1861 
1862     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)1863     public void MergeFrom(pb::CodedInputStream input) {
1864       uint tag;
1865       while ((tag = input.ReadTag()) != 0) {
1866         switch(tag) {
1867           default:
1868             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1869             break;
1870           case 8: {
1871             responseType_ = (global::Grpc.Testing.PayloadType) input.ReadEnum();
1872             break;
1873           }
1874           case 18: {
1875             responseParameters_.AddEntriesFrom(input, _repeated_responseParameters_codec);
1876             break;
1877           }
1878           case 26: {
1879             if (payload_ == null) {
1880               payload_ = new global::Grpc.Testing.Payload();
1881             }
1882             input.ReadMessage(payload_);
1883             break;
1884           }
1885           case 58: {
1886             if (responseStatus_ == null) {
1887               responseStatus_ = new global::Grpc.Testing.EchoStatus();
1888             }
1889             input.ReadMessage(responseStatus_);
1890             break;
1891           }
1892         }
1893       }
1894     }
1895 
1896   }
1897 
1898   /// <summary>
1899   /// Server-streaming response, as configured by the request and parameters.
1900   /// </summary>
1901   public sealed partial class StreamingOutputCallResponse : pb::IMessage<StreamingOutputCallResponse> {
1902     private static readonly pb::MessageParser<StreamingOutputCallResponse> _parser = new pb::MessageParser<StreamingOutputCallResponse>(() => new StreamingOutputCallResponse());
1903     private pb::UnknownFieldSet _unknownFields;
1904     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1905     public static pb::MessageParser<StreamingOutputCallResponse> Parser { get { return _parser; } }
1906 
1907     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1908     public static pbr::MessageDescriptor Descriptor {
1909       get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[9]; }
1910     }
1911 
1912     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1913     pbr::MessageDescriptor pb::IMessage.Descriptor {
1914       get { return Descriptor; }
1915     }
1916 
1917     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
StreamingOutputCallResponse()1918     public StreamingOutputCallResponse() {
1919       OnConstruction();
1920     }
1921 
OnConstruction()1922     partial void OnConstruction();
1923 
1924     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
StreamingOutputCallResponse(StreamingOutputCallResponse other)1925     public StreamingOutputCallResponse(StreamingOutputCallResponse other) : this() {
1926       payload_ = other.payload_ != null ? other.payload_.Clone() : null;
1927       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1928     }
1929 
1930     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()1931     public StreamingOutputCallResponse Clone() {
1932       return new StreamingOutputCallResponse(this);
1933     }
1934 
1935     /// <summary>Field number for the "payload" field.</summary>
1936     public const int PayloadFieldNumber = 1;
1937     private global::Grpc.Testing.Payload payload_;
1938     /// <summary>
1939     /// Payload to increase response size.
1940     /// </summary>
1941     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1942     public global::Grpc.Testing.Payload Payload {
1943       get { return payload_; }
1944       set {
1945         payload_ = value;
1946       }
1947     }
1948 
1949     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)1950     public override bool Equals(object other) {
1951       return Equals(other as StreamingOutputCallResponse);
1952     }
1953 
1954     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(StreamingOutputCallResponse other)1955     public bool Equals(StreamingOutputCallResponse other) {
1956       if (ReferenceEquals(other, null)) {
1957         return false;
1958       }
1959       if (ReferenceEquals(other, this)) {
1960         return true;
1961       }
1962       if (!object.Equals(Payload, other.Payload)) return false;
1963       return Equals(_unknownFields, other._unknownFields);
1964     }
1965 
1966     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()1967     public override int GetHashCode() {
1968       int hash = 1;
1969       if (payload_ != null) hash ^= Payload.GetHashCode();
1970       if (_unknownFields != null) {
1971         hash ^= _unknownFields.GetHashCode();
1972       }
1973       return hash;
1974     }
1975 
1976     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()1977     public override string ToString() {
1978       return pb::JsonFormatter.ToDiagnosticString(this);
1979     }
1980 
1981     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)1982     public void WriteTo(pb::CodedOutputStream output) {
1983       if (payload_ != null) {
1984         output.WriteRawTag(10);
1985         output.WriteMessage(Payload);
1986       }
1987       if (_unknownFields != null) {
1988         _unknownFields.WriteTo(output);
1989       }
1990     }
1991 
1992     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()1993     public int CalculateSize() {
1994       int size = 0;
1995       if (payload_ != null) {
1996         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload);
1997       }
1998       if (_unknownFields != null) {
1999         size += _unknownFields.CalculateSize();
2000       }
2001       return size;
2002     }
2003 
2004     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(StreamingOutputCallResponse other)2005     public void MergeFrom(StreamingOutputCallResponse other) {
2006       if (other == null) {
2007         return;
2008       }
2009       if (other.payload_ != null) {
2010         if (payload_ == null) {
2011           payload_ = new global::Grpc.Testing.Payload();
2012         }
2013         Payload.MergeFrom(other.Payload);
2014       }
2015       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2016     }
2017 
2018     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)2019     public void MergeFrom(pb::CodedInputStream input) {
2020       uint tag;
2021       while ((tag = input.ReadTag()) != 0) {
2022         switch(tag) {
2023           default:
2024             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2025             break;
2026           case 10: {
2027             if (payload_ == null) {
2028               payload_ = new global::Grpc.Testing.Payload();
2029             }
2030             input.ReadMessage(payload_);
2031             break;
2032           }
2033         }
2034       }
2035     }
2036 
2037   }
2038 
2039   /// <summary>
2040   /// For reconnect interop test only.
2041   /// Client tells server what reconnection parameters it used.
2042   /// </summary>
2043   public sealed partial class ReconnectParams : pb::IMessage<ReconnectParams> {
2044     private static readonly pb::MessageParser<ReconnectParams> _parser = new pb::MessageParser<ReconnectParams>(() => new ReconnectParams());
2045     private pb::UnknownFieldSet _unknownFields;
2046     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2047     public static pb::MessageParser<ReconnectParams> Parser { get { return _parser; } }
2048 
2049     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2050     public static pbr::MessageDescriptor Descriptor {
2051       get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[10]; }
2052     }
2053 
2054     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2055     pbr::MessageDescriptor pb::IMessage.Descriptor {
2056       get { return Descriptor; }
2057     }
2058 
2059     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ReconnectParams()2060     public ReconnectParams() {
2061       OnConstruction();
2062     }
2063 
OnConstruction()2064     partial void OnConstruction();
2065 
2066     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ReconnectParams(ReconnectParams other)2067     public ReconnectParams(ReconnectParams other) : this() {
2068       maxReconnectBackoffMs_ = other.maxReconnectBackoffMs_;
2069       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2070     }
2071 
2072     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()2073     public ReconnectParams Clone() {
2074       return new ReconnectParams(this);
2075     }
2076 
2077     /// <summary>Field number for the "max_reconnect_backoff_ms" field.</summary>
2078     public const int MaxReconnectBackoffMsFieldNumber = 1;
2079     private int maxReconnectBackoffMs_;
2080     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2081     public int MaxReconnectBackoffMs {
2082       get { return maxReconnectBackoffMs_; }
2083       set {
2084         maxReconnectBackoffMs_ = value;
2085       }
2086     }
2087 
2088     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)2089     public override bool Equals(object other) {
2090       return Equals(other as ReconnectParams);
2091     }
2092 
2093     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(ReconnectParams other)2094     public bool Equals(ReconnectParams other) {
2095       if (ReferenceEquals(other, null)) {
2096         return false;
2097       }
2098       if (ReferenceEquals(other, this)) {
2099         return true;
2100       }
2101       if (MaxReconnectBackoffMs != other.MaxReconnectBackoffMs) return false;
2102       return Equals(_unknownFields, other._unknownFields);
2103     }
2104 
2105     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()2106     public override int GetHashCode() {
2107       int hash = 1;
2108       if (MaxReconnectBackoffMs != 0) hash ^= MaxReconnectBackoffMs.GetHashCode();
2109       if (_unknownFields != null) {
2110         hash ^= _unknownFields.GetHashCode();
2111       }
2112       return hash;
2113     }
2114 
2115     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()2116     public override string ToString() {
2117       return pb::JsonFormatter.ToDiagnosticString(this);
2118     }
2119 
2120     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)2121     public void WriteTo(pb::CodedOutputStream output) {
2122       if (MaxReconnectBackoffMs != 0) {
2123         output.WriteRawTag(8);
2124         output.WriteInt32(MaxReconnectBackoffMs);
2125       }
2126       if (_unknownFields != null) {
2127         _unknownFields.WriteTo(output);
2128       }
2129     }
2130 
2131     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()2132     public int CalculateSize() {
2133       int size = 0;
2134       if (MaxReconnectBackoffMs != 0) {
2135         size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxReconnectBackoffMs);
2136       }
2137       if (_unknownFields != null) {
2138         size += _unknownFields.CalculateSize();
2139       }
2140       return size;
2141     }
2142 
2143     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(ReconnectParams other)2144     public void MergeFrom(ReconnectParams other) {
2145       if (other == null) {
2146         return;
2147       }
2148       if (other.MaxReconnectBackoffMs != 0) {
2149         MaxReconnectBackoffMs = other.MaxReconnectBackoffMs;
2150       }
2151       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2152     }
2153 
2154     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)2155     public void MergeFrom(pb::CodedInputStream input) {
2156       uint tag;
2157       while ((tag = input.ReadTag()) != 0) {
2158         switch(tag) {
2159           default:
2160             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2161             break;
2162           case 8: {
2163             MaxReconnectBackoffMs = input.ReadInt32();
2164             break;
2165           }
2166         }
2167       }
2168     }
2169 
2170   }
2171 
2172   /// <summary>
2173   /// For reconnect interop test only.
2174   /// Server tells client whether its reconnects are following the spec and the
2175   /// reconnect backoffs it saw.
2176   /// </summary>
2177   public sealed partial class ReconnectInfo : pb::IMessage<ReconnectInfo> {
2178     private static readonly pb::MessageParser<ReconnectInfo> _parser = new pb::MessageParser<ReconnectInfo>(() => new ReconnectInfo());
2179     private pb::UnknownFieldSet _unknownFields;
2180     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2181     public static pb::MessageParser<ReconnectInfo> Parser { get { return _parser; } }
2182 
2183     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2184     public static pbr::MessageDescriptor Descriptor {
2185       get { return global::Grpc.Testing.MessagesReflection.Descriptor.MessageTypes[11]; }
2186     }
2187 
2188     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2189     pbr::MessageDescriptor pb::IMessage.Descriptor {
2190       get { return Descriptor; }
2191     }
2192 
2193     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ReconnectInfo()2194     public ReconnectInfo() {
2195       OnConstruction();
2196     }
2197 
OnConstruction()2198     partial void OnConstruction();
2199 
2200     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ReconnectInfo(ReconnectInfo other)2201     public ReconnectInfo(ReconnectInfo other) : this() {
2202       passed_ = other.passed_;
2203       backoffMs_ = other.backoffMs_.Clone();
2204       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2205     }
2206 
2207     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()2208     public ReconnectInfo Clone() {
2209       return new ReconnectInfo(this);
2210     }
2211 
2212     /// <summary>Field number for the "passed" field.</summary>
2213     public const int PassedFieldNumber = 1;
2214     private bool passed_;
2215     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2216     public bool Passed {
2217       get { return passed_; }
2218       set {
2219         passed_ = value;
2220       }
2221     }
2222 
2223     /// <summary>Field number for the "backoff_ms" field.</summary>
2224     public const int BackoffMsFieldNumber = 2;
2225     private static readonly pb::FieldCodec<int> _repeated_backoffMs_codec
2226         = pb::FieldCodec.ForInt32(18);
2227     private readonly pbc::RepeatedField<int> backoffMs_ = new pbc::RepeatedField<int>();
2228     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2229     public pbc::RepeatedField<int> BackoffMs {
2230       get { return backoffMs_; }
2231     }
2232 
2233     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)2234     public override bool Equals(object other) {
2235       return Equals(other as ReconnectInfo);
2236     }
2237 
2238     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(ReconnectInfo other)2239     public bool Equals(ReconnectInfo other) {
2240       if (ReferenceEquals(other, null)) {
2241         return false;
2242       }
2243       if (ReferenceEquals(other, this)) {
2244         return true;
2245       }
2246       if (Passed != other.Passed) return false;
2247       if(!backoffMs_.Equals(other.backoffMs_)) return false;
2248       return Equals(_unknownFields, other._unknownFields);
2249     }
2250 
2251     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()2252     public override int GetHashCode() {
2253       int hash = 1;
2254       if (Passed != false) hash ^= Passed.GetHashCode();
2255       hash ^= backoffMs_.GetHashCode();
2256       if (_unknownFields != null) {
2257         hash ^= _unknownFields.GetHashCode();
2258       }
2259       return hash;
2260     }
2261 
2262     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()2263     public override string ToString() {
2264       return pb::JsonFormatter.ToDiagnosticString(this);
2265     }
2266 
2267     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)2268     public void WriteTo(pb::CodedOutputStream output) {
2269       if (Passed != false) {
2270         output.WriteRawTag(8);
2271         output.WriteBool(Passed);
2272       }
2273       backoffMs_.WriteTo(output, _repeated_backoffMs_codec);
2274       if (_unknownFields != null) {
2275         _unknownFields.WriteTo(output);
2276       }
2277     }
2278 
2279     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()2280     public int CalculateSize() {
2281       int size = 0;
2282       if (Passed != false) {
2283         size += 1 + 1;
2284       }
2285       size += backoffMs_.CalculateSize(_repeated_backoffMs_codec);
2286       if (_unknownFields != null) {
2287         size += _unknownFields.CalculateSize();
2288       }
2289       return size;
2290     }
2291 
2292     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(ReconnectInfo other)2293     public void MergeFrom(ReconnectInfo other) {
2294       if (other == null) {
2295         return;
2296       }
2297       if (other.Passed != false) {
2298         Passed = other.Passed;
2299       }
2300       backoffMs_.Add(other.backoffMs_);
2301       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2302     }
2303 
2304     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)2305     public void MergeFrom(pb::CodedInputStream input) {
2306       uint tag;
2307       while ((tag = input.ReadTag()) != 0) {
2308         switch(tag) {
2309           default:
2310             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2311             break;
2312           case 8: {
2313             Passed = input.ReadBool();
2314             break;
2315           }
2316           case 18:
2317           case 16: {
2318             backoffMs_.AddEntriesFrom(input, _repeated_backoffMs_codec);
2319             break;
2320           }
2321         }
2322       }
2323     }
2324 
2325   }
2326 
2327   #endregion
2328 
2329 }
2330 
2331 #endregion Designer generated code
2332