• 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/payloads.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/payloads.proto</summary>
15   public static partial class PayloadsReflection {
16 
17     #region Descriptor
18     /// <summary>File descriptor for src/proto/grpc/testing/payloads.proto</summary>
19     public static pbr::FileDescriptor Descriptor {
20       get { return descriptor; }
21     }
22     private static pbr::FileDescriptor descriptor;
23 
PayloadsReflection()24     static PayloadsReflection() {
25       byte[] descriptorData = global::System.Convert.FromBase64String(
26           string.Concat(
27             "CiVzcmMvcHJvdG8vZ3JwYy90ZXN0aW5nL3BheWxvYWRzLnByb3RvEgxncnBj",
28             "LnRlc3RpbmciNwoQQnl0ZUJ1ZmZlclBhcmFtcxIQCghyZXFfc2l6ZRgBIAEo",
29             "BRIRCglyZXNwX3NpemUYAiABKAUiOAoRU2ltcGxlUHJvdG9QYXJhbXMSEAoI",
30             "cmVxX3NpemUYASABKAUSEQoJcmVzcF9zaXplGAIgASgFIhQKEkNvbXBsZXhQ",
31             "cm90b1BhcmFtcyLKAQoNUGF5bG9hZENvbmZpZxI4Cg5ieXRlYnVmX3BhcmFt",
32             "cxgBIAEoCzIeLmdycGMudGVzdGluZy5CeXRlQnVmZmVyUGFyYW1zSAASOAoN",
33             "c2ltcGxlX3BhcmFtcxgCIAEoCzIfLmdycGMudGVzdGluZy5TaW1wbGVQcm90",
34             "b1BhcmFtc0gAEjoKDmNvbXBsZXhfcGFyYW1zGAMgASgLMiAuZ3JwYy50ZXN0",
35             "aW5nLkNvbXBsZXhQcm90b1BhcmFtc0gAQgkKB3BheWxvYWRiBnByb3RvMw=="));
36       descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
37           new pbr::FileDescriptor[] { },
38           new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
39             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ByteBufferParams), global::Grpc.Testing.ByteBufferParams.Parser, new[]{ "ReqSize", "RespSize" }, null, null, null, null),
40             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.SimpleProtoParams), global::Grpc.Testing.SimpleProtoParams.Parser, new[]{ "ReqSize", "RespSize" }, null, null, null, null),
41             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ComplexProtoParams), global::Grpc.Testing.ComplexProtoParams.Parser, null, null, null, null, null),
42             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.PayloadConfig), global::Grpc.Testing.PayloadConfig.Parser, new[]{ "BytebufParams", "SimpleParams", "ComplexParams" }, new[]{ "Payload" }, null, null, null)
43           }));
44     }
45     #endregion
46 
47   }
48   #region Messages
49   public sealed partial class ByteBufferParams : pb::IMessage<ByteBufferParams>
50   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
51       , pb::IBufferMessage
52   #endif
53   {
54     private static readonly pb::MessageParser<ByteBufferParams> _parser = new pb::MessageParser<ByteBufferParams>(() => new ByteBufferParams());
55     private pb::UnknownFieldSet _unknownFields;
56     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
57     public static pb::MessageParser<ByteBufferParams> Parser { get { return _parser; } }
58 
59     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
60     public static pbr::MessageDescriptor Descriptor {
61       get { return global::Grpc.Testing.PayloadsReflection.Descriptor.MessageTypes[0]; }
62     }
63 
64     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
65     pbr::MessageDescriptor pb::IMessage.Descriptor {
66       get { return Descriptor; }
67     }
68 
69     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ByteBufferParams()70     public ByteBufferParams() {
71       OnConstruction();
72     }
73 
OnConstruction()74     partial void OnConstruction();
75 
76     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ByteBufferParams(ByteBufferParams other)77     public ByteBufferParams(ByteBufferParams other) : this() {
78       reqSize_ = other.reqSize_;
79       respSize_ = other.respSize_;
80       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
81     }
82 
83     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()84     public ByteBufferParams Clone() {
85       return new ByteBufferParams(this);
86     }
87 
88     /// <summary>Field number for the "req_size" field.</summary>
89     public const int ReqSizeFieldNumber = 1;
90     private int reqSize_;
91     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
92     public int ReqSize {
93       get { return reqSize_; }
94       set {
95         reqSize_ = value;
96       }
97     }
98 
99     /// <summary>Field number for the "resp_size" field.</summary>
100     public const int RespSizeFieldNumber = 2;
101     private int respSize_;
102     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
103     public int RespSize {
104       get { return respSize_; }
105       set {
106         respSize_ = value;
107       }
108     }
109 
110     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)111     public override bool Equals(object other) {
112       return Equals(other as ByteBufferParams);
113     }
114 
115     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(ByteBufferParams other)116     public bool Equals(ByteBufferParams other) {
117       if (ReferenceEquals(other, null)) {
118         return false;
119       }
120       if (ReferenceEquals(other, this)) {
121         return true;
122       }
123       if (ReqSize != other.ReqSize) return false;
124       if (RespSize != other.RespSize) return false;
125       return Equals(_unknownFields, other._unknownFields);
126     }
127 
128     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()129     public override int GetHashCode() {
130       int hash = 1;
131       if (ReqSize != 0) hash ^= ReqSize.GetHashCode();
132       if (RespSize != 0) hash ^= RespSize.GetHashCode();
133       if (_unknownFields != null) {
134         hash ^= _unknownFields.GetHashCode();
135       }
136       return hash;
137     }
138 
139     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()140     public override string ToString() {
141       return pb::JsonFormatter.ToDiagnosticString(this);
142     }
143 
144     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)145     public void WriteTo(pb::CodedOutputStream output) {
146     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
147       output.WriteRawMessage(this);
148     #else
149       if (ReqSize != 0) {
150         output.WriteRawTag(8);
151         output.WriteInt32(ReqSize);
152       }
153       if (RespSize != 0) {
154         output.WriteRawTag(16);
155         output.WriteInt32(RespSize);
156       }
157       if (_unknownFields != null) {
158         _unknownFields.WriteTo(output);
159       }
160     #endif
161     }
162 
163     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
164     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)165     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
166       if (ReqSize != 0) {
167         output.WriteRawTag(8);
168         output.WriteInt32(ReqSize);
169       }
170       if (RespSize != 0) {
171         output.WriteRawTag(16);
172         output.WriteInt32(RespSize);
173       }
174       if (_unknownFields != null) {
175         _unknownFields.WriteTo(ref output);
176       }
177     }
178     #endif
179 
180     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()181     public int CalculateSize() {
182       int size = 0;
183       if (ReqSize != 0) {
184         size += 1 + pb::CodedOutputStream.ComputeInt32Size(ReqSize);
185       }
186       if (RespSize != 0) {
187         size += 1 + pb::CodedOutputStream.ComputeInt32Size(RespSize);
188       }
189       if (_unknownFields != null) {
190         size += _unknownFields.CalculateSize();
191       }
192       return size;
193     }
194 
195     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(ByteBufferParams other)196     public void MergeFrom(ByteBufferParams other) {
197       if (other == null) {
198         return;
199       }
200       if (other.ReqSize != 0) {
201         ReqSize = other.ReqSize;
202       }
203       if (other.RespSize != 0) {
204         RespSize = other.RespSize;
205       }
206       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
207     }
208 
209     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)210     public void MergeFrom(pb::CodedInputStream input) {
211     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
212       input.ReadRawMessage(this);
213     #else
214       uint tag;
215       while ((tag = input.ReadTag()) != 0) {
216         switch(tag) {
217           default:
218             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
219             break;
220           case 8: {
221             ReqSize = input.ReadInt32();
222             break;
223           }
224           case 16: {
225             RespSize = input.ReadInt32();
226             break;
227           }
228         }
229       }
230     #endif
231     }
232 
233     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
234     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)235     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
236       uint tag;
237       while ((tag = input.ReadTag()) != 0) {
238         switch(tag) {
239           default:
240             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
241             break;
242           case 8: {
243             ReqSize = input.ReadInt32();
244             break;
245           }
246           case 16: {
247             RespSize = input.ReadInt32();
248             break;
249           }
250         }
251       }
252     }
253     #endif
254 
255   }
256 
257   public sealed partial class SimpleProtoParams : pb::IMessage<SimpleProtoParams>
258   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
259       , pb::IBufferMessage
260   #endif
261   {
262     private static readonly pb::MessageParser<SimpleProtoParams> _parser = new pb::MessageParser<SimpleProtoParams>(() => new SimpleProtoParams());
263     private pb::UnknownFieldSet _unknownFields;
264     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
265     public static pb::MessageParser<SimpleProtoParams> Parser { get { return _parser; } }
266 
267     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
268     public static pbr::MessageDescriptor Descriptor {
269       get { return global::Grpc.Testing.PayloadsReflection.Descriptor.MessageTypes[1]; }
270     }
271 
272     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
273     pbr::MessageDescriptor pb::IMessage.Descriptor {
274       get { return Descriptor; }
275     }
276 
277     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
SimpleProtoParams()278     public SimpleProtoParams() {
279       OnConstruction();
280     }
281 
OnConstruction()282     partial void OnConstruction();
283 
284     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
SimpleProtoParams(SimpleProtoParams other)285     public SimpleProtoParams(SimpleProtoParams other) : this() {
286       reqSize_ = other.reqSize_;
287       respSize_ = other.respSize_;
288       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
289     }
290 
291     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()292     public SimpleProtoParams Clone() {
293       return new SimpleProtoParams(this);
294     }
295 
296     /// <summary>Field number for the "req_size" field.</summary>
297     public const int ReqSizeFieldNumber = 1;
298     private int reqSize_;
299     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
300     public int ReqSize {
301       get { return reqSize_; }
302       set {
303         reqSize_ = value;
304       }
305     }
306 
307     /// <summary>Field number for the "resp_size" field.</summary>
308     public const int RespSizeFieldNumber = 2;
309     private int respSize_;
310     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
311     public int RespSize {
312       get { return respSize_; }
313       set {
314         respSize_ = value;
315       }
316     }
317 
318     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)319     public override bool Equals(object other) {
320       return Equals(other as SimpleProtoParams);
321     }
322 
323     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(SimpleProtoParams other)324     public bool Equals(SimpleProtoParams other) {
325       if (ReferenceEquals(other, null)) {
326         return false;
327       }
328       if (ReferenceEquals(other, this)) {
329         return true;
330       }
331       if (ReqSize != other.ReqSize) return false;
332       if (RespSize != other.RespSize) return false;
333       return Equals(_unknownFields, other._unknownFields);
334     }
335 
336     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()337     public override int GetHashCode() {
338       int hash = 1;
339       if (ReqSize != 0) hash ^= ReqSize.GetHashCode();
340       if (RespSize != 0) hash ^= RespSize.GetHashCode();
341       if (_unknownFields != null) {
342         hash ^= _unknownFields.GetHashCode();
343       }
344       return hash;
345     }
346 
347     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()348     public override string ToString() {
349       return pb::JsonFormatter.ToDiagnosticString(this);
350     }
351 
352     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)353     public void WriteTo(pb::CodedOutputStream output) {
354     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
355       output.WriteRawMessage(this);
356     #else
357       if (ReqSize != 0) {
358         output.WriteRawTag(8);
359         output.WriteInt32(ReqSize);
360       }
361       if (RespSize != 0) {
362         output.WriteRawTag(16);
363         output.WriteInt32(RespSize);
364       }
365       if (_unknownFields != null) {
366         _unknownFields.WriteTo(output);
367       }
368     #endif
369     }
370 
371     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
372     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)373     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
374       if (ReqSize != 0) {
375         output.WriteRawTag(8);
376         output.WriteInt32(ReqSize);
377       }
378       if (RespSize != 0) {
379         output.WriteRawTag(16);
380         output.WriteInt32(RespSize);
381       }
382       if (_unknownFields != null) {
383         _unknownFields.WriteTo(ref output);
384       }
385     }
386     #endif
387 
388     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()389     public int CalculateSize() {
390       int size = 0;
391       if (ReqSize != 0) {
392         size += 1 + pb::CodedOutputStream.ComputeInt32Size(ReqSize);
393       }
394       if (RespSize != 0) {
395         size += 1 + pb::CodedOutputStream.ComputeInt32Size(RespSize);
396       }
397       if (_unknownFields != null) {
398         size += _unknownFields.CalculateSize();
399       }
400       return size;
401     }
402 
403     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(SimpleProtoParams other)404     public void MergeFrom(SimpleProtoParams other) {
405       if (other == null) {
406         return;
407       }
408       if (other.ReqSize != 0) {
409         ReqSize = other.ReqSize;
410       }
411       if (other.RespSize != 0) {
412         RespSize = other.RespSize;
413       }
414       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
415     }
416 
417     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)418     public void MergeFrom(pb::CodedInputStream input) {
419     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
420       input.ReadRawMessage(this);
421     #else
422       uint tag;
423       while ((tag = input.ReadTag()) != 0) {
424         switch(tag) {
425           default:
426             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
427             break;
428           case 8: {
429             ReqSize = input.ReadInt32();
430             break;
431           }
432           case 16: {
433             RespSize = input.ReadInt32();
434             break;
435           }
436         }
437       }
438     #endif
439     }
440 
441     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
442     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)443     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
444       uint tag;
445       while ((tag = input.ReadTag()) != 0) {
446         switch(tag) {
447           default:
448             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
449             break;
450           case 8: {
451             ReqSize = input.ReadInt32();
452             break;
453           }
454           case 16: {
455             RespSize = input.ReadInt32();
456             break;
457           }
458         }
459       }
460     }
461     #endif
462 
463   }
464 
465   /// <summary>
466   /// TODO (vpai): Fill this in once the details of complex, representative
467   ///              protos are decided
468   /// </summary>
469   public sealed partial class ComplexProtoParams : pb::IMessage<ComplexProtoParams>
470   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
471       , pb::IBufferMessage
472   #endif
473   {
474     private static readonly pb::MessageParser<ComplexProtoParams> _parser = new pb::MessageParser<ComplexProtoParams>(() => new ComplexProtoParams());
475     private pb::UnknownFieldSet _unknownFields;
476     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
477     public static pb::MessageParser<ComplexProtoParams> Parser { get { return _parser; } }
478 
479     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
480     public static pbr::MessageDescriptor Descriptor {
481       get { return global::Grpc.Testing.PayloadsReflection.Descriptor.MessageTypes[2]; }
482     }
483 
484     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
485     pbr::MessageDescriptor pb::IMessage.Descriptor {
486       get { return Descriptor; }
487     }
488 
489     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ComplexProtoParams()490     public ComplexProtoParams() {
491       OnConstruction();
492     }
493 
OnConstruction()494     partial void OnConstruction();
495 
496     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ComplexProtoParams(ComplexProtoParams other)497     public ComplexProtoParams(ComplexProtoParams other) : this() {
498       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
499     }
500 
501     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()502     public ComplexProtoParams Clone() {
503       return new ComplexProtoParams(this);
504     }
505 
506     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)507     public override bool Equals(object other) {
508       return Equals(other as ComplexProtoParams);
509     }
510 
511     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(ComplexProtoParams other)512     public bool Equals(ComplexProtoParams other) {
513       if (ReferenceEquals(other, null)) {
514         return false;
515       }
516       if (ReferenceEquals(other, this)) {
517         return true;
518       }
519       return Equals(_unknownFields, other._unknownFields);
520     }
521 
522     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()523     public override int GetHashCode() {
524       int hash = 1;
525       if (_unknownFields != null) {
526         hash ^= _unknownFields.GetHashCode();
527       }
528       return hash;
529     }
530 
531     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()532     public override string ToString() {
533       return pb::JsonFormatter.ToDiagnosticString(this);
534     }
535 
536     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)537     public void WriteTo(pb::CodedOutputStream output) {
538     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
539       output.WriteRawMessage(this);
540     #else
541       if (_unknownFields != null) {
542         _unknownFields.WriteTo(output);
543       }
544     #endif
545     }
546 
547     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
548     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)549     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
550       if (_unknownFields != null) {
551         _unknownFields.WriteTo(ref output);
552       }
553     }
554     #endif
555 
556     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()557     public int CalculateSize() {
558       int size = 0;
559       if (_unknownFields != null) {
560         size += _unknownFields.CalculateSize();
561       }
562       return size;
563     }
564 
565     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(ComplexProtoParams other)566     public void MergeFrom(ComplexProtoParams other) {
567       if (other == null) {
568         return;
569       }
570       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
571     }
572 
573     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)574     public void MergeFrom(pb::CodedInputStream input) {
575     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
576       input.ReadRawMessage(this);
577     #else
578       uint tag;
579       while ((tag = input.ReadTag()) != 0) {
580         switch(tag) {
581           default:
582             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
583             break;
584         }
585       }
586     #endif
587     }
588 
589     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
590     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)591     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
592       uint tag;
593       while ((tag = input.ReadTag()) != 0) {
594         switch(tag) {
595           default:
596             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
597             break;
598         }
599       }
600     }
601     #endif
602 
603   }
604 
605   public sealed partial class PayloadConfig : pb::IMessage<PayloadConfig>
606   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
607       , pb::IBufferMessage
608   #endif
609   {
610     private static readonly pb::MessageParser<PayloadConfig> _parser = new pb::MessageParser<PayloadConfig>(() => new PayloadConfig());
611     private pb::UnknownFieldSet _unknownFields;
612     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
613     public static pb::MessageParser<PayloadConfig> Parser { get { return _parser; } }
614 
615     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
616     public static pbr::MessageDescriptor Descriptor {
617       get { return global::Grpc.Testing.PayloadsReflection.Descriptor.MessageTypes[3]; }
618     }
619 
620     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
621     pbr::MessageDescriptor pb::IMessage.Descriptor {
622       get { return Descriptor; }
623     }
624 
625     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
PayloadConfig()626     public PayloadConfig() {
627       OnConstruction();
628     }
629 
OnConstruction()630     partial void OnConstruction();
631 
632     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
PayloadConfig(PayloadConfig other)633     public PayloadConfig(PayloadConfig other) : this() {
634       switch (other.PayloadCase) {
635         case PayloadOneofCase.BytebufParams:
636           BytebufParams = other.BytebufParams.Clone();
637           break;
638         case PayloadOneofCase.SimpleParams:
639           SimpleParams = other.SimpleParams.Clone();
640           break;
641         case PayloadOneofCase.ComplexParams:
642           ComplexParams = other.ComplexParams.Clone();
643           break;
644       }
645 
646       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
647     }
648 
649     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()650     public PayloadConfig Clone() {
651       return new PayloadConfig(this);
652     }
653 
654     /// <summary>Field number for the "bytebuf_params" field.</summary>
655     public const int BytebufParamsFieldNumber = 1;
656     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
657     public global::Grpc.Testing.ByteBufferParams BytebufParams {
658       get { return payloadCase_ == PayloadOneofCase.BytebufParams ? (global::Grpc.Testing.ByteBufferParams) payload_ : null; }
659       set {
660         payload_ = value;
661         payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.BytebufParams;
662       }
663     }
664 
665     /// <summary>Field number for the "simple_params" field.</summary>
666     public const int SimpleParamsFieldNumber = 2;
667     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
668     public global::Grpc.Testing.SimpleProtoParams SimpleParams {
669       get { return payloadCase_ == PayloadOneofCase.SimpleParams ? (global::Grpc.Testing.SimpleProtoParams) payload_ : null; }
670       set {
671         payload_ = value;
672         payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.SimpleParams;
673       }
674     }
675 
676     /// <summary>Field number for the "complex_params" field.</summary>
677     public const int ComplexParamsFieldNumber = 3;
678     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
679     public global::Grpc.Testing.ComplexProtoParams ComplexParams {
680       get { return payloadCase_ == PayloadOneofCase.ComplexParams ? (global::Grpc.Testing.ComplexProtoParams) payload_ : null; }
681       set {
682         payload_ = value;
683         payloadCase_ = value == null ? PayloadOneofCase.None : PayloadOneofCase.ComplexParams;
684       }
685     }
686 
687     private object payload_;
688     /// <summary>Enum of possible cases for the "payload" oneof.</summary>
689     public enum PayloadOneofCase {
690       None = 0,
691       BytebufParams = 1,
692       SimpleParams = 2,
693       ComplexParams = 3,
694     }
695     private PayloadOneofCase payloadCase_ = PayloadOneofCase.None;
696     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
697     public PayloadOneofCase PayloadCase {
698       get { return payloadCase_; }
699     }
700 
701     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearPayload()702     public void ClearPayload() {
703       payloadCase_ = PayloadOneofCase.None;
704       payload_ = null;
705     }
706 
707     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)708     public override bool Equals(object other) {
709       return Equals(other as PayloadConfig);
710     }
711 
712     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(PayloadConfig other)713     public bool Equals(PayloadConfig other) {
714       if (ReferenceEquals(other, null)) {
715         return false;
716       }
717       if (ReferenceEquals(other, this)) {
718         return true;
719       }
720       if (!object.Equals(BytebufParams, other.BytebufParams)) return false;
721       if (!object.Equals(SimpleParams, other.SimpleParams)) return false;
722       if (!object.Equals(ComplexParams, other.ComplexParams)) return false;
723       if (PayloadCase != other.PayloadCase) return false;
724       return Equals(_unknownFields, other._unknownFields);
725     }
726 
727     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()728     public override int GetHashCode() {
729       int hash = 1;
730       if (payloadCase_ == PayloadOneofCase.BytebufParams) hash ^= BytebufParams.GetHashCode();
731       if (payloadCase_ == PayloadOneofCase.SimpleParams) hash ^= SimpleParams.GetHashCode();
732       if (payloadCase_ == PayloadOneofCase.ComplexParams) hash ^= ComplexParams.GetHashCode();
733       hash ^= (int) payloadCase_;
734       if (_unknownFields != null) {
735         hash ^= _unknownFields.GetHashCode();
736       }
737       return hash;
738     }
739 
740     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()741     public override string ToString() {
742       return pb::JsonFormatter.ToDiagnosticString(this);
743     }
744 
745     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)746     public void WriteTo(pb::CodedOutputStream output) {
747     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
748       output.WriteRawMessage(this);
749     #else
750       if (payloadCase_ == PayloadOneofCase.BytebufParams) {
751         output.WriteRawTag(10);
752         output.WriteMessage(BytebufParams);
753       }
754       if (payloadCase_ == PayloadOneofCase.SimpleParams) {
755         output.WriteRawTag(18);
756         output.WriteMessage(SimpleParams);
757       }
758       if (payloadCase_ == PayloadOneofCase.ComplexParams) {
759         output.WriteRawTag(26);
760         output.WriteMessage(ComplexParams);
761       }
762       if (_unknownFields != null) {
763         _unknownFields.WriteTo(output);
764       }
765     #endif
766     }
767 
768     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
769     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)770     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
771       if (payloadCase_ == PayloadOneofCase.BytebufParams) {
772         output.WriteRawTag(10);
773         output.WriteMessage(BytebufParams);
774       }
775       if (payloadCase_ == PayloadOneofCase.SimpleParams) {
776         output.WriteRawTag(18);
777         output.WriteMessage(SimpleParams);
778       }
779       if (payloadCase_ == PayloadOneofCase.ComplexParams) {
780         output.WriteRawTag(26);
781         output.WriteMessage(ComplexParams);
782       }
783       if (_unknownFields != null) {
784         _unknownFields.WriteTo(ref output);
785       }
786     }
787     #endif
788 
789     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()790     public int CalculateSize() {
791       int size = 0;
792       if (payloadCase_ == PayloadOneofCase.BytebufParams) {
793         size += 1 + pb::CodedOutputStream.ComputeMessageSize(BytebufParams);
794       }
795       if (payloadCase_ == PayloadOneofCase.SimpleParams) {
796         size += 1 + pb::CodedOutputStream.ComputeMessageSize(SimpleParams);
797       }
798       if (payloadCase_ == PayloadOneofCase.ComplexParams) {
799         size += 1 + pb::CodedOutputStream.ComputeMessageSize(ComplexParams);
800       }
801       if (_unknownFields != null) {
802         size += _unknownFields.CalculateSize();
803       }
804       return size;
805     }
806 
807     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(PayloadConfig other)808     public void MergeFrom(PayloadConfig other) {
809       if (other == null) {
810         return;
811       }
812       switch (other.PayloadCase) {
813         case PayloadOneofCase.BytebufParams:
814           if (BytebufParams == null) {
815             BytebufParams = new global::Grpc.Testing.ByteBufferParams();
816           }
817           BytebufParams.MergeFrom(other.BytebufParams);
818           break;
819         case PayloadOneofCase.SimpleParams:
820           if (SimpleParams == null) {
821             SimpleParams = new global::Grpc.Testing.SimpleProtoParams();
822           }
823           SimpleParams.MergeFrom(other.SimpleParams);
824           break;
825         case PayloadOneofCase.ComplexParams:
826           if (ComplexParams == null) {
827             ComplexParams = new global::Grpc.Testing.ComplexProtoParams();
828           }
829           ComplexParams.MergeFrom(other.ComplexParams);
830           break;
831       }
832 
833       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
834     }
835 
836     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)837     public void MergeFrom(pb::CodedInputStream input) {
838     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
839       input.ReadRawMessage(this);
840     #else
841       uint tag;
842       while ((tag = input.ReadTag()) != 0) {
843         switch(tag) {
844           default:
845             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
846             break;
847           case 10: {
848             global::Grpc.Testing.ByteBufferParams subBuilder = new global::Grpc.Testing.ByteBufferParams();
849             if (payloadCase_ == PayloadOneofCase.BytebufParams) {
850               subBuilder.MergeFrom(BytebufParams);
851             }
852             input.ReadMessage(subBuilder);
853             BytebufParams = subBuilder;
854             break;
855           }
856           case 18: {
857             global::Grpc.Testing.SimpleProtoParams subBuilder = new global::Grpc.Testing.SimpleProtoParams();
858             if (payloadCase_ == PayloadOneofCase.SimpleParams) {
859               subBuilder.MergeFrom(SimpleParams);
860             }
861             input.ReadMessage(subBuilder);
862             SimpleParams = subBuilder;
863             break;
864           }
865           case 26: {
866             global::Grpc.Testing.ComplexProtoParams subBuilder = new global::Grpc.Testing.ComplexProtoParams();
867             if (payloadCase_ == PayloadOneofCase.ComplexParams) {
868               subBuilder.MergeFrom(ComplexParams);
869             }
870             input.ReadMessage(subBuilder);
871             ComplexParams = subBuilder;
872             break;
873           }
874         }
875       }
876     #endif
877     }
878 
879     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
880     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)881     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
882       uint tag;
883       while ((tag = input.ReadTag()) != 0) {
884         switch(tag) {
885           default:
886             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
887             break;
888           case 10: {
889             global::Grpc.Testing.ByteBufferParams subBuilder = new global::Grpc.Testing.ByteBufferParams();
890             if (payloadCase_ == PayloadOneofCase.BytebufParams) {
891               subBuilder.MergeFrom(BytebufParams);
892             }
893             input.ReadMessage(subBuilder);
894             BytebufParams = subBuilder;
895             break;
896           }
897           case 18: {
898             global::Grpc.Testing.SimpleProtoParams subBuilder = new global::Grpc.Testing.SimpleProtoParams();
899             if (payloadCase_ == PayloadOneofCase.SimpleParams) {
900               subBuilder.MergeFrom(SimpleParams);
901             }
902             input.ReadMessage(subBuilder);
903             SimpleParams = subBuilder;
904             break;
905           }
906           case 26: {
907             global::Grpc.Testing.ComplexProtoParams subBuilder = new global::Grpc.Testing.ComplexProtoParams();
908             if (payloadCase_ == PayloadOneofCase.ComplexParams) {
909               subBuilder.MergeFrom(ComplexParams);
910             }
911             input.ReadMessage(subBuilder);
912             ComplexParams = subBuilder;
913             break;
914           }
915         }
916       }
917     }
918     #endif
919 
920   }
921 
922   #endregion
923 
924 }
925 
926 #endregion Designer generated code
927