distribution.pb.go 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892
  1. // Copyright 2023 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. // Code generated by protoc-gen-go. DO NOT EDIT.
  15. // versions:
  16. // protoc-gen-go v1.26.0
  17. // protoc v3.21.9
  18. // source: google/api/distribution.proto
  19. package distribution
  20. import (
  21. reflect "reflect"
  22. sync "sync"
  23. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  24. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  25. anypb "google.golang.org/protobuf/types/known/anypb"
  26. timestamppb "google.golang.org/protobuf/types/known/timestamppb"
  27. )
  28. const (
  29. // Verify that this generated code is sufficiently up-to-date.
  30. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  31. // Verify that runtime/protoimpl is sufficiently up-to-date.
  32. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  33. )
  34. // `Distribution` contains summary statistics for a population of values. It
  35. // optionally contains a histogram representing the distribution of those values
  36. // across a set of buckets.
  37. //
  38. // The summary statistics are the count, mean, sum of the squared deviation from
  39. // the mean, the minimum, and the maximum of the set of population of values.
  40. // The histogram is based on a sequence of buckets and gives a count of values
  41. // that fall into each bucket. The boundaries of the buckets are given either
  42. // explicitly or by formulas for buckets of fixed or exponentially increasing
  43. // widths.
  44. //
  45. // Although it is not forbidden, it is generally a bad idea to include
  46. // non-finite values (infinities or NaNs) in the population of values, as this
  47. // will render the `mean` and `sum_of_squared_deviation` fields meaningless.
  48. type Distribution struct {
  49. state protoimpl.MessageState
  50. sizeCache protoimpl.SizeCache
  51. unknownFields protoimpl.UnknownFields
  52. // The number of values in the population. Must be non-negative. This value
  53. // must equal the sum of the values in `bucket_counts` if a histogram is
  54. // provided.
  55. Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
  56. // The arithmetic mean of the values in the population. If `count` is zero
  57. // then this field must be zero.
  58. Mean float64 `protobuf:"fixed64,2,opt,name=mean,proto3" json:"mean,omitempty"`
  59. // The sum of squared deviations from the mean of the values in the
  60. // population. For values x_i this is:
  61. //
  62. // Sum[i=1..n]((x_i - mean)^2)
  63. //
  64. // Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
  65. // describes Welford's method for accumulating this sum in one pass.
  66. //
  67. // If `count` is zero then this field must be zero.
  68. SumOfSquaredDeviation float64 `protobuf:"fixed64,3,opt,name=sum_of_squared_deviation,json=sumOfSquaredDeviation,proto3" json:"sum_of_squared_deviation,omitempty"`
  69. // If specified, contains the range of the population values. The field
  70. // must not be present if the `count` is zero.
  71. Range *Distribution_Range `protobuf:"bytes,4,opt,name=range,proto3" json:"range,omitempty"`
  72. // Defines the histogram bucket boundaries. If the distribution does not
  73. // contain a histogram, then omit this field.
  74. BucketOptions *Distribution_BucketOptions `protobuf:"bytes,6,opt,name=bucket_options,json=bucketOptions,proto3" json:"bucket_options,omitempty"`
  75. // The number of values in each bucket of the histogram, as described in
  76. // `bucket_options`. If the distribution does not have a histogram, then omit
  77. // this field. If there is a histogram, then the sum of the values in
  78. // `bucket_counts` must equal the value in the `count` field of the
  79. // distribution.
  80. //
  81. // If present, `bucket_counts` should contain N values, where N is the number
  82. // of buckets specified in `bucket_options`. If you supply fewer than N
  83. // values, the remaining values are assumed to be 0.
  84. //
  85. // The order of the values in `bucket_counts` follows the bucket numbering
  86. // schemes described for the three bucket types. The first value must be the
  87. // count for the underflow bucket (number 0). The next N-2 values are the
  88. // counts for the finite buckets (number 1 through N-2). The N'th value in
  89. // `bucket_counts` is the count for the overflow bucket (number N-1).
  90. BucketCounts []int64 `protobuf:"varint,7,rep,packed,name=bucket_counts,json=bucketCounts,proto3" json:"bucket_counts,omitempty"`
  91. // Must be in increasing order of `value` field.
  92. Exemplars []*Distribution_Exemplar `protobuf:"bytes,10,rep,name=exemplars,proto3" json:"exemplars,omitempty"`
  93. }
  94. func (x *Distribution) Reset() {
  95. *x = Distribution{}
  96. if protoimpl.UnsafeEnabled {
  97. mi := &file_google_api_distribution_proto_msgTypes[0]
  98. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  99. ms.StoreMessageInfo(mi)
  100. }
  101. }
  102. func (x *Distribution) String() string {
  103. return protoimpl.X.MessageStringOf(x)
  104. }
  105. func (*Distribution) ProtoMessage() {}
  106. func (x *Distribution) ProtoReflect() protoreflect.Message {
  107. mi := &file_google_api_distribution_proto_msgTypes[0]
  108. if protoimpl.UnsafeEnabled && x != nil {
  109. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  110. if ms.LoadMessageInfo() == nil {
  111. ms.StoreMessageInfo(mi)
  112. }
  113. return ms
  114. }
  115. return mi.MessageOf(x)
  116. }
  117. // Deprecated: Use Distribution.ProtoReflect.Descriptor instead.
  118. func (*Distribution) Descriptor() ([]byte, []int) {
  119. return file_google_api_distribution_proto_rawDescGZIP(), []int{0}
  120. }
  121. func (x *Distribution) GetCount() int64 {
  122. if x != nil {
  123. return x.Count
  124. }
  125. return 0
  126. }
  127. func (x *Distribution) GetMean() float64 {
  128. if x != nil {
  129. return x.Mean
  130. }
  131. return 0
  132. }
  133. func (x *Distribution) GetSumOfSquaredDeviation() float64 {
  134. if x != nil {
  135. return x.SumOfSquaredDeviation
  136. }
  137. return 0
  138. }
  139. func (x *Distribution) GetRange() *Distribution_Range {
  140. if x != nil {
  141. return x.Range
  142. }
  143. return nil
  144. }
  145. func (x *Distribution) GetBucketOptions() *Distribution_BucketOptions {
  146. if x != nil {
  147. return x.BucketOptions
  148. }
  149. return nil
  150. }
  151. func (x *Distribution) GetBucketCounts() []int64 {
  152. if x != nil {
  153. return x.BucketCounts
  154. }
  155. return nil
  156. }
  157. func (x *Distribution) GetExemplars() []*Distribution_Exemplar {
  158. if x != nil {
  159. return x.Exemplars
  160. }
  161. return nil
  162. }
  163. // The range of the population values.
  164. type Distribution_Range struct {
  165. state protoimpl.MessageState
  166. sizeCache protoimpl.SizeCache
  167. unknownFields protoimpl.UnknownFields
  168. // The minimum of the population values.
  169. Min float64 `protobuf:"fixed64,1,opt,name=min,proto3" json:"min,omitempty"`
  170. // The maximum of the population values.
  171. Max float64 `protobuf:"fixed64,2,opt,name=max,proto3" json:"max,omitempty"`
  172. }
  173. func (x *Distribution_Range) Reset() {
  174. *x = Distribution_Range{}
  175. if protoimpl.UnsafeEnabled {
  176. mi := &file_google_api_distribution_proto_msgTypes[1]
  177. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  178. ms.StoreMessageInfo(mi)
  179. }
  180. }
  181. func (x *Distribution_Range) String() string {
  182. return protoimpl.X.MessageStringOf(x)
  183. }
  184. func (*Distribution_Range) ProtoMessage() {}
  185. func (x *Distribution_Range) ProtoReflect() protoreflect.Message {
  186. mi := &file_google_api_distribution_proto_msgTypes[1]
  187. if protoimpl.UnsafeEnabled && x != nil {
  188. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  189. if ms.LoadMessageInfo() == nil {
  190. ms.StoreMessageInfo(mi)
  191. }
  192. return ms
  193. }
  194. return mi.MessageOf(x)
  195. }
  196. // Deprecated: Use Distribution_Range.ProtoReflect.Descriptor instead.
  197. func (*Distribution_Range) Descriptor() ([]byte, []int) {
  198. return file_google_api_distribution_proto_rawDescGZIP(), []int{0, 0}
  199. }
  200. func (x *Distribution_Range) GetMin() float64 {
  201. if x != nil {
  202. return x.Min
  203. }
  204. return 0
  205. }
  206. func (x *Distribution_Range) GetMax() float64 {
  207. if x != nil {
  208. return x.Max
  209. }
  210. return 0
  211. }
  212. // `BucketOptions` describes the bucket boundaries used to create a histogram
  213. // for the distribution. The buckets can be in a linear sequence, an
  214. // exponential sequence, or each bucket can be specified explicitly.
  215. // `BucketOptions` does not include the number of values in each bucket.
  216. //
  217. // A bucket has an inclusive lower bound and exclusive upper bound for the
  218. // values that are counted for that bucket. The upper bound of a bucket must
  219. // be strictly greater than the lower bound. The sequence of N buckets for a
  220. // distribution consists of an underflow bucket (number 0), zero or more
  221. // finite buckets (number 1 through N - 2) and an overflow bucket (number N -
  222. // 1). The buckets are contiguous: the lower bound of bucket i (i > 0) is the
  223. // same as the upper bound of bucket i - 1. The buckets span the whole range
  224. // of finite values: lower bound of the underflow bucket is -infinity and the
  225. // upper bound of the overflow bucket is +infinity. The finite buckets are
  226. // so-called because both bounds are finite.
  227. type Distribution_BucketOptions struct {
  228. state protoimpl.MessageState
  229. sizeCache protoimpl.SizeCache
  230. unknownFields protoimpl.UnknownFields
  231. // Exactly one of these three fields must be set.
  232. //
  233. // Types that are assignable to Options:
  234. //
  235. // *Distribution_BucketOptions_LinearBuckets
  236. // *Distribution_BucketOptions_ExponentialBuckets
  237. // *Distribution_BucketOptions_ExplicitBuckets
  238. Options isDistribution_BucketOptions_Options `protobuf_oneof:"options"`
  239. }
  240. func (x *Distribution_BucketOptions) Reset() {
  241. *x = Distribution_BucketOptions{}
  242. if protoimpl.UnsafeEnabled {
  243. mi := &file_google_api_distribution_proto_msgTypes[2]
  244. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  245. ms.StoreMessageInfo(mi)
  246. }
  247. }
  248. func (x *Distribution_BucketOptions) String() string {
  249. return protoimpl.X.MessageStringOf(x)
  250. }
  251. func (*Distribution_BucketOptions) ProtoMessage() {}
  252. func (x *Distribution_BucketOptions) ProtoReflect() protoreflect.Message {
  253. mi := &file_google_api_distribution_proto_msgTypes[2]
  254. if protoimpl.UnsafeEnabled && x != nil {
  255. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  256. if ms.LoadMessageInfo() == nil {
  257. ms.StoreMessageInfo(mi)
  258. }
  259. return ms
  260. }
  261. return mi.MessageOf(x)
  262. }
  263. // Deprecated: Use Distribution_BucketOptions.ProtoReflect.Descriptor instead.
  264. func (*Distribution_BucketOptions) Descriptor() ([]byte, []int) {
  265. return file_google_api_distribution_proto_rawDescGZIP(), []int{0, 1}
  266. }
  267. func (m *Distribution_BucketOptions) GetOptions() isDistribution_BucketOptions_Options {
  268. if m != nil {
  269. return m.Options
  270. }
  271. return nil
  272. }
  273. func (x *Distribution_BucketOptions) GetLinearBuckets() *Distribution_BucketOptions_Linear {
  274. if x, ok := x.GetOptions().(*Distribution_BucketOptions_LinearBuckets); ok {
  275. return x.LinearBuckets
  276. }
  277. return nil
  278. }
  279. func (x *Distribution_BucketOptions) GetExponentialBuckets() *Distribution_BucketOptions_Exponential {
  280. if x, ok := x.GetOptions().(*Distribution_BucketOptions_ExponentialBuckets); ok {
  281. return x.ExponentialBuckets
  282. }
  283. return nil
  284. }
  285. func (x *Distribution_BucketOptions) GetExplicitBuckets() *Distribution_BucketOptions_Explicit {
  286. if x, ok := x.GetOptions().(*Distribution_BucketOptions_ExplicitBuckets); ok {
  287. return x.ExplicitBuckets
  288. }
  289. return nil
  290. }
  291. type isDistribution_BucketOptions_Options interface {
  292. isDistribution_BucketOptions_Options()
  293. }
  294. type Distribution_BucketOptions_LinearBuckets struct {
  295. // The linear bucket.
  296. LinearBuckets *Distribution_BucketOptions_Linear `protobuf:"bytes,1,opt,name=linear_buckets,json=linearBuckets,proto3,oneof"`
  297. }
  298. type Distribution_BucketOptions_ExponentialBuckets struct {
  299. // The exponential buckets.
  300. ExponentialBuckets *Distribution_BucketOptions_Exponential `protobuf:"bytes,2,opt,name=exponential_buckets,json=exponentialBuckets,proto3,oneof"`
  301. }
  302. type Distribution_BucketOptions_ExplicitBuckets struct {
  303. // The explicit buckets.
  304. ExplicitBuckets *Distribution_BucketOptions_Explicit `protobuf:"bytes,3,opt,name=explicit_buckets,json=explicitBuckets,proto3,oneof"`
  305. }
  306. func (*Distribution_BucketOptions_LinearBuckets) isDistribution_BucketOptions_Options() {}
  307. func (*Distribution_BucketOptions_ExponentialBuckets) isDistribution_BucketOptions_Options() {}
  308. func (*Distribution_BucketOptions_ExplicitBuckets) isDistribution_BucketOptions_Options() {}
  309. // Exemplars are example points that may be used to annotate aggregated
  310. // distribution values. They are metadata that gives information about a
  311. // particular value added to a Distribution bucket, such as a trace ID that
  312. // was active when a value was added. They may contain further information,
  313. // such as a example values and timestamps, origin, etc.
  314. type Distribution_Exemplar struct {
  315. state protoimpl.MessageState
  316. sizeCache protoimpl.SizeCache
  317. unknownFields protoimpl.UnknownFields
  318. // Value of the exemplar point. This value determines to which bucket the
  319. // exemplar belongs.
  320. Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
  321. // The observation (sampling) time of the above value.
  322. Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
  323. // Contextual information about the example value. Examples are:
  324. //
  325. // Trace: type.googleapis.com/google.monitoring.v3.SpanContext
  326. //
  327. // Literal string: type.googleapis.com/google.protobuf.StringValue
  328. //
  329. // Labels dropped during aggregation:
  330. // type.googleapis.com/google.monitoring.v3.DroppedLabels
  331. //
  332. // There may be only a single attachment of any given message type in a
  333. // single exemplar, and this is enforced by the system.
  334. Attachments []*anypb.Any `protobuf:"bytes,3,rep,name=attachments,proto3" json:"attachments,omitempty"`
  335. }
  336. func (x *Distribution_Exemplar) Reset() {
  337. *x = Distribution_Exemplar{}
  338. if protoimpl.UnsafeEnabled {
  339. mi := &file_google_api_distribution_proto_msgTypes[3]
  340. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  341. ms.StoreMessageInfo(mi)
  342. }
  343. }
  344. func (x *Distribution_Exemplar) String() string {
  345. return protoimpl.X.MessageStringOf(x)
  346. }
  347. func (*Distribution_Exemplar) ProtoMessage() {}
  348. func (x *Distribution_Exemplar) ProtoReflect() protoreflect.Message {
  349. mi := &file_google_api_distribution_proto_msgTypes[3]
  350. if protoimpl.UnsafeEnabled && x != nil {
  351. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  352. if ms.LoadMessageInfo() == nil {
  353. ms.StoreMessageInfo(mi)
  354. }
  355. return ms
  356. }
  357. return mi.MessageOf(x)
  358. }
  359. // Deprecated: Use Distribution_Exemplar.ProtoReflect.Descriptor instead.
  360. func (*Distribution_Exemplar) Descriptor() ([]byte, []int) {
  361. return file_google_api_distribution_proto_rawDescGZIP(), []int{0, 2}
  362. }
  363. func (x *Distribution_Exemplar) GetValue() float64 {
  364. if x != nil {
  365. return x.Value
  366. }
  367. return 0
  368. }
  369. func (x *Distribution_Exemplar) GetTimestamp() *timestamppb.Timestamp {
  370. if x != nil {
  371. return x.Timestamp
  372. }
  373. return nil
  374. }
  375. func (x *Distribution_Exemplar) GetAttachments() []*anypb.Any {
  376. if x != nil {
  377. return x.Attachments
  378. }
  379. return nil
  380. }
  381. // Specifies a linear sequence of buckets that all have the same width
  382. // (except overflow and underflow). Each bucket represents a constant
  383. // absolute uncertainty on the specific value in the bucket.
  384. //
  385. // There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
  386. // following boundaries:
  387. //
  388. // Upper bound (0 <= i < N-1): offset + (width * i).
  389. //
  390. // Lower bound (1 <= i < N): offset + (width * (i - 1)).
  391. type Distribution_BucketOptions_Linear struct {
  392. state protoimpl.MessageState
  393. sizeCache protoimpl.SizeCache
  394. unknownFields protoimpl.UnknownFields
  395. // Must be greater than 0.
  396. NumFiniteBuckets int32 `protobuf:"varint,1,opt,name=num_finite_buckets,json=numFiniteBuckets,proto3" json:"num_finite_buckets,omitempty"`
  397. // Must be greater than 0.
  398. Width float64 `protobuf:"fixed64,2,opt,name=width,proto3" json:"width,omitempty"`
  399. // Lower bound of the first bucket.
  400. Offset float64 `protobuf:"fixed64,3,opt,name=offset,proto3" json:"offset,omitempty"`
  401. }
  402. func (x *Distribution_BucketOptions_Linear) Reset() {
  403. *x = Distribution_BucketOptions_Linear{}
  404. if protoimpl.UnsafeEnabled {
  405. mi := &file_google_api_distribution_proto_msgTypes[4]
  406. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  407. ms.StoreMessageInfo(mi)
  408. }
  409. }
  410. func (x *Distribution_BucketOptions_Linear) String() string {
  411. return protoimpl.X.MessageStringOf(x)
  412. }
  413. func (*Distribution_BucketOptions_Linear) ProtoMessage() {}
  414. func (x *Distribution_BucketOptions_Linear) ProtoReflect() protoreflect.Message {
  415. mi := &file_google_api_distribution_proto_msgTypes[4]
  416. if protoimpl.UnsafeEnabled && x != nil {
  417. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  418. if ms.LoadMessageInfo() == nil {
  419. ms.StoreMessageInfo(mi)
  420. }
  421. return ms
  422. }
  423. return mi.MessageOf(x)
  424. }
  425. // Deprecated: Use Distribution_BucketOptions_Linear.ProtoReflect.Descriptor instead.
  426. func (*Distribution_BucketOptions_Linear) Descriptor() ([]byte, []int) {
  427. return file_google_api_distribution_proto_rawDescGZIP(), []int{0, 1, 0}
  428. }
  429. func (x *Distribution_BucketOptions_Linear) GetNumFiniteBuckets() int32 {
  430. if x != nil {
  431. return x.NumFiniteBuckets
  432. }
  433. return 0
  434. }
  435. func (x *Distribution_BucketOptions_Linear) GetWidth() float64 {
  436. if x != nil {
  437. return x.Width
  438. }
  439. return 0
  440. }
  441. func (x *Distribution_BucketOptions_Linear) GetOffset() float64 {
  442. if x != nil {
  443. return x.Offset
  444. }
  445. return 0
  446. }
  447. // Specifies an exponential sequence of buckets that have a width that is
  448. // proportional to the value of the lower bound. Each bucket represents a
  449. // constant relative uncertainty on a specific value in the bucket.
  450. //
  451. // There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
  452. // following boundaries:
  453. //
  454. // Upper bound (0 <= i < N-1): scale * (growth_factor ^ i).
  455. //
  456. // Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).
  457. type Distribution_BucketOptions_Exponential struct {
  458. state protoimpl.MessageState
  459. sizeCache protoimpl.SizeCache
  460. unknownFields protoimpl.UnknownFields
  461. // Must be greater than 0.
  462. NumFiniteBuckets int32 `protobuf:"varint,1,opt,name=num_finite_buckets,json=numFiniteBuckets,proto3" json:"num_finite_buckets,omitempty"`
  463. // Must be greater than 1.
  464. GrowthFactor float64 `protobuf:"fixed64,2,opt,name=growth_factor,json=growthFactor,proto3" json:"growth_factor,omitempty"`
  465. // Must be greater than 0.
  466. Scale float64 `protobuf:"fixed64,3,opt,name=scale,proto3" json:"scale,omitempty"`
  467. }
  468. func (x *Distribution_BucketOptions_Exponential) Reset() {
  469. *x = Distribution_BucketOptions_Exponential{}
  470. if protoimpl.UnsafeEnabled {
  471. mi := &file_google_api_distribution_proto_msgTypes[5]
  472. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  473. ms.StoreMessageInfo(mi)
  474. }
  475. }
  476. func (x *Distribution_BucketOptions_Exponential) String() string {
  477. return protoimpl.X.MessageStringOf(x)
  478. }
  479. func (*Distribution_BucketOptions_Exponential) ProtoMessage() {}
  480. func (x *Distribution_BucketOptions_Exponential) ProtoReflect() protoreflect.Message {
  481. mi := &file_google_api_distribution_proto_msgTypes[5]
  482. if protoimpl.UnsafeEnabled && x != nil {
  483. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  484. if ms.LoadMessageInfo() == nil {
  485. ms.StoreMessageInfo(mi)
  486. }
  487. return ms
  488. }
  489. return mi.MessageOf(x)
  490. }
  491. // Deprecated: Use Distribution_BucketOptions_Exponential.ProtoReflect.Descriptor instead.
  492. func (*Distribution_BucketOptions_Exponential) Descriptor() ([]byte, []int) {
  493. return file_google_api_distribution_proto_rawDescGZIP(), []int{0, 1, 1}
  494. }
  495. func (x *Distribution_BucketOptions_Exponential) GetNumFiniteBuckets() int32 {
  496. if x != nil {
  497. return x.NumFiniteBuckets
  498. }
  499. return 0
  500. }
  501. func (x *Distribution_BucketOptions_Exponential) GetGrowthFactor() float64 {
  502. if x != nil {
  503. return x.GrowthFactor
  504. }
  505. return 0
  506. }
  507. func (x *Distribution_BucketOptions_Exponential) GetScale() float64 {
  508. if x != nil {
  509. return x.Scale
  510. }
  511. return 0
  512. }
  513. // Specifies a set of buckets with arbitrary widths.
  514. //
  515. // There are `size(bounds) + 1` (= N) buckets. Bucket `i` has the following
  516. // boundaries:
  517. //
  518. // Upper bound (0 <= i < N-1): bounds[i]
  519. // Lower bound (1 <= i < N); bounds[i - 1]
  520. //
  521. // The `bounds` field must contain at least one element. If `bounds` has
  522. // only one element, then there are no finite buckets, and that single
  523. // element is the common boundary of the overflow and underflow buckets.
  524. type Distribution_BucketOptions_Explicit struct {
  525. state protoimpl.MessageState
  526. sizeCache protoimpl.SizeCache
  527. unknownFields protoimpl.UnknownFields
  528. // The values must be monotonically increasing.
  529. Bounds []float64 `protobuf:"fixed64,1,rep,packed,name=bounds,proto3" json:"bounds,omitempty"`
  530. }
  531. func (x *Distribution_BucketOptions_Explicit) Reset() {
  532. *x = Distribution_BucketOptions_Explicit{}
  533. if protoimpl.UnsafeEnabled {
  534. mi := &file_google_api_distribution_proto_msgTypes[6]
  535. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  536. ms.StoreMessageInfo(mi)
  537. }
  538. }
  539. func (x *Distribution_BucketOptions_Explicit) String() string {
  540. return protoimpl.X.MessageStringOf(x)
  541. }
  542. func (*Distribution_BucketOptions_Explicit) ProtoMessage() {}
  543. func (x *Distribution_BucketOptions_Explicit) ProtoReflect() protoreflect.Message {
  544. mi := &file_google_api_distribution_proto_msgTypes[6]
  545. if protoimpl.UnsafeEnabled && x != nil {
  546. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  547. if ms.LoadMessageInfo() == nil {
  548. ms.StoreMessageInfo(mi)
  549. }
  550. return ms
  551. }
  552. return mi.MessageOf(x)
  553. }
  554. // Deprecated: Use Distribution_BucketOptions_Explicit.ProtoReflect.Descriptor instead.
  555. func (*Distribution_BucketOptions_Explicit) Descriptor() ([]byte, []int) {
  556. return file_google_api_distribution_proto_rawDescGZIP(), []int{0, 1, 2}
  557. }
  558. func (x *Distribution_BucketOptions_Explicit) GetBounds() []float64 {
  559. if x != nil {
  560. return x.Bounds
  561. }
  562. return nil
  563. }
  564. var File_google_api_distribution_proto protoreflect.FileDescriptor
  565. var file_google_api_distribution_proto_rawDesc = []byte{
  566. 0x0a, 0x1d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x64, 0x69, 0x73,
  567. 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  568. 0x0a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x1a, 0x19, 0x67, 0x6f, 0x6f,
  569. 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79,
  570. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
  571. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
  572. 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xda, 0x08, 0x0a, 0x0c, 0x44, 0x69, 0x73, 0x74,
  573. 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e,
  574. 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12,
  575. 0x0a, 0x04, 0x6d, 0x65, 0x61, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x04, 0x6d, 0x65,
  576. 0x61, 0x6e, 0x12, 0x37, 0x0a, 0x18, 0x73, 0x75, 0x6d, 0x5f, 0x6f, 0x66, 0x5f, 0x73, 0x71, 0x75,
  577. 0x61, 0x72, 0x65, 0x64, 0x5f, 0x64, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03,
  578. 0x20, 0x01, 0x28, 0x01, 0x52, 0x15, 0x73, 0x75, 0x6d, 0x4f, 0x66, 0x53, 0x71, 0x75, 0x61, 0x72,
  579. 0x65, 0x64, 0x44, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x05, 0x72,
  580. 0x61, 0x6e, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f,
  581. 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75,
  582. 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x05, 0x72, 0x61, 0x6e, 0x67,
  583. 0x65, 0x12, 0x4d, 0x0a, 0x0e, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6f, 0x70, 0x74, 0x69,
  584. 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
  585. 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74,
  586. 0x69, 0x6f, 0x6e, 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
  587. 0x73, 0x52, 0x0d, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
  588. 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74,
  589. 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0c, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x43,
  590. 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x3f, 0x0a, 0x09, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61,
  591. 0x72, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
  592. 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69,
  593. 0x6f, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x52, 0x09, 0x65, 0x78, 0x65,
  594. 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x73, 0x1a, 0x2b, 0x0a, 0x05, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12,
  595. 0x10, 0x0a, 0x03, 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x03, 0x6d, 0x69,
  596. 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x61, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x03,
  597. 0x6d, 0x61, 0x78, 0x1a, 0xb9, 0x04, 0x0a, 0x0d, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x4f, 0x70,
  598. 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x56, 0x0a, 0x0e, 0x6c, 0x69, 0x6e, 0x65, 0x61, 0x72, 0x5f,
  599. 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e,
  600. 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x72,
  601. 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x4f, 0x70,
  602. 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4c, 0x69, 0x6e, 0x65, 0x61, 0x72, 0x48, 0x00, 0x52, 0x0d,
  603. 0x6c, 0x69, 0x6e, 0x65, 0x61, 0x72, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x65, 0x0a,
  604. 0x13, 0x65, 0x78, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x62, 0x75, 0x63,
  605. 0x6b, 0x65, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f,
  606. 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75,
  607. 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f,
  608. 0x6e, 0x73, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x48, 0x00,
  609. 0x52, 0x12, 0x65, 0x78, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x42, 0x75, 0x63,
  610. 0x6b, 0x65, 0x74, 0x73, 0x12, 0x5c, 0x0a, 0x10, 0x65, 0x78, 0x70, 0x6c, 0x69, 0x63, 0x69, 0x74,
  611. 0x5f, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f,
  612. 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x44, 0x69, 0x73, 0x74,
  613. 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x4f,
  614. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x45, 0x78, 0x70, 0x6c, 0x69, 0x63, 0x69, 0x74, 0x48,
  615. 0x00, 0x52, 0x0f, 0x65, 0x78, 0x70, 0x6c, 0x69, 0x63, 0x69, 0x74, 0x42, 0x75, 0x63, 0x6b, 0x65,
  616. 0x74, 0x73, 0x1a, 0x64, 0x0a, 0x06, 0x4c, 0x69, 0x6e, 0x65, 0x61, 0x72, 0x12, 0x2c, 0x0a, 0x12,
  617. 0x6e, 0x75, 0x6d, 0x5f, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x65, 0x5f, 0x62, 0x75, 0x63, 0x6b, 0x65,
  618. 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x6e,
  619. 0x69, 0x74, 0x65, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x69,
  620. 0x64, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68,
  621. 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01,
  622. 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x1a, 0x76, 0x0a, 0x0b, 0x45, 0x78, 0x70, 0x6f,
  623. 0x6e, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x12, 0x2c, 0x0a, 0x12, 0x6e, 0x75, 0x6d, 0x5f, 0x66,
  624. 0x69, 0x6e, 0x69, 0x74, 0x65, 0x5f, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20,
  625. 0x01, 0x28, 0x05, 0x52, 0x10, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x6e, 0x69, 0x74, 0x65, 0x42, 0x75,
  626. 0x63, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x67, 0x72, 0x6f, 0x77, 0x74, 0x68, 0x5f,
  627. 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0c, 0x67, 0x72,
  628. 0x6f, 0x77, 0x74, 0x68, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63,
  629. 0x61, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65,
  630. 0x1a, 0x22, 0x0a, 0x08, 0x45, 0x78, 0x70, 0x6c, 0x69, 0x63, 0x69, 0x74, 0x12, 0x16, 0x0a, 0x06,
  631. 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x01, 0x52, 0x06, 0x62, 0x6f,
  632. 0x75, 0x6e, 0x64, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a,
  633. 0x92, 0x01, 0x0a, 0x08, 0x45, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x12, 0x14, 0x0a, 0x05,
  634. 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c,
  635. 0x75, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18,
  636. 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
  637. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
  638. 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x36, 0x0a, 0x0b,
  639. 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28,
  640. 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  641. 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d,
  642. 0x65, 0x6e, 0x74, 0x73, 0x42, 0x71, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
  643. 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x42, 0x11, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75,
  644. 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x43, 0x67, 0x6f, 0x6f,
  645. 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67,
  646. 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
  647. 0x69, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74,
  648. 0x69, 0x6f, 0x6e, 0x3b, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e,
  649. 0xa2, 0x02, 0x04, 0x47, 0x41, 0x50, 0x49, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  650. }
  651. var (
  652. file_google_api_distribution_proto_rawDescOnce sync.Once
  653. file_google_api_distribution_proto_rawDescData = file_google_api_distribution_proto_rawDesc
  654. )
  655. func file_google_api_distribution_proto_rawDescGZIP() []byte {
  656. file_google_api_distribution_proto_rawDescOnce.Do(func() {
  657. file_google_api_distribution_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_distribution_proto_rawDescData)
  658. })
  659. return file_google_api_distribution_proto_rawDescData
  660. }
  661. var file_google_api_distribution_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
  662. var file_google_api_distribution_proto_goTypes = []interface{}{
  663. (*Distribution)(nil), // 0: google.api.Distribution
  664. (*Distribution_Range)(nil), // 1: google.api.Distribution.Range
  665. (*Distribution_BucketOptions)(nil), // 2: google.api.Distribution.BucketOptions
  666. (*Distribution_Exemplar)(nil), // 3: google.api.Distribution.Exemplar
  667. (*Distribution_BucketOptions_Linear)(nil), // 4: google.api.Distribution.BucketOptions.Linear
  668. (*Distribution_BucketOptions_Exponential)(nil), // 5: google.api.Distribution.BucketOptions.Exponential
  669. (*Distribution_BucketOptions_Explicit)(nil), // 6: google.api.Distribution.BucketOptions.Explicit
  670. (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp
  671. (*anypb.Any)(nil), // 8: google.protobuf.Any
  672. }
  673. var file_google_api_distribution_proto_depIdxs = []int32{
  674. 1, // 0: google.api.Distribution.range:type_name -> google.api.Distribution.Range
  675. 2, // 1: google.api.Distribution.bucket_options:type_name -> google.api.Distribution.BucketOptions
  676. 3, // 2: google.api.Distribution.exemplars:type_name -> google.api.Distribution.Exemplar
  677. 4, // 3: google.api.Distribution.BucketOptions.linear_buckets:type_name -> google.api.Distribution.BucketOptions.Linear
  678. 5, // 4: google.api.Distribution.BucketOptions.exponential_buckets:type_name -> google.api.Distribution.BucketOptions.Exponential
  679. 6, // 5: google.api.Distribution.BucketOptions.explicit_buckets:type_name -> google.api.Distribution.BucketOptions.Explicit
  680. 7, // 6: google.api.Distribution.Exemplar.timestamp:type_name -> google.protobuf.Timestamp
  681. 8, // 7: google.api.Distribution.Exemplar.attachments:type_name -> google.protobuf.Any
  682. 8, // [8:8] is the sub-list for method output_type
  683. 8, // [8:8] is the sub-list for method input_type
  684. 8, // [8:8] is the sub-list for extension type_name
  685. 8, // [8:8] is the sub-list for extension extendee
  686. 0, // [0:8] is the sub-list for field type_name
  687. }
  688. func init() { file_google_api_distribution_proto_init() }
  689. func file_google_api_distribution_proto_init() {
  690. if File_google_api_distribution_proto != nil {
  691. return
  692. }
  693. if !protoimpl.UnsafeEnabled {
  694. file_google_api_distribution_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  695. switch v := v.(*Distribution); i {
  696. case 0:
  697. return &v.state
  698. case 1:
  699. return &v.sizeCache
  700. case 2:
  701. return &v.unknownFields
  702. default:
  703. return nil
  704. }
  705. }
  706. file_google_api_distribution_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  707. switch v := v.(*Distribution_Range); i {
  708. case 0:
  709. return &v.state
  710. case 1:
  711. return &v.sizeCache
  712. case 2:
  713. return &v.unknownFields
  714. default:
  715. return nil
  716. }
  717. }
  718. file_google_api_distribution_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  719. switch v := v.(*Distribution_BucketOptions); i {
  720. case 0:
  721. return &v.state
  722. case 1:
  723. return &v.sizeCache
  724. case 2:
  725. return &v.unknownFields
  726. default:
  727. return nil
  728. }
  729. }
  730. file_google_api_distribution_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  731. switch v := v.(*Distribution_Exemplar); i {
  732. case 0:
  733. return &v.state
  734. case 1:
  735. return &v.sizeCache
  736. case 2:
  737. return &v.unknownFields
  738. default:
  739. return nil
  740. }
  741. }
  742. file_google_api_distribution_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  743. switch v := v.(*Distribution_BucketOptions_Linear); i {
  744. case 0:
  745. return &v.state
  746. case 1:
  747. return &v.sizeCache
  748. case 2:
  749. return &v.unknownFields
  750. default:
  751. return nil
  752. }
  753. }
  754. file_google_api_distribution_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  755. switch v := v.(*Distribution_BucketOptions_Exponential); i {
  756. case 0:
  757. return &v.state
  758. case 1:
  759. return &v.sizeCache
  760. case 2:
  761. return &v.unknownFields
  762. default:
  763. return nil
  764. }
  765. }
  766. file_google_api_distribution_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  767. switch v := v.(*Distribution_BucketOptions_Explicit); i {
  768. case 0:
  769. return &v.state
  770. case 1:
  771. return &v.sizeCache
  772. case 2:
  773. return &v.unknownFields
  774. default:
  775. return nil
  776. }
  777. }
  778. }
  779. file_google_api_distribution_proto_msgTypes[2].OneofWrappers = []interface{}{
  780. (*Distribution_BucketOptions_LinearBuckets)(nil),
  781. (*Distribution_BucketOptions_ExponentialBuckets)(nil),
  782. (*Distribution_BucketOptions_ExplicitBuckets)(nil),
  783. }
  784. type x struct{}
  785. out := protoimpl.TypeBuilder{
  786. File: protoimpl.DescBuilder{
  787. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  788. RawDescriptor: file_google_api_distribution_proto_rawDesc,
  789. NumEnums: 0,
  790. NumMessages: 7,
  791. NumExtensions: 0,
  792. NumServices: 0,
  793. },
  794. GoTypes: file_google_api_distribution_proto_goTypes,
  795. DependencyIndexes: file_google_api_distribution_proto_depIdxs,
  796. MessageInfos: file_google_api_distribution_proto_msgTypes,
  797. }.Build()
  798. File_google_api_distribution_proto = out.File
  799. file_google_api_distribution_proto_rawDesc = nil
  800. file_google_api_distribution_proto_goTypes = nil
  801. file_google_api_distribution_proto_depIdxs = nil
  802. }