Debian Codegraph @

googleapis/api/metric/metric.pb.go

raw
1 // Copyright 2026 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.26.0
18 // protoc v4.24.4
19 // source: google/api/metric.proto
20
21 package metric
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 api "google.golang.org/genproto/googleapis/api"
28 label "google.golang.org/genproto/googleapis/api/label"
29 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
30 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
31 durationpb "google.golang.org/protobuf/types/known/durationpb"
32 )
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
41 // The kind of measurement. It describes how the data is reported.
42 // For information on setting the start time and end time based on
43 // the MetricKind, see [TimeInterval][google.monitoring.v3.TimeInterval].
44 type MetricDescriptor_MetricKind int32
45
46 const (
47 // Do not use this default value.
48 MetricDescriptor_METRIC_KIND_UNSPECIFIED MetricDescriptor_MetricKind = 0
49 // An instantaneous measurement of a value.
50 MetricDescriptor_GAUGE MetricDescriptor_MetricKind = 1
51 // The change in a value during a time interval.
52 MetricDescriptor_DELTA MetricDescriptor_MetricKind = 2
53 // A value accumulated over a time interval. Cumulative
54 // measurements in a time series should have the same start time
55 // and increasing end times, until an event resets the cumulative
56 // value to zero and sets a new start time for the following
57 // points.
58 MetricDescriptor_CUMULATIVE MetricDescriptor_MetricKind = 3
59 )
60
61 // Enum value maps for MetricDescriptor_MetricKind.
62 var (
63 MetricDescriptor_MetricKind_name = map[int32]string{
64 0: "METRIC_KIND_UNSPECIFIED",
65 1: "GAUGE",
66 2: "DELTA",
67 3: "CUMULATIVE",
68 }
69 MetricDescriptor_MetricKind_value = map[string]int32{
70 "METRIC_KIND_UNSPECIFIED": 0,
71 "GAUGE": 1,
72 "DELTA": 2,
73 "CUMULATIVE": 3,
74 }
75 )
76
77 func (x MetricDescriptor_MetricKind) Enum() *MetricDescriptor_MetricKind {
78 p := new(MetricDescriptor_MetricKind)
79 *p = x
80 return p
81 }
82
83 func (x MetricDescriptor_MetricKind) String() string {
84 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
85 }
86
87 func (MetricDescriptor_MetricKind) Descriptor() protoreflect.EnumDescriptor {
88 return file_google_api_metric_proto_enumTypes[0].Descriptor()
89 }
90
91 func (MetricDescriptor_MetricKind) Type() protoreflect.EnumType {
92 return &file_google_api_metric_proto_enumTypes[0]
93 }
94
95 func (x MetricDescriptor_MetricKind) Number() protoreflect.EnumNumber {
96 return protoreflect.EnumNumber(x)
97 }
98
99 // Deprecated: Use MetricDescriptor_MetricKind.Descriptor instead.
100 func (MetricDescriptor_MetricKind) EnumDescriptor() ([]byte, []int) {
101 return file_google_api_metric_proto_rawDescGZIP(), []int{0, 0}
102 }
103
104 // The value type of a metric.
105 type MetricDescriptor_ValueType int32
106
107 const (
108 // Do not use this default value.
109 MetricDescriptor_VALUE_TYPE_UNSPECIFIED MetricDescriptor_ValueType = 0
110 // The value is a boolean.
111 // This value type can be used only if the metric kind is `GAUGE`.
112 MetricDescriptor_BOOL MetricDescriptor_ValueType = 1
113 // The value is a signed 64-bit integer.
114 MetricDescriptor_INT64 MetricDescriptor_ValueType = 2
115 // The value is a double precision floating point number.
116 MetricDescriptor_DOUBLE MetricDescriptor_ValueType = 3
117 // The value is a text string.
118 // This value type can be used only if the metric kind is `GAUGE`.
119 MetricDescriptor_STRING MetricDescriptor_ValueType = 4
120 // The value is a [`Distribution`][google.api.Distribution].
121 MetricDescriptor_DISTRIBUTION MetricDescriptor_ValueType = 5
122 // The value is money.
123 MetricDescriptor_MONEY MetricDescriptor_ValueType = 6
124 )
125
126 // Enum value maps for MetricDescriptor_ValueType.
127 var (
128 MetricDescriptor_ValueType_name = map[int32]string{
129 0: "VALUE_TYPE_UNSPECIFIED",
130 1: "BOOL",
131 2: "INT64",
132 3: "DOUBLE",
133 4: "STRING",
134 5: "DISTRIBUTION",
135 6: "MONEY",
136 }
137 MetricDescriptor_ValueType_value = map[string]int32{
138 "VALUE_TYPE_UNSPECIFIED": 0,
139 "BOOL": 1,
140 "INT64": 2,
141 "DOUBLE": 3,
142 "STRING": 4,
143 "DISTRIBUTION": 5,
144 "MONEY": 6,
145 }
146 )
147
148 func (x MetricDescriptor_ValueType) Enum() *MetricDescriptor_ValueType {
149 p := new(MetricDescriptor_ValueType)
150 *p = x
151 return p
152 }
153
154 func (x MetricDescriptor_ValueType) String() string {
155 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
156 }
157
158 func (MetricDescriptor_ValueType) Descriptor() protoreflect.EnumDescriptor {
159 return file_google_api_metric_proto_enumTypes[1].Descriptor()
160 }
161
162 func (MetricDescriptor_ValueType) Type() protoreflect.EnumType {
163 return &file_google_api_metric_proto_enumTypes[1]
164 }
165
166 func (x MetricDescriptor_ValueType) Number() protoreflect.EnumNumber {
167 return protoreflect.EnumNumber(x)
168 }
169
170 // Deprecated: Use MetricDescriptor_ValueType.Descriptor instead.
171 func (MetricDescriptor_ValueType) EnumDescriptor() ([]byte, []int) {
172 return file_google_api_metric_proto_rawDescGZIP(), []int{0, 1}
173 }
174
175 // The resource hierarchy level of the timeseries data of a metric.
176 type MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel int32
177
178 const (
179 // Do not use this default value.
180 MetricDescriptor_MetricDescriptorMetadata_TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel = 0
181 // Scopes a metric to a project.
182 MetricDescriptor_MetricDescriptorMetadata_PROJECT MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel = 1
183 // Scopes a metric to an organization.
184 MetricDescriptor_MetricDescriptorMetadata_ORGANIZATION MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel = 2
185 // Scopes a metric to a folder.
186 MetricDescriptor_MetricDescriptorMetadata_FOLDER MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel = 3
187 )
188
189 // Enum value maps for MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel.
190 var (
191 MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel_name = map[int32]string{
192 0: "TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED",
193 1: "PROJECT",
194 2: "ORGANIZATION",
195 3: "FOLDER",
196 }
197 MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel_value = map[string]int32{
198 "TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED": 0,
199 "PROJECT": 1,
200 "ORGANIZATION": 2,
201 "FOLDER": 3,
202 }
203 )
204
205 func (x MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel) Enum() *MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel {
206 p := new(MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel)
207 *p = x
208 return p
209 }
210
211 func (x MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel) String() string {
212 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
213 }
214
215 func (MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel) Descriptor() protoreflect.EnumDescriptor {
216 return file_google_api_metric_proto_enumTypes[2].Descriptor()
217 }
218
219 func (MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel) Type() protoreflect.EnumType {
220 return &file_google_api_metric_proto_enumTypes[2]
221 }
222
223 func (x MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel) Number() protoreflect.EnumNumber {
224 return protoreflect.EnumNumber(x)
225 }
226
227 // Deprecated: Use MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel.Descriptor instead.
228 func (MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel) EnumDescriptor() ([]byte, []int) {
229 return file_google_api_metric_proto_rawDescGZIP(), []int{0, 0, 0}
230 }
231
232 // Defines a metric type and its schema. Once a metric descriptor is created,
233 // deleting or altering it stops data collection and makes the metric type's
234 // existing data unusable.
235 type MetricDescriptor struct {
236 state protoimpl.MessageState
237 sizeCache protoimpl.SizeCache
238 unknownFields protoimpl.UnknownFields
239
240 // The resource name of the metric descriptor.
241 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
242 // The metric type, including its DNS name prefix. The type is not
243 // URL-encoded. All user-defined metric types have the DNS name
244 // `custom.googleapis.com` or `external.googleapis.com`. Metric types should
245 // use a natural hierarchical grouping. For example:
246 //
247 // "custom.googleapis.com/invoice/paid/amount"
248 // "external.googleapis.com/prometheus/up"
249 // "appengine.googleapis.com/http/server/response_latencies"
250 Type string `protobuf:"bytes,8,opt,name=type,proto3" json:"type,omitempty"`
251 // The set of labels that can be used to describe a specific
252 // instance of this metric type. For example, the
253 // `appengine.googleapis.com/http/server/response_latencies` metric
254 // type has a label for the HTTP response code, `response_code`, so
255 // you can look at latencies for successful responses or just
256 // for responses that failed.
257 Labels []*label.LabelDescriptor `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"`
258 // Whether the metric records instantaneous values, changes to a value, etc.
259 // Some combinations of `metric_kind` and `value_type` might not be supported.
260 MetricKind MetricDescriptor_MetricKind `protobuf:"varint,3,opt,name=metric_kind,json=metricKind,proto3,enum=google.api.MetricDescriptor_MetricKind" json:"metric_kind,omitempty"`
261 // Whether the measurement is an integer, a floating-point number, etc.
262 // Some combinations of `metric_kind` and `value_type` might not be supported.
263 ValueType MetricDescriptor_ValueType `protobuf:"varint,4,opt,name=value_type,json=valueType,proto3,enum=google.api.MetricDescriptor_ValueType" json:"value_type,omitempty"`
264 // The units in which the metric value is reported. It is only applicable
265 // if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
266 // defines the representation of the stored metric values.
267 //
268 // Different systems might scale the values to be more easily displayed (so a
269 // value of `0.02kBy` _might_ be displayed as `20By`, and a value of
270 // `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
271 // `kBy`, then the value of the metric is always in thousands of bytes, no
272 // matter how it might be displayed.
273 //
274 // If you want a custom metric to record the exact number of CPU-seconds used
275 // by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
276 // `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
277 // CPU-seconds, then the value is written as `12005`.
278 //
279 // Alternatively, if you want a custom metric to record data in a more
280 // granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
281 // `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
282 // or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
283 //
284 // The supported units are a subset of [The Unified Code for Units of
285 // Measure](https://unitsofmeasure.org/ucum.html) standard:
286 //
287 // **Basic units (UNIT)**
288 //
289 // * `bit` bit
290 // * `By` byte
291 // * `s` second
292 // * `min` minute
293 // * `h` hour
294 // * `d` day
295 // * `1` dimensionless
296 //
297 // **Prefixes (PREFIX)**
298 //
299 // * `k` kilo (10^3)
300 // * `M` mega (10^6)
301 // * `G` giga (10^9)
302 // * `T` tera (10^12)
303 // * `P` peta (10^15)
304 // * `E` exa (10^18)
305 // * `Z` zetta (10^21)
306 // * `Y` yotta (10^24)
307 //
308 // * `m` milli (10^-3)
309 // * `u` micro (10^-6)
310 // * `n` nano (10^-9)
311 // * `p` pico (10^-12)
312 // * `f` femto (10^-15)
313 // * `a` atto (10^-18)
314 // * `z` zepto (10^-21)
315 // * `y` yocto (10^-24)
316 //
317 // * `Ki` kibi (2^10)
318 // * `Mi` mebi (2^20)
319 // * `Gi` gibi (2^30)
320 // * `Ti` tebi (2^40)
321 // * `Pi` pebi (2^50)
322 //
323 // **Grammar**
324 //
325 // The grammar also includes these connectors:
326 //
327 // - `/` division or ratio (as an infix operator). For examples,
328 // `kBy/{email}` or `MiBy/10ms` (although you should almost never
329 // have `/s` in a metric `unit`; rates should always be computed at
330 // query time from the underlying cumulative or delta value).
331 // - `.` multiplication or composition (as an infix operator). For
332 // examples, `GBy.d` or `k{watt}.h`.
333 //
334 // The grammar for a unit is as follows:
335 //
336 // Expression = Component { "." Component } { "/" Component } ;
337 //
338 // Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
339 // | Annotation
340 // | "1"
341 // ;
342 //
343 // Annotation = "{" NAME "}" ;
344 //
345 // Notes:
346 //
347 // - `Annotation` is just a comment if it follows a `UNIT`. If the annotation
348 // is used alone, then the unit is equivalent to `1`. For examples,
349 // `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
350 // - `NAME` is a sequence of non-blank printable ASCII characters not
351 // containing `{` or `}`.
352 // - `1` represents a unitary [dimensionless
353 // unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such
354 // as in `1/s`. It is typically used when none of the basic units are
355 // appropriate. For example, "new users per day" can be represented as
356 // `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new
357 // users). Alternatively, "thousands of page views per day" would be
358 // represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric
359 // value of `5.3` would mean "5300 page views per day").
360 // - `%` represents dimensionless value of 1/100, and annotates values giving
361 // a percentage (so the metric values are typically in the range of 0..100,
362 // and a metric value `3` means "3 percent").
363 // - `10^2.%` indicates a metric contains a ratio, typically in the range
364 // 0..1, that will be multiplied by 100 and displayed as a percentage
365 // (so a metric value `0.03` means "3 percent").
366 Unit string `protobuf:"bytes,5,opt,name=unit,proto3" json:"unit,omitempty"`
367 // A detailed description of the metric, which can be used in documentation.
368 Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
369 // A concise name for the metric, which can be displayed in user interfaces.
370 // Use sentence case without an ending period, for example "Request count".
371 // This field is optional but it is recommended to be set for any metrics
372 // associated with user-visible concepts, such as Quota.
373 DisplayName string `protobuf:"bytes,7,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
374 // Optional. Metadata which can be used to guide usage of the metric.
375 Metadata *MetricDescriptor_MetricDescriptorMetadata `protobuf:"bytes,10,opt,name=metadata,proto3" json:"metadata,omitempty"`
376 // Optional. The launch stage of the metric definition.
377 LaunchStage api.LaunchStage `protobuf:"varint,12,opt,name=launch_stage,json=launchStage,proto3,enum=google.api.LaunchStage" json:"launch_stage,omitempty"`
378 // Read-only. If present, then a [time
379 // series][google.monitoring.v3.TimeSeries], which is identified partially by
380 // a metric type and a
381 // [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that
382 // is associated with this metric type can only be associated with one of the
383 // monitored resource types listed here.
384 MonitoredResourceTypes []string `protobuf:"bytes,13,rep,name=monitored_resource_types,json=monitoredResourceTypes,proto3" json:"monitored_resource_types,omitempty"`
385 }
386
387 func (x *MetricDescriptor) Reset() {
388 *x = MetricDescriptor{}
389 if protoimpl.UnsafeEnabled {
390 mi := &file_google_api_metric_proto_msgTypes[0]
391 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
392 ms.StoreMessageInfo(mi)
393 }
394 }
395
396 func (x *MetricDescriptor) String() string {
397 return protoimpl.X.MessageStringOf(x)
398 }
399
400 func (*MetricDescriptor) ProtoMessage() {}
401
402 func (x *MetricDescriptor) ProtoReflect() protoreflect.Message {
403 mi := &file_google_api_metric_proto_msgTypes[0]
404 if protoimpl.UnsafeEnabled && x != nil {
405 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
406 if ms.LoadMessageInfo() == nil {
407 ms.StoreMessageInfo(mi)
408 }
409 return ms
410 }
411 return mi.MessageOf(x)
412 }
413
414 // Deprecated: Use MetricDescriptor.ProtoReflect.Descriptor instead.
415 func (*MetricDescriptor) Descriptor() ([]byte, []int) {
416 return file_google_api_metric_proto_rawDescGZIP(), []int{0}
417 }
418
419 func (x *MetricDescriptor) GetName() string {
420 if x != nil {
421 return x.Name
422 }
423 return ""
424 }
425
426 func (x *MetricDescriptor) GetType() string {
427 if x != nil {
428 return x.Type
429 }
430 return ""
431 }
432
433 func (x *MetricDescriptor) GetLabels() []*label.LabelDescriptor {
434 if x != nil {
435 return x.Labels
436 }
437 return nil
438 }
439
440 func (x *MetricDescriptor) GetMetricKind() MetricDescriptor_MetricKind {
441 if x != nil {
442 return x.MetricKind
443 }
444 return MetricDescriptor_METRIC_KIND_UNSPECIFIED
445 }
446
447 func (x *MetricDescriptor) GetValueType() MetricDescriptor_ValueType {
448 if x != nil {
449 return x.ValueType
450 }
451 return MetricDescriptor_VALUE_TYPE_UNSPECIFIED
452 }
453
454 func (x *MetricDescriptor) GetUnit() string {
455 if x != nil {
456 return x.Unit
457 }
458 return ""
459 }
460
461 func (x *MetricDescriptor) GetDescription() string {
462 if x != nil {
463 return x.Description
464 }
465 return ""
466 }
467
468 func (x *MetricDescriptor) GetDisplayName() string {
469 if x != nil {
470 return x.DisplayName
471 }
472 return ""
473 }
474
475 func (x *MetricDescriptor) GetMetadata() *MetricDescriptor_MetricDescriptorMetadata {
476 if x != nil {
477 return x.Metadata
478 }
479 return nil
480 }
481
482 func (x *MetricDescriptor) GetLaunchStage() api.LaunchStage {
483 if x != nil {
484 return x.LaunchStage
485 }
486 return api.LaunchStage_LAUNCH_STAGE_UNSPECIFIED
487 }
488
489 func (x *MetricDescriptor) GetMonitoredResourceTypes() []string {
490 if x != nil {
491 return x.MonitoredResourceTypes
492 }
493 return nil
494 }
495
496 // A specific metric, identified by specifying values for all of the
497 // labels of a [`MetricDescriptor`][google.api.MetricDescriptor].
498 type Metric struct {
499 state protoimpl.MessageState
500 sizeCache protoimpl.SizeCache
501 unknownFields protoimpl.UnknownFields
502
503 // An existing metric type, see
504 // [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example,
505 // `custom.googleapis.com/invoice/paid/amount`.
506 Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
507 // The set of label values that uniquely identify this metric. All
508 // labels listed in the `MetricDescriptor` must be assigned values.
509 Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
510 }
511
512 func (x *Metric) Reset() {
513 *x = Metric{}
514 if protoimpl.UnsafeEnabled {
515 mi := &file_google_api_metric_proto_msgTypes[1]
516 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
517 ms.StoreMessageInfo(mi)
518 }
519 }
520
521 func (x *Metric) String() string {
522 return protoimpl.X.MessageStringOf(x)
523 }
524
525 func (*Metric) ProtoMessage() {}
526
527 func (x *Metric) ProtoReflect() protoreflect.Message {
528 mi := &file_google_api_metric_proto_msgTypes[1]
529 if protoimpl.UnsafeEnabled && x != nil {
530 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
531 if ms.LoadMessageInfo() == nil {
532 ms.StoreMessageInfo(mi)
533 }
534 return ms
535 }
536 return mi.MessageOf(x)
537 }
538
539 // Deprecated: Use Metric.ProtoReflect.Descriptor instead.
540 func (*Metric) Descriptor() ([]byte, []int) {
541 return file_google_api_metric_proto_rawDescGZIP(), []int{1}
542 }
543
544 func (x *Metric) GetType() string {
545 if x != nil {
546 return x.Type
547 }
548 return ""
549 }
550
551 func (x *Metric) GetLabels() map[string]string {
552 if x != nil {
553 return x.Labels
554 }
555 return nil
556 }
557
558 // Additional annotations that can be used to guide the usage of a metric.
559 type MetricDescriptor_MetricDescriptorMetadata struct {
560 state protoimpl.MessageState
561 sizeCache protoimpl.SizeCache
562 unknownFields protoimpl.UnknownFields
563
564 // Deprecated. Must use the
565 // [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage]
566 // instead.
567 //
568 // Deprecated: Do not use.
569 LaunchStage api.LaunchStage `protobuf:"varint,1,opt,name=launch_stage,json=launchStage,proto3,enum=google.api.LaunchStage" json:"launch_stage,omitempty"`
570 // The sampling period of metric data points. For metrics which are written
571 // periodically, consecutive data points are stored at this time interval,
572 // excluding data loss due to errors. Metrics with a higher granularity have
573 // a smaller sampling period.
574 SamplePeriod *durationpb.Duration `protobuf:"bytes,2,opt,name=sample_period,json=samplePeriod,proto3" json:"sample_period,omitempty"`
575 // The delay of data points caused by ingestion. Data points older than this
576 // age are guaranteed to be ingested and available to be read, excluding
577 // data loss due to errors.
578 IngestDelay *durationpb.Duration `protobuf:"bytes,3,opt,name=ingest_delay,json=ingestDelay,proto3" json:"ingest_delay,omitempty"`
579 // The scope of the timeseries data of the metric.
580 TimeSeriesResourceHierarchyLevel []MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel `protobuf:"varint,4,rep,packed,name=time_series_resource_hierarchy_level,json=timeSeriesResourceHierarchyLevel,proto3,enum=google.api.MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel" json:"time_series_resource_hierarchy_level,omitempty"`
581 }
582
583 func (x *MetricDescriptor_MetricDescriptorMetadata) Reset() {
584 *x = MetricDescriptor_MetricDescriptorMetadata{}
585 if protoimpl.UnsafeEnabled {
586 mi := &file_google_api_metric_proto_msgTypes[2]
587 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
588 ms.StoreMessageInfo(mi)
589 }
590 }
591
592 func (x *MetricDescriptor_MetricDescriptorMetadata) String() string {
593 return protoimpl.X.MessageStringOf(x)
594 }
595
596 func (*MetricDescriptor_MetricDescriptorMetadata) ProtoMessage() {}
597
598 func (x *MetricDescriptor_MetricDescriptorMetadata) ProtoReflect() protoreflect.Message {
599 mi := &file_google_api_metric_proto_msgTypes[2]
600 if protoimpl.UnsafeEnabled && x != nil {
601 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
602 if ms.LoadMessageInfo() == nil {
603 ms.StoreMessageInfo(mi)
604 }
605 return ms
606 }
607 return mi.MessageOf(x)
608 }
609
610 // Deprecated: Use MetricDescriptor_MetricDescriptorMetadata.ProtoReflect.Descriptor instead.
611 func (*MetricDescriptor_MetricDescriptorMetadata) Descriptor() ([]byte, []int) {
612 return file_google_api_metric_proto_rawDescGZIP(), []int{0, 0}
613 }
614
615 // Deprecated: Do not use.
616 func (x *MetricDescriptor_MetricDescriptorMetadata) GetLaunchStage() api.LaunchStage {
617 if x != nil {
618 return x.LaunchStage
619 }
620 return api.LaunchStage_LAUNCH_STAGE_UNSPECIFIED
621 }
622
623 func (x *MetricDescriptor_MetricDescriptorMetadata) GetSamplePeriod() *durationpb.Duration {
624 if x != nil {
625 return x.SamplePeriod
626 }
627 return nil
628 }
629
630 func (x *MetricDescriptor_MetricDescriptorMetadata) GetIngestDelay() *durationpb.Duration {
631 if x != nil {
632 return x.IngestDelay
633 }
634 return nil
635 }
636
637 func (x *MetricDescriptor_MetricDescriptorMetadata) GetTimeSeriesResourceHierarchyLevel() []MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel {
638 if x != nil {
639 return x.TimeSeriesResourceHierarchyLevel
640 }
641 return nil
642 }
643
644 var File_google_api_metric_proto protoreflect.FileDescriptor
645
646 var file_google_api_metric_proto_rawDesc = []byte{
647 0x0a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x65, 0x74,
648 0x72, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
649 0x65, 0x2e, 0x61, 0x70, 0x69, 0x1a, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
650 0x69, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x67,
651 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68,
652 0x5f, 0x73, 0x74, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f,
653 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75,
654 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf0, 0x09, 0x0a,
655 0x10, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f,
656 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
657 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20,
658 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x6c, 0x61, 0x62,
659 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
660 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x44, 0x65, 0x73, 0x63,
661 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x48,
662 0x0a, 0x0b, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x03, 0x20,
663 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69,
664 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f,
665 0x72, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x0a, 0x6d, 0x65,
666 0x74, 0x72, 0x69, 0x63, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x45, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x75,
667 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x67,
668 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63,
669 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65,
670 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12,
671 0x12, 0x0a, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75,
672 0x6e, 0x69, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
673 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69,
674 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79,
675 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73,
676 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x51, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61,
677 0x64, 0x61, 0x74, 0x61, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f,
678 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x44, 0x65,
679 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x44,
680 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
681 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3a, 0x0a, 0x0c, 0x6c,
682 0x61, 0x75, 0x6e, 0x63, 0x68, 0x5f, 0x73, 0x74, 0x61, 0x67, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28,
683 0x0e, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4c,
684 0x61, 0x75, 0x6e, 0x63, 0x68, 0x53, 0x74, 0x61, 0x67, 0x65, 0x52, 0x0b, 0x6c, 0x61, 0x75, 0x6e,
685 0x63, 0x68, 0x53, 0x74, 0x61, 0x67, 0x65, 0x12, 0x38, 0x0a, 0x18, 0x6d, 0x6f, 0x6e, 0x69, 0x74,
686 0x6f, 0x72, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79,
687 0x70, 0x65, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x16, 0x6d, 0x6f, 0x6e, 0x69, 0x74,
688 0x6f, 0x72, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65,
689 0x73, 0x1a, 0x87, 0x04, 0x0a, 0x18, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x44, 0x65, 0x73, 0x63,
690 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3e,
691 0x0a, 0x0c, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x5f, 0x73, 0x74, 0x61, 0x67, 0x65, 0x18, 0x01,
692 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70,
693 0x69, 0x2e, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x53, 0x74, 0x61, 0x67, 0x65, 0x42, 0x02, 0x18,
694 0x01, 0x52, 0x0b, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x53, 0x74, 0x61, 0x67, 0x65, 0x12, 0x3e,
695 0x0a, 0x0d, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18,
696 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
697 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
698 0x52, 0x0c, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x3c,
699 0x0a, 0x0c, 0x69, 0x6e, 0x67, 0x65, 0x73, 0x74, 0x5f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x18, 0x03,
700 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
701 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
702 0x0b, 0x69, 0x6e, 0x67, 0x65, 0x73, 0x74, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x12, 0xa6, 0x01, 0x0a,
703 0x24, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x73,
704 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x68, 0x69, 0x65, 0x72, 0x61, 0x72, 0x63, 0x68, 0x79, 0x5f,
705 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x56, 0x2e, 0x67, 0x6f,
706 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x44,
707 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63,
708 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
709 0x74, 0x61, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73,
710 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x69, 0x65, 0x72, 0x61, 0x72, 0x63, 0x68, 0x79, 0x4c, 0x65,
711 0x76, 0x65, 0x6c, 0x52, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52,
712 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x69, 0x65, 0x72, 0x61, 0x72, 0x63, 0x68, 0x79,
713 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x83, 0x01, 0x0a, 0x20, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65,
714 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x69, 0x65, 0x72,
715 0x61, 0x72, 0x63, 0x68, 0x79, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x34, 0x0a, 0x30, 0x54, 0x49,
716 0x4d, 0x45, 0x5f, 0x53, 0x45, 0x52, 0x49, 0x45, 0x53, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52,
717 0x43, 0x45, 0x5f, 0x48, 0x49, 0x45, 0x52, 0x41, 0x52, 0x43, 0x48, 0x59, 0x5f, 0x4c, 0x45, 0x56,
718 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,
719 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x01, 0x12, 0x10, 0x0a,
720 0x0c, 0x4f, 0x52, 0x47, 0x41, 0x4e, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x02, 0x12,
721 0x0a, 0x0a, 0x06, 0x46, 0x4f, 0x4c, 0x44, 0x45, 0x52, 0x10, 0x03, 0x22, 0x4f, 0x0a, 0x0a, 0x4d,
722 0x65, 0x74, 0x72, 0x69, 0x63, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x1b, 0x0a, 0x17, 0x4d, 0x45, 0x54,
723 0x52, 0x49, 0x43, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
724 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x47, 0x41, 0x55, 0x47, 0x45, 0x10,
725 0x01, 0x12, 0x09, 0x0a, 0x05, 0x44, 0x45, 0x4c, 0x54, 0x41, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a,
726 0x43, 0x55, 0x4d, 0x55, 0x4c, 0x41, 0x54, 0x49, 0x56, 0x45, 0x10, 0x03, 0x22, 0x71, 0x0a, 0x09,
727 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x56, 0x41, 0x4c,
728 0x55, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,
729 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x4f, 0x4f, 0x4c, 0x10, 0x01, 0x12,
730 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x4f,
731 0x55, 0x42, 0x4c, 0x45, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47,
732 0x10, 0x04, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x49, 0x53, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54, 0x49,
733 0x4f, 0x4e, 0x10, 0x05, 0x12, 0x09, 0x0a, 0x05, 0x4d, 0x4f, 0x4e, 0x45, 0x59, 0x10, 0x06, 0x22,
734 0x8f, 0x01, 0x0a, 0x06, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79,
735 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x36,
736 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e,
737 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4d, 0x65, 0x74, 0x72,
738 0x69, 0x63, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06,
739 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73,
740 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
741 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
742 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
743 0x01, 0x42, 0x5f, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
744 0x61, 0x70, 0x69, 0x42, 0x0b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f,
745 0x50, 0x01, 0x5a, 0x37, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e,
746 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
747 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x65,
748 0x74, 0x72, 0x69, 0x63, 0x3b, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0xa2, 0x02, 0x04, 0x47, 0x41,
749 0x50, 0x49, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
750 }
751
752 var (
753 file_google_api_metric_proto_rawDescOnce sync.Once
754 file_google_api_metric_proto_rawDescData = file_google_api_metric_proto_rawDesc
755 )
756
757 func file_google_api_metric_proto_rawDescGZIP() []byte {
758 file_google_api_metric_proto_rawDescOnce.Do(func() {
759 file_google_api_metric_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_metric_proto_rawDescData)
760 })
761 return file_google_api_metric_proto_rawDescData
762 }
763
764 var file_google_api_metric_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
765 var file_google_api_metric_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
766 var file_google_api_metric_proto_goTypes = []interface{}{
767 (MetricDescriptor_MetricKind)(0), // 0: google.api.MetricDescriptor.MetricKind
768 (MetricDescriptor_ValueType)(0), // 1: google.api.MetricDescriptor.ValueType
769 (MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel)(0), // 2: google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel
770 (*MetricDescriptor)(nil), // 3: google.api.MetricDescriptor
771 (*Metric)(nil), // 4: google.api.Metric
772 (*MetricDescriptor_MetricDescriptorMetadata)(nil), // 5: google.api.MetricDescriptor.MetricDescriptorMetadata
773 nil, // 6: google.api.Metric.LabelsEntry
774 (*label.LabelDescriptor)(nil), // 7: google.api.LabelDescriptor
775 (api.LaunchStage)(0), // 8: google.api.LaunchStage
776 (*durationpb.Duration)(nil), // 9: google.protobuf.Duration
777 }
778 var file_google_api_metric_proto_depIdxs = []int32{
779 7, // 0: google.api.MetricDescriptor.labels:type_name -> google.api.LabelDescriptor
780 0, // 1: google.api.MetricDescriptor.metric_kind:type_name -> google.api.MetricDescriptor.MetricKind
781 1, // 2: google.api.MetricDescriptor.value_type:type_name -> google.api.MetricDescriptor.ValueType
782 5, // 3: google.api.MetricDescriptor.metadata:type_name -> google.api.MetricDescriptor.MetricDescriptorMetadata
783 8, // 4: google.api.MetricDescriptor.launch_stage:type_name -> google.api.LaunchStage
784 6, // 5: google.api.Metric.labels:type_name -> google.api.Metric.LabelsEntry
785 8, // 6: google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage:type_name -> google.api.LaunchStage
786 9, // 7: google.api.MetricDescriptor.MetricDescriptorMetadata.sample_period:type_name -> google.protobuf.Duration
787 9, // 8: google.api.MetricDescriptor.MetricDescriptorMetadata.ingest_delay:type_name -> google.protobuf.Duration
788 2, // 9: google.api.MetricDescriptor.MetricDescriptorMetadata.time_series_resource_hierarchy_level:type_name -> google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel
789 10, // [10:10] is the sub-list for method output_type
790 10, // [10:10] is the sub-list for method input_type
791 10, // [10:10] is the sub-list for extension type_name
792 10, // [10:10] is the sub-list for extension extendee
793 0, // [0:10] is the sub-list for field type_name
794 }
795
796 func init() { file_google_api_metric_proto_init() }
797 func file_google_api_metric_proto_init() {
798 if File_google_api_metric_proto != nil {
799 return
800 }
801 if !protoimpl.UnsafeEnabled {
802 file_google_api_metric_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
803 switch v := v.(*MetricDescriptor); i {
804 case 0:
805 return &v.state
806 case 1:
807 return &v.sizeCache
808 case 2:
809 return &v.unknownFields
810 default:
811 return nil
812 }
813 }
814 file_google_api_metric_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
815 switch v := v.(*Metric); i {
816 case 0:
817 return &v.state
818 case 1:
819 return &v.sizeCache
820 case 2:
821 return &v.unknownFields
822 default:
823 return nil
824 }
825 }
826 file_google_api_metric_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
827 switch v := v.(*MetricDescriptor_MetricDescriptorMetadata); i {
828 case 0:
829 return &v.state
830 case 1:
831 return &v.sizeCache
832 case 2:
833 return &v.unknownFields
834 default:
835 return nil
836 }
837 }
838 }
839 type x struct{}
840 out := protoimpl.TypeBuilder{
841 File: protoimpl.DescBuilder{
842 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
843 RawDescriptor: file_google_api_metric_proto_rawDesc,
844 NumEnums: 3,
845 NumMessages: 4,
846 NumExtensions: 0,
847 NumServices: 0,
848 },
849 GoTypes: file_google_api_metric_proto_goTypes,
850 DependencyIndexes: file_google_api_metric_proto_depIdxs,
851 EnumInfos: file_google_api_metric_proto_enumTypes,
852 MessageInfos: file_google_api_metric_proto_msgTypes,
853 }.Build()
854 File_google_api_metric_proto = out.File
855 file_google_api_metric_proto_rawDesc = nil
856 file_google_api_metric_proto_goTypes = nil
857 file_google_api_metric_proto_depIdxs = nil
858 }