Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/google/api/metric_pb2.py: 57%
42 statements
« prev ^ index » next coverage.py v7.3.2, created at 2023-12-08 06:45 +0000
« prev ^ index » next coverage.py v7.3.2, created at 2023-12-08 06:45 +0000
1# -*- coding: utf-8 -*-
3# Copyright 2020 Google LLC
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
17# Generated by the protocol buffer compiler. DO NOT EDIT!
18# source: google/api/metric.proto
19"""Generated protocol buffer code."""
20from google.protobuf import descriptor as _descriptor
21from google.protobuf import descriptor_pool as _descriptor_pool
22from google.protobuf import message as _message
23from google.protobuf import reflection as _reflection
24from google.protobuf import symbol_database as _symbol_database
26# @@protoc_insertion_point(imports)
28_sym_db = _symbol_database.Default()
31from google.api import label_pb2 as google_dot_api_dot_label__pb2
32from google.api import launch_stage_pb2 as google_dot_api_dot_launch__stage__pb2
33from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
36DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
37 b'\n\x17google/api/metric.proto\x12\ngoogle.api\x1a\x16google/api/label.proto\x1a\x1dgoogle/api/launch_stage.proto\x1a\x1egoogle/protobuf/duration.proto"\x9f\x06\n\x10MetricDescriptor\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x08 \x01(\t\x12+\n\x06labels\x18\x02 \x03(\x0b\x32\x1b.google.api.LabelDescriptor\x12<\n\x0bmetric_kind\x18\x03 \x01(\x0e\x32\'.google.api.MetricDescriptor.MetricKind\x12:\n\nvalue_type\x18\x04 \x01(\x0e\x32&.google.api.MetricDescriptor.ValueType\x12\x0c\n\x04unit\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x07 \x01(\t\x12G\n\x08metadata\x18\n \x01(\x0b\x32\x35.google.api.MetricDescriptor.MetricDescriptorMetadata\x12-\n\x0claunch_stage\x18\x0c \x01(\x0e\x32\x17.google.api.LaunchStage\x12 \n\x18monitored_resource_types\x18\r \x03(\t\x1a\xb0\x01\n\x18MetricDescriptorMetadata\x12\x31\n\x0claunch_stage\x18\x01 \x01(\x0e\x32\x17.google.api.LaunchStageB\x02\x18\x01\x12\x30\n\rsample_period\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12/\n\x0cingest_delay\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration"O\n\nMetricKind\x12\x1b\n\x17METRIC_KIND_UNSPECIFIED\x10\x00\x12\t\n\x05GAUGE\x10\x01\x12\t\n\x05\x44\x45LTA\x10\x02\x12\x0e\n\nCUMULATIVE\x10\x03"q\n\tValueType\x12\x1a\n\x16VALUE_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04\x42OOL\x10\x01\x12\t\n\x05INT64\x10\x02\x12\n\n\x06\x44OUBLE\x10\x03\x12\n\n\x06STRING\x10\x04\x12\x10\n\x0c\x44ISTRIBUTION\x10\x05\x12\t\n\x05MONEY\x10\x06"u\n\x06Metric\x12\x0c\n\x04type\x18\x03 \x01(\t\x12.\n\x06labels\x18\x02 \x03(\x0b\x32\x1e.google.api.Metric.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42_\n\x0e\x63om.google.apiB\x0bMetricProtoP\x01Z7google.golang.org/genproto/googleapis/api/metric;metric\xa2\x02\x04GAPIb\x06proto3'
38)
41_METRICDESCRIPTOR = DESCRIPTOR.message_types_by_name["MetricDescriptor"]
42_METRICDESCRIPTOR_METRICDESCRIPTORMETADATA = _METRICDESCRIPTOR.nested_types_by_name[
43 "MetricDescriptorMetadata"
44]
45_METRIC = DESCRIPTOR.message_types_by_name["Metric"]
46_METRIC_LABELSENTRY = _METRIC.nested_types_by_name["LabelsEntry"]
47_METRICDESCRIPTOR_METRICKIND = _METRICDESCRIPTOR.enum_types_by_name["MetricKind"]
48_METRICDESCRIPTOR_VALUETYPE = _METRICDESCRIPTOR.enum_types_by_name["ValueType"]
49MetricDescriptor = _reflection.GeneratedProtocolMessageType(
50 "MetricDescriptor",
51 (_message.Message,),
52 {
53 "MetricDescriptorMetadata": _reflection.GeneratedProtocolMessageType(
54 "MetricDescriptorMetadata",
55 (_message.Message,),
56 {
57 "DESCRIPTOR": _METRICDESCRIPTOR_METRICDESCRIPTORMETADATA,
58 "__module__": "google.api.metric_pb2"
59 # @@protoc_insertion_point(class_scope:google.api.MetricDescriptor.MetricDescriptorMetadata)
60 },
61 ),
62 "DESCRIPTOR": _METRICDESCRIPTOR,
63 "__module__": "google.api.metric_pb2"
64 # @@protoc_insertion_point(class_scope:google.api.MetricDescriptor)
65 },
66)
67_sym_db.RegisterMessage(MetricDescriptor)
68_sym_db.RegisterMessage(MetricDescriptor.MetricDescriptorMetadata)
70Metric = _reflection.GeneratedProtocolMessageType(
71 "Metric",
72 (_message.Message,),
73 {
74 "LabelsEntry": _reflection.GeneratedProtocolMessageType(
75 "LabelsEntry",
76 (_message.Message,),
77 {
78 "DESCRIPTOR": _METRIC_LABELSENTRY,
79 "__module__": "google.api.metric_pb2"
80 # @@protoc_insertion_point(class_scope:google.api.Metric.LabelsEntry)
81 },
82 ),
83 "DESCRIPTOR": _METRIC,
84 "__module__": "google.api.metric_pb2"
85 # @@protoc_insertion_point(class_scope:google.api.Metric)
86 },
87)
88_sym_db.RegisterMessage(Metric)
89_sym_db.RegisterMessage(Metric.LabelsEntry)
91if _descriptor._USE_C_DESCRIPTORS == False:
93 DESCRIPTOR._options = None
94 DESCRIPTOR._serialized_options = b"\n\016com.google.apiB\013MetricProtoP\001Z7google.golang.org/genproto/googleapis/api/metric;metric\242\002\004GAPI"
95 _METRICDESCRIPTOR_METRICDESCRIPTORMETADATA.fields_by_name[
96 "launch_stage"
97 ]._options = None
98 _METRICDESCRIPTOR_METRICDESCRIPTORMETADATA.fields_by_name[
99 "launch_stage"
100 ]._serialized_options = b"\030\001"
101 _METRIC_LABELSENTRY._options = None
102 _METRIC_LABELSENTRY._serialized_options = b"8\001"
103 _METRICDESCRIPTOR._serialized_start = 127
104 _METRICDESCRIPTOR._serialized_end = 926
105 _METRICDESCRIPTOR_METRICDESCRIPTORMETADATA._serialized_start = 554
106 _METRICDESCRIPTOR_METRICDESCRIPTORMETADATA._serialized_end = 730
107 _METRICDESCRIPTOR_METRICKIND._serialized_start = 732
108 _METRICDESCRIPTOR_METRICKIND._serialized_end = 811
109 _METRICDESCRIPTOR_VALUETYPE._serialized_start = 813
110 _METRICDESCRIPTOR_VALUETYPE._serialized_end = 926
111 _METRIC._serialized_start = 928
112 _METRIC._serialized_end = 1045
113 _METRIC_LABELSENTRY._serialized_start = 1000
114 _METRIC_LABELSENTRY._serialized_end = 1045
115# @@protoc_insertion_point(module_scope)