google-cloud-monitoring-dashboard-v1 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 (25) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/monitoring/dashboard/v1/dashboards_service/client.rb +6 -4
  4. data/lib/google/cloud/monitoring/dashboard/v1/dashboards_service/rest/client.rb +6 -4
  5. data/lib/google/cloud/monitoring/dashboard/v1/dashboards_service/rest/service_stub.rb +5 -5
  6. data/lib/google/cloud/monitoring/dashboard/v1/version.rb +1 -1
  7. data/lib/google/monitoring/dashboard/v1/alertchart_pb.rb +24 -4
  8. data/lib/google/monitoring/dashboard/v1/collapsible_group_pb.rb +24 -4
  9. data/lib/google/monitoring/dashboard/v1/common_pb.rb +25 -70
  10. data/lib/google/monitoring/dashboard/v1/dashboard_filter_pb.rb +24 -17
  11. data/lib/google/monitoring/dashboard/v1/dashboard_pb.rb +26 -14
  12. data/lib/google/monitoring/dashboard/v1/dashboards_service_pb.rb +25 -25
  13. data/lib/google/monitoring/dashboard/v1/drilldowns_pb.rb +25 -2
  14. data/lib/google/monitoring/dashboard/v1/layouts_pb.rb +25 -30
  15. data/lib/google/monitoring/dashboard/v1/logs_panel_pb.rb +24 -5
  16. data/lib/google/monitoring/dashboard/v1/metrics_pb.rb +25 -59
  17. data/lib/google/monitoring/dashboard/v1/scorecard_pb.rb +26 -17
  18. data/lib/google/monitoring/dashboard/v1/service_pb.rb +25 -2
  19. data/lib/google/monitoring/dashboard/v1/table_display_options_pb.rb +24 -4
  20. data/lib/google/monitoring/dashboard/v1/table_pb.rb +27 -21
  21. data/lib/google/monitoring/dashboard/v1/text_pb.rb +24 -10
  22. data/lib/google/monitoring/dashboard/v1/widget_pb.rb +32 -14
  23. data/lib/google/monitoring/dashboard/v1/xychart_pb.rb +26 -47
  24. data/proto_docs/google/api/client.rb +67 -4
  25. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 834738583afd3b562ac26caee728ef7bc8c869d4df3ed557e32214257e26c4b0
4
- data.tar.gz: c7000214d87afcd3d22de839d9d5f69ad6ea25720b913714e0f0fec470b5a006
3
+ metadata.gz: 91d27544406498203c77c4dee0f815abd3f8d0c4780a6e9fb557e29bd215dc38
4
+ data.tar.gz: 7e029c34e4dc36569702ab1193b27fd8cf101fd8cd02401d91bf799779305d4c
5
5
  SHA512:
6
- metadata.gz: 0cd91046136fd564994c8958801c5cc66833a50fadcdb1b0c6c82ffa3bc4ce9a1b3d3b8d2e32b0c42106427c5d6bbc52c6cd4c59dfa6623d52f1cda956b91282
7
- data.tar.gz: 83cecc2a72d9d9b3d59c3b05f93160deb61e4c74807b0a335f691828ad575d95e082be04c2eac1cc3accf8714da127de08802f86a6ed172e7687f410bf93b649
6
+ metadata.gz: 7f3faa5acb66feb560d2334acc159eb90054bd8bb46b5254cfc69e6afe1666f3ad29d79ba3f0166e252bbb872b59bd61bd5d932cdf790ca6164eec68ab0606c3
7
+ data.tar.gz: bf4338ca2ccf5140417588f8998a84b0737d4fc1360e9e95c250eeeeb39c587b2edc15c6b6a131e84f0b90709db5f0cffd0e1db92373478d3709bd22963df441
data/README.md CHANGED
@@ -47,7 +47,7 @@ for general usage information.
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
49
  The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
50
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
53
 
@@ -136,7 +136,7 @@ module Google
136
136
  credentials = @config.credentials
137
137
  # Use self-signed JWT if the endpoint is unchanged from default,
138
138
  # but only if the default endpoint does not have a region prefix.
139
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
139
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
140
140
  !@config.endpoint.split(".").first.include?("-")
141
141
  credentials ||= Credentials.default scope: @config.scope,
