stats.pb.go 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943
  1. // Copyright 2016-18, OpenCensus Authors
  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.25.0
  17. // protoc v3.12.3
  18. // source: opencensus/proto/stats/v1/stats.proto
  19. package v1
  20. import (
  21. proto "github.com/golang/protobuf/proto"
  22. timestamp "github.com/golang/protobuf/ptypes/timestamp"
  23. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  24. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  25. reflect "reflect"
  26. sync "sync"
  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. // This is a compile-time assertion that a sufficiently up-to-date version
  35. // of the legacy proto package is being used.
  36. const _ = proto.ProtoPackageIsVersion4
  37. type Measure_Type int32
  38. const (
  39. // Unknown type.
  40. Measure_TYPE_UNSPECIFIED Measure_Type = 0
  41. // Indicates an int64 Measure.
  42. Measure_INT64 Measure_Type = 1
  43. // Indicates a double Measure.
  44. Measure_DOUBLE Measure_Type = 2
  45. )
  46. // Enum value maps for Measure_Type.
  47. var (
  48. Measure_Type_name = map[int32]string{
  49. 0: "TYPE_UNSPECIFIED",
  50. 1: "INT64",
  51. 2: "DOUBLE",
  52. }
  53. Measure_Type_value = map[string]int32{
  54. "TYPE_UNSPECIFIED": 0,
  55. "INT64": 1,
  56. "DOUBLE": 2,
  57. }
  58. )
  59. func (x Measure_Type) Enum() *Measure_Type {
  60. p := new(Measure_Type)
  61. *p = x
  62. return p
  63. }
  64. func (x Measure_Type) String() string {
  65. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  66. }
  67. func (Measure_Type) Descriptor() protoreflect.EnumDescriptor {
  68. return file_opencensus_proto_stats_v1_stats_proto_enumTypes[0].Descriptor()
  69. }
  70. func (Measure_Type) Type() protoreflect.EnumType {
  71. return &file_opencensus_proto_stats_v1_stats_proto_enumTypes[0]
  72. }
  73. func (x Measure_Type) Number() protoreflect.EnumNumber {
  74. return protoreflect.EnumNumber(x)
  75. }
  76. // Deprecated: Use Measure_Type.Descriptor instead.
  77. func (Measure_Type) EnumDescriptor() ([]byte, []int) {
  78. return file_opencensus_proto_stats_v1_stats_proto_rawDescGZIP(), []int{1, 0}
  79. }
  80. // TODO(bdrutu): Consider if this should be moved to a "tags" directory to match the API structure.
  81. type Tag struct {
  82. state protoimpl.MessageState
  83. sizeCache protoimpl.SizeCache
  84. unknownFields protoimpl.UnknownFields
  85. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  86. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  87. }
  88. func (x *Tag) Reset() {
  89. *x = Tag{}
  90. if protoimpl.UnsafeEnabled {
  91. mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[0]
  92. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  93. ms.StoreMessageInfo(mi)
  94. }
  95. }
  96. func (x *Tag) String() string {
  97. return protoimpl.X.MessageStringOf(x)
  98. }
  99. func (*Tag) ProtoMessage() {}
  100. func (x *Tag) ProtoReflect() protoreflect.Message {
  101. mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[0]
  102. if protoimpl.UnsafeEnabled && x != nil {
  103. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  104. if ms.LoadMessageInfo() == nil {
  105. ms.StoreMessageInfo(mi)
  106. }
  107. return ms
  108. }
  109. return mi.MessageOf(x)
  110. }
  111. // Deprecated: Use Tag.ProtoReflect.Descriptor instead.
  112. func (*Tag) Descriptor() ([]byte, []int) {
  113. return file_opencensus_proto_stats_v1_stats_proto_rawDescGZIP(), []int{0}
  114. }
  115. func (x *Tag) GetKey() string {
  116. if x != nil {
  117. return x.Key
  118. }
  119. return ""
  120. }
  121. func (x *Tag) GetValue() string {
  122. if x != nil {
  123. return x.Value
  124. }
  125. return ""
  126. }
  127. // Measure .
  128. type Measure struct {
  129. state protoimpl.MessageState
  130. sizeCache protoimpl.SizeCache
  131. unknownFields protoimpl.UnknownFields
  132. // A string by which the measure will be referred to, e.g. "rpc_server_latency". Names MUST be
  133. // unique within the library.
  134. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  135. // Describes the measure, e.g. "RPC latency in seconds".
  136. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
  137. // Describes the unit used for the Measure. Follows the format described by
  138. // http://unitsofmeasure.org/ucum.html.
  139. Unit string `protobuf:"bytes,3,opt,name=unit,proto3" json:"unit,omitempty"`
  140. // The type used for this Measure.
  141. Type Measure_Type `protobuf:"varint,4,opt,name=type,proto3,enum=opencensus.proto.stats.v1.Measure_Type" json:"type,omitempty"`
  142. }
  143. func (x *Measure) Reset() {
  144. *x = Measure{}
  145. if protoimpl.UnsafeEnabled {
  146. mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[1]
  147. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  148. ms.StoreMessageInfo(mi)
  149. }
  150. }
  151. func (x *Measure) String() string {
  152. return protoimpl.X.MessageStringOf(x)
  153. }
  154. func (*Measure) ProtoMessage() {}
  155. func (x *Measure) ProtoReflect() protoreflect.Message {
  156. mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[1]
  157. if protoimpl.UnsafeEnabled && x != nil {
  158. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  159. if ms.LoadMessageInfo() == nil {
  160. ms.StoreMessageInfo(mi)
  161. }
  162. return ms
  163. }
  164. return mi.MessageOf(x)
  165. }
  166. // Deprecated: Use Measure.ProtoReflect.Descriptor instead.
  167. func (*Measure) Descriptor() ([]byte, []int) {
  168. return file_opencensus_proto_stats_v1_stats_proto_rawDescGZIP(), []int{1}
  169. }
  170. func (x *Measure) GetName() string {
  171. if x != nil {
  172. return x.Name
  173. }
  174. return ""
  175. }
  176. func (x *Measure) GetDescription() string {
  177. if x != nil {
  178. return x.Description
  179. }
  180. return ""
  181. }
  182. func (x *Measure) GetUnit() string {
  183. if x != nil {
  184. return x.Unit
  185. }
  186. return ""
  187. }
  188. func (x *Measure) GetType() Measure_Type {
  189. if x != nil {
  190. return x.Type
  191. }
  192. return Measure_TYPE_UNSPECIFIED
  193. }
  194. type View struct {
  195. state protoimpl.MessageState
  196. sizeCache protoimpl.SizeCache
  197. unknownFields protoimpl.UnknownFields
  198. // A string by which the View will be referred to, e.g. "rpc_latency". Names MUST be unique
  199. // within the library.
  200. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  201. // Describes the view, e.g. "RPC latency distribution"
  202. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
  203. // The Measure to which this view is applied.
  204. Measure *Measure `protobuf:"bytes,3,opt,name=measure,proto3" json:"measure,omitempty"`
  205. // An array of tag keys. These values associated with tags of this name form the basis by which
  206. // individual stats will be aggregated (one aggregation per unique tag value). If none are
  207. // provided, then all data is recorded in a single aggregation.
  208. Columns []string `protobuf:"bytes,4,rep,name=columns,proto3" json:"columns,omitempty"`
  209. // The description of the aggregation used for this view which describes how data collected are
  210. // aggregated.
  211. //
  212. // Types that are assignable to Aggregation:
  213. // *View_CountAggregation
  214. // *View_SumAggregation
  215. // *View_LastValueAggregation
  216. // *View_DistributionAggregation
  217. Aggregation isView_Aggregation `protobuf_oneof:"aggregation"`
  218. }
  219. func (x *View) Reset() {
  220. *x = View{}
  221. if protoimpl.UnsafeEnabled {
  222. mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[2]
  223. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  224. ms.StoreMessageInfo(mi)
  225. }
  226. }
  227. func (x *View) String() string {
  228. return protoimpl.X.MessageStringOf(x)
  229. }
  230. func (*View) ProtoMessage() {}
  231. func (x *View) ProtoReflect() protoreflect.Message {
  232. mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[2]
  233. if protoimpl.UnsafeEnabled && x != nil {
  234. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  235. if ms.LoadMessageInfo() == nil {
  236. ms.StoreMessageInfo(mi)
  237. }
  238. return ms
  239. }
  240. return mi.MessageOf(x)
  241. }
  242. // Deprecated: Use View.ProtoReflect.Descriptor instead.
  243. func (*View) Descriptor() ([]byte, []int) {
  244. return file_opencensus_proto_stats_v1_stats_proto_rawDescGZIP(), []int{2}
  245. }
  246. func (x *View) GetName() string {
  247. if x != nil {
  248. return x.Name
  249. }
  250. return ""
  251. }
  252. func (x *View) GetDescription() string {
  253. if x != nil {
  254. return x.Description
  255. }
  256. return ""
  257. }
  258. func (x *View) GetMeasure() *Measure {
  259. if x != nil {
  260. return x.Measure
  261. }
  262. return nil
  263. }
  264. func (x *View) GetColumns() []string {
  265. if x != nil {
  266. return x.Columns
  267. }
  268. return nil
  269. }
  270. func (m *View) GetAggregation() isView_Aggregation {
  271. if m != nil {
  272. return m.Aggregation
  273. }
  274. return nil
  275. }
  276. func (x *View) GetCountAggregation() *CountAggregation {
  277. if x, ok := x.GetAggregation().(*View_CountAggregation); ok {
  278. return x.CountAggregation
  279. }
  280. return nil
  281. }
  282. func (x *View) GetSumAggregation() *SumAggregation {
  283. if x, ok := x.GetAggregation().(*View_SumAggregation); ok {
  284. return x.SumAggregation
  285. }
  286. return nil
  287. }
  288. func (x *View) GetLastValueAggregation() *LastValueAggregation {
  289. if x, ok := x.GetAggregation().(*View_LastValueAggregation); ok {
  290. return x.LastValueAggregation
  291. }
  292. return nil
  293. }
  294. func (x *View) GetDistributionAggregation() *DistributionAggregation {
  295. if x, ok := x.GetAggregation().(*View_DistributionAggregation); ok {
  296. return x.DistributionAggregation
  297. }
  298. return nil
  299. }
  300. type isView_Aggregation interface {
  301. isView_Aggregation()
  302. }
  303. type View_CountAggregation struct {
  304. // Counts the number of measurements recorded.
  305. CountAggregation *CountAggregation `protobuf:"bytes,5,opt,name=count_aggregation,json=countAggregation,proto3,oneof"`
  306. }
  307. type View_SumAggregation struct {
  308. // Indicates that data collected and aggregated with this Aggregation will be summed up.
  309. SumAggregation *SumAggregation `protobuf:"bytes,6,opt,name=sum_aggregation,json=sumAggregation,proto3,oneof"`
  310. }
  311. type View_LastValueAggregation struct {
  312. // Indicates that data collected and aggregated with this Aggregation will represent the last
  313. // recorded value. This is useful to support Gauges.
  314. LastValueAggregation *LastValueAggregation `protobuf:"bytes,7,opt,name=last_value_aggregation,json=lastValueAggregation,proto3,oneof"`
  315. }
  316. type View_DistributionAggregation struct {
  317. // Indicates that the desired Aggregation is a histogram distribution. A distribution
  318. // Aggregation may contain a histogram of the values in the population. User should define the
  319. // bucket boundaries for that histogram (see DistributionAggregation).
  320. DistributionAggregation *DistributionAggregation `protobuf:"bytes,8,opt,name=distribution_aggregation,json=distributionAggregation,proto3,oneof"`
  321. }
  322. func (*View_CountAggregation) isView_Aggregation() {}
  323. func (*View_SumAggregation) isView_Aggregation() {}
  324. func (*View_LastValueAggregation) isView_Aggregation() {}
  325. func (*View_DistributionAggregation) isView_Aggregation() {}
  326. type CountAggregation struct {
  327. state protoimpl.MessageState
  328. sizeCache protoimpl.SizeCache
  329. unknownFields protoimpl.UnknownFields
  330. }
  331. func (x *CountAggregation) Reset() {
  332. *x = CountAggregation{}
  333. if protoimpl.UnsafeEnabled {
  334. mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[3]
  335. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  336. ms.StoreMessageInfo(mi)
  337. }
  338. }
  339. func (x *CountAggregation) String() string {
  340. return protoimpl.X.MessageStringOf(x)
  341. }
  342. func (*CountAggregation) ProtoMessage() {}
  343. func (x *CountAggregation) ProtoReflect() protoreflect.Message {
  344. mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[3]
  345. if protoimpl.UnsafeEnabled && x != nil {
  346. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  347. if ms.LoadMessageInfo() == nil {
  348. ms.StoreMessageInfo(mi)
  349. }
  350. return ms
  351. }
  352. return mi.MessageOf(x)
  353. }
  354. // Deprecated: Use CountAggregation.ProtoReflect.Descriptor instead.
  355. func (*CountAggregation) Descriptor() ([]byte, []int) {
  356. return file_opencensus_proto_stats_v1_stats_proto_rawDescGZIP(), []int{3}
  357. }
  358. type SumAggregation struct {
  359. state protoimpl.MessageState
  360. sizeCache protoimpl.SizeCache
  361. unknownFields protoimpl.UnknownFields
  362. }
  363. func (x *SumAggregation) Reset() {
  364. *x = SumAggregation{}
  365. if protoimpl.UnsafeEnabled {
  366. mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[4]
  367. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  368. ms.StoreMessageInfo(mi)
  369. }
  370. }
  371. func (x *SumAggregation) String() string {
  372. return protoimpl.X.MessageStringOf(x)
  373. }
  374. func (*SumAggregation) ProtoMessage() {}
  375. func (x *SumAggregation) ProtoReflect() protoreflect.Message {
  376. mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[4]
  377. if protoimpl.UnsafeEnabled && x != nil {
  378. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  379. if ms.LoadMessageInfo() == nil {
  380. ms.StoreMessageInfo(mi)
  381. }
  382. return ms
  383. }
  384. return mi.MessageOf(x)
  385. }
  386. // Deprecated: Use SumAggregation.ProtoReflect.Descriptor instead.
  387. func (*SumAggregation) Descriptor() ([]byte, []int) {
  388. return file_opencensus_proto_stats_v1_stats_proto_rawDescGZIP(), []int{4}
  389. }
  390. type LastValueAggregation struct {
  391. state protoimpl.MessageState
  392. sizeCache protoimpl.SizeCache
  393. unknownFields protoimpl.UnknownFields
  394. }
  395. func (x *LastValueAggregation) Reset() {
  396. *x = LastValueAggregation{}
  397. if protoimpl.UnsafeEnabled {
  398. mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[5]
  399. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  400. ms.StoreMessageInfo(mi)
  401. }
  402. }
  403. func (x *LastValueAggregation) String() string {
  404. return protoimpl.X.MessageStringOf(x)
  405. }
  406. func (*LastValueAggregation) ProtoMessage() {}
  407. func (x *LastValueAggregation) ProtoReflect() protoreflect.Message {
  408. mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[5]
  409. if protoimpl.UnsafeEnabled && x != nil {
  410. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  411. if ms.LoadMessageInfo() == nil {
  412. ms.StoreMessageInfo(mi)
  413. }
  414. return ms
  415. }
  416. return mi.MessageOf(x)
  417. }
  418. // Deprecated: Use LastValueAggregation.ProtoReflect.Descriptor instead.
  419. func (*LastValueAggregation) Descriptor() ([]byte, []int) {
  420. return file_opencensus_proto_stats_v1_stats_proto_rawDescGZIP(), []int{5}
  421. }
  422. type DistributionAggregation struct {
  423. state protoimpl.MessageState
  424. sizeCache protoimpl.SizeCache
  425. unknownFields protoimpl.UnknownFields
  426. // A Distribution may optionally contain a histogram of the values in the
  427. // population. The bucket boundaries for that histogram are described by
  428. // `bucket_bounds`. This defines `size(bucket_bounds) + 1` (= N)
  429. // buckets. The boundaries for bucket index i are:
  430. //
  431. // (-infinity, bucket_bounds[i]) for i == 0
  432. // [bucket_bounds[i-1], bucket_bounds[i]) for 0 < i < N-2
  433. // [bucket_bounds[i-1], +infinity) for i == N-1
  434. //
  435. // i.e. an underflow bucket (number 0), zero or more finite buckets (1
  436. // through N - 2, and an overflow bucket (N - 1), with inclusive lower
  437. // bounds and exclusive upper bounds.
  438. //
  439. // If `bucket_bounds` has no elements (zero size), then there is no
  440. // histogram associated with the Distribution. If `bucket_bounds` has only
  441. // one element, there are no finite buckets, and that single element is the
  442. // common boundary of the overflow and underflow buckets. The values must
  443. // be monotonically increasing.
  444. BucketBounds []float64 `protobuf:"fixed64,1,rep,packed,name=bucket_bounds,json=bucketBounds,proto3" json:"bucket_bounds,omitempty"`
  445. }
  446. func (x *DistributionAggregation) Reset() {
  447. *x = DistributionAggregation{}
  448. if protoimpl.UnsafeEnabled {
  449. mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[6]
  450. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  451. ms.StoreMessageInfo(mi)
  452. }
  453. }
  454. func (x *DistributionAggregation) String() string {
  455. return protoimpl.X.MessageStringOf(x)
  456. }
  457. func (*DistributionAggregation) ProtoMessage() {}
  458. func (x *DistributionAggregation) ProtoReflect() protoreflect.Message {
  459. mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[6]
  460. if protoimpl.UnsafeEnabled && x != nil {
  461. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  462. if ms.LoadMessageInfo() == nil {
  463. ms.StoreMessageInfo(mi)
  464. }
  465. return ms
  466. }
  467. return mi.MessageOf(x)
  468. }
  469. // Deprecated: Use DistributionAggregation.ProtoReflect.Descriptor instead.
  470. func (*DistributionAggregation) Descriptor() ([]byte, []int) {
  471. return file_opencensus_proto_stats_v1_stats_proto_rawDescGZIP(), []int{6}
  472. }
  473. func (x *DistributionAggregation) GetBucketBounds() []float64 {
  474. if x != nil {
  475. return x.BucketBounds
  476. }
  477. return nil
  478. }
  479. // Describes a data point to be collected for a Measure.
  480. type Measurement struct {
  481. state protoimpl.MessageState
  482. sizeCache protoimpl.SizeCache
  483. unknownFields protoimpl.UnknownFields
  484. Tags []*Tag `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"`
  485. // The name of the measure to which the value is applied.
  486. MeasureName string `protobuf:"bytes,2,opt,name=measure_name,json=measureName,proto3" json:"measure_name,omitempty"`
  487. // The recorded value, MUST have the appropriate type to match the Measure.
  488. //
  489. // Types that are assignable to Value:
  490. // *Measurement_DoubleValue
  491. // *Measurement_IntValue
  492. Value isMeasurement_Value `protobuf_oneof:"value"`
  493. // The time when this measurement was recorded. If the implementation uses a async buffer to
  494. // record measurements this may be the time when the measurement was read from the buffer.
  495. Time *timestamp.Timestamp `protobuf:"bytes,5,opt,name=time,proto3" json:"time,omitempty"`
  496. }
  497. func (x *Measurement) Reset() {
  498. *x = Measurement{}
  499. if protoimpl.UnsafeEnabled {
  500. mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[7]
  501. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  502. ms.StoreMessageInfo(mi)
  503. }
  504. }
  505. func (x *Measurement) String() string {
  506. return protoimpl.X.MessageStringOf(x)
  507. }
  508. func (*Measurement) ProtoMessage() {}
  509. func (x *Measurement) ProtoReflect() protoreflect.Message {
  510. mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[7]
  511. if protoimpl.UnsafeEnabled && x != nil {
  512. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  513. if ms.LoadMessageInfo() == nil {
  514. ms.StoreMessageInfo(mi)
  515. }
  516. return ms
  517. }
  518. return mi.MessageOf(x)
  519. }
  520. // Deprecated: Use Measurement.ProtoReflect.Descriptor instead.
  521. func (*Measurement) Descriptor() ([]byte, []int) {
  522. return file_opencensus_proto_stats_v1_stats_proto_rawDescGZIP(), []int{7}
  523. }
  524. func (x *Measurement) GetTags() []*Tag {
  525. if x != nil {
  526. return x.Tags
  527. }
  528. return nil
  529. }
  530. func (x *Measurement) GetMeasureName() string {
  531. if x != nil {
  532. return x.MeasureName
  533. }
  534. return ""
  535. }
  536. func (m *Measurement) GetValue() isMeasurement_Value {
  537. if m != nil {
  538. return m.Value
  539. }
  540. return nil
  541. }
  542. func (x *Measurement) GetDoubleValue() float64 {
  543. if x, ok := x.GetValue().(*Measurement_DoubleValue); ok {
  544. return x.DoubleValue
  545. }
  546. return 0
  547. }
  548. func (x *Measurement) GetIntValue() int64 {
  549. if x, ok := x.GetValue().(*Measurement_IntValue); ok {
  550. return x.IntValue
  551. }
  552. return 0
  553. }
  554. func (x *Measurement) GetTime() *timestamp.Timestamp {
  555. if x != nil {
  556. return x.Time
  557. }
  558. return nil
  559. }
  560. type isMeasurement_Value interface {
  561. isMeasurement_Value()
  562. }
  563. type Measurement_DoubleValue struct {
  564. DoubleValue float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue,proto3,oneof"`
  565. }
  566. type Measurement_IntValue struct {
  567. IntValue int64 `protobuf:"varint,4,opt,name=int_value,json=intValue,proto3,oneof"`
  568. }
  569. func (*Measurement_DoubleValue) isMeasurement_Value() {}
  570. func (*Measurement_IntValue) isMeasurement_Value() {}
  571. var File_opencensus_proto_stats_v1_stats_proto protoreflect.FileDescriptor
  572. var file_opencensus_proto_stats_v1_stats_proto_rawDesc = []byte{
  573. 0x0a, 0x25, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f,
  574. 0x74, 0x6f, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74,
  575. 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e,
  576. 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e,
  577. 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  578. 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72,
  579. 0x6f, 0x74, 0x6f, 0x22, 0x2d, 0x0a, 0x03, 0x54, 0x61, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65,
  580. 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05,
  581. 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c,
  582. 0x75, 0x65, 0x22, 0xc5, 0x01, 0x0a, 0x07, 0x4d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x12, 0x12,
  583. 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
  584. 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
  585. 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
  586. 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01,
  587. 0x28, 0x09, 0x52, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x12, 0x3b, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65,
  588. 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e,
  589. 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e,
  590. 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52,
  591. 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x33, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a,
  592. 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,
  593. 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x01, 0x12, 0x0a,
  594. 0x0a, 0x06, 0x44, 0x4f, 0x55, 0x42, 0x4c, 0x45, 0x10, 0x02, 0x22, 0xaf, 0x04, 0x0a, 0x04, 0x56,
  595. 0x69, 0x65, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
  596. 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,
  597. 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65,
  598. 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3c, 0x0a, 0x07, 0x6d, 0x65, 0x61,
  599. 0x73, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6f, 0x70, 0x65,
  600. 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x73, 0x74,
  601. 0x61, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x52, 0x07,
  602. 0x6d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d,
  603. 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
  604. 0x73, 0x12, 0x5a, 0x0a, 0x11, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x61, 0x67, 0x67, 0x72, 0x65,
  605. 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x6f,
  606. 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
  607. 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x67,
  608. 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x10, 0x63, 0x6f, 0x75,
  609. 0x6e, 0x74, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x54, 0x0a,
  610. 0x0f, 0x73, 0x75, 0x6d, 0x5f, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e,
  611. 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e,
  612. 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e,
  613. 0x76, 0x31, 0x2e, 0x53, 0x75, 0x6d, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f,
  614. 0x6e, 0x48, 0x00, 0x52, 0x0e, 0x73, 0x75, 0x6d, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74,
  615. 0x69, 0x6f, 0x6e, 0x12, 0x67, 0x0a, 0x16, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75,
  616. 0x65, 0x5f, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20,
  617. 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73,
  618. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e,
  619. 0x4c, 0x61, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61,
  620. 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x14, 0x6c, 0x61, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75,
  621. 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x6f, 0x0a, 0x18,
  622. 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x67, 0x67,
  623. 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32,
  624. 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  625. 0x6f, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x72,
  626. 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69,
  627. 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x17, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69,
  628. 0x6f, 0x6e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0d, 0x0a,
  629. 0x0b, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x12, 0x0a, 0x10,
  630. 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e,
  631. 0x22, 0x10, 0x0a, 0x0e, 0x53, 0x75, 0x6d, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69,
  632. 0x6f, 0x6e, 0x22, 0x16, 0x0a, 0x14, 0x4c, 0x61, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41,
  633. 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3e, 0x0a, 0x17, 0x44, 0x69,
  634. 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67,
  635. 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x5f,
  636. 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x01, 0x52, 0x0c, 0x62, 0x75,
  637. 0x63, 0x6b, 0x65, 0x74, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x22, 0xe1, 0x01, 0x0a, 0x0b, 0x4d,
  638. 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x04, 0x74, 0x61,
  639. 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63,
  640. 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x73, 0x74, 0x61, 0x74,
  641. 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x67, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x21,
  642. 0x0a, 0x0c, 0x6d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
  643. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x4e, 0x61, 0x6d,
  644. 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75,
  645. 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x6f, 0x75, 0x62, 0x6c,
  646. 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61,
  647. 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, 0x74,
  648. 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20,
  649. 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
  650. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52,
  651. 0x04, 0x74, 0x69, 0x6d, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x8c,
  652. 0x01, 0x0a, 0x1c, 0x69, 0x6f, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73,
  653. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x42,
  654. 0x0a, 0x53, 0x74, 0x61, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x42, 0x67,
  655. 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73,
  656. 0x2d, 0x69, 0x6e, 0x73, 0x74, 0x72, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
  657. 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2d, 0x70, 0x72, 0x6f, 0x74,
  658. 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2f, 0x76,
  659. 0x31, 0xea, 0x02, 0x19, 0x4f, 0x70, 0x65, 0x6e, 0x43, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x50,
  660. 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x56, 0x31, 0x62, 0x06, 0x70,
  661. 0x72, 0x6f, 0x74, 0x6f, 0x33,
  662. }
  663. var (
  664. file_opencensus_proto_stats_v1_stats_proto_rawDescOnce sync.Once
  665. file_opencensus_proto_stats_v1_stats_proto_rawDescData = file_opencensus_proto_stats_v1_stats_proto_rawDesc
  666. )
  667. func file_opencensus_proto_stats_v1_stats_proto_rawDescGZIP() []byte {
  668. file_opencensus_proto_stats_v1_stats_proto_rawDescOnce.Do(func() {
  669. file_opencensus_proto_stats_v1_stats_proto_rawDescData = protoimpl.X.CompressGZIP(file_opencensus_proto_stats_v1_stats_proto_rawDescData)
  670. })
  671. return file_opencensus_proto_stats_v1_stats_proto_rawDescData
  672. }
  673. var file_opencensus_proto_stats_v1_stats_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  674. var file_opencensus_proto_stats_v1_stats_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
  675. var file_opencensus_proto_stats_v1_stats_proto_goTypes = []interface{}{
  676. (Measure_Type)(0), // 0: opencensus.proto.stats.v1.Measure.Type
  677. (*Tag)(nil), // 1: opencensus.proto.stats.v1.Tag
  678. (*Measure)(nil), // 2: opencensus.proto.stats.v1.Measure
  679. (*View)(nil), // 3: opencensus.proto.stats.v1.View
  680. (*CountAggregation)(nil), // 4: opencensus.proto.stats.v1.CountAggregation
  681. (*SumAggregation)(nil), // 5: opencensus.proto.stats.v1.SumAggregation
  682. (*LastValueAggregation)(nil), // 6: opencensus.proto.stats.v1.LastValueAggregation
  683. (*DistributionAggregation)(nil), // 7: opencensus.proto.stats.v1.DistributionAggregation
  684. (*Measurement)(nil), // 8: opencensus.proto.stats.v1.Measurement
  685. (*timestamp.Timestamp)(nil), // 9: google.protobuf.Timestamp
  686. }
  687. var file_opencensus_proto_stats_v1_stats_proto_depIdxs = []int32{
  688. 0, // 0: opencensus.proto.stats.v1.Measure.type:type_name -> opencensus.proto.stats.v1.Measure.Type
  689. 2, // 1: opencensus.proto.stats.v1.View.measure:type_name -> opencensus.proto.stats.v1.Measure
  690. 4, // 2: opencensus.proto.stats.v1.View.count_aggregation:type_name -> opencensus.proto.stats.v1.CountAggregation
  691. 5, // 3: opencensus.proto.stats.v1.View.sum_aggregation:type_name -> opencensus.proto.stats.v1.SumAggregation
  692. 6, // 4: opencensus.proto.stats.v1.View.last_value_aggregation:type_name -> opencensus.proto.stats.v1.LastValueAggregation
  693. 7, // 5: opencensus.proto.stats.v1.View.distribution_aggregation:type_name -> opencensus.proto.stats.v1.DistributionAggregation
  694. 1, // 6: opencensus.proto.stats.v1.Measurement.tags:type_name -> opencensus.proto.stats.v1.Tag
  695. 9, // 7: opencensus.proto.stats.v1.Measurement.time:type_name -> google.protobuf.Timestamp
  696. 8, // [8:8] is the sub-list for method output_type
  697. 8, // [8:8] is the sub-list for method input_type
  698. 8, // [8:8] is the sub-list for extension type_name
  699. 8, // [8:8] is the sub-list for extension extendee
  700. 0, // [0:8] is the sub-list for field type_name
  701. }
  702. func init() { file_opencensus_proto_stats_v1_stats_proto_init() }
  703. func file_opencensus_proto_stats_v1_stats_proto_init() {
  704. if File_opencensus_proto_stats_v1_stats_proto != nil {
  705. return
  706. }
  707. if !protoimpl.UnsafeEnabled {
  708. file_opencensus_proto_stats_v1_stats_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  709. switch v := v.(*Tag); i {
  710. case 0:
  711. return &v.state
  712. case 1:
  713. return &v.sizeCache
  714. case 2:
  715. return &v.unknownFields
  716. default:
  717. return nil
  718. }
  719. }
  720. file_opencensus_proto_stats_v1_stats_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  721. switch v := v.(*Measure); i {
  722. case 0:
  723. return &v.state
  724. case 1:
  725. return &v.sizeCache
  726. case 2:
  727. return &v.unknownFields
  728. default:
  729. return nil
  730. }
  731. }
  732. file_opencensus_proto_stats_v1_stats_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  733. switch v := v.(*View); i {
  734. case 0:
  735. return &v.state
  736. case 1:
  737. return &v.sizeCache
  738. case 2:
  739. return &v.unknownFields
  740. default:
  741. return nil
  742. }
  743. }
  744. file_opencensus_proto_stats_v1_stats_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  745. switch v := v.(*CountAggregation); i {
  746. case 0:
  747. return &v.state
  748. case 1:
  749. return &v.sizeCache
  750. case 2:
  751. return &v.unknownFields
  752. default:
  753. return nil
  754. }
  755. }
  756. file_opencensus_proto_stats_v1_stats_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  757. switch v := v.(*SumAggregation); i {
  758. case 0:
  759. return &v.state
  760. case 1:
  761. return &v.sizeCache
  762. case 2:
  763. return &v.unknownFields
  764. default:
  765. return nil
  766. }
  767. }
  768. file_opencensus_proto_stats_v1_stats_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  769. switch v := v.(*LastValueAggregation); i {
  770. case 0:
  771. return &v.state
  772. case 1:
  773. return &v.sizeCache
  774. case 2:
  775. return &v.unknownFields
  776. default:
  777. return nil
  778. }
  779. }
  780. file_opencensus_proto_stats_v1_stats_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  781. switch v := v.(*DistributionAggregation); i {
  782. case 0:
  783. return &v.state
  784. case 1:
  785. return &v.sizeCache
  786. case 2:
  787. return &v.unknownFields
  788. default:
  789. return nil
  790. }
  791. }
  792. file_opencensus_proto_stats_v1_stats_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  793. switch v := v.(*Measurement); i {
  794. case 0:
  795. return &v.state
  796. case 1:
  797. return &v.sizeCache
  798. case 2:
  799. return &v.unknownFields
  800. default:
  801. return nil
  802. }
  803. }
  804. }
  805. file_opencensus_proto_stats_v1_stats_proto_msgTypes[2].OneofWrappers = []interface{}{
  806. (*View_CountAggregation)(nil),
  807. (*View_SumAggregation)(nil),
  808. (*View_LastValueAggregation)(nil),
  809. (*View_DistributionAggregation)(nil),
  810. }
  811. file_opencensus_proto_stats_v1_stats_proto_msgTypes[7].OneofWrappers = []interface{}{
  812. (*Measurement_DoubleValue)(nil),
  813. (*Measurement_IntValue)(nil),
  814. }
  815. type x struct{}
  816. out := protoimpl.TypeBuilder{
  817. File: protoimpl.DescBuilder{
  818. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  819. RawDescriptor: file_opencensus_proto_stats_v1_stats_proto_rawDesc,
  820. NumEnums: 1,
  821. NumMessages: 8,
  822. NumExtensions: 0,
  823. NumServices: 0,
  824. },
  825. GoTypes: file_opencensus_proto_stats_v1_stats_proto_goTypes,
  826. DependencyIndexes: file_opencensus_proto_stats_v1_stats_proto_depIdxs,
  827. EnumInfos: file_opencensus_proto_stats_v1_stats_proto_enumTypes,
  828. MessageInfos: file_opencensus_proto_stats_v1_stats_proto_msgTypes,
  829. }.Build()
  830. File_opencensus_proto_stats_v1_stats_proto = out.File
  831. file_opencensus_proto_stats_v1_stats_proto_rawDesc = nil
  832. file_opencensus_proto_stats_v1_stats_proto_goTypes = nil
  833. file_opencensus_proto_stats_v1_stats_proto_depIdxs = nil
  834. }