You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

1333 lines
47 KiB

  1. // Copyright 2013 Prometheus Team
  2. // Licensed under the Apache License, Version 2.0 (the "License");
  3. // you may not use this file except in compliance with the License.
  4. // You may obtain a copy of the License at
  5. //
  6. // http://www.apache.org/licenses/LICENSE-2.0
  7. //
  8. // Unless required by applicable law or agreed to in writing, software
  9. // distributed under the License is distributed on an "AS IS" BASIS,
  10. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. // See the License for the specific language governing permissions and
  12. // limitations under the License.
  13. // Code generated by protoc-gen-go. DO NOT EDIT.
  14. // versions:
  15. // protoc-gen-go v1.30.0
  16. // protoc v3.20.3
  17. // source: io/prometheus/client/metrics.proto
  18. package io_prometheus_client
  19. import (
  20. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  21. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  22. timestamppb "google.golang.org/protobuf/types/known/timestamppb"
  23. reflect "reflect"
  24. sync "sync"
  25. )
  26. const (
  27. // Verify that this generated code is sufficiently up-to-date.
  28. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  29. // Verify that runtime/protoimpl is sufficiently up-to-date.
  30. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  31. )
  32. type MetricType int32
  33. const (
  34. // COUNTER must use the Metric field "counter".
  35. MetricType_COUNTER MetricType = 0
  36. // GAUGE must use the Metric field "gauge".
  37. MetricType_GAUGE MetricType = 1
  38. // SUMMARY must use the Metric field "summary".
  39. MetricType_SUMMARY MetricType = 2
  40. // UNTYPED must use the Metric field "untyped".
  41. MetricType_UNTYPED MetricType = 3
  42. // HISTOGRAM must use the Metric field "histogram".
  43. MetricType_HISTOGRAM MetricType = 4
  44. // GAUGE_HISTOGRAM must use the Metric field "histogram".
  45. MetricType_GAUGE_HISTOGRAM MetricType = 5
  46. )
  47. // Enum value maps for MetricType.
  48. var (
  49. MetricType_name = map[int32]string{
  50. 0: "COUNTER",
  51. 1: "GAUGE",
  52. 2: "SUMMARY",
  53. 3: "UNTYPED",
  54. 4: "HISTOGRAM",
  55. 5: "GAUGE_HISTOGRAM",
  56. }
  57. MetricType_value = map[string]int32{
  58. "COUNTER": 0,
  59. "GAUGE": 1,
  60. "SUMMARY": 2,
  61. "UNTYPED": 3,
  62. "HISTOGRAM": 4,
  63. "GAUGE_HISTOGRAM": 5,
  64. }
  65. )
  66. func (x MetricType) Enum() *MetricType {
  67. p := new(MetricType)
  68. *p = x
  69. return p
  70. }
  71. func (x MetricType) String() string {
  72. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  73. }
  74. func (MetricType) Descriptor() protoreflect.EnumDescriptor {
  75. return file_io_prometheus_client_metrics_proto_enumTypes[0].Descriptor()
  76. }
  77. func (MetricType) Type() protoreflect.EnumType {
  78. return &file_io_prometheus_client_metrics_proto_enumTypes[0]
  79. }
  80. func (x MetricType) Number() protoreflect.EnumNumber {
  81. return protoreflect.EnumNumber(x)
  82. }
  83. // Deprecated: Do not use.
  84. func (x *MetricType) UnmarshalJSON(b []byte) error {
  85. num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
  86. if err != nil {
  87. return err
  88. }
  89. *x = MetricType(num)
  90. return nil
  91. }
  92. // Deprecated: Use MetricType.Descriptor instead.
  93. func (MetricType) EnumDescriptor() ([]byte, []int) {
  94. return file_io_prometheus_client_metrics_proto_rawDescGZIP(), []int{0}
  95. }
  96. type LabelPair struct {
  97. state protoimpl.MessageState
  98. sizeCache protoimpl.SizeCache
  99. unknownFields protoimpl.UnknownFields
  100. Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
  101. Value *string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
  102. }
  103. func (x *LabelPair) Reset() {
  104. *x = LabelPair{}
  105. if protoimpl.UnsafeEnabled {
  106. mi := &file_io_prometheus_client_metrics_proto_msgTypes[0]
  107. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  108. ms.StoreMessageInfo(mi)
  109. }
  110. }
  111. func (x *LabelPair) String() string {
  112. return protoimpl.X.MessageStringOf(x)
  113. }
  114. func (*LabelPair) ProtoMessage() {}
  115. func (x *LabelPair) ProtoReflect() protoreflect.Message {
  116. mi := &file_io_prometheus_client_metrics_proto_msgTypes[0]
  117. if protoimpl.UnsafeEnabled && x != nil {
  118. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  119. if ms.LoadMessageInfo() == nil {
  120. ms.StoreMessageInfo(mi)
  121. }
  122. return ms
  123. }
  124. return mi.MessageOf(x)
  125. }
  126. // Deprecated: Use LabelPair.ProtoReflect.Descriptor instead.
  127. func (*LabelPair) Descriptor() ([]byte, []int) {
  128. return file_io_prometheus_client_metrics_proto_rawDescGZIP(), []int{0}
  129. }
  130. func (x *LabelPair) GetName() string {
  131. if x != nil && x.Name != nil {
  132. return *x.Name
  133. }
  134. return ""
  135. }
  136. func (x *LabelPair) GetValue() string {
  137. if x != nil && x.Value != nil {
  138. return *x.Value
  139. }
  140. return ""
  141. }
  142. type Gauge struct {
  143. state protoimpl.MessageState
  144. sizeCache protoimpl.SizeCache
  145. unknownFields protoimpl.UnknownFields
  146. Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
  147. }
  148. func (x *Gauge) Reset() {
  149. *x = Gauge{}
  150. if protoimpl.UnsafeEnabled {
  151. mi := &file_io_prometheus_client_metrics_proto_msgTypes[1]
  152. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  153. ms.StoreMessageInfo(mi)
  154. }
  155. }
  156. func (x *Gauge) String() string {
  157. return protoimpl.X.MessageStringOf(x)
  158. }
  159. func (*Gauge) ProtoMessage() {}
  160. func (x *Gauge) ProtoReflect() protoreflect.Message {
  161. mi := &file_io_prometheus_client_metrics_proto_msgTypes[1]
  162. if protoimpl.UnsafeEnabled && x != nil {
  163. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  164. if ms.LoadMessageInfo() == nil {
  165. ms.StoreMessageInfo(mi)
  166. }
  167. return ms
  168. }
  169. return mi.MessageOf(x)
  170. }
  171. // Deprecated: Use Gauge.ProtoReflect.Descriptor instead.
  172. func (*Gauge) Descriptor() ([]byte, []int) {
  173. return file_io_prometheus_client_metrics_proto_rawDescGZIP(), []int{1}
  174. }
  175. func (x *Gauge) GetValue() float64 {
  176. if x != nil && x.Value != nil {
  177. return *x.Value
  178. }
  179. return 0
  180. }
  181. type Counter struct {
  182. state protoimpl.MessageState
  183. sizeCache protoimpl.SizeCache
  184. unknownFields protoimpl.UnknownFields
  185. Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
  186. Exemplar *Exemplar `protobuf:"bytes,2,opt,name=exemplar" json:"exemplar,omitempty"`
  187. }
  188. func (x *Counter) Reset() {
  189. *x = Counter{}
  190. if protoimpl.UnsafeEnabled {
  191. mi := &file_io_prometheus_client_metrics_proto_msgTypes[2]
  192. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  193. ms.StoreMessageInfo(mi)
  194. }
  195. }
  196. func (x *Counter) String() string {
  197. return protoimpl.X.MessageStringOf(x)
  198. }
  199. func (*Counter) ProtoMessage() {}
  200. func (x *Counter) ProtoReflect() protoreflect.Message {
  201. mi := &file_io_prometheus_client_metrics_proto_msgTypes[2]
  202. if protoimpl.UnsafeEnabled && x != nil {
  203. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  204. if ms.LoadMessageInfo() == nil {
  205. ms.StoreMessageInfo(mi)
  206. }
  207. return ms
  208. }
  209. return mi.MessageOf(x)
  210. }
  211. // Deprecated: Use Counter.ProtoReflect.Descriptor instead.
  212. func (*Counter) Descriptor() ([]byte, []int) {
  213. return file_io_prometheus_client_metrics_proto_rawDescGZIP(), []int{2}
  214. }
  215. func (x *Counter) GetValue() float64 {
  216. if x != nil && x.Value != nil {
  217. return *x.Value
  218. }
  219. return 0
  220. }
  221. func (x *Counter) GetExemplar() *Exemplar {
  222. if x != nil {
  223. return x.Exemplar
  224. }
  225. return nil
  226. }
  227. type Quantile struct {
  228. state protoimpl.MessageState
  229. sizeCache protoimpl.SizeCache
  230. unknownFields protoimpl.UnknownFields
  231. Quantile *float64 `protobuf:"fixed64,1,opt,name=quantile" json:"quantile,omitempty"`
  232. Value *float64 `protobuf:"fixed64,2,opt,name=value" json:"value,omitempty"`
  233. }
  234. func (x *Quantile) Reset() {
  235. *x = Quantile{}
  236. if protoimpl.UnsafeEnabled {
  237. mi := &file_io_prometheus_client_metrics_proto_msgTypes[3]
  238. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  239. ms.StoreMessageInfo(mi)
  240. }
  241. }
  242. func (x *Quantile) String() string {
  243. return protoimpl.X.MessageStringOf(x)
  244. }
  245. func (*Quantile) ProtoMessage() {}
  246. func (x *Quantile) ProtoReflect() protoreflect.Message {
  247. mi := &file_io_prometheus_client_metrics_proto_msgTypes[3]
  248. if protoimpl.UnsafeEnabled && x != nil {
  249. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  250. if ms.LoadMessageInfo() == nil {
  251. ms.StoreMessageInfo(mi)
  252. }
  253. return ms
  254. }
  255. return mi.MessageOf(x)
  256. }
  257. // Deprecated: Use Quantile.ProtoReflect.Descriptor instead.
  258. func (*Quantile) Descriptor() ([]byte, []int) {
  259. return file_io_prometheus_client_metrics_proto_rawDescGZIP(), []int{3}
  260. }
  261. func (x *Quantile) GetQuantile() float64 {
  262. if x != nil && x.Quantile != nil {
  263. return *x.Quantile
  264. }
  265. return 0
  266. }
  267. func (x *Quantile) GetValue() float64 {
  268. if x != nil && x.Value != nil {
  269. return *x.Value
  270. }
  271. return 0
  272. }
  273. type Summary struct {
  274. state protoimpl.MessageState
  275. sizeCache protoimpl.SizeCache
  276. unknownFields protoimpl.UnknownFields
  277. SampleCount *uint64 `protobuf:"varint,1,opt,name=sample_count,json=sampleCount" json:"sample_count,omitempty"`
  278. SampleSum *float64 `protobuf:"fixed64,2,opt,name=sample_sum,json=sampleSum" json:"sample_sum,omitempty"`
  279. Quantile []*Quantile `protobuf:"bytes,3,rep,name=quantile" json:"quantile,omitempty"`
  280. }
  281. func (x *Summary) Reset() {
  282. *x = Summary{}
  283. if protoimpl.UnsafeEnabled {
  284. mi := &file_io_prometheus_client_metrics_proto_msgTypes[4]
  285. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  286. ms.StoreMessageInfo(mi)
  287. }
  288. }
  289. func (x *Summary) String() string {
  290. return protoimpl.X.MessageStringOf(x)
  291. }
  292. func (*Summary) ProtoMessage() {}
  293. func (x *Summary) ProtoReflect() protoreflect.Message {
  294. mi := &file_io_prometheus_client_metrics_proto_msgTypes[4]
  295. if protoimpl.UnsafeEnabled && x != nil {
  296. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  297. if ms.LoadMessageInfo() == nil {
  298. ms.StoreMessageInfo(mi)
  299. }
  300. return ms
  301. }
  302. return mi.MessageOf(x)
  303. }
  304. // Deprecated: Use Summary.ProtoReflect.Descriptor instead.
  305. func (*Summary) Descriptor() ([]byte, []int) {
  306. return file_io_prometheus_client_metrics_proto_rawDescGZIP(), []int{4}
  307. }
  308. func (x *Summary) GetSampleCount() uint64 {
  309. if x != nil && x.SampleCount != nil {
  310. return *x.SampleCount
  311. }
  312. return 0
  313. }
  314. func (x *Summary) GetSampleSum() float64 {
  315. if x != nil && x.SampleSum != nil {
  316. return *x.SampleSum
  317. }
  318. return 0
  319. }
  320. func (x *Summary) GetQuantile() []*Quantile {
  321. if x != nil {
  322. return x.Quantile
  323. }
  324. return nil
  325. }
  326. type Untyped struct {
  327. state protoimpl.MessageState
  328. sizeCache protoimpl.SizeCache
  329. unknownFields protoimpl.UnknownFields
  330. Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
  331. }
  332. func (x *Untyped) Reset() {
  333. *x = Untyped{}
  334. if protoimpl.UnsafeEnabled {
  335. mi := &file_io_prometheus_client_metrics_proto_msgTypes[5]
  336. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  337. ms.StoreMessageInfo(mi)
  338. }
  339. }
  340. func (x *Untyped) String() string {
  341. return protoimpl.X.MessageStringOf(x)
  342. }
  343. func (*Untyped) ProtoMessage() {}
  344. func (x *Untyped) ProtoReflect() protoreflect.Message {
  345. mi := &file_io_prometheus_client_metrics_proto_msgTypes[5]
  346. if protoimpl.UnsafeEnabled && x != nil {
  347. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  348. if ms.LoadMessageInfo() == nil {
  349. ms.StoreMessageInfo(mi)
  350. }
  351. return ms
  352. }
  353. return mi.MessageOf(x)
  354. }
  355. // Deprecated: Use Untyped.ProtoReflect.Descriptor instead.
  356. func (*Untyped) Descriptor() ([]byte, []int) {
  357. return file_io_prometheus_client_metrics_proto_rawDescGZIP(), []int{5}
  358. }
  359. func (x *Untyped) GetValue() float64 {
  360. if x != nil && x.Value != nil {
  361. return *x.Value
  362. }
  363. return 0
  364. }
  365. type Histogram struct {
  366. state protoimpl.MessageState
  367. sizeCache protoimpl.SizeCache
  368. unknownFields protoimpl.UnknownFields
  369. SampleCount *uint64 `protobuf:"varint,1,opt,name=sample_count,json=sampleCount" json:"sample_count,omitempty"`
  370. SampleCountFloat *float64 `protobuf:"fixed64,4,opt,name=sample_count_float,json=sampleCountFloat" json:"sample_count_float,omitempty"` // Overrides sample_count if > 0.
  371. SampleSum *float64 `protobuf:"fixed64,2,opt,name=sample_sum,json=sampleSum" json:"sample_sum,omitempty"`
  372. // Buckets for the conventional histogram.
  373. Bucket []*Bucket `protobuf:"bytes,3,rep,name=bucket" json:"bucket,omitempty"` // Ordered in increasing order of upper_bound, +Inf bucket is optional.
  374. // schema defines the bucket schema. Currently, valid numbers are -4 <= n <= 8.
  375. // They are all for base-2 bucket schemas, where 1 is a bucket boundary in each case, and
  376. // then each power of two is divided into 2^n logarithmic buckets.
  377. // Or in other words, each bucket boundary is the previous boundary times 2^(2^-n).
  378. // In the future, more bucket schemas may be added using numbers < -4 or > 8.
  379. Schema *int32 `protobuf:"zigzag32,5,opt,name=schema" json:"schema,omitempty"`
  380. ZeroThreshold *float64 `protobuf:"fixed64,6,opt,name=zero_threshold,json=zeroThreshold" json:"zero_threshold,omitempty"` // Breadth of the zero bucket.
  381. ZeroCount *uint64 `protobuf:"varint,7,opt,name=zero_count,json=zeroCount" json:"zero_count,omitempty"` // Count in zero bucket.
  382. ZeroCountFloat *float64 `protobuf:"fixed64,8,opt,name=zero_count_float,json=zeroCountFloat" json:"zero_count_float,omitempty"` // Overrides sb_zero_count if > 0.
  383. // Negative buckets for the native histogram.
  384. NegativeSpan []*BucketSpan `protobuf:"bytes,9,rep,name=negative_span,json=negativeSpan" json:"negative_span,omitempty"`
  385. // Use either "negative_delta" or "negative_count", the former for
  386. // regular histograms with integer counts, the latter for float
  387. // histograms.
  388. NegativeDelta []int64 `protobuf:"zigzag64,10,rep,name=negative_delta,json=negativeDelta" json:"negative_delta,omitempty"` // Count delta of each bucket compared to previous one (or to zero for 1st bucket).
  389. NegativeCount []float64 `protobuf:"fixed64,11,rep,name=negative_count,json=negativeCount" json:"negative_count,omitempty"` // Absolute count of each bucket.
  390. // Positive buckets for the native histogram.
  391. PositiveSpan []*BucketSpan `protobuf:"bytes,12,rep,name=positive_span,json=positiveSpan" json:"positive_span,omitempty"`
  392. // Use either "positive_delta" or "positive_count", the former for
  393. // regular histograms with integer counts, the latter for float
  394. // histograms.
  395. PositiveDelta []int64 `protobuf:"zigzag64,13,rep,name=positive_delta,json=positiveDelta" json:"positive_delta,omitempty"` // Count delta of each bucket compared to previous one (or to zero for 1st bucket).
  396. PositiveCount []float64 `protobuf:"fixed64,14,rep,name=positive_count,json=positiveCount" json:"positive_count,omitempty"` // Absolute count of each bucket.
  397. }
  398. func (x *Histogram) Reset() {
  399. *x = Histogram{}
  400. if protoimpl.UnsafeEnabled {
  401. mi := &file_io_prometheus_client_metrics_proto_msgTypes[6]
  402. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  403. ms.StoreMessageInfo(mi)
  404. }
  405. }
  406. func (x *Histogram) String() string {
  407. return protoimpl.X.MessageStringOf(x)
  408. }
  409. func (*Histogram) ProtoMessage() {}
  410. func (x *Histogram) ProtoReflect() protoreflect.Message {
  411. mi := &file_io_prometheus_client_metrics_proto_msgTypes[6]
  412. if protoimpl.UnsafeEnabled && x != nil {
  413. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  414. if ms.LoadMessageInfo() == nil {
  415. ms.StoreMessageInfo(mi)
  416. }
  417. return ms
  418. }
  419. return mi.MessageOf(x)
  420. }
  421. // Deprecated: Use Histogram.ProtoReflect.Descriptor instead.
  422. func (*Histogram) Descriptor() ([]byte, []int) {
  423. return file_io_prometheus_client_metrics_proto_rawDescGZIP(), []int{6}
  424. }
  425. func (x *Histogram) GetSampleCount() uint64 {
  426. if x != nil && x.SampleCount != nil {
  427. return *x.SampleCount
  428. }
  429. return 0
  430. }
  431. func (x *Histogram) GetSampleCountFloat() float64 {
  432. if x != nil && x.SampleCountFloat != nil {
  433. return *x.SampleCountFloat
  434. }
  435. return 0
  436. }
  437. func (x *Histogram) GetSampleSum() float64 {
  438. if x != nil && x.SampleSum != nil {
  439. return *x.SampleSum
  440. }
  441. return 0
  442. }
  443. func (x *Histogram) GetBucket() []*Bucket {
  444. if x != nil {
  445. return x.Bucket
  446. }
  447. return nil
  448. }
  449. func (x *Histogram) GetSchema() int32 {
  450. if x != nil && x.Schema != nil {
  451. return *x.Schema
  452. }
  453. return 0
  454. }
  455. func (x *Histogram) GetZeroThreshold() float64 {
  456. if x != nil && x.ZeroThreshold != nil {
  457. return *x.ZeroThreshold
  458. }
  459. return 0
  460. }
  461. func (x *Histogram) GetZeroCount() uint64 {
  462. if x != nil && x.ZeroCount != nil {
  463. return *x.ZeroCount
  464. }
  465. return 0
  466. }
  467. func (x *Histogram) GetZeroCountFloat() float64 {
  468. if x != nil && x.ZeroCountFloat != nil {
  469. return *x.ZeroCountFloat
  470. }
  471. return 0
  472. }
  473. func (x *Histogram) GetNegativeSpan() []*BucketSpan {
  474. if x != nil {
  475. return x.NegativeSpan
  476. }
  477. return nil
  478. }
  479. func (x *Histogram) GetNegativeDelta() []int64 {
  480. if x != nil {
  481. return x.NegativeDelta
  482. }
  483. return nil
  484. }
  485. func (x *Histogram) GetNegativeCount() []float64 {
  486. if x != nil {
  487. return x.NegativeCount
  488. }
  489. return nil
  490. }
  491. func (x *Histogram) GetPositiveSpan() []*BucketSpan {
  492. if x != nil {
  493. return x.PositiveSpan
  494. }
  495. return nil
  496. }
  497. func (x *Histogram) GetPositiveDelta() []int64 {
  498. if x != nil {
  499. return x.PositiveDelta
  500. }
  501. return nil
  502. }
  503. func (x *Histogram) GetPositiveCount() []float64 {
  504. if x != nil {
  505. return x.PositiveCount
  506. }
  507. return nil
  508. }
  509. // A Bucket of a conventional histogram, each of which is treated as
  510. // an individual counter-like time series by Prometheus.
  511. type Bucket struct {
  512. state protoimpl.MessageState
  513. sizeCache protoimpl.SizeCache
  514. unknownFields protoimpl.UnknownFields
  515. CumulativeCount *uint64 `protobuf:"varint,1,opt,name=cumulative_count,json=cumulativeCount" json:"cumulative_count,omitempty"` // Cumulative in increasing order.
  516. CumulativeCountFloat *float64 `protobuf:"fixed64,4,opt,name=cumulative_count_float,json=cumulativeCountFloat" json:"cumulative_count_float,omitempty"` // Overrides cumulative_count if > 0.
  517. UpperBound *float64 `protobuf:"fixed64,2,opt,name=upper_bound,json=upperBound" json:"upper_bound,omitempty"` // Inclusive.
  518. Exemplar *Exemplar `protobuf:"bytes,3,opt,name=exemplar" json:"exemplar,omitempty"`
  519. }
  520. func (x *Bucket) Reset() {
  521. *x = Bucket{}
  522. if protoimpl.UnsafeEnabled {
  523. mi := &file_io_prometheus_client_metrics_proto_msgTypes[7]
  524. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  525. ms.StoreMessageInfo(mi)
  526. }
  527. }
  528. func (x *Bucket) String() string {
  529. return protoimpl.X.MessageStringOf(x)
  530. }
  531. func (*Bucket) ProtoMessage() {}
  532. func (x *Bucket) ProtoReflect() protoreflect.Message {
  533. mi := &file_io_prometheus_client_metrics_proto_msgTypes[7]
  534. if protoimpl.UnsafeEnabled && x != nil {
  535. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  536. if ms.LoadMessageInfo() == nil {
  537. ms.StoreMessageInfo(mi)
  538. }
  539. return ms
  540. }
  541. return mi.MessageOf(x)
  542. }
  543. // Deprecated: Use Bucket.ProtoReflect.Descriptor instead.
  544. func (*Bucket) Descriptor() ([]byte, []int) {
  545. return file_io_prometheus_client_metrics_proto_rawDescGZIP(), []int{7}
  546. }
  547. func (x *Bucket) GetCumulativeCount() uint64 {
  548. if x != nil && x.CumulativeCount != nil {
  549. return *x.CumulativeCount
  550. }
  551. return 0
  552. }
  553. func (x *Bucket) GetCumulativeCountFloat() float64 {
  554. if x != nil && x.CumulativeCountFloat != nil {
  555. return *x.CumulativeCountFloat
  556. }
  557. return 0
  558. }
  559. func (x *Bucket) GetUpperBound() float64 {
  560. if x != nil && x.UpperBound != nil {
  561. return *x.UpperBound
  562. }
  563. return 0
  564. }
  565. func (x *Bucket) GetExemplar() *Exemplar {
  566. if x != nil {
  567. return x.Exemplar
  568. }
  569. return nil
  570. }
  571. // A BucketSpan defines a number of consecutive buckets in a native
  572. // histogram with their offset. Logically, it would be more
  573. // straightforward to include the bucket counts in the Span. However,
  574. // the protobuf representation is more compact in the way the data is
  575. // structured here (with all the buckets in a single array separate
  576. // from the Spans).
  577. type BucketSpan struct {
  578. state protoimpl.MessageState
  579. sizeCache protoimpl.SizeCache
  580. unknownFields protoimpl.UnknownFields
  581. Offset *int32 `protobuf:"zigzag32,1,opt,name=offset" json:"offset,omitempty"` // Gap to previous span, or starting point for 1st span (which can be negative).
  582. Length *uint32 `protobuf:"varint,2,opt,name=length" json:"length,omitempty"` // Length of consecutive buckets.
  583. }
  584. func (x *BucketSpan) Reset() {
  585. *x = BucketSpan{}
  586. if protoimpl.UnsafeEnabled {
  587. mi := &file_io_prometheus_client_metrics_proto_msgTypes[8]
  588. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  589. ms.StoreMessageInfo(mi)
  590. }
  591. }
  592. func (x *BucketSpan) String() string {
  593. return protoimpl.X.MessageStringOf(x)
  594. }
  595. func (*BucketSpan) ProtoMessage() {}
  596. func (x *BucketSpan) ProtoReflect() protoreflect.Message {
  597. mi := &file_io_prometheus_client_metrics_proto_msgTypes[8]
  598. if protoimpl.UnsafeEnabled && x != nil {
  599. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  600. if ms.LoadMessageInfo() == nil {
  601. ms.StoreMessageInfo(mi)
  602. }
  603. return ms
  604. }
  605. return mi.MessageOf(x)
  606. }
  607. // Deprecated: Use BucketSpan.ProtoReflect.Descriptor instead.
  608. func (*BucketSpan) Descriptor() ([]byte, []int) {
  609. return file_io_prometheus_client_metrics_proto_rawDescGZIP(), []int{8}
  610. }
  611. func (x *BucketSpan) GetOffset() int32 {
  612. if x != nil && x.Offset != nil {
  613. return *x.Offset
  614. }
  615. return 0
  616. }
  617. func (x *BucketSpan) GetLength() uint32 {
  618. if x != nil && x.Length != nil {
  619. return *x.Length
  620. }
  621. return 0
  622. }
  623. type Exemplar struct {
  624. state protoimpl.MessageState
  625. sizeCache protoimpl.SizeCache
  626. unknownFields protoimpl.UnknownFields
  627. Label []*LabelPair `protobuf:"bytes,1,rep,name=label" json:"label,omitempty"`
  628. Value *float64 `protobuf:"fixed64,2,opt,name=value" json:"value,omitempty"`
  629. Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp" json:"timestamp,omitempty"` // OpenMetrics-style.
  630. }
  631. func (x *Exemplar) Reset() {
  632. *x = Exemplar{}
  633. if protoimpl.UnsafeEnabled {
  634. mi := &file_io_prometheus_client_metrics_proto_msgTypes[9]
  635. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  636. ms.StoreMessageInfo(mi)
  637. }
  638. }
  639. func (x *Exemplar) String() string {
  640. return protoimpl.X.MessageStringOf(x)
  641. }
  642. func (*Exemplar) ProtoMessage() {}
  643. func (x *Exemplar) ProtoReflect() protoreflect.Message {
  644. mi := &file_io_prometheus_client_metrics_proto_msgTypes[9]
  645. if protoimpl.UnsafeEnabled && x != nil {
  646. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  647. if ms.LoadMessageInfo() == nil {
  648. ms.StoreMessageInfo(mi)
  649. }
  650. return ms
  651. }
  652. return mi.MessageOf(x)
  653. }
  654. // Deprecated: Use Exemplar.ProtoReflect.Descriptor instead.
  655. func (*Exemplar) Descriptor() ([]byte, []int) {
  656. return file_io_prometheus_client_metrics_proto_rawDescGZIP(), []int{9}
  657. }
  658. func (x *Exemplar) GetLabel() []*LabelPair {
  659. if x != nil {
  660. return x.Label
  661. }
  662. return nil
  663. }
  664. func (x *Exemplar) GetValue() float64 {
  665. if x != nil && x.Value != nil {
  666. return *x.Value
  667. }
  668. return 0
  669. }
  670. func (x *Exemplar) GetTimestamp() *timestamppb.Timestamp {
  671. if x != nil {
  672. return x.Timestamp
  673. }
  674. return nil
  675. }
  676. type Metric struct {
  677. state protoimpl.MessageState
  678. sizeCache protoimpl.SizeCache
  679. unknownFields protoimpl.UnknownFields
  680. Label []*LabelPair `protobuf:"bytes,1,rep,name=label" json:"label,omitempty"`
  681. Gauge *Gauge `protobuf:"bytes,2,opt,name=gauge" json:"gauge,omitempty"`
  682. Counter *Counter `protobuf:"bytes,3,opt,name=counter" json:"counter,omitempty"`
  683. Summary *Summary `protobuf:"bytes,4,opt,name=summary" json:"summary,omitempty"`
  684. Untyped *Untyped `protobuf:"bytes,5,opt,name=untyped" json:"untyped,omitempty"`
  685. Histogram *Histogram `protobuf:"bytes,7,opt,name=histogram" json:"histogram,omitempty"`
  686. TimestampMs *int64 `protobuf:"varint,6,opt,name=timestamp_ms,json=timestampMs" json:"timestamp_ms,omitempty"`
  687. }
  688. func (x *Metric) Reset() {
  689. *x = Metric{}
  690. if protoimpl.UnsafeEnabled {
  691. mi := &file_io_prometheus_client_metrics_proto_msgTypes[10]
  692. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  693. ms.StoreMessageInfo(mi)
  694. }
  695. }
  696. func (x *Metric) String() string {
  697. return protoimpl.X.MessageStringOf(x)
  698. }
  699. func (*Metric) ProtoMessage() {}
  700. func (x *Metric) ProtoReflect() protoreflect.Message {
  701. mi := &file_io_prometheus_client_metrics_proto_msgTypes[10]
  702. if protoimpl.UnsafeEnabled && x != nil {
  703. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  704. if ms.LoadMessageInfo() == nil {
  705. ms.StoreMessageInfo(mi)
  706. }
  707. return ms
  708. }
  709. return mi.MessageOf(x)
  710. }
  711. // Deprecated: Use Metric.ProtoReflect.Descriptor instead.
  712. func (*Metric) Descriptor() ([]byte, []int) {
  713. return file_io_prometheus_client_metrics_proto_rawDescGZIP(), []int{10}
  714. }
  715. func (x *Metric) GetLabel() []*LabelPair {
  716. if x != nil {
  717. return x.Label
  718. }
  719. return nil
  720. }
  721. func (x *Metric) GetGauge() *Gauge {
  722. if x != nil {
  723. return x.Gauge
  724. }
  725. return nil
  726. }
  727. func (x *Metric) GetCounter() *Counter {
  728. if x != nil {
  729. return x.Counter
  730. }
  731. return nil
  732. }
  733. func (x *Metric) GetSummary() *Summary {
  734. if x != nil {
  735. return x.Summary
  736. }
  737. return nil
  738. }
  739. func (x *Metric) GetUntyped() *Untyped {
  740. if x != nil {
  741. return x.Untyped
  742. }
  743. return nil
  744. }
  745. func (x *Metric) GetHistogram() *Histogram {
  746. if x != nil {
  747. return x.Histogram
  748. }
  749. return nil
  750. }
  751. func (x *Metric) GetTimestampMs() int64 {
  752. if x != nil && x.TimestampMs != nil {
  753. return *x.TimestampMs
  754. }
  755. return 0
  756. }
  757. type MetricFamily struct {
  758. state protoimpl.MessageState
  759. sizeCache protoimpl.SizeCache
  760. unknownFields protoimpl.UnknownFields
  761. Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
  762. Help *string `protobuf:"bytes,2,opt,name=help" json:"help,omitempty"`
  763. Type *MetricType `protobuf:"varint,3,opt,name=type,enum=io.prometheus.client.MetricType" json:"type,omitempty"`
  764. Metric []*Metric `protobuf:"bytes,4,rep,name=metric" json:"metric,omitempty"`
  765. }
  766. func (x *MetricFamily) Reset() {
  767. *x = MetricFamily{}
  768. if protoimpl.UnsafeEnabled {
  769. mi := &file_io_prometheus_client_metrics_proto_msgTypes[11]
  770. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  771. ms.StoreMessageInfo(mi)
  772. }
  773. }
  774. func (x *MetricFamily) String() string {
  775. return protoimpl.X.MessageStringOf(x)
  776. }
  777. func (*MetricFamily) ProtoMessage() {}
  778. func (x *MetricFamily) ProtoReflect() protoreflect.Message {
  779. mi := &file_io_prometheus_client_metrics_proto_msgTypes[11]
  780. if protoimpl.UnsafeEnabled && x != nil {
  781. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  782. if ms.LoadMessageInfo() == nil {
  783. ms.StoreMessageInfo(mi)
  784. }
  785. return ms
  786. }
  787. return mi.MessageOf(x)
  788. }
  789. // Deprecated: Use MetricFamily.ProtoReflect.Descriptor instead.
  790. func (*MetricFamily) Descriptor() ([]byte, []int) {
  791. return file_io_prometheus_client_metrics_proto_rawDescGZIP(), []int{11}
  792. }
  793. func (x *MetricFamily) GetName() string {
  794. if x != nil && x.Name != nil {
  795. return *x.Name
  796. }
  797. return ""
  798. }
  799. func (x *MetricFamily) GetHelp() string {
  800. if x != nil && x.Help != nil {
  801. return *x.Help
  802. }
  803. return ""
  804. }
  805. func (x *MetricFamily) GetType() MetricType {
  806. if x != nil && x.Type != nil {
  807. return *x.Type
  808. }
  809. return MetricType_COUNTER
  810. }
  811. func (x *MetricFamily) GetMetric() []*Metric {
  812. if x != nil {
  813. return x.Metric
  814. }
  815. return nil
  816. }
  817. var File_io_prometheus_client_metrics_proto protoreflect.FileDescriptor
  818. var file_io_prometheus_client_metrics_proto_rawDesc = []byte{
  819. 0x0a, 0x22, 0x69, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x2f,
  820. 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70,
  821. 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x69, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68,
  822. 0x65, 0x75, 0x73, 0x2e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67,
  823. 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65,
  824. 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x35, 0x0a, 0x09, 0x4c,
  825. 0x61, 0x62, 0x65, 0x6c, 0x50, 0x61, 0x69, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
  826. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05,
  827. 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c,
  828. 0x75, 0x65, 0x22, 0x1d, 0x0a, 0x05, 0x47, 0x61, 0x75, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76,
  829. 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
  830. 0x65, 0x22, 0x5b, 0x0a, 0x07, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05,
  831. 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c,
  832. 0x75, 0x65, 0x12, 0x3a, 0x0a, 0x08, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x18, 0x02,
  833. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x69, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74,
  834. 0x68, 0x65, 0x75, 0x73, 0x2e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x45, 0x78, 0x65, 0x6d,
  835. 0x70, 0x6c, 0x61, 0x72, 0x52, 0x08, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x22, 0x3c,
  836. 0x0a, 0x08, 0x51, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x71, 0x75,
  837. 0x61, 0x6e, 0x74, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x08, 0x71, 0x75,
  838. 0x61, 0x6e, 0x74, 0x69, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
  839. 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x87, 0x01, 0x0a,
  840. 0x07, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x61, 0x6d, 0x70,
  841. 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b,
  842. 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73,
  843. 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x5f, 0x73, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52,
  844. 0x09, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x53, 0x75, 0x6d, 0x12, 0x3a, 0x0a, 0x08, 0x71, 0x75,
  845. 0x61, 0x6e, 0x74, 0x69, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x69,
  846. 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x2e, 0x63, 0x6c, 0x69,
  847. 0x65, 0x6e, 0x74, 0x2e, 0x51, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x6c, 0x65, 0x52, 0x08, 0x71, 0x75,
  848. 0x61, 0x6e, 0x74, 0x69, 0x6c, 0x65, 0x22, 0x1f, 0x0a, 0x07, 0x55, 0x6e, 0x74, 0x79, 0x70, 0x65,
  849. 0x64, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01,
  850. 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xe3, 0x04, 0x0a, 0x09, 0x48, 0x69, 0x73, 0x74,
  851. 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x5f,
  852. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x73, 0x61, 0x6d,
  853. 0x70, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x73, 0x61, 0x6d, 0x70,
  854. 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x04,
  855. 0x20, 0x01, 0x28, 0x01, 0x52, 0x10, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e,
  856. 0x74, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65,
  857. 0x5f, 0x73, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x09, 0x73, 0x61, 0x6d, 0x70,
  858. 0x6c, 0x65, 0x53, 0x75, 0x6d, 0x12, 0x34, 0x0a, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x18,
  859. 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x69, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65,
  860. 0x74, 0x68, 0x65, 0x75, 0x73, 0x2e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x42, 0x75, 0x63,
  861. 0x6b, 0x65, 0x74, 0x52, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73,
  862. 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x11, 0x52, 0x06, 0x73, 0x63, 0x68,
  863. 0x65, 0x6d, 0x61, 0x12, 0x25, 0x0a, 0x0e, 0x7a, 0x65, 0x72, 0x6f, 0x5f, 0x74, 0x68, 0x72, 0x65,
  864. 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0d, 0x7a, 0x65, 0x72,
  865. 0x6f, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x7a, 0x65,
  866. 0x72, 0x6f, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09,
  867. 0x7a, 0x65, 0x72, 0x6f, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x28, 0x0a, 0x10, 0x7a, 0x65, 0x72,
  868. 0x6f, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x08, 0x20,
  869. 0x01, 0x28, 0x01, 0x52, 0x0e, 0x7a, 0x65, 0x72, 0x6f, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x46, 0x6c,
  870. 0x6f, 0x61, 0x74, 0x12, 0x45, 0x0a, 0x0d, 0x6e, 0x65, 0x67, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f,
  871. 0x73, 0x70, 0x61, 0x6e, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x69, 0x6f, 0x2e,
  872. 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x2e, 0x63, 0x6c, 0x69, 0x65, 0x6e,
  873. 0x74, 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x70, 0x61, 0x6e, 0x52, 0x0c, 0x6e, 0x65,
  874. 0x67, 0x61, 0x74, 0x69, 0x76, 0x65, 0x53, 0x70, 0x61, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x6e, 0x65,
  875. 0x67, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x18, 0x0a, 0x20, 0x03,
  876. 0x28, 0x12, 0x52, 0x0d, 0x6e, 0x65, 0x67, 0x61, 0x74, 0x69, 0x76, 0x65, 0x44, 0x65, 0x6c, 0x74,
  877. 0x61, 0x12, 0x25, 0x0a, 0x0e, 0x6e, 0x65, 0x67, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x63, 0x6f,
  878. 0x75, 0x6e, 0x74, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x01, 0x52, 0x0d, 0x6e, 0x65, 0x67, 0x61, 0x74,
  879. 0x69, 0x76, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x45, 0x0a, 0x0d, 0x70, 0x6f, 0x73, 0x69,
  880. 0x74, 0x69, 0x76, 0x65, 0x5f, 0x73, 0x70, 0x61, 0x6e, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32,
  881. 0x20, 0x2e, 0x69, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x2e,
  882. 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x70, 0x61,
  883. 0x6e, 0x52, 0x0c, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x53, 0x70, 0x61, 0x6e, 0x12,
  884. 0x25, 0x0a, 0x0e, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x64, 0x65, 0x6c, 0x74,
  885. 0x61, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x12, 0x52, 0x0d, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76,
  886. 0x65, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69,
  887. 0x76, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x01, 0x52, 0x0d,
  888. 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xc6, 0x01,
  889. 0x0a, 0x06, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x75, 0x6d, 0x75,
  890. 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01,
  891. 0x28, 0x04, 0x52, 0x0f, 0x63, 0x75, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x43, 0x6f,
  892. 0x75, 0x6e, 0x74, 0x12, 0x34, 0x0a, 0x16, 0x63, 0x75, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x76,
  893. 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x04, 0x20,
  894. 0x01, 0x28, 0x01, 0x52, 0x14, 0x63, 0x75, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x43,
  895. 0x6f, 0x75, 0x6e, 0x74, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x75, 0x70, 0x70,
  896. 0x65, 0x72, 0x5f, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0a,
  897. 0x75, 0x70, 0x70, 0x65, 0x72, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x3a, 0x0a, 0x08, 0x65, 0x78,
  898. 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x69,
  899. 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x2e, 0x63, 0x6c, 0x69,
  900. 0x65, 0x6e, 0x74, 0x2e, 0x45, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x52, 0x08, 0x65, 0x78,
  901. 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x22, 0x3c, 0x0a, 0x0a, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74,
  902. 0x53, 0x70, 0x61, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x01,
  903. 0x20, 0x01, 0x28, 0x11, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06,
  904. 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x6c, 0x65,
  905. 0x6e, 0x67, 0x74, 0x68, 0x22, 0x91, 0x01, 0x0a, 0x08, 0x45, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61,
  906. 0x72, 0x12, 0x35, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
  907. 0x32, 0x1f, 0x2e, 0x69, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73,
  908. 0x2e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x50, 0x61, 0x69,
  909. 0x72, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
  910. 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x38,
  911. 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28,
  912. 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  913. 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74,
  914. 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xff, 0x02, 0x0a, 0x06, 0x4d, 0x65, 0x74,
  915. 0x72, 0x69, 0x63, 0x12, 0x35, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x03,
  916. 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x69, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65,
  917. 0x75, 0x73, 0x2e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x50,
  918. 0x61, 0x69, 0x72, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x31, 0x0a, 0x05, 0x67, 0x61,
  919. 0x75, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x69, 0x6f, 0x2e, 0x70,
  920. 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x2e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
  921. 0x2e, 0x47, 0x61, 0x75, 0x67, 0x65, 0x52, 0x05, 0x67, 0x61, 0x75, 0x67, 0x65, 0x12, 0x37, 0x0a,
  922. 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d,
  923. 0x2e, 0x69, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x2e, 0x63,
  924. 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x07, 0x63,
  925. 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x37, 0x0a, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72,
  926. 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x69, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
  927. 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x2e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x53,
  928. 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12,
  929. 0x37, 0x0a, 0x07, 0x75, 0x6e, 0x74, 0x79, 0x70, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b,
  930. 0x32, 0x1d, 0x2e, 0x69, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73,
  931. 0x2e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x55, 0x6e, 0x74, 0x79, 0x70, 0x65, 0x64, 0x52,
  932. 0x07, 0x75, 0x6e, 0x74, 0x79, 0x70, 0x65, 0x64, 0x12, 0x3d, 0x0a, 0x09, 0x68, 0x69, 0x73, 0x74,
  933. 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x69, 0x6f,
  934. 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x2e, 0x63, 0x6c, 0x69, 0x65,
  935. 0x6e, 0x74, 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x52, 0x09, 0x68, 0x69,
  936. 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x69, 0x6d, 0x65, 0x73,
  937. 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x74,
  938. 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x73, 0x22, 0xa2, 0x01, 0x0a, 0x0c, 0x4d,
  939. 0x65, 0x74, 0x72, 0x69, 0x63, 0x46, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e,
  940. 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
  941. 0x12, 0x0a, 0x04, 0x68, 0x65, 0x6c, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68,
  942. 0x65, 0x6c, 0x70, 0x12, 0x34, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
  943. 0x0e, 0x32, 0x20, 0x2e, 0x69, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75,
  944. 0x73, 0x2e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x54,
  945. 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x34, 0x0a, 0x06, 0x6d, 0x65, 0x74,
  946. 0x72, 0x69, 0x63, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x69, 0x6f, 0x2e, 0x70,
  947. 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x2e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
  948. 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x2a,
  949. 0x62, 0x0a, 0x0a, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a,
  950. 0x07, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x45, 0x52, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x47, 0x41,
  951. 0x55, 0x47, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x55, 0x4d, 0x4d, 0x41, 0x52, 0x59,
  952. 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x54, 0x59, 0x50, 0x45, 0x44, 0x10, 0x03, 0x12,
  953. 0x0d, 0x0a, 0x09, 0x48, 0x49, 0x53, 0x54, 0x4f, 0x47, 0x52, 0x41, 0x4d, 0x10, 0x04, 0x12, 0x13,
  954. 0x0a, 0x0f, 0x47, 0x41, 0x55, 0x47, 0x45, 0x5f, 0x48, 0x49, 0x53, 0x54, 0x4f, 0x47, 0x52, 0x41,
  955. 0x4d, 0x10, 0x05, 0x42, 0x52, 0x0a, 0x14, 0x69, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74,
  956. 0x68, 0x65, 0x75, 0x73, 0x2e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5a, 0x3a, 0x67, 0x69, 0x74,
  957. 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65,
  958. 0x75, 0x73, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f,
  959. 0x67, 0x6f, 0x3b, 0x69, 0x6f, 0x5f, 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73,
  960. 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
  961. }
  962. var (
  963. file_io_prometheus_client_metrics_proto_rawDescOnce sync.Once
  964. file_io_prometheus_client_metrics_proto_rawDescData = file_io_prometheus_client_metrics_proto_rawDesc
  965. )
  966. func file_io_prometheus_client_metrics_proto_rawDescGZIP() []byte {
  967. file_io_prometheus_client_metrics_proto_rawDescOnce.Do(func() {
  968. file_io_prometheus_client_metrics_proto_rawDescData = protoimpl.X.CompressGZIP(file_io_prometheus_client_metrics_proto_rawDescData)
  969. })
  970. return file_io_prometheus_client_metrics_proto_rawDescData
  971. }
  972. var file_io_prometheus_client_metrics_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  973. var file_io_prometheus_client_metrics_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
  974. var file_io_prometheus_client_metrics_proto_goTypes = []interface{}{
  975. (MetricType)(0), // 0: io.prometheus.client.MetricType
  976. (*LabelPair)(nil), // 1: io.prometheus.client.LabelPair
  977. (*Gauge)(nil), // 2: io.prometheus.client.Gauge
  978. (*Counter)(nil), // 3: io.prometheus.client.Counter
  979. (*Quantile)(nil), // 4: io.prometheus.client.Quantile
  980. (*Summary)(nil), // 5: io.prometheus.client.Summary
  981. (*Untyped)(nil), // 6: io.prometheus.client.Untyped
  982. (*Histogram)(nil), // 7: io.prometheus.client.Histogram
  983. (*Bucket)(nil), // 8: io.prometheus.client.Bucket
  984. (*BucketSpan)(nil), // 9: io.prometheus.client.BucketSpan
  985. (*Exemplar)(nil), // 10: io.prometheus.client.Exemplar
  986. (*Metric)(nil), // 11: io.prometheus.client.Metric
  987. (*MetricFamily)(nil), // 12: io.prometheus.client.MetricFamily
  988. (*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp
  989. }
  990. var file_io_prometheus_client_metrics_proto_depIdxs = []int32{
  991. 10, // 0: io.prometheus.client.Counter.exemplar:type_name -> io.prometheus.client.Exemplar
  992. 4, // 1: io.prometheus.client.Summary.quantile:type_name -> io.prometheus.client.Quantile
  993. 8, // 2: io.prometheus.client.Histogram.bucket:type_name -> io.prometheus.client.Bucket
  994. 9, // 3: io.prometheus.client.Histogram.negative_span:type_name -> io.prometheus.client.BucketSpan
  995. 9, // 4: io.prometheus.client.Histogram.positive_span:type_name -> io.prometheus.client.BucketSpan
  996. 10, // 5: io.prometheus.client.Bucket.exemplar:type_name -> io.prometheus.client.Exemplar
  997. 1, // 6: io.prometheus.client.Exemplar.label:type_name -> io.prometheus.client.LabelPair
  998. 13, // 7: io.prometheus.client.Exemplar.timestamp:type_name -> google.protobuf.Timestamp
  999. 1, // 8: io.prometheus.client.Metric.label:type_name -> io.prometheus.client.LabelPair
  1000. 2, // 9: io.prometheus.client.Metric.gauge:type_name -> io.prometheus.client.Gauge
  1001. 3, // 10: io.prometheus.client.Metric.counter:type_name -> io.prometheus.client.Counter
  1002. 5, // 11: io.prometheus.client.Metric.summary:type_name -> io.prometheus.client.Summary
  1003. 6, // 12: io.prometheus.client.Metric.untyped:type_name -> io.prometheus.client.Untyped
  1004. 7, // 13: io.prometheus.client.Metric.histogram:type_name -> io.prometheus.client.Histogram
  1005. 0, // 14: io.prometheus.client.MetricFamily.type:type_name -> io.prometheus.client.MetricType
  1006. 11, // 15: io.prometheus.client.MetricFamily.metric:type_name -> io.prometheus.client.Metric
  1007. 16, // [16:16] is the sub-list for method output_type
  1008. 16, // [16:16] is the sub-list for method input_type
  1009. 16, // [16:16] is the sub-list for extension type_name
  1010. 16, // [16:16] is the sub-list for extension extendee
  1011. 0, // [0:16] is the sub-list for field type_name
  1012. }
  1013. func init() { file_io_prometheus_client_metrics_proto_init() }
  1014. func file_io_prometheus_client_metrics_proto_init() {
  1015. if File_io_prometheus_client_metrics_proto != nil {
  1016. return
  1017. }
  1018. if !protoimpl.UnsafeEnabled {
  1019. file_io_prometheus_client_metrics_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  1020. switch v := v.(*LabelPair); i {
  1021. case 0:
  1022. return &v.state
  1023. case 1:
  1024. return &v.sizeCache
  1025. case 2:
  1026. return &v.unknownFields
  1027. default:
  1028. return nil
  1029. }
  1030. }
  1031. file_io_prometheus_client_metrics_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  1032. switch v := v.(*Gauge); i {
  1033. case 0:
  1034. return &v.state
  1035. case 1:
  1036. return &v.sizeCache
  1037. case 2:
  1038. return &v.unknownFields
  1039. default:
  1040. return nil
  1041. }
  1042. }
  1043. file_io_prometheus_client_metrics_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  1044. switch v := v.(*Counter); i {
  1045. case 0:
  1046. return &v.state
  1047. case 1:
  1048. return &v.sizeCache
  1049. case 2:
  1050. return &v.unknownFields
  1051. default:
  1052. return nil
  1053. }
  1054. }
  1055. file_io_prometheus_client_metrics_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  1056. switch v := v.(*Quantile); i {
  1057. case 0:
  1058. return &v.state
  1059. case 1:
  1060. return &v.sizeCache
  1061. case 2:
  1062. return &v.unknownFields
  1063. default:
  1064. return nil
  1065. }
  1066. }
  1067. file_io_prometheus_client_metrics_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  1068. switch v := v.(*Summary); i {
  1069. case 0:
  1070. return &v.state
  1071. case 1:
  1072. return &v.sizeCache
  1073. case 2:
  1074. return &v.unknownFields
  1075. default:
  1076. return nil
  1077. }
  1078. }
  1079. file_io_prometheus_client_metrics_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  1080. switch v := v.(*Untyped); i {
  1081. case 0:
  1082. return &v.state
  1083. case 1:
  1084. return &v.sizeCache
  1085. case 2:
  1086. return &v.unknownFields
  1087. default:
  1088. return nil
  1089. }
  1090. }
  1091. file_io_prometheus_client_metrics_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  1092. switch v := v.(*Histogram); i {
  1093. case 0:
  1094. return &v.state
  1095. case 1:
  1096. return &v.sizeCache
  1097. case 2:
  1098. return &v.unknownFields
  1099. default:
  1100. return nil
  1101. }
  1102. }
  1103. file_io_prometheus_client_metrics_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  1104. switch v := v.(*Bucket); i {
  1105. case 0:
  1106. return &v.state
  1107. case 1:
  1108. return &v.sizeCache
  1109. case 2:
  1110. return &v.unknownFields
  1111. default:
  1112. return nil
  1113. }
  1114. }
  1115. file_io_prometheus_client_metrics_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  1116. switch v := v.(*BucketSpan); i {
  1117. case 0:
  1118. return &v.state
  1119. case 1:
  1120. return &v.sizeCache
  1121. case 2:
  1122. return &v.unknownFields
  1123. default:
  1124. return nil
  1125. }
  1126. }
  1127. file_io_prometheus_client_metrics_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  1128. switch v := v.(*Exemplar); i {
  1129. case 0:
  1130. return &v.state
  1131. case 1:
  1132. return &v.sizeCache
  1133. case 2:
  1134. return &v.unknownFields
  1135. default:
  1136. return nil
  1137. }
  1138. }
  1139. file_io_prometheus_client_metrics_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  1140. switch v := v.(*Metric); i {
  1141. case 0:
  1142. return &v.state
  1143. case 1:
  1144. return &v.sizeCache
  1145. case 2:
  1146. return &v.unknownFields
  1147. default:
  1148. return nil
  1149. }
  1150. }
  1151. file_io_prometheus_client_metrics_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  1152. switch v := v.(*MetricFamily); i {
  1153. case 0:
  1154. return &v.state
  1155. case 1:
  1156. return &v.sizeCache
  1157. case 2:
  1158. return &v.unknownFields
  1159. default:
  1160. return nil
  1161. }
  1162. }
  1163. }
  1164. type x struct{}
  1165. out := protoimpl.TypeBuilder{
  1166. File: protoimpl.DescBuilder{
  1167. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1168. RawDescriptor: file_io_prometheus_client_metrics_proto_rawDesc,
  1169. NumEnums: 1,
  1170. NumMessages: 12,
  1171. NumExtensions: 0,
  1172. NumServices: 0,
  1173. },
  1174. GoTypes: file_io_prometheus_client_metrics_proto_goTypes,
  1175. DependencyIndexes: file_io_prometheus_client_metrics_proto_depIdxs,
  1176. EnumInfos: file_io_prometheus_client_metrics_proto_enumTypes,
  1177. MessageInfos: file_io_prometheus_client_metrics_proto_msgTypes,
  1178. }.Build()
  1179. File_io_prometheus_client_metrics_proto = out.File
  1180. file_io_prometheus_client_metrics_proto_rawDesc = nil
  1181. file_io_prometheus_client_metrics_proto_goTypes = nil
  1182. file_io_prometheus_client_metrics_proto_depIdxs = nil
  1183. }