• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // <auto-generated>
2 //     Generated by the protocol buffer compiler.  DO NOT EDIT!
3 //     source: grpc/core/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.Core {
13 
14   /// <summary>Holder for reflection information generated from grpc/core/stats.proto</summary>
15   public static partial class StatsReflection {
16 
17     #region Descriptor
18     /// <summary>File descriptor for grpc/core/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             "ChVncnBjL2NvcmUvc3RhdHMucHJvdG8SCWdycGMuY29yZSImCgZCdWNrZXQS",
28             "DQoFc3RhcnQYASABKAESDQoFY291bnQYAiABKAQiLwoJSGlzdG9ncmFtEiIK",
29             "B2J1Y2tldHMYASADKAsyES5ncnBjLmNvcmUuQnVja2V0IlsKBk1ldHJpYxIM",
30             "CgRuYW1lGAEgASgJEg8KBWNvdW50GAogASgESAASKQoJaGlzdG9ncmFtGAsg",
31             "ASgLMhQuZ3JwYy5jb3JlLkhpc3RvZ3JhbUgAQgcKBXZhbHVlIisKBVN0YXRz",
32             "EiIKB21ldHJpY3MYASADKAsyES5ncnBjLmNvcmUuTWV0cmljYgZwcm90bzM="));
33       descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
34           new pbr::FileDescriptor[] { },
35           new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
36             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Core.Bucket), global::Grpc.Core.Bucket.Parser, new[]{ "Start", "Count" }, null, null, null),
37             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Core.Histogram), global::Grpc.Core.Histogram.Parser, new[]{ "Buckets" }, null, null, null),
38             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Core.Metric), global::Grpc.Core.Metric.Parser, new[]{ "Name", "Count", "Histogram" }, new[]{ "Value" }, null, null),
39             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Core.Stats), global::Grpc.Core.Stats.Parser, new[]{ "Metrics" }, null, null, null)
40           }));
41     }
42     #endregion
43 
44   }
45   #region Messages
46   public sealed partial class Bucket : pb::IMessage<Bucket> {
47     private static readonly pb::MessageParser<Bucket> _parser = new pb::MessageParser<Bucket>(() => new Bucket());
48     private pb::UnknownFieldSet _unknownFields;
49     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
50     public static pb::MessageParser<Bucket> Parser { get { return _parser; } }
51 
52     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
53     public static pbr::MessageDescriptor Descriptor {
54       get { return global::Grpc.Core.StatsReflection.Descriptor.MessageTypes[0]; }
55     }
56 
57     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
58     pbr::MessageDescriptor pb::IMessage.Descriptor {
59       get { return Descriptor; }
60     }
61 
62     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Bucket()63     public Bucket() {
64       OnConstruction();
65     }
66 
OnConstruction()67     partial void OnConstruction();
68 
69     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Bucket(Bucket other)70     public Bucket(Bucket other) : this() {
71       start_ = other.start_;
72       count_ = other.count_;
73       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
74     }
75 
76     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()77     public Bucket Clone() {
78       return new Bucket(this);
79     }
80 
81     /// <summary>Field number for the "start" field.</summary>
82     public const int StartFieldNumber = 1;
83     private double start_;
84     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
85     public double Start {
86       get { return start_; }
87       set {
88         start_ = value;
89       }
90     }
91 
92     /// <summary>Field number for the "count" field.</summary>
93     public const int CountFieldNumber = 2;
94     private ulong count_;
95     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
96     public ulong Count {
97       get { return count_; }
98       set {
99         count_ = value;
100       }
101     }
102 
103     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)104     public override bool Equals(object other) {
105       return Equals(other as Bucket);
106     }
107 
108     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(Bucket other)109     public bool Equals(Bucket other) {
110       if (ReferenceEquals(other, null)) {
111         return false;
112       }
113       if (ReferenceEquals(other, this)) {
114         return true;
115       }
116       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Start, other.Start)) return false;
117       if (Count != other.Count) return false;
118       return Equals(_unknownFields, other._unknownFields);
119     }
120 
121     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()122     public override int GetHashCode() {
123       int hash = 1;
124       if (Start != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Start);
125       if (Count != 0UL) hash ^= Count.GetHashCode();
126       if (_unknownFields != null) {
127         hash ^= _unknownFields.GetHashCode();
128       }
129       return hash;
130     }
131 
132     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()133     public override string ToString() {
134       return pb::JsonFormatter.ToDiagnosticString(this);
135     }
136 
137     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)138     public void WriteTo(pb::CodedOutputStream output) {
139       if (Start != 0D) {
140         output.WriteRawTag(9);
141         output.WriteDouble(Start);
142       }
143       if (Count != 0UL) {
144         output.WriteRawTag(16);
145         output.WriteUInt64(Count);
146       }
147       if (_unknownFields != null) {
148         _unknownFields.WriteTo(output);
149       }
150     }
151 
152     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()153     public int CalculateSize() {
154       int size = 0;
155       if (Start != 0D) {
156         size += 1 + 8;
157       }
158       if (Count != 0UL) {
159         size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Count);
160       }
161       if (_unknownFields != null) {
162         size += _unknownFields.CalculateSize();
163       }
164       return size;
165     }
166 
167     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(Bucket other)168     public void MergeFrom(Bucket other) {
169       if (other == null) {
170         return;
171       }
172       if (other.Start != 0D) {
173         Start = other.Start;
174       }
175       if (other.Count != 0UL) {
176         Count = other.Count;
177       }
178       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
179     }
180 
181     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)182     public void MergeFrom(pb::CodedInputStream input) {
183       uint tag;
184       while ((tag = input.ReadTag()) != 0) {
185         switch(tag) {
186           default:
187             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
188             break;
189           case 9: {
190             Start = input.ReadDouble();
191             break;
192           }
193           case 16: {
194             Count = input.ReadUInt64();
195             break;
196           }
197         }
198       }
199     }
200 
201   }
202 
203   public sealed partial class Histogram : pb::IMessage<Histogram> {
204     private static readonly pb::MessageParser<Histogram> _parser = new pb::MessageParser<Histogram>(() => new Histogram());
205     private pb::UnknownFieldSet _unknownFields;
206     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
207     public static pb::MessageParser<Histogram> Parser { get { return _parser; } }
208 
209     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
210     public static pbr::MessageDescriptor Descriptor {
211       get { return global::Grpc.Core.StatsReflection.Descriptor.MessageTypes[1]; }
212     }
213 
214     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
215     pbr::MessageDescriptor pb::IMessage.Descriptor {
216       get { return Descriptor; }
217     }
218 
219     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Histogram()220     public Histogram() {
221       OnConstruction();
222     }
223 
OnConstruction()224     partial void OnConstruction();
225 
226     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Histogram(Histogram other)227     public Histogram(Histogram other) : this() {
228       buckets_ = other.buckets_.Clone();
229       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
230     }
231 
232     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()233     public Histogram Clone() {
234       return new Histogram(this);
235     }
236 
237     /// <summary>Field number for the "buckets" field.</summary>
238     public const int BucketsFieldNumber = 1;
239     private static readonly pb::FieldCodec<global::Grpc.Core.Bucket> _repeated_buckets_codec
240         = pb::FieldCodec.ForMessage(10, global::Grpc.Core.Bucket.Parser);
241     private readonly pbc::RepeatedField<global::Grpc.Core.Bucket> buckets_ = new pbc::RepeatedField<global::Grpc.Core.Bucket>();
242     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
243     public pbc::RepeatedField<global::Grpc.Core.Bucket> Buckets {
244       get { return buckets_; }
245     }
246 
247     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)248     public override bool Equals(object other) {
249       return Equals(other as Histogram);
250     }
251 
252     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(Histogram other)253     public bool Equals(Histogram other) {
254       if (ReferenceEquals(other, null)) {
255         return false;
256       }
257       if (ReferenceEquals(other, this)) {
258         return true;
259       }
260       if(!buckets_.Equals(other.buckets_)) return false;
261       return Equals(_unknownFields, other._unknownFields);
262     }
263 
264     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()265     public override int GetHashCode() {
266       int hash = 1;
267       hash ^= buckets_.GetHashCode();
268       if (_unknownFields != null) {
269         hash ^= _unknownFields.GetHashCode();
270       }
271       return hash;
272     }
273 
274     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()275     public override string ToString() {
276       return pb::JsonFormatter.ToDiagnosticString(this);
277     }
278 
279     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)280     public void WriteTo(pb::CodedOutputStream output) {
281       buckets_.WriteTo(output, _repeated_buckets_codec);
282       if (_unknownFields != null) {
283         _unknownFields.WriteTo(output);
284       }
285     }
286 
287     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()288     public int CalculateSize() {
289       int size = 0;
290       size += buckets_.CalculateSize(_repeated_buckets_codec);
291       if (_unknownFields != null) {
292         size += _unknownFields.CalculateSize();
293       }
294       return size;
295     }
296 
297     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(Histogram other)298     public void MergeFrom(Histogram other) {
299       if (other == null) {
300         return;
301       }
302       buckets_.Add(other.buckets_);
303       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
304     }
305 
306     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)307     public void MergeFrom(pb::CodedInputStream input) {
308       uint tag;
309       while ((tag = input.ReadTag()) != 0) {
310         switch(tag) {
311           default:
312             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
313             break;
314           case 10: {
315             buckets_.AddEntriesFrom(input, _repeated_buckets_codec);
316             break;
317           }
318         }
319       }
320     }
321 
322   }
323 
324   public sealed partial class Metric : pb::IMessage<Metric> {
325     private static readonly pb::MessageParser<Metric> _parser = new pb::MessageParser<Metric>(() => new Metric());
326     private pb::UnknownFieldSet _unknownFields;
327     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
328     public static pb::MessageParser<Metric> Parser { get { return _parser; } }
329 
330     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
331     public static pbr::MessageDescriptor Descriptor {
332       get { return global::Grpc.Core.StatsReflection.Descriptor.MessageTypes[2]; }
333     }
334 
335     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
336     pbr::MessageDescriptor pb::IMessage.Descriptor {
337       get { return Descriptor; }
338     }
339 
340     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Metric()341     public Metric() {
342       OnConstruction();
343     }
344 
OnConstruction()345     partial void OnConstruction();
346 
347     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Metric(Metric other)348     public Metric(Metric other) : this() {
349       name_ = other.name_;
350       switch (other.ValueCase) {
351         case ValueOneofCase.Count:
352           Count = other.Count;
353           break;
354         case ValueOneofCase.Histogram:
355           Histogram = other.Histogram.Clone();
356           break;
357       }
358 
359       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
360     }
361 
362     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()363     public Metric Clone() {
364       return new Metric(this);
365     }
366 
367     /// <summary>Field number for the "name" field.</summary>
368     public const int NameFieldNumber = 1;
369     private string name_ = "";
370     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
371     public string Name {
372       get { return name_; }
373       set {
374         name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
375       }
376     }
377 
378     /// <summary>Field number for the "count" field.</summary>
379     public const int CountFieldNumber = 10;
380     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
381     public ulong Count {
382       get { return valueCase_ == ValueOneofCase.Count ? (ulong) value_ : 0UL; }
383       set {
384         value_ = value;
385         valueCase_ = ValueOneofCase.Count;
386       }
387     }
388 
389     /// <summary>Field number for the "histogram" field.</summary>
390     public const int HistogramFieldNumber = 11;
391     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
392     public global::Grpc.Core.Histogram Histogram {
393       get { return valueCase_ == ValueOneofCase.Histogram ? (global::Grpc.Core.Histogram) value_ : null; }
394       set {
395         value_ = value;
396         valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Histogram;
397       }
398     }
399 
400     private object value_;
401     /// <summary>Enum of possible cases for the "value" oneof.</summary>
402     public enum ValueOneofCase {
403       None = 0,
404       Count = 10,
405       Histogram = 11,
406     }
407     private ValueOneofCase valueCase_ = ValueOneofCase.None;
408     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
409     public ValueOneofCase ValueCase {
410       get { return valueCase_; }
411     }
412 
413     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearValue()414     public void ClearValue() {
415       valueCase_ = ValueOneofCase.None;
416       value_ = null;
417     }
418 
419     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)420     public override bool Equals(object other) {
421       return Equals(other as Metric);
422     }
423 
424     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(Metric other)425     public bool Equals(Metric other) {
426       if (ReferenceEquals(other, null)) {
427         return false;
428       }
429       if (ReferenceEquals(other, this)) {
430         return true;
431       }
432       if (Name != other.Name) return false;
433       if (Count != other.Count) return false;
434       if (!object.Equals(Histogram, other.Histogram)) return false;
435       if (ValueCase != other.ValueCase) return false;
436       return Equals(_unknownFields, other._unknownFields);
437     }
438 
439     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()440     public override int GetHashCode() {
441       int hash = 1;
442       if (Name.Length != 0) hash ^= Name.GetHashCode();
443       if (valueCase_ == ValueOneofCase.Count) hash ^= Count.GetHashCode();
444       if (valueCase_ == ValueOneofCase.Histogram) hash ^= Histogram.GetHashCode();
445       hash ^= (int) valueCase_;
446       if (_unknownFields != null) {
447         hash ^= _unknownFields.GetHashCode();
448       }
449       return hash;
450     }
451 
452     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()453     public override string ToString() {
454       return pb::JsonFormatter.ToDiagnosticString(this);
455     }
456 
457     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)458     public void WriteTo(pb::CodedOutputStream output) {
459       if (Name.Length != 0) {
460         output.WriteRawTag(10);
461         output.WriteString(Name);
462       }
463       if (valueCase_ == ValueOneofCase.Count) {
464         output.WriteRawTag(80);
465         output.WriteUInt64(Count);
466       }
467       if (valueCase_ == ValueOneofCase.Histogram) {
468         output.WriteRawTag(90);
469         output.WriteMessage(Histogram);
470       }
471       if (_unknownFields != null) {
472         _unknownFields.WriteTo(output);
473       }
474     }
475 
476     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()477     public int CalculateSize() {
478       int size = 0;
479       if (Name.Length != 0) {
480         size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
481       }
482       if (valueCase_ == ValueOneofCase.Count) {
483         size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Count);
484       }
485       if (valueCase_ == ValueOneofCase.Histogram) {
486         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Histogram);
487       }
488       if (_unknownFields != null) {
489         size += _unknownFields.CalculateSize();
490       }
491       return size;
492     }
493 
494     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(Metric other)495     public void MergeFrom(Metric other) {
496       if (other == null) {
497         return;
498       }
499       if (other.Name.Length != 0) {
500         Name = other.Name;
501       }
502       switch (other.ValueCase) {
503         case ValueOneofCase.Count:
504           Count = other.Count;
505           break;
506         case ValueOneofCase.Histogram:
507           if (Histogram == null) {
508             Histogram = new global::Grpc.Core.Histogram();
509           }
510           Histogram.MergeFrom(other.Histogram);
511           break;
512       }
513 
514       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
515     }
516 
517     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)518     public void MergeFrom(pb::CodedInputStream input) {
519       uint tag;
520       while ((tag = input.ReadTag()) != 0) {
521         switch(tag) {
522           default:
523             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
524             break;
525           case 10: {
526             Name = input.ReadString();
527             break;
528           }
529           case 80: {
530             Count = input.ReadUInt64();
531             break;
532           }
533           case 90: {
534             global::Grpc.Core.Histogram subBuilder = new global::Grpc.Core.Histogram();
535             if (valueCase_ == ValueOneofCase.Histogram) {
536               subBuilder.MergeFrom(Histogram);
537             }
538             input.ReadMessage(subBuilder);
539             Histogram = subBuilder;
540             break;
541           }
542         }
543       }
544     }
545 
546   }
547 
548   public sealed partial class Stats : pb::IMessage<Stats> {
549     private static readonly pb::MessageParser<Stats> _parser = new pb::MessageParser<Stats>(() => new Stats());
550     private pb::UnknownFieldSet _unknownFields;
551     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
552     public static pb::MessageParser<Stats> Parser { get { return _parser; } }
553 
554     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
555     public static pbr::MessageDescriptor Descriptor {
556       get { return global::Grpc.Core.StatsReflection.Descriptor.MessageTypes[3]; }
557     }
558 
559     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
560     pbr::MessageDescriptor pb::IMessage.Descriptor {
561       get { return Descriptor; }
562     }
563 
564     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Stats()565     public Stats() {
566       OnConstruction();
567     }
568 
OnConstruction()569     partial void OnConstruction();
570 
571     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Stats(Stats other)572     public Stats(Stats other) : this() {
573       metrics_ = other.metrics_.Clone();
574       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
575     }
576 
577     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()578     public Stats Clone() {
579       return new Stats(this);
580     }
581 
582     /// <summary>Field number for the "metrics" field.</summary>
583     public const int MetricsFieldNumber = 1;
584     private static readonly pb::FieldCodec<global::Grpc.Core.Metric> _repeated_metrics_codec
585         = pb::FieldCodec.ForMessage(10, global::Grpc.Core.Metric.Parser);
586     private readonly pbc::RepeatedField<global::Grpc.Core.Metric> metrics_ = new pbc::RepeatedField<global::Grpc.Core.Metric>();
587     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
588     public pbc::RepeatedField<global::Grpc.Core.Metric> Metrics {
589       get { return metrics_; }
590     }
591 
592     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)593     public override bool Equals(object other) {
594       return Equals(other as Stats);
595     }
596 
597     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(Stats other)598     public bool Equals(Stats other) {
599       if (ReferenceEquals(other, null)) {
600         return false;
601       }
602       if (ReferenceEquals(other, this)) {
603         return true;
604       }
605       if(!metrics_.Equals(other.metrics_)) return false;
606       return Equals(_unknownFields, other._unknownFields);
607     }
608 
609     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()610     public override int GetHashCode() {
611       int hash = 1;
612       hash ^= metrics_.GetHashCode();
613       if (_unknownFields != null) {
614         hash ^= _unknownFields.GetHashCode();
615       }
616       return hash;
617     }
618 
619     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()620     public override string ToString() {
621       return pb::JsonFormatter.ToDiagnosticString(this);
622     }
623 
624     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)625     public void WriteTo(pb::CodedOutputStream output) {
626       metrics_.WriteTo(output, _repeated_metrics_codec);
627       if (_unknownFields != null) {
628         _unknownFields.WriteTo(output);
629       }
630     }
631 
632     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()633     public int CalculateSize() {
634       int size = 0;
635       size += metrics_.CalculateSize(_repeated_metrics_codec);
636       if (_unknownFields != null) {
637         size += _unknownFields.CalculateSize();
638       }
639       return size;
640     }
641 
642     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(Stats other)643     public void MergeFrom(Stats other) {
644       if (other == null) {
645         return;
646       }
647       metrics_.Add(other.metrics_);
648       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
649     }
650 
651     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)652     public void MergeFrom(pb::CodedInputStream input) {
653       uint tag;
654       while ((tag = input.ReadTag()) != 0) {
655         switch(tag) {
656           default:
657             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
658             break;
659           case 10: {
660             metrics_.AddEntriesFrom(input, _repeated_metrics_codec);
661             break;
662           }
663         }
664       }
665     }
666 
667   }
668 
669   #endregion
670 
671 }
672 
673 #endregion Designer generated code
674