google-cloud-monitoring-dashboard-v1 0.11.0 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -1,15 +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/logs_panel.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/logs_panel.proto", :syntax => :proto3) do
8
- add_message "google.monitoring.dashboard.v1.LogsPanel" do
9
- optional :filter, :string, 1
10
- repeated :resource_names, :string, 2
7
+
8
+ descriptor_data = "\n/google/monitoring/dashboard/v1/logs_panel.proto\x12\x1egoogle.monitoring.dashboard.v1\"3\n\tLogsPanel\x12\x0e\n\x06\x66ilter\x18\x01 \x01(\t\x12\x16\n\x0eresource_names\x18\x02 \x03(\tB\xf7\x01\n\"com.google.monitoring.dashboard.v1B\x0eLogsPanelProtoP\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}"
11
28
  end
12
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."
13
32
  end
14
33
 
15
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/metrics.proto
3
4
 
@@ -6,67 +7,32 @@ require 'google/protobuf'
6
7
  require 'google/api/field_behavior_pb'
7
8
  require 'google/monitoring/dashboard/v1/common_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/monitoring/dashboard/v1/metrics.proto", :syntax => :proto3) do
11
- add_message "google.monitoring.dashboard.v1.TimeSeriesQuery" do
12
- optional :unit_override, :string, 5
13
- oneof :source do
14
- optional :time_series_filter, :message, 1, "google.monitoring.dashboard.v1.TimeSeriesFilter"
15
- optional :time_series_filter_ratio, :message, 2, "google.monitoring.dashboard.v1.TimeSeriesFilterRatio"
16
- optional :time_series_query_language, :string, 3
17
- optional :prometheus_query, :string, 6
18
- end
19
- end
20
- add_message "google.monitoring.dashboard.v1.TimeSeriesFilter" do
21
- optional :filter, :string, 1
22
- optional :aggregation, :message, 2, "google.monitoring.dashboard.v1.Aggregation"
23
- optional :secondary_aggregation, :message, 3, "google.monitoring.dashboard.v1.Aggregation"
24
- oneof :output_filter do
25
- optional :pick_time_series_filter, :message, 4, "google.monitoring.dashboard.v1.PickTimeSeriesFilter"
26
- optional :statistical_time_series_filter, :message, 5, "google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter"
27
- end
28
- end
29
- add_message "google.monitoring.dashboard.v1.TimeSeriesFilterRatio" do
30
- optional :numerator, :message, 1, "google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart"
31
- optional :denominator, :message, 2, "google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart"
32
- optional :secondary_aggregation, :message, 3, "google.monitoring.dashboard.v1.Aggregation"
33
- oneof :output_filter do
34
- optional :pick_time_series_filter, :message, 4, "google.monitoring.dashboard.v1.PickTimeSeriesFilter"
35
- optional :statistical_time_series_filter, :message, 5, "google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter"
36
- end
37
- end
38
- add_message "google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart" do
39
- optional :filter, :string, 1
40
- optional :aggregation, :message, 2, "google.monitoring.dashboard.v1.Aggregation"
41
- end
42
- add_message "google.monitoring.dashboard.v1.Threshold" do
43
- optional :label, :string, 1
44
- optional :value, :double, 2
45
- optional :color, :enum, 3, "google.monitoring.dashboard.v1.Threshold.Color"
46
- optional :direction, :enum, 4, "google.monitoring.dashboard.v1.Threshold.Direction"
47
- optional :target_axis, :enum, 5, "google.monitoring.dashboard.v1.Threshold.TargetAxis"
48
- end
49
- add_enum "google.monitoring.dashboard.v1.Threshold.Color" do
50
- value :COLOR_UNSPECIFIED, 0
51
- value :YELLOW, 4
52
- value :RED, 6
53
- end
54
- add_enum "google.monitoring.dashboard.v1.Threshold.Direction" do
55
- value :DIRECTION_UNSPECIFIED, 0
56
- value :ABOVE, 1
57
- value :BELOW, 2
58
- end
59
- add_enum "google.monitoring.dashboard.v1.Threshold.TargetAxis" do
60
- value :TARGET_AXIS_UNSPECIFIED, 0
61
- value :Y1, 1
62
- value :Y2, 2
63
- end
64
- add_enum "google.monitoring.dashboard.v1.SparkChartType" do
65
- value :SPARK_CHART_TYPE_UNSPECIFIED, 0
66
- value :SPARK_LINE, 1
67
- value :SPARK_BAR, 2
10
+
11
+ descriptor_data = "\n,google/monitoring/dashboard/v1/metrics.proto\x12\x1egoogle.monitoring.dashboard.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a+google/monitoring/dashboard/v1/common.proto\"\x9f\x02\n\x0fTimeSeriesQuery\x12N\n\x12time_series_filter\x18\x01 \x01(\x0b\x32\x30.google.monitoring.dashboard.v1.TimeSeriesFilterH\x00\x12Y\n\x18time_series_filter_ratio\x18\x02 \x01(\x0b\x32\x35.google.monitoring.dashboard.v1.TimeSeriesFilterRatioH\x00\x12$\n\x1atime_series_query_language\x18\x03 \x01(\tH\x00\x12\x1a\n\x10prometheus_query\x18\x06 \x01(\tH\x00\x12\x15\n\runit_override\x18\x05 \x01(\tB\x08\n\x06source\"\x8a\x03\n\x10TimeSeriesFilter\x12\x13\n\x06\x66ilter\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12@\n\x0b\x61ggregation\x18\x02 \x01(\x0b\x32+.google.monitoring.dashboard.v1.Aggregation\x12J\n\x15secondary_aggregation\x18\x03 \x01(\x0b\x32+.google.monitoring.dashboard.v1.Aggregation\x12W\n\x17pick_time_series_filter\x18\x04 \x01(\x0b\x32\x34.google.monitoring.dashboard.v1.PickTimeSeriesFilterH\x00\x12i\n\x1estatistical_time_series_filter\x18\x05 \x01(\x0b\x32;.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterB\x02\x18\x01H\x00\x42\x0f\n\routput_filter\"\xc6\x04\n\x15TimeSeriesFilterRatio\x12R\n\tnumerator\x18\x01 \x01(\x0b\x32?.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart\x12T\n\x0b\x64\x65nominator\x18\x02 \x01(\x0b\x32?.google.monitoring.dashboard.v1.TimeSeriesFilterRatio.RatioPart\x12J\n\x15secondary_aggregation\x18\x03 \x01(\x0b\x32+.google.monitoring.dashboard.v1.Aggregation\x12W\n\x17pick_time_series_filter\x18\x04 \x01(\x0b\x32\x34.google.monitoring.dashboard.v1.PickTimeSeriesFilterH\x00\x12i\n\x1estatistical_time_series_filter\x18\x05 \x01(\x0b\x32;.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilterB\x02\x18\x01H\x00\x1a\x62\n\tRatioPart\x12\x13\n\x06\x66ilter\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12@\n\x0b\x61ggregation\x18\x02 \x01(\x0b\x32+.google.monitoring.dashboard.v1.AggregationB\x0f\n\routput_filter\"\xaa\x03\n\tThreshold\x12\r\n\x05label\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x01\x12>\n\x05\x63olor\x18\x03 \x01(\x0e\x32/.google.monitoring.dashboard.v1.Threshold.Color\x12\x46\n\tdirection\x18\x04 \x01(\x0e\x32\x33.google.monitoring.dashboard.v1.Threshold.Direction\x12I\n\x0btarget_axis\x18\x05 \x01(\x0e\x32\x34.google.monitoring.dashboard.v1.Threshold.TargetAxis\"3\n\x05\x43olor\x12\x15\n\x11\x43OLOR_UNSPECIFIED\x10\x00\x12\n\n\x06YELLOW\x10\x04\x12\x07\n\x03RED\x10\x06\"<\n\tDirection\x12\x19\n\x15\x44IRECTION_UNSPECIFIED\x10\x00\x12\t\n\x05\x41\x42OVE\x10\x01\x12\t\n\x05\x42\x45LOW\x10\x02\"9\n\nTargetAxis\x12\x1b\n\x17TARGET_AXIS_UNSPECIFIED\x10\x00\x12\x06\n\x02Y1\x10\x01\x12\x06\n\x02Y2\x10\x02*Q\n\x0eSparkChartType\x12 \n\x1cSPARK_CHART_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nSPARK_LINE\x10\x01\x12\r\n\tSPARK_BAR\x10\x02\x42\xf5\x01\n\"com.google.monitoring.dashboard.v1B\x0cMetricsProtoP\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
+ ["google.monitoring.dashboard.v1.Aggregation", "google/monitoring/dashboard/v1/common.proto"],
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}"
68
32
  end
