2 // Generated by the protocol buffer compiler. DO NOT EDIT!
3 // source: src/proto/grpc/testing/stats.proto
5 #pragma warning disable 1591, 0612, 3021
6 #region Designer generated code
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 {
14 /// <summary>Holder for reflection information generated from src/proto/grpc/testing/stats.proto</summary>
15 public static partial class StatsReflection {
18 /// <summary>File descriptor for src/proto/grpc/testing/stats.proto</summary>
19 public static pbr::FileDescriptor Descriptor {
20 get { return descriptor; }
22 private static pbr::FileDescriptor descriptor;
24 static StatsReflection() {
25 byte[] descriptorData = global::System.Convert.FromBase64String(
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)
58 public sealed partial class ServerStats : pb::IMessage<ServerStats> {
59 private static readonly pb::MessageParser<ServerStats> _parser = new pb::MessageParser<ServerStats>(() => new ServerStats());
60 private pb::UnknownFieldSet _unknownFields;
61 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
62 public static pb::MessageParser<ServerStats> Parser { get { return _parser; } }
64 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
65 public static pbr::MessageDescriptor Descriptor {
66 get { return global::Grpc.Testing.StatsReflection.Descriptor.MessageTypes[0]; }
69 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
70 pbr::MessageDescriptor pb::IMessage.Descriptor {
71 get { return Descriptor; }
74 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
75 public ServerStats() {
79 partial void OnConstruction();
81 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
82 public ServerStats(ServerStats other) : this() {
83 timeElapsed_ = other.timeElapsed_;
84 timeUser_ = other.timeUser_;
85 timeSystem_ = other.timeSystem_;
86 totalCpuTime_ = other.totalCpuTime_;
87 idleCpuTime_ = other.idleCpuTime_;
88 cqPollCount_ = other.cqPollCount_;
89 coreStats_ = other.coreStats_ != null ? other.coreStats_.Clone() : null;
90 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
93 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
94 public ServerStats Clone() {
95 return new ServerStats(this);
98 /// <summary>Field number for the "time_elapsed" field.</summary>
99 public const int TimeElapsedFieldNumber = 1;
100 private double timeElapsed_;
102 /// wall clock time change in seconds since last reset
104 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
105 public double TimeElapsed {
106 get { return timeElapsed_; }
108 timeElapsed_ = value;
112 /// <summary>Field number for the "time_user" field.</summary>
113 public const int TimeUserFieldNumber = 2;
114 private double timeUser_;
116 /// change in user time (in seconds) used by the server since last reset
118 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
119 public double TimeUser {
120 get { return timeUser_; }
126 /// <summary>Field number for the "time_system" field.</summary>
127 public const int TimeSystemFieldNumber = 3;
128 private double timeSystem_;
130 /// change in server time (in seconds) used by the server process and all
131 /// threads since last reset
133 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
134 public double TimeSystem {
135 get { return timeSystem_; }
141 /// <summary>Field number for the "total_cpu_time" field.</summary>
142 public const int TotalCpuTimeFieldNumber = 4;
143 private ulong totalCpuTime_;
145 /// change in total cpu time of the server (data from proc/stat)
147 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
148 public ulong TotalCpuTime {
149 get { return totalCpuTime_; }
151 totalCpuTime_ = value;
155 /// <summary>Field number for the "idle_cpu_time" field.</summary>
156 public const int IdleCpuTimeFieldNumber = 5;
157 private ulong idleCpuTime_;
159 /// change in idle time of the server (data from proc/stat)
161 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
162 public ulong IdleCpuTime {
163 get { return idleCpuTime_; }
165 idleCpuTime_ = value;
169 /// <summary>Field number for the "cq_poll_count" field.</summary>
170 public const int CqPollCountFieldNumber = 6;
171 private ulong cqPollCount_;
173 /// Number of polls called inside completion queue
175 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
176 public ulong CqPollCount {
177 get { return cqPollCount_; }
179 cqPollCount_ = value;
183 /// <summary>Field number for the "core_stats" field.</summary>
184 public const int CoreStatsFieldNumber = 7;
185 private global::Grpc.Core.Stats coreStats_;
187 /// Core library stats
189 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
190 public global::Grpc.Core.Stats CoreStats {
191 get { return coreStats_; }
197 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
198 public override bool Equals(object other) {
199 return Equals(other as ServerStats);
202 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
203 public bool Equals(ServerStats other) {
204 if (ReferenceEquals(other, null)) {
207 if (ReferenceEquals(other, this)) {
210 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TimeElapsed, other.TimeElapsed)) return false;
211 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TimeUser, other.TimeUser)) return false;
212 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TimeSystem, other.TimeSystem)) return false;
213 if (TotalCpuTime != other.TotalCpuTime) return false;
214 if (IdleCpuTime != other.IdleCpuTime) return false;
215 if (CqPollCount != other.CqPollCount) return false;
216 if (!object.Equals(CoreStats, other.CoreStats)) return false;
217 return Equals(_unknownFields, other._unknownFields);
220 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
221 public override int GetHashCode() {
223 if (TimeElapsed != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TimeElapsed);
224 if (TimeUser != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TimeUser);
225 if (TimeSystem != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TimeSystem);
226 if (TotalCpuTime != 0UL) hash ^= TotalCpuTime.GetHashCode();
227 if (IdleCpuTime != 0UL) hash ^= IdleCpuTime.GetHashCode();
228 if (CqPollCount != 0UL) hash ^= CqPollCount.GetHashCode();
229 if (coreStats_ != null) hash ^= CoreStats.GetHashCode();
230 if (_unknownFields != null) {
231 hash ^= _unknownFields.GetHashCode();
236 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
237 public override string ToString() {
238 return pb::JsonFormatter.ToDiagnosticString(this);
241 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
242 public void WriteTo(pb::CodedOutputStream output) {
243 if (TimeElapsed != 0D) {
244 output.WriteRawTag(9);
245 output.WriteDouble(TimeElapsed);
247 if (TimeUser != 0D) {
248 output.WriteRawTag(17);
249 output.WriteDouble(TimeUser);
251 if (TimeSystem != 0D) {
252 output.WriteRawTag(25);
253 output.WriteDouble(TimeSystem);
255 if (TotalCpuTime != 0UL) {
256 output.WriteRawTag(32);
257 output.WriteUInt64(TotalCpuTime);
259 if (IdleCpuTime != 0UL) {
260 output.WriteRawTag(40);
261 output.WriteUInt64(IdleCpuTime);
263 if (CqPollCount != 0UL) {
264 output.WriteRawTag(48);
265 output.WriteUInt64(CqPollCount);
267 if (coreStats_ != null) {
268 output.WriteRawTag(58);
269 output.WriteMessage(CoreStats);
271 if (_unknownFields != null) {
272 _unknownFields.WriteTo(output);
276 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
277 public int CalculateSize() {
279 if (TimeElapsed != 0D) {
282 if (TimeUser != 0D) {
285 if (TimeSystem != 0D) {
288 if (TotalCpuTime != 0UL) {
289 size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TotalCpuTime);
291 if (IdleCpuTime != 0UL) {
292 size += 1 + pb::CodedOutputStream.ComputeUInt64Size(IdleCpuTime);
294 if (CqPollCount != 0UL) {
295 size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CqPollCount);
297 if (coreStats_ != null) {
298 size += 1 + pb::CodedOutputStream.ComputeMessageSize(CoreStats);
300 if (_unknownFields != null) {
301 size += _unknownFields.CalculateSize();
306 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
307 public void MergeFrom(ServerStats other) {
311 if (other.TimeElapsed != 0D) {
312 TimeElapsed = other.TimeElapsed;
314 if (other.TimeUser != 0D) {
315 TimeUser = other.TimeUser;
317 if (other.TimeSystem != 0D) {
318 TimeSystem = other.TimeSystem;
320 if (other.TotalCpuTime != 0UL) {
321 TotalCpuTime = other.TotalCpuTime;
323 if (other.IdleCpuTime != 0UL) {
324 IdleCpuTime = other.IdleCpuTime;
326 if (other.CqPollCount != 0UL) {
327 CqPollCount = other.CqPollCount;
329 if (other.coreStats_ != null) {
330 if (coreStats_ == null) {
331 CoreStats = new global::Grpc.Core.Stats();
333 CoreStats.MergeFrom(other.CoreStats);
335 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
338 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
339 public void MergeFrom(pb::CodedInputStream input) {
341 while ((tag = input.ReadTag()) != 0) {
344 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
347 TimeElapsed = input.ReadDouble();
351 TimeUser = input.ReadDouble();
355 TimeSystem = input.ReadDouble();
359 TotalCpuTime = input.ReadUInt64();
363 IdleCpuTime = input.ReadUInt64();
367 CqPollCount = input.ReadUInt64();
371 if (coreStats_ == null) {
372 CoreStats = new global::Grpc.Core.Stats();
374 input.ReadMessage(CoreStats);
384 /// Histogram params based on grpc/support/histogram.c
386 public sealed partial class HistogramParams : pb::IMessage<HistogramParams> {
387 private static readonly pb::MessageParser<HistogramParams> _parser = new pb::MessageParser<HistogramParams>(() => new HistogramParams());
388 private pb::UnknownFieldSet _unknownFields;
389 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
390 public static pb::MessageParser<HistogramParams> Parser { get { return _parser; } }
392 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
393 public static pbr::MessageDescriptor Descriptor {
394 get { return global::Grpc.Testing.StatsReflection.Descriptor.MessageTypes[1]; }
397 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
398 pbr::MessageDescriptor pb::IMessage.Descriptor {
399 get { return Descriptor; }
402 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
403 public HistogramParams() {
407 partial void OnConstruction();
409 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
410 public HistogramParams(HistogramParams other) : this() {
411 resolution_ = other.resolution_;
412 maxPossible_ = other.maxPossible_;
413 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
416 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
417 public HistogramParams Clone() {
418 return new HistogramParams(this);
421 /// <summary>Field number for the "resolution" field.</summary>
422 public const int ResolutionFieldNumber = 1;
423 private double resolution_;
425 /// first bucket is [0, 1 + resolution)
427 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
428 public double Resolution {
429 get { return resolution_; }
435 /// <summary>Field number for the "max_possible" field.</summary>
436 public const int MaxPossibleFieldNumber = 2;
437 private double maxPossible_;
439 /// use enough buckets to allow this value
441 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
442 public double MaxPossible {
443 get { return maxPossible_; }
445 maxPossible_ = value;
449 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
450 public override bool Equals(object other) {
451 return Equals(other as HistogramParams);
454 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
455 public bool Equals(HistogramParams other) {
456 if (ReferenceEquals(other, null)) {
459 if (ReferenceEquals(other, this)) {
462 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Resolution, other.Resolution)) return false;
463 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(MaxPossible, other.MaxPossible)) return false;
464 return Equals(_unknownFields, other._unknownFields);
467 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
468 public override int GetHashCode() {
470 if (Resolution != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Resolution);
471 if (MaxPossible != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(MaxPossible);
472 if (_unknownFields != null) {
473 hash ^= _unknownFields.GetHashCode();
478 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
479 public override string ToString() {
480 return pb::JsonFormatter.ToDiagnosticString(this);
483 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
484 public void WriteTo(pb::CodedOutputStream output) {
485 if (Resolution != 0D) {
486 output.WriteRawTag(9);
487 output.WriteDouble(Resolution);
489 if (MaxPossible != 0D) {
490 output.WriteRawTag(17);
491 output.WriteDouble(MaxPossible);
493 if (_unknownFields != null) {
494 _unknownFields.WriteTo(output);
498 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
499 public int CalculateSize() {
501 if (Resolution != 0D) {
504 if (MaxPossible != 0D) {
507 if (_unknownFields != null) {
508 size += _unknownFields.CalculateSize();
513 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
514 public void MergeFrom(HistogramParams other) {
518 if (other.Resolution != 0D) {
519 Resolution = other.Resolution;
521 if (other.MaxPossible != 0D) {
522 MaxPossible = other.MaxPossible;
524 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
527 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
528 public void MergeFrom(pb::CodedInputStream input) {
530 while ((tag = input.ReadTag()) != 0) {
533 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
536 Resolution = input.ReadDouble();
540 MaxPossible = input.ReadDouble();
550 /// Histogram data based on grpc/support/histogram.c
552 public sealed partial class HistogramData : pb::IMessage<HistogramData> {
553 private static readonly pb::MessageParser<HistogramData> _parser = new pb::MessageParser<HistogramData>(() => new HistogramData());
554 private pb::UnknownFieldSet _unknownFields;
555 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
556 public static pb::MessageParser<HistogramData> Parser { get { return _parser; } }
558 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
559 public static pbr::MessageDescriptor Descriptor {
560 get { return global::Grpc.Testing.StatsReflection.Descriptor.MessageTypes[2]; }
563 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
564 pbr::MessageDescriptor pb::IMessage.Descriptor {
565 get { return Descriptor; }
568 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
569 public HistogramData() {
573 partial void OnConstruction();
575 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
576 public HistogramData(HistogramData other) : this() {
577 bucket_ = other.bucket_.Clone();
578 minSeen_ = other.minSeen_;
579 maxSeen_ = other.maxSeen_;
581 sumOfSquares_ = other.sumOfSquares_;
582 count_ = other.count_;
583 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
586 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
587 public HistogramData Clone() {
588 return new HistogramData(this);
591 /// <summary>Field number for the "bucket" field.</summary>
592 public const int BucketFieldNumber = 1;
593 private static readonly pb::FieldCodec<uint> _repeated_bucket_codec
594 = pb::FieldCodec.ForUInt32(10);
595 private readonly pbc::RepeatedField<uint> bucket_ = new pbc::RepeatedField<uint>();
596 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
597 public pbc::RepeatedField<uint> Bucket {
598 get { return bucket_; }
601 /// <summary>Field number for the "min_seen" field.</summary>
602 public const int MinSeenFieldNumber = 2;
603 private double minSeen_;
604 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
605 public double MinSeen {
606 get { return minSeen_; }
612 /// <summary>Field number for the "max_seen" field.</summary>
613 public const int MaxSeenFieldNumber = 3;
614 private double maxSeen_;
615 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
616 public double MaxSeen {
617 get { return maxSeen_; }
623 /// <summary>Field number for the "sum" field.</summary>
624 public const int SumFieldNumber = 4;
626 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
634 /// <summary>Field number for the "sum_of_squares" field.</summary>
635 public const int SumOfSquaresFieldNumber = 5;
636 private double sumOfSquares_;
637 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
638 public double SumOfSquares {
639 get { return sumOfSquares_; }
641 sumOfSquares_ = value;
645 /// <summary>Field number for the "count" field.</summary>
646 public const int CountFieldNumber = 6;
647 private double count_;
648 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
649 public double Count {
650 get { return count_; }
656 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
657 public override bool Equals(object other) {
658 return Equals(other as HistogramData);
661 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
662 public bool Equals(HistogramData other) {
663 if (ReferenceEquals(other, null)) {
666 if (ReferenceEquals(other, this)) {
669 if(!bucket_.Equals(other.bucket_)) return false;
670 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(MinSeen, other.MinSeen)) return false;
671 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(MaxSeen, other.MaxSeen)) return false;
672 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Sum, other.Sum)) return false;
673 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SumOfSquares, other.SumOfSquares)) return false;
674 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Count, other.Count)) return false;
675 return Equals(_unknownFields, other._unknownFields);
678 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
679 public override int GetHashCode() {
681 hash ^= bucket_.GetHashCode();
682 if (MinSeen != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(MinSeen);
683 if (MaxSeen != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(MaxSeen);
684 if (Sum != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Sum);
685 if (SumOfSquares != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SumOfSquares);
686 if (Count != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Count);
687 if (_unknownFields != null) {
688 hash ^= _unknownFields.GetHashCode();
693 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
694 public override string ToString() {
695 return pb::JsonFormatter.ToDiagnosticString(this);
698 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
699 public void WriteTo(pb::CodedOutputStream output) {
700 bucket_.WriteTo(output, _repeated_bucket_codec);
702 output.WriteRawTag(17);
703 output.WriteDouble(MinSeen);
706 output.WriteRawTag(25);
707 output.WriteDouble(MaxSeen);
710 output.WriteRawTag(33);
711 output.WriteDouble(Sum);
713 if (SumOfSquares != 0D) {
714 output.WriteRawTag(41);
715 output.WriteDouble(SumOfSquares);
718 output.WriteRawTag(49);
719 output.WriteDouble(Count);
721 if (_unknownFields != null) {
722 _unknownFields.WriteTo(output);
726 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
727 public int CalculateSize() {
729 size += bucket_.CalculateSize(_repeated_bucket_codec);
739 if (SumOfSquares != 0D) {
745 if (_unknownFields != null) {
746 size += _unknownFields.CalculateSize();
751 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
752 public void MergeFrom(HistogramData other) {
756 bucket_.Add(other.bucket_);
757 if (other.MinSeen != 0D) {
758 MinSeen = other.MinSeen;
760 if (other.MaxSeen != 0D) {
761 MaxSeen = other.MaxSeen;
763 if (other.Sum != 0D) {
766 if (other.SumOfSquares != 0D) {
767 SumOfSquares = other.SumOfSquares;
769 if (other.Count != 0D) {
772 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
775 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
776 public void MergeFrom(pb::CodedInputStream input) {
778 while ((tag = input.ReadTag()) != 0) {
781 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
785 bucket_.AddEntriesFrom(input, _repeated_bucket_codec);
789 MinSeen = input.ReadDouble();
793 MaxSeen = input.ReadDouble();
797 Sum = input.ReadDouble();
801 SumOfSquares = input.ReadDouble();
805 Count = input.ReadDouble();
814 public sealed partial class RequestResultCount : pb::IMessage<RequestResultCount> {
815 private static readonly pb::MessageParser<RequestResultCount> _parser = new pb::MessageParser<RequestResultCount>(() => new RequestResultCount());
816 private pb::UnknownFieldSet _unknownFields;
817 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
818 public static pb::MessageParser<RequestResultCount> Parser { get { return _parser; } }
820 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
821 public static pbr::MessageDescriptor Descriptor {
822 get { return global::Grpc.Testing.StatsReflection.Descriptor.MessageTypes[3]; }
825 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
826 pbr::MessageDescriptor pb::IMessage.Descriptor {
827 get { return Descriptor; }
830 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
831 public RequestResultCount() {
835 partial void OnConstruction();
837 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
838 public RequestResultCount(RequestResultCount other) : this() {
839 statusCode_ = other.statusCode_;
840 count_ = other.count_;
841 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
844 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
845 public RequestResultCount Clone() {
846 return new RequestResultCount(this);
849 /// <summary>Field number for the "status_code" field.</summary>
850 public const int StatusCodeFieldNumber = 1;
851 private int statusCode_;
852 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
853 public int StatusCode {
854 get { return statusCode_; }
860 /// <summary>Field number for the "count" field.</summary>
861 public const int CountFieldNumber = 2;
863 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
865 get { return count_; }
871 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
872 public override bool Equals(object other) {
873 return Equals(other as RequestResultCount);
876 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
877 public bool Equals(RequestResultCount other) {
878 if (ReferenceEquals(other, null)) {
881 if (ReferenceEquals(other, this)) {
884 if (StatusCode != other.StatusCode) return false;
885 if (Count != other.Count) return false;
886 return Equals(_unknownFields, other._unknownFields);
889 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
890 public override int GetHashCode() {
892 if (StatusCode != 0) hash ^= StatusCode.GetHashCode();
893 if (Count != 0L) hash ^= Count.GetHashCode();
894 if (_unknownFields != null) {
895 hash ^= _unknownFields.GetHashCode();
900 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
901 public override string ToString() {
902 return pb::JsonFormatter.ToDiagnosticString(this);
905 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
906 public void WriteTo(pb::CodedOutputStream output) {
907 if (StatusCode != 0) {
908 output.WriteRawTag(8);
909 output.WriteInt32(StatusCode);
912 output.WriteRawTag(16);
913 output.WriteInt64(Count);
915 if (_unknownFields != null) {
916 _unknownFields.WriteTo(output);
920 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
921 public int CalculateSize() {
923 if (StatusCode != 0) {
924 size += 1 + pb::CodedOutputStream.ComputeInt32Size(StatusCode);
927 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Count);
929 if (_unknownFields != null) {
930 size += _unknownFields.CalculateSize();
935 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
936 public void MergeFrom(RequestResultCount other) {
940 if (other.StatusCode != 0) {
941 StatusCode = other.StatusCode;
943 if (other.Count != 0L) {
946 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
949 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
950 public void MergeFrom(pb::CodedInputStream input) {
952 while ((tag = input.ReadTag()) != 0) {
955 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
958 StatusCode = input.ReadInt32();
962 Count = input.ReadInt64();
971 public sealed partial class ClientStats : pb::IMessage<ClientStats> {
972 private static readonly pb::MessageParser<ClientStats> _parser = new pb::MessageParser<ClientStats>(() => new ClientStats());
973 private pb::UnknownFieldSet _unknownFields;
974 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
975 public static pb::MessageParser<ClientStats> Parser { get { return _parser; } }
977 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
978 public static pbr::MessageDescriptor Descriptor {
979 get { return global::Grpc.Testing.StatsReflection.Descriptor.MessageTypes[4]; }
982 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
983 pbr::MessageDescriptor pb::IMessage.Descriptor {
984 get { return Descriptor; }
987 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
988 public ClientStats() {
992 partial void OnConstruction();
994 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
995 public ClientStats(ClientStats other) : this() {
996 latencies_ = other.latencies_ != null ? other.latencies_.Clone() : null;
997 timeElapsed_ = other.timeElapsed_;
998 timeUser_ = other.timeUser_;
999 timeSystem_ = other.timeSystem_;
1000 requestResults_ = other.requestResults_.Clone();
1001 cqPollCount_ = other.cqPollCount_;
1002 coreStats_ = other.coreStats_ != null ? other.coreStats_.Clone() : null;
1003 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1006 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1007 public ClientStats Clone() {
1008 return new ClientStats(this);
1011 /// <summary>Field number for the "latencies" field.</summary>
1012 public const int LatenciesFieldNumber = 1;
1013 private global::Grpc.Testing.HistogramData latencies_;
1015 /// Latency histogram. Data points are in nanoseconds.
1017 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1018 public global::Grpc.Testing.HistogramData Latencies {
1019 get { return latencies_; }
1025 /// <summary>Field number for the "time_elapsed" field.</summary>
1026 public const int TimeElapsedFieldNumber = 2;
1027 private double timeElapsed_;
1029 /// See ServerStats for details.
1031 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1032 public double TimeElapsed {
1033 get { return timeElapsed_; }
1035 timeElapsed_ = value;
1039 /// <summary>Field number for the "time_user" field.</summary>
1040 public const int TimeUserFieldNumber = 3;
1041 private double timeUser_;
1042 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1043 public double TimeUser {
1044 get { return timeUser_; }
1050 /// <summary>Field number for the "time_system" field.</summary>
1051 public const int TimeSystemFieldNumber = 4;
1052 private double timeSystem_;
1053 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1054 public double TimeSystem {
1055 get { return timeSystem_; }
1057 timeSystem_ = value;
1061 /// <summary>Field number for the "request_results" field.</summary>
1062 public const int RequestResultsFieldNumber = 5;
1063 private static readonly pb::FieldCodec<global::Grpc.Testing.RequestResultCount> _repeated_requestResults_codec
1064 = pb::FieldCodec.ForMessage(42, global::Grpc.Testing.RequestResultCount.Parser);
1065 private readonly pbc::RepeatedField<global::Grpc.Testing.RequestResultCount> requestResults_ = new pbc::RepeatedField<global::Grpc.Testing.RequestResultCount>();
1067 /// Number of failed requests (one row per status code seen)
1069 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1070 public pbc::RepeatedField<global::Grpc.Testing.RequestResultCount> RequestResults {
1071 get { return requestResults_; }
1074 /// <summary>Field number for the "cq_poll_count" field.</summary>
1075 public const int CqPollCountFieldNumber = 6;
1076 private ulong cqPollCount_;
1078 /// Number of polls called inside completion queue
1080 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1081 public ulong CqPollCount {
1082 get { return cqPollCount_; }
1084 cqPollCount_ = value;
1088 /// <summary>Field number for the "core_stats" field.</summary>
1089 public const int CoreStatsFieldNumber = 7;
1090 private global::Grpc.Core.Stats coreStats_;
1092 /// Core library stats
1094 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1095 public global::Grpc.Core.Stats CoreStats {
1096 get { return coreStats_; }
1102 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1103 public override bool Equals(object other) {
1104 return Equals(other as ClientStats);
1107 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1108 public bool Equals(ClientStats other) {
1109 if (ReferenceEquals(other, null)) {
1112 if (ReferenceEquals(other, this)) {
1115 if (!object.Equals(Latencies, other.Latencies)) return false;
1116 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TimeElapsed, other.TimeElapsed)) return false;
1117 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TimeUser, other.TimeUser)) return false;
1118 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TimeSystem, other.TimeSystem)) return false;
1119 if(!requestResults_.Equals(other.requestResults_)) return false;
1120 if (CqPollCount != other.CqPollCount) return false;
1121 if (!object.Equals(CoreStats, other.CoreStats)) return false;
1122 return Equals(_unknownFields, other._unknownFields);
1125 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1126 public override int GetHashCode() {
1128 if (latencies_ != null) hash ^= Latencies.GetHashCode();
1129 if (TimeElapsed != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TimeElapsed);
1130 if (TimeUser != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TimeUser);
1131 if (TimeSystem != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TimeSystem);
1132 hash ^= requestResults_.GetHashCode();
1133 if (CqPollCount != 0UL) hash ^= CqPollCount.GetHashCode();
1134 if (coreStats_ != null) hash ^= CoreStats.GetHashCode();
1135 if (_unknownFields != null) {
1136 hash ^= _unknownFields.GetHashCode();
1141 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1142 public override string ToString() {
1143 return pb::JsonFormatter.ToDiagnosticString(this);
1146 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1147 public void WriteTo(pb::CodedOutputStream output) {
1148 if (latencies_ != null) {
1149 output.WriteRawTag(10);
1150 output.WriteMessage(Latencies);
1152 if (TimeElapsed != 0D) {
1153 output.WriteRawTag(17);
1154 output.WriteDouble(TimeElapsed);
1156 if (TimeUser != 0D) {
1157 output.WriteRawTag(25);
1158 output.WriteDouble(TimeUser);
1160 if (TimeSystem != 0D) {
1161 output.WriteRawTag(33);
1162 output.WriteDouble(TimeSystem);
1164 requestResults_.WriteTo(output, _repeated_requestResults_codec);
1165 if (CqPollCount != 0UL) {
1166 output.WriteRawTag(48);
1167 output.WriteUInt64(CqPollCount);
1169 if (coreStats_ != null) {
1170 output.WriteRawTag(58);
1171 output.WriteMessage(CoreStats);
1173 if (_unknownFields != null) {
1174 _unknownFields.WriteTo(output);
1178 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1179 public int CalculateSize() {
1181 if (latencies_ != null) {
1182 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Latencies);
1184 if (TimeElapsed != 0D) {
1187 if (TimeUser != 0D) {
1190 if (TimeSystem != 0D) {
1193 size += requestResults_.CalculateSize(_repeated_requestResults_codec);
1194 if (CqPollCount != 0UL) {
1195 size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CqPollCount);
1197 if (coreStats_ != null) {
1198 size += 1 + pb::CodedOutputStream.ComputeMessageSize(CoreStats);
1200 if (_unknownFields != null) {
1201 size += _unknownFields.CalculateSize();
1206 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1207 public void MergeFrom(ClientStats other) {
1208 if (other == null) {
1211 if (other.latencies_ != null) {
1212 if (latencies_ == null) {
1213 Latencies = new global::Grpc.Testing.HistogramData();
1215 Latencies.MergeFrom(other.Latencies);
1217 if (other.TimeElapsed != 0D) {
1218 TimeElapsed = other.TimeElapsed;
1220 if (other.TimeUser != 0D) {
1221 TimeUser = other.TimeUser;
1223 if (other.TimeSystem != 0D) {
1224 TimeSystem = other.TimeSystem;
1226 requestResults_.Add(other.requestResults_);
1227 if (other.CqPollCount != 0UL) {
1228 CqPollCount = other.CqPollCount;
1230 if (other.coreStats_ != null) {
1231 if (coreStats_ == null) {
1232 CoreStats = new global::Grpc.Core.Stats();
1234 CoreStats.MergeFrom(other.CoreStats);
1236 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1239 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1240 public void MergeFrom(pb::CodedInputStream input) {
1242 while ((tag = input.ReadTag()) != 0) {
1245 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1248 if (latencies_ == null) {
1249 Latencies = new global::Grpc.Testing.HistogramData();
1251 input.ReadMessage(Latencies);
1255 TimeElapsed = input.ReadDouble();
1259 TimeUser = input.ReadDouble();
1263 TimeSystem = input.ReadDouble();
1267 requestResults_.AddEntriesFrom(input, _repeated_requestResults_codec);
1271 CqPollCount = input.ReadUInt64();
1275 if (coreStats_ == null) {
1276 CoreStats = new global::Grpc.Core.Stats();
1278 input.ReadMessage(CoreStats);
1291 #endregion Designer generated code