142
142
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -673,9 +673,9 @@ module Google
673
673
  # * (`String`) The path to a service account key file in JSON format
674
674
  # * (`Hash`) A service account key as a Hash
675
675
  # * (`Google::Auth::Credentials`) A googleauth credentials object
676
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
676
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
677
677
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
678
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
678
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
679
679
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
680
680
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
681
681
  # * (`nil`) indicating no credentials
@@ -717,7 +717,9 @@ module Google
717
717
  class Configuration
718
718
  extend ::Gapic::Config
719
719
 
720
- config_attr :endpoint, "monitoring.googleapis.com", ::String
720
+ DEFAULT_ENDPOINT = "monitoring.googleapis.com"
721
+
722
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
721
723
  config_attr :credentials, nil do |value|
722
724
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
723
725
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -132,7 +132,7 @@ module Google
132
132
  credentials = @config.credentials
133
133
  # Use self-signed JWT if the endpoint is unchanged from default,
134
134
  # but only if the default endpoint does not have a region prefix.
135
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
135
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
136
136
  !@config.endpoint.split(".").first.include?("-")
137
137
  credentials ||= Credentials.default scope: @config.scope,
138
138
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -545,9 +545,9 @@ module Google
545
545
  # * (`String`) The path to a service account key file in JSON format
546
546
  # * (`Hash`) A service account key as a Hash
547
547
  # * (`Google::Auth::Credentials`) A googleauth credentials object
548
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
548
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
549
549
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
550
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
550
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
551
551
  # * (`nil`) indicating no credentials
552
552
  # @return [::Object]
553
553
  # @!attribute [rw] scope
@@ -580,7 +580,9 @@ module Google
580
580
  class Configuration
581
581
  extend ::Gapic::Config
582
582
 
583
- config_attr :endpoint, "monitoring.googleapis.com", ::String
583
+ DEFAULT_ENDPOINT = "monitoring.googleapis.com"
584
+
585
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
584
586
  config_attr :credentials, nil do |value|
585
587
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
586
588
  allowed.any? { |klass| klass === value }
@@ -60,7 +60,7 @@ module Google
60
60
 
61
61
  verb, uri, query_string_params, body = ServiceStub.transcode_create_dashboard_request request_pb
62
62
  query_string_params = if query_string_params.any?
63
- query_string_params.to_h { |p| p.split("=", 2) }
63
+ query_string_params.to_h { |p| p.split "=", 2 }
64
64
  else
65
65
  {}
66
66
  end
@@ -98,7 +98,7 @@ module Google
98
98
 
99
99
  verb, uri, query_string_params, body = ServiceStub.transcode_list_dashboards_request request_pb
100
100
  query_string_params = if query_string_params.any?
101
- query_string_params.to_h { |p| p.split("=", 2) }
101
+ query_string_params.to_h { |p| p.split "=", 2 }
102
102
  else
103
103
  {}
104
104
  end
@@ -136,7 +136,7 @@ module Google
136
136
 
137
137
  verb, uri, query_string_params, body = ServiceStub.transcode_get_dashboard_request request_pb
138
138
  query_string_params = if query_string_params.any?
139
- query_string_params.to_h { |p| p.split("=", 2) }
139
+ query_string_params.to_h { |p| p.split "=", 2 }
140
140
  else
141
141
  {}
142
142
  end
@@ -174,7 +174,7 @@ module Google
174
174
 
175
175
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_dashboard_request request_pb
176
176
  query_string_params = if query_string_params.any?
177
- query_string_params.to_h { |p| p.split("=", 2) }
177
+ query_string_params.to_h { |p| p.split "=", 2 }
178
178
  else
179
179
  {}
180
180
  end
@@ -212,7 +212,7 @@ module Google
212
212
 
213
213
  verb, uri, query_string_params, body = ServiceStub.transcode_update_dashboard_request request_pb
214
214
  query_string_params = if query_string_params.any?
215
- query_string_params.to_h { |p| p.split("=", 2) }
215
+ query_string_params.to_h { |p| p.split "=", 2 }
216
216
  else
217
217
  {}
218
218
  end
@@ -22,7 +22,7 @@ module Google
22
22
  module Monitoring
23
23
  module Dashboard
