google-cloud-monitoring-v3 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6b7a0de040f975ac5fd6e4d7e2042f7b2fcbd3c53ac448fad690bf08925bdd76
4
- data.tar.gz: e2c83be0585f10fbde045bd459d8d09735594bc5dac918638e05213e4308f461
3
+ metadata.gz: 9ea82e6eee819aeab257d1b3454988994a2b721f51b92735924a2925d236d515
4
+ data.tar.gz: 31651636d5aa0fe098f1d5582b46977be26baae6d329c5fe297689311c6c1b92
5
5
  SHA512:
6
- metadata.gz: 11e068d1566f5fd49f0ae26ed33734f28bd792fc632b97dc11d7c63b45fd2a904234d413e7f5642bf70b49568190f9fa7c6d6f8e8b5712c588abc7ea5b936453
7
- data.tar.gz: 3fb9406866a8e8cfd65bc793ad7ef6437e14cede76b7154023ac4e143ac0bbd13dbe81cb062075978742611e1e696e3634de23d41b23bc5601a5e8e9df60e30a
6
+ metadata.gz: 6bc97efd999089c50d700449b6cb632574dd293fb557b00d1ddaf0a0b3614d3caecd8064dfc01018fa576c7f55e26cd0f473793a101a2ca50bccb7ac37066b61
7
+ data.tar.gz: cf6c3262bdab9ca87049a638feab869980359ff9c2630d9f7d1defc26bb5e48bbf8538d7ab1dade54514427b4a93081ed6175160bac33fa2a8308072947ff306
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Monitoring
23
23
  module V3
24
- VERSION = "0.11.0"
24
+ VERSION = "0.12.0"
25
25
  end
26
26
  end
27
27
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/monitoring/v3/alert.proto
3
4
 
@@ -11,89 +12,36 @@ require 'google/protobuf/duration_pb'
11
12
  require 'google/protobuf/wrappers_pb'
12
13
  require 'google/rpc/status_pb'
13
14
 
