google-cloud-monitoring-v3 0.11.0 → 0.12.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/monitoring/v3/alert_policy_service/client.rb +4 -2
  3. data/lib/google/cloud/monitoring/v3/group_service/client.rb +4 -2
  4. data/lib/google/cloud/monitoring/v3/metric_service/client.rb +4 -2
  5. data/lib/google/cloud/monitoring/v3/notification_channel_service/client.rb +4 -2
  6. data/lib/google/cloud/monitoring/v3/query_service/client.rb +4 -2
  7. data/lib/google/cloud/monitoring/v3/service_monitoring_service/client.rb +4 -2
  8. data/lib/google/cloud/monitoring/v3/snooze_service/client.rb +4 -2
  9. data/lib/google/cloud/monitoring/v3/uptime_check_service/client.rb +4 -2
  10. data/lib/google/cloud/monitoring/v3/version.rb +1 -1
  11. data/lib/google/monitoring/v3/alert_pb.rb +29 -81
  12. data/lib/google/monitoring/v3/alert_service_pb.rb +26 -27
  13. data/lib/google/monitoring/v3/common_pb.rb +27 -71
  14. data/lib/google/monitoring/v3/dropped_labels_pb.rb +24 -4
  15. data/lib/google/monitoring/v3/group_pb.rb +24 -8
  16. data/lib/google/monitoring/v3/group_service_pb.rb +27 -43
  17. data/lib/google/monitoring/v3/metric_pb.rb +28 -54
  18. data/lib/google/monitoring/v3/metric_service_pb.rb +29 -88
  19. data/lib/google/monitoring/v3/mutation_record_pb.rb +25 -5
  20. data/lib/google/monitoring/v3/notification_pb.rb +27 -27
  21. data/lib/google/monitoring/v3/notification_service_pb.rb +27 -55
  22. data/lib/google/monitoring/v3/query_service_pb.rb +25 -2
  23. data/lib/google/monitoring/v3/service_pb.rb +25 -118
  24. data/lib/google/monitoring/v3/service_service_pb.rb +26 -53
  25. data/lib/google/monitoring/v3/snooze_pb.rb +25 -10
  26. data/lib/google/monitoring/v3/snooze_service_pb.rb +26 -22
  27. data/lib/google/monitoring/v3/span_context_pb.rb +24 -4
  28. data/lib/google/monitoring/v3/uptime_pb.rb +26 -139
  29. data/lib/google/monitoring/v3/uptime_service_pb.rb +26 -34
  30. data/proto_docs/google/protobuf/any.rb +7 -4
  31. data/proto_docs/google/protobuf/struct.rb +1 -1
  32. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  33. metadata +4 -4
@@ -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
@@ -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_service.proto
3
4
 
@@ -14,96 +15,36 @@ require 'google/monitoring/v3/metric_pb'
14
15
  require 'google/protobuf/empty_pb'
15
16
  require 'google/rpc/status_pb'
16
17
 