24
24
  module V1
25
- VERSION = "0.11.0"
25
+ VERSION = "0.12.1"
26
26
  end
27
27
  end
28
28
  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/dashboard/v1/alertchart.proto
3
4
 
@@ -6,12 +7,31 @@ require 'google/protobuf'
6
7
  require 'google/api/field_behavior_pb'
7
8
  require 'google/api/resource_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/monitoring/dashboard/v1/alertchart.proto", :syntax => :proto3) do
11
- add_message "google.monitoring.dashboard.v1.AlertChart" do
12
- optional :name, :string, 1
10
+
11
+ descriptor_data = "\n/google/monitoring/dashboard/v1/alertchart.proto\x12\x1egoogle.monitoring.dashboard.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"|\n\nAlertChart\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02:[\xea\x41X\n%monitoring.googleapis.com/AlertPolicy\x12/projects/{project}/alertPolicies/{alert_policy}B\xf8\x01\n\"com.google.monitoring.dashboard.v1B\x0f\x41lertChartProtoP\x01ZFcloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb;dashboardpb\xaa\x02$Google.Cloud.Monitoring.Dashboard.V1\xca\x02$Google\\Cloud\\Monitoring\\Dashboard\\V1\xea\x02(Google::Cloud::Monitoring::Dashboard::V1b\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
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,14 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/monitoring/dashboard/v1/collapsible_group.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/monitoring/dashboard/v1/collapsible_group.proto", :syntax => :proto3) do
8
- add_message "google.monitoring.dashboard.v1.CollapsibleGroup" do
9
- optional :collapsed, :bool, 1
7
+
8
+ descriptor_data = "\n6google/monitoring/dashboard/v1/collapsible_group.proto\x12\x1egoogle.monitoring.dashboard.v1\"%\n\x10\x43ollapsibleGroup\x12\x11\n\tcollapsed\x18\x01 \x01(\x08\x42\xfe\x01\n\"com.google.monitoring.dashboard.v1B\x15\x43ollapsibleGroupProtoP\x01ZFcloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb;dashboardpb\xaa\x02$Google.Cloud.Monitoring.Dashboard.V1\xca\x02$Google\\Cloud\\Monitoring\\Dashboard\\V1\xea\x02(Google::Cloud::Monitoring::Dashboard::V1b\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/dashboard/v1/common.proto
3
4
 
@@ -5,78 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/protobuf/duration_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/monitoring/dashboard/v1/common.proto", :syntax => :proto3) do
10
- add_message "google.monitoring.dashboard.v1.Aggregation" do
11
- optional :alignment_period, :message, 1, "google.protobuf.Duration"
12
- optional :per_series_aligner, :enum, 2, "google.monitoring.dashboard.v1.Aggregation.Aligner"
13
- optional :cross_series_reducer, :enum, 4, "google.monitoring.dashboard.v1.Aggregation.Reducer"
14
- repeated :group_by_fields, :string, 5
15
- end
16
- add_enum "google.monitoring.dashboard.v1.Aggregation.Aligner" do
17
- value :ALIGN_NONE, 0
18
- value :ALIGN_DELTA, 1
19
- value :ALIGN_RATE, 2
20
- value :ALIGN_INTERPOLATE, 3
21
- value :ALIGN_NEXT_OLDER, 4
22
- value :ALIGN_MIN, 10
23
- value :ALIGN_MAX, 11
24
- value :ALIGN_MEAN, 12
25
- value :ALIGN_COUNT, 13
26
- value :ALIGN_SUM, 14
27
- value :ALIGN_STDDEV, 15
28
- value :ALIGN_COUNT_TRUE, 16
29
- value :ALIGN_COUNT_FALSE, 24
30
- value :ALIGN_FRACTION_TRUE, 17
31
- value :ALIGN_PERCENTILE_99, 18
32
- value :ALIGN_PERCENTILE_95, 19
33
- value :ALIGN_PERCENTILE_50, 20
34
- value :ALIGN_PERCENTILE_05, 21
35
- value :ALIGN_PERCENT_CHANGE, 23
36
- end
37
- add_enum "google.monitoring.dashboard.v1.Aggregation.Reducer" do
38
- value :REDUCE_NONE, 0
39
- value :REDUCE_MEAN, 1
40
- value :REDUCE_MIN, 2
41
- value :REDUCE_MAX, 3
42
- value :REDUCE_SUM, 4
43
- value :REDUCE_STDDEV, 5
44
- value :REDUCE_COUNT, 6
45
- value :REDUCE_COUNT_TRUE, 7
46
- value :REDUCE_COUNT_FALSE, 15
47
- value :REDUCE_FRACTION_TRUE, 8
48
- value :REDUCE_PERCENTILE_99, 9
49
- value :REDUCE_PERCENTILE_95, 10
50
- value :REDUCE_PERCENTILE_50, 11
51
- value :REDUCE_PERCENTILE_05, 12
52
- end
53
- add_message "google.monitoring.dashboard.v1.PickTimeSeriesFilter" do
54
- optional :ranking_method, :enum, 1, "google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method"
55
- optional :num_time_series, :int32, 2
56
- optional :direction, :enum, 3, "google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction"
57
- end
58
- add_enum "google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method" do
59
- value :METHOD_UNSPECIFIED, 0
60
- value :METHOD_MEAN, 1
61
- value :METHOD_MAX, 2
62
- value :METHOD_MIN, 3
63
- value :METHOD_SUM, 4
64
- value :METHOD_LATEST, 5
65
- end
66
- add_enum "google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction" do
67
- value :DIRECTION_UNSPECIFIED, 0
68
- value :TOP, 1
69
- value :BOTTOM, 2
70
- end
71
- add_message "google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter" do
72
- optional :ranking_method, :enum, 1, "google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method"
73
- optional :num_time_series, :int32, 2
74
- end
75
- add_enum "google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method" do
76
- value :METHOD_UNSPECIFIED, 0
77
- value :METHOD_CLUSTER_OUTLIER, 1
9
+
10
+ descriptor_data = "\n+google/monitoring/dashboard/v1/common.proto\x12\x1egoogle.monitoring.dashboard.v1\x1a\x1egoogle/protobuf/duration.proto\"\xc1\x07\n\x0b\x41ggregation\x12\x33\n\x10\x61lignment_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12O\n\x12per_series_aligner\x18\x02 \x01(\x0e\x32\x33.google.monitoring.dashboard.v1.Aggregation.Aligner\x12Q\n\x14\x63ross_series_reducer\x18\x04 \x01(\x0e\x32\x33.google.monitoring.dashboard.v1.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\"\x8a\x03\n\x14PickTimeSeriesFilter\x12S\n\x0eranking_method\x18\x01 \x01(\x0e\x32;.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method\x12\x17\n\x0fnum_time_series\x18\x02 \x01(\x05\x12Q\n\tdirection\x18\x03 \x01(\x0e\x32>.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction\"t\n\x06Method\x12\x16\n\x12METHOD_UNSPECIFIED\x10\x00\x12\x0f\n\x0bMETHOD_MEAN\x10\x01\x12\x0e\n\nMETHOD_MAX\x10\x02\x12\x0e\n\nMETHOD_MIN\x10\x03\x12\x0e\n\nMETHOD_SUM\x10\x04\x12\x11\n\rMETHOD_LATEST\x10\x05\";\n\tDirection\x12\x19\n\x15\x44IRECTION_UNSPECIFIED\x10\x00\x12\x07\n\x03TOP\x10\x01\x12\n\n\x06\x42OTTOM\x10\x02\"\xd0\x01\n\x1bStatisticalTimeSeriesFilter\x12Z\n\x0eranking_method\x18\x01 \x01(\x0e\x32\x42.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method\x12\x17\n\x0fnum_time_series\x18\x02 \x01(\x05\"<\n\x06Method\x12\x16\n\x12METHOD_UNSPECIFIED\x10\x00\x12\x1a\n\x16METHOD_CLUSTER_OUTLIER\x10\x01\x42\xf4\x01\n\"com.google.monitoring.dashboard.v1B\x0b\x43ommonProtoP\x01ZFcloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb;dashboardpb\xaa\x02$Google.Cloud.Monitoring.Dashboard.V1\xca\x02$Google\\Cloud\\Monitoring\\Dashboard\\V1\xea\x02(Google::Cloud::Monitoring::Dashboard::V1b\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.Duration", "google/protobuf/duration.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}"
78
31
  end
79
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."
80
35
  end
81
36
 
82
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/dashboard/v1/dashboard_filter.proto
3
4
 
@@ -5,25 +6,31 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/api/field_behavior_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/monitoring/dashboard/v1/dashboard_filter.proto", :syntax => :proto3) do
10
- add_message "google.monitoring.dashboard.v1.DashboardFilter" do
11
- optional :label_key, :string, 1
12
- optional :template_variable, :string, 3
13
- optional :filter_type, :enum, 5, "google.monitoring.dashboard.v1.DashboardFilter.FilterType"
14
- oneof :default_value do
15
- optional :string_value, :string, 4
16
- end
17
- end
18
- add_enum "google.monitoring.dashboard.v1.DashboardFilter.FilterType" do
19
- value :FILTER_TYPE_UNSPECIFIED, 0
20
- value :RESOURCE_LABEL, 1
21
- value :METRIC_LABEL, 2
22
- value :USER_METADATA_LABEL, 3
23
- value :SYSTEM_METADATA_LABEL, 4
24
- value :GROUP, 5
9
+
10
+ descriptor_data = "\n5google/monitoring/dashboard/v1/dashboard_filter.proto\x12\x1egoogle.monitoring.dashboard.v1\x1a\x1fgoogle/api/field_behavior.proto\"\xcf\x02\n\x0f\x44\x61shboardFilter\x12\x16\n\tlabel_key\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x11template_variable\x18\x03 \x01(\t\x12\x16\n\x0cstring_value\x18\x04 \x01(\tH\x00\x12O\n\x0b\x66ilter_type\x18\x05 \x01(\x0e\x32:.google.monitoring.dashboard.v1.DashboardFilter.FilterType\"\x8e\x01\n\nFilterType\x12\x1b\n\x17\x46ILTER_TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0eRESOURCE_LABEL\x10\x01\x12\x10\n\x0cMETRIC_LABEL\x10\x02\x12\x17\n\x13USER_METADATA_LABEL\x10\x03\x12\x19\n\x15SYSTEM_METADATA_LABEL\x10\x04\x12\t\n\x05GROUP\x10\x05\x42\x0f\n\rdefault_valueB\xfd\x01\n\"com.google.monitoring.dashboard.v1B\x14\x44\x61shboardFilterProtoP\x01ZFcloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb;dashboardpb\xaa\x02$Google.Cloud.Monitoring.Dashboard.V1\xca\x02$Google\\Cloud\\Monitoring\\Dashboard\\V1\xea\x02(Google::Cloud::Monitoring::Dashboard::V1b\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}"
25
30
  end
26
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."
27
34
  end
28
35
 
29
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/dashboard/v1/dashboard.proto
3
4
 
@@ -8,22 +9,33 @@ require 'google/api/resource_pb'
8
9
  require 'google/monitoring/dashboard/v1/dashboard_filter_pb'
9
10
  require 'google/monitoring/dashboard/v1/layouts_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/monitoring/dashboard/v1/dashboard.proto", :syntax => :proto3) do
13
- add_message "google.monitoring.dashboard.v1.Dashboard" do
14
- optional :name, :string, 1
15
- optional :display_name, :string, 2
16
- optional :etag, :string, 4
17
- repeated :dashboard_filters, :message, 11, "google.monitoring.dashboard.v1.DashboardFilter"
18
- map :labels, :string, :string, 12
19
- oneof :layout do
20
- optional :grid_layout, :message, 5, "google.monitoring.dashboard.v1.GridLayout"
21
- optional :mosaic_layout, :message, 6, "google.monitoring.dashboard.v1.MosaicLayout"
22
- optional :row_layout, :message, 8, "google.monitoring.dashboard.v1.RowLayout"
23
- optional :column_layout, :message, 9, "google.monitoring.dashboard.v1.ColumnLayout"
24
- end
12
+
13
+ descriptor_data = "\n.google/monitoring/dashboard/v1/dashboard.proto\x12\x1egoogle.monitoring.dashboard.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x35google/monitoring/dashboard/v1/dashboard_filter.proto\x1a,google/monitoring/dashboard/v1/layouts.proto\"\xfa\x04\n\tDashboard\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x0c\n\x04\x65tag\x18\x04 \x01(\t\x12\x41\n\x0bgrid_layout\x18\x05 \x01(\x0b\x32*.google.monitoring.dashboard.v1.GridLayoutH\x00\x12\x45\n\rmosaic_layout\x18\x06 \x01(\x0b\x32,.google.monitoring.dashboard.v1.MosaicLayoutH\x00\x12?\n\nrow_layout\x18\x08 \x01(\x0b\x32).google.monitoring.dashboard.v1.RowLayoutH\x00\x12\x45\n\rcolumn_layout\x18\t \x01(\x0b\x32,.google.monitoring.dashboard.v1.ColumnLayoutH\x00\x12J\n\x11\x64\x61shboard_filters\x18\x0b \x03(\x0b\x32/.google.monitoring.dashboard.v1.DashboardFilter\x12\x45\n\x06labels\x18\x0c \x03(\x0b\x32\x35.google.monitoring.dashboard.v1.Dashboard.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:S\xea\x41P\n#monitoring.googleapis.com/Dashboard\x12)projects/{project}/dashboards/{dashboard}B\x08\n\x06layoutB\xf8\x01\n\"com.google.monitoring.dashboard.v1B\x0f\x44\x61shboardsProtoP\x01ZFcloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb;dashboardpb\xaa\x02$Google.Cloud.Monitoring.Dashboard.V1\xca\x02$Google\\Cloud\\Monitoring\\Dashboard\\V1\xea\x02(Google::Cloud::Monitoring::Dashboard::V1b\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.dashboard.v1.GridLayout", "google/monitoring/dashboard/v1/layouts.proto"],
29
+ ["google.monitoring.dashboard.v1.DashboardFilter", "google/monitoring/dashboard/v1/dashboard_filter.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}"
25
35
  end
26
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."
27
39
  end
28
40
 
29
41
  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/dashboard/v1/dashboards_service.proto
3
4
 
@@ -10,33 +11,32 @@ require 'google/api/resource_pb'
10
11
  require 'google/monitoring/dashboard/v1/dashboard_pb'
11
12
  require 'google/protobuf/empty_pb'
12
13
 
13
- Google::Protobuf::DescriptorPool.generated_pool.build do
14
- add_file("google/monitoring/dashboard/v1/dashboards_service.proto", :syntax => :proto3) do
15
- add_message "google.monitoring.dashboard.v1.CreateDashboardRequest" do
16
- optional :parent, :string, 1
17
- optional :dashboard, :message, 2, "google.monitoring.dashboard.v1.Dashboard"
18
- optional :validate_only, :bool, 3
19
- end
20
- add_message "google.monitoring.dashboard.v1.ListDashboardsRequest" do
21
- optional :parent, :string, 1
22
- optional :page_size, :int32, 2
23
- optional :page_token, :string, 3
24
- end
25
- add_message "google.monitoring.dashboard.v1.ListDashboardsResponse" do
26
- repeated :dashboards, :message, 1, "google.monitoring.dashboard.v1.Dashboard"
27
- optional :next_page_token, :string, 2
28
- end
29
- add_message "google.monitoring.dashboard.v1.GetDashboardRequest" do
30
- optional :name, :string, 1
31
- end
32
- add_message "google.monitoring.dashboard.v1.DeleteDashboardRequest" do
33
- optional :name, :string, 1
34
- end
35
- add_message "google.monitoring.dashboard.v1.UpdateDashboardRequest" do
36
- optional :dashboard, :message, 1, "google.monitoring.dashboard.v1.Dashboard"
37
- optional :validate_only, :bool, 3
14
+
15
+ descriptor_data = "\n7google/monitoring/dashboard/v1/dashboards_service.proto\x12\x1egoogle.monitoring.dashboard.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/monitoring/dashboard/v1/dashboard.proto\x1a\x1bgoogle/protobuf/empty.proto\"\x87\x01\n\x16\x43reateDashboardRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x41\n\tdashboard\x18\x02 \x01(\x0b\x32).google.monitoring.dashboard.v1.DashboardB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\x83\x01\n\x15ListDashboardsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"p\n\x16ListDashboardsResponse\x12=\n\ndashboards\x18\x01 \x03(\x0b\x32).google.monitoring.dashboard.v1.Dashboard\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"P\n\x13GetDashboardRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#monitoring.googleapis.com/Dashboard\"S\n\x16\x44\x65leteDashboardRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#monitoring.googleapis.com/Dashboard\"r\n\x16UpdateDashboardRequest\x12\x41\n\tdashboard\x18\x01 \x01(\x0b\x32).google.monitoring.dashboard.v1.DashboardB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x32\xb1\x08\n\x11\x44\x61shboardsService\x12\xab\x01\n\x0f\x43reateDashboard\x12\x36.google.monitoring.dashboard.v1.CreateDashboardRequest\x1a).google.monitoring.dashboard.v1.Dashboard\"5\x82\xd3\xe4\x93\x02/\"\"/v1/{parent=projects/*}/dashboards:\tdashboard\x12\xab\x01\n\x0eListDashboards\x12\x35.google.monitoring.dashboard.v1.ListDashboardsRequest\x1a\x36.google.monitoring.dashboard.v1.ListDashboardsResponse\"*\x82\xd3\xe4\x93\x02$\x12\"/v1/{parent=projects/*}/dashboards\x12\x9a\x01\n\x0cGetDashboard\x12\x33.google.monitoring.dashboard.v1.GetDashboardRequest\x1a).google.monitoring.dashboard.v1.Dashboard\"*\x82\xd3\xe4\x93\x02$\x12\"/v1/{name=projects/*/dashboards/*}\x12\x8d\x01\n\x0f\x44\x65leteDashboard\x12\x36.google.monitoring.dashboard.v1.DeleteDashboardRequest\x1a\x16.google.protobuf.Empty\"*\x82\xd3\xe4\x93\x02$*\"/v1/{name=projects/*/dashboards/*}\x12\xb5\x01\n\x0fUpdateDashboard\x12\x36.google.monitoring.dashboard.v1.UpdateDashboardRequest\x1a).google.monitoring.dashboard.v1.Dashboard\"?\x82\xd3\xe4\x93\x02\x39\x32,/v1/{dashboard.name=projects/*/dashboards/*}:\tdashboard\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\xff\x01\n\"com.google.monitoring.dashboard.v1B\x16\x44\x61shboardsServiceProtoP\x01ZFcloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb;dashboardpb\xaa\x02$Google.Cloud.Monitoring.Dashboard.V1\xca\x02$Google\\Cloud\\Monitoring\\Dashboard\\V1\xea\x02(Google::Cloud::Monitoring::Dashboard::V1b\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.monitoring.dashboard.v1.Dashboard", "google/monitoring/dashboard/v1/dashboard.proto"],
31
+ ]
32
+ imports.each do |type_name, expected_filename|
33
+ import_file = pool.lookup(type_name).file_descriptor
34
+ if import_file.name != expected_filename
35
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
38
36
  end
