1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: metrics.proto
3
4 #ifndef PROTOBUF_metrics_2eproto__INCLUDED
5 #define PROTOBUF_metrics_2eproto__INCLUDED
6
7 #include <string>
8
9 #include <google/protobuf/stubs/common.h>
10
11 #if GOOGLE_PROTOBUF_VERSION < 2006000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21
22 #include <google/protobuf/generated_message_util.h>
23 #include <google/protobuf/message.h>
24 #include <google/protobuf/repeated_field.h>
25 #include <google/protobuf/extension_set.h>
26 #include <google/protobuf/generated_enum_reflection.h>
27 #include <google/protobuf/unknown_field_set.h>
28 // @@protoc_insertion_point(includes)
29
30 namespace io {
31 namespace prometheus {
32 namespace client {
33
34 // Internal implementation detail -- do not call these.
35 void protobuf_AddDesc_metrics_2eproto();
36 void protobuf_AssignDesc_metrics_2eproto();
37 void protobuf_ShutdownFile_metrics_2eproto();
38
39 class LabelPair;
40 class Gauge;
41 class Counter;
42 class Quantile;
43 class Summary;
44 class Untyped;
45 class Histogram;
46 class Bucket;
47 class Metric;
48 class MetricFamily;
49
50 enum MetricType {
51 COUNTER = 0,
52 GAUGE = 1,
53 SUMMARY = 2,
54 UNTYPED = 3,
55 HISTOGRAM = 4
56 };
57 bool MetricType_IsValid(int value);
58 const MetricType MetricType_MIN = COUNTER;
59 const MetricType MetricType_MAX = HISTOGRAM;
60 const int MetricType_ARRAYSIZE = MetricType_MAX + 1;
61
62 const ::google::protobuf::EnumDescriptor* MetricType_descriptor();
MetricType_Name(MetricType value)63 inline const ::std::string& MetricType_Name(MetricType value) {
64 return ::google::protobuf::internal::NameOfEnum(
65 MetricType_descriptor(), value);
66 }
MetricType_Parse(const::std::string & name,MetricType * value)67 inline bool MetricType_Parse(
68 const ::std::string& name, MetricType* value) {
69 return ::google::protobuf::internal::ParseNamedEnum<MetricType>(
70 MetricType_descriptor(), name, value);
71 }
72 // ===================================================================
73
74 class LabelPair : public ::google::protobuf::Message {
75 public:
76 LabelPair();
77 virtual ~LabelPair();
78
79 LabelPair(const LabelPair& from);
80
81 inline LabelPair& operator=(const LabelPair& from) {
82 CopyFrom(from);
83 return *this;
84 }
85
unknown_fields()86 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
87 return _unknown_fields_;
88 }
89
mutable_unknown_fields()90 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
91 return &_unknown_fields_;
92 }
93
94 static const ::google::protobuf::Descriptor* descriptor();
95 static const LabelPair& default_instance();
96
97 void Swap(LabelPair* other);
98
99 // implements Message ----------------------------------------------
100
101 LabelPair* New() const;
102 void CopyFrom(const ::google::protobuf::Message& from);
103 void MergeFrom(const ::google::protobuf::Message& from);
104 void CopyFrom(const LabelPair& from);
105 void MergeFrom(const LabelPair& from);
106 void Clear();
107 bool IsInitialized() const;
108
109 int ByteSize() const;
110 bool MergePartialFromCodedStream(
111 ::google::protobuf::io::CodedInputStream* input);
112 void SerializeWithCachedSizes(
113 ::google::protobuf::io::CodedOutputStream* output) const;
114 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()115 int GetCachedSize() const { return _cached_size_; }
116 private:
117 void SharedCtor();
118 void SharedDtor();
119 void SetCachedSize(int size) const;
120 public:
121 ::google::protobuf::Metadata GetMetadata() const;
122
123 // nested types ----------------------------------------------------
124
125 // accessors -------------------------------------------------------
126
127 // optional string name = 1;
128 inline bool has_name() const;
129 inline void clear_name();
130 static const int kNameFieldNumber = 1;
131 inline const ::std::string& name() const;
132 inline void set_name(const ::std::string& value);
133 inline void set_name(const char* value);
134 inline void set_name(const char* value, size_t size);
135 inline ::std::string* mutable_name();
136 inline ::std::string* release_name();
137 inline void set_allocated_name(::std::string* name);
138
139 // optional string value = 2;
140 inline bool has_value() const;
141 inline void clear_value();
142 static const int kValueFieldNumber = 2;
143 inline const ::std::string& value() const;
144 inline void set_value(const ::std::string& value);
145 inline void set_value(const char* value);
146 inline void set_value(const char* value, size_t size);
147 inline ::std::string* mutable_value();
148 inline ::std::string* release_value();
149 inline void set_allocated_value(::std::string* value);
150
151 // @@protoc_insertion_point(class_scope:io.prometheus.client.LabelPair)
152 private:
153 inline void set_has_name();
154 inline void clear_has_name();
155 inline void set_has_value();
156 inline void clear_has_value();
157
158 ::google::protobuf::UnknownFieldSet _unknown_fields_;
159
160 ::google::protobuf::uint32 _has_bits_[1];
161 mutable int _cached_size_;
162 ::std::string* name_;
163 ::std::string* value_;
164 friend void protobuf_AddDesc_metrics_2eproto();
165 friend void protobuf_AssignDesc_metrics_2eproto();
166 friend void protobuf_ShutdownFile_metrics_2eproto();
167
168 void InitAsDefaultInstance();
169 static LabelPair* default_instance_;
170 };
171 // -------------------------------------------------------------------
172
173 class Gauge : public ::google::protobuf::Message {
174 public:
175 Gauge();
176 virtual ~Gauge();
177
178 Gauge(const Gauge& from);
179
180 inline Gauge& operator=(const Gauge& from) {
181 CopyFrom(from);
182 return *this;
183 }
184
unknown_fields()185 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
186 return _unknown_fields_;
187 }
188
mutable_unknown_fields()189 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
190 return &_unknown_fields_;
191 }
192
193 static const ::google::protobuf::Descriptor* descriptor();
194 static const Gauge& default_instance();
195
196 void Swap(Gauge* other);
197
198 // implements Message ----------------------------------------------
199
200 Gauge* New() const;
201 void CopyFrom(const ::google::protobuf::Message& from);
202 void MergeFrom(const ::google::protobuf::Message& from);
203 void CopyFrom(const Gauge& from);
204 void MergeFrom(const Gauge& from);
205 void Clear();
206 bool IsInitialized() const;
207
208 int ByteSize() const;
209 bool MergePartialFromCodedStream(
210 ::google::protobuf::io::CodedInputStream* input);
211 void SerializeWithCachedSizes(
212 ::google::protobuf::io::CodedOutputStream* output) const;
213 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()214 int GetCachedSize() const { return _cached_size_; }
215 private:
216 void SharedCtor();
217 void SharedDtor();
218 void SetCachedSize(int size) const;
219 public:
220 ::google::protobuf::Metadata GetMetadata() const;
221
222 // nested types ----------------------------------------------------
223
224 // accessors -------------------------------------------------------
225
226 // optional double value = 1;
227 inline bool has_value() const;
228 inline void clear_value();
229 static const int kValueFieldNumber = 1;
230 inline double value() const;
231 inline void set_value(double value);
232
233 // @@protoc_insertion_point(class_scope:io.prometheus.client.Gauge)
234 private:
235 inline void set_has_value();
236 inline void clear_has_value();
237
238 ::google::protobuf::UnknownFieldSet _unknown_fields_;
239
240 ::google::protobuf::uint32 _has_bits_[1];
241 mutable int _cached_size_;
242 double value_;
243 friend void protobuf_AddDesc_metrics_2eproto();
244 friend void protobuf_AssignDesc_metrics_2eproto();
245 friend void protobuf_ShutdownFile_metrics_2eproto();
246
247 void InitAsDefaultInstance();
248 static Gauge* default_instance_;
249 };
250 // -------------------------------------------------------------------
251
252 class Counter : public ::google::protobuf::Message {
253 public:
254 Counter();
255 virtual ~Counter();
256
257 Counter(const Counter& from);
258
259 inline Counter& operator=(const Counter& from) {
260 CopyFrom(from);
261 return *this;
262 }
263
unknown_fields()264 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
265 return _unknown_fields_;
266 }
267
mutable_unknown_fields()268 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
269 return &_unknown_fields_;
270 }
271
272 static const ::google::protobuf::Descriptor* descriptor();
273 static const Counter& default_instance();
274
275 void Swap(Counter* other);
276
277 // implements Message ----------------------------------------------
278
279 Counter* New() const;
280 void CopyFrom(const ::google::protobuf::Message& from);
281 void MergeFrom(const ::google::protobuf::Message& from);
282 void CopyFrom(const Counter& from);
283 void MergeFrom(const Counter& from);
284 void Clear();
285 bool IsInitialized() const;
286
287 int ByteSize() const;
288 bool MergePartialFromCodedStream(
289 ::google::protobuf::io::CodedInputStream* input);
290 void SerializeWithCachedSizes(
291 ::google::protobuf::io::CodedOutputStream* output) const;
292 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()293 int GetCachedSize() const { return _cached_size_; }
294 private:
295 void SharedCtor();
296 void SharedDtor();
297 void SetCachedSize(int size) const;
298 public:
299 ::google::protobuf::Metadata GetMetadata() const;
300
301 // nested types ----------------------------------------------------
302
303 // accessors -------------------------------------------------------
304
305 // optional double value = 1;
306 inline bool has_value() const;
307 inline void clear_value();
308 static const int kValueFieldNumber = 1;
309 inline double value() const;
310 inline void set_value(double value);
311
312 // @@protoc_insertion_point(class_scope:io.prometheus.client.Counter)
313 private:
314 inline void set_has_value();
315 inline void clear_has_value();
316
317 ::google::protobuf::UnknownFieldSet _unknown_fields_;
318
319 ::google::protobuf::uint32 _has_bits_[1];
320 mutable int _cached_size_;
321 double value_;
322 friend void protobuf_AddDesc_metrics_2eproto();
323 friend void protobuf_AssignDesc_metrics_2eproto();
324 friend void protobuf_ShutdownFile_metrics_2eproto();
325
326 void InitAsDefaultInstance();
327 static Counter* default_instance_;
328 };
329 // -------------------------------------------------------------------
330
331 class Quantile : public ::google::protobuf::Message {
332 public:
333 Quantile();
334 virtual ~Quantile();
335
336 Quantile(const Quantile& from);
337
338 inline Quantile& operator=(const Quantile& from) {
339 CopyFrom(from);
340 return *this;
341 }
342
unknown_fields()343 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
344 return _unknown_fields_;
345 }
346
mutable_unknown_fields()347 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
348 return &_unknown_fields_;
349 }
350
351 static const ::google::protobuf::Descriptor* descriptor();
352 static const Quantile& default_instance();
353
354 void Swap(Quantile* other);
355
356 // implements Message ----------------------------------------------
357
358 Quantile* New() const;
359 void CopyFrom(const ::google::protobuf::Message& from);
360 void MergeFrom(const ::google::protobuf::Message& from);
361 void CopyFrom(const Quantile& from);
362 void MergeFrom(const Quantile& from);
363 void Clear();
364 bool IsInitialized() const;
365
366 int ByteSize() const;
367 bool MergePartialFromCodedStream(
368 ::google::protobuf::io::CodedInputStream* input);
369 void SerializeWithCachedSizes(
370 ::google::protobuf::io::CodedOutputStream* output) const;
371 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()372 int GetCachedSize() const { return _cached_size_; }
373 private:
374 void SharedCtor();
375 void SharedDtor();
376 void SetCachedSize(int size) const;
377 public:
378 ::google::protobuf::Metadata GetMetadata() const;
379
380 // nested types ----------------------------------------------------
381
382 // accessors -------------------------------------------------------
383
384 // optional double quantile = 1;
385 inline bool has_quantile() const;
386 inline void clear_quantile();
387 static const int kQuantileFieldNumber = 1;
388 inline double quantile() const;
389 inline void set_quantile(double value);
390
391 // optional double value = 2;
392 inline bool has_value() const;
393 inline void clear_value();
394 static const int kValueFieldNumber = 2;
395 inline double value() const;
396 inline void set_value(double value);
397
398 // @@protoc_insertion_point(class_scope:io.prometheus.client.Quantile)
399 private:
400 inline void set_has_quantile();
401 inline void clear_has_quantile();
402 inline void set_has_value();
403 inline void clear_has_value();
404
405 ::google::protobuf::UnknownFieldSet _unknown_fields_;
406
407 ::google::protobuf::uint32 _has_bits_[1];
408 mutable int _cached_size_;
409 double quantile_;
410 double value_;
411 friend void protobuf_AddDesc_metrics_2eproto();
412 friend void protobuf_AssignDesc_metrics_2eproto();
413 friend void protobuf_ShutdownFile_metrics_2eproto();
414
415 void InitAsDefaultInstance();
416 static Quantile* default_instance_;
417 };
418 // -------------------------------------------------------------------
419
420 class Summary : public ::google::protobuf::Message {
421 public:
422 Summary();
423 virtual ~Summary();
424
425 Summary(const Summary& from);
426
427 inline Summary& operator=(const Summary& from) {
428 CopyFrom(from);
429 return *this;
430 }
431
unknown_fields()432 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
433 return _unknown_fields_;
434 }
435
mutable_unknown_fields()436 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
437 return &_unknown_fields_;
438 }
439
440 static const ::google::protobuf::Descriptor* descriptor();
441 static const Summary& default_instance();
442
443 void Swap(Summary* other);
444
445 // implements Message ----------------------------------------------
446
447 Summary* New() const;
448 void CopyFrom(const ::google::protobuf::Message& from);
449 void MergeFrom(const ::google::protobuf::Message& from);
450 void CopyFrom(const Summary& from);
451 void MergeFrom(const Summary& from);
452 void Clear();
453 bool IsInitialized() const;
454
455 int ByteSize() const;
456 bool MergePartialFromCodedStream(
457 ::google::protobuf::io::CodedInputStream* input);
458 void SerializeWithCachedSizes(
459 ::google::protobuf::io::CodedOutputStream* output) const;
460 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()461 int GetCachedSize() const { return _cached_size_; }
462 private:
463 void SharedCtor();
464 void SharedDtor();
465 void SetCachedSize(int size) const;
466 public:
467 ::google::protobuf::Metadata GetMetadata() const;
468
469 // nested types ----------------------------------------------------
470
471 // accessors -------------------------------------------------------
472
473 // optional uint64 sample_count = 1;
474 inline bool has_sample_count() const;
475 inline void clear_sample_count();
476 static const int kSampleCountFieldNumber = 1;
477 inline ::google::protobuf::uint64 sample_count() const;
478 inline void set_sample_count(::google::protobuf::uint64 value);
479
480 // optional double sample_sum = 2;
481 inline bool has_sample_sum() const;
482 inline void clear_sample_sum();
483 static const int kSampleSumFieldNumber = 2;
484 inline double sample_sum() const;
485 inline void set_sample_sum(double value);
486
487 // repeated .io.prometheus.client.Quantile quantile = 3;
488 inline int quantile_size() const;
489 inline void clear_quantile();
490 static const int kQuantileFieldNumber = 3;
491 inline const ::io::prometheus::client::Quantile& quantile(int index) const;
492 inline ::io::prometheus::client::Quantile* mutable_quantile(int index);
493 inline ::io::prometheus::client::Quantile* add_quantile();
494 inline const ::google::protobuf::RepeatedPtrField< ::io::prometheus::client::Quantile >&
495 quantile() const;
496 inline ::google::protobuf::RepeatedPtrField< ::io::prometheus::client::Quantile >*
497 mutable_quantile();
498
499 // @@protoc_insertion_point(class_scope:io.prometheus.client.Summary)
500 private:
501 inline void set_has_sample_count();
502 inline void clear_has_sample_count();
503 inline void set_has_sample_sum();
504 inline void clear_has_sample_sum();
505
506 ::google::protobuf::UnknownFieldSet _unknown_fields_;
507
508 ::google::protobuf::uint32 _has_bits_[1];
509 mutable int _cached_size_;
510 ::google::protobuf::uint64 sample_count_;
511 double sample_sum_;
512 ::google::protobuf::RepeatedPtrField< ::io::prometheus::client::Quantile > quantile_;
513 friend void protobuf_AddDesc_metrics_2eproto();
514 friend void protobuf_AssignDesc_metrics_2eproto();
515 friend void protobuf_ShutdownFile_metrics_2eproto();
516
517 void InitAsDefaultInstance();
518 static Summary* default_instance_;
519 };
520 // -------------------------------------------------------------------
521
522 class Untyped : public ::google::protobuf::Message {
523 public:
524 Untyped();
525 virtual ~Untyped();
526
527 Untyped(const Untyped& from);
528
529 inline Untyped& operator=(const Untyped& from) {
530 CopyFrom(from);
531 return *this;
532 }
533
unknown_fields()534 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
535 return _unknown_fields_;
536 }
537
mutable_unknown_fields()538 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
539 return &_unknown_fields_;
540 }
541
542 static const ::google::protobuf::Descriptor* descriptor();
543 static const Untyped& default_instance();
544
545 void Swap(Untyped* other);
546
547 // implements Message ----------------------------------------------
548
549 Untyped* New() const;
550 void CopyFrom(const ::google::protobuf::Message& from);
551 void MergeFrom(const ::google::protobuf::Message& from);
552 void CopyFrom(const Untyped& from);
553 void MergeFrom(const Untyped& from);
554 void Clear();
555 bool IsInitialized() const;
556
557 int ByteSize() const;
558 bool MergePartialFromCodedStream(
559 ::google::protobuf::io::CodedInputStream* input);
560 void SerializeWithCachedSizes(
561 ::google::protobuf::io::CodedOutputStream* output) const;
562 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()563 int GetCachedSize() const { return _cached_size_; }
564 private:
565 void SharedCtor();
566 void SharedDtor();
567 void SetCachedSize(int size) const;
568 public:
569 ::google::protobuf::Metadata GetMetadata() const;
570
571 // nested types ----------------------------------------------------
572
573 // accessors -------------------------------------------------------
574
575 // optional double value = 1;
576 inline bool has_value() const;
577 inline void clear_value();
578 static const int kValueFieldNumber = 1;
579 inline double value() const;
580 inline void set_value(double value);
581
582 // @@protoc_insertion_point(class_scope:io.prometheus.client.Untyped)
583 private:
584 inline void set_has_value();
585 inline void clear_has_value();
586
587 ::google::protobuf::UnknownFieldSet _unknown_fields_;
588
589 ::google::protobuf::uint32 _has_bits_[1];
590 mutable int _cached_size_;
591 double value_;
592 friend void protobuf_AddDesc_metrics_2eproto();
593 friend void protobuf_AssignDesc_metrics_2eproto();
594 friend void protobuf_ShutdownFile_metrics_2eproto();
595
596 void InitAsDefaultInstance();
597 static Untyped* default_instance_;
598 };
599 // -------------------------------------------------------------------
600
601 class Histogram : public ::google::protobuf::Message {
602 public:
603 Histogram();
604 virtual ~Histogram();
605
606 Histogram(const Histogram& from);
607
608 inline Histogram& operator=(const Histogram& from) {
609 CopyFrom(from);
610 return *this;
611 }
612
unknown_fields()613 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
614 return _unknown_fields_;
615 }
616
mutable_unknown_fields()617 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
618 return &_unknown_fields_;
619 }
620
621 static const ::google::protobuf::Descriptor* descriptor();
622 static const Histogram& default_instance();
623
624 void Swap(Histogram* other);
625
626 // implements Message ----------------------------------------------
627
628 Histogram* New() const;
629 void CopyFrom(const ::google::protobuf::Message& from);
630 void MergeFrom(const ::google::protobuf::Message& from);
631 void CopyFrom(const Histogram& from);
632 void MergeFrom(const Histogram& from);
633 void Clear();
634 bool IsInitialized() const;
635
636 int ByteSize() const;
637 bool MergePartialFromCodedStream(
638 ::google::protobuf::io::CodedInputStream* input);
639 void SerializeWithCachedSizes(
640 ::google::protobuf::io::CodedOutputStream* output) const;
641 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()642 int GetCachedSize() const { return _cached_size_; }
643 private:
644 void SharedCtor();
645 void SharedDtor();
646 void SetCachedSize(int size) const;
647 public:
648 ::google::protobuf::Metadata GetMetadata() const;
649
650 // nested types ----------------------------------------------------
651
652 // accessors -------------------------------------------------------
653
654 // optional uint64 sample_count = 1;
655 inline bool has_sample_count() const;
656 inline void clear_sample_count();
657 static const int kSampleCountFieldNumber = 1;
658 inline ::google::protobuf::uint64 sample_count() const;
659 inline void set_sample_count(::google::protobuf::uint64 value);
660
661 // optional double sample_sum = 2;
662 inline bool has_sample_sum() const;
663 inline void clear_sample_sum();
664 static const int kSampleSumFieldNumber = 2;
665 inline double sample_sum() const;
666 inline void set_sample_sum(double value);
667
668 // repeated .io.prometheus.client.Bucket bucket = 3;
669 inline int bucket_size() const;
670 inline void clear_bucket();
671 static const int kBucketFieldNumber = 3;
672 inline const ::io::prometheus::client::Bucket& bucket(int index) const;
673 inline ::io::prometheus::client::Bucket* mutable_bucket(int index);
674 inline ::io::prometheus::client::Bucket* add_bucket();
675 inline const ::google::protobuf::RepeatedPtrField< ::io::prometheus::client::Bucket >&
676 bucket() const;
677 inline ::google::protobuf::RepeatedPtrField< ::io::prometheus::client::Bucket >*
678 mutable_bucket();
679
680 // @@protoc_insertion_point(class_scope:io.prometheus.client.Histogram)
681 private:
682 inline void set_has_sample_count();
683 inline void clear_has_sample_count();
684 inline void set_has_sample_sum();
685 inline void clear_has_sample_sum();
686
687 ::google::protobuf::UnknownFieldSet _unknown_fields_;
688
689 ::google::protobuf::uint32 _has_bits_[1];
690 mutable int _cached_size_;
691 ::google::protobuf::uint64 sample_count_;
692 double sample_sum_;
693 ::google::protobuf::RepeatedPtrField< ::io::prometheus::client::Bucket > bucket_;
694 friend void protobuf_AddDesc_metrics_2eproto();
695 friend void protobuf_AssignDesc_metrics_2eproto();
696 friend void protobuf_ShutdownFile_metrics_2eproto();
697
698 void InitAsDefaultInstance();
699 static Histogram* default_instance_;
700 };
701 // -------------------------------------------------------------------
702
703 class Bucket : public ::google::protobuf::Message {
704 public:
705 Bucket();
706 virtual ~Bucket();
707
708 Bucket(const Bucket& from);
709
710 inline Bucket& operator=(const Bucket& from) {
711 CopyFrom(from);
712 return *this;
713 }
714
unknown_fields()715 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
716 return _unknown_fields_;
717 }
718
mutable_unknown_fields()719 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
720 return &_unknown_fields_;
721 }
722
723 static const ::google::protobuf::Descriptor* descriptor();
724 static const Bucket& default_instance();
725
726 void Swap(Bucket* other);
727
728 // implements Message ----------------------------------------------
729
730 Bucket* New() const;
731 void CopyFrom(const ::google::protobuf::Message& from);
732 void MergeFrom(const ::google::protobuf::Message& from);
733 void CopyFrom(const Bucket& from);
734 void MergeFrom(const Bucket& from);
735 void Clear();
736 bool IsInitialized() const;
737
738 int ByteSize() const;
739 bool MergePartialFromCodedStream(
740 ::google::protobuf::io::CodedInputStream* input);
741 void SerializeWithCachedSizes(
742 ::google::protobuf::io::CodedOutputStream* output) const;
743 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()744 int GetCachedSize() const { return _cached_size_; }
745 private:
746 void SharedCtor();
747 void SharedDtor();
748 void SetCachedSize(int size) const;
749 public:
750 ::google::protobuf::Metadata GetMetadata() const;
751
752 // nested types ----------------------------------------------------
753
754 // accessors -------------------------------------------------------
755
756 // optional uint64 cumulative_count = 1;
757 inline bool has_cumulative_count() const;
758 inline void clear_cumulative_count();
759 static const int kCumulativeCountFieldNumber = 1;
760 inline ::google::protobuf::uint64 cumulative_count() const;
761 inline void set_cumulative_count(::google::protobuf::uint64 value);
762
763 // optional double upper_bound = 2;
764 inline bool has_upper_bound() const;
765 inline void clear_upper_bound();
766 static const int kUpperBoundFieldNumber = 2;
767 inline double upper_bound() const;
768 inline void set_upper_bound(double value);
769
770 // @@protoc_insertion_point(class_scope:io.prometheus.client.Bucket)
771 private:
772 inline void set_has_cumulative_count();
773 inline void clear_has_cumulative_count();
774 inline void set_has_upper_bound();
775 inline void clear_has_upper_bound();
776
777 ::google::protobuf::UnknownFieldSet _unknown_fields_;
778
779 ::google::protobuf::uint32 _has_bits_[1];
780 mutable int _cached_size_;
781 ::google::protobuf::uint64 cumulative_count_;
782 double upper_bound_;
783 friend void protobuf_AddDesc_metrics_2eproto();
784 friend void protobuf_AssignDesc_metrics_2eproto();
785 friend void protobuf_ShutdownFile_metrics_2eproto();
786
787 void InitAsDefaultInstance();
788 static Bucket* default_instance_;
789 };
790 // -------------------------------------------------------------------
791
792 class Metric : public ::google::protobuf::Message {
793 public:
794 Metric();
795 virtual ~Metric();
796
797 Metric(const Metric& from);
798
799 inline Metric& operator=(const Metric& from) {
800 CopyFrom(from);
801 return *this;
802 }
803
unknown_fields()804 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
805 return _unknown_fields_;
806 }
807
mutable_unknown_fields()808 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
809 return &_unknown_fields_;
810 }
811
812 static const ::google::protobuf::Descriptor* descriptor();
813 static const Metric& default_instance();
814
815 void Swap(Metric* other);
816
817 // implements Message ----------------------------------------------
818
819 Metric* New() const;
820 void CopyFrom(const ::google::protobuf::Message& from);
821 void MergeFrom(const ::google::protobuf::Message& from);
822 void CopyFrom(const Metric& from);
823 void MergeFrom(const Metric& from);
824 void Clear();
825 bool IsInitialized() const;
826
827 int ByteSize() const;
828 bool MergePartialFromCodedStream(
829 ::google::protobuf::io::CodedInputStream* input);
830 void SerializeWithCachedSizes(
831 ::google::protobuf::io::CodedOutputStream* output) const;
832 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()833 int GetCachedSize() const { return _cached_size_; }
834 private:
835 void SharedCtor();
836 void SharedDtor();
837 void SetCachedSize(int size) const;
838 public:
839 ::google::protobuf::Metadata GetMetadata() const;
840
841 // nested types ----------------------------------------------------
842
843 // accessors -------------------------------------------------------
844
845 // repeated .io.prometheus.client.LabelPair label = 1;
846 inline int label_size() const;
847 inline void clear_label();
848 static const int kLabelFieldNumber = 1;
849 inline const ::io::prometheus::client::LabelPair& label(int index) const;
850 inline ::io::prometheus::client::LabelPair* mutable_label(int index);
851 inline ::io::prometheus::client::LabelPair* add_label();
852 inline const ::google::protobuf::RepeatedPtrField< ::io::prometheus::client::LabelPair >&
853 label() const;
854 inline ::google::protobuf::RepeatedPtrField< ::io::prometheus::client::LabelPair >*
855 mutable_label();
856
857 // optional .io.prometheus.client.Gauge gauge = 2;
858 inline bool has_gauge() const;
859 inline void clear_gauge();
860 static const int kGaugeFieldNumber = 2;
861 inline const ::io::prometheus::client::Gauge& gauge() const;
862 inline ::io::prometheus::client::Gauge* mutable_gauge();
863 inline ::io::prometheus::client::Gauge* release_gauge();
864 inline void set_allocated_gauge(::io::prometheus::client::Gauge* gauge);
865
866 // optional .io.prometheus.client.Counter counter = 3;
867 inline bool has_counter() const;
868 inline void clear_counter();
869 static const int kCounterFieldNumber = 3;
870 inline const ::io::prometheus::client::Counter& counter() const;
871 inline ::io::prometheus::client::Counter* mutable_counter();
872 inline ::io::prometheus::client::Counter* release_counter();
873 inline void set_allocated_counter(::io::prometheus::client::Counter* counter);
874
875 // optional .io.prometheus.client.Summary summary = 4;
876 inline bool has_summary() const;
877 inline void clear_summary();
878 static const int kSummaryFieldNumber = 4;
879 inline const ::io::prometheus::client::Summary& summary() const;
880 inline ::io::prometheus::client::Summary* mutable_summary();
881 inline ::io::prometheus::client::Summary* release_summary();
882 inline void set_allocated_summary(::io::prometheus::client::Summary* summary);
883
884 // optional .io.prometheus.client.Untyped untyped = 5;
885 inline bool has_untyped() const;
886 inline void clear_untyped();
887 static const int kUntypedFieldNumber = 5;
888 inline const ::io::prometheus::client::Untyped& untyped() const;
889 inline ::io::prometheus::client::Untyped* mutable_untyped();
890 inline ::io::prometheus::client::Untyped* release_untyped();
891 inline void set_allocated_untyped(::io::prometheus::client::Untyped* untyped);
892
893 // optional .io.prometheus.client.Histogram histogram = 7;
894 inline bool has_histogram() const;
895 inline void clear_histogram();
896 static const int kHistogramFieldNumber = 7;
897 inline const ::io::prometheus::client::Histogram& histogram() const;
898 inline ::io::prometheus::client::Histogram* mutable_histogram();
899 inline ::io::prometheus::client::Histogram* release_histogram();
900 inline void set_allocated_histogram(::io::prometheus::client::Histogram* histogram);
901
902 // optional int64 timestamp_ms = 6;
903 inline bool has_timestamp_ms() const;
904 inline void clear_timestamp_ms();
905 static const int kTimestampMsFieldNumber = 6;
906 inline ::google::protobuf::int64 timestamp_ms() const;
907 inline void set_timestamp_ms(::google::protobuf::int64 value);
908
909 // @@protoc_insertion_point(class_scope:io.prometheus.client.Metric)
910 private:
911 inline void set_has_gauge();
912 inline void clear_has_gauge();
913 inline void set_has_counter();
914 inline void clear_has_counter();
915 inline void set_has_summary();
916 inline void clear_has_summary();
917 inline void set_has_untyped();
918 inline void clear_has_untyped();
919 inline void set_has_histogram();
920 inline void clear_has_histogram();
921 inline void set_has_timestamp_ms();
922 inline void clear_has_timestamp_ms();
923
924 ::google::protobuf::UnknownFieldSet _unknown_fields_;
925
926 ::google::protobuf::uint32 _has_bits_[1];
927 mutable int _cached_size_;
928 ::google::protobuf::RepeatedPtrField< ::io::prometheus::client::LabelPair > label_;
929 ::io::prometheus::client::Gauge* gauge_;
930 ::io::prometheus::client::Counter* counter_;
931 ::io::prometheus::client::Summary* summary_;
932 ::io::prometheus::client::Untyped* untyped_;
933 ::io::prometheus::client::Histogram* histogram_;
934 ::google::protobuf::int64 timestamp_ms_;
935 friend void protobuf_AddDesc_metrics_2eproto();
936 friend void protobuf_AssignDesc_metrics_2eproto();
937 friend void protobuf_ShutdownFile_metrics_2eproto();
938
939 void InitAsDefaultInstance();
940 static Metric* default_instance_;
941 };
942 // -------------------------------------------------------------------
943
944 class MetricFamily : public ::google::protobuf::Message {
945 public:
946 MetricFamily();
947 virtual ~MetricFamily();
948
949 MetricFamily(const MetricFamily& from);
950
951 inline MetricFamily& operator=(const MetricFamily& from) {
952 CopyFrom(from);
953 return *this;
954 }
955
unknown_fields()956 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
957 return _unknown_fields_;
958 }
959
mutable_unknown_fields()960 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
961 return &_unknown_fields_;
962 }
963
964 static const ::google::protobuf::Descriptor* descriptor();
965 static const MetricFamily& default_instance();
966
967 void Swap(MetricFamily* other);
968
969 // implements Message ----------------------------------------------
970
971 MetricFamily* New() const;
972 void CopyFrom(const ::google::protobuf::Message& from);
973 void MergeFrom(const ::google::protobuf::Message& from);
974 void CopyFrom(const MetricFamily& from);
975 void MergeFrom(const MetricFamily& from);
976 void Clear();
977 bool IsInitialized() const;
978
979 int ByteSize() const;
980 bool MergePartialFromCodedStream(
981 ::google::protobuf::io::CodedInputStream* input);
982 void SerializeWithCachedSizes(
983 ::google::protobuf::io::CodedOutputStream* output) const;
984 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()985 int GetCachedSize() const { return _cached_size_; }
986 private:
987 void SharedCtor();
988 void SharedDtor();
989 void SetCachedSize(int size) const;
990 public:
991 ::google::protobuf::Metadata GetMetadata() const;
992
993 // nested types ----------------------------------------------------
994
995 // accessors -------------------------------------------------------
996
997 // optional string name = 1;
998 inline bool has_name() const;
999 inline void clear_name();
1000 static const int kNameFieldNumber = 1;
1001 inline const ::std::string& name() const;
1002 inline void set_name(const ::std::string& value);
1003 inline void set_name(const char* value);
1004 inline void set_name(const char* value, size_t size);
1005 inline ::std::string* mutable_name();
1006 inline ::std::string* release_name();
1007 inline void set_allocated_name(::std::string* name);
1008
1009 // optional string help = 2;
1010 inline bool has_help() const;
1011 inline void clear_help();
1012 static const int kHelpFieldNumber = 2;
1013 inline const ::std::string& help() const;
1014 inline void set_help(const ::std::string& value);
1015 inline void set_help(const char* value);
1016 inline void set_help(const char* value, size_t size);
1017 inline ::std::string* mutable_help();
1018 inline ::std::string* release_help();
1019 inline void set_allocated_help(::std::string* help);
1020
1021 // optional .io.prometheus.client.MetricType type = 3;
1022 inline bool has_type() const;
1023 inline void clear_type();
1024 static const int kTypeFieldNumber = 3;
1025 inline ::io::prometheus::client::MetricType type() const;
1026 inline void set_type(::io::prometheus::client::MetricType value);
1027
1028 // repeated .io.prometheus.client.Metric metric = 4;
1029 inline int metric_size() const;
1030 inline void clear_metric();
1031 static const int kMetricFieldNumber = 4;
1032 inline const ::io::prometheus::client::Metric& metric(int index) const;
1033 inline ::io::prometheus::client::Metric* mutable_metric(int index);
1034 inline ::io::prometheus::client::Metric* add_metric();
1035 inline const ::google::protobuf::RepeatedPtrField< ::io::prometheus::client::Metric >&
1036 metric() const;
1037 inline ::google::protobuf::RepeatedPtrField< ::io::prometheus::client::Metric >*
1038 mutable_metric();
1039
1040 // @@protoc_insertion_point(class_scope:io.prometheus.client.MetricFamily)
1041 private:
1042 inline void set_has_name();
1043 inline void clear_has_name();
1044 inline void set_has_help();
1045 inline void clear_has_help();
1046 inline void set_has_type();
1047 inline void clear_has_type();
1048
1049 ::google::protobuf::UnknownFieldSet _unknown_fields_;
1050
1051 ::google::protobuf::uint32 _has_bits_[1];
1052 mutable int _cached_size_;
1053 ::std::string* name_;
1054 ::std::string* help_;
1055 ::google::protobuf::RepeatedPtrField< ::io::prometheus::client::Metric > metric_;
1056 int type_;
1057 friend void protobuf_AddDesc_metrics_2eproto();
1058 friend void protobuf_AssignDesc_metrics_2eproto();
1059 friend void protobuf_ShutdownFile_metrics_2eproto();
1060
1061 void InitAsDefaultInstance();
1062 static MetricFamily* default_instance_;
1063 };
1064 // ===================================================================
1065
1066
1067 // ===================================================================
1068
1069 // LabelPair
1070
1071 // optional string name = 1;
has_name()1072 inline bool LabelPair::has_name() const {
1073 return (_has_bits_[0] & 0x00000001u) != 0;
1074 }
set_has_name()1075 inline void LabelPair::set_has_name() {
1076 _has_bits_[0] |= 0x00000001u;
1077 }
clear_has_name()1078 inline void LabelPair::clear_has_name() {
1079 _has_bits_[0] &= ~0x00000001u;
1080 }
clear_name()1081 inline void LabelPair::clear_name() {
1082 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1083 name_->clear();
1084 }
1085 clear_has_name();
1086 }
name()1087 inline const ::std::string& LabelPair::name() const {
1088 // @@protoc_insertion_point(field_get:io.prometheus.client.LabelPair.name)
1089 return *name_;
1090 }
set_name(const::std::string & value)1091 inline void LabelPair::set_name(const ::std::string& value) {
1092 set_has_name();
1093 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1094 name_ = new ::std::string;
1095 }
1096 name_->assign(value);
1097 // @@protoc_insertion_point(field_set:io.prometheus.client.LabelPair.name)
1098 }
set_name(const char * value)1099 inline void LabelPair::set_name(const char* value) {
1100 set_has_name();
1101 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1102 name_ = new ::std::string;
1103 }
1104 name_->assign(value);
1105 // @@protoc_insertion_point(field_set_char:io.prometheus.client.LabelPair.name)
1106 }
set_name(const char * value,size_t size)1107 inline void LabelPair::set_name(const char* value, size_t size) {
1108 set_has_name();
1109 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1110 name_ = new ::std::string;
1111 }
1112 name_->assign(reinterpret_cast<const char*>(value), size);
1113 // @@protoc_insertion_point(field_set_pointer:io.prometheus.client.LabelPair.name)
1114 }
mutable_name()1115 inline ::std::string* LabelPair::mutable_name() {
1116 set_has_name();
1117 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1118 name_ = new ::std::string;
1119 }
1120 // @@protoc_insertion_point(field_mutable:io.prometheus.client.LabelPair.name)
1121 return name_;
1122 }
release_name()1123 inline ::std::string* LabelPair::release_name() {
1124 clear_has_name();
1125 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1126 return NULL;
1127 } else {
1128 ::std::string* temp = name_;
1129 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1130 return temp;
1131 }
1132 }
set_allocated_name(::std::string * name)1133 inline void LabelPair::set_allocated_name(::std::string* name) {
1134 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1135 delete name_;
1136 }
1137 if (name) {
1138 set_has_name();
1139 name_ = name;
1140 } else {
1141 clear_has_name();
1142 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1143 }
1144 // @@protoc_insertion_point(field_set_allocated:io.prometheus.client.LabelPair.name)
1145 }
1146
1147 // optional string value = 2;
has_value()1148 inline bool LabelPair::has_value() const {
1149 return (_has_bits_[0] & 0x00000002u) != 0;
1150 }
set_has_value()1151 inline void LabelPair::set_has_value() {
1152 _has_bits_[0] |= 0x00000002u;
1153 }
clear_has_value()1154 inline void LabelPair::clear_has_value() {
1155 _has_bits_[0] &= ~0x00000002u;
1156 }
clear_value()1157 inline void LabelPair::clear_value() {
1158 if (value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1159 value_->clear();
1160 }
1161 clear_has_value();
1162 }
value()1163 inline const ::std::string& LabelPair::value() const {
1164 // @@protoc_insertion_point(field_get:io.prometheus.client.LabelPair.value)
1165 return *value_;
1166 }
set_value(const::std::string & value)1167 inline void LabelPair::set_value(const ::std::string& value) {
1168 set_has_value();
1169 if (value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1170 value_ = new ::std::string;
1171 }
1172 value_->assign(value);
1173 // @@protoc_insertion_point(field_set:io.prometheus.client.LabelPair.value)
1174 }
set_value(const char * value)1175 inline void LabelPair::set_value(const char* value) {
1176 set_has_value();
1177 if (value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1178 value_ = new ::std::string;
1179 }
1180 value_->assign(value);
1181 // @@protoc_insertion_point(field_set_char:io.prometheus.client.LabelPair.value)
1182 }
set_value(const char * value,size_t size)1183 inline void LabelPair::set_value(const char* value, size_t size) {
1184 set_has_value();
1185 if (value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1186 value_ = new ::std::string;
1187 }
1188 value_->assign(reinterpret_cast<const char*>(value), size);
1189 // @@protoc_insertion_point(field_set_pointer:io.prometheus.client.LabelPair.value)
1190 }
mutable_value()1191 inline ::std::string* LabelPair::mutable_value() {
1192 set_has_value();
1193 if (value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1194 value_ = new ::std::string;
1195 }
1196 // @@protoc_insertion_point(field_mutable:io.prometheus.client.LabelPair.value)
1197 return value_;
1198 }
release_value()1199 inline ::std::string* LabelPair::release_value() {
1200 clear_has_value();
1201 if (value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1202 return NULL;
1203 } else {
1204 ::std::string* temp = value_;
1205 value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1206 return temp;
1207 }
1208 }
set_allocated_value(::std::string * value)1209 inline void LabelPair::set_allocated_value(::std::string* value) {
1210 if (value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1211 delete value_;
1212 }
1213 if (value) {
1214 set_has_value();
1215 value_ = value;
1216 } else {
1217 clear_has_value();
1218 value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1219 }
1220 // @@protoc_insertion_point(field_set_allocated:io.prometheus.client.LabelPair.value)
1221 }
1222
1223 // -------------------------------------------------------------------
1224
1225 // Gauge
1226
1227 // optional double value = 1;
has_value()1228 inline bool Gauge::has_value() const {
1229 return (_has_bits_[0] & 0x00000001u) != 0;
1230 }
set_has_value()1231 inline void Gauge::set_has_value() {
1232 _has_bits_[0] |= 0x00000001u;
1233 }
clear_has_value()1234 inline void Gauge::clear_has_value() {
1235 _has_bits_[0] &= ~0x00000001u;
1236 }
clear_value()1237 inline void Gauge::clear_value() {
1238 value_ = 0;
1239 clear_has_value();
1240 }
value()1241 inline double Gauge::value() const {
1242 // @@protoc_insertion_point(field_get:io.prometheus.client.Gauge.value)
1243 return value_;
1244 }
set_value(double value)1245 inline void Gauge::set_value(double value) {
1246 set_has_value();
1247 value_ = value;
1248 // @@protoc_insertion_point(field_set:io.prometheus.client.Gauge.value)
1249 }
1250
1251 // -------------------------------------------------------------------
1252
1253 // Counter
1254
1255 // optional double value = 1;
has_value()1256 inline bool Counter::has_value() const {
1257 return (_has_bits_[0] & 0x00000001u) != 0;
1258 }
set_has_value()1259 inline void Counter::set_has_value() {
1260 _has_bits_[0] |= 0x00000001u;
1261 }
clear_has_value()1262 inline void Counter::clear_has_value() {
1263 _has_bits_[0] &= ~0x00000001u;
1264 }
clear_value()1265 inline void Counter::clear_value() {
1266 value_ = 0;
1267 clear_has_value();
1268 }
value()1269 inline double Counter::value() const {
1270 // @@protoc_insertion_point(field_get:io.prometheus.client.Counter.value)
1271 return value_;
1272 }
set_value(double value)1273 inline void Counter::set_value(double value) {
1274 set_has_value();
1275 value_ = value;
1276 // @@protoc_insertion_point(field_set:io.prometheus.client.Counter.value)
1277 }
1278
1279 // -------------------------------------------------------------------
1280
1281 // Quantile
1282
1283 // optional double quantile = 1;
has_quantile()1284 inline bool Quantile::has_quantile() const {
1285 return (_has_bits_[0] & 0x00000001u) != 0;
1286 }
set_has_quantile()1287 inline void Quantile::set_has_quantile() {
1288 _has_bits_[0] |= 0x00000001u;
1289 }
clear_has_quantile()1290 inline void Quantile::clear_has_quantile() {
1291 _has_bits_[0] &= ~0x00000001u;
1292 }
clear_quantile()1293 inline void Quantile::clear_quantile() {
1294 quantile_ = 0;
1295 clear_has_quantile();
1296 }
quantile()1297 inline double Quantile::quantile() const {
1298 // @@protoc_insertion_point(field_get:io.prometheus.client.Quantile.quantile)
1299 return quantile_;
1300 }
set_quantile(double value)1301 inline void Quantile::set_quantile(double value) {
1302 set_has_quantile();
1303 quantile_ = value;
1304 // @@protoc_insertion_point(field_set:io.prometheus.client.Quantile.quantile)
1305 }
1306
1307 // optional double value = 2;
has_value()1308 inline bool Quantile::has_value() const {
1309 return (_has_bits_[0] & 0x00000002u) != 0;
1310 }
set_has_value()1311 inline void Quantile::set_has_value() {
1312 _has_bits_[0] |= 0x00000002u;
1313 }
clear_has_value()1314 inline void Quantile::clear_has_value() {
1315 _has_bits_[0] &= ~0x00000002u;
1316 }
clear_value()1317 inline void Quantile::clear_value() {
1318 value_ = 0;
1319 clear_has_value();
1320 }
value()1321 inline double Quantile::value() const {
1322 // @@protoc_insertion_point(field_get:io.prometheus.client.Quantile.value)
1323 return value_;
1324 }
set_value(double value)1325 inline void Quantile::set_value(double value) {
1326 set_has_value();
1327 value_ = value;
1328 // @@protoc_insertion_point(field_set:io.prometheus.client.Quantile.value)
1329 }
1330
1331 // -------------------------------------------------------------------
1332
1333 // Summary
1334
1335 // optional uint64 sample_count = 1;
has_sample_count()1336 inline bool Summary::has_sample_count() const {
1337 return (_has_bits_[0] & 0x00000001u) != 0;
1338 }
set_has_sample_count()1339 inline void Summary::set_has_sample_count() {
1340 _has_bits_[0] |= 0x00000001u;
1341 }
clear_has_sample_count()1342 inline void Summary::clear_has_sample_count() {
1343 _has_bits_[0] &= ~0x00000001u;
1344 }
clear_sample_count()1345 inline void Summary::clear_sample_count() {
1346 sample_count_ = GOOGLE_ULONGLONG(0);
1347 clear_has_sample_count();
1348 }
sample_count()1349 inline ::google::protobuf::uint64 Summary::sample_count() const {
1350 // @@protoc_insertion_point(field_get:io.prometheus.client.Summary.sample_count)
1351 return sample_count_;
1352 }
set_sample_count(::google::protobuf::uint64 value)1353 inline void Summary::set_sample_count(::google::protobuf::uint64 value) {
1354 set_has_sample_count();
1355 sample_count_ = value;
1356 // @@protoc_insertion_point(field_set:io.prometheus.client.Summary.sample_count)
1357 }
1358
1359 // optional double sample_sum = 2;
has_sample_sum()1360 inline bool Summary::has_sample_sum() const {
1361 return (_has_bits_[0] & 0x00000002u) != 0;
1362 }
set_has_sample_sum()1363 inline void Summary::set_has_sample_sum() {
1364 _has_bits_[0] |= 0x00000002u;
1365 }
clear_has_sample_sum()1366 inline void Summary::clear_has_sample_sum() {
1367 _has_bits_[0] &= ~0x00000002u;
1368 }
clear_sample_sum()1369 inline void Summary::clear_sample_sum() {
1370 sample_sum_ = 0;
1371 clear_has_sample_sum();
1372 }
sample_sum()1373 inline double Summary::sample_sum() const {
1374 // @@protoc_insertion_point(field_get:io.prometheus.client.Summary.sample_sum)
1375 return sample_sum_;
1376 }
set_sample_sum(double value)1377 inline void Summary::set_sample_sum(double value) {
1378 set_has_sample_sum();
1379 sample_sum_ = value;
1380 // @@protoc_insertion_point(field_set:io.prometheus.client.Summary.sample_sum)
1381 }
1382
1383 // repeated .io.prometheus.client.Quantile quantile = 3;
quantile_size()1384 inline int Summary::quantile_size() const {
1385 return quantile_.size();
1386 }
clear_quantile()1387 inline void Summary::clear_quantile() {
1388 quantile_.Clear();
1389 }
quantile(int index)1390 inline const ::io::prometheus::client::Quantile& Summary::quantile(int index) const {
1391 // @@protoc_insertion_point(field_get:io.prometheus.client.Summary.quantile)
1392 return quantile_.Get(index);
1393 }
mutable_quantile(int index)1394 inline ::io::prometheus::client::Quantile* Summary::mutable_quantile(int index) {
1395 // @@protoc_insertion_point(field_mutable:io.prometheus.client.Summary.quantile)
1396 return quantile_.Mutable(index);
1397 }
add_quantile()1398 inline ::io::prometheus::client::Quantile* Summary::add_quantile() {
1399 // @@protoc_insertion_point(field_add:io.prometheus.client.Summary.quantile)
1400 return quantile_.Add();
1401 }
1402 inline const ::google::protobuf::RepeatedPtrField< ::io::prometheus::client::Quantile >&
quantile()1403 Summary::quantile() const {
1404 // @@protoc_insertion_point(field_list:io.prometheus.client.Summary.quantile)
1405 return quantile_;
1406 }
1407 inline ::google::protobuf::RepeatedPtrField< ::io::prometheus::client::Quantile >*
mutable_quantile()1408 Summary::mutable_quantile() {
1409 // @@protoc_insertion_point(field_mutable_list:io.prometheus.client.Summary.quantile)
1410 return &quantile_;
1411 }
1412
1413 // -------------------------------------------------------------------
1414
1415 // Untyped
1416
1417 // optional double value = 1;
has_value()1418 inline bool Untyped::has_value() const {
1419 return (_has_bits_[0] & 0x00000001u) != 0;
1420 }
set_has_value()1421 inline void Untyped::set_has_value() {
1422 _has_bits_[0] |= 0x00000001u;
1423 }
clear_has_value()1424 inline void Untyped::clear_has_value() {
1425 _has_bits_[0] &= ~0x00000001u;
1426 }
clear_value()1427 inline void Untyped::clear_value() {
1428 value_ = 0;
1429 clear_has_value();
1430 }
value()1431 inline double Untyped::value() const {
1432 // @@protoc_insertion_point(field_get:io.prometheus.client.Untyped.value)
1433 return value_;
1434 }
set_value(double value)1435 inline void Untyped::set_value(double value) {
1436 set_has_value();
1437 value_ = value;
1438 // @@protoc_insertion_point(field_set:io.prometheus.client.Untyped.value)
1439 }
1440
1441 // -------------------------------------------------------------------
1442
1443 // Histogram
1444
1445 // optional uint64 sample_count = 1;
has_sample_count()1446 inline bool Histogram::has_sample_count() const {
1447 return (_has_bits_[0] & 0x00000001u) != 0;
1448 }
set_has_sample_count()1449 inline void Histogram::set_has_sample_count() {
1450 _has_bits_[0] |= 0x00000001u;
1451 }
clear_has_sample_count()1452 inline void Histogram::clear_has_sample_count() {
1453 _has_bits_[0] &= ~0x00000001u;
1454 }
clear_sample_count()1455 inline void Histogram::clear_sample_count() {
1456 sample_count_ = GOOGLE_ULONGLONG(0);
1457 clear_has_sample_count();
1458 }
sample_count()1459 inline ::google::protobuf::uint64 Histogram::sample_count() const {
1460 // @@protoc_insertion_point(field_get:io.prometheus.client.Histogram.sample_count)
1461 return sample_count_;
1462 }
set_sample_count(::google::protobuf::uint64 value)1463 inline void Histogram::set_sample_count(::google::protobuf::uint64 value) {
1464 set_has_sample_count();
1465 sample_count_ = value;
1466 // @@protoc_insertion_point(field_set:io.prometheus.client.Histogram.sample_count)
1467 }
1468
1469 // optional double sample_sum = 2;
has_sample_sum()1470 inline bool Histogram::has_sample_sum() const {
1471 return (_has_bits_[0] & 0x00000002u) != 0;
1472 }
set_has_sample_sum()1473 inline void Histogram::set_has_sample_sum() {
1474 _has_bits_[0] |= 0x00000002u;
1475 }
clear_has_sample_sum()1476 inline void Histogram::clear_has_sample_sum() {
1477 _has_bits_[0] &= ~0x00000002u;
1478 }
clear_sample_sum()1479 inline void Histogram::clear_sample_sum() {
1480 sample_sum_ = 0;
1481 clear_has_sample_sum();
1482 }
sample_sum()1483 inline double Histogram::sample_sum() const {
1484 // @@protoc_insertion_point(field_get:io.prometheus.client.Histogram.sample_sum)
1485 return sample_sum_;
1486 }
set_sample_sum(double value)1487 inline void Histogram::set_sample_sum(double value) {
1488 set_has_sample_sum();
1489 sample_sum_ = value;
1490 // @@protoc_insertion_point(field_set:io.prometheus.client.Histogram.sample_sum)
1491 }
1492
1493 // repeated .io.prometheus.client.Bucket bucket = 3;
bucket_size()1494 inline int Histogram::bucket_size() const {
1495 return bucket_.size();
1496 }
clear_bucket()1497 inline void Histogram::clear_bucket() {
1498 bucket_.Clear();
1499 }
bucket(int index)1500 inline const ::io::prometheus::client::Bucket& Histogram::bucket(int index) const {
1501 // @@protoc_insertion_point(field_get:io.prometheus.client.Histogram.bucket)
1502 return bucket_.Get(index);
1503 }
mutable_bucket(int index)1504 inline ::io::prometheus::client::Bucket* Histogram::mutable_bucket(int index) {
1505 // @@protoc_insertion_point(field_mutable:io.prometheus.client.Histogram.bucket)
1506 return bucket_.Mutable(index);
1507 }
add_bucket()1508 inline ::io::prometheus::client::Bucket* Histogram::add_bucket() {
1509 // @@protoc_insertion_point(field_add:io.prometheus.client.Histogram.bucket)
1510 return bucket_.Add();
1511 }
1512 inline const ::google::protobuf::RepeatedPtrField< ::io::prometheus::client::Bucket >&
bucket()1513 Histogram::bucket() const {
1514 // @@protoc_insertion_point(field_list:io.prometheus.client.Histogram.bucket)
1515 return bucket_;
1516 }
1517 inline ::google::protobuf::RepeatedPtrField< ::io::prometheus::client::Bucket >*
mutable_bucket()1518 Histogram::mutable_bucket() {
1519 // @@protoc_insertion_point(field_mutable_list:io.prometheus.client.Histogram.bucket)
1520 return &bucket_;
1521 }
1522
1523 // -------------------------------------------------------------------
1524
1525 // Bucket
1526
1527 // optional uint64 cumulative_count = 1;
has_cumulative_count()1528 inline bool Bucket::has_cumulative_count() const {
1529 return (_has_bits_[0] & 0x00000001u) != 0;
1530 }
set_has_cumulative_count()1531 inline void Bucket::set_has_cumulative_count() {
1532 _has_bits_[0] |= 0x00000001u;
1533 }
clear_has_cumulative_count()1534 inline void Bucket::clear_has_cumulative_count() {
1535 _has_bits_[0] &= ~0x00000001u;
1536 }
clear_cumulative_count()1537 inline void Bucket::clear_cumulative_count() {
1538 cumulative_count_ = GOOGLE_ULONGLONG(0);
1539 clear_has_cumulative_count();
1540 }
cumulative_count()1541 inline ::google::protobuf::uint64 Bucket::cumulative_count() const {
1542 // @@protoc_insertion_point(field_get:io.prometheus.client.Bucket.cumulative_count)
1543 return cumulative_count_;
1544 }
set_cumulative_count(::google::protobuf::uint64 value)1545 inline void Bucket::set_cumulative_count(::google::protobuf::uint64 value) {
1546 set_has_cumulative_count();
1547 cumulative_count_ = value;
1548 // @@protoc_insertion_point(field_set:io.prometheus.client.Bucket.cumulative_count)
1549 }
1550
1551 // optional double upper_bound = 2;
has_upper_bound()1552 inline bool Bucket::has_upper_bound() const {
1553 return (_has_bits_[0] & 0x00000002u) != 0;
1554 }
set_has_upper_bound()1555 inline void Bucket::set_has_upper_bound() {
1556 _has_bits_[0] |= 0x00000002u;
1557 }
clear_has_upper_bound()1558 inline void Bucket::clear_has_upper_bound() {
1559 _has_bits_[0] &= ~0x00000002u;
1560 }
clear_upper_bound()1561 inline void Bucket::clear_upper_bound() {
1562 upper_bound_ = 0;
1563 clear_has_upper_bound();
1564 }
upper_bound()1565 inline double Bucket::upper_bound() const {
1566 // @@protoc_insertion_point(field_get:io.prometheus.client.Bucket.upper_bound)
1567 return upper_bound_;
1568 }
set_upper_bound(double value)1569 inline void Bucket::set_upper_bound(double value) {
1570 set_has_upper_bound();
1571 upper_bound_ = value;
1572 // @@protoc_insertion_point(field_set:io.prometheus.client.Bucket.upper_bound)
1573 }
1574
1575 // -------------------------------------------------------------------
1576
1577 // Metric
1578
1579 // repeated .io.prometheus.client.LabelPair label = 1;
label_size()1580 inline int Metric::label_size() const {
1581 return label_.size();
1582 }
clear_label()1583 inline void Metric::clear_label() {
1584 label_.Clear();
1585 }
label(int index)1586 inline const ::io::prometheus::client::LabelPair& Metric::label(int index) const {
1587 // @@protoc_insertion_point(field_get:io.prometheus.client.Metric.label)
1588 return label_.Get(index);
1589 }
mutable_label(int index)1590 inline ::io::prometheus::client::LabelPair* Metric::mutable_label(int index) {
1591 // @@protoc_insertion_point(field_mutable:io.prometheus.client.Metric.label)
1592 return label_.Mutable(index);
1593 }
add_label()1594 inline ::io::prometheus::client::LabelPair* Metric::add_label() {
1595 // @@protoc_insertion_point(field_add:io.prometheus.client.Metric.label)
1596 return label_.Add();
1597 }
1598 inline const ::google::protobuf::RepeatedPtrField< ::io::prometheus::client::LabelPair >&
label()1599 Metric::label() const {
1600 // @@protoc_insertion_point(field_list:io.prometheus.client.Metric.label)
1601 return label_;
1602 }
1603 inline ::google::protobuf::RepeatedPtrField< ::io::prometheus::client::LabelPair >*
mutable_label()1604 Metric::mutable_label() {
1605 // @@protoc_insertion_point(field_mutable_list:io.prometheus.client.Metric.label)
1606 return &label_;
1607 }
1608
1609 // optional .io.prometheus.client.Gauge gauge = 2;
has_gauge()1610 inline bool Metric::has_gauge() const {
1611 return (_has_bits_[0] & 0x00000002u) != 0;
1612 }
set_has_gauge()1613 inline void Metric::set_has_gauge() {
1614 _has_bits_[0] |= 0x00000002u;
1615 }
clear_has_gauge()1616 inline void Metric::clear_has_gauge() {
1617 _has_bits_[0] &= ~0x00000002u;
1618 }
clear_gauge()1619 inline void Metric::clear_gauge() {
1620 if (gauge_ != NULL) gauge_->::io::prometheus::client::Gauge::Clear();
1621 clear_has_gauge();
1622 }
gauge()1623 inline const ::io::prometheus::client::Gauge& Metric::gauge() const {
1624 // @@protoc_insertion_point(field_get:io.prometheus.client.Metric.gauge)
1625 return gauge_ != NULL ? *gauge_ : *default_instance_->gauge_;
1626 }
mutable_gauge()1627 inline ::io::prometheus::client::Gauge* Metric::mutable_gauge() {
1628 set_has_gauge();
1629 if (gauge_ == NULL) gauge_ = new ::io::prometheus::client::Gauge;
1630 // @@protoc_insertion_point(field_mutable:io.prometheus.client.Metric.gauge)
1631 return gauge_;
1632 }
release_gauge()1633 inline ::io::prometheus::client::Gauge* Metric::release_gauge() {
1634 clear_has_gauge();
1635 ::io::prometheus::client::Gauge* temp = gauge_;
1636 gauge_ = NULL;
1637 return temp;
1638 }
set_allocated_gauge(::io::prometheus::client::Gauge * gauge)1639 inline void Metric::set_allocated_gauge(::io::prometheus::client::Gauge* gauge) {
1640 delete gauge_;
1641 gauge_ = gauge;
1642 if (gauge) {
1643 set_has_gauge();
1644 } else {
1645 clear_has_gauge();
1646 }
1647 // @@protoc_insertion_point(field_set_allocated:io.prometheus.client.Metric.gauge)
1648 }
1649
1650 // optional .io.prometheus.client.Counter counter = 3;
has_counter()1651 inline bool Metric::has_counter() const {
1652 return (_has_bits_[0] & 0x00000004u) != 0;
1653 }
set_has_counter()1654 inline void Metric::set_has_counter() {
1655 _has_bits_[0] |= 0x00000004u;
1656 }
clear_has_counter()1657 inline void Metric::clear_has_counter() {
1658 _has_bits_[0] &= ~0x00000004u;
1659 }
clear_counter()1660 inline void Metric::clear_counter() {
1661 if (counter_ != NULL) counter_->::io::prometheus::client::Counter::Clear();
1662 clear_has_counter();
1663 }
counter()1664 inline const ::io::prometheus::client::Counter& Metric::counter() const {
1665 // @@protoc_insertion_point(field_get:io.prometheus.client.Metric.counter)
1666 return counter_ != NULL ? *counter_ : *default_instance_->counter_;
1667 }
mutable_counter()1668 inline ::io::prometheus::client::Counter* Metric::mutable_counter() {
1669 set_has_counter();
1670 if (counter_ == NULL) counter_ = new ::io::prometheus::client::Counter;
1671 // @@protoc_insertion_point(field_mutable:io.prometheus.client.Metric.counter)
1672 return counter_;
1673 }
release_counter()1674 inline ::io::prometheus::client::Counter* Metric::release_counter() {
1675 clear_has_counter();
1676 ::io::prometheus::client::Counter* temp = counter_;
1677 counter_ = NULL;
1678 return temp;
1679 }
set_allocated_counter(::io::prometheus::client::Counter * counter)1680 inline void Metric::set_allocated_counter(::io::prometheus::client::Counter* counter) {
1681 delete counter_;
1682 counter_ = counter;
1683 if (counter) {
1684 set_has_counter();
1685 } else {
1686 clear_has_counter();
1687 }
1688 // @@protoc_insertion_point(field_set_allocated:io.prometheus.client.Metric.counter)
1689 }
1690
1691 // optional .io.prometheus.client.Summary summary = 4;
has_summary()1692 inline bool Metric::has_summary() const {
1693 return (_has_bits_[0] & 0x00000008u) != 0;
1694 }
set_has_summary()1695 inline void Metric::set_has_summary() {
1696 _has_bits_[0] |= 0x00000008u;
1697 }
clear_has_summary()1698 inline void Metric::clear_has_summary() {
1699 _has_bits_[0] &= ~0x00000008u;
1700 }
clear_summary()1701 inline void Metric::clear_summary() {
1702 if (summary_ != NULL) summary_->::io::prometheus::client::Summary::Clear();
1703 clear_has_summary();
1704 }
summary()1705 inline const ::io::prometheus::client::Summary& Metric::summary() const {
1706 // @@protoc_insertion_point(field_get:io.prometheus.client.Metric.summary)
1707 return summary_ != NULL ? *summary_ : *default_instance_->summary_;
1708 }
mutable_summary()1709 inline ::io::prometheus::client::Summary* Metric::mutable_summary() {
1710 set_has_summary();
1711 if (summary_ == NULL) summary_ = new ::io::prometheus::client::Summary;
1712 // @@protoc_insertion_point(field_mutable:io.prometheus.client.Metric.summary)
1713 return summary_;
1714 }
release_summary()1715 inline ::io::prometheus::client::Summary* Metric::release_summary() {
1716 clear_has_summary();
1717 ::io::prometheus::client::Summary* temp = summary_;
1718 summary_ = NULL;
1719 return temp;
1720 }
set_allocated_summary(::io::prometheus::client::Summary * summary)1721 inline void Metric::set_allocated_summary(::io::prometheus::client::Summary* summary) {
1722 delete summary_;
1723 summary_ = summary;
1724 if (summary) {
1725 set_has_summary();
1726 } else {
1727 clear_has_summary();
1728 }
1729 // @@protoc_insertion_point(field_set_allocated:io.prometheus.client.Metric.summary)
1730 }
1731
1732 // optional .io.prometheus.client.Untyped untyped = 5;
has_untyped()1733 inline bool Metric::has_untyped() const {
1734 return (_has_bits_[0] & 0x00000010u) != 0;
1735 }
set_has_untyped()1736 inline void Metric::set_has_untyped() {
1737 _has_bits_[0] |= 0x00000010u;
1738 }
clear_has_untyped()1739 inline void Metric::clear_has_untyped() {
1740 _has_bits_[0] &= ~0x00000010u;
1741 }
clear_untyped()1742 inline void Metric::clear_untyped() {
1743 if (untyped_ != NULL) untyped_->::io::prometheus::client::Untyped::Clear();
1744 clear_has_untyped();
1745 }
untyped()1746 inline const ::io::prometheus::client::Untyped& Metric::untyped() const {
1747 // @@protoc_insertion_point(field_get:io.prometheus.client.Metric.untyped)
1748 return untyped_ != NULL ? *untyped_ : *default_instance_->untyped_;
1749 }
mutable_untyped()1750 inline ::io::prometheus::client::Untyped* Metric::mutable_untyped() {
1751 set_has_untyped();
1752 if (untyped_ == NULL) untyped_ = new ::io::prometheus::client::Untyped;
1753 // @@protoc_insertion_point(field_mutable:io.prometheus.client.Metric.untyped)
1754 return untyped_;
1755 }
release_untyped()1756 inline ::io::prometheus::client::Untyped* Metric::release_untyped() {
1757 clear_has_untyped();
1758 ::io::prometheus::client::Untyped* temp = untyped_;
1759 untyped_ = NULL;
1760 return temp;
1761 }
set_allocated_untyped(::io::prometheus::client::Untyped * untyped)1762 inline void Metric::set_allocated_untyped(::io::prometheus::client::Untyped* untyped) {
1763 delete untyped_;
1764 untyped_ = untyped;
1765 if (untyped) {
1766 set_has_untyped();
1767 } else {
1768 clear_has_untyped();
1769 }
1770 // @@protoc_insertion_point(field_set_allocated:io.prometheus.client.Metric.untyped)
1771 }
1772
1773 // optional .io.prometheus.client.Histogram histogram = 7;
has_histogram()1774 inline bool Metric::has_histogram() const {
1775 return (_has_bits_[0] & 0x00000020u) != 0;
1776 }
set_has_histogram()1777 inline void Metric::set_has_histogram() {
1778 _has_bits_[0] |= 0x00000020u;
1779 }
clear_has_histogram()1780 inline void Metric::clear_has_histogram() {
1781 _has_bits_[0] &= ~0x00000020u;
1782 }
clear_histogram()1783 inline void Metric::clear_histogram() {
1784 if (histogram_ != NULL) histogram_->::io::prometheus::client::Histogram::Clear();
1785 clear_has_histogram();
1786 }
histogram()1787 inline const ::io::prometheus::client::Histogram& Metric::histogram() const {
1788 // @@protoc_insertion_point(field_get:io.prometheus.client.Metric.histogram)
1789 return histogram_ != NULL ? *histogram_ : *default_instance_->histogram_;
1790 }
mutable_histogram()1791 inline ::io::prometheus::client::Histogram* Metric::mutable_histogram() {
1792 set_has_histogram();
1793 if (histogram_ == NULL) histogram_ = new ::io::prometheus::client::Histogram;
1794 // @@protoc_insertion_point(field_mutable:io.prometheus.client.Metric.histogram)
1795 return histogram_;
1796 }
release_histogram()1797 inline ::io::prometheus::client::Histogram* Metric::release_histogram() {
1798 clear_has_histogram();
1799 ::io::prometheus::client::Histogram* temp = histogram_;
1800 histogram_ = NULL;
1801 return temp;
1802 }
set_allocated_histogram(::io::prometheus::client::Histogram * histogram)1803 inline void Metric::set_allocated_histogram(::io::prometheus::client::Histogram* histogram) {
1804 delete histogram_;
1805 histogram_ = histogram;
1806 if (histogram) {
1807 set_has_histogram();
1808 } else {
1809 clear_has_histogram();
1810 }
1811 // @@protoc_insertion_point(field_set_allocated:io.prometheus.client.Metric.histogram)
1812 }
1813
1814 // optional int64 timestamp_ms = 6;
has_timestamp_ms()1815 inline bool Metric::has_timestamp_ms() const {
1816 return (_has_bits_[0] & 0x00000040u) != 0;
1817 }
set_has_timestamp_ms()1818 inline void Metric::set_has_timestamp_ms() {
1819 _has_bits_[0] |= 0x00000040u;
1820 }
clear_has_timestamp_ms()1821 inline void Metric::clear_has_timestamp_ms() {
1822 _has_bits_[0] &= ~0x00000040u;
1823 }
clear_timestamp_ms()1824 inline void Metric::clear_timestamp_ms() {
1825 timestamp_ms_ = GOOGLE_LONGLONG(0);
1826 clear_has_timestamp_ms();
1827 }
timestamp_ms()1828 inline ::google::protobuf::int64 Metric::timestamp_ms() const {
1829 // @@protoc_insertion_point(field_get:io.prometheus.client.Metric.timestamp_ms)
1830 return timestamp_ms_;
1831 }
set_timestamp_ms(::google::protobuf::int64 value)1832 inline void Metric::set_timestamp_ms(::google::protobuf::int64 value) {
1833 set_has_timestamp_ms();
1834 timestamp_ms_ = value;
1835 // @@protoc_insertion_point(field_set:io.prometheus.client.Metric.timestamp_ms)
1836 }
1837
1838 // -------------------------------------------------------------------
1839
1840 // MetricFamily
1841
1842 // optional string name = 1;
has_name()1843 inline bool MetricFamily::has_name() const {
1844 return (_has_bits_[0] & 0x00000001u) != 0;
1845 }
set_has_name()1846 inline void MetricFamily::set_has_name() {
1847 _has_bits_[0] |= 0x00000001u;
1848 }
clear_has_name()1849 inline void MetricFamily::clear_has_name() {
1850 _has_bits_[0] &= ~0x00000001u;
1851 }
clear_name()1852 inline void MetricFamily::clear_name() {
1853 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1854 name_->clear();
1855 }
1856 clear_has_name();
1857 }
name()1858 inline const ::std::string& MetricFamily::name() const {
1859 // @@protoc_insertion_point(field_get:io.prometheus.client.MetricFamily.name)
1860 return *name_;
1861 }
set_name(const::std::string & value)1862 inline void MetricFamily::set_name(const ::std::string& value) {
1863 set_has_name();
1864 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1865 name_ = new ::std::string;
1866 }
1867 name_->assign(value);
1868 // @@protoc_insertion_point(field_set:io.prometheus.client.MetricFamily.name)
1869 }
set_name(const char * value)1870 inline void MetricFamily::set_name(const char* value) {
1871 set_has_name();
1872 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1873 name_ = new ::std::string;
1874 }
1875 name_->assign(value);
1876 // @@protoc_insertion_point(field_set_char:io.prometheus.client.MetricFamily.name)
1877 }
set_name(const char * value,size_t size)1878 inline void MetricFamily::set_name(const char* value, size_t size) {
1879 set_has_name();
1880 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1881 name_ = new ::std::string;
1882 }
1883 name_->assign(reinterpret_cast<const char*>(value), size);
1884 // @@protoc_insertion_point(field_set_pointer:io.prometheus.client.MetricFamily.name)
1885 }
mutable_name()1886 inline ::std::string* MetricFamily::mutable_name() {
1887 set_has_name();
1888 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1889 name_ = new ::std::string;
1890 }
1891 // @@protoc_insertion_point(field_mutable:io.prometheus.client.MetricFamily.name)
1892 return name_;
1893 }
release_name()1894 inline ::std::string* MetricFamily::release_name() {
1895 clear_has_name();
1896 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1897 return NULL;
1898 } else {
1899 ::std::string* temp = name_;
1900 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1901 return temp;
1902 }
1903 }
set_allocated_name(::std::string * name)1904 inline void MetricFamily::set_allocated_name(::std::string* name) {
1905 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1906 delete name_;
1907 }
1908 if (name) {
1909 set_has_name();
1910 name_ = name;
1911 } else {
1912 clear_has_name();
1913 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1914 }
1915 // @@protoc_insertion_point(field_set_allocated:io.prometheus.client.MetricFamily.name)
1916 }
1917
1918 // optional string help = 2;
has_help()1919 inline bool MetricFamily::has_help() const {
1920 return (_has_bits_[0] & 0x00000002u) != 0;
1921 }
set_has_help()1922 inline void MetricFamily::set_has_help() {
1923 _has_bits_[0] |= 0x00000002u;
1924 }
clear_has_help()1925 inline void MetricFamily::clear_has_help() {
1926 _has_bits_[0] &= ~0x00000002u;
1927 }
clear_help()1928 inline void MetricFamily::clear_help() {
1929 if (help_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1930 help_->clear();
1931 }
1932 clear_has_help();
1933 }
help()1934 inline const ::std::string& MetricFamily::help() const {
1935 // @@protoc_insertion_point(field_get:io.prometheus.client.MetricFamily.help)
1936 return *help_;
1937 }
set_help(const::std::string & value)1938 inline void MetricFamily::set_help(const ::std::string& value) {
1939 set_has_help();
1940 if (help_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1941 help_ = new ::std::string;
1942 }
1943 help_->assign(value);
1944 // @@protoc_insertion_point(field_set:io.prometheus.client.MetricFamily.help)
1945 }
set_help(const char * value)1946 inline void MetricFamily::set_help(const char* value) {
1947 set_has_help();
1948 if (help_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1949 help_ = new ::std::string;
1950 }
1951 help_->assign(value);
1952 // @@protoc_insertion_point(field_set_char:io.prometheus.client.MetricFamily.help)
1953 }
set_help(const char * value,size_t size)1954 inline void MetricFamily::set_help(const char* value, size_t size) {
1955 set_has_help();
1956 if (help_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1957 help_ = new ::std::string;
1958 }
1959 help_->assign(reinterpret_cast<const char*>(value), size);
1960 // @@protoc_insertion_point(field_set_pointer:io.prometheus.client.MetricFamily.help)
1961 }
mutable_help()1962 inline ::std::string* MetricFamily::mutable_help() {
1963 set_has_help();
1964 if (help_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1965 help_ = new ::std::string;
1966 }
1967 // @@protoc_insertion_point(field_mutable:io.prometheus.client.MetricFamily.help)
1968 return help_;
1969 }
release_help()1970 inline ::std::string* MetricFamily::release_help() {
1971 clear_has_help();
1972 if (help_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1973 return NULL;
1974 } else {
1975 ::std::string* temp = help_;
1976 help_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1977 return temp;
1978 }
1979 }
set_allocated_help(::std::string * help)1980 inline void MetricFamily::set_allocated_help(::std::string* help) {
1981 if (help_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1982 delete help_;
1983 }
1984 if (help) {
1985 set_has_help();
1986 help_ = help;
1987 } else {
1988 clear_has_help();
1989 help_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1990 }
1991 // @@protoc_insertion_point(field_set_allocated:io.prometheus.client.MetricFamily.help)
1992 }
1993
1994 // optional .io.prometheus.client.MetricType type = 3;
has_type()1995 inline bool MetricFamily::has_type() const {
1996 return (_has_bits_[0] & 0x00000004u) != 0;
1997 }
set_has_type()1998 inline void MetricFamily::set_has_type() {
1999 _has_bits_[0] |= 0x00000004u;
2000 }
clear_has_type()2001 inline void MetricFamily::clear_has_type() {
2002 _has_bits_[0] &= ~0x00000004u;
2003 }
clear_type()2004 inline void MetricFamily::clear_type() {
2005 type_ = 0;
2006 clear_has_type();
2007 }
type()2008 inline ::io::prometheus::client::MetricType MetricFamily::type() const {
2009 // @@protoc_insertion_point(field_get:io.prometheus.client.MetricFamily.type)
2010 return static_cast< ::io::prometheus::client::MetricType >(type_);
2011 }
set_type(::io::prometheus::client::MetricType value)2012 inline void MetricFamily::set_type(::io::prometheus::client::MetricType value) {
2013 assert(::io::prometheus::client::MetricType_IsValid(value));
2014 set_has_type();
2015 type_ = value;
2016 // @@protoc_insertion_point(field_set:io.prometheus.client.MetricFamily.type)
2017 }
2018
2019 // repeated .io.prometheus.client.Metric metric = 4;
metric_size()2020 inline int MetricFamily::metric_size() const {
2021 return metric_.size();
2022 }
clear_metric()2023 inline void MetricFamily::clear_metric() {
2024 metric_.Clear();
2025 }
metric(int index)2026 inline const ::io::prometheus::client::Metric& MetricFamily::metric(int index) const {
2027 // @@protoc_insertion_point(field_get:io.prometheus.client.MetricFamily.metric)
2028 return metric_.Get(index);
2029 }
mutable_metric(int index)2030 inline ::io::prometheus::client::Metric* MetricFamily::mutable_metric(int index) {
2031 // @@protoc_insertion_point(field_mutable:io.prometheus.client.MetricFamily.metric)
2032 return metric_.Mutable(index);
2033 }
add_metric()2034 inline ::io::prometheus::client::Metric* MetricFamily::add_metric() {
2035 // @@protoc_insertion_point(field_add:io.prometheus.client.MetricFamily.metric)
2036 return metric_.Add();
2037 }
2038 inline const ::google::protobuf::RepeatedPtrField< ::io::prometheus::client::Metric >&
metric()2039 MetricFamily::metric() const {
2040 // @@protoc_insertion_point(field_list:io.prometheus.client.MetricFamily.metric)
2041 return metric_;
2042 }
2043 inline ::google::protobuf::RepeatedPtrField< ::io::prometheus::client::Metric >*
mutable_metric()2044 MetricFamily::mutable_metric() {
2045 // @@protoc_insertion_point(field_mutable_list:io.prometheus.client.MetricFamily.metric)
2046 return &metric_;
2047 }
2048
2049
2050 // @@protoc_insertion_point(namespace_scope)
2051
2052 } // namespace client
2053 } // namespace prometheus
2054 } // namespace io
2055
2056 #ifndef SWIG
2057 namespace google {
2058 namespace protobuf {
2059
2060 template <> struct is_proto_enum< ::io::prometheus::client::MetricType> : ::google::protobuf::internal::true_type {};
2061 template <>
2062 inline const EnumDescriptor* GetEnumDescriptor< ::io::prometheus::client::MetricType>() {
2063 return ::io::prometheus::client::MetricType_descriptor();
2064 }
2065
2066 } // namespace google
2067 } // namespace protobuf
2068 #endif // SWIG
2069
2070 // @@protoc_insertion_point(global_scope)
2071
2072 #endif // PROTOBUF_metrics_2eproto__INCLUDED
2073