1#![allow(unknown_lints)]
6#![allow(clippy::all)]
7
8#![allow(unused_attributes)]
9#![cfg_attr(rustfmt, rustfmt::skip)]
10
11#![allow(box_pointers)]
12#![allow(dead_code)]
13#![allow(missing_docs)]
14#![allow(non_camel_case_types)]
15#![allow(non_snake_case)]
16#![allow(non_upper_case_globals)]
17#![allow(trivial_casts)]
18#![allow(unused_imports)]
19#![allow(unused_results)]
20#[derive(PartialEq,Clone,Default)]
27pub struct MetricDescriptor {
28 pub name: ::std::string::String,
30 pub field_type: ::std::string::String,
31 pub labels: ::protobuf::RepeatedField<super::label::LabelDescriptor>,
32 pub metric_kind: MetricDescriptor_MetricKind,
33 pub value_type: MetricDescriptor_ValueType,
34 pub unit: ::std::string::String,
35 pub description: ::std::string::String,
36 pub display_name: ::std::string::String,
37 pub metadata: ::protobuf::SingularPtrField<MetricDescriptor_MetricDescriptorMetadata>,
38 pub launch_stage: super::launch_stage::LaunchStage,
39 pub monitored_resource_types: ::protobuf::RepeatedField<::std::string::String>,
40 pub unknown_fields: ::protobuf::UnknownFields,
42 pub cached_size: ::protobuf::CachedSize,
43}
44
45impl<'a> ::std::default::Default for &'a MetricDescriptor {
46 fn default() -> &'a MetricDescriptor {
47 <MetricDescriptor as ::protobuf::Message>::default_instance()
48 }
49}
50
51impl MetricDescriptor {
52 pub fn new() -> MetricDescriptor {
53 ::std::default::Default::default()
54 }
55
56 pub fn get_name(&self) -> &str {
60 &self.name
61 }
62 pub fn clear_name(&mut self) {
63 self.name.clear();
64 }
65
66 pub fn set_name(&mut self, v: ::std::string::String) {
68 self.name = v;
69 }
70
71 pub fn mut_name(&mut self) -> &mut ::std::string::String {
74 &mut self.name
75 }
76
77 pub fn take_name(&mut self) -> ::std::string::String {
79 ::std::mem::replace(&mut self.name, ::std::string::String::new())
80 }
81
82 pub fn get_field_type(&self) -> &str {
86 &self.field_type
87 }
88 pub fn clear_field_type(&mut self) {
89 self.field_type.clear();
90 }
91
92 pub fn set_field_type(&mut self, v: ::std::string::String) {
94 self.field_type = v;
95 }
96
97 pub fn mut_field_type(&mut self) -> &mut ::std::string::String {
100 &mut self.field_type
101 }
102
103 pub fn take_field_type(&mut self) -> ::std::string::String {
105 ::std::mem::replace(&mut self.field_type, ::std::string::String::new())
106 }
107
108 pub fn get_labels(&self) -> &[super::label::LabelDescriptor] {
112 &self.labels
113 }
114 pub fn clear_labels(&mut self) {
115 self.labels.clear();
116 }
117
118 pub fn set_labels(&mut self, v: ::protobuf::RepeatedField<super::label::LabelDescriptor>) {
120 self.labels = v;
121 }
122
123 pub fn mut_labels(&mut self) -> &mut ::protobuf::RepeatedField<super::label::LabelDescriptor> {
125 &mut self.labels
126 }
127
128 pub fn take_labels(&mut self) -> ::protobuf::RepeatedField<super::label::LabelDescriptor> {
130 ::std::mem::replace(&mut self.labels, ::protobuf::RepeatedField::new())
131 }
132
133 pub fn get_metric_kind(&self) -> MetricDescriptor_MetricKind {
137 self.metric_kind
138 }
139 pub fn clear_metric_kind(&mut self) {
140 self.metric_kind = MetricDescriptor_MetricKind::METRIC_KIND_UNSPECIFIED;
141 }
142
143 pub fn set_metric_kind(&mut self, v: MetricDescriptor_MetricKind) {
145 self.metric_kind = v;
146 }
147
148 pub fn get_value_type(&self) -> MetricDescriptor_ValueType {
152 self.value_type
153 }
154 pub fn clear_value_type(&mut self) {
155 self.value_type = MetricDescriptor_ValueType::VALUE_TYPE_UNSPECIFIED;
156 }
157
158 pub fn set_value_type(&mut self, v: MetricDescriptor_ValueType) {
160 self.value_type = v;
161 }
162
163 pub fn get_unit(&self) -> &str {
167 &self.unit
168 }
169 pub fn clear_unit(&mut self) {
170 self.unit.clear();
171 }
172
173 pub fn set_unit(&mut self, v: ::std::string::String) {
175 self.unit = v;
176 }
177
178 pub fn mut_unit(&mut self) -> &mut ::std::string::String {
181 &mut self.unit
182 }
183
184 pub fn take_unit(&mut self) -> ::std::string::String {
186 ::std::mem::replace(&mut self.unit, ::std::string::String::new())
187 }
188
189 pub fn get_description(&self) -> &str {
193 &self.description
194 }
195 pub fn clear_description(&mut self) {
196 self.description.clear();
197 }
198
199 pub fn set_description(&mut self, v: ::std::string::String) {
201 self.description = v;
202 }
203
204 pub fn mut_description(&mut self) -> &mut ::std::string::String {
207 &mut self.description
208 }
209
210 pub fn take_description(&mut self) -> ::std::string::String {
212 ::std::mem::replace(&mut self.description, ::std::string::String::new())
213 }
214
215 pub fn get_display_name(&self) -> &str {
219 &self.display_name
220 }
221 pub fn clear_display_name(&mut self) {
222 self.display_name.clear();
223 }
224
225 pub fn set_display_name(&mut self, v: ::std::string::String) {
227 self.display_name = v;
228 }
229
230 pub fn mut_display_name(&mut self) -> &mut ::std::string::String {
233 &mut self.display_name
234 }
235
236 pub fn take_display_name(&mut self) -> ::std::string::String {
238 ::std::mem::replace(&mut self.display_name, ::std::string::String::new())
239 }
240
241 pub fn get_metadata(&self) -> &MetricDescriptor_MetricDescriptorMetadata {
245 self.metadata.as_ref().unwrap_or_else(|| <MetricDescriptor_MetricDescriptorMetadata as ::protobuf::Message>::default_instance())
246 }
247 pub fn clear_metadata(&mut self) {
248 self.metadata.clear();
249 }
250
251 pub fn has_metadata(&self) -> bool {
252 self.metadata.is_some()
253 }
254
255 pub fn set_metadata(&mut self, v: MetricDescriptor_MetricDescriptorMetadata) {
257 self.metadata = ::protobuf::SingularPtrField::some(v);
258 }
259
260 pub fn mut_metadata(&mut self) -> &mut MetricDescriptor_MetricDescriptorMetadata {
263 if self.metadata.is_none() {
264 self.metadata.set_default();
265 }
266 self.metadata.as_mut().unwrap()
267 }
268
269 pub fn take_metadata(&mut self) -> MetricDescriptor_MetricDescriptorMetadata {
271 self.metadata.take().unwrap_or_else(|| MetricDescriptor_MetricDescriptorMetadata::new())
272 }
273
274 pub fn get_launch_stage(&self) -> super::launch_stage::LaunchStage {
278 self.launch_stage
279 }
280 pub fn clear_launch_stage(&mut self) {
281 self.launch_stage = super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED;
282 }
283
284 pub fn set_launch_stage(&mut self, v: super::launch_stage::LaunchStage) {
286 self.launch_stage = v;
287 }
288
289 pub fn get_monitored_resource_types(&self) -> &[::std::string::String] {
293 &self.monitored_resource_types
294 }
295 pub fn clear_monitored_resource_types(&mut self) {
296 self.monitored_resource_types.clear();
297 }
298
299 pub fn set_monitored_resource_types(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
301 self.monitored_resource_types = v;
302 }
303
304 pub fn mut_monitored_resource_types(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
306 &mut self.monitored_resource_types
307 }
308
309 pub fn take_monitored_resource_types(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
311 ::std::mem::replace(&mut self.monitored_resource_types, ::protobuf::RepeatedField::new())
312 }
313}
314
315impl ::protobuf::Message for MetricDescriptor {
316 fn is_initialized(&self) -> bool {
317 for v in &self.labels {
318 if !v.is_initialized() {
319 return false;
320 }
321 };
322 for v in &self.metadata {
323 if !v.is_initialized() {
324 return false;
325 }
326 };
327 true
328 }
329
330 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
331 while !is.eof()? {
332 let (field_number, wire_type) = is.read_tag_unpack()?;
333 match field_number {
334 1 => {
335 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
336 },
337 8 => {
338 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_type)?;
339 },
340 2 => {
341 ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.labels)?;
342 },
343 3 => {
344 ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.metric_kind, 3, &mut self.unknown_fields)?
345 },
346 4 => {
347 ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.value_type, 4, &mut self.unknown_fields)?
348 },
349 5 => {
350 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.unit)?;
351 },
352 6 => {
353 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?;
354 },
355 7 => {
356 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_name)?;
357 },
358 10 => {
359 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.metadata)?;
360 },
361 12 => {
362 ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.launch_stage, 12, &mut self.unknown_fields)?
363 },
364 13 => {
365 ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.monitored_resource_types)?;
366 },
367 _ => {
368 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
369 },
370 };
371 }
372 ::std::result::Result::Ok(())
373 }
374
375 #[allow(unused_variables)]
377 fn compute_size(&self) -> u32 {
378 let mut my_size = 0;
379 if !self.name.is_empty() {
380 my_size += ::protobuf::rt::string_size(1, &self.name);
381 }
382 if !self.field_type.is_empty() {
383 my_size += ::protobuf::rt::string_size(8, &self.field_type);
384 }
385 for value in &self.labels {
386 let len = value.compute_size();
387 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
388 };
389 if self.metric_kind != MetricDescriptor_MetricKind::METRIC_KIND_UNSPECIFIED {
390 my_size += ::protobuf::rt::enum_size(3, self.metric_kind);
391 }
392 if self.value_type != MetricDescriptor_ValueType::VALUE_TYPE_UNSPECIFIED {
393 my_size += ::protobuf::rt::enum_size(4, self.value_type);
394 }
395 if !self.unit.is_empty() {
396 my_size += ::protobuf::rt::string_size(5, &self.unit);
397 }
398 if !self.description.is_empty() {
399 my_size += ::protobuf::rt::string_size(6, &self.description);
400 }
401 if !self.display_name.is_empty() {
402 my_size += ::protobuf::rt::string_size(7, &self.display_name);
403 }
404 if let Some(ref v) = self.metadata.as_ref() {
405 let len = v.compute_size();
406 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
407 }
408 if self.launch_stage != super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED {
409 my_size += ::protobuf::rt::enum_size(12, self.launch_stage);
410 }
411 for value in &self.monitored_resource_types {
412 my_size += ::protobuf::rt::string_size(13, &value);
413 };
414 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
415 self.cached_size.set(my_size);
416 my_size
417 }
418
419 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
420 if !self.name.is_empty() {
421 os.write_string(1, &self.name)?;
422 }
423 if !self.field_type.is_empty() {
424 os.write_string(8, &self.field_type)?;
425 }
426 for v in &self.labels {
427 os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
428 os.write_raw_varint32(v.get_cached_size())?;
429 v.write_to_with_cached_sizes(os)?;
430 };
431 if self.metric_kind != MetricDescriptor_MetricKind::METRIC_KIND_UNSPECIFIED {
432 os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.metric_kind))?;
433 }
434 if self.value_type != MetricDescriptor_ValueType::VALUE_TYPE_UNSPECIFIED {
435 os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.value_type))?;
436 }
437 if !self.unit.is_empty() {
438 os.write_string(5, &self.unit)?;
439 }
440 if !self.description.is_empty() {
441 os.write_string(6, &self.description)?;
442 }
443 if !self.display_name.is_empty() {
444 os.write_string(7, &self.display_name)?;
445 }
446 if let Some(ref v) = self.metadata.as_ref() {
447 os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
448 os.write_raw_varint32(v.get_cached_size())?;
449 v.write_to_with_cached_sizes(os)?;
450 }
451 if self.launch_stage != super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED {
452 os.write_enum(12, ::protobuf::ProtobufEnum::value(&self.launch_stage))?;
453 }
454 for v in &self.monitored_resource_types {
455 os.write_string(13, &v)?;
456 };
457 os.write_unknown_fields(self.get_unknown_fields())?;
458 ::std::result::Result::Ok(())
459 }
460
461 fn get_cached_size(&self) -> u32 {
462 self.cached_size.get()
463 }
464
465 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
466 &self.unknown_fields
467 }
468
469 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
470 &mut self.unknown_fields
471 }
472
473 fn as_any(&self) -> &dyn (::std::any::Any) {
474 self as &dyn (::std::any::Any)
475 }
476 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
477 self as &mut dyn (::std::any::Any)
478 }
479 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
480 self
481 }
482
483 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
484 Self::descriptor_static()
485 }
486
487 fn new() -> MetricDescriptor {
488 MetricDescriptor::new()
489 }
490
491 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
492 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
493 descriptor.get(|| {
494 let mut fields = ::std::vec::Vec::new();
495 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
496 "name",
497 |m: &MetricDescriptor| { &m.name },
498 |m: &mut MetricDescriptor| { &mut m.name },
499 ));
500 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
501 "type",
502 |m: &MetricDescriptor| { &m.field_type },
503 |m: &mut MetricDescriptor| { &mut m.field_type },
504 ));
505 fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::label::LabelDescriptor>>(
506 "labels",
507 |m: &MetricDescriptor| { &m.labels },
508 |m: &mut MetricDescriptor| { &mut m.labels },
509 ));
510 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<MetricDescriptor_MetricKind>>(
511 "metric_kind",
512 |m: &MetricDescriptor| { &m.metric_kind },
513 |m: &mut MetricDescriptor| { &mut m.metric_kind },
514 ));
515 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<MetricDescriptor_ValueType>>(
516 "value_type",
517 |m: &MetricDescriptor| { &m.value_type },
518 |m: &mut MetricDescriptor| { &mut m.value_type },
519 ));
520 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
521 "unit",
522 |m: &MetricDescriptor| { &m.unit },
523 |m: &mut MetricDescriptor| { &mut m.unit },
524 ));
525 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
526 "description",
527 |m: &MetricDescriptor| { &m.description },
528 |m: &mut MetricDescriptor| { &mut m.description },
529 ));
530 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
531 "display_name",
532 |m: &MetricDescriptor| { &m.display_name },
533 |m: &mut MetricDescriptor| { &mut m.display_name },
534 ));
535 fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<MetricDescriptor_MetricDescriptorMetadata>>(
536 "metadata",
537 |m: &MetricDescriptor| { &m.metadata },
538 |m: &mut MetricDescriptor| { &mut m.metadata },
539 ));
540 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<super::launch_stage::LaunchStage>>(
541 "launch_stage",
542 |m: &MetricDescriptor| { &m.launch_stage },
543 |m: &mut MetricDescriptor| { &mut m.launch_stage },
544 ));
545 fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
546 "monitored_resource_types",
547 |m: &MetricDescriptor| { &m.monitored_resource_types },
548 |m: &mut MetricDescriptor| { &mut m.monitored_resource_types },
549 ));
550 ::protobuf::reflect::MessageDescriptor::new_pb_name::<MetricDescriptor>(
551 "MetricDescriptor",
552 fields,
553 file_descriptor_proto()
554 )
555 })
556 }
557
558 fn default_instance() -> &'static MetricDescriptor {
559 static instance: ::protobuf::rt::LazyV2<MetricDescriptor> = ::protobuf::rt::LazyV2::INIT;
560 instance.get(MetricDescriptor::new)
561 }
562}
563
564impl ::protobuf::Clear for MetricDescriptor {
565 fn clear(&mut self) {
566 self.name.clear();
567 self.field_type.clear();
568 self.labels.clear();
569 self.metric_kind = MetricDescriptor_MetricKind::METRIC_KIND_UNSPECIFIED;
570 self.value_type = MetricDescriptor_ValueType::VALUE_TYPE_UNSPECIFIED;
571 self.unit.clear();
572 self.description.clear();
573 self.display_name.clear();
574 self.metadata.clear();
575 self.launch_stage = super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED;
576 self.monitored_resource_types.clear();
577 self.unknown_fields.clear();
578 }
579}
580
581impl ::std::fmt::Debug for MetricDescriptor {
582 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
583 ::protobuf::text_format::fmt(self, f)
584 }
585}
586
587impl ::protobuf::reflect::ProtobufValue for MetricDescriptor {
588 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
589 ::protobuf::reflect::ReflectValueRef::Message(self)
590 }
591}
592
593#[derive(PartialEq,Clone,Default)]
594pub struct MetricDescriptor_MetricDescriptorMetadata {
595 pub launch_stage: super::launch_stage::LaunchStage,
597 pub sample_period: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>,
598 pub ingest_delay: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>,
599 pub unknown_fields: ::protobuf::UnknownFields,
601 pub cached_size: ::protobuf::CachedSize,
602}
603
604impl<'a> ::std::default::Default for &'a MetricDescriptor_MetricDescriptorMetadata {
605 fn default() -> &'a MetricDescriptor_MetricDescriptorMetadata {
606 <MetricDescriptor_MetricDescriptorMetadata as ::protobuf::Message>::default_instance()
607 }
608}
609
610impl MetricDescriptor_MetricDescriptorMetadata {
611 pub fn new() -> MetricDescriptor_MetricDescriptorMetadata {
612 ::std::default::Default::default()
613 }
614
615 pub fn get_launch_stage(&self) -> super::launch_stage::LaunchStage {
619 self.launch_stage
620 }
621 pub fn clear_launch_stage(&mut self) {
622 self.launch_stage = super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED;
623 }
624
625 pub fn set_launch_stage(&mut self, v: super::launch_stage::LaunchStage) {
627 self.launch_stage = v;
628 }
629
630 pub fn get_sample_period(&self) -> &::protobuf::well_known_types::Duration {
634 self.sample_period.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance())
635 }
636 pub fn clear_sample_period(&mut self) {
637 self.sample_period.clear();
638 }
639
640 pub fn has_sample_period(&self) -> bool {
641 self.sample_period.is_some()
642 }
643
644 pub fn set_sample_period(&mut self, v: ::protobuf::well_known_types::Duration) {
646 self.sample_period = ::protobuf::SingularPtrField::some(v);
647 }
648
649 pub fn mut_sample_period(&mut self) -> &mut ::protobuf::well_known_types::Duration {
652 if self.sample_period.is_none() {
653 self.sample_period.set_default();
654 }
655 self.sample_period.as_mut().unwrap()
656 }
657
658 pub fn take_sample_period(&mut self) -> ::protobuf::well_known_types::Duration {
660 self.sample_period.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new())
661 }
662
663 pub fn get_ingest_delay(&self) -> &::protobuf::well_known_types::Duration {
667 self.ingest_delay.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance())
668 }
669 pub fn clear_ingest_delay(&mut self) {
670 self.ingest_delay.clear();
671 }
672
673 pub fn has_ingest_delay(&self) -> bool {
674 self.ingest_delay.is_some()
675 }
676
677 pub fn set_ingest_delay(&mut self, v: ::protobuf::well_known_types::Duration) {
679 self.ingest_delay = ::protobuf::SingularPtrField::some(v);
680 }
681
682 pub fn mut_ingest_delay(&mut self) -> &mut ::protobuf::well_known_types::Duration {
685 if self.ingest_delay.is_none() {
686 self.ingest_delay.set_default();
687 }
688 self.ingest_delay.as_mut().unwrap()
689 }
690
691 pub fn take_ingest_delay(&mut self) -> ::protobuf::well_known_types::Duration {
693 self.ingest_delay.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new())
694 }
695}
696
697impl ::protobuf::Message for MetricDescriptor_MetricDescriptorMetadata {
698 fn is_initialized(&self) -> bool {
699 for v in &self.sample_period {
700 if !v.is_initialized() {
701 return false;
702 }
703 };
704 for v in &self.ingest_delay {
705 if !v.is_initialized() {
706 return false;
707 }
708 };
709 true
710 }
711
712 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
713 while !is.eof()? {
714 let (field_number, wire_type) = is.read_tag_unpack()?;
715 match field_number {
716 1 => {
717 ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.launch_stage, 1, &mut self.unknown_fields)?
718 },
719 2 => {
720 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.sample_period)?;
721 },
722 3 => {
723 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.ingest_delay)?;
724 },
725 _ => {
726 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
727 },
728 };
729 }
730 ::std::result::Result::Ok(())
731 }
732
733 #[allow(unused_variables)]
735 fn compute_size(&self) -> u32 {
736 let mut my_size = 0;
737 if self.launch_stage != super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED {
738 my_size += ::protobuf::rt::enum_size(1, self.launch_stage);
739 }
740 if let Some(ref v) = self.sample_period.as_ref() {
741 let len = v.compute_size();
742 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
743 }
744 if let Some(ref v) = self.ingest_delay.as_ref() {
745 let len = v.compute_size();
746 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
747 }
748 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
749 self.cached_size.set(my_size);
750 my_size
751 }
752
753 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
754 if self.launch_stage != super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED {
755 os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.launch_stage))?;
756 }
757 if let Some(ref v) = self.sample_period.as_ref() {
758 os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
759 os.write_raw_varint32(v.get_cached_size())?;
760 v.write_to_with_cached_sizes(os)?;
761 }
762 if let Some(ref v) = self.ingest_delay.as_ref() {
763 os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
764 os.write_raw_varint32(v.get_cached_size())?;
765 v.write_to_with_cached_sizes(os)?;
766 }
767 os.write_unknown_fields(self.get_unknown_fields())?;
768 ::std::result::Result::Ok(())
769 }
770
771 fn get_cached_size(&self) -> u32 {
772 self.cached_size.get()
773 }
774
775 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
776 &self.unknown_fields
777 }
778
779 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
780 &mut self.unknown_fields
781 }
782
783 fn as_any(&self) -> &dyn (::std::any::Any) {
784 self as &dyn (::std::any::Any)
785 }
786 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
787 self as &mut dyn (::std::any::Any)
788 }
789 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
790 self
791 }
792
793 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
794 Self::descriptor_static()
795 }
796
797 fn new() -> MetricDescriptor_MetricDescriptorMetadata {
798 MetricDescriptor_MetricDescriptorMetadata::new()
799 }
800
801 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
802 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
803 descriptor.get(|| {
804 let mut fields = ::std::vec::Vec::new();
805 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<super::launch_stage::LaunchStage>>(
806 "launch_stage",
807 |m: &MetricDescriptor_MetricDescriptorMetadata| { &m.launch_stage },
808 |m: &mut MetricDescriptor_MetricDescriptorMetadata| { &mut m.launch_stage },
809 ));
810 fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>(
811 "sample_period",
812 |m: &MetricDescriptor_MetricDescriptorMetadata| { &m.sample_period },
813 |m: &mut MetricDescriptor_MetricDescriptorMetadata| { &mut m.sample_period },
814 ));
815 fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>(
816 "ingest_delay",
817 |m: &MetricDescriptor_MetricDescriptorMetadata| { &m.ingest_delay },
818 |m: &mut MetricDescriptor_MetricDescriptorMetadata| { &mut m.ingest_delay },
819 ));
820 ::protobuf::reflect::MessageDescriptor::new_pb_name::<MetricDescriptor_MetricDescriptorMetadata>(
821 "MetricDescriptor.MetricDescriptorMetadata",
822 fields,
823 file_descriptor_proto()
824 )
825 })
826 }
827
828 fn default_instance() -> &'static MetricDescriptor_MetricDescriptorMetadata {
829 static instance: ::protobuf::rt::LazyV2<MetricDescriptor_MetricDescriptorMetadata> = ::protobuf::rt::LazyV2::INIT;
830 instance.get(MetricDescriptor_MetricDescriptorMetadata::new)
831 }
832}
833
834impl ::protobuf::Clear for MetricDescriptor_MetricDescriptorMetadata {
835 fn clear(&mut self) {
836 self.launch_stage = super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED;
837 self.sample_period.clear();
838 self.ingest_delay.clear();
839 self.unknown_fields.clear();
840 }
841}
842
843impl ::std::fmt::Debug for MetricDescriptor_MetricDescriptorMetadata {
844 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
845 ::protobuf::text_format::fmt(self, f)
846 }
847}
848
849impl ::protobuf::reflect::ProtobufValue for MetricDescriptor_MetricDescriptorMetadata {
850 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
851 ::protobuf::reflect::ReflectValueRef::Message(self)
852 }
853}
854
855#[derive(Clone,PartialEq,Eq,Debug,Hash)]
856pub enum MetricDescriptor_MetricKind {
857 METRIC_KIND_UNSPECIFIED = 0,
858 GAUGE = 1,
859 DELTA = 2,
860 CUMULATIVE = 3,
861}
862
863impl ::protobuf::ProtobufEnum for MetricDescriptor_MetricKind {
864 fn value(&self) -> i32 {
865 *self as i32
866 }
867
868 fn from_i32(value: i32) -> ::std::option::Option<MetricDescriptor_MetricKind> {
869 match value {
870 0 => ::std::option::Option::Some(MetricDescriptor_MetricKind::METRIC_KIND_UNSPECIFIED),
871 1 => ::std::option::Option::Some(MetricDescriptor_MetricKind::GAUGE),
872 2 => ::std::option::Option::Some(MetricDescriptor_MetricKind::DELTA),
873 3 => ::std::option::Option::Some(MetricDescriptor_MetricKind::CUMULATIVE),
874 _ => ::std::option::Option::None
875 }
876 }
877
878 fn values() -> &'static [Self] {
879 static values: &'static [MetricDescriptor_MetricKind] = &[
880 MetricDescriptor_MetricKind::METRIC_KIND_UNSPECIFIED,
881 MetricDescriptor_MetricKind::GAUGE,
882 MetricDescriptor_MetricKind::DELTA,
883 MetricDescriptor_MetricKind::CUMULATIVE,
884 ];
885 values
886 }
887
888 fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
889 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
890 descriptor.get(|| {
891 ::protobuf::reflect::EnumDescriptor::new_pb_name::<MetricDescriptor_MetricKind>("MetricDescriptor.MetricKind", file_descriptor_proto())
892 })
893 }
894}
895
896impl ::std::marker::Copy for MetricDescriptor_MetricKind {
897}
898
899impl ::std::default::Default for MetricDescriptor_MetricKind {
900 fn default() -> Self {
901 MetricDescriptor_MetricKind::METRIC_KIND_UNSPECIFIED
902 }
903}
904
905impl ::protobuf::reflect::ProtobufValue for MetricDescriptor_MetricKind {
906 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
907 ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
908 }
909}
910
911#[derive(Clone,PartialEq,Eq,Debug,Hash)]
912pub enum MetricDescriptor_ValueType {
913 VALUE_TYPE_UNSPECIFIED = 0,
914 BOOL = 1,
915 INT64 = 2,
916 DOUBLE = 3,
917 STRING = 4,
918 DISTRIBUTION = 5,
919 MONEY = 6,
920}
921
922impl ::protobuf::ProtobufEnum for MetricDescriptor_ValueType {
923 fn value(&self) -> i32 {
924 *self as i32
925 }
926
927 fn from_i32(value: i32) -> ::std::option::Option<MetricDescriptor_ValueType> {
928 match value {
929 0 => ::std::option::Option::Some(MetricDescriptor_ValueType::VALUE_TYPE_UNSPECIFIED),
930 1 => ::std::option::Option::Some(MetricDescriptor_ValueType::BOOL),
931 2 => ::std::option::Option::Some(MetricDescriptor_ValueType::INT64),
932 3 => ::std::option::Option::Some(MetricDescriptor_ValueType::DOUBLE),
933 4 => ::std::option::Option::Some(MetricDescriptor_ValueType::STRING),
934 5 => ::std::option::Option::Some(MetricDescriptor_ValueType::DISTRIBUTION),
935 6 => ::std::option::Option::Some(MetricDescriptor_ValueType::MONEY),
936 _ => ::std::option::Option::None
937 }
938 }
939
940 fn values() -> &'static [Self] {
941 static values: &'static [MetricDescriptor_ValueType] = &[
942 MetricDescriptor_ValueType::VALUE_TYPE_UNSPECIFIED,
943 MetricDescriptor_ValueType::BOOL,
944 MetricDescriptor_ValueType::INT64,
945 MetricDescriptor_ValueType::DOUBLE,
946 MetricDescriptor_ValueType::STRING,
947 MetricDescriptor_ValueType::DISTRIBUTION,
948 MetricDescriptor_ValueType::MONEY,
949 ];
950 values
951 }
952
953 fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
954 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
955 descriptor.get(|| {
956 ::protobuf::reflect::EnumDescriptor::new_pb_name::<MetricDescriptor_ValueType>("MetricDescriptor.ValueType", file_descriptor_proto())
957 })
958 }
959}
960
961impl ::std::marker::Copy for MetricDescriptor_ValueType {
962}
963
964impl ::std::default::Default for MetricDescriptor_ValueType {
965 fn default() -> Self {
966 MetricDescriptor_ValueType::VALUE_TYPE_UNSPECIFIED
967 }
968}
969
970impl ::protobuf::reflect::ProtobufValue for MetricDescriptor_ValueType {
971 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
972 ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
973 }
974}
975
976#[derive(PartialEq,Clone,Default)]
977pub struct Metric {
978 pub field_type: ::std::string::String,
980 pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
981 pub unknown_fields: ::protobuf::UnknownFields,
983 pub cached_size: ::protobuf::CachedSize,
984}
985
986impl<'a> ::std::default::Default for &'a Metric {
987 fn default() -> &'a Metric {
988 <Metric as ::protobuf::Message>::default_instance()
989 }
990}
991
992impl Metric {
993 pub fn new() -> Metric {
994 ::std::default::Default::default()
995 }
996
997 pub fn get_field_type(&self) -> &str {
1001 &self.field_type
1002 }
1003 pub fn clear_field_type(&mut self) {
1004 self.field_type.clear();
1005 }
1006
1007 pub fn set_field_type(&mut self, v: ::std::string::String) {
1009 self.field_type = v;
1010 }
1011
1012 pub fn mut_field_type(&mut self) -> &mut ::std::string::String {
1015 &mut self.field_type
1016 }
1017
1018 pub fn take_field_type(&mut self) -> ::std::string::String {
1020 ::std::mem::replace(&mut self.field_type, ::std::string::String::new())
1021 }
1022
1023 pub fn get_labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
1027 &self.labels
1028 }
1029 pub fn clear_labels(&mut self) {
1030 self.labels.clear();
1031 }
1032
1033 pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) {
1035 self.labels = v;
1036 }
1037
1038 pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> {
1040 &mut self.labels
1041 }
1042
1043 pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> {
1045 ::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new())
1046 }
1047}
1048
1049impl ::protobuf::Message for Metric {
1050 fn is_initialized(&self) -> bool {
1051 true
1052 }
1053
1054 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1055 while !is.eof()? {
1056 let (field_number, wire_type) = is.read_tag_unpack()?;
1057 match field_number {
1058 3 => {
1059 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_type)?;
1060 },
1061 2 => {
1062 ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?;
1063 },
1064 _ => {
1065 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1066 },
1067 };
1068 }
1069 ::std::result::Result::Ok(())
1070 }
1071
1072 #[allow(unused_variables)]
1074 fn compute_size(&self) -> u32 {
1075 let mut my_size = 0;
1076 if !self.field_type.is_empty() {
1077 my_size += ::protobuf::rt::string_size(3, &self.field_type);
1078 }
1079 my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.labels);
1080 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1081 self.cached_size.set(my_size);
1082 my_size
1083 }
1084
1085 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1086 if !self.field_type.is_empty() {
1087 os.write_string(3, &self.field_type)?;
1088 }
1089 ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.labels, os)?;
1090 os.write_unknown_fields(self.get_unknown_fields())?;
1091 ::std::result::Result::Ok(())
1092 }
1093
1094 fn get_cached_size(&self) -> u32 {
1095 self.cached_size.get()
1096 }
1097
1098 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1099 &self.unknown_fields
1100 }
1101
1102 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1103 &mut self.unknown_fields
1104 }
1105
1106 fn as_any(&self) -> &dyn (::std::any::Any) {
1107 self as &dyn (::std::any::Any)
1108 }
1109 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1110 self as &mut dyn (::std::any::Any)
1111 }
1112 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1113 self
1114 }
1115
1116 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1117 Self::descriptor_static()
1118 }
1119
1120 fn new() -> Metric {
1121 Metric::new()
1122 }
1123
1124 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
1125 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
1126 descriptor.get(|| {
1127 let mut fields = ::std::vec::Vec::new();
1128 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
1129 "type",
1130 |m: &Metric| { &m.field_type },
1131 |m: &mut Metric| { &mut m.field_type },
1132 ));
1133 fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(
1134 "labels",
1135 |m: &Metric| { &m.labels },
1136 |m: &mut Metric| { &mut m.labels },
1137 ));
1138 ::protobuf::reflect::MessageDescriptor::new_pb_name::<Metric>(
1139 "Metric",
1140 fields,
1141 file_descriptor_proto()
1142 )
1143 })
1144 }
1145
1146 fn default_instance() -> &'static Metric {
1147 static instance: ::protobuf::rt::LazyV2<Metric> = ::protobuf::rt::LazyV2::INIT;
1148 instance.get(Metric::new)
1149 }
1150}
1151
1152impl ::protobuf::Clear for Metric {
1153 fn clear(&mut self) {
1154 self.field_type.clear();
1155 self.labels.clear();
1156 self.unknown_fields.clear();
1157 }
1158}
1159
1160impl ::std::fmt::Debug for Metric {
1161 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1162 ::protobuf::text_format::fmt(self, f)
1163 }
1164}
1165
1166impl ::protobuf::reflect::ProtobufValue for Metric {
1167 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1168 ::protobuf::reflect::ReflectValueRef::Message(self)
1169 }
1170}
1171
1172static file_descriptor_proto_data: &'static [u8] = b"\
1173 \n\x17google/api/metric.proto\x12\ngoogle.api\x1a\x16google/api/label.pr\
1174 oto\x1a\x1dgoogle/api/launch_stage.proto\x1a\x1egoogle/protobuf/duration\
1175 .proto\"\xc1\x07\n\x10MetricDescriptor\x12\x12\n\x04name\x18\x01\x20\x01\
1176 (\tR\x04name\x12\x12\n\x04type\x18\x08\x20\x01(\tR\x04type\x123\n\x06lab\
1177 els\x18\x02\x20\x03(\x0b2\x1b.google.api.LabelDescriptorR\x06labels\x12H\
1178 \n\x0bmetric_kind\x18\x03\x20\x01(\x0e2'.google.api.MetricDescriptor.Met\
1179 ricKindR\nmetricKind\x12E\n\nvalue_type\x18\x04\x20\x01(\x0e2&.google.ap\
1180 i.MetricDescriptor.ValueTypeR\tvalueType\x12\x12\n\x04unit\x18\x05\x20\
1181 \x01(\tR\x04unit\x12\x20\n\x0bdescription\x18\x06\x20\x01(\tR\x0bdescrip\
1182 tion\x12!\n\x0cdisplay_name\x18\x07\x20\x01(\tR\x0bdisplayName\x12Q\n\
1183 \x08metadata\x18\n\x20\x01(\x0b25.google.api.MetricDescriptor.MetricDesc\
1184 riptorMetadataR\x08metadata\x12:\n\x0claunch_stage\x18\x0c\x20\x01(\x0e2\
1185 \x17.google.api.LaunchStageR\x0blaunchStage\x128\n\x18monitored_resource\
1186 _types\x18\r\x20\x03(\tR\x16monitoredResourceTypes\x1a\xd8\x01\n\x18Metr\
1187 icDescriptorMetadata\x12>\n\x0claunch_stage\x18\x01\x20\x01(\x0e2\x17.go\
1188 ogle.api.LaunchStageR\x0blaunchStageB\x02\x18\x01\x12>\n\rsample_period\
1189 \x18\x02\x20\x01(\x0b2\x19.google.protobuf.DurationR\x0csamplePeriod\x12\
1190 <\n\x0cingest_delay\x18\x03\x20\x01(\x0b2\x19.google.protobuf.DurationR\
1191 \x0bingestDelay\"O\n\nMetricKind\x12\x1b\n\x17METRIC_KIND_UNSPECIFIED\
1192 \x10\0\x12\t\n\x05GAUGE\x10\x01\x12\t\n\x05DELTA\x10\x02\x12\x0e\n\nCUMU\
1193 LATIVE\x10\x03\"q\n\tValueType\x12\x1a\n\x16VALUE_TYPE_UNSPECIFIED\x10\0\
1194 \x12\x08\n\x04BOOL\x10\x01\x12\t\n\x05INT64\x10\x02\x12\n\n\x06DOUBLE\
1195 \x10\x03\x12\n\n\x06STRING\x10\x04\x12\x10\n\x0cDISTRIBUTION\x10\x05\x12\
1196 \t\n\x05MONEY\x10\x06\"\x8f\x01\n\x06Metric\x12\x12\n\x04type\x18\x03\
1197 \x20\x01(\tR\x04type\x126\n\x06labels\x18\x02\x20\x03(\x0b2\x1e.google.a\
1198 pi.Metric.LabelsEntryR\x06labels\x1a9\n\x0bLabelsEntry\x12\x10\n\x03key\
1199 \x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05va\
1200 lue:\x028\x01B_\n\x0ecom.google.apiB\x0bMetricProtoP\x01Z7google.golang.\
1201 org/genproto/googleapis/api/metric;metric\xa2\x02\x04GAPIJ\xcdQ\n\x07\
1202 \x12\x05\x0e\0\x8b\x02\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\
1203 \x04\x20Copyright\x202023\x20Google\x20LLC\n\n\x20Licensed\x20under\x20t\
1204 he\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\
1205 \x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20complian\
1206 ce\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20\
1207 of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/\
1208 licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20la\
1209 w\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distributed\
1210 \x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20\
1211 IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20A\
1212 NY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20Li\
1213 cense\x20for\x20the\x20specific\x20language\x20governing\x20permissions\
1214 \x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\
1215 \x12\x03\x10\0\x13\n\t\n\x02\x03\0\x12\x03\x12\0\x20\n\t\n\x02\x03\x01\
1216 \x12\x03\x13\0'\n\t\n\x02\x03\x02\x12\x03\x14\0(\n\x08\n\x01\x08\x12\x03\
1217 \x16\0N\n\t\n\x02\x08\x0b\x12\x03\x16\0N\n\x08\n\x01\x08\x12\x03\x17\0\"\
1218 \n\t\n\x02\x08\n\x12\x03\x17\0\"\n\x08\n\x01\x08\x12\x03\x18\0,\n\t\n\
1219 \x02\x08\x08\x12\x03\x18\0,\n\x08\n\x01\x08\x12\x03\x19\0'\n\t\n\x02\x08\
1220 \x01\x12\x03\x19\0'\n\x08\n\x01\x08\x12\x03\x1a\0\"\n\t\n\x02\x08$\x12\
1221 \x03\x1a\0\"\n\xbf\x01\n\x02\x04\0\x12\x05\x20\0\xfe\x01\x01\x1a\xb1\x01\
1222 \x20Defines\x20a\x20metric\x20type\x20and\x20its\x20schema.\x20Once\x20a\
1223 \x20metric\x20descriptor\x20is\x20created,\n\x20deleting\x20or\x20alteri\
1224 ng\x20it\x20stops\x20data\x20collection\x20and\x20makes\x20the\x20metric\
1225 \x20type's\n\x20existing\x20data\x20unusable.\n\n\n\n\n\x03\x04\0\x01\
1226 \x12\x03\x20\x08\x18\n\xd9\x01\n\x04\x04\0\x04\0\x12\x04$\x024\x03\x1a\
1227 \xca\x01\x20The\x20kind\x20of\x20measurement.\x20It\x20describes\x20how\
1228 \x20the\x20data\x20is\x20reported.\n\x20For\x20information\x20on\x20sett\
1229 ing\x20the\x20start\x20time\x20and\x20end\x20time\x20based\x20on\n\x20th\
1230 e\x20MetricKind,\x20see\x20[TimeInterval][google.monitoring.v3.TimeInter\
1231 val].\n\n\x0c\n\x05\x04\0\x04\0\x01\x12\x03$\x07\x11\n/\n\x06\x04\0\x04\
1232 \0\x02\0\x12\x03&\x04\x20\x1a\x20\x20Do\x20not\x20use\x20this\x20default\
1233 \x20value.\n\n\x0e\n\x07\x04\0\x04\0\x02\0\x01\x12\x03&\x04\x1b\n\x0e\n\
1234 \x07\x04\0\x04\0\x02\0\x02\x12\x03&\x1e\x1f\n9\n\x06\x04\0\x04\0\x02\x01\
1235 \x12\x03)\x04\x0e\x1a*\x20An\x20instantaneous\x20measurement\x20of\x20a\
1236 \x20value.\n\n\x0e\n\x07\x04\0\x04\0\x02\x01\x01\x12\x03)\x04\t\n\x0e\n\
1237 \x07\x04\0\x04\0\x02\x01\x02\x12\x03)\x0c\r\n>\n\x06\x04\0\x04\0\x02\x02\
1238 \x12\x03,\x04\x0e\x1a/\x20The\x20change\x20in\x20a\x20value\x20during\
1239 \x20a\x20time\x20interval.\n\n\x0e\n\x07\x04\0\x04\0\x02\x02\x01\x12\x03\
1240 ,\x04\t\n\x0e\n\x07\x04\0\x04\0\x02\x02\x02\x12\x03,\x0c\r\n\x8a\x02\n\
1241 \x06\x04\0\x04\0\x02\x03\x12\x033\x04\x13\x1a\xfa\x01\x20A\x20value\x20a\
1242 ccumulated\x20over\x20a\x20time\x20interval.\x20\x20Cumulative\n\x20meas\
1243 urements\x20in\x20a\x20time\x20series\x20should\x20have\x20the\x20same\
1244 \x20start\x20time\n\x20and\x20increasing\x20end\x20times,\x20until\x20an\
1245 \x20event\x20resets\x20the\x20cumulative\n\x20value\x20to\x20zero\x20and\
1246 \x20sets\x20a\x20new\x20start\x20time\x20for\x20the\x20following\n\x20po\
1247 ints.\n\n\x0e\n\x07\x04\0\x04\0\x02\x03\x01\x12\x033\x04\x0e\n\x0e\n\x07\
1248 \x04\0\x04\0\x02\x03\x02\x12\x033\x11\x12\n+\n\x04\x04\0\x04\x01\x12\x04\
1249 7\x02N\x03\x1a\x1d\x20The\x20value\x20type\x20of\x20a\x20metric.\n\n\x0c\
1250 \n\x05\x04\0\x04\x01\x01\x12\x037\x07\x10\n/\n\x06\x04\0\x04\x01\x02\0\
1251 \x12\x039\x04\x1f\x1a\x20\x20Do\x20not\x20use\x20this\x20default\x20valu\
1252 e.\n\n\x0e\n\x07\x04\0\x04\x01\x02\0\x01\x12\x039\x04\x1a\n\x0e\n\x07\
1253 \x04\0\x04\x01\x02\0\x02\x12\x039\x1d\x1e\ni\n\x06\x04\0\x04\x01\x02\x01\
1254 \x12\x03=\x04\r\x1aZ\x20The\x20value\x20is\x20a\x20boolean.\n\x20This\
1255 \x20value\x20type\x20can\x20be\x20used\x20only\x20if\x20the\x20metric\
1256 \x20kind\x20is\x20`GAUGE`.\n\n\x0e\n\x07\x04\0\x04\x01\x02\x01\x01\x12\
1257 \x03=\x04\x08\n\x0e\n\x07\x04\0\x04\x01\x02\x01\x02\x12\x03=\x0b\x0c\n6\
1258 \n\x06\x04\0\x04\x01\x02\x02\x12\x03@\x04\x0e\x1a'\x20The\x20value\x20is\
1259 \x20a\x20signed\x2064-bit\x20integer.\n\n\x0e\n\x07\x04\0\x04\x01\x02\
1260 \x02\x01\x12\x03@\x04\t\n\x0e\n\x07\x04\0\x04\x01\x02\x02\x02\x12\x03@\
1261 \x0c\r\nG\n\x06\x04\0\x04\x01\x02\x03\x12\x03C\x04\x0f\x1a8\x20The\x20va\
1262 lue\x20is\x20a\x20double\x20precision\x20floating\x20point\x20number.\n\
1263 \n\x0e\n\x07\x04\0\x04\x01\x02\x03\x01\x12\x03C\x04\n\n\x0e\n\x07\x04\0\
1264 \x04\x01\x02\x03\x02\x12\x03C\r\x0e\nm\n\x06\x04\0\x04\x01\x02\x04\x12\
1265 \x03G\x04\x0f\x1a^\x20The\x20value\x20is\x20a\x20text\x20string.\n\x20Th\
1266 is\x20value\x20type\x20can\x20be\x20used\x20only\x20if\x20the\x20metric\
1267 \x20kind\x20is\x20`GAUGE`.\n\n\x0e\n\x07\x04\0\x04\x01\x02\x04\x01\x12\
1268 \x03G\x04\n\n\x0e\n\x07\x04\0\x04\x01\x02\x04\x02\x12\x03G\r\x0e\nJ\n\
1269 \x06\x04\0\x04\x01\x02\x05\x12\x03J\x04\x15\x1a;\x20The\x20value\x20is\
1270 \x20a\x20[`Distribution`][google.api.Distribution].\n\n\x0e\n\x07\x04\0\
1271 \x04\x01\x02\x05\x01\x12\x03J\x04\x10\n\x0e\n\x07\x04\0\x04\x01\x02\x05\
1272 \x02\x12\x03J\x13\x14\n$\n\x06\x04\0\x04\x01\x02\x06\x12\x03M\x04\x0e\
1273 \x1a\x15\x20The\x20value\x20is\x20money.\n\n\x0e\n\x07\x04\0\x04\x01\x02\
1274 \x06\x01\x12\x03M\x04\t\n\x0e\n\x07\x04\0\x04\x01\x02\x06\x02\x12\x03M\
1275 \x0c\r\nW\n\x04\x04\0\x03\0\x12\x04Q\x02a\x03\x1aI\x20Additional\x20anno\
1276 tations\x20that\x20can\x20be\x20used\x20to\x20guide\x20the\x20usage\x20o\
1277 f\x20a\x20metric.\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\x03Q\n\"\n~\n\x06\
1278 \x04\0\x03\0\x02\0\x12\x03U\x045\x1ao\x20Deprecated.\x20Must\x20use\x20t\
1279 he\n\x20[MetricDescriptor.launch_stage][google.api.MetricDescriptor.laun\
1280 ch_stage]\n\x20instead.\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x06\x12\x03U\x04\
1281 \x0f\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x03U\x10\x1c\n\x0e\n\x07\x04\
1282 \0\x03\0\x02\0\x03\x12\x03U\x1f\x20\n\x0e\n\x07\x04\0\x03\0\x02\0\x08\
1283 \x12\x03U!4\n\x0f\n\x08\x04\0\x03\0\x02\0\x08\x03\x12\x03U\"3\n\x8a\x02\
1284 \n\x06\x04\0\x03\0\x02\x01\x12\x03[\x04/\x1a\xfa\x01\x20The\x20sampling\
1285 \x20period\x20of\x20metric\x20data\x20points.\x20For\x20metrics\x20which\
1286 \x20are\x20written\n\x20periodically,\x20consecutive\x20data\x20points\
1287 \x20are\x20stored\x20at\x20this\x20time\x20interval,\n\x20excluding\x20d\
1288 ata\x20loss\x20due\x20to\x20errors.\x20Metrics\x20with\x20a\x20higher\
1289 \x20granularity\x20have\n\x20a\x20smaller\x20sampling\x20period.\n\n\x0e\
1290 \n\x07\x04\0\x03\0\x02\x01\x06\x12\x03[\x04\x1c\n\x0e\n\x07\x04\0\x03\0\
1291 \x02\x01\x01\x12\x03[\x1d*\n\x0e\n\x07\x04\0\x03\0\x02\x01\x03\x12\x03[-\
1292 .\n\xbc\x01\n\x06\x04\0\x03\0\x02\x02\x12\x03`\x04.\x1a\xac\x01\x20The\
1293 \x20delay\x20of\x20data\x20points\x20caused\x20by\x20ingestion.\x20Data\
1294 \x20points\x20older\x20than\x20this\n\x20age\x20are\x20guaranteed\x20to\
1295 \x20be\x20ingested\x20and\x20available\x20to\x20be\x20read,\x20excluding\
1296 \n\x20data\x20loss\x20due\x20to\x20errors.\n\n\x0e\n\x07\x04\0\x03\0\x02\
1297 \x02\x06\x12\x03`\x04\x1c\n\x0e\n\x07\x04\0\x03\0\x02\x02\x01\x12\x03`\
1298 \x1d)\n\x0e\n\x07\x04\0\x03\0\x02\x02\x03\x12\x03`,-\n:\n\x04\x04\0\x02\
1299 \0\x12\x03d\x02\x12\x1a-\x20The\x20resource\x20name\x20of\x20the\x20metr\
1300 ic\x20descriptor.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03d\x02\x08\n\x0c\n\
1301 \x05\x04\0\x02\0\x01\x12\x03d\t\r\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03d\
1302 \x10\x11\n\xa9\x03\n\x04\x04\0\x02\x01\x12\x03n\x02\x12\x1a\x9b\x03\x20T\
1303 he\x20metric\x20type,\x20including\x20its\x20DNS\x20name\x20prefix.\x20T\
1304 he\x20type\x20is\x20not\n\x20URL-encoded.\x20All\x20user-defined\x20metr\
1305 ic\x20types\x20have\x20the\x20DNS\x20name\n\x20`custom.googleapis.com`\
1306 \x20or\x20`external.googleapis.com`.\x20Metric\x20types\x20should\n\x20u\
1307 se\x20a\x20natural\x20hierarchical\x20grouping.\x20For\x20example:\n\n\
1308 \x20\x20\x20\x20\x20\"custom.googleapis.com/invoice/paid/amount\"\n\x20\
1309 \x20\x20\x20\x20\"external.googleapis.com/prometheus/up\"\n\x20\x20\x20\
1310 \x20\x20\"appengine.googleapis.com/http/server/response_latencies\"\n\n\
1311 \x0c\n\x05\x04\0\x02\x01\x05\x12\x03n\x02\x08\n\x0c\n\x05\x04\0\x02\x01\
1312 \x01\x12\x03n\t\r\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03n\x10\x11\n\xd5\
1313 \x02\n\x04\x04\0\x02\x02\x12\x03v\x02&\x1a\xc7\x02\x20The\x20set\x20of\
1314 \x20labels\x20that\x20can\x20be\x20used\x20to\x20describe\x20a\x20specif\
1315 ic\n\x20instance\x20of\x20this\x20metric\x20type.\x20For\x20example,\x20\
1316 the\n\x20`appengine.googleapis.com/http/server/response_latencies`\x20me\
1317 tric\n\x20type\x20has\x20a\x20label\x20for\x20the\x20HTTP\x20response\
1318 \x20code,\x20`response_code`,\x20so\n\x20you\x20can\x20look\x20at\x20lat\
1319 encies\x20for\x20successful\x20responses\x20or\x20just\n\x20for\x20respo\
1320 nses\x20that\x20failed.\n\n\x0c\n\x05\x04\0\x02\x02\x04\x12\x03v\x02\n\n\
1321 \x0c\n\x05\x04\0\x02\x02\x06\x12\x03v\x0b\x1a\n\x0c\n\x05\x04\0\x02\x02\
1322 \x01\x12\x03v\x1b!\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03v$%\n\xa6\x01\n\
1323 \x04\x04\0\x02\x03\x12\x03z\x02\x1d\x1a\x98\x01\x20Whether\x20the\x20met\
1324 ric\x20records\x20instantaneous\x20values,\x20changes\x20to\x20a\x20valu\
1325 e,\x20etc.\n\x20Some\x20combinations\x20of\x20`metric_kind`\x20and\x20`v\
1326 alue_type`\x20might\x20not\x20be\x20supported.\n\n\x0c\n\x05\x04\0\x02\
1327 \x03\x06\x12\x03z\x02\x0c\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03z\r\x18\n\
1328 \x0c\n\x05\x04\0\x02\x03\x03\x12\x03z\x1b\x1c\n\xa1\x01\n\x04\x04\0\x02\
1329 \x04\x12\x03~\x02\x1b\x1a\x93\x01\x20Whether\x20the\x20measurement\x20is\
1330 \x20an\x20integer,\x20a\x20floating-point\x20number,\x20etc.\n\x20Some\
1331 \x20combinations\x20of\x20`metric_kind`\x20and\x20`value_type`\x20might\
1332 \x20not\x20be\x20supported.\n\n\x0c\n\x05\x04\0\x02\x04\x06\x12\x03~\x02\
1333 \x0b\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03~\x0c\x16\n\x0c\n\x05\x04\0\
1334 \x02\x04\x03\x12\x03~\x19\x1a\n\xca\x1e\n\x04\x04\0\x02\x05\x12\x04\xe6\
1335 \x01\x02\x12\x1a\xbb\x1e\x20The\x20units\x20in\x20which\x20the\x20metric\
1336 \x20value\x20is\x20reported.\x20It\x20is\x20only\x20applicable\n\x20if\
1337 \x20the\x20`value_type`\x20is\x20`INT64`,\x20`DOUBLE`,\x20or\x20`DISTRIB\
1338 UTION`.\x20The\x20`unit`\n\x20defines\x20the\x20representation\x20of\x20\
1339 the\x20stored\x20metric\x20values.\n\n\x20Different\x20systems\x20might\
1340 \x20scale\x20the\x20values\x20to\x20be\x20more\x20easily\x20displayed\
1341 \x20(so\x20a\n\x20value\x20of\x20`0.02kBy`\x20_might_\x20be\x20displayed\
1342 \x20as\x20`20By`,\x20and\x20a\x20value\x20of\n\x20`3523kBy`\x20_might_\
1343 \x20be\x20displayed\x20as\x20`3.5MBy`).\x20However,\x20if\x20the\x20`uni\
1344 t`\x20is\n\x20`kBy`,\x20then\x20the\x20value\x20of\x20the\x20metric\x20i\
1345 s\x20always\x20in\x20thousands\x20of\x20bytes,\x20no\n\x20matter\x20how\
1346 \x20it\x20might\x20be\x20displayed.\n\n\x20If\x20you\x20want\x20a\x20cus\
1347 tom\x20metric\x20to\x20record\x20the\x20exact\x20number\x20of\x20CPU-sec\
1348 onds\x20used\n\x20by\x20a\x20job,\x20you\x20can\x20create\x20an\x20`INT6\
1349 4\x20CUMULATIVE`\x20metric\x20whose\x20`unit`\x20is\n\x20`s{CPU}`\x20(or\
1350 \x20equivalently\x20`1s{CPU}`\x20or\x20just\x20`s`).\x20If\x20the\x20job\
1351 \x20uses\x2012,005\n\x20CPU-seconds,\x20then\x20the\x20value\x20is\x20wr\
1352 itten\x20as\x20`12005`.\n\n\x20Alternatively,\x20if\x20you\x20want\x20a\
1353 \x20custom\x20metric\x20to\x20record\x20data\x20in\x20a\x20more\n\x20gra\
1354 nular\x20way,\x20you\x20can\x20create\x20a\x20`DOUBLE\x20CUMULATIVE`\x20\
1355 metric\x20whose\x20`unit`\x20is\n\x20`ks{CPU}`,\x20and\x20then\x20write\
1356 \x20the\x20value\x20`12.005`\x20(which\x20is\x20`12005/1000`),\n\x20or\
1357 \x20use\x20`Kis{CPU}`\x20and\x20write\x20`11.723`\x20(which\x20is\x20`12\
1358 005/1024`).\n\n\x20The\x20supported\x20units\x20are\x20a\x20subset\x20of\
1359 \x20[The\x20Unified\x20Code\x20for\x20Units\x20of\n\x20Measure](https://\
1360 unitsofmeasure.org/ucum.html)\x20standard:\n\n\x20**Basic\x20units\x20(U\
1361 NIT)**\n\n\x20*\x20`bit`\x20\x20\x20bit\n\x20*\x20`By`\x20\x20\x20\x20by\
1362 te\n\x20*\x20`s`\x20\x20\x20\x20\x20second\n\x20*\x20`min`\x20\x20\x20mi\
1363 nute\n\x20*\x20`h`\x20\x20\x20\x20\x20hour\n\x20*\x20`d`\x20\x20\x20\x20\
1364 \x20day\n\x20*\x20`1`\x20\x20\x20\x20\x20dimensionless\n\n\x20**Prefixes\
1365 \x20(PREFIX)**\n\n\x20*\x20`k`\x20\x20\x20\x20\x20kilo\x20\x20\x20\x20(1\
1366 0^3)\n\x20*\x20`M`\x20\x20\x20\x20\x20mega\x20\x20\x20\x20(10^6)\n\x20*\
1367 \x20`G`\x20\x20\x20\x20\x20giga\x20\x20\x20\x20(10^9)\n\x20*\x20`T`\x20\
1368 \x20\x20\x20\x20tera\x20\x20\x20\x20(10^12)\n\x20*\x20`P`\x20\x20\x20\
1369 \x20\x20peta\x20\x20\x20\x20(10^15)\n\x20*\x20`E`\x20\x20\x20\x20\x20exa\
1370 \x20\x20\x20\x20\x20(10^18)\n\x20*\x20`Z`\x20\x20\x20\x20\x20zetta\x20\
1371 \x20\x20(10^21)\n\x20*\x20`Y`\x20\x20\x20\x20\x20yotta\x20\x20\x20(10^24\
1372 )\n\n\x20*\x20`m`\x20\x20\x20\x20\x20milli\x20\x20\x20(10^-3)\n\x20*\x20\
1373 `u`\x20\x20\x20\x20\x20micro\x20\x20\x20(10^-6)\n\x20*\x20`n`\x20\x20\
1374 \x20\x20\x20nano\x20\x20\x20\x20(10^-9)\n\x20*\x20`p`\x20\x20\x20\x20\
1375 \x20pico\x20\x20\x20\x20(10^-12)\n\x20*\x20`f`\x20\x20\x20\x20\x20femto\
1376 \x20\x20\x20(10^-15)\n\x20*\x20`a`\x20\x20\x20\x20\x20atto\x20\x20\x20\
1377 \x20(10^-18)\n\x20*\x20`z`\x20\x20\x20\x20\x20zepto\x20\x20\x20(10^-21)\
1378 \n\x20*\x20`y`\x20\x20\x20\x20\x20yocto\x20\x20\x20(10^-24)\n\n\x20*\x20\
1379 `Ki`\x20\x20\x20\x20kibi\x20\x20\x20\x20(2^10)\n\x20*\x20`Mi`\x20\x20\
1380 \x20\x20mebi\x20\x20\x20\x20(2^20)\n\x20*\x20`Gi`\x20\x20\x20\x20gibi\
1381 \x20\x20\x20\x20(2^30)\n\x20*\x20`Ti`\x20\x20\x20\x20tebi\x20\x20\x20\
1382 \x20(2^40)\n\x20*\x20`Pi`\x20\x20\x20\x20pebi\x20\x20\x20\x20(2^50)\n\n\
1383 \x20**Grammar**\n\n\x20The\x20grammar\x20also\x20includes\x20these\x20co\
1384 nnectors:\n\n\x20*\x20`/`\x20\x20\x20\x20division\x20or\x20ratio\x20(as\
1385 \x20an\x20infix\x20operator).\x20For\x20examples,\n\x20\x20\x20\x20\x20\
1386 \x20\x20\x20\x20\x20`kBy/{email}`\x20or\x20`MiBy/10ms`\x20(although\x20y\
1387 ou\x20should\x20almost\x20never\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\
1388 \x20have\x20`/s`\x20in\x20a\x20metric\x20`unit`;\x20rates\x20should\x20a\
1389 lways\x20be\x20computed\x20at\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20q\
1390 uery\x20time\x20from\x20the\x20underlying\x20cumulative\x20or\x20delta\
1391 \x20value).\n\x20*\x20`.`\x20\x20\x20\x20multiplication\x20or\x20composi\
1392 tion\x20(as\x20an\x20infix\x20operator).\x20For\n\x20\x20\x20\x20\x20\
1393 \x20\x20\x20\x20\x20examples,\x20`GBy.d`\x20or\x20`k{watt}.h`.\n\n\x20Th\
1394 e\x20grammar\x20for\x20a\x20unit\x20is\x20as\x20follows:\n\n\x20\x20\x20\
1395 \x20\x20Expression\x20=\x20Component\x20{\x20\".\"\x20Component\x20}\x20\
1396 {\x20\"/\"\x20Component\x20}\x20;\n\n\x20\x20\x20\x20\x20Component\x20=\
1397 \x20(\x20[\x20PREFIX\x20]\x20UNIT\x20|\x20\"%\"\x20)\x20[\x20Annotation\
1398 \x20]\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|\x20\
1399 Annotation\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
1400 |\x20\"1\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
1401 ;\n\n\x20\x20\x20\x20\x20Annotation\x20=\x20\"{\"\x20NAME\x20\"}\"\x20;\
1402 \n\n\x20Notes:\n\n\x20*\x20`Annotation`\x20is\x20just\x20a\x20comment\
1403 \x20if\x20it\x20follows\x20a\x20`UNIT`.\x20If\x20the\x20annotation\n\x20\
1404 \x20\x20\x20is\x20used\x20alone,\x20then\x20the\x20unit\x20is\x20equival\
1405 ent\x20to\x20`1`.\x20For\x20examples,\n\x20\x20\x20\x20`{request}/s\x20=\
1406 =\x201/s`,\x20`By{transmitted}/s\x20==\x20By/s`.\n\x20*\x20`NAME`\x20is\
1407 \x20a\x20sequence\x20of\x20non-blank\x20printable\x20ASCII\x20characters\
1408 \x20not\n\x20\x20\x20\x20containing\x20`{`\x20or\x20`}`.\n\x20*\x20`1`\
1409 \x20represents\x20a\x20unitary\x20[dimensionless\n\x20\x20\x20\x20unit](\
1410 https://en.wikipedia.org/wiki/Dimensionless_quantity)\x20of\x201,\x20suc\
1411 h\n\x20\x20\x20\x20as\x20in\x20`1/s`.\x20It\x20is\x20typically\x20used\
1412 \x20when\x20none\x20of\x20the\x20basic\x20units\x20are\n\x20\x20\x20\x20\
1413 appropriate.\x20For\x20example,\x20\"new\x20users\x20per\x20day\"\x20can\
1414 \x20be\x20represented\x20as\n\x20\x20\x20\x20`1/d`\x20or\x20`{new-users}\
1415 /d`\x20(and\x20a\x20metric\x20value\x20`5`\x20would\x20mean\x20\"5\x20ne\
1416 w\n\x20\x20\x20\x20users).\x20Alternatively,\x20\"thousands\x20of\x20pag\
1417 e\x20views\x20per\x20day\"\x20would\x20be\n\x20\x20\x20\x20represented\
1418 \x20as\x20`1000/d`\x20or\x20`k1/d`\x20or\x20`k{page_views}/d`\x20(and\
1419 \x20a\x20metric\n\x20\x20\x20\x20value\x20of\x20`5.3`\x20would\x20mean\
1420 \x20\"5300\x20page\x20views\x20per\x20day\").\n\x20*\x20`%`\x20represent\
1421 s\x20dimensionless\x20value\x20of\x201/100,\x20and\x20annotates\x20value\
1422 s\x20giving\n\x20\x20\x20\x20a\x20percentage\x20(so\x20the\x20metric\x20\
1423 values\x20are\x20typically\x20in\x20the\x20range\x20of\x200..100,\n\x20\
1424 \x20\x20\x20and\x20a\x20metric\x20value\x20`3`\x20means\x20\"3\x20percen\
1425 t\").\n\x20*\x20`10^2.%`\x20indicates\x20a\x20metric\x20contains\x20a\
1426 \x20ratio,\x20typically\x20in\x20the\x20range\n\x20\x20\x20\x200..1,\x20\
1427 that\x20will\x20be\x20multiplied\x20by\x20100\x20and\x20displayed\x20as\
1428 \x20a\x20percentage\n\x20\x20\x20\x20(so\x20a\x20metric\x20value\x20`0.0\
1429 3`\x20means\x20\"3\x20percent\").\n\n\r\n\x05\x04\0\x02\x05\x05\x12\x04\
1430 \xe6\x01\x02\x08\n\r\n\x05\x04\0\x02\x05\x01\x12\x04\xe6\x01\t\r\n\r\n\
1431 \x05\x04\0\x02\x05\x03\x12\x04\xe6\x01\x10\x11\nY\n\x04\x04\0\x02\x06\
1432 \x12\x04\xe9\x01\x02\x19\x1aK\x20A\x20detailed\x20description\x20of\x20t\
1433 he\x20metric,\x20which\x20can\x20be\x20used\x20in\x20documentation.\n\n\
1434 \r\n\x05\x04\0\x02\x06\x05\x12\x04\xe9\x01\x02\x08\n\r\n\x05\x04\0\x02\
1435 \x06\x01\x12\x04\xe9\x01\t\x14\n\r\n\x05\x04\0\x02\x06\x03\x12\x04\xe9\
1436 \x01\x17\x18\n\xa3\x02\n\x04\x04\0\x02\x07\x12\x04\xef\x01\x02\x1a\x1a\
1437 \x94\x02\x20A\x20concise\x20name\x20for\x20the\x20metric,\x20which\x20ca\
1438 n\x20be\x20displayed\x20in\x20user\x20interfaces.\n\x20Use\x20sentence\
1439 \x20case\x20without\x20an\x20ending\x20period,\x20for\x20example\x20\"Re\
1440 quest\x20count\".\n\x20This\x20field\x20is\x20optional\x20but\x20it\x20i\
1441 s\x20recommended\x20to\x20be\x20set\x20for\x20any\x20metrics\n\x20associ\
1442 ated\x20with\x20user-visible\x20concepts,\x20such\x20as\x20Quota.\n\n\r\
1443 \n\x05\x04\0\x02\x07\x05\x12\x04\xef\x01\x02\x08\n\r\n\x05\x04\0\x02\x07\
1444 \x01\x12\x04\xef\x01\t\x15\n\r\n\x05\x04\0\x02\x07\x03\x12\x04\xef\x01\
1445 \x18\x19\nR\n\x04\x04\0\x02\x08\x12\x04\xf2\x01\x02)\x1aD\x20Optional.\
1446 \x20Metadata\x20which\x20can\x20be\x20used\x20to\x20guide\x20usage\x20of\
1447 \x20the\x20metric.\n\n\r\n\x05\x04\0\x02\x08\x06\x12\x04\xf2\x01\x02\x1a\
1448 \n\r\n\x05\x04\0\x02\x08\x01\x12\x04\xf2\x01\x1b#\n\r\n\x05\x04\0\x02\
1449 \x08\x03\x12\x04\xf2\x01&(\nD\n\x04\x04\0\x02\t\x12\x04\xf5\x01\x02\x20\
1450 \x1a6\x20Optional.\x20The\x20launch\x20stage\x20of\x20the\x20metric\x20d\
1451 efinition.\n\n\r\n\x05\x04\0\x02\t\x06\x12\x04\xf5\x01\x02\r\n\r\n\x05\
1452 \x04\0\x02\t\x01\x12\x04\xf5\x01\x0e\x1a\n\r\n\x05\x04\0\x02\t\x03\x12\
1453 \x04\xf5\x01\x1d\x1f\n\xd5\x02\n\x04\x04\0\x02\n\x12\x04\xfd\x01\x020\
1454 \x1a\xc6\x02\x20Read-only.\x20If\x20present,\x20then\x20a\x20[time\n\x20\
1455 series][google.monitoring.v3.TimeSeries],\x20which\x20is\x20identified\
1456 \x20partially\x20by\n\x20a\x20metric\x20type\x20and\x20a\n\x20[Monitored\
1457 ResourceDescriptor][google.api.MonitoredResourceDescriptor],\x20that\n\
1458 \x20is\x20associated\x20with\x20this\x20metric\x20type\x20can\x20only\
1459 \x20be\x20associated\x20with\x20one\x20of\x20the\n\x20monitored\x20resou\
1460 rce\x20types\x20listed\x20here.\n\n\r\n\x05\x04\0\x02\n\x04\x12\x04\xfd\
1461 \x01\x02\n\n\r\n\x05\x04\0\x02\n\x05\x12\x04\xfd\x01\x0b\x11\n\r\n\x05\
1462 \x04\0\x02\n\x01\x12\x04\xfd\x01\x12*\n\r\n\x05\x04\0\x02\n\x03\x12\x04\
1463 \xfd\x01-/\n\x92\x01\n\x02\x04\x01\x12\x06\x82\x02\0\x8b\x02\x01\x1a\x83\
1464 \x01\x20A\x20specific\x20metric,\x20identified\x20by\x20specifying\x20va\
1465 lues\x20for\x20all\x20of\x20the\n\x20labels\x20of\x20a\x20[`MetricDescri\
1466 ptor`][google.api.MetricDescriptor].\n\n\x0b\n\x03\x04\x01\x01\x12\x04\
1467 \x82\x02\x08\x0e\n\xa5\x01\n\x04\x04\x01\x02\0\x12\x04\x86\x02\x02\x12\
1468 \x1a\x96\x01\x20An\x20existing\x20metric\x20type,\x20see\n\x20[google.ap\
1469 i.MetricDescriptor][google.api.MetricDescriptor].\x20For\x20example,\n\
1470 \x20`custom.googleapis.com/invoice/paid/amount`.\n\n\r\n\x05\x04\x01\x02\
1471 \0\x05\x12\x04\x86\x02\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\x86\
1472 \x02\t\r\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\x86\x02\x10\x11\n\x92\x01\n\
1473 \x04\x04\x01\x02\x01\x12\x04\x8a\x02\x02!\x1a\x83\x01\x20The\x20set\x20o\
1474 f\x20label\x20values\x20that\x20uniquely\x20identify\x20this\x20metric.\
1475 \x20All\n\x20labels\x20listed\x20in\x20the\x20`MetricDescriptor`\x20must\
1476 \x20be\x20assigned\x20values.\n\n\r\n\x05\x04\x01\x02\x01\x06\x12\x04\
1477 \x8a\x02\x02\x15\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\x8a\x02\x16\x1c\n\
1478 \r\n\x05\x04\x01\x02\x01\x03\x12\x04\x8a\x02\x1f\x20b\x06proto3\
1479";
1480
1481static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
1482
1483fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
1484 ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
1485}
1486
1487pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
1488 file_descriptor_proto_lazy.get(|| {
1489 parse_descriptor_proto()
1490 })
1491}