39
37
  end
38
+ warn "Each proto file must use a consistent fully-qualified name."
39
+ warn "This will become an error in the next major version."
40
40
  end
41
41
 
42
42
  module Google
@@ -1,11 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/monitoring/dashboard/v1/drilldowns.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/monitoring/dashboard/v1/drilldowns.proto", :syntax => :proto3) do
7
+
8
+ descriptor_data = "\n/google/monitoring/dashboard/v1/drilldowns.proto\x12\x1egoogle.monitoring.dashboard.v1B\xf8\x01\n\"com.google.monitoring.dashboard.v1B\x0f\x44rilldownsProtoP\x01ZFcloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb;dashboardpb\xaa\x02$Google.Cloud.Monitoring.Dashboard.V1\xca\x02$Google\\Cloud\\Monitoring\\Dashboard\\V1\xea\x02(Google::Cloud::Monitoring::Dashboard::V1b\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}"
28
+ end
8
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."
9
32
  end
10
33
 
11
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/dashboard/v1/layouts.proto
3
4
 
@@ -5,38 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/monitoring/dashboard/v1/widget_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/monitoring/dashboard/v1/layouts.proto", :syntax => :proto3) do
10
- add_message "google.monitoring.dashboard.v1.GridLayout" do
11
- optional :columns, :int64, 1
12
- repeated :widgets, :message, 2, "google.monitoring.dashboard.v1.Widget"
13
- end
14
- add_message "google.monitoring.dashboard.v1.MosaicLayout" do
15
- optional :columns, :int32, 1
16
- repeated :tiles, :message, 3, "google.monitoring.dashboard.v1.MosaicLayout.Tile"
17
- end
18
- add_message "google.monitoring.dashboard.v1.MosaicLayout.Tile" do
19
- optional :x_pos, :int32, 1
20
- optional :y_pos, :int32, 2
21
- optional :width, :int32, 3
22
- optional :height, :int32, 4
23
- optional :widget, :message, 5, "google.monitoring.dashboard.v1.Widget"
24
- end
25
- add_message "google.monitoring.dashboard.v1.RowLayout" do
26
- repeated :rows, :message, 1, "google.monitoring.dashboard.v1.RowLayout.Row"
27
- end
28
- add_message "google.monitoring.dashboard.v1.RowLayout.Row" do
29
- optional :weight, :int64, 1
30
- repeated :widgets, :message, 2, "google.monitoring.dashboard.v1.Widget"
31
- end
32
- add_message "google.monitoring.dashboard.v1.ColumnLayout" do
33
- repeated :columns, :message, 1, "google.monitoring.dashboard.v1.ColumnLayout.Column"
34
- end
35
- add_message "google.monitoring.dashboard.v1.ColumnLayout.Column" do
36
- optional :weight, :int64, 1
37
- repeated :widgets, :message, 2, "google.monitoring.dashboard.v1.Widget"
9
+
10
+ descriptor_data = "\n,google/monitoring/dashboard/v1/layouts.proto\x12\x1egoogle.monitoring.dashboard.v1\x1a+google/monitoring/dashboard/v1/widget.proto\"V\n\nGridLayout\x12\x0f\n\x07\x63olumns\x18\x01 \x01(\x03\x12\x37\n\x07widgets\x18\x02 \x03(\x0b\x32&.google.monitoring.dashboard.v1.Widget\"\xde\x01\n\x0cMosaicLayout\x12\x0f\n\x07\x63olumns\x18\x01 \x01(\x05\x12@\n\x05tiles\x18\x03 \x03(\x0b\x32\x31.google.monitoring.dashboard.v1.MosaicLayout.Tile\x1a{\n\x04Tile\x12\r\n\x05x_pos\x18\x01 \x01(\x05\x12\r\n\x05y_pos\x18\x02 \x01(\x05\x12\r\n\x05width\x18\x03 \x01(\x05\x12\x0e\n\x06height\x18\x04 \x01(\x05\x12\x36\n\x06widget\x18\x05 \x01(\x0b\x32&.google.monitoring.dashboard.v1.Widget\"\x98\x01\n\tRowLayout\x12;\n\x04rows\x18\x01 \x03(\x0b\x32-.google.monitoring.dashboard.v1.RowLayout.Row\x1aN\n\x03Row\x12\x0e\n\x06weight\x18\x01 \x01(\x03\x12\x37\n\x07widgets\x18\x02 \x03(\x0b\x32&.google.monitoring.dashboard.v1.Widget\"\xa7\x01\n\x0c\x43olumnLayout\x12\x44\n\x07\x63olumns\x18\x01 \x03(\x0b\x32\x33.google.monitoring.dashboard.v1.ColumnLayout.Column\x1aQ\n\x06\x43olumn\x12\x0e\n\x06weight\x18\x01 \x01(\x03\x12\x37\n\x07widgets\x18\x02 \x03(\x0b\x32&.google.monitoring.dashboard.v1.WidgetB\xf5\x01\n\"com.google.monitoring.dashboard.v1B\x0cLayoutsProtoP\x01ZFcloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb;dashboardpb\xaa\x02$Google.Cloud.Monitoring.Dashboard.V1\xca\x02$Google\\Cloud\\Monitoring\\Dashboard\\V1\xea\x02(Google::Cloud::Monitoring::Dashboard::V1b\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.monitoring.dashboard.v1.Widget", "google/monitoring/dashboard/v1/widget.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}"
38
31
  end
39
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."
40
35
  end
41
36
 
42
37
  module Google