14
- Google::Protobuf::DescriptorPool.generated_pool.build do
15
- add_file("google/monitoring/v3/alert.proto", :syntax => :proto3) do
16
- add_message "google.monitoring.v3.AlertPolicy" do
17
- optional :name, :string, 1
18
- optional :display_name, :string, 2
19
- optional :documentation, :message, 13, "google.monitoring.v3.AlertPolicy.Documentation"
20
- map :user_labels, :string, :string, 16
21
- repeated :conditions, :message, 12, "google.monitoring.v3.AlertPolicy.Condition"
22
- optional :combiner, :enum, 6, "google.monitoring.v3.AlertPolicy.ConditionCombinerType"
23
- optional :enabled, :message, 17, "google.protobuf.BoolValue"
24
- optional :validity, :message, 18, "google.rpc.Status"
25
- repeated :notification_channels, :string, 14
26
- optional :creation_record, :message, 10, "google.monitoring.v3.MutationRecord"
27
- optional :mutation_record, :message, 11, "google.monitoring.v3.MutationRecord"
28
- optional :alert_strategy, :message, 21, "google.monitoring.v3.AlertPolicy.AlertStrategy"
29
- end
30
- add_message "google.monitoring.v3.AlertPolicy.Documentation" do
31
- optional :content, :string, 1
32
- optional :mime_type, :string, 2
33
- end
34
- add_message "google.monitoring.v3.AlertPolicy.Condition" do
35
- optional :name, :string, 12
36
- optional :display_name, :string, 6
37
- oneof :condition do
38
- optional :condition_threshold, :message, 1, "google.monitoring.v3.AlertPolicy.Condition.MetricThreshold"
39
- optional :condition_absent, :message, 2, "google.monitoring.v3.AlertPolicy.Condition.MetricAbsence"
40
- optional :condition_matched_log, :message, 20, "google.monitoring.v3.AlertPolicy.Condition.LogMatch"
41
- optional :condition_monitoring_query_language, :message, 19, "google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition"
42
- end
43
- end
44
- add_message "google.monitoring.v3.AlertPolicy.Condition.Trigger" do
45
- oneof :type do
46
- optional :count, :int32, 1
47
- optional :percent, :double, 2
48
- end
49
- end
50
- add_message "google.monitoring.v3.AlertPolicy.Condition.MetricThreshold" do
51
- optional :filter, :string, 2
52
- repeated :aggregations, :message, 8, "google.monitoring.v3.Aggregation"
53
- optional :denominator_filter, :string, 9
54
- repeated :denominator_aggregations, :message, 10, "google.monitoring.v3.Aggregation"
55
- optional :comparison, :enum, 4, "google.monitoring.v3.ComparisonType"
56
- optional :threshold_value, :double, 5
57
- optional :duration, :message, 6, "google.protobuf.Duration"
58
- optional :trigger, :message, 7, "google.monitoring.v3.AlertPolicy.Condition.Trigger"
59
- optional :evaluation_missing_data, :enum, 11, "google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData"
60
- end
61
- add_message "google.monitoring.v3.AlertPolicy.Condition.MetricAbsence" do
62
- optional :filter, :string, 1
63
- repeated :aggregations, :message, 5, "google.monitoring.v3.Aggregation"
64
- optional :duration, :message, 2, "google.protobuf.Duration"
65
- optional :trigger, :message, 3, "google.monitoring.v3.AlertPolicy.Condition.Trigger"
66
- end
67
- add_message "google.monitoring.v3.AlertPolicy.Condition.LogMatch" do
68
- optional :filter, :string, 1
69
- map :label_extractors, :string, :string, 2
70
- end
71
- add_message "google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition" do
72
- optional :query, :string, 1
73
- optional :duration, :message, 2, "google.protobuf.Duration"
74
- optional :trigger, :message, 3, "google.monitoring.v3.AlertPolicy.Condition.Trigger"
75
- optional :evaluation_missing_data, :enum, 4, "google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData"
76
- end
77
- add_enum "google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData" do
78
- value :EVALUATION_MISSING_DATA_UNSPECIFIED, 0
79
- value :EVALUATION_MISSING_DATA_INACTIVE, 1
80
- value :EVALUATION_MISSING_DATA_ACTIVE, 2
81
- value :EVALUATION_MISSING_DATA_NO_OP, 3
82
- end
83
- add_message "google.monitoring.v3.AlertPolicy.AlertStrategy" do
84
- optional :notification_rate_limit, :message, 1, "google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit"
85
- optional :auto_close, :message, 3, "google.protobuf.Duration"
86
- end
87
- add_message "google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit" do
88
- optional :period, :message, 1, "google.protobuf.Duration"
89
- end
90
- add_enum "google.monitoring.v3.AlertPolicy.ConditionCombinerType" do
91
- value :COMBINE_UNSPECIFIED, 0
92
- value :AND, 1
93
- value :OR, 2
94
- value :AND_WITH_MATCHING_RESOURCE, 3
15
+
16
+ descriptor_data = "\n google/monitoring/v3/alert.proto\x12\x14google.monitoring.v3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a!google/monitoring/v3/common.proto\x1a*google/monitoring/v3/mutation_record.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"\xdb\x1a\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$\n\x08validity\x18\x12 \x01(\x0b\x32\x12.google.rpc.Status\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\x12G\n\x0e\x61lert_strategy\x18\x15 \x01(\x0b\x32/.google.monitoring.v3.AlertPolicy.AlertStrategy\x1a\x33\n\rDocumentation\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x11\n\tmime_type\x18\x02 \x01(\t\x1a\xce\x10\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\x12U\n\x15\x63ondition_matched_log\x18\x14 \x01(\x0b\x32\x34.google.monitoring.v3.AlertPolicy.Condition.LogMatchH\x00\x12{\n#condition_monitoring_query_language\x18\x13 \x01(\x0b\x32L.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageConditionH\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\xea\x03\n\x0fMetricThreshold\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x02\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\x12\x62\n\x17\x65valuation_missing_data\x18\x0b \x01(\x0e\x32\x41.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData\x1a\xd0\x01\n\rMetricAbsence\x12\x13\n\x06\x66ilter\x18\x01 \x01(\tB\x03\xe0\x41\x02\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.Trigger\x1a\xbc\x01\n\x08LogMatch\x12\x13\n\x06\x66ilter\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x63\n\x10label_extractors\x18\x02 \x03(\x0b\x32I.google.monitoring.v3.AlertPolicy.Condition.LogMatch.LabelExtractorsEntry\x1a\x36\n\x14LabelExtractorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x88\x02\n MonitoringQueryLanguageCondition\x12\r\n\x05query\x18\x01 \x01(\t\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.Trigger\x12\x62\n\x17\x65valuation_missing_data\x18\x04 \x01(\x0e\x32\x41.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData\"\xad\x01\n\x15\x45valuationMissingData\x12\'\n#EVALUATION_MISSING_DATA_UNSPECIFIED\x10\x00\x12$\n EVALUATION_MISSING_DATA_INACTIVE\x10\x01\x12\"\n\x1e\x45VALUATION_MISSING_DATA_ACTIVE\x10\x02\x12!\n\x1d\x45VALUATION_MISSING_DATA_NO_OP\x10\x03:\x97\x02\xea\x41\x93\x02\n.monitoring.googleapis.com/AlertPolicyCondition\x12\x46projects/{project}/alertPolicies/{alert_policy}/conditions/{condition}\x12Porganizations/{organization}/alertPolicies/{alert_policy}/conditions/{condition}\x12\x44\x66olders/{folder}/alertPolicies/{alert_policy}/conditions/{condition}\x12\x01*B\x0b\n\tcondition\x1a\xea\x01\n\rAlertStrategy\x12\x66\n\x17notification_rate_limit\x18\x01 \x01(\x0b\x32\x45.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit\x12-\n\nauto_close\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x1a\x42\n\x15NotificationRateLimit\x12)\n\x06period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\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:\xc9\x01\xea\x41\xc5\x01\n%monitoring.googleapis.com/AlertPolicy\x12/projects/{project}/alertPolicies/{alert_policy}\x12\x39organizations/{organization}/alertPolicies/{alert_policy}\x12-folders/{folder}/alertPolicies/{alert_policy}\x12\x01*B\xc5\x01\n\x18\x63om.google.monitoring.v3B\nAlertProtoP\x01ZAcloud.google.com/go/monitoring/apiv3/v2/monitoringpb;monitoringpb\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3"
17
+
18
+ pool = Google::Protobuf::DescriptorPool.generated_pool
19
+
20
+ begin
21
+ pool.add_serialized_file(descriptor_data)
22
+ rescue TypeError => e
23
+ # Compatibility code: will be removed in the next major version.
24
+ require 'google/protobuf/descriptor_pb'
25
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
26
+ parsed.clear_dependency
27
+ serialized = parsed.class.encode(parsed)
28
+ file = pool.add_serialized_file(serialized)
29
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
30
+ imports = [
31
+ ["google.protobuf.BoolValue", "google/protobuf/wrappers.proto"],
32
+ ["google.rpc.Status", "google/rpc/status.proto"],
33
+ ["google.monitoring.v3.MutationRecord", "google/monitoring/v3/mutation_record.proto"],
34
+ ["google.monitoring.v3.Aggregation", "google/monitoring/v3/common.proto"],
35
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
36
+ ]
37
+ imports.each do |type_name, expected_filename|
38
+ import_file = pool.lookup(type_name).file_descriptor
39
+ if import_file.name != expected_filename
40
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
95
41
  end
96
42
  end
43
+ warn "Each proto file must use a consistent fully-qualified name."
44
+ warn "This will become an error in the next major version."
97
45
  end
98
46
 
99
47
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/monitoring/v3/alert_service.proto
3
4
 
@@ -11,35 +12,33 @@ require 'google/monitoring/v3/alert_pb'
11
12
  require 'google/protobuf/empty_pb'
12
13
  require 'google/protobuf/field_mask_pb'
13
14
 
14
- Google::Protobuf::DescriptorPool.generated_pool.build do
15
- add_file("google/monitoring/v3/alert_service.proto", :syntax => :proto3) do
16
- add_message "google.monitoring.v3.CreateAlertPolicyRequest" do
17
- optional :name, :string, 3
18
- optional :alert_policy, :message, 2, "google.monitoring.v3.AlertPolicy"
19
- end
20
- add_message "google.monitoring.v3.GetAlertPolicyRequest" do
21
- optional :name, :string, 3
22
- end
23
- add_message "google.monitoring.v3.ListAlertPoliciesRequest" do
24
- optional :name, :string, 4
25
- optional :filter, :string, 5
26
- optional :order_by, :string, 6
27
- optional :page_size, :int32, 2
28
- optional :page_token, :string, 3
29
- end
30
- add_message "google.monitoring.v3.ListAlertPoliciesResponse" do
31
- repeated :alert_policies, :message, 3, "google.monitoring.v3.AlertPolicy"
32
- optional :next_page_token, :string, 2
33
- optional :total_size, :int32, 4
34
- end
35
- add_message "google.monitoring.v3.UpdateAlertPolicyRequest" do
36
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
37
- optional :alert_policy, :message, 3, "google.monitoring.v3.AlertPolicy"
38
- end
39
- add_message "google.monitoring.v3.DeleteAlertPolicyRequest" do
40
- optional :name, :string, 3
15
+
16
+ descriptor_data = "\n(google/monitoring/v3/alert_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/monitoring/v3/alert.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x95\x01\n\x18\x43reateAlertPolicyRequest\x12;\n\x04name\x18\x03 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%monitoring.googleapis.com/AlertPolicy\x12<\n\x0c\x61lert_policy\x18\x02 \x01(\x0b\x32!.google.monitoring.v3.AlertPolicyB\x03\xe0\x41\x02\"T\n\x15GetAlertPolicyRequest\x12;\n\x04name\x18\x03 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%monitoring.googleapis.com/AlertPolicy\"\xa0\x01\n\x18ListAlertPoliciesRequest\x12;\n\x04name\x18\x04 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%monitoring.googleapis.com/AlertPolicy\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\"\x83\x01\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\x12\x12\n\ntotal_size\x18\x04 \x01(\x05\"\x89\x01\n\x18UpdateAlertPolicyRequest\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12<\n\x0c\x61lert_policy\x18\x03 \x01(\x0b\x32!.google.monitoring.v3.AlertPolicyB\x03\xe0\x41\x02\"W\n\x18\x44\x65leteAlertPolicyRequest\x12;\n\x04name\x18\x03 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%monitoring.googleapis.com/AlertPolicy2\x9e\x08\n\x12\x41lertPolicyService\x12\xa8\x01\n\x11ListAlertPolicies\x12..google.monitoring.v3.ListAlertPoliciesRequest\x1a/.google.monitoring.v3.ListAlertPoliciesResponse\"2\x82\xd3\xe4\x93\x02%\x12#/v3/{name=projects/*}/alertPolicies\xda\x41\x04name\x12\x96\x01\n\x0eGetAlertPolicy\x12+.google.monitoring.v3.GetAlertPolicyRequest\x1a!.google.monitoring.v3.AlertPolicy\"4\x82\xd3\xe4\x93\x02\'\x12%/v3/{name=projects/*/alertPolicies/*}\xda\x41\x04name\x12\xb5\x01\n\x11\x43reateAlertPolicy\x12..google.monitoring.v3.CreateAlertPolicyRequest\x1a!.google.monitoring.v3.AlertPolicy\"M\x82\xd3\xe4\x93\x02\x33\"#/v3/{name=projects/*}/alertPolicies:\x0c\x61lert_policy\xda\x41\x11name,alert_policy\x12\x91\x01\n\x11\x44\x65leteAlertPolicy\x12..google.monitoring.v3.DeleteAlertPolicyRequest\x1a\x16.google.protobuf.Empty\"4\x82\xd3\xe4\x93\x02\'*%/v3/{name=projects/*/alertPolicies/*}\xda\x41\x04name\x12\xcb\x01\n\x11UpdateAlertPolicy\x12..google.monitoring.v3.UpdateAlertPolicyRequest\x1a!.google.monitoring.v3.AlertPolicy\"c\x82\xd3\xe4\x93\x02\x42\x32\x32/v3/{alert_policy.name=projects/*/alertPolicies/*}:\x0c\x61lert_policy\xda\x41\x18update_mask,alert_policy\x1a\xa9\x01\xca\x41\x19monitoring.googleapis.com\xd2\x41\x89\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.readB\xcc\x01\n\x18\x63om.google.monitoring.v3B\x11\x41lertServiceProtoP\x01ZAcloud.google.com/go/monitoring/apiv3/v2/monitoringpb;monitoringpb\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3"
17
+
18
+ pool = Google::Protobuf::DescriptorPool.generated_pool
19
+
20
+ begin
21
+ pool.add_serialized_file(descriptor_data)
22
+ rescue TypeError => e
23
+ # Compatibility code: will be removed in the next major version.
24
+ require 'google/protobuf/descriptor_pb'
25
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
26
+ parsed.clear_dependency
27
+ serialized = parsed.class.encode(parsed)
28
+ file = pool.add_serialized_file(serialized)
29
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
30
+ imports = [
31
+ ["google.monitoring.v3.AlertPolicy", "google/monitoring/v3/alert.proto"],
32
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
33
+ ]
34
+ imports.each do |type_name, expected_filename|
35
+ import_file = pool.lookup(type_name).file_descriptor
36
+ if import_file.name != expected_filename
37
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
41
38
  end
42
39
  end
40
+ warn "Each proto file must use a consistent fully-qualified name."
41
+ warn "This will become an error in the next major version."
43
42
  end
44
43
 
45
44
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/monitoring/v3/common.proto
3
4
 
@@ -7,79 +8,34 @@ require 'google/api/distribution_pb'
7
8
  require 'google/protobuf/duration_pb'
8
9
  require 'google/protobuf/timestamp_pb'
9
10
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("google/monitoring/v3/common.proto", :syntax => :proto3) do
12
- add_message "google.monitoring.v3.TypedValue" do
13
- oneof :value do
14
- optional :bool_value, :bool, 1
15
- optional :int64_value, :int64, 2
16
- optional :double_value, :double, 3
17
- optional :string_value, :string, 4
18
- optional :distribution_value, :message, 5, "google.api.Distribution"
19
- end
20
- end
21
- add_message "google.monitoring.v3.TimeInterval" do
22
- optional :end_time, :message, 2, "google.protobuf.Timestamp"
23
- optional :start_time, :message, 1, "google.protobuf.Timestamp"
24
- end
25
- add_message "google.monitoring.v3.Aggregation" do
26
- optional :alignment_period, :message, 1, "google.protobuf.Duration"
27
- optional :per_series_aligner, :enum, 2, "google.monitoring.v3.Aggregation.Aligner"
28
- optional :cross_series_reducer, :enum, 4, "google.monitoring.v3.Aggregation.Reducer"
29
- repeated :group_by_fields, :string, 5
30
- end
31
- add_enum "google.monitoring.v3.Aggregation.Aligner" do
32
- value :ALIGN_NONE, 0
33
- value :ALIGN_DELTA, 1
34
- value :ALIGN_RATE, 2
35
- value :ALIGN_INTERPOLATE, 3
36
- value :ALIGN_NEXT_OLDER, 4
37
- value :ALIGN_MIN, 10
38
- value :ALIGN_MAX, 11
39
- value :ALIGN_MEAN, 12
40
- value :ALIGN_COUNT, 13
41
- value :ALIGN_SUM, 14
42
- value :ALIGN_STDDEV, 15
43
- value :ALIGN_COUNT_TRUE, 16
44
- value :ALIGN_COUNT_FALSE, 24
45
- value :ALIGN_FRACTION_TRUE, 17
46
- value :ALIGN_PERCENTILE_99, 18
47
- value :ALIGN_PERCENTILE_95, 19
48
- value :ALIGN_PERCENTILE_50, 20
49
- value :ALIGN_PERCENTILE_05, 21
50
- value :ALIGN_PERCENT_CHANGE, 23
51
- end
52
- add_enum "google.monitoring.v3.Aggregation.Reducer" do
53
- value :REDUCE_NONE, 0
54
- value :REDUCE_MEAN, 1
55
- value :REDUCE_MIN, 2
56
- value :REDUCE_MAX, 3
57
- value :REDUCE_SUM, 4
58
- value :REDUCE_STDDEV, 5
59
- value :REDUCE_COUNT, 6
60
- value :REDUCE_COUNT_TRUE, 7
61
- value :REDUCE_COUNT_FALSE, 15
62
- value :REDUCE_FRACTION_TRUE, 8
63
- value :REDUCE_PERCENTILE_99, 9
64
- value :REDUCE_PERCENTILE_95, 10
65
- value :REDUCE_PERCENTILE_50, 11
66
- value :REDUCE_PERCENTILE_05, 12
67
- end
68
- add_enum "google.monitoring.v3.ComparisonType" do
69
- value :COMPARISON_UNSPECIFIED, 0
70
- value :COMPARISON_GT, 1
71
- value :COMPARISON_GE, 2
72
- value :COMPARISON_LT, 3
73
- value :COMPARISON_LE, 4
74
- value :COMPARISON_EQ, 5
75
- value :COMPARISON_NE, 6
76
- end
77
- add_enum "google.monitoring.v3.ServiceTier" do
78
- value :SERVICE_TIER_UNSPECIFIED, 0
79
- value :SERVICE_TIER_BASIC, 1
80
- value :SERVICE_TIER_PREMIUM, 2
11
+
12
+ descriptor_data = "\n!google/monitoring/v3/common.proto\x12\x14google.monitoring.v3\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\xc6\x01\n\x18\x63om.google.monitoring.v3B\x0b\x43ommonProtoP\x01ZAcloud.google.com/go/monitoring/apiv3/v2/monitoringpb;monitoringpb\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3"
13
+
14
+ pool = Google::Protobuf::DescriptorPool.generated_pool
15
+
16
+ begin
17
+ pool.add_serialized_file(descriptor_data)
18
+ rescue TypeError => e
19
+ # Compatibility code: will be removed in the next major version.
20
+ require 'google/protobuf/descriptor_pb'
21
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
22
+ parsed.clear_dependency
23
+ serialized = parsed.class.encode(parsed)
24
+ file = pool.add_serialized_file(serialized)
25
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
26
+ imports = [
27
+ ["google.api.Distribution", "google/api/distribution.proto"],
28
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
29
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
81
35
  end
82
36
  end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
83
39
  end
84
40
 
85
41
  module Google
@@ -1,14 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/monitoring/v3/dropped_labels.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/monitoring/v3/dropped_labels.proto", :syntax => :proto3) do
8
- add_message "google.monitoring.v3.DroppedLabels" do
9
- map :label, :string, :string, 1
7
+
8
+ descriptor_data = "\n)google/monitoring/v3/dropped_labels.proto\x12\x14google.monitoring.v3\"|\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\xcd\x01\n\x18\x63om.google.monitoring.v3B\x12\x44roppedLabelsProtoP\x01ZAcloud.google.com/go/monitoring/apiv3/v2/monitoringpb;monitoringpb\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
10
28
  end
11
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
12
32
  end
13
33
 
14
34
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/monitoring/v3/group.proto
3
4
 
@@ -5,16 +6,31 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/api/resource_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/monitoring/v3/group.proto", :syntax => :proto3) do
10
- add_message "google.monitoring.v3.Group" do
11
- optional :name, :string, 1
12
- optional :display_name, :string, 2
13
- optional :parent_name, :string, 3
14
- optional :filter, :string, 5
15
- optional :is_cluster, :bool, 6
9
+
10
+ descriptor_data = "\n google/monitoring/v3/group.proto\x12\x14google.monitoring.v3\x1a\x19google/api/resource.proto\"\x80\x02\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:\x99\x01\xea\x41\x95\x01\n\x1fmonitoring.googleapis.com/Group\x12!projects/{project}/groups/{group}\x12+organizations/{organization}/groups/{group}\x12\x1f\x66olders/{folder}/groups/{group}\x12\x01*B\xc5\x01\n\x18\x63om.google.monitoring.v3B\nGroupProtoP\x01ZAcloud.google.com/go/monitoring/apiv3/v2/monitoringpb;monitoringpb\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ]
26
+ imports.each do |type_name, expected_filename|
27
+ import_file = pool.lookup(type_name).file_descriptor
28
+ if import_file.name != expected_filename
29
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
16
30
  end
17
31
  end
32
+ warn "Each proto file must use a consistent fully-qualified name."
33
+ warn "This will become an error in the next major version."
18
34
  end
19
35
 
20
36
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/monitoring/v3/group_service.proto
3
4
 
@@ -12,51 +13,34 @@ require 'google/monitoring/v3/common_pb'
12
13
  require 'google/monitoring/v3/group_pb'
13
14
  require 'google/protobuf/empty_pb'
14
15
 
15
- Google::Protobuf::DescriptorPool.generated_pool.build do
16
- add_file("google/monitoring/v3/group_service.proto", :syntax => :proto3) do
17
- add_message "google.monitoring.v3.ListGroupsRequest" do
18
- optional :name, :string, 7
19
- optional :page_size, :int32, 5
20
- optional :page_token, :string, 6
21
- oneof :filter do
22
- optional :children_of_group, :string, 2
23
- optional :ancestors_of_group, :string, 3
24
- optional :descendants_of_group, :string, 4
25
- end
26
- end
27
- add_message "google.monitoring.v3.ListGroupsResponse" do
28
- repeated :group, :message, 1, "google.monitoring.v3.Group"
29
- optional :next_page_token, :string, 2
30
- end
31
- add_message "google.monitoring.v3.GetGroupRequest" do
32
- optional :name, :string, 3
33
- end
34
- add_message "google.monitoring.v3.CreateGroupRequest" do
35
- optional :name, :string, 4
36
- optional :group, :message, 2, "google.monitoring.v3.Group"
37
- optional :validate_only, :bool, 3
38
- end
39
- add_message "google.monitoring.v3.UpdateGroupRequest" do
40
- optional :group, :message, 2, "google.monitoring.v3.Group"
41
- optional :validate_only, :bool, 3
42
- end
43
- add_message "google.monitoring.v3.DeleteGroupRequest" do
44
- optional :name, :string, 3
45
- optional :recursive, :bool, 4
46
- end
47
- add_message "google.monitoring.v3.ListGroupMembersRequest" do
48
- optional :name, :string, 7
49
- optional :page_size, :int32, 3
50
- optional :page_token, :string, 4
51
- optional :filter, :string, 5
52
- optional :interval, :message, 6, "google.monitoring.v3.TimeInterval"
53
- end
54
- add_message "google.monitoring.v3.ListGroupMembersResponse" do
55
- repeated :members, :message, 1, "google.api.MonitoredResource"
56
- optional :next_page_token, :string, 2
57
- optional :total_size, :int32, 3
16
+
17
+ descriptor_data = "\n(google/monitoring/v3/group_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a#google/api/monitored_resource.proto\x1a\x19google/api/resource.proto\x1a!google/monitoring/v3/common.proto\x1a google/monitoring/v3/group.proto\x1a\x1bgoogle/protobuf/empty.proto\"\xc8\x02\n\x11ListGroupsRequest\x12\x35\n\x04name\x18\x07 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1fmonitoring.googleapis.com/Group\x12\x41\n\x11\x63hildren_of_group\x18\x02 \x01(\tB$\xfa\x41!\n\x1fmonitoring.googleapis.com/GroupH\x00\x12\x42\n\x12\x61ncestors_of_group\x18\x03 \x01(\tB$\xfa\x41!\n\x1fmonitoring.googleapis.com/GroupH\x00\x12\x44\n\x14\x64\x65scendants_of_group\x18\x04 \x01(\tB$\xfa\x41!\n\x1fmonitoring.googleapis.com/GroupH\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\"H\n\x0fGetGroupRequest\x12\x35\n\x04name\x18\x03 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fmonitoring.googleapis.com/Group\"\x93\x01\n\x12\x43reateGroupRequest\x12\x35\n\x04name\x18\x04 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1fmonitoring.googleapis.com/Group\x12/\n\x05group\x18\x02 \x01(\x0b\x32\x1b.google.monitoring.v3.GroupB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\\\n\x12UpdateGroupRequest\x12/\n\x05group\x18\x02 \x01(\x0b\x32\x1b.google.monitoring.v3.GroupB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"^\n\x12\x44\x65leteGroupRequest\x12\x35\n\x04name\x18\x03 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fmonitoring.googleapis.com/Group\x12\x11\n\trecursive\x18\x04 \x01(\x08\"\xbd\x01\n\x17ListGroupMembersRequest\x12\x35\n\x04name\x18\x07 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fmonitoring.googleapis.com/Group\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\x98\x08\n\x0cGroupService\x12\x8c\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\xda\x41\x04name\x12}\n\x08GetGroup\x12%.google.monitoring.v3.GetGroupRequest\x1a\x1b.google.monitoring.v3.Group\"-\x82\xd3\xe4\x93\x02 \x12\x1e/v3/{name=projects/*/groups/*}\xda\x41\x04name\x12\x8e\x01\n\x0b\x43reateGroup\x12(.google.monitoring.v3.CreateGroupRequest\x1a\x1b.google.monitoring.v3.Group\"8\x82\xd3\xe4\x93\x02%\"\x1c/v3/{name=projects/*}/groups:\x05group\xda\x41\nname,group\x12\x91\x01\n\x0bUpdateGroup\x12(.google.monitoring.v3.UpdateGroupRequest\x1a\x1b.google.monitoring.v3.Group\";\x82\xd3\xe4\x93\x02-\x1a$/v3/{group.name=projects/*/groups/*}:\x05group\xda\x41\x05group\x12~\n\x0b\x44\x65leteGroup\x12(.google.monitoring.v3.DeleteGroupRequest\x1a\x16.google.protobuf.Empty\"-\x82\xd3\xe4\x93\x02 *\x1e/v3/{name=projects/*/groups/*}\xda\x41\x04name\x12\xa8\x01\n\x10ListGroupMembers\x12-.google.monitoring.v3.ListGroupMembersRequest\x1a..google.monitoring.v3.ListGroupMembersResponse\"5\x82\xd3\xe4\x93\x02(\x12&/v3/{name=projects/*/groups/*}/members\xda\x41\x04name\x1a\xa9\x01\xca\x41\x19monitoring.googleapis.com\xd2\x41\x89\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.readB\xcc\x01\n\x18\x63om.google.monitoring.v3B\x11GroupServiceProtoP\x01ZAcloud.google.com/go/monitoring/apiv3/v2/monitoringpb;monitoringpb\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3"
18
+
19
+ pool = Google::Protobuf::DescriptorPool.generated_pool
20
+
21
+ begin
22
+ pool.add_serialized_file(descriptor_data)
23
+ rescue TypeError => e
24
+ # Compatibility code: will be removed in the next major version.
25
+ require 'google/protobuf/descriptor_pb'
26
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
27
+ parsed.clear_dependency
28
+ serialized = parsed.class.encode(parsed)
29
+ file = pool.add_serialized_file(serialized)
30
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
31
+ imports = [
32
+ ["google.monitoring.v3.Group", "google/monitoring/v3/group.proto"],
33
+ ["google.monitoring.v3.TimeInterval", "google/monitoring/v3/common.proto"],
34
+ ["google.api.MonitoredResource", "google/api/monitored_resource.proto"],
35
+ ]
36
+ imports.each do |type_name, expected_filename|
37
+ import_file = pool.lookup(type_name).file_descriptor
38
+ if import_file.name != expected_filename
39
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
58
40
  end
59
41
  end
42
+ warn "Each proto file must use a consistent fully-qualified name."
43
+ warn "This will become an error in the next major version."
60
44
  end
61
45
 
62
46
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/monitoring/v3/metric.proto
3
4
 
@@ -8,62 +9,35 @@ require 'google/api/metric_pb'
8
9
  require 'google/api/monitored_resource_pb'
9
10
  require 'google/monitoring/v3/common_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/monitoring/v3/metric.proto", :syntax => :proto3) do
13
- add_message "google.monitoring.v3.Point" do
14
- optional :interval, :message, 1, "google.monitoring.v3.TimeInterval"
15
- optional :value, :message, 2, "google.monitoring.v3.TypedValue"
16
- end
17
- add_message "google.monitoring.v3.TimeSeries" do
18
- optional :metric, :message, 1, "google.api.Metric"
19
- optional :resource, :message, 2, "google.api.MonitoredResource"
20
- optional :metadata, :message, 7, "google.api.MonitoredResourceMetadata"
21
- optional :metric_kind, :enum, 3, "google.api.MetricDescriptor.MetricKind"
22
- optional :value_type, :enum, 4, "google.api.MetricDescriptor.ValueType"
23
- repeated :points, :message, 5, "google.monitoring.v3.Point"
24
- optional :unit, :string, 8
25
- end
26
- add_message "google.monitoring.v3.TimeSeriesDescriptor" do
27
- repeated :label_descriptors, :message, 1, "google.api.LabelDescriptor"
28
- repeated :point_descriptors, :message, 5, "google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor"
29
- end
30
- add_message "google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor" do
31
- optional :key, :string, 1
32
- optional :value_type, :enum, 2, "google.api.MetricDescriptor.ValueType"
33
- optional :metric_kind, :enum, 3, "google.api.MetricDescriptor.MetricKind"
34
- optional :unit, :string, 4
35
- end
36
- add_message "google.monitoring.v3.TimeSeriesData" do
37
- repeated :label_values, :message, 1, "google.monitoring.v3.LabelValue"
38
- repeated :point_data, :message, 2, "google.monitoring.v3.TimeSeriesData.PointData"
39
- end
40
- add_message "google.monitoring.v3.TimeSeriesData.PointData" do
41
- repeated :values, :message, 1, "google.monitoring.v3.TypedValue"
42
- optional :time_interval, :message, 2, "google.monitoring.v3.TimeInterval"
43
- end
44
- add_message "google.monitoring.v3.LabelValue" do
45
- oneof :value do
46
- optional :bool_value, :bool, 1
47
- optional :int64_value, :int64, 2
48
- optional :string_value, :string, 3
49
- end
50
- end
51
- add_message "google.monitoring.v3.QueryError" do
52
- optional :locator, :message, 1, "google.monitoring.v3.TextLocator"
53
- optional :message, :string, 2
54
- end
55
- add_message "google.monitoring.v3.TextLocator" do
56
- optional :source, :string, 1
57
- optional :start_position, :message, 2, "google.monitoring.v3.TextLocator.Position"
58
- optional :end_position, :message, 3, "google.monitoring.v3.TextLocator.Position"
59
- optional :nested_locator, :message, 4, "google.monitoring.v3.TextLocator"
60
- optional :nesting_reason, :string, 5
61
- end
62
- add_message "google.monitoring.v3.TextLocator.Position" do
63
- optional :line, :int32, 1
64
- optional :column, :int32, 2
12
+
13
+ descriptor_data = "\n!google/monitoring/v3/metric.proto\x12\x14google.monitoring.v3\x1a\x16google/api/label.proto\x1a\x17google/api/metric.proto\x1a#google/api/monitored_resource.proto\x1a!google/monitoring/v3/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\"\xcf\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.Point\x12\x0c\n\x04unit\x18\x08 \x01(\t\"\xce\x02\n\x14TimeSeriesDescriptor\x12\x36\n\x11label_descriptors\x18\x01 \x03(\x0b\x32\x1b.google.api.LabelDescriptor\x12U\n\x11point_descriptors\x18\x05 \x03(\x0b\x32:.google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor\x1a\xa6\x01\n\x0fValueDescriptor\x12\x0b\n\x03key\x18\x01 \x01(\t\x12:\n\nvalue_type\x18\x02 \x01(\x0e\x32&.google.api.MetricDescriptor.ValueType\x12<\n\x0bmetric_kind\x18\x03 \x01(\x0e\x32\'.google.api.MetricDescriptor.MetricKind\x12\x0c\n\x04unit\x18\x04 \x01(\t\"\x86\x02\n\x0eTimeSeriesData\x12\x36\n\x0clabel_values\x18\x01 \x03(\x0b\x32 .google.monitoring.v3.LabelValue\x12\x42\n\npoint_data\x18\x02 \x03(\x0b\x32..google.monitoring.v3.TimeSeriesData.PointData\x1ax\n\tPointData\x12\x30\n\x06values\x18\x01 \x03(\x0b\x32 .google.monitoring.v3.TypedValue\x12\x39\n\rtime_interval\x18\x02 \x01(\x0b\x32\".google.monitoring.v3.TimeInterval\"Z\n\nLabelValue\x12\x14\n\nbool_value\x18\x01 \x01(\x08H\x00\x12\x15\n\x0bint64_value\x18\x02 \x01(\x03H\x00\x12\x16\n\x0cstring_value\x18\x03 \x01(\tH\x00\x42\x07\n\x05value\"Q\n\nQueryError\x12\x32\n\x07locator\x18\x01 \x01(\x0b\x32!.google.monitoring.v3.TextLocator\x12\x0f\n\x07message\x18\x02 \x01(\t\"\xa0\x02\n\x0bTextLocator\x12\x0e\n\x06source\x18\x01 \x01(\t\x12\x42\n\x0estart_position\x18\x02 \x01(\x0b\x32*.google.monitoring.v3.TextLocator.Position\x12@\n\x0c\x65nd_position\x18\x03 \x01(\x0b\x32*.google.monitoring.v3.TextLocator.Position\x12\x39\n\x0enested_locator\x18\x04 \x01(\x0b\x32!.google.monitoring.v3.TextLocator\x12\x16\n\x0enesting_reason\x18\x05 \x01(\t\x1a(\n\x08Position\x12\x0c\n\x04line\x18\x01 \x01(\x05\x12\x0e\n\x06\x63olumn\x18\x02 \x01(\x05\x42\xc6\x01\n\x18\x63om.google.monitoring.v3B\x0bMetricProtoP\x01ZAcloud.google.com/go/monitoring/apiv3/v2/monitoringpb;monitoringpb\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ["google.monitoring.v3.TimeInterval", "google/monitoring/v3/common.proto"],
29
+ ["google.api.Metric", "google/api/metric.proto"],
30
+ ["google.api.MonitoredResource", "google/api/monitored_resource.proto"],
31
+ ["google.api.LabelDescriptor", "google/api/label.proto"],
32
+ ]
33
+ imports.each do |type_name, expected_filename|
34
+ import_file = pool.lookup(type_name).file_descriptor
35
+ if import_file.name != expected_filename
36
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
65
37
  end
66
38
  end
39
+ warn "Each proto file must use a consistent fully-qualified name."
40
+ warn "This will become an error in the next major version."
67
41
  end
68
42
 
69
43
  module Google