1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
36 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
37
38 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
39 )
40
41
42
43
44 type MetricDescriptor_MetricKind int32
45
46 const (
47
48 MetricDescriptor_METRIC_KIND_UNSPECIFIED MetricDescriptor_MetricKind = 0
49
50 MetricDescriptor_GAUGE MetricDescriptor_MetricKind = 1
51
52 MetricDescriptor_DELTA MetricDescriptor_MetricKind = 2
53
54
55
56
57
58 MetricDescriptor_CUMULATIVE MetricDescriptor_MetricKind = 3
59 )
60
61
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
100 func (MetricDescriptor_MetricKind) EnumDescriptor() ([]byte, []int) {
101 return file_google_api_metric_proto_rawDescGZIP(), []int{0, 0}
102 }
103
104
105 type MetricDescriptor_ValueType int32
106
107 const (
108
109 MetricDescriptor_VALUE_TYPE_UNSPECIFIED MetricDescriptor_ValueType = 0
110
111
112 MetricDescriptor_BOOL MetricDescriptor_ValueType = 1
113
114 MetricDescriptor_INT64 MetricDescriptor_ValueType = 2
115
116 MetricDescriptor_DOUBLE MetricDescriptor_ValueType = 3
117
118
119 MetricDescriptor_STRING MetricDescriptor_ValueType = 4
120
121 MetricDescriptor_DISTRIBUTION MetricDescriptor_ValueType = 5
122
123 MetricDescriptor_MONEY MetricDescriptor_ValueType = 6
124 )
125
126
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
171 func (MetricDescriptor_ValueType) EnumDescriptor() ([]byte, []int) {
172 return file_google_api_metric_proto_rawDescGZIP(), []int{0, 1}
173 }
174
175
176
177
178 type MetricDescriptor struct {
179 state protoimpl.MessageState
180 sizeCache protoimpl.SizeCache
181 unknownFields protoimpl.UnknownFields
182
183
184 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
185
186
187
188
189
190
191
192
193 Type string `protobuf:"bytes,8,opt,name=type,proto3" json:"type,omitempty"`
194
195
196
197
198
199
200 Labels []*label.LabelDescriptor `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"`
201
202
203 MetricKind MetricDescriptor_MetricKind `protobuf:"varint,3,opt,name=metric_kind,json=metricKind,proto3,enum=google.api.MetricDescriptor_MetricKind" json:"metric_kind,omitempty"`
204
205
206 ValueType MetricDescriptor_ValueType `protobuf:"varint,4,opt,name=value_type,json=valueType,proto3,enum=google.api.MetricDescriptor_ValueType" json:"value_type,omitempty"`
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309 Unit string `protobuf:"bytes,5,opt,name=unit,proto3" json:"unit,omitempty"`
310
311 Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
312
313
314
315
316 DisplayName string `protobuf:"bytes,7,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
317
318 Metadata *MetricDescriptor_MetricDescriptorMetadata `protobuf:"bytes,10,opt,name=metadata,proto3" json:"metadata,omitempty"`
319
320 LaunchStage api.LaunchStage `protobuf:"varint,12,opt,name=launch_stage,json=launchStage,proto3,enum=google.api.LaunchStage" json:"launch_stage,omitempty"`
321
322
323
324
325
326
327 MonitoredResourceTypes []string `protobuf:"bytes,13,rep,name=monitored_resource_types,json=monitoredResourceTypes,proto3" json:"monitored_resource_types,omitempty"`
328 }
329
330 func (x *MetricDescriptor) Reset() {
331 *x = MetricDescriptor{}
332 if protoimpl.UnsafeEnabled {
333 mi := &file_google_api_metric_proto_msgTypes[0]
334 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
335 ms.StoreMessageInfo(mi)
336 }
337 }
338
339 func (x *MetricDescriptor) String() string {
340 return protoimpl.X.MessageStringOf(x)
341 }
342
343 func (*MetricDescriptor) ProtoMessage() {}
344
345 func (x *MetricDescriptor) ProtoReflect() protoreflect.Message {
346 mi := &file_google_api_metric_proto_msgTypes[0]
347 if protoimpl.UnsafeEnabled && x != nil {
348 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
349 if ms.LoadMessageInfo() == nil {
350 ms.StoreMessageInfo(mi)
351 }
352 return ms
353 }
354 return mi.MessageOf(x)
355 }
356
357
358 func (*MetricDescriptor) Descriptor() ([]byte, []int) {
359 return file_google_api_metric_proto_rawDescGZIP(), []int{0}
360 }
361
362 func (x *MetricDescriptor) GetName() string {
363 if x != nil {
364 return x.Name
365 }
366 return ""
367 }
368
369 func (x *MetricDescriptor) GetType() string {
370 if x != nil {
371 return x.Type
372 }
373 return ""
374 }
375
376 func (x *MetricDescriptor) GetLabels() []*label.LabelDescriptor {
377 if x != nil {
378 return x.Labels
379 }
380 return nil
381 }
382
383 func (x *MetricDescriptor) GetMetricKind() MetricDescriptor_MetricKind {
384 if x != nil {
385 return x.MetricKind
386 }
387 return MetricDescriptor_METRIC_KIND_UNSPECIFIED
388 }
389
390 func (x *MetricDescriptor) GetValueType() MetricDescriptor_ValueType {
391 if x != nil {
392 return x.ValueType
393 }
394 return MetricDescriptor_VALUE_TYPE_UNSPECIFIED
395 }
396
397 func (x *MetricDescriptor) GetUnit() string {
398 if x != nil {
399 return x.Unit
400 }
401 return ""
402 }
403
404 func (x *MetricDescriptor) GetDescription() string {
405 if x != nil {
406 return x.Description
407 }
408 return ""
409 }
410
411 func (x *MetricDescriptor) GetDisplayName() string {
412 if x != nil {
413 return x.DisplayName
414 }
415 return ""
416 }
417
418 func (x *MetricDescriptor) GetMetadata() *MetricDescriptor_MetricDescriptorMetadata {
419 if x != nil {
420 return x.Metadata
421 }
422 return nil
423 }
424
425 func (x *MetricDescriptor) GetLaunchStage() api.LaunchStage {
426 if x != nil {
427 return x.LaunchStage
428 }
429 return api.LaunchStage_LAUNCH_STAGE_UNSPECIFIED
430 }
431
432 func (x *MetricDescriptor) GetMonitoredResourceTypes() []string {
433 if x != nil {
434 return x.MonitoredResourceTypes
435 }
436 return nil
437 }
438
439
440
441 type Metric struct {
442 state protoimpl.MessageState
443 sizeCache protoimpl.SizeCache
444 unknownFields protoimpl.UnknownFields
445
446
447
448
449 Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
450
451
452 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"`
453 }
454
455 func (x *Metric) Reset() {
456 *x = Metric{}
457 if protoimpl.UnsafeEnabled {
458 mi := &file_google_api_metric_proto_msgTypes[1]
459 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
460 ms.StoreMessageInfo(mi)
461 }
462 }
463
464 func (x *Metric) String() string {
465 return protoimpl.X.MessageStringOf(x)
466 }
467
468 func (*Metric) ProtoMessage() {}
469
470 func (x *Metric) ProtoReflect() protoreflect.Message {
471 mi := &file_google_api_metric_proto_msgTypes[1]
472 if protoimpl.UnsafeEnabled && x != nil {
473 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
474 if ms.LoadMessageInfo() == nil {
475 ms.StoreMessageInfo(mi)
476 }
477 return ms
478 }
479 return mi.MessageOf(x)
480 }
481
482
483 func (*Metric) Descriptor() ([]byte, []int) {
484 return file_google_api_metric_proto_rawDescGZIP(), []int{1}
485 }
486
487 func (x *Metric) GetType() string {
488 if x != nil {
489 return x.Type
490 }
491 return ""
492 }
493
494 func (x *Metric) GetLabels() map[string]string {
495 if x != nil {
496 return x.Labels
497 }
498 return nil
499 }
500
501
502 type MetricDescriptor_MetricDescriptorMetadata struct {
503 state protoimpl.MessageState
504 sizeCache protoimpl.SizeCache
505 unknownFields protoimpl.UnknownFields
506
507
508
509
510
511
512 LaunchStage api.LaunchStage `protobuf:"varint,1,opt,name=launch_stage,json=launchStage,proto3,enum=google.api.LaunchStage" json:"launch_stage,omitempty"`
513
514
515
516
517 SamplePeriod *durationpb.Duration `protobuf:"bytes,2,opt,name=sample_period,json=samplePeriod,proto3" json:"sample_period,omitempty"`
518
519
520
521 IngestDelay *durationpb.Duration `protobuf:"bytes,3,opt,name=ingest_delay,json=ingestDelay,proto3" json:"ingest_delay,omitempty"`
522 }
523
524 func (x *MetricDescriptor_MetricDescriptorMetadata) Reset() {
525 *x = MetricDescriptor_MetricDescriptorMetadata{}
526 if protoimpl.UnsafeEnabled {
527 mi := &file_google_api_metric_proto_msgTypes[2]
528 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
529 ms.StoreMessageInfo(mi)
530 }
531 }
532
533 func (x *MetricDescriptor_MetricDescriptorMetadata) String() string {
534 return protoimpl.X.MessageStringOf(x)
535 }
536
537 func (*MetricDescriptor_MetricDescriptorMetadata) ProtoMessage() {}
538
539 func (x *MetricDescriptor_MetricDescriptorMetadata) ProtoReflect() protoreflect.Message {
540 mi := &file_google_api_metric_proto_msgTypes[2]
541 if protoimpl.UnsafeEnabled && x != nil {
542 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
543 if ms.LoadMessageInfo() == nil {
544 ms.StoreMessageInfo(mi)
545 }
546 return ms
547 }
548 return mi.MessageOf(x)
549 }
550
551
552 func (*MetricDescriptor_MetricDescriptorMetadata) Descriptor() ([]byte, []int) {
553 return file_google_api_metric_proto_rawDescGZIP(), []int{0, 0}
554 }
555
556
557 func (x *MetricDescriptor_MetricDescriptorMetadata) GetLaunchStage() api.LaunchStage {
558 if x != nil {
559 return x.LaunchStage
560 }
561 return api.LaunchStage_LAUNCH_STAGE_UNSPECIFIED
562 }
563
564 func (x *MetricDescriptor_MetricDescriptorMetadata) GetSamplePeriod() *durationpb.Duration {
565 if x != nil {
566 return x.SamplePeriod
567 }
568 return nil
569 }
570
571 func (x *MetricDescriptor_MetricDescriptorMetadata) GetIngestDelay() *durationpb.Duration {
572 if x != nil {
573 return x.IngestDelay
574 }
575 return nil
576 }
577
578 var File_google_api_metric_proto protoreflect.FileDescriptor
579
580 var file_google_api_metric_proto_rawDesc = []byte{
581 0x0a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x65, 0x74,
582 0x72, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
583 0x65, 0x2e, 0x61, 0x70, 0x69, 0x1a, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
584 0x69, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x67,
585 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68,
586 0x5f, 0x73, 0x74, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f,
587 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75,
588 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc1, 0x07, 0x0a,
589 0x10, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f,
590 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
591 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20,
592 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x6c, 0x61, 0x62,
593 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
594 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x44, 0x65, 0x73, 0x63,
595 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x48,
596 0x0a, 0x0b, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x03, 0x20,
597 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69,
598 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f,
599 0x72, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x0a, 0x6d, 0x65,
600 0x74, 0x72, 0x69, 0x63, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x45, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x75,
601 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x67,
602 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63,
603 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65,
604 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12,
605 0x12, 0x0a, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75,
606 0x6e, 0x69, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
607 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69,
608 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79,
609 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73,
610 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x51, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61,
611 0x64, 0x61, 0x74, 0x61, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f,
612 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x44, 0x65,
613 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x44,
614 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
615 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3a, 0x0a, 0x0c, 0x6c,
616 0x61, 0x75, 0x6e, 0x63, 0x68, 0x5f, 0x73, 0x74, 0x61, 0x67, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28,
617 0x0e, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4c,
618 0x61, 0x75, 0x6e, 0x63, 0x68, 0x53, 0x74, 0x61, 0x67, 0x65, 0x52, 0x0b, 0x6c, 0x61, 0x75, 0x6e,
619 0x63, 0x68, 0x53, 0x74, 0x61, 0x67, 0x65, 0x12, 0x38, 0x0a, 0x18, 0x6d, 0x6f, 0x6e, 0x69, 0x74,
620 0x6f, 0x72, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79,
621 0x70, 0x65, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x16, 0x6d, 0x6f, 0x6e, 0x69, 0x74,
622 0x6f, 0x72, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65,
623 0x73, 0x1a, 0xd8, 0x01, 0x0a, 0x18, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x44, 0x65, 0x73, 0x63,
624 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3e,
625 0x0a, 0x0c, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x5f, 0x73, 0x74, 0x61, 0x67, 0x65, 0x18, 0x01,
626 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70,
627 0x69, 0x2e, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x53, 0x74, 0x61, 0x67, 0x65, 0x42, 0x02, 0x18,
628 0x01, 0x52, 0x0b, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x53, 0x74, 0x61, 0x67, 0x65, 0x12, 0x3e,
629 0x0a, 0x0d, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18,
630 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
631 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
632 0x52, 0x0c, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x3c,
633 0x0a, 0x0c, 0x69, 0x6e, 0x67, 0x65, 0x73, 0x74, 0x5f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x18, 0x03,
634 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
635 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
636 0x0b, 0x69, 0x6e, 0x67, 0x65, 0x73, 0x74, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x22, 0x4f, 0x0a, 0x0a,
637 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x1b, 0x0a, 0x17, 0x4d, 0x45,
638 0x54, 0x52, 0x49, 0x43, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,
639 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x47, 0x41, 0x55, 0x47, 0x45,
640 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x44, 0x45, 0x4c, 0x54, 0x41, 0x10, 0x02, 0x12, 0x0e, 0x0a,
641 0x0a, 0x43, 0x55, 0x4d, 0x55, 0x4c, 0x41, 0x54, 0x49, 0x56, 0x45, 0x10, 0x03, 0x22, 0x71, 0x0a,
642 0x09, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x56, 0x41,
643 0x4c, 0x55, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
644 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x4f, 0x4f, 0x4c, 0x10, 0x01,
645 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x44,
646 0x4f, 0x55, 0x42, 0x4c, 0x45, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e,
647 0x47, 0x10, 0x04, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x49, 0x53, 0x54, 0x52, 0x49, 0x42, 0x55, 0x54,
648 0x49, 0x4f, 0x4e, 0x10, 0x05, 0x12, 0x09, 0x0a, 0x05, 0x4d, 0x4f, 0x4e, 0x45, 0x59, 0x10, 0x06,
649 0x22, 0x8f, 0x01, 0x0a, 0x06, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x12, 0x12, 0x0a, 0x04, 0x74,
650 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
651 0x36, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
652 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4d, 0x65, 0x74,
653 0x72, 0x69, 0x63, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
654 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c,
655 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
656 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
657 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
658 0x38, 0x01, 0x42, 0x5f, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
659 0x2e, 0x61, 0x70, 0x69, 0x42, 0x0b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x50, 0x72, 0x6f, 0x74,
660 0x6f, 0x50, 0x01, 0x5a, 0x37, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61,
661 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
662 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d,
663 0x65, 0x74, 0x72, 0x69, 0x63, 0x3b, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0xa2, 0x02, 0x04, 0x47,
664 0x41, 0x50, 0x49, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
665 }
666
667 var (
668 file_google_api_metric_proto_rawDescOnce sync.Once
669 file_google_api_metric_proto_rawDescData = file_google_api_metric_proto_rawDesc
670 )
671
672 func file_google_api_metric_proto_rawDescGZIP() []byte {
673 file_google_api_metric_proto_rawDescOnce.Do(func() {
674 file_google_api_metric_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_metric_proto_rawDescData)
675 })
676 return file_google_api_metric_proto_rawDescData
677 }
678
679 var file_google_api_metric_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
680 var file_google_api_metric_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
681 var file_google_api_metric_proto_goTypes = []interface{}{
682 (MetricDescriptor_MetricKind)(0),
683 (MetricDescriptor_ValueType)(0),
684 (*MetricDescriptor)(nil),
685 (*Metric)(nil),
686 (*MetricDescriptor_MetricDescriptorMetadata)(nil),
687 nil,
688 (*label.LabelDescriptor)(nil),
689 (api.LaunchStage)(0),
690 (*durationpb.Duration)(nil),
691 }
692 var file_google_api_metric_proto_depIdxs = []int32{
693 6,
694 0,
695 1,
696 4,
697 7,
698 5,
699 7,
700 8,
701 8,
702 9,
703 9,
704 9,
705 9,
706 0,
707 }
708
709 func init() { file_google_api_metric_proto_init() }
710 func file_google_api_metric_proto_init() {
711 if File_google_api_metric_proto != nil {
712 return
713 }
714 if !protoimpl.UnsafeEnabled {
715 file_google_api_metric_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
716 switch v := v.(*MetricDescriptor); i {
717 case 0:
718 return &v.state
719 case 1:
720 return &v.sizeCache
721 case 2:
722 return &v.unknownFields
723 default:
724 return nil
725 }
726 }
727 file_google_api_metric_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
728 switch v := v.(*Metric); i {
729 case 0:
730 return &v.state
731 case 1:
732 return &v.sizeCache
733 case 2:
734 return &v.unknownFields
735 default:
736 return nil
737 }
738 }
739 file_google_api_metric_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
740 switch v := v.(*MetricDescriptor_MetricDescriptorMetadata); i {
741 case 0:
742 return &v.state
743 case 1:
744 return &v.sizeCache
745 case 2:
746 return &v.unknownFields
747 default:
748 return nil
749 }
750 }
751 }
752 type x struct{}
753 out := protoimpl.TypeBuilder{
754 File: protoimpl.DescBuilder{
755 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
756 RawDescriptor: file_google_api_metric_proto_rawDesc,
757 NumEnums: 2,
758 NumMessages: 4,
759 NumExtensions: 0,
760 NumServices: 0,
761 },
762 GoTypes: file_google_api_metric_proto_goTypes,
763 DependencyIndexes: file_google_api_metric_proto_depIdxs,
764 EnumInfos: file_google_api_metric_proto_enumTypes,
765 MessageInfos: file_google_api_metric_proto_msgTypes,
766 }.Build()
767 File_google_api_metric_proto = out.File
768 file_google_api_metric_proto_rawDesc = nil
769 file_google_api_metric_proto_goTypes = nil
770 file_google_api_metric_proto_depIdxs = nil
771 }
772
View as plain text