• 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/stats.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/stats.proto</summary>
15   public static partial class StatsReflection {
16 
17     #region Descriptor
18     /// <summary>File descriptor for src/proto/grpc/testing/stats.proto</summary>
19     public static pbr::FileDescriptor Descriptor {
20       get { return descriptor; }
21     }
22     private static pbr::FileDescriptor descriptor;
23 
StatsReflection()24     static StatsReflection() {
25       byte[] descriptorData = global::System.Convert.FromBase64String(
26           string.Concat(
27             "CiJzcmMvcHJvdG8vZ3JwYy90ZXN0aW5nL3N0YXRzLnByb3RvEgxncnBjLnRl",
28             "c3RpbmcaH3NyYy9wcm90by9ncnBjL2NvcmUvc3RhdHMucHJvdG8itwEKC1Nl",
29             "cnZlclN0YXRzEhQKDHRpbWVfZWxhcHNlZBgBIAEoARIRCgl0aW1lX3VzZXIY",
30             "AiABKAESEwoLdGltZV9zeXN0ZW0YAyABKAESFgoOdG90YWxfY3B1X3RpbWUY",
31             "BCABKAQSFQoNaWRsZV9jcHVfdGltZRgFIAEoBBIVCg1jcV9wb2xsX2NvdW50",
32             "GAYgASgEEiQKCmNvcmVfc3RhdHMYByABKAsyEC5ncnBjLmNvcmUuU3RhdHMi",
33             "OwoPSGlzdG9ncmFtUGFyYW1zEhIKCnJlc29sdXRpb24YASABKAESFAoMbWF4",
34             "X3Bvc3NpYmxlGAIgASgBIncKDUhpc3RvZ3JhbURhdGESDgoGYnVja2V0GAEg",
35             "AygNEhAKCG1pbl9zZWVuGAIgASgBEhAKCG1heF9zZWVuGAMgASgBEgsKA3N1",
36             "bRgEIAEoARIWCg5zdW1fb2Zfc3F1YXJlcxgFIAEoARINCgVjb3VudBgGIAEo",
37             "ASI4ChJSZXF1ZXN0UmVzdWx0Q291bnQSEwoLc3RhdHVzX2NvZGUYASABKAUS",
38             "DQoFY291bnQYAiABKAMi8wEKC0NsaWVudFN0YXRzEi4KCWxhdGVuY2llcxgB",
39             "IAEoCzIbLmdycGMudGVzdGluZy5IaXN0b2dyYW1EYXRhEhQKDHRpbWVfZWxh",
40             "cHNlZBgCIAEoARIRCgl0aW1lX3VzZXIYAyABKAESEwoLdGltZV9zeXN0ZW0Y",
41             "BCABKAESOQoPcmVxdWVzdF9yZXN1bHRzGAUgAygLMiAuZ3JwYy50ZXN0aW5n",
42             "LlJlcXVlc3RSZXN1bHRDb3VudBIVCg1jcV9wb2xsX2NvdW50GAYgASgEEiQK",
43             "CmNvcmVfc3RhdHMYByABKAsyEC5ncnBjLmNvcmUuU3RhdHNiBnByb3RvMw=="));
44       descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
45           new pbr::FileDescriptor[] { global::Grpc.Core.StatsReflection.Descriptor, },
46           new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
47             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ServerStats), global::Grpc.Testing.ServerStats.Parser, new[]{ "TimeElapsed", "TimeUser", "TimeSystem", "TotalCpuTime", "IdleCpuTime", "CqPollCount", "CoreStats" }, null, null, null, null),
48             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.HistogramParams), global::Grpc.Testing.HistogramParams.Parser, new[]{ "Resolution", "MaxPossible" }, null, null, null, null),
49             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.HistogramData), global::Grpc.Testing.HistogramData.Parser, new[]{ "Bucket", "MinSeen", "MaxSeen", "Sum", "SumOfSquares", "Count" }, null, null, null, null),
50             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.RequestResultCount), global::Grpc.Testing.RequestResultCount.Parser, new[]{ "StatusCode", "Count" }, null, null, null, null),
51             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.ClientStats), global::Grpc.Testing.ClientStats.Parser, new[]{ "Latencies", "TimeElapsed", "TimeUser", "TimeSystem", "RequestResults", "CqPollCount", "CoreStats" }, null, null, null, null)
52           }));
53     }
54     #endregion
55 
56   }
57   #region Messages
58   public sealed partial class ServerStats : pb::IMessage<ServerStats>
59   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
60       , pb::IBufferMessage
61   #endif
62   {
63     private static readonly pb::MessageParser<ServerStats> _parser = new pb::MessageParser<ServerStats>(() => new ServerStats());
64     private pb::UnknownFieldSet _unknownFields;
65     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
66     public static pb::MessageParser<ServerStats> Parser { get { return _parser; } }
67 
68     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
69     public static pbr::MessageDescriptor Descriptor {
70       get { return global::Grpc.Testing.StatsReflection.Descriptor.MessageTypes[0]; }
71     }
72 
73     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
74     pbr::MessageDescriptor pb::IMessage.Descriptor {
75       get { return Descriptor; }
76     }
77 
78     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ServerStats()79     public ServerStats() {
80       OnConstruction();
81     }
82 
OnConstruction()83     partial void OnConstruction();
84 
85     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ServerStats(ServerStats other)86     public ServerStats(ServerStats other) : this() {
87       timeElapsed_ = other.timeElapsed_;
88       timeUser_ = other.timeUser_;
89       timeSystem_ = other.timeSystem_;
90       totalCpuTime_ = other.totalCpuTime_;
91       idleCpuTime_ = other.idleCpuTime_;
92       cqPollCount_ = other.cqPollCount_;
93       coreStats_ = other.coreStats_ != null ? other.coreStats_.Clone() : null;
94       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
95     }
96 
97     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()98     public ServerStats Clone() {
99       return new ServerStats(this);
100     }
101 
102     /// <summary>Field number for the "time_elapsed" field.</summary>
103     public const int TimeElapsedFieldNumber = 1;
104     private double timeElapsed_;
105     /// <summary>
106     /// wall clock time change in seconds since last reset
107     /// </summary>
108     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
109     public double TimeElapsed {
110       get { return timeElapsed_; }
111       set {
112         timeElapsed_ = value;
113       }
114     }
115 
116     /// <summary>Field number for the "time_user" field.</summary>
117     public const int TimeUserFieldNumber = 2;
118     private double timeUser_;
119     /// <summary>
120     /// change in user time (in seconds) used by the server since last reset
121     /// </summary>
122     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
123     public double TimeUser {
124       get { return timeUser_; }
125       set {
126         timeUser_ = value;
127       }
128     }
129 
130     /// <summary>Field number for the "time_system" field.</summary>
131     public const int TimeSystemFieldNumber = 3;
132     private double timeSystem_;
133     /// <summary>
134     /// change in server time (in seconds) used by the server process and all
135     /// threads since last reset
136     /// </summary>
137     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
138     public double TimeSystem {
139       get { return timeSystem_; }
140       set {
141         timeSystem_ = value;
142       }
143     }
144 
145     /// <summary>Field number for the "total_cpu_time" field.</summary>
146     public const int TotalCpuTimeFieldNumber = 4;
147     private ulong totalCpuTime_;
148     /// <summary>
149     /// change in total cpu time of the server (data from proc/stat)
150     /// </summary>
151     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
152     public ulong TotalCpuTime {
153       get { return totalCpuTime_; }
154       set {
155         totalCpuTime_ = value;
156       }
157     }
158 
159     /// <summary>Field number for the "idle_cpu_time" field.</summary>
160     public const int IdleCpuTimeFieldNumber = 5;
161     private ulong idleCpuTime_;
162     /// <summary>
163     /// change in idle time of the server (data from proc/stat)
164     /// </summary>
165     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
166     public ulong IdleCpuTime {
167       get { return idleCpuTime_; }
168       set {
169         idleCpuTime_ = value;
170       }
171     }
172 
173     /// <summary>Field number for the "cq_poll_count" field.</summary>
174     public const int CqPollCountFieldNumber = 6;
175     private ulong cqPollCount_;
176     /// <summary>
177     /// Number of polls called inside completion queue
178     /// </summary>
179     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
180     public ulong CqPollCount {
181       get { return cqPollCount_; }
182       set {
183         cqPollCount_ = value;
184       }
185     }
186 
187     /// <summary>Field number for the "core_stats" field.</summary>
188     public const int CoreStatsFieldNumber = 7;
189     private global::Grpc.Core.Stats coreStats_;
190     /// <summary>
191     /// Core library stats
192     /// </summary>
193     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
194     public global::Grpc.Core.Stats CoreStats {
195       get { return coreStats_; }
196       set {
197         coreStats_ = value;
198       }
199     }
200 
201     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)202     public override bool Equals(object other) {
203       return Equals(other as ServerStats);
204     }
205 
206     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(ServerStats other)207     public bool Equals(ServerStats other) {
208       if (ReferenceEquals(other, null)) {
209         return false;
210       }
211       if (ReferenceEquals(other, this)) {
212         return true;
213       }
214       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TimeElapsed, other.TimeElapsed)) return false;
215       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TimeUser, other.TimeUser)) return false;
216       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TimeSystem, other.TimeSystem)) return false;
217       if (TotalCpuTime != other.TotalCpuTime) return false;
218       if (IdleCpuTime != other.IdleCpuTime) return false;
219       if (CqPollCount != other.CqPollCount) return false;
220       if (!object.Equals(CoreStats, other.CoreStats)) return false;
221       return Equals(_unknownFields, other._unknownFields);
222     }
223 
224     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()225     public override int GetHashCode() {
226       int hash = 1;
227       if (TimeElapsed != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TimeElapsed);
228       if (TimeUser != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TimeUser);
229       if (TimeSystem != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TimeSystem);
230       if (TotalCpuTime != 0UL) hash ^= TotalCpuTime.GetHashCode();
231       if (IdleCpuTime != 0UL) hash ^= IdleCpuTime.GetHashCode();
232       if (CqPollCount != 0UL) hash ^= CqPollCount.GetHashCode();
233       if (coreStats_ != null) hash ^= CoreStats.GetHashCode();
234       if (_unknownFields != null) {
235         hash ^= _unknownFields.GetHashCode();
236       }
237       return hash;
238     }
239 
240     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()241     public override string ToString() {
242       return pb::JsonFormatter.ToDiagnosticString(this);
243     }
244 
245     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)246     public void WriteTo(pb::CodedOutputStream output) {
247     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
248       output.WriteRawMessage(this);
249     #else
250       if (TimeElapsed != 0D) {
251         output.WriteRawTag(9);
252         output.WriteDouble(TimeElapsed);
253       }
254       if (TimeUser != 0D) {
255         output.WriteRawTag(17);
256         output.WriteDouble(TimeUser);
257       }
258       if (TimeSystem != 0D) {
259         output.WriteRawTag(25);
260         output.WriteDouble(TimeSystem);
261       }
262       if (TotalCpuTime != 0UL) {
263         output.WriteRawTag(32);
264         output.WriteUInt64(TotalCpuTime);
265       }
266       if (IdleCpuTime != 0UL) {
267         output.WriteRawTag(40);
268         output.WriteUInt64(IdleCpuTime);
269       }
270       if (CqPollCount != 0UL) {
271         output.WriteRawTag(48);
272         output.WriteUInt64(CqPollCount);
273       }
274       if (coreStats_ != null) {
275         output.WriteRawTag(58);
276         output.WriteMessage(CoreStats);
277       }
278       if (_unknownFields != null) {
279         _unknownFields.WriteTo(output);
280       }
281     #endif
282     }
283 
284     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
285     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)286     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
287       if (TimeElapsed != 0D) {
288         output.WriteRawTag(9);
289         output.WriteDouble(TimeElapsed);
290       }
291       if (TimeUser != 0D) {
292         output.WriteRawTag(17);
293         output.WriteDouble(TimeUser);
294       }
295       if (TimeSystem != 0D) {
296         output.WriteRawTag(25);
297         output.WriteDouble(TimeSystem);
298       }
299       if (TotalCpuTime != 0UL) {
300         output.WriteRawTag(32);
301         output.WriteUInt64(TotalCpuTime);
302       }
303       if (IdleCpuTime != 0UL) {
304         output.WriteRawTag(40);
305         output.WriteUInt64(IdleCpuTime);
306       }
307       if (CqPollCount != 0UL) {
308         output.WriteRawTag(48);
309         output.WriteUInt64(CqPollCount);
310       }
311       if (coreStats_ != null) {
312         output.WriteRawTag(58);
313         output.WriteMessage(CoreStats);
314       }
315       if (_unknownFields != null) {
316         _unknownFields.WriteTo(ref output);
317       }
318     }
319     #endif
320 
321     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()322     public int CalculateSize() {
323       int size = 0;
324       if (TimeElapsed != 0D) {
325         size += 1 + 8;
326       }
327       if (TimeUser != 0D) {
328         size += 1 + 8;
329       }
330       if (TimeSystem != 0D) {
331         size += 1 + 8;
332       }
333       if (TotalCpuTime != 0UL) {
334         size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TotalCpuTime);
335       }
336       if (IdleCpuTime != 0UL) {
337         size += 1 + pb::CodedOutputStream.ComputeUInt64Size(IdleCpuTime);
338       }
339       if (CqPollCount != 0UL) {
340         size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CqPollCount);
341       }
342       if (coreStats_ != null) {
343         size += 1 + pb::CodedOutputStream.ComputeMessageSize(CoreStats);
344       }
345       if (_unknownFields != null) {
346         size += _unknownFields.CalculateSize();
347       }
348       return size;
349     }
350 
351     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(ServerStats other)352     public void MergeFrom(ServerStats other) {
353       if (other == null) {
354         return;
355       }
356       if (other.TimeElapsed != 0D) {
357         TimeElapsed = other.TimeElapsed;
358       }
359       if (other.TimeUser != 0D) {
360         TimeUser = other.TimeUser;
361       }
362       if (other.TimeSystem != 0D) {
363         TimeSystem = other.TimeSystem;
364       }
365       if (other.TotalCpuTime != 0UL) {
366         TotalCpuTime = other.TotalCpuTime;
367       }
368       if (other.IdleCpuTime != 0UL) {
369         IdleCpuTime = other.IdleCpuTime;
370       }
371       if (other.CqPollCount != 0UL) {
372         CqPollCount = other.CqPollCount;
373       }
374       if (other.coreStats_ != null) {
375         if (coreStats_ == null) {
376           CoreStats = new global::Grpc.Core.Stats();
377         }
378         CoreStats.MergeFrom(other.CoreStats);
379       }
380       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
381     }
382 
383     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)384     public void MergeFrom(pb::CodedInputStream input) {
385     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
386       input.ReadRawMessage(this);
387     #else
388       uint tag;
389       while ((tag = input.ReadTag()) != 0) {
390         switch(tag) {
391           default:
392             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
393             break;
394           case 9: {
395             TimeElapsed = input.ReadDouble();
396             break;
397           }
398           case 17: {
399             TimeUser = input.ReadDouble();
400             break;
401           }
402           case 25: {
403             TimeSystem = input.ReadDouble();
404             break;
405           }
406           case 32: {
407             TotalCpuTime = input.ReadUInt64();
408             break;
409           }
410           case 40: {
411             IdleCpuTime = input.ReadUInt64();
412             break;
413           }
414           case 48: {
415             CqPollCount = input.ReadUInt64();
416             break;
417           }
418           case 58: {
419             if (coreStats_ == null) {
420               CoreStats = new global::Grpc.Core.Stats();
421             }
422             input.ReadMessage(CoreStats);
423             break;
424           }
425         }
426       }
427     #endif
428     }
429 
430     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
431     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)432     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
433       uint tag;
434       while ((tag = input.ReadTag()) != 0) {
435         switch(tag) {
436           default:
437             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
438             break;
439           case 9: {
440             TimeElapsed = input.ReadDouble();
441             break;
442           }
443           case 17: {
444             TimeUser = input.ReadDouble();
445             break;
446           }
447           case 25: {
448             TimeSystem = input.ReadDouble();
449             break;
450           }
451           case 32: {
452             TotalCpuTime = input.ReadUInt64();
453             break;
454           }
455           case 40: {
456             IdleCpuTime = input.ReadUInt64();
457             break;
458           }
459           case 48: {
460             CqPollCount = input.ReadUInt64();
461             break;
462           }
463           case 58: {
464             if (coreStats_ == null) {
465               CoreStats = new global::Grpc.Core.Stats();
466             }
467             input.ReadMessage(CoreStats);
468             break;
469           }
470         }
471       }
472     }
473     #endif
474 
475   }
476 
477   /// <summary>
478   /// Histogram params based on grpc/support/histogram.c
479   /// </summary>
480   public sealed partial class HistogramParams : pb::IMessage<HistogramParams>
481   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
482       , pb::IBufferMessage
483   #endif
484   {
485     private static readonly pb::MessageParser<HistogramParams> _parser = new pb::MessageParser<HistogramParams>(() => new HistogramParams());
486     private pb::UnknownFieldSet _unknownFields;
487     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
488     public static pb::MessageParser<HistogramParams> Parser { get { return _parser; } }
489 
490     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
491     public static pbr::MessageDescriptor Descriptor {
492       get { return global::Grpc.Testing.StatsReflection.Descriptor.MessageTypes[1]; }
493     }
494 
495     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
496     pbr::MessageDescriptor pb::IMessage.Descriptor {
497       get { return Descriptor; }
498     }
499 
500     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
HistogramParams()501     public HistogramParams() {
502       OnConstruction();
503     }
504 
OnConstruction()505     partial void OnConstruction();
506 
507     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
HistogramParams(HistogramParams other)508     public HistogramParams(HistogramParams other) : this() {
509       resolution_ = other.resolution_;
510       maxPossible_ = other.maxPossible_;
511       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
512     }
513 
514     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()515     public HistogramParams Clone() {
516       return new HistogramParams(this);
517     }
518 
519     /// <summary>Field number for the "resolution" field.</summary>
520     public const int ResolutionFieldNumber = 1;
521     private double resolution_;
522     /// <summary>
523     /// first bucket is [0, 1 + resolution)
524     /// </summary>
525     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
526     public double Resolution {
527       get { return resolution_; }
528       set {
529         resolution_ = value;
530       }
531     }
532 
533     /// <summary>Field number for the "max_possible" field.</summary>
534     public const int MaxPossibleFieldNumber = 2;
535     private double maxPossible_;
536     /// <summary>
537     /// use enough buckets to allow this value
538     /// </summary>
539     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
540     public double MaxPossible {
541       get { return maxPossible_; }
542       set {
543         maxPossible_ = value;
544       }
545     }
546 
547     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)548     public override bool Equals(object other) {
549       return Equals(other as HistogramParams);
550     }
551 
552     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(HistogramParams other)553     public bool Equals(HistogramParams other) {
554       if (ReferenceEquals(other, null)) {
555         return false;
556       }
557       if (ReferenceEquals(other, this)) {
558         return true;
559       }
560       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Resolution, other.Resolution)) return false;
561       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(MaxPossible, other.MaxPossible)) return false;
562       return Equals(_unknownFields, other._unknownFields);
563     }
564 
565     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()566     public override int GetHashCode() {
567       int hash = 1;
568       if (Resolution != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Resolution);
569       if (MaxPossible != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(MaxPossible);
570       if (_unknownFields != null) {
571         hash ^= _unknownFields.GetHashCode();
572       }
573       return hash;
574     }
575 
576     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()577     public override string ToString() {
578       return pb::JsonFormatter.ToDiagnosticString(this);
579     }
580 
581     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)582     public void WriteTo(pb::CodedOutputStream output) {
583     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
584       output.WriteRawMessage(this);
585     #else
586       if (Resolution != 0D) {
587         output.WriteRawTag(9);
588         output.WriteDouble(Resolution);
589       }
590       if (MaxPossible != 0D) {
591         output.WriteRawTag(17);
592         output.WriteDouble(MaxPossible);
593       }
594       if (_unknownFields != null) {
595         _unknownFields.WriteTo(output);
596       }
597     #endif
598     }
599 
600     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
601     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)602     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
603       if (Resolution != 0D) {
604         output.WriteRawTag(9);
605         output.WriteDouble(Resolution);
606       }
607       if (MaxPossible != 0D) {
608         output.WriteRawTag(17);
609         output.WriteDouble(MaxPossible);
610       }
611       if (_unknownFields != null) {
612         _unknownFields.WriteTo(ref output);
613       }
614     }
615     #endif
616 
617     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()618     public int CalculateSize() {
619       int size = 0;
620       if (Resolution != 0D) {
621         size += 1 + 8;
622       }
623       if (MaxPossible != 0D) {
624         size += 1 + 8;
625       }
626       if (_unknownFields != null) {
627         size += _unknownFields.CalculateSize();
628       }
629       return size;
630     }
631 
632     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(HistogramParams other)633     public void MergeFrom(HistogramParams other) {
634       if (other == null) {
635         return;
636       }
637       if (other.Resolution != 0D) {
638         Resolution = other.Resolution;
639       }
640       if (other.MaxPossible != 0D) {
641         MaxPossible = other.MaxPossible;
642       }
643       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
644     }
645 
646     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)647     public void MergeFrom(pb::CodedInputStream input) {
648     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
649       input.ReadRawMessage(this);
650     #else
651       uint tag;
652       while ((tag = input.ReadTag()) != 0) {
653         switch(tag) {
654           default:
655             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
656             break;
657           case 9: {
658             Resolution = input.ReadDouble();
659             break;
660           }
661           case 17: {
662             MaxPossible = input.ReadDouble();
663             break;
664           }
665         }
666       }
667     #endif
668     }
669 
670     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
671     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)672     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
673       uint tag;
674       while ((tag = input.ReadTag()) != 0) {
675         switch(tag) {
676           default:
677             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
678             break;
679           case 9: {
680             Resolution = input.ReadDouble();
681             break;
682           }
683           case 17: {
684             MaxPossible = input.ReadDouble();
685             break;
686           }
687         }
688       }
689     }
690     #endif
691 
692   }
693 
694   /// <summary>
695   /// Histogram data based on grpc/support/histogram.c
696   /// </summary>
697   public sealed partial class HistogramData : pb::IMessage<HistogramData>
698   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
699       , pb::IBufferMessage
700   #endif
701   {
702     private static readonly pb::MessageParser<HistogramData> _parser = new pb::MessageParser<HistogramData>(() => new HistogramData());
703     private pb::UnknownFieldSet _unknownFields;
704     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
705     public static pb::MessageParser<HistogramData> Parser { get { return _parser; } }
706 
707     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
708     public static pbr::MessageDescriptor Descriptor {
709       get { return global::Grpc.Testing.StatsReflection.Descriptor.MessageTypes[2]; }
710     }
711 
712     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
713     pbr::MessageDescriptor pb::IMessage.Descriptor {
714       get { return Descriptor; }
715     }
716 
717     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
HistogramData()718     public HistogramData() {
719       OnConstruction();
720     }
721 
OnConstruction()722     partial void OnConstruction();
723 
724     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
HistogramData(HistogramData other)725     public HistogramData(HistogramData other) : this() {
726       bucket_ = other.bucket_.Clone();
727       minSeen_ = other.minSeen_;
728       maxSeen_ = other.maxSeen_;
729       sum_ = other.sum_;
730       sumOfSquares_ = other.sumOfSquares_;
731       count_ = other.count_;
732       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
733     }
734 
735     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()736     public HistogramData Clone() {
737       return new HistogramData(this);
738     }
739 
740     /// <summary>Field number for the "bucket" field.</summary>
741     public const int BucketFieldNumber = 1;
742     private static readonly pb::FieldCodec<uint> _repeated_bucket_codec
743         = pb::FieldCodec.ForUInt32(10);
744     private readonly pbc::RepeatedField<uint> bucket_ = new pbc::RepeatedField<uint>();
745     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
746     public pbc::RepeatedField<uint> Bucket {
747       get { return bucket_; }
748     }
749 
750     /// <summary>Field number for the "min_seen" field.</summary>
751     public const int MinSeenFieldNumber = 2;
752     private double minSeen_;
753     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
754     public double MinSeen {
755       get { return minSeen_; }
756       set {
757         minSeen_ = value;
758       }
759     }
760 
761     /// <summary>Field number for the "max_seen" field.</summary>
762     public const int MaxSeenFieldNumber = 3;
763     private double maxSeen_;
764     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
765     public double MaxSeen {
766       get { return maxSeen_; }
767       set {
768         maxSeen_ = value;
769       }
770     }
771 
772     /// <summary>Field number for the "sum" field.</summary>
773     public const int SumFieldNumber = 4;
774     private double sum_;
775     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
776     public double Sum {
777       get { return sum_; }
778       set {
779         sum_ = value;
780       }
781     }
782 
783     /// <summary>Field number for the "sum_of_squares" field.</summary>
784     public const int SumOfSquaresFieldNumber = 5;
785     private double sumOfSquares_;
786     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
787     public double SumOfSquares {
788       get { return sumOfSquares_; }
789       set {
790         sumOfSquares_ = value;
791       }
792     }
793 
794     /// <summary>Field number for the "count" field.</summary>
795     public const int CountFieldNumber = 6;
796     private double count_;
797     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
798     public double Count {
799       get { return count_; }
800       set {
801         count_ = value;
802       }
803     }
804 
805     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)806     public override bool Equals(object other) {
807       return Equals(other as HistogramData);
808     }
809 
810     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(HistogramData other)811     public bool Equals(HistogramData other) {
812       if (ReferenceEquals(other, null)) {
813         return false;
814       }
815       if (ReferenceEquals(other, this)) {
816         return true;
817       }
818       if(!bucket_.Equals(other.bucket_)) return false;
819       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(MinSeen, other.MinSeen)) return false;
820       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(MaxSeen, other.MaxSeen)) return false;
821       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Sum, other.Sum)) return false;
822       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SumOfSquares, other.SumOfSquares)) return false;
823       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Count, other.Count)) return false;
824       return Equals(_unknownFields, other._unknownFields);
825     }
826 
827     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()828     public override int GetHashCode() {
829       int hash = 1;
830       hash ^= bucket_.GetHashCode();
831       if (MinSeen != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(MinSeen);
832       if (MaxSeen != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(MaxSeen);
833       if (Sum != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Sum);
834       if (SumOfSquares != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SumOfSquares);
835       if (Count != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Count);
836       if (_unknownFields != null) {
837         hash ^= _unknownFields.GetHashCode();
838       }
839       return hash;
840     }
841 
842     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()843     public override string ToString() {
844       return pb::JsonFormatter.ToDiagnosticString(this);
845     }
846 
847     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)848     public void WriteTo(pb::CodedOutputStream output) {
849     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
850       output.WriteRawMessage(this);
851     #else
852       bucket_.WriteTo(output, _repeated_bucket_codec);
853       if (MinSeen != 0D) {
854         output.WriteRawTag(17);
855         output.WriteDouble(MinSeen);
856       }
857       if (MaxSeen != 0D) {
858         output.WriteRawTag(25);
859         output.WriteDouble(MaxSeen);
860       }
861       if (Sum != 0D) {
862         output.WriteRawTag(33);
863         output.WriteDouble(Sum);
864       }
865       if (SumOfSquares != 0D) {
866         output.WriteRawTag(41);
867         output.WriteDouble(SumOfSquares);
868       }
869       if (Count != 0D) {
870         output.WriteRawTag(49);
871         output.WriteDouble(Count);
872       }
873       if (_unknownFields != null) {
874         _unknownFields.WriteTo(output);
875       }
876     #endif
877     }
878 
879     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
880     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)881     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
882       bucket_.WriteTo(ref output, _repeated_bucket_codec);
883       if (MinSeen != 0D) {
884         output.WriteRawTag(17);
885         output.WriteDouble(MinSeen);
886       }
887       if (MaxSeen != 0D) {
888         output.WriteRawTag(25);
889         output.WriteDouble(MaxSeen);
890       }
891       if (Sum != 0D) {
892         output.WriteRawTag(33);
893         output.WriteDouble(Sum);
894       }
895       if (SumOfSquares != 0D) {
896         output.WriteRawTag(41);
897         output.WriteDouble(SumOfSquares);
898       }
899       if (Count != 0D) {
900         output.WriteRawTag(49);
901         output.WriteDouble(Count);
902       }
903       if (_unknownFields != null) {
904         _unknownFields.WriteTo(ref output);
905       }
906     }
907     #endif
908 
909     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()910     public int CalculateSize() {
911       int size = 0;
912       size += bucket_.CalculateSize(_repeated_bucket_codec);
913       if (MinSeen != 0D) {
914         size += 1 + 8;
915       }
916       if (MaxSeen != 0D) {
917         size += 1 + 8;
918       }
919       if (Sum != 0D) {
920         size += 1 + 8;
921       }
922       if (SumOfSquares != 0D) {
923         size += 1 + 8;
924       }
925       if (Count != 0D) {
926         size += 1 + 8;
927       }
928       if (_unknownFields != null) {
929         size += _unknownFields.CalculateSize();
930       }
931       return size;
932     }
933 
934     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(HistogramData other)935     public void MergeFrom(HistogramData other) {
936       if (other == null) {
937         return;
938       }
939       bucket_.Add(other.bucket_);
940       if (other.MinSeen != 0D) {
941         MinSeen = other.MinSeen;
942       }
943       if (other.MaxSeen != 0D) {
944         MaxSeen = other.MaxSeen;
945       }
946       if (other.Sum != 0D) {
947         Sum = other.Sum;
948       }
949       if (other.SumOfSquares != 0D) {
950         SumOfSquares = other.SumOfSquares;
951       }
952       if (other.Count != 0D) {
953         Count = other.Count;
954       }
955       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
956     }
957 
958     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)959     public void MergeFrom(pb::CodedInputStream input) {
960     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
961       input.ReadRawMessage(this);
962     #else
963       uint tag;
964       while ((tag = input.ReadTag()) != 0) {
965         switch(tag) {
966           default:
967             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
968             break;
969           case 10:
970           case 8: {
971             bucket_.AddEntriesFrom(input, _repeated_bucket_codec);
972             break;
973           }
974           case 17: {
975             MinSeen = input.ReadDouble();
976             break;
977           }
978           case 25: {
979             MaxSeen = input.ReadDouble();
980             break;
981           }
982           case 33: {
983             Sum = input.ReadDouble();
984             break;
985           }
986           case 41: {
987             SumOfSquares = input.ReadDouble();
988             break;
989           }
990           case 49: {
991             Count = input.ReadDouble();
992             break;
993           }
994         }
995       }
996     #endif
997     }
998 
999     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1000     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1001     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1002       uint tag;
1003       while ((tag = input.ReadTag()) != 0) {
1004         switch(tag) {
1005           default:
1006             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1007             break;
1008           case 10:
1009           case 8: {
1010             bucket_.AddEntriesFrom(ref input, _repeated_bucket_codec);
1011             break;
1012           }
1013           case 17: {
1014             MinSeen = input.ReadDouble();
1015             break;
1016           }
1017           case 25: {
1018             MaxSeen = input.ReadDouble();
1019             break;
1020           }
1021           case 33: {
1022             Sum = input.ReadDouble();
1023             break;
1024           }
1025           case 41: {
1026             SumOfSquares = input.ReadDouble();
1027             break;
1028           }
1029           case 49: {
1030             Count = input.ReadDouble();
1031             break;
1032           }
1033         }
1034       }
1035     }
1036     #endif
1037 
1038   }
1039 
1040   public sealed partial class RequestResultCount : pb::IMessage<RequestResultCount>
1041   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1042       , pb::IBufferMessage
1043   #endif
1044   {
1045     private static readonly pb::MessageParser<RequestResultCount> _parser = new pb::MessageParser<RequestResultCount>(() => new RequestResultCount());
1046     private pb::UnknownFieldSet _unknownFields;
1047     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1048     public static pb::MessageParser<RequestResultCount> Parser { get { return _parser; } }
1049 
1050     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1051     public static pbr::MessageDescriptor Descriptor {
1052       get { return global::Grpc.Testing.StatsReflection.Descriptor.MessageTypes[3]; }
1053     }
1054 
1055     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1056     pbr::MessageDescriptor pb::IMessage.Descriptor {
1057       get { return Descriptor; }
1058     }
1059 
1060     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
RequestResultCount()1061     public RequestResultCount() {
1062       OnConstruction();
1063     }
1064 
OnConstruction()1065     partial void OnConstruction();
1066 
1067     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
RequestResultCount(RequestResultCount other)1068     public RequestResultCount(RequestResultCount other) : this() {
1069       statusCode_ = other.statusCode_;
1070       count_ = other.count_;
1071       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1072     }
1073 
1074     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()1075     public RequestResultCount Clone() {
1076       return new RequestResultCount(this);
1077     }
1078 
1079     /// <summary>Field number for the "status_code" field.</summary>
1080     public const int StatusCodeFieldNumber = 1;
1081     private int statusCode_;
1082     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1083     public int StatusCode {
1084       get { return statusCode_; }
1085       set {
1086         statusCode_ = value;
1087       }
1088     }
1089 
1090     /// <summary>Field number for the "count" field.</summary>
1091     public const int CountFieldNumber = 2;
1092     private long count_;
1093     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1094     public long Count {
1095       get { return count_; }
1096       set {
1097         count_ = value;
1098       }
1099     }
1100 
1101     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)1102     public override bool Equals(object other) {
1103       return Equals(other as RequestResultCount);
1104     }
1105 
1106     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(RequestResultCount other)1107     public bool Equals(RequestResultCount other) {
1108       if (ReferenceEquals(other, null)) {
1109         return false;
1110       }
1111       if (ReferenceEquals(other, this)) {
1112         return true;
1113       }
1114       if (StatusCode != other.StatusCode) return false;
1115       if (Count != other.Count) return false;
1116       return Equals(_unknownFields, other._unknownFields);
1117     }
1118 
1119     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()1120     public override int GetHashCode() {
1121       int hash = 1;
1122       if (StatusCode != 0) hash ^= StatusCode.GetHashCode();
1123       if (Count != 0L) hash ^= Count.GetHashCode();
1124       if (_unknownFields != null) {
1125         hash ^= _unknownFields.GetHashCode();
1126       }
1127       return hash;
1128     }
1129 
1130     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()1131     public override string ToString() {
1132       return pb::JsonFormatter.ToDiagnosticString(this);
1133     }
1134 
1135     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)1136     public void WriteTo(pb::CodedOutputStream output) {
1137     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1138       output.WriteRawMessage(this);
1139     #else
1140       if (StatusCode != 0) {
1141         output.WriteRawTag(8);
1142         output.WriteInt32(StatusCode);
1143       }
1144       if (Count != 0L) {
1145         output.WriteRawTag(16);
1146         output.WriteInt64(Count);
1147       }
1148       if (_unknownFields != null) {
1149         _unknownFields.WriteTo(output);
1150       }
1151     #endif
1152     }
1153 
1154     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1155     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)1156     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1157       if (StatusCode != 0) {
1158         output.WriteRawTag(8);
1159         output.WriteInt32(StatusCode);
1160       }
1161       if (Count != 0L) {
1162         output.WriteRawTag(16);
1163         output.WriteInt64(Count);
1164       }
1165       if (_unknownFields != null) {
1166         _unknownFields.WriteTo(ref output);
1167       }
1168     }
1169     #endif
1170 
1171     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()1172     public int CalculateSize() {
1173       int size = 0;
1174       if (StatusCode != 0) {
1175         size += 1 + pb::CodedOutputStream.ComputeInt32Size(StatusCode);
1176       }
1177       if (Count != 0L) {
1178         size += 1 + pb::CodedOutputStream.ComputeInt64Size(Count);
1179       }
1180       if (_unknownFields != null) {
1181         size += _unknownFields.CalculateSize();
1182       }
1183       return size;
1184     }
1185 
1186     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(RequestResultCount other)1187     public void MergeFrom(RequestResultCount other) {
1188       if (other == null) {
1189         return;
1190       }
1191       if (other.StatusCode != 0) {
1192         StatusCode = other.StatusCode;
1193       }
1194       if (other.Count != 0L) {
1195         Count = other.Count;
1196       }
1197       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1198     }
1199 
1200     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)1201     public void MergeFrom(pb::CodedInputStream input) {
1202     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1203       input.ReadRawMessage(this);
1204     #else
1205       uint tag;
1206       while ((tag = input.ReadTag()) != 0) {
1207         switch(tag) {
1208           default:
1209             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1210             break;
1211           case 8: {
1212             StatusCode = input.ReadInt32();
1213             break;
1214           }
1215           case 16: {
1216             Count = input.ReadInt64();
1217             break;
1218           }
1219         }
1220       }
1221     #endif
1222     }
1223 
1224     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1225     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1226     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1227       uint tag;
1228       while ((tag = input.ReadTag()) != 0) {
1229         switch(tag) {
1230           default:
1231             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1232             break;
1233           case 8: {
1234             StatusCode = input.ReadInt32();
1235             break;
1236           }
1237           case 16: {
1238             Count = input.ReadInt64();
1239             break;
1240           }
1241         }
1242       }
1243     }
1244     #endif
1245 
1246   }
1247 
1248   public sealed partial class ClientStats : pb::IMessage<ClientStats>
1249   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1250       , pb::IBufferMessage
1251   #endif
1252   {
1253     private static readonly pb::MessageParser<ClientStats> _parser = new pb::MessageParser<ClientStats>(() => new ClientStats());
1254     private pb::UnknownFieldSet _unknownFields;
1255     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1256     public static pb::MessageParser<ClientStats> Parser { get { return _parser; } }
1257 
1258     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1259     public static pbr::MessageDescriptor Descriptor {
1260       get { return global::Grpc.Testing.StatsReflection.Descriptor.MessageTypes[4]; }
1261     }
1262 
1263     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1264     pbr::MessageDescriptor pb::IMessage.Descriptor {
1265       get { return Descriptor; }
1266     }
1267 
1268     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClientStats()1269     public ClientStats() {
1270       OnConstruction();
1271     }
1272 
OnConstruction()1273     partial void OnConstruction();
1274 
1275     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClientStats(ClientStats other)1276     public ClientStats(ClientStats other) : this() {
1277       latencies_ = other.latencies_ != null ? other.latencies_.Clone() : null;
1278       timeElapsed_ = other.timeElapsed_;
1279       timeUser_ = other.timeUser_;
1280       timeSystem_ = other.timeSystem_;
1281       requestResults_ = other.requestResults_.Clone();
1282       cqPollCount_ = other.cqPollCount_;
1283       coreStats_ = other.coreStats_ != null ? other.coreStats_.Clone() : null;
1284       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1285     }
1286 
1287     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()1288     public ClientStats Clone() {
1289       return new ClientStats(this);
1290     }
1291 
1292     /// <summary>Field number for the "latencies" field.</summary>
1293     public const int LatenciesFieldNumber = 1;
1294     private global::Grpc.Testing.HistogramData latencies_;
1295     /// <summary>
1296     /// Latency histogram. Data points are in nanoseconds.
1297     /// </summary>
1298     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1299     public global::Grpc.Testing.HistogramData Latencies {
1300       get { return latencies_; }
1301       set {
1302         latencies_ = value;
1303       }
1304     }
1305 
1306     /// <summary>Field number for the "time_elapsed" field.</summary>
1307     public const int TimeElapsedFieldNumber = 2;
1308     private double timeElapsed_;
1309     /// <summary>
1310     /// See ServerStats for details.
1311     /// </summary>
1312     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1313     public double TimeElapsed {
1314       get { return timeElapsed_; }
1315       set {
1316         timeElapsed_ = value;
1317       }
1318     }
1319 
1320     /// <summary>Field number for the "time_user" field.</summary>
1321     public const int TimeUserFieldNumber = 3;
1322     private double timeUser_;
1323     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1324     public double TimeUser {
1325       get { return timeUser_; }
1326       set {
1327         timeUser_ = value;
1328       }
1329     }
1330 
1331     /// <summary>Field number for the "time_system" field.</summary>
1332     public const int TimeSystemFieldNumber = 4;
1333     private double timeSystem_;
1334     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1335     public double TimeSystem {
1336       get { return timeSystem_; }
1337       set {
1338         timeSystem_ = value;
1339       }
1340     }
1341 
1342     /// <summary>Field number for the "request_results" field.</summary>
1343     public const int RequestResultsFieldNumber = 5;
1344     private static readonly pb::FieldCodec<global::Grpc.Testing.RequestResultCount> _repeated_requestResults_codec
1345         = pb::FieldCodec.ForMessage(42, global::Grpc.Testing.RequestResultCount.Parser);
1346     private readonly pbc::RepeatedField<global::Grpc.Testing.RequestResultCount> requestResults_ = new pbc::RepeatedField<global::Grpc.Testing.RequestResultCount>();
1347     /// <summary>
1348     /// Number of failed requests (one row per status code seen)
1349     /// </summary>
1350     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1351     public pbc::RepeatedField<global::Grpc.Testing.RequestResultCount> RequestResults {
1352       get { return requestResults_; }
1353     }
1354 
1355     /// <summary>Field number for the "cq_poll_count" field.</summary>
1356     public const int CqPollCountFieldNumber = 6;
1357     private ulong cqPollCount_;
1358     /// <summary>
1359     /// Number of polls called inside completion queue
1360     /// </summary>
1361     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1362     public ulong CqPollCount {
1363       get { return cqPollCount_; }
1364       set {
1365         cqPollCount_ = value;
1366       }
1367     }
1368 
1369     /// <summary>Field number for the "core_stats" field.</summary>
1370     public const int CoreStatsFieldNumber = 7;
1371     private global::Grpc.Core.Stats coreStats_;
1372     /// <summary>
1373     /// Core library stats
1374     /// </summary>
1375     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1376     public global::Grpc.Core.Stats CoreStats {
1377       get { return coreStats_; }
1378       set {
1379         coreStats_ = value;
1380       }
1381     }
1382 
1383     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)1384     public override bool Equals(object other) {
1385       return Equals(other as ClientStats);
1386     }
1387 
1388     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(ClientStats other)1389     public bool Equals(ClientStats other) {
1390       if (ReferenceEquals(other, null)) {
1391         return false;
1392       }
1393       if (ReferenceEquals(other, this)) {
1394         return true;
1395       }
1396       if (!object.Equals(Latencies, other.Latencies)) return false;
1397       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TimeElapsed, other.TimeElapsed)) return false;
1398       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TimeUser, other.TimeUser)) return false;
1399       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TimeSystem, other.TimeSystem)) return false;
1400       if(!requestResults_.Equals(other.requestResults_)) return false;
1401       if (CqPollCount != other.CqPollCount) return false;
1402       if (!object.Equals(CoreStats, other.CoreStats)) return false;
1403       return Equals(_unknownFields, other._unknownFields);
1404     }
1405 
1406     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()1407     public override int GetHashCode() {
1408       int hash = 1;
1409       if (latencies_ != null) hash ^= Latencies.GetHashCode();
1410       if (TimeElapsed != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TimeElapsed);
1411       if (TimeUser != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TimeUser);
1412       if (TimeSystem != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TimeSystem);
1413       hash ^= requestResults_.GetHashCode();
1414       if (CqPollCount != 0UL) hash ^= CqPollCount.GetHashCode();
1415       if (coreStats_ != null) hash ^= CoreStats.GetHashCode();
1416       if (_unknownFields != null) {
1417         hash ^= _unknownFields.GetHashCode();
1418       }
1419       return hash;
1420     }
1421 
1422     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()1423     public override string ToString() {
1424       return pb::JsonFormatter.ToDiagnosticString(this);
1425     }
1426 
1427     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)1428     public void WriteTo(pb::CodedOutputStream output) {
1429     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1430       output.WriteRawMessage(this);
1431     #else
1432       if (latencies_ != null) {
1433         output.WriteRawTag(10);
1434         output.WriteMessage(Latencies);
1435       }
1436       if (TimeElapsed != 0D) {
1437         output.WriteRawTag(17);
1438         output.WriteDouble(TimeElapsed);
1439       }
1440       if (TimeUser != 0D) {
1441         output.WriteRawTag(25);
1442         output.WriteDouble(TimeUser);
1443       }
1444       if (TimeSystem != 0D) {
1445         output.WriteRawTag(33);
1446         output.WriteDouble(TimeSystem);
1447       }
1448       requestResults_.WriteTo(output, _repeated_requestResults_codec);
1449       if (CqPollCount != 0UL) {
1450         output.WriteRawTag(48);
1451         output.WriteUInt64(CqPollCount);
1452       }
1453       if (coreStats_ != null) {
1454         output.WriteRawTag(58);
1455         output.WriteMessage(CoreStats);
1456       }
1457       if (_unknownFields != null) {
1458         _unknownFields.WriteTo(output);
1459       }
1460     #endif
1461     }
1462 
1463     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1464     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)1465     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1466       if (latencies_ != null) {
1467         output.WriteRawTag(10);
1468         output.WriteMessage(Latencies);
1469       }
1470       if (TimeElapsed != 0D) {
1471         output.WriteRawTag(17);
1472         output.WriteDouble(TimeElapsed);
1473       }
1474       if (TimeUser != 0D) {
1475         output.WriteRawTag(25);
1476         output.WriteDouble(TimeUser);
1477       }
1478       if (TimeSystem != 0D) {
1479         output.WriteRawTag(33);
1480         output.WriteDouble(TimeSystem);
1481       }
1482       requestResults_.WriteTo(ref output, _repeated_requestResults_codec);
1483       if (CqPollCount != 0UL) {
1484         output.WriteRawTag(48);
1485         output.WriteUInt64(CqPollCount);
1486       }
1487       if (coreStats_ != null) {
1488         output.WriteRawTag(58);
1489         output.WriteMessage(CoreStats);
1490       }
1491       if (_unknownFields != null) {
1492         _unknownFields.WriteTo(ref output);
1493       }
1494     }
1495     #endif
1496 
1497     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()1498     public int CalculateSize() {
1499       int size = 0;
1500       if (latencies_ != null) {
1501         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Latencies);
1502       }
1503       if (TimeElapsed != 0D) {
1504         size += 1 + 8;
1505       }
1506       if (TimeUser != 0D) {
1507         size += 1 + 8;
1508       }
1509       if (TimeSystem != 0D) {
1510         size += 1 + 8;
1511       }
1512       size += requestResults_.CalculateSize(_repeated_requestResults_codec);
1513       if (CqPollCount != 0UL) {
1514         size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CqPollCount);
1515       }
1516       if (coreStats_ != null) {
1517         size += 1 + pb::CodedOutputStream.ComputeMessageSize(CoreStats);
1518       }
1519       if (_unknownFields != null) {
1520         size += _unknownFields.CalculateSize();
1521       }
1522       return size;
1523     }
1524 
1525     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(ClientStats other)1526     public void MergeFrom(ClientStats other) {
1527       if (other == null) {
1528         return;
1529       }
1530       if (other.latencies_ != null) {
1531         if (latencies_ == null) {
1532           Latencies = new global::Grpc.Testing.HistogramData();
1533         }
1534         Latencies.MergeFrom(other.Latencies);
1535       }
1536       if (other.TimeElapsed != 0D) {
1537         TimeElapsed = other.TimeElapsed;
1538       }
1539       if (other.TimeUser != 0D) {
1540         TimeUser = other.TimeUser;
1541       }
1542       if (other.TimeSystem != 0D) {
1543         TimeSystem = other.TimeSystem;
1544       }
1545       requestResults_.Add(other.requestResults_);
1546       if (other.CqPollCount != 0UL) {
1547         CqPollCount = other.CqPollCount;
1548       }
1549       if (other.coreStats_ != null) {
1550         if (coreStats_ == null) {
1551           CoreStats = new global::Grpc.Core.Stats();
1552         }
1553         CoreStats.MergeFrom(other.CoreStats);
1554       }
1555       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1556     }
1557 
1558     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)1559     public void MergeFrom(pb::CodedInputStream input) {
1560     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1561       input.ReadRawMessage(this);
1562     #else
1563       uint tag;
1564       while ((tag = input.ReadTag()) != 0) {
1565         switch(tag) {
1566           default:
1567             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1568             break;
1569           case 10: {
1570             if (latencies_ == null) {
1571               Latencies = new global::Grpc.Testing.HistogramData();
1572             }
1573             input.ReadMessage(Latencies);
1574             break;
1575           }
1576           case 17: {
1577             TimeElapsed = input.ReadDouble();
1578             break;
1579           }
1580           case 25: {
1581             TimeUser = input.ReadDouble();
1582             break;
1583           }
1584           case 33: {
1585             TimeSystem = input.ReadDouble();
1586             break;
1587           }
1588           case 42: {
1589             requestResults_.AddEntriesFrom(input, _repeated_requestResults_codec);
1590             break;
1591           }
1592           case 48: {
1593             CqPollCount = input.ReadUInt64();
1594             break;
1595           }
1596           case 58: {
1597             if (coreStats_ == null) {
1598               CoreStats = new global::Grpc.Core.Stats();
1599             }
1600             input.ReadMessage(CoreStats);
1601             break;
1602           }
1603         }
1604       }
1605     #endif
1606     }
1607 
1608     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1609     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1610     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1611       uint tag;
1612       while ((tag = input.ReadTag()) != 0) {
1613         switch(tag) {
1614           default:
1615             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1616             break;
1617           case 10: {
1618             if (latencies_ == null) {
1619               Latencies = new global::Grpc.Testing.HistogramData();
1620             }
1621             input.ReadMessage(Latencies);
1622             break;
1623           }
1624           case 17: {
1625             TimeElapsed = input.ReadDouble();
1626             break;
1627           }
1628           case 25: {
1629             TimeUser = input.ReadDouble();
1630             break;
1631           }
1632           case 33: {
1633             TimeSystem = input.ReadDouble();
1634             break;
1635           }
1636           case 42: {
1637             requestResults_.AddEntriesFrom(ref input, _repeated_requestResults_codec);
1638             break;
1639           }
1640           case 48: {
1641             CqPollCount = input.ReadUInt64();
1642             break;
1643           }
1644           case 58: {
1645             if (coreStats_ == null) {
1646               CoreStats = new global::Grpc.Core.Stats();
1647             }
1648             input.ReadMessage(CoreStats);
1649             break;
1650           }
1651         }
1652       }
1653     }
1654     #endif
1655 
1656   }
1657 
1658   #endregion
1659 
1660 }
1661 
1662 #endregion Designer generated code
1663