69
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."
70
36
  end
71
37
 
72
38
  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/scorecard.proto
3
4
 
@@ -7,25 +8,33 @@ require 'google/api/field_behavior_pb'
7
8
  require 'google/monitoring/dashboard/v1/metrics_pb'
8
9
  require 'google/protobuf/duration_pb'
9
10
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("google/monitoring/dashboard/v1/scorecard.proto", :syntax => :proto3) do
12
- add_message "google.monitoring.dashboard.v1.Scorecard" do
13
- optional :time_series_query, :message, 1, "google.monitoring.dashboard.v1.TimeSeriesQuery"
14
- repeated :thresholds, :message, 6, "google.monitoring.dashboard.v1.Threshold"
15
- oneof :data_view do
16
- optional :gauge_view, :message, 4, "google.monitoring.dashboard.v1.Scorecard.GaugeView"
17
- optional :spark_chart_view, :message, 5, "google.monitoring.dashboard.v1.Scorecard.SparkChartView"
18
- end
19
- end
20
- add_message "google.monitoring.dashboard.v1.Scorecard.GaugeView" do
21
- optional :lower_bound, :double, 1
22
- optional :upper_bound, :double, 2
23
- end
24
- add_message "google.monitoring.dashboard.v1.Scorecard.SparkChartView" do
25
- optional :spark_chart_type, :enum, 1, "google.monitoring.dashboard.v1.SparkChartType"
26
- optional :min_alignment_period, :message, 2, "google.protobuf.Duration"
11
+
12
+ descriptor_data = "\n.google/monitoring/dashboard/v1/scorecard.proto\x12\x1egoogle.monitoring.dashboard.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a,google/monitoring/dashboard/v1/metrics.proto\x1a\x1egoogle/protobuf/duration.proto\"\x9b\x04\n\tScorecard\x12O\n\x11time_series_query\x18\x01 \x01(\x0b\x32/.google.monitoring.dashboard.v1.TimeSeriesQueryB\x03\xe0\x41\x02\x12I\n\ngauge_view\x18\x04 \x01(\x0b\x32\x33.google.monitoring.dashboard.v1.Scorecard.GaugeViewH\x00\x12T\n\x10spark_chart_view\x18\x05 \x01(\x0b\x32\x38.google.monitoring.dashboard.v1.Scorecard.SparkChartViewH\x00\x12=\n\nthresholds\x18\x06 \x03(\x0b\x32).google.monitoring.dashboard.v1.Threshold\x1a\x35\n\tGaugeView\x12\x13\n\x0blower_bound\x18\x01 \x01(\x01\x12\x13\n\x0bupper_bound\x18\x02 \x01(\x01\x1a\x98\x01\n\x0eSparkChartView\x12M\n\x10spark_chart_type\x18\x01 \x01(\x0e\x32..google.monitoring.dashboard.v1.SparkChartTypeB\x03\xe0\x41\x02\x12\x37\n\x14min_alignment_period\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0b\n\tdata_viewB\xf7\x01\n\"com.google.monitoring.dashboard.v1B\x0eScorecardProtoP\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"
13
+
14
+ pool = Google::Protobuf::DescriptorPool.generated_pool
15
+
16
+ begin
17
+ pool.add_serialized_file(descriptor_data)
18
+ rescue TypeError => e
19
+ # Compatibility code: will be removed in the next major version.
20
+ require 'google/protobuf/descriptor_pb'
21
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
22
+ parsed.clear_dependency
23
+ serialized = parsed.class.encode(parsed)
24
+ file = pool.add_serialized_file(serialized)
25
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
26
+ imports = [
27
+ ["google.monitoring.dashboard.v1.TimeSeriesQuery", "google/monitoring/dashboard/v1/metrics.proto"],
28
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
29
+ ]
30
+ imports.each do |type_name, expected_filename|
31
+ import_file = pool.lookup(type_name).file_descriptor
32
+ if import_file.name != expected_filename
33
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
27
34
  end
