metrics.pb.go 65 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637
  1. // Copyright 2018, 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. // This package describes the Metrics data model. It is currently experimental
  15. // but may eventually become the wire format for metrics. Please see
  16. // https://github.com/census-instrumentation/opencensus-specs/blob/master/stats/Metrics.md
  17. // for more details.
  18. // Code generated by protoc-gen-go. DO NOT EDIT.
  19. // versions:
  20. // protoc-gen-go v1.25.0
  21. // protoc v3.12.3
  22. // source: opencensus/proto/metrics/v1/metrics.proto
  23. package v1
  24. import (
  25. v1 "github.com/census-instrumentation/opencensus-proto/gen-go/resource/v1"
  26. proto "github.com/golang/protobuf/proto"
  27. timestamp "github.com/golang/protobuf/ptypes/timestamp"
  28. wrappers "github.com/golang/protobuf/ptypes/wrappers"
  29. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  30. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  31. reflect "reflect"
  32. sync "sync"
  33. )
  34. const (
  35. // Verify that this generated code is sufficiently up-to-date.
  36. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  37. // Verify that runtime/protoimpl is sufficiently up-to-date.
  38. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  39. )
  40. // This is a compile-time assertion that a sufficiently up-to-date version
  41. // of the legacy proto package is being used.
  42. const _ = proto.ProtoPackageIsVersion4
  43. // The kind of metric. It describes how the data is reported.
  44. //
  45. // A gauge is an instantaneous measurement of a value.
  46. //
  47. // A cumulative measurement is a value accumulated over a time interval. In
  48. // a time series, cumulative measurements should have the same start time,
  49. // increasing values and increasing end times, until an event resets the
  50. // cumulative value to zero and sets a new start time for the following
  51. // points.
  52. type MetricDescriptor_Type int32
  53. const (
  54. // Do not use this default value.
  55. MetricDescriptor_UNSPECIFIED MetricDescriptor_Type = 0
  56. // Integer gauge. The value can go both up and down.
  57. MetricDescriptor_GAUGE_INT64 MetricDescriptor_Type = 1
  58. // Floating point gauge. The value can go both up and down.
  59. MetricDescriptor_GAUGE_DOUBLE MetricDescriptor_Type = 2
  60. // Distribution gauge measurement. The count and sum can go both up and
  61. // down. Recorded values are always >= 0.
  62. // Used in scenarios like a snapshot of time the current items in a queue
  63. // have spent there.
  64. MetricDescriptor_GAUGE_DISTRIBUTION MetricDescriptor_Type = 3
  65. // Integer cumulative measurement. The value cannot decrease, if resets
  66. // then the start_time should also be reset.
  67. MetricDescriptor_CUMULATIVE_INT64 MetricDescriptor_Type = 4
  68. // Floating point cumulative measurement. The value cannot decrease, if
  69. // resets then the start_time should also be reset. Recorded values are
  70. // always >= 0.
  71. MetricDescriptor_CUMULATIVE_DOUBLE MetricDescriptor_Type = 5
  72. // Distribution cumulative measurement. The count and sum cannot decrease,
  73. // if resets then the start_time should also be reset.
  74. MetricDescriptor_CUMULATIVE_DISTRIBUTION MetricDescriptor_Type = 6
  75. // Some frameworks implemented Histograms as a summary of observations
  76. // (usually things like request durations and response sizes). While it
  77. // also provides a total count of observations and a sum of all observed
  78. // values, it calculates configurable percentiles over a sliding time
  79. // window. This is not recommended, since it cannot be aggregated.
  80. MetricDescriptor_SUMMARY MetricDescriptor_Type = 7
  81. )
  82. // Enum value maps for MetricDescriptor_Type.
  83. var (
  84. MetricDescriptor_Type_name = map[int32]string{
  85. 0: "UNSPECIFIED",
  86. 1: "GAUGE_INT64",
  87. 2: "GAUGE_DOUBLE",
  88. 3: "GAUGE_DISTRIBUTION",
  89. 4: "CUMULATIVE_INT64",
  90. 5: "CUMULATIVE_DOUBLE",
  91. 6: "CUMULATIVE_DISTRIBUTION",
  92. 7: "SUMMARY",
  93. }
  94. MetricDescriptor_Type_value = map[string]int32{
  95. "UNSPECIFIED": 0,
  96. "GAUGE_INT64": 1,
  97. "GAUGE_DOUBLE": 2,
  98. "GAUGE_DISTRIBUTION": 3,
  99. "CUMULATIVE_INT64": 4,
  100. "CUMULATIVE_DOUBLE": 5,
  101. "CUMULATIVE_DISTRIBUTION": 6,
  102. "SUMMARY": 7,
  103. }
  104. )
  105. func (x MetricDescriptor_Type) Enum() *MetricDescriptor_Type {
  106. p := new(MetricDescriptor_Type)
  107. *p = x
  108. return p
  109. }
  110. func (x MetricDescriptor_Type) String() string {
  111. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  112. }
  113. func (MetricDescriptor_Type) Descriptor() protoreflect.EnumDescriptor {
  114. return file_opencensus_proto_metrics_v1_metrics_proto_enumTypes[0].Descriptor()
  115. }
  116. func (MetricDescriptor_Type) Type() protoreflect.EnumType {
  117. return &file_opencensus_proto_metrics_v1_metrics_proto_enumTypes[0]
  118. }
  119. func (x MetricDescriptor_Type) Number() protoreflect.EnumNumber {
  120. return protoreflect.EnumNumber(x)
  121. }
  122. // Deprecated: Use MetricDescriptor_Type.Descriptor instead.
  123. func (MetricDescriptor_Type) EnumDescriptor() ([]byte, []int) {
  124. return file_opencensus_proto_metrics_v1_metrics_proto_rawDescGZIP(), []int{1, 0}
  125. }
  126. // Defines a Metric which has one or more timeseries.
  127. type Metric struct {
  128. state protoimpl.MessageState
  129. sizeCache protoimpl.SizeCache
  130. unknownFields protoimpl.UnknownFields
  131. // The descriptor of the Metric.
  132. // TODO(issue #152): consider only sending the name of descriptor for
  133. // optimization.
  134. MetricDescriptor *MetricDescriptor `protobuf:"bytes,1,opt,name=metric_descriptor,json=metricDescriptor,proto3" json:"metric_descriptor,omitempty"`
  135. // One or more timeseries for a single metric, where each timeseries has
  136. // one or more points.
  137. Timeseries []*TimeSeries `protobuf:"bytes,2,rep,name=timeseries,proto3" json:"timeseries,omitempty"`
  138. // The resource for the metric. If unset, it may be set to a default value
  139. // provided for a sequence of messages in an RPC stream.
  140. Resource *v1.Resource `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
  141. }
  142. func (x *Metric) Reset() {
  143. *x = Metric{}
  144. if protoimpl.UnsafeEnabled {
  145. mi := &file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[0]
  146. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  147. ms.StoreMessageInfo(mi)
  148. }
  149. }
  150. func (x *Metric) String() string {
  151. return protoimpl.X.MessageStringOf(x)
  152. }
  153. func (*Metric) ProtoMessage() {}
  154. func (x *Metric) ProtoReflect() protoreflect.Message {
  155. mi := &file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[0]
  156. if protoimpl.UnsafeEnabled && x != nil {
  157. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  158. if ms.LoadMessageInfo() == nil {
  159. ms.StoreMessageInfo(mi)
  160. }
  161. return ms
  162. }
  163. return mi.MessageOf(x)
  164. }
  165. // Deprecated: Use Metric.ProtoReflect.Descriptor instead.
  166. func (*Metric) Descriptor() ([]byte, []int) {
  167. return file_opencensus_proto_metrics_v1_metrics_proto_rawDescGZIP(), []int{0}
  168. }
  169. func (x *Metric) GetMetricDescriptor() *MetricDescriptor {
  170. if x != nil {
  171. return x.MetricDescriptor
  172. }
  173. return nil
  174. }
  175. func (x *Metric) GetTimeseries() []*TimeSeries {
  176. if x != nil {
  177. return x.Timeseries
  178. }
  179. return nil
  180. }
  181. func (x *Metric) GetResource() *v1.Resource {
  182. if x != nil {
  183. return x.Resource
  184. }
  185. return nil
  186. }
  187. // Defines a metric type and its schema.
  188. type MetricDescriptor struct {
  189. state protoimpl.MessageState
  190. sizeCache protoimpl.SizeCache
  191. unknownFields protoimpl.UnknownFields
  192. // The metric type, including its DNS name prefix. It must be unique.
  193. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  194. // A detailed description of the metric, which can be used in documentation.
  195. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
  196. // The unit in which the metric value is reported. Follows the format
  197. // described by http://unitsofmeasure.org/ucum.html.
  198. Unit string `protobuf:"bytes,3,opt,name=unit,proto3" json:"unit,omitempty"`
  199. Type MetricDescriptor_Type `protobuf:"varint,4,opt,name=type,proto3,enum=opencensus.proto.metrics.v1.MetricDescriptor_Type" json:"type,omitempty"`
  200. // The label keys associated with the metric descriptor.
  201. LabelKeys []*LabelKey `protobuf:"bytes,5,rep,name=label_keys,json=labelKeys,proto3" json:"label_keys,omitempty"`
  202. }
  203. func (x *MetricDescriptor) Reset() {
  204. *x = MetricDescriptor{}
  205. if protoimpl.UnsafeEnabled {
  206. mi := &file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[1]
  207. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  208. ms.StoreMessageInfo(mi)
  209. }
  210. }
  211. func (x *MetricDescriptor) String() string {
  212. return protoimpl.X.MessageStringOf(x)
  213. }
  214. func (*MetricDescriptor) ProtoMessage() {}
  215. func (x *MetricDescriptor) ProtoReflect() protoreflect.Message {
  216. mi := &file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[1]
  217. if protoimpl.UnsafeEnabled && x != nil {
  218. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  219. if ms.LoadMessageInfo() == nil {
  220. ms.StoreMessageInfo(mi)
  221. }
  222. return ms
  223. }
  224. return mi.MessageOf(x)
  225. }
  226. // Deprecated: Use MetricDescriptor.ProtoReflect.Descriptor instead.
  227. func (*MetricDescriptor) Descriptor() ([]byte, []int) {
  228. return file_opencensus_proto_metrics_v1_metrics_proto_rawDescGZIP(), []int{1}
  229. }
  230. func (x *MetricDescriptor) GetName() string {
  231. if x != nil {
  232. return x.Name
  233. }
  234. return ""
  235. }
  236. func (x *MetricDescriptor) GetDescription() string {
  237. if x != nil {
  238. return x.Description
  239. }
  240. return ""
  241. }
  242. func (x *MetricDescriptor) GetUnit() string {
  243. if x != nil {
  244. return x.Unit
  245. }
  246. return ""
  247. }
  248. func (x *MetricDescriptor) GetType() MetricDescriptor_Type {
  249. if x != nil {
  250. return x.Type
  251. }
  252. return MetricDescriptor_UNSPECIFIED
  253. }
  254. func (x *MetricDescriptor) GetLabelKeys() []*LabelKey {
  255. if x != nil {
  256. return x.LabelKeys
  257. }
  258. return nil
  259. }
  260. // Defines a label key associated with a metric descriptor.
  261. type LabelKey struct {
  262. state protoimpl.MessageState
  263. sizeCache protoimpl.SizeCache
  264. unknownFields protoimpl.UnknownFields
  265. // The key for the label.
  266. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  267. // A human-readable description of what this label key represents.
  268. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
  269. }
  270. func (x *LabelKey) Reset() {
  271. *x = LabelKey{}
  272. if protoimpl.UnsafeEnabled {
  273. mi := &file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[2]
  274. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  275. ms.StoreMessageInfo(mi)
  276. }
  277. }
  278. func (x *LabelKey) String() string {
  279. return protoimpl.X.MessageStringOf(x)
  280. }
  281. func (*LabelKey) ProtoMessage() {}
  282. func (x *LabelKey) ProtoReflect() protoreflect.Message {
  283. mi := &file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[2]
  284. if protoimpl.UnsafeEnabled && x != nil {
  285. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  286. if ms.LoadMessageInfo() == nil {
  287. ms.StoreMessageInfo(mi)
  288. }
  289. return ms
  290. }
  291. return mi.MessageOf(x)
  292. }
  293. // Deprecated: Use LabelKey.ProtoReflect.Descriptor instead.
  294. func (*LabelKey) Descriptor() ([]byte, []int) {
  295. return file_opencensus_proto_metrics_v1_metrics_proto_rawDescGZIP(), []int{2}
  296. }
  297. func (x *LabelKey) GetKey() string {
  298. if x != nil {
  299. return x.Key
  300. }
  301. return ""
  302. }
  303. func (x *LabelKey) GetDescription() string {
  304. if x != nil {
  305. return x.Description
  306. }
  307. return ""
  308. }
  309. // A collection of data points that describes the time-varying values
  310. // of a metric.
  311. type TimeSeries struct {
  312. state protoimpl.MessageState
  313. sizeCache protoimpl.SizeCache
  314. unknownFields protoimpl.UnknownFields
  315. // Must be present for cumulative metrics. The time when the cumulative value
  316. // was reset to zero. Exclusive. The cumulative value is over the time interval
  317. // (start_timestamp, timestamp]. If not specified, the backend can use the
  318. // previous recorded value.
  319. StartTimestamp *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_timestamp,json=startTimestamp,proto3" json:"start_timestamp,omitempty"`
  320. // The set of label values that uniquely identify this timeseries. Applies to
  321. // all points. The order of label values must match that of label keys in the
  322. // metric descriptor.
  323. LabelValues []*LabelValue `protobuf:"bytes,2,rep,name=label_values,json=labelValues,proto3" json:"label_values,omitempty"`
  324. // The data points of this timeseries. Point.value type MUST match the
  325. // MetricDescriptor.type.
  326. Points []*Point `protobuf:"bytes,3,rep,name=points,proto3" json:"points,omitempty"`
  327. }
  328. func (x *TimeSeries) Reset() {
  329. *x = TimeSeries{}
  330. if protoimpl.UnsafeEnabled {
  331. mi := &file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[3]
  332. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  333. ms.StoreMessageInfo(mi)
  334. }
  335. }
  336. func (x *TimeSeries) String() string {
  337. return protoimpl.X.MessageStringOf(x)
  338. }
  339. func (*TimeSeries) ProtoMessage() {}
  340. func (x *TimeSeries) ProtoReflect() protoreflect.Message {
  341. mi := &file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[3]
  342. if protoimpl.UnsafeEnabled && x != nil {
  343. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  344. if ms.LoadMessageInfo() == nil {
  345. ms.StoreMessageInfo(mi)
  346. }
  347. return ms
  348. }
  349. return mi.MessageOf(x)
  350. }
  351. // Deprecated: Use TimeSeries.ProtoReflect.Descriptor instead.
  352. func (*TimeSeries) Descriptor() ([]byte, []int) {
  353. return file_opencensus_proto_metrics_v1_metrics_proto_rawDescGZIP(), []int{3}
  354. }
  355. func (x *TimeSeries) GetStartTimestamp() *timestamp.Timestamp {
  356. if x != nil {
  357. return x.StartTimestamp
  358. }
  359. return nil
  360. }
  361. func (x *TimeSeries) GetLabelValues() []*LabelValue {
  362. if x != nil {
  363. return x.LabelValues
  364. }
  365. return nil
  366. }
  367. func (x *TimeSeries) GetPoints() []*Point {
  368. if x != nil {
  369. return x.Points
  370. }
  371. return nil
  372. }
  373. type LabelValue struct {
  374. state protoimpl.MessageState
  375. sizeCache protoimpl.SizeCache
  376. unknownFields protoimpl.UnknownFields
  377. // The value for the label.
  378. Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
  379. // If false the value field is ignored and considered not set.
  380. // This is used to differentiate a missing label from an empty string.
  381. HasValue bool `protobuf:"varint,2,opt,name=has_value,json=hasValue,proto3" json:"has_value,omitempty"`
  382. }
  383. func (x *LabelValue) Reset() {
  384. *x = LabelValue{}
  385. if protoimpl.UnsafeEnabled {
  386. mi := &file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[4]
  387. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  388. ms.StoreMessageInfo(mi)
  389. }
  390. }
  391. func (x *LabelValue) String() string {
  392. return protoimpl.X.MessageStringOf(x)
  393. }
  394. func (*LabelValue) ProtoMessage() {}
  395. func (x *LabelValue) ProtoReflect() protoreflect.Message {
  396. mi := &file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[4]
  397. if protoimpl.UnsafeEnabled && x != nil {
  398. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  399. if ms.LoadMessageInfo() == nil {
  400. ms.StoreMessageInfo(mi)
  401. }
  402. return ms
  403. }
  404. return mi.MessageOf(x)
  405. }
  406. // Deprecated: Use LabelValue.ProtoReflect.Descriptor instead.
  407. func (*LabelValue) Descriptor() ([]byte, []int) {
  408. return file_opencensus_proto_metrics_v1_metrics_proto_rawDescGZIP(), []int{4}
  409. }
  410. func (x *LabelValue) GetValue() string {
  411. if x != nil {
  412. return x.Value
  413. }
  414. return ""
  415. }
  416. func (x *LabelValue) GetHasValue() bool {
  417. if x != nil {
  418. return x.HasValue
  419. }
  420. return false
  421. }
  422. // A timestamped measurement.
  423. type Point struct {
  424. state protoimpl.MessageState
  425. sizeCache protoimpl.SizeCache
  426. unknownFields protoimpl.UnknownFields
  427. // The moment when this point was recorded. Inclusive.
  428. // If not specified, the timestamp will be decided by the backend.
  429. Timestamp *timestamp.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
  430. // The actual point value.
  431. //
  432. // Types that are assignable to Value:
  433. // *Point_Int64Value
  434. // *Point_DoubleValue
  435. // *Point_DistributionValue
  436. // *Point_SummaryValue
  437. Value isPoint_Value `protobuf_oneof:"value"`
  438. }
  439. func (x *Point) Reset() {
  440. *x = Point{}
  441. if protoimpl.UnsafeEnabled {
  442. mi := &file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[5]
  443. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  444. ms.StoreMessageInfo(mi)
  445. }
  446. }
  447. func (x *Point) String() string {
  448. return protoimpl.X.MessageStringOf(x)
  449. }
  450. func (*Point) ProtoMessage() {}
  451. func (x *Point) ProtoReflect() protoreflect.Message {
  452. mi := &file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[5]
  453. if protoimpl.UnsafeEnabled && x != nil {
  454. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  455. if ms.LoadMessageInfo() == nil {
  456. ms.StoreMessageInfo(mi)
  457. }
  458. return ms
  459. }
  460. return mi.MessageOf(x)
  461. }
  462. // Deprecated: Use Point.ProtoReflect.Descriptor instead.
  463. func (*Point) Descriptor() ([]byte, []int) {
  464. return file_opencensus_proto_metrics_v1_metrics_proto_rawDescGZIP(), []int{5}
  465. }
  466. func (x *Point) GetTimestamp() *timestamp.Timestamp {
  467. if x != nil {
  468. return x.Timestamp
  469. }
  470. return nil
  471. }
  472. func (m *Point) GetValue() isPoint_Value {
  473. if m != nil {
  474. return m.Value
  475. }
  476. return nil
  477. }
  478. func (x *Point) GetInt64Value() int64 {
  479. if x, ok := x.GetValue().(*Point_Int64Value); ok {
  480. return x.Int64Value
  481. }
  482. return 0
  483. }
  484. func (x *Point) GetDoubleValue() float64 {
  485. if x, ok := x.GetValue().(*Point_DoubleValue); ok {
  486. return x.DoubleValue
  487. }
  488. return 0
  489. }
  490. func (x *Point) GetDistributionValue() *DistributionValue {
  491. if x, ok := x.GetValue().(*Point_DistributionValue); ok {
  492. return x.DistributionValue
  493. }
  494. return nil
  495. }
  496. func (x *Point) GetSummaryValue() *SummaryValue {
  497. if x, ok := x.GetValue().(*Point_SummaryValue); ok {
  498. return x.SummaryValue
  499. }
  500. return nil
  501. }
  502. type isPoint_Value interface {
  503. isPoint_Value()
  504. }
  505. type Point_Int64Value struct {
  506. // A 64-bit integer.
  507. Int64Value int64 `protobuf:"varint,2,opt,name=int64_value,json=int64Value,proto3,oneof"`
  508. }
  509. type Point_DoubleValue struct {
  510. // A 64-bit double-precision floating-point number.
  511. DoubleValue float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue,proto3,oneof"`
  512. }
  513. type Point_DistributionValue struct {
  514. // A distribution value.
  515. DistributionValue *DistributionValue `protobuf:"bytes,4,opt,name=distribution_value,json=distributionValue,proto3,oneof"`
  516. }
  517. type Point_SummaryValue struct {
  518. // A summary value. This is not recommended, since it cannot be aggregated.
  519. SummaryValue *SummaryValue `protobuf:"bytes,5,opt,name=summary_value,json=summaryValue,proto3,oneof"`
  520. }
  521. func (*Point_Int64Value) isPoint_Value() {}
  522. func (*Point_DoubleValue) isPoint_Value() {}
  523. func (*Point_DistributionValue) isPoint_Value() {}
  524. func (*Point_SummaryValue) isPoint_Value() {}
  525. // Distribution contains summary statistics for a population of values. It
  526. // optionally contains a histogram representing the distribution of those
  527. // values across a set of buckets.
  528. type DistributionValue struct {
  529. state protoimpl.MessageState
  530. sizeCache protoimpl.SizeCache
  531. unknownFields protoimpl.UnknownFields
  532. // The number of values in the population. Must be non-negative. This value
  533. // must equal the sum of the values in bucket_counts if a histogram is
  534. // provided.
  535. Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
  536. // The sum of the values in the population. If count is zero then this field
  537. // must be zero.
  538. Sum float64 `protobuf:"fixed64,2,opt,name=sum,proto3" json:"sum,omitempty"`
  539. // The sum of squared deviations from the mean of the values in the
  540. // population. For values x_i this is:
  541. //
  542. // Sum[i=1..n]((x_i - mean)^2)
  543. //
  544. // Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition
  545. // describes Welford's method for accumulating this sum in one pass.
  546. //
  547. // If count is zero then this field must be zero.
  548. SumOfSquaredDeviation float64 `protobuf:"fixed64,3,opt,name=sum_of_squared_deviation,json=sumOfSquaredDeviation,proto3" json:"sum_of_squared_deviation,omitempty"`
  549. // Don't change bucket boundaries within a TimeSeries if your backend doesn't
  550. // support this.
  551. // TODO(issue #152): consider not required to send bucket options for
  552. // optimization.
  553. BucketOptions *DistributionValue_BucketOptions `protobuf:"bytes,4,opt,name=bucket_options,json=bucketOptions,proto3" json:"bucket_options,omitempty"`
  554. // If the distribution does not have a histogram, then omit this field.
  555. // If there is a histogram, then the sum of the values in the Bucket counts
  556. // must equal the value in the count field of the distribution.
  557. Buckets []*DistributionValue_Bucket `protobuf:"bytes,5,rep,name=buckets,proto3" json:"buckets,omitempty"`
  558. }
  559. func (x *DistributionValue) Reset() {
  560. *x = DistributionValue{}
  561. if protoimpl.UnsafeEnabled {
  562. mi := &file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[6]
  563. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  564. ms.StoreMessageInfo(mi)
  565. }
  566. }
  567. func (x *DistributionValue) String() string {
  568. return protoimpl.X.MessageStringOf(x)
  569. }
  570. func (*DistributionValue) ProtoMessage() {}
  571. func (x *DistributionValue) ProtoReflect() protoreflect.Message {
  572. mi := &file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[6]
  573. if protoimpl.UnsafeEnabled && x != nil {
  574. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  575. if ms.LoadMessageInfo() == nil {
  576. ms.StoreMessageInfo(mi)
  577. }
  578. return ms
  579. }
  580. return mi.MessageOf(x)
  581. }
  582. // Deprecated: Use DistributionValue.ProtoReflect.Descriptor instead.
  583. func (*DistributionValue) Descriptor() ([]byte, []int) {
  584. return file_opencensus_proto_metrics_v1_metrics_proto_rawDescGZIP(), []int{6}
  585. }
  586. func (x *DistributionValue) GetCount() int64 {
  587. if x != nil {
  588. return x.Count
  589. }
  590. return 0
  591. }
  592. func (x *DistributionValue) GetSum() float64 {
  593. if x != nil {
  594. return x.Sum
  595. }
  596. return 0
  597. }
  598. func (x *DistributionValue) GetSumOfSquaredDeviation() float64 {
  599. if x != nil {
  600. return x.SumOfSquaredDeviation
  601. }
  602. return 0
  603. }
  604. func (x *DistributionValue) GetBucketOptions() *DistributionValue_BucketOptions {
  605. if x != nil {
  606. return x.BucketOptions
  607. }
  608. return nil
  609. }
  610. func (x *DistributionValue) GetBuckets() []*DistributionValue_Bucket {
  611. if x != nil {
  612. return x.Buckets
  613. }
  614. return nil
  615. }
  616. // The start_timestamp only applies to the count and sum in the SummaryValue.
  617. type SummaryValue struct {
  618. state protoimpl.MessageState
  619. sizeCache protoimpl.SizeCache
  620. unknownFields protoimpl.UnknownFields
  621. // The total number of recorded values since start_time. Optional since
  622. // some systems don't expose this.
  623. Count *wrappers.Int64Value `protobuf:"bytes,1,opt,name=count,proto3" json:"count,omitempty"`
  624. // The total sum of recorded values since start_time. Optional since some
  625. // systems don't expose this. If count is zero then this field must be zero.
  626. // This field must be unset if the sum is not available.
  627. Sum *wrappers.DoubleValue `protobuf:"bytes,2,opt,name=sum,proto3" json:"sum,omitempty"`
  628. // Values calculated over an arbitrary time window.
  629. Snapshot *SummaryValue_Snapshot `protobuf:"bytes,3,opt,name=snapshot,proto3" json:"snapshot,omitempty"`
  630. }
  631. func (x *SummaryValue) Reset() {
  632. *x = SummaryValue{}
  633. if protoimpl.UnsafeEnabled {
  634. mi := &file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[7]
  635. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  636. ms.StoreMessageInfo(mi)
  637. }
  638. }
  639. func (x *SummaryValue) String() string {
  640. return protoimpl.X.MessageStringOf(x)
  641. }
  642. func (*SummaryValue) ProtoMessage() {}
  643. func (x *SummaryValue) ProtoReflect() protoreflect.Message {
  644. mi := &file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[7]
  645. if protoimpl.UnsafeEnabled && x != nil {
  646. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  647. if ms.LoadMessageInfo() == nil {
  648. ms.StoreMessageInfo(mi)
  649. }
  650. return ms
  651. }
  652. return mi.MessageOf(x)
  653. }
  654. // Deprecated: Use SummaryValue.ProtoReflect.Descriptor instead.
  655. func (*SummaryValue) Descriptor() ([]byte, []int) {
  656. return file_opencensus_proto_metrics_v1_metrics_proto_rawDescGZIP(), []int{7}
  657. }
  658. func (x *SummaryValue) GetCount() *wrappers.Int64Value {
  659. if x != nil {
  660. return x.Count
  661. }
  662. return nil
  663. }
  664. func (x *SummaryValue) GetSum() *wrappers.DoubleValue {
  665. if x != nil {
  666. return x.Sum
  667. }
  668. return nil
  669. }
  670. func (x *SummaryValue) GetSnapshot() *SummaryValue_Snapshot {
  671. if x != nil {
  672. return x.Snapshot
  673. }
  674. return nil
  675. }
  676. // A Distribution may optionally contain a histogram of the values in the
  677. // population. The bucket boundaries for that histogram are described by
  678. // BucketOptions.
  679. //
  680. // If bucket_options has no type, then there is no histogram associated with
  681. // the Distribution.
  682. type DistributionValue_BucketOptions struct {
  683. state protoimpl.MessageState
  684. sizeCache protoimpl.SizeCache
  685. unknownFields protoimpl.UnknownFields
  686. // Types that are assignable to Type:
  687. // *DistributionValue_BucketOptions_Explicit_
  688. Type isDistributionValue_BucketOptions_Type `protobuf_oneof:"type"`
  689. }
  690. func (x *DistributionValue_BucketOptions) Reset() {
  691. *x = DistributionValue_BucketOptions{}
  692. if protoimpl.UnsafeEnabled {
  693. mi := &file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[8]
  694. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  695. ms.StoreMessageInfo(mi)
  696. }
  697. }
  698. func (x *DistributionValue_BucketOptions) String() string {
  699. return protoimpl.X.MessageStringOf(x)
  700. }
  701. func (*DistributionValue_BucketOptions) ProtoMessage() {}
  702. func (x *DistributionValue_BucketOptions) ProtoReflect() protoreflect.Message {
  703. mi := &file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[8]
  704. if protoimpl.UnsafeEnabled && x != nil {
  705. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  706. if ms.LoadMessageInfo() == nil {
  707. ms.StoreMessageInfo(mi)
  708. }
  709. return ms
  710. }
  711. return mi.MessageOf(x)
  712. }
  713. // Deprecated: Use DistributionValue_BucketOptions.ProtoReflect.Descriptor instead.
  714. func (*DistributionValue_BucketOptions) Descriptor() ([]byte, []int) {
  715. return file_opencensus_proto_metrics_v1_metrics_proto_rawDescGZIP(), []int{6, 0}
  716. }
  717. func (m *DistributionValue_BucketOptions) GetType() isDistributionValue_BucketOptions_Type {
  718. if m != nil {
  719. return m.Type
  720. }
  721. return nil
  722. }
  723. func (x *DistributionValue_BucketOptions) GetExplicit() *DistributionValue_BucketOptions_Explicit {
  724. if x, ok := x.GetType().(*DistributionValue_BucketOptions_Explicit_); ok {
  725. return x.Explicit
  726. }
  727. return nil
  728. }
  729. type isDistributionValue_BucketOptions_Type interface {
  730. isDistributionValue_BucketOptions_Type()
  731. }
  732. type DistributionValue_BucketOptions_Explicit_ struct {
  733. // Bucket with explicit bounds.
  734. Explicit *DistributionValue_BucketOptions_Explicit `protobuf:"bytes,1,opt,name=explicit,proto3,oneof"`
  735. }
  736. func (*DistributionValue_BucketOptions_Explicit_) isDistributionValue_BucketOptions_Type() {}
  737. type DistributionValue_Bucket struct {
  738. state protoimpl.MessageState
  739. sizeCache protoimpl.SizeCache
  740. unknownFields protoimpl.UnknownFields
  741. // The number of values in each bucket of the histogram, as described in
  742. // bucket_bounds.
  743. Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
  744. // If the distribution does not have a histogram, then omit this field.
  745. Exemplar *DistributionValue_Exemplar `protobuf:"bytes,2,opt,name=exemplar,proto3" json:"exemplar,omitempty"`
  746. }
  747. func (x *DistributionValue_Bucket) Reset() {
  748. *x = DistributionValue_Bucket{}
  749. if protoimpl.UnsafeEnabled {
  750. mi := &file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[9]
  751. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  752. ms.StoreMessageInfo(mi)
  753. }
  754. }
  755. func (x *DistributionValue_Bucket) String() string {
  756. return protoimpl.X.MessageStringOf(x)
  757. }
  758. func (*DistributionValue_Bucket) ProtoMessage() {}
  759. func (x *DistributionValue_Bucket) ProtoReflect() protoreflect.Message {
  760. mi := &file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[9]
  761. if protoimpl.UnsafeEnabled && x != nil {
  762. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  763. if ms.LoadMessageInfo() == nil {
  764. ms.StoreMessageInfo(mi)
  765. }
  766. return ms
  767. }
  768. return mi.MessageOf(x)
  769. }
  770. // Deprecated: Use DistributionValue_Bucket.ProtoReflect.Descriptor instead.
  771. func (*DistributionValue_Bucket) Descriptor() ([]byte, []int) {
  772. return file_opencensus_proto_metrics_v1_metrics_proto_rawDescGZIP(), []int{6, 1}
  773. }
  774. func (x *DistributionValue_Bucket) GetCount() int64 {
  775. if x != nil {
  776. return x.Count
  777. }
  778. return 0
  779. }
  780. func (x *DistributionValue_Bucket) GetExemplar() *DistributionValue_Exemplar {
  781. if x != nil {
  782. return x.Exemplar
  783. }
  784. return nil
  785. }
  786. // Exemplars are example points that may be used to annotate aggregated
  787. // Distribution values. They are metadata that gives information about a
  788. // particular value added to a Distribution bucket.
  789. type DistributionValue_Exemplar struct {
  790. state protoimpl.MessageState
  791. sizeCache protoimpl.SizeCache
  792. unknownFields protoimpl.UnknownFields
  793. // Value of the exemplar point. It determines which bucket the exemplar
  794. // belongs to.
  795. Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
  796. // The observation (sampling) time of the above value.
  797. Timestamp *timestamp.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
  798. // Contextual information about the example value.
  799. Attachments map[string]string `protobuf:"bytes,3,rep,name=attachments,proto3" json:"attachments,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  800. }
  801. func (x *DistributionValue_Exemplar) Reset() {
  802. *x = DistributionValue_Exemplar{}
  803. if protoimpl.UnsafeEnabled {
  804. mi := &file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[10]
  805. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  806. ms.StoreMessageInfo(mi)
  807. }
  808. }
  809. func (x *DistributionValue_Exemplar) String() string {
  810. return protoimpl.X.MessageStringOf(x)
  811. }
  812. func (*DistributionValue_Exemplar) ProtoMessage() {}
  813. func (x *DistributionValue_Exemplar) ProtoReflect() protoreflect.Message {
  814. mi := &file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[10]
  815. if protoimpl.UnsafeEnabled && x != nil {
  816. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  817. if ms.LoadMessageInfo() == nil {
  818. ms.StoreMessageInfo(mi)
  819. }
  820. return ms
  821. }
  822. return mi.MessageOf(x)
  823. }
  824. // Deprecated: Use DistributionValue_Exemplar.ProtoReflect.Descriptor instead.
  825. func (*DistributionValue_Exemplar) Descriptor() ([]byte, []int) {
  826. return file_opencensus_proto_metrics_v1_metrics_proto_rawDescGZIP(), []int{6, 2}
  827. }
  828. func (x *DistributionValue_Exemplar) GetValue() float64 {
  829. if x != nil {
  830. return x.Value
  831. }
  832. return 0
  833. }
  834. func (x *DistributionValue_Exemplar) GetTimestamp() *timestamp.Timestamp {
  835. if x != nil {
  836. return x.Timestamp
  837. }
  838. return nil
  839. }
  840. func (x *DistributionValue_Exemplar) GetAttachments() map[string]string {
  841. if x != nil {
  842. return x.Attachments
  843. }
  844. return nil
  845. }
  846. // Specifies a set of buckets with arbitrary upper-bounds.
  847. // This defines size(bounds) + 1 (= N) buckets. The boundaries for bucket
  848. // index i are:
  849. //
  850. // [0, bucket_bounds[i]) for i == 0
  851. // [bucket_bounds[i-1], bucket_bounds[i]) for 0 < i < N-1
  852. // [bucket_bounds[i], +infinity) for i == N-1
  853. type DistributionValue_BucketOptions_Explicit struct {
  854. state protoimpl.MessageState
  855. sizeCache protoimpl.SizeCache
  856. unknownFields protoimpl.UnknownFields
  857. // The values must be strictly increasing and > 0.
  858. Bounds []float64 `protobuf:"fixed64,1,rep,packed,name=bounds,proto3" json:"bounds,omitempty"`
  859. }
  860. func (x *DistributionValue_BucketOptions_Explicit) Reset() {
  861. *x = DistributionValue_BucketOptions_Explicit{}
  862. if protoimpl.UnsafeEnabled {
  863. mi := &file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[11]
  864. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  865. ms.StoreMessageInfo(mi)
  866. }
  867. }
  868. func (x *DistributionValue_BucketOptions_Explicit) String() string {
  869. return protoimpl.X.MessageStringOf(x)
  870. }
  871. func (*DistributionValue_BucketOptions_Explicit) ProtoMessage() {}
  872. func (x *DistributionValue_BucketOptions_Explicit) ProtoReflect() protoreflect.Message {
  873. mi := &file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[11]
  874. if protoimpl.UnsafeEnabled && x != nil {
  875. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  876. if ms.LoadMessageInfo() == nil {
  877. ms.StoreMessageInfo(mi)
  878. }
  879. return ms
  880. }
  881. return mi.MessageOf(x)
  882. }
  883. // Deprecated: Use DistributionValue_BucketOptions_Explicit.ProtoReflect.Descriptor instead.
  884. func (*DistributionValue_BucketOptions_Explicit) Descriptor() ([]byte, []int) {
  885. return file_opencensus_proto_metrics_v1_metrics_proto_rawDescGZIP(), []int{6, 0, 0}
  886. }
  887. func (x *DistributionValue_BucketOptions_Explicit) GetBounds() []float64 {
  888. if x != nil {
  889. return x.Bounds
  890. }
  891. return nil
  892. }
  893. // The values in this message can be reset at arbitrary unknown times, with
  894. // the requirement that all of them are reset at the same time.
  895. type SummaryValue_Snapshot struct {
  896. state protoimpl.MessageState
  897. sizeCache protoimpl.SizeCache
  898. unknownFields protoimpl.UnknownFields
  899. // The number of values in the snapshot. Optional since some systems don't
  900. // expose this.
  901. Count *wrappers.Int64Value `protobuf:"bytes,1,opt,name=count,proto3" json:"count,omitempty"`
  902. // The sum of values in the snapshot. Optional since some systems don't
  903. // expose this. If count is zero then this field must be zero or not set
  904. // (if not supported).
  905. Sum *wrappers.DoubleValue `protobuf:"bytes,2,opt,name=sum,proto3" json:"sum,omitempty"`
  906. // A list of values at different percentiles of the distribution calculated
  907. // from the current snapshot. The percentiles must be strictly increasing.
  908. PercentileValues []*SummaryValue_Snapshot_ValueAtPercentile `protobuf:"bytes,3,rep,name=percentile_values,json=percentileValues,proto3" json:"percentile_values,omitempty"`
  909. }
  910. func (x *SummaryValue_Snapshot) Reset() {
  911. *x = SummaryValue_Snapshot{}
  912. if protoimpl.UnsafeEnabled {
  913. mi := &file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[13]
  914. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  915. ms.StoreMessageInfo(mi)
  916. }
  917. }
  918. func (x *SummaryValue_Snapshot) String() string {
  919. return protoimpl.X.MessageStringOf(x)
  920. }
  921. func (*SummaryValue_Snapshot) ProtoMessage() {}
  922. func (x *SummaryValue_Snapshot) ProtoReflect() protoreflect.Message {
  923. mi := &file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[13]
  924. if protoimpl.UnsafeEnabled && x != nil {
  925. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  926. if ms.LoadMessageInfo() == nil {
  927. ms.StoreMessageInfo(mi)
  928. }
  929. return ms
  930. }
  931. return mi.MessageOf(x)
  932. }
  933. // Deprecated: Use SummaryValue_Snapshot.ProtoReflect.Descriptor instead.
  934. func (*SummaryValue_Snapshot) Descriptor() ([]byte, []int) {
  935. return file_opencensus_proto_metrics_v1_metrics_proto_rawDescGZIP(), []int{7, 0}
  936. }
  937. func (x *SummaryValue_Snapshot) GetCount() *wrappers.Int64Value {
  938. if x != nil {
  939. return x.Count
  940. }
  941. return nil
  942. }
  943. func (x *SummaryValue_Snapshot) GetSum() *wrappers.DoubleValue {
  944. if x != nil {
  945. return x.Sum
  946. }
  947. return nil
  948. }
  949. func (x *SummaryValue_Snapshot) GetPercentileValues() []*SummaryValue_Snapshot_ValueAtPercentile {
  950. if x != nil {
  951. return x.PercentileValues
  952. }
  953. return nil
  954. }
  955. // Represents the value at a given percentile of a distribution.
  956. type SummaryValue_Snapshot_ValueAtPercentile struct {
  957. state protoimpl.MessageState
  958. sizeCache protoimpl.SizeCache
  959. unknownFields protoimpl.UnknownFields
  960. // The percentile of a distribution. Must be in the interval
  961. // (0.0, 100.0].
  962. Percentile float64 `protobuf:"fixed64,1,opt,name=percentile,proto3" json:"percentile,omitempty"`
  963. // The value at the given percentile of a distribution.
  964. Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"`
  965. }
  966. func (x *SummaryValue_Snapshot_ValueAtPercentile) Reset() {
  967. *x = SummaryValue_Snapshot_ValueAtPercentile{}
  968. if protoimpl.UnsafeEnabled {
  969. mi := &file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[14]
  970. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  971. ms.StoreMessageInfo(mi)
  972. }
  973. }
  974. func (x *SummaryValue_Snapshot_ValueAtPercentile) String() string {
  975. return protoimpl.X.MessageStringOf(x)
  976. }
  977. func (*SummaryValue_Snapshot_ValueAtPercentile) ProtoMessage() {}
  978. func (x *SummaryValue_Snapshot_ValueAtPercentile) ProtoReflect() protoreflect.Message {
  979. mi := &file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[14]
  980. if protoimpl.UnsafeEnabled && x != nil {
  981. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  982. if ms.LoadMessageInfo() == nil {
  983. ms.StoreMessageInfo(mi)
  984. }
  985. return ms
  986. }
  987. return mi.MessageOf(x)
  988. }
  989. // Deprecated: Use SummaryValue_Snapshot_ValueAtPercentile.ProtoReflect.Descriptor instead.
  990. func (*SummaryValue_Snapshot_ValueAtPercentile) Descriptor() ([]byte, []int) {
  991. return file_opencensus_proto_metrics_v1_metrics_proto_rawDescGZIP(), []int{7, 0, 0}
  992. }
  993. func (x *SummaryValue_Snapshot_ValueAtPercentile) GetPercentile() float64 {
  994. if x != nil {
  995. return x.Percentile
  996. }
  997. return 0
  998. }
  999. func (x *SummaryValue_Snapshot_ValueAtPercentile) GetValue() float64 {
  1000. if x != nil {
  1001. return x.Value
  1002. }
  1003. return 0
  1004. }
  1005. var File_opencensus_proto_metrics_v1_metrics_proto protoreflect.FileDescriptor
  1006. var file_opencensus_proto_metrics_v1_metrics_proto_rawDesc = []byte{
  1007. 0x0a, 0x29, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f,
  1008. 0x74, 0x6f, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65,
  1009. 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x6f, 0x70, 0x65,
  1010. 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65,
  1011. 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
  1012. 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
  1013. 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
  1014. 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70,
  1015. 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2b, 0x6f, 0x70, 0x65, 0x6e, 0x63,
  1016. 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x65, 0x73, 0x6f,
  1017. 0x75, 0x72, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
  1018. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf1, 0x01, 0x0a, 0x06, 0x4d, 0x65, 0x74, 0x72, 0x69,
  1019. 0x63, 0x12, 0x5a, 0x0a, 0x11, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x5f, 0x64, 0x65, 0x73, 0x63,
  1020. 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x6f,
  1021. 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
  1022. 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69,
  1023. 0x63, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x52, 0x10, 0x6d, 0x65, 0x74,
  1024. 0x72, 0x69, 0x63, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x12, 0x47, 0x0a,
  1025. 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
  1026. 0x0b, 0x32, 0x27, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70,
  1027. 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e,
  1028. 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x0a, 0x74, 0x69, 0x6d, 0x65,
  1029. 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x42, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
  1030. 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63,
  1031. 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x72, 0x65, 0x73, 0x6f,
  1032. 0x75, 0x72, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
  1033. 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x96, 0x03, 0x0a, 0x10, 0x4d,
  1034. 0x65, 0x74, 0x72, 0x69, 0x63, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x12,
  1035. 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
  1036. 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
  1037. 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69,
  1038. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x03, 0x20,
  1039. 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x12, 0x46, 0x0a, 0x04, 0x74, 0x79, 0x70,
  1040. 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65,
  1041. 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x74, 0x72, 0x69,
  1042. 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x44, 0x65, 0x73, 0x63,
  1043. 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70,
  1044. 0x65, 0x12, 0x44, 0x0a, 0x0a, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18,
  1045. 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73,
  1046. 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73,
  1047. 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4b, 0x65, 0x79, 0x52, 0x09, 0x6c, 0x61,
  1048. 0x62, 0x65, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x22, 0xa9, 0x01, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65,
  1049. 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,
  1050. 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x47, 0x41, 0x55, 0x47, 0x45, 0x5f, 0x49, 0x4e, 0x54, 0x36, 0x34,
  1051. 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x47, 0x41, 0x55, 0x47, 0x45, 0x5f, 0x44, 0x4f, 0x55, 0x42,
  1052. 0x4c, 0x45, 0x10, 0x02, 0x12, 0x16, 0x0a, 0x12, 0x47, 0x41, 0x55, 0x47, 0x45, 0x5f, 0x44, 0x49,
  1053. 0x53, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x03, 0x12, 0x14, 0x0a, 0x10,
  1054. 0x43, 0x55, 0x4d, 0x55, 0x4c, 0x41, 0x54, 0x49, 0x56, 0x45, 0x5f, 0x49, 0x4e, 0x54, 0x36, 0x34,
  1055. 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x55, 0x4d, 0x55, 0x4c, 0x41, 0x54, 0x49, 0x56, 0x45,
  1056. 0x5f, 0x44, 0x4f, 0x55, 0x42, 0x4c, 0x45, 0x10, 0x05, 0x12, 0x1b, 0x0a, 0x17, 0x43, 0x55, 0x4d,
  1057. 0x55, 0x4c, 0x41, 0x54, 0x49, 0x56, 0x45, 0x5f, 0x44, 0x49, 0x53, 0x54, 0x52, 0x49, 0x42, 0x55,
  1058. 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x06, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x55, 0x4d, 0x4d, 0x41, 0x52,
  1059. 0x59, 0x10, 0x07, 0x22, 0x3e, 0x0a, 0x08, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x4b, 0x65, 0x79, 0x12,
  1060. 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
  1061. 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,
  1062. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
  1063. 0x69, 0x6f, 0x6e, 0x22, 0xd9, 0x01, 0x0a, 0x0a, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69,
  1064. 0x65, 0x73, 0x12, 0x43, 0x0a, 0x0f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65,
  1065. 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
  1066. 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
  1067. 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0e, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69,
  1068. 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x4a, 0x0a, 0x0c, 0x6c, 0x61, 0x62, 0x65, 0x6c,
  1069. 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e,
  1070. 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  1071. 0x2e, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x62, 0x65,
  1072. 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0b, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x56, 0x61, 0x6c,
  1073. 0x75, 0x65, 0x73, 0x12, 0x3a, 0x0a, 0x06, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20,
  1074. 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73,
  1075. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x76,
  1076. 0x31, 0x2e, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x06, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x22,
  1077. 0x3f, 0x0a, 0x0a, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a,
  1078. 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61,
  1079. 0x6c, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x68, 0x61, 0x73, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65,
  1080. 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x68, 0x61, 0x73, 0x56, 0x61, 0x6c, 0x75, 0x65,
  1081. 0x22, 0xc5, 0x02, 0x0a, 0x05, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69,
  1082. 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
  1083. 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
  1084. 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73,
  1085. 0x74, 0x61, 0x6d, 0x70, 0x12, 0x21, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x76, 0x61,
  1086. 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x0a, 0x69, 0x6e, 0x74,
  1087. 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x64, 0x6f, 0x75, 0x62, 0x6c,
  1088. 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52,
  1089. 0x0b, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x5f, 0x0a, 0x12,
  1090. 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x61, 0x6c,
  1091. 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63,
  1092. 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x74, 0x72,
  1093. 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74,
  1094. 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x11, 0x64, 0x69, 0x73, 0x74,
  1095. 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x50, 0x0a,
  1096. 0x0d, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05,
  1097. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75,
  1098. 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e,
  1099. 0x76, 0x31, 0x2e, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48,
  1100. 0x00, 0x52, 0x0c, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42,
  1101. 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xcb, 0x06, 0x0a, 0x11, 0x44, 0x69, 0x73,
  1102. 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14,
  1103. 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63,
  1104. 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28,
  1105. 0x01, 0x52, 0x03, 0x73, 0x75, 0x6d, 0x12, 0x37, 0x0a, 0x18, 0x73, 0x75, 0x6d, 0x5f, 0x6f, 0x66,
  1106. 0x5f, 0x73, 0x71, 0x75, 0x61, 0x72, 0x65, 0x64, 0x5f, 0x64, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69,
  1107. 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x52, 0x15, 0x73, 0x75, 0x6d, 0x4f, 0x66, 0x53,
  1108. 0x71, 0x75, 0x61, 0x72, 0x65, 0x64, 0x44, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12,
  1109. 0x63, 0x0a, 0x0e, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
  1110. 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65,
  1111. 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x74, 0x72, 0x69,
  1112. 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69,
  1113. 0x6f, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x4f, 0x70,
  1114. 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0d, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x4f, 0x70, 0x74,
  1115. 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x4f, 0x0a, 0x07, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18,
  1116. 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73,
  1117. 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73,
  1118. 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e,
  1119. 0x56, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x07, 0x62, 0x75,
  1120. 0x63, 0x6b, 0x65, 0x74, 0x73, 0x1a, 0xa0, 0x01, 0x0a, 0x0d, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74,
  1121. 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x63, 0x0a, 0x08, 0x65, 0x78, 0x70, 0x6c, 0x69,
  1122. 0x63, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x6f, 0x70, 0x65, 0x6e,
  1123. 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x74,
  1124. 0x72, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75,
  1125. 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74,
  1126. 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x45, 0x78, 0x70, 0x6c, 0x69, 0x63, 0x69, 0x74,
  1127. 0x48, 0x00, 0x52, 0x08, 0x65, 0x78, 0x70, 0x6c, 0x69, 0x63, 0x69, 0x74, 0x1a, 0x22, 0x0a, 0x08,
  1128. 0x45, 0x78, 0x70, 0x6c, 0x69, 0x63, 0x69, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x6f, 0x75, 0x6e,
  1129. 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x01, 0x52, 0x06, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x73,
  1130. 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x1a, 0x73, 0x0a, 0x06, 0x42, 0x75, 0x63, 0x6b,
  1131. 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
  1132. 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x53, 0x0a, 0x08, 0x65, 0x78, 0x65, 0x6d,
  1133. 0x70, 0x6c, 0x61, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x6f, 0x70, 0x65,
  1134. 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65,
  1135. 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62,
  1136. 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x45, 0x78, 0x65, 0x6d, 0x70,
  1137. 0x6c, 0x61, 0x72, 0x52, 0x08, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x1a, 0x86, 0x02,
  1138. 0x0a, 0x08, 0x45, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61,
  1139. 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
  1140. 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20,
  1141. 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
  1142. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52,
  1143. 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x6a, 0x0a, 0x0b, 0x61, 0x74,
  1144. 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,
  1145. 0x48, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f,
  1146. 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69,
  1147. 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x2e,
  1148. 0x45, 0x78, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x72, 0x2e, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d,
  1149. 0x65, 0x6e, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63,
  1150. 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68,
  1151. 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65,
  1152. 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05,
  1153. 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c,
  1154. 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xef, 0x03, 0x0a, 0x0c, 0x53, 0x75, 0x6d, 0x6d, 0x61,
  1155. 0x72, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x31, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74,
  1156. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
  1157. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61,
  1158. 0x6c, 0x75, 0x65, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2e, 0x0a, 0x03, 0x73, 0x75,
  1159. 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
  1160. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65,
  1161. 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x03, 0x73, 0x75, 0x6d, 0x12, 0x4e, 0x0a, 0x08, 0x73, 0x6e,
  1162. 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x6f,
  1163. 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
  1164. 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x6d, 0x6d, 0x61,
  1165. 0x72, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74,
  1166. 0x52, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x1a, 0xab, 0x02, 0x0a, 0x08, 0x53,
  1167. 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x31, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74,
  1168. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
  1169. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61,
  1170. 0x6c, 0x75, 0x65, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2e, 0x0a, 0x03, 0x73, 0x75,
  1171. 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
  1172. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65,
  1173. 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x03, 0x73, 0x75, 0x6d, 0x12, 0x71, 0x0a, 0x11, 0x70, 0x65,
  1174. 0x72, 0x63, 0x65, 0x6e, 0x74, 0x69, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18,
  1175. 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x44, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73,
  1176. 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73,
  1177. 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65,
  1178. 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41,
  1179. 0x74, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x69, 0x6c, 0x65, 0x52, 0x10, 0x70, 0x65, 0x72,
  1180. 0x63, 0x65, 0x6e, 0x74, 0x69, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x49, 0x0a,
  1181. 0x11, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x74, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x69,
  1182. 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x69, 0x6c, 0x65,
  1183. 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0a, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x69,
  1184. 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
  1185. 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x94, 0x01, 0x0a, 0x1e, 0x69, 0x6f, 0x2e,
  1186. 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  1187. 0x2e, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x4d, 0x65, 0x74,
  1188. 0x72, 0x69, 0x63, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x44, 0x67, 0x69, 0x74,
  1189. 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2d, 0x69,
  1190. 0x6e, 0x73, 0x74, 0x72, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6f,
  1191. 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
  1192. 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2f, 0x76,
  1193. 0x31, 0xea, 0x02, 0x1b, 0x4f, 0x70, 0x65, 0x6e, 0x43, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x50,
  1194. 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x56, 0x31, 0x62,
  1195. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  1196. }
  1197. var (
  1198. file_opencensus_proto_metrics_v1_metrics_proto_rawDescOnce sync.Once
  1199. file_opencensus_proto_metrics_v1_metrics_proto_rawDescData = file_opencensus_proto_metrics_v1_metrics_proto_rawDesc
  1200. )
  1201. func file_opencensus_proto_metrics_v1_metrics_proto_rawDescGZIP() []byte {
  1202. file_opencensus_proto_metrics_v1_metrics_proto_rawDescOnce.Do(func() {
  1203. file_opencensus_proto_metrics_v1_metrics_proto_rawDescData = protoimpl.X.CompressGZIP(file_opencensus_proto_metrics_v1_metrics_proto_rawDescData)
  1204. })
  1205. return file_opencensus_proto_metrics_v1_metrics_proto_rawDescData
  1206. }
  1207. var file_opencensus_proto_metrics_v1_metrics_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  1208. var file_opencensus_proto_metrics_v1_metrics_proto_msgTypes = make([]protoimpl.MessageInfo, 15)
  1209. var file_opencensus_proto_metrics_v1_metrics_proto_goTypes = []interface{}{
  1210. (MetricDescriptor_Type)(0), // 0: opencensus.proto.metrics.v1.MetricDescriptor.Type
  1211. (*Metric)(nil), // 1: opencensus.proto.metrics.v1.Metric
  1212. (*MetricDescriptor)(nil), // 2: opencensus.proto.metrics.v1.MetricDescriptor
  1213. (*LabelKey)(nil), // 3: opencensus.proto.metrics.v1.LabelKey
  1214. (*TimeSeries)(nil), // 4: opencensus.proto.metrics.v1.TimeSeries
  1215. (*LabelValue)(nil), // 5: opencensus.proto.metrics.v1.LabelValue
  1216. (*Point)(nil), // 6: opencensus.proto.metrics.v1.Point
  1217. (*DistributionValue)(nil), // 7: opencensus.proto.metrics.v1.DistributionValue
  1218. (*SummaryValue)(nil), // 8: opencensus.proto.metrics.v1.SummaryValue
  1219. (*DistributionValue_BucketOptions)(nil), // 9: opencensus.proto.metrics.v1.DistributionValue.BucketOptions
  1220. (*DistributionValue_Bucket)(nil), // 10: opencensus.proto.metrics.v1.DistributionValue.Bucket
  1221. (*DistributionValue_Exemplar)(nil), // 11: opencensus.proto.metrics.v1.DistributionValue.Exemplar
  1222. (*DistributionValue_BucketOptions_Explicit)(nil), // 12: opencensus.proto.metrics.v1.DistributionValue.BucketOptions.Explicit
  1223. nil, // 13: opencensus.proto.metrics.v1.DistributionValue.Exemplar.AttachmentsEntry
  1224. (*SummaryValue_Snapshot)(nil), // 14: opencensus.proto.metrics.v1.SummaryValue.Snapshot
  1225. (*SummaryValue_Snapshot_ValueAtPercentile)(nil), // 15: opencensus.proto.metrics.v1.SummaryValue.Snapshot.ValueAtPercentile
  1226. (*v1.Resource)(nil), // 16: opencensus.proto.resource.v1.Resource
  1227. (*timestamp.Timestamp)(nil), // 17: google.protobuf.Timestamp
  1228. (*wrappers.Int64Value)(nil), // 18: google.protobuf.Int64Value
  1229. (*wrappers.DoubleValue)(nil), // 19: google.protobuf.DoubleValue
  1230. }
  1231. var file_opencensus_proto_metrics_v1_metrics_proto_depIdxs = []int32{
  1232. 2, // 0: opencensus.proto.metrics.v1.Metric.metric_descriptor:type_name -> opencensus.proto.metrics.v1.MetricDescriptor
  1233. 4, // 1: opencensus.proto.metrics.v1.Metric.timeseries:type_name -> opencensus.proto.metrics.v1.TimeSeries
  1234. 16, // 2: opencensus.proto.metrics.v1.Metric.resource:type_name -> opencensus.proto.resource.v1.Resource
  1235. 0, // 3: opencensus.proto.metrics.v1.MetricDescriptor.type:type_name -> opencensus.proto.metrics.v1.MetricDescriptor.Type
  1236. 3, // 4: opencensus.proto.metrics.v1.MetricDescriptor.label_keys:type_name -> opencensus.proto.metrics.v1.LabelKey
  1237. 17, // 5: opencensus.proto.metrics.v1.TimeSeries.start_timestamp:type_name -> google.protobuf.Timestamp
  1238. 5, // 6: opencensus.proto.metrics.v1.TimeSeries.label_values:type_name -> opencensus.proto.metrics.v1.LabelValue
  1239. 6, // 7: opencensus.proto.metrics.v1.TimeSeries.points:type_name -> opencensus.proto.metrics.v1.Point
  1240. 17, // 8: opencensus.proto.metrics.v1.Point.timestamp:type_name -> google.protobuf.Timestamp
  1241. 7, // 9: opencensus.proto.metrics.v1.Point.distribution_value:type_name -> opencensus.proto.metrics.v1.DistributionValue
  1242. 8, // 10: opencensus.proto.metrics.v1.Point.summary_value:type_name -> opencensus.proto.metrics.v1.SummaryValue
  1243. 9, // 11: opencensus.proto.metrics.v1.DistributionValue.bucket_options:type_name -> opencensus.proto.metrics.v1.DistributionValue.BucketOptions
  1244. 10, // 12: opencensus.proto.metrics.v1.DistributionValue.buckets:type_name -> opencensus.proto.metrics.v1.DistributionValue.Bucket
  1245. 18, // 13: opencensus.proto.metrics.v1.SummaryValue.count:type_name -> google.protobuf.Int64Value
  1246. 19, // 14: opencensus.proto.metrics.v1.SummaryValue.sum:type_name -> google.protobuf.DoubleValue
  1247. 14, // 15: opencensus.proto.metrics.v1.SummaryValue.snapshot:type_name -> opencensus.proto.metrics.v1.SummaryValue.Snapshot
  1248. 12, // 16: opencensus.proto.metrics.v1.DistributionValue.BucketOptions.explicit:type_name -> opencensus.proto.metrics.v1.DistributionValue.BucketOptions.Explicit
  1249. 11, // 17: opencensus.proto.metrics.v1.DistributionValue.Bucket.exemplar:type_name -> opencensus.proto.metrics.v1.DistributionValue.Exemplar
  1250. 17, // 18: opencensus.proto.metrics.v1.DistributionValue.Exemplar.timestamp:type_name -> google.protobuf.Timestamp
  1251. 13, // 19: opencensus.proto.metrics.v1.DistributionValue.Exemplar.attachments:type_name -> opencensus.proto.metrics.v1.DistributionValue.Exemplar.AttachmentsEntry
  1252. 18, // 20: opencensus.proto.metrics.v1.SummaryValue.Snapshot.count:type_name -> google.protobuf.Int64Value
  1253. 19, // 21: opencensus.proto.metrics.v1.SummaryValue.Snapshot.sum:type_name -> google.protobuf.DoubleValue
  1254. 15, // 22: opencensus.proto.metrics.v1.SummaryValue.Snapshot.percentile_values:type_name -> opencensus.proto.metrics.v1.SummaryValue.Snapshot.ValueAtPercentile
  1255. 23, // [23:23] is the sub-list for method output_type
  1256. 23, // [23:23] is the sub-list for method input_type
  1257. 23, // [23:23] is the sub-list for extension type_name
  1258. 23, // [23:23] is the sub-list for extension extendee
  1259. 0, // [0:23] is the sub-list for field type_name
  1260. }
  1261. func init() { file_opencensus_proto_metrics_v1_metrics_proto_init() }
  1262. func file_opencensus_proto_metrics_v1_metrics_proto_init() {
  1263. if File_opencensus_proto_metrics_v1_metrics_proto != nil {
  1264. return
  1265. }
  1266. if !protoimpl.UnsafeEnabled {
  1267. file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  1268. switch v := v.(*Metric); i {
  1269. case 0:
  1270. return &v.state
  1271. case 1:
  1272. return &v.sizeCache
  1273. case 2:
  1274. return &v.unknownFields
  1275. default:
  1276. return nil
  1277. }
  1278. }
  1279. file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  1280. switch v := v.(*MetricDescriptor); i {
  1281. case 0:
  1282. return &v.state
  1283. case 1:
  1284. return &v.sizeCache
  1285. case 2:
  1286. return &v.unknownFields
  1287. default:
  1288. return nil
  1289. }
  1290. }
  1291. file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  1292. switch v := v.(*LabelKey); i {
  1293. case 0:
  1294. return &v.state
  1295. case 1:
  1296. return &v.sizeCache
  1297. case 2:
  1298. return &v.unknownFields
  1299. default:
  1300. return nil
  1301. }
  1302. }
  1303. file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  1304. switch v := v.(*TimeSeries); i {
  1305. case 0:
  1306. return &v.state
  1307. case 1:
  1308. return &v.sizeCache
  1309. case 2:
  1310. return &v.unknownFields
  1311. default:
  1312. return nil
  1313. }
  1314. }
  1315. file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  1316. switch v := v.(*LabelValue); i {
  1317. case 0:
  1318. return &v.state
  1319. case 1:
  1320. return &v.sizeCache
  1321. case 2:
  1322. return &v.unknownFields
  1323. default:
  1324. return nil
  1325. }
  1326. }
  1327. file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  1328. switch v := v.(*Point); i {
  1329. case 0:
  1330. return &v.state
  1331. case 1:
  1332. return &v.sizeCache
  1333. case 2:
  1334. return &v.unknownFields
  1335. default:
  1336. return nil
  1337. }
  1338. }
  1339. file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  1340. switch v := v.(*DistributionValue); i {
  1341. case 0:
  1342. return &v.state
  1343. case 1:
  1344. return &v.sizeCache
  1345. case 2:
  1346. return &v.unknownFields
  1347. default:
  1348. return nil
  1349. }
  1350. }
  1351. file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  1352. switch v := v.(*SummaryValue); i {
  1353. case 0:
  1354. return &v.state
  1355. case 1:
  1356. return &v.sizeCache
  1357. case 2:
  1358. return &v.unknownFields
  1359. default:
  1360. return nil
  1361. }
  1362. }
  1363. file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  1364. switch v := v.(*DistributionValue_BucketOptions); i {
  1365. case 0:
  1366. return &v.state
  1367. case 1:
  1368. return &v.sizeCache
  1369. case 2:
  1370. return &v.unknownFields
  1371. default:
  1372. return nil
  1373. }
  1374. }
  1375. file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  1376. switch v := v.(*DistributionValue_Bucket); i {
  1377. case 0:
  1378. return &v.state
  1379. case 1:
  1380. return &v.sizeCache
  1381. case 2:
  1382. return &v.unknownFields
  1383. default:
  1384. return nil
  1385. }
  1386. }
  1387. file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  1388. switch v := v.(*DistributionValue_Exemplar); i {
  1389. case 0:
  1390. return &v.state
  1391. case 1:
  1392. return &v.sizeCache
  1393. case 2:
  1394. return &v.unknownFields
  1395. default:
  1396. return nil
  1397. }
  1398. }
  1399. file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  1400. switch v := v.(*DistributionValue_BucketOptions_Explicit); i {
  1401. case 0:
  1402. return &v.state
  1403. case 1:
  1404. return &v.sizeCache
  1405. case 2:
  1406. return &v.unknownFields
  1407. default:
  1408. return nil
  1409. }
  1410. }
  1411. file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
  1412. switch v := v.(*SummaryValue_Snapshot); i {
  1413. case 0:
  1414. return &v.state
  1415. case 1:
  1416. return &v.sizeCache
  1417. case 2:
  1418. return &v.unknownFields
  1419. default:
  1420. return nil
  1421. }
  1422. }
  1423. file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
  1424. switch v := v.(*SummaryValue_Snapshot_ValueAtPercentile); i {
  1425. case 0:
  1426. return &v.state
  1427. case 1:
  1428. return &v.sizeCache
  1429. case 2:
  1430. return &v.unknownFields
  1431. default:
  1432. return nil
  1433. }
  1434. }
  1435. }
  1436. file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[5].OneofWrappers = []interface{}{
  1437. (*Point_Int64Value)(nil),
  1438. (*Point_DoubleValue)(nil),
  1439. (*Point_DistributionValue)(nil),
  1440. (*Point_SummaryValue)(nil),
  1441. }
  1442. file_opencensus_proto_metrics_v1_metrics_proto_msgTypes[8].OneofWrappers = []interface{}{
  1443. (*DistributionValue_BucketOptions_Explicit_)(nil),
  1444. }
  1445. type x struct{}
  1446. out := protoimpl.TypeBuilder{
  1447. File: protoimpl.DescBuilder{
  1448. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1449. RawDescriptor: file_opencensus_proto_metrics_v1_metrics_proto_rawDesc,
  1450. NumEnums: 1,
  1451. NumMessages: 15,
  1452. NumExtensions: 0,
  1453. NumServices: 0,
  1454. },
  1455. GoTypes: file_opencensus_proto_metrics_v1_metrics_proto_goTypes,
  1456. DependencyIndexes: file_opencensus_proto_metrics_v1_metrics_proto_depIdxs,
  1457. EnumInfos: file_opencensus_proto_metrics_v1_metrics_proto_enumTypes,
  1458. MessageInfos: file_opencensus_proto_metrics_v1_metrics_proto_msgTypes,
  1459. }.Build()
  1460. File_opencensus_proto_metrics_v1_metrics_proto = out.File
  1461. file_opencensus_proto_metrics_v1_metrics_proto_rawDesc = nil
  1462. file_opencensus_proto_metrics_v1_metrics_proto_goTypes = nil
  1463. file_opencensus_proto_metrics_v1_metrics_proto_depIdxs = nil
  1464. }