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.
 
 
 

715 lines
30 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/api/distribution.proto
  3. package distribution // import "google.golang.org/genproto/googleapis/api/distribution"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import any "github.com/golang/protobuf/ptypes/any"
  8. import timestamp "github.com/golang/protobuf/ptypes/timestamp"
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  18. // `Distribution` contains summary statistics for a population of values. It
  19. // optionally contains a histogram representing the distribution of those values
  20. // across a set of buckets.
  21. //
  22. // The summary statistics are the count, mean, sum of the squared deviation from
  23. // the mean, the minimum, and the maximum of the set of population of values.
  24. // The histogram is based on a sequence of buckets and gives a count of values
  25. // that fall into each bucket. The boundaries of the buckets are given either
  26. // explicitly or by formulas for buckets of fixed or exponentially increasing
  27. // widths.
  28. //
  29. // Although it is not forbidden, it is generally a bad idea to include
  30. // non-finite values (infinities or NaNs) in the population of values, as this
  31. // will render the `mean` and `sum_of_squared_deviation` fields meaningless.
  32. type Distribution struct {
  33. // The number of values in the population. Must be non-negative. This value
  34. // must equal the sum of the values in `bucket_counts` if a histogram is
  35. // provided.
  36. Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
  37. // The arithmetic mean of the values in the population. If `count` is zero
  38. // then this field must be zero.
  39. Mean float64 `protobuf:"fixed64,2,opt,name=mean,proto3" json:"mean,omitempty"`
  40. // The sum of squared deviations from the mean of the values in the
  41. // population. For values x_i this is:
  42. //
  43. // Sum[i=1..n]((x_i - mean)^2)
  44. //
  45. // Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition
  46. // describes Welford's method for accumulating this sum in one pass.
  47. //
  48. // If `count` is zero then this field must be zero.
  49. SumOfSquaredDeviation float64 `protobuf:"fixed64,3,opt,name=sum_of_squared_deviation,json=sumOfSquaredDeviation,proto3" json:"sum_of_squared_deviation,omitempty"`
  50. // If specified, contains the range of the population values. The field
  51. // must not be present if the `count` is zero.
  52. Range *Distribution_Range `protobuf:"bytes,4,opt,name=range,proto3" json:"range,omitempty"`
  53. // Defines the histogram bucket boundaries. If the distribution does not
  54. // contain a histogram, then omit this field.
  55. BucketOptions *Distribution_BucketOptions `protobuf:"bytes,6,opt,name=bucket_options,json=bucketOptions,proto3" json:"bucket_options,omitempty"`
  56. // The number of values in each bucket of the histogram, as described in
  57. // `bucket_options`. If the distribution does not have a histogram, then omit
  58. // this field. If there is a histogram, then the sum of the values in
  59. // `bucket_counts` must equal the value in the `count` field of the
  60. // distribution.
  61. //
  62. // If present, `bucket_counts` should contain N values, where N is the number
  63. // of buckets specified in `bucket_options`. If you supply fewer than N
  64. // values, the remaining values are assumed to be 0.
  65. //
  66. // The order of the values in `bucket_counts` follows the bucket numbering
  67. // schemes described for the three bucket types. The first value must be the
  68. // count for the underflow bucket (number 0). The next N-2 values are the
  69. // counts for the finite buckets (number 1 through N-2). The N'th value in
  70. // `bucket_counts` is the count for the overflow bucket (number N-1).
  71. BucketCounts []int64 `protobuf:"varint,7,rep,packed,name=bucket_counts,json=bucketCounts,proto3" json:"bucket_counts,omitempty"`
  72. // Must be in increasing order of `value` field.
  73. Exemplars []*Distribution_Exemplar `protobuf:"bytes,10,rep,name=exemplars,proto3" json:"exemplars,omitempty"`
  74. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  75. XXX_unrecognized []byte `json:"-"`
  76. XXX_sizecache int32 `json:"-"`
  77. }
  78. func (m *Distribution) Reset() { *m = Distribution{} }
  79. func (m *Distribution) String() string { return proto.CompactTextString(m) }
  80. func (*Distribution) ProtoMessage() {}
  81. func (*Distribution) Descriptor() ([]byte, []int) {
  82. return fileDescriptor_distribution_ff64d440f86eff03, []int{0}
  83. }
  84. func (m *Distribution) XXX_Unmarshal(b []byte) error {
  85. return xxx_messageInfo_Distribution.Unmarshal(m, b)
  86. }
  87. func (m *Distribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  88. return xxx_messageInfo_Distribution.Marshal(b, m, deterministic)
  89. }
  90. func (dst *Distribution) XXX_Merge(src proto.Message) {
  91. xxx_messageInfo_Distribution.Merge(dst, src)
  92. }
  93. func (m *Distribution) XXX_Size() int {
  94. return xxx_messageInfo_Distribution.Size(m)
  95. }
  96. func (m *Distribution) XXX_DiscardUnknown() {
  97. xxx_messageInfo_Distribution.DiscardUnknown(m)
  98. }
  99. var xxx_messageInfo_Distribution proto.InternalMessageInfo
  100. func (m *Distribution) GetCount() int64 {
  101. if m != nil {
  102. return m.Count
  103. }
  104. return 0
  105. }
  106. func (m *Distribution) GetMean() float64 {
  107. if m != nil {
  108. return m.Mean
  109. }
  110. return 0
  111. }
  112. func (m *Distribution) GetSumOfSquaredDeviation() float64 {
  113. if m != nil {
  114. return m.SumOfSquaredDeviation
  115. }
  116. return 0
  117. }
  118. func (m *Distribution) GetRange() *Distribution_Range {
  119. if m != nil {
  120. return m.Range
  121. }
  122. return nil
  123. }
  124. func (m *Distribution) GetBucketOptions() *Distribution_BucketOptions {
  125. if m != nil {
  126. return m.BucketOptions
  127. }
  128. return nil
  129. }
  130. func (m *Distribution) GetBucketCounts() []int64 {
  131. if m != nil {
  132. return m.BucketCounts
  133. }
  134. return nil
  135. }
  136. func (m *Distribution) GetExemplars() []*Distribution_Exemplar {
  137. if m != nil {
  138. return m.Exemplars
  139. }
  140. return nil
  141. }
  142. // The range of the population values.
  143. type Distribution_Range struct {
  144. // The minimum of the population values.
  145. Min float64 `protobuf:"fixed64,1,opt,name=min,proto3" json:"min,omitempty"`
  146. // The maximum of the population values.
  147. Max float64 `protobuf:"fixed64,2,opt,name=max,proto3" json:"max,omitempty"`
  148. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  149. XXX_unrecognized []byte `json:"-"`
  150. XXX_sizecache int32 `json:"-"`
  151. }
  152. func (m *Distribution_Range) Reset() { *m = Distribution_Range{} }
  153. func (m *Distribution_Range) String() string { return proto.CompactTextString(m) }
  154. func (*Distribution_Range) ProtoMessage() {}
  155. func (*Distribution_Range) Descriptor() ([]byte, []int) {
  156. return fileDescriptor_distribution_ff64d440f86eff03, []int{0, 0}
  157. }
  158. func (m *Distribution_Range) XXX_Unmarshal(b []byte) error {
  159. return xxx_messageInfo_Distribution_Range.Unmarshal(m, b)
  160. }
  161. func (m *Distribution_Range) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  162. return xxx_messageInfo_Distribution_Range.Marshal(b, m, deterministic)
  163. }
  164. func (dst *Distribution_Range) XXX_Merge(src proto.Message) {
  165. xxx_messageInfo_Distribution_Range.Merge(dst, src)
  166. }
  167. func (m *Distribution_Range) XXX_Size() int {
  168. return xxx_messageInfo_Distribution_Range.Size(m)
  169. }
  170. func (m *Distribution_Range) XXX_DiscardUnknown() {
  171. xxx_messageInfo_Distribution_Range.DiscardUnknown(m)
  172. }
  173. var xxx_messageInfo_Distribution_Range proto.InternalMessageInfo
  174. func (m *Distribution_Range) GetMin() float64 {
  175. if m != nil {
  176. return m.Min
  177. }
  178. return 0
  179. }
  180. func (m *Distribution_Range) GetMax() float64 {
  181. if m != nil {
  182. return m.Max
  183. }
  184. return 0
  185. }
  186. // `BucketOptions` describes the bucket boundaries used to create a histogram
  187. // for the distribution. The buckets can be in a linear sequence, an
  188. // exponential sequence, or each bucket can be specified explicitly.
  189. // `BucketOptions` does not include the number of values in each bucket.
  190. //
  191. // A bucket has an inclusive lower bound and exclusive upper bound for the
  192. // values that are counted for that bucket. The upper bound of a bucket must
  193. // be strictly greater than the lower bound. The sequence of N buckets for a
  194. // distribution consists of an underflow bucket (number 0), zero or more
  195. // finite buckets (number 1 through N - 2) and an overflow bucket (number N -
  196. // 1). The buckets are contiguous: the lower bound of bucket i (i > 0) is the
  197. // same as the upper bound of bucket i - 1. The buckets span the whole range
  198. // of finite values: lower bound of the underflow bucket is -infinity and the
  199. // upper bound of the overflow bucket is +infinity. The finite buckets are
  200. // so-called because both bounds are finite.
  201. type Distribution_BucketOptions struct {
  202. // Exactly one of these three fields must be set.
  203. //
  204. // Types that are valid to be assigned to Options:
  205. // *Distribution_BucketOptions_LinearBuckets
  206. // *Distribution_BucketOptions_ExponentialBuckets
  207. // *Distribution_BucketOptions_ExplicitBuckets
  208. Options isDistribution_BucketOptions_Options `protobuf_oneof:"options"`
  209. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  210. XXX_unrecognized []byte `json:"-"`
  211. XXX_sizecache int32 `json:"-"`
  212. }
  213. func (m *Distribution_BucketOptions) Reset() { *m = Distribution_BucketOptions{} }
  214. func (m *Distribution_BucketOptions) String() string { return proto.CompactTextString(m) }
  215. func (*Distribution_BucketOptions) ProtoMessage() {}
  216. func (*Distribution_BucketOptions) Descriptor() ([]byte, []int) {
  217. return fileDescriptor_distribution_ff64d440f86eff03, []int{0, 1}
  218. }
  219. func (m *Distribution_BucketOptions) XXX_Unmarshal(b []byte) error {
  220. return xxx_messageInfo_Distribution_BucketOptions.Unmarshal(m, b)
  221. }
  222. func (m *Distribution_BucketOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  223. return xxx_messageInfo_Distribution_BucketOptions.Marshal(b, m, deterministic)
  224. }
  225. func (dst *Distribution_BucketOptions) XXX_Merge(src proto.Message) {
  226. xxx_messageInfo_Distribution_BucketOptions.Merge(dst, src)
  227. }
  228. func (m *Distribution_BucketOptions) XXX_Size() int {
  229. return xxx_messageInfo_Distribution_BucketOptions.Size(m)
  230. }
  231. func (m *Distribution_BucketOptions) XXX_DiscardUnknown() {
  232. xxx_messageInfo_Distribution_BucketOptions.DiscardUnknown(m)
  233. }
  234. var xxx_messageInfo_Distribution_BucketOptions proto.InternalMessageInfo
  235. type isDistribution_BucketOptions_Options interface {
  236. isDistribution_BucketOptions_Options()
  237. }
  238. type Distribution_BucketOptions_LinearBuckets struct {
  239. LinearBuckets *Distribution_BucketOptions_Linear `protobuf:"bytes,1,opt,name=linear_buckets,json=linearBuckets,proto3,oneof"`
  240. }
  241. type Distribution_BucketOptions_ExponentialBuckets struct {
  242. ExponentialBuckets *Distribution_BucketOptions_Exponential `protobuf:"bytes,2,opt,name=exponential_buckets,json=exponentialBuckets,proto3,oneof"`
  243. }
  244. type Distribution_BucketOptions_ExplicitBuckets struct {
  245. ExplicitBuckets *Distribution_BucketOptions_Explicit `protobuf:"bytes,3,opt,name=explicit_buckets,json=explicitBuckets,proto3,oneof"`
  246. }
  247. func (*Distribution_BucketOptions_LinearBuckets) isDistribution_BucketOptions_Options() {}
  248. func (*Distribution_BucketOptions_ExponentialBuckets) isDistribution_BucketOptions_Options() {}
  249. func (*Distribution_BucketOptions_ExplicitBuckets) isDistribution_BucketOptions_Options() {}
  250. func (m *Distribution_BucketOptions) GetOptions() isDistribution_BucketOptions_Options {
  251. if m != nil {
  252. return m.Options
  253. }
  254. return nil
  255. }
  256. func (m *Distribution_BucketOptions) GetLinearBuckets() *Distribution_BucketOptions_Linear {
  257. if x, ok := m.GetOptions().(*Distribution_BucketOptions_LinearBuckets); ok {
  258. return x.LinearBuckets
  259. }
  260. return nil
  261. }
  262. func (m *Distribution_BucketOptions) GetExponentialBuckets() *Distribution_BucketOptions_Exponential {
  263. if x, ok := m.GetOptions().(*Distribution_BucketOptions_ExponentialBuckets); ok {
  264. return x.ExponentialBuckets
  265. }
  266. return nil
  267. }
  268. func (m *Distribution_BucketOptions) GetExplicitBuckets() *Distribution_BucketOptions_Explicit {
  269. if x, ok := m.GetOptions().(*Distribution_BucketOptions_ExplicitBuckets); ok {
  270. return x.ExplicitBuckets
  271. }
  272. return nil
  273. }
  274. // XXX_OneofFuncs is for the internal use of the proto package.
  275. func (*Distribution_BucketOptions) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  276. return _Distribution_BucketOptions_OneofMarshaler, _Distribution_BucketOptions_OneofUnmarshaler, _Distribution_BucketOptions_OneofSizer, []interface{}{
  277. (*Distribution_BucketOptions_LinearBuckets)(nil),
  278. (*Distribution_BucketOptions_ExponentialBuckets)(nil),
  279. (*Distribution_BucketOptions_ExplicitBuckets)(nil),
  280. }
  281. }
  282. func _Distribution_BucketOptions_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  283. m := msg.(*Distribution_BucketOptions)
  284. // options
  285. switch x := m.Options.(type) {
  286. case *Distribution_BucketOptions_LinearBuckets:
  287. b.EncodeVarint(1<<3 | proto.WireBytes)
  288. if err := b.EncodeMessage(x.LinearBuckets); err != nil {
  289. return err
  290. }
  291. case *Distribution_BucketOptions_ExponentialBuckets:
  292. b.EncodeVarint(2<<3 | proto.WireBytes)
  293. if err := b.EncodeMessage(x.ExponentialBuckets); err != nil {
  294. return err
  295. }
  296. case *Distribution_BucketOptions_ExplicitBuckets:
  297. b.EncodeVarint(3<<3 | proto.WireBytes)
  298. if err := b.EncodeMessage(x.ExplicitBuckets); err != nil {
  299. return err
  300. }
  301. case nil:
  302. default:
  303. return fmt.Errorf("Distribution_BucketOptions.Options has unexpected type %T", x)
  304. }
  305. return nil
  306. }
  307. func _Distribution_BucketOptions_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  308. m := msg.(*Distribution_BucketOptions)
  309. switch tag {
  310. case 1: // options.linear_buckets
  311. if wire != proto.WireBytes {
  312. return true, proto.ErrInternalBadWireType
  313. }
  314. msg := new(Distribution_BucketOptions_Linear)
  315. err := b.DecodeMessage(msg)
  316. m.Options = &Distribution_BucketOptions_LinearBuckets{msg}
  317. return true, err
  318. case 2: // options.exponential_buckets
  319. if wire != proto.WireBytes {
  320. return true, proto.ErrInternalBadWireType
  321. }
  322. msg := new(Distribution_BucketOptions_Exponential)
  323. err := b.DecodeMessage(msg)
  324. m.Options = &Distribution_BucketOptions_ExponentialBuckets{msg}
  325. return true, err
  326. case 3: // options.explicit_buckets
  327. if wire != proto.WireBytes {
  328. return true, proto.ErrInternalBadWireType
  329. }
  330. msg := new(Distribution_BucketOptions_Explicit)
  331. err := b.DecodeMessage(msg)
  332. m.Options = &Distribution_BucketOptions_ExplicitBuckets{msg}
  333. return true, err
  334. default:
  335. return false, nil
  336. }
  337. }
  338. func _Distribution_BucketOptions_OneofSizer(msg proto.Message) (n int) {
  339. m := msg.(*Distribution_BucketOptions)
  340. // options
  341. switch x := m.Options.(type) {
  342. case *Distribution_BucketOptions_LinearBuckets:
  343. s := proto.Size(x.LinearBuckets)
  344. n += 1 // tag and wire
  345. n += proto.SizeVarint(uint64(s))
  346. n += s
  347. case *Distribution_BucketOptions_ExponentialBuckets:
  348. s := proto.Size(x.ExponentialBuckets)
  349. n += 1 // tag and wire
  350. n += proto.SizeVarint(uint64(s))
  351. n += s
  352. case *Distribution_BucketOptions_ExplicitBuckets:
  353. s := proto.Size(x.ExplicitBuckets)
  354. n += 1 // tag and wire
  355. n += proto.SizeVarint(uint64(s))
  356. n += s
  357. case nil:
  358. default:
  359. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  360. }
  361. return n
  362. }
  363. // Specifies a linear sequence of buckets that all have the same width
  364. // (except overflow and underflow). Each bucket represents a constant
  365. // absolute uncertainty on the specific value in the bucket.
  366. //
  367. // There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
  368. // following boundaries:
  369. //
  370. // Upper bound (0 <= i < N-1): offset + (width * i).
  371. // Lower bound (1 <= i < N): offset + (width * (i - 1)).
  372. type Distribution_BucketOptions_Linear struct {
  373. // Must be greater than 0.
  374. NumFiniteBuckets int32 `protobuf:"varint,1,opt,name=num_finite_buckets,json=numFiniteBuckets,proto3" json:"num_finite_buckets,omitempty"`
  375. // Must be greater than 0.
  376. Width float64 `protobuf:"fixed64,2,opt,name=width,proto3" json:"width,omitempty"`
  377. // Lower bound of the first bucket.
  378. Offset float64 `protobuf:"fixed64,3,opt,name=offset,proto3" json:"offset,omitempty"`
  379. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  380. XXX_unrecognized []byte `json:"-"`
  381. XXX_sizecache int32 `json:"-"`
  382. }
  383. func (m *Distribution_BucketOptions_Linear) Reset() { *m = Distribution_BucketOptions_Linear{} }
  384. func (m *Distribution_BucketOptions_Linear) String() string { return proto.CompactTextString(m) }
  385. func (*Distribution_BucketOptions_Linear) ProtoMessage() {}
  386. func (*Distribution_BucketOptions_Linear) Descriptor() ([]byte, []int) {
  387. return fileDescriptor_distribution_ff64d440f86eff03, []int{0, 1, 0}
  388. }
  389. func (m *Distribution_BucketOptions_Linear) XXX_Unmarshal(b []byte) error {
  390. return xxx_messageInfo_Distribution_BucketOptions_Linear.Unmarshal(m, b)
  391. }
  392. func (m *Distribution_BucketOptions_Linear) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  393. return xxx_messageInfo_Distribution_BucketOptions_Linear.Marshal(b, m, deterministic)
  394. }
  395. func (dst *Distribution_BucketOptions_Linear) XXX_Merge(src proto.Message) {
  396. xxx_messageInfo_Distribution_BucketOptions_Linear.Merge(dst, src)
  397. }
  398. func (m *Distribution_BucketOptions_Linear) XXX_Size() int {
  399. return xxx_messageInfo_Distribution_BucketOptions_Linear.Size(m)
  400. }
  401. func (m *Distribution_BucketOptions_Linear) XXX_DiscardUnknown() {
  402. xxx_messageInfo_Distribution_BucketOptions_Linear.DiscardUnknown(m)
  403. }
  404. var xxx_messageInfo_Distribution_BucketOptions_Linear proto.InternalMessageInfo
  405. func (m *Distribution_BucketOptions_Linear) GetNumFiniteBuckets() int32 {
  406. if m != nil {
  407. return m.NumFiniteBuckets
  408. }
  409. return 0
  410. }
  411. func (m *Distribution_BucketOptions_Linear) GetWidth() float64 {
  412. if m != nil {
  413. return m.Width
  414. }
  415. return 0
  416. }
  417. func (m *Distribution_BucketOptions_Linear) GetOffset() float64 {
  418. if m != nil {
  419. return m.Offset
  420. }
  421. return 0
  422. }
  423. // Specifies an exponential sequence of buckets that have a width that is
  424. // proportional to the value of the lower bound. Each bucket represents a
  425. // constant relative uncertainty on a specific value in the bucket.
  426. //
  427. // There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
  428. // following boundaries:
  429. //
  430. // Upper bound (0 <= i < N-1): scale * (growth_factor ^ i).
  431. // Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).
  432. type Distribution_BucketOptions_Exponential struct {
  433. // Must be greater than 0.
  434. NumFiniteBuckets int32 `protobuf:"varint,1,opt,name=num_finite_buckets,json=numFiniteBuckets,proto3" json:"num_finite_buckets,omitempty"`
  435. // Must be greater than 1.
  436. GrowthFactor float64 `protobuf:"fixed64,2,opt,name=growth_factor,json=growthFactor,proto3" json:"growth_factor,omitempty"`
  437. // Must be greater than 0.
  438. Scale float64 `protobuf:"fixed64,3,opt,name=scale,proto3" json:"scale,omitempty"`
  439. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  440. XXX_unrecognized []byte `json:"-"`
  441. XXX_sizecache int32 `json:"-"`
  442. }
  443. func (m *Distribution_BucketOptions_Exponential) Reset() {
  444. *m = Distribution_BucketOptions_Exponential{}
  445. }
  446. func (m *Distribution_BucketOptions_Exponential) String() string { return proto.CompactTextString(m) }
  447. func (*Distribution_BucketOptions_Exponential) ProtoMessage() {}
  448. func (*Distribution_BucketOptions_Exponential) Descriptor() ([]byte, []int) {
  449. return fileDescriptor_distribution_ff64d440f86eff03, []int{0, 1, 1}
  450. }
  451. func (m *Distribution_BucketOptions_Exponential) XXX_Unmarshal(b []byte) error {
  452. return xxx_messageInfo_Distribution_BucketOptions_Exponential.Unmarshal(m, b)
  453. }
  454. func (m *Distribution_BucketOptions_Exponential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  455. return xxx_messageInfo_Distribution_BucketOptions_Exponential.Marshal(b, m, deterministic)
  456. }
  457. func (dst *Distribution_BucketOptions_Exponential) XXX_Merge(src proto.Message) {
  458. xxx_messageInfo_Distribution_BucketOptions_Exponential.Merge(dst, src)
  459. }
  460. func (m *Distribution_BucketOptions_Exponential) XXX_Size() int {
  461. return xxx_messageInfo_Distribution_BucketOptions_Exponential.Size(m)
  462. }
  463. func (m *Distribution_BucketOptions_Exponential) XXX_DiscardUnknown() {
  464. xxx_messageInfo_Distribution_BucketOptions_Exponential.DiscardUnknown(m)
  465. }
  466. var xxx_messageInfo_Distribution_BucketOptions_Exponential proto.InternalMessageInfo
  467. func (m *Distribution_BucketOptions_Exponential) GetNumFiniteBuckets() int32 {
  468. if m != nil {
  469. return m.NumFiniteBuckets
  470. }
  471. return 0
  472. }
  473. func (m *Distribution_BucketOptions_Exponential) GetGrowthFactor() float64 {
  474. if m != nil {
  475. return m.GrowthFactor
  476. }
  477. return 0
  478. }
  479. func (m *Distribution_BucketOptions_Exponential) GetScale() float64 {
  480. if m != nil {
  481. return m.Scale
  482. }
  483. return 0
  484. }
  485. // Specifies a set of buckets with arbitrary widths.
  486. //
  487. // There are `size(bounds) + 1` (= N) buckets. Bucket `i` has the following
  488. // boundaries:
  489. //
  490. // Upper bound (0 <= i < N-1): bounds[i]
  491. // Lower bound (1 <= i < N); bounds[i - 1]
  492. //
  493. // The `bounds` field must contain at least one element. If `bounds` has
  494. // only one element, then there are no finite buckets, and that single
  495. // element is the common boundary of the overflow and underflow buckets.
  496. type Distribution_BucketOptions_Explicit struct {
  497. // The values must be monotonically increasing.
  498. Bounds []float64 `protobuf:"fixed64,1,rep,packed,name=bounds,proto3" json:"bounds,omitempty"`
  499. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  500. XXX_unrecognized []byte `json:"-"`
  501. XXX_sizecache int32 `json:"-"`
  502. }
  503. func (m *Distribution_BucketOptions_Explicit) Reset() { *m = Distribution_BucketOptions_Explicit{} }
  504. func (m *Distribution_BucketOptions_Explicit) String() string { return proto.CompactTextString(m) }
  505. func (*Distribution_BucketOptions_Explicit) ProtoMessage() {}
  506. func (*Distribution_BucketOptions_Explicit) Descriptor() ([]byte, []int) {
  507. return fileDescriptor_distribution_ff64d440f86eff03, []int{0, 1, 2}
  508. }
  509. func (m *Distribution_BucketOptions_Explicit) XXX_Unmarshal(b []byte) error {
  510. return xxx_messageInfo_Distribution_BucketOptions_Explicit.Unmarshal(m, b)
  511. }
  512. func (m *Distribution_BucketOptions_Explicit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  513. return xxx_messageInfo_Distribution_BucketOptions_Explicit.Marshal(b, m, deterministic)
  514. }
  515. func (dst *Distribution_BucketOptions_Explicit) XXX_Merge(src proto.Message) {
  516. xxx_messageInfo_Distribution_BucketOptions_Explicit.Merge(dst, src)
  517. }
  518. func (m *Distribution_BucketOptions_Explicit) XXX_Size() int {
  519. return xxx_messageInfo_Distribution_BucketOptions_Explicit.Size(m)
  520. }
  521. func (m *Distribution_BucketOptions_Explicit) XXX_DiscardUnknown() {
  522. xxx_messageInfo_Distribution_BucketOptions_Explicit.DiscardUnknown(m)
  523. }
  524. var xxx_messageInfo_Distribution_BucketOptions_Explicit proto.InternalMessageInfo
  525. func (m *Distribution_BucketOptions_Explicit) GetBounds() []float64 {
  526. if m != nil {
  527. return m.Bounds
  528. }
  529. return nil
  530. }
  531. // Exemplars are example points that may be used to annotate aggregated
  532. // distribution values. They are metadata that gives information about a
  533. // particular value added to a Distribution bucket, such as a trace ID that
  534. // was active when a value was added. They may contain further information,
  535. // such as a example values and timestamps, origin, etc.
  536. type Distribution_Exemplar struct {
  537. // Value of the exemplar point. This value determines to which bucket the
  538. // exemplar belongs.
  539. Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
  540. // The observation (sampling) time of the above value.
  541. Timestamp *timestamp.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
  542. // Contextual information about the example value. Examples are:
  543. //
  544. // Trace ID: type.googleapis.com/google.devtools.cloudtrace.v1.Trace
  545. //
  546. // Literal string: type.googleapis.com/google.protobuf.StringValue
  547. //
  548. // Labels dropped during aggregation:
  549. // type.googleapis.com/google.monitoring.v3.DroppedLabels
  550. //
  551. // There may be only a single attachment of any given message type in a
  552. // single exemplar, and this is enforced by the system.
  553. Attachments []*any.Any `protobuf:"bytes,3,rep,name=attachments,proto3" json:"attachments,omitempty"`
  554. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  555. XXX_unrecognized []byte `json:"-"`
  556. XXX_sizecache int32 `json:"-"`
  557. }
  558. func (m *Distribution_Exemplar) Reset() { *m = Distribution_Exemplar{} }
  559. func (m *Distribution_Exemplar) String() string { return proto.CompactTextString(m) }
  560. func (*Distribution_Exemplar) ProtoMessage() {}
  561. func (*Distribution_Exemplar) Descriptor() ([]byte, []int) {
  562. return fileDescriptor_distribution_ff64d440f86eff03, []int{0, 2}
  563. }
  564. func (m *Distribution_Exemplar) XXX_Unmarshal(b []byte) error {
  565. return xxx_messageInfo_Distribution_Exemplar.Unmarshal(m, b)
  566. }
  567. func (m *Distribution_Exemplar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  568. return xxx_messageInfo_Distribution_Exemplar.Marshal(b, m, deterministic)
  569. }
  570. func (dst *Distribution_Exemplar) XXX_Merge(src proto.Message) {
  571. xxx_messageInfo_Distribution_Exemplar.Merge(dst, src)
  572. }
  573. func (m *Distribution_Exemplar) XXX_Size() int {
  574. return xxx_messageInfo_Distribution_Exemplar.Size(m)
  575. }
  576. func (m *Distribution_Exemplar) XXX_DiscardUnknown() {
  577. xxx_messageInfo_Distribution_Exemplar.DiscardUnknown(m)
  578. }
  579. var xxx_messageInfo_Distribution_Exemplar proto.InternalMessageInfo
  580. func (m *Distribution_Exemplar) GetValue() float64 {
  581. if m != nil {
  582. return m.Value
  583. }
  584. return 0
  585. }
  586. func (m *Distribution_Exemplar) GetTimestamp() *timestamp.Timestamp {
  587. if m != nil {
  588. return m.Timestamp
  589. }
  590. return nil
  591. }
  592. func (m *Distribution_Exemplar) GetAttachments() []*any.Any {
  593. if m != nil {
  594. return m.Attachments
  595. }
  596. return nil
  597. }
  598. func init() {
  599. proto.RegisterType((*Distribution)(nil), "google.api.Distribution")
  600. proto.RegisterType((*Distribution_Range)(nil), "google.api.Distribution.Range")
  601. proto.RegisterType((*Distribution_BucketOptions)(nil), "google.api.Distribution.BucketOptions")
  602. proto.RegisterType((*Distribution_BucketOptions_Linear)(nil), "google.api.Distribution.BucketOptions.Linear")
  603. proto.RegisterType((*Distribution_BucketOptions_Exponential)(nil), "google.api.Distribution.BucketOptions.Exponential")
  604. proto.RegisterType((*Distribution_BucketOptions_Explicit)(nil), "google.api.Distribution.BucketOptions.Explicit")
  605. proto.RegisterType((*Distribution_Exemplar)(nil), "google.api.Distribution.Exemplar")
  606. }
  607. func init() {
  608. proto.RegisterFile("google/api/distribution.proto", fileDescriptor_distribution_ff64d440f86eff03)
  609. }
  610. var fileDescriptor_distribution_ff64d440f86eff03 = []byte{
  611. // 631 bytes of a gzipped FileDescriptorProto
  612. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xed, 0x6a, 0xd4, 0x40,
  613. 0x14, 0x6d, 0x9a, 0xdd, 0x6d, 0x7b, 0xb7, 0x5b, 0xeb, 0x58, 0x25, 0x06, 0xd4, 0xb5, 0x05, 0x59,
  614. 0x50, 0xb3, 0xb0, 0x8a, 0x0a, 0xfe, 0x90, 0x6e, 0x3f, 0xac, 0xa0, 0xb4, 0x8c, 0xe2, 0x0f, 0x11,
  615. 0xc2, 0x6c, 0x76, 0x92, 0x0e, 0x26, 0x33, 0x69, 0x32, 0x69, 0xb7, 0xaf, 0xe1, 0x23, 0xf8, 0x16,
  616. 0xbe, 0x8a, 0x4f, 0x23, 0xf3, 0x91, 0x6e, 0x6a, 0x29, 0xd4, 0x7f, 0xb9, 0xf7, 0x9c, 0x7b, 0xce,
  617. 0xbd, 0x73, 0x67, 0x02, 0x0f, 0x12, 0x21, 0x92, 0x94, 0x0e, 0x49, 0xce, 0x86, 0x53, 0x56, 0xca,
  618. 0x82, 0x4d, 0x2a, 0xc9, 0x04, 0x0f, 0xf2, 0x42, 0x48, 0x81, 0xc0, 0xc0, 0x01, 0xc9, 0x99, 0x7f,
  619. 0xdf, 0x52, 0x35, 0x32, 0xa9, 0xe2, 0x21, 0xe1, 0xe7, 0x86, 0xe6, 0x3f, 0xfa, 0x17, 0x92, 0x2c,
  620. 0xa3, 0xa5, 0x24, 0x59, 0x6e, 0x08, 0x9b, 0x7f, 0x96, 0x61, 0x75, 0xb7, 0x21, 0x8f, 0x36, 0xa0,
  621. 0x1d, 0x89, 0x8a, 0x4b, 0xcf, 0xe9, 0x3b, 0x03, 0x17, 0x9b, 0x00, 0x21, 0x68, 0x65, 0x94, 0x70,
  622. 0x6f, 0xb1, 0xef, 0x0c, 0x1c, 0xac, 0xbf, 0xd1, 0x6b, 0xf0, 0xca, 0x2a, 0x0b, 0x45, 0x1c, 0x96,
  623. 0x27, 0x15, 0x29, 0xe8, 0x34, 0x9c, 0xd2, 0x53, 0x46, 0x94, 0x8a, 0xe7, 0x6a, 0xde, 0xdd, 0xb2,
  624. 0xca, 0x0e, 0xe3, 0xcf, 0x06, 0xdd, 0xad, 0x41, 0xf4, 0x12, 0xda, 0x05, 0xe1, 0x09, 0xf5, 0x5a,
  625. 0x7d, 0x67, 0xd0, 0x1d, 0x3d, 0x0c, 0xe6, 0xb3, 0x04, 0xcd, 0x5e, 0x02, 0xac, 0x58, 0xd8, 0x90,
  626. 0xd1, 0x27, 0x58, 0x9b, 0x54, 0xd1, 0x0f, 0x2a, 0x43, 0x91, 0x2b, 0xb4, 0xf4, 0x3a, 0xba, 0xfc,
  627. 0xc9, 0xb5, 0xe5, 0x63, 0x4d, 0x3f, 0x34, 0x6c, 0xdc, 0x9b, 0x34, 0x43, 0xb4, 0x05, 0x36, 0x11,
  628. 0xea, 0x09, 0x4b, 0x6f, 0xa9, 0xef, 0x0e, 0x5c, 0xbc, 0x6a, 0x92, 0x3b, 0x3a, 0x87, 0xde, 0xc1,
  629. 0x0a, 0x9d, 0xd1, 0x2c, 0x4f, 0x49, 0x51, 0x7a, 0xd0, 0x77, 0x07, 0xdd, 0xd1, 0xe3, 0x6b, 0xed,
  630. 0xf6, 0x2c, 0x13, 0xcf, 0x6b, 0xfc, 0xa7, 0xd0, 0xd6, 0x43, 0xa0, 0x75, 0x70, 0x33, 0xc6, 0xf5,
  631. 0xa1, 0x3a, 0x58, 0x7d, 0xea, 0x0c, 0x99, 0xd9, 0x13, 0x55, 0x9f, 0xfe, 0xef, 0x16, 0xf4, 0x2e,
  632. 0xf5, 0x8c, 0xbe, 0xc2, 0x5a, 0xca, 0x38, 0x25, 0x45, 0x68, 0xda, 0x2a, 0xb5, 0x40, 0x77, 0xf4,
  633. 0xfc, 0x66, 0x33, 0x07, 0x1f, 0x75, 0xf1, 0xc1, 0x02, 0xee, 0x19, 0x19, 0x83, 0x96, 0x88, 0xc2,
  634. 0x1d, 0x3a, 0xcb, 0x05, 0xa7, 0x5c, 0x32, 0x92, 0x5e, 0x88, 0x2f, 0x6a, 0xf1, 0xd1, 0x0d, 0xc5,
  635. 0xf7, 0xe6, 0x0a, 0x07, 0x0b, 0x18, 0x35, 0x04, 0x6b, 0x9b, 0xef, 0xb0, 0x4e, 0x67, 0x79, 0xca,
  636. 0x22, 0x26, 0x2f, 0x3c, 0x5c, 0xed, 0x31, 0xbc, 0xb9, 0x87, 0x2e, 0x3f, 0x58, 0xc0, 0xb7, 0x6a,
  637. 0x29, 0xab, 0xee, 0x4f, 0xa1, 0x63, 0xe6, 0x43, 0xcf, 0x00, 0xf1, 0x2a, 0x0b, 0x63, 0xc6, 0x99,
  638. 0xa4, 0x97, 0x8e, 0xaa, 0x8d, 0xd7, 0x79, 0x95, 0xed, 0x6b, 0xa0, 0xee, 0x6a, 0x03, 0xda, 0x67,
  639. 0x6c, 0x2a, 0x8f, 0xed, 0xd1, 0x9b, 0x00, 0xdd, 0x83, 0x8e, 0x88, 0xe3, 0x92, 0x4a, 0x7b, 0x77,
  640. 0x6d, 0xe4, 0x9f, 0x42, 0xb7, 0x31, 0xe8, 0x7f, 0x5a, 0x6d, 0x41, 0x2f, 0x29, 0xc4, 0x99, 0x3c,
  641. 0x0e, 0x63, 0x12, 0x49, 0x51, 0x58, 0xcb, 0x55, 0x93, 0xdc, 0xd7, 0x39, 0xd5, 0x4f, 0x19, 0x91,
  642. 0x94, 0x5a, 0x63, 0x13, 0xf8, 0x9b, 0xb0, 0x5c, 0x0f, 0xaf, 0x7a, 0x9b, 0x88, 0x8a, 0x4f, 0x95,
  643. 0x91, 0xab, 0x7a, 0x33, 0xd1, 0x78, 0x05, 0x96, 0xec, 0x5b, 0xf0, 0x7f, 0x3a, 0x8a, 0x6f, 0xae,
  644. 0x9d, 0x52, 0x3c, 0x25, 0x69, 0x45, 0xed, 0x75, 0x33, 0x01, 0x7a, 0x03, 0x2b, 0x17, 0xaf, 0xdf,
  645. 0xae, 0xda, 0xaf, 0xd7, 0x50, 0xff, 0x1f, 0x82, 0x2f, 0x35, 0x03, 0xcf, 0xc9, 0xe8, 0x15, 0x74,
  646. 0x89, 0x94, 0x24, 0x3a, 0xce, 0x28, 0xd7, 0x2b, 0x54, 0x0f, 0x61, 0xe3, 0x4a, 0xed, 0x36, 0x3f,
  647. 0xc7, 0x4d, 0xe2, 0xf8, 0x04, 0xd6, 0x22, 0x91, 0x35, 0x56, 0x3d, 0xbe, 0xdd, 0xdc, 0xf5, 0x91,
  648. 0x2a, 0x3c, 0x72, 0xbe, 0xed, 0x58, 0x42, 0x22, 0x52, 0xc2, 0x93, 0x40, 0x14, 0xc9, 0x30, 0xa1,
  649. 0x5c, 0xcb, 0x0e, 0x0d, 0x44, 0x72, 0x56, 0x5e, 0xf9, 0x13, 0xbe, 0x6d, 0x06, 0xbf, 0x16, 0x5b,
  650. 0xef, 0xb7, 0x8f, 0x3e, 0x4c, 0x3a, 0xba, 0xec, 0xc5, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x89,
  651. 0xf1, 0xc2, 0x23, 0x3f, 0x05, 0x00, 0x00,
  652. }