From cecd9446fdea65ba132323488aa2fa85821519d3 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 11 Jan 2023 18:25:04 -0500 Subject: [PATCH] feat: [monitoring-dashboards] added support for horizontal bar rendering and column settings on time series tables (#8975) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: added support for horizontal bar rendering and column settings on time series tables PiperOrigin-RevId: 501316608 Source-Link: https://github.com/googleapis/googleapis/commit/09d97e07ebcd1722c88537e74ccf1732651bfca1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/8085bab1bdf4b9d7007dd94f5d6c975888a14d73 Copy-Tag: eyJwIjoiamF2YS1tb25pdG9yaW5nLWRhc2hib2FyZHMvLk93bEJvdC55YW1sIiwiaCI6IjgwODViYWIxYmRmNGI5ZDcwMDdkZDk0ZjVkNmM5NzU4ODhhMTRkNzMifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-monitoring-dashboards/README.md | 6 +- .../dashboard/v1/DashboardsServiceGrpc.java | 32 +- .../monitoring/dashboard/v1/TableProto.java | 56 +- .../dashboard/v1/TimeSeriesFilter.java | 43 +- .../v1/TimeSeriesFilterOrBuilder.java | 14 +- .../dashboard/v1/TimeSeriesFilterRatio.java | 8 +- .../v1/TimeSeriesFilterRatioOrBuilder.java | 4 +- .../dashboard/v1/TimeSeriesTable.java | 2937 +++++++++++++---- .../v1/TimeSeriesTableOrBuilder.java | 94 + .../monitoring/dashboard/v1/XyChart.java | 120 +- .../dashboard/v1/dashboards_service.proto | 8 +- .../monitoring/dashboard/v1/metrics.proto | 11 +- .../monitoring/dashboard/v1/table.proto | 55 +- .../dashboard/v1/table_display_options.proto | 6 +- .../monitoring/dashboard/v1/xychart.proto | 14 +- 15 files changed, 2627 insertions(+), 781 deletions(-) diff --git a/java-monitoring-dashboards/README.md b/java-monitoring-dashboards/README.md index 3d4be915a961..d13fae7e45ac 100644 --- a/java-monitoring-dashboards/README.md +++ b/java-monitoring-dashboards/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-monitoring-dashboard - 2.8.0 + 2.9.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.8.0' +implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.9.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.8.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.9.0" ``` ## Authentication diff --git a/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceGrpc.java b/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceGrpc.java index 000959cb6a5b..6aa8ab2b48d1 100644 --- a/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceGrpc.java +++ b/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardsServiceGrpc.java @@ -319,8 +319,12 @@ public abstract static class DashboardsServiceImplBase implements io.grpc.Bindab * * *
-     * Creates a new custom dashboard. For examples on how you can use this API to create dashboards, see [Managing dashboards by API](https://cloud.google.com/monitoring/dashboards/api-dashboard).
-     * This method requires the `monitoring.dashboards.create` permission on the specified project. For more information about permissions, see [Cloud Identity and Access Management](https://cloud.google.com/iam).
+     * Creates a new custom dashboard. For examples on how you can use this API to
+     * create dashboards, see [Managing dashboards by
+     * API](https://cloud.google.com/monitoring/dashboards/api-dashboard). This
+     * method requires the `monitoring.dashboards.create` permission on the
+     * specified project. For more information about permissions, see [Cloud
+     * Identity and Access Management](https://cloud.google.com/iam).
      * 
*/ public void createDashboard( @@ -466,8 +470,12 @@ protected DashboardsServiceStub build( * * *
-     * Creates a new custom dashboard. For examples on how you can use this API to create dashboards, see [Managing dashboards by API](https://cloud.google.com/monitoring/dashboards/api-dashboard).
-     * This method requires the `monitoring.dashboards.create` permission on the specified project. For more information about permissions, see [Cloud Identity and Access Management](https://cloud.google.com/iam).
+     * Creates a new custom dashboard. For examples on how you can use this API to
+     * create dashboards, see [Managing dashboards by
+     * API](https://cloud.google.com/monitoring/dashboards/api-dashboard). This
+     * method requires the `monitoring.dashboards.create` permission on the
+     * specified project. For more information about permissions, see [Cloud
+     * Identity and Access Management](https://cloud.google.com/iam).
      * 
*/ public void createDashboard( @@ -585,8 +593,12 @@ protected DashboardsServiceBlockingStub build( * * *
-     * Creates a new custom dashboard. For examples on how you can use this API to create dashboards, see [Managing dashboards by API](https://cloud.google.com/monitoring/dashboards/api-dashboard).
-     * This method requires the `monitoring.dashboards.create` permission on the specified project. For more information about permissions, see [Cloud Identity and Access Management](https://cloud.google.com/iam).
+     * Creates a new custom dashboard. For examples on how you can use this API to
+     * create dashboards, see [Managing dashboards by
+     * API](https://cloud.google.com/monitoring/dashboards/api-dashboard). This
+     * method requires the `monitoring.dashboards.create` permission on the
+     * specified project. For more information about permissions, see [Cloud
+     * Identity and Access Management](https://cloud.google.com/iam).
      * 
*/ public com.google.monitoring.dashboard.v1.Dashboard createDashboard( @@ -684,8 +696,12 @@ protected DashboardsServiceFutureStub build( * * *
-     * Creates a new custom dashboard. For examples on how you can use this API to create dashboards, see [Managing dashboards by API](https://cloud.google.com/monitoring/dashboards/api-dashboard).
-     * This method requires the `monitoring.dashboards.create` permission on the specified project. For more information about permissions, see [Cloud Identity and Access Management](https://cloud.google.com/iam).
+     * Creates a new custom dashboard. For examples on how you can use this API to
+     * create dashboards, see [Managing dashboards by
+     * API](https://cloud.google.com/monitoring/dashboards/api-dashboard). This
+     * method requires the `monitoring.dashboards.create` permission on the
+     * specified project. For more information about permissions, see [Cloud
+     * Identity and Access Management](https://cloud.google.com/iam).
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableProto.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableProto.java index ea83d3783db4..bf0e1bc17e6a 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableProto.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TableProto.java @@ -35,6 +35,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_ColumnSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_ColumnSettings_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -50,23 +54,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "nitoring/dashboard/v1/metrics.proto\032:goo" + "gle/monitoring/dashboard/v1/table_displa" + "y_options.proto\032\036google/protobuf/duratio" - + "n.proto\"\375\002\n\017TimeSeriesTable\022T\n\tdata_sets" + + "n.proto\"\322\005\n\017TimeSeriesTable\022T\n\tdata_sets" + "\030\001 \003(\0132<.google.monitoring.dashboard.v1." - + "TimeSeriesTable.TableDataSetB\003\340A\002\032\223\002\n\014Ta" - + "bleDataSet\022O\n\021time_series_query\030\001 \001(\0132/." - + "google.monitoring.dashboard.v1.TimeSerie" - + "sQueryB\003\340A\002\022\033\n\016table_template\030\002 \001(\tB\003\340A\001" - + "\022<\n\024min_alignment_period\030\003 \001(\0132\031.google." - + "protobuf.DurationB\003\340A\001\022W\n\025table_display_" - + "options\030\004 \001(\01323.google.monitoring.dashbo" - + "ard.v1.TableDisplayOptionsB\003\340A\001B\364\001\n\"com." - + "google.monitoring.dashboard.v1B\nTablePro" - + "toP\001ZGgoogle.golang.org/genproto/googlea" - + "pis/monitoring/dashboard/v1;dashboard\252\002$" - + "Google.Cloud.Monitoring.Dashboard.V1\312\002$G" - + "oogle\\Cloud\\Monitoring\\Dashboard\\V1\352\002(Go" - + "ogle::Cloud::Monitoring::Dashboard::V1b\006" - + "proto3" + + "TimeSeriesTable.TableDataSetB\003\340A\002\022f\n\024met" + + "ric_visualization\030\002 \001(\0162C.google.monitor" + + "ing.dashboard.v1.TimeSeriesTable.MetricV" + + "isualizationB\003\340A\001\022\\\n\017column_settings\030\004 \003" + + "(\0132>.google.monitoring.dashboard.v1.Time" + + "SeriesTable.ColumnSettingsB\003\340A\001\032\223\002\n\014Tabl" + + "eDataSet\022O\n\021time_series_query\030\001 \001(\0132/.go" + + "ogle.monitoring.dashboard.v1.TimeSeriesQ" + + "ueryB\003\340A\002\022\033\n\016table_template\030\002 \001(\tB\003\340A\001\022<" + + "\n\024min_alignment_period\030\003 \001(\0132\031.google.pr" + + "otobuf.DurationB\003\340A\001\022W\n\025table_display_op" + + "tions\030\004 \001(\01323.google.monitoring.dashboar" + + "d.v1.TableDisplayOptionsB\003\340A\001\032;\n\016ColumnS" + + "ettings\022\023\n\006column\030\001 \001(\tB\003\340A\002\022\024\n\007visible\030" + + "\002 \001(\010B\003\340A\002\"P\n\023MetricVisualization\022$\n MET" + + "RIC_VISUALIZATION_UNSPECIFIED\020\000\022\n\n\006NUMBE" + + "R\020\001\022\007\n\003BAR\020\002B\364\001\n\"com.google.monitoring.d" + + "ashboard.v1B\nTableProtoP\001ZGgoogle.golang" + + ".org/genproto/googleapis/monitoring/dash" + + "board/v1;dashboard\252\002$Google.Cloud.Monito" + + "ring.Dashboard.V1\312\002$Google\\Cloud\\Monitor" + + "ing\\Dashboard\\V1\352\002(Google::Cloud::Monito" + + "ring::Dashboard::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -83,7 +95,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_descriptor, new java.lang.String[] { - "DataSets", + "DataSets", "MetricVisualization", "ColumnSettings", }); internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_TableDataSet_descriptor = internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_descriptor @@ -95,6 +107,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "TimeSeriesQuery", "TableTemplate", "MinAlignmentPeriod", "TableDisplayOptions", }); + internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_ColumnSettings_descriptor = + internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_descriptor + .getNestedTypes() + .get(1); + internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_ColumnSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_ColumnSettings_descriptor, + new java.lang.String[] { + "Column", "Visible", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilter.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilter.java index cff7b6d55594..3e0d59a6a119 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilter.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilter.java @@ -124,8 +124,9 @@ public OutputFilterCase getOutputFilterCase() { * * *
-   * Required. The [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
-   * that identifies the metric types, resources, and projects to query.
+   * Required. The [monitoring
+   * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
+   * the metric types, resources, and projects to query.
    * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -148,8 +149,9 @@ public java.lang.String getFilter() { * * *
-   * Required. The [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
-   * that identifies the metric types, resources, and projects to query.
+   * Required. The [monitoring
+   * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
+   * the metric types, resources, and projects to query.
    * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -338,7 +340,7 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter getPickTimeSeries * * * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is - * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=79 + * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=80 * @return Whether the statisticalTimeSeriesFilter field is set. */ @java.lang.Override @@ -359,7 +361,7 @@ public boolean hasStatisticalTimeSeriesFilter() { * * * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is - * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=79 + * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=80 * @return The statisticalTimeSeriesFilter. */ @java.lang.Override @@ -910,8 +912,9 @@ public Builder clearOutputFilter() { * * *
-     * Required. The [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
-     * that identifies the metric types, resources, and projects to query.
+     * Required. The [monitoring
+     * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
+     * the metric types, resources, and projects to query.
      * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -933,8 +936,9 @@ public java.lang.String getFilter() { * * *
-     * Required. The [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
-     * that identifies the metric types, resources, and projects to query.
+     * Required. The [monitoring
+     * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
+     * the metric types, resources, and projects to query.
      * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -956,8 +960,9 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-     * Required. The [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
-     * that identifies the metric types, resources, and projects to query.
+     * Required. The [monitoring
+     * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
+     * the metric types, resources, and projects to query.
      * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -978,8 +983,9 @@ public Builder setFilter(java.lang.String value) { * * *
-     * Required. The [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
-     * that identifies the metric types, resources, and projects to query.
+     * Required. The [monitoring
+     * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
+     * the metric types, resources, and projects to query.
      * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -996,8 +1002,9 @@ public Builder clearFilter() { * * *
-     * Required. The [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
-     * that identifies the metric types, resources, and projects to query.
+     * Required. The [monitoring
+     * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
+     * the metric types, resources, and projects to query.
      * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1650,7 +1657,7 @@ public Builder clearPickTimeSeriesFilter() { * * * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is - * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=79 + * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=80 * @return Whether the statisticalTimeSeriesFilter field is set. */ @java.lang.Override @@ -1671,7 +1678,7 @@ public boolean hasStatisticalTimeSeriesFilter() { * * * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is - * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=79 + * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=80 * @return The statisticalTimeSeriesFilter. */ @java.lang.Override diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterOrBuilder.java index c19cca28275d..da522672b846 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterOrBuilder.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterOrBuilder.java @@ -27,8 +27,9 @@ public interface TimeSeriesFilterOrBuilder * * *
-   * Required. The [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
-   * that identifies the metric types, resources, and projects to query.
+   * Required. The [monitoring
+   * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
+   * the metric types, resources, and projects to query.
    * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -40,8 +41,9 @@ public interface TimeSeriesFilterOrBuilder * * *
-   * Required. The [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
-   * that identifies the metric types, resources, and projects to query.
+   * Required. The [monitoring
+   * filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
+   * the metric types, resources, and projects to query.
    * 
* * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -175,7 +177,7 @@ public interface TimeSeriesFilterOrBuilder * * * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is - * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=79 + * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=80 * @return Whether the statisticalTimeSeriesFilter field is set. */ @java.lang.Deprecated @@ -193,7 +195,7 @@ public interface TimeSeriesFilterOrBuilder * * * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is - * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=79 + * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=80 * @return The statisticalTimeSeriesFilter. */ @java.lang.Deprecated diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterRatio.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterRatio.java index 870b70e46adc..2d58c2e9af36 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterRatio.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterRatio.java @@ -1324,7 +1324,7 @@ public com.google.monitoring.dashboard.v1.PickTimeSeriesFilter getPickTimeSeries * * * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter - * is deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=118 + * is deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=120 * @return Whether the statisticalTimeSeriesFilter field is set. */ @java.lang.Override @@ -1345,7 +1345,7 @@ public boolean hasStatisticalTimeSeriesFilter() { * * * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter - * is deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=118 + * is deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=120 * @return The statisticalTimeSeriesFilter. */ @java.lang.Override @@ -2722,7 +2722,7 @@ public Builder clearPickTimeSeriesFilter() { * * @deprecated * google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter is - * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=118 + * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=120 * @return Whether the statisticalTimeSeriesFilter field is set. */ @java.lang.Override @@ -2744,7 +2744,7 @@ public boolean hasStatisticalTimeSeriesFilter() { * * @deprecated * google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter is - * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=118 + * deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=120 * @return The statisticalTimeSeriesFilter. */ @java.lang.Override diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterRatioOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterRatioOrBuilder.java index 84ad1f17c5b0..06284696d0df 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterRatioOrBuilder.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesFilterRatioOrBuilder.java @@ -179,7 +179,7 @@ public interface TimeSeriesFilterRatioOrBuilder * * * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter - * is deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=118 + * is deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=120 * @return Whether the statisticalTimeSeriesFilter field is set. */ @java.lang.Deprecated @@ -197,7 +197,7 @@ public interface TimeSeriesFilterRatioOrBuilder * * * @deprecated google.monitoring.dashboard.v1.TimeSeriesFilterRatio.statistical_time_series_filter - * is deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=118 + * is deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=120 * @return The statisticalTimeSeriesFilter. */ @java.lang.Deprecated diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTable.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTable.java index 5a6210ca6e8d..02a9535ec443 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTable.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTable.java @@ -39,6 +39,8 @@ private TimeSeriesTable(com.google.protobuf.GeneratedMessageV3.Builder builde private TimeSeriesTable() { dataSets_ = java.util.Collections.emptyList(); + metricVisualization_ = 0; + columnSettings_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -67,6 +69,168 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.monitoring.dashboard.v1.TimeSeriesTable.Builder.class); } + /** + * + * + *
+   * Enum for metric metric_visualization
+   * 
+ * + * Protobuf enum {@code google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization} + */ + public enum MetricVisualization implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified state
+     * 
+ * + * METRIC_VISUALIZATION_UNSPECIFIED = 0; + */ + METRIC_VISUALIZATION_UNSPECIFIED(0), + /** + * + * + *
+     * Default text rendering
+     * 
+ * + * NUMBER = 1; + */ + NUMBER(1), + /** + * + * + *
+     * Horizontal bar rendering
+     * 
+ * + * BAR = 2; + */ + BAR(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified state
+     * 
+ * + * METRIC_VISUALIZATION_UNSPECIFIED = 0; + */ + public static final int METRIC_VISUALIZATION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Default text rendering
+     * 
+ * + * NUMBER = 1; + */ + public static final int NUMBER_VALUE = 1; + /** + * + * + *
+     * Horizontal bar rendering
+     * 
+ * + * BAR = 2; + */ + public static final int BAR_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MetricVisualization valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static MetricVisualization forNumber(int value) { + switch (value) { + case 0: + return METRIC_VISUALIZATION_UNSPECIFIED; + case 1: + return NUMBER; + case 2: + return BAR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MetricVisualization findValueByNumber(int number) { + return MetricVisualization.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.TimeSeriesTable.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final MetricVisualization[] VALUES = values(); + + public static MetricVisualization valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MetricVisualization(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization) + } + public interface TableDataSetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet) @@ -120,9 +284,9 @@ public interface TableDataSetOrBuilder * * *
-     * Optional. A template string for naming `TimeSeries` in the resulting data set.
-     * This should be a string with interpolations of the form `${label_name}`,
-     * which will resolve to the label's value i.e.
+     * Optional. A template string for naming `TimeSeries` in the resulting data
+     * set. This should be a string with interpolations of the form
+     * `${label_name}`, which will resolve to the label's value i.e.
      * "${resource.labels.project_id}."
      * 
* @@ -135,9 +299,9 @@ public interface TableDataSetOrBuilder * * *
-     * Optional. A template string for naming `TimeSeries` in the resulting data set.
-     * This should be a string with interpolations of the form `${label_name}`,
-     * which will resolve to the label's value i.e.
+     * Optional. A template string for naming `TimeSeries` in the resulting data
+     * set. This should be a string with interpolations of the form
+     * `${label_name}`, which will resolve to the label's value i.e.
      * "${resource.labels.project_id}."
      * 
* @@ -151,10 +315,10 @@ public interface TableDataSetOrBuilder * * *
-     * Optional. The lower bound on data point frequency for this data set, implemented by
-     * specifying the minimum alignment period to use in a time series query
-     * For example, if the data is published once every 10 minutes, the
-     * `min_alignment_period` should be at least 10 minutes. It would not
+     * Optional. The lower bound on data point frequency for this data set,
+     * implemented by specifying the minimum alignment period to use in a time
+     * series query For example, if the data is published once every 10 minutes,
+     * the `min_alignment_period` should be at least 10 minutes. It would not
      * make sense to fetch and align data at one minute intervals.
      * 
* @@ -169,10 +333,10 @@ public interface TableDataSetOrBuilder * * *
-     * Optional. The lower bound on data point frequency for this data set, implemented by
-     * specifying the minimum alignment period to use in a time series query
-     * For example, if the data is published once every 10 minutes, the
-     * `min_alignment_period` should be at least 10 minutes. It would not
+     * Optional. The lower bound on data point frequency for this data set,
+     * implemented by specifying the minimum alignment period to use in a time
+     * series query For example, if the data is published once every 10 minutes,
+     * the `min_alignment_period` should be at least 10 minutes. It would not
      * make sense to fetch and align data at one minute intervals.
      * 
* @@ -187,10 +351,10 @@ public interface TableDataSetOrBuilder * * *
-     * Optional. The lower bound on data point frequency for this data set, implemented by
-     * specifying the minimum alignment period to use in a time series query
-     * For example, if the data is published once every 10 minutes, the
-     * `min_alignment_period` should be at least 10 minutes. It would not
+     * Optional. The lower bound on data point frequency for this data set,
+     * implemented by specifying the minimum alignment period to use in a time
+     * series query For example, if the data is published once every 10 minutes,
+     * the `min_alignment_period` should be at least 10 minutes. It would not
      * make sense to fetch and align data at one minute intervals.
      * 
* @@ -204,7 +368,8 @@ public interface TableDataSetOrBuilder * * *
-     * Optional. Table display options for configuring how the table is rendered.
+     * Optional. Table display options for configuring how the table is
+     * rendered.
      * 
* * @@ -218,7 +383,8 @@ public interface TableDataSetOrBuilder * * *
-     * Optional. Table display options for configuring how the table is rendered.
+     * Optional. Table display options for configuring how the table is
+     * rendered.
      * 
* * @@ -232,7 +398,8 @@ public interface TableDataSetOrBuilder * * *
-     * Optional. Table display options for configuring how the table is rendered.
+     * Optional. Table display options for configuring how the table is
+     * rendered.
      * 
* * @@ -355,9 +522,9 @@ public com.google.monitoring.dashboard.v1.TimeSeriesQuery getTimeSeriesQuery() { * * *
-     * Optional. A template string for naming `TimeSeries` in the resulting data set.
-     * This should be a string with interpolations of the form `${label_name}`,
-     * which will resolve to the label's value i.e.
+     * Optional. A template string for naming `TimeSeries` in the resulting data
+     * set. This should be a string with interpolations of the form
+     * `${label_name}`, which will resolve to the label's value i.e.
      * "${resource.labels.project_id}."
      * 
* @@ -381,9 +548,9 @@ public java.lang.String getTableTemplate() { * * *
-     * Optional. A template string for naming `TimeSeries` in the resulting data set.
-     * This should be a string with interpolations of the form `${label_name}`,
-     * which will resolve to the label's value i.e.
+     * Optional. A template string for naming `TimeSeries` in the resulting data
+     * set. This should be a string with interpolations of the form
+     * `${label_name}`, which will resolve to the label's value i.e.
      * "${resource.labels.project_id}."
      * 
* @@ -410,10 +577,10 @@ public com.google.protobuf.ByteString getTableTemplateBytes() { * * *
-     * Optional. The lower bound on data point frequency for this data set, implemented by
-     * specifying the minimum alignment period to use in a time series query
-     * For example, if the data is published once every 10 minutes, the
-     * `min_alignment_period` should be at least 10 minutes. It would not
+     * Optional. The lower bound on data point frequency for this data set,
+     * implemented by specifying the minimum alignment period to use in a time
+     * series query For example, if the data is published once every 10 minutes,
+     * the `min_alignment_period` should be at least 10 minutes. It would not
      * make sense to fetch and align data at one minute intervals.
      * 
* @@ -431,10 +598,10 @@ public boolean hasMinAlignmentPeriod() { * * *
-     * Optional. The lower bound on data point frequency for this data set, implemented by
-     * specifying the minimum alignment period to use in a time series query
-     * For example, if the data is published once every 10 minutes, the
-     * `min_alignment_period` should be at least 10 minutes. It would not
+     * Optional. The lower bound on data point frequency for this data set,
+     * implemented by specifying the minimum alignment period to use in a time
+     * series query For example, if the data is published once every 10 minutes,
+     * the `min_alignment_period` should be at least 10 minutes. It would not
      * make sense to fetch and align data at one minute intervals.
      * 
* @@ -454,10 +621,10 @@ public com.google.protobuf.Duration getMinAlignmentPeriod() { * * *
-     * Optional. The lower bound on data point frequency for this data set, implemented by
-     * specifying the minimum alignment period to use in a time series query
-     * For example, if the data is published once every 10 minutes, the
-     * `min_alignment_period` should be at least 10 minutes. It would not
+     * Optional. The lower bound on data point frequency for this data set,
+     * implemented by specifying the minimum alignment period to use in a time
+     * series query For example, if the data is published once every 10 minutes,
+     * the `min_alignment_period` should be at least 10 minutes. It would not
      * make sense to fetch and align data at one minute intervals.
      * 
* @@ -476,7 +643,8 @@ public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() { * * *
-     * Optional. Table display options for configuring how the table is rendered.
+     * Optional. Table display options for configuring how the table is
+     * rendered.
      * 
* * @@ -493,7 +661,8 @@ public boolean hasTableDisplayOptions() { * * *
-     * Optional. Table display options for configuring how the table is rendered.
+     * Optional. Table display options for configuring how the table is
+     * rendered.
      * 
* * @@ -512,7 +681,8 @@ public com.google.monitoring.dashboard.v1.TableDisplayOptions getTableDisplayOpt * * *
-     * Optional. Table display options for configuring how the table is rendered.
+     * Optional. Table display options for configuring how the table is
+     * rendered.
      * 
* * @@ -1193,9 +1363,9 @@ public Builder clearTimeSeriesQuery() { * * *
-       * Optional. A template string for naming `TimeSeries` in the resulting data set.
-       * This should be a string with interpolations of the form `${label_name}`,
-       * which will resolve to the label's value i.e.
+       * Optional. A template string for naming `TimeSeries` in the resulting data
+       * set. This should be a string with interpolations of the form
+       * `${label_name}`, which will resolve to the label's value i.e.
        * "${resource.labels.project_id}."
        * 
* @@ -1218,9 +1388,9 @@ public java.lang.String getTableTemplate() { * * *
-       * Optional. A template string for naming `TimeSeries` in the resulting data set.
-       * This should be a string with interpolations of the form `${label_name}`,
-       * which will resolve to the label's value i.e.
+       * Optional. A template string for naming `TimeSeries` in the resulting data
+       * set. This should be a string with interpolations of the form
+       * `${label_name}`, which will resolve to the label's value i.e.
        * "${resource.labels.project_id}."
        * 
* @@ -1243,9 +1413,9 @@ public com.google.protobuf.ByteString getTableTemplateBytes() { * * *
-       * Optional. A template string for naming `TimeSeries` in the resulting data set.
-       * This should be a string with interpolations of the form `${label_name}`,
-       * which will resolve to the label's value i.e.
+       * Optional. A template string for naming `TimeSeries` in the resulting data
+       * set. This should be a string with interpolations of the form
+       * `${label_name}`, which will resolve to the label's value i.e.
        * "${resource.labels.project_id}."
        * 
* @@ -1267,9 +1437,9 @@ public Builder setTableTemplate(java.lang.String value) { * * *
-       * Optional. A template string for naming `TimeSeries` in the resulting data set.
-       * This should be a string with interpolations of the form `${label_name}`,
-       * which will resolve to the label's value i.e.
+       * Optional. A template string for naming `TimeSeries` in the resulting data
+       * set. This should be a string with interpolations of the form
+       * `${label_name}`, which will resolve to the label's value i.e.
        * "${resource.labels.project_id}."
        * 
* @@ -1287,9 +1457,9 @@ public Builder clearTableTemplate() { * * *
-       * Optional. A template string for naming `TimeSeries` in the resulting data set.
-       * This should be a string with interpolations of the form `${label_name}`,
-       * which will resolve to the label's value i.e.
+       * Optional. A template string for naming `TimeSeries` in the resulting data
+       * set. This should be a string with interpolations of the form
+       * `${label_name}`, which will resolve to the label's value i.e.
        * "${resource.labels.project_id}."
        * 
* @@ -1319,10 +1489,10 @@ public Builder setTableTemplateBytes(com.google.protobuf.ByteString value) { * * *
-       * Optional. The lower bound on data point frequency for this data set, implemented by
-       * specifying the minimum alignment period to use in a time series query
-       * For example, if the data is published once every 10 minutes, the
-       * `min_alignment_period` should be at least 10 minutes. It would not
+       * Optional. The lower bound on data point frequency for this data set,
+       * implemented by specifying the minimum alignment period to use in a time
+       * series query For example, if the data is published once every 10 minutes,
+       * the `min_alignment_period` should be at least 10 minutes. It would not
        * make sense to fetch and align data at one minute intervals.
        * 
* @@ -1339,10 +1509,10 @@ public boolean hasMinAlignmentPeriod() { * * *
-       * Optional. The lower bound on data point frequency for this data set, implemented by
-       * specifying the minimum alignment period to use in a time series query
-       * For example, if the data is published once every 10 minutes, the
-       * `min_alignment_period` should be at least 10 minutes. It would not
+       * Optional. The lower bound on data point frequency for this data set,
+       * implemented by specifying the minimum alignment period to use in a time
+       * series query For example, if the data is published once every 10 minutes,
+       * the `min_alignment_period` should be at least 10 minutes. It would not
        * make sense to fetch and align data at one minute intervals.
        * 
* @@ -1365,10 +1535,10 @@ public com.google.protobuf.Duration getMinAlignmentPeriod() { * * *
-       * Optional. The lower bound on data point frequency for this data set, implemented by
-       * specifying the minimum alignment period to use in a time series query
-       * For example, if the data is published once every 10 minutes, the
-       * `min_alignment_period` should be at least 10 minutes. It would not
+       * Optional. The lower bound on data point frequency for this data set,
+       * implemented by specifying the minimum alignment period to use in a time
+       * series query For example, if the data is published once every 10 minutes,
+       * the `min_alignment_period` should be at least 10 minutes. It would not
        * make sense to fetch and align data at one minute intervals.
        * 
* @@ -1393,10 +1563,10 @@ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration value) { * * *
-       * Optional. The lower bound on data point frequency for this data set, implemented by
-       * specifying the minimum alignment period to use in a time series query
-       * For example, if the data is published once every 10 minutes, the
-       * `min_alignment_period` should be at least 10 minutes. It would not
+       * Optional. The lower bound on data point frequency for this data set,
+       * implemented by specifying the minimum alignment period to use in a time
+       * series query For example, if the data is published once every 10 minutes,
+       * the `min_alignment_period` should be at least 10 minutes. It would not
        * make sense to fetch and align data at one minute intervals.
        * 
* @@ -1418,10 +1588,10 @@ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration.Builder builde * * *
-       * Optional. The lower bound on data point frequency for this data set, implemented by
-       * specifying the minimum alignment period to use in a time series query
-       * For example, if the data is published once every 10 minutes, the
-       * `min_alignment_period` should be at least 10 minutes. It would not
+       * Optional. The lower bound on data point frequency for this data set,
+       * implemented by specifying the minimum alignment period to use in a time
+       * series query For example, if the data is published once every 10 minutes,
+       * the `min_alignment_period` should be at least 10 minutes. It would not
        * make sense to fetch and align data at one minute intervals.
        * 
* @@ -1450,10 +1620,10 @@ public Builder mergeMinAlignmentPeriod(com.google.protobuf.Duration value) { * * *
-       * Optional. The lower bound on data point frequency for this data set, implemented by
-       * specifying the minimum alignment period to use in a time series query
-       * For example, if the data is published once every 10 minutes, the
-       * `min_alignment_period` should be at least 10 minutes. It would not
+       * Optional. The lower bound on data point frequency for this data set,
+       * implemented by specifying the minimum alignment period to use in a time
+       * series query For example, if the data is published once every 10 minutes,
+       * the `min_alignment_period` should be at least 10 minutes. It would not
        * make sense to fetch and align data at one minute intervals.
        * 
* @@ -1476,10 +1646,10 @@ public Builder clearMinAlignmentPeriod() { * * *
-       * Optional. The lower bound on data point frequency for this data set, implemented by
-       * specifying the minimum alignment period to use in a time series query
-       * For example, if the data is published once every 10 minutes, the
-       * `min_alignment_period` should be at least 10 minutes. It would not
+       * Optional. The lower bound on data point frequency for this data set,
+       * implemented by specifying the minimum alignment period to use in a time
+       * series query For example, if the data is published once every 10 minutes,
+       * the `min_alignment_period` should be at least 10 minutes. It would not
        * make sense to fetch and align data at one minute intervals.
        * 
* @@ -1496,10 +1666,10 @@ public com.google.protobuf.Duration.Builder getMinAlignmentPeriodBuilder() { * * *
-       * Optional. The lower bound on data point frequency for this data set, implemented by
-       * specifying the minimum alignment period to use in a time series query
-       * For example, if the data is published once every 10 minutes, the
-       * `min_alignment_period` should be at least 10 minutes. It would not
+       * Optional. The lower bound on data point frequency for this data set,
+       * implemented by specifying the minimum alignment period to use in a time
+       * series query For example, if the data is published once every 10 minutes,
+       * the `min_alignment_period` should be at least 10 minutes. It would not
        * make sense to fetch and align data at one minute intervals.
        * 
* @@ -1520,10 +1690,10 @@ public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() { * * *
-       * Optional. The lower bound on data point frequency for this data set, implemented by
-       * specifying the minimum alignment period to use in a time series query
-       * For example, if the data is published once every 10 minutes, the
-       * `min_alignment_period` should be at least 10 minutes. It would not
+       * Optional. The lower bound on data point frequency for this data set,
+       * implemented by specifying the minimum alignment period to use in a time
+       * series query For example, if the data is published once every 10 minutes,
+       * the `min_alignment_period` should be at least 10 minutes. It would not
        * make sense to fetch and align data at one minute intervals.
        * 
* @@ -1558,7 +1728,8 @@ public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() { * * *
-       * Optional. Table display options for configuring how the table is rendered.
+       * Optional. Table display options for configuring how the table is
+       * rendered.
        * 
* * @@ -1574,7 +1745,8 @@ public boolean hasTableDisplayOptions() { * * *
-       * Optional. Table display options for configuring how the table is rendered.
+       * Optional. Table display options for configuring how the table is
+       * rendered.
        * 
* * @@ -1596,7 +1768,8 @@ public com.google.monitoring.dashboard.v1.TableDisplayOptions getTableDisplayOpt * * *
-       * Optional. Table display options for configuring how the table is rendered.
+       * Optional. Table display options for configuring how the table is
+       * rendered.
        * 
* * @@ -1621,7 +1794,8 @@ public Builder setTableDisplayOptions( * * *
-       * Optional. Table display options for configuring how the table is rendered.
+       * Optional. Table display options for configuring how the table is
+       * rendered.
        * 
* * @@ -1643,7 +1817,8 @@ public Builder setTableDisplayOptions( * * *
-       * Optional. Table display options for configuring how the table is rendered.
+       * Optional. Table display options for configuring how the table is
+       * rendered.
        * 
* * @@ -1673,7 +1848,8 @@ public Builder mergeTableDisplayOptions( * * *
-       * Optional. Table display options for configuring how the table is rendered.
+       * Optional. Table display options for configuring how the table is
+       * rendered.
        * 
* * @@ -1695,7 +1871,8 @@ public Builder clearTableDisplayOptions() { * * *
-       * Optional. Table display options for configuring how the table is rendered.
+       * Optional. Table display options for configuring how the table is
+       * rendered.
        * 
* * @@ -1712,7 +1889,8 @@ public Builder clearTableDisplayOptions() { * * *
-       * Optional. Table display options for configuring how the table is rendered.
+       * Optional. Table display options for configuring how the table is
+       * rendered.
        * 
* * @@ -1733,7 +1911,8 @@ public Builder clearTableDisplayOptions() { * * *
-       * Optional. Table display options for configuring how the table is rendered.
+       * Optional. Table display options for configuring how the table is
+       * rendered.
        * 
* * @@ -1824,562 +2003,2043 @@ public com.google.protobuf.Parser getParserForType() { } } - public static final int DATA_SETS_FIELD_NUMBER = 1; - private java.util.List dataSets_; - /** - * - * - *
-   * Required. The data displayed in this table.
-   * 
- * - * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List - getDataSetsList() { - return dataSets_; - } - /** - * - * - *
-   * Required. The data displayed in this table.
-   * 
- * - * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSetOrBuilder> - getDataSetsOrBuilderList() { - return dataSets_; - } - /** - * - * - *
-   * Required. The data displayed in this table.
-   * 
- * - * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public int getDataSetsCount() { - return dataSets_.size(); - } - /** - * - * - *
-   * Required. The data displayed in this table.
-   * 
- * - * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet getDataSets(int index) { - return dataSets_.get(index); + public interface ColumnSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The id of the column.
+     * 
+ * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The column. + */ + java.lang.String getColumn(); + /** + * + * + *
+     * Required. The id of the column.
+     * 
+ * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for column. + */ + com.google.protobuf.ByteString getColumnBytes(); + + /** + * + * + *
+     * Required. Whether the column should be visible on page load.
+     * 
+ * + * bool visible = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The visible. + */ + boolean getVisible(); } /** * * *
-   * Required. The data displayed in this table.
+   * The persistent settings for a table's columns.
    * 
* - * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings} */ - @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSetOrBuilder - getDataSetsOrBuilder(int index) { - return dataSets_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < dataSets_.size(); i++) { - output.writeMessage(1, dataSets_.get(i)); + public static final class ColumnSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings) + ColumnSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ColumnSettings.newBuilder() to construct. + private ColumnSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - size = 0; - for (int i = 0; i < dataSets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataSets_.get(i)); + private ColumnSettings() { + column_ = ""; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.monitoring.dashboard.v1.TimeSeriesTable)) { - return super.equals(obj); + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ColumnSettings(); } - com.google.monitoring.dashboard.v1.TimeSeriesTable other = - (com.google.monitoring.dashboard.v1.TimeSeriesTable) obj; - - if (!getDataSetsList().equals(other.getDataSetsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getDataSetsCount() > 0) { - hash = (37 * hash) + DATA_SETS_FIELD_NUMBER; - hash = (53 * hash) + getDataSetsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.monitoring.dashboard.v1.TimeSeriesTable prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A table that displays time series data.
-   * 
- * - * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesTable} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.TimeSeriesTable) - com.google.monitoring.dashboard.v1.TimeSeriesTableOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.dashboard.v1.TableProto - .internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.TableProto + .internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_ColumnSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.monitoring.dashboard.v1.TableProto - .internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_fieldAccessorTable + .internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_ColumnSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.monitoring.dashboard.v1.TimeSeriesTable.class, - com.google.monitoring.dashboard.v1.TimeSeriesTable.Builder.class); + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.class, + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder.class); } - // Construct using com.google.monitoring.dashboard.v1.TimeSeriesTable.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); + public static final int COLUMN_FIELD_NUMBER = 1; + private volatile java.lang.Object column_; + /** + * + * + *
+     * Required. The id of the column.
+     * 
+ * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The column. + */ + @java.lang.Override + public java.lang.String getColumn() { + java.lang.Object ref = column_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + column_ = s; + return s; + } } - + /** + * + * + *
+     * Required. The id of the column.
+     * 
+ * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for column. + */ @java.lang.Override - public Builder clear() { - super.clear(); - if (dataSetsBuilder_ == null) { - dataSets_ = java.util.Collections.emptyList(); + public com.google.protobuf.ByteString getColumnBytes() { + java.lang.Object ref = column_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + column_ = b; + return b; } else { - dataSets_ = null; - dataSetsBuilder_.clear(); + return (com.google.protobuf.ByteString) ref; } - bitField0_ = (bitField0_ & ~0x00000001); - return this; } + public static final int VISIBLE_FIELD_NUMBER = 2; + private boolean visible_; + /** + * + * + *
+     * Required. Whether the column should be visible on page load.
+     * 
+ * + * bool visible = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The visible. + */ @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.monitoring.dashboard.v1.TableProto - .internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_descriptor; + public boolean getVisible() { + return visible_; } + private byte memoizedIsInitialized = -1; + @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesTable getDefaultInstanceForType() { - return com.google.monitoring.dashboard.v1.TimeSeriesTable.getDefaultInstance(); + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesTable build() { - com.google.monitoring.dashboard.v1.TimeSeriesTable result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(column_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, column_); } - return result; + if (visible_ != false) { + output.writeBool(2, visible_); + } + getUnknownFields().writeTo(output); } @java.lang.Override - public com.google.monitoring.dashboard.v1.TimeSeriesTable buildPartial() { - com.google.monitoring.dashboard.v1.TimeSeriesTable result = - new com.google.monitoring.dashboard.v1.TimeSeriesTable(this); - int from_bitField0_ = bitField0_; - if (dataSetsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dataSets_ = java.util.Collections.unmodifiableList(dataSets_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dataSets_ = dataSets_; - } else { - result.dataSets_ = dataSetsBuilder_.build(); + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(column_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, column_); } - onBuilt(); - return result; + if (visible_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, visible_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } @java.lang.Override - public Builder clone() { - return super.clone(); - } + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings)) { + return super.equals(obj); + } + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings other = + (com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings) obj; - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + if (!getColumn().equals(other.getColumn())) return false; + if (getVisible() != other.getVisible()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COLUMN_FIELD_NUMBER; + hash = (53 * hash) + getColumn().hashCode(); + hash = (37 * hash) + VISIBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVisible()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + public static com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + public static com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + public static com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.monitoring.dashboard.v1.TimeSeriesTable) { - return mergeFrom((com.google.monitoring.dashboard.v1.TimeSeriesTable) other); - } else { - super.mergeFrom(other); - return this; - } + public static com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - public Builder mergeFrom(com.google.monitoring.dashboard.v1.TimeSeriesTable other) { - if (other == com.google.monitoring.dashboard.v1.TimeSeriesTable.getDefaultInstance()) + public static com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * The persistent settings for a table's columns.
+     * 
+ * + * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings) + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.TableProto + .internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_ColumnSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.dashboard.v1.TableProto + .internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_ColumnSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.class, + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder.class); + } + + // Construct using + // com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + column_ = ""; + + visible_ = false; + return this; - if (dataSetsBuilder_ == null) { - if (!other.dataSets_.isEmpty()) { - if (dataSets_.isEmpty()) { - dataSets_ = other.dataSets_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDataSetsIsMutable(); - dataSets_.addAll(other.dataSets_); - } + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.TableProto + .internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_ColumnSettings_descriptor; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings + getDefaultInstanceForType() { + return com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings build() { + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings buildPartial() { + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings result = + new com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings(this); + result.column_ = column_; + result.visible_ = visible_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings) { + return mergeFrom( + (com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings other) { + if (other + == com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings + .getDefaultInstance()) return this; + if (!other.getColumn().isEmpty()) { + column_ = other.column_; onChanged(); } - } else { - if (!other.dataSets_.isEmpty()) { - if (dataSetsBuilder_.isEmpty()) { - dataSetsBuilder_.dispose(); - dataSetsBuilder_ = null; - dataSets_ = other.dataSets_; - bitField0_ = (bitField0_ & ~0x00000001); - dataSetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDataSetsFieldBuilder() - : null; - } else { - dataSetsBuilder_.addAllMessages(other.dataSets_); - } + if (other.getVisible() != false) { + setVisible(other.getVisible()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + column_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + visible_ = input.readBool(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object column_ = ""; + /** + * + * + *
+       * Required. The id of the column.
+       * 
+ * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The column. + */ + public java.lang.String getColumn() { + java.lang.Object ref = column_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + column_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The id of the column.
+       * 
+ * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for column. + */ + public com.google.protobuf.ByteString getColumnBytes() { + java.lang.Object ref = column_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + column_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The id of the column.
+       * 
+ * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The column to set. + * @return This builder for chaining. + */ + public Builder setColumn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + column_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The id of the column.
+       * 
+ * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearColumn() { + + column_ = getDefaultInstance().getColumn(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The id of the column.
+       * 
+ * + * string column = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for column to set. + * @return This builder for chaining. + */ + public Builder setColumnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + column_ = value; + onChanged(); + return this; + } + + private boolean visible_; + /** + * + * + *
+       * Required. Whether the column should be visible on page load.
+       * 
+ * + * bool visible = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The visible. + */ + @java.lang.Override + public boolean getVisible() { + return visible_; + } + /** + * + * + *
+       * Required. Whether the column should be visible on page load.
+       * 
+ * + * bool visible = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The visible to set. + * @return This builder for chaining. + */ + public Builder setVisible(boolean value) { + + visible_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Whether the column should be visible on page load.
+       * 
+ * + * bool visible = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearVisible() { + + visible_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings) + } + + // @@protoc_insertion_point(class_scope:google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings) + private static final com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings(); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ColumnSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int DATA_SETS_FIELD_NUMBER = 1; + private java.util.List dataSets_; + /** + * + * + *
+   * Required. The data displayed in this table.
+   * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getDataSetsList() { + return dataSets_; + } + /** + * + * + *
+   * Required. The data displayed in this table.
+   * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSetOrBuilder> + getDataSetsOrBuilderList() { + return dataSets_; + } + /** + * + * + *
+   * Required. The data displayed in this table.
+   * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getDataSetsCount() { + return dataSets_.size(); + } + /** + * + * + *
+   * Required. The data displayed in this table.
+   * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet getDataSets(int index) { + return dataSets_.get(index); + } + /** + * + * + *
+   * Required. The data displayed in this table.
+   * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSetOrBuilder + getDataSetsOrBuilder(int index) { + return dataSets_.get(index); + } + + public static final int METRIC_VISUALIZATION_FIELD_NUMBER = 2; + private int metricVisualization_; + /** + * + * + *
+   * Optional. Store rendering strategy
+   * 
+ * + * + * .google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization metric_visualization = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for metricVisualization. + */ + @java.lang.Override + public int getMetricVisualizationValue() { + return metricVisualization_; + } + /** + * + * + *
+   * Optional. Store rendering strategy
+   * 
+ * + * + * .google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization metric_visualization = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metricVisualization. + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization + getMetricVisualization() { + @SuppressWarnings("deprecation") + com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization result = + com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization.valueOf( + metricVisualization_); + return result == null + ? com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization.UNRECOGNIZED + : result; + } + + public static final int COLUMN_SETTINGS_FIELD_NUMBER = 4; + private java.util.List + columnSettings_; + /** + * + * + *
+   * Optional. The list of the persistent column settings for the table.
+   * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getColumnSettingsList() { + return columnSettings_; + } + /** + * + * + *
+   * Optional. The list of the persistent column settings for the table.
+   * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettingsOrBuilder> + getColumnSettingsOrBuilderList() { + return columnSettings_; + } + /** + * + * + *
+   * Optional. The list of the persistent column settings for the table.
+   * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getColumnSettingsCount() { + return columnSettings_.size(); + } + /** + * + * + *
+   * Optional. The list of the persistent column settings for the table.
+   * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings getColumnSettings( + int index) { + return columnSettings_.get(index); + } + /** + * + * + *
+   * Optional. The list of the persistent column settings for the table.
+   * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettingsOrBuilder + getColumnSettingsOrBuilder(int index) { + return columnSettings_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < dataSets_.size(); i++) { + output.writeMessage(1, dataSets_.get(i)); + } + if (metricVisualization_ + != com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization + .METRIC_VISUALIZATION_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, metricVisualization_); + } + for (int i = 0; i < columnSettings_.size(); i++) { + output.writeMessage(4, columnSettings_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < dataSets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataSets_.get(i)); + } + if (metricVisualization_ + != com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization + .METRIC_VISUALIZATION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, metricVisualization_); + } + for (int i = 0; i < columnSettings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, columnSettings_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.monitoring.dashboard.v1.TimeSeriesTable)) { + return super.equals(obj); + } + com.google.monitoring.dashboard.v1.TimeSeriesTable other = + (com.google.monitoring.dashboard.v1.TimeSeriesTable) obj; + + if (!getDataSetsList().equals(other.getDataSetsList())) return false; + if (metricVisualization_ != other.metricVisualization_) return false; + if (!getColumnSettingsList().equals(other.getColumnSettingsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDataSetsCount() > 0) { + hash = (37 * hash) + DATA_SETS_FIELD_NUMBER; + hash = (53 * hash) + getDataSetsList().hashCode(); + } + hash = (37 * hash) + METRIC_VISUALIZATION_FIELD_NUMBER; + hash = (53 * hash) + metricVisualization_; + if (getColumnSettingsCount() > 0) { + hash = (37 * hash) + COLUMN_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getColumnSettingsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.monitoring.dashboard.v1.TimeSeriesTable parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.monitoring.dashboard.v1.TimeSeriesTable prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A table that displays time series data.
+   * 
+ * + * Protobuf type {@code google.monitoring.dashboard.v1.TimeSeriesTable} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.monitoring.dashboard.v1.TimeSeriesTable) + com.google.monitoring.dashboard.v1.TimeSeriesTableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.dashboard.v1.TableProto + .internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.dashboard.v1.TableProto + .internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.dashboard.v1.TimeSeriesTable.class, + com.google.monitoring.dashboard.v1.TimeSeriesTable.Builder.class); + } + + // Construct using com.google.monitoring.dashboard.v1.TimeSeriesTable.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (dataSetsBuilder_ == null) { + dataSets_ = java.util.Collections.emptyList(); + } else { + dataSets_ = null; + dataSetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + metricVisualization_ = 0; + + if (columnSettingsBuilder_ == null) { + columnSettings_ = java.util.Collections.emptyList(); + } else { + columnSettings_ = null; + columnSettingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.dashboard.v1.TableProto + .internal_static_google_monitoring_dashboard_v1_TimeSeriesTable_descriptor; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.TimeSeriesTable getDefaultInstanceForType() { + return com.google.monitoring.dashboard.v1.TimeSeriesTable.getDefaultInstance(); + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.TimeSeriesTable build() { + com.google.monitoring.dashboard.v1.TimeSeriesTable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.monitoring.dashboard.v1.TimeSeriesTable buildPartial() { + com.google.monitoring.dashboard.v1.TimeSeriesTable result = + new com.google.monitoring.dashboard.v1.TimeSeriesTable(this); + int from_bitField0_ = bitField0_; + if (dataSetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dataSets_ = java.util.Collections.unmodifiableList(dataSets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dataSets_ = dataSets_; + } else { + result.dataSets_ = dataSetsBuilder_.build(); + } + result.metricVisualization_ = metricVisualization_; + if (columnSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + columnSettings_ = java.util.Collections.unmodifiableList(columnSettings_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.columnSettings_ = columnSettings_; + } else { + result.columnSettings_ = columnSettingsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.monitoring.dashboard.v1.TimeSeriesTable) { + return mergeFrom((com.google.monitoring.dashboard.v1.TimeSeriesTable) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.monitoring.dashboard.v1.TimeSeriesTable other) { + if (other == com.google.monitoring.dashboard.v1.TimeSeriesTable.getDefaultInstance()) + return this; + if (dataSetsBuilder_ == null) { + if (!other.dataSets_.isEmpty()) { + if (dataSets_.isEmpty()) { + dataSets_ = other.dataSets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDataSetsIsMutable(); + dataSets_.addAll(other.dataSets_); + } + onChanged(); + } + } else { + if (!other.dataSets_.isEmpty()) { + if (dataSetsBuilder_.isEmpty()) { + dataSetsBuilder_.dispose(); + dataSetsBuilder_ = null; + dataSets_ = other.dataSets_; + bitField0_ = (bitField0_ & ~0x00000001); + dataSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDataSetsFieldBuilder() + : null; + } else { + dataSetsBuilder_.addAllMessages(other.dataSets_); + } + } + } + if (other.metricVisualization_ != 0) { + setMetricVisualizationValue(other.getMetricVisualizationValue()); + } + if (columnSettingsBuilder_ == null) { + if (!other.columnSettings_.isEmpty()) { + if (columnSettings_.isEmpty()) { + columnSettings_ = other.columnSettings_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureColumnSettingsIsMutable(); + columnSettings_.addAll(other.columnSettings_); + } + onChanged(); + } + } else { + if (!other.columnSettings_.isEmpty()) { + if (columnSettingsBuilder_.isEmpty()) { + columnSettingsBuilder_.dispose(); + columnSettingsBuilder_ = null; + columnSettings_ = other.columnSettings_; + bitField0_ = (bitField0_ & ~0x00000002); + columnSettingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getColumnSettingsFieldBuilder() + : null; + } else { + columnSettingsBuilder_.addAllMessages(other.columnSettings_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet m = + input.readMessage( + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.parser(), + extensionRegistry); + if (dataSetsBuilder_ == null) { + ensureDataSetsIsMutable(); + dataSets_.add(m); + } else { + dataSetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: + { + metricVisualization_ = input.readEnum(); + + break; + } // case 16 + case 34: + { + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings m = + input.readMessage( + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.parser(), + extensionRegistry); + if (columnSettingsBuilder_ == null) { + ensureColumnSettingsIsMutable(); + columnSettings_.add(m); + } else { + columnSettingsBuilder_.addMessage(m); + } + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + dataSets_ = java.util.Collections.emptyList(); + + private void ensureDataSetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dataSets_ = + new java.util.ArrayList< + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet>(dataSets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet, + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSetOrBuilder> + dataSetsBuilder_; + + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getDataSetsList() { + if (dataSetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dataSets_); + } else { + return dataSetsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getDataSetsCount() { + if (dataSetsBuilder_ == null) { + return dataSets_.size(); + } else { + return dataSetsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet getDataSets(int index) { + if (dataSetsBuilder_ == null) { + return dataSets_.get(index); + } else { + return dataSetsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataSets( + int index, com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet value) { + if (dataSetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataSetsIsMutable(); + dataSets_.set(index, value); + onChanged(); + } else { + dataSetsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataSets( + int index, + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder builderForValue) { + if (dataSetsBuilder_ == null) { + ensureDataSetsIsMutable(); + dataSets_.set(index, builderForValue.build()); + onChanged(); + } else { + dataSetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addDataSets( + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet value) { + if (dataSetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataSetsIsMutable(); + dataSets_.add(value); + onChanged(); + } else { + dataSetsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addDataSets( + int index, com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet value) { + if (dataSetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataSetsIsMutable(); + dataSets_.add(index, value); + onChanged(); + } else { + dataSetsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addDataSets( + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder builderForValue) { + if (dataSetsBuilder_ == null) { + ensureDataSetsIsMutable(); + dataSets_.add(builderForValue.build()); + onChanged(); + } else { + dataSetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addDataSets( + int index, + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder builderForValue) { + if (dataSetsBuilder_ == null) { + ensureDataSetsIsMutable(); + dataSets_.add(index, builderForValue.build()); + onChanged(); + } else { + dataSetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllDataSets( + java.lang.Iterable< + ? extends com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet> + values) { + if (dataSetsBuilder_ == null) { + ensureDataSetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataSets_); + onChanged(); + } else { + dataSetsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDataSets() { + if (dataSetsBuilder_ == null) { + dataSets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dataSetsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeDataSets(int index) { + if (dataSetsBuilder_ == null) { + ensureDataSetsIsMutable(); + dataSets_.remove(index); + onChanged(); + } else { + dataSetsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder + getDataSetsBuilder(int index) { + return getDataSetsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSetOrBuilder + getDataSetsOrBuilder(int index) { + if (dataSetsBuilder_ == null) { + return dataSets_.get(index); + } else { + return dataSetsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSetOrBuilder> + getDataSetsOrBuilderList() { + if (dataSetsBuilder_ != null) { + return dataSetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataSets_); + } + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder + addDataSetsBuilder() { + return getDataSetsFieldBuilder() + .addBuilder( + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder + addDataSetsBuilder(int index) { + return getDataSetsFieldBuilder() + .addBuilder( + index, + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The data displayed in this table.
+     * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getDataSetsBuilderList() { + return getDataSetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet, + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSetOrBuilder> + getDataSetsFieldBuilder() { + if (dataSetsBuilder_ == null) { + dataSetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet, + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSetOrBuilder>( + dataSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + dataSets_ = null; } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + return dataSetsBuilder_; } + private int metricVisualization_ = 0; + /** + * + * + *
+     * Optional. Store rendering strategy
+     * 
+ * + * + * .google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization metric_visualization = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for metricVisualization. + */ @java.lang.Override - public final boolean isInitialized() { - return true; + public int getMetricVisualizationValue() { + return metricVisualization_; } + /** + * + * + *
+     * Optional. Store rendering strategy
+     * 
+ * + * + * .google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization metric_visualization = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for metricVisualization to set. + * @return This builder for chaining. + */ + public Builder setMetricVisualizationValue(int value) { + metricVisualization_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Store rendering strategy
+     * 
+ * + * + * .google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization metric_visualization = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metricVisualization. + */ @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + public com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization + getMetricVisualization() { + @SuppressWarnings("deprecation") + com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization result = + com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization.valueOf( + metricVisualization_); + return result == null + ? com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. Store rendering strategy
+     * 
+ * + * + * .google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization metric_visualization = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The metricVisualization to set. + * @return This builder for chaining. + */ + public Builder setMetricVisualization( + com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization value) { + if (value == null) { + throw new NullPointerException(); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet m = - input.readMessage( - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.parser(), - extensionRegistry); - if (dataSetsBuilder_ == null) { - ensureDataSetsIsMutable(); - dataSets_.add(m); - } else { - dataSetsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally + + metricVisualization_ = value.getNumber(); + onChanged(); return this; } + /** + * + * + *
+     * Optional. Store rendering strategy
+     * 
+ * + * + * .google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization metric_visualization = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMetricVisualization() { - private int bitField0_; + metricVisualization_ = 0; + onChanged(); + return this; + } - private java.util.List - dataSets_ = java.util.Collections.emptyList(); + private java.util.List + columnSettings_ = java.util.Collections.emptyList(); - private void ensureDataSetsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - dataSets_ = + private void ensureColumnSettingsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + columnSettings_ = new java.util.ArrayList< - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet>(dataSets_); - bitField0_ |= 0x00000001; + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings>(columnSettings_); + bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet, - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder, - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSetOrBuilder> - dataSetsBuilder_; + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings, + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettingsOrBuilder> + columnSettingsBuilder_; /** * * *
-     * Required. The data displayed in this table.
+     * Optional. The list of the persistent column settings for the table.
      * 
* * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getDataSetsList() { - if (dataSetsBuilder_ == null) { - return java.util.Collections.unmodifiableList(dataSets_); + public java.util.List + getColumnSettingsList() { + if (columnSettingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(columnSettings_); } else { - return dataSetsBuilder_.getMessageList(); + return columnSettingsBuilder_.getMessageList(); } } /** * * *
-     * Required. The data displayed in this table.
+     * Optional. The list of the persistent column settings for the table.
      * 
* * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public int getDataSetsCount() { - if (dataSetsBuilder_ == null) { - return dataSets_.size(); + public int getColumnSettingsCount() { + if (columnSettingsBuilder_ == null) { + return columnSettings_.size(); } else { - return dataSetsBuilder_.getCount(); + return columnSettingsBuilder_.getCount(); } } /** * * *
-     * Required. The data displayed in this table.
+     * Optional. The list of the persistent column settings for the table.
      * 
* * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet getDataSets(int index) { - if (dataSetsBuilder_ == null) { - return dataSets_.get(index); + public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings getColumnSettings( + int index) { + if (columnSettingsBuilder_ == null) { + return columnSettings_.get(index); } else { - return dataSetsBuilder_.getMessage(index); + return columnSettingsBuilder_.getMessage(index); } } /** * * *
-     * Required. The data displayed in this table.
+     * Optional. The list of the persistent column settings for the table.
      * 
* * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setDataSets( - int index, com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet value) { - if (dataSetsBuilder_ == null) { + public Builder setColumnSettings( + int index, com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings value) { + if (columnSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureDataSetsIsMutable(); - dataSets_.set(index, value); + ensureColumnSettingsIsMutable(); + columnSettings_.set(index, value); onChanged(); } else { - dataSetsBuilder_.setMessage(index, value); + columnSettingsBuilder_.setMessage(index, value); } return this; } @@ -2387,22 +4047,22 @@ public Builder setDataSets( * * *
-     * Required. The data displayed in this table.
+     * Optional. The list of the persistent column settings for the table.
      * 
* * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setDataSets( + public Builder setColumnSettings( int index, - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder builderForValue) { - if (dataSetsBuilder_ == null) { - ensureDataSetsIsMutable(); - dataSets_.set(index, builderForValue.build()); + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder builderForValue) { + if (columnSettingsBuilder_ == null) { + ensureColumnSettingsIsMutable(); + columnSettings_.set(index, builderForValue.build()); onChanged(); } else { - dataSetsBuilder_.setMessage(index, builderForValue.build()); + columnSettingsBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -2410,24 +4070,24 @@ public Builder setDataSets( * * *
-     * Required. The data displayed in this table.
+     * Optional. The list of the persistent column settings for the table.
      * 
* * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addDataSets( - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet value) { - if (dataSetsBuilder_ == null) { + public Builder addColumnSettings( + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings value) { + if (columnSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureDataSetsIsMutable(); - dataSets_.add(value); + ensureColumnSettingsIsMutable(); + columnSettings_.add(value); onChanged(); } else { - dataSetsBuilder_.addMessage(value); + columnSettingsBuilder_.addMessage(value); } return this; } @@ -2435,24 +4095,24 @@ public Builder addDataSets( * * *
-     * Required. The data displayed in this table.
+     * Optional. The list of the persistent column settings for the table.
      * 
* * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addDataSets( - int index, com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet value) { - if (dataSetsBuilder_ == null) { + public Builder addColumnSettings( + int index, com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings value) { + if (columnSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureDataSetsIsMutable(); - dataSets_.add(index, value); + ensureColumnSettingsIsMutable(); + columnSettings_.add(index, value); onChanged(); } else { - dataSetsBuilder_.addMessage(index, value); + columnSettingsBuilder_.addMessage(index, value); } return this; } @@ -2460,21 +4120,21 @@ public Builder addDataSets( * * *
-     * Required. The data displayed in this table.
+     * Optional. The list of the persistent column settings for the table.
      * 
* * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addDataSets( - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder builderForValue) { - if (dataSetsBuilder_ == null) { - ensureDataSetsIsMutable(); - dataSets_.add(builderForValue.build()); + public Builder addColumnSettings( + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder builderForValue) { + if (columnSettingsBuilder_ == null) { + ensureColumnSettingsIsMutable(); + columnSettings_.add(builderForValue.build()); onChanged(); } else { - dataSetsBuilder_.addMessage(builderForValue.build()); + columnSettingsBuilder_.addMessage(builderForValue.build()); } return this; } @@ -2482,22 +4142,22 @@ public Builder addDataSets( * * *
-     * Required. The data displayed in this table.
+     * Optional. The list of the persistent column settings for the table.
      * 
* * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addDataSets( + public Builder addColumnSettings( int index, - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder builderForValue) { - if (dataSetsBuilder_ == null) { - ensureDataSetsIsMutable(); - dataSets_.add(index, builderForValue.build()); + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder builderForValue) { + if (columnSettingsBuilder_ == null) { + ensureColumnSettingsIsMutable(); + columnSettings_.add(index, builderForValue.build()); onChanged(); } else { - dataSetsBuilder_.addMessage(index, builderForValue.build()); + columnSettingsBuilder_.addMessage(index, builderForValue.build()); } return this; } @@ -2505,23 +4165,23 @@ public Builder addDataSets( * * *
-     * Required. The data displayed in this table.
+     * Optional. The list of the persistent column settings for the table.
      * 
* * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addAllDataSets( + public Builder addAllColumnSettings( java.lang.Iterable< - ? extends com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet> + ? extends com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings> values) { - if (dataSetsBuilder_ == null) { - ensureDataSetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataSets_); + if (columnSettingsBuilder_ == null) { + ensureColumnSettingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columnSettings_); onChanged(); } else { - dataSetsBuilder_.addAllMessages(values); + columnSettingsBuilder_.addAllMessages(values); } return this; } @@ -2529,20 +4189,20 @@ public Builder addAllDataSets( * * *
-     * Required. The data displayed in this table.
+     * Optional. The list of the persistent column settings for the table.
      * 
* * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearDataSets() { - if (dataSetsBuilder_ == null) { - dataSets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder clearColumnSettings() { + if (columnSettingsBuilder_ == null) { + columnSettings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { - dataSetsBuilder_.clear(); + columnSettingsBuilder_.clear(); } return this; } @@ -2550,20 +4210,20 @@ public Builder clearDataSets() { * * *
-     * Required. The data displayed in this table.
+     * Optional. The list of the persistent column settings for the table.
      * 
* * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder removeDataSets(int index) { - if (dataSetsBuilder_ == null) { - ensureDataSetsIsMutable(); - dataSets_.remove(index); + public Builder removeColumnSettings(int index) { + if (columnSettingsBuilder_ == null) { + ensureColumnSettingsIsMutable(); + columnSettings_.remove(index); onChanged(); } else { - dataSetsBuilder_.remove(index); + columnSettingsBuilder_.remove(index); } return this; } @@ -2571,122 +4231,127 @@ public Builder removeDataSets(int index) { * * *
-     * Required. The data displayed in this table.
+     * Optional. The list of the persistent column settings for the table.
      * 
* * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder - getDataSetsBuilder(int index) { - return getDataSetsFieldBuilder().getBuilder(index); + public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder + getColumnSettingsBuilder(int index) { + return getColumnSettingsFieldBuilder().getBuilder(index); } /** * * *
-     * Required. The data displayed in this table.
+     * Optional. The list of the persistent column settings for the table.
      * 
* * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSetOrBuilder - getDataSetsOrBuilder(int index) { - if (dataSetsBuilder_ == null) { - return dataSets_.get(index); + public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettingsOrBuilder + getColumnSettingsOrBuilder(int index) { + if (columnSettingsBuilder_ == null) { + return columnSettings_.get(index); } else { - return dataSetsBuilder_.getMessageOrBuilder(index); + return columnSettingsBuilder_.getMessageOrBuilder(index); } } /** * * *
-     * Required. The data displayed in this table.
+     * Optional. The list of the persistent column settings for the table.
      * 
* * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List< - ? extends com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSetOrBuilder> - getDataSetsOrBuilderList() { - if (dataSetsBuilder_ != null) { - return dataSetsBuilder_.getMessageOrBuilderList(); + ? extends com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettingsOrBuilder> + getColumnSettingsOrBuilderList() { + if (columnSettingsBuilder_ != null) { + return columnSettingsBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(dataSets_); + return java.util.Collections.unmodifiableList(columnSettings_); } } /** * * *
-     * Required. The data displayed in this table.
+     * Optional. The list of the persistent column settings for the table.
      * 
* * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder - addDataSetsBuilder() { - return getDataSetsFieldBuilder() + public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder + addColumnSettingsBuilder() { + return getColumnSettingsFieldBuilder() .addBuilder( - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.getDefaultInstance()); + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings + .getDefaultInstance()); } /** * * *
-     * Required. The data displayed in this table.
+     * Optional. The list of the persistent column settings for the table.
      * 
* * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder - addDataSetsBuilder(int index) { - return getDataSetsFieldBuilder() + public com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder + addColumnSettingsBuilder(int index) { + return getColumnSettingsFieldBuilder() .addBuilder( index, - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.getDefaultInstance()); + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings + .getDefaultInstance()); } /** * * *
-     * Required. The data displayed in this table.
+     * Optional. The list of the persistent column settings for the table.
      * 
* * - * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet data_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getDataSetsBuilderList() { - return getDataSetsFieldBuilder().getBuilderList(); + public java.util.List + getColumnSettingsBuilderList() { + return getColumnSettingsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet, - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder, - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSetOrBuilder> - getDataSetsFieldBuilder() { - if (dataSetsBuilder_ == null) { - dataSetsBuilder_ = + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings, + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettingsOrBuilder> + getColumnSettingsFieldBuilder() { + if (columnSettingsBuilder_ == null) { + columnSettingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet, - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet.Builder, - com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSetOrBuilder>( - dataSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - dataSets_ = null; + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings, + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings.Builder, + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettingsOrBuilder>( + columnSettings_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + columnSettings_ = null; } - return dataSetsBuilder_; + return columnSettingsBuilder_; } @java.lang.Override diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTableOrBuilder.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTableOrBuilder.java index 3f48350b3476..2227a7a1f59a 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTableOrBuilder.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/TimeSeriesTableOrBuilder.java @@ -85,4 +85,98 @@ public interface TimeSeriesTableOrBuilder */ com.google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSetOrBuilder getDataSetsOrBuilder( int index); + + /** + * + * + *
+   * Optional. Store rendering strategy
+   * 
+ * + * + * .google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization metric_visualization = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for metricVisualization. + */ + int getMetricVisualizationValue(); + /** + * + * + *
+   * Optional. Store rendering strategy
+   * 
+ * + * + * .google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization metric_visualization = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metricVisualization. + */ + com.google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization getMetricVisualization(); + + /** + * + * + *
+   * Optional. The list of the persistent column settings for the table.
+   * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getColumnSettingsList(); + /** + * + * + *
+   * Optional. The list of the persistent column settings for the table.
+   * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings getColumnSettings(int index); + /** + * + * + *
+   * Optional. The list of the persistent column settings for the table.
+   * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getColumnSettingsCount(); + /** + * + * + *
+   * Optional. The list of the persistent column settings for the table.
+   * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettingsOrBuilder> + getColumnSettingsOrBuilderList(); + /** + * + * + *
+   * Optional. The list of the persistent column settings for the table.
+   * 
+ * + * + * repeated .google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings column_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettingsOrBuilder + getColumnSettingsOrBuilder(int index); } diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChart.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChart.java index d19b1319cfc4..7a744305ded1 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChart.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/XyChart.java @@ -175,10 +175,10 @@ public interface DataSetOrBuilder * * *
-     * Optional. The lower bound on data point frequency for this data set, implemented by
-     * specifying the minimum alignment period to use in a time series query
-     * For example, if the data is published once every 10 minutes, the
-     * `min_alignment_period` should be at least 10 minutes. It would not
+     * Optional. The lower bound on data point frequency for this data set,
+     * implemented by specifying the minimum alignment period to use in a time
+     * series query For example, if the data is published once every 10 minutes,
+     * the `min_alignment_period` should be at least 10 minutes. It would not
      * make sense to fetch and align data at one minute intervals.
      * 
* @@ -193,10 +193,10 @@ public interface DataSetOrBuilder * * *
-     * Optional. The lower bound on data point frequency for this data set, implemented by
-     * specifying the minimum alignment period to use in a time series query
-     * For example, if the data is published once every 10 minutes, the
-     * `min_alignment_period` should be at least 10 minutes. It would not
+     * Optional. The lower bound on data point frequency for this data set,
+     * implemented by specifying the minimum alignment period to use in a time
+     * series query For example, if the data is published once every 10 minutes,
+     * the `min_alignment_period` should be at least 10 minutes. It would not
      * make sense to fetch and align data at one minute intervals.
      * 
* @@ -211,10 +211,10 @@ public interface DataSetOrBuilder * * *
-     * Optional. The lower bound on data point frequency for this data set, implemented by
-     * specifying the minimum alignment period to use in a time series query
-     * For example, if the data is published once every 10 minutes, the
-     * `min_alignment_period` should be at least 10 minutes. It would not
+     * Optional. The lower bound on data point frequency for this data set,
+     * implemented by specifying the minimum alignment period to use in a time
+     * series query For example, if the data is published once every 10 minutes,
+     * the `min_alignment_period` should be at least 10 minutes. It would not
      * make sense to fetch and align data at one minute intervals.
      * 
* @@ -839,10 +839,10 @@ public com.google.protobuf.ByteString getLegendTemplateBytes() { * * *
-     * Optional. The lower bound on data point frequency for this data set, implemented by
-     * specifying the minimum alignment period to use in a time series query
-     * For example, if the data is published once every 10 minutes, the
-     * `min_alignment_period` should be at least 10 minutes. It would not
+     * Optional. The lower bound on data point frequency for this data set,
+     * implemented by specifying the minimum alignment period to use in a time
+     * series query For example, if the data is published once every 10 minutes,
+     * the `min_alignment_period` should be at least 10 minutes. It would not
      * make sense to fetch and align data at one minute intervals.
      * 
* @@ -860,10 +860,10 @@ public boolean hasMinAlignmentPeriod() { * * *
-     * Optional. The lower bound on data point frequency for this data set, implemented by
-     * specifying the minimum alignment period to use in a time series query
-     * For example, if the data is published once every 10 minutes, the
-     * `min_alignment_period` should be at least 10 minutes. It would not
+     * Optional. The lower bound on data point frequency for this data set,
+     * implemented by specifying the minimum alignment period to use in a time
+     * series query For example, if the data is published once every 10 minutes,
+     * the `min_alignment_period` should be at least 10 minutes. It would not
      * make sense to fetch and align data at one minute intervals.
      * 
* @@ -883,10 +883,10 @@ public com.google.protobuf.Duration getMinAlignmentPeriod() { * * *
-     * Optional. The lower bound on data point frequency for this data set, implemented by
-     * specifying the minimum alignment period to use in a time series query
-     * For example, if the data is published once every 10 minutes, the
-     * `min_alignment_period` should be at least 10 minutes. It would not
+     * Optional. The lower bound on data point frequency for this data set,
+     * implemented by specifying the minimum alignment period to use in a time
+     * series query For example, if the data is published once every 10 minutes,
+     * the `min_alignment_period` should be at least 10 minutes. It would not
      * make sense to fetch and align data at one minute intervals.
      * 
* @@ -1832,10 +1832,10 @@ public Builder setLegendTemplateBytes(com.google.protobuf.ByteString value) { * * *
-       * Optional. The lower bound on data point frequency for this data set, implemented by
-       * specifying the minimum alignment period to use in a time series query
-       * For example, if the data is published once every 10 minutes, the
-       * `min_alignment_period` should be at least 10 minutes. It would not
+       * Optional. The lower bound on data point frequency for this data set,
+       * implemented by specifying the minimum alignment period to use in a time
+       * series query For example, if the data is published once every 10 minutes,
+       * the `min_alignment_period` should be at least 10 minutes. It would not
        * make sense to fetch and align data at one minute intervals.
        * 
* @@ -1852,10 +1852,10 @@ public boolean hasMinAlignmentPeriod() { * * *
-       * Optional. The lower bound on data point frequency for this data set, implemented by
-       * specifying the minimum alignment period to use in a time series query
-       * For example, if the data is published once every 10 minutes, the
-       * `min_alignment_period` should be at least 10 minutes. It would not
+       * Optional. The lower bound on data point frequency for this data set,
+       * implemented by specifying the minimum alignment period to use in a time
+       * series query For example, if the data is published once every 10 minutes,
+       * the `min_alignment_period` should be at least 10 minutes. It would not
        * make sense to fetch and align data at one minute intervals.
        * 
* @@ -1878,10 +1878,10 @@ public com.google.protobuf.Duration getMinAlignmentPeriod() { * * *
-       * Optional. The lower bound on data point frequency for this data set, implemented by
-       * specifying the minimum alignment period to use in a time series query
-       * For example, if the data is published once every 10 minutes, the
-       * `min_alignment_period` should be at least 10 minutes. It would not
+       * Optional. The lower bound on data point frequency for this data set,
+       * implemented by specifying the minimum alignment period to use in a time
+       * series query For example, if the data is published once every 10 minutes,
+       * the `min_alignment_period` should be at least 10 minutes. It would not
        * make sense to fetch and align data at one minute intervals.
        * 
* @@ -1906,10 +1906,10 @@ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration value) { * * *
-       * Optional. The lower bound on data point frequency for this data set, implemented by
-       * specifying the minimum alignment period to use in a time series query
-       * For example, if the data is published once every 10 minutes, the
-       * `min_alignment_period` should be at least 10 minutes. It would not
+       * Optional. The lower bound on data point frequency for this data set,
+       * implemented by specifying the minimum alignment period to use in a time
+       * series query For example, if the data is published once every 10 minutes,
+       * the `min_alignment_period` should be at least 10 minutes. It would not
        * make sense to fetch and align data at one minute intervals.
        * 
* @@ -1931,10 +1931,10 @@ public Builder setMinAlignmentPeriod(com.google.protobuf.Duration.Builder builde * * *
-       * Optional. The lower bound on data point frequency for this data set, implemented by
-       * specifying the minimum alignment period to use in a time series query
-       * For example, if the data is published once every 10 minutes, the
-       * `min_alignment_period` should be at least 10 minutes. It would not
+       * Optional. The lower bound on data point frequency for this data set,
+       * implemented by specifying the minimum alignment period to use in a time
+       * series query For example, if the data is published once every 10 minutes,
+       * the `min_alignment_period` should be at least 10 minutes. It would not
        * make sense to fetch and align data at one minute intervals.
        * 
* @@ -1963,10 +1963,10 @@ public Builder mergeMinAlignmentPeriod(com.google.protobuf.Duration value) { * * *
-       * Optional. The lower bound on data point frequency for this data set, implemented by
-       * specifying the minimum alignment period to use in a time series query
-       * For example, if the data is published once every 10 minutes, the
-       * `min_alignment_period` should be at least 10 minutes. It would not
+       * Optional. The lower bound on data point frequency for this data set,
+       * implemented by specifying the minimum alignment period to use in a time
+       * series query For example, if the data is published once every 10 minutes,
+       * the `min_alignment_period` should be at least 10 minutes. It would not
        * make sense to fetch and align data at one minute intervals.
        * 
* @@ -1989,10 +1989,10 @@ public Builder clearMinAlignmentPeriod() { * * *
-       * Optional. The lower bound on data point frequency for this data set, implemented by
-       * specifying the minimum alignment period to use in a time series query
-       * For example, if the data is published once every 10 minutes, the
-       * `min_alignment_period` should be at least 10 minutes. It would not
+       * Optional. The lower bound on data point frequency for this data set,
+       * implemented by specifying the minimum alignment period to use in a time
+       * series query For example, if the data is published once every 10 minutes,
+       * the `min_alignment_period` should be at least 10 minutes. It would not
        * make sense to fetch and align data at one minute intervals.
        * 
* @@ -2009,10 +2009,10 @@ public com.google.protobuf.Duration.Builder getMinAlignmentPeriodBuilder() { * * *
-       * Optional. The lower bound on data point frequency for this data set, implemented by
-       * specifying the minimum alignment period to use in a time series query
-       * For example, if the data is published once every 10 minutes, the
-       * `min_alignment_period` should be at least 10 minutes. It would not
+       * Optional. The lower bound on data point frequency for this data set,
+       * implemented by specifying the minimum alignment period to use in a time
+       * series query For example, if the data is published once every 10 minutes,
+       * the `min_alignment_period` should be at least 10 minutes. It would not
        * make sense to fetch and align data at one minute intervals.
        * 
* @@ -2033,10 +2033,10 @@ public com.google.protobuf.DurationOrBuilder getMinAlignmentPeriodOrBuilder() { * * *
-       * Optional. The lower bound on data point frequency for this data set, implemented by
-       * specifying the minimum alignment period to use in a time series query
-       * For example, if the data is published once every 10 minutes, the
-       * `min_alignment_period` should be at least 10 minutes. It would not
+       * Optional. The lower bound on data point frequency for this data set,
+       * implemented by specifying the minimum alignment period to use in a time
+       * series query For example, if the data is published once every 10 minutes,
+       * the `min_alignment_period` should be at least 10 minutes. It would not
        * make sense to fetch and align data at one minute intervals.
        * 
* diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboards_service.proto b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboards_service.proto index 4e99c4f7e4d2..bf6f94e785f9 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboards_service.proto +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/dashboards_service.proto @@ -41,8 +41,12 @@ service DashboardsService { "https://www.googleapis.com/auth/monitoring.read," "https://www.googleapis.com/auth/monitoring.write"; - // Creates a new custom dashboard. For examples on how you can use this API to create dashboards, see [Managing dashboards by API](https://cloud.google.com/monitoring/dashboards/api-dashboard). - // This method requires the `monitoring.dashboards.create` permission on the specified project. For more information about permissions, see [Cloud Identity and Access Management](https://cloud.google.com/iam). + // Creates a new custom dashboard. For examples on how you can use this API to + // create dashboards, see [Managing dashboards by + // API](https://cloud.google.com/monitoring/dashboards/api-dashboard). This + // method requires the `monitoring.dashboards.create` permission on the + // specified project. For more information about permissions, see [Cloud + // Identity and Access Management](https://cloud.google.com/iam). rpc CreateDashboard(CreateDashboardRequest) returns (Dashboard) { option (google.api.http) = { post: "/v1/{parent=projects/*}/dashboards" diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/metrics.proto b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/metrics.proto index b28dbdcf95ce..321429b64377 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/metrics.proto +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/metrics.proto @@ -58,8 +58,9 @@ message TimeSeriesQuery { // [`ListTimeSeries`](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) // method. message TimeSeriesFilter { - // Required. The [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) - // that identifies the metric types, resources, and projects to query. + // Required. The [monitoring + // filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies + // the metric types, resources, and projects to query. string filter = 1 [(google.api.field_behavior) = REQUIRED]; // By default, the raw time series data is returned. @@ -77,7 +78,8 @@ message TimeSeriesFilter { // Statistics based time series filter. // Note: This field is deprecated and completely ignored by the API. - StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + StatisticalTimeSeriesFilter statistical_time_series_filter = 5 + [deprecated = true]; } } @@ -116,7 +118,8 @@ message TimeSeriesFilterRatio { // Statistics based time series filter. // Note: This field is deprecated and completely ignored by the API. - StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true]; + StatisticalTimeSeriesFilter statistical_time_series_filter = 5 + [deprecated = true]; } } diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table.proto b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table.proto index 8165c3a9b79a..2bbcf6df308e 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table.proto +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table.proto @@ -35,25 +35,58 @@ message TimeSeriesTable { message TableDataSet { // Required. Fields for querying time series data from the // Stackdriver metrics API. - TimeSeriesQuery time_series_query = 1 [(google.api.field_behavior) = REQUIRED]; + TimeSeriesQuery time_series_query = 1 + [(google.api.field_behavior) = REQUIRED]; - // Optional. A template string for naming `TimeSeries` in the resulting data set. - // This should be a string with interpolations of the form `${label_name}`, - // which will resolve to the label's value i.e. + // Optional. A template string for naming `TimeSeries` in the resulting data + // set. This should be a string with interpolations of the form + // `${label_name}`, which will resolve to the label's value i.e. // "${resource.labels.project_id}." string table_template = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The lower bound on data point frequency for this data set, implemented by - // specifying the minimum alignment period to use in a time series query - // For example, if the data is published once every 10 minutes, the - // `min_alignment_period` should be at least 10 minutes. It would not + // Optional. The lower bound on data point frequency for this data set, + // implemented by specifying the minimum alignment period to use in a time + // series query For example, if the data is published once every 10 minutes, + // the `min_alignment_period` should be at least 10 minutes. It would not // make sense to fetch and align data at one minute intervals. - google.protobuf.Duration min_alignment_period = 3 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.Duration min_alignment_period = 3 + [(google.api.field_behavior) = OPTIONAL]; - // Optional. Table display options for configuring how the table is rendered. - TableDisplayOptions table_display_options = 4 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Table display options for configuring how the table is + // rendered. + TableDisplayOptions table_display_options = 4 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Enum for metric metric_visualization + enum MetricVisualization { + // Unspecified state + METRIC_VISUALIZATION_UNSPECIFIED = 0; + + // Default text rendering + NUMBER = 1; + + // Horizontal bar rendering + BAR = 2; + } + + // The persistent settings for a table's columns. + message ColumnSettings { + // Required. The id of the column. + string column = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Whether the column should be visible on page load. + bool visible = 2 [(google.api.field_behavior) = REQUIRED]; } // Required. The data displayed in this table. repeated TableDataSet data_sets = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Store rendering strategy + MetricVisualization metric_visualization = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The list of the persistent column settings for the table. + repeated ColumnSettings column_settings = 4 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table_display_options.proto b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table_display_options.proto index 468005f2f23b..8e5d4b7edac1 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table_display_options.proto +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/table_display_options.proto @@ -30,8 +30,6 @@ option ruby_package = "Google::Cloud::Monitoring::Dashboard::V1"; message TableDisplayOptions { // Optional. This field is unused and has been replaced by // TimeSeriesTable.column_settings - repeated string shown_columns = 1 [ - deprecated = true, - (google.api.field_behavior) = OPTIONAL - ]; + repeated string shown_columns = 1 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; } diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/xychart.proto b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/xychart.proto index 11a26a49c3a2..74958f1ffd81 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/xychart.proto +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/proto/google/monitoring/dashboard/v1/xychart.proto @@ -73,7 +73,8 @@ message XyChart { // Required. Fields for querying time series data from the // Stackdriver metrics API. - TimeSeriesQuery time_series_query = 1 [(google.api.field_behavior) = REQUIRED]; + TimeSeriesQuery time_series_query = 1 + [(google.api.field_behavior) = REQUIRED]; // How this data should be plotted on the chart. PlotType plot_type = 2; @@ -83,12 +84,13 @@ message XyChart { // which will resolve to the label's value. string legend_template = 3; - // Optional. The lower bound on data point frequency for this data set, implemented by - // specifying the minimum alignment period to use in a time series query - // For example, if the data is published once every 10 minutes, the - // `min_alignment_period` should be at least 10 minutes. It would not + // Optional. The lower bound on data point frequency for this data set, + // implemented by specifying the minimum alignment period to use in a time + // series query For example, if the data is published once every 10 minutes, + // the `min_alignment_period` should be at least 10 minutes. It would not // make sense to fetch and align data at one minute intervals. - google.protobuf.Duration min_alignment_period = 4 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.Duration min_alignment_period = 4 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The target axis to use for plotting the metric. TargetAxis target_axis = 5 [(google.api.field_behavior) = OPTIONAL];