28
35
  end
36
+ warn "Each proto file must use a consistent fully-qualified name."
37
+ warn "This will become an error in the next major version."
29
38
  end
30
39
 
31
40
  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/service.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/service.proto", :syntax => :proto3) do
7
+
8
+ descriptor_data = "\n,google/monitoring/dashboard/v1/service.proto\x12\x1egoogle.monitoring.dashboard.v1B\xff\x01\n\"com.google.monitoring.dashboard.v1B\x16ServiceMonitoringProtoP\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/table_display_options.proto
3
4
 
@@ -5,12 +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/table_display_options.proto", :syntax => :proto3) do
10
- add_message "google.monitoring.dashboard.v1.TableDisplayOptions" do
11
- repeated :shown_columns, :string, 1
9
+
10
+ descriptor_data = "\n:google/monitoring/dashboard/v1/table_display_options.proto\x12\x1egoogle.monitoring.dashboard.v1\x1a\x1fgoogle/api/field_behavior.proto\"3\n\x13TableDisplayOptions\x12\x1c\n\rshown_columns\x18\x01 \x03(\tB\x05\x18\x01\xe0\x41\x01\x42\x81\x02\n\"com.google.monitoring.dashboard.v1B\x18TableDisplayOptionsProtoP\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}"
12
30
  end