17
- Google::Protobuf::DescriptorPool.generated_pool.build do
18
- add_file("google/monitoring/v3/metric_service.proto", :syntax => :proto3) do
19
- add_message "google.monitoring.v3.ListMonitoredResourceDescriptorsRequest" do
20
- optional :name, :string, 5
21
- optional :filter, :string, 2
22
- optional :page_size, :int32, 3
23
- optional :page_token, :string, 4
24
- end
25
- add_message "google.monitoring.v3.ListMonitoredResourceDescriptorsResponse" do
26
- repeated :resource_descriptors, :message, 1, "google.api.MonitoredResourceDescriptor"
27
- optional :next_page_token, :string, 2
28
- end
29
- add_message "google.monitoring.v3.GetMonitoredResourceDescriptorRequest" do
30
- optional :name, :string, 3
31
- end
32
- add_message "google.monitoring.v3.ListMetricDescriptorsRequest" do
33
- optional :name, :string, 5
34
- optional :filter, :string, 2
35
- optional :page_size, :int32, 3
36
- optional :page_token, :string, 4
37
- end
38
- add_message "google.monitoring.v3.ListMetricDescriptorsResponse" do
39
- repeated :metric_descriptors, :message, 1, "google.api.MetricDescriptor"
40
- optional :next_page_token, :string, 2
41
- end
42
- add_message "google.monitoring.v3.GetMetricDescriptorRequest" do
43
- optional :name, :string, 3
44
- end
45
- add_message "google.monitoring.v3.CreateMetricDescriptorRequest" do
46
- optional :name, :string, 3
47
- optional :metric_descriptor, :message, 2, "google.api.MetricDescriptor"
48
- end
49
- add_message "google.monitoring.v3.DeleteMetricDescriptorRequest" do
50
- optional :name, :string, 3
51
- end
52
- add_message "google.monitoring.v3.ListTimeSeriesRequest" do
53
- optional :name, :string, 10
54
- optional :filter, :string, 2
55
- optional :interval, :message, 4, "google.monitoring.v3.TimeInterval"
56
- optional :aggregation, :message, 5, "google.monitoring.v3.Aggregation"
57
- optional :secondary_aggregation, :message, 11, "google.monitoring.v3.Aggregation"
58
- optional :order_by, :string, 6
59
- optional :view, :enum, 7, "google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView"
60
- optional :page_size, :int32, 8
61
- optional :page_token, :string, 9
62
- end
63
- add_enum "google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView" do
64
- value :FULL, 0
65
- value :HEADERS, 1
66
- end
67
- add_message "google.monitoring.v3.ListTimeSeriesResponse" do
68
- repeated :time_series, :message, 1, "google.monitoring.v3.TimeSeries"
69
- optional :next_page_token, :string, 2
70
- repeated :execution_errors, :message, 3, "google.rpc.Status"
71
- optional :unit, :string, 5
72
- end
73
- add_message "google.monitoring.v3.CreateTimeSeriesRequest" do
74
- optional :name, :string, 3
75
- repeated :time_series, :message, 2, "google.monitoring.v3.TimeSeries"
76
- end
77
- add_message "google.monitoring.v3.CreateTimeSeriesError" do
78
- optional :time_series, :message, 1, "google.monitoring.v3.TimeSeries"
79
- optional :status, :message, 2, "google.rpc.Status"
80
- end
81
- add_message "google.monitoring.v3.CreateTimeSeriesSummary" do
82
- optional :total_point_count, :int32, 1
83
- optional :success_point_count, :int32, 2
84
- repeated :errors, :message, 3, "google.monitoring.v3.CreateTimeSeriesSummary.Error"
85
- end
86
- add_message "google.monitoring.v3.CreateTimeSeriesSummary.Error" do
87
- optional :status, :message, 1, "google.rpc.Status"
88
- optional :point_count, :int32, 2
89
- end
90
- add_message "google.monitoring.v3.QueryTimeSeriesRequest" do
91
- optional :name, :string, 1
92
- optional :query, :string, 7
93
- optional :page_size, :int32, 9
94
- optional :page_token, :string, 10
95
- end
96
- add_message "google.monitoring.v3.QueryTimeSeriesResponse" do
97
- optional :time_series_descriptor, :message, 8, "google.monitoring.v3.TimeSeriesDescriptor"
98
- repeated :time_series_data, :message, 9, "google.monitoring.v3.TimeSeriesData"
99
- optional :next_page_token, :string, 10
100
- repeated :partial_errors, :message, 11, "google.rpc.Status"
101
- end
102
- add_message "google.monitoring.v3.QueryErrorList" do
103
- repeated :errors, :message, 1, "google.monitoring.v3.QueryError"
104
- optional :error_summary, :string, 2
18
+
19
+ descriptor_data = "\n)google/monitoring/v3/metric_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x17google/api/metric.proto\x1a#google/api/monitored_resource.proto\x1a\x19google/api/resource.proto\x1a!google/monitoring/v3/common.proto\x1a!google/monitoring/v3/metric.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x17google/rpc/status.proto\"\xad\x01\n\'ListMonitoredResourceDescriptorsRequest\x12K\n\x04name\x18\x05 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\x12\x35monitoring.googleapis.com/MonitoredResourceDescriptor\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\"t\n%GetMonitoredResourceDescriptorRequest\x12K\n\x04name\x18\x03 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\n5monitoring.googleapis.com/MonitoredResourceDescriptor\"\x97\x01\n\x1cListMetricDescriptorsRequest\x12@\n\x04name\x18\x05 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*monitoring.googleapis.com/MetricDescriptor\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@\n\x04name\x18\x03 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*monitoring.googleapis.com/MetricDescriptor\"\x9f\x01\n\x1d\x43reateMetricDescriptorRequest\x12@\n\x04name\x18\x03 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*monitoring.googleapis.com/MetricDescriptor\x12<\n\x11metric_descriptor\x18\x02 \x01(\x0b\x32\x1c.google.api.MetricDescriptorB\x03\xe0\x41\x02\"a\n\x1d\x44\x65leteMetricDescriptorRequest\x12@\n\x04name\x18\x03 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*monitoring.googleapis.com/MetricDescriptor\"\xce\x03\n\x15ListTimeSeriesRequest\x12:\n\x04name\x18\n \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$monitoring.googleapis.com/TimeSeries\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x39\n\x08interval\x18\x04 \x01(\x0b\x32\".google.monitoring.v3.TimeIntervalB\x03\xe0\x41\x02\x12\x36\n\x0b\x61ggregation\x18\x05 \x01(\x0b\x32!.google.monitoring.v3.Aggregation\x12@\n\x15secondary_aggregation\x18\x0b \x01(\x0b\x32!.google.monitoring.v3.Aggregation\x12\x10\n\x08order_by\x18\x06 \x01(\t\x12M\n\x04view\x18\x07 \x01(\x0e\x32:.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesViewB\x03\xe0\x41\x02\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\"\xa4\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\x12\x0c\n\x04unit\x18\x05 \x01(\t\"\x98\x01\n\x17\x43reateTimeSeriesRequest\x12\x41\n\x04name\x18\x03 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12:\n\x0btime_series\x18\x02 \x03(\x0b\x32 .google.monitoring.v3.TimeSeriesB\x03\xe0\x41\x02\"z\n\x15\x43reateTimeSeriesError\x12\x39\n\x0btime_series\x18\x01 \x01(\x0b\x32 .google.monitoring.v3.TimeSeriesB\x02\x18\x01\x12&\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.StatusB\x02\x18\x01\"\xd8\x01\n\x17\x43reateTimeSeriesSummary\x12\x19\n\x11total_point_count\x18\x01 \x01(\x05\x12\x1b\n\x13success_point_count\x18\x02 \x01(\x05\x12\x43\n\x06\x65rrors\x18\x03 \x03(\x0b\x32\x33.google.monitoring.v3.CreateTimeSeriesSummary.Error\x1a@\n\x05\x45rror\x12\"\n\x06status\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12\x13\n\x0bpoint_count\x18\x02 \x01(\x05\"f\n\x16QueryTimeSeriesRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05query\x18\x07 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\tpage_size\x18\t \x01(\x05\x12\x12\n\npage_token\x18\n \x01(\t\"\xea\x01\n\x17QueryTimeSeriesResponse\x12J\n\x16time_series_descriptor\x18\x08 \x01(\x0b\x32*.google.monitoring.v3.TimeSeriesDescriptor\x12>\n\x10time_series_data\x18\t \x03(\x0b\x32$.google.monitoring.v3.TimeSeriesData\x12\x17\n\x0fnext_page_token\x18\n \x01(\t\x12*\n\x0epartial_errors\x18\x0b \x03(\x0b\x32\x12.google.rpc.Status\"Y\n\x0eQueryErrorList\x12\x30\n\x06\x65rrors\x18\x01 \x03(\x0b\x32 .google.monitoring.v3.QueryError\x12\x15\n\rerror_summary\x18\x02 \x01(\t2\xbc\x0f\n\rMetricService\x12\xe4\x01\n ListMonitoredResourceDescriptors\x12=.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest\x1a>.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse\"A\x82\xd3\xe4\x93\x02\x34\x12\x32/v3/{name=projects/*}/monitoredResourceDescriptors\xda\x41\x04name\x12\xcc\x01\n\x1eGetMonitoredResourceDescriptor\x12;.google.monitoring.v3.GetMonitoredResourceDescriptorRequest\x1a\'.google.api.MonitoredResourceDescriptor\"D\x82\xd3\xe4\x93\x02\x37\x12\x35/v3/{name=projects/*/monitoredResourceDescriptors/**}\xda\x41\x04name\x12\xb8\x01\n\x15ListMetricDescriptors\x12\x32.google.monitoring.v3.ListMetricDescriptorsRequest\x1a\x33.google.monitoring.v3.ListMetricDescriptorsResponse\"6\x82\xd3\xe4\x93\x02)\x12\'/v3/{name=projects/*}/metricDescriptors\xda\x41\x04name\x12\xa0\x01\n\x13GetMetricDescriptor\x12\x30.google.monitoring.v3.GetMetricDescriptorRequest\x1a\x1c.google.api.MetricDescriptor\"9\x82\xd3\xe4\x93\x02,\x12*/v3/{name=projects/*/metricDescriptors/**}\xda\x41\x04name\x12\xc8\x01\n\x16\x43reateMetricDescriptor\x12\x33.google.monitoring.v3.CreateMetricDescriptorRequest\x1a\x1c.google.api.MetricDescriptor\"[\x82\xd3\xe4\x93\x02<\"\'/v3/{name=projects/*}/metricDescriptors:\x11metric_descriptor\xda\x41\x16name,metric_descriptor\x12\xa0\x01\n\x16\x44\x65leteMetricDescriptor\x12\x33.google.monitoring.v3.DeleteMetricDescriptorRequest\x1a\x16.google.protobuf.Empty\"9\x82\xd3\xe4\x93\x02,**/v3/{name=projects/*/metricDescriptors/**}\xda\x41\x04name\x12\xfe\x01\n\x0eListTimeSeries\x12+.google.monitoring.v3.ListTimeSeriesRequest\x1a,.google.monitoring.v3.ListTimeSeriesResponse\"\x90\x01\x82\xd3\xe4\x93\x02n\x12 /v3/{name=projects/*}/timeSeriesZ\'\x12%/v3/{name=organizations/*}/timeSeriesZ!\x12\x1f/v3/{name=folders/*}/timeSeries\xda\x41\x19name,filter,interval,view\x12\x99\x01\n\x10\x43reateTimeSeries\x12-.google.monitoring.v3.CreateTimeSeriesRequest\x1a\x16.google.protobuf.Empty\">\x82\xd3\xe4\x93\x02%\" /v3/{name=projects/*}/timeSeries:\x01*\xda\x41\x10name,time_series\x12\xae\x01\n\x17\x43reateServiceTimeSeries\x12-.google.monitoring.v3.CreateTimeSeriesRequest\x1a\x16.google.protobuf.Empty\"L\x82\xd3\xe4\x93\x02\x33\"./v3/{name=projects/*}/timeSeries:createService:\x01*\xda\x41\x10name,time_series\x1a\xda\x01\xca\x41\x19monitoring.googleapis.com\xd2\x41\xba\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.read,https://www.googleapis.com/auth/monitoring.writeB\x89\x08\n\x18\x63om.google.monitoring.v3B\x12MetricServiceProtoP\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::V3\xea\x41\xf0\x01\n*monitoring.googleapis.com/MetricDescriptor\x12;projects/{project}/metricDescriptors/{metric_descriptor=**}\x12\x45organizations/{organization}/metricDescriptors/{metric_descriptor=**}\x12\x39\x66olders/{folder}/metricDescriptors/{metric_descriptor=**}\x12\x01* \x01\xea\x41\xb7\x02\n5monitoring.googleapis.com/MonitoredResourceDescriptor\x12Oprojects/{project}/monitoredResourceDescriptors/{monitored_resource_descriptor}\x12Yorganizations/{organization}/monitoredResourceDescriptors/{monitored_resource_descriptor}\x12Mfolders/{folder}/monitoredResourceDescriptors/{monitored_resource_descriptor}\x12\x01* \x01\xea\x41Q\n#monitoring.googleapis.com/Workspace\x12\x12projects/{project}\x12\x16workspaces/{workspace}\xea\x41\xb5\x01\n$monitoring.googleapis.com/TimeSeries\x12+projects/{project}/timeSeries/{time_series}\x12\x35organizations/{organization}/timeSeries/{time_series}\x12)folders/{folder}/timeSeries/{time_series}b\x06proto3"
20
+
21
+ pool = Google::Protobuf::DescriptorPool.generated_pool
22
+
23
+ begin
24
+ pool.add_serialized_file(descriptor_data)
25
+ rescue TypeError => e
26
+ # Compatibility code: will be removed in the next major version.
27
+ require 'google/protobuf/descriptor_pb'
28
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
29
+ parsed.clear_dependency
30
+ serialized = parsed.class.encode(parsed)
31
+ file = pool.add_serialized_file(serialized)
32
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
33
+ imports = [
34
+ ["google.api.MonitoredResourceDescriptor", "google/api/monitored_resource.proto"],
35
+ ["google.api.MetricDescriptor", "google/api/metric.proto"],
36
+ ["google.monitoring.v3.TimeInterval", "google/monitoring/v3/common.proto"],
37
+ ["google.monitoring.v3.TimeSeries", "google/monitoring/v3/metric.proto"],
38
+ ["google.rpc.Status", "google/rpc/status.proto"],
39
+ ]
40
+ imports.each do |type_name, expected_filename|
41
+ import_file = pool.lookup(type_name).file_descriptor
42
+ if import_file.name != expected_filename
43
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
105
44
  end
