From e9acd01feed5e34503a7c6d0ae765411f809d8f4 Mon Sep 17 00:00:00 2001 From: Christopher Wilcox Date: Fri, 30 Nov 2018 15:25:18 -0800 Subject: [PATCH] blacken all gen'd libs (#6792) * blacken all gen'd libs --- .../cloud/monitoring_v3/proto/alert_pb2.py | 1424 ++++++++----- .../monitoring_v3/proto/alert_pb2_grpc.py | 1 - .../monitoring_v3/proto/alert_service_pb2.py | 849 +++++--- .../proto/alert_service_pb2_grpc.py | 167 +- .../cloud/monitoring_v3/proto/common_pb2.py | 940 +++++---- .../monitoring_v3/proto/common_pb2_grpc.py | 1 - .../monitoring_v3/proto/dropped_labels_pb2.py | 215 +- .../proto/dropped_labels_pb2_grpc.py | 1 - .../cloud/monitoring_v3/proto/group_pb2.py | 206 +- .../monitoring_v3/proto/group_pb2_grpc.py | 1 - .../monitoring_v3/proto/group_service_pb2.py | 1275 +++++++----- .../proto/group_service_pb2_grpc.py | 195 +- .../cloud/monitoring_v3/proto/metric_pb2.py | 387 ++-- .../monitoring_v3/proto/metric_pb2_grpc.py | 1 - .../monitoring_v3/proto/metric_service_pb2.py | 1825 ++++++++++------- .../proto/metric_service_pb2_grpc.py | 251 +-- .../proto/mutation_record_pb2.py | 137 +- .../proto/mutation_record_pb2_grpc.py | 1 - .../monitoring_v3/proto/notification_pb2.py | 794 ++++--- .../proto/notification_pb2_grpc.py | 1 - .../proto/notification_service_pb2.py | 1756 ++++++++++------ .../proto/notification_service_pb2_grpc.py | 307 +-- .../monitoring_v3/proto/span_context_pb2.py | 106 +- .../proto/span_context_pb2_grpc.py | 1 - .../cloud/monitoring_v3/proto/uptime_pb2.py | 1603 +++++++++------ .../monitoring_v3/proto/uptime_pb2_grpc.py | 1 - .../monitoring_v3/proto/uptime_service_pb2.py | 1081 ++++++---- .../proto/uptime_service_pb2_grpc.py | 195 +- 28 files changed, 8421 insertions(+), 5301 deletions(-) diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/alert_pb2.py b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/alert_pb2.py index f27c74976026..048df7b15d20 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/alert_pb2.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/alert_pb2.py @@ -2,503 +2,918 @@ # source: google/cloud/monitoring_v3/proto/alert.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.monitoring_v3.proto import common_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2 -from google.cloud.monitoring_v3.proto import mutation_record_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_mutation__record__pb2 +from google.cloud.monitoring_v3.proto import ( + common_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2, +) +from google.cloud.monitoring_v3.proto import ( + mutation_record_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_mutation__record__pb2, +) from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/monitoring_v3/proto/alert.proto', - package='google.monitoring.v3', - syntax='proto3', - serialized_pb=_b('\n,google/cloud/monitoring_v3/proto/alert.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a-google/cloud/monitoring_v3/proto/common.proto\x1a\x36google/cloud/monitoring_v3/proto/mutation_record.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xdd\x0c\n\x0b\x41lertPolicy\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x46\n\rdocumentation\x18\r \x01(\x0b\x32/.google.monitoring.v3.AlertPolicy.Documentation\x12\x46\n\x0buser_labels\x18\x10 \x03(\x0b\x32\x31.google.monitoring.v3.AlertPolicy.UserLabelsEntry\x12?\n\nconditions\x18\x0c \x03(\x0b\x32+.google.monitoring.v3.AlertPolicy.Condition\x12I\n\x08\x63ombiner\x18\x06 \x01(\x0e\x32\x37.google.monitoring.v3.AlertPolicy.ConditionCombinerType\x12+\n\x07\x65nabled\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x1d\n\x15notification_channels\x18\x0e \x03(\t\x12=\n\x0f\x63reation_record\x18\n \x01(\x0b\x32$.google.monitoring.v3.MutationRecord\x12=\n\x0fmutation_record\x18\x0b \x01(\x0b\x32$.google.monitoring.v3.MutationRecord\x1a\x33\n\rDocumentation\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x11\n\tmime_type\x18\x02 \x01(\t\x1a\xf8\x06\n\tCondition\x12\x0c\n\x04name\x18\x0c \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x06 \x01(\t\x12Z\n\x13\x63ondition_threshold\x18\x01 \x01(\x0b\x32;.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdH\x00\x12U\n\x10\x63ondition_absent\x18\x02 \x01(\x0b\x32\x39.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceH\x00\x1a\x35\n\x07Trigger\x12\x0f\n\x05\x63ount\x18\x01 \x01(\x05H\x00\x12\x11\n\x07percent\x18\x02 \x01(\x01H\x00\x42\x06\n\x04type\x1a\x81\x03\n\x0fMetricThreshold\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x37\n\x0c\x61ggregations\x18\x08 \x03(\x0b\x32!.google.monitoring.v3.Aggregation\x12\x1a\n\x12\x64\x65nominator_filter\x18\t \x01(\t\x12\x43\n\x18\x64\x65nominator_aggregations\x18\n \x03(\x0b\x32!.google.monitoring.v3.Aggregation\x12\x38\n\ncomparison\x18\x04 \x01(\x0e\x32$.google.monitoring.v3.ComparisonType\x12\x17\n\x0fthreshold_value\x18\x05 \x01(\x01\x12+\n\x08\x64uration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x44\n\x07trigger\x18\x07 \x01(\x0b\x32\x33.google.monitoring.v3.AlertPolicy.Condition.Trigger\x1a\xcb\x01\n\rMetricAbsence\x12\x0e\n\x06\x66ilter\x18\x01 \x01(\t\x12\x37\n\x0c\x61ggregations\x18\x05 \x03(\x0b\x32!.google.monitoring.v3.Aggregation\x12+\n\x08\x64uration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x44\n\x07trigger\x18\x03 \x01(\x0b\x32\x33.google.monitoring.v3.AlertPolicy.Condition.TriggerB\x0b\n\tcondition\x1a\x31\n\x0fUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"a\n\x15\x43onditionCombinerType\x12\x17\n\x13\x43OMBINE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41ND\x10\x01\x12\x06\n\x02OR\x10\x02\x12\x1e\n\x1a\x41ND_WITH_MATCHING_RESOURCE\x10\x03\x42\xa2\x01\n\x18\x63om.google.monitoring.v3B\nAlertProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2.DESCRIPTOR,google_dot_cloud_dot_monitoring__v3_dot_proto_dot_mutation__record__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) - + name="google/cloud/monitoring_v3/proto/alert.proto", + package="google.monitoring.v3", + syntax="proto3", + serialized_pb=_b( + '\n,google/cloud/monitoring_v3/proto/alert.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a-google/cloud/monitoring_v3/proto/common.proto\x1a\x36google/cloud/monitoring_v3/proto/mutation_record.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1egoogle/protobuf/wrappers.proto"\xdd\x0c\n\x0b\x41lertPolicy\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x46\n\rdocumentation\x18\r \x01(\x0b\x32/.google.monitoring.v3.AlertPolicy.Documentation\x12\x46\n\x0buser_labels\x18\x10 \x03(\x0b\x32\x31.google.monitoring.v3.AlertPolicy.UserLabelsEntry\x12?\n\nconditions\x18\x0c \x03(\x0b\x32+.google.monitoring.v3.AlertPolicy.Condition\x12I\n\x08\x63ombiner\x18\x06 \x01(\x0e\x32\x37.google.monitoring.v3.AlertPolicy.ConditionCombinerType\x12+\n\x07\x65nabled\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x1d\n\x15notification_channels\x18\x0e \x03(\t\x12=\n\x0f\x63reation_record\x18\n \x01(\x0b\x32$.google.monitoring.v3.MutationRecord\x12=\n\x0fmutation_record\x18\x0b \x01(\x0b\x32$.google.monitoring.v3.MutationRecord\x1a\x33\n\rDocumentation\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x11\n\tmime_type\x18\x02 \x01(\t\x1a\xf8\x06\n\tCondition\x12\x0c\n\x04name\x18\x0c \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x06 \x01(\t\x12Z\n\x13\x63ondition_threshold\x18\x01 \x01(\x0b\x32;.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdH\x00\x12U\n\x10\x63ondition_absent\x18\x02 \x01(\x0b\x32\x39.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceH\x00\x1a\x35\n\x07Trigger\x12\x0f\n\x05\x63ount\x18\x01 \x01(\x05H\x00\x12\x11\n\x07percent\x18\x02 \x01(\x01H\x00\x42\x06\n\x04type\x1a\x81\x03\n\x0fMetricThreshold\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x37\n\x0c\x61ggregations\x18\x08 \x03(\x0b\x32!.google.monitoring.v3.Aggregation\x12\x1a\n\x12\x64\x65nominator_filter\x18\t \x01(\t\x12\x43\n\x18\x64\x65nominator_aggregations\x18\n \x03(\x0b\x32!.google.monitoring.v3.Aggregation\x12\x38\n\ncomparison\x18\x04 \x01(\x0e\x32$.google.monitoring.v3.ComparisonType\x12\x17\n\x0fthreshold_value\x18\x05 \x01(\x01\x12+\n\x08\x64uration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x44\n\x07trigger\x18\x07 \x01(\x0b\x32\x33.google.monitoring.v3.AlertPolicy.Condition.Trigger\x1a\xcb\x01\n\rMetricAbsence\x12\x0e\n\x06\x66ilter\x18\x01 \x01(\t\x12\x37\n\x0c\x61ggregations\x18\x05 \x03(\x0b\x32!.google.monitoring.v3.Aggregation\x12+\n\x08\x64uration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x44\n\x07trigger\x18\x03 \x01(\x0b\x32\x33.google.monitoring.v3.AlertPolicy.Condition.TriggerB\x0b\n\tcondition\x1a\x31\n\x0fUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"a\n\x15\x43onditionCombinerType\x12\x17\n\x13\x43OMBINE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41ND\x10\x01\x12\x06\n\x02OR\x10\x02\x12\x1e\n\x1a\x41ND_WITH_MATCHING_RESOURCE\x10\x03\x42\xa2\x01\n\x18\x63om.google.monitoring.v3B\nAlertProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2.DESCRIPTOR, + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_mutation__record__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR, + ], +) _ALERTPOLICY_CONDITIONCOMBINERTYPE = _descriptor.EnumDescriptor( - name='ConditionCombinerType', - full_name='google.monitoring.v3.AlertPolicy.ConditionCombinerType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='COMBINE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AND', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='OR', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AND_WITH_MATCHING_RESOURCE', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1800, - serialized_end=1897, + name="ConditionCombinerType", + full_name="google.monitoring.v3.AlertPolicy.ConditionCombinerType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="COMBINE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="AND", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="OR", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="AND_WITH_MATCHING_RESOURCE", + index=3, + number=3, + options=None, + type=None, + ), + ], + containing_type=None, + options=None, + serialized_start=1800, + serialized_end=1897, ) _sym_db.RegisterEnumDescriptor(_ALERTPOLICY_CONDITIONCOMBINERTYPE) _ALERTPOLICY_DOCUMENTATION = _descriptor.Descriptor( - name='Documentation', - full_name='google.monitoring.v3.AlertPolicy.Documentation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='content', full_name='google.monitoring.v3.AlertPolicy.Documentation.content', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mime_type', full_name='google.monitoring.v3.AlertPolicy.Documentation.mime_type', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=805, - serialized_end=856, + name="Documentation", + full_name="google.monitoring.v3.AlertPolicy.Documentation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="content", + full_name="google.monitoring.v3.AlertPolicy.Documentation.content", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="mime_type", + full_name="google.monitoring.v3.AlertPolicy.Documentation.mime_type", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=805, + serialized_end=856, ) _ALERTPOLICY_CONDITION_TRIGGER = _descriptor.Descriptor( - name='Trigger', - full_name='google.monitoring.v3.AlertPolicy.Condition.Trigger', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='count', full_name='google.monitoring.v3.AlertPolicy.Condition.Trigger.count', index=0, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='percent', full_name='google.monitoring.v3.AlertPolicy.Condition.Trigger.percent', index=1, - number=2, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='type', full_name='google.monitoring.v3.AlertPolicy.Condition.Trigger.type', - index=0, containing_type=None, fields=[]), - ], - serialized_start=1087, - serialized_end=1140, + name="Trigger", + full_name="google.monitoring.v3.AlertPolicy.Condition.Trigger", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="count", + full_name="google.monitoring.v3.AlertPolicy.Condition.Trigger.count", + index=0, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="percent", + full_name="google.monitoring.v3.AlertPolicy.Condition.Trigger.percent", + index=1, + number=2, + type=1, + cpp_type=5, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="type", + full_name="google.monitoring.v3.AlertPolicy.Condition.Trigger.type", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=1087, + serialized_end=1140, ) _ALERTPOLICY_CONDITION_METRICTHRESHOLD = _descriptor.Descriptor( - name='MetricThreshold', - full_name='google.monitoring.v3.AlertPolicy.Condition.MetricThreshold', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='filter', full_name='google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.filter', index=0, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='aggregations', full_name='google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.aggregations', index=1, - number=8, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='denominator_filter', full_name='google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.denominator_filter', index=2, - number=9, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='denominator_aggregations', full_name='google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.denominator_aggregations', index=3, - number=10, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='comparison', full_name='google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.comparison', index=4, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='threshold_value', full_name='google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.threshold_value', index=5, - number=5, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='duration', full_name='google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.duration', index=6, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='trigger', full_name='google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.trigger', index=7, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1143, - serialized_end=1528, + name="MetricThreshold", + full_name="google.monitoring.v3.AlertPolicy.Condition.MetricThreshold", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="filter", + full_name="google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.filter", + index=0, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="aggregations", + full_name="google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.aggregations", + index=1, + number=8, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="denominator_filter", + full_name="google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.denominator_filter", + index=2, + number=9, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="denominator_aggregations", + full_name="google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.denominator_aggregations", + index=3, + number=10, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="comparison", + full_name="google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.comparison", + index=4, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="threshold_value", + full_name="google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.threshold_value", + index=5, + number=5, + type=1, + cpp_type=5, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="duration", + full_name="google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.duration", + index=6, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="trigger", + full_name="google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.trigger", + index=7, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1143, + serialized_end=1528, ) _ALERTPOLICY_CONDITION_METRICABSENCE = _descriptor.Descriptor( - name='MetricAbsence', - full_name='google.monitoring.v3.AlertPolicy.Condition.MetricAbsence', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='filter', full_name='google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.filter', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='aggregations', full_name='google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.aggregations', index=1, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='duration', full_name='google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.duration', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='trigger', full_name='google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.trigger', index=3, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1531, - serialized_end=1734, + name="MetricAbsence", + full_name="google.monitoring.v3.AlertPolicy.Condition.MetricAbsence", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="filter", + full_name="google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.filter", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="aggregations", + full_name="google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.aggregations", + index=1, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="duration", + full_name="google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.duration", + index=2, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="trigger", + full_name="google.monitoring.v3.AlertPolicy.Condition.MetricAbsence.trigger", + index=3, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1531, + serialized_end=1734, ) _ALERTPOLICY_CONDITION = _descriptor.Descriptor( - name='Condition', - full_name='google.monitoring.v3.AlertPolicy.Condition', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.AlertPolicy.Condition.name', index=0, - number=12, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.monitoring.v3.AlertPolicy.Condition.display_name', index=1, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='condition_threshold', full_name='google.monitoring.v3.AlertPolicy.Condition.condition_threshold', index=2, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='condition_absent', full_name='google.monitoring.v3.AlertPolicy.Condition.condition_absent', index=3, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_ALERTPOLICY_CONDITION_TRIGGER, _ALERTPOLICY_CONDITION_METRICTHRESHOLD, _ALERTPOLICY_CONDITION_METRICABSENCE, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='condition', full_name='google.monitoring.v3.AlertPolicy.Condition.condition', - index=0, containing_type=None, fields=[]), - ], - serialized_start=859, - serialized_end=1747, + name="Condition", + full_name="google.monitoring.v3.AlertPolicy.Condition", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.AlertPolicy.Condition.name", + index=0, + number=12, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.monitoring.v3.AlertPolicy.Condition.display_name", + index=1, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="condition_threshold", + full_name="google.monitoring.v3.AlertPolicy.Condition.condition_threshold", + index=2, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="condition_absent", + full_name="google.monitoring.v3.AlertPolicy.Condition.condition_absent", + index=3, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _ALERTPOLICY_CONDITION_TRIGGER, + _ALERTPOLICY_CONDITION_METRICTHRESHOLD, + _ALERTPOLICY_CONDITION_METRICABSENCE, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="condition", + full_name="google.monitoring.v3.AlertPolicy.Condition.condition", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=859, + serialized_end=1747, ) _ALERTPOLICY_USERLABELSENTRY = _descriptor.Descriptor( - name='UserLabelsEntry', - full_name='google.monitoring.v3.AlertPolicy.UserLabelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.monitoring.v3.AlertPolicy.UserLabelsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.monitoring.v3.AlertPolicy.UserLabelsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1749, - serialized_end=1798, + name="UserLabelsEntry", + full_name="google.monitoring.v3.AlertPolicy.UserLabelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.monitoring.v3.AlertPolicy.UserLabelsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.monitoring.v3.AlertPolicy.UserLabelsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1749, + serialized_end=1798, ) _ALERTPOLICY = _descriptor.Descriptor( - name='AlertPolicy', - full_name='google.monitoring.v3.AlertPolicy', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.AlertPolicy.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.monitoring.v3.AlertPolicy.display_name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='documentation', full_name='google.monitoring.v3.AlertPolicy.documentation', index=2, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='user_labels', full_name='google.monitoring.v3.AlertPolicy.user_labels', index=3, - number=16, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conditions', full_name='google.monitoring.v3.AlertPolicy.conditions', index=4, - number=12, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='combiner', full_name='google.monitoring.v3.AlertPolicy.combiner', index=5, - number=6, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='enabled', full_name='google.monitoring.v3.AlertPolicy.enabled', index=6, - number=17, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='notification_channels', full_name='google.monitoring.v3.AlertPolicy.notification_channels', index=7, - number=14, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='creation_record', full_name='google.monitoring.v3.AlertPolicy.creation_record', index=8, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mutation_record', full_name='google.monitoring.v3.AlertPolicy.mutation_record', index=9, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_ALERTPOLICY_DOCUMENTATION, _ALERTPOLICY_CONDITION, _ALERTPOLICY_USERLABELSENTRY, ], - enum_types=[ - _ALERTPOLICY_CONDITIONCOMBINERTYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=268, - serialized_end=1897, + name="AlertPolicy", + full_name="google.monitoring.v3.AlertPolicy", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.AlertPolicy.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.monitoring.v3.AlertPolicy.display_name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="documentation", + full_name="google.monitoring.v3.AlertPolicy.documentation", + index=2, + number=13, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="user_labels", + full_name="google.monitoring.v3.AlertPolicy.user_labels", + index=3, + number=16, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="conditions", + full_name="google.monitoring.v3.AlertPolicy.conditions", + index=4, + number=12, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="combiner", + full_name="google.monitoring.v3.AlertPolicy.combiner", + index=5, + number=6, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="enabled", + full_name="google.monitoring.v3.AlertPolicy.enabled", + index=6, + number=17, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="notification_channels", + full_name="google.monitoring.v3.AlertPolicy.notification_channels", + index=7, + number=14, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="creation_record", + full_name="google.monitoring.v3.AlertPolicy.creation_record", + index=8, + number=10, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="mutation_record", + full_name="google.monitoring.v3.AlertPolicy.mutation_record", + index=9, + number=11, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _ALERTPOLICY_DOCUMENTATION, + _ALERTPOLICY_CONDITION, + _ALERTPOLICY_USERLABELSENTRY, + ], + enum_types=[_ALERTPOLICY_CONDITIONCOMBINERTYPE], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=268, + serialized_end=1897, ) _ALERTPOLICY_DOCUMENTATION.containing_type = _ALERTPOLICY _ALERTPOLICY_CONDITION_TRIGGER.containing_type = _ALERTPOLICY_CONDITION -_ALERTPOLICY_CONDITION_TRIGGER.oneofs_by_name['type'].fields.append( - _ALERTPOLICY_CONDITION_TRIGGER.fields_by_name['count']) -_ALERTPOLICY_CONDITION_TRIGGER.fields_by_name['count'].containing_oneof = _ALERTPOLICY_CONDITION_TRIGGER.oneofs_by_name['type'] -_ALERTPOLICY_CONDITION_TRIGGER.oneofs_by_name['type'].fields.append( - _ALERTPOLICY_CONDITION_TRIGGER.fields_by_name['percent']) -_ALERTPOLICY_CONDITION_TRIGGER.fields_by_name['percent'].containing_oneof = _ALERTPOLICY_CONDITION_TRIGGER.oneofs_by_name['type'] -_ALERTPOLICY_CONDITION_METRICTHRESHOLD.fields_by_name['aggregations'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._AGGREGATION -_ALERTPOLICY_CONDITION_METRICTHRESHOLD.fields_by_name['denominator_aggregations'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._AGGREGATION -_ALERTPOLICY_CONDITION_METRICTHRESHOLD.fields_by_name['comparison'].enum_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._COMPARISONTYPE -_ALERTPOLICY_CONDITION_METRICTHRESHOLD.fields_by_name['duration'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_ALERTPOLICY_CONDITION_METRICTHRESHOLD.fields_by_name['trigger'].message_type = _ALERTPOLICY_CONDITION_TRIGGER +_ALERTPOLICY_CONDITION_TRIGGER.oneofs_by_name["type"].fields.append( + _ALERTPOLICY_CONDITION_TRIGGER.fields_by_name["count"] +) +_ALERTPOLICY_CONDITION_TRIGGER.fields_by_name[ + "count" +].containing_oneof = _ALERTPOLICY_CONDITION_TRIGGER.oneofs_by_name["type"] +_ALERTPOLICY_CONDITION_TRIGGER.oneofs_by_name["type"].fields.append( + _ALERTPOLICY_CONDITION_TRIGGER.fields_by_name["percent"] +) +_ALERTPOLICY_CONDITION_TRIGGER.fields_by_name[ + "percent" +].containing_oneof = _ALERTPOLICY_CONDITION_TRIGGER.oneofs_by_name["type"] +_ALERTPOLICY_CONDITION_METRICTHRESHOLD.fields_by_name[ + "aggregations" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._AGGREGATION +) +_ALERTPOLICY_CONDITION_METRICTHRESHOLD.fields_by_name[ + "denominator_aggregations" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._AGGREGATION +) +_ALERTPOLICY_CONDITION_METRICTHRESHOLD.fields_by_name[ + "comparison" +].enum_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._COMPARISONTYPE +) +_ALERTPOLICY_CONDITION_METRICTHRESHOLD.fields_by_name[ + "duration" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_ALERTPOLICY_CONDITION_METRICTHRESHOLD.fields_by_name[ + "trigger" +].message_type = _ALERTPOLICY_CONDITION_TRIGGER _ALERTPOLICY_CONDITION_METRICTHRESHOLD.containing_type = _ALERTPOLICY_CONDITION -_ALERTPOLICY_CONDITION_METRICABSENCE.fields_by_name['aggregations'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._AGGREGATION -_ALERTPOLICY_CONDITION_METRICABSENCE.fields_by_name['duration'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_ALERTPOLICY_CONDITION_METRICABSENCE.fields_by_name['trigger'].message_type = _ALERTPOLICY_CONDITION_TRIGGER +_ALERTPOLICY_CONDITION_METRICABSENCE.fields_by_name[ + "aggregations" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._AGGREGATION +) +_ALERTPOLICY_CONDITION_METRICABSENCE.fields_by_name[ + "duration" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_ALERTPOLICY_CONDITION_METRICABSENCE.fields_by_name[ + "trigger" +].message_type = _ALERTPOLICY_CONDITION_TRIGGER _ALERTPOLICY_CONDITION_METRICABSENCE.containing_type = _ALERTPOLICY_CONDITION -_ALERTPOLICY_CONDITION.fields_by_name['condition_threshold'].message_type = _ALERTPOLICY_CONDITION_METRICTHRESHOLD -_ALERTPOLICY_CONDITION.fields_by_name['condition_absent'].message_type = _ALERTPOLICY_CONDITION_METRICABSENCE +_ALERTPOLICY_CONDITION.fields_by_name[ + "condition_threshold" +].message_type = _ALERTPOLICY_CONDITION_METRICTHRESHOLD +_ALERTPOLICY_CONDITION.fields_by_name[ + "condition_absent" +].message_type = _ALERTPOLICY_CONDITION_METRICABSENCE _ALERTPOLICY_CONDITION.containing_type = _ALERTPOLICY -_ALERTPOLICY_CONDITION.oneofs_by_name['condition'].fields.append( - _ALERTPOLICY_CONDITION.fields_by_name['condition_threshold']) -_ALERTPOLICY_CONDITION.fields_by_name['condition_threshold'].containing_oneof = _ALERTPOLICY_CONDITION.oneofs_by_name['condition'] -_ALERTPOLICY_CONDITION.oneofs_by_name['condition'].fields.append( - _ALERTPOLICY_CONDITION.fields_by_name['condition_absent']) -_ALERTPOLICY_CONDITION.fields_by_name['condition_absent'].containing_oneof = _ALERTPOLICY_CONDITION.oneofs_by_name['condition'] +_ALERTPOLICY_CONDITION.oneofs_by_name["condition"].fields.append( + _ALERTPOLICY_CONDITION.fields_by_name["condition_threshold"] +) +_ALERTPOLICY_CONDITION.fields_by_name[ + "condition_threshold" +].containing_oneof = _ALERTPOLICY_CONDITION.oneofs_by_name["condition"] +_ALERTPOLICY_CONDITION.oneofs_by_name["condition"].fields.append( + _ALERTPOLICY_CONDITION.fields_by_name["condition_absent"] +) +_ALERTPOLICY_CONDITION.fields_by_name[ + "condition_absent" +].containing_oneof = _ALERTPOLICY_CONDITION.oneofs_by_name["condition"] _ALERTPOLICY_USERLABELSENTRY.containing_type = _ALERTPOLICY -_ALERTPOLICY.fields_by_name['documentation'].message_type = _ALERTPOLICY_DOCUMENTATION -_ALERTPOLICY.fields_by_name['user_labels'].message_type = _ALERTPOLICY_USERLABELSENTRY -_ALERTPOLICY.fields_by_name['conditions'].message_type = _ALERTPOLICY_CONDITION -_ALERTPOLICY.fields_by_name['combiner'].enum_type = _ALERTPOLICY_CONDITIONCOMBINERTYPE -_ALERTPOLICY.fields_by_name['enabled'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_ALERTPOLICY.fields_by_name['creation_record'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_mutation__record__pb2._MUTATIONRECORD -_ALERTPOLICY.fields_by_name['mutation_record'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_mutation__record__pb2._MUTATIONRECORD +_ALERTPOLICY.fields_by_name["documentation"].message_type = _ALERTPOLICY_DOCUMENTATION +_ALERTPOLICY.fields_by_name["user_labels"].message_type = _ALERTPOLICY_USERLABELSENTRY +_ALERTPOLICY.fields_by_name["conditions"].message_type = _ALERTPOLICY_CONDITION +_ALERTPOLICY.fields_by_name["combiner"].enum_type = _ALERTPOLICY_CONDITIONCOMBINERTYPE +_ALERTPOLICY.fields_by_name[ + "enabled" +].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_ALERTPOLICY.fields_by_name[ + "creation_record" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_mutation__record__pb2._MUTATIONRECORD +) +_ALERTPOLICY.fields_by_name[ + "mutation_record" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_mutation__record__pb2._MUTATIONRECORD +) _ALERTPOLICY_CONDITIONCOMBINERTYPE.containing_type = _ALERTPOLICY -DESCRIPTOR.message_types_by_name['AlertPolicy'] = _ALERTPOLICY +DESCRIPTOR.message_types_by_name["AlertPolicy"] = _ALERTPOLICY _sym_db.RegisterFileDescriptor(DESCRIPTOR) -AlertPolicy = _reflection.GeneratedProtocolMessageType('AlertPolicy', (_message.Message,), dict( - - Documentation = _reflection.GeneratedProtocolMessageType('Documentation', (_message.Message,), dict( - DESCRIPTOR = _ALERTPOLICY_DOCUMENTATION, - __module__ = 'google.cloud.monitoring_v3.proto.alert_pb2' - , - __doc__ = """A content string and a MIME type that describes the content string's +AlertPolicy = _reflection.GeneratedProtocolMessageType( + "AlertPolicy", + (_message.Message,), + dict( + Documentation=_reflection.GeneratedProtocolMessageType( + "Documentation", + (_message.Message,), + dict( + DESCRIPTOR=_ALERTPOLICY_DOCUMENTATION, + __module__="google.cloud.monitoring_v3.proto.alert_pb2", + __doc__="""A content string and a MIME type that describes the content string's format. @@ -514,17 +929,20 @@ `__ for more information. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Documentation) - )) - , - - Condition = _reflection.GeneratedProtocolMessageType('Condition', (_message.Message,), dict( - - Trigger = _reflection.GeneratedProtocolMessageType('Trigger', (_message.Message,), dict( - DESCRIPTOR = _ALERTPOLICY_CONDITION_TRIGGER, - __module__ = 'google.cloud.monitoring_v3.proto.alert_pb2' - , - __doc__ = """Specifies how many time series must fail a predicate to trigger a + # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Documentation) + ), + ), + Condition=_reflection.GeneratedProtocolMessageType( + "Condition", + (_message.Message,), + dict( + Trigger=_reflection.GeneratedProtocolMessageType( + "Trigger", + (_message.Message,), + dict( + DESCRIPTOR=_ALERTPOLICY_CONDITION_TRIGGER, + __module__="google.cloud.monitoring_v3.proto.alert_pb2", + __doc__="""Specifies how many time series must fail a predicate to trigger a condition. If not specified, then a ``{count: 1}`` trigger is used. @@ -538,15 +956,16 @@ The percentage of time series that must fail the predicate for the condition to be triggered. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.Trigger) - )) - , - - MetricThreshold = _reflection.GeneratedProtocolMessageType('MetricThreshold', (_message.Message,), dict( - DESCRIPTOR = _ALERTPOLICY_CONDITION_METRICTHRESHOLD, - __module__ = 'google.cloud.monitoring_v3.proto.alert_pb2' - , - __doc__ = """A condition type that compares a collection of time series against a + # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.Trigger) + ), + ), + MetricThreshold=_reflection.GeneratedProtocolMessageType( + "MetricThreshold", + (_message.Message,), + dict( + DESCRIPTOR=_ALERTPOLICY_CONDITION_METRICTHRESHOLD, + __module__="google.cloud.monitoring_v3.proto.alert_pb2", + __doc__="""A condition type that compares a collection of time series against a threshold. @@ -633,15 +1052,16 @@ ``denominator_filter`` and ``denominator_aggregations`` are specified. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) - )) - , - - MetricAbsence = _reflection.GeneratedProtocolMessageType('MetricAbsence', (_message.Message,), dict( - DESCRIPTOR = _ALERTPOLICY_CONDITION_METRICABSENCE, - __module__ = 'google.cloud.monitoring_v3.proto.alert_pb2' - , - __doc__ = """A condition type that checks that monitored resources are reporting + # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.MetricThreshold) + ), + ), + MetricAbsence=_reflection.GeneratedProtocolMessageType( + "MetricAbsence", + (_message.Message,), + dict( + DESCRIPTOR=_ALERTPOLICY_CONDITION_METRICABSENCE, + __module__="google.cloud.monitoring_v3.proto.alert_pb2", + __doc__="""A condition type that checks that monitored resources are reporting data. The configuration defines a metric and a set of monitored resources. The predicate is considered in violation when a time series for the specified metric of a monitored resource does not include any @@ -685,13 +1105,12 @@ is true for any of the time series that have been identified by ``filter`` and ``aggregations``. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) - )) - , - DESCRIPTOR = _ALERTPOLICY_CONDITION, - __module__ = 'google.cloud.monitoring_v3.proto.alert_pb2' - , - __doc__ = """A condition is a true/false test that determines when an alerting policy + # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition.MetricAbsence) + ), + ), + DESCRIPTOR=_ALERTPOLICY_CONDITION, + __module__="google.cloud.monitoring_v3.proto.alert_pb2", + __doc__="""A condition is a true/false test that determines when an alerting policy should open an incident. If a condition evaluates to true, it signifies that something is wrong. @@ -731,20 +1150,21 @@ A condition that checks that a time series continues to receive new data points. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition) - )) - , - - UserLabelsEntry = _reflection.GeneratedProtocolMessageType('UserLabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _ALERTPOLICY_USERLABELSENTRY, - __module__ = 'google.cloud.monitoring_v3.proto.alert_pb2' - # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.UserLabelsEntry) - )) - , - DESCRIPTOR = _ALERTPOLICY, - __module__ = 'google.cloud.monitoring_v3.proto.alert_pb2' - , - __doc__ = """A description of the conditions under which some aspect of your system + # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Condition) + ), + ), + UserLabelsEntry=_reflection.GeneratedProtocolMessageType( + "UserLabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_ALERTPOLICY_USERLABELSENTRY, + __module__="google.cloud.monitoring_v3.proto.alert_pb2" + # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.UserLabelsEntry) + ), + ), + DESCRIPTOR=_ALERTPOLICY, + __module__="google.cloud.monitoring_v3.proto.alert_pb2", + __doc__="""A description of the conditions under which some aspect of your system is considered to be "unhealthy" and the ways to notify people or services about this state. For an overview of alert policies, see `Introduction to Alerting `__. @@ -815,8 +1235,9 @@ policy. If provided in a call to create or update, this field will be ignored. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy) + ), +) _sym_db.RegisterMessage(AlertPolicy) _sym_db.RegisterMessage(AlertPolicy.Documentation) _sym_db.RegisterMessage(AlertPolicy.Condition) @@ -827,7 +1248,14 @@ DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\030com.google.monitoring.v3B\nAlertProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\030com.google.monitoring.v3B\nAlertProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3" + ), +) _ALERTPOLICY_USERLABELSENTRY.has_options = True -_ALERTPOLICY_USERLABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_ALERTPOLICY_USERLABELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) # @@protoc_insertion_point(module_scope) diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/alert_pb2_grpc.py b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/alert_pb2_grpc.py index a89435267cb2..07cb78fe03a9 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/alert_pb2_grpc.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/alert_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/alert_service_pb2.py b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/alert_service_pb2.py index b736e46b408a..13ae5bfda112 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/alert_service_pb2.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/alert_service_pb2.py @@ -2,285 +2,437 @@ # source: google/cloud/monitoring_v3/proto/alert_service.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.monitoring_v3.proto import alert_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2 +from google.cloud.monitoring_v3.proto import ( + alert_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/monitoring_v3/proto/alert_service.proto', - package='google.monitoring.v3', - syntax='proto3', - serialized_pb=_b('\n4google/cloud/monitoring_v3/proto/alert_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a,google/cloud/monitoring_v3/proto/alert.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"a\n\x18\x43reateAlertPolicyRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x37\n\x0c\x61lert_policy\x18\x02 \x01(\x0b\x32!.google.monitoring.v3.AlertPolicy\"%\n\x15GetAlertPolicyRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\"q\n\x18ListAlertPoliciesRequest\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\x12\x10\n\x08order_by\x18\x06 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"o\n\x19ListAlertPoliciesResponse\x12\x39\n\x0e\x61lert_policies\x18\x03 \x03(\x0b\x32!.google.monitoring.v3.AlertPolicy\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x84\x01\n\x18UpdateAlertPolicyRequest\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x37\n\x0c\x61lert_policy\x18\x03 \x01(\x0b\x32!.google.monitoring.v3.AlertPolicy\"(\n\x18\x44\x65leteAlertPolicyRequest\x12\x0c\n\x04name\x18\x03 \x01(\t2\xae\x06\n\x12\x41lertPolicyService\x12\xa1\x01\n\x11ListAlertPolicies\x12..google.monitoring.v3.ListAlertPoliciesRequest\x1a/.google.monitoring.v3.ListAlertPoliciesResponse\"+\x82\xd3\xe4\x93\x02%\x12#/v3/{name=projects/*}/alertPolicies\x12\x8f\x01\n\x0eGetAlertPolicy\x12+.google.monitoring.v3.GetAlertPolicyRequest\x1a!.google.monitoring.v3.AlertPolicy\"-\x82\xd3\xe4\x93\x02\'\x12%/v3/{name=projects/*/alertPolicies/*}\x12\xa1\x01\n\x11\x43reateAlertPolicy\x12..google.monitoring.v3.CreateAlertPolicyRequest\x1a!.google.monitoring.v3.AlertPolicy\"9\x82\xd3\xe4\x93\x02\x33\"#/v3/{name=projects/*}/alertPolicies:\x0c\x61lert_policy\x12\x8a\x01\n\x11\x44\x65leteAlertPolicy\x12..google.monitoring.v3.DeleteAlertPolicyRequest\x1a\x16.google.protobuf.Empty\"-\x82\xd3\xe4\x93\x02\'*%/v3/{name=projects/*/alertPolicies/*}\x12\xb0\x01\n\x11UpdateAlertPolicy\x12..google.monitoring.v3.UpdateAlertPolicyRequest\x1a!.google.monitoring.v3.AlertPolicy\"H\x82\xd3\xe4\x93\x02\x42\x32\x32/v3/{alert_policy.name=projects/*/alertPolicies/*}:\x0c\x61lert_policyB\xa9\x01\n\x18\x63om.google.monitoring.v3B\x11\x41lertServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) - - + name="google/cloud/monitoring_v3/proto/alert_service.proto", + package="google.monitoring.v3", + syntax="proto3", + serialized_pb=_b( + '\n4google/cloud/monitoring_v3/proto/alert_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a,google/cloud/monitoring_v3/proto/alert.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"a\n\x18\x43reateAlertPolicyRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x37\n\x0c\x61lert_policy\x18\x02 \x01(\x0b\x32!.google.monitoring.v3.AlertPolicy"%\n\x15GetAlertPolicyRequest\x12\x0c\n\x04name\x18\x03 \x01(\t"q\n\x18ListAlertPoliciesRequest\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\x12\x10\n\x08order_by\x18\x06 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"o\n\x19ListAlertPoliciesResponse\x12\x39\n\x0e\x61lert_policies\x18\x03 \x03(\x0b\x32!.google.monitoring.v3.AlertPolicy\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\x84\x01\n\x18UpdateAlertPolicyRequest\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x37\n\x0c\x61lert_policy\x18\x03 \x01(\x0b\x32!.google.monitoring.v3.AlertPolicy"(\n\x18\x44\x65leteAlertPolicyRequest\x12\x0c\n\x04name\x18\x03 \x01(\t2\xae\x06\n\x12\x41lertPolicyService\x12\xa1\x01\n\x11ListAlertPolicies\x12..google.monitoring.v3.ListAlertPoliciesRequest\x1a/.google.monitoring.v3.ListAlertPoliciesResponse"+\x82\xd3\xe4\x93\x02%\x12#/v3/{name=projects/*}/alertPolicies\x12\x8f\x01\n\x0eGetAlertPolicy\x12+.google.monitoring.v3.GetAlertPolicyRequest\x1a!.google.monitoring.v3.AlertPolicy"-\x82\xd3\xe4\x93\x02\'\x12%/v3/{name=projects/*/alertPolicies/*}\x12\xa1\x01\n\x11\x43reateAlertPolicy\x12..google.monitoring.v3.CreateAlertPolicyRequest\x1a!.google.monitoring.v3.AlertPolicy"9\x82\xd3\xe4\x93\x02\x33"#/v3/{name=projects/*}/alertPolicies:\x0c\x61lert_policy\x12\x8a\x01\n\x11\x44\x65leteAlertPolicy\x12..google.monitoring.v3.DeleteAlertPolicyRequest\x1a\x16.google.protobuf.Empty"-\x82\xd3\xe4\x93\x02\'*%/v3/{name=projects/*/alertPolicies/*}\x12\xb0\x01\n\x11UpdateAlertPolicy\x12..google.monitoring.v3.UpdateAlertPolicyRequest\x1a!.google.monitoring.v3.AlertPolicy"H\x82\xd3\xe4\x93\x02\x42\x32\x32/v3/{alert_policy.name=projects/*/alertPolicies/*}:\x0c\x61lert_policyB\xa9\x01\n\x18\x63om.google.monitoring.v3B\x11\x41lertServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, + ], +) _CREATEALERTPOLICYREQUEST = _descriptor.Descriptor( - name='CreateAlertPolicyRequest', - full_name='google.monitoring.v3.CreateAlertPolicyRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.CreateAlertPolicyRequest.name', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='alert_policy', full_name='google.monitoring.v3.CreateAlertPolicyRequest.alert_policy', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=217, - serialized_end=314, + name="CreateAlertPolicyRequest", + full_name="google.monitoring.v3.CreateAlertPolicyRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.CreateAlertPolicyRequest.name", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="alert_policy", + full_name="google.monitoring.v3.CreateAlertPolicyRequest.alert_policy", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=217, + serialized_end=314, ) _GETALERTPOLICYREQUEST = _descriptor.Descriptor( - name='GetAlertPolicyRequest', - full_name='google.monitoring.v3.GetAlertPolicyRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.GetAlertPolicyRequest.name', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=316, - serialized_end=353, + name="GetAlertPolicyRequest", + full_name="google.monitoring.v3.GetAlertPolicyRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.GetAlertPolicyRequest.name", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=316, + serialized_end=353, ) _LISTALERTPOLICIESREQUEST = _descriptor.Descriptor( - name='ListAlertPoliciesRequest', - full_name='google.monitoring.v3.ListAlertPoliciesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.ListAlertPoliciesRequest.name', index=0, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.monitoring.v3.ListAlertPoliciesRequest.filter', index=1, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='order_by', full_name='google.monitoring.v3.ListAlertPoliciesRequest.order_by', index=2, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.monitoring.v3.ListAlertPoliciesRequest.page_size', index=3, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.monitoring.v3.ListAlertPoliciesRequest.page_token', index=4, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=355, - serialized_end=468, + name="ListAlertPoliciesRequest", + full_name="google.monitoring.v3.ListAlertPoliciesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.ListAlertPoliciesRequest.name", + index=0, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.monitoring.v3.ListAlertPoliciesRequest.filter", + index=1, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="order_by", + full_name="google.monitoring.v3.ListAlertPoliciesRequest.order_by", + index=2, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.monitoring.v3.ListAlertPoliciesRequest.page_size", + index=3, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.monitoring.v3.ListAlertPoliciesRequest.page_token", + index=4, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=355, + serialized_end=468, ) _LISTALERTPOLICIESRESPONSE = _descriptor.Descriptor( - name='ListAlertPoliciesResponse', - full_name='google.monitoring.v3.ListAlertPoliciesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='alert_policies', full_name='google.monitoring.v3.ListAlertPoliciesResponse.alert_policies', index=0, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.monitoring.v3.ListAlertPoliciesResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=470, - serialized_end=581, + name="ListAlertPoliciesResponse", + full_name="google.monitoring.v3.ListAlertPoliciesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="alert_policies", + full_name="google.monitoring.v3.ListAlertPoliciesResponse.alert_policies", + index=0, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.monitoring.v3.ListAlertPoliciesResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=470, + serialized_end=581, ) _UPDATEALERTPOLICYREQUEST = _descriptor.Descriptor( - name='UpdateAlertPolicyRequest', - full_name='google.monitoring.v3.UpdateAlertPolicyRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.monitoring.v3.UpdateAlertPolicyRequest.update_mask', index=0, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='alert_policy', full_name='google.monitoring.v3.UpdateAlertPolicyRequest.alert_policy', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=584, - serialized_end=716, + name="UpdateAlertPolicyRequest", + full_name="google.monitoring.v3.UpdateAlertPolicyRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.monitoring.v3.UpdateAlertPolicyRequest.update_mask", + index=0, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="alert_policy", + full_name="google.monitoring.v3.UpdateAlertPolicyRequest.alert_policy", + index=1, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=584, + serialized_end=716, ) _DELETEALERTPOLICYREQUEST = _descriptor.Descriptor( - name='DeleteAlertPolicyRequest', - full_name='google.monitoring.v3.DeleteAlertPolicyRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.DeleteAlertPolicyRequest.name', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=718, - serialized_end=758, + name="DeleteAlertPolicyRequest", + full_name="google.monitoring.v3.DeleteAlertPolicyRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.DeleteAlertPolicyRequest.name", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=718, + serialized_end=758, ) -_CREATEALERTPOLICYREQUEST.fields_by_name['alert_policy'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2._ALERTPOLICY -_LISTALERTPOLICIESRESPONSE.fields_by_name['alert_policies'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2._ALERTPOLICY -_UPDATEALERTPOLICYREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_UPDATEALERTPOLICYREQUEST.fields_by_name['alert_policy'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2._ALERTPOLICY -DESCRIPTOR.message_types_by_name['CreateAlertPolicyRequest'] = _CREATEALERTPOLICYREQUEST -DESCRIPTOR.message_types_by_name['GetAlertPolicyRequest'] = _GETALERTPOLICYREQUEST -DESCRIPTOR.message_types_by_name['ListAlertPoliciesRequest'] = _LISTALERTPOLICIESREQUEST -DESCRIPTOR.message_types_by_name['ListAlertPoliciesResponse'] = _LISTALERTPOLICIESRESPONSE -DESCRIPTOR.message_types_by_name['UpdateAlertPolicyRequest'] = _UPDATEALERTPOLICYREQUEST -DESCRIPTOR.message_types_by_name['DeleteAlertPolicyRequest'] = _DELETEALERTPOLICYREQUEST +_CREATEALERTPOLICYREQUEST.fields_by_name[ + "alert_policy" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2._ALERTPOLICY +) +_LISTALERTPOLICIESRESPONSE.fields_by_name[ + "alert_policies" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2._ALERTPOLICY +) +_UPDATEALERTPOLICYREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_UPDATEALERTPOLICYREQUEST.fields_by_name[ + "alert_policy" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2._ALERTPOLICY +) +DESCRIPTOR.message_types_by_name["CreateAlertPolicyRequest"] = _CREATEALERTPOLICYREQUEST +DESCRIPTOR.message_types_by_name["GetAlertPolicyRequest"] = _GETALERTPOLICYREQUEST +DESCRIPTOR.message_types_by_name["ListAlertPoliciesRequest"] = _LISTALERTPOLICIESREQUEST +DESCRIPTOR.message_types_by_name[ + "ListAlertPoliciesResponse" +] = _LISTALERTPOLICIESRESPONSE +DESCRIPTOR.message_types_by_name["UpdateAlertPolicyRequest"] = _UPDATEALERTPOLICYREQUEST +DESCRIPTOR.message_types_by_name["DeleteAlertPolicyRequest"] = _DELETEALERTPOLICYREQUEST _sym_db.RegisterFileDescriptor(DESCRIPTOR) -CreateAlertPolicyRequest = _reflection.GeneratedProtocolMessageType('CreateAlertPolicyRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEALERTPOLICYREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.alert_service_pb2' - , - __doc__ = """The protocol for the ``CreateAlertPolicy`` request. +CreateAlertPolicyRequest = _reflection.GeneratedProtocolMessageType( + "CreateAlertPolicyRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEALERTPOLICYREQUEST, + __module__="google.cloud.monitoring_v3.proto.alert_service_pb2", + __doc__="""The protocol for the ``CreateAlertPolicy`` request. Attributes: @@ -298,15 +450,18 @@ field in this policy. The name will be returned in the new policy, including a new [ALERT\_POLICY\_ID] value. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateAlertPolicyRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateAlertPolicyRequest) + ), +) _sym_db.RegisterMessage(CreateAlertPolicyRequest) -GetAlertPolicyRequest = _reflection.GeneratedProtocolMessageType('GetAlertPolicyRequest', (_message.Message,), dict( - DESCRIPTOR = _GETALERTPOLICYREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.alert_service_pb2' - , - __doc__ = """The protocol for the ``GetAlertPolicy`` request. +GetAlertPolicyRequest = _reflection.GeneratedProtocolMessageType( + "GetAlertPolicyRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETALERTPOLICYREQUEST, + __module__="google.cloud.monitoring_v3.proto.alert_service_pb2", + __doc__="""The protocol for the ``GetAlertPolicy`` request. Attributes: @@ -314,15 +469,18 @@ The alerting policy to retrieve. The format is :: projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID] """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetAlertPolicyRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetAlertPolicyRequest) + ), +) _sym_db.RegisterMessage(GetAlertPolicyRequest) -ListAlertPoliciesRequest = _reflection.GeneratedProtocolMessageType('ListAlertPoliciesRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTALERTPOLICIESREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.alert_service_pb2' - , - __doc__ = """The protocol for the ``ListAlertPolicies`` request. +ListAlertPoliciesRequest = _reflection.GeneratedProtocolMessageType( + "ListAlertPoliciesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTALERTPOLICIESREQUEST, + __module__="google.cloud.monitoring_v3.proto.alert_service_pb2", + __doc__="""The protocol for the ``ListAlertPolicies`` request. Attributes: @@ -352,15 +510,18 @@ method. Using this field causes the method to return more results from the previous method call. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListAlertPoliciesRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListAlertPoliciesRequest) + ), +) _sym_db.RegisterMessage(ListAlertPoliciesRequest) -ListAlertPoliciesResponse = _reflection.GeneratedProtocolMessageType('ListAlertPoliciesResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTALERTPOLICIESRESPONSE, - __module__ = 'google.cloud.monitoring_v3.proto.alert_service_pb2' - , - __doc__ = """The protocol for the ``ListAlertPolicies`` response. +ListAlertPoliciesResponse = _reflection.GeneratedProtocolMessageType( + "ListAlertPoliciesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTALERTPOLICIESRESPONSE, + __module__="google.cloud.monitoring_v3.proto.alert_service_pb2", + __doc__="""The protocol for the ``ListAlertPolicies`` response. Attributes: @@ -372,15 +533,18 @@ results, use that value as ``pageToken`` in the next call to this method. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListAlertPoliciesResponse) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListAlertPoliciesResponse) + ), +) _sym_db.RegisterMessage(ListAlertPoliciesResponse) -UpdateAlertPolicyRequest = _reflection.GeneratedProtocolMessageType('UpdateAlertPolicyRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATEALERTPOLICYREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.alert_service_pb2' - , - __doc__ = """The protocol for the ``UpdateAlertPolicy`` request. +UpdateAlertPolicyRequest = _reflection.GeneratedProtocolMessageType( + "UpdateAlertPolicyRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEALERTPOLICYREQUEST, + __module__="google.cloud.monitoring_v3.proto.alert_service_pb2", + __doc__="""The protocol for the ``UpdateAlertPolicy`` request. Attributes: @@ -411,15 +575,18 @@ is not empty, any fields in this policy that are not in ``update_mask`` are ignored. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateAlertPolicyRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateAlertPolicyRequest) + ), +) _sym_db.RegisterMessage(UpdateAlertPolicyRequest) -DeleteAlertPolicyRequest = _reflection.GeneratedProtocolMessageType('DeleteAlertPolicyRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEALERTPOLICYREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.alert_service_pb2' - , - __doc__ = """The protocol for the ``DeleteAlertPolicy`` request. +DeleteAlertPolicyRequest = _reflection.GeneratedProtocolMessageType( + "DeleteAlertPolicyRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEALERTPOLICYREQUEST, + __module__="google.cloud.monitoring_v3.proto.alert_service_pb2", + __doc__="""The protocol for the ``DeleteAlertPolicy`` request. Attributes: @@ -429,71 +596,97 @@ more information, see [AlertPolicy][google.monitoring.v3.AlertPolicy]. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteAlertPolicyRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteAlertPolicyRequest) + ), +) _sym_db.RegisterMessage(DeleteAlertPolicyRequest) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\030com.google.monitoring.v3B\021AlertServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\030com.google.monitoring.v3B\021AlertServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3" + ), +) _ALERTPOLICYSERVICE = _descriptor.ServiceDescriptor( - name='AlertPolicyService', - full_name='google.monitoring.v3.AlertPolicyService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=761, - serialized_end=1575, - methods=[ - _descriptor.MethodDescriptor( - name='ListAlertPolicies', - full_name='google.monitoring.v3.AlertPolicyService.ListAlertPolicies', + name="AlertPolicyService", + full_name="google.monitoring.v3.AlertPolicyService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_LISTALERTPOLICIESREQUEST, - output_type=_LISTALERTPOLICIESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002%\022#/v3/{name=projects/*}/alertPolicies')), - ), - _descriptor.MethodDescriptor( - name='GetAlertPolicy', - full_name='google.monitoring.v3.AlertPolicyService.GetAlertPolicy', - index=1, - containing_service=None, - input_type=_GETALERTPOLICYREQUEST, - output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2._ALERTPOLICY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\'\022%/v3/{name=projects/*/alertPolicies/*}')), - ), - _descriptor.MethodDescriptor( - name='CreateAlertPolicy', - full_name='google.monitoring.v3.AlertPolicyService.CreateAlertPolicy', - index=2, - containing_service=None, - input_type=_CREATEALERTPOLICYREQUEST, - output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2._ALERTPOLICY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0023\"#/v3/{name=projects/*}/alertPolicies:\014alert_policy')), - ), - _descriptor.MethodDescriptor( - name='DeleteAlertPolicy', - full_name='google.monitoring.v3.AlertPolicyService.DeleteAlertPolicy', - index=3, - containing_service=None, - input_type=_DELETEALERTPOLICYREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\'*%/v3/{name=projects/*/alertPolicies/*}')), - ), - _descriptor.MethodDescriptor( - name='UpdateAlertPolicy', - full_name='google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy', - index=4, - containing_service=None, - input_type=_UPDATEALERTPOLICYREQUEST, - output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2._ALERTPOLICY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002B22/v3/{alert_policy.name=projects/*/alertPolicies/*}:\014alert_policy')), - ), -]) + options=None, + serialized_start=761, + serialized_end=1575, + methods=[ + _descriptor.MethodDescriptor( + name="ListAlertPolicies", + full_name="google.monitoring.v3.AlertPolicyService.ListAlertPolicies", + index=0, + containing_service=None, + input_type=_LISTALERTPOLICIESREQUEST, + output_type=_LISTALERTPOLICIESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002%\022#/v3/{name=projects/*}/alertPolicies"), + ), + ), + _descriptor.MethodDescriptor( + name="GetAlertPolicy", + full_name="google.monitoring.v3.AlertPolicyService.GetAlertPolicy", + index=1, + containing_service=None, + input_type=_GETALERTPOLICYREQUEST, + output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2._ALERTPOLICY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002'\022%/v3/{name=projects/*/alertPolicies/*}"), + ), + ), + _descriptor.MethodDescriptor( + name="CreateAlertPolicy", + full_name="google.monitoring.v3.AlertPolicyService.CreateAlertPolicy", + index=2, + containing_service=None, + input_type=_CREATEALERTPOLICYREQUEST, + output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2._ALERTPOLICY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\0023"#/v3/{name=projects/*}/alertPolicies:\014alert_policy' + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteAlertPolicy", + full_name="google.monitoring.v3.AlertPolicyService.DeleteAlertPolicy", + index=3, + containing_service=None, + input_type=_DELETEALERTPOLICYREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002'*%/v3/{name=projects/*/alertPolicies/*}"), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateAlertPolicy", + full_name="google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy", + index=4, + containing_service=None, + input_type=_UPDATEALERTPOLICYREQUEST, + output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2._ALERTPOLICY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002B22/v3/{alert_policy.name=projects/*/alertPolicies/*}:\014alert_policy" + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_ALERTPOLICYSERVICE) -DESCRIPTOR.services_by_name['AlertPolicyService'] = _ALERTPOLICYSERVICE +DESCRIPTOR.services_by_name["AlertPolicyService"] = _ALERTPOLICYSERVICE # @@protoc_insertion_point(module_scope) diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/alert_service_pb2_grpc.py b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/alert_service_pb2_grpc.py index c9248fdbc9e1..d5773d78c4d4 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/alert_service_pb2_grpc.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/alert_service_pb2_grpc.py @@ -1,13 +1,17 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.monitoring_v3.proto import alert_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2 -from google.cloud.monitoring_v3.proto import alert_service_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2 +from google.cloud.monitoring_v3.proto import ( + alert_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2, +) +from google.cloud.monitoring_v3.proto import ( + alert_service_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class AlertPolicyServiceStub(object): - """The AlertPolicyService API is used to manage (list, create, delete, + """The AlertPolicyService API is used to manage (list, create, delete, edit) alert policies in Stackdriver Monitoring. An alerting policy is a description of the conditions under which some aspect of your system is considered to be "unhealthy" and the ways to notify @@ -18,41 +22,41 @@ class AlertPolicyServiceStub(object): [Cloud Console](https://console.cloud.google.com/). """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.ListAlertPolicies = channel.unary_unary( - '/google.monitoring.v3.AlertPolicyService/ListAlertPolicies', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.ListAlertPoliciesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.ListAlertPoliciesResponse.FromString, + self.ListAlertPolicies = channel.unary_unary( + "/google.monitoring.v3.AlertPolicyService/ListAlertPolicies", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.ListAlertPoliciesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.ListAlertPoliciesResponse.FromString, ) - self.GetAlertPolicy = channel.unary_unary( - '/google.monitoring.v3.AlertPolicyService/GetAlertPolicy', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.GetAlertPolicyRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2.AlertPolicy.FromString, + self.GetAlertPolicy = channel.unary_unary( + "/google.monitoring.v3.AlertPolicyService/GetAlertPolicy", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.GetAlertPolicyRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2.AlertPolicy.FromString, ) - self.CreateAlertPolicy = channel.unary_unary( - '/google.monitoring.v3.AlertPolicyService/CreateAlertPolicy', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.CreateAlertPolicyRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2.AlertPolicy.FromString, + self.CreateAlertPolicy = channel.unary_unary( + "/google.monitoring.v3.AlertPolicyService/CreateAlertPolicy", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.CreateAlertPolicyRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2.AlertPolicy.FromString, ) - self.DeleteAlertPolicy = channel.unary_unary( - '/google.monitoring.v3.AlertPolicyService/DeleteAlertPolicy', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.DeleteAlertPolicyRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteAlertPolicy = channel.unary_unary( + "/google.monitoring.v3.AlertPolicyService/DeleteAlertPolicy", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.DeleteAlertPolicyRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.UpdateAlertPolicy = channel.unary_unary( - '/google.monitoring.v3.AlertPolicyService/UpdateAlertPolicy', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.UpdateAlertPolicyRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2.AlertPolicy.FromString, + self.UpdateAlertPolicy = channel.unary_unary( + "/google.monitoring.v3.AlertPolicyService/UpdateAlertPolicy", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.UpdateAlertPolicyRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2.AlertPolicy.FromString, ) class AlertPolicyServiceServicer(object): - """The AlertPolicyService API is used to manage (list, create, delete, + """The AlertPolicyService API is used to manage (list, create, delete, edit) alert policies in Stackdriver Monitoring. An alerting policy is a description of the conditions under which some aspect of your system is considered to be "unhealthy" and the ways to notify @@ -63,73 +67,74 @@ class AlertPolicyServiceServicer(object): [Cloud Console](https://console.cloud.google.com/). """ - def ListAlertPolicies(self, request, context): - """Lists the existing alerting policies for the project. + def ListAlertPolicies(self, request, context): + """Lists the existing alerting policies for the project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetAlertPolicy(self, request, context): - """Gets a single alerting policy. + def GetAlertPolicy(self, request, context): + """Gets a single alerting policy. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateAlertPolicy(self, request, context): - """Creates a new alerting policy. + def CreateAlertPolicy(self, request, context): + """Creates a new alerting policy. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteAlertPolicy(self, request, context): - """Deletes an alerting policy. + def DeleteAlertPolicy(self, request, context): + """Deletes an alerting policy. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateAlertPolicy(self, request, context): - """Updates an alerting policy. You can either replace the entire policy with + def UpdateAlertPolicy(self, request, context): + """Updates an alerting policy. You can either replace the entire policy with a new one or replace only certain fields in the current alerting policy by specifying the fields to be updated via `updateMask`. Returns the updated alerting policy. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_AlertPolicyServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ListAlertPolicies': grpc.unary_unary_rpc_method_handler( - servicer.ListAlertPolicies, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.ListAlertPoliciesRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.ListAlertPoliciesResponse.SerializeToString, - ), - 'GetAlertPolicy': grpc.unary_unary_rpc_method_handler( - servicer.GetAlertPolicy, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.GetAlertPolicyRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2.AlertPolicy.SerializeToString, - ), - 'CreateAlertPolicy': grpc.unary_unary_rpc_method_handler( - servicer.CreateAlertPolicy, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.CreateAlertPolicyRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2.AlertPolicy.SerializeToString, - ), - 'DeleteAlertPolicy': grpc.unary_unary_rpc_method_handler( - servicer.DeleteAlertPolicy, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.DeleteAlertPolicyRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'UpdateAlertPolicy': grpc.unary_unary_rpc_method_handler( - servicer.UpdateAlertPolicy, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.UpdateAlertPolicyRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2.AlertPolicy.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.monitoring.v3.AlertPolicyService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "ListAlertPolicies": grpc.unary_unary_rpc_method_handler( + servicer.ListAlertPolicies, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.ListAlertPoliciesRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.ListAlertPoliciesResponse.SerializeToString, + ), + "GetAlertPolicy": grpc.unary_unary_rpc_method_handler( + servicer.GetAlertPolicy, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.GetAlertPolicyRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2.AlertPolicy.SerializeToString, + ), + "CreateAlertPolicy": grpc.unary_unary_rpc_method_handler( + servicer.CreateAlertPolicy, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.CreateAlertPolicyRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2.AlertPolicy.SerializeToString, + ), + "DeleteAlertPolicy": grpc.unary_unary_rpc_method_handler( + servicer.DeleteAlertPolicy, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.DeleteAlertPolicyRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "UpdateAlertPolicy": grpc.unary_unary_rpc_method_handler( + servicer.UpdateAlertPolicy, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__service__pb2.UpdateAlertPolicyRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_alert__pb2.AlertPolicy.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.monitoring.v3.AlertPolicyService", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/common_pb2.py b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/common_pb2.py index e38d658d2485..c8677339d1ee 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/common_pb2.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/common_pb2.py @@ -3,13 +3,15 @@ # source: google/cloud/monitoring_v3/proto/common.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -22,79 +24,76 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/monitoring_v3/proto/common.proto', - package='google.monitoring.v3', - syntax='proto3', - serialized_pb=_b('\n-google/cloud/monitoring_v3/proto/common.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x1dgoogle/api/distribution.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xaa\x01\n\nTypedValue\x12\x14\n\nbool_value\x18\x01 \x01(\x08H\x00\x12\x15\n\x0bint64_value\x18\x02 \x01(\x03H\x00\x12\x16\n\x0c\x64ouble_value\x18\x03 \x01(\x01H\x00\x12\x16\n\x0cstring_value\x18\x04 \x01(\tH\x00\x12\x36\n\x12\x64istribution_value\x18\x05 \x01(\x0b\x32\x18.google.api.DistributionH\x00\x42\x07\n\x05value\"l\n\x0cTimeInterval\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xad\x07\n\x0b\x41ggregation\x12\x33\n\x10\x61lignment_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x45\n\x12per_series_aligner\x18\x02 \x01(\x0e\x32).google.monitoring.v3.Aggregation.Aligner\x12G\n\x14\x63ross_series_reducer\x18\x04 \x01(\x0e\x32).google.monitoring.v3.Aggregation.Reducer\x12\x17\n\x0fgroup_by_fields\x18\x05 \x03(\t\"\x8b\x03\n\x07\x41ligner\x12\x0e\n\nALIGN_NONE\x10\x00\x12\x0f\n\x0b\x41LIGN_DELTA\x10\x01\x12\x0e\n\nALIGN_RATE\x10\x02\x12\x15\n\x11\x41LIGN_INTERPOLATE\x10\x03\x12\x14\n\x10\x41LIGN_NEXT_OLDER\x10\x04\x12\r\n\tALIGN_MIN\x10\n\x12\r\n\tALIGN_MAX\x10\x0b\x12\x0e\n\nALIGN_MEAN\x10\x0c\x12\x0f\n\x0b\x41LIGN_COUNT\x10\r\x12\r\n\tALIGN_SUM\x10\x0e\x12\x10\n\x0c\x41LIGN_STDDEV\x10\x0f\x12\x14\n\x10\x41LIGN_COUNT_TRUE\x10\x10\x12\x15\n\x11\x41LIGN_COUNT_FALSE\x10\x18\x12\x17\n\x13\x41LIGN_FRACTION_TRUE\x10\x11\x12\x17\n\x13\x41LIGN_PERCENTILE_99\x10\x12\x12\x17\n\x13\x41LIGN_PERCENTILE_95\x10\x13\x12\x17\n\x13\x41LIGN_PERCENTILE_50\x10\x14\x12\x17\n\x13\x41LIGN_PERCENTILE_05\x10\x15\x12\x18\n\x14\x41LIGN_PERCENT_CHANGE\x10\x17\"\xb1\x02\n\x07Reducer\x12\x0f\n\x0bREDUCE_NONE\x10\x00\x12\x0f\n\x0bREDUCE_MEAN\x10\x01\x12\x0e\n\nREDUCE_MIN\x10\x02\x12\x0e\n\nREDUCE_MAX\x10\x03\x12\x0e\n\nREDUCE_SUM\x10\x04\x12\x11\n\rREDUCE_STDDEV\x10\x05\x12\x10\n\x0cREDUCE_COUNT\x10\x06\x12\x15\n\x11REDUCE_COUNT_TRUE\x10\x07\x12\x16\n\x12REDUCE_COUNT_FALSE\x10\x0f\x12\x18\n\x14REDUCE_FRACTION_TRUE\x10\x08\x12\x18\n\x14REDUCE_PERCENTILE_99\x10\t\x12\x18\n\x14REDUCE_PERCENTILE_95\x10\n\x12\x18\n\x14REDUCE_PERCENTILE_50\x10\x0b\x12\x18\n\x14REDUCE_PERCENTILE_05\x10\x0c*\x9e\x01\n\x0e\x43omparisonType\x12\x1a\n\x16\x43OMPARISON_UNSPECIFIED\x10\x00\x12\x11\n\rCOMPARISON_GT\x10\x01\x12\x11\n\rCOMPARISON_GE\x10\x02\x12\x11\n\rCOMPARISON_LT\x10\x03\x12\x11\n\rCOMPARISON_LE\x10\x04\x12\x11\n\rCOMPARISON_EQ\x10\x05\x12\x11\n\rCOMPARISON_NE\x10\x06*a\n\x0bServiceTier\x12\x1c\n\x18SERVICE_TIER_UNSPECIFIED\x10\x00\x12\x16\n\x12SERVICE_TIER_BASIC\x10\x01\x12\x18\n\x14SERVICE_TIER_PREMIUM\x10\x02\x1a\x02\x18\x01\x42\xa3\x01\n\x18\x63om.google.monitoring.v3B\x0b\x43ommonProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_distribution__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) + name="google/cloud/monitoring_v3/proto/common.proto", + package="google.monitoring.v3", + syntax="proto3", + serialized_pb=_b( + '\n-google/cloud/monitoring_v3/proto/common.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x1dgoogle/api/distribution.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xaa\x01\n\nTypedValue\x12\x14\n\nbool_value\x18\x01 \x01(\x08H\x00\x12\x15\n\x0bint64_value\x18\x02 \x01(\x03H\x00\x12\x16\n\x0c\x64ouble_value\x18\x03 \x01(\x01H\x00\x12\x16\n\x0cstring_value\x18\x04 \x01(\tH\x00\x12\x36\n\x12\x64istribution_value\x18\x05 \x01(\x0b\x32\x18.google.api.DistributionH\x00\x42\x07\n\x05value"l\n\x0cTimeInterval\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xad\x07\n\x0b\x41ggregation\x12\x33\n\x10\x61lignment_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x45\n\x12per_series_aligner\x18\x02 \x01(\x0e\x32).google.monitoring.v3.Aggregation.Aligner\x12G\n\x14\x63ross_series_reducer\x18\x04 \x01(\x0e\x32).google.monitoring.v3.Aggregation.Reducer\x12\x17\n\x0fgroup_by_fields\x18\x05 \x03(\t"\x8b\x03\n\x07\x41ligner\x12\x0e\n\nALIGN_NONE\x10\x00\x12\x0f\n\x0b\x41LIGN_DELTA\x10\x01\x12\x0e\n\nALIGN_RATE\x10\x02\x12\x15\n\x11\x41LIGN_INTERPOLATE\x10\x03\x12\x14\n\x10\x41LIGN_NEXT_OLDER\x10\x04\x12\r\n\tALIGN_MIN\x10\n\x12\r\n\tALIGN_MAX\x10\x0b\x12\x0e\n\nALIGN_MEAN\x10\x0c\x12\x0f\n\x0b\x41LIGN_COUNT\x10\r\x12\r\n\tALIGN_SUM\x10\x0e\x12\x10\n\x0c\x41LIGN_STDDEV\x10\x0f\x12\x14\n\x10\x41LIGN_COUNT_TRUE\x10\x10\x12\x15\n\x11\x41LIGN_COUNT_FALSE\x10\x18\x12\x17\n\x13\x41LIGN_FRACTION_TRUE\x10\x11\x12\x17\n\x13\x41LIGN_PERCENTILE_99\x10\x12\x12\x17\n\x13\x41LIGN_PERCENTILE_95\x10\x13\x12\x17\n\x13\x41LIGN_PERCENTILE_50\x10\x14\x12\x17\n\x13\x41LIGN_PERCENTILE_05\x10\x15\x12\x18\n\x14\x41LIGN_PERCENT_CHANGE\x10\x17"\xb1\x02\n\x07Reducer\x12\x0f\n\x0bREDUCE_NONE\x10\x00\x12\x0f\n\x0bREDUCE_MEAN\x10\x01\x12\x0e\n\nREDUCE_MIN\x10\x02\x12\x0e\n\nREDUCE_MAX\x10\x03\x12\x0e\n\nREDUCE_SUM\x10\x04\x12\x11\n\rREDUCE_STDDEV\x10\x05\x12\x10\n\x0cREDUCE_COUNT\x10\x06\x12\x15\n\x11REDUCE_COUNT_TRUE\x10\x07\x12\x16\n\x12REDUCE_COUNT_FALSE\x10\x0f\x12\x18\n\x14REDUCE_FRACTION_TRUE\x10\x08\x12\x18\n\x14REDUCE_PERCENTILE_99\x10\t\x12\x18\n\x14REDUCE_PERCENTILE_95\x10\n\x12\x18\n\x14REDUCE_PERCENTILE_50\x10\x0b\x12\x18\n\x14REDUCE_PERCENTILE_05\x10\x0c*\x9e\x01\n\x0e\x43omparisonType\x12\x1a\n\x16\x43OMPARISON_UNSPECIFIED\x10\x00\x12\x11\n\rCOMPARISON_GT\x10\x01\x12\x11\n\rCOMPARISON_GE\x10\x02\x12\x11\n\rCOMPARISON_LT\x10\x03\x12\x11\n\rCOMPARISON_LE\x10\x04\x12\x11\n\rCOMPARISON_EQ\x10\x05\x12\x11\n\rCOMPARISON_NE\x10\x06*a\n\x0bServiceTier\x12\x1c\n\x18SERVICE_TIER_UNSPECIFIED\x10\x00\x12\x16\n\x12SERVICE_TIER_BASIC\x10\x01\x12\x18\n\x14SERVICE_TIER_PREMIUM\x10\x02\x1a\x02\x18\x01\x42\xa3\x01\n\x18\x63om.google.monitoring.v3B\x0b\x43ommonProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_api_dot_distribution__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _COMPARISONTYPE = _descriptor.EnumDescriptor( - name='ComparisonType', - full_name='google.monitoring.v3.ComparisonType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='COMPARISON_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='COMPARISON_GT', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='COMPARISON_GE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='COMPARISON_LT', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='COMPARISON_LE', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='COMPARISON_EQ', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='COMPARISON_NE', index=6, number=6, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1425, - serialized_end=1583, + name="ComparisonType", + full_name="google.monitoring.v3.ComparisonType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="COMPARISON_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="COMPARISON_GT", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="COMPARISON_GE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="COMPARISON_LT", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="COMPARISON_LE", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="COMPARISON_EQ", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="COMPARISON_NE", index=6, number=6, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1425, + serialized_end=1583, ) _sym_db.RegisterEnumDescriptor(_COMPARISONTYPE) ComparisonType = enum_type_wrapper.EnumTypeWrapper(_COMPARISONTYPE) _SERVICETIER = _descriptor.EnumDescriptor( - name='ServiceTier', - full_name='google.monitoring.v3.ServiceTier', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='SERVICE_TIER_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SERVICE_TIER_BASIC', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SERVICE_TIER_PREMIUM', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=_descriptor._ParseOptions(descriptor_pb2.EnumOptions(), _b('\030\001')), - serialized_start=1585, - serialized_end=1682, + name="ServiceTier", + full_name="google.monitoring.v3.ServiceTier", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="SERVICE_TIER_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SERVICE_TIER_BASIC", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SERVICE_TIER_PREMIUM", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=_descriptor._ParseOptions(descriptor_pb2.EnumOptions(), _b("\030\001")), + serialized_start=1585, + serialized_end=1682, ) _sym_db.RegisterEnumDescriptor(_SERVICETIER) @@ -112,354 +111,461 @@ _AGGREGATION_ALIGNER = _descriptor.EnumDescriptor( - name='Aligner', - full_name='google.monitoring.v3.Aggregation.Aligner', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='ALIGN_NONE', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_DELTA', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_RATE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_INTERPOLATE', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_NEXT_OLDER', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_MIN', index=5, number=10, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_MAX', index=6, number=11, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_MEAN', index=7, number=12, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_COUNT', index=8, number=13, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_SUM', index=9, number=14, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_STDDEV', index=10, number=15, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_COUNT_TRUE', index=11, number=16, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_COUNT_FALSE', index=12, number=24, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_FRACTION_TRUE', index=13, number=17, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_PERCENTILE_99', index=14, number=18, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_PERCENTILE_95', index=15, number=19, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_PERCENTILE_50', index=16, number=20, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_PERCENTILE_05', index=17, number=21, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALIGN_PERCENT_CHANGE', index=18, number=23, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=719, - serialized_end=1114, + name="Aligner", + full_name="google.monitoring.v3.Aggregation.Aligner", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="ALIGN_NONE", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_DELTA", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_RATE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_INTERPOLATE", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_NEXT_OLDER", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_MIN", index=5, number=10, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_MAX", index=6, number=11, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_MEAN", index=7, number=12, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_COUNT", index=8, number=13, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_SUM", index=9, number=14, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_STDDEV", index=10, number=15, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_COUNT_TRUE", index=11, number=16, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_COUNT_FALSE", index=12, number=24, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_FRACTION_TRUE", index=13, number=17, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_PERCENTILE_99", index=14, number=18, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_PERCENTILE_95", index=15, number=19, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_PERCENTILE_50", index=16, number=20, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_PERCENTILE_05", index=17, number=21, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ALIGN_PERCENT_CHANGE", index=18, number=23, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=719, + serialized_end=1114, ) _sym_db.RegisterEnumDescriptor(_AGGREGATION_ALIGNER) _AGGREGATION_REDUCER = _descriptor.EnumDescriptor( - name='Reducer', - full_name='google.monitoring.v3.Aggregation.Reducer', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='REDUCE_NONE', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REDUCE_MEAN', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REDUCE_MIN', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REDUCE_MAX', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REDUCE_SUM', index=4, number=4, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REDUCE_STDDEV', index=5, number=5, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REDUCE_COUNT', index=6, number=6, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REDUCE_COUNT_TRUE', index=7, number=7, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REDUCE_COUNT_FALSE', index=8, number=15, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REDUCE_FRACTION_TRUE', index=9, number=8, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REDUCE_PERCENTILE_99', index=10, number=9, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REDUCE_PERCENTILE_95', index=11, number=10, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REDUCE_PERCENTILE_50', index=12, number=11, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REDUCE_PERCENTILE_05', index=13, number=12, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1117, - serialized_end=1422, + name="Reducer", + full_name="google.monitoring.v3.Aggregation.Reducer", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="REDUCE_NONE", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REDUCE_MEAN", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REDUCE_MIN", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REDUCE_MAX", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REDUCE_SUM", index=4, number=4, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REDUCE_STDDEV", index=5, number=5, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REDUCE_COUNT", index=6, number=6, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REDUCE_COUNT_TRUE", index=7, number=7, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REDUCE_COUNT_FALSE", index=8, number=15, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REDUCE_FRACTION_TRUE", index=9, number=8, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REDUCE_PERCENTILE_99", index=10, number=9, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REDUCE_PERCENTILE_95", index=11, number=10, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REDUCE_PERCENTILE_50", index=12, number=11, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="REDUCE_PERCENTILE_05", index=13, number=12, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1117, + serialized_end=1422, ) _sym_db.RegisterEnumDescriptor(_AGGREGATION_REDUCER) _TYPEDVALUE = _descriptor.Descriptor( - name='TypedValue', - full_name='google.monitoring.v3.TypedValue', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='bool_value', full_name='google.monitoring.v3.TypedValue.bool_value', index=0, - number=1, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='int64_value', full_name='google.monitoring.v3.TypedValue.int64_value', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='double_value', full_name='google.monitoring.v3.TypedValue.double_value', index=2, - number=3, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='string_value', full_name='google.monitoring.v3.TypedValue.string_value', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='distribution_value', full_name='google.monitoring.v3.TypedValue.distribution_value', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='value', full_name='google.monitoring.v3.TypedValue.value', - index=0, containing_type=None, fields=[]), - ], - serialized_start=198, - serialized_end=368, + name="TypedValue", + full_name="google.monitoring.v3.TypedValue", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="bool_value", + full_name="google.monitoring.v3.TypedValue.bool_value", + index=0, + number=1, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="int64_value", + full_name="google.monitoring.v3.TypedValue.int64_value", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="double_value", + full_name="google.monitoring.v3.TypedValue.double_value", + index=2, + number=3, + type=1, + cpp_type=5, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="string_value", + full_name="google.monitoring.v3.TypedValue.string_value", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="distribution_value", + full_name="google.monitoring.v3.TypedValue.distribution_value", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="value", + full_name="google.monitoring.v3.TypedValue.value", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=198, + serialized_end=368, ) _TIMEINTERVAL = _descriptor.Descriptor( - name='TimeInterval', - full_name='google.monitoring.v3.TimeInterval', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='end_time', full_name='google.monitoring.v3.TimeInterval.end_time', index=0, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_time', full_name='google.monitoring.v3.TimeInterval.start_time', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=370, - serialized_end=478, + name="TimeInterval", + full_name="google.monitoring.v3.TimeInterval", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="end_time", + full_name="google.monitoring.v3.TimeInterval.end_time", + index=0, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="start_time", + full_name="google.monitoring.v3.TimeInterval.start_time", + index=1, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=370, + serialized_end=478, ) _AGGREGATION = _descriptor.Descriptor( - name='Aggregation', - full_name='google.monitoring.v3.Aggregation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='alignment_period', full_name='google.monitoring.v3.Aggregation.alignment_period', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='per_series_aligner', full_name='google.monitoring.v3.Aggregation.per_series_aligner', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cross_series_reducer', full_name='google.monitoring.v3.Aggregation.cross_series_reducer', index=2, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='group_by_fields', full_name='google.monitoring.v3.Aggregation.group_by_fields', index=3, - number=5, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _AGGREGATION_ALIGNER, - _AGGREGATION_REDUCER, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=481, - serialized_end=1422, + name="Aggregation", + full_name="google.monitoring.v3.Aggregation", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="alignment_period", + full_name="google.monitoring.v3.Aggregation.alignment_period", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="per_series_aligner", + full_name="google.monitoring.v3.Aggregation.per_series_aligner", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="cross_series_reducer", + full_name="google.monitoring.v3.Aggregation.cross_series_reducer", + index=2, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="group_by_fields", + full_name="google.monitoring.v3.Aggregation.group_by_fields", + index=3, + number=5, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_AGGREGATION_ALIGNER, _AGGREGATION_REDUCER], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=481, + serialized_end=1422, ) -_TYPEDVALUE.fields_by_name['distribution_value'].message_type = google_dot_api_dot_distribution__pb2._DISTRIBUTION -_TYPEDVALUE.oneofs_by_name['value'].fields.append( - _TYPEDVALUE.fields_by_name['bool_value']) -_TYPEDVALUE.fields_by_name['bool_value'].containing_oneof = _TYPEDVALUE.oneofs_by_name['value'] -_TYPEDVALUE.oneofs_by_name['value'].fields.append( - _TYPEDVALUE.fields_by_name['int64_value']) -_TYPEDVALUE.fields_by_name['int64_value'].containing_oneof = _TYPEDVALUE.oneofs_by_name['value'] -_TYPEDVALUE.oneofs_by_name['value'].fields.append( - _TYPEDVALUE.fields_by_name['double_value']) -_TYPEDVALUE.fields_by_name['double_value'].containing_oneof = _TYPEDVALUE.oneofs_by_name['value'] -_TYPEDVALUE.oneofs_by_name['value'].fields.append( - _TYPEDVALUE.fields_by_name['string_value']) -_TYPEDVALUE.fields_by_name['string_value'].containing_oneof = _TYPEDVALUE.oneofs_by_name['value'] -_TYPEDVALUE.oneofs_by_name['value'].fields.append( - _TYPEDVALUE.fields_by_name['distribution_value']) -_TYPEDVALUE.fields_by_name['distribution_value'].containing_oneof = _TYPEDVALUE.oneofs_by_name['value'] -_TIMEINTERVAL.fields_by_name['end_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_TIMEINTERVAL.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_AGGREGATION.fields_by_name['alignment_period'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_AGGREGATION.fields_by_name['per_series_aligner'].enum_type = _AGGREGATION_ALIGNER -_AGGREGATION.fields_by_name['cross_series_reducer'].enum_type = _AGGREGATION_REDUCER +_TYPEDVALUE.fields_by_name[ + "distribution_value" +].message_type = google_dot_api_dot_distribution__pb2._DISTRIBUTION +_TYPEDVALUE.oneofs_by_name["value"].fields.append( + _TYPEDVALUE.fields_by_name["bool_value"] +) +_TYPEDVALUE.fields_by_name["bool_value"].containing_oneof = _TYPEDVALUE.oneofs_by_name[ + "value" +] +_TYPEDVALUE.oneofs_by_name["value"].fields.append( + _TYPEDVALUE.fields_by_name["int64_value"] +) +_TYPEDVALUE.fields_by_name["int64_value"].containing_oneof = _TYPEDVALUE.oneofs_by_name[ + "value" +] +_TYPEDVALUE.oneofs_by_name["value"].fields.append( + _TYPEDVALUE.fields_by_name["double_value"] +) +_TYPEDVALUE.fields_by_name[ + "double_value" +].containing_oneof = _TYPEDVALUE.oneofs_by_name["value"] +_TYPEDVALUE.oneofs_by_name["value"].fields.append( + _TYPEDVALUE.fields_by_name["string_value"] +) +_TYPEDVALUE.fields_by_name[ + "string_value" +].containing_oneof = _TYPEDVALUE.oneofs_by_name["value"] +_TYPEDVALUE.oneofs_by_name["value"].fields.append( + _TYPEDVALUE.fields_by_name["distribution_value"] +) +_TYPEDVALUE.fields_by_name[ + "distribution_value" +].containing_oneof = _TYPEDVALUE.oneofs_by_name["value"] +_TIMEINTERVAL.fields_by_name[ + "end_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TIMEINTERVAL.fields_by_name[ + "start_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_AGGREGATION.fields_by_name[ + "alignment_period" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_AGGREGATION.fields_by_name["per_series_aligner"].enum_type = _AGGREGATION_ALIGNER +_AGGREGATION.fields_by_name["cross_series_reducer"].enum_type = _AGGREGATION_REDUCER _AGGREGATION_ALIGNER.containing_type = _AGGREGATION _AGGREGATION_REDUCER.containing_type = _AGGREGATION -DESCRIPTOR.message_types_by_name['TypedValue'] = _TYPEDVALUE -DESCRIPTOR.message_types_by_name['TimeInterval'] = _TIMEINTERVAL -DESCRIPTOR.message_types_by_name['Aggregation'] = _AGGREGATION -DESCRIPTOR.enum_types_by_name['ComparisonType'] = _COMPARISONTYPE -DESCRIPTOR.enum_types_by_name['ServiceTier'] = _SERVICETIER +DESCRIPTOR.message_types_by_name["TypedValue"] = _TYPEDVALUE +DESCRIPTOR.message_types_by_name["TimeInterval"] = _TIMEINTERVAL +DESCRIPTOR.message_types_by_name["Aggregation"] = _AGGREGATION +DESCRIPTOR.enum_types_by_name["ComparisonType"] = _COMPARISONTYPE +DESCRIPTOR.enum_types_by_name["ServiceTier"] = _SERVICETIER _sym_db.RegisterFileDescriptor(DESCRIPTOR) -TypedValue = _reflection.GeneratedProtocolMessageType('TypedValue', (_message.Message,), dict( - DESCRIPTOR = _TYPEDVALUE, - __module__ = 'google.cloud.monitoring_v3.proto.common_pb2' - , - __doc__ = """A single strongly-typed value. +TypedValue = _reflection.GeneratedProtocolMessageType( + "TypedValue", + (_message.Message,), + dict( + DESCRIPTOR=_TYPEDVALUE, + __module__="google.cloud.monitoring_v3.proto.common_pb2", + __doc__="""A single strongly-typed value. Attributes: @@ -478,15 +584,18 @@ distribution_value: A distribution value. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.TypedValue) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.TypedValue) + ), +) _sym_db.RegisterMessage(TypedValue) -TimeInterval = _reflection.GeneratedProtocolMessageType('TimeInterval', (_message.Message,), dict( - DESCRIPTOR = _TIMEINTERVAL, - __module__ = 'google.cloud.monitoring_v3.proto.common_pb2' - , - __doc__ = """A time interval extending just after a start time through an end time. +TimeInterval = _reflection.GeneratedProtocolMessageType( + "TimeInterval", + (_message.Message,), + dict( + DESCRIPTOR=_TIMEINTERVAL, + __module__="google.cloud.monitoring_v3.proto.common_pb2", + __doc__="""A time interval extending just after a start time through an end time. If the start time is the same as the end time, then the interval represents a single point in time. @@ -499,15 +608,18 @@ value for the start time is the end time. The start time must not be later than the end time. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeInterval) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeInterval) + ), +) _sym_db.RegisterMessage(TimeInterval) -Aggregation = _reflection.GeneratedProtocolMessageType('Aggregation', (_message.Message,), dict( - DESCRIPTOR = _AGGREGATION, - __module__ = 'google.cloud.monitoring_v3.proto.common_pb2' - , - __doc__ = """Describes how to combine multiple time series to provide different views +Aggregation = _reflection.GeneratedProtocolMessageType( + "Aggregation", + (_message.Message,), + dict( + DESCRIPTOR=_AGGREGATION, + __module__="google.cloud.monitoring_v3.proto.common_pb2", + __doc__="""Describes how to combine multiple time series to provide different views of the data. Aggregation consists of an alignment step on individual time series (``alignment_period`` and ``per_series_aligner``) followed by an optional reduction step of the data across the aligned time series @@ -564,13 +676,21 @@ aggregated into a single output time series. If ``crossSeriesReducer`` is not defined, this field is ignored. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.Aggregation) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.Aggregation) + ), +) _sym_db.RegisterMessage(Aggregation) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\030com.google.monitoring.v3B\013CommonProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\030com.google.monitoring.v3B\013CommonProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3" + ), +) _SERVICETIER.has_options = True -_SERVICETIER._options = _descriptor._ParseOptions(descriptor_pb2.EnumOptions(), _b('\030\001')) +_SERVICETIER._options = _descriptor._ParseOptions( + descriptor_pb2.EnumOptions(), _b("\030\001") +) # @@protoc_insertion_point(module_scope) diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/common_pb2_grpc.py b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/common_pb2_grpc.py index a89435267cb2..07cb78fe03a9 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/common_pb2_grpc.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/common_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/dropped_labels_pb2.py b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/dropped_labels_pb2.py index b7aab12e4ab0..ce8cec6109f3 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/dropped_labels_pb2.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/dropped_labels_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/monitoring_v3/proto/dropped_labels.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -17,100 +19,131 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/monitoring_v3/proto/dropped_labels.proto', - package='google.monitoring.v3', - syntax='proto3', - serialized_pb=_b('\n5google/cloud/monitoring_v3/proto/dropped_labels.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\"|\n\rDroppedLabels\x12=\n\x05label\x18\x01 \x03(\x0b\x32..google.monitoring.v3.DroppedLabels.LabelEntry\x1a,\n\nLabelEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42@Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoringb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - + name="google/cloud/monitoring_v3/proto/dropped_labels.proto", + package="google.monitoring.v3", + syntax="proto3", + serialized_pb=_b( + '\n5google/cloud/monitoring_v3/proto/dropped_labels.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto"|\n\rDroppedLabels\x12=\n\x05label\x18\x01 \x03(\x0b\x32..google.monitoring.v3.DroppedLabels.LabelEntry\x1a,\n\nLabelEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42@Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoringb\x06proto3' + ), + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], +) _DROPPEDLABELS_LABELENTRY = _descriptor.Descriptor( - name='LabelEntry', - full_name='google.monitoring.v3.DroppedLabels.LabelEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.monitoring.v3.DroppedLabels.LabelEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.monitoring.v3.DroppedLabels.LabelEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=189, - serialized_end=233, + name="LabelEntry", + full_name="google.monitoring.v3.DroppedLabels.LabelEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.monitoring.v3.DroppedLabels.LabelEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.monitoring.v3.DroppedLabels.LabelEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=189, + serialized_end=233, ) _DROPPEDLABELS = _descriptor.Descriptor( - name='DroppedLabels', - full_name='google.monitoring.v3.DroppedLabels', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='label', full_name='google.monitoring.v3.DroppedLabels.label', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_DROPPEDLABELS_LABELENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=109, - serialized_end=233, + name="DroppedLabels", + full_name="google.monitoring.v3.DroppedLabels", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="label", + full_name="google.monitoring.v3.DroppedLabels.label", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[_DROPPEDLABELS_LABELENTRY], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=109, + serialized_end=233, ) _DROPPEDLABELS_LABELENTRY.containing_type = _DROPPEDLABELS -_DROPPEDLABELS.fields_by_name['label'].message_type = _DROPPEDLABELS_LABELENTRY -DESCRIPTOR.message_types_by_name['DroppedLabels'] = _DROPPEDLABELS +_DROPPEDLABELS.fields_by_name["label"].message_type = _DROPPEDLABELS_LABELENTRY +DESCRIPTOR.message_types_by_name["DroppedLabels"] = _DROPPEDLABELS _sym_db.RegisterFileDescriptor(DESCRIPTOR) -DroppedLabels = _reflection.GeneratedProtocolMessageType('DroppedLabels', (_message.Message,), dict( - - LabelEntry = _reflection.GeneratedProtocolMessageType('LabelEntry', (_message.Message,), dict( - DESCRIPTOR = _DROPPEDLABELS_LABELENTRY, - __module__ = 'google.cloud.monitoring_v3.proto.dropped_labels_pb2' - # @@protoc_insertion_point(class_scope:google.monitoring.v3.DroppedLabels.LabelEntry) - )) - , - DESCRIPTOR = _DROPPEDLABELS, - __module__ = 'google.cloud.monitoring_v3.proto.dropped_labels_pb2' - , - __doc__ = """A set of (label, value) pairs which were dropped during aggregation, +DroppedLabels = _reflection.GeneratedProtocolMessageType( + "DroppedLabels", + (_message.Message,), + dict( + LabelEntry=_reflection.GeneratedProtocolMessageType( + "LabelEntry", + (_message.Message,), + dict( + DESCRIPTOR=_DROPPEDLABELS_LABELENTRY, + __module__="google.cloud.monitoring_v3.proto.dropped_labels_pb2" + # @@protoc_insertion_point(class_scope:google.monitoring.v3.DroppedLabels.LabelEntry) + ), + ), + DESCRIPTOR=_DROPPEDLABELS, + __module__="google.cloud.monitoring_v3.proto.dropped_labels_pb2", + __doc__="""A set of (label, value) pairs which were dropped during aggregation, attached to google.api.Distribution.Exemplars in google.api.Distribution values during aggregation. @@ -132,14 +165,20 @@ Map from label to its value, for all labels dropped in any aggregation. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.DroppedLabels) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.DroppedLabels) + ), +) _sym_db.RegisterMessage(DroppedLabels) _sym_db.RegisterMessage(DroppedLabels.LabelEntry) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b("Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring"), +) _DROPPEDLABELS_LABELENTRY.has_options = True -_DROPPEDLABELS_LABELENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_DROPPEDLABELS_LABELENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) # @@protoc_insertion_point(module_scope) diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/dropped_labels_pb2_grpc.py b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/dropped_labels_pb2_grpc.py index a89435267cb2..07cb78fe03a9 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/dropped_labels_pb2_grpc.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/dropped_labels_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/group_pb2.py b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/group_pb2.py index ea312128072a..51df80a5fddf 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/group_pb2.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/group_pb2.py @@ -2,95 +2,149 @@ # source: google/cloud/monitoring_v3/proto/group.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() - - DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/monitoring_v3/proto/group.proto', - package='google.monitoring.v3', - syntax='proto3', - serialized_pb=_b('\n,google/cloud/monitoring_v3/proto/group.proto\x12\x14google.monitoring.v3\"d\n\x05Group\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0bparent_name\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\x12\x12\n\nis_cluster\x18\x06 \x01(\x08\x42\xa2\x01\n\x18\x63om.google.monitoring.v3B\nGroupProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3') + name="google/cloud/monitoring_v3/proto/group.proto", + package="google.monitoring.v3", + syntax="proto3", + serialized_pb=_b( + '\n,google/cloud/monitoring_v3/proto/group.proto\x12\x14google.monitoring.v3"d\n\x05Group\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0bparent_name\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\x12\x12\n\nis_cluster\x18\x06 \x01(\x08\x42\xa2\x01\n\x18\x63om.google.monitoring.v3B\nGroupProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3' + ), ) - - _GROUP = _descriptor.Descriptor( - name='Group', - full_name='google.monitoring.v3.Group', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.Group.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.monitoring.v3.Group.display_name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='parent_name', full_name='google.monitoring.v3.Group.parent_name', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.monitoring.v3.Group.filter', index=3, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='is_cluster', full_name='google.monitoring.v3.Group.is_cluster', index=4, - number=6, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=70, - serialized_end=170, + name="Group", + full_name="google.monitoring.v3.Group", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.Group.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.monitoring.v3.Group.display_name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="parent_name", + full_name="google.monitoring.v3.Group.parent_name", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.monitoring.v3.Group.filter", + index=3, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="is_cluster", + full_name="google.monitoring.v3.Group.is_cluster", + index=4, + number=6, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=70, + serialized_end=170, ) -DESCRIPTOR.message_types_by_name['Group'] = _GROUP +DESCRIPTOR.message_types_by_name["Group"] = _GROUP _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Group = _reflection.GeneratedProtocolMessageType('Group', (_message.Message,), dict( - DESCRIPTOR = _GROUP, - __module__ = 'google.cloud.monitoring_v3.proto.group_pb2' - , - __doc__ = """The description of a dynamic collection of monitored resources. Each +Group = _reflection.GeneratedProtocolMessageType( + "Group", + (_message.Message,), + dict( + DESCRIPTOR=_GROUP, + __module__="google.cloud.monitoring_v3.proto.group_pb2", + __doc__="""The description of a dynamic collection of monitored resources. Each group has a filter that is matched against monitored resources and their associated metadata. If a group's filter matches an available monitored resource, then that resource is a member of that group. Groups can @@ -142,11 +196,17 @@ cluster. The system can perform additional analysis on groups that are clusters. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.Group) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.Group) + ), +) _sym_db.RegisterMessage(Group) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\030com.google.monitoring.v3B\nGroupProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\030com.google.monitoring.v3B\nGroupProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/group_pb2_grpc.py b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/group_pb2_grpc.py index a89435267cb2..07cb78fe03a9 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/group_pb2_grpc.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/group_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/group_service_pb2.py b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/group_service_pb2.py index 7b1b64eb9543..3a40629fe93b 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/group_service_pb2.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/group_service_pb2.py @@ -2,419 +2,690 @@ # source: google/cloud/monitoring_v3/proto/group_service.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.api import monitored_resource_pb2 as google_dot_api_dot_monitored__resource__pb2 -from google.cloud.monitoring_v3.proto import common_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2 -from google.cloud.monitoring_v3.proto import group_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2 +from google.api import ( + monitored_resource_pb2 as google_dot_api_dot_monitored__resource__pb2, +) +from google.cloud.monitoring_v3.proto import ( + common_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2, +) +from google.cloud.monitoring_v3.proto import ( + group_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/monitoring_v3/proto/group_service.proto', - package='google.monitoring.v3', - syntax='proto3', - serialized_pb=_b('\n4google/cloud/monitoring_v3/proto/group_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a#google/api/monitored_resource.proto\x1a-google/cloud/monitoring_v3/proto/common.proto\x1a,google/cloud/monitoring_v3/proto/group.proto\x1a\x1bgoogle/protobuf/empty.proto\"\xad\x01\n\x11ListGroupsRequest\x12\x0c\n\x04name\x18\x07 \x01(\t\x12\x1b\n\x11\x63hildren_of_group\x18\x02 \x01(\tH\x00\x12\x1c\n\x12\x61ncestors_of_group\x18\x03 \x01(\tH\x00\x12\x1e\n\x14\x64\x65scendants_of_group\x18\x04 \x01(\tH\x00\x12\x11\n\tpage_size\x18\x05 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\tB\x08\n\x06\x66ilter\"Y\n\x12ListGroupsResponse\x12*\n\x05group\x18\x01 \x03(\x0b\x32\x1b.google.monitoring.v3.Group\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x1f\n\x0fGetGroupRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\"e\n\x12\x43reateGroupRequest\x12\x0c\n\x04name\x18\x04 \x01(\t\x12*\n\x05group\x18\x02 \x01(\x0b\x32\x1b.google.monitoring.v3.Group\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"W\n\x12UpdateGroupRequest\x12*\n\x05group\x18\x02 \x01(\x0b\x32\x1b.google.monitoring.v3.Group\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\"\n\x12\x44\x65leteGroupRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\"\x94\x01\n\x17ListGroupMembersRequest\x12\x0c\n\x04name\x18\x07 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\x12\x34\n\x08interval\x18\x06 \x01(\x0b\x32\".google.monitoring.v3.TimeInterval\"w\n\x18ListGroupMembersResponse\x12.\n\x07members\x18\x01 \x03(\x0b\x32\x1d.google.api.MonitoredResource\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\x32\xbb\x06\n\x0cGroupService\x12\x85\x01\n\nListGroups\x12\'.google.monitoring.v3.ListGroupsRequest\x1a(.google.monitoring.v3.ListGroupsResponse\"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/v3/{name=projects/*}/groups\x12v\n\x08GetGroup\x12%.google.monitoring.v3.GetGroupRequest\x1a\x1b.google.monitoring.v3.Group\"&\x82\xd3\xe4\x93\x02 \x12\x1e/v3/{name=projects/*/groups/*}\x12\x81\x01\n\x0b\x43reateGroup\x12(.google.monitoring.v3.CreateGroupRequest\x1a\x1b.google.monitoring.v3.Group\"+\x82\xd3\xe4\x93\x02%\"\x1c/v3/{name=projects/*}/groups:\x05group\x12\x89\x01\n\x0bUpdateGroup\x12(.google.monitoring.v3.UpdateGroupRequest\x1a\x1b.google.monitoring.v3.Group\"3\x82\xd3\xe4\x93\x02-\x1a$/v3/{group.name=projects/*/groups/*}:\x05group\x12w\n\x0b\x44\x65leteGroup\x12(.google.monitoring.v3.DeleteGroupRequest\x1a\x16.google.protobuf.Empty\"&\x82\xd3\xe4\x93\x02 *\x1e/v3/{name=projects/*/groups/*}\x12\xa1\x01\n\x10ListGroupMembers\x12-.google.monitoring.v3.ListGroupMembersRequest\x1a..google.monitoring.v3.ListGroupMembersResponse\".\x82\xd3\xe4\x93\x02(\x12&/v3/{name=projects/*/groups/*}/membersB\xa9\x01\n\x18\x63om.google.monitoring.v3B\x11GroupServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_monitored__resource__pb2.DESCRIPTOR,google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2.DESCRIPTOR,google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,]) - - + name="google/cloud/monitoring_v3/proto/group_service.proto", + package="google.monitoring.v3", + syntax="proto3", + serialized_pb=_b( + '\n4google/cloud/monitoring_v3/proto/group_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a#google/api/monitored_resource.proto\x1a-google/cloud/monitoring_v3/proto/common.proto\x1a,google/cloud/monitoring_v3/proto/group.proto\x1a\x1bgoogle/protobuf/empty.proto"\xad\x01\n\x11ListGroupsRequest\x12\x0c\n\x04name\x18\x07 \x01(\t\x12\x1b\n\x11\x63hildren_of_group\x18\x02 \x01(\tH\x00\x12\x1c\n\x12\x61ncestors_of_group\x18\x03 \x01(\tH\x00\x12\x1e\n\x14\x64\x65scendants_of_group\x18\x04 \x01(\tH\x00\x12\x11\n\tpage_size\x18\x05 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\tB\x08\n\x06\x66ilter"Y\n\x12ListGroupsResponse\x12*\n\x05group\x18\x01 \x03(\x0b\x32\x1b.google.monitoring.v3.Group\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\x1f\n\x0fGetGroupRequest\x12\x0c\n\x04name\x18\x03 \x01(\t"e\n\x12\x43reateGroupRequest\x12\x0c\n\x04name\x18\x04 \x01(\t\x12*\n\x05group\x18\x02 \x01(\x0b\x32\x1b.google.monitoring.v3.Group\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08"W\n\x12UpdateGroupRequest\x12*\n\x05group\x18\x02 \x01(\x0b\x32\x1b.google.monitoring.v3.Group\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08""\n\x12\x44\x65leteGroupRequest\x12\x0c\n\x04name\x18\x03 \x01(\t"\x94\x01\n\x17ListGroupMembersRequest\x12\x0c\n\x04name\x18\x07 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\x12\x34\n\x08interval\x18\x06 \x01(\x0b\x32".google.monitoring.v3.TimeInterval"w\n\x18ListGroupMembersResponse\x12.\n\x07members\x18\x01 \x03(\x0b\x32\x1d.google.api.MonitoredResource\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\x32\xbb\x06\n\x0cGroupService\x12\x85\x01\n\nListGroups\x12\'.google.monitoring.v3.ListGroupsRequest\x1a(.google.monitoring.v3.ListGroupsResponse"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/v3/{name=projects/*}/groups\x12v\n\x08GetGroup\x12%.google.monitoring.v3.GetGroupRequest\x1a\x1b.google.monitoring.v3.Group"&\x82\xd3\xe4\x93\x02 \x12\x1e/v3/{name=projects/*/groups/*}\x12\x81\x01\n\x0b\x43reateGroup\x12(.google.monitoring.v3.CreateGroupRequest\x1a\x1b.google.monitoring.v3.Group"+\x82\xd3\xe4\x93\x02%"\x1c/v3/{name=projects/*}/groups:\x05group\x12\x89\x01\n\x0bUpdateGroup\x12(.google.monitoring.v3.UpdateGroupRequest\x1a\x1b.google.monitoring.v3.Group"3\x82\xd3\xe4\x93\x02-\x1a$/v3/{group.name=projects/*/groups/*}:\x05group\x12w\n\x0b\x44\x65leteGroup\x12(.google.monitoring.v3.DeleteGroupRequest\x1a\x16.google.protobuf.Empty"&\x82\xd3\xe4\x93\x02 *\x1e/v3/{name=projects/*/groups/*}\x12\xa1\x01\n\x10ListGroupMembers\x12-.google.monitoring.v3.ListGroupMembersRequest\x1a..google.monitoring.v3.ListGroupMembersResponse".\x82\xd3\xe4\x93\x02(\x12&/v3/{name=projects/*/groups/*}/membersB\xa9\x01\n\x18\x63om.google.monitoring.v3B\x11GroupServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_api_dot_monitored__resource__pb2.DESCRIPTOR, + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2.DESCRIPTOR, + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + ], +) _LISTGROUPSREQUEST = _descriptor.Descriptor( - name='ListGroupsRequest', - full_name='google.monitoring.v3.ListGroupsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.ListGroupsRequest.name', index=0, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='children_of_group', full_name='google.monitoring.v3.ListGroupsRequest.children_of_group', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ancestors_of_group', full_name='google.monitoring.v3.ListGroupsRequest.ancestors_of_group', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='descendants_of_group', full_name='google.monitoring.v3.ListGroupsRequest.descendants_of_group', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.monitoring.v3.ListGroupsRequest.page_size', index=4, - number=5, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.monitoring.v3.ListGroupsRequest.page_token', index=5, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='filter', full_name='google.monitoring.v3.ListGroupsRequest.filter', - index=0, containing_type=None, fields=[]), - ], - serialized_start=268, - serialized_end=441, + name="ListGroupsRequest", + full_name="google.monitoring.v3.ListGroupsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.ListGroupsRequest.name", + index=0, + number=7, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="children_of_group", + full_name="google.monitoring.v3.ListGroupsRequest.children_of_group", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ancestors_of_group", + full_name="google.monitoring.v3.ListGroupsRequest.ancestors_of_group", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="descendants_of_group", + full_name="google.monitoring.v3.ListGroupsRequest.descendants_of_group", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.monitoring.v3.ListGroupsRequest.page_size", + index=4, + number=5, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.monitoring.v3.ListGroupsRequest.page_token", + index=5, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="filter", + full_name="google.monitoring.v3.ListGroupsRequest.filter", + index=0, + containing_type=None, + fields=[], + ) + ], + serialized_start=268, + serialized_end=441, ) _LISTGROUPSRESPONSE = _descriptor.Descriptor( - name='ListGroupsResponse', - full_name='google.monitoring.v3.ListGroupsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='group', full_name='google.monitoring.v3.ListGroupsResponse.group', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.monitoring.v3.ListGroupsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=443, - serialized_end=532, + name="ListGroupsResponse", + full_name="google.monitoring.v3.ListGroupsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="group", + full_name="google.monitoring.v3.ListGroupsResponse.group", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.monitoring.v3.ListGroupsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=443, + serialized_end=532, ) _GETGROUPREQUEST = _descriptor.Descriptor( - name='GetGroupRequest', - full_name='google.monitoring.v3.GetGroupRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.GetGroupRequest.name', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=534, - serialized_end=565, + name="GetGroupRequest", + full_name="google.monitoring.v3.GetGroupRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.GetGroupRequest.name", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=534, + serialized_end=565, ) _CREATEGROUPREQUEST = _descriptor.Descriptor( - name='CreateGroupRequest', - full_name='google.monitoring.v3.CreateGroupRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.CreateGroupRequest.name', index=0, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='group', full_name='google.monitoring.v3.CreateGroupRequest.group', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.monitoring.v3.CreateGroupRequest.validate_only', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=567, - serialized_end=668, + name="CreateGroupRequest", + full_name="google.monitoring.v3.CreateGroupRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.CreateGroupRequest.name", + index=0, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="group", + full_name="google.monitoring.v3.CreateGroupRequest.group", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="validate_only", + full_name="google.monitoring.v3.CreateGroupRequest.validate_only", + index=2, + number=3, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=567, + serialized_end=668, ) _UPDATEGROUPREQUEST = _descriptor.Descriptor( - name='UpdateGroupRequest', - full_name='google.monitoring.v3.UpdateGroupRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='group', full_name='google.monitoring.v3.UpdateGroupRequest.group', index=0, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.monitoring.v3.UpdateGroupRequest.validate_only', index=1, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=670, - serialized_end=757, + name="UpdateGroupRequest", + full_name="google.monitoring.v3.UpdateGroupRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="group", + full_name="google.monitoring.v3.UpdateGroupRequest.group", + index=0, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="validate_only", + full_name="google.monitoring.v3.UpdateGroupRequest.validate_only", + index=1, + number=3, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=670, + serialized_end=757, ) _DELETEGROUPREQUEST = _descriptor.Descriptor( - name='DeleteGroupRequest', - full_name='google.monitoring.v3.DeleteGroupRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.DeleteGroupRequest.name', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=759, - serialized_end=793, + name="DeleteGroupRequest", + full_name="google.monitoring.v3.DeleteGroupRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.DeleteGroupRequest.name", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=759, + serialized_end=793, ) _LISTGROUPMEMBERSREQUEST = _descriptor.Descriptor( - name='ListGroupMembersRequest', - full_name='google.monitoring.v3.ListGroupMembersRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.ListGroupMembersRequest.name', index=0, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.monitoring.v3.ListGroupMembersRequest.page_size', index=1, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.monitoring.v3.ListGroupMembersRequest.page_token', index=2, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.monitoring.v3.ListGroupMembersRequest.filter', index=3, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='interval', full_name='google.monitoring.v3.ListGroupMembersRequest.interval', index=4, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=796, - serialized_end=944, + name="ListGroupMembersRequest", + full_name="google.monitoring.v3.ListGroupMembersRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.ListGroupMembersRequest.name", + index=0, + number=7, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.monitoring.v3.ListGroupMembersRequest.page_size", + index=1, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.monitoring.v3.ListGroupMembersRequest.page_token", + index=2, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.monitoring.v3.ListGroupMembersRequest.filter", + index=3, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="interval", + full_name="google.monitoring.v3.ListGroupMembersRequest.interval", + index=4, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=796, + serialized_end=944, ) _LISTGROUPMEMBERSRESPONSE = _descriptor.Descriptor( - name='ListGroupMembersResponse', - full_name='google.monitoring.v3.ListGroupMembersResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='members', full_name='google.monitoring.v3.ListGroupMembersResponse.members', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.monitoring.v3.ListGroupMembersResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='total_size', full_name='google.monitoring.v3.ListGroupMembersResponse.total_size', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=946, - serialized_end=1065, + name="ListGroupMembersResponse", + full_name="google.monitoring.v3.ListGroupMembersResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="members", + full_name="google.monitoring.v3.ListGroupMembersResponse.members", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.monitoring.v3.ListGroupMembersResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="total_size", + full_name="google.monitoring.v3.ListGroupMembersResponse.total_size", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=946, + serialized_end=1065, ) -_LISTGROUPSREQUEST.oneofs_by_name['filter'].fields.append( - _LISTGROUPSREQUEST.fields_by_name['children_of_group']) -_LISTGROUPSREQUEST.fields_by_name['children_of_group'].containing_oneof = _LISTGROUPSREQUEST.oneofs_by_name['filter'] -_LISTGROUPSREQUEST.oneofs_by_name['filter'].fields.append( - _LISTGROUPSREQUEST.fields_by_name['ancestors_of_group']) -_LISTGROUPSREQUEST.fields_by_name['ancestors_of_group'].containing_oneof = _LISTGROUPSREQUEST.oneofs_by_name['filter'] -_LISTGROUPSREQUEST.oneofs_by_name['filter'].fields.append( - _LISTGROUPSREQUEST.fields_by_name['descendants_of_group']) -_LISTGROUPSREQUEST.fields_by_name['descendants_of_group'].containing_oneof = _LISTGROUPSREQUEST.oneofs_by_name['filter'] -_LISTGROUPSRESPONSE.fields_by_name['group'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2._GROUP -_CREATEGROUPREQUEST.fields_by_name['group'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2._GROUP -_UPDATEGROUPREQUEST.fields_by_name['group'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2._GROUP -_LISTGROUPMEMBERSREQUEST.fields_by_name['interval'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._TIMEINTERVAL -_LISTGROUPMEMBERSRESPONSE.fields_by_name['members'].message_type = google_dot_api_dot_monitored__resource__pb2._MONITOREDRESOURCE -DESCRIPTOR.message_types_by_name['ListGroupsRequest'] = _LISTGROUPSREQUEST -DESCRIPTOR.message_types_by_name['ListGroupsResponse'] = _LISTGROUPSRESPONSE -DESCRIPTOR.message_types_by_name['GetGroupRequest'] = _GETGROUPREQUEST -DESCRIPTOR.message_types_by_name['CreateGroupRequest'] = _CREATEGROUPREQUEST -DESCRIPTOR.message_types_by_name['UpdateGroupRequest'] = _UPDATEGROUPREQUEST -DESCRIPTOR.message_types_by_name['DeleteGroupRequest'] = _DELETEGROUPREQUEST -DESCRIPTOR.message_types_by_name['ListGroupMembersRequest'] = _LISTGROUPMEMBERSREQUEST -DESCRIPTOR.message_types_by_name['ListGroupMembersResponse'] = _LISTGROUPMEMBERSRESPONSE +_LISTGROUPSREQUEST.oneofs_by_name["filter"].fields.append( + _LISTGROUPSREQUEST.fields_by_name["children_of_group"] +) +_LISTGROUPSREQUEST.fields_by_name[ + "children_of_group" +].containing_oneof = _LISTGROUPSREQUEST.oneofs_by_name["filter"] +_LISTGROUPSREQUEST.oneofs_by_name["filter"].fields.append( + _LISTGROUPSREQUEST.fields_by_name["ancestors_of_group"] +) +_LISTGROUPSREQUEST.fields_by_name[ + "ancestors_of_group" +].containing_oneof = _LISTGROUPSREQUEST.oneofs_by_name["filter"] +_LISTGROUPSREQUEST.oneofs_by_name["filter"].fields.append( + _LISTGROUPSREQUEST.fields_by_name["descendants_of_group"] +) +_LISTGROUPSREQUEST.fields_by_name[ + "descendants_of_group" +].containing_oneof = _LISTGROUPSREQUEST.oneofs_by_name["filter"] +_LISTGROUPSRESPONSE.fields_by_name[ + "group" +].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2._GROUP +_CREATEGROUPREQUEST.fields_by_name[ + "group" +].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2._GROUP +_UPDATEGROUPREQUEST.fields_by_name[ + "group" +].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2._GROUP +_LISTGROUPMEMBERSREQUEST.fields_by_name[ + "interval" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._TIMEINTERVAL +) +_LISTGROUPMEMBERSRESPONSE.fields_by_name[ + "members" +].message_type = google_dot_api_dot_monitored__resource__pb2._MONITOREDRESOURCE +DESCRIPTOR.message_types_by_name["ListGroupsRequest"] = _LISTGROUPSREQUEST +DESCRIPTOR.message_types_by_name["ListGroupsResponse"] = _LISTGROUPSRESPONSE +DESCRIPTOR.message_types_by_name["GetGroupRequest"] = _GETGROUPREQUEST +DESCRIPTOR.message_types_by_name["CreateGroupRequest"] = _CREATEGROUPREQUEST +DESCRIPTOR.message_types_by_name["UpdateGroupRequest"] = _UPDATEGROUPREQUEST +DESCRIPTOR.message_types_by_name["DeleteGroupRequest"] = _DELETEGROUPREQUEST +DESCRIPTOR.message_types_by_name["ListGroupMembersRequest"] = _LISTGROUPMEMBERSREQUEST +DESCRIPTOR.message_types_by_name["ListGroupMembersResponse"] = _LISTGROUPMEMBERSRESPONSE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ListGroupsRequest = _reflection.GeneratedProtocolMessageType('ListGroupsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTGROUPSREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.group_service_pb2' - , - __doc__ = """The ``ListGroup`` request. +ListGroupsRequest = _reflection.GeneratedProtocolMessageType( + "ListGroupsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTGROUPSREQUEST, + __module__="google.cloud.monitoring_v3.proto.group_service_pb2", + __doc__="""The ``ListGroup`` request. Attributes: @@ -454,15 +725,18 @@ method. Using this field causes the method to return additional results from the previous method call. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListGroupsRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListGroupsRequest) + ), +) _sym_db.RegisterMessage(ListGroupsRequest) -ListGroupsResponse = _reflection.GeneratedProtocolMessageType('ListGroupsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTGROUPSRESPONSE, - __module__ = 'google.cloud.monitoring_v3.proto.group_service_pb2' - , - __doc__ = """The ``ListGroups`` response. +ListGroupsResponse = _reflection.GeneratedProtocolMessageType( + "ListGroupsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTGROUPSRESPONSE, + __module__="google.cloud.monitoring_v3.proto.group_service_pb2", + __doc__="""The ``ListGroups`` response. Attributes: @@ -474,15 +748,18 @@ results, use that value as ``pageToken`` in the next call to this method. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListGroupsResponse) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListGroupsResponse) + ), +) _sym_db.RegisterMessage(ListGroupsResponse) -GetGroupRequest = _reflection.GeneratedProtocolMessageType('GetGroupRequest', (_message.Message,), dict( - DESCRIPTOR = _GETGROUPREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.group_service_pb2' - , - __doc__ = """The ``GetGroup`` request. +GetGroupRequest = _reflection.GeneratedProtocolMessageType( + "GetGroupRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETGROUPREQUEST, + __module__="google.cloud.monitoring_v3.proto.group_service_pb2", + __doc__="""The ``GetGroup`` request. Attributes: @@ -490,15 +767,18 @@ The group to retrieve. The format is ``"projects/{project_id_or_number}/groups/{group_id}"``. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetGroupRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetGroupRequest) + ), +) _sym_db.RegisterMessage(GetGroupRequest) -CreateGroupRequest = _reflection.GeneratedProtocolMessageType('CreateGroupRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEGROUPREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.group_service_pb2' - , - __doc__ = """The ``CreateGroup`` request. +CreateGroupRequest = _reflection.GeneratedProtocolMessageType( + "CreateGroupRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEGROUPREQUEST, + __module__="google.cloud.monitoring_v3.proto.group_service_pb2", + __doc__="""The ``CreateGroup`` request. Attributes: @@ -511,15 +791,18 @@ validate_only: If true, validate this request but do not create the group. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateGroupRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateGroupRequest) + ), +) _sym_db.RegisterMessage(CreateGroupRequest) -UpdateGroupRequest = _reflection.GeneratedProtocolMessageType('UpdateGroupRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATEGROUPREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.group_service_pb2' - , - __doc__ = """The ``UpdateGroup`` request. +UpdateGroupRequest = _reflection.GeneratedProtocolMessageType( + "UpdateGroupRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEGROUPREQUEST, + __module__="google.cloud.monitoring_v3.proto.group_service_pb2", + __doc__="""The ``UpdateGroup`` request. Attributes: @@ -531,15 +814,18 @@ If true, validate this request but do not update the existing group. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateGroupRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateGroupRequest) + ), +) _sym_db.RegisterMessage(UpdateGroupRequest) -DeleteGroupRequest = _reflection.GeneratedProtocolMessageType('DeleteGroupRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEGROUPREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.group_service_pb2' - , - __doc__ = """The ``DeleteGroup`` request. You can only delete a group if it has no +DeleteGroupRequest = _reflection.GeneratedProtocolMessageType( + "DeleteGroupRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEGROUPREQUEST, + __module__="google.cloud.monitoring_v3.proto.group_service_pb2", + __doc__="""The ``DeleteGroup`` request. You can only delete a group if it has no children. @@ -548,15 +834,18 @@ The group to delete. The format is ``"projects/{project_id_or_number}/groups/{group_id}"``. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteGroupRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteGroupRequest) + ), +) _sym_db.RegisterMessage(DeleteGroupRequest) -ListGroupMembersRequest = _reflection.GeneratedProtocolMessageType('ListGroupMembersRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTGROUPMEMBERSREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.group_service_pb2' - , - __doc__ = """The ``ListGroupMembers`` request. +ListGroupMembersRequest = _reflection.GeneratedProtocolMessageType( + "ListGroupMembersRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTGROUPMEMBERSREQUEST, + __module__="google.cloud.monitoring_v3.proto.group_service_pb2", + __doc__="""The ``ListGroupMembers`` request. Attributes: @@ -586,15 +875,18 @@ interval is provided then the group membership over the last minute is returned. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListGroupMembersRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListGroupMembersRequest) + ), +) _sym_db.RegisterMessage(ListGroupMembersRequest) -ListGroupMembersResponse = _reflection.GeneratedProtocolMessageType('ListGroupMembersResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTGROUPMEMBERSRESPONSE, - __module__ = 'google.cloud.monitoring_v3.proto.group_service_pb2' - , - __doc__ = """The ``ListGroupMembers`` response. +ListGroupMembersResponse = _reflection.GeneratedProtocolMessageType( + "ListGroupMembersResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTGROUPMEMBERSRESPONSE, + __module__="google.cloud.monitoring_v3.proto.group_service_pb2", + __doc__="""The ``ListGroupMembers`` response. Attributes: @@ -608,80 +900,107 @@ total_size: The total number of elements matching this request. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListGroupMembersResponse) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListGroupMembersResponse) + ), +) _sym_db.RegisterMessage(ListGroupMembersResponse) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\030com.google.monitoring.v3B\021GroupServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\030com.google.monitoring.v3B\021GroupServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3" + ), +) _GROUPSERVICE = _descriptor.ServiceDescriptor( - name='GroupService', - full_name='google.monitoring.v3.GroupService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=1068, - serialized_end=1895, - methods=[ - _descriptor.MethodDescriptor( - name='ListGroups', - full_name='google.monitoring.v3.GroupService.ListGroups', + name="GroupService", + full_name="google.monitoring.v3.GroupService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_LISTGROUPSREQUEST, - output_type=_LISTGROUPSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\036\022\034/v3/{name=projects/*}/groups')), - ), - _descriptor.MethodDescriptor( - name='GetGroup', - full_name='google.monitoring.v3.GroupService.GetGroup', - index=1, - containing_service=None, - input_type=_GETGROUPREQUEST, - output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2._GROUP, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002 \022\036/v3/{name=projects/*/groups/*}')), - ), - _descriptor.MethodDescriptor( - name='CreateGroup', - full_name='google.monitoring.v3.GroupService.CreateGroup', - index=2, - containing_service=None, - input_type=_CREATEGROUPREQUEST, - output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2._GROUP, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002%\"\034/v3/{name=projects/*}/groups:\005group')), - ), - _descriptor.MethodDescriptor( - name='UpdateGroup', - full_name='google.monitoring.v3.GroupService.UpdateGroup', - index=3, - containing_service=None, - input_type=_UPDATEGROUPREQUEST, - output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2._GROUP, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002-\032$/v3/{group.name=projects/*/groups/*}:\005group')), - ), - _descriptor.MethodDescriptor( - name='DeleteGroup', - full_name='google.monitoring.v3.GroupService.DeleteGroup', - index=4, - containing_service=None, - input_type=_DELETEGROUPREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002 *\036/v3/{name=projects/*/groups/*}')), - ), - _descriptor.MethodDescriptor( - name='ListGroupMembers', - full_name='google.monitoring.v3.GroupService.ListGroupMembers', - index=5, - containing_service=None, - input_type=_LISTGROUPMEMBERSREQUEST, - output_type=_LISTGROUPMEMBERSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002(\022&/v3/{name=projects/*/groups/*}/members')), - ), -]) + options=None, + serialized_start=1068, + serialized_end=1895, + methods=[ + _descriptor.MethodDescriptor( + name="ListGroups", + full_name="google.monitoring.v3.GroupService.ListGroups", + index=0, + containing_service=None, + input_type=_LISTGROUPSREQUEST, + output_type=_LISTGROUPSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002\036\022\034/v3/{name=projects/*}/groups"), + ), + ), + _descriptor.MethodDescriptor( + name="GetGroup", + full_name="google.monitoring.v3.GroupService.GetGroup", + index=1, + containing_service=None, + input_type=_GETGROUPREQUEST, + output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2._GROUP, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002 \022\036/v3/{name=projects/*/groups/*}"), + ), + ), + _descriptor.MethodDescriptor( + name="CreateGroup", + full_name="google.monitoring.v3.GroupService.CreateGroup", + index=2, + containing_service=None, + input_type=_CREATEGROUPREQUEST, + output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2._GROUP, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002%"\034/v3/{name=projects/*}/groups:\005group'), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateGroup", + full_name="google.monitoring.v3.GroupService.UpdateGroup", + index=3, + containing_service=None, + input_type=_UPDATEGROUPREQUEST, + output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2._GROUP, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002-\032$/v3/{group.name=projects/*/groups/*}:\005group" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteGroup", + full_name="google.monitoring.v3.GroupService.DeleteGroup", + index=4, + containing_service=None, + input_type=_DELETEGROUPREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002 *\036/v3/{name=projects/*/groups/*}"), + ), + ), + _descriptor.MethodDescriptor( + name="ListGroupMembers", + full_name="google.monitoring.v3.GroupService.ListGroupMembers", + index=5, + containing_service=None, + input_type=_LISTGROUPMEMBERSREQUEST, + output_type=_LISTGROUPMEMBERSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002(\022&/v3/{name=projects/*/groups/*}/members"), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_GROUPSERVICE) -DESCRIPTOR.services_by_name['GroupService'] = _GROUPSERVICE +DESCRIPTOR.services_by_name["GroupService"] = _GROUPSERVICE # @@protoc_insertion_point(module_scope) diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/group_service_pb2_grpc.py b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/group_service_pb2_grpc.py index b1c6ab7d84aa..d681b6c18642 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/group_service_pb2_grpc.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/group_service_pb2_grpc.py @@ -1,13 +1,17 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.monitoring_v3.proto import group_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2 -from google.cloud.monitoring_v3.proto import group_service_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2 +from google.cloud.monitoring_v3.proto import ( + group_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2, +) +from google.cloud.monitoring_v3.proto import ( + group_service_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class GroupServiceStub(object): - """The Group API lets you inspect and manage your + """The Group API lets you inspect and manage your [groups](#google.monitoring.v3.Group). A group is a named filter that is used to identify @@ -21,46 +25,46 @@ class GroupServiceStub(object): from the infrastructure. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.ListGroups = channel.unary_unary( - '/google.monitoring.v3.GroupService/ListGroups', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupsResponse.FromString, + self.ListGroups = channel.unary_unary( + "/google.monitoring.v3.GroupService/ListGroups", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupsResponse.FromString, ) - self.GetGroup = channel.unary_unary( - '/google.monitoring.v3.GroupService/GetGroup', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.GetGroupRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2.Group.FromString, + self.GetGroup = channel.unary_unary( + "/google.monitoring.v3.GroupService/GetGroup", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.GetGroupRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2.Group.FromString, ) - self.CreateGroup = channel.unary_unary( - '/google.monitoring.v3.GroupService/CreateGroup', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.CreateGroupRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2.Group.FromString, + self.CreateGroup = channel.unary_unary( + "/google.monitoring.v3.GroupService/CreateGroup", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.CreateGroupRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2.Group.FromString, ) - self.UpdateGroup = channel.unary_unary( - '/google.monitoring.v3.GroupService/UpdateGroup', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.UpdateGroupRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2.Group.FromString, + self.UpdateGroup = channel.unary_unary( + "/google.monitoring.v3.GroupService/UpdateGroup", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.UpdateGroupRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2.Group.FromString, ) - self.DeleteGroup = channel.unary_unary( - '/google.monitoring.v3.GroupService/DeleteGroup', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.DeleteGroupRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteGroup = channel.unary_unary( + "/google.monitoring.v3.GroupService/DeleteGroup", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.DeleteGroupRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.ListGroupMembers = channel.unary_unary( - '/google.monitoring.v3.GroupService/ListGroupMembers', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupMembersRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupMembersResponse.FromString, + self.ListGroupMembers = channel.unary_unary( + "/google.monitoring.v3.GroupService/ListGroupMembers", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupMembersRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupMembersResponse.FromString, ) class GroupServiceServicer(object): - """The Group API lets you inspect and manage your + """The Group API lets you inspect and manage your [groups](#google.monitoring.v3.Group). A group is a named filter that is used to identify @@ -74,83 +78,84 @@ class GroupServiceServicer(object): from the infrastructure. """ - def ListGroups(self, request, context): - """Lists the existing groups. + def ListGroups(self, request, context): + """Lists the existing groups. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetGroup(self, request, context): - """Gets a single group. + def GetGroup(self, request, context): + """Gets a single group. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateGroup(self, request, context): - """Creates a new group. + def CreateGroup(self, request, context): + """Creates a new group. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateGroup(self, request, context): - """Updates an existing group. + def UpdateGroup(self, request, context): + """Updates an existing group. You can change any group attributes except `name`. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteGroup(self, request, context): - """Deletes an existing group. + def DeleteGroup(self, request, context): + """Deletes an existing group. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListGroupMembers(self, request, context): - """Lists the monitored resources that are members of a group. + def ListGroupMembers(self, request, context): + """Lists the monitored resources that are members of a group. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_GroupServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ListGroups': grpc.unary_unary_rpc_method_handler( - servicer.ListGroups, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupsRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupsResponse.SerializeToString, - ), - 'GetGroup': grpc.unary_unary_rpc_method_handler( - servicer.GetGroup, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.GetGroupRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2.Group.SerializeToString, - ), - 'CreateGroup': grpc.unary_unary_rpc_method_handler( - servicer.CreateGroup, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.CreateGroupRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2.Group.SerializeToString, - ), - 'UpdateGroup': grpc.unary_unary_rpc_method_handler( - servicer.UpdateGroup, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.UpdateGroupRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2.Group.SerializeToString, - ), - 'DeleteGroup': grpc.unary_unary_rpc_method_handler( - servicer.DeleteGroup, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.DeleteGroupRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'ListGroupMembers': grpc.unary_unary_rpc_method_handler( - servicer.ListGroupMembers, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupMembersRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupMembersResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.monitoring.v3.GroupService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "ListGroups": grpc.unary_unary_rpc_method_handler( + servicer.ListGroups, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupsRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupsResponse.SerializeToString, + ), + "GetGroup": grpc.unary_unary_rpc_method_handler( + servicer.GetGroup, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.GetGroupRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2.Group.SerializeToString, + ), + "CreateGroup": grpc.unary_unary_rpc_method_handler( + servicer.CreateGroup, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.CreateGroupRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2.Group.SerializeToString, + ), + "UpdateGroup": grpc.unary_unary_rpc_method_handler( + servicer.UpdateGroup, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.UpdateGroupRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__pb2.Group.SerializeToString, + ), + "DeleteGroup": grpc.unary_unary_rpc_method_handler( + servicer.DeleteGroup, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.DeleteGroupRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "ListGroupMembers": grpc.unary_unary_rpc_method_handler( + servicer.ListGroupMembers, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupMembersRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_group__service__pb2.ListGroupMembersResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.monitoring.v3.GroupService", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/metric_pb2.py b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/metric_pb2.py index f33c8a7fef8b..13140c9fc49c 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/metric_pb2.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/metric_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/monitoring_v3/proto/metric.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -16,141 +18,253 @@ from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 from google.api import label_pb2 as google_dot_api_dot_label__pb2 from google.api import metric_pb2 as google_dot_api_dot_metric__pb2 -from google.api import monitored_resource_pb2 as google_dot_api_dot_monitored__resource__pb2 -from google.cloud.monitoring_v3.proto import common_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2 +from google.api import ( + monitored_resource_pb2 as google_dot_api_dot_monitored__resource__pb2, +) +from google.cloud.monitoring_v3.proto import ( + common_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2, +) DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/monitoring_v3/proto/metric.proto', - package='google.monitoring.v3', - syntax='proto3', - serialized_pb=_b('\n-google/cloud/monitoring_v3/proto/metric.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x16google/api/label.proto\x1a\x17google/api/metric.proto\x1a#google/api/monitored_resource.proto\x1a-google/cloud/monitoring_v3/proto/common.proto\"n\n\x05Point\x12\x34\n\x08interval\x18\x01 \x01(\x0b\x32\".google.monitoring.v3.TimeInterval\x12/\n\x05value\x18\x02 \x01(\x0b\x32 .google.monitoring.v3.TypedValue\"\xc1\x02\n\nTimeSeries\x12\"\n\x06metric\x18\x01 \x01(\x0b\x32\x12.google.api.Metric\x12/\n\x08resource\x18\x02 \x01(\x0b\x32\x1d.google.api.MonitoredResource\x12\x37\n\x08metadata\x18\x07 \x01(\x0b\x32%.google.api.MonitoredResourceMetadata\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+\n\x06points\x18\x05 \x03(\x0b\x32\x1b.google.monitoring.v3.PointB\xa3\x01\n\x18\x63om.google.monitoring.v3B\x0bMetricProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_label__pb2.DESCRIPTOR,google_dot_api_dot_metric__pb2.DESCRIPTOR,google_dot_api_dot_monitored__resource__pb2.DESCRIPTOR,google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2.DESCRIPTOR,]) - - + name="google/cloud/monitoring_v3/proto/metric.proto", + package="google.monitoring.v3", + syntax="proto3", + serialized_pb=_b( + '\n-google/cloud/monitoring_v3/proto/metric.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x16google/api/label.proto\x1a\x17google/api/metric.proto\x1a#google/api/monitored_resource.proto\x1a-google/cloud/monitoring_v3/proto/common.proto"n\n\x05Point\x12\x34\n\x08interval\x18\x01 \x01(\x0b\x32".google.monitoring.v3.TimeInterval\x12/\n\x05value\x18\x02 \x01(\x0b\x32 .google.monitoring.v3.TypedValue"\xc1\x02\n\nTimeSeries\x12"\n\x06metric\x18\x01 \x01(\x0b\x32\x12.google.api.Metric\x12/\n\x08resource\x18\x02 \x01(\x0b\x32\x1d.google.api.MonitoredResource\x12\x37\n\x08metadata\x18\x07 \x01(\x0b\x32%.google.api.MonitoredResourceMetadata\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+\n\x06points\x18\x05 \x03(\x0b\x32\x1b.google.monitoring.v3.PointB\xa3\x01\n\x18\x63om.google.monitoring.v3B\x0bMetricProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_api_dot_label__pb2.DESCRIPTOR, + google_dot_api_dot_metric__pb2.DESCRIPTOR, + google_dot_api_dot_monitored__resource__pb2.DESCRIPTOR, + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2.DESCRIPTOR, + ], +) _POINT = _descriptor.Descriptor( - name='Point', - full_name='google.monitoring.v3.Point', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='interval', full_name='google.monitoring.v3.Point.interval', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.monitoring.v3.Point.value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=234, - serialized_end=344, + name="Point", + full_name="google.monitoring.v3.Point", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="interval", + full_name="google.monitoring.v3.Point.interval", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.monitoring.v3.Point.value", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=234, + serialized_end=344, ) _TIMESERIES = _descriptor.Descriptor( - name='TimeSeries', - full_name='google.monitoring.v3.TimeSeries', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='metric', full_name='google.monitoring.v3.TimeSeries.metric', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='resource', full_name='google.monitoring.v3.TimeSeries.resource', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='metadata', full_name='google.monitoring.v3.TimeSeries.metadata', index=2, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='metric_kind', full_name='google.monitoring.v3.TimeSeries.metric_kind', index=3, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value_type', full_name='google.monitoring.v3.TimeSeries.value_type', index=4, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='points', full_name='google.monitoring.v3.TimeSeries.points', index=5, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=347, - serialized_end=668, + name="TimeSeries", + full_name="google.monitoring.v3.TimeSeries", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="metric", + full_name="google.monitoring.v3.TimeSeries.metric", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="resource", + full_name="google.monitoring.v3.TimeSeries.resource", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="metadata", + full_name="google.monitoring.v3.TimeSeries.metadata", + index=2, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="metric_kind", + full_name="google.monitoring.v3.TimeSeries.metric_kind", + index=3, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value_type", + full_name="google.monitoring.v3.TimeSeries.value_type", + index=4, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="points", + full_name="google.monitoring.v3.TimeSeries.points", + index=5, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=347, + serialized_end=668, ) -_POINT.fields_by_name['interval'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._TIMEINTERVAL -_POINT.fields_by_name['value'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._TYPEDVALUE -_TIMESERIES.fields_by_name['metric'].message_type = google_dot_api_dot_metric__pb2._METRIC -_TIMESERIES.fields_by_name['resource'].message_type = google_dot_api_dot_monitored__resource__pb2._MONITOREDRESOURCE -_TIMESERIES.fields_by_name['metadata'].message_type = google_dot_api_dot_monitored__resource__pb2._MONITOREDRESOURCEMETADATA -_TIMESERIES.fields_by_name['metric_kind'].enum_type = google_dot_api_dot_metric__pb2._METRICDESCRIPTOR_METRICKIND -_TIMESERIES.fields_by_name['value_type'].enum_type = google_dot_api_dot_metric__pb2._METRICDESCRIPTOR_VALUETYPE -_TIMESERIES.fields_by_name['points'].message_type = _POINT -DESCRIPTOR.message_types_by_name['Point'] = _POINT -DESCRIPTOR.message_types_by_name['TimeSeries'] = _TIMESERIES +_POINT.fields_by_name[ + "interval" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._TIMEINTERVAL +) +_POINT.fields_by_name[ + "value" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._TYPEDVALUE +) +_TIMESERIES.fields_by_name[ + "metric" +].message_type = google_dot_api_dot_metric__pb2._METRIC +_TIMESERIES.fields_by_name[ + "resource" +].message_type = google_dot_api_dot_monitored__resource__pb2._MONITOREDRESOURCE +_TIMESERIES.fields_by_name[ + "metadata" +].message_type = google_dot_api_dot_monitored__resource__pb2._MONITOREDRESOURCEMETADATA +_TIMESERIES.fields_by_name[ + "metric_kind" +].enum_type = google_dot_api_dot_metric__pb2._METRICDESCRIPTOR_METRICKIND +_TIMESERIES.fields_by_name[ + "value_type" +].enum_type = google_dot_api_dot_metric__pb2._METRICDESCRIPTOR_VALUETYPE +_TIMESERIES.fields_by_name["points"].message_type = _POINT +DESCRIPTOR.message_types_by_name["Point"] = _POINT +DESCRIPTOR.message_types_by_name["TimeSeries"] = _TIMESERIES _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Point = _reflection.GeneratedProtocolMessageType('Point', (_message.Message,), dict( - DESCRIPTOR = _POINT, - __module__ = 'google.cloud.monitoring_v3.proto.metric_pb2' - , - __doc__ = """A single data point in a time series. +Point = _reflection.GeneratedProtocolMessageType( + "Point", + (_message.Message,), + dict( + DESCRIPTOR=_POINT, + __module__="google.cloud.monitoring_v3.proto.metric_pb2", + __doc__="""A single data point in a time series. Attributes: @@ -168,15 +282,18 @@ value: The value of the data point. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.Point) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.Point) + ), +) _sym_db.RegisterMessage(Point) -TimeSeries = _reflection.GeneratedProtocolMessageType('TimeSeries', (_message.Message,), dict( - DESCRIPTOR = _TIMESERIES, - __module__ = 'google.cloud.monitoring_v3.proto.metric_pb2' - , - __doc__ = """A collection of data points that describes the time-varying values of a +TimeSeries = _reflection.GeneratedProtocolMessageType( + "TimeSeries", + (_message.Message,), + dict( + DESCRIPTOR=_TIMESERIES, + __module__="google.cloud.monitoring_v3.proto.metric_pb2", + __doc__="""A collection of data points that describes the time-varying values of a metric. A time series is identified by a combination of a fully-specified monitored resource and a fully-specified metric. This type is used for both listing and creating time series. @@ -221,11 +338,17 @@ determined by the point's type, which must be ``BOOL``, ``INT64``, ``DOUBLE``, or ``DISTRIBUTION``. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeSeries) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.TimeSeries) + ), +) _sym_db.RegisterMessage(TimeSeries) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\030com.google.monitoring.v3B\013MetricProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\030com.google.monitoring.v3B\013MetricProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/metric_pb2_grpc.py b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/metric_pb2_grpc.py index a89435267cb2..07cb78fe03a9 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/metric_pb2_grpc.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/metric_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/metric_service_pb2.py b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/metric_service_pb2.py index 53d43d5d8425..39d0d2d2db69 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/metric_service_pb2.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/metric_service_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/monitoring_v3/proto/metric_service.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -15,590 +17,971 @@ from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 from google.api import metric_pb2 as google_dot_api_dot_metric__pb2 -from google.api import monitored_resource_pb2 as google_dot_api_dot_monitored__resource__pb2 -from google.cloud.monitoring_v3.proto import common_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2 -from google.cloud.monitoring_v3.proto import metric_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__pb2 +from google.api import ( + monitored_resource_pb2 as google_dot_api_dot_monitored__resource__pb2, +) +from google.cloud.monitoring_v3.proto import ( + common_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2, +) +from google.cloud.monitoring_v3.proto import ( + metric_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__pb2, +) from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/monitoring_v3/proto/metric_service.proto', - package='google.monitoring.v3', - syntax='proto3', - serialized_pb=_b('\n5google/cloud/monitoring_v3/proto/metric_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/metric.proto\x1a#google/api/monitored_resource.proto\x1a-google/cloud/monitoring_v3/proto/common.proto\x1a-google/cloud/monitoring_v3/proto/metric.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x17google/rpc/status.proto\"n\n\'ListMonitoredResourceDescriptorsRequest\x12\x0c\n\x04name\x18\x05 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"\x8a\x01\n(ListMonitoredResourceDescriptorsResponse\x12\x45\n\x14resource_descriptors\x18\x01 \x03(\x0b\x32\'.google.api.MonitoredResourceDescriptor\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"5\n%GetMonitoredResourceDescriptorRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\"c\n\x1cListMetricDescriptorsRequest\x12\x0c\n\x04name\x18\x05 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"r\n\x1dListMetricDescriptorsResponse\x12\x38\n\x12metric_descriptors\x18\x01 \x03(\x0b\x32\x1c.google.api.MetricDescriptor\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"*\n\x1aGetMetricDescriptorRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\"f\n\x1d\x43reateMetricDescriptorRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x37\n\x11metric_descriptor\x18\x02 \x01(\x0b\x32\x1c.google.api.MetricDescriptor\"-\n\x1d\x44\x65leteMetricDescriptorRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\"\xcf\x02\n\x15ListTimeSeriesRequest\x12\x0c\n\x04name\x18\n \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x34\n\x08interval\x18\x04 \x01(\x0b\x32\".google.monitoring.v3.TimeInterval\x12\x36\n\x0b\x61ggregation\x18\x05 \x01(\x0b\x32!.google.monitoring.v3.Aggregation\x12\x10\n\x08order_by\x18\x06 \x01(\t\x12H\n\x04view\x18\x07 \x01(\x0e\x32:.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView\x12\x11\n\tpage_size\x18\x08 \x01(\x05\x12\x12\n\npage_token\x18\t \x01(\t\"\'\n\x0eTimeSeriesView\x12\x08\n\x04\x46ULL\x10\x00\x12\x0b\n\x07HEADERS\x10\x01\"\x96\x01\n\x16ListTimeSeriesResponse\x12\x35\n\x0btime_series\x18\x01 \x03(\x0b\x32 .google.monitoring.v3.TimeSeries\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12,\n\x10\x65xecution_errors\x18\x03 \x03(\x0b\x32\x12.google.rpc.Status\"^\n\x17\x43reateTimeSeriesRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x35\n\x0btime_series\x18\x02 \x03(\x0b\x32 .google.monitoring.v3.TimeSeries\"r\n\x15\x43reateTimeSeriesError\x12\x35\n\x0btime_series\x18\x01 \x01(\x0b\x32 .google.monitoring.v3.TimeSeries\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status2\xf5\n\n\rMetricService\x12\xdd\x01\n ListMonitoredResourceDescriptors\x12=.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest\x1a>.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse\":\x82\xd3\xe4\x93\x02\x34\x12\x32/v3/{name=projects/*}/monitoredResourceDescriptors\x12\xc4\x01\n\x1eGetMonitoredResourceDescriptor\x12;.google.monitoring.v3.GetMonitoredResourceDescriptorRequest\x1a\'.google.api.MonitoredResourceDescriptor\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/v3/{name=projects/*/monitoredResourceDescriptors/*}\x12\xb1\x01\n\x15ListMetricDescriptors\x12\x32.google.monitoring.v3.ListMetricDescriptorsRequest\x1a\x33.google.monitoring.v3.ListMetricDescriptorsResponse\"/\x82\xd3\xe4\x93\x02)\x12\'/v3/{name=projects/*}/metricDescriptors\x12\x99\x01\n\x13GetMetricDescriptor\x12\x30.google.monitoring.v3.GetMetricDescriptorRequest\x1a\x1c.google.api.MetricDescriptor\"2\x82\xd3\xe4\x93\x02,\x12*/v3/{name=projects/*/metricDescriptors/**}\x12\xaf\x01\n\x16\x43reateMetricDescriptor\x12\x33.google.monitoring.v3.CreateMetricDescriptorRequest\x1a\x1c.google.api.MetricDescriptor\"B\x82\xd3\xe4\x93\x02<\"\'/v3/{name=projects/*}/metricDescriptors:\x11metric_descriptor\x12\x99\x01\n\x16\x44\x65leteMetricDescriptor\x12\x33.google.monitoring.v3.DeleteMetricDescriptorRequest\x1a\x16.google.protobuf.Empty\"2\x82\xd3\xe4\x93\x02,**/v3/{name=projects/*/metricDescriptors/**}\x12\x95\x01\n\x0eListTimeSeries\x12+.google.monitoring.v3.ListTimeSeriesRequest\x1a,.google.monitoring.v3.ListTimeSeriesResponse\"(\x82\xd3\xe4\x93\x02\"\x12 /v3/{name=projects/*}/timeSeries\x12\x86\x01\n\x10\x43reateTimeSeries\x12-.google.monitoring.v3.CreateTimeSeriesRequest\x1a\x16.google.protobuf.Empty\"+\x82\xd3\xe4\x93\x02%\" /v3/{name=projects/*}/timeSeries:\x01*B\xaa\x01\n\x18\x63om.google.monitoring.v3B\x12MetricServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_metric__pb2.DESCRIPTOR,google_dot_api_dot_monitored__resource__pb2.DESCRIPTOR,google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2.DESCRIPTOR,google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - + name="google/cloud/monitoring_v3/proto/metric_service.proto", + package="google.monitoring.v3", + syntax="proto3", + serialized_pb=_b( + '\n5google/cloud/monitoring_v3/proto/metric_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/metric.proto\x1a#google/api/monitored_resource.proto\x1a-google/cloud/monitoring_v3/proto/common.proto\x1a-google/cloud/monitoring_v3/proto/metric.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x17google/rpc/status.proto"n\n\'ListMonitoredResourceDescriptorsRequest\x12\x0c\n\x04name\x18\x05 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t"\x8a\x01\n(ListMonitoredResourceDescriptorsResponse\x12\x45\n\x14resource_descriptors\x18\x01 \x03(\x0b\x32\'.google.api.MonitoredResourceDescriptor\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"5\n%GetMonitoredResourceDescriptorRequest\x12\x0c\n\x04name\x18\x03 \x01(\t"c\n\x1cListMetricDescriptorsRequest\x12\x0c\n\x04name\x18\x05 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t"r\n\x1dListMetricDescriptorsResponse\x12\x38\n\x12metric_descriptors\x18\x01 \x03(\x0b\x32\x1c.google.api.MetricDescriptor\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"*\n\x1aGetMetricDescriptorRequest\x12\x0c\n\x04name\x18\x03 \x01(\t"f\n\x1d\x43reateMetricDescriptorRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x37\n\x11metric_descriptor\x18\x02 \x01(\x0b\x32\x1c.google.api.MetricDescriptor"-\n\x1d\x44\x65leteMetricDescriptorRequest\x12\x0c\n\x04name\x18\x03 \x01(\t"\xcf\x02\n\x15ListTimeSeriesRequest\x12\x0c\n\x04name\x18\n \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x34\n\x08interval\x18\x04 \x01(\x0b\x32".google.monitoring.v3.TimeInterval\x12\x36\n\x0b\x61ggregation\x18\x05 \x01(\x0b\x32!.google.monitoring.v3.Aggregation\x12\x10\n\x08order_by\x18\x06 \x01(\t\x12H\n\x04view\x18\x07 \x01(\x0e\x32:.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView\x12\x11\n\tpage_size\x18\x08 \x01(\x05\x12\x12\n\npage_token\x18\t \x01(\t"\'\n\x0eTimeSeriesView\x12\x08\n\x04\x46ULL\x10\x00\x12\x0b\n\x07HEADERS\x10\x01"\x96\x01\n\x16ListTimeSeriesResponse\x12\x35\n\x0btime_series\x18\x01 \x03(\x0b\x32 .google.monitoring.v3.TimeSeries\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12,\n\x10\x65xecution_errors\x18\x03 \x03(\x0b\x32\x12.google.rpc.Status"^\n\x17\x43reateTimeSeriesRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x35\n\x0btime_series\x18\x02 \x03(\x0b\x32 .google.monitoring.v3.TimeSeries"r\n\x15\x43reateTimeSeriesError\x12\x35\n\x0btime_series\x18\x01 \x01(\x0b\x32 .google.monitoring.v3.TimeSeries\x12"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status2\xf5\n\n\rMetricService\x12\xdd\x01\n ListMonitoredResourceDescriptors\x12=.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest\x1a>.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse":\x82\xd3\xe4\x93\x02\x34\x12\x32/v3/{name=projects/*}/monitoredResourceDescriptors\x12\xc4\x01\n\x1eGetMonitoredResourceDescriptor\x12;.google.monitoring.v3.GetMonitoredResourceDescriptorRequest\x1a\'.google.api.MonitoredResourceDescriptor"<\x82\xd3\xe4\x93\x02\x36\x12\x34/v3/{name=projects/*/monitoredResourceDescriptors/*}\x12\xb1\x01\n\x15ListMetricDescriptors\x12\x32.google.monitoring.v3.ListMetricDescriptorsRequest\x1a\x33.google.monitoring.v3.ListMetricDescriptorsResponse"/\x82\xd3\xe4\x93\x02)\x12\'/v3/{name=projects/*}/metricDescriptors\x12\x99\x01\n\x13GetMetricDescriptor\x12\x30.google.monitoring.v3.GetMetricDescriptorRequest\x1a\x1c.google.api.MetricDescriptor"2\x82\xd3\xe4\x93\x02,\x12*/v3/{name=projects/*/metricDescriptors/**}\x12\xaf\x01\n\x16\x43reateMetricDescriptor\x12\x33.google.monitoring.v3.CreateMetricDescriptorRequest\x1a\x1c.google.api.MetricDescriptor"B\x82\xd3\xe4\x93\x02<"\'/v3/{name=projects/*}/metricDescriptors:\x11metric_descriptor\x12\x99\x01\n\x16\x44\x65leteMetricDescriptor\x12\x33.google.monitoring.v3.DeleteMetricDescriptorRequest\x1a\x16.google.protobuf.Empty"2\x82\xd3\xe4\x93\x02,**/v3/{name=projects/*/metricDescriptors/**}\x12\x95\x01\n\x0eListTimeSeries\x12+.google.monitoring.v3.ListTimeSeriesRequest\x1a,.google.monitoring.v3.ListTimeSeriesResponse"(\x82\xd3\xe4\x93\x02"\x12 /v3/{name=projects/*}/timeSeries\x12\x86\x01\n\x10\x43reateTimeSeries\x12-.google.monitoring.v3.CreateTimeSeriesRequest\x1a\x16.google.protobuf.Empty"+\x82\xd3\xe4\x93\x02%" /v3/{name=projects/*}/timeSeries:\x01*B\xaa\x01\n\x18\x63om.google.monitoring.v3B\x12MetricServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_api_dot_metric__pb2.DESCRIPTOR, + google_dot_api_dot_monitored__resource__pb2.DESCRIPTOR, + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2.DESCRIPTOR, + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_rpc_dot_status__pb2.DESCRIPTOR, + ], +) _LISTTIMESERIESREQUEST_TIMESERIESVIEW = _descriptor.EnumDescriptor( - name='TimeSeriesView', - full_name='google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='FULL', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='HEADERS', index=1, number=1, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1368, - serialized_end=1407, + name="TimeSeriesView", + full_name="google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="FULL", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="HEADERS", index=1, number=1, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1368, + serialized_end=1407, ) _sym_db.RegisterEnumDescriptor(_LISTTIMESERIESREQUEST_TIMESERIESVIEW) _LISTMONITOREDRESOURCEDESCRIPTORSREQUEST = _descriptor.Descriptor( - name='ListMonitoredResourceDescriptorsRequest', - full_name='google.monitoring.v3.ListMonitoredResourceDescriptorsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.name', index=0, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.filter', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.page_size', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.page_token', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=351, - serialized_end=461, + name="ListMonitoredResourceDescriptorsRequest", + full_name="google.monitoring.v3.ListMonitoredResourceDescriptorsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.name", + index=0, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.filter", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.page_size", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.monitoring.v3.ListMonitoredResourceDescriptorsRequest.page_token", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=351, + serialized_end=461, ) _LISTMONITOREDRESOURCEDESCRIPTORSRESPONSE = _descriptor.Descriptor( - name='ListMonitoredResourceDescriptorsResponse', - full_name='google.monitoring.v3.ListMonitoredResourceDescriptorsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_descriptors', full_name='google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.resource_descriptors', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=464, - serialized_end=602, + name="ListMonitoredResourceDescriptorsResponse", + full_name="google.monitoring.v3.ListMonitoredResourceDescriptorsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="resource_descriptors", + full_name="google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.resource_descriptors", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.monitoring.v3.ListMonitoredResourceDescriptorsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=464, + serialized_end=602, ) _GETMONITOREDRESOURCEDESCRIPTORREQUEST = _descriptor.Descriptor( - name='GetMonitoredResourceDescriptorRequest', - full_name='google.monitoring.v3.GetMonitoredResourceDescriptorRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.GetMonitoredResourceDescriptorRequest.name', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=604, - serialized_end=657, + name="GetMonitoredResourceDescriptorRequest", + full_name="google.monitoring.v3.GetMonitoredResourceDescriptorRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.GetMonitoredResourceDescriptorRequest.name", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=604, + serialized_end=657, ) _LISTMETRICDESCRIPTORSREQUEST = _descriptor.Descriptor( - name='ListMetricDescriptorsRequest', - full_name='google.monitoring.v3.ListMetricDescriptorsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.ListMetricDescriptorsRequest.name', index=0, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.monitoring.v3.ListMetricDescriptorsRequest.filter', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.monitoring.v3.ListMetricDescriptorsRequest.page_size', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.monitoring.v3.ListMetricDescriptorsRequest.page_token', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=659, - serialized_end=758, + name="ListMetricDescriptorsRequest", + full_name="google.monitoring.v3.ListMetricDescriptorsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.ListMetricDescriptorsRequest.name", + index=0, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.monitoring.v3.ListMetricDescriptorsRequest.filter", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.monitoring.v3.ListMetricDescriptorsRequest.page_size", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.monitoring.v3.ListMetricDescriptorsRequest.page_token", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=659, + serialized_end=758, ) _LISTMETRICDESCRIPTORSRESPONSE = _descriptor.Descriptor( - name='ListMetricDescriptorsResponse', - full_name='google.monitoring.v3.ListMetricDescriptorsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='metric_descriptors', full_name='google.monitoring.v3.ListMetricDescriptorsResponse.metric_descriptors', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.monitoring.v3.ListMetricDescriptorsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=760, - serialized_end=874, + name="ListMetricDescriptorsResponse", + full_name="google.monitoring.v3.ListMetricDescriptorsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="metric_descriptors", + full_name="google.monitoring.v3.ListMetricDescriptorsResponse.metric_descriptors", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.monitoring.v3.ListMetricDescriptorsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=760, + serialized_end=874, ) _GETMETRICDESCRIPTORREQUEST = _descriptor.Descriptor( - name='GetMetricDescriptorRequest', - full_name='google.monitoring.v3.GetMetricDescriptorRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.GetMetricDescriptorRequest.name', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=876, - serialized_end=918, + name="GetMetricDescriptorRequest", + full_name="google.monitoring.v3.GetMetricDescriptorRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.GetMetricDescriptorRequest.name", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=876, + serialized_end=918, ) _CREATEMETRICDESCRIPTORREQUEST = _descriptor.Descriptor( - name='CreateMetricDescriptorRequest', - full_name='google.monitoring.v3.CreateMetricDescriptorRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.CreateMetricDescriptorRequest.name', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='metric_descriptor', full_name='google.monitoring.v3.CreateMetricDescriptorRequest.metric_descriptor', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=920, - serialized_end=1022, + name="CreateMetricDescriptorRequest", + full_name="google.monitoring.v3.CreateMetricDescriptorRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.CreateMetricDescriptorRequest.name", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="metric_descriptor", + full_name="google.monitoring.v3.CreateMetricDescriptorRequest.metric_descriptor", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=920, + serialized_end=1022, ) _DELETEMETRICDESCRIPTORREQUEST = _descriptor.Descriptor( - name='DeleteMetricDescriptorRequest', - full_name='google.monitoring.v3.DeleteMetricDescriptorRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.DeleteMetricDescriptorRequest.name', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1024, - serialized_end=1069, + name="DeleteMetricDescriptorRequest", + full_name="google.monitoring.v3.DeleteMetricDescriptorRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.DeleteMetricDescriptorRequest.name", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1024, + serialized_end=1069, ) _LISTTIMESERIESREQUEST = _descriptor.Descriptor( - name='ListTimeSeriesRequest', - full_name='google.monitoring.v3.ListTimeSeriesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.ListTimeSeriesRequest.name', index=0, - number=10, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.monitoring.v3.ListTimeSeriesRequest.filter', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='interval', full_name='google.monitoring.v3.ListTimeSeriesRequest.interval', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='aggregation', full_name='google.monitoring.v3.ListTimeSeriesRequest.aggregation', index=3, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='order_by', full_name='google.monitoring.v3.ListTimeSeriesRequest.order_by', index=4, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='view', full_name='google.monitoring.v3.ListTimeSeriesRequest.view', index=5, - number=7, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.monitoring.v3.ListTimeSeriesRequest.page_size', index=6, - number=8, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.monitoring.v3.ListTimeSeriesRequest.page_token', index=7, - number=9, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _LISTTIMESERIESREQUEST_TIMESERIESVIEW, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1072, - serialized_end=1407, + name="ListTimeSeriesRequest", + full_name="google.monitoring.v3.ListTimeSeriesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.ListTimeSeriesRequest.name", + index=0, + number=10, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.monitoring.v3.ListTimeSeriesRequest.filter", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="interval", + full_name="google.monitoring.v3.ListTimeSeriesRequest.interval", + index=2, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="aggregation", + full_name="google.monitoring.v3.ListTimeSeriesRequest.aggregation", + index=3, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="order_by", + full_name="google.monitoring.v3.ListTimeSeriesRequest.order_by", + index=4, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="view", + full_name="google.monitoring.v3.ListTimeSeriesRequest.view", + index=5, + number=7, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.monitoring.v3.ListTimeSeriesRequest.page_size", + index=6, + number=8, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.monitoring.v3.ListTimeSeriesRequest.page_token", + index=7, + number=9, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_LISTTIMESERIESREQUEST_TIMESERIESVIEW], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1072, + serialized_end=1407, ) _LISTTIMESERIESRESPONSE = _descriptor.Descriptor( - name='ListTimeSeriesResponse', - full_name='google.monitoring.v3.ListTimeSeriesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='time_series', full_name='google.monitoring.v3.ListTimeSeriesResponse.time_series', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.monitoring.v3.ListTimeSeriesResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='execution_errors', full_name='google.monitoring.v3.ListTimeSeriesResponse.execution_errors', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1410, - serialized_end=1560, + name="ListTimeSeriesResponse", + full_name="google.monitoring.v3.ListTimeSeriesResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="time_series", + full_name="google.monitoring.v3.ListTimeSeriesResponse.time_series", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.monitoring.v3.ListTimeSeriesResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="execution_errors", + full_name="google.monitoring.v3.ListTimeSeriesResponse.execution_errors", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1410, + serialized_end=1560, ) _CREATETIMESERIESREQUEST = _descriptor.Descriptor( - name='CreateTimeSeriesRequest', - full_name='google.monitoring.v3.CreateTimeSeriesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.CreateTimeSeriesRequest.name', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='time_series', full_name='google.monitoring.v3.CreateTimeSeriesRequest.time_series', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1562, - serialized_end=1656, + name="CreateTimeSeriesRequest", + full_name="google.monitoring.v3.CreateTimeSeriesRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.CreateTimeSeriesRequest.name", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="time_series", + full_name="google.monitoring.v3.CreateTimeSeriesRequest.time_series", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1562, + serialized_end=1656, ) _CREATETIMESERIESERROR = _descriptor.Descriptor( - name='CreateTimeSeriesError', - full_name='google.monitoring.v3.CreateTimeSeriesError', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='time_series', full_name='google.monitoring.v3.CreateTimeSeriesError.time_series', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.monitoring.v3.CreateTimeSeriesError.status', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1658, - serialized_end=1772, -) - -_LISTMONITOREDRESOURCEDESCRIPTORSRESPONSE.fields_by_name['resource_descriptors'].message_type = google_dot_api_dot_monitored__resource__pb2._MONITOREDRESOURCEDESCRIPTOR -_LISTMETRICDESCRIPTORSRESPONSE.fields_by_name['metric_descriptors'].message_type = google_dot_api_dot_metric__pb2._METRICDESCRIPTOR -_CREATEMETRICDESCRIPTORREQUEST.fields_by_name['metric_descriptor'].message_type = google_dot_api_dot_metric__pb2._METRICDESCRIPTOR -_LISTTIMESERIESREQUEST.fields_by_name['interval'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._TIMEINTERVAL -_LISTTIMESERIESREQUEST.fields_by_name['aggregation'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._AGGREGATION -_LISTTIMESERIESREQUEST.fields_by_name['view'].enum_type = _LISTTIMESERIESREQUEST_TIMESERIESVIEW + name="CreateTimeSeriesError", + full_name="google.monitoring.v3.CreateTimeSeriesError", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="time_series", + full_name="google.monitoring.v3.CreateTimeSeriesError.time_series", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="status", + full_name="google.monitoring.v3.CreateTimeSeriesError.status", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1658, + serialized_end=1772, +) + +_LISTMONITOREDRESOURCEDESCRIPTORSRESPONSE.fields_by_name[ + "resource_descriptors" +].message_type = ( + google_dot_api_dot_monitored__resource__pb2._MONITOREDRESOURCEDESCRIPTOR +) +_LISTMETRICDESCRIPTORSRESPONSE.fields_by_name[ + "metric_descriptors" +].message_type = google_dot_api_dot_metric__pb2._METRICDESCRIPTOR +_CREATEMETRICDESCRIPTORREQUEST.fields_by_name[ + "metric_descriptor" +].message_type = google_dot_api_dot_metric__pb2._METRICDESCRIPTOR +_LISTTIMESERIESREQUEST.fields_by_name[ + "interval" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._TIMEINTERVAL +) +_LISTTIMESERIESREQUEST.fields_by_name[ + "aggregation" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._AGGREGATION +) +_LISTTIMESERIESREQUEST.fields_by_name[ + "view" +].enum_type = _LISTTIMESERIESREQUEST_TIMESERIESVIEW _LISTTIMESERIESREQUEST_TIMESERIESVIEW.containing_type = _LISTTIMESERIESREQUEST -_LISTTIMESERIESRESPONSE.fields_by_name['time_series'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__pb2._TIMESERIES -_LISTTIMESERIESRESPONSE.fields_by_name['execution_errors'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_CREATETIMESERIESREQUEST.fields_by_name['time_series'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__pb2._TIMESERIES -_CREATETIMESERIESERROR.fields_by_name['time_series'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__pb2._TIMESERIES -_CREATETIMESERIESERROR.fields_by_name['status'].message_type = google_dot_rpc_dot_status__pb2._STATUS -DESCRIPTOR.message_types_by_name['ListMonitoredResourceDescriptorsRequest'] = _LISTMONITOREDRESOURCEDESCRIPTORSREQUEST -DESCRIPTOR.message_types_by_name['ListMonitoredResourceDescriptorsResponse'] = _LISTMONITOREDRESOURCEDESCRIPTORSRESPONSE -DESCRIPTOR.message_types_by_name['GetMonitoredResourceDescriptorRequest'] = _GETMONITOREDRESOURCEDESCRIPTORREQUEST -DESCRIPTOR.message_types_by_name['ListMetricDescriptorsRequest'] = _LISTMETRICDESCRIPTORSREQUEST -DESCRIPTOR.message_types_by_name['ListMetricDescriptorsResponse'] = _LISTMETRICDESCRIPTORSRESPONSE -DESCRIPTOR.message_types_by_name['GetMetricDescriptorRequest'] = _GETMETRICDESCRIPTORREQUEST -DESCRIPTOR.message_types_by_name['CreateMetricDescriptorRequest'] = _CREATEMETRICDESCRIPTORREQUEST -DESCRIPTOR.message_types_by_name['DeleteMetricDescriptorRequest'] = _DELETEMETRICDESCRIPTORREQUEST -DESCRIPTOR.message_types_by_name['ListTimeSeriesRequest'] = _LISTTIMESERIESREQUEST -DESCRIPTOR.message_types_by_name['ListTimeSeriesResponse'] = _LISTTIMESERIESRESPONSE -DESCRIPTOR.message_types_by_name['CreateTimeSeriesRequest'] = _CREATETIMESERIESREQUEST -DESCRIPTOR.message_types_by_name['CreateTimeSeriesError'] = _CREATETIMESERIESERROR +_LISTTIMESERIESRESPONSE.fields_by_name[ + "time_series" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__pb2._TIMESERIES +) +_LISTTIMESERIESRESPONSE.fields_by_name[ + "execution_errors" +].message_type = google_dot_rpc_dot_status__pb2._STATUS +_CREATETIMESERIESREQUEST.fields_by_name[ + "time_series" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__pb2._TIMESERIES +) +_CREATETIMESERIESERROR.fields_by_name[ + "time_series" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__pb2._TIMESERIES +) +_CREATETIMESERIESERROR.fields_by_name[ + "status" +].message_type = google_dot_rpc_dot_status__pb2._STATUS +DESCRIPTOR.message_types_by_name[ + "ListMonitoredResourceDescriptorsRequest" +] = _LISTMONITOREDRESOURCEDESCRIPTORSREQUEST +DESCRIPTOR.message_types_by_name[ + "ListMonitoredResourceDescriptorsResponse" +] = _LISTMONITOREDRESOURCEDESCRIPTORSRESPONSE +DESCRIPTOR.message_types_by_name[ + "GetMonitoredResourceDescriptorRequest" +] = _GETMONITOREDRESOURCEDESCRIPTORREQUEST +DESCRIPTOR.message_types_by_name[ + "ListMetricDescriptorsRequest" +] = _LISTMETRICDESCRIPTORSREQUEST +DESCRIPTOR.message_types_by_name[ + "ListMetricDescriptorsResponse" +] = _LISTMETRICDESCRIPTORSRESPONSE +DESCRIPTOR.message_types_by_name[ + "GetMetricDescriptorRequest" +] = _GETMETRICDESCRIPTORREQUEST +DESCRIPTOR.message_types_by_name[ + "CreateMetricDescriptorRequest" +] = _CREATEMETRICDESCRIPTORREQUEST +DESCRIPTOR.message_types_by_name[ + "DeleteMetricDescriptorRequest" +] = _DELETEMETRICDESCRIPTORREQUEST +DESCRIPTOR.message_types_by_name["ListTimeSeriesRequest"] = _LISTTIMESERIESREQUEST +DESCRIPTOR.message_types_by_name["ListTimeSeriesResponse"] = _LISTTIMESERIESRESPONSE +DESCRIPTOR.message_types_by_name["CreateTimeSeriesRequest"] = _CREATETIMESERIESREQUEST +DESCRIPTOR.message_types_by_name["CreateTimeSeriesError"] = _CREATETIMESERIESERROR _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ListMonitoredResourceDescriptorsRequest = _reflection.GeneratedProtocolMessageType('ListMonitoredResourceDescriptorsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTMONITOREDRESOURCEDESCRIPTORSREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.metric_service_pb2' - , - __doc__ = """The ``ListMonitoredResourceDescriptors`` request. +ListMonitoredResourceDescriptorsRequest = _reflection.GeneratedProtocolMessageType( + "ListMonitoredResourceDescriptorsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTMONITOREDRESOURCEDESCRIPTORSREQUEST, + __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", + __doc__="""The ``ListMonitoredResourceDescriptors`` request. Attributes: @@ -623,15 +1006,18 @@ method. Using this field causes the method to return additional results from the previous method call. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListMonitoredResourceDescriptorsRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListMonitoredResourceDescriptorsRequest) + ), +) _sym_db.RegisterMessage(ListMonitoredResourceDescriptorsRequest) -ListMonitoredResourceDescriptorsResponse = _reflection.GeneratedProtocolMessageType('ListMonitoredResourceDescriptorsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTMONITOREDRESOURCEDESCRIPTORSRESPONSE, - __module__ = 'google.cloud.monitoring_v3.proto.metric_service_pb2' - , - __doc__ = """The ``ListMonitoredResourceDescriptors`` response. +ListMonitoredResourceDescriptorsResponse = _reflection.GeneratedProtocolMessageType( + "ListMonitoredResourceDescriptorsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTMONITOREDRESOURCEDESCRIPTORSRESPONSE, + __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", + __doc__="""The ``ListMonitoredResourceDescriptors`` response. Attributes: @@ -644,15 +1030,18 @@ results, use that value as ``pageToken`` in the next call to this method. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListMonitoredResourceDescriptorsResponse) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListMonitoredResourceDescriptorsResponse) + ), +) _sym_db.RegisterMessage(ListMonitoredResourceDescriptorsResponse) -GetMonitoredResourceDescriptorRequest = _reflection.GeneratedProtocolMessageType('GetMonitoredResourceDescriptorRequest', (_message.Message,), dict( - DESCRIPTOR = _GETMONITOREDRESOURCEDESCRIPTORREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.metric_service_pb2' - , - __doc__ = """The ``GetMonitoredResourceDescriptor`` request. +GetMonitoredResourceDescriptorRequest = _reflection.GeneratedProtocolMessageType( + "GetMonitoredResourceDescriptorRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETMONITOREDRESOURCEDESCRIPTORREQUEST, + __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", + __doc__="""The ``GetMonitoredResourceDescriptor`` request. Attributes: @@ -662,15 +1051,18 @@ ource_type}"``. The ``{resource_type}`` is a predefined type, such as ``cloudsql_database``. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetMonitoredResourceDescriptorRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetMonitoredResourceDescriptorRequest) + ), +) _sym_db.RegisterMessage(GetMonitoredResourceDescriptorRequest) -ListMetricDescriptorsRequest = _reflection.GeneratedProtocolMessageType('ListMetricDescriptorsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTMETRICDESCRIPTORSREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.metric_service_pb2' - , - __doc__ = """The ``ListMetricDescriptors`` request. +ListMetricDescriptorsRequest = _reflection.GeneratedProtocolMessageType( + "ListMetricDescriptorsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTMETRICDESCRIPTORSREQUEST, + __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", + __doc__="""The ``ListMetricDescriptors`` request. Attributes: @@ -694,15 +1086,18 @@ method. Using this field causes the method to return additional results from the previous method call. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListMetricDescriptorsRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListMetricDescriptorsRequest) + ), +) _sym_db.RegisterMessage(ListMetricDescriptorsRequest) -ListMetricDescriptorsResponse = _reflection.GeneratedProtocolMessageType('ListMetricDescriptorsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTMETRICDESCRIPTORSRESPONSE, - __module__ = 'google.cloud.monitoring_v3.proto.metric_service_pb2' - , - __doc__ = """The ``ListMetricDescriptors`` response. +ListMetricDescriptorsResponse = _reflection.GeneratedProtocolMessageType( + "ListMetricDescriptorsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTMETRICDESCRIPTORSRESPONSE, + __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", + __doc__="""The ``ListMetricDescriptors`` response. Attributes: @@ -715,15 +1110,18 @@ results, use that value as ``pageToken`` in the next call to this method. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListMetricDescriptorsResponse) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListMetricDescriptorsResponse) + ), +) _sym_db.RegisterMessage(ListMetricDescriptorsResponse) -GetMetricDescriptorRequest = _reflection.GeneratedProtocolMessageType('GetMetricDescriptorRequest', (_message.Message,), dict( - DESCRIPTOR = _GETMETRICDESCRIPTORREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.metric_service_pb2' - , - __doc__ = """The ``GetMetricDescriptor`` request. +GetMetricDescriptorRequest = _reflection.GeneratedProtocolMessageType( + "GetMetricDescriptorRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETMETRICDESCRIPTORREQUEST, + __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", + __doc__="""The ``GetMetricDescriptor`` request. Attributes: @@ -733,15 +1131,18 @@ /{metric_id}"``. An example value of ``{metric_id}`` is ``"compute.googleapis.com/instance/disk/read_bytes_count"``. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetMetricDescriptorRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetMetricDescriptorRequest) + ), +) _sym_db.RegisterMessage(GetMetricDescriptorRequest) -CreateMetricDescriptorRequest = _reflection.GeneratedProtocolMessageType('CreateMetricDescriptorRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEMETRICDESCRIPTORREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.metric_service_pb2' - , - __doc__ = """The ``CreateMetricDescriptor`` request. +CreateMetricDescriptorRequest = _reflection.GeneratedProtocolMessageType( + "CreateMetricDescriptorRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEMETRICDESCRIPTORREQUEST, + __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", + __doc__="""The ``CreateMetricDescriptor`` request. Attributes: @@ -752,15 +1153,18 @@ The new `custom metric `__ descriptor. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateMetricDescriptorRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateMetricDescriptorRequest) + ), +) _sym_db.RegisterMessage(CreateMetricDescriptorRequest) -DeleteMetricDescriptorRequest = _reflection.GeneratedProtocolMessageType('DeleteMetricDescriptorRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEMETRICDESCRIPTORREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.metric_service_pb2' - , - __doc__ = """The ``DeleteMetricDescriptor`` request. +DeleteMetricDescriptorRequest = _reflection.GeneratedProtocolMessageType( + "DeleteMetricDescriptorRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEMETRICDESCRIPTORREQUEST, + __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", + __doc__="""The ``DeleteMetricDescriptor`` request. Attributes: @@ -770,15 +1174,18 @@ /{metric_id}"``. An example of ``{metric_id}`` is: ``"custom.googleapis.com/my_test_metric"``. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteMetricDescriptorRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteMetricDescriptorRequest) + ), +) _sym_db.RegisterMessage(DeleteMetricDescriptorRequest) -ListTimeSeriesRequest = _reflection.GeneratedProtocolMessageType('ListTimeSeriesRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTTIMESERIESREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.metric_service_pb2' - , - __doc__ = """The ``ListTimeSeries`` request. +ListTimeSeriesRequest = _reflection.GeneratedProtocolMessageType( + "ListTimeSeriesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTTIMESERIESREQUEST, + __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", + __doc__="""The ``ListTimeSeries`` request. Attributes: @@ -818,15 +1225,18 @@ method. Using this field causes the method to return additional results from the previous method call. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListTimeSeriesRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListTimeSeriesRequest) + ), +) _sym_db.RegisterMessage(ListTimeSeriesRequest) -ListTimeSeriesResponse = _reflection.GeneratedProtocolMessageType('ListTimeSeriesResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTTIMESERIESRESPONSE, - __module__ = 'google.cloud.monitoring_v3.proto.metric_service_pb2' - , - __doc__ = """The ``ListTimeSeries`` response. +ListTimeSeriesResponse = _reflection.GeneratedProtocolMessageType( + "ListTimeSeriesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTTIMESERIESRESPONSE, + __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", + __doc__="""The ``ListTimeSeries`` response. Attributes: @@ -842,15 +1252,18 @@ Query execution errors that may have caused the time series data returned to be incomplete. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListTimeSeriesResponse) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListTimeSeriesResponse) + ), +) _sym_db.RegisterMessage(ListTimeSeriesResponse) -CreateTimeSeriesRequest = _reflection.GeneratedProtocolMessageType('CreateTimeSeriesRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATETIMESERIESREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.metric_service_pb2' - , - __doc__ = """The ``CreateTimeSeries`` request. +CreateTimeSeriesRequest = _reflection.GeneratedProtocolMessageType( + "CreateTimeSeriesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATETIMESERIESREQUEST, + __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", + __doc__="""The ``CreateTimeSeries`` request. Attributes: @@ -865,15 +1278,18 @@ unique time series by supplying all label values for the metric and the monitored resource. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateTimeSeriesRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateTimeSeriesRequest) + ), +) _sym_db.RegisterMessage(CreateTimeSeriesRequest) -CreateTimeSeriesError = _reflection.GeneratedProtocolMessageType('CreateTimeSeriesError', (_message.Message,), dict( - DESCRIPTOR = _CREATETIMESERIESERROR, - __module__ = 'google.cloud.monitoring_v3.proto.metric_service_pb2' - , - __doc__ = """Describes the result of a failed request to write data to a time series. +CreateTimeSeriesError = _reflection.GeneratedProtocolMessageType( + "CreateTimeSeriesError", + (_message.Message,), + dict( + DESCRIPTOR=_CREATETIMESERIESERROR, + __module__="google.cloud.monitoring_v3.proto.metric_service_pb2", + __doc__="""Describes the result of a failed request to write data to a time series. Attributes: @@ -885,98 +1301,137 @@ status: The status of the requested write operation. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateTimeSeriesError) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateTimeSeriesError) + ), +) _sym_db.RegisterMessage(CreateTimeSeriesError) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\030com.google.monitoring.v3B\022MetricServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\030com.google.monitoring.v3B\022MetricServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3" + ), +) _METRICSERVICE = _descriptor.ServiceDescriptor( - name='MetricService', - full_name='google.monitoring.v3.MetricService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=1775, - serialized_end=3172, - methods=[ - _descriptor.MethodDescriptor( - name='ListMonitoredResourceDescriptors', - full_name='google.monitoring.v3.MetricService.ListMonitoredResourceDescriptors', + name="MetricService", + full_name="google.monitoring.v3.MetricService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_LISTMONITOREDRESOURCEDESCRIPTORSREQUEST, - output_type=_LISTMONITOREDRESOURCEDESCRIPTORSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0024\0222/v3/{name=projects/*}/monitoredResourceDescriptors')), - ), - _descriptor.MethodDescriptor( - name='GetMonitoredResourceDescriptor', - full_name='google.monitoring.v3.MetricService.GetMonitoredResourceDescriptor', - index=1, - containing_service=None, - input_type=_GETMONITOREDRESOURCEDESCRIPTORREQUEST, - output_type=google_dot_api_dot_monitored__resource__pb2._MONITOREDRESOURCEDESCRIPTOR, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0026\0224/v3/{name=projects/*/monitoredResourceDescriptors/*}')), - ), - _descriptor.MethodDescriptor( - name='ListMetricDescriptors', - full_name='google.monitoring.v3.MetricService.ListMetricDescriptors', - index=2, - containing_service=None, - input_type=_LISTMETRICDESCRIPTORSREQUEST, - output_type=_LISTMETRICDESCRIPTORSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002)\022\'/v3/{name=projects/*}/metricDescriptors')), - ), - _descriptor.MethodDescriptor( - name='GetMetricDescriptor', - full_name='google.monitoring.v3.MetricService.GetMetricDescriptor', - index=3, - containing_service=None, - input_type=_GETMETRICDESCRIPTORREQUEST, - output_type=google_dot_api_dot_metric__pb2._METRICDESCRIPTOR, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002,\022*/v3/{name=projects/*/metricDescriptors/**}')), - ), - _descriptor.MethodDescriptor( - name='CreateMetricDescriptor', - full_name='google.monitoring.v3.MetricService.CreateMetricDescriptor', - index=4, - containing_service=None, - input_type=_CREATEMETRICDESCRIPTORREQUEST, - output_type=google_dot_api_dot_metric__pb2._METRICDESCRIPTOR, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002<\"\'/v3/{name=projects/*}/metricDescriptors:\021metric_descriptor')), - ), - _descriptor.MethodDescriptor( - name='DeleteMetricDescriptor', - full_name='google.monitoring.v3.MetricService.DeleteMetricDescriptor', - index=5, - containing_service=None, - input_type=_DELETEMETRICDESCRIPTORREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002,**/v3/{name=projects/*/metricDescriptors/**}')), - ), - _descriptor.MethodDescriptor( - name='ListTimeSeries', - full_name='google.monitoring.v3.MetricService.ListTimeSeries', - index=6, - containing_service=None, - input_type=_LISTTIMESERIESREQUEST, - output_type=_LISTTIMESERIESRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\"\022 /v3/{name=projects/*}/timeSeries')), - ), - _descriptor.MethodDescriptor( - name='CreateTimeSeries', - full_name='google.monitoring.v3.MetricService.CreateTimeSeries', - index=7, - containing_service=None, - input_type=_CREATETIMESERIESREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002%\" /v3/{name=projects/*}/timeSeries:\001*')), - ), -]) + options=None, + serialized_start=1775, + serialized_end=3172, + methods=[ + _descriptor.MethodDescriptor( + name="ListMonitoredResourceDescriptors", + full_name="google.monitoring.v3.MetricService.ListMonitoredResourceDescriptors", + index=0, + containing_service=None, + input_type=_LISTMONITOREDRESOURCEDESCRIPTORSREQUEST, + output_type=_LISTMONITOREDRESOURCEDESCRIPTORSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0024\0222/v3/{name=projects/*}/monitoredResourceDescriptors" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetMonitoredResourceDescriptor", + full_name="google.monitoring.v3.MetricService.GetMonitoredResourceDescriptor", + index=1, + containing_service=None, + input_type=_GETMONITOREDRESOURCEDESCRIPTORREQUEST, + output_type=google_dot_api_dot_monitored__resource__pb2._MONITOREDRESOURCEDESCRIPTOR, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0026\0224/v3/{name=projects/*/monitoredResourceDescriptors/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListMetricDescriptors", + full_name="google.monitoring.v3.MetricService.ListMetricDescriptors", + index=2, + containing_service=None, + input_type=_LISTMETRICDESCRIPTORSREQUEST, + output_type=_LISTMETRICDESCRIPTORSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002)\022'/v3/{name=projects/*}/metricDescriptors"), + ), + ), + _descriptor.MethodDescriptor( + name="GetMetricDescriptor", + full_name="google.monitoring.v3.MetricService.GetMetricDescriptor", + index=3, + containing_service=None, + input_type=_GETMETRICDESCRIPTORREQUEST, + output_type=google_dot_api_dot_metric__pb2._METRICDESCRIPTOR, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002,\022*/v3/{name=projects/*/metricDescriptors/**}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateMetricDescriptor", + full_name="google.monitoring.v3.MetricService.CreateMetricDescriptor", + index=4, + containing_service=None, + input_type=_CREATEMETRICDESCRIPTORREQUEST, + output_type=google_dot_api_dot_metric__pb2._METRICDESCRIPTOR, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002<\"'/v3/{name=projects/*}/metricDescriptors:\021metric_descriptor" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteMetricDescriptor", + full_name="google.monitoring.v3.MetricService.DeleteMetricDescriptor", + index=5, + containing_service=None, + input_type=_DELETEMETRICDESCRIPTORREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002,**/v3/{name=projects/*/metricDescriptors/**}"), + ), + ), + _descriptor.MethodDescriptor( + name="ListTimeSeries", + full_name="google.monitoring.v3.MetricService.ListTimeSeries", + index=6, + containing_service=None, + input_type=_LISTTIMESERIESREQUEST, + output_type=_LISTTIMESERIESRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002"\022 /v3/{name=projects/*}/timeSeries'), + ), + ), + _descriptor.MethodDescriptor( + name="CreateTimeSeries", + full_name="google.monitoring.v3.MetricService.CreateTimeSeries", + index=7, + containing_service=None, + input_type=_CREATETIMESERIESREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b('\202\323\344\223\002%" /v3/{name=projects/*}/timeSeries:\001*'), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_METRICSERVICE) -DESCRIPTOR.services_by_name['MetricService'] = _METRICSERVICE +DESCRIPTOR.services_by_name["MetricService"] = _METRICSERVICE # @@protoc_insertion_point(module_scope) diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/metric_service_pb2_grpc.py b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/metric_service_pb2_grpc.py index e091978e4530..581a79532e7e 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/metric_service_pb2_grpc.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/metric_service_pb2_grpc.py @@ -2,175 +2,180 @@ import grpc from google.api import metric_pb2 as google_dot_api_dot_metric__pb2 -from google.api import monitored_resource_pb2 as google_dot_api_dot_monitored__resource__pb2 -from google.cloud.monitoring_v3.proto import metric_service_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2 +from google.api import ( + monitored_resource_pb2 as google_dot_api_dot_monitored__resource__pb2, +) +from google.cloud.monitoring_v3.proto import ( + metric_service_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class MetricServiceStub(object): - """Manages metric descriptors, monitored resource descriptors, and + """Manages metric descriptors, monitored resource descriptors, and time series data. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.ListMonitoredResourceDescriptors = channel.unary_unary( - '/google.monitoring.v3.MetricService/ListMonitoredResourceDescriptors', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMonitoredResourceDescriptorsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMonitoredResourceDescriptorsResponse.FromString, + self.ListMonitoredResourceDescriptors = channel.unary_unary( + "/google.monitoring.v3.MetricService/ListMonitoredResourceDescriptors", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMonitoredResourceDescriptorsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMonitoredResourceDescriptorsResponse.FromString, ) - self.GetMonitoredResourceDescriptor = channel.unary_unary( - '/google.monitoring.v3.MetricService/GetMonitoredResourceDescriptor', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.GetMonitoredResourceDescriptorRequest.SerializeToString, - response_deserializer=google_dot_api_dot_monitored__resource__pb2.MonitoredResourceDescriptor.FromString, + self.GetMonitoredResourceDescriptor = channel.unary_unary( + "/google.monitoring.v3.MetricService/GetMonitoredResourceDescriptor", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.GetMonitoredResourceDescriptorRequest.SerializeToString, + response_deserializer=google_dot_api_dot_monitored__resource__pb2.MonitoredResourceDescriptor.FromString, ) - self.ListMetricDescriptors = channel.unary_unary( - '/google.monitoring.v3.MetricService/ListMetricDescriptors', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMetricDescriptorsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMetricDescriptorsResponse.FromString, + self.ListMetricDescriptors = channel.unary_unary( + "/google.monitoring.v3.MetricService/ListMetricDescriptors", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMetricDescriptorsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMetricDescriptorsResponse.FromString, ) - self.GetMetricDescriptor = channel.unary_unary( - '/google.monitoring.v3.MetricService/GetMetricDescriptor', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.GetMetricDescriptorRequest.SerializeToString, - response_deserializer=google_dot_api_dot_metric__pb2.MetricDescriptor.FromString, + self.GetMetricDescriptor = channel.unary_unary( + "/google.monitoring.v3.MetricService/GetMetricDescriptor", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.GetMetricDescriptorRequest.SerializeToString, + response_deserializer=google_dot_api_dot_metric__pb2.MetricDescriptor.FromString, ) - self.CreateMetricDescriptor = channel.unary_unary( - '/google.monitoring.v3.MetricService/CreateMetricDescriptor', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.CreateMetricDescriptorRequest.SerializeToString, - response_deserializer=google_dot_api_dot_metric__pb2.MetricDescriptor.FromString, + self.CreateMetricDescriptor = channel.unary_unary( + "/google.monitoring.v3.MetricService/CreateMetricDescriptor", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.CreateMetricDescriptorRequest.SerializeToString, + response_deserializer=google_dot_api_dot_metric__pb2.MetricDescriptor.FromString, ) - self.DeleteMetricDescriptor = channel.unary_unary( - '/google.monitoring.v3.MetricService/DeleteMetricDescriptor', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.DeleteMetricDescriptorRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteMetricDescriptor = channel.unary_unary( + "/google.monitoring.v3.MetricService/DeleteMetricDescriptor", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.DeleteMetricDescriptorRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.ListTimeSeries = channel.unary_unary( - '/google.monitoring.v3.MetricService/ListTimeSeries', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListTimeSeriesRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListTimeSeriesResponse.FromString, + self.ListTimeSeries = channel.unary_unary( + "/google.monitoring.v3.MetricService/ListTimeSeries", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListTimeSeriesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListTimeSeriesResponse.FromString, ) - self.CreateTimeSeries = channel.unary_unary( - '/google.monitoring.v3.MetricService/CreateTimeSeries', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.CreateTimeSeriesRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.CreateTimeSeries = channel.unary_unary( + "/google.monitoring.v3.MetricService/CreateTimeSeries", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.CreateTimeSeriesRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) class MetricServiceServicer(object): - """Manages metric descriptors, monitored resource descriptors, and + """Manages metric descriptors, monitored resource descriptors, and time series data. """ - def ListMonitoredResourceDescriptors(self, request, context): - """Lists monitored resource descriptors that match a filter. This method does not require a Stackdriver account. + def ListMonitoredResourceDescriptors(self, request, context): + """Lists monitored resource descriptors that match a filter. This method does not require a Stackdriver account. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetMonitoredResourceDescriptor(self, request, context): - """Gets a single monitored resource descriptor. This method does not require a Stackdriver account. + def GetMonitoredResourceDescriptor(self, request, context): + """Gets a single monitored resource descriptor. This method does not require a Stackdriver account. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListMetricDescriptors(self, request, context): - """Lists metric descriptors that match a filter. This method does not require a Stackdriver account. + def ListMetricDescriptors(self, request, context): + """Lists metric descriptors that match a filter. This method does not require a Stackdriver account. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetMetricDescriptor(self, request, context): - """Gets a single metric descriptor. This method does not require a Stackdriver account. + def GetMetricDescriptor(self, request, context): + """Gets a single metric descriptor. This method does not require a Stackdriver account. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateMetricDescriptor(self, request, context): - """Creates a new metric descriptor. + def CreateMetricDescriptor(self, request, context): + """Creates a new metric descriptor. User-created metric descriptors define [custom metrics](/monitoring/custom-metrics). """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteMetricDescriptor(self, request, context): - """Deletes a metric descriptor. Only user-created + def DeleteMetricDescriptor(self, request, context): + """Deletes a metric descriptor. Only user-created [custom metrics](/monitoring/custom-metrics) can be deleted. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListTimeSeries(self, request, context): - """Lists time series that match a filter. This method does not require a Stackdriver account. + def ListTimeSeries(self, request, context): + """Lists time series that match a filter. This method does not require a Stackdriver account. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateTimeSeries(self, request, context): - """Creates or adds data to one or more time series. + def CreateTimeSeries(self, request, context): + """Creates or adds data to one or more time series. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_MetricServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ListMonitoredResourceDescriptors': grpc.unary_unary_rpc_method_handler( - servicer.ListMonitoredResourceDescriptors, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMonitoredResourceDescriptorsRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMonitoredResourceDescriptorsResponse.SerializeToString, - ), - 'GetMonitoredResourceDescriptor': grpc.unary_unary_rpc_method_handler( - servicer.GetMonitoredResourceDescriptor, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.GetMonitoredResourceDescriptorRequest.FromString, - response_serializer=google_dot_api_dot_monitored__resource__pb2.MonitoredResourceDescriptor.SerializeToString, - ), - 'ListMetricDescriptors': grpc.unary_unary_rpc_method_handler( - servicer.ListMetricDescriptors, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMetricDescriptorsRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMetricDescriptorsResponse.SerializeToString, - ), - 'GetMetricDescriptor': grpc.unary_unary_rpc_method_handler( - servicer.GetMetricDescriptor, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.GetMetricDescriptorRequest.FromString, - response_serializer=google_dot_api_dot_metric__pb2.MetricDescriptor.SerializeToString, - ), - 'CreateMetricDescriptor': grpc.unary_unary_rpc_method_handler( - servicer.CreateMetricDescriptor, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.CreateMetricDescriptorRequest.FromString, - response_serializer=google_dot_api_dot_metric__pb2.MetricDescriptor.SerializeToString, - ), - 'DeleteMetricDescriptor': grpc.unary_unary_rpc_method_handler( - servicer.DeleteMetricDescriptor, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.DeleteMetricDescriptorRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'ListTimeSeries': grpc.unary_unary_rpc_method_handler( - servicer.ListTimeSeries, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListTimeSeriesRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListTimeSeriesResponse.SerializeToString, - ), - 'CreateTimeSeries': grpc.unary_unary_rpc_method_handler( - servicer.CreateTimeSeries, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.CreateTimeSeriesRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.monitoring.v3.MetricService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "ListMonitoredResourceDescriptors": grpc.unary_unary_rpc_method_handler( + servicer.ListMonitoredResourceDescriptors, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMonitoredResourceDescriptorsRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMonitoredResourceDescriptorsResponse.SerializeToString, + ), + "GetMonitoredResourceDescriptor": grpc.unary_unary_rpc_method_handler( + servicer.GetMonitoredResourceDescriptor, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.GetMonitoredResourceDescriptorRequest.FromString, + response_serializer=google_dot_api_dot_monitored__resource__pb2.MonitoredResourceDescriptor.SerializeToString, + ), + "ListMetricDescriptors": grpc.unary_unary_rpc_method_handler( + servicer.ListMetricDescriptors, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMetricDescriptorsRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListMetricDescriptorsResponse.SerializeToString, + ), + "GetMetricDescriptor": grpc.unary_unary_rpc_method_handler( + servicer.GetMetricDescriptor, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.GetMetricDescriptorRequest.FromString, + response_serializer=google_dot_api_dot_metric__pb2.MetricDescriptor.SerializeToString, + ), + "CreateMetricDescriptor": grpc.unary_unary_rpc_method_handler( + servicer.CreateMetricDescriptor, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.CreateMetricDescriptorRequest.FromString, + response_serializer=google_dot_api_dot_metric__pb2.MetricDescriptor.SerializeToString, + ), + "DeleteMetricDescriptor": grpc.unary_unary_rpc_method_handler( + servicer.DeleteMetricDescriptor, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.DeleteMetricDescriptorRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "ListTimeSeries": grpc.unary_unary_rpc_method_handler( + servicer.ListTimeSeries, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListTimeSeriesRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.ListTimeSeriesResponse.SerializeToString, + ), + "CreateTimeSeries": grpc.unary_unary_rpc_method_handler( + servicer.CreateTimeSeries, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_metric__service__pb2.CreateTimeSeriesRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.monitoring.v3.MetricService", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/mutation_record_pb2.py b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/mutation_record_pb2.py index f2177878e1f7..bc30bf52c818 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/mutation_record_pb2.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/mutation_record_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/monitoring_v3/proto/mutation_record.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -17,62 +19,85 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/monitoring_v3/proto/mutation_record.proto', - package='google.monitoring.v3', - syntax='proto3', - serialized_pb=_b('\n6google/cloud/monitoring_v3/proto/mutation_record.proto\x12\x14google.monitoring.v3\x1a\x1fgoogle/protobuf/timestamp.proto\"U\n\x0eMutationRecord\x12/\n\x0bmutate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nmutated_by\x18\x02 \x01(\tB\xab\x01\n\x18\x63om.google.monitoring.v3B\x13MutationRecordProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3') - , - dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - - + name="google/cloud/monitoring_v3/proto/mutation_record.proto", + package="google.monitoring.v3", + syntax="proto3", + serialized_pb=_b( + '\n6google/cloud/monitoring_v3/proto/mutation_record.proto\x12\x14google.monitoring.v3\x1a\x1fgoogle/protobuf/timestamp.proto"U\n\x0eMutationRecord\x12/\n\x0bmutate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nmutated_by\x18\x02 \x01(\tB\xab\x01\n\x18\x63om.google.monitoring.v3B\x13MutationRecordProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3' + ), + dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR], +) _MUTATIONRECORD = _descriptor.Descriptor( - name='MutationRecord', - full_name='google.monitoring.v3.MutationRecord', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='mutate_time', full_name='google.monitoring.v3.MutationRecord.mutate_time', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mutated_by', full_name='google.monitoring.v3.MutationRecord.mutated_by', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=113, - serialized_end=198, + name="MutationRecord", + full_name="google.monitoring.v3.MutationRecord", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="mutate_time", + full_name="google.monitoring.v3.MutationRecord.mutate_time", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="mutated_by", + full_name="google.monitoring.v3.MutationRecord.mutated_by", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=113, + serialized_end=198, ) -_MUTATIONRECORD.fields_by_name['mutate_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -DESCRIPTOR.message_types_by_name['MutationRecord'] = _MUTATIONRECORD +_MUTATIONRECORD.fields_by_name[ + "mutate_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +DESCRIPTOR.message_types_by_name["MutationRecord"] = _MUTATIONRECORD _sym_db.RegisterFileDescriptor(DESCRIPTOR) -MutationRecord = _reflection.GeneratedProtocolMessageType('MutationRecord', (_message.Message,), dict( - DESCRIPTOR = _MUTATIONRECORD, - __module__ = 'google.cloud.monitoring_v3.proto.mutation_record_pb2' - , - __doc__ = """Describes a change made to a configuration. +MutationRecord = _reflection.GeneratedProtocolMessageType( + "MutationRecord", + (_message.Message,), + dict( + DESCRIPTOR=_MUTATIONRECORD, + __module__="google.cloud.monitoring_v3.proto.mutation_record_pb2", + __doc__="""Describes a change made to a configuration. Attributes: @@ -81,11 +106,17 @@ mutated_by: The email address of the user making the change. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.MutationRecord) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.MutationRecord) + ), +) _sym_db.RegisterMessage(MutationRecord) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\030com.google.monitoring.v3B\023MutationRecordProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\030com.google.monitoring.v3B\023MutationRecordProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/mutation_record_pb2_grpc.py b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/mutation_record_pb2_grpc.py index a89435267cb2..07cb78fe03a9 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/mutation_record_pb2_grpc.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/mutation_record_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/notification_pb2.py b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/notification_pb2.py index 4ca0969c19f5..708f92ce1851 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/notification_pb2.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/notification_pb2.py @@ -2,12 +2,14 @@ # source: google/cloud/monitoring_v3/proto/notification.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -15,285 +17,500 @@ from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 from google.api import label_pb2 as google_dot_api_dot_label__pb2 -from google.cloud.monitoring_v3.proto import common_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2 +from google.cloud.monitoring_v3.proto import ( + common_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2, +) from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/monitoring_v3/proto/notification.proto', - package='google.monitoring.v3', - syntax='proto3', - serialized_pb=_b('\n3google/cloud/monitoring_v3/proto/notification.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x16google/api/label.proto\x1a-google/cloud/monitoring_v3/proto/common.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xd3\x01\n\x1dNotificationChannelDescriptor\x12\x0c\n\x04name\x18\x06 \x01(\t\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12+\n\x06labels\x18\x04 \x03(\x0b\x32\x1b.google.api.LabelDescriptor\x12>\n\x0fsupported_tiers\x18\x05 \x03(\x0e\x32!.google.monitoring.v3.ServiceTierB\x02\x18\x01\"\xb6\x04\n\x13NotificationChannel\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x06 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x45\n\x06labels\x18\x05 \x03(\x0b\x32\x35.google.monitoring.v3.NotificationChannel.LabelsEntry\x12N\n\x0buser_labels\x18\x08 \x03(\x0b\x32\x39.google.monitoring.v3.NotificationChannel.UserLabelsEntry\x12Y\n\x13verification_status\x18\t \x01(\x0e\x32<.google.monitoring.v3.NotificationChannel.VerificationStatus\x12+\n\x07\x65nabled\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"W\n\x12VerificationStatus\x12#\n\x1fVERIFICATION_STATUS_UNSPECIFIED\x10\x00\x12\x0e\n\nUNVERIFIED\x10\x01\x12\x0c\n\x08VERIFIED\x10\x02\x42\xa9\x01\n\x18\x63om.google.monitoring.v3B\x11NotificationProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_label__pb2.DESCRIPTOR,google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) - + name="google/cloud/monitoring_v3/proto/notification.proto", + package="google.monitoring.v3", + syntax="proto3", + serialized_pb=_b( + '\n3google/cloud/monitoring_v3/proto/notification.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x16google/api/label.proto\x1a-google/cloud/monitoring_v3/proto/common.proto\x1a\x1egoogle/protobuf/wrappers.proto"\xd3\x01\n\x1dNotificationChannelDescriptor\x12\x0c\n\x04name\x18\x06 \x01(\t\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12+\n\x06labels\x18\x04 \x03(\x0b\x32\x1b.google.api.LabelDescriptor\x12>\n\x0fsupported_tiers\x18\x05 \x03(\x0e\x32!.google.monitoring.v3.ServiceTierB\x02\x18\x01"\xb6\x04\n\x13NotificationChannel\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x06 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x45\n\x06labels\x18\x05 \x03(\x0b\x32\x35.google.monitoring.v3.NotificationChannel.LabelsEntry\x12N\n\x0buser_labels\x18\x08 \x03(\x0b\x32\x39.google.monitoring.v3.NotificationChannel.UserLabelsEntry\x12Y\n\x13verification_status\x18\t \x01(\x0e\x32<.google.monitoring.v3.NotificationChannel.VerificationStatus\x12+\n\x07\x65nabled\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"W\n\x12VerificationStatus\x12#\n\x1fVERIFICATION_STATUS_UNSPECIFIED\x10\x00\x12\x0e\n\nUNVERIFIED\x10\x01\x12\x0c\n\x08VERIFIED\x10\x02\x42\xa9\x01\n\x18\x63om.google.monitoring.v3B\x11NotificationProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_api_dot_label__pb2.DESCRIPTOR, + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2.DESCRIPTOR, + google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR, + ], +) _NOTIFICATIONCHANNEL_VERIFICATIONSTATUS = _descriptor.EnumDescriptor( - name='VerificationStatus', - full_name='google.monitoring.v3.NotificationChannel.VerificationStatus', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='VERIFICATION_STATUS_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNVERIFIED', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VERIFIED', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=904, - serialized_end=991, + name="VerificationStatus", + full_name="google.monitoring.v3.NotificationChannel.VerificationStatus", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="VERIFICATION_STATUS_UNSPECIFIED", + index=0, + number=0, + options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="UNVERIFIED", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="VERIFIED", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=904, + serialized_end=991, ) _sym_db.RegisterEnumDescriptor(_NOTIFICATIONCHANNEL_VERIFICATIONSTATUS) _NOTIFICATIONCHANNELDESCRIPTOR = _descriptor.Descriptor( - name='NotificationChannelDescriptor', - full_name='google.monitoring.v3.NotificationChannelDescriptor', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.NotificationChannelDescriptor.name', index=0, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.monitoring.v3.NotificationChannelDescriptor.type', index=1, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.monitoring.v3.NotificationChannelDescriptor.display_name', index=2, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.monitoring.v3.NotificationChannelDescriptor.description', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='labels', full_name='google.monitoring.v3.NotificationChannelDescriptor.labels', index=4, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='supported_tiers', full_name='google.monitoring.v3.NotificationChannelDescriptor.supported_tiers', index=5, - number=5, type=14, cpp_type=8, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001')), file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=211, - serialized_end=422, + name="NotificationChannelDescriptor", + full_name="google.monitoring.v3.NotificationChannelDescriptor", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.NotificationChannelDescriptor.name", + index=0, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="type", + full_name="google.monitoring.v3.NotificationChannelDescriptor.type", + index=1, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.monitoring.v3.NotificationChannelDescriptor.display_name", + index=2, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.monitoring.v3.NotificationChannelDescriptor.description", + index=3, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="labels", + full_name="google.monitoring.v3.NotificationChannelDescriptor.labels", + index=4, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="supported_tiers", + full_name="google.monitoring.v3.NotificationChannelDescriptor.supported_tiers", + index=5, + number=5, + type=14, + cpp_type=8, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=_descriptor._ParseOptions( + descriptor_pb2.FieldOptions(), _b("\030\001") + ), + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=211, + serialized_end=422, ) _NOTIFICATIONCHANNEL_LABELSENTRY = _descriptor.Descriptor( - name='LabelsEntry', - full_name='google.monitoring.v3.NotificationChannel.LabelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.monitoring.v3.NotificationChannel.LabelsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.monitoring.v3.NotificationChannel.LabelsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=806, - serialized_end=851, + name="LabelsEntry", + full_name="google.monitoring.v3.NotificationChannel.LabelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.monitoring.v3.NotificationChannel.LabelsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.monitoring.v3.NotificationChannel.LabelsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=806, + serialized_end=851, ) _NOTIFICATIONCHANNEL_USERLABELSENTRY = _descriptor.Descriptor( - name='UserLabelsEntry', - full_name='google.monitoring.v3.NotificationChannel.UserLabelsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.monitoring.v3.NotificationChannel.UserLabelsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.monitoring.v3.NotificationChannel.UserLabelsEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=853, - serialized_end=902, + name="UserLabelsEntry", + full_name="google.monitoring.v3.NotificationChannel.UserLabelsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.monitoring.v3.NotificationChannel.UserLabelsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.monitoring.v3.NotificationChannel.UserLabelsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=853, + serialized_end=902, ) _NOTIFICATIONCHANNEL = _descriptor.Descriptor( - name='NotificationChannel', - full_name='google.monitoring.v3.NotificationChannel', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='type', full_name='google.monitoring.v3.NotificationChannel.type', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.NotificationChannel.name', index=1, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.monitoring.v3.NotificationChannel.display_name', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.monitoring.v3.NotificationChannel.description', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='labels', full_name='google.monitoring.v3.NotificationChannel.labels', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='user_labels', full_name='google.monitoring.v3.NotificationChannel.user_labels', index=5, - number=8, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='verification_status', full_name='google.monitoring.v3.NotificationChannel.verification_status', index=6, - number=9, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='enabled', full_name='google.monitoring.v3.NotificationChannel.enabled', index=7, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_NOTIFICATIONCHANNEL_LABELSENTRY, _NOTIFICATIONCHANNEL_USERLABELSENTRY, ], - enum_types=[ - _NOTIFICATIONCHANNEL_VERIFICATIONSTATUS, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=425, - serialized_end=991, + name="NotificationChannel", + full_name="google.monitoring.v3.NotificationChannel", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="type", + full_name="google.monitoring.v3.NotificationChannel.type", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.NotificationChannel.name", + index=1, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.monitoring.v3.NotificationChannel.display_name", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="description", + full_name="google.monitoring.v3.NotificationChannel.description", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="labels", + full_name="google.monitoring.v3.NotificationChannel.labels", + index=4, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="user_labels", + full_name="google.monitoring.v3.NotificationChannel.user_labels", + index=5, + number=8, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="verification_status", + full_name="google.monitoring.v3.NotificationChannel.verification_status", + index=6, + number=9, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="enabled", + full_name="google.monitoring.v3.NotificationChannel.enabled", + index=7, + number=11, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _NOTIFICATIONCHANNEL_LABELSENTRY, + _NOTIFICATIONCHANNEL_USERLABELSENTRY, + ], + enum_types=[_NOTIFICATIONCHANNEL_VERIFICATIONSTATUS], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=425, + serialized_end=991, ) -_NOTIFICATIONCHANNELDESCRIPTOR.fields_by_name['labels'].message_type = google_dot_api_dot_label__pb2._LABELDESCRIPTOR -_NOTIFICATIONCHANNELDESCRIPTOR.fields_by_name['supported_tiers'].enum_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._SERVICETIER +_NOTIFICATIONCHANNELDESCRIPTOR.fields_by_name[ + "labels" +].message_type = google_dot_api_dot_label__pb2._LABELDESCRIPTOR +_NOTIFICATIONCHANNELDESCRIPTOR.fields_by_name[ + "supported_tiers" +].enum_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_common__pb2._SERVICETIER _NOTIFICATIONCHANNEL_LABELSENTRY.containing_type = _NOTIFICATIONCHANNEL _NOTIFICATIONCHANNEL_USERLABELSENTRY.containing_type = _NOTIFICATIONCHANNEL -_NOTIFICATIONCHANNEL.fields_by_name['labels'].message_type = _NOTIFICATIONCHANNEL_LABELSENTRY -_NOTIFICATIONCHANNEL.fields_by_name['user_labels'].message_type = _NOTIFICATIONCHANNEL_USERLABELSENTRY -_NOTIFICATIONCHANNEL.fields_by_name['verification_status'].enum_type = _NOTIFICATIONCHANNEL_VERIFICATIONSTATUS -_NOTIFICATIONCHANNEL.fields_by_name['enabled'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_NOTIFICATIONCHANNEL.fields_by_name[ + "labels" +].message_type = _NOTIFICATIONCHANNEL_LABELSENTRY +_NOTIFICATIONCHANNEL.fields_by_name[ + "user_labels" +].message_type = _NOTIFICATIONCHANNEL_USERLABELSENTRY +_NOTIFICATIONCHANNEL.fields_by_name[ + "verification_status" +].enum_type = _NOTIFICATIONCHANNEL_VERIFICATIONSTATUS +_NOTIFICATIONCHANNEL.fields_by_name[ + "enabled" +].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE _NOTIFICATIONCHANNEL_VERIFICATIONSTATUS.containing_type = _NOTIFICATIONCHANNEL -DESCRIPTOR.message_types_by_name['NotificationChannelDescriptor'] = _NOTIFICATIONCHANNELDESCRIPTOR -DESCRIPTOR.message_types_by_name['NotificationChannel'] = _NOTIFICATIONCHANNEL +DESCRIPTOR.message_types_by_name[ + "NotificationChannelDescriptor" +] = _NOTIFICATIONCHANNELDESCRIPTOR +DESCRIPTOR.message_types_by_name["NotificationChannel"] = _NOTIFICATIONCHANNEL _sym_db.RegisterFileDescriptor(DESCRIPTOR) -NotificationChannelDescriptor = _reflection.GeneratedProtocolMessageType('NotificationChannelDescriptor', (_message.Message,), dict( - DESCRIPTOR = _NOTIFICATIONCHANNELDESCRIPTOR, - __module__ = 'google.cloud.monitoring_v3.proto.notification_pb2' - , - __doc__ = """A description of a notification channel. The descriptor includes the +NotificationChannelDescriptor = _reflection.GeneratedProtocolMessageType( + "NotificationChannelDescriptor", + (_message.Message,), + dict( + DESCRIPTOR=_NOTIFICATIONCHANNELDESCRIPTOR, + __module__="google.cloud.monitoring_v3.proto.notification_pb2", + __doc__="""A description of a notification channel. The descriptor includes the properties of the channel and the set of labels or fields that must be specified to configure channels of a given type. @@ -322,29 +539,36 @@ The tiers that support this notification channel; the project service tier must be one of the supported\_tiers. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.NotificationChannelDescriptor) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.NotificationChannelDescriptor) + ), +) _sym_db.RegisterMessage(NotificationChannelDescriptor) -NotificationChannel = _reflection.GeneratedProtocolMessageType('NotificationChannel', (_message.Message,), dict( - - LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _NOTIFICATIONCHANNEL_LABELSENTRY, - __module__ = 'google.cloud.monitoring_v3.proto.notification_pb2' - # @@protoc_insertion_point(class_scope:google.monitoring.v3.NotificationChannel.LabelsEntry) - )) - , - - UserLabelsEntry = _reflection.GeneratedProtocolMessageType('UserLabelsEntry', (_message.Message,), dict( - DESCRIPTOR = _NOTIFICATIONCHANNEL_USERLABELSENTRY, - __module__ = 'google.cloud.monitoring_v3.proto.notification_pb2' - # @@protoc_insertion_point(class_scope:google.monitoring.v3.NotificationChannel.UserLabelsEntry) - )) - , - DESCRIPTOR = _NOTIFICATIONCHANNEL, - __module__ = 'google.cloud.monitoring_v3.proto.notification_pb2' - , - __doc__ = """A ``NotificationChannel`` is a medium through which an alert is +NotificationChannel = _reflection.GeneratedProtocolMessageType( + "NotificationChannel", + (_message.Message,), + dict( + LabelsEntry=_reflection.GeneratedProtocolMessageType( + "LabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_NOTIFICATIONCHANNEL_LABELSENTRY, + __module__="google.cloud.monitoring_v3.proto.notification_pb2" + # @@protoc_insertion_point(class_scope:google.monitoring.v3.NotificationChannel.LabelsEntry) + ), + ), + UserLabelsEntry=_reflection.GeneratedProtocolMessageType( + "UserLabelsEntry", + (_message.Message,), + dict( + DESCRIPTOR=_NOTIFICATIONCHANNEL_USERLABELSENTRY, + __module__="google.cloud.monitoring_v3.proto.notification_pb2" + # @@protoc_insertion_point(class_scope:google.monitoring.v3.NotificationChannel.UserLabelsEntry) + ), + ), + DESCRIPTOR=_NOTIFICATIONCHANNEL, + __module__="google.cloud.monitoring_v3.proto.notification_pb2", + __doc__="""A ``NotificationChannel`` is a medium through which an alert is delivered when a policy violation is detected. Examples of channels include email, SMS, and third-party messaging applications. Fields containing sensitive information like authentication tokens or contact @@ -419,19 +643,31 @@ to receive notifications from the same set of alerting policies on the channel at some point in the future. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.NotificationChannel) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.NotificationChannel) + ), +) _sym_db.RegisterMessage(NotificationChannel) _sym_db.RegisterMessage(NotificationChannel.LabelsEntry) _sym_db.RegisterMessage(NotificationChannel.UserLabelsEntry) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\030com.google.monitoring.v3B\021NotificationProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3')) -_NOTIFICATIONCHANNELDESCRIPTOR.fields_by_name['supported_tiers'].has_options = True -_NOTIFICATIONCHANNELDESCRIPTOR.fields_by_name['supported_tiers']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\030com.google.monitoring.v3B\021NotificationProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3" + ), +) +_NOTIFICATIONCHANNELDESCRIPTOR.fields_by_name["supported_tiers"].has_options = True +_NOTIFICATIONCHANNELDESCRIPTOR.fields_by_name[ + "supported_tiers" +]._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b("\030\001")) _NOTIFICATIONCHANNEL_LABELSENTRY.has_options = True -_NOTIFICATIONCHANNEL_LABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_NOTIFICATIONCHANNEL_LABELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) _NOTIFICATIONCHANNEL_USERLABELSENTRY.has_options = True -_NOTIFICATIONCHANNEL_USERLABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_NOTIFICATIONCHANNEL_USERLABELSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) # @@protoc_insertion_point(module_scope) diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/notification_pb2_grpc.py b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/notification_pb2_grpc.py index a89435267cb2..07cb78fe03a9 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/notification_pb2_grpc.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/notification_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/notification_service_pb2.py b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/notification_service_pb2.py index b93742adbbd6..482d08ad9154 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/notification_service_pb2.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/notification_service_pb2.py @@ -2,19 +2,23 @@ # source: google/cloud/monitoring_v3/proto/notification_service.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.monitoring_v3.proto import notification_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2 +from google.cloud.monitoring_v3.proto import ( + notification_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 @@ -22,543 +26,858 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/monitoring_v3/proto/notification_service.proto', - package='google.monitoring.v3', - syntax='proto3', - serialized_pb=_b('\n;google/cloud/monitoring_v3/proto/notification_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x33google/cloud/monitoring_v3/proto/notification.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"`\n)ListNotificationChannelDescriptorsRequest\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x97\x01\n*ListNotificationChannelDescriptorsResponse\x12P\n\x13\x63hannel_descriptors\x18\x01 \x03(\x0b\x32\x33.google.monitoring.v3.NotificationChannelDescriptor\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"7\n\'GetNotificationChannelDescriptorRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\"y\n CreateNotificationChannelRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\x12G\n\x14notification_channel\x18\x02 \x01(\x0b\x32).google.monitoring.v3.NotificationChannel\"x\n\x1fListNotificationChannelsRequest\x12\x0c\n\x04name\x18\x05 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x06 \x01(\t\x12\x10\n\x08order_by\x18\x07 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"\x85\x01\n ListNotificationChannelsResponse\x12H\n\x15notification_channels\x18\x03 \x03(\x0b\x32).google.monitoring.v3.NotificationChannel\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"-\n\x1dGetNotificationChannelRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\"\x9c\x01\n UpdateNotificationChannelRequest\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12G\n\x14notification_channel\x18\x03 \x01(\x0b\x32).google.monitoring.v3.NotificationChannel\"?\n DeleteNotificationChannelRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\r\n\x05\x66orce\x18\x05 \x01(\x08\">\n.SendNotificationChannelVerificationCodeRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"n\n-GetNotificationChannelVerificationCodeRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x0b\x65xpire_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"o\n.GetNotificationChannelVerificationCodeResponse\x12\x0c\n\x04\x63ode\x18\x01 \x01(\t\x12/\n\x0b\x65xpire_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\">\n VerifyNotificationChannelRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x63ode\x18\x02 \x01(\t2\xbb\x10\n\x1aNotificationChannelService\x12\xe5\x01\n\"ListNotificationChannelDescriptors\x12?.google.monitoring.v3.ListNotificationChannelDescriptorsRequest\x1a@.google.monitoring.v3.ListNotificationChannelDescriptorsResponse\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/v3/{name=projects/*}/notificationChannelDescriptors\x12\xd6\x01\n GetNotificationChannelDescriptor\x12=.google.monitoring.v3.GetNotificationChannelDescriptorRequest\x1a\x33.google.monitoring.v3.NotificationChannelDescriptor\">\x82\xd3\xe4\x93\x02\x38\x12\x36/v3/{name=projects/*/notificationChannelDescriptors/*}\x12\xbd\x01\n\x18ListNotificationChannels\x12\x35.google.monitoring.v3.ListNotificationChannelsRequest\x1a\x36.google.monitoring.v3.ListNotificationChannelsResponse\"2\x82\xd3\xe4\x93\x02,\x12*/v3/{name=projects/*}/notificationChannels\x12\xae\x01\n\x16GetNotificationChannel\x12\x33.google.monitoring.v3.GetNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel\"4\x82\xd3\xe4\x93\x02.\x12,/v3/{name=projects/*/notificationChannels/*}\x12\xc8\x01\n\x19\x43reateNotificationChannel\x12\x36.google.monitoring.v3.CreateNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel\"H\x82\xd3\xe4\x93\x02\x42\"*/v3/{name=projects/*}/notificationChannels:\x14notification_channel\x12\xdf\x01\n\x19UpdateNotificationChannel\x12\x36.google.monitoring.v3.UpdateNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel\"_\x82\xd3\xe4\x93\x02Y2A/v3/{notification_channel.name=projects/*/notificationChannels/*}:\x14notification_channel\x12\xa1\x01\n\x19\x44\x65leteNotificationChannel\x12\x36.google.monitoring.v3.DeleteNotificationChannelRequest\x1a\x16.google.protobuf.Empty\"4\x82\xd3\xe4\x93\x02.*,/v3/{name=projects/*/notificationChannels/*}\x12\xd5\x01\n\'SendNotificationChannelVerificationCode\x12\x44.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest\x1a\x16.google.protobuf.Empty\"L\x82\xd3\xe4\x93\x02\x46\"A/v3/{name=projects/*/notificationChannels/*}:sendVerificationCode:\x01*\x12\x80\x02\n&GetNotificationChannelVerificationCode\x12\x43.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest\x1a\x44.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse\"K\x82\xd3\xe4\x93\x02\x45\"@/v3/{name=projects/*/notificationChannels/*}:getVerificationCode:\x01*\x12\xbe\x01\n\x19VerifyNotificationChannel\x12\x36.google.monitoring.v3.VerifyNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel\">\x82\xd3\xe4\x93\x02\x38\"3/v3/{name=projects/*/notificationChannels/*}:verify:\x01*B\xb0\x01\n\x18\x63om.google.monitoring.v3B\x18NotificationServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - - + name="google/cloud/monitoring_v3/proto/notification_service.proto", + package="google.monitoring.v3", + syntax="proto3", + serialized_pb=_b( + '\n;google/cloud/monitoring_v3/proto/notification_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x33google/cloud/monitoring_v3/proto/notification.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto"`\n)ListNotificationChannelDescriptorsRequest\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"\x97\x01\n*ListNotificationChannelDescriptorsResponse\x12P\n\x13\x63hannel_descriptors\x18\x01 \x03(\x0b\x32\x33.google.monitoring.v3.NotificationChannelDescriptor\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"7\n\'GetNotificationChannelDescriptorRequest\x12\x0c\n\x04name\x18\x03 \x01(\t"y\n CreateNotificationChannelRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\x12G\n\x14notification_channel\x18\x02 \x01(\x0b\x32).google.monitoring.v3.NotificationChannel"x\n\x1fListNotificationChannelsRequest\x12\x0c\n\x04name\x18\x05 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x06 \x01(\t\x12\x10\n\x08order_by\x18\x07 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t"\x85\x01\n ListNotificationChannelsResponse\x12H\n\x15notification_channels\x18\x03 \x03(\x0b\x32).google.monitoring.v3.NotificationChannel\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"-\n\x1dGetNotificationChannelRequest\x12\x0c\n\x04name\x18\x03 \x01(\t"\x9c\x01\n UpdateNotificationChannelRequest\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12G\n\x14notification_channel\x18\x03 \x01(\x0b\x32).google.monitoring.v3.NotificationChannel"?\n DeleteNotificationChannelRequest\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\r\n\x05\x66orce\x18\x05 \x01(\x08">\n.SendNotificationChannelVerificationCodeRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"n\n-GetNotificationChannelVerificationCodeRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x0b\x65xpire_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"o\n.GetNotificationChannelVerificationCodeResponse\x12\x0c\n\x04\x63ode\x18\x01 \x01(\t\x12/\n\x0b\x65xpire_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp">\n VerifyNotificationChannelRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x63ode\x18\x02 \x01(\t2\xbb\x10\n\x1aNotificationChannelService\x12\xe5\x01\n"ListNotificationChannelDescriptors\x12?.google.monitoring.v3.ListNotificationChannelDescriptorsRequest\x1a@.google.monitoring.v3.ListNotificationChannelDescriptorsResponse"<\x82\xd3\xe4\x93\x02\x36\x12\x34/v3/{name=projects/*}/notificationChannelDescriptors\x12\xd6\x01\n GetNotificationChannelDescriptor\x12=.google.monitoring.v3.GetNotificationChannelDescriptorRequest\x1a\x33.google.monitoring.v3.NotificationChannelDescriptor">\x82\xd3\xe4\x93\x02\x38\x12\x36/v3/{name=projects/*/notificationChannelDescriptors/*}\x12\xbd\x01\n\x18ListNotificationChannels\x12\x35.google.monitoring.v3.ListNotificationChannelsRequest\x1a\x36.google.monitoring.v3.ListNotificationChannelsResponse"2\x82\xd3\xe4\x93\x02,\x12*/v3/{name=projects/*}/notificationChannels\x12\xae\x01\n\x16GetNotificationChannel\x12\x33.google.monitoring.v3.GetNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel"4\x82\xd3\xe4\x93\x02.\x12,/v3/{name=projects/*/notificationChannels/*}\x12\xc8\x01\n\x19\x43reateNotificationChannel\x12\x36.google.monitoring.v3.CreateNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel"H\x82\xd3\xe4\x93\x02\x42"*/v3/{name=projects/*}/notificationChannels:\x14notification_channel\x12\xdf\x01\n\x19UpdateNotificationChannel\x12\x36.google.monitoring.v3.UpdateNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel"_\x82\xd3\xe4\x93\x02Y2A/v3/{notification_channel.name=projects/*/notificationChannels/*}:\x14notification_channel\x12\xa1\x01\n\x19\x44\x65leteNotificationChannel\x12\x36.google.monitoring.v3.DeleteNotificationChannelRequest\x1a\x16.google.protobuf.Empty"4\x82\xd3\xe4\x93\x02.*,/v3/{name=projects/*/notificationChannels/*}\x12\xd5\x01\n\'SendNotificationChannelVerificationCode\x12\x44.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest\x1a\x16.google.protobuf.Empty"L\x82\xd3\xe4\x93\x02\x46"A/v3/{name=projects/*/notificationChannels/*}:sendVerificationCode:\x01*\x12\x80\x02\n&GetNotificationChannelVerificationCode\x12\x43.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest\x1a\x44.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse"K\x82\xd3\xe4\x93\x02\x45"@/v3/{name=projects/*/notificationChannels/*}:getVerificationCode:\x01*\x12\xbe\x01\n\x19VerifyNotificationChannel\x12\x36.google.monitoring.v3.VerifyNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel">\x82\xd3\xe4\x93\x02\x38"3/v3/{name=projects/*/notificationChannels/*}:verify:\x01*B\xb0\x01\n\x18\x63om.google.monitoring.v3B\x18NotificationServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, + google_dot_protobuf_dot_struct__pb2.DESCRIPTOR, + google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, + ], +) _LISTNOTIFICATIONCHANNELDESCRIPTORSREQUEST = _descriptor.Descriptor( - name='ListNotificationChannelDescriptorsRequest', - full_name='google.monitoring.v3.ListNotificationChannelDescriptorsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.ListNotificationChannelDescriptorsRequest.name', index=0, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.monitoring.v3.ListNotificationChannelDescriptorsRequest.page_size', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.monitoring.v3.ListNotificationChannelDescriptorsRequest.page_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=294, - serialized_end=390, + name="ListNotificationChannelDescriptorsRequest", + full_name="google.monitoring.v3.ListNotificationChannelDescriptorsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.ListNotificationChannelDescriptorsRequest.name", + index=0, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.monitoring.v3.ListNotificationChannelDescriptorsRequest.page_size", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.monitoring.v3.ListNotificationChannelDescriptorsRequest.page_token", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=294, + serialized_end=390, ) _LISTNOTIFICATIONCHANNELDESCRIPTORSRESPONSE = _descriptor.Descriptor( - name='ListNotificationChannelDescriptorsResponse', - full_name='google.monitoring.v3.ListNotificationChannelDescriptorsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='channel_descriptors', full_name='google.monitoring.v3.ListNotificationChannelDescriptorsResponse.channel_descriptors', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.monitoring.v3.ListNotificationChannelDescriptorsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=393, - serialized_end=544, + name="ListNotificationChannelDescriptorsResponse", + full_name="google.monitoring.v3.ListNotificationChannelDescriptorsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="channel_descriptors", + full_name="google.monitoring.v3.ListNotificationChannelDescriptorsResponse.channel_descriptors", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.monitoring.v3.ListNotificationChannelDescriptorsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=393, + serialized_end=544, ) _GETNOTIFICATIONCHANNELDESCRIPTORREQUEST = _descriptor.Descriptor( - name='GetNotificationChannelDescriptorRequest', - full_name='google.monitoring.v3.GetNotificationChannelDescriptorRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.GetNotificationChannelDescriptorRequest.name', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=546, - serialized_end=601, + name="GetNotificationChannelDescriptorRequest", + full_name="google.monitoring.v3.GetNotificationChannelDescriptorRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.GetNotificationChannelDescriptorRequest.name", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=546, + serialized_end=601, ) _CREATENOTIFICATIONCHANNELREQUEST = _descriptor.Descriptor( - name='CreateNotificationChannelRequest', - full_name='google.monitoring.v3.CreateNotificationChannelRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.CreateNotificationChannelRequest.name', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='notification_channel', full_name='google.monitoring.v3.CreateNotificationChannelRequest.notification_channel', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=603, - serialized_end=724, + name="CreateNotificationChannelRequest", + full_name="google.monitoring.v3.CreateNotificationChannelRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.CreateNotificationChannelRequest.name", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="notification_channel", + full_name="google.monitoring.v3.CreateNotificationChannelRequest.notification_channel", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=603, + serialized_end=724, ) _LISTNOTIFICATIONCHANNELSREQUEST = _descriptor.Descriptor( - name='ListNotificationChannelsRequest', - full_name='google.monitoring.v3.ListNotificationChannelsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.ListNotificationChannelsRequest.name', index=0, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filter', full_name='google.monitoring.v3.ListNotificationChannelsRequest.filter', index=1, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='order_by', full_name='google.monitoring.v3.ListNotificationChannelsRequest.order_by', index=2, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.monitoring.v3.ListNotificationChannelsRequest.page_size', index=3, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.monitoring.v3.ListNotificationChannelsRequest.page_token', index=4, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=726, - serialized_end=846, + name="ListNotificationChannelsRequest", + full_name="google.monitoring.v3.ListNotificationChannelsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.ListNotificationChannelsRequest.name", + index=0, + number=5, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="filter", + full_name="google.monitoring.v3.ListNotificationChannelsRequest.filter", + index=1, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="order_by", + full_name="google.monitoring.v3.ListNotificationChannelsRequest.order_by", + index=2, + number=7, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.monitoring.v3.ListNotificationChannelsRequest.page_size", + index=3, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.monitoring.v3.ListNotificationChannelsRequest.page_token", + index=4, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=726, + serialized_end=846, ) _LISTNOTIFICATIONCHANNELSRESPONSE = _descriptor.Descriptor( - name='ListNotificationChannelsResponse', - full_name='google.monitoring.v3.ListNotificationChannelsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='notification_channels', full_name='google.monitoring.v3.ListNotificationChannelsResponse.notification_channels', index=0, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.monitoring.v3.ListNotificationChannelsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=849, - serialized_end=982, + name="ListNotificationChannelsResponse", + full_name="google.monitoring.v3.ListNotificationChannelsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="notification_channels", + full_name="google.monitoring.v3.ListNotificationChannelsResponse.notification_channels", + index=0, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.monitoring.v3.ListNotificationChannelsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=849, + serialized_end=982, ) _GETNOTIFICATIONCHANNELREQUEST = _descriptor.Descriptor( - name='GetNotificationChannelRequest', - full_name='google.monitoring.v3.GetNotificationChannelRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.GetNotificationChannelRequest.name', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=984, - serialized_end=1029, + name="GetNotificationChannelRequest", + full_name="google.monitoring.v3.GetNotificationChannelRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.GetNotificationChannelRequest.name", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=984, + serialized_end=1029, ) _UPDATENOTIFICATIONCHANNELREQUEST = _descriptor.Descriptor( - name='UpdateNotificationChannelRequest', - full_name='google.monitoring.v3.UpdateNotificationChannelRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.monitoring.v3.UpdateNotificationChannelRequest.update_mask', index=0, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='notification_channel', full_name='google.monitoring.v3.UpdateNotificationChannelRequest.notification_channel', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1032, - serialized_end=1188, + name="UpdateNotificationChannelRequest", + full_name="google.monitoring.v3.UpdateNotificationChannelRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.monitoring.v3.UpdateNotificationChannelRequest.update_mask", + index=0, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="notification_channel", + full_name="google.monitoring.v3.UpdateNotificationChannelRequest.notification_channel", + index=1, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1032, + serialized_end=1188, ) _DELETENOTIFICATIONCHANNELREQUEST = _descriptor.Descriptor( - name='DeleteNotificationChannelRequest', - full_name='google.monitoring.v3.DeleteNotificationChannelRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.DeleteNotificationChannelRequest.name', index=0, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='force', full_name='google.monitoring.v3.DeleteNotificationChannelRequest.force', index=1, - number=5, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1190, - serialized_end=1253, + name="DeleteNotificationChannelRequest", + full_name="google.monitoring.v3.DeleteNotificationChannelRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.DeleteNotificationChannelRequest.name", + index=0, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="force", + full_name="google.monitoring.v3.DeleteNotificationChannelRequest.force", + index=1, + number=5, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1190, + serialized_end=1253, ) _SENDNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST = _descriptor.Descriptor( - name='SendNotificationChannelVerificationCodeRequest', - full_name='google.monitoring.v3.SendNotificationChannelVerificationCodeRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1255, - serialized_end=1317, + name="SendNotificationChannelVerificationCodeRequest", + full_name="google.monitoring.v3.SendNotificationChannelVerificationCodeRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.SendNotificationChannelVerificationCodeRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1255, + serialized_end=1317, ) _GETNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST = _descriptor.Descriptor( - name='GetNotificationChannelVerificationCodeRequest', - full_name='google.monitoring.v3.GetNotificationChannelVerificationCodeRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='expire_time', full_name='google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.expire_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1319, - serialized_end=1429, + name="GetNotificationChannelVerificationCodeRequest", + full_name="google.monitoring.v3.GetNotificationChannelVerificationCodeRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="expire_time", + full_name="google.monitoring.v3.GetNotificationChannelVerificationCodeRequest.expire_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1319, + serialized_end=1429, ) _GETNOTIFICATIONCHANNELVERIFICATIONCODERESPONSE = _descriptor.Descriptor( - name='GetNotificationChannelVerificationCodeResponse', - full_name='google.monitoring.v3.GetNotificationChannelVerificationCodeResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='code', full_name='google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.code', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='expire_time', full_name='google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.expire_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1431, - serialized_end=1542, + name="GetNotificationChannelVerificationCodeResponse", + full_name="google.monitoring.v3.GetNotificationChannelVerificationCodeResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="code", + full_name="google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.code", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="expire_time", + full_name="google.monitoring.v3.GetNotificationChannelVerificationCodeResponse.expire_time", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1431, + serialized_end=1542, ) _VERIFYNOTIFICATIONCHANNELREQUEST = _descriptor.Descriptor( - name='VerifyNotificationChannelRequest', - full_name='google.monitoring.v3.VerifyNotificationChannelRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.VerifyNotificationChannelRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='code', full_name='google.monitoring.v3.VerifyNotificationChannelRequest.code', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1544, - serialized_end=1606, -) - -_LISTNOTIFICATIONCHANNELDESCRIPTORSRESPONSE.fields_by_name['channel_descriptors'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNELDESCRIPTOR -_CREATENOTIFICATIONCHANNELREQUEST.fields_by_name['notification_channel'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL -_LISTNOTIFICATIONCHANNELSRESPONSE.fields_by_name['notification_channels'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL -_UPDATENOTIFICATIONCHANNELREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_UPDATENOTIFICATIONCHANNELREQUEST.fields_by_name['notification_channel'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL -_GETNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST.fields_by_name['expire_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_GETNOTIFICATIONCHANNELVERIFICATIONCODERESPONSE.fields_by_name['expire_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -DESCRIPTOR.message_types_by_name['ListNotificationChannelDescriptorsRequest'] = _LISTNOTIFICATIONCHANNELDESCRIPTORSREQUEST -DESCRIPTOR.message_types_by_name['ListNotificationChannelDescriptorsResponse'] = _LISTNOTIFICATIONCHANNELDESCRIPTORSRESPONSE -DESCRIPTOR.message_types_by_name['GetNotificationChannelDescriptorRequest'] = _GETNOTIFICATIONCHANNELDESCRIPTORREQUEST -DESCRIPTOR.message_types_by_name['CreateNotificationChannelRequest'] = _CREATENOTIFICATIONCHANNELREQUEST -DESCRIPTOR.message_types_by_name['ListNotificationChannelsRequest'] = _LISTNOTIFICATIONCHANNELSREQUEST -DESCRIPTOR.message_types_by_name['ListNotificationChannelsResponse'] = _LISTNOTIFICATIONCHANNELSRESPONSE -DESCRIPTOR.message_types_by_name['GetNotificationChannelRequest'] = _GETNOTIFICATIONCHANNELREQUEST -DESCRIPTOR.message_types_by_name['UpdateNotificationChannelRequest'] = _UPDATENOTIFICATIONCHANNELREQUEST -DESCRIPTOR.message_types_by_name['DeleteNotificationChannelRequest'] = _DELETENOTIFICATIONCHANNELREQUEST -DESCRIPTOR.message_types_by_name['SendNotificationChannelVerificationCodeRequest'] = _SENDNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST -DESCRIPTOR.message_types_by_name['GetNotificationChannelVerificationCodeRequest'] = _GETNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST -DESCRIPTOR.message_types_by_name['GetNotificationChannelVerificationCodeResponse'] = _GETNOTIFICATIONCHANNELVERIFICATIONCODERESPONSE -DESCRIPTOR.message_types_by_name['VerifyNotificationChannelRequest'] = _VERIFYNOTIFICATIONCHANNELREQUEST + name="VerifyNotificationChannelRequest", + full_name="google.monitoring.v3.VerifyNotificationChannelRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.VerifyNotificationChannelRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="code", + full_name="google.monitoring.v3.VerifyNotificationChannelRequest.code", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1544, + serialized_end=1606, +) + +_LISTNOTIFICATIONCHANNELDESCRIPTORSRESPONSE.fields_by_name[ + "channel_descriptors" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNELDESCRIPTOR +) +_CREATENOTIFICATIONCHANNELREQUEST.fields_by_name[ + "notification_channel" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL +) +_LISTNOTIFICATIONCHANNELSRESPONSE.fields_by_name[ + "notification_channels" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL +) +_UPDATENOTIFICATIONCHANNELREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_UPDATENOTIFICATIONCHANNELREQUEST.fields_by_name[ + "notification_channel" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL +) +_GETNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST.fields_by_name[ + "expire_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_GETNOTIFICATIONCHANNELVERIFICATIONCODERESPONSE.fields_by_name[ + "expire_time" +].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +DESCRIPTOR.message_types_by_name[ + "ListNotificationChannelDescriptorsRequest" +] = _LISTNOTIFICATIONCHANNELDESCRIPTORSREQUEST +DESCRIPTOR.message_types_by_name[ + "ListNotificationChannelDescriptorsResponse" +] = _LISTNOTIFICATIONCHANNELDESCRIPTORSRESPONSE +DESCRIPTOR.message_types_by_name[ + "GetNotificationChannelDescriptorRequest" +] = _GETNOTIFICATIONCHANNELDESCRIPTORREQUEST +DESCRIPTOR.message_types_by_name[ + "CreateNotificationChannelRequest" +] = _CREATENOTIFICATIONCHANNELREQUEST +DESCRIPTOR.message_types_by_name[ + "ListNotificationChannelsRequest" +] = _LISTNOTIFICATIONCHANNELSREQUEST +DESCRIPTOR.message_types_by_name[ + "ListNotificationChannelsResponse" +] = _LISTNOTIFICATIONCHANNELSRESPONSE +DESCRIPTOR.message_types_by_name[ + "GetNotificationChannelRequest" +] = _GETNOTIFICATIONCHANNELREQUEST +DESCRIPTOR.message_types_by_name[ + "UpdateNotificationChannelRequest" +] = _UPDATENOTIFICATIONCHANNELREQUEST +DESCRIPTOR.message_types_by_name[ + "DeleteNotificationChannelRequest" +] = _DELETENOTIFICATIONCHANNELREQUEST +DESCRIPTOR.message_types_by_name[ + "SendNotificationChannelVerificationCodeRequest" +] = _SENDNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST +DESCRIPTOR.message_types_by_name[ + "GetNotificationChannelVerificationCodeRequest" +] = _GETNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST +DESCRIPTOR.message_types_by_name[ + "GetNotificationChannelVerificationCodeResponse" +] = _GETNOTIFICATIONCHANNELVERIFICATIONCODERESPONSE +DESCRIPTOR.message_types_by_name[ + "VerifyNotificationChannelRequest" +] = _VERIFYNOTIFICATIONCHANNELREQUEST _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ListNotificationChannelDescriptorsRequest = _reflection.GeneratedProtocolMessageType('ListNotificationChannelDescriptorsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTNOTIFICATIONCHANNELDESCRIPTORSREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.notification_service_pb2' - , - __doc__ = """The ``ListNotificationChannelDescriptors`` request. +ListNotificationChannelDescriptorsRequest = _reflection.GeneratedProtocolMessageType( + "ListNotificationChannelDescriptorsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTNOTIFICATIONCHANNELDESCRIPTORSREQUEST, + __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", + __doc__="""The ``ListNotificationChannelDescriptors`` request. Attributes: @@ -579,15 +898,18 @@ the ``next_page_token`` in a previous response to request the next set of results. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListNotificationChannelDescriptorsRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListNotificationChannelDescriptorsRequest) + ), +) _sym_db.RegisterMessage(ListNotificationChannelDescriptorsRequest) -ListNotificationChannelDescriptorsResponse = _reflection.GeneratedProtocolMessageType('ListNotificationChannelDescriptorsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTNOTIFICATIONCHANNELDESCRIPTORSRESPONSE, - __module__ = 'google.cloud.monitoring_v3.proto.notification_service_pb2' - , - __doc__ = """The ``ListNotificationChannelDescriptors`` response. +ListNotificationChannelDescriptorsResponse = _reflection.GeneratedProtocolMessageType( + "ListNotificationChannelDescriptorsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTNOTIFICATIONCHANNELDESCRIPTORSRESPONSE, + __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", + __doc__="""The ``ListNotificationChannelDescriptors`` response. Attributes: @@ -600,15 +922,18 @@ in a subsequent request to fetch the next set of results. If empty, all results have been returned. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListNotificationChannelDescriptorsResponse) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListNotificationChannelDescriptorsResponse) + ), +) _sym_db.RegisterMessage(ListNotificationChannelDescriptorsResponse) -GetNotificationChannelDescriptorRequest = _reflection.GeneratedProtocolMessageType('GetNotificationChannelDescriptorRequest', (_message.Message,), dict( - DESCRIPTOR = _GETNOTIFICATIONCHANNELDESCRIPTORREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.notification_service_pb2' - , - __doc__ = """The ``GetNotificationChannelDescriptor`` response. +GetNotificationChannelDescriptorRequest = _reflection.GeneratedProtocolMessageType( + "GetNotificationChannelDescriptorRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETNOTIFICATIONCHANNELDESCRIPTORREQUEST, + __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", + __doc__="""The ``GetNotificationChannelDescriptor`` response. Attributes: @@ -617,15 +942,18 @@ is ``projects/[PROJECT_ID]/notificationChannelDescriptors/{cha nnel_type}``. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetNotificationChannelDescriptorRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetNotificationChannelDescriptorRequest) + ), +) _sym_db.RegisterMessage(GetNotificationChannelDescriptorRequest) -CreateNotificationChannelRequest = _reflection.GeneratedProtocolMessageType('CreateNotificationChannelRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATENOTIFICATIONCHANNELREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.notification_service_pb2' - , - __doc__ = """The ``CreateNotificationChannel`` request. +CreateNotificationChannelRequest = _reflection.GeneratedProtocolMessageType( + "CreateNotificationChannelRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATENOTIFICATIONCHANNELREQUEST, + __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", + __doc__="""The ``CreateNotificationChannel`` request. Attributes: @@ -640,15 +968,18 @@ notification_channel: The definition of the ``NotificationChannel`` to create. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateNotificationChannelRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateNotificationChannelRequest) + ), +) _sym_db.RegisterMessage(CreateNotificationChannelRequest) -ListNotificationChannelsRequest = _reflection.GeneratedProtocolMessageType('ListNotificationChannelsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTNOTIFICATIONCHANNELSREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.notification_service_pb2' - , - __doc__ = """The ``ListNotificationChannels`` request. +ListNotificationChannelsRequest = _reflection.GeneratedProtocolMessageType( + "ListNotificationChannelsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTNOTIFICATIONCHANNELSREQUEST, + __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", + __doc__="""The ``ListNotificationChannels`` request. Attributes: @@ -680,15 +1011,18 @@ the ``next_page_token`` in a previous response to request the next set of results. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListNotificationChannelsRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListNotificationChannelsRequest) + ), +) _sym_db.RegisterMessage(ListNotificationChannelsRequest) -ListNotificationChannelsResponse = _reflection.GeneratedProtocolMessageType('ListNotificationChannelsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTNOTIFICATIONCHANNELSRESPONSE, - __module__ = 'google.cloud.monitoring_v3.proto.notification_service_pb2' - , - __doc__ = """The ``ListNotificationChannels`` response. +ListNotificationChannelsResponse = _reflection.GeneratedProtocolMessageType( + "ListNotificationChannelsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTNOTIFICATIONCHANNELSRESPONSE, + __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", + __doc__="""The ``ListNotificationChannels`` response. Attributes: @@ -700,15 +1034,18 @@ in a subsequent request to fetch the next set of results. If empty, all results have been returned. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListNotificationChannelsResponse) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListNotificationChannelsResponse) + ), +) _sym_db.RegisterMessage(ListNotificationChannelsResponse) -GetNotificationChannelRequest = _reflection.GeneratedProtocolMessageType('GetNotificationChannelRequest', (_message.Message,), dict( - DESCRIPTOR = _GETNOTIFICATIONCHANNELREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.notification_service_pb2' - , - __doc__ = """The ``GetNotificationChannel`` request. +GetNotificationChannelRequest = _reflection.GeneratedProtocolMessageType( + "GetNotificationChannelRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETNOTIFICATIONCHANNELREQUEST, + __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", + __doc__="""The ``GetNotificationChannel`` request. Attributes: @@ -716,15 +1053,18 @@ The channel for which to execute the request. The format is ``projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]``. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetNotificationChannelRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetNotificationChannelRequest) + ), +) _sym_db.RegisterMessage(GetNotificationChannelRequest) -UpdateNotificationChannelRequest = _reflection.GeneratedProtocolMessageType('UpdateNotificationChannelRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATENOTIFICATIONCHANNELREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.notification_service_pb2' - , - __doc__ = """The ``UpdateNotificationChannel`` request. +UpdateNotificationChannelRequest = _reflection.GeneratedProtocolMessageType( + "UpdateNotificationChannelRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATENOTIFICATIONCHANNELREQUEST, + __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", + __doc__="""The ``UpdateNotificationChannel`` request. Attributes: @@ -736,15 +1076,18 @@ definition for fields to be updated; the names of these fields should also be included in the ``update_mask``. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateNotificationChannelRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateNotificationChannelRequest) + ), +) _sym_db.RegisterMessage(UpdateNotificationChannelRequest) -DeleteNotificationChannelRequest = _reflection.GeneratedProtocolMessageType('DeleteNotificationChannelRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETENOTIFICATIONCHANNELREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.notification_service_pb2' - , - __doc__ = """The ``DeleteNotificationChannel`` request. +DeleteNotificationChannelRequest = _reflection.GeneratedProtocolMessageType( + "DeleteNotificationChannelRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETENOTIFICATIONCHANNELREQUEST, + __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", + __doc__="""The ``DeleteNotificationChannel`` request. Attributes: @@ -758,30 +1101,36 @@ referenced by an existing alerting policy will fail to be deleted in a delete operation. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteNotificationChannelRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteNotificationChannelRequest) + ), +) _sym_db.RegisterMessage(DeleteNotificationChannelRequest) -SendNotificationChannelVerificationCodeRequest = _reflection.GeneratedProtocolMessageType('SendNotificationChannelVerificationCodeRequest', (_message.Message,), dict( - DESCRIPTOR = _SENDNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.notification_service_pb2' - , - __doc__ = """The ``SendNotificationChannelVerificationCode`` request. +SendNotificationChannelVerificationCodeRequest = _reflection.GeneratedProtocolMessageType( + "SendNotificationChannelVerificationCodeRequest", + (_message.Message,), + dict( + DESCRIPTOR=_SENDNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST, + __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", + __doc__="""The ``SendNotificationChannelVerificationCode`` request. Attributes: name: The notification channel to which to send a verification code. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.SendNotificationChannelVerificationCodeRequest) + ), +) _sym_db.RegisterMessage(SendNotificationChannelVerificationCodeRequest) -GetNotificationChannelVerificationCodeRequest = _reflection.GeneratedProtocolMessageType('GetNotificationChannelVerificationCodeRequest', (_message.Message,), dict( - DESCRIPTOR = _GETNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.notification_service_pb2' - , - __doc__ = """The ``GetNotificationChannelVerificationCode`` request. +GetNotificationChannelVerificationCodeRequest = _reflection.GeneratedProtocolMessageType( + "GetNotificationChannelVerificationCodeRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST, + __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", + __doc__="""The ``GetNotificationChannelVerificationCode`` request. Attributes: @@ -803,15 +1152,18 @@ the API does impose an upper limit on the maximum expiration that is permitted). """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetNotificationChannelVerificationCodeRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetNotificationChannelVerificationCodeRequest) + ), +) _sym_db.RegisterMessage(GetNotificationChannelVerificationCodeRequest) -GetNotificationChannelVerificationCodeResponse = _reflection.GeneratedProtocolMessageType('GetNotificationChannelVerificationCodeResponse', (_message.Message,), dict( - DESCRIPTOR = _GETNOTIFICATIONCHANNELVERIFICATIONCODERESPONSE, - __module__ = 'google.cloud.monitoring_v3.proto.notification_service_pb2' - , - __doc__ = """The ``GetNotificationChannelVerificationCode`` request. +GetNotificationChannelVerificationCodeResponse = _reflection.GeneratedProtocolMessageType( + "GetNotificationChannelVerificationCodeResponse", + (_message.Message,), + dict( + DESCRIPTOR=_GETNOTIFICATIONCHANNELVERIFICATIONCODERESPONSE, + __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", + __doc__="""The ``GetNotificationChannelVerificationCode`` request. Attributes: @@ -827,15 +1179,18 @@ is the minimum of the requested expiration in the request and the max permitted expiration. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetNotificationChannelVerificationCodeResponse) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetNotificationChannelVerificationCodeResponse) + ), +) _sym_db.RegisterMessage(GetNotificationChannelVerificationCodeResponse) -VerifyNotificationChannelRequest = _reflection.GeneratedProtocolMessageType('VerifyNotificationChannelRequest', (_message.Message,), dict( - DESCRIPTOR = _VERIFYNOTIFICATIONCHANNELREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.notification_service_pb2' - , - __doc__ = """The ``VerifyNotificationChannel`` request. +VerifyNotificationChannelRequest = _reflection.GeneratedProtocolMessageType( + "VerifyNotificationChannelRequest", + (_message.Message,), + dict( + DESCRIPTOR=_VERIFYNOTIFICATIONCHANNELREQUEST, + __module__="google.cloud.monitoring_v3.proto.notification_service_pb2", + __doc__="""The ``VerifyNotificationChannel`` request. Attributes: @@ -852,116 +1207,173 @@ one should not make any assumptions regarding the structure or format of the code). """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.VerifyNotificationChannelRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.VerifyNotificationChannelRequest) + ), +) _sym_db.RegisterMessage(VerifyNotificationChannelRequest) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\030com.google.monitoring.v3B\030NotificationServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\030com.google.monitoring.v3B\030NotificationServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3" + ), +) _NOTIFICATIONCHANNELSERVICE = _descriptor.ServiceDescriptor( - name='NotificationChannelService', - full_name='google.monitoring.v3.NotificationChannelService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=1609, - serialized_end=3716, - methods=[ - _descriptor.MethodDescriptor( - name='ListNotificationChannelDescriptors', - full_name='google.monitoring.v3.NotificationChannelService.ListNotificationChannelDescriptors', + name="NotificationChannelService", + full_name="google.monitoring.v3.NotificationChannelService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_LISTNOTIFICATIONCHANNELDESCRIPTORSREQUEST, - output_type=_LISTNOTIFICATIONCHANNELDESCRIPTORSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0026\0224/v3/{name=projects/*}/notificationChannelDescriptors')), - ), - _descriptor.MethodDescriptor( - name='GetNotificationChannelDescriptor', - full_name='google.monitoring.v3.NotificationChannelService.GetNotificationChannelDescriptor', - index=1, - containing_service=None, - input_type=_GETNOTIFICATIONCHANNELDESCRIPTORREQUEST, - output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNELDESCRIPTOR, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0028\0226/v3/{name=projects/*/notificationChannelDescriptors/*}')), - ), - _descriptor.MethodDescriptor( - name='ListNotificationChannels', - full_name='google.monitoring.v3.NotificationChannelService.ListNotificationChannels', - index=2, - containing_service=None, - input_type=_LISTNOTIFICATIONCHANNELSREQUEST, - output_type=_LISTNOTIFICATIONCHANNELSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002,\022*/v3/{name=projects/*}/notificationChannels')), - ), - _descriptor.MethodDescriptor( - name='GetNotificationChannel', - full_name='google.monitoring.v3.NotificationChannelService.GetNotificationChannel', - index=3, - containing_service=None, - input_type=_GETNOTIFICATIONCHANNELREQUEST, - output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002.\022,/v3/{name=projects/*/notificationChannels/*}')), - ), - _descriptor.MethodDescriptor( - name='CreateNotificationChannel', - full_name='google.monitoring.v3.NotificationChannelService.CreateNotificationChannel', - index=4, - containing_service=None, - input_type=_CREATENOTIFICATIONCHANNELREQUEST, - output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002B\"*/v3/{name=projects/*}/notificationChannels:\024notification_channel')), - ), - _descriptor.MethodDescriptor( - name='UpdateNotificationChannel', - full_name='google.monitoring.v3.NotificationChannelService.UpdateNotificationChannel', - index=5, - containing_service=None, - input_type=_UPDATENOTIFICATIONCHANNELREQUEST, - output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002Y2A/v3/{notification_channel.name=projects/*/notificationChannels/*}:\024notification_channel')), - ), - _descriptor.MethodDescriptor( - name='DeleteNotificationChannel', - full_name='google.monitoring.v3.NotificationChannelService.DeleteNotificationChannel', - index=6, - containing_service=None, - input_type=_DELETENOTIFICATIONCHANNELREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002.*,/v3/{name=projects/*/notificationChannels/*}')), - ), - _descriptor.MethodDescriptor( - name='SendNotificationChannelVerificationCode', - full_name='google.monitoring.v3.NotificationChannelService.SendNotificationChannelVerificationCode', - index=7, - containing_service=None, - input_type=_SENDNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002F\"A/v3/{name=projects/*/notificationChannels/*}:sendVerificationCode:\001*')), - ), - _descriptor.MethodDescriptor( - name='GetNotificationChannelVerificationCode', - full_name='google.monitoring.v3.NotificationChannelService.GetNotificationChannelVerificationCode', - index=8, - containing_service=None, - input_type=_GETNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST, - output_type=_GETNOTIFICATIONCHANNELVERIFICATIONCODERESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002E\"@/v3/{name=projects/*/notificationChannels/*}:getVerificationCode:\001*')), - ), - _descriptor.MethodDescriptor( - name='VerifyNotificationChannel', - full_name='google.monitoring.v3.NotificationChannelService.VerifyNotificationChannel', - index=9, - containing_service=None, - input_type=_VERIFYNOTIFICATIONCHANNELREQUEST, - output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0028\"3/v3/{name=projects/*/notificationChannels/*}:verify:\001*')), - ), -]) + options=None, + serialized_start=1609, + serialized_end=3716, + methods=[ + _descriptor.MethodDescriptor( + name="ListNotificationChannelDescriptors", + full_name="google.monitoring.v3.NotificationChannelService.ListNotificationChannelDescriptors", + index=0, + containing_service=None, + input_type=_LISTNOTIFICATIONCHANNELDESCRIPTORSREQUEST, + output_type=_LISTNOTIFICATIONCHANNELDESCRIPTORSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0026\0224/v3/{name=projects/*}/notificationChannelDescriptors" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetNotificationChannelDescriptor", + full_name="google.monitoring.v3.NotificationChannelService.GetNotificationChannelDescriptor", + index=1, + containing_service=None, + input_type=_GETNOTIFICATIONCHANNELDESCRIPTORREQUEST, + output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNELDESCRIPTOR, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\0028\0226/v3/{name=projects/*/notificationChannelDescriptors/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="ListNotificationChannels", + full_name="google.monitoring.v3.NotificationChannelService.ListNotificationChannels", + index=2, + containing_service=None, + input_type=_LISTNOTIFICATIONCHANNELSREQUEST, + output_type=_LISTNOTIFICATIONCHANNELSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002,\022*/v3/{name=projects/*}/notificationChannels" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetNotificationChannel", + full_name="google.monitoring.v3.NotificationChannelService.GetNotificationChannel", + index=3, + containing_service=None, + input_type=_GETNOTIFICATIONCHANNELREQUEST, + output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002.\022,/v3/{name=projects/*/notificationChannels/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateNotificationChannel", + full_name="google.monitoring.v3.NotificationChannelService.CreateNotificationChannel", + index=4, + containing_service=None, + input_type=_CREATENOTIFICATIONCHANNELREQUEST, + output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002B"*/v3/{name=projects/*}/notificationChannels:\024notification_channel' + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateNotificationChannel", + full_name="google.monitoring.v3.NotificationChannelService.UpdateNotificationChannel", + index=5, + containing_service=None, + input_type=_UPDATENOTIFICATIONCHANNELREQUEST, + output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002Y2A/v3/{notification_channel.name=projects/*/notificationChannels/*}:\024notification_channel" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteNotificationChannel", + full_name="google.monitoring.v3.NotificationChannelService.DeleteNotificationChannel", + index=6, + containing_service=None, + input_type=_DELETENOTIFICATIONCHANNELREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002.*,/v3/{name=projects/*/notificationChannels/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="SendNotificationChannelVerificationCode", + full_name="google.monitoring.v3.NotificationChannelService.SendNotificationChannelVerificationCode", + index=7, + containing_service=None, + input_type=_SENDNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002F"A/v3/{name=projects/*/notificationChannels/*}:sendVerificationCode:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetNotificationChannelVerificationCode", + full_name="google.monitoring.v3.NotificationChannelService.GetNotificationChannelVerificationCode", + index=8, + containing_service=None, + input_type=_GETNOTIFICATIONCHANNELVERIFICATIONCODEREQUEST, + output_type=_GETNOTIFICATIONCHANNELVERIFICATIONCODERESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002E"@/v3/{name=projects/*/notificationChannels/*}:getVerificationCode:\001*' + ), + ), + ), + _descriptor.MethodDescriptor( + name="VerifyNotificationChannel", + full_name="google.monitoring.v3.NotificationChannelService.VerifyNotificationChannel", + index=9, + containing_service=None, + input_type=_VERIFYNOTIFICATIONCHANNELREQUEST, + output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2._NOTIFICATIONCHANNEL, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\0028"3/v3/{name=projects/*/notificationChannels/*}:verify:\001*' + ), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_NOTIFICATIONCHANNELSERVICE) -DESCRIPTOR.services_by_name['NotificationChannelService'] = _NOTIFICATIONCHANNELSERVICE +DESCRIPTOR.services_by_name["NotificationChannelService"] = _NOTIFICATIONCHANNELSERVICE # @@protoc_insertion_point(module_scope) diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/notification_service_pb2_grpc.py b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/notification_service_pb2_grpc.py index 97c0311419a0..ba8b68d03c70 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/notification_service_pb2_grpc.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/notification_service_pb2_grpc.py @@ -1,146 +1,150 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.monitoring_v3.proto import notification_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2 -from google.cloud.monitoring_v3.proto import notification_service_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2 +from google.cloud.monitoring_v3.proto import ( + notification_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2, +) +from google.cloud.monitoring_v3.proto import ( + notification_service_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class NotificationChannelServiceStub(object): - """The Notification Channel API provides access to configuration that + """The Notification Channel API provides access to configuration that controls how messages related to incidents are sent. """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.ListNotificationChannelDescriptors = channel.unary_unary( - '/google.monitoring.v3.NotificationChannelService/ListNotificationChannelDescriptors', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelDescriptorsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelDescriptorsResponse.FromString, + self.ListNotificationChannelDescriptors = channel.unary_unary( + "/google.monitoring.v3.NotificationChannelService/ListNotificationChannelDescriptors", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelDescriptorsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelDescriptorsResponse.FromString, ) - self.GetNotificationChannelDescriptor = channel.unary_unary( - '/google.monitoring.v3.NotificationChannelService/GetNotificationChannelDescriptor', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelDescriptorRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannelDescriptor.FromString, + self.GetNotificationChannelDescriptor = channel.unary_unary( + "/google.monitoring.v3.NotificationChannelService/GetNotificationChannelDescriptor", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelDescriptorRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannelDescriptor.FromString, ) - self.ListNotificationChannels = channel.unary_unary( - '/google.monitoring.v3.NotificationChannelService/ListNotificationChannels', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelsResponse.FromString, + self.ListNotificationChannels = channel.unary_unary( + "/google.monitoring.v3.NotificationChannelService/ListNotificationChannels", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelsResponse.FromString, ) - self.GetNotificationChannel = channel.unary_unary( - '/google.monitoring.v3.NotificationChannelService/GetNotificationChannel', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.FromString, + self.GetNotificationChannel = channel.unary_unary( + "/google.monitoring.v3.NotificationChannelService/GetNotificationChannel", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.FromString, ) - self.CreateNotificationChannel = channel.unary_unary( - '/google.monitoring.v3.NotificationChannelService/CreateNotificationChannel', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.CreateNotificationChannelRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.FromString, + self.CreateNotificationChannel = channel.unary_unary( + "/google.monitoring.v3.NotificationChannelService/CreateNotificationChannel", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.CreateNotificationChannelRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.FromString, ) - self.UpdateNotificationChannel = channel.unary_unary( - '/google.monitoring.v3.NotificationChannelService/UpdateNotificationChannel', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.UpdateNotificationChannelRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.FromString, + self.UpdateNotificationChannel = channel.unary_unary( + "/google.monitoring.v3.NotificationChannelService/UpdateNotificationChannel", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.UpdateNotificationChannelRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.FromString, ) - self.DeleteNotificationChannel = channel.unary_unary( - '/google.monitoring.v3.NotificationChannelService/DeleteNotificationChannel', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.DeleteNotificationChannelRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteNotificationChannel = channel.unary_unary( + "/google.monitoring.v3.NotificationChannelService/DeleteNotificationChannel", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.DeleteNotificationChannelRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.SendNotificationChannelVerificationCode = channel.unary_unary( - '/google.monitoring.v3.NotificationChannelService/SendNotificationChannelVerificationCode', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.SendNotificationChannelVerificationCodeRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.SendNotificationChannelVerificationCode = channel.unary_unary( + "/google.monitoring.v3.NotificationChannelService/SendNotificationChannelVerificationCode", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.SendNotificationChannelVerificationCodeRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.GetNotificationChannelVerificationCode = channel.unary_unary( - '/google.monitoring.v3.NotificationChannelService/GetNotificationChannelVerificationCode', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelVerificationCodeRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelVerificationCodeResponse.FromString, + self.GetNotificationChannelVerificationCode = channel.unary_unary( + "/google.monitoring.v3.NotificationChannelService/GetNotificationChannelVerificationCode", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelVerificationCodeRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelVerificationCodeResponse.FromString, ) - self.VerifyNotificationChannel = channel.unary_unary( - '/google.monitoring.v3.NotificationChannelService/VerifyNotificationChannel', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.VerifyNotificationChannelRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.FromString, + self.VerifyNotificationChannel = channel.unary_unary( + "/google.monitoring.v3.NotificationChannelService/VerifyNotificationChannel", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.VerifyNotificationChannelRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.FromString, ) class NotificationChannelServiceServicer(object): - """The Notification Channel API provides access to configuration that + """The Notification Channel API provides access to configuration that controls how messages related to incidents are sent. """ - def ListNotificationChannelDescriptors(self, request, context): - """Lists the descriptors for supported channel types. The use of descriptors + def ListNotificationChannelDescriptors(self, request, context): + """Lists the descriptors for supported channel types. The use of descriptors makes it possible for new channel types to be dynamically added. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetNotificationChannelDescriptor(self, request, context): - """Gets a single channel descriptor. The descriptor indicates which fields + def GetNotificationChannelDescriptor(self, request, context): + """Gets a single channel descriptor. The descriptor indicates which fields are expected / permitted for a notification channel of the given type. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListNotificationChannels(self, request, context): - """Lists the notification channels that have been created for the project. + def ListNotificationChannels(self, request, context): + """Lists the notification channels that have been created for the project. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetNotificationChannel(self, request, context): - """Gets a single notification channel. The channel includes the relevant + def GetNotificationChannel(self, request, context): + """Gets a single notification channel. The channel includes the relevant configuration details with which the channel was created. However, the response may truncate or omit passwords, API keys, or other private key matter and thus the response may not be 100% identical to the information that was supplied in the call to the create method. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateNotificationChannel(self, request, context): - """Creates a new notification channel, representing a single notification + def CreateNotificationChannel(self, request, context): + """Creates a new notification channel, representing a single notification endpoint such as an email address, SMS number, or PagerDuty service. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateNotificationChannel(self, request, context): - """Updates a notification channel. Fields not specified in the field mask + def UpdateNotificationChannel(self, request, context): + """Updates a notification channel. Fields not specified in the field mask remain unchanged. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteNotificationChannel(self, request, context): - """Deletes a notification channel. + def DeleteNotificationChannel(self, request, context): + """Deletes a notification channel. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def SendNotificationChannelVerificationCode(self, request, context): - """Causes a verification code to be delivered to the channel. The code + def SendNotificationChannelVerificationCode(self, request, context): + """Causes a verification code to be delivered to the channel. The code can then be supplied in `VerifyNotificationChannel` to verify the channel. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetNotificationChannelVerificationCode(self, request, context): - """Requests a verification code for an already verified channel that can then + def GetNotificationChannelVerificationCode(self, request, context): + """Requests a verification code for an already verified channel that can then be used in a call to VerifyNotificationChannel() on a different channel with an equivalent identity in the same or in a different project. This makes it possible to copy a channel between projects without requiring @@ -162,73 +166,74 @@ def GetNotificationChannelVerificationCode(self, request, context): GetVerificationCode() will typically return a much longer, websafe base 64 encoded string that has a longer expiration time. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def VerifyNotificationChannel(self, request, context): - """Verifies a `NotificationChannel` by proving receipt of the code + def VerifyNotificationChannel(self, request, context): + """Verifies a `NotificationChannel` by proving receipt of the code delivered to the channel as a result of calling `SendNotificationChannelVerificationCode`. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_NotificationChannelServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ListNotificationChannelDescriptors': grpc.unary_unary_rpc_method_handler( - servicer.ListNotificationChannelDescriptors, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelDescriptorsRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelDescriptorsResponse.SerializeToString, - ), - 'GetNotificationChannelDescriptor': grpc.unary_unary_rpc_method_handler( - servicer.GetNotificationChannelDescriptor, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelDescriptorRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannelDescriptor.SerializeToString, - ), - 'ListNotificationChannels': grpc.unary_unary_rpc_method_handler( - servicer.ListNotificationChannels, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelsRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelsResponse.SerializeToString, - ), - 'GetNotificationChannel': grpc.unary_unary_rpc_method_handler( - servicer.GetNotificationChannel, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.SerializeToString, - ), - 'CreateNotificationChannel': grpc.unary_unary_rpc_method_handler( - servicer.CreateNotificationChannel, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.CreateNotificationChannelRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.SerializeToString, - ), - 'UpdateNotificationChannel': grpc.unary_unary_rpc_method_handler( - servicer.UpdateNotificationChannel, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.UpdateNotificationChannelRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.SerializeToString, - ), - 'DeleteNotificationChannel': grpc.unary_unary_rpc_method_handler( - servicer.DeleteNotificationChannel, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.DeleteNotificationChannelRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'SendNotificationChannelVerificationCode': grpc.unary_unary_rpc_method_handler( - servicer.SendNotificationChannelVerificationCode, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.SendNotificationChannelVerificationCodeRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'GetNotificationChannelVerificationCode': grpc.unary_unary_rpc_method_handler( - servicer.GetNotificationChannelVerificationCode, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelVerificationCodeRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelVerificationCodeResponse.SerializeToString, - ), - 'VerifyNotificationChannel': grpc.unary_unary_rpc_method_handler( - servicer.VerifyNotificationChannel, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.VerifyNotificationChannelRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.monitoring.v3.NotificationChannelService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "ListNotificationChannelDescriptors": grpc.unary_unary_rpc_method_handler( + servicer.ListNotificationChannelDescriptors, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelDescriptorsRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelDescriptorsResponse.SerializeToString, + ), + "GetNotificationChannelDescriptor": grpc.unary_unary_rpc_method_handler( + servicer.GetNotificationChannelDescriptor, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelDescriptorRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannelDescriptor.SerializeToString, + ), + "ListNotificationChannels": grpc.unary_unary_rpc_method_handler( + servicer.ListNotificationChannels, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelsRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.ListNotificationChannelsResponse.SerializeToString, + ), + "GetNotificationChannel": grpc.unary_unary_rpc_method_handler( + servicer.GetNotificationChannel, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.SerializeToString, + ), + "CreateNotificationChannel": grpc.unary_unary_rpc_method_handler( + servicer.CreateNotificationChannel, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.CreateNotificationChannelRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.SerializeToString, + ), + "UpdateNotificationChannel": grpc.unary_unary_rpc_method_handler( + servicer.UpdateNotificationChannel, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.UpdateNotificationChannelRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.SerializeToString, + ), + "DeleteNotificationChannel": grpc.unary_unary_rpc_method_handler( + servicer.DeleteNotificationChannel, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.DeleteNotificationChannelRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "SendNotificationChannelVerificationCode": grpc.unary_unary_rpc_method_handler( + servicer.SendNotificationChannelVerificationCode, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.SendNotificationChannelVerificationCodeRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "GetNotificationChannelVerificationCode": grpc.unary_unary_rpc_method_handler( + servicer.GetNotificationChannelVerificationCode, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelVerificationCodeRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.GetNotificationChannelVerificationCodeResponse.SerializeToString, + ), + "VerifyNotificationChannel": grpc.unary_unary_rpc_method_handler( + servicer.VerifyNotificationChannel, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__service__pb2.VerifyNotificationChannelRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_notification__pb2.NotificationChannel.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.monitoring.v3.NotificationChannelService", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/span_context_pb2.py b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/span_context_pb2.py index 92c9b19a16dc..476bf5ab0a24 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/span_context_pb2.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/span_context_pb2.py @@ -2,67 +2,77 @@ # source: google/cloud/monitoring_v3/proto/span_context.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() - - DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/monitoring_v3/proto/span_context.proto', - package='google.monitoring.v3', - syntax='proto3', - serialized_pb=_b('\n3google/cloud/monitoring_v3/proto/span_context.proto\x12\x14google.monitoring.v3\" \n\x0bSpanContext\x12\x11\n\tspan_name\x18\x01 \x01(\tB\xa8\x01\n\x18\x63om.google.monitoring.v3B\x10SpanContextProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3') + name="google/cloud/monitoring_v3/proto/span_context.proto", + package="google.monitoring.v3", + syntax="proto3", + serialized_pb=_b( + '\n3google/cloud/monitoring_v3/proto/span_context.proto\x12\x14google.monitoring.v3" \n\x0bSpanContext\x12\x11\n\tspan_name\x18\x01 \x01(\tB\xa8\x01\n\x18\x63om.google.monitoring.v3B\x10SpanContextProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3' + ), ) - - _SPANCONTEXT = _descriptor.Descriptor( - name='SpanContext', - full_name='google.monitoring.v3.SpanContext', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='span_name', full_name='google.monitoring.v3.SpanContext.span_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=77, - serialized_end=109, + name="SpanContext", + full_name="google.monitoring.v3.SpanContext", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="span_name", + full_name="google.monitoring.v3.SpanContext.span_name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=77, + serialized_end=109, ) -DESCRIPTOR.message_types_by_name['SpanContext'] = _SPANCONTEXT +DESCRIPTOR.message_types_by_name["SpanContext"] = _SPANCONTEXT _sym_db.RegisterFileDescriptor(DESCRIPTOR) -SpanContext = _reflection.GeneratedProtocolMessageType('SpanContext', (_message.Message,), dict( - DESCRIPTOR = _SPANCONTEXT, - __module__ = 'google.cloud.monitoring_v3.proto.span_context_pb2' - , - __doc__ = """The context of a span, attached to google.api.Distribution.Exemplars in +SpanContext = _reflection.GeneratedProtocolMessageType( + "SpanContext", + (_message.Message,), + dict( + DESCRIPTOR=_SPANCONTEXT, + __module__="google.cloud.monitoring_v3.proto.span_context_pb2", + __doc__="""The context of a span, attached to google.api.Distribution.Exemplars in google.api.Distribution values during aggregation. It contains the name of a span with format: @@ -79,11 +89,17 @@ within a trace; it is a 16-character hexadecimal encoding of an 8-byte array. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.SpanContext) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.SpanContext) + ), +) _sym_db.RegisterMessage(SpanContext) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\030com.google.monitoring.v3B\020SpanContextProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\030com.google.monitoring.v3B\020SpanContextProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3" + ), +) # @@protoc_insertion_point(module_scope) diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/span_context_pb2_grpc.py b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/span_context_pb2_grpc.py index a89435267cb2..07cb78fe03a9 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/span_context_pb2_grpc.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/span_context_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/uptime_pb2.py b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/uptime_pb2.py index c90bcc31ceba..151bf2f6c70f 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/uptime_pb2.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/uptime_pb2.py @@ -2,88 +2,89 @@ # source: google/cloud/monitoring_v3/proto/uptime.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -from google.api import monitored_resource_pb2 as google_dot_api_dot_monitored__resource__pb2 +from google.api import ( + monitored_resource_pb2 as google_dot_api_dot_monitored__resource__pb2, +) from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/monitoring_v3/proto/uptime.proto', - package='google.monitoring.v3', - syntax='proto3', - serialized_pb=_b('\n-google/cloud/monitoring_v3/proto/uptime.proto\x12\x14google.monitoring.v3\x1a#google/api/monitored_resource.proto\x1a\x1egoogle/protobuf/duration.proto\"q\n\x0fInternalChecker\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x0f\n\x07network\x18\x03 \x01(\t\x12\x10\n\x08gcp_zone\x18\x04 \x01(\t\x12\x17\n\x0fpeer_project_id\x18\x06 \x01(\t\"\xc1\t\n\x11UptimeCheckConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12;\n\x12monitored_resource\x18\x03 \x01(\x0b\x32\x1d.google.api.MonitoredResourceH\x00\x12O\n\x0eresource_group\x18\x04 \x01(\x0b\x32\x35.google.monitoring.v3.UptimeCheckConfig.ResourceGroupH\x00\x12G\n\nhttp_check\x18\x05 \x01(\x0b\x32\x31.google.monitoring.v3.UptimeCheckConfig.HttpCheckH\x01\x12\x45\n\ttcp_check\x18\x06 \x01(\x0b\x32\x30.google.monitoring.v3.UptimeCheckConfig.TcpCheckH\x01\x12)\n\x06period\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12*\n\x07timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12P\n\x10\x63ontent_matchers\x18\t \x03(\x0b\x32\x36.google.monitoring.v3.UptimeCheckConfig.ContentMatcher\x12\x41\n\x10selected_regions\x18\n \x03(\x0e\x32\'.google.monitoring.v3.UptimeCheckRegion\x12\x13\n\x0bis_internal\x18\x0f \x01(\x08\x12@\n\x11internal_checkers\x18\x0e \x03(\x0b\x32%.google.monitoring.v3.InternalChecker\x1a\x61\n\rResourceGroup\x12\x10\n\x08group_id\x18\x01 \x01(\t\x12>\n\rresource_type\x18\x02 \x01(\x0e\x32\'.google.monitoring.v3.GroupResourceType\x1a\xe4\x02\n\tHttpCheck\x12\x0f\n\x07use_ssl\x18\x01 \x01(\x08\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x0c\n\x04port\x18\x03 \x01(\x05\x12X\n\tauth_info\x18\x04 \x01(\x0b\x32\x45.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication\x12\x14\n\x0cmask_headers\x18\x05 \x01(\x08\x12O\n\x07headers\x18\x06 \x03(\x0b\x32>.google.monitoring.v3.UptimeCheckConfig.HttpCheck.HeadersEntry\x1a\x39\n\x13\x42\x61sicAuthentication\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x18\n\x08TcpCheck\x12\x0c\n\x04port\x18\x01 \x01(\x05\x1a!\n\x0e\x43ontentMatcher\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\tB\n\n\x08resourceB\x14\n\x12\x63heck_request_type\"n\n\rUptimeCheckIp\x12\x37\n\x06region\x18\x01 \x01(\x0e\x32\'.google.monitoring.v3.UptimeCheckRegion\x12\x10\n\x08location\x18\x02 \x01(\t\x12\x12\n\nip_address\x18\x03 \x01(\t*e\n\x11UptimeCheckRegion\x12\x16\n\x12REGION_UNSPECIFIED\x10\x00\x12\x07\n\x03USA\x10\x01\x12\n\n\x06\x45UROPE\x10\x02\x12\x11\n\rSOUTH_AMERICA\x10\x03\x12\x10\n\x0c\x41SIA_PACIFIC\x10\x04*[\n\x11GroupResourceType\x12\x1d\n\x19RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08INSTANCE\x10\x01\x12\x19\n\x15\x41WS_ELB_LOAD_BALANCER\x10\x02\x42\xa3\x01\n\x18\x63om.google.monitoring.v3B\x0bUptimeProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3') - , - dependencies=[google_dot_api_dot_monitored__resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,]) + name="google/cloud/monitoring_v3/proto/uptime.proto", + package="google.monitoring.v3", + syntax="proto3", + serialized_pb=_b( + "\n-google/cloud/monitoring_v3/proto/uptime.proto\x12\x14google.monitoring.v3\x1a#google/api/monitored_resource.proto\x1a\x1egoogle/protobuf/duration.proto\"q\n\x0fInternalChecker\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x0f\n\x07network\x18\x03 \x01(\t\x12\x10\n\x08gcp_zone\x18\x04 \x01(\t\x12\x17\n\x0fpeer_project_id\x18\x06 \x01(\t\"\xc1\t\n\x11UptimeCheckConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12;\n\x12monitored_resource\x18\x03 \x01(\x0b\x32\x1d.google.api.MonitoredResourceH\x00\x12O\n\x0eresource_group\x18\x04 \x01(\x0b\x32\x35.google.monitoring.v3.UptimeCheckConfig.ResourceGroupH\x00\x12G\n\nhttp_check\x18\x05 \x01(\x0b\x32\x31.google.monitoring.v3.UptimeCheckConfig.HttpCheckH\x01\x12\x45\n\ttcp_check\x18\x06 \x01(\x0b\x32\x30.google.monitoring.v3.UptimeCheckConfig.TcpCheckH\x01\x12)\n\x06period\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12*\n\x07timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12P\n\x10\x63ontent_matchers\x18\t \x03(\x0b\x32\x36.google.monitoring.v3.UptimeCheckConfig.ContentMatcher\x12\x41\n\x10selected_regions\x18\n \x03(\x0e\x32'.google.monitoring.v3.UptimeCheckRegion\x12\x13\n\x0bis_internal\x18\x0f \x01(\x08\x12@\n\x11internal_checkers\x18\x0e \x03(\x0b\x32%.google.monitoring.v3.InternalChecker\x1a\x61\n\rResourceGroup\x12\x10\n\x08group_id\x18\x01 \x01(\t\x12>\n\rresource_type\x18\x02 \x01(\x0e\x32'.google.monitoring.v3.GroupResourceType\x1a\xe4\x02\n\tHttpCheck\x12\x0f\n\x07use_ssl\x18\x01 \x01(\x08\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x0c\n\x04port\x18\x03 \x01(\x05\x12X\n\tauth_info\x18\x04 \x01(\x0b\x32\x45.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication\x12\x14\n\x0cmask_headers\x18\x05 \x01(\x08\x12O\n\x07headers\x18\x06 \x03(\x0b\x32>.google.monitoring.v3.UptimeCheckConfig.HttpCheck.HeadersEntry\x1a\x39\n\x13\x42\x61sicAuthentication\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x18\n\x08TcpCheck\x12\x0c\n\x04port\x18\x01 \x01(\x05\x1a!\n\x0e\x43ontentMatcher\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\tB\n\n\x08resourceB\x14\n\x12\x63heck_request_type\"n\n\rUptimeCheckIp\x12\x37\n\x06region\x18\x01 \x01(\x0e\x32'.google.monitoring.v3.UptimeCheckRegion\x12\x10\n\x08location\x18\x02 \x01(\t\x12\x12\n\nip_address\x18\x03 \x01(\t*e\n\x11UptimeCheckRegion\x12\x16\n\x12REGION_UNSPECIFIED\x10\x00\x12\x07\n\x03USA\x10\x01\x12\n\n\x06\x45UROPE\x10\x02\x12\x11\n\rSOUTH_AMERICA\x10\x03\x12\x10\n\x0c\x41SIA_PACIFIC\x10\x04*[\n\x11GroupResourceType\x12\x1d\n\x19RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08INSTANCE\x10\x01\x12\x19\n\x15\x41WS_ELB_LOAD_BALANCER\x10\x02\x42\xa3\x01\n\x18\x63om.google.monitoring.v3B\x0bUptimeProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3" + ), + dependencies=[ + google_dot_api_dot_monitored__resource__pb2.DESCRIPTOR, + google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + ], +) _UPTIMECHECKREGION = _descriptor.EnumDescriptor( - name='UptimeCheckRegion', - full_name='google.monitoring.v3.UptimeCheckRegion', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='REGION_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='USA', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EUROPE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SOUTH_AMERICA', index=3, number=3, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ASIA_PACIFIC', index=4, number=4, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1587, - serialized_end=1688, + name="UptimeCheckRegion", + full_name="google.monitoring.v3.UptimeCheckRegion", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="REGION_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="USA", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="EUROPE", index=2, number=2, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="SOUTH_AMERICA", index=3, number=3, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ASIA_PACIFIC", index=4, number=4, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1587, + serialized_end=1688, ) _sym_db.RegisterEnumDescriptor(_UPTIMECHECKREGION) UptimeCheckRegion = enum_type_wrapper.EnumTypeWrapper(_UPTIMECHECKREGION) _GROUPRESOURCETYPE = _descriptor.EnumDescriptor( - name='GroupResourceType', - full_name='google.monitoring.v3.GroupResourceType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='RESOURCE_TYPE_UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INSTANCE', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AWS_ELB_LOAD_BALANCER', index=2, number=2, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=1690, - serialized_end=1781, + name="GroupResourceType", + full_name="google.monitoring.v3.GroupResourceType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="RESOURCE_TYPE_UNSPECIFIED", index=0, number=0, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="INSTANCE", index=1, number=1, options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="AWS_ELB_LOAD_BALANCER", index=2, number=2, options=None, type=None + ), + ], + containing_type=None, + options=None, + serialized_start=1690, + serialized_end=1781, ) _sym_db.RegisterEnumDescriptor(_GROUPRESOURCETYPE) @@ -98,503 +99,902 @@ AWS_ELB_LOAD_BALANCER = 2 - _INTERNALCHECKER = _descriptor.Descriptor( - name='InternalChecker', - full_name='google.monitoring.v3.InternalChecker', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.InternalChecker.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.monitoring.v3.InternalChecker.display_name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='network', full_name='google.monitoring.v3.InternalChecker.network', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='gcp_zone', full_name='google.monitoring.v3.InternalChecker.gcp_zone', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='peer_project_id', full_name='google.monitoring.v3.InternalChecker.peer_project_id', index=4, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=140, - serialized_end=253, + name="InternalChecker", + full_name="google.monitoring.v3.InternalChecker", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.InternalChecker.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.monitoring.v3.InternalChecker.display_name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="network", + full_name="google.monitoring.v3.InternalChecker.network", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="gcp_zone", + full_name="google.monitoring.v3.InternalChecker.gcp_zone", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="peer_project_id", + full_name="google.monitoring.v3.InternalChecker.peer_project_id", + index=4, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=140, + serialized_end=253, ) _UPTIMECHECKCONFIG_RESOURCEGROUP = _descriptor.Descriptor( - name='ResourceGroup', - full_name='google.monitoring.v3.UptimeCheckConfig.ResourceGroup', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='group_id', full_name='google.monitoring.v3.UptimeCheckConfig.ResourceGroup.group_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='resource_type', full_name='google.monitoring.v3.UptimeCheckConfig.ResourceGroup.resource_type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=922, - serialized_end=1019, + name="ResourceGroup", + full_name="google.monitoring.v3.UptimeCheckConfig.ResourceGroup", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="group_id", + full_name="google.monitoring.v3.UptimeCheckConfig.ResourceGroup.group_id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="resource_type", + full_name="google.monitoring.v3.UptimeCheckConfig.ResourceGroup.resource_type", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=922, + serialized_end=1019, ) _UPTIMECHECKCONFIG_HTTPCHECK_BASICAUTHENTICATION = _descriptor.Descriptor( - name='BasicAuthentication', - full_name='google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='username', full_name='google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.username', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='password', full_name='google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.password', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1273, - serialized_end=1330, + name="BasicAuthentication", + full_name="google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="username", + full_name="google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.username", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="password", + full_name="google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication.password", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1273, + serialized_end=1330, ) _UPTIMECHECKCONFIG_HTTPCHECK_HEADERSENTRY = _descriptor.Descriptor( - name='HeadersEntry', - full_name='google.monitoring.v3.UptimeCheckConfig.HttpCheck.HeadersEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.monitoring.v3.UptimeCheckConfig.HttpCheck.HeadersEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.monitoring.v3.UptimeCheckConfig.HttpCheck.HeadersEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1332, - serialized_end=1378, + name="HeadersEntry", + full_name="google.monitoring.v3.UptimeCheckConfig.HttpCheck.HeadersEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.monitoring.v3.UptimeCheckConfig.HttpCheck.HeadersEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.monitoring.v3.UptimeCheckConfig.HttpCheck.HeadersEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1332, + serialized_end=1378, ) _UPTIMECHECKCONFIG_HTTPCHECK = _descriptor.Descriptor( - name='HttpCheck', - full_name='google.monitoring.v3.UptimeCheckConfig.HttpCheck', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='use_ssl', full_name='google.monitoring.v3.UptimeCheckConfig.HttpCheck.use_ssl', index=0, - number=1, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='path', full_name='google.monitoring.v3.UptimeCheckConfig.HttpCheck.path', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='port', full_name='google.monitoring.v3.UptimeCheckConfig.HttpCheck.port', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='auth_info', full_name='google.monitoring.v3.UptimeCheckConfig.HttpCheck.auth_info', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mask_headers', full_name='google.monitoring.v3.UptimeCheckConfig.HttpCheck.mask_headers', index=4, - number=5, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='headers', full_name='google.monitoring.v3.UptimeCheckConfig.HttpCheck.headers', index=5, - number=6, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_UPTIMECHECKCONFIG_HTTPCHECK_BASICAUTHENTICATION, _UPTIMECHECKCONFIG_HTTPCHECK_HEADERSENTRY, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1022, - serialized_end=1378, + name="HttpCheck", + full_name="google.monitoring.v3.UptimeCheckConfig.HttpCheck", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="use_ssl", + full_name="google.monitoring.v3.UptimeCheckConfig.HttpCheck.use_ssl", + index=0, + number=1, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="path", + full_name="google.monitoring.v3.UptimeCheckConfig.HttpCheck.path", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="port", + full_name="google.monitoring.v3.UptimeCheckConfig.HttpCheck.port", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="auth_info", + full_name="google.monitoring.v3.UptimeCheckConfig.HttpCheck.auth_info", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="mask_headers", + full_name="google.monitoring.v3.UptimeCheckConfig.HttpCheck.mask_headers", + index=4, + number=5, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="headers", + full_name="google.monitoring.v3.UptimeCheckConfig.HttpCheck.headers", + index=5, + number=6, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _UPTIMECHECKCONFIG_HTTPCHECK_BASICAUTHENTICATION, + _UPTIMECHECKCONFIG_HTTPCHECK_HEADERSENTRY, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1022, + serialized_end=1378, ) _UPTIMECHECKCONFIG_TCPCHECK = _descriptor.Descriptor( - name='TcpCheck', - full_name='google.monitoring.v3.UptimeCheckConfig.TcpCheck', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='port', full_name='google.monitoring.v3.UptimeCheckConfig.TcpCheck.port', index=0, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1380, - serialized_end=1404, + name="TcpCheck", + full_name="google.monitoring.v3.UptimeCheckConfig.TcpCheck", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="port", + full_name="google.monitoring.v3.UptimeCheckConfig.TcpCheck.port", + index=0, + number=1, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1380, + serialized_end=1404, ) _UPTIMECHECKCONFIG_CONTENTMATCHER = _descriptor.Descriptor( - name='ContentMatcher', - full_name='google.monitoring.v3.UptimeCheckConfig.ContentMatcher', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='content', full_name='google.monitoring.v3.UptimeCheckConfig.ContentMatcher.content', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1406, - serialized_end=1439, + name="ContentMatcher", + full_name="google.monitoring.v3.UptimeCheckConfig.ContentMatcher", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="content", + full_name="google.monitoring.v3.UptimeCheckConfig.ContentMatcher.content", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1406, + serialized_end=1439, ) _UPTIMECHECKCONFIG = _descriptor.Descriptor( - name='UptimeCheckConfig', - full_name='google.monitoring.v3.UptimeCheckConfig', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.UptimeCheckConfig.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.monitoring.v3.UptimeCheckConfig.display_name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='monitored_resource', full_name='google.monitoring.v3.UptimeCheckConfig.monitored_resource', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='resource_group', full_name='google.monitoring.v3.UptimeCheckConfig.resource_group', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='http_check', full_name='google.monitoring.v3.UptimeCheckConfig.http_check', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tcp_check', full_name='google.monitoring.v3.UptimeCheckConfig.tcp_check', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='period', full_name='google.monitoring.v3.UptimeCheckConfig.period', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='timeout', full_name='google.monitoring.v3.UptimeCheckConfig.timeout', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='content_matchers', full_name='google.monitoring.v3.UptimeCheckConfig.content_matchers', index=8, - number=9, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='selected_regions', full_name='google.monitoring.v3.UptimeCheckConfig.selected_regions', index=9, - number=10, type=14, cpp_type=8, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='is_internal', full_name='google.monitoring.v3.UptimeCheckConfig.is_internal', index=10, - number=15, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='internal_checkers', full_name='google.monitoring.v3.UptimeCheckConfig.internal_checkers', index=11, - number=14, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_UPTIMECHECKCONFIG_RESOURCEGROUP, _UPTIMECHECKCONFIG_HTTPCHECK, _UPTIMECHECKCONFIG_TCPCHECK, _UPTIMECHECKCONFIG_CONTENTMATCHER, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='resource', full_name='google.monitoring.v3.UptimeCheckConfig.resource', - index=0, containing_type=None, fields=[]), - _descriptor.OneofDescriptor( - name='check_request_type', full_name='google.monitoring.v3.UptimeCheckConfig.check_request_type', - index=1, containing_type=None, fields=[]), - ], - serialized_start=256, - serialized_end=1473, + name="UptimeCheckConfig", + full_name="google.monitoring.v3.UptimeCheckConfig", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.UptimeCheckConfig.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="display_name", + full_name="google.monitoring.v3.UptimeCheckConfig.display_name", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="monitored_resource", + full_name="google.monitoring.v3.UptimeCheckConfig.monitored_resource", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="resource_group", + full_name="google.monitoring.v3.UptimeCheckConfig.resource_group", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="http_check", + full_name="google.monitoring.v3.UptimeCheckConfig.http_check", + index=4, + number=5, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="tcp_check", + full_name="google.monitoring.v3.UptimeCheckConfig.tcp_check", + index=5, + number=6, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="period", + full_name="google.monitoring.v3.UptimeCheckConfig.period", + index=6, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="timeout", + full_name="google.monitoring.v3.UptimeCheckConfig.timeout", + index=7, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="content_matchers", + full_name="google.monitoring.v3.UptimeCheckConfig.content_matchers", + index=8, + number=9, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="selected_regions", + full_name="google.monitoring.v3.UptimeCheckConfig.selected_regions", + index=9, + number=10, + type=14, + cpp_type=8, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="is_internal", + full_name="google.monitoring.v3.UptimeCheckConfig.is_internal", + index=10, + number=15, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="internal_checkers", + full_name="google.monitoring.v3.UptimeCheckConfig.internal_checkers", + index=11, + number=14, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _UPTIMECHECKCONFIG_RESOURCEGROUP, + _UPTIMECHECKCONFIG_HTTPCHECK, + _UPTIMECHECKCONFIG_TCPCHECK, + _UPTIMECHECKCONFIG_CONTENTMATCHER, + ], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="resource", + full_name="google.monitoring.v3.UptimeCheckConfig.resource", + index=0, + containing_type=None, + fields=[], + ), + _descriptor.OneofDescriptor( + name="check_request_type", + full_name="google.monitoring.v3.UptimeCheckConfig.check_request_type", + index=1, + containing_type=None, + fields=[], + ), + ], + serialized_start=256, + serialized_end=1473, ) _UPTIMECHECKIP = _descriptor.Descriptor( - name='UptimeCheckIp', - full_name='google.monitoring.v3.UptimeCheckIp', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='region', full_name='google.monitoring.v3.UptimeCheckIp.region', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='location', full_name='google.monitoring.v3.UptimeCheckIp.location', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ip_address', full_name='google.monitoring.v3.UptimeCheckIp.ip_address', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1475, - serialized_end=1585, + name="UptimeCheckIp", + full_name="google.monitoring.v3.UptimeCheckIp", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="region", + full_name="google.monitoring.v3.UptimeCheckIp.region", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="location", + full_name="google.monitoring.v3.UptimeCheckIp.location", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ip_address", + full_name="google.monitoring.v3.UptimeCheckIp.ip_address", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1475, + serialized_end=1585, ) -_UPTIMECHECKCONFIG_RESOURCEGROUP.fields_by_name['resource_type'].enum_type = _GROUPRESOURCETYPE +_UPTIMECHECKCONFIG_RESOURCEGROUP.fields_by_name[ + "resource_type" +].enum_type = _GROUPRESOURCETYPE _UPTIMECHECKCONFIG_RESOURCEGROUP.containing_type = _UPTIMECHECKCONFIG -_UPTIMECHECKCONFIG_HTTPCHECK_BASICAUTHENTICATION.containing_type = _UPTIMECHECKCONFIG_HTTPCHECK +_UPTIMECHECKCONFIG_HTTPCHECK_BASICAUTHENTICATION.containing_type = ( + _UPTIMECHECKCONFIG_HTTPCHECK +) _UPTIMECHECKCONFIG_HTTPCHECK_HEADERSENTRY.containing_type = _UPTIMECHECKCONFIG_HTTPCHECK -_UPTIMECHECKCONFIG_HTTPCHECK.fields_by_name['auth_info'].message_type = _UPTIMECHECKCONFIG_HTTPCHECK_BASICAUTHENTICATION -_UPTIMECHECKCONFIG_HTTPCHECK.fields_by_name['headers'].message_type = _UPTIMECHECKCONFIG_HTTPCHECK_HEADERSENTRY +_UPTIMECHECKCONFIG_HTTPCHECK.fields_by_name[ + "auth_info" +].message_type = _UPTIMECHECKCONFIG_HTTPCHECK_BASICAUTHENTICATION +_UPTIMECHECKCONFIG_HTTPCHECK.fields_by_name[ + "headers" +].message_type = _UPTIMECHECKCONFIG_HTTPCHECK_HEADERSENTRY _UPTIMECHECKCONFIG_HTTPCHECK.containing_type = _UPTIMECHECKCONFIG _UPTIMECHECKCONFIG_TCPCHECK.containing_type = _UPTIMECHECKCONFIG _UPTIMECHECKCONFIG_CONTENTMATCHER.containing_type = _UPTIMECHECKCONFIG -_UPTIMECHECKCONFIG.fields_by_name['monitored_resource'].message_type = google_dot_api_dot_monitored__resource__pb2._MONITOREDRESOURCE -_UPTIMECHECKCONFIG.fields_by_name['resource_group'].message_type = _UPTIMECHECKCONFIG_RESOURCEGROUP -_UPTIMECHECKCONFIG.fields_by_name['http_check'].message_type = _UPTIMECHECKCONFIG_HTTPCHECK -_UPTIMECHECKCONFIG.fields_by_name['tcp_check'].message_type = _UPTIMECHECKCONFIG_TCPCHECK -_UPTIMECHECKCONFIG.fields_by_name['period'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_UPTIMECHECKCONFIG.fields_by_name['timeout'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_UPTIMECHECKCONFIG.fields_by_name['content_matchers'].message_type = _UPTIMECHECKCONFIG_CONTENTMATCHER -_UPTIMECHECKCONFIG.fields_by_name['selected_regions'].enum_type = _UPTIMECHECKREGION -_UPTIMECHECKCONFIG.fields_by_name['internal_checkers'].message_type = _INTERNALCHECKER -_UPTIMECHECKCONFIG.oneofs_by_name['resource'].fields.append( - _UPTIMECHECKCONFIG.fields_by_name['monitored_resource']) -_UPTIMECHECKCONFIG.fields_by_name['monitored_resource'].containing_oneof = _UPTIMECHECKCONFIG.oneofs_by_name['resource'] -_UPTIMECHECKCONFIG.oneofs_by_name['resource'].fields.append( - _UPTIMECHECKCONFIG.fields_by_name['resource_group']) -_UPTIMECHECKCONFIG.fields_by_name['resource_group'].containing_oneof = _UPTIMECHECKCONFIG.oneofs_by_name['resource'] -_UPTIMECHECKCONFIG.oneofs_by_name['check_request_type'].fields.append( - _UPTIMECHECKCONFIG.fields_by_name['http_check']) -_UPTIMECHECKCONFIG.fields_by_name['http_check'].containing_oneof = _UPTIMECHECKCONFIG.oneofs_by_name['check_request_type'] -_UPTIMECHECKCONFIG.oneofs_by_name['check_request_type'].fields.append( - _UPTIMECHECKCONFIG.fields_by_name['tcp_check']) -_UPTIMECHECKCONFIG.fields_by_name['tcp_check'].containing_oneof = _UPTIMECHECKCONFIG.oneofs_by_name['check_request_type'] -_UPTIMECHECKIP.fields_by_name['region'].enum_type = _UPTIMECHECKREGION -DESCRIPTOR.message_types_by_name['InternalChecker'] = _INTERNALCHECKER -DESCRIPTOR.message_types_by_name['UptimeCheckConfig'] = _UPTIMECHECKCONFIG -DESCRIPTOR.message_types_by_name['UptimeCheckIp'] = _UPTIMECHECKIP -DESCRIPTOR.enum_types_by_name['UptimeCheckRegion'] = _UPTIMECHECKREGION -DESCRIPTOR.enum_types_by_name['GroupResourceType'] = _GROUPRESOURCETYPE +_UPTIMECHECKCONFIG.fields_by_name[ + "monitored_resource" +].message_type = google_dot_api_dot_monitored__resource__pb2._MONITOREDRESOURCE +_UPTIMECHECKCONFIG.fields_by_name[ + "resource_group" +].message_type = _UPTIMECHECKCONFIG_RESOURCEGROUP +_UPTIMECHECKCONFIG.fields_by_name[ + "http_check" +].message_type = _UPTIMECHECKCONFIG_HTTPCHECK +_UPTIMECHECKCONFIG.fields_by_name[ + "tcp_check" +].message_type = _UPTIMECHECKCONFIG_TCPCHECK +_UPTIMECHECKCONFIG.fields_by_name[ + "period" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_UPTIMECHECKCONFIG.fields_by_name[ + "timeout" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_UPTIMECHECKCONFIG.fields_by_name[ + "content_matchers" +].message_type = _UPTIMECHECKCONFIG_CONTENTMATCHER +_UPTIMECHECKCONFIG.fields_by_name["selected_regions"].enum_type = _UPTIMECHECKREGION +_UPTIMECHECKCONFIG.fields_by_name["internal_checkers"].message_type = _INTERNALCHECKER +_UPTIMECHECKCONFIG.oneofs_by_name["resource"].fields.append( + _UPTIMECHECKCONFIG.fields_by_name["monitored_resource"] +) +_UPTIMECHECKCONFIG.fields_by_name[ + "monitored_resource" +].containing_oneof = _UPTIMECHECKCONFIG.oneofs_by_name["resource"] +_UPTIMECHECKCONFIG.oneofs_by_name["resource"].fields.append( + _UPTIMECHECKCONFIG.fields_by_name["resource_group"] +) +_UPTIMECHECKCONFIG.fields_by_name[ + "resource_group" +].containing_oneof = _UPTIMECHECKCONFIG.oneofs_by_name["resource"] +_UPTIMECHECKCONFIG.oneofs_by_name["check_request_type"].fields.append( + _UPTIMECHECKCONFIG.fields_by_name["http_check"] +) +_UPTIMECHECKCONFIG.fields_by_name[ + "http_check" +].containing_oneof = _UPTIMECHECKCONFIG.oneofs_by_name["check_request_type"] +_UPTIMECHECKCONFIG.oneofs_by_name["check_request_type"].fields.append( + _UPTIMECHECKCONFIG.fields_by_name["tcp_check"] +) +_UPTIMECHECKCONFIG.fields_by_name[ + "tcp_check" +].containing_oneof = _UPTIMECHECKCONFIG.oneofs_by_name["check_request_type"] +_UPTIMECHECKIP.fields_by_name["region"].enum_type = _UPTIMECHECKREGION +DESCRIPTOR.message_types_by_name["InternalChecker"] = _INTERNALCHECKER +DESCRIPTOR.message_types_by_name["UptimeCheckConfig"] = _UPTIMECHECKCONFIG +DESCRIPTOR.message_types_by_name["UptimeCheckIp"] = _UPTIMECHECKIP +DESCRIPTOR.enum_types_by_name["UptimeCheckRegion"] = _UPTIMECHECKREGION +DESCRIPTOR.enum_types_by_name["GroupResourceType"] = _GROUPRESOURCETYPE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -InternalChecker = _reflection.GeneratedProtocolMessageType('InternalChecker', (_message.Message,), dict( - DESCRIPTOR = _INTERNALCHECKER, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_pb2' - , - __doc__ = """An internal checker allows uptime checks to run on private/internal GCP +InternalChecker = _reflection.GeneratedProtocolMessageType( + "InternalChecker", + (_message.Message,), + dict( + DESCRIPTOR=_INTERNALCHECKER, + __module__="google.cloud.monitoring_v3.proto.uptime_pb2", + __doc__="""An internal checker allows uptime checks to run on private/internal GCP resources. @@ -620,17 +1020,22 @@ The GCP project\_id where the internal checker lives. Not necessary the same as the workspace project. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.InternalChecker) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.InternalChecker) + ), +) _sym_db.RegisterMessage(InternalChecker) -UptimeCheckConfig = _reflection.GeneratedProtocolMessageType('UptimeCheckConfig', (_message.Message,), dict( - - ResourceGroup = _reflection.GeneratedProtocolMessageType('ResourceGroup', (_message.Message,), dict( - DESCRIPTOR = _UPTIMECHECKCONFIG_RESOURCEGROUP, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_pb2' - , - __doc__ = """The resource submessage for group checks. It can be used instead of a +UptimeCheckConfig = _reflection.GeneratedProtocolMessageType( + "UptimeCheckConfig", + (_message.Message,), + dict( + ResourceGroup=_reflection.GeneratedProtocolMessageType( + "ResourceGroup", + (_message.Message,), + dict( + DESCRIPTOR=_UPTIMECHECKCONFIG_RESOURCEGROUP, + __module__="google.cloud.monitoring_v3.proto.uptime_pb2", + __doc__="""The resource submessage for group checks. It can be used instead of a monitored resource, when multiple resources are being monitored. @@ -641,17 +1046,20 @@ resource_type: The resource type of the group members. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.ResourceGroup) - )) - , - - HttpCheck = _reflection.GeneratedProtocolMessageType('HttpCheck', (_message.Message,), dict( - - BasicAuthentication = _reflection.GeneratedProtocolMessageType('BasicAuthentication', (_message.Message,), dict( - DESCRIPTOR = _UPTIMECHECKCONFIG_HTTPCHECK_BASICAUTHENTICATION, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_pb2' - , - __doc__ = """A type of authentication to perform against the specified resource or + # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.ResourceGroup) + ), + ), + HttpCheck=_reflection.GeneratedProtocolMessageType( + "HttpCheck", + (_message.Message,), + dict( + BasicAuthentication=_reflection.GeneratedProtocolMessageType( + "BasicAuthentication", + (_message.Message,), + dict( + DESCRIPTOR=_UPTIMECHECKCONFIG_HTTPCHECK_BASICAUTHENTICATION, + __module__="google.cloud.monitoring_v3.proto.uptime_pb2", + __doc__="""A type of authentication to perform against the specified resource or URL that uses username and password. Currently, only Basic authentication is supported in Uptime Monitoring. @@ -662,20 +1070,21 @@ password: The password to authenticate. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication) - )) - , - - HeadersEntry = _reflection.GeneratedProtocolMessageType('HeadersEntry', (_message.Message,), dict( - DESCRIPTOR = _UPTIMECHECKCONFIG_HTTPCHECK_HEADERSENTRY, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_pb2' - # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.HttpCheck.HeadersEntry) - )) - , - DESCRIPTOR = _UPTIMECHECKCONFIG_HTTPCHECK, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_pb2' - , - __doc__ = """Information involved in an HTTP/HTTPS uptime check request. + # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication) + ), + ), + HeadersEntry=_reflection.GeneratedProtocolMessageType( + "HeadersEntry", + (_message.Message,), + dict( + DESCRIPTOR=_UPTIMECHECKCONFIG_HTTPCHECK_HEADERSENTRY, + __module__="google.cloud.monitoring_v3.proto.uptime_pb2" + # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.HttpCheck.HeadersEntry) + ), + ), + DESCRIPTOR=_UPTIMECHECKCONFIG_HTTPCHECK, + __module__="google.cloud.monitoring_v3.proto.uptime_pb2", + __doc__="""Information involved in an HTTP/HTTPS uptime check request. Attributes: @@ -713,15 +1122,16 @@ call will cause the first to be overwritten by the second. The maximum number of headers allowed is 100. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.HttpCheck) - )) - , - - TcpCheck = _reflection.GeneratedProtocolMessageType('TcpCheck', (_message.Message,), dict( - DESCRIPTOR = _UPTIMECHECKCONFIG_TCPCHECK, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_pb2' - , - __doc__ = """Information required for a TCP uptime check request. + # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.HttpCheck) + ), + ), + TcpCheck=_reflection.GeneratedProtocolMessageType( + "TcpCheck", + (_message.Message,), + dict( + DESCRIPTOR=_UPTIMECHECKCONFIG_TCPCHECK, + __module__="google.cloud.monitoring_v3.proto.uptime_pb2", + __doc__="""Information required for a TCP uptime check request. Attributes: @@ -730,15 +1140,16 @@ combined with host (specified within the MonitoredResource) to construct the full URL. Required. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.TcpCheck) - )) - , - - ContentMatcher = _reflection.GeneratedProtocolMessageType('ContentMatcher', (_message.Message,), dict( - DESCRIPTOR = _UPTIMECHECKCONFIG_CONTENTMATCHER, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_pb2' - , - __doc__ = """Used to perform string matching. It allows substring and regular + # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.TcpCheck) + ), + ), + ContentMatcher=_reflection.GeneratedProtocolMessageType( + "ContentMatcher", + (_message.Message,), + dict( + DESCRIPTOR=_UPTIMECHECKCONFIG_CONTENTMATCHER, + __module__="google.cloud.monitoring_v3.proto.uptime_pb2", + __doc__="""Used to perform string matching. It allows substring and regular expressions, together with their negations. @@ -746,13 +1157,12 @@ content: String or regex content to match (max 1024 bytes) """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.ContentMatcher) - )) - , - DESCRIPTOR = _UPTIMECHECKCONFIG, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_pb2' - , - __doc__ = """This message configures which resources and services to monitor for + # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.ContentMatcher) + ), + ), + DESCRIPTOR=_UPTIMECHECKCONFIG, + __module__="google.cloud.monitoring_v3.proto.uptime_pb2", + __doc__="""This message configures which resources and services to monitor for availability. @@ -819,8 +1229,9 @@ egress from all the InternalCheckers configured for the project that owns this CheckConfig. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig) + ), +) _sym_db.RegisterMessage(UptimeCheckConfig) _sym_db.RegisterMessage(UptimeCheckConfig.ResourceGroup) _sym_db.RegisterMessage(UptimeCheckConfig.HttpCheck) @@ -829,11 +1240,13 @@ _sym_db.RegisterMessage(UptimeCheckConfig.TcpCheck) _sym_db.RegisterMessage(UptimeCheckConfig.ContentMatcher) -UptimeCheckIp = _reflection.GeneratedProtocolMessageType('UptimeCheckIp', (_message.Message,), dict( - DESCRIPTOR = _UPTIMECHECKIP, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_pb2' - , - __doc__ = """Contains the region, location, and list of IP addresses where checkers +UptimeCheckIp = _reflection.GeneratedProtocolMessageType( + "UptimeCheckIp", + (_message.Message,), + dict( + DESCRIPTOR=_UPTIMECHECKIP, + __module__="google.cloud.monitoring_v3.proto.uptime_pb2", + __doc__="""Contains the region, location, and list of IP addresses where checkers in the location run from. @@ -853,13 +1266,21 @@ format indefinitely and should support interpreting this field in either IPv4 or IPv6 format. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckIp) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckIp) + ), +) _sym_db.RegisterMessage(UptimeCheckIp) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\030com.google.monitoring.v3B\013UptimeProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\030com.google.monitoring.v3B\013UptimeProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3" + ), +) _UPTIMECHECKCONFIG_HTTPCHECK_HEADERSENTRY.has_options = True -_UPTIMECHECKCONFIG_HTTPCHECK_HEADERSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_UPTIMECHECKCONFIG_HTTPCHECK_HEADERSENTRY._options = _descriptor._ParseOptions( + descriptor_pb2.MessageOptions(), _b("8\001") +) # @@protoc_insertion_point(module_scope) diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/uptime_pb2_grpc.py b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/uptime_pb2_grpc.py index a89435267cb2..07cb78fe03a9 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/uptime_pb2_grpc.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/uptime_pb2_grpc.py @@ -1,3 +1,2 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc - diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/uptime_service_pb2.py b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/uptime_service_pb2.py index 1a569cac826f..6e0e46bf1051 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/uptime_service_pb2.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/uptime_service_pb2.py @@ -2,357 +2,554 @@ # source: google/cloud/monitoring_v3/proto/uptime_service.proto import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.cloud.monitoring_v3.proto import uptime_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2 +from google.cloud.monitoring_v3.proto import ( + uptime_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/cloud/monitoring_v3/proto/uptime_service.proto', - package='google.monitoring.v3', - syntax='proto3', - serialized_pb=_b('\n5google/cloud/monitoring_v3/proto/uptime_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a-google/cloud/monitoring_v3/proto/uptime.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"V\n\x1dListUptimeCheckConfigsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"\x94\x01\n\x1eListUptimeCheckConfigsResponse\x12\x45\n\x14uptime_check_configs\x18\x01 \x03(\x0b\x32\'.google.monitoring.v3.UptimeCheckConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\"+\n\x1bGetUptimeCheckConfigRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"v\n\x1e\x43reateUptimeCheckConfigRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x44\n\x13uptime_check_config\x18\x02 \x01(\x0b\x32\'.google.monitoring.v3.UptimeCheckConfig\"\x97\x01\n\x1eUpdateUptimeCheckConfigRequest\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x44\n\x13uptime_check_config\x18\x03 \x01(\x0b\x32\'.google.monitoring.v3.UptimeCheckConfig\".\n\x1e\x44\x65leteUptimeCheckConfigRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"B\n\x19ListUptimeCheckIpsRequest\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"t\n\x1aListUptimeCheckIpsResponse\x12=\n\x10uptime_check_ips\x18\x01 \x03(\x0b\x32#.google.monitoring.v3.UptimeCheckIp\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xc7\x08\n\x12UptimeCheckService\x12\xb7\x01\n\x16ListUptimeCheckConfigs\x12\x33.google.monitoring.v3.ListUptimeCheckConfigsRequest\x1a\x34.google.monitoring.v3.ListUptimeCheckConfigsResponse\"2\x82\xd3\xe4\x93\x02,\x12*/v3/{parent=projects/*}/uptimeCheckConfigs\x12\xa6\x01\n\x14GetUptimeCheckConfig\x12\x31.google.monitoring.v3.GetUptimeCheckConfigRequest\x1a\'.google.monitoring.v3.UptimeCheckConfig\"2\x82\xd3\xe4\x93\x02,\x12*/v3/{name=projects/*/uptimeCheckConfigs/*}\x12\xc1\x01\n\x17\x43reateUptimeCheckConfig\x12\x34.google.monitoring.v3.CreateUptimeCheckConfigRequest\x1a\'.google.monitoring.v3.UptimeCheckConfig\"G\x82\xd3\xe4\x93\x02\x41\"*/v3/{parent=projects/*}/uptimeCheckConfigs:\x13uptime_check_config\x12\xd5\x01\n\x17UpdateUptimeCheckConfig\x12\x34.google.monitoring.v3.UpdateUptimeCheckConfigRequest\x1a\'.google.monitoring.v3.UptimeCheckConfig\"[\x82\xd3\xe4\x93\x02U2>/v3/{uptime_check_config.name=projects/*/uptimeCheckConfigs/*}:\x13uptime_check_config\x12\x9b\x01\n\x17\x44\x65leteUptimeCheckConfig\x12\x34.google.monitoring.v3.DeleteUptimeCheckConfigRequest\x1a\x16.google.protobuf.Empty\"2\x82\xd3\xe4\x93\x02,**/v3/{name=projects/*/uptimeCheckConfigs/*}\x12\x93\x01\n\x12ListUptimeCheckIps\x12/.google.monitoring.v3.ListUptimeCheckIpsRequest\x1a\x30.google.monitoring.v3.ListUptimeCheckIpsResponse\"\x1a\x82\xd3\xe4\x93\x02\x14\x12\x12/v3/uptimeCheckIpsB\xaa\x01\n\x18\x63om.google.monitoring.v3B\x12UptimeServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) - - + name="google/cloud/monitoring_v3/proto/uptime_service.proto", + package="google.monitoring.v3", + syntax="proto3", + serialized_pb=_b( + '\n5google/cloud/monitoring_v3/proto/uptime_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a-google/cloud/monitoring_v3/proto/uptime.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"V\n\x1dListUptimeCheckConfigsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t"\x94\x01\n\x1eListUptimeCheckConfigsResponse\x12\x45\n\x14uptime_check_configs\x18\x01 \x03(\x0b\x32\'.google.monitoring.v3.UptimeCheckConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x05"+\n\x1bGetUptimeCheckConfigRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"v\n\x1e\x43reateUptimeCheckConfigRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x44\n\x13uptime_check_config\x18\x02 \x01(\x0b\x32\'.google.monitoring.v3.UptimeCheckConfig"\x97\x01\n\x1eUpdateUptimeCheckConfigRequest\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x44\n\x13uptime_check_config\x18\x03 \x01(\x0b\x32\'.google.monitoring.v3.UptimeCheckConfig".\n\x1e\x44\x65leteUptimeCheckConfigRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"B\n\x19ListUptimeCheckIpsRequest\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"t\n\x1aListUptimeCheckIpsResponse\x12=\n\x10uptime_check_ips\x18\x01 \x03(\x0b\x32#.google.monitoring.v3.UptimeCheckIp\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xc7\x08\n\x12UptimeCheckService\x12\xb7\x01\n\x16ListUptimeCheckConfigs\x12\x33.google.monitoring.v3.ListUptimeCheckConfigsRequest\x1a\x34.google.monitoring.v3.ListUptimeCheckConfigsResponse"2\x82\xd3\xe4\x93\x02,\x12*/v3/{parent=projects/*}/uptimeCheckConfigs\x12\xa6\x01\n\x14GetUptimeCheckConfig\x12\x31.google.monitoring.v3.GetUptimeCheckConfigRequest\x1a\'.google.monitoring.v3.UptimeCheckConfig"2\x82\xd3\xe4\x93\x02,\x12*/v3/{name=projects/*/uptimeCheckConfigs/*}\x12\xc1\x01\n\x17\x43reateUptimeCheckConfig\x12\x34.google.monitoring.v3.CreateUptimeCheckConfigRequest\x1a\'.google.monitoring.v3.UptimeCheckConfig"G\x82\xd3\xe4\x93\x02\x41"*/v3/{parent=projects/*}/uptimeCheckConfigs:\x13uptime_check_config\x12\xd5\x01\n\x17UpdateUptimeCheckConfig\x12\x34.google.monitoring.v3.UpdateUptimeCheckConfigRequest\x1a\'.google.monitoring.v3.UptimeCheckConfig"[\x82\xd3\xe4\x93\x02U2>/v3/{uptime_check_config.name=projects/*/uptimeCheckConfigs/*}:\x13uptime_check_config\x12\x9b\x01\n\x17\x44\x65leteUptimeCheckConfig\x12\x34.google.monitoring.v3.DeleteUptimeCheckConfigRequest\x1a\x16.google.protobuf.Empty"2\x82\xd3\xe4\x93\x02,**/v3/{name=projects/*/uptimeCheckConfigs/*}\x12\x93\x01\n\x12ListUptimeCheckIps\x12/.google.monitoring.v3.ListUptimeCheckIpsRequest\x1a\x30.google.monitoring.v3.ListUptimeCheckIpsResponse"\x1a\x82\xd3\xe4\x93\x02\x14\x12\x12/v3/uptimeCheckIpsB\xaa\x01\n\x18\x63om.google.monitoring.v3B\x12UptimeServiceProtoP\x01Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, + ], +) _LISTUPTIMECHECKCONFIGSREQUEST = _descriptor.Descriptor( - name='ListUptimeCheckConfigsRequest', - full_name='google.monitoring.v3.ListUptimeCheckConfigsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.monitoring.v3.ListUptimeCheckConfigsRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.monitoring.v3.ListUptimeCheckConfigsRequest.page_size', index=1, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.monitoring.v3.ListUptimeCheckConfigsRequest.page_token', index=2, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=219, - serialized_end=305, + name="ListUptimeCheckConfigsRequest", + full_name="google.monitoring.v3.ListUptimeCheckConfigsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.monitoring.v3.ListUptimeCheckConfigsRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.monitoring.v3.ListUptimeCheckConfigsRequest.page_size", + index=1, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.monitoring.v3.ListUptimeCheckConfigsRequest.page_token", + index=2, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=219, + serialized_end=305, ) _LISTUPTIMECHECKCONFIGSRESPONSE = _descriptor.Descriptor( - name='ListUptimeCheckConfigsResponse', - full_name='google.monitoring.v3.ListUptimeCheckConfigsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='uptime_check_configs', full_name='google.monitoring.v3.ListUptimeCheckConfigsResponse.uptime_check_configs', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.monitoring.v3.ListUptimeCheckConfigsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='total_size', full_name='google.monitoring.v3.ListUptimeCheckConfigsResponse.total_size', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=308, - serialized_end=456, + name="ListUptimeCheckConfigsResponse", + full_name="google.monitoring.v3.ListUptimeCheckConfigsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="uptime_check_configs", + full_name="google.monitoring.v3.ListUptimeCheckConfigsResponse.uptime_check_configs", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.monitoring.v3.ListUptimeCheckConfigsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="total_size", + full_name="google.monitoring.v3.ListUptimeCheckConfigsResponse.total_size", + index=2, + number=3, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=308, + serialized_end=456, ) _GETUPTIMECHECKCONFIGREQUEST = _descriptor.Descriptor( - name='GetUptimeCheckConfigRequest', - full_name='google.monitoring.v3.GetUptimeCheckConfigRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.GetUptimeCheckConfigRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=458, - serialized_end=501, + name="GetUptimeCheckConfigRequest", + full_name="google.monitoring.v3.GetUptimeCheckConfigRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.GetUptimeCheckConfigRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=458, + serialized_end=501, ) _CREATEUPTIMECHECKCONFIGREQUEST = _descriptor.Descriptor( - name='CreateUptimeCheckConfigRequest', - full_name='google.monitoring.v3.CreateUptimeCheckConfigRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='parent', full_name='google.monitoring.v3.CreateUptimeCheckConfigRequest.parent', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='uptime_check_config', full_name='google.monitoring.v3.CreateUptimeCheckConfigRequest.uptime_check_config', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=503, - serialized_end=621, + name="CreateUptimeCheckConfigRequest", + full_name="google.monitoring.v3.CreateUptimeCheckConfigRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.monitoring.v3.CreateUptimeCheckConfigRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="uptime_check_config", + full_name="google.monitoring.v3.CreateUptimeCheckConfigRequest.uptime_check_config", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=503, + serialized_end=621, ) _UPDATEUPTIMECHECKCONFIGREQUEST = _descriptor.Descriptor( - name='UpdateUptimeCheckConfigRequest', - full_name='google.monitoring.v3.UpdateUptimeCheckConfigRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.monitoring.v3.UpdateUptimeCheckConfigRequest.update_mask', index=0, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='uptime_check_config', full_name='google.monitoring.v3.UpdateUptimeCheckConfigRequest.uptime_check_config', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=624, - serialized_end=775, + name="UpdateUptimeCheckConfigRequest", + full_name="google.monitoring.v3.UpdateUptimeCheckConfigRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.monitoring.v3.UpdateUptimeCheckConfigRequest.update_mask", + index=0, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="uptime_check_config", + full_name="google.monitoring.v3.UpdateUptimeCheckConfigRequest.uptime_check_config", + index=1, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=624, + serialized_end=775, ) _DELETEUPTIMECHECKCONFIGREQUEST = _descriptor.Descriptor( - name='DeleteUptimeCheckConfigRequest', - full_name='google.monitoring.v3.DeleteUptimeCheckConfigRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='google.monitoring.v3.DeleteUptimeCheckConfigRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=777, - serialized_end=823, + name="DeleteUptimeCheckConfigRequest", + full_name="google.monitoring.v3.DeleteUptimeCheckConfigRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.monitoring.v3.DeleteUptimeCheckConfigRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=777, + serialized_end=823, ) _LISTUPTIMECHECKIPSREQUEST = _descriptor.Descriptor( - name='ListUptimeCheckIpsRequest', - full_name='google.monitoring.v3.ListUptimeCheckIpsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='page_size', full_name='google.monitoring.v3.ListUptimeCheckIpsRequest.page_size', index=0, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.monitoring.v3.ListUptimeCheckIpsRequest.page_token', index=1, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=825, - serialized_end=891, + name="ListUptimeCheckIpsRequest", + full_name="google.monitoring.v3.ListUptimeCheckIpsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.monitoring.v3.ListUptimeCheckIpsRequest.page_size", + index=0, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.monitoring.v3.ListUptimeCheckIpsRequest.page_token", + index=1, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=825, + serialized_end=891, ) _LISTUPTIMECHECKIPSRESPONSE = _descriptor.Descriptor( - name='ListUptimeCheckIpsResponse', - full_name='google.monitoring.v3.ListUptimeCheckIpsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='uptime_check_ips', full_name='google.monitoring.v3.ListUptimeCheckIpsResponse.uptime_check_ips', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.monitoring.v3.ListUptimeCheckIpsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=893, - serialized_end=1009, + name="ListUptimeCheckIpsResponse", + full_name="google.monitoring.v3.ListUptimeCheckIpsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="uptime_check_ips", + full_name="google.monitoring.v3.ListUptimeCheckIpsResponse.uptime_check_ips", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.monitoring.v3.ListUptimeCheckIpsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=893, + serialized_end=1009, ) -_LISTUPTIMECHECKCONFIGSRESPONSE.fields_by_name['uptime_check_configs'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKCONFIG -_CREATEUPTIMECHECKCONFIGREQUEST.fields_by_name['uptime_check_config'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKCONFIG -_UPDATEUPTIMECHECKCONFIGREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_UPDATEUPTIMECHECKCONFIGREQUEST.fields_by_name['uptime_check_config'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKCONFIG -_LISTUPTIMECHECKIPSRESPONSE.fields_by_name['uptime_check_ips'].message_type = google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKIP -DESCRIPTOR.message_types_by_name['ListUptimeCheckConfigsRequest'] = _LISTUPTIMECHECKCONFIGSREQUEST -DESCRIPTOR.message_types_by_name['ListUptimeCheckConfigsResponse'] = _LISTUPTIMECHECKCONFIGSRESPONSE -DESCRIPTOR.message_types_by_name['GetUptimeCheckConfigRequest'] = _GETUPTIMECHECKCONFIGREQUEST -DESCRIPTOR.message_types_by_name['CreateUptimeCheckConfigRequest'] = _CREATEUPTIMECHECKCONFIGREQUEST -DESCRIPTOR.message_types_by_name['UpdateUptimeCheckConfigRequest'] = _UPDATEUPTIMECHECKCONFIGREQUEST -DESCRIPTOR.message_types_by_name['DeleteUptimeCheckConfigRequest'] = _DELETEUPTIMECHECKCONFIGREQUEST -DESCRIPTOR.message_types_by_name['ListUptimeCheckIpsRequest'] = _LISTUPTIMECHECKIPSREQUEST -DESCRIPTOR.message_types_by_name['ListUptimeCheckIpsResponse'] = _LISTUPTIMECHECKIPSRESPONSE +_LISTUPTIMECHECKCONFIGSRESPONSE.fields_by_name[ + "uptime_check_configs" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKCONFIG +) +_CREATEUPTIMECHECKCONFIGREQUEST.fields_by_name[ + "uptime_check_config" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKCONFIG +) +_UPDATEUPTIMECHECKCONFIGREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_UPDATEUPTIMECHECKCONFIGREQUEST.fields_by_name[ + "uptime_check_config" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKCONFIG +) +_LISTUPTIMECHECKIPSRESPONSE.fields_by_name[ + "uptime_check_ips" +].message_type = ( + google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKIP +) +DESCRIPTOR.message_types_by_name[ + "ListUptimeCheckConfigsRequest" +] = _LISTUPTIMECHECKCONFIGSREQUEST +DESCRIPTOR.message_types_by_name[ + "ListUptimeCheckConfigsResponse" +] = _LISTUPTIMECHECKCONFIGSRESPONSE +DESCRIPTOR.message_types_by_name[ + "GetUptimeCheckConfigRequest" +] = _GETUPTIMECHECKCONFIGREQUEST +DESCRIPTOR.message_types_by_name[ + "CreateUptimeCheckConfigRequest" +] = _CREATEUPTIMECHECKCONFIGREQUEST +DESCRIPTOR.message_types_by_name[ + "UpdateUptimeCheckConfigRequest" +] = _UPDATEUPTIMECHECKCONFIGREQUEST +DESCRIPTOR.message_types_by_name[ + "DeleteUptimeCheckConfigRequest" +] = _DELETEUPTIMECHECKCONFIGREQUEST +DESCRIPTOR.message_types_by_name[ + "ListUptimeCheckIpsRequest" +] = _LISTUPTIMECHECKIPSREQUEST +DESCRIPTOR.message_types_by_name[ + "ListUptimeCheckIpsResponse" +] = _LISTUPTIMECHECKIPSRESPONSE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ListUptimeCheckConfigsRequest = _reflection.GeneratedProtocolMessageType('ListUptimeCheckConfigsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTUPTIMECHECKCONFIGSREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_service_pb2' - , - __doc__ = """The protocol for the ``ListUptimeCheckConfigs`` request. +ListUptimeCheckConfigsRequest = _reflection.GeneratedProtocolMessageType( + "ListUptimeCheckConfigsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTUPTIMECHECKCONFIGSREQUEST, + __module__="google.cloud.monitoring_v3.proto.uptime_service_pb2", + __doc__="""The protocol for the ``ListUptimeCheckConfigs`` request. Attributes: @@ -370,15 +567,18 @@ method. Using this field causes the method to return more results from the previous method call. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListUptimeCheckConfigsRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListUptimeCheckConfigsRequest) + ), +) _sym_db.RegisterMessage(ListUptimeCheckConfigsRequest) -ListUptimeCheckConfigsResponse = _reflection.GeneratedProtocolMessageType('ListUptimeCheckConfigsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTUPTIMECHECKCONFIGSRESPONSE, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_service_pb2' - , - __doc__ = """The protocol for the ``ListUptimeCheckConfigs`` response. +ListUptimeCheckConfigsResponse = _reflection.GeneratedProtocolMessageType( + "ListUptimeCheckConfigsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTUPTIMECHECKCONFIGSRESPONSE, + __module__="google.cloud.monitoring_v3.proto.uptime_service_pb2", + __doc__="""The protocol for the ``ListUptimeCheckConfigs`` response. Attributes: @@ -395,15 +595,18 @@ The total number of uptime check configurations for the project, irrespective of any pagination. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListUptimeCheckConfigsResponse) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListUptimeCheckConfigsResponse) + ), +) _sym_db.RegisterMessage(ListUptimeCheckConfigsResponse) -GetUptimeCheckConfigRequest = _reflection.GeneratedProtocolMessageType('GetUptimeCheckConfigRequest', (_message.Message,), dict( - DESCRIPTOR = _GETUPTIMECHECKCONFIGREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_service_pb2' - , - __doc__ = """The protocol for the ``GetUptimeCheckConfig`` request. +GetUptimeCheckConfigRequest = _reflection.GeneratedProtocolMessageType( + "GetUptimeCheckConfigRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETUPTIMECHECKCONFIGREQUEST, + __module__="google.cloud.monitoring_v3.proto.uptime_service_pb2", + __doc__="""The protocol for the ``GetUptimeCheckConfig`` request. Attributes: @@ -411,15 +614,18 @@ The uptime check configuration to retrieve. The format is ``pr ojects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]``. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetUptimeCheckConfigRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.GetUptimeCheckConfigRequest) + ), +) _sym_db.RegisterMessage(GetUptimeCheckConfigRequest) -CreateUptimeCheckConfigRequest = _reflection.GeneratedProtocolMessageType('CreateUptimeCheckConfigRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEUPTIMECHECKCONFIGREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_service_pb2' - , - __doc__ = """The protocol for the ``CreateUptimeCheckConfig`` request. +CreateUptimeCheckConfigRequest = _reflection.GeneratedProtocolMessageType( + "CreateUptimeCheckConfigRequest", + (_message.Message,), + dict( + DESCRIPTOR=_CREATEUPTIMECHECKCONFIGREQUEST, + __module__="google.cloud.monitoring_v3.proto.uptime_service_pb2", + __doc__="""The protocol for the ``CreateUptimeCheckConfig`` request. Attributes: @@ -429,15 +635,18 @@ uptime_check_config: The new uptime check configuration. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateUptimeCheckConfigRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.CreateUptimeCheckConfigRequest) + ), +) _sym_db.RegisterMessage(CreateUptimeCheckConfigRequest) -UpdateUptimeCheckConfigRequest = _reflection.GeneratedProtocolMessageType('UpdateUptimeCheckConfigRequest', (_message.Message,), dict( - DESCRIPTOR = _UPDATEUPTIMECHECKCONFIGREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_service_pb2' - , - __doc__ = """The protocol for the ``UpdateUptimeCheckConfig`` request. +UpdateUptimeCheckConfigRequest = _reflection.GeneratedProtocolMessageType( + "UpdateUptimeCheckConfigRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEUPTIMECHECKCONFIGREQUEST, + __module__="google.cloud.monitoring_v3.proto.uptime_service_pb2", + __doc__="""The protocol for the ``UpdateUptimeCheckConfig`` request. Attributes: @@ -460,15 +669,18 @@ ``tcp_check``, ``timeout``, ``content_matchers``, and ``selected_regions``. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateUptimeCheckConfigRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.UpdateUptimeCheckConfigRequest) + ), +) _sym_db.RegisterMessage(UpdateUptimeCheckConfigRequest) -DeleteUptimeCheckConfigRequest = _reflection.GeneratedProtocolMessageType('DeleteUptimeCheckConfigRequest', (_message.Message,), dict( - DESCRIPTOR = _DELETEUPTIMECHECKCONFIGREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_service_pb2' - , - __doc__ = """The protocol for the ``DeleteUptimeCheckConfig`` request. +DeleteUptimeCheckConfigRequest = _reflection.GeneratedProtocolMessageType( + "DeleteUptimeCheckConfigRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEUPTIMECHECKCONFIGREQUEST, + __module__="google.cloud.monitoring_v3.proto.uptime_service_pb2", + __doc__="""The protocol for the ``DeleteUptimeCheckConfig`` request. Attributes: @@ -476,15 +688,18 @@ The uptime check configuration to delete. The format is ``proj ects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]``. """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteUptimeCheckConfigRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.DeleteUptimeCheckConfigRequest) + ), +) _sym_db.RegisterMessage(DeleteUptimeCheckConfigRequest) -ListUptimeCheckIpsRequest = _reflection.GeneratedProtocolMessageType('ListUptimeCheckIpsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTUPTIMECHECKIPSREQUEST, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_service_pb2' - , - __doc__ = """The protocol for the ``ListUptimeCheckIps`` request. +ListUptimeCheckIpsRequest = _reflection.GeneratedProtocolMessageType( + "ListUptimeCheckIpsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTUPTIMECHECKIPSREQUEST, + __module__="google.cloud.monitoring_v3.proto.uptime_service_pb2", + __doc__="""The protocol for the ``ListUptimeCheckIps`` request. Attributes: @@ -501,15 +716,18 @@ results from the previous method call. NOTE: this field is not yet implemented """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListUptimeCheckIpsRequest) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListUptimeCheckIpsRequest) + ), +) _sym_db.RegisterMessage(ListUptimeCheckIpsRequest) -ListUptimeCheckIpsResponse = _reflection.GeneratedProtocolMessageType('ListUptimeCheckIpsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTUPTIMECHECKIPSRESPONSE, - __module__ = 'google.cloud.monitoring_v3.proto.uptime_service_pb2' - , - __doc__ = """The protocol for the ``ListUptimeCheckIps`` response. +ListUptimeCheckIpsResponse = _reflection.GeneratedProtocolMessageType( + "ListUptimeCheckIpsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTUPTIMECHECKIPSRESPONSE, + __module__="google.cloud.monitoring_v3.proto.uptime_service_pb2", + __doc__="""The protocol for the ``ListUptimeCheckIps`` response. Attributes: @@ -524,80 +742,113 @@ subsequent List method call (in the request message's page\_token field). NOTE: this field is not yet implemented """, - # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListUptimeCheckIpsResponse) - )) + # @@protoc_insertion_point(class_scope:google.monitoring.v3.ListUptimeCheckIpsResponse) + ), +) _sym_db.RegisterMessage(ListUptimeCheckIpsResponse) DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\030com.google.monitoring.v3B\022UptimeServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3')) +DESCRIPTOR._options = _descriptor._ParseOptions( + descriptor_pb2.FileOptions(), + _b( + "\n\030com.google.monitoring.v3B\022UptimeServiceProtoP\001Z>google.golang.org/genproto/googleapis/monitoring/v3;monitoring\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Monitoring\\V3" + ), +) _UPTIMECHECKSERVICE = _descriptor.ServiceDescriptor( - name='UptimeCheckService', - full_name='google.monitoring.v3.UptimeCheckService', - file=DESCRIPTOR, - index=0, - options=None, - serialized_start=1012, - serialized_end=2107, - methods=[ - _descriptor.MethodDescriptor( - name='ListUptimeCheckConfigs', - full_name='google.monitoring.v3.UptimeCheckService.ListUptimeCheckConfigs', + name="UptimeCheckService", + full_name="google.monitoring.v3.UptimeCheckService", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_LISTUPTIMECHECKCONFIGSREQUEST, - output_type=_LISTUPTIMECHECKCONFIGSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002,\022*/v3/{parent=projects/*}/uptimeCheckConfigs')), - ), - _descriptor.MethodDescriptor( - name='GetUptimeCheckConfig', - full_name='google.monitoring.v3.UptimeCheckService.GetUptimeCheckConfig', - index=1, - containing_service=None, - input_type=_GETUPTIMECHECKCONFIGREQUEST, - output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKCONFIG, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002,\022*/v3/{name=projects/*/uptimeCheckConfigs/*}')), - ), - _descriptor.MethodDescriptor( - name='CreateUptimeCheckConfig', - full_name='google.monitoring.v3.UptimeCheckService.CreateUptimeCheckConfig', - index=2, - containing_service=None, - input_type=_CREATEUPTIMECHECKCONFIGREQUEST, - output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKCONFIG, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002A\"*/v3/{parent=projects/*}/uptimeCheckConfigs:\023uptime_check_config')), - ), - _descriptor.MethodDescriptor( - name='UpdateUptimeCheckConfig', - full_name='google.monitoring.v3.UptimeCheckService.UpdateUptimeCheckConfig', - index=3, - containing_service=None, - input_type=_UPDATEUPTIMECHECKCONFIGREQUEST, - output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKCONFIG, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002U2>/v3/{uptime_check_config.name=projects/*/uptimeCheckConfigs/*}:\023uptime_check_config')), - ), - _descriptor.MethodDescriptor( - name='DeleteUptimeCheckConfig', - full_name='google.monitoring.v3.UptimeCheckService.DeleteUptimeCheckConfig', - index=4, - containing_service=None, - input_type=_DELETEUPTIMECHECKCONFIGREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002,**/v3/{name=projects/*/uptimeCheckConfigs/*}')), - ), - _descriptor.MethodDescriptor( - name='ListUptimeCheckIps', - full_name='google.monitoring.v3.UptimeCheckService.ListUptimeCheckIps', - index=5, - containing_service=None, - input_type=_LISTUPTIMECHECKIPSREQUEST, - output_type=_LISTUPTIMECHECKIPSRESPONSE, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\024\022\022/v3/uptimeCheckIps')), - ), -]) + options=None, + serialized_start=1012, + serialized_end=2107, + methods=[ + _descriptor.MethodDescriptor( + name="ListUptimeCheckConfigs", + full_name="google.monitoring.v3.UptimeCheckService.ListUptimeCheckConfigs", + index=0, + containing_service=None, + input_type=_LISTUPTIMECHECKCONFIGSREQUEST, + output_type=_LISTUPTIMECHECKCONFIGSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002,\022*/v3/{parent=projects/*}/uptimeCheckConfigs" + ), + ), + ), + _descriptor.MethodDescriptor( + name="GetUptimeCheckConfig", + full_name="google.monitoring.v3.UptimeCheckService.GetUptimeCheckConfig", + index=1, + containing_service=None, + input_type=_GETUPTIMECHECKCONFIGREQUEST, + output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKCONFIG, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002,\022*/v3/{name=projects/*/uptimeCheckConfigs/*}" + ), + ), + ), + _descriptor.MethodDescriptor( + name="CreateUptimeCheckConfig", + full_name="google.monitoring.v3.UptimeCheckService.CreateUptimeCheckConfig", + index=2, + containing_service=None, + input_type=_CREATEUPTIMECHECKCONFIGREQUEST, + output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKCONFIG, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + '\202\323\344\223\002A"*/v3/{parent=projects/*}/uptimeCheckConfigs:\023uptime_check_config' + ), + ), + ), + _descriptor.MethodDescriptor( + name="UpdateUptimeCheckConfig", + full_name="google.monitoring.v3.UptimeCheckService.UpdateUptimeCheckConfig", + index=3, + containing_service=None, + input_type=_UPDATEUPTIMECHECKCONFIGREQUEST, + output_type=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2._UPTIMECHECKCONFIG, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b( + "\202\323\344\223\002U2>/v3/{uptime_check_config.name=projects/*/uptimeCheckConfigs/*}:\023uptime_check_config" + ), + ), + ), + _descriptor.MethodDescriptor( + name="DeleteUptimeCheckConfig", + full_name="google.monitoring.v3.UptimeCheckService.DeleteUptimeCheckConfig", + index=4, + containing_service=None, + input_type=_DELETEUPTIMECHECKCONFIGREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002,**/v3/{name=projects/*/uptimeCheckConfigs/*}"), + ), + ), + _descriptor.MethodDescriptor( + name="ListUptimeCheckIps", + full_name="google.monitoring.v3.UptimeCheckService.ListUptimeCheckIps", + index=5, + containing_service=None, + input_type=_LISTUPTIMECHECKIPSREQUEST, + output_type=_LISTUPTIMECHECKIPSRESPONSE, + options=_descriptor._ParseOptions( + descriptor_pb2.MethodOptions(), + _b("\202\323\344\223\002\024\022\022/v3/uptimeCheckIps"), + ), + ), + ], +) _sym_db.RegisterServiceDescriptor(_UPTIMECHECKSERVICE) -DESCRIPTOR.services_by_name['UptimeCheckService'] = _UPTIMECHECKSERVICE +DESCRIPTOR.services_by_name["UptimeCheckService"] = _UPTIMECHECKSERVICE # @@protoc_insertion_point(module_scope) diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/uptime_service_pb2_grpc.py b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/uptime_service_pb2_grpc.py index 90dccd7de6c2..ed2e70ed8fd1 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/uptime_service_pb2_grpc.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring_v3/proto/uptime_service_pb2_grpc.py @@ -1,13 +1,17 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.cloud.monitoring_v3.proto import uptime_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2 -from google.cloud.monitoring_v3.proto import uptime_service_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2 +from google.cloud.monitoring_v3.proto import ( + uptime_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2, +) +from google.cloud.monitoring_v3.proto import ( + uptime_service_pb2 as google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2, +) from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class UptimeCheckServiceStub(object): - """The UptimeCheckService API is used to manage (list, create, delete, edit) + """The UptimeCheckService API is used to manage (list, create, delete, edit) uptime check configurations in the Stackdriver Monitoring product. An uptime check is a piece of configuration that determines which resources and services to monitor for availability. These configurations can also be @@ -17,46 +21,46 @@ class UptimeCheckServiceStub(object): and then clicking on "Uptime". """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. Args: channel: A grpc.Channel. """ - self.ListUptimeCheckConfigs = channel.unary_unary( - '/google.monitoring.v3.UptimeCheckService/ListUptimeCheckConfigs', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckConfigsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckConfigsResponse.FromString, + self.ListUptimeCheckConfigs = channel.unary_unary( + "/google.monitoring.v3.UptimeCheckService/ListUptimeCheckConfigs", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckConfigsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckConfigsResponse.FromString, ) - self.GetUptimeCheckConfig = channel.unary_unary( - '/google.monitoring.v3.UptimeCheckService/GetUptimeCheckConfig', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.GetUptimeCheckConfigRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2.UptimeCheckConfig.FromString, + self.GetUptimeCheckConfig = channel.unary_unary( + "/google.monitoring.v3.UptimeCheckService/GetUptimeCheckConfig", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.GetUptimeCheckConfigRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2.UptimeCheckConfig.FromString, ) - self.CreateUptimeCheckConfig = channel.unary_unary( - '/google.monitoring.v3.UptimeCheckService/CreateUptimeCheckConfig', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.CreateUptimeCheckConfigRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2.UptimeCheckConfig.FromString, + self.CreateUptimeCheckConfig = channel.unary_unary( + "/google.monitoring.v3.UptimeCheckService/CreateUptimeCheckConfig", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.CreateUptimeCheckConfigRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2.UptimeCheckConfig.FromString, ) - self.UpdateUptimeCheckConfig = channel.unary_unary( - '/google.monitoring.v3.UptimeCheckService/UpdateUptimeCheckConfig', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.UpdateUptimeCheckConfigRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2.UptimeCheckConfig.FromString, + self.UpdateUptimeCheckConfig = channel.unary_unary( + "/google.monitoring.v3.UptimeCheckService/UpdateUptimeCheckConfig", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.UpdateUptimeCheckConfigRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2.UptimeCheckConfig.FromString, ) - self.DeleteUptimeCheckConfig = channel.unary_unary( - '/google.monitoring.v3.UptimeCheckService/DeleteUptimeCheckConfig', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.DeleteUptimeCheckConfigRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + self.DeleteUptimeCheckConfig = channel.unary_unary( + "/google.monitoring.v3.UptimeCheckService/DeleteUptimeCheckConfig", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.DeleteUptimeCheckConfigRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) - self.ListUptimeCheckIps = channel.unary_unary( - '/google.monitoring.v3.UptimeCheckService/ListUptimeCheckIps', - request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckIpsRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckIpsResponse.FromString, + self.ListUptimeCheckIps = channel.unary_unary( + "/google.monitoring.v3.UptimeCheckService/ListUptimeCheckIps", + request_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckIpsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckIpsResponse.FromString, ) class UptimeCheckServiceServicer(object): - """The UptimeCheckService API is used to manage (list, create, delete, edit) + """The UptimeCheckService API is used to manage (list, create, delete, edit) uptime check configurations in the Stackdriver Monitoring product. An uptime check is a piece of configuration that determines which resources and services to monitor for availability. These configurations can also be @@ -66,88 +70,89 @@ class UptimeCheckServiceServicer(object): and then clicking on "Uptime". """ - def ListUptimeCheckConfigs(self, request, context): - """Lists the existing valid uptime check configurations for the project, + def ListUptimeCheckConfigs(self, request, context): + """Lists the existing valid uptime check configurations for the project, leaving out any invalid configurations. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def GetUptimeCheckConfig(self, request, context): - """Gets a single uptime check configuration. + def GetUptimeCheckConfig(self, request, context): + """Gets a single uptime check configuration. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def CreateUptimeCheckConfig(self, request, context): - """Creates a new uptime check configuration. + def CreateUptimeCheckConfig(self, request, context): + """Creates a new uptime check configuration. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def UpdateUptimeCheckConfig(self, request, context): - """Updates an uptime check configuration. You can either replace the entire + def UpdateUptimeCheckConfig(self, request, context): + """Updates an uptime check configuration. You can either replace the entire configuration with a new one or replace only certain fields in the current configuration by specifying the fields to be updated via `"updateMask"`. Returns the updated configuration. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def DeleteUptimeCheckConfig(self, request, context): - """Deletes an uptime check configuration. Note that this method will fail + def DeleteUptimeCheckConfig(self, request, context): + """Deletes an uptime check configuration. Note that this method will fail if the uptime check configuration is referenced by an alert policy or other dependent configs that would be rendered invalid by the deletion. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def ListUptimeCheckIps(self, request, context): - """Returns the list of IPs that checkers run from + def ListUptimeCheckIps(self, request, context): + """Returns the list of IPs that checkers run from """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_UptimeCheckServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ListUptimeCheckConfigs': grpc.unary_unary_rpc_method_handler( - servicer.ListUptimeCheckConfigs, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckConfigsRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckConfigsResponse.SerializeToString, - ), - 'GetUptimeCheckConfig': grpc.unary_unary_rpc_method_handler( - servicer.GetUptimeCheckConfig, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.GetUptimeCheckConfigRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2.UptimeCheckConfig.SerializeToString, - ), - 'CreateUptimeCheckConfig': grpc.unary_unary_rpc_method_handler( - servicer.CreateUptimeCheckConfig, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.CreateUptimeCheckConfigRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2.UptimeCheckConfig.SerializeToString, - ), - 'UpdateUptimeCheckConfig': grpc.unary_unary_rpc_method_handler( - servicer.UpdateUptimeCheckConfig, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.UpdateUptimeCheckConfigRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2.UptimeCheckConfig.SerializeToString, - ), - 'DeleteUptimeCheckConfig': grpc.unary_unary_rpc_method_handler( - servicer.DeleteUptimeCheckConfig, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.DeleteUptimeCheckConfigRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - 'ListUptimeCheckIps': grpc.unary_unary_rpc_method_handler( - servicer.ListUptimeCheckIps, - request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckIpsRequest.FromString, - response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckIpsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.monitoring.v3.UptimeCheckService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "ListUptimeCheckConfigs": grpc.unary_unary_rpc_method_handler( + servicer.ListUptimeCheckConfigs, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckConfigsRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckConfigsResponse.SerializeToString, + ), + "GetUptimeCheckConfig": grpc.unary_unary_rpc_method_handler( + servicer.GetUptimeCheckConfig, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.GetUptimeCheckConfigRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2.UptimeCheckConfig.SerializeToString, + ), + "CreateUptimeCheckConfig": grpc.unary_unary_rpc_method_handler( + servicer.CreateUptimeCheckConfig, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.CreateUptimeCheckConfigRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2.UptimeCheckConfig.SerializeToString, + ), + "UpdateUptimeCheckConfig": grpc.unary_unary_rpc_method_handler( + servicer.UpdateUptimeCheckConfig, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.UpdateUptimeCheckConfigRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__pb2.UptimeCheckConfig.SerializeToString, + ), + "DeleteUptimeCheckConfig": grpc.unary_unary_rpc_method_handler( + servicer.DeleteUptimeCheckConfig, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.DeleteUptimeCheckConfigRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "ListUptimeCheckIps": grpc.unary_unary_rpc_method_handler( + servicer.ListUptimeCheckIps, + request_deserializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckIpsRequest.FromString, + response_serializer=google_dot_cloud_dot_monitoring__v3_dot_proto_dot_uptime__service__pb2.ListUptimeCheckIpsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.monitoring.v3.UptimeCheckService", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,))