File: temporality_string.go

package info (click to toggle)
golang-opentelemetry-otel 1.31.0-5
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid
  • size: 11,844 kB
  • sloc: makefile: 237; sh: 51
file content (25 lines) | stat: -rw-r--r-- 745 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Code generated by "stringer -type=Temporality"; DO NOT EDIT.

package metricdata

import "strconv"

func _() {
	// An "invalid array index" compiler error signifies that the constant values have changed.
	// Re-run the stringer command to generate them again.
	var x [1]struct{}
	_ = x[undefinedTemporality-0]
	_ = x[CumulativeTemporality-1]
	_ = x[DeltaTemporality-2]
}

const _Temporality_name = "undefinedTemporalityCumulativeTemporalityDeltaTemporality"

var _Temporality_index = [...]uint8{0, 20, 41, 57}

func (i Temporality) String() string {
	if i >= Temporality(len(_Temporality_index)-1) {
		return "Temporality(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _Temporality_name[_Temporality_index[i]:_Temporality_index[i+1]]
}