106
45
  end
46
+ warn "Each proto file must use a consistent fully-qualified name."
47
+ warn "This will become an error in the next major version."
107
48
  end
108
49
 
109
50
  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/mutation_record.proto
3
4
 
@@ -5,13 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/protobuf/timestamp_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/monitoring/v3/mutation_record.proto", :syntax => :proto3) do
10
- add_message "google.monitoring.v3.MutationRecord" do
11
- optional :mutate_time, :message, 1, "google.protobuf.Timestamp"
12
- optional :mutated_by, :string, 2
9
+
10
+ descriptor_data = "\n*google/monitoring/v3/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\xce\x01\n\x18\x63om.google.monitoring.v3B\x13MutationRecordProtoP\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
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
13
31
  end
14
32
  end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
15
35
  end
16
36
 
17
37
  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/notification.proto
3
4
 
@@ -10,35 +11,34 @@ require 'google/monitoring/v3/common_pb'
10
11
  require 'google/monitoring/v3/mutation_record_pb'
11
12
  require 'google/protobuf/wrappers_pb'
12
13
 
13
- Google::Protobuf::DescriptorPool.generated_pool.build do
14
- add_file("google/monitoring/v3/notification.proto", :syntax => :proto3) do
15
- add_message "google.monitoring.v3.NotificationChannelDescriptor" do
16
- optional :name, :string, 6
17
- optional :type, :string, 1
18
- optional :display_name, :string, 2
19
- optional :description, :string, 3
20
- repeated :labels, :message, 4, "google.api.LabelDescriptor"
21
- repeated :supported_tiers, :enum, 5, "google.monitoring.v3.ServiceTier"
22
- optional :launch_stage, :enum, 7, "google.api.LaunchStage"
23
- end
24
- add_message "google.monitoring.v3.NotificationChannel" do
25
- optional :type, :string, 1
26
- optional :name, :string, 6
27
- optional :display_name, :string, 3
28
- optional :description, :string, 4
29
- map :labels, :string, :string, 5
30
- map :user_labels, :string, :string, 8
31
- optional :verification_status, :enum, 9, "google.monitoring.v3.NotificationChannel.VerificationStatus"
32
- optional :enabled, :message, 11, "google.protobuf.BoolValue"
33
- optional :creation_record, :message, 12, "google.monitoring.v3.MutationRecord"
34
- repeated :mutation_records, :message, 13, "google.monitoring.v3.MutationRecord"
35
- end
36
- add_enum "google.monitoring.v3.NotificationChannel.VerificationStatus" do
37
- value :VERIFICATION_STATUS_UNSPECIFIED, 0
38
- value :UNVERIFIED, 1
39
- value :VERIFIED, 2
14
+
15
+ descriptor_data = "\n\'google/monitoring/v3/notification.proto\x12\x14google.monitoring.v3\x1a\x16google/api/label.proto\x1a\x1dgoogle/api/launch_stage.proto\x1a\x19google/api/resource.proto\x1a!google/monitoring/v3/common.proto\x1a*google/monitoring/v3/mutation_record.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xa5\x04\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\x12-\n\x0claunch_stage\x18\x07 \x01(\x0e\x32\x17.google.api.LaunchStage:\xa0\x02\xea\x41\x9c\x02\n7monitoring.googleapis.com/NotificationChannelDescriptor\x12\x46projects/{project}/notificationChannelDescriptors/{channel_descriptor}\x12Porganizations/{organization}/notificationChannelDescriptors/{channel_descriptor}\x12\x44\x66olders/{folder}/notificationChannelDescriptors/{channel_descriptor}\x12\x01*\"\xb6\x07\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\x12=\n\x0f\x63reation_record\x18\x0c \x01(\x0b\x32$.google.monitoring.v3.MutationRecord\x12>\n\x10mutation_records\x18\r \x03(\x0b\x32$.google.monitoring.v3.MutationRecord\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:\xfe\x01\xea\x41\xfa\x01\n-monitoring.googleapis.com/NotificationChannel\x12>projects/{project}/notificationChannels/{notification_channel}\x12Horganizations/{organization}/notificationChannels/{notification_channel}\x12<folders/{folder}/notificationChannels/{notification_channel}\x12\x01*B\xcc\x01\n\x18\x63om.google.monitoring.v3B\x11NotificationProtoP\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"
16
+
17
+ pool = Google::Protobuf::DescriptorPool.generated_pool
18
+
19
+ begin
20
+ pool.add_serialized_file(descriptor_data)
21
+ rescue TypeError => e
22
+ # Compatibility code: will be removed in the next major version.
23
+ require 'google/protobuf/descriptor_pb'
24
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
25
+ parsed.clear_dependency
26
+ serialized = parsed.class.encode(parsed)
27
+ file = pool.add_serialized_file(serialized)
28
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
29
+ imports = [
30
+ ["google.api.LabelDescriptor", "google/api/label.proto"],
31
+ ["google.protobuf.BoolValue", "google/protobuf/wrappers.proto"],
32
+ ["google.monitoring.v3.MutationRecord", "google/monitoring/v3/mutation_record.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}"
40
38
  end
41
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."
42
42
  end
43
43
 
44
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/notification_service.proto
3
4
 
@@ -12,63 +13,34 @@ require 'google/protobuf/empty_pb'
12
13
  require 'google/protobuf/field_mask_pb'
13
14
  require 'google/protobuf/timestamp_pb'
14
15
 
15
- Google::Protobuf::DescriptorPool.generated_pool.build do
16
- add_file("google/monitoring/v3/notification_service.proto", :syntax => :proto3) do
17
- add_message "google.monitoring.v3.ListNotificationChannelDescriptorsRequest" do
18
- optional :name, :string, 4
19
- optional :page_size, :int32, 2
20
- optional :page_token, :string, 3
21
- end
22
- add_message "google.monitoring.v3.ListNotificationChannelDescriptorsResponse" do
23
- repeated :channel_descriptors, :message, 1, "google.monitoring.v3.NotificationChannelDescriptor"
24
- optional :next_page_token, :string, 2
25
- end
26
- add_message "google.monitoring.v3.GetNotificationChannelDescriptorRequest" do
27
- optional :name, :string, 3
28
- end
29
- add_message "google.monitoring.v3.CreateNotificationChannelRequest" do
30
- optional :name, :string, 3
31
- optional :notification_channel, :message, 2, "google.monitoring.v3.NotificationChannel"
32
- end
33
- add_message "google.monitoring.v3.ListNotificationChannelsRequest" do
34
- optional :name, :string, 5
35
- optional :filter, :string, 6
36
- optional :order_by, :string, 7
37
- optional :page_size, :int32, 3
38
- optional :page_token, :string, 4
39
- end
40
- add_message "google.monitoring.v3.ListNotificationChannelsResponse" do
41
- repeated :notification_channels, :message, 3, "google.monitoring.v3.NotificationChannel"
42
- optional :next_page_token, :string, 2
43
- optional :total_size, :int32, 4
44
- end
45
- add_message "google.monitoring.v3.GetNotificationChannelRequest" do
46
- optional :name, :string, 3
47
- end
48
- add_message "google.monitoring.v3.UpdateNotificationChannelRequest" do
49
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
50
- optional :notification_channel, :message, 3, "google.monitoring.v3.NotificationChannel"
51
- end
52
- add_message "google.monitoring.v3.DeleteNotificationChannelRequest" do
53
- optional :name, :string, 3
54
- optional :force, :bool, 5
55
- end
56
- add_message "google.monitoring.v3.SendNotificationChannelVerificationCodeRequest" do
57
- optional :name, :string, 1
58
- end
59
- add_message "google.monitoring.v3.GetNotificationChannelVerificationCodeRequest" do
60
- optional :name, :string, 1
61
- optional :expire_time, :message, 2, "google.protobuf.Timestamp"
62
- end
63
- add_message "google.monitoring.v3.GetNotificationChannelVerificationCodeResponse" do
64
- optional :code, :string, 1
65
- optional :expire_time, :message, 2, "google.protobuf.Timestamp"
66
- end
67
- add_message "google.monitoring.v3.VerifyNotificationChannelRequest" do
68
- optional :name, :string, 1
69
- optional :code, :string, 2
16
+
17
+ descriptor_data = "\n/google/monitoring/v3/notification_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/notification.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa1\x01\n)ListNotificationChannelDescriptorsRequest\x12M\n\x04name\x18\x04 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\x12\x37monitoring.googleapis.com/NotificationChannelDescriptor\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\"x\n\'GetNotificationChannelDescriptorRequest\x12M\n\x04name\x18\x03 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\n7monitoring.googleapis.com/NotificationChannelDescriptor\"\xb5\x01\n CreateNotificationChannelRequest\x12\x43\n\x04name\x18\x03 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-monitoring.googleapis.com/NotificationChannel\x12L\n\x14notification_channel\x18\x02 \x01(\x0b\x32).google.monitoring.v3.NotificationChannelB\x03\xe0\x41\x02\"\xaf\x01\n\x1fListNotificationChannelsRequest\x12\x43\n\x04name\x18\x05 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-monitoring.googleapis.com/NotificationChannel\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\"\x99\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\x12\x12\n\ntotal_size\x18\x04 \x01(\x05\"d\n\x1dGetNotificationChannelRequest\x12\x43\n\x04name\x18\x03 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-monitoring.googleapis.com/NotificationChannel\"\xa1\x01\n UpdateNotificationChannelRequest\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12L\n\x14notification_channel\x18\x03 \x01(\x0b\x32).google.monitoring.v3.NotificationChannelB\x03\xe0\x41\x02\"v\n DeleteNotificationChannelRequest\x12\x43\n\x04name\x18\x03 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-monitoring.googleapis.com/NotificationChannel\x12\r\n\x05\x66orce\x18\x05 \x01(\x08\"u\n.SendNotificationChannelVerificationCodeRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-monitoring.googleapis.com/NotificationChannel\"\xa5\x01\n-GetNotificationChannelVerificationCodeRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-monitoring.googleapis.com/NotificationChannel\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\"z\n VerifyNotificationChannelRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-monitoring.googleapis.com/NotificationChannel\x12\x11\n\x04\x63ode\x18\x02 \x01(\tB\x03\xe0\x41\x02\x32\xea\x12\n\x1aNotificationChannelService\x12\xec\x01\n\"ListNotificationChannelDescriptors\x12?.google.monitoring.v3.ListNotificationChannelDescriptorsRequest\x1a@.google.monitoring.v3.ListNotificationChannelDescriptorsResponse\"C\x82\xd3\xe4\x93\x02\x36\x12\x34/v3/{name=projects/*}/notificationChannelDescriptors\xda\x41\x04name\x12\xdd\x01\n GetNotificationChannelDescriptor\x12=.google.monitoring.v3.GetNotificationChannelDescriptorRequest\x1a\x33.google.monitoring.v3.NotificationChannelDescriptor\"E\x82\xd3\xe4\x93\x02\x38\x12\x36/v3/{name=projects/*/notificationChannelDescriptors/*}\xda\x41\x04name\x12\xc4\x01\n\x18ListNotificationChannels\x12\x35.google.monitoring.v3.ListNotificationChannelsRequest\x1a\x36.google.monitoring.v3.ListNotificationChannelsResponse\"9\x82\xd3\xe4\x93\x02,\x12*/v3/{name=projects/*}/notificationChannels\xda\x41\x04name\x12\xb5\x01\n\x16GetNotificationChannel\x12\x33.google.monitoring.v3.GetNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel\";\x82\xd3\xe4\x93\x02.\x12,/v3/{name=projects/*/notificationChannels/*}\xda\x41\x04name\x12\xe4\x01\n\x19\x43reateNotificationChannel\x12\x36.google.monitoring.v3.CreateNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel\"d\x82\xd3\xe4\x93\x02\x42\"*/v3/{name=projects/*}/notificationChannels:\x14notification_channel\xda\x41\x19name,notification_channel\x12\x83\x02\n\x19UpdateNotificationChannel\x12\x36.google.monitoring.v3.UpdateNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel\"\x82\x01\x82\xd3\xe4\x93\x02Y2A/v3/{notification_channel.name=projects/*/notificationChannels/*}:\x14notification_channel\xda\x41 update_mask,notification_channel\x12\xae\x01\n\x19\x44\x65leteNotificationChannel\x12\x36.google.monitoring.v3.DeleteNotificationChannelRequest\x1a\x16.google.protobuf.Empty\"A\x82\xd3\xe4\x93\x02.*,/v3/{name=projects/*/notificationChannels/*}\xda\x41\nname,force\x12\xdc\x01\n\'SendNotificationChannelVerificationCode\x12\x44.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest\x1a\x16.google.protobuf.Empty\"S\x82\xd3\xe4\x93\x02\x46\"A/v3/{name=projects/*/notificationChannels/*}:sendVerificationCode:\x01*\xda\x41\x04name\x12\x87\x02\n&GetNotificationChannelVerificationCode\x12\x43.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest\x1a\x44.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse\"R\x82\xd3\xe4\x93\x02\x45\"@/v3/{name=projects/*/notificationChannels/*}:getVerificationCode:\x01*\xda\x41\x04name\x12\xca\x01\n\x19VerifyNotificationChannel\x12\x36.google.monitoring.v3.VerifyNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel\"J\x82\xd3\xe4\x93\x02\x38\"3/v3/{name=projects/*/notificationChannels/*}:verify:\x01*\xda\x41\tname,code\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\xd3\x01\n\x18\x63om.google.monitoring.v3B\x18NotificationServiceProtoP\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.NotificationChannelDescriptor", "google/monitoring/v3/notification.proto"],
33
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
34
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.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}"
70
40
  end