13
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."
14
34
  end
15
35
 
16
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/table.proto
3
4
 
@@ -8,29 +9,34 @@ require 'google/monitoring/dashboard/v1/metrics_pb'
8
9
  require 'google/monitoring/dashboard/v1/table_display_options_pb'
9
10
  require 'google/protobuf/duration_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/monitoring/dashboard/v1/table.proto", :syntax => :proto3) do
13
- add_message "google.monitoring.dashboard.v1.TimeSeriesTable" do
14
- repeated :data_sets, :message, 1, "google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet"
15
- optional :metric_visualization, :enum, 2, "google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization"
16
- repeated :column_settings, :message, 4, "google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings"
17
- end
18
- add_message "google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet" do
19
- optional :time_series_query, :message, 1, "google.monitoring.dashboard.v1.TimeSeriesQuery"
20
- optional :table_template, :string, 2
21
- optional :min_alignment_period, :message, 3, "google.protobuf.Duration"
22
- optional :table_display_options, :message, 4, "google.monitoring.dashboard.v1.TableDisplayOptions"
23
- end
24
- add_message "google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings" do
25
- optional :column, :string, 1
26
- optional :visible, :bool, 2
27
- end
28
- add_enum "google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization" do
29
- value :METRIC_VISUALIZATION_UNSPECIFIED, 0
30
- value :NUMBER, 1
31
- value :BAR, 2
12
+
13
+ descriptor_data = "\n*google/monitoring/dashboard/v1/table.proto\x12\x1egoogle.monitoring.dashboard.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a,google/monitoring/dashboard/v1/metrics.proto\x1a:google/monitoring/dashboard/v1/table_display_options.proto\x1a\x1egoogle/protobuf/duration.proto\"\xd2\x05\n\x0fTimeSeriesTable\x12T\n\tdata_sets\x18\x01 \x03(\x0b\x32<.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSetB\x03\xe0\x41\x02\x12\x66\n\x14metric_visualization\x18\x02 \x01(\x0e\x32\x43.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualizationB\x03\xe0\x41\x01\x12\\\n\x0f\x63olumn_settings\x18\x04 \x03(\x0b\x32>.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettingsB\x03\xe0\x41\x01\x1a\x93\x02\n\x0cTableDataSet\x12O\n\x11time_series_query\x18\x01 \x01(\x0b\x32/.google.monitoring.dashboard.v1.TimeSeriesQueryB\x03\xe0\x41\x02\x12\x1b\n\x0etable_template\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12<\n\x14min_alignment_period\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12W\n\x15table_display_options\x18\x04 \x01(\x0b\x32\x33.google.monitoring.dashboard.v1.TableDisplayOptionsB\x03\xe0\x41\x01\x1a;\n\x0e\x43olumnSettings\x12\x13\n\x06\x63olumn\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x07visible\x18\x02 \x01(\x08\x42\x03\xe0\x41\x02\"P\n\x13MetricVisualization\x12$\n METRIC_VISUALIZATION_UNSPECIFIED\x10\x00\x12\n\n\x06NUMBER\x10\x01\x12\x07\n\x03\x42\x41R\x10\x02\x42\xf3\x01\n\"com.google.monitoring.dashboard.v1B\nTableProtoP\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.TimeSeriesQuery", "google/monitoring/dashboard/v1/metrics.proto"],
29
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
30
+ ["google.monitoring.dashboard.v1.TableDisplayOptions", "google/monitoring/dashboard/v1/table_display_options.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}"
32
36
  end
33
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."
34
40
  end
35
41
 
36
42
  module Google
@@ -1,20 +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/text.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/text.proto", :syntax => :proto3) do
8
- add_message "google.monitoring.dashboard.v1.Text" do
9
- optional :content, :string, 1
10
- optional :format, :enum, 2, "google.monitoring.dashboard.v1.Text.Format"
11
- end
12
- add_enum "google.monitoring.dashboard.v1.Text.Format" do
13
- value :FORMAT_UNSPECIFIED, 0
14
- value :MARKDOWN, 1
15
- value :RAW, 2
7
+
8
+ descriptor_data = "\n)google/monitoring/dashboard/v1/text.proto\x12\x1egoogle.monitoring.dashboard.v1\"\x8d\x01\n\x04Text\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12;\n\x06\x66ormat\x18\x02 \x01(\x0e\x32+.google.monitoring.dashboard.v1.Text.Format\"7\n\x06\x46ormat\x12\x16\n\x12\x46ORMAT_UNSPECIFIED\x10\x00\x12\x0c\n\x08MARKDOWN\x10\x01\x12\x07\n\x03RAW\x10\x02\x42\xf2\x01\n\"com.google.monitoring.dashboard.v1B\tTextProtoP\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}"
16
28
  end
17
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."
18
32
  end
19
33
 
20
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/widget.proto
3
4
 
@@ -13,22 +14,39 @@ require 'google/monitoring/dashboard/v1/text_pb'
13
14
  require 'google/monitoring/dashboard/v1/xychart_pb'
14
15
  require 'google/protobuf/empty_pb'
15
16
 
16
- Google::Protobuf::DescriptorPool.generated_pool.build do
17
- add_file("google/monitoring/dashboard/v1/widget.proto", :syntax => :proto3) do
18
- add_message "google.monitoring.dashboard.v1.Widget" do
19
- optional :title, :string, 1
20
- oneof :content do
21
- optional :xy_chart, :message, 2, "google.monitoring.dashboard.v1.XyChart"
22
- optional :scorecard, :message, 3, "google.monitoring.dashboard.v1.Scorecard"
23
- optional :text, :message, 4, "google.monitoring.dashboard.v1.Text"
24
- optional :blank, :message, 5, "google.protobuf.Empty"
25
- optional :alert_chart, :message, 7, "google.monitoring.dashboard.v1.AlertChart"
26
- optional :time_series_table, :message, 8, "google.monitoring.dashboard.v1.TimeSeriesTable"
27
- optional :collapsible_group, :message, 9, "google.monitoring.dashboard.v1.CollapsibleGroup"
28
- optional :logs_panel, :message, 10, "google.monitoring.dashboard.v1.LogsPanel"
29
- end
17
+
18
+ descriptor_data = "\n+google/monitoring/dashboard/v1/widget.proto\x12\x1egoogle.monitoring.dashboard.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a/google/monitoring/dashboard/v1/alertchart.proto\x1a\x36google/monitoring/dashboard/v1/collapsible_group.proto\x1a/google/monitoring/dashboard/v1/logs_panel.proto\x1a.google/monitoring/dashboard/v1/scorecard.proto\x1a*google/monitoring/dashboard/v1/table.proto\x1a)google/monitoring/dashboard/v1/text.proto\x1a,google/monitoring/dashboard/v1/xychart.proto\x1a\x1bgoogle/protobuf/empty.proto\"\xa4\x04\n\x06Widget\x12\x12\n\x05title\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12;\n\x08xy_chart\x18\x02 \x01(\x0b\x32\'.google.monitoring.dashboard.v1.XyChartH\x00\x12>\n\tscorecard\x18\x03 \x01(\x0b\x32).google.monitoring.dashboard.v1.ScorecardH\x00\x12\x34\n\x04text\x18\x04 \x01(\x0b\x32$.google.monitoring.dashboard.v1.TextH\x00\x12\'\n\x05\x62lank\x18\x05 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x41\n\x0b\x61lert_chart\x18\x07 \x01(\x0b\x32*.google.monitoring.dashboard.v1.AlertChartH\x00\x12L\n\x11time_series_table\x18\x08 \x01(\x0b\x32/.google.monitoring.dashboard.v1.TimeSeriesTableH\x00\x12M\n\x11\x63ollapsible_group\x18\t \x01(\x0b\x32\x30.google.monitoring.dashboard.v1.CollapsibleGroupH\x00\x12?\n\nlogs_panel\x18\n \x01(\x0b\x32).google.monitoring.dashboard.v1.LogsPanelH\x00\x42\t\n\x07\x63ontentB\xf4\x01\n\"com.google.monitoring.dashboard.v1B\x0bWidgetProtoP\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"
19
+
20
+ pool = Google::Protobuf::DescriptorPool.generated_pool
21
+
22
+ begin
23
+ pool.add_serialized_file(descriptor_data)
24
+ rescue TypeError => e
25
+ # Compatibility code: will be removed in the next major version.
26
+ require 'google/protobuf/descriptor_pb'
27
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
28
+ parsed.clear_dependency
29
+ serialized = parsed.class.encode(parsed)
30
+ file = pool.add_serialized_file(serialized)
31
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
32
+ imports = [
33
+ ["google.monitoring.dashboard.v1.XyChart", "google/monitoring/dashboard/v1/xychart.proto"],
34
+ ["google.monitoring.dashboard.v1.Scorecard", "google/monitoring/dashboard/v1/scorecard.proto"],
35
+ ["google.monitoring.dashboard.v1.Text", "google/monitoring/dashboard/v1/text.proto"],
36
+ ["google.protobuf.Empty", "google/protobuf/empty.proto"],
37
+ ["google.monitoring.dashboard.v1.AlertChart", "google/monitoring/dashboard/v1/alertchart.proto"],
38
+ ["google.monitoring.dashboard.v1.TimeSeriesTable", "google/monitoring/dashboard/v1/table.proto"],
39
+ ["google.monitoring.dashboard.v1.CollapsibleGroup", "google/monitoring/dashboard/v1/collapsible_group.proto"],
40
+ ["google.monitoring.dashboard.v1.LogsPanel", "google/monitoring/dashboard/v1/logs_panel.proto"],
41
+ ]
42
+ imports.each do |type_name, expected_filename|
43
+ import_file = pool.lookup(type_name).file_descriptor
44
+ if import_file.name != expected_filename
45
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
30
46
  end
31
47
  end
48
+ warn "Each proto file must use a consistent fully-qualified name."
49
+ warn "This will become an error in the next major version."
32
50
  end
33
51
 
34
52
  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/xychart.proto
3
4
 
@@ -7,55 +8,33 @@ require 'google/api/field_behavior_pb'
7
8
  require 'google/monitoring/dashboard/v1/metrics_pb'
8
9
  require 'google/protobuf/duration_pb'
9
10
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("google/monitoring/dashboard/v1/xychart.proto", :syntax => :proto3) do
12
- add_message "google.monitoring.dashboard.v1.XyChart" do
13
- repeated :data_sets, :message, 1, "google.monitoring.dashboard.v1.XyChart.DataSet"
14
- optional :timeshift_duration, :message, 4, "google.protobuf.Duration"
15
- repeated :thresholds, :message, 5, "google.monitoring.dashboard.v1.Threshold"
16
- optional :x_axis, :message, 6, "google.monitoring.dashboard.v1.XyChart.Axis"
17
- optional :y_axis, :message, 7, "google.monitoring.dashboard.v1.XyChart.Axis"
18
- optional :y2_axis, :message, 9, "google.monitoring.dashboard.v1.XyChart.Axis"
19
- optional :chart_options, :message, 8, "google.monitoring.dashboard.v1.ChartOptions"
20
- end
21
- add_message "google.monitoring.dashboard.v1.XyChart.DataSet" do
22
- optional :time_series_query, :message, 1, "google.monitoring.dashboard.v1.TimeSeriesQuery"
23
- optional :plot_type, :enum, 2, "google.monitoring.dashboard.v1.XyChart.DataSet.PlotType"
24
- optional :legend_template, :string, 3
25
- optional :min_alignment_period, :message, 4, "google.protobuf.Duration"
26
- optional :target_axis, :enum, 5, "google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis"
27
- end
28
- add_enum "google.monitoring.dashboard.v1.XyChart.DataSet.PlotType" do
29
- value :PLOT_TYPE_UNSPECIFIED, 0
30
- value :LINE, 1
31
- value :STACKED_AREA, 2
32
- value :STACKED_BAR, 3
33
- value :HEATMAP, 4
34
- end
35
- add_enum "google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxis" do
36
- value :TARGET_AXIS_UNSPECIFIED, 0
37
- value :Y1, 1
38
- value :Y2, 2
39
- end
40
- add_message "google.monitoring.dashboard.v1.XyChart.Axis" do
41
- optional :label, :string, 1
42
- optional :scale, :enum, 2, "google.monitoring.dashboard.v1.XyChart.Axis.Scale"
43
- end
44
- add_enum "google.monitoring.dashboard.v1.XyChart.Axis.Scale" do
45
- value :SCALE_UNSPECIFIED, 0
46
- value :LINEAR, 1
47
- value :LOG10, 2
48
- end
49
- add_message "google.monitoring.dashboard.v1.ChartOptions" do
50
- optional :mode, :enum, 1, "google.monitoring.dashboard.v1.ChartOptions.Mode"
51
- end
52
- add_enum "google.monitoring.dashboard.v1.ChartOptions.Mode" do
53
- value :MODE_UNSPECIFIED, 0
54
- value :COLOR, 1
55
- value :X_RAY, 2
56
- value :STATS, 3
11
+
12
+ descriptor_data = "\n,google/monitoring/dashboard/v1/xychart.proto\x12\x1egoogle.monitoring.dashboard.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a,google/monitoring/dashboard/v1/metrics.proto\x1a\x1egoogle/protobuf/duration.proto\"\xcd\x08\n\x07XyChart\x12G\n\tdata_sets\x18\x01 \x03(\x0b\x32/.google.monitoring.dashboard.v1.XyChart.DataSetB\x03\xe0\x41\x02\x12\x35\n\x12timeshift_duration\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12=\n\nthresholds\x18\x05 \x03(\x0b\x32).google.monitoring.dashboard.v1.Threshold\x12<\n\x06x_axis\x18\x06 \x01(\x0b\x32,.google.monitoring.dashboard.v1.XyChart.Axis\x12<\n\x06y_axis\x18\x07 \x01(\x0b\x32,.google.monitoring.dashboard.v1.XyChart.Axis\x12=\n\x07y2_axis\x18\t \x01(\x0b\x32,.google.monitoring.dashboard.v1.XyChart.Axis\x12\x43\n\rchart_options\x18\x08 \x01(\x0b\x32,.google.monitoring.dashboard.v1.ChartOptions\x1a\xf0\x03\n\x07\x44\x61taSet\x12O\n\x11time_series_query\x18\x01 \x01(\x0b\x32/.google.monitoring.dashboard.v1.TimeSeriesQueryB\x03\xe0\x41\x02\x12K\n\tplot_type\x18\x02 \x01(\x0e\x32\x38.google.monitoring.dashboard.v1.XyChart.DataSet.PlotType\x12\x17\n\x0flegend_template\x18\x03 \x01(\t\x12<\n\x14min_alignment_period\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12T\n\x0btarget_axis\x18\x05 \x01(\x0e\x32:.google.monitoring.dashboard.v1.XyChart.DataSet.TargetAxisB\x03\xe0\x41\x01\"_\n\x08PlotType\x12\x19\n\x15PLOT_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04LINE\x10\x01\x12\x10\n\x0cSTACKED_AREA\x10\x02\x12\x0f\n\x0bSTACKED_BAR\x10\x03\x12\x0b\n\x07HEATMAP\x10\x04\"9\n\nTargetAxis\x12\x1b\n\x17TARGET_AXIS_UNSPECIFIED\x10\x00\x12\x06\n\x02Y1\x10\x01\x12\x06\n\x02Y2\x10\x02\x1a\x8f\x01\n\x04\x41xis\x12\r\n\x05label\x18\x01 \x01(\t\x12\x41\n\x05scale\x18\x02 \x01(\x0e\x32\x32.google.monitoring.dashboard.v1.XyChart.Axis.Scale\"5\n\x05Scale\x12\x15\n\x11SCALE_UNSPECIFIED\x10\x00\x12\n\n\x06LINEAR\x10\x01\x12\t\n\x05LOG10\x10\x02\"\x8e\x01\n\x0c\x43hartOptions\x12?\n\x04mode\x18\x01 \x01(\x0e\x32\x31.google.monitoring.dashboard.v1.ChartOptions.Mode\"=\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\t\n\x05\x43OLOR\x10\x01\x12\t\n\x05X_RAY\x10\x02\x12\t\n\x05STATS\x10\x03\x42\xf5\x01\n\"com.google.monitoring.dashboard.v1B\x0cXyChartProtoP\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"
13
+
14
+ pool = Google::Protobuf::DescriptorPool.generated_pool
15
+
16
+ begin
17
+ pool.add_serialized_file(descriptor_data)
18
+ rescue TypeError => e
19
+ # Compatibility code: will be removed in the next major version.
20
+ require 'google/protobuf/descriptor_pb'
21
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
22
+ parsed.clear_dependency
23
+ serialized = parsed.class.encode(parsed)
24
+ file = pool.add_serialized_file(serialized)
25
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
26
+ imports = [
27
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
28
+ ["google.monitoring.dashboard.v1.Threshold", "google/monitoring/dashboard/v1/metrics.proto"],
29
+ ]
30
+ imports.each do |type_name, expected_filename|
31
+ import_file = pool.lookup(type_name).file_descriptor
32
+ if import_file.name != expected_filename
33
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
57
34
  end
58
35
  end
36
+ warn "Each proto file must use a consistent fully-qualified name."
37
+ warn "This will become an error in the next major version."
59
38
  end
60
39
 
61
40
  module Google