71
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."
72
44
  end
73
45
 
74
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/query_service.proto
3
4
 
@@ -7,9 +8,31 @@ require 'google/api/annotations_pb'
7
8
  require 'google/monitoring/v3/metric_service_pb'
8
9
  require 'google/api/client_pb'
9
10
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("google/monitoring/v3/query_service.proto", :syntax => :proto3) do
11
+
12
+ descriptor_data = "\n(google/monitoring/v3/query_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a)google/monitoring/v3/metric_service.proto\x1a\x17google/api/client.proto2\xde\x02\n\x0cQueryService\x12\xa1\x01\n\x0fQueryTimeSeries\x12,.google.monitoring.v3.QueryTimeSeriesRequest\x1a-.google.monitoring.v3.QueryTimeSeriesResponse\"1\x82\xd3\xe4\x93\x02+\"&/v3/{name=projects/*}/timeSeries:query:\x01*\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\x11QueryServiceProtoP\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
+ ]
28
+ imports.each do |type_name, expected_filename|
29
+ import_file = pool.lookup(type_name).file_descriptor
30
+ if import_file.name != expected_filename
31
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
32
+ end
12
33
  end
34
+ warn "Each proto file must use a consistent fully-qualified name."
35
+ warn "This will become an error in the next major version."
13
36
  end
14
37
 
15
38
  module Google